3 # From configure.in Revision: 1.64
6 # Guess values for system-dependent variables and create Makefiles.
7 # Generated automatically using autoconf version 2.12.970309
8 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
15 ac_default_prefix=/usr/local
16 # Any additions from configure.in:
18 --enable-add-ons=DIR... used to check if we are a glibc add-on."
20 --without-cxx suppress check for C++"
22 --with-install-prefix prefixes actual install-location"
24 --with-shared generate shared-libraries"
26 --with-normal generate normal-libraries (default)"
28 --with-debug generate debug-libraries (default)"
30 --with-profile generate profile-libraries"
32 --with-dbmalloc test: use Conor Cahill's dbmalloc library"
34 --with-dmalloc test: use Gray Watson's dmalloc library"
36 --with-gpm use Alessandro Rubini's GPM library"
38 --disable-overwrite leave out the link to -lcurses"
40 --enable-big-core assume machine has lots of memory"
42 --enable-termcap compile in termcap fallback support"
44 --enable-getcap fast termcap load, no xrefs to terminfo"
46 --enable-getcap-cache cache translated termcaps in ~/.terminfo"
48 --enable-symlinks make tic use symbolic links not hard links"
50 --enable-bsdpad recognize BSD-style prefix padding"
52 --enable-const compile with extra/non-standard const"
54 --with-rcs-ids build: compile-in RCS identifiers"
56 --enable-echo build: display \"compiling\" commands (default)"
58 --enable-warnings build: turn on GCC compiler warnings"
60 --enable-assertions test: turn on generation of assertion code"
62 --disable-leaks test: suppress permanent memory-leaks"
64 --enable-expanded test: generate functions for certain macros"
66 --disable-macros test: use functions rather than macros"
68 # Initialize some variables set by options.
69 # The variables have the same names as the options, with
70 # dashes changed to underlines.
72 cache_file=./config.cache
81 program_transform_name=s,x,x,
89 bindir='${exec_prefix}/bin'
90 sbindir='${exec_prefix}/sbin'
91 libexecdir='${exec_prefix}/libexec'
92 datadir='${prefix}/share'
93 sysconfdir='${prefix}/etc'
94 sharedstatedir='${prefix}/com'
95 localstatedir='${prefix}/var'
96 libdir='${exec_prefix}/lib'
97 includedir='${prefix}/include'
98 oldincludedir='/usr/include'
99 infodir='${prefix}/info'
100 mandir='${prefix}/man'
102 # Initialize some other variables.
105 # Maximum number of lines to put in a shell here document.
112 # If the previous option needs an argument, assign it.
113 if test -n "$ac_prev"; then
114 eval "$ac_prev=\$ac_option"
120 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
124 # Accept the important Cygnus configure options, so we can diagnose typos.
128 -bindir | --bindir | --bindi | --bind | --bin | --bi)
130 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
131 bindir="$ac_optarg" ;;
133 -build | --build | --buil | --bui | --bu)
135 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
136 build="$ac_optarg" ;;
138 -cache-file | --cache-file | --cache-fil | --cache-fi \
139 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
140 ac_prev=cache_file ;;
141 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
142 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
143 cache_file="$ac_optarg" ;;
145 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
147 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
149 datadir="$ac_optarg" ;;
151 -disable-* | --disable-*)
152 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
153 # Reject names that are not valid shell variable names.
154 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
155 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
157 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
158 eval "enable_${ac_feature}=no" ;;
160 -enable-* | --enable-*)
161 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
162 # Reject names that are not valid shell variable names.
163 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
164 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
166 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
171 eval "enable_${ac_feature}='$ac_optarg'" ;;
173 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
174 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
175 | --exec | --exe | --ex)
176 ac_prev=exec_prefix ;;
177 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
178 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
179 | --exec=* | --exe=* | --ex=*)
180 exec_prefix="$ac_optarg" ;;
182 -gas | --gas | --ga | --g)
183 # Obsolete; use --with-gas.
186 -help | --help | --hel | --he)
187 # Omit some internal or obsolete options to make the list less imposing.
188 # This message is too long to be a string in the A/UX 3.1 sh.
190 Usage: configure [options] [host]
191 Options: [defaults in brackets after descriptions]
193 --cache-file=FILE cache test results in FILE
194 --help print this message
195 --no-create do not create output files
196 --quiet, --silent do not print \`checking...' messages
197 --version print the version of autoconf that created configure
198 Directory and file names:
199 --prefix=PREFIX install architecture-independent files in PREFIX
201 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
203 --bindir=DIR user executables in DIR [EPREFIX/bin]
204 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
205 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
206 --datadir=DIR read-only architecture-independent data in DIR
208 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
209 --sharedstatedir=DIR modifiable architecture-independent data in DIR
211 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
212 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
213 --includedir=DIR C header files in DIR [PREFIX/include]
214 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
215 --infodir=DIR info documentation in DIR [PREFIX/info]
216 --mandir=DIR man documentation in DIR [PREFIX/man]
217 --srcdir=DIR find the sources in DIR [configure dir or ..]
218 --program-prefix=PREFIX prepend PREFIX to installed program names
219 --program-suffix=SUFFIX append SUFFIX to installed program names
220 --program-transform-name=PROGRAM
221 run sed PROGRAM on installed program names
225 --build=BUILD configure for building on BUILD [BUILD=HOST]
226 --host=HOST configure for HOST [guessed]
227 --target=TARGET configure for TARGET [TARGET=HOST]
228 Features and packages:
229 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
230 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
231 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
232 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
233 --x-includes=DIR X include files are in DIR
234 --x-libraries=DIR X library files are in DIR
236 if test -n "$ac_help"; then
237 echo "--enable and --with options recognized:$ac_help"
241 -host | --host | --hos | --ho)
243 -host=* | --host=* | --hos=* | --ho=*)
246 -includedir | --includedir | --includedi | --included | --include \
247 | --includ | --inclu | --incl | --inc)
248 ac_prev=includedir ;;
249 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
250 | --includ=* | --inclu=* | --incl=* | --inc=*)
251 includedir="$ac_optarg" ;;
253 -infodir | --infodir | --infodi | --infod | --info | --inf)
255 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
256 infodir="$ac_optarg" ;;
258 -libdir | --libdir | --libdi | --libd)
260 -libdir=* | --libdir=* | --libdi=* | --libd=*)
261 libdir="$ac_optarg" ;;
263 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
264 | --libexe | --libex | --libe)
265 ac_prev=libexecdir ;;
266 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
267 | --libexe=* | --libex=* | --libe=*)
268 libexecdir="$ac_optarg" ;;
270 -localstatedir | --localstatedir | --localstatedi | --localstated \
271 | --localstate | --localstat | --localsta | --localst \
272 | --locals | --local | --loca | --loc | --lo)
273 ac_prev=localstatedir ;;
274 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
275 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
276 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
277 localstatedir="$ac_optarg" ;;
279 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
281 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
282 mandir="$ac_optarg" ;;
285 # Obsolete; use --without-fp.
288 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
292 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
293 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
296 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
297 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
298 | --oldin | --oldi | --old | --ol | --o)
299 ac_prev=oldincludedir ;;
300 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
301 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
302 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
303 oldincludedir="$ac_optarg" ;;
305 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
307 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
308 prefix="$ac_optarg" ;;
310 -program-prefix | --program-prefix | --program-prefi | --program-pref \
311 | --program-pre | --program-pr | --program-p)
312 ac_prev=program_prefix ;;
313 -program-prefix=* | --program-prefix=* | --program-prefi=* \
314 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
315 program_prefix="$ac_optarg" ;;
317 -program-suffix | --program-suffix | --program-suffi | --program-suff \
318 | --program-suf | --program-su | --program-s)
319 ac_prev=program_suffix ;;
320 -program-suffix=* | --program-suffix=* | --program-suffi=* \
321 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
322 program_suffix="$ac_optarg" ;;
324 -program-transform-name | --program-transform-name \
325 | --program-transform-nam | --program-transform-na \
326 | --program-transform-n | --program-transform- \
327 | --program-transform | --program-transfor \
328 | --program-transfo | --program-transf \
329 | --program-trans | --program-tran \
330 | --progr-tra | --program-tr | --program-t)
331 ac_prev=program_transform_name ;;
332 -program-transform-name=* | --program-transform-name=* \
333 | --program-transform-nam=* | --program-transform-na=* \
334 | --program-transform-n=* | --program-transform-=* \
335 | --program-transform=* | --program-transfor=* \
336 | --program-transfo=* | --program-transf=* \
337 | --program-trans=* | --program-tran=* \
338 | --progr-tra=* | --program-tr=* | --program-t=*)
339 program_transform_name="$ac_optarg" ;;
341 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
342 | -silent | --silent | --silen | --sile | --sil)
345 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
347 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
349 sbindir="$ac_optarg" ;;
351 -sharedstatedir | --sharedstatedir | --sharedstatedi \
352 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
353 | --sharedst | --shareds | --shared | --share | --shar \
355 ac_prev=sharedstatedir ;;
356 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
357 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
358 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
360 sharedstatedir="$ac_optarg" ;;
362 -site | --site | --sit)
364 -site=* | --site=* | --sit=*)
367 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
369 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
370 srcdir="$ac_optarg" ;;
372 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
373 | --syscon | --sysco | --sysc | --sys | --sy)
374 ac_prev=sysconfdir ;;
375 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
376 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
377 sysconfdir="$ac_optarg" ;;
379 -target | --target | --targe | --targ | --tar | --ta | --t)
381 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
382 target="$ac_optarg" ;;
384 -v | -verbose | --verbose | --verbos | --verbo | --verb)
387 -version | --version | --versio | --versi | --vers)
388 echo "configure generated by autoconf version 2.12.970309"
392 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
393 # Reject names that are not valid shell variable names.
394 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
395 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
397 ac_package=`echo $ac_package| sed 's/-/_/g'`
402 eval "with_${ac_package}='$ac_optarg'" ;;
404 -without-* | --without-*)
405 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
406 # Reject names that are not valid shell variable names.
407 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
408 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
410 ac_package=`echo $ac_package| sed 's/-/_/g'`
411 eval "with_${ac_package}=no" ;;
414 # Obsolete; use --with-x.
417 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
418 | --x-incl | --x-inc | --x-in | --x-i)
419 ac_prev=x_includes ;;
420 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
421 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
422 x_includes="$ac_optarg" ;;
424 -x-libraries | --x-libraries | --x-librarie | --x-librari \
425 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
426 ac_prev=x_libraries ;;
427 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
428 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
429 x_libraries="$ac_optarg" ;;
431 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
435 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
436 echo "configure: warning: $ac_option: invalid host type" 1>&2
438 if test "x$nonopt" != xNONE; then
439 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
447 if test -n "$ac_prev"; then
448 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
451 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
453 # File descriptor usage:
456 # 2 errors and warnings
457 # 3 some systems may open it to /dev/tty
458 # 4 used on the Kubota Titan
459 # 6 checking for... messages and results
460 # 5 compiler messages saved in config.log
461 if test "$silent" = yes; then
469 This file contains any messages produced by compilers while
470 running configure, to aid debugging if configure makes a mistake.
473 # Strip out --no-create and --no-recursion so they do not pile up.
474 # Also quote any args containing shell metacharacters.
479 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
480 | --no-cr | --no-c) ;;
481 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
482 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
483 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
484 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
485 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
490 # Only set these to C if already set. These must not be set unconditionally
491 # because not all systems understand e.g. LANG=C (notably SCO).
492 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
493 # Non-C LC_CTYPE values break the ctype check.
494 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
495 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
496 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
497 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
499 # confdefs.h avoids OS command line length limits that DEFS can exceed.
500 rm -rf conftest* confdefs.h
501 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
504 # A filename unique to this package, relative to the directory that
505 # configure is in, which we can look for to find out if srcdir is correct.
506 ac_unique_file=ncurses/lib_initscr.c
508 # Find the source files, if location was not specified.
509 if test -z "$srcdir"; then
510 ac_srcdir_defaulted=yes
511 # Try the directory containing this script, then its parent.
513 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
514 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
516 if test ! -r $srcdir/$ac_unique_file; then
520 ac_srcdir_defaulted=no
522 if test ! -r $srcdir/$ac_unique_file; then
523 if test "$ac_srcdir_defaulted" = yes; then
524 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
526 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
529 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
531 # Prefer explicitly selected file to automatically selected ones.
532 if test -z "$CONFIG_SITE"; then
533 if test "x$prefix" != xNONE; then
534 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
536 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
539 for ac_site_file in $CONFIG_SITE; do
540 if test -r "$ac_site_file"; then
541 echo "loading site script $ac_site_file"
546 if test -r "$cache_file"; then
547 echo "loading cache $cache_file"
550 echo "creating cache $cache_file"
555 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
556 ac_cpp='$CPP $CPPFLAGS'
557 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
558 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
559 cross_compiling=$ac_cv_prog_cc_cross
561 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
562 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
563 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
570 ac_n= ac_c='\c' ac_t=
576 NCURSES_MAJOR="`egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
577 NCURSES_MINOR="`egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
578 NCURSES_PATCH="`egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
579 nc_cv_abi_version=${NCURSES_MAJOR}
580 nc_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
581 echo "$ac_t""Configuring NCURSES $nc_cv_rel_version ABI $nc_cv_abi_version (`date`)" 1>&6
591 if eval "test \"`echo '$''{'nc_cv_systype'+set}'`\" = set"; then
592 echo $ac_n "(cached) $ac_c" 1>&6
595 nc_cv_systype="`(uname -s || hostname || echo unknown) 2>/dev/null |sed -e s'/[:\/.-]/_/'g | sed 1q`"
596 if test -z "$nc_cv_systype"; then nc_cv_systype=unknown;fi
600 echo "$ac_t""System type is $nc_cv_systype" 1>&6
603 # We need a configure script only when compiling as part of GNU C library.
604 # Here we have to generate one of the files we need while compiling.
606 # The only problem is that users of the package might think they have to
607 # run configure themself and find it irritating when nothing happens.
609 # So we try here to find out whether we are called from the glibc configure
612 # Check whether --enable-add-ons or --disable-add-ons was given.
613 if test "${enable_add_ons+set}" = set; then
614 enableval="$enable_add_ons"
621 if test x"$glibc_add_on" = "xyes" ; then
622 if test -f $srcdir/../glibcbug.in; then
625 rm -f $srcdir/Makefile
626 cp $srcdir/Makefile.glibc $srcdir/Makefile
627 echo "ncurses `grep \"^[ ]*ncurses-version[ ]*=.*$\" \
628 $srcdir/Makefile | sed -e \
629 's/^[ ]*ncurses-version[ ]*=[ ]*\([^ ^ ]*\)[ ]*$/\1/'`" > $srcdir/Banner
634 ### Save the given $CFLAGS to allow user-override.
635 nc_user_CFLAGS="$CFLAGS"
637 ### Derive the system name, as a check for reusing the autoconf cache
638 system_name="`(uname -s -r || hostname || echo unknown) 2>/dev/null`"
639 if test -n "$system_name" ; then
640 cat >> confdefs.h <<EOF
641 #define SYSTEM_NAME "$system_name"
645 system_name="`(hostname) 2>/dev/null`"
647 if eval "test \"`echo '$''{'nc_cv_system_name'+set}'`\" = set"; then
648 echo $ac_n "(cached) $ac_c" 1>&6
650 nc_cv_system_name="$system_name"
653 test -z "$system_name" && system_name="$nc_cv_system_name"
654 test -n "$nc_cv_system_name" && echo "$ac_t"""Configuring for $nc_cv_system_name"" 1>&6
656 if test ".$system_name" != ".$nc_cv_system_name" ; then
657 echo "$ac_t"""Cached system name does not agree with actual"" 1>&6
658 { echo "configure: error: "Please remove config.cache and try again."" 1>&2; exit 1; }
661 ### Default install-location
663 echo $ac_n "checking for prefix""... $ac_c" 1>&6
664 echo "configure:665: checking for prefix" >&5
665 if test "x$prefix" = "xNONE" ; then
666 case "$nc_cv_systype" in
667 # non-vendor systems don't have a conflict
668 NetBSD|FreeBSD|Linux) prefix=/usr
670 *) prefix=$ac_default_prefix
674 echo "$ac_t""$prefix" 1>&6
675 echo $ac_n "checking for default include-directory""... $ac_c" 1>&6
676 echo "configure:677: checking for default include-directory" >&5
677 test -n "$verbose" && echo 1>&6
680 $includedir/ncurses \
682 $prefix/include/ncurses \
684 /usr/local/include/ncurses \
688 nc_dir=`eval echo $nc_symbol`
689 if test -f $nc_dir/curses.h ; then
690 if ( fgrep NCURSES_VERSION $nc_dir/curses.h 2>&1 >/dev/null ) ; then
691 includedir="$nc_symbol"
692 test -n "$verbose" && echo $ac_n " found " 1>&6
696 test -n "$verbose" && echo " tested $nc_dir" 1>&6
698 echo "$ac_t""$includedir" 1>&6
701 ### Checks for programs.
702 # Extract the first word of "gcc", so it can be a program name with args.
703 set dummy gcc; ac_word=$2
704 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
705 echo "configure:706: checking for $ac_word" >&5
706 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
707 echo $ac_n "(cached) $ac_c" 1>&6
709 if test -n "$CC"; then
710 ac_cv_prog_CC="$CC" # Let the user override the test.
712 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
713 for ac_dir in $PATH; do
714 test -z "$ac_dir" && ac_dir=.
715 if test -f $ac_dir/$ac_word; then
724 if test -n "$CC"; then
725 echo "$ac_t""$CC" 1>&6
727 echo "$ac_t""no" 1>&6
730 if test -z "$CC"; then
731 # Extract the first word of "cc", so it can be a program name with args.
732 set dummy cc; ac_word=$2
733 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
734 echo "configure:735: checking for $ac_word" >&5
735 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
736 echo $ac_n "(cached) $ac_c" 1>&6
738 if test -n "$CC"; then
739 ac_cv_prog_CC="$CC" # Let the user override the test.
741 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
743 for ac_dir in $PATH; do
744 test -z "$ac_dir" && ac_dir=.
745 if test -f $ac_dir/$ac_word; then
746 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
755 if test $ac_prog_rejected = yes; then
756 # We found a bogon in the path, so make sure we never use it.
757 set dummy $ac_cv_prog_CC
759 if test $# -gt 0; then
760 # We chose a different compiler from the bogus one.
761 # However, it has the same basename, so the bogon will be chosen
762 # first if we set CC to just the basename; use the full file name.
764 set dummy "$ac_dir/$ac_word" "$@"
772 if test -n "$CC"; then
773 echo "$ac_t""$CC" 1>&6
775 echo "$ac_t""no" 1>&6
778 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
781 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
782 echo "configure:783: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
785 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
786 ac_cpp='$CPP $CPPFLAGS'
787 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
788 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
789 cross_compiling=$ac_cv_prog_cc_cross
791 cat > conftest.$ac_ext <<EOF
792 #line 793 "configure"
793 #include "confdefs.h"
796 if { (eval echo configure:797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
797 ac_cv_prog_cc_works=yes
798 # If we can't run a trivial program, we are probably using a cross compiler.
799 if (./conftest; exit) 2>/dev/null; then
800 ac_cv_prog_cc_cross=no
802 ac_cv_prog_cc_cross=yes
805 echo "configure: failed program was:" >&5
806 cat conftest.$ac_ext >&5
807 ac_cv_prog_cc_works=no
811 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
812 if test $ac_cv_prog_cc_works = no; then
813 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
815 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
816 echo "configure:817: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
817 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
818 cross_compiling=$ac_cv_prog_cc_cross
820 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
821 echo "configure:822: checking whether we are using GNU C" >&5
822 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
823 echo $ac_n "(cached) $ac_c" 1>&6
825 cat > conftest.c <<EOF
830 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
837 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
839 if test $ac_cv_prog_gcc = yes; then
841 ac_test_CFLAGS="${CFLAGS+set}"
842 ac_save_CFLAGS="$CFLAGS"
844 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
845 echo "configure:846: checking whether ${CC-cc} accepts -g" >&5
846 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
847 echo $ac_n "(cached) $ac_c" 1>&6
849 echo 'void f(){}' > conftest.c
850 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
859 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
860 if test "$ac_test_CFLAGS" = set; then
861 CFLAGS="$ac_save_CFLAGS"
862 elif test $ac_cv_prog_cc_g = yes; then
869 test "${CFLAGS+set}" = set || CFLAGS="-g"
872 if test -n "$GCC" ; then
873 echo $ac_n "checking version of gcc""... $ac_c" 1>&6
874 echo "configure:875: checking version of gcc" >&5
877 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
878 echo "configure:879: checking how to run the C preprocessor" >&5
879 # On Suns, sometimes $CPP names a directory.
880 if test -n "$CPP" && test -d "$CPP"; then
883 if test -z "$CPP"; then
884 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
885 echo $ac_n "(cached) $ac_c" 1>&6
887 # This must be in double quotes, not single quotes, because CPP may get
888 # substituted into the Makefile and "${CC-cc}" will confuse make.
890 # On the NeXT, cc -E runs the code through the compiler's parser,
891 # not just through cpp.
892 cat > conftest.$ac_ext <<EOF
893 #line 894 "configure"
894 #include "confdefs.h"
898 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
899 { (eval echo configure:900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
900 ac_err=`grep -v '^ *+' conftest.out`
901 if test -z "$ac_err"; then
905 echo "configure: failed program was:" >&5
906 cat conftest.$ac_ext >&5
908 CPP="${CC-cc} -E -traditional-cpp"
909 cat > conftest.$ac_ext <<EOF
910 #line 911 "configure"
911 #include "confdefs.h"
915 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
916 { (eval echo configure:917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
917 ac_err=`grep -v '^ *+' conftest.out`
918 if test -z "$ac_err"; then
922 echo "configure: failed program was:" >&5
923 cat conftest.$ac_ext >&5
930 ac_cv_prog_CPP="$CPP"
932 CPP="$ac_cv_prog_CPP"
934 ac_cv_prog_CPP="$CPP"
936 echo "$ac_t""$CPP" 1>&6
938 if test $ac_cv_prog_gcc = yes; then
939 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
940 echo "configure:941: checking whether ${CC-cc} needs -traditional" >&5
941 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
942 echo $ac_n "(cached) $ac_c" 1>&6
944 ac_pattern="Autoconf.*'x'"
945 cat > conftest.$ac_ext <<EOF
946 #line 947 "configure"
947 #include "confdefs.h"
951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
952 egrep "$ac_pattern" >/dev/null 2>&1; then
954 ac_cv_prog_gcc_traditional=yes
957 ac_cv_prog_gcc_traditional=no
962 if test $ac_cv_prog_gcc_traditional = no; then
963 cat > conftest.$ac_ext <<EOF
964 #line 965 "configure"
965 #include "confdefs.h"
969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
970 egrep "$ac_pattern" >/dev/null 2>&1; then
972 ac_cv_prog_gcc_traditional=yes
979 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
980 if test $ac_cv_prog_gcc_traditional = yes; then
981 CC="$CC -traditional"
985 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
986 echo "configure:987: checking for POSIXized ISC" >&5
987 if test -d /etc/conf/kconfig.d &&
988 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
990 echo "$ac_t""yes" 1>&6
991 ISC=yes # If later tests want to check for ISC.
992 cat >> confdefs.h <<\EOF
993 #define _POSIX_SOURCE 1
996 if test "$GCC" = yes; then
1002 echo "$ac_t""no" 1>&6
1007 # Check whether --with-cxx or --without-cxx was given.
1008 if test "${with_cxx+set}" = set; then
1013 if test "X$withval" != Xno ; then
1014 for ac_prog in $CCC c++ g++ gcc CC cxx cc++
1016 # Extract the first word of "$ac_prog", so it can be a program name with args.
1017 set dummy $ac_prog; ac_word=$2
1018 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1019 echo "configure:1020: checking for $ac_word" >&5
1020 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1021 echo $ac_n "(cached) $ac_c" 1>&6
1023 if test -n "$CXX"; then
1024 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1026 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1027 for ac_dir in $PATH; do
1028 test -z "$ac_dir" && ac_dir=.
1029 if test -f $ac_dir/$ac_word; then
1030 ac_cv_prog_CXX="$ac_prog"
1037 CXX="$ac_cv_prog_CXX"
1038 if test -n "$CXX"; then
1039 echo "$ac_t""$CXX" 1>&6
1041 echo "$ac_t""no" 1>&6
1044 test -n "$CXX" && break
1046 test -n "$CXX" || CXX="gcc"
1049 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1050 echo "configure:1051: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1053 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1054 ac_cpp='$CXXCPP $CPPFLAGS'
1055 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1056 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1057 cross_compiling=$ac_cv_prog_cxx_cross
1059 cat > conftest.$ac_ext <<EOF
1060 #line 1061 "configure"
1061 #include "confdefs.h"
1064 if { (eval echo configure:1065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1065 ac_cv_prog_cxx_works=yes
1066 # If we can't run a trivial program, we are probably using a cross compiler.
1067 if (./conftest; exit) 2>/dev/null; then
1068 ac_cv_prog_cxx_cross=no
1070 ac_cv_prog_cxx_cross=yes
1073 echo "configure: failed program was:" >&5
1074 cat conftest.$ac_ext >&5
1075 ac_cv_prog_cxx_works=no
1079 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1080 ac_cpp='$CPP $CPPFLAGS'
1081 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1082 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1083 cross_compiling=$ac_cv_prog_cc_cross
1085 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1086 if test $ac_cv_prog_cxx_works = no; then
1087 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1089 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1090 echo "configure:1091: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1091 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1092 cross_compiling=$ac_cv_prog_cxx_cross
1094 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1095 echo "configure:1096: checking whether we are using GNU C++" >&5
1096 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1097 echo $ac_n "(cached) $ac_c" 1>&6
1099 cat > conftest.C <<EOF
1104 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1111 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1113 if test $ac_cv_prog_gxx = yes; then
1115 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1116 ac_save_CXXFLAGS="$CXXFLAGS"
1118 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1119 echo "configure:1120: checking whether ${CXX-g++} accepts -g" >&5
1120 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1121 echo $ac_n "(cached) $ac_c" 1>&6
1123 echo 'void f(){}' > conftest.cc
1124 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1125 ac_cv_prog_cxx_g=yes
1133 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1134 if test "$ac_test_CXXFLAGS" = set; then
1135 CXXFLAGS="$ac_save_CXXFLAGS"
1136 elif test $ac_cv_prog_cxx_g = yes; then
1143 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1147 if test -n "$GXX" ; then case "`${CXX-g++} --version`" in 1*|2.[0-6]*) GXX=""; CXX=""; ac_cv_prog_gxx=no; nc_cxx_library=no ; echo No: templates do not work;; esac; fi
1148 for ac_prog in mawk gawk nawk awk
1150 # Extract the first word of "$ac_prog", so it can be a program name with args.
1151 set dummy $ac_prog; ac_word=$2
1152 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1153 echo "configure:1154: checking for $ac_word" >&5
1154 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1155 echo $ac_n "(cached) $ac_c" 1>&6
1157 if test -n "$AWK"; then
1158 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1160 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1161 for ac_dir in $PATH; do
1162 test -z "$ac_dir" && ac_dir=.
1163 if test -f $ac_dir/$ac_word; then
1164 ac_cv_prog_AWK="$ac_prog"
1171 AWK="$ac_cv_prog_AWK"
1172 if test -n "$AWK"; then
1173 echo "$ac_t""$AWK" 1>&6
1175 echo "$ac_t""no" 1>&6
1178 test -n "$AWK" && break
1181 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1182 echo "configure:1183: checking whether ${MAKE-make} sets \${MAKE}" >&5
1183 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1184 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1185 echo $ac_n "(cached) $ac_c" 1>&6
1187 cat > conftestmake <<\EOF
1189 @echo 'ac_maketemp="${MAKE}"'
1191 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1192 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1193 if test -n "$ac_maketemp"; then
1194 eval ac_cv_prog_make_${ac_make}_set=yes
1196 eval ac_cv_prog_make_${ac_make}_set=no
1200 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1201 echo "$ac_t""yes" 1>&6
1204 echo "$ac_t""no" 1>&6
1205 SET_MAKE="MAKE=${MAKE-make}"
1209 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1210 if test -f $ac_dir/install-sh; then
1212 ac_install_sh="$ac_aux_dir/install-sh -c"
1214 elif test -f $ac_dir/install.sh; then
1216 ac_install_sh="$ac_aux_dir/install.sh -c"
1220 if test -z "$ac_aux_dir"; then
1221 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1223 ac_config_guess=$ac_aux_dir/config.guess
1224 ac_config_sub=$ac_aux_dir/config.sub
1225 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1227 # Find a good install program. We prefer a C program (faster),
1228 # so one script is as good as another. But avoid the broken or
1229 # incompatible versions:
1230 # SysV /etc/install, /usr/sbin/install
1231 # SunOS /usr/etc/install
1232 # IRIX /sbin/install
1234 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1235 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1236 # ./install, which can be erroneously created by make from ./install.sh.
1237 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1238 echo "configure:1239: checking for a BSD compatible install" >&5
1239 if test -z "$INSTALL"; then
1240 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1241 echo $ac_n "(cached) $ac_c" 1>&6
1243 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1244 for ac_dir in $PATH; do
1245 # Account for people who put trailing slashes in PATH elements.
1247 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1249 # OSF1 and SCO ODT 3.0 have their own names for install.
1250 for ac_prog in ginstall installbsd scoinst install; do
1251 if test -f $ac_dir/$ac_prog; then
1252 if test $ac_prog = install &&
1253 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1254 # AIX install. It has an incompatible calling convention.
1255 # OSF/1 installbsd also uses dspmsg, but is usable.
1258 ac_cv_path_install="$ac_dir/$ac_prog -c"
1269 if test "${ac_cv_path_install+set}" = set; then
1270 INSTALL="$ac_cv_path_install"
1272 # As a last resort, use the slow shell script. We don't cache a
1273 # path for INSTALL within a source directory, because that will
1274 # break other packages using the cache if that directory is
1275 # removed, or if the path is relative.
1276 INSTALL="$ac_install_sh"
1279 echo "$ac_t""$INSTALL" 1>&6
1281 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1282 # It thinks the first close brace ends the variable substitution.
1283 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1285 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1291 nc_dir=`echo $INSTALL|sed -e 's%/[^/]*$%%'`
1292 test -z "$nc_dir" && nc_dir=.
1293 INSTALL=`cd $nc_dir;pwd`/`echo $INSTALL | sed -e 's:^.*/::'`
1297 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1298 echo "configure:1299: checking whether ln -s works" >&5
1299 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1300 echo $ac_n "(cached) $ac_c" 1>&6
1303 if ln -s X conftestdata 2>/dev/null
1306 ac_cv_prog_LN_S="ln -s"
1311 LN_S="$ac_cv_prog_LN_S"
1312 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1313 echo "$ac_t""yes" 1>&6
1315 echo "$ac_t""no" 1>&6
1318 # Extract the first word of "ranlib", so it can be a program name with args.
1319 set dummy ranlib; ac_word=$2
1320 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1321 echo "configure:1322: checking for $ac_word" >&5
1322 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1323 echo $ac_n "(cached) $ac_c" 1>&6
1325 if test -n "$RANLIB"; then
1326 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1328 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1329 for ac_dir in $PATH; do
1330 test -z "$ac_dir" && ac_dir=.
1331 if test -f $ac_dir/$ac_word; then
1332 ac_cv_prog_RANLIB="ranlib"
1337 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1340 RANLIB="$ac_cv_prog_RANLIB"
1341 if test -n "$RANLIB"; then
1342 echo "$ac_t""$RANLIB" 1>&6
1344 echo "$ac_t""no" 1>&6
1347 for ac_prog in tdlint lint alint
1349 # Extract the first word of "$ac_prog", so it can be a program name with args.
1350 set dummy $ac_prog; ac_word=$2
1351 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1352 echo "configure:1353: checking for $ac_word" >&5
1353 if eval "test \"`echo '$''{'ac_cv_prog_LINT'+set}'`\" = set"; then
1354 echo $ac_n "(cached) $ac_c" 1>&6
1356 if test -n "$LINT"; then
1357 ac_cv_prog_LINT="$LINT" # Let the user override the test.
1359 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1360 for ac_dir in $PATH; do
1361 test -z "$ac_dir" && ac_dir=.
1362 if test -f $ac_dir/$ac_word; then
1363 ac_cv_prog_LINT="$ac_prog"
1370 LINT="$ac_cv_prog_LINT"
1371 if test -n "$LINT"; then
1372 echo "$ac_t""$LINT" 1>&6
1374 echo "$ac_t""no" 1>&6
1377 test -n "$LINT" && break
1380 for ac_prog in man man_db
1382 # Extract the first word of "$ac_prog", so it can be a program name with args.
1383 set dummy $ac_prog; ac_word=$2
1384 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1385 echo "configure:1386: checking for $ac_word" >&5
1386 if eval "test \"`echo '$''{'ac_cv_prog_MAN'+set}'`\" = set"; then
1387 echo $ac_n "(cached) $ac_c" 1>&6
1389 if test -n "$MAN"; then
1390 ac_cv_prog_MAN="$MAN" # Let the user override the test.
1392 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1393 for ac_dir in $PATH; do
1394 test -z "$ac_dir" && ac_dir=.
1395 if test -f $ac_dir/$ac_word; then
1396 ac_cv_prog_MAN="$ac_prog"
1403 MAN="$ac_cv_prog_MAN"
1404 if test -n "$MAN"; then
1405 echo "$ac_t""$MAN" 1>&6
1407 echo "$ac_t""no" 1>&6
1410 test -n "$MAN" && break
1415 if eval "test \"`echo '$''{'nc_cv_subst_LD'+set}'`\" = set"; then
1416 echo $ac_n "(cached) $ac_c" 1>&6
1419 echo $ac_n "checking for loader (symbol LD)""... $ac_c" 1>&6
1420 echo "configure:1421: checking for loader (symbol LD)" >&5
1421 test -z "$LD" && LD=ld
1422 echo "$ac_t""$LD" 1>&6
1427 LD=${nc_cv_subst_LD}
1429 if eval "test \"`echo '$''{'nc_cv_subst_AR'+set}'`\" = set"; then
1430 echo $ac_n "(cached) $ac_c" 1>&6
1433 echo $ac_n "checking for archiver (symbol AR)""... $ac_c" 1>&6
1434 echo "configure:1435: checking for archiver (symbol AR)" >&5
1435 test -z "$AR" && AR=ar
1436 echo "$ac_t""$AR" 1>&6
1441 AR=${nc_cv_subst_AR}
1443 if eval "test \"`echo '$''{'nc_cv_subst_AR_OPTS'+set}'`\" = set"; then
1444 echo $ac_n "(cached) $ac_c" 1>&6
1447 echo $ac_n "checking for archiver options (symbol AR_OPTS)""... $ac_c" 1>&6
1448 echo "configure:1449: checking for archiver options (symbol AR_OPTS)" >&5
1449 test -z "$AR_OPTS" && AR_OPTS=rv
1450 echo "$ac_t""$AR_OPTS" 1>&6
1452 nc_cv_subst_AR_OPTS=$AR_OPTS
1455 AR_OPTS=${nc_cv_subst_AR_OPTS}
1459 echo $ac_n "checking for makeflags variable""... $ac_c" 1>&6
1460 echo "configure:1461: checking for makeflags variable" >&5
1461 if eval "test \"`echo '$''{'nc_cv_makeflags'+set}'`\" = set"; then
1462 echo $ac_n "(cached) $ac_c" 1>&6
1466 for nc_option in '$(MFLAGS)' '-$(MAKEFLAGS)'
1468 cat >ncurses.tmp <<NC_EOF
1472 set nc_result=`${MAKE-make} -f ncurses.tmp 2>/dev/null`
1473 if test "$nc_result" != "."
1475 nc_cv_makeflags=$nc_option
1483 echo "$ac_t""$nc_cv_makeflags" 1>&6
1486 echo $ac_n "checking format of man-pages""... $ac_c" 1>&6
1487 echo "configure:1488: checking format of man-pages" >&5
1488 if test -z "$MANPATH" ; then
1489 MANPATH="/usr/man:/usr/share/man"
1491 # look for the 'date' man-page (it's most likely to be installed!)
1492 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1494 for nc_dir in $MANPATH; do
1495 test -z "$nc_dir" && nc_dir=/usr/man
1498 for nc_name in $nc_dir/*/date.[01]* $nc_dir/*/date
1500 nc_test=`echo $nc_name | sed -e 's/*//'`
1501 if test "x$nc_test" = "x$nc_name" ; then
1503 *.gz) nc_form=gzip; nc_name=`basename $nc_name .gz`;;
1504 *.Z) nc_form=compress; nc_name=`basename $nc_name .Z`;;
1505 *.0) nc_form=BSDI; nc_format=yes;;
1511 if test "$nc_form" != "unknown" ; then
1516 if test "$prefix" = "NONE" ; then
1517 nc_prefix="$ac_default_prefix"
1522 # Debian 'man' program?
1523 test -f /etc/debian_version && \
1524 nc_rename=`cd $srcdir;pwd`/man/man_db.renames
1526 test ! -d man && mkdir man
1528 # Construct a sed-script to perform renaming within man-pages
1529 if test -n "$nc_rename" ; then
1530 fgrep -v \# $nc_rename | \
1535 -e s/\$/\\\/g/ >man/edit_man.sed
1537 if test $nc_format = yes ; then
1538 nc_subdir='$mandir/cat'
1540 nc_subdir='$mandir/man'
1543 cat >man/edit_man.sh <<NC_EOF
1545 # this script is generated by the configure-script
1548 MKDIRS="`cd $srcdir;pwd`/mkinstalldirs"
1550 INSTALL_DATA="$INSTALL_DATA"
1551 TMP=\${TMPDIR-/tmp}/man\$\$
1552 trap "rm -f \$TMP" 0 1 2 5 15
1561 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
1562 if [ ! -d $nc_subdir\${section} ]; then
1563 \$MKDIRS $nc_subdir\$section
1565 source=\`basename \$i\`
1567 if test -z "$nc_rename" ; then
1568 cat >>man/edit_man.sh <<NC_EOF
1569 target=$nc_subdir\${section}/\$source
1570 sed -e "s,@DATADIR@,\$datadir," < \$i >\$TMP
1573 cat >>man/edit_man.sh <<NC_EOF
1574 target=\`grep "^\$source" $nc_rename | $AWK '{print \$2}'\`
1575 if test -z "\$target" ; then
1576 echo '? missing rename for '\$source
1579 target="$nc_subdir\$section/\$target"
1580 sed -e 's,@DATADIR@,\$datadir,' < \$i | sed -f edit_man.sed >\$TMP
1583 if test $nc_format = yes ; then
1584 cat >>man/edit_man.sh <<NC_EOF
1585 nroff -man \$TMP >\$TMP.out
1591 cat >>man/edit_man.sh <<NC_EOF
1592 if ( compress -f \$TMP )
1600 cat >>man/edit_man.sh <<NC_EOF
1601 if ( gzip -f \$TMP )
1604 target="\$target.gz"
1609 cat >>man/edit_man.sh <<NC_EOF
1610 # BSDI installs only .0 suffixes in the cat directories
1611 target="\`echo \$target|sed -e 's/\.[1-9]\+.\?/.0/'\`"
1615 cat >>man/edit_man.sh <<NC_EOF
1616 echo installing \$target
1617 \$INSTALL_DATA \$TMP \$target
1622 chmod 755 man/edit_man.sh
1623 echo "$ac_t""$nc_form" 1>&6
1626 # Check whether --with-install-prefix or --without-install-prefix was given.
1627 if test "${with_install_prefix+set}" = set; then
1628 withval="$with_install_prefix"
1629 case "$withval" in #(vi
1632 *) INSTALL_PREFIX="$withval"
1639 ### Options to allow the user to specify the set of libraries which are used.
1640 ### Use "--without-normal --with-shared" to allow the default model to be
1641 ### shared, for example.
1643 # Check whether --with-shared or --without-shared was given.
1644 if test "${with_shared+set}" = set; then
1645 withval="$with_shared"
1646 test "$withval" = "yes" && nc_list_models="$nc_list_models shared"
1649 # Check whether --with-normal or --without-normal was given.
1650 if test "${with_normal+set}" = set; then
1651 withval="$with_normal"
1652 test "$withval" = "yes" && nc_list_models="$nc_list_models normal"
1654 nc_list_models="$nc_list_models normal"
1657 # Check whether --with-debug or --without-debug was given.
1658 if test "${with_debug+set}" = set; then
1659 withval="$with_debug"
1660 test "$withval" = "yes" && nc_list_models="$nc_list_models debug"
1662 nc_list_models="$nc_list_models debug"
1665 # Check whether --with-profile or --without-profile was given.
1666 if test "${with_profile+set}" = set; then
1667 withval="$with_profile"
1668 test "$withval" = "yes" && nc_list_models="$nc_list_models profile"
1672 ### Checks for special libraries, must be done up-front.
1673 # Check whether --with-dbmalloc or --without-dbmalloc was given.
1674 if test "${with_dbmalloc+set}" = set; then
1675 withval="$with_dbmalloc"
1676 echo $ac_n "checking for debug_malloc in -ldbmalloc""... $ac_c" 1>&6
1677 echo "configure:1678: checking for debug_malloc in -ldbmalloc" >&5
1678 ac_lib_var=`echo dbmalloc'_'debug_malloc | sed 'y%./+-%__p_%'`
1679 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1680 echo $ac_n "(cached) $ac_c" 1>&6
1682 ac_save_LIBS="$LIBS"
1683 LIBS="-ldbmalloc $LIBS"
1684 cat > conftest.$ac_ext <<EOF
1685 #line 1686 "configure"
1686 #include "confdefs.h"
1687 /* Override any gcc2 internal prototype to avoid an error. */
1688 /* We use char because int might match the return type of a gcc2
1689 builtin and then its argument prototype would still apply. */
1690 char debug_malloc();
1696 if { (eval echo configure:1697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1698 eval "ac_cv_lib_$ac_lib_var=yes"
1700 echo "configure: failed program was:" >&5
1701 cat conftest.$ac_ext >&5
1703 eval "ac_cv_lib_$ac_lib_var=no"
1706 LIBS="$ac_save_LIBS"
1709 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1710 echo "$ac_t""yes" 1>&6
1711 ac_tr_lib=HAVE_LIB`echo dbmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1712 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1713 cat >> confdefs.h <<EOF
1714 #define $ac_tr_lib 1
1717 LIBS="-ldbmalloc $LIBS"
1720 echo "$ac_t""no" 1>&6
1725 # Check whether --with-dmalloc or --without-dmalloc was given.
1726 if test "${with_dmalloc+set}" = set; then
1727 withval="$with_dmalloc"
1728 echo $ac_n "checking for dmalloc_debug in -ldmalloc""... $ac_c" 1>&6
1729 echo "configure:1730: checking for dmalloc_debug in -ldmalloc" >&5
1730 ac_lib_var=`echo dmalloc'_'dmalloc_debug | sed 'y%./+-%__p_%'`
1731 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1732 echo $ac_n "(cached) $ac_c" 1>&6
1734 ac_save_LIBS="$LIBS"
1735 LIBS="-ldmalloc $LIBS"
1736 cat > conftest.$ac_ext <<EOF
1737 #line 1738 "configure"
1738 #include "confdefs.h"
1739 /* Override any gcc2 internal prototype to avoid an error. */
1740 /* We use char because int might match the return type of a gcc2
1741 builtin and then its argument prototype would still apply. */
1742 char dmalloc_debug();
1748 if { (eval echo configure:1749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1750 eval "ac_cv_lib_$ac_lib_var=yes"
1752 echo "configure: failed program was:" >&5
1753 cat conftest.$ac_ext >&5
1755 eval "ac_cv_lib_$ac_lib_var=no"
1758 LIBS="$ac_save_LIBS"
1761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1762 echo "$ac_t""yes" 1>&6
1763 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1764 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1765 cat >> confdefs.h <<EOF
1766 #define $ac_tr_lib 1
1769 LIBS="-ldmalloc $LIBS"
1772 echo "$ac_t""no" 1>&6
1777 # Check whether --with-gpm or --without-gpm was given.
1778 if test "${with_gpm+set}" = set; then
1780 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
1781 echo "configure:1782: checking for Gpm_Open in -lgpm" >&5
1782 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
1783 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1784 echo $ac_n "(cached) $ac_c" 1>&6
1786 ac_save_LIBS="$LIBS"
1787 LIBS="-lgpm -lcurses -ltermcap $LIBS"
1788 cat > conftest.$ac_ext <<EOF
1789 #line 1790 "configure"
1790 #include "confdefs.h"
1791 /* Override any gcc2 internal prototype to avoid an error. */
1792 /* We use char because int might match the return type of a gcc2
1793 builtin and then its argument prototype would still apply. */
1800 if { (eval echo configure:1801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1802 eval "ac_cv_lib_$ac_lib_var=yes"
1804 echo "configure: failed program was:" >&5
1805 cat conftest.$ac_ext >&5
1807 eval "ac_cv_lib_$ac_lib_var=no"
1810 LIBS="$ac_save_LIBS"
1813 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1814 echo "$ac_t""yes" 1>&6
1816 EXTRA_LIBS="$EXTRA_LIBS -lgpm -lncurses"
1817 cat >> confdefs.h <<\EOF
1818 #define HAVE_LIBGPM 1
1823 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1824 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1825 echo "configure:1826: checking for $ac_hdr" >&5
1826 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1827 echo $ac_n "(cached) $ac_c" 1>&6
1829 cat > conftest.$ac_ext <<EOF
1830 #line 1831 "configure"
1831 #include "confdefs.h"
1834 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1835 { (eval echo configure:1836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1836 ac_err=`grep -v '^ *+' conftest.out`
1837 if test -z "$ac_err"; then
1839 eval "ac_cv_header_$ac_safe=yes"
1842 echo "configure: failed program was:" >&5
1843 cat conftest.$ac_ext >&5
1845 eval "ac_cv_header_$ac_safe=no"
1849 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1850 echo "$ac_t""yes" 1>&6
1851 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1852 cat >> confdefs.h <<EOF
1853 #define $ac_tr_hdr 1
1857 echo "$ac_t""no" 1>&6
1863 echo "$ac_t""no" 1>&6
1871 echo $ac_n "checking for specified models""... $ac_c" 1>&6
1872 echo "configure:1873: checking for specified models" >&5
1873 test -z "$nc_list_models" && nc_list_models=normal
1874 echo "$ac_t""$nc_list_models" 1>&6
1876 ### Use the first model as the default, and save its suffix for use in building
1877 ### up test-applications.
1878 DFT_LWR_MODEL=`echo $nc_list_models | $AWK '{print $1}'`
1880 DFT_UPR_MODEL=`echo $DFT_LWR_MODEL |tr '[a-z]' '[A-Z]'`
1884 case $DFT_LWR_MODEL in
1885 normal) DFT_DEP_SUFFIX='.a' ;;
1886 debug) DFT_DEP_SUFFIX='_g.a' ;;
1887 profile) DFT_DEP_SUFFIX='_p.a' ;;
1889 case $nc_cv_systype in
1891 DFT_DEP_SUFFIX='.so.$(ABI_VERSION)' ;;
1892 HP_UX) DFT_DEP_SUFFIX='.sl' ;;
1893 *) DFT_DEP_SUFFIX='.so' ;;
1897 case $DFT_LWR_MODEL in
1898 normal) DFT_ARG_SUFFIX='' ;;
1899 debug) DFT_ARG_SUFFIX='_g' ;;
1900 profile) DFT_ARG_SUFFIX='_p' ;;
1901 shared) DFT_ARG_SUFFIX='' ;;
1904 case $DFT_LWR_MODEL in
1905 normal) DFT_OBJ_SUBDIR='objects' ;;
1906 debug) DFT_OBJ_SUBDIR='obj_g' ;;
1907 profile) DFT_OBJ_SUBDIR='obj_p' ;;
1908 shared) DFT_OBJ_SUBDIR='obj_s' ;;
1915 LIB_PREFIX=$LIB_DIR/lib
1919 if test X"$CC_G_OPT" = X"" ; then
1921 test -n "$GCC" && test "${ac_cv_prog_cc_g}${ac_cv_prog_gcc_g}" != yes && CC_G_OPT=''
1925 if test X"$CXX_G_OPT" = X"" ; then
1927 test -n "$GXX" && test "${ac_cv_prog_cxx_g}${ac_cv_prog_gxx_g}" != yes && CXX_G_OPT=''
1931 case $DFT_LWR_MODEL in
1932 normal) LD_MODEL='' ;;
1933 debug) LD_MODEL=$CC_G_OPT ;;
1934 profile) LD_MODEL='-pg';;
1935 shared) LD_MODEL='' ;;
1943 nc_cv_do_symlinks=no
1946 case $nc_cv_systype in
1948 # (tested with gcc 2.7.2 -- I don't have c89)
1949 if test "${CC}" = "gcc"; then
1950 CC_SHARED_OPTS='-fPIC'
1954 MK_SHARED_LIB='$(LD) -b -o $@'
1957 # tested with IRIX 5.2 and 'cc'.
1958 if test "${CC}" = "gcc"; then
1959 CC_SHARED_OPTS='-fPIC'
1961 CC_SHARED_OPTS='-KPIC'
1963 MK_SHARED_LIB='$(LD) -shared -rdata_shared -soname `basename $@` -o $@'
1964 nc_cv_rm_so_locs=yes
1967 # tested with Linux 1.2.8 and gcc 2.7.0 (ELF)
1968 CC_SHARED_OPTS='-fPIC'
1969 MK_SHARED_LIB='gcc -o $@.$(REL_VERSION) -shared -Wl,-soname,`basename $@.$(ABI_VERSION)`,-stats'
1970 if test $DFT_LWR_MODEL = "shared" ; then
1971 LOCAL_LDFLAGS='-Wl,-rpath,../lib'
1972 LOCAL_LDFLAGS2='-Wl,-rpath,../../lib'
1974 nc_cv_do_symlinks=yes
1977 CC_SHARED_OPTS='-fpic -DPIC'
1978 MK_SHARED_LIB='$(LD) -Bshareable -o $@'
1981 # tested with OSF/1 V3.2 and 'cc'
1982 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
1983 # link with shared libs).
1985 MK_SHARED_LIB='$(LD) -o $@.$(REL_VERSION) -shared -soname `basename $@.$(ABI_VERSION)`'
1986 if test $DFT_LWR_MODEL = "shared" ; then
1987 LOCAL_LDFLAGS='-Wl,-rpath,../lib'
1988 LOCAL_LDFLAGS2='-Wl,-rpath,../../lib'
1990 nc_cv_do_symlinks=yes
1991 nc_cv_rm_so_locs=yes
1994 # tested with SunOS 4.1.1 and gcc 2.7.0
1995 # tested with SunOS 5.3 (solaris 2.3) and gcc 2.7.0
1996 if test $ac_cv_prog_gcc = yes; then
1997 CC_SHARED_OPTS='-fpic'
1999 CC_SHARED_OPTS='-KPIC'
2003 MK_SHARED_LIB='$(LD) -assert pure-text -o $@.$(REL_VERSION)'
2006 MK_SHARED_LIB='$(LD) -d y -G -h `basename $@.$(ABI_VERSION)` -o $@.$(REL_VERSION)'
2009 nc_cv_do_symlinks=yes
2012 # tested with UnixWare 1.1.2
2013 CC_SHARED_OPTS='-KPIC'
2014 MK_SHARED_LIB='$(LD) -d y -G -o $@'
2017 CC_SHARED_OPTS='unknown'
2018 MK_SHARED_LIB='echo unknown'
2027 if test "$CC_SHARED_OPTS" = "unknown"; then
2028 for model in $nc_list_models; do
2029 if test "$model" = "shared"; then
2030 echo '** Shared libraries are not supported in this version'
2036 ### use option --disable-overwrite to leave out the link to -lcurses
2037 echo $ac_n "checking include directory""... $ac_c" 1>&6
2038 echo "configure:2039: checking include directory" >&5
2039 # Check whether --enable-overwrite or --disable-overwrite was given.
2040 if test "${enable_overwrite+set}" = set; then
2041 enableval="$enable_overwrite"
2042 with_overwrite=$enableval
2043 test "$with_overwrite" = no && \
2044 test "x$includedir" = 'x${prefix}/include' && \
2045 includedir='$(prefix)/include/ncurses'
2051 echo "$ac_t""$includedir" 1>&6
2053 ### use option --enable-big-core to make tic run faster on big machines
2054 echo $ac_n "checking if big-core option selected""... $ac_c" 1>&6
2055 echo "configure:2056: checking if big-core option selected" >&5
2056 # Check whether --enable-big-core or --disable-big-core was given.
2057 if test "${enable_big_core+set}" = set; then
2058 enableval="$enable_big_core"
2059 with_big_core=$enableval
2064 echo "$ac_t""$with_big_core" 1>&6
2065 test "$with_big_core" = "yes" && cat >> confdefs.h <<\EOF
2066 #define HAVE_BIG_CORE 1
2070 ### use option --enable-termcap to compile in the termcap fallback support
2071 echo $ac_n "checking if termcap-fallback support is needed""... $ac_c" 1>&6
2072 echo "configure:2073: checking if termcap-fallback support is needed" >&5
2073 # Check whether --enable-termcap or --disable-termcap was given.
2074 if test "${enable_termcap+set}" = set; then
2075 enableval="$enable_termcap"
2076 with_termcap=$enableval
2081 echo "$ac_t""$with_termcap" 1>&6
2083 if test "$with_termcap" != "yes" ; then
2084 cat >> confdefs.h <<\EOF
2085 #define PURE_TERMINFO 1
2090 ### use option --enable-getcap to use a hacked getcap for reading termcaps
2091 echo $ac_n "checking if fast termcap-loader is needed""... $ac_c" 1>&6
2092 echo "configure:2093: checking if fast termcap-loader is needed" >&5
2093 # Check whether --enable-getcap or --disable-getcap was given.
2094 if test "${enable_getcap+set}" = set; then
2095 enableval="$enable_getcap"
2096 with_getcap=$enableval
2101 echo "$ac_t""$with_getcap" 1>&6
2102 test "$with_getcap" = "yes" && cat >> confdefs.h <<\EOF
2103 #define USE_GETCAP 1
2107 echo $ac_n "checking if translated termcaps will be cached in ~/.terminfo""... $ac_c" 1>&6
2108 echo "configure:2109: checking if translated termcaps will be cached in ~/.terminfo" >&5
2109 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
2110 if test "${enable_getcap_cache+set}" = set; then
2111 enableval="$enable_getcap_cache"
2112 with_getcap_cache=$enableval
2114 with_getcap_cache=no
2117 echo "$ac_t""$with_getcap_cache" 1>&6
2118 test "$with_getcap_cache" = "yes" && cat >> confdefs.h <<\EOF
2119 #define USE_GETCAP_CACHE 1
2125 ### use option --enable-symlinks to make tic use symlinks, not hard links
2126 echo $ac_n "checking if tic should use symbolic links""... $ac_c" 1>&6
2127 echo "configure:2128: checking if tic should use symbolic links" >&5
2128 # Check whether --enable-symlinks or --disable-symlinks was given.
2129 if test "${enable_symlinks+set}" = set; then
2130 enableval="$enable_symlinks"
2131 with_symlinks=$enableval
2136 echo "$ac_t""$with_symlinks" 1>&6
2137 test "$with_symlinks" = yes && cat >> confdefs.h <<\EOF
2138 #define USE_SYMLINKS 1
2142 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
2143 echo $ac_n "checking if tputs should process BSD-style prefix padding""... $ac_c" 1>&6
2144 echo "configure:2145: checking if tputs should process BSD-style prefix padding" >&5
2145 # Check whether --enable-bsdpad or --disable-bsdpad was given.
2146 if test "${enable_bsdpad+set}" = set; then
2147 enableval="$enable_bsdpad"
2148 with_bsdpad=$enableval
2153 echo "$ac_t""$with_bsdpad" 1>&6
2154 test "$with_bsdpad" = yes && cat >> confdefs.h <<\EOF
2159 ### use option --enable-const to turn on use of const beyond that in XSI.
2160 echo $ac_n "checking for extended use of const keyword""... $ac_c" 1>&6
2161 echo "configure:2162: checking for extended use of const keyword" >&5
2162 # Check whether --enable-const or --disable-const was given.
2163 if test "${enable_const+set}" = set; then
2164 enableval="$enable_const"
2165 with_ext_const=$enableval
2170 echo "$ac_t""$with_ext_const" 1>&6
2171 test "$with_ext_const" = yes && cat >> confdefs.h <<\EOF
2172 #define NCURSES_CONST const
2176 ### Enable compiling-in rcs id's
2177 echo $ac_n "checking if RCS identifiers should be compiled-in""... $ac_c" 1>&6
2178 echo "configure:2179: checking if RCS identifiers should be compiled-in" >&5
2179 # Check whether --with-rcs-ids or --without-rcs-ids was given.
2180 if test "${with_rcs_ids+set}" = set; then
2181 withval="$with_rcs_ids"
2182 with_rcs_ids=$enableval
2187 echo "$ac_t""$with_rcs_ids" 1>&6
2188 test "$with_rcs_ids" = yes && cat >> confdefs.h <<\EOF
2189 #define USE_RCS_IDS 1
2193 ### use option --disable-echo to suppress full display compiling commands
2194 # Check whether --enable-echo or --disable-echo was given.
2195 if test "${enable_echo+set}" = set; then
2196 enableval="$enable_echo"
2197 with_echo=$enableval
2202 if test "$with_echo" = yes; then
2205 ECHO_LINK='@ echo linking $@ ... ;'
2209 ### use option --enable-warnings to turn on all gcc warnings
2210 # Check whether --enable-warnings or --disable-warnings was given.
2211 if test "${enable_warnings+set}" = set; then
2212 enableval="$enable_warnings"
2213 with_warnings=$enableval
2216 if test -n "$with_warnings"; then
2217 ADAFLAGS="$ADAFLAGS -gnatg"
2221 cat > conftest.$ac_ext <<EOF
2222 #line 2223 "configure"
2223 int main(int argc, char *argv[]) { return argv[argc-1] == 0; }
2225 echo "checking for gcc warning options" 1>&6
2226 echo "configure:2227: checking for gcc warning options" >&5
2227 nc_save_CFLAGS="$CFLAGS"
2228 nc_warn_CFLAGS="-W -Wall"
2230 test "$with_ext_const" = yes && nc_warn_CONST="Wwrite-strings"
2232 Wbad-function-cast \
2236 Wmissing-declarations \
2237 Wmissing-prototypes \
2241 Wstrict-prototypes $nc_warn_CONST
2243 CFLAGS="$nc_save_CFLAGS $nc_warn_CFLAGS -$nc_opt"
2244 if { (eval echo configure:2245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2245 test -n "$verbose" && echo "$ac_t""... -$nc_opt" 1>&6
2246 nc_warn_CFLAGS="$nc_warn_CFLAGS -$nc_opt"
2250 CFLAGS="$nc_save_CFLAGS"
2254 cat > conftest.i <<EOF
2256 #define GCC_PRINTF 0
2261 #ifndef GCC_NORETURN
2262 #define GCC_NORETURN /* nothing */
2265 #define GCC_UNUSED /* nothing */
2270 echo "checking for gcc __attribute__ directives" 1>&6
2271 echo "configure:2272: checking for gcc __attribute__ directives" >&5
2272 cat > conftest.$ac_ext <<EOF
2273 #line 2274 "configure"
2274 #include "confdefs.h"
2275 #include "conftest.h"
2276 #include "conftest.i"
2278 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
2280 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
2283 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
2285 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
2287 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
2288 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
2289 extern void foo(void) GCC_NORETURN;
2290 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
2292 for nc_attribute in scanf printf unused noreturn
2295 NC_ATTRIBUTE=`echo $nc_attribute |tr '[a-z]' '[A-Z]'`
2297 nc_directive="__attribute__(($nc_attribute))"
2298 echo "checking for gcc $nc_directive" 1>&5
2299 case $nc_attribute in
2301 cat >conftest.h <<EOF
2302 #define GCC_$NC_ATTRIBUTE 1
2306 cat >conftest.h <<EOF
2307 #define GCC_$NC_ATTRIBUTE $nc_directive
2311 if { (eval echo configure:2312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2312 test -n "$verbose" && echo "$ac_t""... $nc_attribute" 1>&6
2313 cat conftest.h >>confdefs.h
2315 # sed -e 's/__attr.*/\/*nothing*\//' conftest.h >>confdefs.h
2319 fgrep define conftest.i >>confdefs.h
2325 ### use option --enable-assertions to turn on generation of assertion code
2326 # Check whether --enable-assertions or --disable-assertions was given.
2327 if test "${enable_assertions+set}" = set; then
2328 enableval="$enable_assertions"
2329 with_assertions=$enableval
2334 if test -z "$with_assertions"
2336 CPPFLAGS="$CPPFLAGS -DNDEBUG"
2338 ADAFLAGS="$ADAFLAGS -gnata"
2342 ### use option --disable-leaks to suppress "permanent" leaks, for testing
2343 # Check whether --enable-leaks or --disable-leaks was given.
2344 if test "${enable_leaks+set}" = set; then
2345 enableval="$enable_leaks"
2346 test $enableval = no && cat >> confdefs.h <<\EOF
2352 cat >> confdefs.h <<\EOF
2353 #define HAVE_NC_ALLOC_H 1
2357 ### use option --enable-expanded to generate certain macros as functions
2358 # Check whether --enable-expanded or --disable-expanded was given.
2359 if test "${enable_expanded+set}" = set; then
2360 enableval="$enable_expanded"
2361 test $enableval = yes && cat >> confdefs.h <<\EOF
2362 #define NCURSES_EXPANDED 1
2368 ### use option --disable-macros to suppress macros in favor of functions
2369 # Check whether --enable-macros or --disable-macros was given.
2370 if test "${enable_macros+set}" = set; then
2371 enableval="$enable_macros"
2372 test $enableval = no && cat >> confdefs.h <<\EOF
2373 #define NCURSES_NOMACROS 1
2379 ### Checks for libraries.
2380 echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6
2381 echo "configure:2382: checking for gettimeofday" >&5
2382 if eval "test \"`echo '$''{'ac_cv_func_gettimeofday'+set}'`\" = set"; then
2383 echo $ac_n "(cached) $ac_c" 1>&6
2385 cat > conftest.$ac_ext <<EOF
2386 #line 2387 "configure"
2387 #include "confdefs.h"
2388 /* System header to define __stub macros and hopefully few prototypes,
2389 which can conflict with char gettimeofday(); below. */
2391 /* Override any gcc2 internal prototype to avoid an error. */
2392 /* We use char because int might match the return type of a gcc2
2393 builtin and then its argument prototype would still apply. */
2394 char gettimeofday();
2398 /* The GNU C library defines this for functions which it implements
2399 to always fail with ENOSYS. Some functions are actually named
2400 something starting with __ and the normal name is an alias. */
2401 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
2409 if { (eval echo configure:2410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2411 eval "ac_cv_func_gettimeofday=yes"
2413 echo "configure: failed program was:" >&5
2414 cat conftest.$ac_ext >&5
2416 eval "ac_cv_func_gettimeofday=no"
2421 if eval "test \"`echo '$ac_cv_func_'gettimeofday`\" = yes"; then
2422 echo "$ac_t""yes" 1>&6
2423 cat >> confdefs.h <<\EOF
2424 #define HAVE_GETTIMEOFDAY 1
2428 echo "$ac_t""no" 1>&6
2430 echo $ac_n "checking for gettimeofday in -lbsd""... $ac_c" 1>&6
2431 echo "configure:2432: checking for gettimeofday in -lbsd" >&5
2432 ac_lib_var=`echo bsd'_'gettimeofday | sed 'y%./+-%__p_%'`
2433 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2434 echo $ac_n "(cached) $ac_c" 1>&6
2436 ac_save_LIBS="$LIBS"
2438 cat > conftest.$ac_ext <<EOF
2439 #line 2440 "configure"
2440 #include "confdefs.h"
2441 /* Override any gcc2 internal prototype to avoid an error. */
2442 /* We use char because int might match the return type of a gcc2
2443 builtin and then its argument prototype would still apply. */
2444 char gettimeofday();
2450 if { (eval echo configure:2451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2452 eval "ac_cv_lib_$ac_lib_var=yes"
2454 echo "configure: failed program was:" >&5
2455 cat conftest.$ac_ext >&5
2457 eval "ac_cv_lib_$ac_lib_var=no"
2460 LIBS="$ac_save_LIBS"
2463 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2464 echo "$ac_t""yes" 1>&6
2465 cat >> confdefs.h <<\EOF
2466 #define HAVE_GETTIMEOFDAY 1
2471 echo "$ac_t""no" 1>&6
2476 ### Checks for header files.
2477 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2478 echo "configure:2479: checking for ANSI C header files" >&5
2479 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2480 echo $ac_n "(cached) $ac_c" 1>&6
2482 cat > conftest.$ac_ext <<EOF
2483 #line 2484 "configure"
2484 #include "confdefs.h"
2490 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2491 { (eval echo configure:2492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2492 ac_err=`grep -v '^ *+' conftest.out`
2493 if test -z "$ac_err"; then
2495 ac_cv_header_stdc=yes
2498 echo "configure: failed program was:" >&5
2499 cat conftest.$ac_ext >&5
2501 ac_cv_header_stdc=no
2505 if test $ac_cv_header_stdc = yes; then
2506 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2507 cat > conftest.$ac_ext <<EOF
2508 #line 2509 "configure"
2509 #include "confdefs.h"
2512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2513 egrep "memchr" >/dev/null 2>&1; then
2517 ac_cv_header_stdc=no
2523 if test $ac_cv_header_stdc = yes; then
2524 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2525 cat > conftest.$ac_ext <<EOF
2526 #line 2527 "configure"
2527 #include "confdefs.h"
2530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2531 egrep "free" >/dev/null 2>&1; then
2535 ac_cv_header_stdc=no
2541 if test $ac_cv_header_stdc = yes; then
2542 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2543 if test "$cross_compiling" = yes; then
2546 cat > conftest.$ac_ext <<EOF
2547 #line 2548 "configure"
2548 #include "confdefs.h"
2550 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2551 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2552 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2553 int main () { int i; for (i = 0; i < 256; i++)
2554 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2558 if { (eval echo configure:2559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2562 echo "configure: failed program was:" >&5
2563 cat conftest.$ac_ext >&5
2565 ac_cv_header_stdc=no
2573 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2574 if test $ac_cv_header_stdc = yes; then
2575 cat >> confdefs.h <<\EOF
2576 #define STDC_HEADERS 1
2582 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2584 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2585 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2586 echo "configure:2587: checking for $ac_hdr that defines DIR" >&5
2587 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2588 echo $ac_n "(cached) $ac_c" 1>&6
2590 cat > conftest.$ac_ext <<EOF
2591 #line 2592 "configure"
2592 #include "confdefs.h"
2593 #include <sys/types.h>
2599 if { (eval echo configure:2600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2601 eval "ac_cv_header_dirent_$ac_safe=yes"
2603 echo "configure: failed program was:" >&5
2604 cat conftest.$ac_ext >&5
2606 eval "ac_cv_header_dirent_$ac_safe=no"
2610 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2611 echo "$ac_t""yes" 1>&6
2612 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2613 cat >> confdefs.h <<EOF
2614 #define $ac_tr_hdr 1
2616 ac_header_dirent=$ac_hdr; break
2618 echo "$ac_t""no" 1>&6
2621 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2622 if test $ac_header_dirent = dirent.h; then
2623 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2624 echo "configure:2625: checking for opendir in -ldir" >&5
2625 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2626 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2627 echo $ac_n "(cached) $ac_c" 1>&6
2629 ac_save_LIBS="$LIBS"
2631 cat > conftest.$ac_ext <<EOF
2632 #line 2633 "configure"
2633 #include "confdefs.h"
2634 /* Override any gcc2 internal prototype to avoid an error. */
2635 /* We use char because int might match the return type of a gcc2
2636 builtin and then its argument prototype would still apply. */
2643 if { (eval echo configure:2644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2645 eval "ac_cv_lib_$ac_lib_var=yes"
2647 echo "configure: failed program was:" >&5
2648 cat conftest.$ac_ext >&5
2650 eval "ac_cv_lib_$ac_lib_var=no"
2653 LIBS="$ac_save_LIBS"
2656 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2657 echo "$ac_t""yes" 1>&6
2660 echo "$ac_t""no" 1>&6
2664 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2665 echo "configure:2666: checking for opendir in -lx" >&5
2666 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2667 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2668 echo $ac_n "(cached) $ac_c" 1>&6
2670 ac_save_LIBS="$LIBS"
2672 cat > conftest.$ac_ext <<EOF
2673 #line 2674 "configure"
2674 #include "confdefs.h"
2675 /* Override any gcc2 internal prototype to avoid an error. */
2676 /* We use char because int might match the return type of a gcc2
2677 builtin and then its argument prototype would still apply. */
2684 if { (eval echo configure:2685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2686 eval "ac_cv_lib_$ac_lib_var=yes"
2688 echo "configure: failed program was:" >&5
2689 cat conftest.$ac_ext >&5
2691 eval "ac_cv_lib_$ac_lib_var=no"
2694 LIBS="$ac_save_LIBS"
2697 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2698 echo "$ac_t""yes" 1>&6
2701 echo "$ac_t""no" 1>&6
2707 echo $ac_n "checking for regular-expression headers""... $ac_c" 1>&6
2708 echo "configure:2709: checking for regular-expression headers" >&5
2709 if eval "test \"`echo '$''{'nc_cv_regex'+set}'`\" = set"; then
2710 echo $ac_n "(cached) $ac_c" 1>&6
2713 cat > conftest.$ac_ext <<EOF
2714 #line 2715 "configure"
2715 #include "confdefs.h"
2716 #include <sys/types.h>
2721 int x = regcomp(p, "", 0);
2722 int y = regexec(p, "", 0, 0, 0);
2727 if { (eval echo configure:2728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2729 nc_cv_regex="regex.h"
2731 echo "configure: failed program was:" >&5
2732 cat conftest.$ac_ext >&5
2735 cat > conftest.$ac_ext <<EOF
2736 #line 2737 "configure"
2737 #include "confdefs.h"
2741 char *p = compile("", "", "", 0);
2742 int x = step("", "");
2746 if { (eval echo configure:2747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2748 nc_cv_regex="regexp.h"
2750 echo "configure: failed program was:" >&5
2751 cat conftest.$ac_ext >&5
2754 cat > conftest.$ac_ext <<EOF
2755 #line 2756 "configure"
2756 #include "confdefs.h"
2757 #include <regexpr.h>
2760 char *p = compile("", "", "");
2761 int x = step("", "");
2765 if { (eval echo configure:2766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2767 nc_cv_regex="regexpr.h"
2769 echo "configure: failed program was:" >&5
2770 cat conftest.$ac_ext >&5
2780 echo "$ac_t""$nc_cv_regex" 1>&6
2781 case $nc_cv_regex in
2782 regex.h) cat >> confdefs.h <<\EOF
2783 #define HAVE_REGEX_H 1
2786 regexp.h) cat >> confdefs.h <<\EOF
2787 #define HAVE_REGEXP_H 1
2790 regexpr.h) cat >> confdefs.h <<\EOF
2791 #define HAVE_REGEXPR_H 1
2818 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2819 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2820 echo "configure:2821: checking for $ac_hdr" >&5
2821 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2822 echo $ac_n "(cached) $ac_c" 1>&6
2824 cat > conftest.$ac_ext <<EOF
2825 #line 2826 "configure"
2826 #include "confdefs.h"
2829 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2830 { (eval echo configure:2831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2831 ac_err=`grep -v '^ *+' conftest.out`
2832 if test -z "$ac_err"; then
2834 eval "ac_cv_header_$ac_safe=yes"
2837 echo "configure: failed program was:" >&5
2838 cat conftest.$ac_ext >&5
2840 eval "ac_cv_header_$ac_safe=no"
2844 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2845 echo "$ac_t""yes" 1>&6
2846 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2847 cat >> confdefs.h <<EOF
2848 #define $ac_tr_hdr 1
2852 echo "$ac_t""no" 1>&6
2857 # check for HPUX's ANSI compiler
2858 if test $nc_cv_systype = HP_UX; then
2859 if test -z "$GCC"; then
2860 echo $ac_n "checking for HP/UX ANSI compiler""... $ac_c" 1>&6
2861 echo "configure:2862: checking for HP/UX ANSI compiler" >&5
2862 nc_save_CFLAGS="$CFLAGS"
2863 CFLAGS="$CFLAGS -Aa"
2864 cat > conftest.$ac_ext <<EOF
2865 #line 2866 "configure"
2866 #include "confdefs.h"
2872 if { (eval echo configure:2873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2876 echo "configure: failed program was:" >&5
2877 cat conftest.$ac_ext >&5
2882 echo "$ac_t""$nc_hpux_cc" 1>&6
2883 if test $nc_hpux_cc = yes; then
2884 cat >> confdefs.h <<\EOF
2885 #define _HPUX_SOURCE 1
2889 CFLAGS="$nc_save_CFLAGS"
2893 # check for ISC (this may also define _POSIX_SOURCE)
2894 # Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set
2895 if test "$ISC" = yes ; then
2896 echo $ac_n "checking for main in -lcposix""... $ac_c" 1>&6
2897 echo "configure:2898: checking for main in -lcposix" >&5
2898 ac_lib_var=`echo cposix'_'main | sed 'y%./+-%__p_%'`
2899 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2900 echo $ac_n "(cached) $ac_c" 1>&6
2902 ac_save_LIBS="$LIBS"
2903 LIBS="-lcposix $LIBS"
2904 cat > conftest.$ac_ext <<EOF
2905 #line 2906 "configure"
2906 #include "confdefs.h"
2912 if { (eval echo configure:2913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2914 eval "ac_cv_lib_$ac_lib_var=yes"
2916 echo "configure: failed program was:" >&5
2917 cat conftest.$ac_ext >&5
2919 eval "ac_cv_lib_$ac_lib_var=no"
2922 LIBS="$ac_save_LIBS"
2925 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2926 echo "$ac_t""yes" 1>&6
2927 ac_tr_lib=HAVE_LIB`echo cposix | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2928 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2929 cat >> confdefs.h <<EOF
2930 #define $ac_tr_lib 1
2933 LIBS="-lcposix $LIBS"
2936 echo "$ac_t""no" 1>&6
2939 echo $ac_n "checking for bzero in -linet""... $ac_c" 1>&6
2940 echo "configure:2941: checking for bzero in -linet" >&5
2941 ac_lib_var=`echo inet'_'bzero | sed 'y%./+-%__p_%'`
2942 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2943 echo $ac_n "(cached) $ac_c" 1>&6
2945 ac_save_LIBS="$LIBS"
2947 cat > conftest.$ac_ext <<EOF
2948 #line 2949 "configure"
2949 #include "confdefs.h"
2950 /* Override any gcc2 internal prototype to avoid an error. */
2951 /* We use char because int might match the return type of a gcc2
2952 builtin and then its argument prototype would still apply. */
2959 if { (eval echo configure:2960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2961 eval "ac_cv_lib_$ac_lib_var=yes"
2963 echo "configure: failed program was:" >&5
2964 cat conftest.$ac_ext >&5
2966 eval "ac_cv_lib_$ac_lib_var=no"
2969 LIBS="$ac_save_LIBS"
2972 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2973 echo "$ac_t""yes" 1>&6
2976 echo "$ac_t""no" 1>&6
2978 for ac_hdr in sys/termio.h
2980 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2981 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2982 echo "configure:2983: checking for $ac_hdr" >&5
2983 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2984 echo $ac_n "(cached) $ac_c" 1>&6
2986 cat > conftest.$ac_ext <<EOF
2987 #line 2988 "configure"
2988 #include "confdefs.h"
2991 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2992 { (eval echo configure:2993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2993 ac_err=`grep -v '^ *+' conftest.out`
2994 if test -z "$ac_err"; then
2996 eval "ac_cv_header_$ac_safe=yes"
2999 echo "configure: failed program was:" >&5
3000 cat conftest.$ac_ext >&5
3002 eval "ac_cv_header_$ac_safe=no"
3006 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3007 echo "$ac_t""yes" 1>&6
3008 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3009 cat >> confdefs.h <<EOF
3010 #define $ac_tr_hdr 1
3014 echo "$ac_t""no" 1>&6
3020 # check for SCO. this is a hack, and should be split into individual
3021 # features -- the sys/time.h and select.h conflict, and the need for
3022 # ptem.h due to winsize struct.
3023 echo "checking for SCO by checking on /usr/bin/scosh" 1>&6
3024 echo "configure:3025: checking for SCO by checking on /usr/bin/scosh" >&5
3025 # Extract the first word of "scosh", so it can be a program name with args.
3026 set dummy scosh; ac_word=$2
3027 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3028 echo "configure:3029: checking for $ac_word" >&5
3029 if eval "test \"`echo '$''{'ac_cv_prog_COULD_BE_SCO'+set}'`\" = set"; then
3030 echo $ac_n "(cached) $ac_c" 1>&6
3032 if test -n "$COULD_BE_SCO"; then
3033 ac_cv_prog_COULD_BE_SCO="$COULD_BE_SCO" # Let the user override the test.
3035 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3036 for ac_dir in $PATH; do
3037 test -z "$ac_dir" && ac_dir=.
3038 if test -f $ac_dir/$ac_word; then
3039 ac_cv_prog_COULD_BE_SCO="maybe"
3044 test -z "$ac_cv_prog_COULD_BE_SCO" && ac_cv_prog_COULD_BE_SCO="maybenot"
3047 COULD_BE_SCO="$ac_cv_prog_COULD_BE_SCO"
3048 if test -n "$COULD_BE_SCO"; then
3049 echo "$ac_t""$COULD_BE_SCO" 1>&6
3051 echo "$ac_t""no" 1>&6
3054 if test "$COULD_BE_SCO" = "maybe"
3056 cat >> confdefs.h <<\EOF
3057 #define SYSTEM_LOOKS_LIKE_SCO 1
3062 ### checks for compiler characteristics
3064 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3065 ac_cpp='$CPP $CPPFLAGS'
3066 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3067 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3068 cross_compiling=$ac_cv_prog_cc_cross
3070 echo $ac_n "checking for working const""... $ac_c" 1>&6
3071 echo "configure:3072: checking for working const" >&5
3072 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3073 echo $ac_n "(cached) $ac_c" 1>&6
3075 cat > conftest.$ac_ext <<EOF
3076 #line 3077 "configure"
3077 #include "confdefs.h"
3081 /* Ultrix mips cc rejects this. */
3082 typedef int charset[2]; const charset x;
3083 /* SunOS 4.1.1 cc rejects this. */
3084 char const *const *ccp;
3086 /* NEC SVR4.0.2 mips cc rejects this. */
3087 struct point {int x, y;};
3088 static struct point const zero = {0,0};
3089 /* AIX XL C 1.02.0.0 rejects this.
3090 It does not let you subtract one const X* pointer from another in an arm
3091 of an if-expression whose if-part is not a constant expression */
3092 const char *g = "string";
3093 ccp = &g + (g ? g-g : 0);
3094 /* HPUX 7.0 cc rejects these. */
3097 ccp = (char const *const *) p;
3098 { /* SCO 3.2v4 cc rejects this. */
3100 char const *s = 0 ? (char *) 0 : (char const *) 0;
3104 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3106 const int *foo = &x[0];
3109 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3110 typedef const int *iptr;
3114 { /* AIX XL C 1.02.0.0 rejects this saying
3115 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3116 struct s { int j; const int *ap[3]; };
3117 struct s *b; b->j = 5;
3119 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3125 if { (eval echo configure:3126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3129 echo "configure: failed program was:" >&5
3130 cat conftest.$ac_ext >&5
3137 echo "$ac_t""$ac_cv_c_const" 1>&6
3138 if test $ac_cv_c_const = no; then
3139 cat >> confdefs.h <<\EOF
3145 echo $ac_n "checking for inline""... $ac_c" 1>&6
3146 echo "configure:3147: checking for inline" >&5
3147 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3148 echo $ac_n "(cached) $ac_c" 1>&6
3151 for ac_kw in inline __inline__ __inline; do
3152 cat > conftest.$ac_ext <<EOF
3153 #line 3154 "configure"
3154 #include "confdefs.h"
3160 if { (eval echo configure:3161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3162 ac_cv_c_inline=$ac_kw; break
3164 echo "configure: failed program was:" >&5
3165 cat conftest.$ac_ext >&5
3172 echo "$ac_t""$ac_cv_c_inline" 1>&6
3173 case "$ac_cv_c_inline" in
3175 no) cat >> confdefs.h <<\EOF
3179 *) cat >> confdefs.h <<EOF
3180 #define inline $ac_cv_c_inline
3185 test $ac_cv_c_inline != no && cat >> confdefs.h <<\EOF
3186 #define CC_HAS_INLINE_FUNCS 1
3190 ### Checks for external-data
3192 echo $ac_n "checking for errno external decl""... $ac_c" 1>&6
3193 echo "configure:3194: checking for errno external decl" >&5
3194 if eval "test \"`echo '$''{'nc_cv_extern_errno'+set}'`\" = set"; then
3195 echo $ac_n "(cached) $ac_c" 1>&6
3198 cat > conftest.$ac_ext <<EOF
3199 #line 3200 "configure"
3200 #include "confdefs.h"
3207 if { (eval echo configure:3208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3209 nc_cv_extern_errno=yes
3211 echo "configure: failed program was:" >&5
3212 cat conftest.$ac_ext >&5
3214 nc_cv_extern_errno=no
3220 echo "$ac_t""$nc_cv_extern_errno" 1>&6
3221 test $nc_cv_extern_errno = yes && cat >> confdefs.h <<\EOF
3222 #define HAVE_EXTERN_ERRNO 1
3227 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
3228 echo "configure:3229: checking declaration of sys_errlist" >&5
3229 if eval "test \"`echo '$''{'nc_cv_dcl_sys_errlist'+set}'`\" = set"; then
3230 echo $ac_n "(cached) $ac_c" 1>&6
3233 cat > conftest.$ac_ext <<EOF
3234 #line 3235 "configure"
3235 #include "confdefs.h"
3238 #include <sys/types.h>
3241 char *c = (char *) *sys_errlist;
3244 if { (eval echo configure:3245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3246 nc_cv_dcl_sys_errlist=yes
3248 echo "configure: failed program was:" >&5
3249 cat conftest.$ac_ext >&5
3251 nc_cv_dcl_sys_errlist=no
3257 echo "$ac_t""$nc_cv_dcl_sys_errlist" 1>&6
3258 test $nc_cv_dcl_sys_errlist = yes && cat >> confdefs.h <<\EOF
3259 #define HAVE_EXTERN_SYS_ERRLIST 1
3264 echo $ac_n "checking if data-only library module links""... $ac_c" 1>&6
3265 echo "configure:3266: checking if data-only library module links" >&5
3266 if eval "test \"`echo '$''{'nc_cv_link_dataonly'+set}'`\" = set"; then
3267 echo $ac_n "(cached) $ac_c" 1>&6
3271 cat >conftest.$ac_ext <<EOF
3272 #line 3273 "configure"
3273 int testdata[3] = { 123, 456, 789 };
3275 if { (eval echo configure:3276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } ; then
3276 mv conftest.o data.o && \
3277 ( $AR $AR_OPTS conftest.a data.o ) 2>&5 1>/dev/null
3279 rm -f conftest.$ac_ext data.o
3280 cat >conftest.$ac_ext <<EOF
3281 #line 3282 "configure"
3285 exit(1); /* I'm told this linker is broken */
3287 extern int testdata[3];
3288 return testdata[0] == 123
3289 && testdata[1] == 456
3290 && testdata[2] == 789;
3294 if { (eval echo configure:3295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3295 mv conftest.o func.o && \
3296 ( $AR $AR_OPTS conftest.a func.o ) 2>&5 1>/dev/null
3298 rm -f conftest.$ac_ext func.o
3299 ( eval $ac_cv_prog_RANLIB conftest.a ) 2>&5 >/dev/null
3301 LIBS="conftest.a $LIBS"
3302 if test "$cross_compiling" = yes; then
3303 nc_cv_link_dataonly=unknown
3305 cat > conftest.$ac_ext <<EOF
3306 #line 3307 "configure"
3307 #include "confdefs.h"
3311 extern int testfunc();
3316 if { (eval echo configure:3317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3318 nc_cv_link_dataonly=yes
3320 echo "configure: failed program was:" >&5
3321 cat conftest.$ac_ext >&5
3323 nc_cv_link_dataonly=no
3332 echo "$ac_t""$nc_cv_link_dataonly" 1>&6
3333 test $nc_cv_link_dataonly = no && cat >> confdefs.h <<\EOF
3334 #define BROKEN_LINKER 1
3339 echo $ac_n "checking for speed_t""... $ac_c" 1>&6
3340 echo "configure:3341: checking for speed_t" >&5
3341 if eval "test \"`echo '$''{'nc_cv_type_speed_t'+set}'`\" = set"; then
3342 echo $ac_n "(cached) $ac_c" 1>&6
3345 cat > conftest.$ac_ext <<EOF
3346 #line 3347 "configure"
3347 #include "confdefs.h"
3349 #include <sys/types.h>
3351 #include <termios.h>
3357 if { (eval echo configure:3358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3359 nc_cv_type_speed_t=yes
3361 echo "configure: failed program was:" >&5
3362 cat conftest.$ac_ext >&5
3364 nc_cv_type_speed_t=no
3370 echo "$ac_t""$nc_cv_type_speed_t" 1>&6
3371 test $nc_cv_type_speed_t != yes && cat >> confdefs.h <<\EOF
3372 #define speed_t unsigned
3377 ### Checks for library functions.
3396 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3397 echo "configure:3398: checking for $ac_func" >&5
3398 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3399 echo $ac_n "(cached) $ac_c" 1>&6
3401 cat > conftest.$ac_ext <<EOF
3402 #line 3403 "configure"
3403 #include "confdefs.h"
3404 /* System header to define __stub macros and hopefully few prototypes,
3405 which can conflict with char $ac_func(); below. */
3407 /* Override any gcc2 internal prototype to avoid an error. */
3408 /* We use char because int might match the return type of a gcc2
3409 builtin and then its argument prototype would still apply. */
3414 /* The GNU C library defines this for functions which it implements
3415 to always fail with ENOSYS. Some functions are actually named
3416 something starting with __ and the normal name is an alias. */
3417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3425 if { (eval echo configure:3426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3427 eval "ac_cv_func_$ac_func=yes"
3429 echo "configure: failed program was:" >&5
3430 cat conftest.$ac_ext >&5
3432 eval "ac_cv_func_$ac_func=no"
3437 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3438 echo "$ac_t""yes" 1>&6
3439 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3440 cat >> confdefs.h <<EOF
3441 #define $ac_tr_func 1
3445 echo "$ac_t""no" 1>&6
3450 if test $ac_cv_func_sigaction = yes; then
3451 echo $ac_n "checking whether sigaction needs _POSIX_SOURCE""... $ac_c" 1>&6
3452 echo "configure:3453: checking whether sigaction needs _POSIX_SOURCE" >&5
3453 cat > conftest.$ac_ext <<EOF
3454 #line 3455 "configure"
3455 #include "confdefs.h"
3456 #include <sys/types.h>
3459 struct sigaction act;
3462 if { (eval echo configure:3463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3466 echo "configure: failed program was:" >&5
3467 cat conftest.$ac_ext >&5
3469 sigact_bad=yes cat >> confdefs.h <<\EOF
3470 #define SVR4_ACTION 1
3475 echo "$ac_t""$sigact_bad" 1>&6
3478 # some machines require _POSIX_SOURCE to completely define struct termios
3479 if test $ac_cv_header_termios_h = yes ; then
3482 termios_bad=dunno ;;
3483 *) termios_bad=maybe ;;
3485 if test $termios_bad = maybe ; then
3486 echo $ac_n "checking whether termios.h needs _POSIX_SOURCE""... $ac_c" 1>&6
3487 echo "configure:3488: checking whether termios.h needs _POSIX_SOURCE" >&5
3488 cat > conftest.$ac_ext <<EOF
3489 #line 3490 "configure"
3490 #include "confdefs.h"
3491 #include <termios.h>
3493 struct termios foo; int x = foo.c_iflag
3496 if { (eval echo configure:3497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3500 echo "configure: failed program was:" >&5
3501 cat conftest.$ac_ext >&5
3504 cat > conftest.$ac_ext <<EOF
3505 #line 3506 "configure"
3506 #include "confdefs.h"
3508 #define _POSIX_SOURCE
3509 #include <termios.h>
3511 struct termios foo; int x = foo.c_iflag
3514 if { (eval echo configure:3515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3518 echo "configure: failed program was:" >&5
3519 cat conftest.$ac_ext >&5
3521 termios_bad=yes cat >> confdefs.h <<\EOF
3522 #define SVR4_TERMIO 1
3530 echo "$ac_t""$termios_bad" 1>&6
3534 if test "$cross_compiling" = yes ; then
3535 echo "configure: warning: cross compiling: assume setvbuf params not reversed" 1>&2
3537 echo $ac_n "checking whether setvbuf arguments are reversed""... $ac_c" 1>&6
3538 echo "configure:3539: checking whether setvbuf arguments are reversed" >&5
3539 if eval "test \"`echo '$''{'ac_cv_func_setvbuf_reversed'+set}'`\" = set"; then
3540 echo $ac_n "(cached) $ac_c" 1>&6
3542 if test "$cross_compiling" = yes; then
3543 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3545 cat > conftest.$ac_ext <<EOF
3546 #line 3547 "configure"
3547 #include "confdefs.h"
3549 /* If setvbuf has the reversed format, exit 0. */
3551 /* This call has the arguments reversed.
3552 A reversed system may check and see that the address of main
3553 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
3554 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
3557 exit(0); /* Non-reversed systems segv here. */
3560 if { (eval echo configure:3561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3562 ac_cv_func_setvbuf_reversed=yes
3564 echo "configure: failed program was:" >&5
3565 cat conftest.$ac_ext >&5
3567 ac_cv_func_setvbuf_reversed=no
3572 rm -f core core.* *.core
3575 echo "$ac_t""$ac_cv_func_setvbuf_reversed" 1>&6
3576 if test $ac_cv_func_setvbuf_reversed = yes; then
3577 cat >> confdefs.h <<\EOF
3578 #define SETVBUF_REVERSED 1
3584 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3585 echo "configure:3586: checking return type of signal handlers" >&5
3586 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3587 echo $ac_n "(cached) $ac_c" 1>&6
3589 cat > conftest.$ac_ext <<EOF
3590 #line 3591 "configure"
3591 #include "confdefs.h"
3592 #include <sys/types.h>
3598 extern "C" void (*signal (int, void (*)(int)))(int);
3600 void (*signal ()) ();
3607 if { (eval echo configure:3608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3609 ac_cv_type_signal=void
3611 echo "configure: failed program was:" >&5
3612 cat conftest.$ac_ext >&5
3614 ac_cv_type_signal=int
3619 echo "$ac_t""$ac_cv_type_signal" 1>&6
3620 cat >> confdefs.h <<EOF
3621 #define RETSIGTYPE $ac_cv_type_signal
3626 echo $ac_n "checking for type sigaction_t""... $ac_c" 1>&6
3627 echo "configure:3628: checking for type sigaction_t" >&5
3628 if eval "test \"`echo '$''{'nc_cv_type_sigaction'+set}'`\" = set"; then
3629 echo $ac_n "(cached) $ac_c" 1>&6
3632 cat > conftest.$ac_ext <<EOF
3633 #line 3634 "configure"
3634 #include "confdefs.h"
3641 if { (eval echo configure:3642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3643 nc_cv_type_sigaction=yes
3645 echo "configure: failed program was:" >&5
3646 cat conftest.$ac_ext >&5
3648 nc_cv_type_sigaction=no
3654 echo "$ac_t""$nc_cv_type_sigaction" 1>&6
3655 test $nc_cv_type_sigaction = yes && cat >> confdefs.h <<\EOF
3656 #define HAVE_TYPE_SIGACTION 1
3661 echo $ac_n "checking for working TIOCGWINSZ""... $ac_c" 1>&6
3662 echo "configure:3663: checking for working TIOCGWINSZ" >&5
3663 if eval "test \"`echo '$''{'nc_cv_use_tiocgwinsz'+set}'`\" = set"; then
3664 echo $ac_n "(cached) $ac_c" 1>&6
3667 if test "$cross_compiling" = yes; then
3668 nc_cv_use_tiocgwinsz=unknown
3670 cat > conftest.$ac_ext <<EOF
3671 #line 3672 "configure"
3672 #include "confdefs.h"
3675 #include <termios.h>
3677 #if SYSTEM_LOOKS_LIKE_SCO
3678 /* they neglected to define struct winsize in termios.h -- it's only
3680 #include <sys/stream.h>
3681 #include <sys/ptem.h>
3683 #if !defined(sun) || !defined(HAVE_TERMIOS_H)
3684 #include <sys/ioctl.h>
3688 static struct winsize size;
3690 for (fd = 0; fd <= 2; fd++) { /* try in/out/err in case redirected */
3691 if (ioctl(0, TIOCGWINSZ, &size) == 0
3696 exit(0); /* in either case, it compiles & links ... */
3700 if { (eval echo configure:3701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3702 nc_cv_use_tiocgwinsz=yes
3704 echo "configure: failed program was:" >&5
3705 cat conftest.$ac_ext >&5
3707 nc_cv_use_tiocgwinsz=no
3715 echo "$ac_t""$nc_cv_use_tiocgwinsz" 1>&6
3716 test $nc_cv_use_tiocgwinsz != yes && cat >> confdefs.h <<\EOF
3717 #define BROKEN_TIOCGWINSZ 1
3722 case "$nc_cv_systype" in
3724 cat >> confdefs.h <<\EOF
3725 #define GOOD_SELECT 1
3731 if test -z "$nc_user_CFLAGS" ; then
3732 CFLAGS=`echo ${CFLAGS} | sed -e 's/-g //' -e 's/-g$//'`
3733 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's/-g //' -e 's/-g$//'`
3736 if test -n "$CXX" ; then
3737 # Extract the first word of "$CXX", so it can be a program name with args.
3738 set dummy $CXX; ac_word=$2
3739 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3740 echo "configure:3741: checking for $ac_word" >&5
3741 if eval "test \"`echo '$''{'ac_cv_prog_CXX_EXISTS'+set}'`\" = set"; then
3742 echo $ac_n "(cached) $ac_c" 1>&6
3744 if test -n "$CXX_EXISTS"; then
3745 ac_cv_prog_CXX_EXISTS="$CXX_EXISTS" # Let the user override the test.
3747 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3748 for ac_dir in $PATH; do
3749 test -z "$ac_dir" && ac_dir=.
3750 if test -f $ac_dir/$ac_word; then
3751 ac_cv_prog_CXX_EXISTS="yes"
3756 test -z "$ac_cv_prog_CXX_EXISTS" && ac_cv_prog_CXX_EXISTS="no"
3759 CXX_EXISTS="$ac_cv_prog_CXX_EXISTS"
3760 if test -n "$CXX_EXISTS"; then
3761 echo "$ac_t""$CXX_EXISTS" 1>&6
3763 echo "$ac_t""no" 1>&6
3767 ac_cv_prog_CXX_EXISTS=no
3769 if test "$ac_cv_prog_CXX_EXISTS" = yes; then
3771 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3772 ac_cpp='$CXXCPP $CPPFLAGS'
3773 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3774 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3775 cross_compiling=$ac_cv_prog_cxx_cross
3778 nc_cxx_library=unknown
3779 if test $ac_cv_prog_gxx = yes; then
3780 echo $ac_n "checking for libg++""... $ac_c" 1>&6
3781 echo "configure:3782: checking for libg++" >&5
3783 LIBS="$LIBS -lg++ -lm"
3784 cat > conftest.$ac_ext <<EOF
3785 #line 3786 "configure"
3786 #include "confdefs.h"
3788 #include <builtin.h>
3794 if { (eval echo configure:3795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3797 CXXLIBS="$CXXLIBS -lg++ -lm"
3799 echo "configure: failed program was:" >&5
3800 cat conftest.$ac_ext >&5
3806 echo "$ac_t""$nc_cxx_library" 1>&6
3809 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
3810 echo "configure:3811: checking how to run the C++ preprocessor" >&5
3811 if test -z "$CXXCPP"; then
3812 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
3813 echo $ac_n "(cached) $ac_c" 1>&6
3816 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3817 ac_cpp='$CXXCPP $CPPFLAGS'
3818 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3819 ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3820 cross_compiling=$ac_cv_prog_cxx_cross
3821 CXXCPP="${CXX-g++} -E"
3822 cat > conftest.$ac_ext <<EOF
3823 #line 3824 "configure"
3824 #include "confdefs.h"
3827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3828 { (eval echo configure:3829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3829 ac_err=`grep -v '^ *+' conftest.out`
3830 if test -z "$ac_err"; then
3834 echo "configure: failed program was:" >&5
3835 cat conftest.$ac_ext >&5
3840 ac_cv_prog_CXXCPP="$CXXCPP"
3843 CXXCPP="$ac_cv_prog_CXXCPP"
3844 echo "$ac_t""$CXXCPP" 1>&6
3846 for ac_hdr in builtin.h typeinfo
3848 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3849 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3850 echo "configure:3851: checking for $ac_hdr" >&5
3851 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3852 echo $ac_n "(cached) $ac_c" 1>&6
3854 cat > conftest.$ac_ext <<EOF
3855 #line 3856 "configure"
3856 #include "confdefs.h"
3859 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3860 { (eval echo configure:3861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3861 ac_err=`grep -v '^ *+' conftest.out`
3862 if test -z "$ac_err"; then
3864 eval "ac_cv_header_$ac_safe=yes"
3867 echo "configure: failed program was:" >&5
3868 cat conftest.$ac_ext >&5
3870 eval "ac_cv_header_$ac_safe=no"
3874 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3875 echo "$ac_t""yes" 1>&6
3876 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3877 cat >> confdefs.h <<EOF
3878 #define $ac_tr_hdr 1
3882 echo "$ac_t""no" 1>&6
3887 echo $ac_n "checking for builtin c++ bool type""... $ac_c" 1>&6
3888 echo "configure:3889: checking for builtin c++ bool type" >&5
3889 if eval "test \"`echo '$''{'nc_cv_builtin_bool'+set}'`\" = set"; then
3890 echo $ac_n "(cached) $ac_c" 1>&6
3893 cat > conftest.$ac_ext <<EOF
3894 #line 3895 "configure"
3895 #include "confdefs.h"
3901 if { (eval echo configure:3902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3903 nc_cv_builtin_bool=1
3905 echo "configure: failed program was:" >&5
3906 cat conftest.$ac_ext >&5
3908 nc_cv_builtin_bool=0
3914 if test $nc_cv_builtin_bool = 1
3915 then echo "$ac_t""yes" 1>&6
3916 else echo "$ac_t""no" 1>&6
3920 echo $ac_n "checking for size of c++ bool""... $ac_c" 1>&6
3921 echo "configure:3922: checking for size of c++ bool" >&5
3922 if eval "test \"`echo '$''{'nc_cv_type_of_bool'+set}'`\" = set"; then
3923 echo $ac_n "(cached) $ac_c" 1>&6
3927 if test "$cross_compiling" = yes; then
3928 nc_cv_type_of_bool=unknown
3930 cat > conftest.$ac_ext <<EOF
3931 #line 3932 "configure"
3932 #include "confdefs.h"
3934 extern "C" void exit(int);
3940 #include <builtin.h>
3944 FILE *fp = fopen("nc_test.out", "w");
3947 if (sizeof(x) == sizeof(int)) fputs("int", fp);
3948 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
3949 else if (sizeof(x) == sizeof(short))fputs("short",fp);
3950 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
3957 if { (eval echo configure:3958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3959 nc_cv_type_of_bool=`cat nc_test.out`
3961 echo "configure: failed program was:" >&5
3962 cat conftest.$ac_ext >&5
3964 nc_cv_type_of_bool=unknown
3973 echo "$ac_t""$nc_cv_type_of_bool" 1>&6
3974 if test $nc_cv_type_of_bool = unknown ; then
3975 echo "configure: warning: Assuming unsigned for type of bool" 1>&2
3976 nc_cv_type_of_bool=unsigned
3981 if eval "test \"`echo '$''{'nc_cv_builtin_bool'+set}'`\" = set"; then
3982 echo $ac_n "(cached) $ac_c" 1>&6
3984 nc_cv_builtin_bool=0
3987 if eval "test \"`echo '$''{'nc_cv_sizeof_bool'+set}'`\" = set"; then
3988 echo $ac_n "(cached) $ac_c" 1>&6
3990 nc_cv_sizeof_bool=int
3996 nc_ada_make=gnatmake
3997 # Extract the first word of "$nc_ada_make", so it can be a program name with args.
3998 set dummy $nc_ada_make; ac_word=$2
3999 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4000 echo "configure:4001: checking for $ac_word" >&5
4001 if eval "test \"`echo '$''{'ac_cv_prog_gnat_exists'+set}'`\" = set"; then
4002 echo $ac_n "(cached) $ac_c" 1>&6
4004 if test -n "$gnat_exists"; then
4005 ac_cv_prog_gnat_exists="$gnat_exists" # Let the user override the test.
4007 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4008 for ac_dir in $PATH; do
4009 test -z "$ac_dir" && ac_dir=.
4010 if test -f $ac_dir/$ac_word; then
4011 ac_cv_prog_gnat_exists="yes"
4016 test -z "$ac_cv_prog_gnat_exists" && ac_cv_prog_gnat_exists="no"
4019 gnat_exists="$ac_cv_prog_gnat_exists"
4020 if test -n "$gnat_exists"; then
4021 echo "$ac_t""$gnat_exists" 1>&6
4023 echo "$ac_t""no" 1>&6
4026 if test "$ac_cv_prog_gnat_exists" = no; then
4030 nc_cv_gnat_version=`$nc_ada_make -v 2>&1 | grep '[0-9].[0-9][0-9]*' |\
4031 sed -e 's/[^0-9 \.]//g' | $AWK '{print $1;}'`
4032 case $nc_cv_gnat_version in
4033 3.0[5-9]|3.[1-9]*|[4-9].*)
4034 ac_cv_prog_gnat_correct=yes
4036 *) echo Unsupported GNAT version $nc_cv_gnat_version. Disabling Ada95 binding.
4037 ac_cv_prog_gnat_correct=no
4041 # Extract the first word of "m4", so it can be a program name with args.
4042 set dummy m4; ac_word=$2
4043 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4044 echo "configure:4045: checking for $ac_word" >&5
4045 if eval "test \"`echo '$''{'ac_cv_prog_m4_exists'+set}'`\" = set"; then
4046 echo $ac_n "(cached) $ac_c" 1>&6
4048 if test -n "$m4_exists"; then
4049 ac_cv_prog_m4_exists="$m4_exists" # Let the user override the test.
4051 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4052 for ac_dir in $PATH; do
4053 test -z "$ac_dir" && ac_dir=.
4054 if test -f $ac_dir/$ac_word; then
4055 ac_cv_prog_m4_exists="yes"
4060 test -z "$ac_cv_prog_m4_exists" && ac_cv_prog_m4_exists="no"
4063 m4_exists="$ac_cv_prog_m4_exists"
4064 if test -n "$m4_exists"; then
4065 echo "$ac_t""$m4_exists" 1>&6
4067 echo "$ac_t""no" 1>&6
4070 if test "$ac_cv_prog_m4_exists" = no; then
4071 ac_cv_prog_gnat_correct=no
4072 echo Ada95 binding required program m4 not found. Ada95 binding disabled.
4075 if test "$ac_cv_prog_gnat_correct" = yes; then
4077 nc_ada_package=terminal_interface
4084 ### It's not possible to appease gcc 2.6.3's conversion-warnings if we're
4085 ### using a 'char' for bools. gcc 2.7.0's conversion-warnings are broken too
4086 ### badly to consider using for development purposes, but 2.5.8 is okay.
4087 if test -n "$with_warnings"; then
4088 if test -n "$GCC"; then
4089 case "`$CC --version`" in
4091 if test "$nc_cv_sizeof_bool" != "char"; then
4092 nc_warn_CFLAGS="$nc_warn_CFLAGS -Wconversion"
4096 nc_warn_CFLAGS="$nc_warn_CFLAGS -Wconversion"
4102 ### Construct the list of include-directories to be generated
4104 CPPFLAGS="$CPPFLAGS -I. -I../include"
4105 if test "$srcdir" != "."; then
4106 CPPFLAGS="$CPPFLAGS -I\$(srcdir)/../include"
4108 if test -z "$GCC"; then
4109 CPPFLAGS="$CPPFLAGS -I\$(includedir)"
4110 elif test "$includedir" != "/usr/include"; then
4111 if test "$includedir" = '${prefix}/include' ; then
4112 if test $prefix != /usr ; then
4113 CPPFLAGS="$CPPFLAGS -I\$(includedir)"
4116 CPPFLAGS="$CPPFLAGS -I\$(includedir)"
4122 ACPPFLAGS="$ACPPFLAGS -I. -I../../include"
4123 if test "$srcdir" != "."; then
4124 ACPPFLAGS="$ACPPFLAGS -I\$(srcdir)/../../include"
4126 if test -z "$GCC"; then
4127 ACPPFLAGS="$ACPPFLAGS -I\$(includedir)"
4128 elif test "$includedir" != "/usr/include"; then
4129 if test "$includedir" = '${prefix}/include' ; then
4130 if test $prefix != /usr ; then
4131 ACPPFLAGS="$ACPPFLAGS -I\$(includedir)"
4134 ACPPFLAGS="$ACPPFLAGS -I\$(includedir)"
4140 ### Construct the list of subdirectories for which we'll customize makefiles
4141 ### with the appropriate compile-rules.
4143 echo $ac_n "checking for src modules""... $ac_c" 1>&6
4144 echo "configure:4145: checking for src modules" >&5
4145 TEST_DEPS="${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX}"
4146 TEST_ARGS="-l${LIB_NAME}${DFT_ARG_SUFFIX}"
4148 for nc_dir in ncurses progs panel menu form
4150 if test -f $srcdir/$nc_dir/modules; then
4151 if test -z "$nc_cv_src_modules"; then
4152 nc_cv_src_modules=$nc_dir
4154 nc_cv_src_modules="$nc_cv_src_modules $nc_dir"
4156 # Make the ncurses_cfg.h file record the library interface files as
4157 # well. These are header files that are the same name as their
4158 # directory. Ncurses is the only library that does not follow
4160 if test -f $srcdir/${nc_dir}/${nc_dir}.h; then
4162 nc_have_include=`echo $nc_dir |tr '[a-z]' '[A-Z]'`
4164 cat >> confdefs.h <<EOF
4165 #define HAVE_${nc_have_include}_H 1
4168 cat >> confdefs.h <<EOF
4169 #define HAVE_LIB${nc_have_include} 1
4172 TEST_DEPS="${LIB_PREFIX}${nc_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
4173 TEST_ARGS="-l${nc_dir}${DFT_ARG_SUFFIX} $TEST_ARGS"
4177 echo "$ac_t""$nc_cv_src_modules" 1>&6
4178 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
4182 SRC_SUBDIRS="man include"
4183 for nc_dir in $nc_cv_src_modules
4185 SRC_SUBDIRS="$SRC_SUBDIRS $nc_dir"
4187 SRC_SUBDIRS="$SRC_SUBDIRS misc test"
4188 test $nc_cxx_library != no && SRC_SUBDIRS="$SRC_SUBDIRS c++"
4191 if test "$ac_cv_prog_gnat_correct" = yes && test -d $srcdir/Ada95; then
4192 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
4193 ADA_SUBDIRS="gen ada_include samples"
4197 for nc_dir in $SRC_SUBDIRS
4199 SUB_MAKEFILES="$SUB_MAKEFILES $nc_dir/Makefile"
4202 if test -n "$ADA_SUBDIRS"; then
4203 for nc_dir in $ADA_SUBDIRS
4205 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$nc_dir/Makefile"
4212 for nc_item in $nc_list_models
4216 normal) nc_subdir='objects' ;;
4217 debug) nc_subdir='obj_g' ;;
4218 profile) nc_subdir='obj_p' ;;
4219 shared) nc_subdir='obj_s' ;;
4222 DIRS_TO_MAKE="$DIRS_TO_MAKE $nc_subdir"
4224 for nc_dir in $DIRS_TO_MAKE
4226 test ! -d $nc_dir && mkdir $nc_dir
4231 ### Now that we're done running tests, add the compiler-warnings, if any
4232 CFLAGS="$CFLAGS $nc_warn_CFLAGS"
4234 ################################################################################
4236 cat > confcache <<\EOF
4237 # This file is a shell script that caches the results of configure
4238 # tests run on this system so they can be shared between configure
4239 # scripts and configure runs. It is not useful on other systems.
4240 # If it contains results you don't want to keep, you may remove or edit it.
4242 # By default, configure uses ./config.cache as the cache file,
4243 # creating it if it does not exist already. You can give configure
4244 # the --cache-file=FILE option to use a different cache file; that is
4245 # what configure does when it calls configure scripts in
4246 # subdirectories, so they share the cache.
4247 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4248 # config.status only pays attention to the cache file if you give it the
4249 # --recheck option to rerun configure.
4252 # The following way of writing the cache mishandles newlines in values,
4253 # but we know of no workaround that is simple, portable, and efficient.
4254 # So, don't put newlines in cache variables' values.
4255 # Ultrix sh set writes to stderr and can't be redirected directly,
4256 # and sets the high bit in the cache file unless we assign to the vars.
4258 case `(ac_space=' '; set) 2>&1 | grep '^ac_space='` in
4260 # `set' does not quote correctly, so add quotes (double-quote substitution
4261 # turns \\\\ into \\, and sed turns \\ into \).
4263 -e "s/'/'\\\\''/g" \
4264 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4267 # `set' quotes correctly as required by POSIX, so do not add quotes.
4268 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4271 if cmp -s $cache_file confcache; then
4274 if test -w $cache_file; then
4275 echo "updating cache $cache_file"
4276 cat confcache > $cache_file
4278 echo "not updating unwritable cache $cache_file"
4283 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4285 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4286 # Let make expand exec_prefix.
4287 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4289 # Any assignment to VPATH causes Sun make to only execute
4290 # the first set of double-colon rules, so remove it if not needed.
4291 # If there is a colon in the path, we need to keep it.
4292 if test "x$srcdir" = x.; then
4293 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4296 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4298 # Transform confdefs.h into DEFS.
4299 # Protect against shell expansion while executing Makefile rules.
4300 # Protect against Makefile macro expansion.
4301 cat > conftest.defs <<\EOF
4302 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
4303 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
4308 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
4312 # Without the "./", some shells look in PATH for config.status.
4313 : ${CONFIG_STATUS=./config.status}
4315 echo creating $CONFIG_STATUS
4316 rm -f $CONFIG_STATUS
4317 cat > $CONFIG_STATUS <<EOF
4319 # Generated automatically by configure.
4320 # Run this file to recreate the current configuration.
4321 # This directory was configured as follows,
4322 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4324 # $0 $ac_configure_args
4326 # Compiler output produced by configure, useful for debugging
4327 # configure, is in ./config.log if it exists.
4329 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4332 case "\$ac_option" in
4333 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4334 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4335 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4336 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4337 echo "$CONFIG_STATUS generated by autoconf version 2.12.970309"
4339 -help | --help | --hel | --he | --h)
4340 echo "\$ac_cs_usage"; exit 0 ;;
4341 *) echo "\$ac_cs_usage"; exit 1 ;;
4345 ac_given_srcdir=$srcdir
4346 ac_given_INSTALL="$INSTALL"
4348 trap 'rm -fr `echo "include/config_h \
4349 include/MKterm.h.awk \
4354 Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4356 cat >> $CONFIG_STATUS <<EOF
4358 # Protect against being on the right side of a sed subst in config.status.
4359 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4360 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4363 s%@CFLAGS@%$CFLAGS%g
4364 s%@CPPFLAGS@%$CPPFLAGS%g
4365 s%@CXXFLAGS@%$CXXFLAGS%g
4367 s%@LDFLAGS@%$LDFLAGS%g
4369 s%@exec_prefix@%$exec_prefix%g
4370 s%@prefix@%$prefix%g
4371 s%@program_transform_name@%$program_transform_name%g
4372 s%@bindir@%$bindir%g
4373 s%@sbindir@%$sbindir%g
4374 s%@libexecdir@%$libexecdir%g
4375 s%@datadir@%$datadir%g
4376 s%@sysconfdir@%$sysconfdir%g
4377 s%@sharedstatedir@%$sharedstatedir%g
4378 s%@localstatedir@%$localstatedir%g
4379 s%@libdir@%$libdir%g
4380 s%@includedir@%$includedir%g
4381 s%@oldincludedir@%$oldincludedir%g
4382 s%@infodir@%$infodir%g
4383 s%@mandir@%$mandir%g
4384 s%@NCURSES_MAJOR@%$NCURSES_MAJOR%g
4385 s%@NCURSES_MINOR@%$NCURSES_MINOR%g
4386 s%@NCURSES_PATCH@%$NCURSES_PATCH%g
4387 s%@nc_cv_rel_version@%$nc_cv_rel_version%g
4388 s%@nc_cv_abi_version@%$nc_cv_abi_version%g
4389 s%@nc_cv_builtin_bool@%$nc_cv_builtin_bool%g
4390 s%@nc_cv_type_of_bool@%$nc_cv_type_of_bool%g
4395 s%@SET_MAKE@%$SET_MAKE%g
4396 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4397 s%@INSTALL_DATA@%$INSTALL_DATA%g
4399 s%@RANLIB@%$RANLIB%g
4402 s%@LINT_OPTS@%$LINT_OPTS%g
4405 s%@AR_OPTS@%$AR_OPTS%g
4406 s%@nc_cv_makeflags@%$nc_cv_makeflags%g
4407 s%@INSTALL_PREFIX@%$INSTALL_PREFIX%g
4408 s%@EXTRA_LIBS@%$EXTRA_LIBS%g
4409 s%@DFT_OBJ_SUBDIR@%$DFT_OBJ_SUBDIR%g
4410 s%@DFT_LWR_MODEL@%$DFT_LWR_MODEL%g
4411 s%@DFT_UPR_MODEL@%$DFT_UPR_MODEL%g
4412 s%@DFT_DEP_SUFFIX@%$DFT_DEP_SUFFIX%g
4413 s%@DFT_ARG_SUFFIX@%$DFT_ARG_SUFFIX%g
4414 s%@nc_list_models@%$nc_list_models%g
4415 s%@LIB_NAME@%$LIB_NAME%g
4416 s%@LIB_PREFIX@%$LIB_PREFIX%g
4417 s%@CC_G_OPT@%$CC_G_OPT%g
4418 s%@CXX_G_OPT@%$CXX_G_OPT%g
4419 s%@LD_MODEL@%$LD_MODEL%g
4420 s%@CC_SHARED_OPTS@%$CC_SHARED_OPTS%g
4421 s%@MK_SHARED_LIB@%$MK_SHARED_LIB%g
4422 s%@LOCAL_LDFLAGS@%$LOCAL_LDFLAGS%g
4423 s%@LOCAL_LDFLAGS2@%$LOCAL_LDFLAGS2%g
4424 s%@ECHO_LINK@%$ECHO_LINK%g
4425 s%@COULD_BE_SCO@%$COULD_BE_SCO%g
4426 s%@CXX_EXISTS@%$CXX_EXISTS%g
4427 s%@CXXCPP@%$CXXCPP%g
4428 s%@CXXLIBS@%$CXXLIBS%g
4429 s%@gnat_exists@%$gnat_exists%g
4430 s%@m4_exists@%$m4_exists%g
4431 s%@nc_ada_make@%$nc_ada_make%g
4432 s%@nc_ada_compiler@%$nc_ada_compiler%g
4433 s%@nc_ada_package@%$nc_ada_package%g
4434 s%@ADAFLAGS@%$ADAFLAGS%g
4435 s%@ACPPFLAGS@%$ACPPFLAGS%g
4436 s%@TEST_DEPS@%$TEST_DEPS%g
4437 s%@TEST_ARGS@%$TEST_ARGS%g
4438 s%@ADA_SUBDIRS@%$ADA_SUBDIRS%g
4439 s%@DIRS_TO_MAKE@%$DIRS_TO_MAKE%g
4444 cat >> $CONFIG_STATUS <<\EOF
4446 # Split the substitutions into bite-sized pieces for seds with
4447 # small command number limits, like on Digital OSF/1 and HP-UX.
4448 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4449 ac_file=1 # Number of current file.
4450 ac_beg=1 # First line for current file.
4451 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4454 while $ac_more_lines; do
4455 if test $ac_beg -gt 1; then
4456 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4458 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4460 if test ! -s conftest.s$ac_file; then
4462 rm -f conftest.s$ac_file
4464 if test -z "$ac_sed_cmds"; then
4465 ac_sed_cmds="sed -f conftest.s$ac_file"
4467 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4469 ac_file=`expr $ac_file + 1`
4471 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4474 if test -z "$ac_sed_cmds"; then
4479 cat >> $CONFIG_STATUS <<EOF
4481 CONFIG_FILES=\${CONFIG_FILES-"include/config_h \
4482 include/MKterm.h.awk \
4489 cat >> $CONFIG_STATUS <<\EOF
4490 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4491 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4493 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4494 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4495 *) ac_file_in="${ac_file}.in" ;;
4498 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4500 # Remove last slash and all that follows it. Not all systems have dirname.
4501 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4502 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4503 # The file is in a subdirectory.
4504 test ! -d "$ac_dir" && mkdir "$ac_dir"
4505 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4506 # A "../" for each directory in $ac_dir_suffix.
4507 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4509 ac_dir_suffix= ac_dots=
4512 case "$ac_given_srcdir" in
4514 if test -z "$ac_dots"; then top_srcdir=.
4515 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4516 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4518 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4519 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4522 case "$ac_given_INSTALL" in
4523 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4524 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4527 echo creating "$ac_file"
4529 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4531 *Makefile*) ac_comsub="1i\\
4532 # $configure_input" ;;
4536 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4538 s%@configure_input@%$configure_input%g
4539 s%@srcdir@%$srcdir%g
4540 s%@top_srcdir@%$top_srcdir%g
4541 s%@INSTALL@%$INSTALL%g
4542 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4547 cat >> $CONFIG_STATUS <<EOF
4549 ### Special initialization commands, used to pass information from the
4550 ### configuration-run into config.status
4552 SYS_NAME="`(uname -a || hostname) 2>/dev/null | sed 1q`"
4553 if test -z "\$SYS_NAME"; then SYS_NAME=unknown;fi
4556 DFT_LWR_MODEL="$DFT_LWR_MODEL"
4557 NC_LIST_MODELS="$nc_list_models"
4558 WITH_ECHO="$with_echo"
4559 WITH_OVERWRITE="$with_overwrite"
4560 SRC_SUBDIRS="$SRC_SUBDIRS"
4561 nc_cxx_library="$nc_cxx_library"
4562 nc_cv_systype="$nc_cv_systype"
4563 nc_cv_rel_version="$nc_cv_rel_version"
4564 nc_cv_abi_version="$nc_cv_abi_version"
4565 nc_cv_do_symlinks="$nc_cv_do_symlinks"
4566 nc_cv_rm_so_locs="$nc_cv_rm_so_locs"
4570 cat >> $CONFIG_STATUS <<\EOF
4576 for nc_dir in $SRC_SUBDIRS
4578 if test -f $srcdir/$nc_dir/modules; then