1#! /bin/sh 2# Generated automatically by configure. 3# Run this file to recreate the current configuration. 4# Compiler output produced by configure, useful for debugging 5# configure, is in config.log if it exists. 6 7debug=false 8SHELL=${CONFIG_SHELL-/bin/sh} 9ac_cs_invocation="$0 $@" 10 11# Be Bourne compatible 12if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 13 emulate sh 14 NULLCMD=: 15elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 16 set -o posix 17fi 18 19# Name of the executable. 20as_me=`echo "$0" |sed 's,.*[\\/],,'` 21 22if expr a : '\(a\)' >/dev/null 2>&1; then 23 as_expr=expr 24else 25 as_expr=false 26fi 27 28rm -f conf$$ conf$$.exe conf$$.file 29echo >conf$$.file 30if ln -s conf$$.file conf$$ 2>/dev/null; then 31 # We could just check for DJGPP; but this test a) works b) is more generic 32 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 33 if test -f conf$$.exe; then 34 # Don't use ln at all; we don't have any links 35 as_ln_s='cp -p' 36 else 37 as_ln_s='ln -s' 38 fi 39elif ln conf$$.file conf$$ 2>/dev/null; then 40 as_ln_s=ln 41else 42 as_ln_s='cp -p' 43fi 44rm -f conf$$ conf$$.exe conf$$.file 45 46as_executable_p="test -f" 47 48# Support unset when possible. 49if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 50 as_unset=unset 51else 52 as_unset=false 53fi 54 55# NLS nuisances. 56$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } 57$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } 58$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } 59$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } 60$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } 61$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } 62$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } 63$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } 64 65# IFS 66# We need space, tab and new line, in precisely that order. 67as_nl=' 68' 69IFS=" $as_nl" 70 71# CDPATH. 72$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } 73 74exec 6>&1 75 76config_files=" include/MKterm.h.awk include/curses.head:include/curses.h.in include/termcap.h include/unctrl.h man/Makefile include/Makefile ncurses/Makefile progs/Makefile panel/Makefile menu/Makefile form/Makefile test/Makefile misc/Makefile Ada95/gen/adacurses-config misc/run_tic.sh:misc/run_tic.in misc/ncurses-config:misc/ncurses-config.in Makefile" 77config_headers=" include/ncurses_cfg.h:include/ncurses_cfg.hin" 78config_commands=" default" 79 80ac_cs_usage="\ 81\`$as_me' instantiates files from templates according to the 82current configuration. 83 84Usage: $0 [OPTIONS] [FILE]... 85 86 -h, --help print this help, then exit 87 -V, --version print version number, then exit 88 -d, --debug don't remove temporary files 89 --recheck update $as_me by reconfiguring in the same conditions 90 --file=FILE[:TEMPLATE] 91 instantiate the configuration file FILE 92 --header=FILE[:TEMPLATE] 93 instantiate the configuration header FILE 94 95Configuration files: 96$config_files 97 98Configuration headers: 99$config_headers 100 101Configuration commands: 102$config_commands 103 104Report bugs to <bug-autoconf@gnu.org>." 105ac_cs_version="\ 106config.status 107configured by /tmp/ncurses-27.roots/ncurses-27/ncurses/configure, generated by GNU Autoconf 2.52.20080325, 108 with options \"--prefix=/usr --disable-dependency-tracking --disable-mixed-case --with-shared --without-normal --without-debug --enable-termcap --enable-widec --with-abi-version=5.4 --without-cxx-binding --without-cxx --mandir=/usr/share/man 'CFLAGS=-arch i386 -arch x86_64 -arch ppc -g -Os -pipe -isysroot /' 'CXXFLAGS=-arch i386 -arch x86_64 -arch ppc -g -Os -pipe ' 'LDFLAGS=-arch i386 -arch x86_64 -arch ppc '\" 109 110Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 111Free Software Foundation, Inc. 112This config.status script is free software; the Free Software Foundation 113gives unlimited permission to copy, distribute and modify it." 114srcdir=/tmp/ncurses-27.roots/ncurses-27/ncurses 115INSTALL="/usr/bin/install -c" 116# If no file are specified by the user, then we need to provide default 117# value. By we need to know if files were specified by the user. 118ac_need_defaults=: 119while test $# != 0 120do 121 case $1 in 122 --*=*) 123 ac_option=`expr "x$1" : 'x\([^=]*\)='` 124 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 125 shift 126 set dummy "$ac_option" "$ac_optarg" ${1+"$@"} 127 shift 128 ;; 129 -*);; 130 *) # This is not an option, so the user has probably given explicit 131 # arguments. 132 ac_need_defaults=false;; 133 esac 134 135 case $1 in 136 # Handling of the options. 137 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 138 echo "running /bin/sh /tmp/ncurses-27.roots/ncurses-27/ncurses/configure " --prefix=/usr --disable-dependency-tracking --disable-mixed-case --with-shared --without-normal --without-debug --enable-termcap --enable-widec --with-abi-version=5.4 --without-cxx-binding --without-cxx --mandir=/usr/share/man 'CFLAGS=-arch i386 -arch x86_64 -arch ppc -g -Os -pipe -isysroot /' 'CXXFLAGS=-arch i386 -arch x86_64 -arch ppc -g -Os -pipe ' 'LDFLAGS=-arch i386 -arch x86_64 -arch ppc ' " --no-create --no-recursion" 139 exec /bin/sh /tmp/ncurses-27.roots/ncurses-27/ncurses/configure --prefix=/usr --disable-dependency-tracking --disable-mixed-case --with-shared --without-normal --without-debug --enable-termcap --enable-widec --with-abi-version=5.4 --without-cxx-binding --without-cxx --mandir=/usr/share/man 'CFLAGS=-arch i386 -arch x86_64 -arch ppc -g -Os -pipe -isysroot /' 'CXXFLAGS=-arch i386 -arch x86_64 -arch ppc -g -Os -pipe ' 'LDFLAGS=-arch i386 -arch x86_64 -arch ppc ' --no-create --no-recursion ;; 140 --version | --vers* | -V ) 141 echo "$ac_cs_version"; exit 0 ;; 142 --he | --h) 143 # Conflict between --help and --header 144 { { echo "$as_me:17111: error: ambiguous option: $1 145Try \`$0 --help' for more information." >&5 146echo "$as_me: error: ambiguous option: $1 147Try \`$0 --help' for more information." >&2;} 148 { (exit 1); exit 1; }; };; 149 --help | --hel | -h ) 150 echo "$ac_cs_usage"; exit 0 ;; 151 --debug | --d* | -d ) 152 debug=: ;; 153 --file | --fil | --fi | --f ) 154 shift 155 CONFIG_FILES="$CONFIG_FILES $1" 156 ac_need_defaults=false;; 157 --header | --heade | --head | --hea ) 158 shift 159 CONFIG_HEADERS="$CONFIG_HEADERS $1" 160 ac_need_defaults=false;; 161 162 # This is an error. 163 -*) { { echo "$as_me:17130: error: unrecognized option: $1 164Try \`$0 --help' for more information." >&5 165echo "$as_me: error: unrecognized option: $1 166Try \`$0 --help' for more information." >&2;} 167 { (exit 1); exit 1; }; } ;; 168 169 *) ac_config_targets="$ac_config_targets $1" ;; 170 171 esac 172 shift 173done 174 175exec 5>>config.log 176cat >&5 << _ACEOF 177 178## ----------------------- ## 179## Running config.status. ## 180## ----------------------- ## 181 182This file was extended by $as_me 2.52.20080325, executed with 183 CONFIG_FILES = $CONFIG_FILES 184 CONFIG_HEADERS = $CONFIG_HEADERS 185 CONFIG_LINKS = $CONFIG_LINKS 186 CONFIG_COMMANDS = $CONFIG_COMMANDS 187 > $ac_cs_invocation 188on `(hostname || uname -n) 2>/dev/null | sed 1q` 189 190_ACEOF 191# 192# INIT-COMMANDS section. 193# 194 195### Special initialization commands, used to pass information from the 196### configuration-run into config.status 197 198AWK="awk" 199DFT_ARG_SUFFIX="" 200DFT_LWR_MODEL="shared" 201ECHO_LINK="" 202LDCONFIG="" 203LIB_NAME="ncurses" 204LIB_SUBSETS="ticlib+termlib+ext_tinfo+base+widechar+ext_funcs" 205LIB_SUFFIX="" 206LIB_TRACING="DEBUG" 207MAKE_TERMINFO="" 208NCURSES_MAJOR="5" 209NCURSES_MINOR="7" 210NCURSES_OSPEED="short" 211NCURSES_PATCH="20081102" 212SRC_SUBDIRS="man include ncurses progs panel menu form test misc" 213TERMINFO="/usr/share/terminfo" 214TINFO_ARG_SUFFIX="ncurses" 215TINFO_LIB_SUFFIX="" 216TINFO_NAME="ncurses" 217TINFO_SUFFIX=".dylib" 218TICS_ARG_SUFFIX="" 219TICS_LIB_SUFFIX="" 220TICS_NAME="tic" 221WITH_CURSES_H="yes" 222WITH_ECHO="yes" 223WITH_OVERWRITE="yes" 224cf_LIST_MODELS=" shared" 225cf_cv_abi_version="5.4" 226cf_cv_do_relink="yes" 227cf_cv_do_symlinks="yes" 228cf_cv_enable_lp64="0" 229cf_cv_enable_opaque="NCURSES_OPAQUE" 230cf_cv_prog_CC_c_o=yes 231cf_cv_prog_CXX_c_o= 232cf_cv_rel_version="5.7" 233cf_cv_rm_so_locs="no" 234cf_cv_shared_soname='' 235cf_cv_shlib_version="abi" 236cf_cv_shlib_version_infix="yes" 237cf_cv_system_name="darwin10.0" 238cf_with_cxx_binding="no" 239host="i386-apple-darwin10.0" 240target="i386-apple-darwin10.0" 241 242for ac_config_target in $ac_config_targets 243do 244 case "$ac_config_target" in 245 # Handling of arguments. 246 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;; 247 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;; 248 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;; 249 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;; 250 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;; 251 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 252 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 253 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;; 254 *) { { echo "$as_me:17227: error: invalid argument: $ac_config_target" >&5 255echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 256 { (exit 1); exit 1; }; };; 257 esac 258done 259 260# If the user did not use the arguments to specify the items to instantiate, 261# then the envvar interface is used. Set only those that are not. 262# We use the long form for the default assignment because of an extremely 263# bizarre bug on SunOS 4.1.3. 264if $ac_need_defaults; then 265 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 266 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 267 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 268fi 269 270# Create a temporary directory, and hook for its removal unless debugging. 271$debug || 272{ 273 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 274 trap '{ (exit 1); exit 1; }' 1 2 13 15 275} 276 277# Create a (secure) tmp directory for tmp files. 278: ${TMPDIR=/tmp} 279{ 280 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && 281 test -n "$tmp" && test -d "$tmp" 282} || 283{ 284 tmp=$TMPDIR/cs$$-$RANDOM 285 (umask 077 && mkdir $tmp) 286} || 287{ 288 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 289 { (exit 1); exit 1; } 290} 291 292 293# 294# CONFIG_FILES section. 295# 296 297# No need to generate the scripts if there are no CONFIG_FILES. 298# This happens for instance when ./config.status config.h 299if test -n "$CONFIG_FILES"; then 300 # Protect against being on the right side of a sed subst in config.status. 301 sed 's/,@/@@/; s/@,/@@/; s/,;t t$/@;t t/; /@;t t$/s/[\\&,]/\\&/g; 302 s/@@/,@/; s/@@/@,/; s/@;t t$/,;t t/' >$tmp/subs.sed <<\CEOF 303s,@SHELL@,/bin/sh,;t t 304s,@exec_prefix@,${prefix},;t t 305s,@prefix@,/usr,;t t 306s,@program_transform_name@,s,x,x,,;t t 307s,@bindir@,${exec_prefix}/bin,;t t 308s,@sbindir@,${exec_prefix}/sbin,;t t 309s,@libexecdir@,${exec_prefix}/libexec,;t t 310s,@datadir@,${prefix}/share,;t t 311s,@sysconfdir@,${prefix}/etc,;t t 312s,@sharedstatedir@,${prefix}/com,;t t 313s,@localstatedir@,${prefix}/var,;t t 314s,@libdir@,${exec_prefix}/lib,;t t 315s,@includedir@,${prefix}/include,;t t 316s,@oldincludedir@,/usr/include,;t t 317s,@infodir@,${prefix}/info,;t t 318s,@mandir@,/usr/share/man,;t t 319s,@PACKAGE_NAME@,,;t t 320s,@PACKAGE_TARNAME@,,;t t 321s,@PACKAGE_VERSION@,,;t t 322s,@PACKAGE_STRING@,,;t t 323s,@PACKAGE_BUGREPORT@,,;t t 324s,@build_alias@,,;t t 325s,@host_alias@,,;t t 326s,@target_alias@,,;t t 327s,@ECHO_C@,\c,;t t 328s,@ECHO_N@,,;t t 329s,@ECHO_T@,,;t t 330s,@PATH_SEPARATOR@,:,;t t 331s,@DEFS@,-DHAVE_CONFIG_H,;t t 332s,@LIBS@,,;t t 333s,@top_builddir@,/tmp/ncurses-27.roots/ncurses-27~obj,;t t 334s,@EGREP@,grep -E,;t t 335s,@NCURSES_MAJOR@,5,;t t 336s,@NCURSES_MINOR@,7,;t t 337s,@NCURSES_PATCH@,20081102,;t t 338s,@cf_cv_rel_version@,5.7,;t t 339s,@cf_cv_abi_version@,5.4,;t t 340s,@cf_cv_builtin_bool@,1,;t t 341s,@cf_cv_header_stdbool_h@,1,;t t 342s,@cf_cv_type_of_bool@,unsigned char,;t t 343s,@build@,i386-apple-darwin10.0,;t t 344s,@build_cpu@,i386,;t t 345s,@build_vendor@,apple,;t t 346s,@build_os@,darwin10.0,;t t 347s,@host@,i386-apple-darwin10.0,;t t 348s,@host_cpu@,i386,;t t 349s,@host_vendor@,apple,;t t 350s,@host_os@,darwin10.0,;t t 351s,@target@,i386-apple-darwin10.0,;t t 352s,@target_cpu@,i386,;t t 353s,@target_vendor@,apple,;t t 354s,@target_os@,darwin10.0,;t t 355s,@CC@,gcc,;t t 356s,@CFLAGS@,-arch i386 -arch x86_64 -arch ppc -g -Os -pipe -isysroot / --param max-inline-insns-single=1200 -no-cpp-precomp,;t t 357s,@LDFLAGS@,-arch i386 -arch x86_64 -arch ppc -Wl,-search_paths_first,;t t 358s,@CPPFLAGS@,-I${srcdir}/../include -I. -I../include -U_XOPEN_SOURCE -D_XOPEN_SOURCE=500 -DSIGWINCH=28 -D_XOPEN_SOURCE_EXTENDED -DNDEBUG,;t t 359s,@ac_ct_CC@,gcc,;t t 360s,@EXEEXT@,,;t t 361s,@OBJEXT@,o,;t t 362s,@CPP@,gcc -E,;t t 363s,@EXTRA_CPPFLAGS@,,;t t 364s,@PROG_EXT@,,;t t 365s,@LDCONFIG@,,;t t 366s,@CXX@,,;t t 367s,@CXXFLAGS@,-arch i386 -arch x86_64 -arch ppc -g -Os -pipe ,;t t 368s,@ac_ct_CXX@,,;t t 369s,@AWK@,awk,;t t 370s,@INSTALL_PROGRAM@,${INSTALL},;t t 371s,@INSTALL_SCRIPT@,${INSTALL},;t t 372s,@INSTALL_DATA@,${INSTALL} -m 644,;t t 373s,@LINT@,,;t t 374s,@LINT_OPTS@,,;t t 375s,@LN_S@,ln -s,;t t 376s,@SET_MAKE@,,;t t 377s,@MAKE_LOWER_TAGS@,,;t t 378s,@MAKE_UPPER_TAGS@,#,;t t 379s,@cf_cv_makeflags@,,;t t 380s,@RANLIB@,ranlib,;t t 381s,@ac_ct_RANLIB@,ranlib,;t t 382s,@LD@,ld,;t t 383s,@ac_ct_LD@,ld,;t t 384s,@AR@,ar,;t t 385s,@ac_ct_AR@,ar,;t t 386s,@AR_OPTS@,rv,;t t 387s,@DESTDIR@,,;t t 388s,@BUILD_CC@,${CC},;t t 389s,@BUILD_CPP@,${CPP},;t t 390s,@BUILD_CFLAGS@,${CFLAGS},;t t 391s,@BUILD_CPPFLAGS@,${CPPFLAGS},;t t 392s,@BUILD_LDFLAGS@,${LDFLAGS},;t t 393s,@BUILD_LIBS@,${LIBS},;t t 394s,@BUILD_EXEEXT@,$x,;t t 395s,@BUILD_OBJEXT@,o,;t t 396s,@cf_list_models@, shared,;t t 397s,@LIBTOOL@,,;t t 398s,@LIBTOOL_CXX@,,;t t 399s,@LIBTOOL_OPTS@,,;t t 400s,@LIB_CREATE@,${AR} -cr,;t t 401s,@LIB_OBJECT@,${OBJECTS},;t t 402s,@LIB_SUFFIX@,,;t t 403s,@LIB_PREP@,ranlib,;t t 404s,@LIB_CLEAN@,,;t t 405s,@LIB_COMPILE@,,;t t 406s,@LIB_LINK@,${CC},;t t 407s,@LIB_INSTALL@,,;t t 408s,@LIB_UNINSTALL@,,;t t 409s,@DFT_LWR_MODEL@,shared,;t t 410s,@DFT_UPR_MODEL@,SHARED,;t t 411s,@TICS_NAME@,tic,;t t 412s,@TINFO_NAME@,ncurses,;t t 413s,@LIB_NAME@,ncurses,;t t 414s,@LIB_PREFIX@,lib,;t t 415s,@CC_G_OPT@,-g,;t t 416s,@CXX_G_OPT@,-g,;t t 417s,@LD_MODEL@,,;t t 418s,@CC_SHARED_OPTS@,-dynamic,;t t 419s,@LD_SHARED_OPTS@,,;t t 420s,@MK_SHARED_LIB@,${CC} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@,;t t 421s,@LINK_PROGS@,,;t t 422s,@LINK_TESTS@,,;t t 423s,@EXTRA_LDFLAGS@,,;t t 424s,@LOCAL_LDFLAGS@,,;t t 425s,@LOCAL_LDFLAGS2@,,;t t 426s,@INSTALL_LIB@,-m 644,;t t 427s,@TERMINFO_SRC@,${top_srcdir}/misc/terminfo.src,;t t 428s,@PATHSEP@,:,;t t 429s,@FALLBACK_LIST@,,;t t 430s,@WHICH_XTERM@,xterm-new,;t t 431s,@TERMINFO_DIRS@,/usr/share/terminfo,;t t 432s,@TERMINFO@,/usr/share/terminfo,;t t 433s,@MAKE_TERMINFO@,,;t t 434s,@USE_BIG_STRINGS@,1,;t t 435s,@TERMPATH@,/etc/termcap:/usr/share/misc/termcap,;t t 436s,@BROKEN_LINKER@,0,;t t 437s,@NCURSES_CH_T@,cchar_t,;t t 438s,@NCURSES_LIBUTF8@,0,;t t 439s,@NEED_WCHAR_H@,1,;t t 440s,@NCURSES_MBSTATE_T@,0,;t t 441s,@NCURSES_WCHAR_T@,0,;t t 442s,@NCURSES_WINT_T@,0,;t t 443s,@NCURSES_OK_WCHAR_T@,1,;t t 444s,@NCURSES_OK_WINT_T@,1,;t t 445s,@cf_cv_enable_lp64@,0,;t t 446s,@NCURSES_TPARM_VARARGS@,1,;t t 447s,@NCURSES_BOOL@,auto,;t t 448s,@TERMINFO_CAPS@,Caps,;t t 449s,@NCURSES_OSPEED@,short,;t t 450s,@MANPAGE_RENAMES@,no,;t t 451s,@NCURSES_EXT_FUNCS@,1,;t t 452s,@NCURSES_CONST@,/*nothing*/,;t t 453s,@NCURSES_EXT_COLORS@,0,;t t 454s,@NCURSES_MOUSE_VERSION@,1,;t t 455s,@NCURSES_SBOOL@,char,;t t 456s,@NCURSES_XNAMES@,1,;t t 457s,@PTHREAD@,,;t t 458s,@cf_cv_enable_reentrant@,0,;t t 459s,@cf_cv_enable_opaque@,NCURSES_OPAQUE,;t t 460s,@NCURSES_OPAQUE@,1,;t t 461s,@NCURSES_SIZE_T@,short,;t t 462s,@ECHO_LINK@,,;t t 463s,@EXTRA_CFLAGS@,-no-cpp-precomp,;t t 464s,@EXTRA_CXXFLAGS@,,;t t 465s,@ADA_TRACE@,FALSE,;t t 466s,@MATH_LIB@,,;t t 467s,@NCURSES_INLINE@,inline,;t t 468s,@cf_cv_typeof_chtype@,int,;t t 469s,@cf_cv_1UL@,1U,;t t 470s,@cf_cv_typeof_mmask_t@,long,;t t 471s,@HAVE_VSSCANF@,1,;t t 472s,@TEST_LIBS@,-lutil ,;t t 473s,@CXXCPP@,,;t t 474s,@CXXLDFLAGS@,,;t t 475s,@CXX_AR@,,;t t 476s,@CXX_AR_OPTS@,,;t t 477s,@CXXLIBS@,,;t t 478s,@USE_CXX_BOOL@,defined(__cplusplus),;t t 479s,@gnat_exists@,no,;t t 480s,@M4_exists@,,;t t 481s,@cf_ada_make@,,;t t 482s,@cf_ada_compiler@,,;t t 483s,@cf_ada_package@,,;t t 484s,@ADAFLAGS@,,;t t 485s,@cf_compile_generics@,,;t t 486s,@cf_generic_objects@,,;t t 487s,@PRAGMA_UNREF@,,;t t 488s,@ADA_INCLUDE@,,;t t 489s,@ADA_OBJECTS@,,;t t 490s,@ACPPFLAGS@,-I${srcdir}/../../include -I. -I../../include ,;t t 491s,@DFT_ARG_SUFFIX@,,;t t 492s,@DFT_DEP_SUFFIX@,.dylib,;t t 493s,@DFT_OBJ_SUBDIR@,obj_s,;t t 494s,@CXX_LIB_SUFFIX@,,;t t 495s,@TICS_ARG_SUFFIX@,,;t t 496s,@TICS_DEP_SUFFIX@,,;t t 497s,@TICS_LIB_SUFFIX@,,;t t 498s,@TICS_ARGS@,-L../lib -lncurses,;t t 499s,@TINFO_ARG_SUFFIX@,ncurses,;t t 500s,@TINFO_DEP_SUFFIX@,,;t t 501s,@TINFO_LIB_SUFFIX@,,;t t 502s,@TINFO_ARGS@,-L../lib -lncurses,;t t 503s,@TINFO_ARGS2@,-L../../lib -lncurses,;t t 504s,@LDFLAGS_STATIC@,,;t t 505s,@LDFLAGS_SHARED@,,;t t 506s,@WITH_OVERWRITE@,,;t t 507s,@TICS_LIST@,,;t t 508s,@TINFO_LIST@,,;t t 509s,@SHLIB_LIST@,,;t t 510s,@NCURSES_TREE@,,;t t 511s,@TEST_ARGS@,-L../lib -lform -lmenu -lpanel -lncurses ,;t t 512s,@TEST_DEPS@,../lib/libform.dylib ../lib/libmenu.dylib ../lib/libpanel.dylib ../lib/libncurses.dylib ,;t t 513s,@TEST_ARG2@,-L../../lib -lform -lmenu -lpanel -lncurses ,;t t 514s,@TEST_DEP2@,../../lib/libform.dylib ../../lib/libmenu.dylib ../../lib/libpanel.dylib ../../lib/libncurses.dylib ,;t t 515s,@ADA_SUBDIRS@,,;t t 516s,@DIRS_TO_MAKE@,lib obj_s,;t t 517s,@HAVE_TCGETATTR@,1,;t t 518s,@HAVE_TERMIO_H@,0,;t t 519s,@HAVE_TERMIOS_H@,1,;t t 520CEOF 521 522 # Split the substitutions into bite-sized pieces for seds with 523 # small command number limits, like on Digital OSF/1 and HP-UX. 524 ac_max_sed_lines=48 525 ac_sed_frag=1 # Number of current file. 526 ac_beg=1 # First line for current file. 527 ac_end=$ac_max_sed_lines # Line after last line for current file. 528 ac_more_lines=: 529 ac_sed_cmds= 530 while $ac_more_lines; do 531 if test $ac_beg -gt 1; then 532 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 533 else 534 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 535 fi 536 if test ! -s $tmp/subs.frag; then 537 ac_more_lines=false 538 else 539 # The purpose of the label and of the branching condition is to 540 # speed up the sed processing (if there are no `@' at all, there 541 # is no need to browse any of the substitutions). 542 # These are the two extra sed commands mentioned above. 543 (echo ':t 544 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 545 if test -z "$ac_sed_cmds"; then 546 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 547 else 548 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 549 fi 550 ac_sed_frag=`expr $ac_sed_frag + 1` 551 ac_beg=$ac_end 552 ac_end=`expr $ac_end + $ac_max_sed_lines` 553 fi 554 done 555 if test -z "$ac_sed_cmds"; then 556 ac_sed_cmds=cat 557 fi 558fi # test -n "$CONFIG_FILES" 559 560for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 561 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 562 case $ac_file in 563 - | *:- | *:-:* ) # input from stdin 564 cat >$tmp/stdin 565 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 566 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 567 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 568 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 569 * ) ac_file_in=$ac_file.in ;; 570 esac 571 572 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 573 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 574 X"$ac_file" : 'X\(//\)[^/]' \| \ 575 X"$ac_file" : 'X\(//\)$' \| \ 576 X"$ac_file" : 'X\(/\)' \| \ 577 . : '\(.\)' 2>/dev/null || 578echo X"$ac_file" | 579 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 580 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 581 /^X\(\/\/\)$/{ s//\1/; q; } 582 /^X\(\/\).*/{ s//\1/; q; } 583 s/.*/./; q'` 584 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 585 { case "$ac_dir" in 586 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 587 *) as_incr_dir=.;; 588esac 589as_dummy="$ac_dir" 590for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 591 case $as_mkdir_dir in 592 # Skip DOS drivespec 593 ?:) as_incr_dir=$as_mkdir_dir ;; 594 *) 595 as_incr_dir=$as_incr_dir/$as_mkdir_dir 596 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 597 ;; 598 esac 599done; } 600 601 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" 602 # A "../" for each directory in $ac_dir_suffix. 603 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` 604 else 605 ac_dir_suffix= ac_dots= 606 fi 607 608 case $srcdir in 609 .) ac_srcdir=. 610 if test -z "$ac_dots"; then 611 ac_top_srcdir=. 612 else 613 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` 614 fi ;; 615 [\\/]* | ?:[\\/]* ) 616 ac_srcdir=$srcdir$ac_dir_suffix; 617 ac_top_srcdir=$srcdir ;; 618 *) # Relative path. 619 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix 620 ac_top_srcdir=$ac_dots$srcdir ;; 621 esac 622 623 case $INSTALL in 624 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 625 *) ac_INSTALL=$ac_dots$INSTALL ;; 626 esac 627 628 if test x"$ac_file" != x-; then 629 { echo "$as_me:17610: creating $ac_file" >&5 630echo "$as_me: creating $ac_file" >&6;} 631 rm -f "$ac_file" 632 fi 633 # Let's still pretend it is `configure' which instantiates (i.e., don't 634 # use $as_me), people would be surprised to read: 635 # /* config.h. Generated automatically by config.status. */ 636 configure_input="Generated automatically from `echo $ac_file_in | 637 sed 's,.*/,,'` by configure." 638 639 # First look for the input files in the build tree, otherwise in the 640 # src tree. 641 ac_file_inputs=`IFS=: 642 for f in $ac_file_in; do 643 case $f in 644 -) echo $tmp/stdin ;; 645 [\\/$]*) 646 # Absolute (can't be DOS-style, as IFS=:) 647 test -f "$f" || { { echo "$as_me:17628: error: cannot find input file: $f" >&5 648echo "$as_me: error: cannot find input file: $f" >&2;} 649 { (exit 1); exit 1; }; } 650 echo $f;; 651 *) # Relative 652 if test -f "$f"; then 653 # Build tree 654 echo $f 655 elif test -f "$srcdir/$f"; then 656 # Source tree 657 echo $srcdir/$f 658 else 659 # /dev/null tree 660 { { echo "$as_me:17641: error: cannot find input file: $f" >&5 661echo "$as_me: error: cannot find input file: $f" >&2;} 662 { (exit 1); exit 1; }; } 663 fi;; 664 esac 665 done` || { (exit 1); exit 1; } 666 sed " 667 668:t 669/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 670s,@configure_input@,$configure_input,;t t 671s,@srcdir@,$ac_srcdir,;t t 672s,@top_srcdir@,$ac_top_srcdir,;t t 673s,@INSTALL@,$ac_INSTALL,;t t 674" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 675 rm -f $tmp/stdin 676 if test x"$ac_file" != x-; then 677 mv $tmp/out $ac_file 678 else 679 cat $tmp/out 680 rm -f $tmp/out 681 fi 682 683done 684 685# 686# CONFIG_HEADER section. 687# 688 689# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 690# NAME is the cpp macro being defined and VALUE is the value it is being given. 691# 692# ac_d sets the value in "#define NAME VALUE" lines. 693ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 694ac_dB='[ ].*$,\1#\2' 695ac_dC=' ' 696ac_dD=',;t' 697# ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 698ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 699ac_iB='\([ ]\),\1#\2define\3' 700ac_iC=' ' 701ac_iD='\4,;t' 702# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 703ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 704ac_uB='$,\1#\2define\3' 705ac_uC=' ' 706ac_uD=',;t' 707 708for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 709 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 710 case $ac_file in 711 - | *:- | *:-:* ) # input from stdin 712 cat >$tmp/stdin 713 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 714 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 715 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 716 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 717 * ) ac_file_in=$ac_file.in ;; 718 esac 719 720 test x"$ac_file" != x- && { echo "$as_me:17707: creating $ac_file" >&5 721echo "$as_me: creating $ac_file" >&6;} 722 723 # First look for the input files in the build tree, otherwise in the 724 # src tree. 725 ac_file_inputs=`IFS=: 726 for f in $ac_file_in; do 727 case $f in 728 -) echo $tmp/stdin ;; 729 [\\/$]*) 730 # Absolute (can't be DOS-style, as IFS=:) 731 test -f "$f" || { { echo "$as_me:17718: error: cannot find input file: $f" >&5 732echo "$as_me: error: cannot find input file: $f" >&2;} 733 { (exit 1); exit 1; }; } 734 echo $f;; 735 *) # Relative 736 if test -f "$f"; then 737 # Build tree 738 echo $f 739 elif test -f "$srcdir/$f"; then 740 # Source tree 741 echo $srcdir/$f 742 else 743 # /dev/null tree 744 { { echo "$as_me:17731: error: cannot find input file: $f" >&5 745echo "$as_me: error: cannot find input file: $f" >&2;} 746 { (exit 1); exit 1; }; } 747 fi;; 748 esac 749 done` || { (exit 1); exit 1; } 750 # Remove the trailing spaces. 751 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 752 753 rm -f conftest.frag 754 cat >> conftest.frag <<CEOF 755 756#define SYSTEM_NAME "darwin10.0" 757#define CC_HAS_PROTOS 1 758#define HAVE_LONG_FILE_NAMES 1 759#define USE_DATABASE 1 760#define TERMINFO_DIRS "/usr/share/terminfo" 761#define TERMINFO "/usr/share/terminfo" 762#define HAVE_BIG_CORE 1 763#define USE_TERMCAP 1 764#define TERMPATH "/etc/termcap:/usr/share/misc/termcap" 765#define USE_HOME_TERMINFO 1 766#define USE_ROOT_ENVIRON 1 767#define HAVE_REMOVE 1 768#define HAVE_UNLINK 1 769#define HAVE_LINK 1 770#define HAVE_SYMLINK 1 771#define USE_LINKS 1 772#define HAVE_LANGINFO_CODESET 1 773#define USE_WIDEC_SUPPORT 1 774#define HAVE_PUTWC 1 775#define HAVE_BTOWC 1 776#define HAVE_WCTOB 1 777#define HAVE_MBTOWC 1 778#define HAVE_WCTOMB 1 779#define HAVE_MBLEN 1 780#define HAVE_MBRLEN 1 781#define HAVE_MBRTOWC 1 782#define HAVE_WCSRTOMBS 1 783#define HAVE_MBSRTOWCS 1 784#define HAVE_WCSTOMBS 1 785#define HAVE_MBSTOWCS 1 786#define NEED_WCHAR_H 1 787#define HAVE_FSEEKO 1 788#define HAVE_CURSES_VERSION 1 789#define HAVE_HAS_KEY 1 790#define HAVE_RESIZETERM 1 791#define HAVE_RESIZE_TERM 1 792#define HAVE_USE_DEFAULT_COLORS 1 793CEOF 794 cat >> conftest.frag <<CEOF 795#define HAVE_WRESIZE 1 796#define NCURSES_EXT_FUNCS 1 797#define NCURSES_NO_PADDING 1 798#define STDC_HEADERS 1 799#define HAVE_SYS_TYPES_H 1 800#define HAVE_SYS_STAT_H 1 801#define HAVE_STDLIB_H 1 802#define HAVE_STRING_H 1 803#define HAVE_MEMORY_H 1 804#define HAVE_STRINGS_H 1 805#define HAVE_INTTYPES_H 1 806#define HAVE_STDINT_H 1 807#define HAVE_UNISTD_H 1 808#define SIZEOF_SIGNED_CHAR 1 809#define USE_SIGWINCH 1 810#define USE_ASSUMED_COLOR 1 811#define USE_HASHMAP 1 812#define GCC_SCANF 1 813#define GCC_PRINTF 1 814#define GCC_UNUSED __attribute__((unused)) 815#define GCC_NORETURN __attribute__((noreturn)) 816#define NDEBUG 1 817#define HAVE_NC_ALLOC_H 1 818#define HAVE_GETTIMEOFDAY 1 819#define STDC_HEADERS 1 820#define HAVE_DIRENT_H 1 821#define TIME_WITH_SYS_TIME 1 822#define HAVE_REGEX_H_FUNCS 1 823#define HAVE_FCNTL_H 1 824#define HAVE_GETOPT_H 1 825#define HAVE_LIMITS_H 1 826#define HAVE_LOCALE_H 1 827#define HAVE_POLL_H 1 828#define HAVE_SYS_IOCTL_H 1 829#define HAVE_SYS_PARAM_H 1 830#define HAVE_SYS_POLL_H 1 831#define HAVE_SYS_SELECT_H 1 832#define HAVE_SYS_TIME_H 1 833CEOF 834 cat >> conftest.frag <<CEOF 835#define HAVE_SYS_TIMES_H 1 836#define HAVE_TTYENT_H 1 837#define HAVE_UNISTD_H 1 838#define HAVE_WCTYPE_H 1 839#define HAVE_SYS_TIME_SELECT 1 840#define SIG_ATOMIC_T volatile sig_atomic_t 841#define TYPEOF_CHTYPE int 842#define HAVE_ERRNO 1 843#define HAVE_GETCWD 1 844#define HAVE_GETEGID 1 845#define HAVE_GETEUID 1 846#define HAVE_GETTTYNAM 1 847#define HAVE_ISSETUGID 1 848#define HAVE_POLL 1 849#define HAVE_REMOVE 1 850#define HAVE_SELECT 1 851#define HAVE_SETBUF 1 852#define HAVE_SETBUFFER 1 853#define HAVE_SETVBUF 1 854#define HAVE_SIGACTION 1 855#define HAVE_SIGVEC 1 856#define HAVE_STRDUP 1 857#define HAVE_STRSTR 1 858#define HAVE_TCGETPGRP 1 859#define HAVE_TIMES 1 860#define HAVE_VSNPRINTF 1 861#define HAVE_ISASCII 1 862#define HAVE_NANOSLEEP 1 863#define HAVE_TERMIOS_H 1 864#define HAVE_UNISTD_H 1 865#define HAVE_TCGETATTR 1 866#define HAVE_VSSCANF 1 867#define HAVE_MKSTEMP 1 868#define RETSIGTYPE void 869#define HAVE_SIZECHANGE 1 870#define USE_OPENPTY_HEADER <util.h> 871#define USE_XTERM_PTY 1 872#define HAVE_SLK_COLOR 1 873CEOF 874 cat >> conftest.frag <<CEOF 875#define HAVE_PANEL_H 1 876#define HAVE_LIBPANEL 1 877#define HAVE_MENU_H 1 878#define HAVE_LIBMENU 1 879#define HAVE_FORM_H 1 880#define HAVE_LIBFORM 1 881#define NCURSES_PATHSEP ':' 882#define NCURSES_VERSION_STRING "5.7.20081102" 883CEOF 884 cat >> conftest.edit <<CEOF 885/@DEFS@/r conftest.frag 886/@DEFS@/d 887CEOF 888sed -f conftest.edit $tmp/in > $tmp/out 889rm -f $tmp/in 890mv $tmp/out $tmp/in 891rm -f conftest.edit conftest.frag 892 893 # Let's still pretend it is `configure' which instantiates (i.e., don't 894 # use $as_me), people would be surprised to read: 895 # /* config.h. Generated automatically by config.status. */ 896 if test x"$ac_file" = x-; then 897 echo "/* Generated automatically by configure. */" >$tmp/config.h 898 else 899 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h 900 fi 901 cat $tmp/in >>$tmp/config.h 902 rm -f $tmp/in 903 if test x"$ac_file" != x-; then 904 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then 905 { echo "$as_me:17789: $ac_file is unchanged" >&5 906echo "$as_me: $ac_file is unchanged" >&6;} 907 else 908 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 909 X"$ac_file" : 'X\(//\)[^/]' \| \ 910 X"$ac_file" : 'X\(//\)$' \| \ 911 X"$ac_file" : 'X\(/\)' \| \ 912 . : '\(.\)' 2>/dev/null || 913echo X"$ac_file" | 914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 915 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 916 /^X\(\/\/\)$/{ s//\1/; q; } 917 /^X\(\/\).*/{ s//\1/; q; } 918 s/.*/./; q'` 919 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 920 { case "$ac_dir" in 921 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 922 *) as_incr_dir=.;; 923esac 924as_dummy="$ac_dir" 925for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 926 case $as_mkdir_dir in 927 # Skip DOS drivespec 928 ?:) as_incr_dir=$as_mkdir_dir ;; 929 *) 930 as_incr_dir=$as_incr_dir/$as_mkdir_dir 931 test -d "$as_incr_dir" || mkdir "$as_incr_dir" 932 ;; 933 esac 934done; } 935 936 fi 937 rm -f $ac_file 938 mv $tmp/config.h $ac_file 939 fi 940 else 941 cat $tmp/config.h 942 rm -f $tmp/config.h 943 fi 944done 945 946# 947# CONFIG_COMMANDS section. 948# 949for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 950 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 951 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 952 953 case $ac_dest in 954 default ) 955 956for cf_dir in test 957do 958 if test ! -d $srcdir/$cf_dir; then 959 continue 960 elif test -f $srcdir/$cf_dir/programs; then 961 $AWK -f $srcdir/test/mk-test.awk ECHO_LINK="$ECHO_LINK" $srcdir/$cf_dir/programs >>$cf_dir/Makefile 962 fi 963done 964 965 case $cf_cv_system_name in #(vi 966 OS/2*|os2*) #(vi 967 LIB_PREFIX='' 968 ;; 969 *) LIB_PREFIX='lib' 970 ;; 971 esac 972cf_prefix=$LIB_PREFIX 973 974if test $cf_cv_shlib_version = cygdll ; then 975 TINFO_NAME=$TINFO_ARG_SUFFIX 976 TINFO_SUFFIX=.dll 977fi 978 979for cf_dir in $SRC_SUBDIRS 980do 981 if test ! -d $srcdir/$cf_dir ; then 982 continue 983 elif test -f $srcdir/$cf_dir/modules; then 984 985 SHARED_LIB= 986 LIBS_TO_MAKE= 987 for cf_item in $cf_LIST_MODELS 988 do 989 990 case $cf_item in 991 libtool) 992 cf_suffix='.la' 993 cf_depsuf=$cf_suffix 994 ;; 995 normal) 996 cf_suffix='.a' 997 cf_depsuf=$cf_suffix 998 ;; 999 debug) 1000 cf_suffix='_g.a' 1001 cf_depsuf=$cf_suffix 1002 ;; 1003 profile) 1004 cf_suffix='_p.a' 1005 cf_depsuf=$cf_suffix 1006 ;; 1007 shared) 1008 case $cf_cv_system_name in 1009 cygwin*) 1010 cf_suffix='.dll' 1011 cf_depsuf='.dll.a' 1012 ;; 1013 darwin*) 1014 cf_suffix='.dylib' 1015 cf_depsuf=$cf_suffix 1016 ;; 1017 hpux*) 1018 case $target in 1019 ia64*) 1020 cf_suffix='.so' 1021 cf_depsuf=$cf_suffix 1022 ;; 1023 *) 1024 cf_suffix='.sl' 1025 cf_depsuf=$cf_suffix 1026 ;; 1027 esac 1028 ;; 1029 *) cf_suffix='.so' 1030 cf_depsuf=$cf_suffix 1031 ;; 1032 esac 1033 esac 1034 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}" 1035 test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}" 1036 1037 if test $cf_item = shared ; then 1038 if test "$cf_cv_do_symlinks" = yes ; then 1039 case "$cf_cv_shlib_version" in #(vi 1040 rel) #(vi 1041 case "$cf_cv_system_name" in #(vi 1042 darwin*) 1043 case .${LIB_SUFFIX} in 1044 .w*) 1045 cf_suffix=`echo $cf_suffix | sed 's/^w//'` 1046 cf_suffix=w'.${REL_VERSION}'"$cf_suffix" 1047 ;; 1048 *) 1049 cf_suffix='.${REL_VERSION}'"$cf_suffix" 1050 ;; 1051 esac 1052 ;; #(vi 1053 *) cf_suffix="$cf_suffix"'.${REL_VERSION}' ;; 1054 esac 1055 ;; 1056 abi) 1057 case "$cf_cv_system_name" in #(vi 1058 darwin*) 1059 case .${LIB_SUFFIX} in 1060 .w*) 1061 cf_suffix=`echo $cf_suffix | sed 's/^w//'` 1062 cf_suffix=w'.${ABI_VERSION}'"$cf_suffix" 1063 ;; 1064 *) 1065 cf_suffix='.${ABI_VERSION}'"$cf_suffix" 1066 ;; 1067 esac 1068 ;; #(vi 1069 *) cf_suffix="$cf_suffix"'.${ABI_VERSION}' ;; 1070 esac 1071 ;; 1072 esac 1073 fi 1074 # cygwin needs import library, and has unique naming convention 1075 # use autodetected ${cf_prefix} for import lib and static lib, but 1076 # use 'cyg' prefix for shared lib. 1077 if test $cf_cv_shlib_version = cygdll ; then 1078 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'` 1079 LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/cyg${cf_dir}${cf_cygsuf}" 1080 continue 1081 fi 1082 fi 1083 LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/${cf_prefix}${cf_dir}${cf_suffix}" 1084 done 1085 1086 if test $cf_dir = ncurses ; then 1087 cf_subsets="$LIB_SUBSETS" 1088 cf_r_parts="$cf_subsets" 1089 cf_liblist="$LIBS_TO_MAKE" 1090 1091 while test -n "$cf_r_parts" 1092 do 1093 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'` 1094 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'` 1095 if test "$cf_l_parts" != "$cf_r_parts" ; then 1096 cf_item= 1097 case $cf_l_parts in #(vi 1098 *termlib*) #(vi 1099 cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g` 1100 ;; 1101 *ticlib*) 1102 cf_item=`echo $cf_liblist |sed -e s%${LIB_NAME}${LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g` 1103 ;; 1104 *) 1105 break 1106 ;; 1107 esac 1108 if test -n "$cf_item"; then 1109 LIBS_TO_MAKE="$cf_item $LIBS_TO_MAKE" 1110 fi 1111 else 1112 break 1113 fi 1114 done 1115 else 1116 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'` 1117 fi 1118 1119 sed -e "s%@LIBS_TO_MAKE@%$LIBS_TO_MAKE%" \ 1120 -e "s%@SHARED_LIB@%$SHARED_LIB%" \ 1121 $cf_dir/Makefile >$cf_dir/Makefile.out 1122 mv $cf_dir/Makefile.out $cf_dir/Makefile 1123 1124 $AWK -f $srcdir/mk-0th.awk \ 1125 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" \ 1126 $srcdir/$cf_dir/modules >>$cf_dir/Makefile 1127 1128 for cf_subset in $cf_subsets 1129 do 1130 cf_subdirs= 1131 for cf_item in $cf_LIST_MODELS 1132 do 1133 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})" 1134 1135cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%` 1136 1137 case $cf_item in 1138 libtool) 1139 cf_suffix='.la' 1140 cf_depsuf=$cf_suffix 1141 ;; 1142 normal) 1143 cf_suffix='.a' 1144 cf_depsuf=$cf_suffix 1145 ;; 1146 debug) 1147 cf_suffix='_g.a' 1148 cf_depsuf=$cf_suffix 1149 ;; 1150 profile) 1151 cf_suffix='_p.a' 1152 cf_depsuf=$cf_suffix 1153 ;; 1154 shared) 1155 case $cf_cv_system_name in 1156 cygwin*) 1157 cf_suffix='.dll' 1158 cf_depsuf='.dll.a' 1159 ;; 1160 darwin*) 1161 cf_suffix='.dylib' 1162 cf_depsuf=$cf_suffix 1163 ;; 1164 hpux*) 1165 case $target in 1166 ia64*) 1167 cf_suffix='.so' 1168 cf_depsuf=$cf_suffix 1169 ;; 1170 *) 1171 cf_suffix='.sl' 1172 cf_depsuf=$cf_suffix 1173 ;; 1174 esac 1175 ;; 1176 *) cf_suffix='.so' 1177 cf_depsuf=$cf_suffix 1178 ;; 1179 esac 1180 esac 1181 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}" 1182 test -n "$LIB_SUFFIX" && cf_depsuf="${LIB_SUFFIX}${cf_depsuf}" 1183 1184 case $cf_item in 1185 libtool) cf_subdir='obj_lo' ;; 1186 normal) cf_subdir='objects' ;; 1187 debug) cf_subdir='obj_g' ;; 1188 profile) cf_subdir='obj_p' ;; 1189 shared) 1190 case $cf_cv_system_name in #(vi 1191 cygwin) #(vi 1192 cf_subdir='objects' ;; 1193 *) 1194 cf_subdir='obj_s' ;; 1195 esac 1196 esac 1197 1198 # Test for case where we build libtinfo with a different name. 1199 cf_libname=$cf_dir 1200 if test $cf_dir = ncurses ; then 1201 case $cf_subset in 1202 *base*) 1203 cf_libname=${cf_libname}$LIB_SUFFIX 1204 ;; 1205 *termlib*) 1206 cf_libname=$TINFO_LIB_SUFFIX 1207 ;; 1208 ticlib*) 1209 cf_libname=$TICS_LIB_SUFFIX 1210 ;; 1211 esac 1212 else 1213 cf_libname=${cf_libname}$LIB_SUFFIX 1214 fi 1215 if test -n "${DFT_ARG_SUFFIX}" ; then 1216 # undo $LIB_SUFFIX add-on in CF_LIB_SUFFIX 1217 cf_suffix=`echo $cf_suffix |sed -e "s%^${LIB_SUFFIX}%%"` 1218 fi 1219 1220 # These dependencies really are for development, not 1221 # builds, but they are useful in porting, too. 1222 cf_depend="../include/ncurses_cfg.h" 1223 if test "$srcdir" = "."; then 1224 cf_reldir="." 1225 else 1226 cf_reldir="\${srcdir}" 1227 fi 1228 1229 if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then 1230 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h" 1231 elif test -f $srcdir/$cf_dir/curses.priv.h; then 1232 cf_depend="$cf_depend $cf_reldir/curses.priv.h" 1233 fi 1234 1235 cf_dir_suffix= 1236 old_cf_suffix="$cf_suffix" 1237 if test "$cf_cv_shlib_version_infix" = yes ; then 1238 if test -n "$LIB_SUFFIX" ; then 1239 case $LIB_SUFFIX in 1240 w*) 1241 cf_libname=`echo $cf_libname | sed 's/w$//'` 1242 cf_suffix=`echo $cf_suffix | sed 's/^w//'` 1243 cf_dir_suffix=w 1244 ;; 1245 esac 1246 fi 1247 fi 1248 1249 $AWK -f $srcdir/mk-1st.awk \ 1250 name=${cf_libname}${cf_dir_suffix} \ 1251 traces=$LIB_TRACING \ 1252 MODEL=$cf_ITEM \ 1253 model=$cf_subdir \ 1254 prefix=$cf_prefix \ 1255 suffix=$cf_suffix \ 1256 subset=$cf_subset \ 1257 TermlibRoot=$TINFO_NAME \ 1258 TermlibSuffix=$TINFO_SUFFIX \ 1259 ShlibVer=$cf_cv_shlib_version \ 1260 ShlibVerInfix=$cf_cv_shlib_version_infix \ 1261 ReLink=${cf_cv_do_relink-no} \ 1262 DoLinks=$cf_cv_do_symlinks \ 1263 rmSoLocs=$cf_cv_rm_so_locs \ 1264 ldconfig="$LDCONFIG" \ 1265 overwrite=$WITH_OVERWRITE \ 1266 depend="$cf_depend" \ 1267 host="$host" \ 1268 $srcdir/$cf_dir/modules >>$cf_dir/Makefile 1269 1270 cf_suffix="$old_cf_suffix" 1271 1272 for cf_subdir2 in $cf_subdirs lib 1273 do 1274 test $cf_subdir = $cf_subdir2 && break 1275 done 1276 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \ 1277 $AWK -f $srcdir/mk-2nd.awk \ 1278 name=$cf_dir \ 1279 traces=$LIB_TRACING \ 1280 MODEL=$cf_ITEM \ 1281 model=$cf_subdir \ 1282 subset=$cf_subset \ 1283 srcdir=$srcdir \ 1284 echo=$WITH_ECHO \ 1285 crenames=$cf_cv_prog_CC_c_o \ 1286 cxxrenames=$cf_cv_prog_CXX_c_o \ 1287 $srcdir/$cf_dir/modules >>$cf_dir/Makefile 1288 cf_subdirs="$cf_subdirs $cf_subdir" 1289 done 1290 done 1291 fi 1292 1293 echo ' cd '$cf_dir' && ${MAKE} ${CF_MFLAGS} $@' >>Makefile 1294done 1295 1296for cf_dir in $SRC_SUBDIRS 1297do 1298 if test ! -d $srcdir/$cf_dir ; then 1299 continue 1300 fi 1301 1302 if test -f $cf_dir/Makefile ; then 1303 case "$cf_dir" in 1304 Ada95) #(vi 1305 echo 'libs \' >> Makefile 1306 echo 'install.libs \' >> Makefile 1307 echo 'uninstall.libs ::' >> Makefile 1308 echo ' cd '$cf_dir' && ${MAKE} ${CF_MFLAGS} $@' >> Makefile 1309 ;; 1310 esac 1311 fi 1312 1313 if test -f $srcdir/$cf_dir/modules; then 1314 echo >> Makefile 1315 if test -f $srcdir/$cf_dir/headers; then 1316cat >> Makefile <<CF_EOF 1317install.includes \\ 1318uninstall.includes \\ 1319CF_EOF 1320 fi 1321if test "$cf_dir" != "c++" ; then 1322echo 'lint \' >> Makefile 1323fi 1324cat >> Makefile <<CF_EOF 1325libs \\ 1326lintlib \\ 1327install.libs \\ 1328uninstall.libs \\ 1329install.$cf_dir \\ 1330uninstall.$cf_dir :: 1331 cd $cf_dir && \${MAKE} \${CF_MFLAGS} \$@ 1332CF_EOF 1333 elif test -f $srcdir/$cf_dir/headers; then 1334cat >> Makefile <<CF_EOF 1335 1336libs \\ 1337install.libs \\ 1338uninstall.libs \\ 1339install.includes \\ 1340uninstall.includes :: 1341 cd $cf_dir && \${MAKE} \${CF_MFLAGS} \$@ 1342CF_EOF 1343fi 1344done 1345 1346cat >> Makefile <<CF_EOF 1347 1348install.libs uninstall.libs \\ 1349install.data uninstall.data :: 1350$MAKE_TERMINFO cd misc && \${MAKE} \${CF_MFLAGS} \$@ 1351 1352install.man \\ 1353uninstall.man :: 1354 cd man && \${MAKE} \${CF_MFLAGS} \$@ 1355 1356distclean :: 1357 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h 1358 rm -f headers.sh headers.sed mk_shared_lib.sh 1359 rm -rf \${DIRS_TO_MAKE} 1360CF_EOF 1361 1362# Special case: tack's manpage lives in its own directory. 1363if test -d tack ; then 1364if test -f $srcdir/$tack.h; then 1365cat >> Makefile <<CF_EOF 1366 1367install.man \\ 1368uninstall.man :: 1369 cd tack && \${MAKE} \${CF_MFLAGS} \$@ 1370CF_EOF 1371fi 1372fi 1373 1374rm -f headers.sed headers.sh 1375 1376echo creating headers.sh 1377cat >headers.sh <<CF_EOF 1378#! /bin/sh 1379# This shell script is generated by the 'configure' script. It is invoked in a 1380# subdirectory of the build tree. It generates a sed-script in the parent 1381# directory that is used to adjust includes for header files that reside in a 1382# subdirectory of /usr/include, etc. 1383PRG="" 1384while test \$# != 3 1385do 1386PRG="\$PRG \$1"; shift 1387done 1388DST=\$1 1389REF=\$2 1390SRC=\$3 1391TMPSRC=\${TMPDIR-/tmp}/\`basename \$SRC\`\$\$ 1392TMPSED=\${TMPDIR-/tmp}/headers.sed\$\$ 1393echo installing \$SRC in \$DST 1394CF_EOF 1395 1396if test $WITH_CURSES_H = yes; then 1397 cat >>headers.sh <<CF_EOF 1398case \$DST in 1399/*/include/*) 1400 END=\`basename \$DST\` 1401 for i in \`cat \$REF/../*/headers |fgrep -v "#"\` 1402 do 1403 NAME=\`basename \$i\` 1404 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED 1405 done 1406 ;; 1407*) 1408 echo "" >> \$TMPSED 1409 ;; 1410esac 1411CF_EOF 1412 1413else 1414 cat >>headers.sh <<CF_EOF 1415case \$DST in 1416/*/include/*) 1417 END=\`basename \$DST\` 1418 for i in \`cat \$REF/../*/headers |fgrep -v "#"\` 1419 do 1420 NAME=\`basename \$i\` 1421 if test "\$NAME" = "curses.h" 1422 then 1423 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED 1424 NAME=ncurses.h 1425 fi 1426 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED 1427 done 1428 ;; 1429*) 1430 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED 1431 ;; 1432esac 1433CF_EOF 1434fi 1435cat >>headers.sh <<CF_EOF 1436rm -f \$TMPSRC 1437sed -f \$TMPSED \$SRC > \$TMPSRC 1438NAME=\`basename \$SRC\` 1439CF_EOF 1440if test $WITH_CURSES_H != yes; then 1441 cat >>headers.sh <<CF_EOF 1442test "\$NAME" = "curses.h" && NAME=ncurses.h 1443CF_EOF 1444fi 1445cat >>headers.sh <<CF_EOF 1446# Just in case someone gzip'd manpages, remove the conflicting copy. 1447test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz 1448 1449eval \$PRG \$TMPSRC \$DST/\$NAME 1450rm -f \$TMPSRC \$TMPSED 1451CF_EOF 1452 1453chmod 0755 headers.sh 1454 1455for cf_dir in $SRC_SUBDIRS 1456do 1457 if test ! -d $srcdir/$cf_dir ; then 1458 continue 1459 fi 1460 1461 if test -f $srcdir/$cf_dir/headers; then 1462 $AWK -f $srcdir/mk-hdr.awk \ 1463 subset="$LIB_SUBSETS" \ 1464 compat="$WITH_CURSES_H" \ 1465 $srcdir/$cf_dir/headers >>$cf_dir/Makefile 1466 fi 1467 1468 if test -f $srcdir/$cf_dir/modules; then 1469 if test "$cf_dir" != "c++" ; then 1470 cat >>$cf_dir/Makefile <<"CF_EOF" 1471depend : ${AUTO_SRC} 1472 makedepend -- ${CPPFLAGS} -- ${C_SRC} 1473 1474# DO NOT DELETE THIS LINE -- make depend depends on it. 1475CF_EOF 1476 fi 1477 fi 1478done 1479 1480 ;; 1481 esac 1482done 1483 1484{ (exit 0); exit 0; } 1485