- case $cf_cv_system_name in #(vi
- cygwin*)
- # "lib" files have ".dll.a" suffix, "cyg" files have ".dll"
- TINFO_SUFFIX=.dll
- ;;
- esac
-fi
-
-if test "$with_dlsym" = yes ; then
-
-# remove dl library from $TICS_LIST
-TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
-
-fi
-
-if test "$DFT_LWR_MODEL" = "libtool"; then
- OBJEXT=lo
-fi
-
-# needed for Ada95
-TINFO_ARGS2=`echo "$TINFO_ARGS" | sed -e 's,-L\.\./,-L../../,'`
-
-case $DFT_LWR_MODEL in
-normal|debug|profile)
-
-if test "$GCC" = yes ; then
- case $cf_cv_system_name in #(
- OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*) #( vi
- LDFLAGS_STATIC=
- LDFLAGS_SHARED=
- ;;
- *) #( normally, except when broken
- LDFLAGS_STATIC=-static
- LDFLAGS_SHARED=-dynamic
- ;;
- esac
-else
- case $cf_cv_system_name in #(
- aix[456]*) #( from ld manpage
- LDFLAGS_STATIC=-bstatic
- LDFLAGS_SHARED=-bdynamic
- ;;
- hpux*) #( from ld manpage for hpux10.20, hpux11.11
- # We could also use just "archive" and "shared".
- LDFLAGS_STATIC=-Wl,-a,archive_shared
- LDFLAGS_SHARED=-Wl,-a,shared_archive
- ;;
- irix*) #( from ld manpage IRIX64
- LDFLAGS_STATIC=-Bstatic
- LDFLAGS_SHARED=-Bdynamic
- ;;
- osf[45]*) #( from ld manpage osf4.0d, osf5.1
- # alternative "-oldstyle_liblookup" (not in cc manpage)
- LDFLAGS_STATIC=-noso
- LDFLAGS_SHARED=-so_archive
- ;;
- solaris2*)
- LDFLAGS_STATIC=-Bstatic
- LDFLAGS_SHARED=-Bdynamic
- ;;
- esac
-fi
-
- ;;
-esac
-
-echo "$as_me:18259: checking where we will install curses.h" >&5
-echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
-test "$with_overwrite" = no && \
-test "x$includedir" = 'x${prefix}/include' && \
- includedir='${prefix}/include/ncurses'${LIB_SUFFIX}
-echo "$as_me:18264: result: $includedir" >&5
-echo "${ECHO_T}$includedir" >&6
-
-### Resolve a conflict between normal and wide-curses by forcing applications
-### that will need libutf8 to add it to their configure script.
-if test "$with_overwrite" != no ; then
-if test "$NCURSES_LIBUTF8" = 1 ; then
- NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
- { echo "$as_me:18272: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
-echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
-fi
-fi
-WITH_OVERWRITE=$with_overwrite
-
-# used to separate tack out of the tree
-NCURSES_TREE=
-
-### predefined stuff for the test programs
-cat >>confdefs.h <<\EOF
-#define HAVE_SLK_COLOR 1
-EOF
-
-### Construct the list of subdirectories for which we'll customize makefiles
-### with the appropriate compile-rules.
-
-echo "$as_me:18289: checking for src modules" >&5
-echo $ECHO_N "checking for src modules... $ECHO_C" >&6
-
-# dependencies and linker-arguments for test-programs
-TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
-TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
-if test "$DFT_LWR_MODEL" = "libtool"; then
- TEST_ARGS="${TEST_DEPS}"
- TEST_ARG2="${TEST_DEP2}"
-else
- TEST_ARGS="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARGS"
- TEST_ARG2="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARG2"
-fi
-
-cf_cv_src_modules=
-for cf_dir in $modules_to_build
-do
- if test -f $srcdir/$cf_dir/modules; then
-
- # We may/may not have tack in the distribution, though the
- # makefile is.
- if test $cf_dir = tack ; then
- if test ! -f $srcdir/${cf_dir}/${cf_dir}.h; then
- continue
- fi
- fi
-
- if test -z "$cf_cv_src_modules"; then
- cf_cv_src_modules=$cf_dir
- else
- cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
- fi
-
- # Make the ncurses_cfg.h file record the library interface files as
- # well. These are header files that are the same name as their
- # directory. Ncurses is the only library that does not follow
- # that pattern.
- if test $cf_dir = tack ; then
- continue
- elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then
-
-cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
-
- cat >>confdefs.h <<EOF
-#define HAVE_${cf_have_include}_H 1
-EOF
-
- cat >>confdefs.h <<EOF
-#define HAVE_LIB${cf_have_include} 1
-EOF
-
- TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
- TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEP2"
- if test "$DFT_LWR_MODEL" = "libtool"; then
- TEST_ARGS="${TEST_DEPS}"
- TEST_ARG2="${TEST_DEP2}"
- else
- TEST_ARGS="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARGS"
- TEST_ARG2="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARG2"
- fi
- fi
- fi
-done
-echo "$as_me:18352: result: $cf_cv_src_modules" >&5
-echo "${ECHO_T}$cf_cv_src_modules" >&6
-
-TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
-TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
-
-SRC_SUBDIRS=
-if test "x$cf_with_manpages" != xno ; then
- SRC_SUBDIRS="$SRC_SUBDIRS man"
-fi
-SRC_SUBDIRS="$SRC_SUBDIRS include"
-for cf_dir in $cf_cv_src_modules
-do
- SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
-done
-SRC_SUBDIRS="$SRC_SUBDIRS test"
-test -z "$MAKE_TERMINFO" && SRC_SUBDIRS="$SRC_SUBDIRS misc"
-test "$cf_with_cxx_binding" != no && SRC_SUBDIRS="$SRC_SUBDIRS c++"
-
-ADA_SUBDIRS=
-if test "$cf_cv_prog_gnat_correct" = yes && test -f $srcdir/Ada95/Makefile.in; then
- SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
- ADA_SUBDIRS="gen src samples"
-fi
-
-SUB_MAKEFILES=
-for cf_dir in $SRC_SUBDIRS
-do
- SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
-done
-
-if test -n "$ADA_SUBDIRS"; then
- for cf_dir in $ADA_SUBDIRS
- do
- SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
- done
-
-fi
-
-if test "$cf_with_ada" != "no" && test "$cf_cv_prog_gnat_correct" != "no"; then
- SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${DFT_ARG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
- SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${DFT_ARG_SUFFIX}-config.1:man/MKada_config.in"
-fi
-
-DIRS_TO_MAKE="lib"
-for cf_item in $cf_list_models
-do
-
- case $cf_item in
- libtool) cf_subdir='obj_lo' ;;
- normal) cf_subdir='objects' ;;
- debug) cf_subdir='obj_g' ;;
- profile) cf_subdir='obj_p' ;;
- shared)
- case $cf_cv_system_name in #(vi
- cygwin) #(vi
- cf_subdir='objects' ;;
- *)
- cf_subdir='obj_s' ;;
- esac
- esac
-
- for cf_item2 in $DIRS_TO_MAKE
- do
- test $cf_item2 = $cf_subdir && break
- done
- test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
-done
-for cf_dir in $DIRS_TO_MAKE
-do
- test ! -d $cf_dir && mkdir $cf_dir
-done
-
-# symbols that differ when compiling Ada95 by itself.
-NCURSES_SHLIB2='sh $(top_srcdir)/misc/shlib'
-
-NCURSES_COPY2='sh $(top_srcdir)/tar-copy.sh'
-
-# values to use as strings
-cat >>confdefs.h <<EOF
-#define NCURSES_PATHSEP '$PATH_SEPARATOR'
-EOF
-
-cat >>confdefs.h <<EOF
-#define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
-EOF
-
-### Now that we're done running tests, add the compiler-warnings, if any
-
-cf_fix_cppflags=no
-cf_new_cflags=
-cf_new_cppflags=
-cf_new_extra_cppflags=
-
-for cf_add_cflags in $EXTRA_CFLAGS
-do
-case $cf_fix_cppflags in
-no)
- case $cf_add_cflags in #(vi
- -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
- case $cf_add_cflags in
- -D*)
- cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
-
- test "${cf_add_cflags}" != "${cf_tst_cflags}" \
- && test -z "${cf_tst_cflags}" \
- && cf_fix_cppflags=yes
-
- if test $cf_fix_cppflags = yes ; then
- cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
- continue
- elif test "${cf_tst_cflags}" = "\"'" ; then
- cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
- continue
- fi
- ;;
- esac
- case "$CPPFLAGS" in
- *$cf_add_cflags) #(vi
- ;;
- *) #(vi
- case $cf_add_cflags in #(vi
- -D*)
- cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
-
-CPPFLAGS=`echo "$CPPFLAGS" | \
- sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
- -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
-
- ;;
- esac
- cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
- ;;
- esac
- ;;
- *)
- cf_new_cflags="$cf_new_cflags $cf_add_cflags"
- ;;
- esac
- ;;
-yes)
- cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
-
- cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
-
- test "${cf_add_cflags}" != "${cf_tst_cflags}" \
- && test -z "${cf_tst_cflags}" \
- && cf_fix_cppflags=no
- ;;
-esac
-done
-
-if test -n "$cf_new_cflags" ; then
-
- CFLAGS="$CFLAGS $cf_new_cflags"
-fi
-
-if test -n "$cf_new_cppflags" ; then
-
- CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
-fi
-
-if test -n "$cf_new_extra_cppflags" ; then
-
- EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
-fi
-
-### If we're building with rpath, try to link non-standard libs that way too.
-if test "$DFT_LWR_MODEL" = "shared"; then
-
-echo "$as_me:18522: checking if rpath should be not be set" >&5
-echo $ECHO_N "checking if rpath should be not be set... $ECHO_C" >&6
-
-# Check whether --enable-rpath-hack or --disable-rpath-hack was given.
-if test "${enable_rpath_hack+set}" = set; then
- enableval="$enable_rpath_hack"
- test "$enableval" != no && enableval=yes
- if test "$enableval" != "yes" ; then
- cf_disable_rpath_hack=yes
- else
- cf_disable_rpath_hack=no
- fi
-else
- enableval=yes
- cf_disable_rpath_hack=no
-
-fi;
-echo "$as_me:18539: result: $cf_disable_rpath_hack" >&5
-echo "${ECHO_T}$cf_disable_rpath_hack" >&6
-if test "$cf_disable_rpath_hack" = no ; then