3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13.20000819
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 # Initialize some variables set by options.
16 # The variables have the same names as the options, with
17 # dashes changed to underlines.
19 cache_file=./config.cache
28 program_transform_name=s,x,x,
36 bindir='${exec_prefix}/bin'
37 sbindir='${exec_prefix}/sbin'
38 libexecdir='${exec_prefix}/libexec'
39 datadir='${prefix}/share'
40 sysconfdir='${prefix}/etc'
41 sharedstatedir='${prefix}/com'
42 localstatedir='${prefix}/var'
43 libdir='${exec_prefix}/lib'
44 includedir='${prefix}/include'
45 oldincludedir='/usr/include'
46 infodir='${prefix}/info'
47 mandir='${prefix}/man'
49 # Initialize some other variables.
52 SHELL=${CONFIG_SHELL-/bin/sh}
53 # Maximum number of lines to put in a shell here document.
60 # If the previous option needs an argument, assign it.
61 if test -n "$ac_prev"; then
62 eval "$ac_prev=\$ac_option"
68 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
72 # Accept the important Cygnus configure options, so we can diagnose typos.
76 -bindir | --bindir | --bindi | --bind | --bin | --bi)
78 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
79 bindir="$ac_optarg" ;;
81 -build | --build | --buil | --bui | --bu)
83 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
86 -cache-file | --cache-file | --cache-fil | --cache-fi \
87 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
89 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
90 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
91 cache_file="$ac_optarg" ;;
93 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
95 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
97 datadir="$ac_optarg" ;;
99 -disable-* | --disable-*)
100 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
101 # Reject names that are not valid shell variable names.
102 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
103 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
105 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
106 eval "enable_${ac_feature}=no" ;;
108 -enable-* | --enable-*)
109 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
110 # Reject names that are not valid shell variable names.
111 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
112 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
114 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
119 eval "enable_${ac_feature}='$ac_optarg'" ;;
121 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
122 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
123 | --exec | --exe | --ex)
124 ac_prev=exec_prefix ;;
125 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
126 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
127 | --exec=* | --exe=* | --ex=*)
128 exec_prefix="$ac_optarg" ;;
130 -gas | --gas | --ga | --g)
131 # Obsolete; use --with-gas.
134 -help | --help | --hel | --he)
135 # Omit some internal or obsolete options to make the list less imposing.
136 # This message is too long to be a string in the A/UX 3.1 sh.
138 Usage: configure [options] [host]
139 Options: [defaults in brackets after descriptions]
141 --cache-file=FILE cache test results in FILE
142 --help print this message
143 --no-create do not create output files
144 --quiet, --silent do not print \`checking...' messages
145 --version print the version of autoconf that created configure
146 Directory and file names:
147 --prefix=PREFIX install architecture-independent files in PREFIX
149 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
151 --bindir=DIR user executables in DIR [EPREFIX/bin]
152 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
153 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
154 --datadir=DIR read-only architecture-independent data in DIR
156 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
157 --sharedstatedir=DIR modifiable architecture-independent data in DIR
159 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
160 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
161 --includedir=DIR C header files in DIR [PREFIX/include]
162 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
163 --infodir=DIR info documentation in DIR [PREFIX/info]
164 --mandir=DIR man documentation in DIR [PREFIX/man]
165 --srcdir=DIR find the sources in DIR [configure dir or ..]
166 --program-prefix=PREFIX prepend PREFIX to installed program names
167 --program-suffix=SUFFIX append SUFFIX to installed program names
168 --program-transform-name=PROGRAM
169 run sed PROGRAM on installed program names
173 --build=BUILD configure for building on BUILD [BUILD=HOST]
174 --host=HOST configure for HOST [guessed]
175 --target=TARGET configure for TARGET [TARGET=HOST]
176 Features and packages:
177 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
178 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
179 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
180 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
181 --x-includes=DIR X include files are in DIR
182 --x-libraries=DIR X library files are in DIR
185 --enable and --with options recognized:
186 --with-5lib use SunOS sysv-libraries
187 --with-ncursesw use wide ncurses-libraries (installed)
188 --with-ncurses use ncurses-libraries (installed)
192 -host | --host | --hos | --ho)
194 -host=* | --host=* | --hos=* | --ho=*)
197 -includedir | --includedir | --includedi | --included | --include \
198 | --includ | --inclu | --incl | --inc)
199 ac_prev=includedir ;;
200 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
201 | --includ=* | --inclu=* | --incl=* | --inc=*)
202 includedir="$ac_optarg" ;;
204 -infodir | --infodir | --infodi | --infod | --info | --inf)
206 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
207 infodir="$ac_optarg" ;;
209 -libdir | --libdir | --libdi | --libd)
211 -libdir=* | --libdir=* | --libdi=* | --libd=*)
212 libdir="$ac_optarg" ;;
214 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
215 | --libexe | --libex | --libe)
216 ac_prev=libexecdir ;;
217 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
218 | --libexe=* | --libex=* | --libe=*)
219 libexecdir="$ac_optarg" ;;
221 -localstatedir | --localstatedir | --localstatedi | --localstated \
222 | --localstate | --localstat | --localsta | --localst \
223 | --locals | --local | --loca | --loc | --lo)
224 ac_prev=localstatedir ;;
225 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
226 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
227 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
228 localstatedir="$ac_optarg" ;;
230 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
232 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
233 mandir="$ac_optarg" ;;
236 # Obsolete; use --without-fp.
239 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
243 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
244 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
247 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
248 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
249 | --oldin | --oldi | --old | --ol | --o)
250 ac_prev=oldincludedir ;;
251 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
252 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
253 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
254 oldincludedir="$ac_optarg" ;;
256 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
258 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
259 prefix="$ac_optarg" ;;
261 -program-prefix | --program-prefix | --program-prefi | --program-pref \
262 | --program-pre | --program-pr | --program-p)
263 ac_prev=program_prefix ;;
264 -program-prefix=* | --program-prefix=* | --program-prefi=* \
265 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
266 program_prefix="$ac_optarg" ;;
268 -program-suffix | --program-suffix | --program-suffi | --program-suff \
269 | --program-suf | --program-su | --program-s)
270 ac_prev=program_suffix ;;
271 -program-suffix=* | --program-suffix=* | --program-suffi=* \
272 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
273 program_suffix="$ac_optarg" ;;
275 -program-transform-name | --program-transform-name \
276 | --program-transform-nam | --program-transform-na \
277 | --program-transform-n | --program-transform- \
278 | --program-transform | --program-transfor \
279 | --program-transfo | --program-transf \
280 | --program-trans | --program-tran \
281 | --progr-tra | --program-tr | --program-t)
282 ac_prev=program_transform_name ;;
283 -program-transform-name=* | --program-transform-name=* \
284 | --program-transform-nam=* | --program-transform-na=* \
285 | --program-transform-n=* | --program-transform-=* \
286 | --program-transform=* | --program-transfor=* \
287 | --program-transfo=* | --program-transf=* \
288 | --program-trans=* | --program-tran=* \
289 | --progr-tra=* | --program-tr=* | --program-t=*)
290 program_transform_name="$ac_optarg" ;;
292 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
293 | -silent | --silent | --silen | --sile | --sil)
296 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
298 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
300 sbindir="$ac_optarg" ;;
302 -sharedstatedir | --sharedstatedir | --sharedstatedi \
303 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
304 | --sharedst | --shareds | --shared | --share | --shar \
306 ac_prev=sharedstatedir ;;
307 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
308 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
309 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
311 sharedstatedir="$ac_optarg" ;;
313 -site | --site | --sit)
315 -site=* | --site=* | --sit=*)
318 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
320 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
321 srcdir="$ac_optarg" ;;
323 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
324 | --syscon | --sysco | --sysc | --sys | --sy)
325 ac_prev=sysconfdir ;;
326 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
327 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
328 sysconfdir="$ac_optarg" ;;
330 -target | --target | --targe | --targ | --tar | --ta | --t)
332 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
333 target="$ac_optarg" ;;
335 -v | -verbose | --verbose | --verbos | --verbo | --verb)
338 -version | --version | --versio | --versi | --vers)
339 echo "configure generated by autoconf version 2.13.20000819"
343 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
344 # Reject names that are not valid shell variable names.
345 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
346 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
348 ac_package=`echo $ac_package| sed 's/-/_/g'`
353 eval "with_${ac_package}='$ac_optarg'" ;;
355 -without-* | --without-*)
356 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
357 # Reject names that are not valid shell variable names.
358 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
359 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
361 ac_package=`echo $ac_package| sed 's/-/_/g'`
362 eval "with_${ac_package}=no" ;;
365 # Obsolete; use --with-x.
368 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
369 | --x-incl | --x-inc | --x-in | --x-i)
370 ac_prev=x_includes ;;
371 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
372 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
373 x_includes="$ac_optarg" ;;
375 -x-libraries | --x-libraries | --x-librarie | --x-librari \
376 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
377 ac_prev=x_libraries ;;
378 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
379 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
380 x_libraries="$ac_optarg" ;;
382 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
386 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
387 echo "configure: warning: $ac_option: invalid host type" 1>&2
389 if test "x$nonopt" != xNONE; then
390 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
398 if test -n "$ac_prev"; then
399 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
402 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
404 # File descriptor usage:
407 # 2 errors and warnings
408 # 3 some systems may open it to /dev/tty
409 # 4 used on the Kubota Titan
410 # 6 checking for... messages and results
411 # 5 compiler messages saved in config.log
412 if test "$silent" = yes; then
420 This file contains any messages produced by compilers while
421 running configure, to aid debugging if configure makes a mistake.
424 # Strip out --no-create and --no-recursion so they do not pile up.
425 # Also quote any args containing shell metacharacters.
430 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
431 | --no-cr | --no-c) ;;
432 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
433 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
434 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
435 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
436 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
441 # Only set these to C if already set. These must not be set unconditionally
442 # because not all systems understand e.g. LANG=C (notably SCO).
443 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
444 # Non-C LC_CTYPE values break the ctype check.
445 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
446 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
447 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
448 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
450 # confdefs.h avoids OS command line length limits that DEFS can exceed.
451 rm -rf conftest* confdefs.h
452 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
455 # A filename unique to this package, relative to the directory that
456 # configure is in, which we can look for to find out if srcdir is correct.
457 ac_unique_file=ncurses.c
459 # Find the source files, if location was not specified.
460 if test -z "$srcdir"; then
461 ac_srcdir_defaulted=yes
462 # Try the directory containing this script, then its parent.
464 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
465 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
467 if test ! -r $srcdir/$ac_unique_file; then
471 ac_srcdir_defaulted=no
473 if test ! -r $srcdir/$ac_unique_file; then
474 if test "$ac_srcdir_defaulted" = yes; then
475 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
477 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
480 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
482 # Prefer explicitly selected file to automatically selected ones.
483 if test -z "$CONFIG_SITE"; then
484 if test "x$prefix" != xNONE; then
485 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
487 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
490 for ac_site_file in $CONFIG_SITE; do
491 if test -r "$ac_site_file"; then
492 echo "loading site script $ac_site_file"
497 if test -r "$cache_file"; then
498 echo "loading cache $cache_file"
501 echo "creating cache $cache_file"
506 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
507 ac_cpp='$CPP $CPPFLAGS'
508 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
509 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
510 cross_compiling=$ac_cv_prog_cc_cross
514 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
515 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
516 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
523 ac_n= ac_c='\c' ac_t=
529 # Extract the first word of "gcc", so it can be a program name with args.
530 set dummy gcc; ac_word=$2
531 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
532 echo "configure:533: checking for $ac_word" >&5
533 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
534 echo $ac_n "(cached) $ac_c" 1>&6
536 if test -n "$CC"; then
537 ac_cv_prog_CC="$CC" # Let the user override the test.
539 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
541 for ac_dir in $ac_dummy; do
542 test -z "$ac_dir" && ac_dir=.
543 if test -f $ac_dir/$ac_word; then
552 if test -n "$CC"; then
553 echo "$ac_t""$CC" 1>&6
555 echo "$ac_t""no" 1>&6
558 if test -z "$CC"; then
559 # Extract the first word of "cc", so it can be a program name with args.
560 set dummy cc; ac_word=$2
561 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
562 echo "configure:563: checking for $ac_word" >&5
563 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
564 echo $ac_n "(cached) $ac_c" 1>&6
566 if test -n "$CC"; then
567 ac_cv_prog_CC="$CC" # Let the user override the test.
569 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
572 for ac_dir in $ac_dummy; do
573 test -z "$ac_dir" && ac_dir=.
574 if test -f $ac_dir/$ac_word; then
575 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
584 if test $ac_prog_rejected = yes; then
585 # We found a bogon in the path, so make sure we never use it.
586 set dummy $ac_cv_prog_CC
588 if test $# -gt 0; then
589 # We chose a different compiler from the bogus one.
590 # However, it has the same basename, so the bogon will be chosen
591 # first if we set CC to just the basename; use the full file name.
593 set dummy "$ac_dir/$ac_word" "$@"
601 if test -n "$CC"; then
602 echo "$ac_t""$CC" 1>&6
604 echo "$ac_t""no" 1>&6
607 if test -z "$CC"; then
610 # Extract the first word of "cl", so it can be a program name with args.
611 set dummy cl; ac_word=$2
612 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
613 echo "configure:614: checking for $ac_word" >&5
614 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
615 echo $ac_n "(cached) $ac_c" 1>&6
617 if test -n "$CC"; then
618 ac_cv_prog_CC="$CC" # Let the user override the test.
620 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
622 for ac_dir in $ac_dummy; do
623 test -z "$ac_dir" && ac_dir=.
624 if test -f $ac_dir/$ac_word; then
633 if test -n "$CC"; then
634 echo "$ac_t""$CC" 1>&6
636 echo "$ac_t""no" 1>&6
641 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
644 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
645 echo "configure:646: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
648 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
649 ac_cpp='$CPP $CPPFLAGS'
650 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
651 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
652 cross_compiling=$ac_cv_prog_cc_cross
654 cat > conftest.$ac_ext << EOF
656 #line 657 "configure"
657 #include "confdefs.h"
661 if { (eval echo configure:662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
662 ac_cv_prog_cc_works=yes
663 # If we can't run a trivial program, we are probably using a cross compiler.
664 if (./conftest; exit) 2>/dev/null; then
665 ac_cv_prog_cc_cross=no
667 ac_cv_prog_cc_cross=yes
670 echo "configure: failed program was:" >&5
671 cat conftest.$ac_ext >&5
672 ac_cv_prog_cc_works=no
676 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
677 ac_cpp='$CPP $CPPFLAGS'
678 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
679 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
680 cross_compiling=$ac_cv_prog_cc_cross
682 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
683 if test $ac_cv_prog_cc_works = no; then
684 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
686 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
687 echo "configure:688: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
688 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
689 cross_compiling=$ac_cv_prog_cc_cross
691 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
692 echo "configure:693: checking whether we are using GNU C" >&5
693 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
694 echo $ac_n "(cached) $ac_c" 1>&6
696 cat > conftest.c <<EOF
701 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
708 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
710 if test $ac_cv_prog_gcc = yes; then
716 ac_test_CFLAGS="${CFLAGS+set}"
717 ac_save_CFLAGS="$CFLAGS"
719 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
720 echo "configure:721: checking whether ${CC-cc} accepts -g" >&5
721 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
722 echo $ac_n "(cached) $ac_c" 1>&6
724 echo 'void f(){}' > conftest.c
725 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
734 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
735 if test "$ac_test_CFLAGS" = set; then
736 CFLAGS="$ac_save_CFLAGS"
737 elif test $ac_cv_prog_cc_g = yes; then
738 if test "$GCC" = yes; then
744 if test "$GCC" = yes; then
753 CC_SHARED_OPTS=unknown
756 DFT_OBJ_SUBDIR=`pwd|sed -e's:.*/::'`
757 DFT_UPR_MODEL="NORMAL"
758 ECHO_LINK='@ echo linking $@ ... ;'
779 # Check whether --with-5lib or --without-5lib was given.
780 if test "${with_5lib+set}" = set; then
782 LIBS="-L/usr/5lib $LIBS"
783 CPPFLAGS="$CPPFLAGS -I/usr/5include"
789 # Check whether --with-ncursesw or --without-ncursesw was given.
790 if test "${with_ncursesw+set}" = set; then
791 withval="$with_ncursesw"
793 cat >> confdefs.h <<\EOF
794 #define _GNU_SOURCE 1
797 cat >> confdefs.h <<\EOF
798 #define _XOPEN_SOURCE_EXTENDED 1
801 echo $ac_n "checking for initscr""... $ac_c" 1>&6
802 echo "configure:803: checking for initscr" >&5
803 if eval "test \"`echo '$''{'ac_cv_func_initscr'+set}'`\" = set"; then
804 echo $ac_n "(cached) $ac_c" 1>&6
806 cat > conftest.$ac_ext <<EOF
807 #line 808 "configure"
808 #include "confdefs.h"
809 /* System header to define __stub macros and hopefully few prototypes,
810 which can conflict with char initscr(); below. */
812 /* Override any gcc2 internal prototype to avoid an error. */
813 /* We use char because int might match the return type of a gcc2
814 builtin and then its argument prototype would still apply. */
819 /* The GNU C library defines this for functions which it implements
820 to always fail with ENOSYS. Some functions are actually named
821 something starting with __ and the normal name is an alias. */
822 #if defined (__stub_initscr) || defined (__stub___initscr)
830 if { (eval echo configure:831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
832 eval "ac_cv_func_initscr=yes"
834 echo "configure: failed program was:" >&5
835 cat conftest.$ac_ext >&5
837 eval "ac_cv_func_initscr=no"
842 if eval "test \"`echo '$ac_cv_func_'initscr`\" = yes"; then
843 echo "$ac_t""yes" 1>&6
846 echo "$ac_t""no" 1>&6
848 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
849 echo "configure:850: checking for Gpm_Open in -lgpm" >&5
850 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
851 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
852 echo $ac_n "(cached) $ac_c" 1>&6
856 cat > conftest.$ac_ext <<EOF
857 #line 858 "configure"
858 #include "confdefs.h"
859 /* Override any gcc2 internal prototype to avoid an error. */
860 /* We use char because int might match the return type of a gcc2
861 builtin and then its argument prototype would still apply. */
868 if { (eval echo configure:869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
870 eval "ac_cv_lib_$ac_lib_var=yes"
872 echo "configure: failed program was:" >&5
873 cat conftest.$ac_ext >&5
875 eval "ac_cv_lib_$ac_lib_var=no"
881 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
882 echo "$ac_t""yes" 1>&6
883 ac_tr_lib=HAVE_LIB`echo gpm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
884 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
885 cat >> confdefs.h <<EOF
892 echo "$ac_t""no" 1>&6
896 echo $ac_n "checking for putwc""... $ac_c" 1>&6
897 echo "configure:898: checking for putwc" >&5
898 if eval "test \"`echo '$''{'ac_cv_func_putwc'+set}'`\" = set"; then
899 echo $ac_n "(cached) $ac_c" 1>&6
901 cat > conftest.$ac_ext <<EOF
902 #line 903 "configure"
903 #include "confdefs.h"
904 /* System header to define __stub macros and hopefully few prototypes,
905 which can conflict with char putwc(); below. */
907 /* Override any gcc2 internal prototype to avoid an error. */
908 /* We use char because int might match the return type of a gcc2
909 builtin and then its argument prototype would still apply. */
914 /* The GNU C library defines this for functions which it implements
915 to always fail with ENOSYS. Some functions are actually named
916 something starting with __ and the normal name is an alias. */
917 #if defined (__stub_putwc) || defined (__stub___putwc)
925 if { (eval echo configure:926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
927 eval "ac_cv_func_putwc=yes"
929 echo "configure: failed program was:" >&5
930 cat conftest.$ac_ext >&5
932 eval "ac_cv_func_putwc=no"
937 if eval "test \"`echo '$ac_cv_func_'putwc`\" = yes"; then
938 echo "$ac_t""yes" 1>&6
941 echo "$ac_t""no" 1>&6
943 echo $ac_n "checking for putwc in libutf8""... $ac_c" 1>&6
944 echo "configure:945: checking for putwc in libutf8" >&5
945 if eval "test \"`echo '$''{'cf_cv_libutf8'+set}'`\" = set"; then
946 echo $ac_n "(cached) $ac_c" 1>&6
951 cat > conftest.$ac_ext <<EOF
952 #line 953 "configure"
953 #include "confdefs.h"
960 if { (eval echo configure:961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
964 echo "configure: failed program was:" >&5
965 cat conftest.$ac_ext >&5
974 echo "$ac_t""$cf_cv_libutf8" 1>&6
976 if test "$cf_cv_libutf8" = yes ; then
977 cat >> confdefs.h <<\EOF
978 #define HAVE_LIBUTF8_H 1
986 for p in $HOME /usr/local /usr
988 if test -f $p/include/ncursesw/curses.h
990 CPPFLAGS="$CPPFLAGS -I$p/include/ncursesw"
991 test $p != /usr && CPPFLAGS="$CPPFLAGS -I$p/include"
992 test $p != /usr && LIBS="-L$p/lib $LIBS"
996 if test -f $p/include/curses.h
998 CPPFLAGS="$CPPFLAGS -I$p/include"
999 LIBS="-L$p/lib $LIBS"
1011 # Check whether --with-ncurses or --without-ncurses was given.
1012 if test "${with_ncurses+set}" = set; then
1013 withval="$with_ncurses"
1014 echo $ac_n "checking for initscr""... $ac_c" 1>&6
1015 echo "configure:1016: checking for initscr" >&5
1016 if eval "test \"`echo '$''{'ac_cv_func_initscr'+set}'`\" = set"; then
1017 echo $ac_n "(cached) $ac_c" 1>&6
1019 cat > conftest.$ac_ext <<EOF
1020 #line 1021 "configure"
1021 #include "confdefs.h"
1022 /* System header to define __stub macros and hopefully few prototypes,
1023 which can conflict with char initscr(); below. */
1025 /* Override any gcc2 internal prototype to avoid an error. */
1026 /* We use char because int might match the return type of a gcc2
1027 builtin and then its argument prototype would still apply. */
1032 /* The GNU C library defines this for functions which it implements
1033 to always fail with ENOSYS. Some functions are actually named
1034 something starting with __ and the normal name is an alias. */
1035 #if defined (__stub_initscr) || defined (__stub___initscr)
1043 if { (eval echo configure:1044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1045 eval "ac_cv_func_initscr=yes"
1047 echo "configure: failed program was:" >&5
1048 cat conftest.$ac_ext >&5
1050 eval "ac_cv_func_initscr=no"
1055 if eval "test \"`echo '$ac_cv_func_'initscr`\" = yes"; then
1056 echo "$ac_t""yes" 1>&6
1059 echo "$ac_t""no" 1>&6
1061 echo $ac_n "checking for Gpm_Open in -lgpm""... $ac_c" 1>&6
1062 echo "configure:1063: checking for Gpm_Open in -lgpm" >&5
1063 ac_lib_var=`echo gpm'_'Gpm_Open | sed 'y%./+-%__p_%'`
1064 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1065 echo $ac_n "(cached) $ac_c" 1>&6
1067 ac_save_LIBS="$LIBS"
1069 cat > conftest.$ac_ext <<EOF
1070 #line 1071 "configure"
1071 #include "confdefs.h"
1072 /* Override any gcc2 internal prototype to avoid an error. */
1073 /* We use char because int might match the return type of a gcc2
1074 builtin and then its argument prototype would still apply. */
1081 if { (eval echo configure:1082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1083 eval "ac_cv_lib_$ac_lib_var=yes"
1085 echo "configure: failed program was:" >&5
1086 cat conftest.$ac_ext >&5
1088 eval "ac_cv_lib_$ac_lib_var=no"
1091 LIBS="$ac_save_LIBS"
1094 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1095 echo "$ac_t""yes" 1>&6
1096 ac_tr_lib=HAVE_LIB`echo gpm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1097 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1098 cat >> confdefs.h <<EOF
1099 #define $ac_tr_lib 1
1105 echo "$ac_t""no" 1>&6
1109 for p in $HOME /usr/local /usr
1111 if test -f $p/include/ncurses/curses.h
1113 CPPFLAGS="$CPPFLAGS -I$p/include/ncurses"
1114 test $p != /usr && CPPFLAGS="$CPPFLAGS -I$p/include"
1115 test $p != /usr && LIBS="-L$p/lib $LIBS"
1117 elif test $p != /usr
1119 if test -f $p/include/curses.h
1121 CPPFLAGS="$CPPFLAGS -I$p/include"
1122 LIBS="-L$p/lib $LIBS"
1135 echo $ac_n "checking for initscr""... $ac_c" 1>&6
1136 echo "configure:1137: checking for initscr" >&5
1137 if eval "test \"`echo '$''{'ac_cv_func_initscr'+set}'`\" = set"; then
1138 echo $ac_n "(cached) $ac_c" 1>&6
1140 cat > conftest.$ac_ext <<EOF
1141 #line 1142 "configure"
1142 #include "confdefs.h"
1143 /* System header to define __stub macros and hopefully few prototypes,
1144 which can conflict with char initscr(); below. */
1146 /* Override any gcc2 internal prototype to avoid an error. */
1147 /* We use char because int might match the return type of a gcc2
1148 builtin and then its argument prototype would still apply. */
1153 /* The GNU C library defines this for functions which it implements
1154 to always fail with ENOSYS. Some functions are actually named
1155 something starting with __ and the normal name is an alias. */
1156 #if defined (__stub_initscr) || defined (__stub___initscr)
1164 if { (eval echo configure:1165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1166 eval "ac_cv_func_initscr=yes"
1168 echo "configure: failed program was:" >&5
1169 cat conftest.$ac_ext >&5
1171 eval "ac_cv_func_initscr=no"
1176 if eval "test \"`echo '$ac_cv_func_'initscr`\" = yes"; then
1177 echo "$ac_t""yes" 1>&6
1180 echo "$ac_t""no" 1>&6
1182 echo $ac_n "checking for initscr in -l$LIB_NAME""... $ac_c" 1>&6
1183 echo "configure:1184: checking for initscr in -l$LIB_NAME" >&5
1184 ac_lib_var=`echo $LIB_NAME'_'initscr | sed 'y%./+-%__p_%'`
1185 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1186 echo $ac_n "(cached) $ac_c" 1>&6
1188 ac_save_LIBS="$LIBS"
1189 LIBS="-l$LIB_NAME $LIBS"
1190 cat > conftest.$ac_ext <<EOF
1191 #line 1192 "configure"
1192 #include "confdefs.h"
1193 /* Override any gcc2 internal prototype to avoid an error. */
1194 /* We use char because int might match the return type of a gcc2
1195 builtin and then its argument prototype would still apply. */
1202 if { (eval echo configure:1203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1204 eval "ac_cv_lib_$ac_lib_var=yes"
1206 echo "configure: failed program was:" >&5
1207 cat conftest.$ac_ext >&5
1209 eval "ac_cv_lib_$ac_lib_var=no"
1212 LIBS="$ac_save_LIBS"
1215 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1216 echo "$ac_t""yes" 1>&6
1217 ac_tr_lib=HAVE_LIB`echo $LIB_NAME | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1218 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1219 cat >> confdefs.h <<EOF
1220 #define $ac_tr_lib 1
1223 LIBS="-l$LIB_NAME $LIBS"
1226 echo "$ac_t""no" 1>&6
1231 echo $ac_n "checking for form_driver in -lform""... $ac_c" 1>&6
1232 echo "configure:1233: checking for form_driver in -lform" >&5
1233 ac_lib_var=`echo form'_'form_driver | sed 'y%./+-%__p_%'`
1234 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1235 echo $ac_n "(cached) $ac_c" 1>&6
1237 ac_save_LIBS="$LIBS"
1239 cat > conftest.$ac_ext <<EOF
1240 #line 1241 "configure"
1241 #include "confdefs.h"
1242 /* Override any gcc2 internal prototype to avoid an error. */
1243 /* We use char because int might match the return type of a gcc2
1244 builtin and then its argument prototype would still apply. */
1251 if { (eval echo configure:1252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1253 eval "ac_cv_lib_$ac_lib_var=yes"
1255 echo "configure: failed program was:" >&5
1256 cat conftest.$ac_ext >&5
1258 eval "ac_cv_lib_$ac_lib_var=no"
1261 LIBS="$ac_save_LIBS"
1264 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1265 echo "$ac_t""yes" 1>&6
1266 ac_tr_lib=HAVE_LIB`echo form | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1267 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1268 cat >> confdefs.h <<EOF
1269 #define $ac_tr_lib 1
1275 echo "$ac_t""no" 1>&6
1278 echo $ac_n "checking for menu_driver in -lmenu""... $ac_c" 1>&6
1279 echo "configure:1280: checking for menu_driver in -lmenu" >&5
1280 ac_lib_var=`echo menu'_'menu_driver | sed 'y%./+-%__p_%'`
1281 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1282 echo $ac_n "(cached) $ac_c" 1>&6
1284 ac_save_LIBS="$LIBS"
1286 cat > conftest.$ac_ext <<EOF
1287 #line 1288 "configure"
1288 #include "confdefs.h"
1289 /* Override any gcc2 internal prototype to avoid an error. */
1290 /* We use char because int might match the return type of a gcc2
1291 builtin and then its argument prototype would still apply. */
1298 if { (eval echo configure:1299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1300 eval "ac_cv_lib_$ac_lib_var=yes"
1302 echo "configure: failed program was:" >&5
1303 cat conftest.$ac_ext >&5
1305 eval "ac_cv_lib_$ac_lib_var=no"
1308 LIBS="$ac_save_LIBS"
1311 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1312 echo "$ac_t""yes" 1>&6
1313 ac_tr_lib=HAVE_LIB`echo menu | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1314 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1315 cat >> confdefs.h <<EOF
1316 #define $ac_tr_lib 1
1322 echo "$ac_t""no" 1>&6
1325 echo $ac_n "checking for new_panel in -lpanel""... $ac_c" 1>&6
1326 echo "configure:1327: checking for new_panel in -lpanel" >&5
1327 ac_lib_var=`echo panel'_'new_panel | sed 'y%./+-%__p_%'`
1328 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1329 echo $ac_n "(cached) $ac_c" 1>&6
1331 ac_save_LIBS="$LIBS"
1332 LIBS="-lpanel $LIBS"
1333 cat > conftest.$ac_ext <<EOF
1334 #line 1335 "configure"
1335 #include "confdefs.h"
1336 /* Override any gcc2 internal prototype to avoid an error. */
1337 /* We use char because int might match the return type of a gcc2
1338 builtin and then its argument prototype would still apply. */
1345 if { (eval echo configure:1346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1347 eval "ac_cv_lib_$ac_lib_var=yes"
1349 echo "configure: failed program was:" >&5
1350 cat conftest.$ac_ext >&5
1352 eval "ac_cv_lib_$ac_lib_var=no"
1355 LIBS="$ac_save_LIBS"
1358 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1359 echo "$ac_t""yes" 1>&6
1360 ac_tr_lib=HAVE_LIB`echo panel | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1361 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1362 cat >> confdefs.h <<EOF
1363 #define $ac_tr_lib 1
1366 LIBS="-lpanel $LIBS"
1369 echo "$ac_t""no" 1>&6
1373 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1374 echo "configure:1375: checking return type of signal handlers" >&5
1375 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1376 echo $ac_n "(cached) $ac_c" 1>&6
1378 cat > conftest.$ac_ext <<EOF
1379 #line 1380 "configure"
1380 #include "confdefs.h"
1381 #include <sys/types.h>
1387 extern "C" void (*signal (int, void (*)(int)))(int);
1389 void (*signal ()) ();
1396 if { (eval echo configure:1397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1398 ac_cv_type_signal=void
1400 echo "configure: failed program was:" >&5
1401 cat conftest.$ac_ext >&5
1403 ac_cv_type_signal=int
1408 echo "$ac_t""$ac_cv_type_signal" 1>&6
1409 cat >> confdefs.h <<EOF
1410 #define RETSIGTYPE $ac_cv_type_signal
1415 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1416 echo "configure:1417: checking how to run the C preprocessor" >&5
1417 # On Suns, sometimes $CPP names a directory.
1418 if test -n "$CPP" && test -d "$CPP"; then
1421 if test -z "$CPP"; then
1422 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1423 echo $ac_n "(cached) $ac_c" 1>&6
1425 # This must be in double quotes, not single quotes, because CPP may get
1426 # substituted into the Makefile and "${CC-cc}" will confuse make.
1428 # On the NeXT, cc -E runs the code through the compiler's parser,
1429 # not just through cpp.
1430 cat > conftest.$ac_ext <<EOF
1431 #line 1432 "configure"
1432 #include "confdefs.h"
1436 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1437 { (eval echo configure:1438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1438 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1439 if test -z "$ac_err"; then
1443 echo "configure: failed program was:" >&5
1444 cat conftest.$ac_ext >&5
1446 CPP="${CC-cc} -E -traditional-cpp"
1447 cat > conftest.$ac_ext <<EOF
1448 #line 1449 "configure"
1449 #include "confdefs.h"
1453 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1454 { (eval echo configure:1455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1455 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1456 if test -z "$ac_err"; then
1460 echo "configure: failed program was:" >&5
1461 cat conftest.$ac_ext >&5
1463 CPP="${CC-cc} -nologo -E"
1464 cat > conftest.$ac_ext <<EOF
1465 #line 1466 "configure"
1466 #include "confdefs.h"
1470 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1471 { (eval echo configure:1472: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1472 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1473 if test -z "$ac_err"; then
1477 echo "configure: failed program was:" >&5
1478 cat conftest.$ac_ext >&5
1487 ac_cv_prog_CPP="$CPP"
1489 CPP="$ac_cv_prog_CPP"
1491 ac_cv_prog_CPP="$CPP"
1493 echo "$ac_t""$CPP" 1>&6
1495 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1496 echo "configure:1497: checking for ANSI C header files" >&5
1497 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1498 echo $ac_n "(cached) $ac_c" 1>&6
1500 cat > conftest.$ac_ext <<EOF
1501 #line 1502 "configure"
1502 #include "confdefs.h"
1508 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1509 { (eval echo configure:1510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1510 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1511 if test -z "$ac_err"; then
1513 ac_cv_header_stdc=yes
1516 echo "configure: failed program was:" >&5
1517 cat conftest.$ac_ext >&5
1519 ac_cv_header_stdc=no
1523 if test $ac_cv_header_stdc = yes; then
1524 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1525 cat > conftest.$ac_ext <<EOF
1526 #line 1527 "configure"
1527 #include "confdefs.h"
1530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1531 egrep "memchr" >/dev/null 2>&1; then
1535 ac_cv_header_stdc=no
1541 if test $ac_cv_header_stdc = yes; then
1542 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1543 cat > conftest.$ac_ext <<EOF
1544 #line 1545 "configure"
1545 #include "confdefs.h"
1548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1549 egrep "free" >/dev/null 2>&1; then
1553 ac_cv_header_stdc=no
1559 if test $ac_cv_header_stdc = yes; then
1560 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1561 if test "$cross_compiling" = yes; then
1564 cat > conftest.$ac_ext <<EOF
1565 #line 1566 "configure"
1566 #include "confdefs.h"
1568 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1569 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1570 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1571 int main () { int i; for (i = 0; i < 256; i++)
1572 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1576 if { (eval echo configure:1577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1580 echo "configure: failed program was:" >&5
1581 cat conftest.$ac_ext >&5
1583 ac_cv_header_stdc=no
1591 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1592 if test $ac_cv_header_stdc = yes; then
1593 cat >> confdefs.h <<\EOF
1594 #define STDC_HEADERS 1
1599 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1600 echo "configure:1601: checking whether time.h and sys/time.h may both be included" >&5
1601 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1602 echo $ac_n "(cached) $ac_c" 1>&6
1604 cat > conftest.$ac_ext <<EOF
1605 #line 1606 "configure"
1606 #include "confdefs.h"
1607 #include <sys/types.h>
1608 #include <sys/time.h>
1614 if { (eval echo configure:1615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1616 ac_cv_header_time=yes
1618 echo "configure: failed program was:" >&5
1619 cat conftest.$ac_ext >&5
1621 ac_cv_header_time=no
1626 echo "$ac_t""$ac_cv_header_time" 1>&6
1627 if test $ac_cv_header_time = yes; then
1628 cat >> confdefs.h <<\EOF
1629 #define TIME_WITH_SYS_TIME 1
1649 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1650 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1651 echo "configure:1652: checking for $ac_hdr" >&5
1652 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1653 echo $ac_n "(cached) $ac_c" 1>&6
1655 cat > conftest.$ac_ext <<EOF
1656 #line 1657 "configure"
1657 #include "confdefs.h"
1660 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1661 { (eval echo configure:1662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1662 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1663 if test -z "$ac_err"; then
1665 eval "ac_cv_header_$ac_safe=yes"
1668 echo "configure: failed program was:" >&5
1669 cat conftest.$ac_ext >&5
1671 eval "ac_cv_header_$ac_safe=no"
1675 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1676 echo "$ac_t""yes" 1>&6
1677 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1678 cat >> confdefs.h <<EOF
1679 #define $ac_tr_hdr 1
1683 echo "$ac_t""no" 1>&6
1695 use_default_colors \
1700 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1701 echo "configure:1702: checking for $ac_func" >&5
1702 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1703 echo $ac_n "(cached) $ac_c" 1>&6
1705 cat > conftest.$ac_ext <<EOF
1706 #line 1707 "configure"
1707 #include "confdefs.h"
1708 /* System header to define __stub macros and hopefully few prototypes,
1709 which can conflict with char $ac_func(); below. */
1711 /* Override any gcc2 internal prototype to avoid an error. */
1712 /* We use char because int might match the return type of a gcc2
1713 builtin and then its argument prototype would still apply. */
1718 /* The GNU C library defines this for functions which it implements
1719 to always fail with ENOSYS. Some functions are actually named
1720 something starting with __ and the normal name is an alias. */
1721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1729 if { (eval echo configure:1730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1731 eval "ac_cv_func_$ac_func=yes"
1733 echo "configure: failed program was:" >&5
1734 cat conftest.$ac_ext >&5
1736 eval "ac_cv_func_$ac_func=no"
1741 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1742 echo "$ac_t""yes" 1>&6
1743 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1744 cat >> confdefs.h <<EOF
1745 #define $ac_tr_func 1
1749 echo "$ac_t""no" 1>&6
1754 echo $ac_n "checking for function curses_version""... $ac_c" 1>&6
1755 echo "configure:1756: checking for function curses_version" >&5
1756 if eval "test \"`echo '$''{'cf_cv_func_curses_version'+set}'`\" = set"; then
1757 echo $ac_n "(cached) $ac_c" 1>&6
1760 if test "$cross_compiling" = yes; then
1761 cf_cv_func_curses_version=unknown
1763 cat > conftest.$ac_ext <<EOF
1764 #line 1765 "configure"
1765 #include "confdefs.h"
1771 sprintf(temp, "%s\n", curses_version());
1776 if { (eval echo configure:1777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1778 cf_cv_func_curses_version=yes
1781 echo "configure: failed program was:" >&5
1782 cat conftest.$ac_ext >&5
1784 cf_cv_func_curses_version=no
1793 echo "$ac_t""$cf_cv_func_curses_version" 1>&6
1794 test "$cf_cv_func_curses_version" = yes && cat >> confdefs.h <<\EOF
1795 #define HAVE_CURSES_VERSION 1
1799 echo $ac_n "checking for alternate character set array""... $ac_c" 1>&6
1800 echo "configure:1801: checking for alternate character set array" >&5
1801 if eval "test \"`echo '$''{'cf_cv_curses_acs_map'+set}'`\" = set"; then
1802 echo $ac_n "(cached) $ac_c" 1>&6
1805 cf_cv_curses_acs_map=unknown
1806 for name in acs_map _acs_map __acs_map _nc_acs_map
1808 cat > conftest.$ac_ext <<EOF
1809 #line 1810 "configure"
1810 #include "confdefs.h"
1816 $name['k'] = ACS_PLUS
1820 if { (eval echo configure:1821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1822 cf_cv_curses_acs_map=$name; break
1824 echo "configure: failed program was:" >&5
1825 cat conftest.$ac_ext >&5
1832 echo "$ac_t""$cf_cv_curses_acs_map" 1>&6
1834 test "$cf_cv_curses_acs_map" != unknown && cat >> confdefs.h <<EOF
1835 #define CURSES_ACS_ARRAY $cf_cv_curses_acs_map
1839 echo $ac_n "checking for wide alternate character set array""... $ac_c" 1>&6
1840 echo "configure:1841: checking for wide alternate character set array" >&5
1841 if eval "test \"`echo '$''{'cf_cv_curses_wacs_map'+set}'`\" = set"; then
1842 echo $ac_n "(cached) $ac_c" 1>&6
1845 cf_cv_curses_wacs_map=unknown
1846 for name in wacs_map _wacs_map __wacs_map _nc_wacs
1848 cat > conftest.$ac_ext <<EOF
1849 #line 1850 "configure"
1850 #include "confdefs.h"
1852 #ifndef _XOPEN_SOURCE_EXTENDED
1853 #define _XOPEN_SOURCE_EXTENDED
1859 $name['k'] = *WACS_PLUS
1863 if { (eval echo configure:1864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1865 cf_cv_curses_wacs_map=$name; break
1867 echo "configure: failed program was:" >&5
1868 cat conftest.$ac_ext >&5
1875 echo "$ac_t""$cf_cv_curses_wacs_map" 1>&6
1877 test "$cf_cv_curses_wacs_map" != unknown && cat >> confdefs.h <<EOF
1878 #define CURSES_WACS_ARRAY $cf_cv_curses_wacs_map
1885 echo $ac_n "checking for type attr_t in curses.h""... $ac_c" 1>&6
1886 echo "configure:1887: checking for type attr_t in curses.h" >&5
1887 cat > conftest.$ac_ext <<EOF
1888 #line 1889 "configure"
1889 #include "confdefs.h"
1891 #ifndef _XOPEN_SOURCE_EXTENDED
1892 #define _XOPEN_SOURCE_EXTENDED
1901 if { (eval echo configure:1902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1905 echo "configure: failed program was:" >&5
1906 cat conftest.$ac_ext >&5
1911 echo "$ac_t""$cf_result" 1>&6
1912 if test $cf_result = yes ; then
1914 cf_result=`echo "have_type_attr_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1916 cat >> confdefs.h <<EOF
1917 #define $cf_result 1
1921 cat >> confdefs.h <<EOF
1928 echo $ac_n "checking for type mbstate_t in curses.h""... $ac_c" 1>&6
1929 echo "configure:1930: checking for type mbstate_t in curses.h" >&5
1930 cat > conftest.$ac_ext <<EOF
1931 #line 1932 "configure"
1932 #include "confdefs.h"
1934 #ifndef _XOPEN_SOURCE_EXTENDED
1935 #define _XOPEN_SOURCE_EXTENDED
1944 if { (eval echo configure:1945: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1948 echo "configure: failed program was:" >&5
1949 cat conftest.$ac_ext >&5
1954 echo "$ac_t""$cf_result" 1>&6
1955 if test $cf_result = yes ; then
1957 cf_result=`echo "have_type_mbstate_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1959 cat >> confdefs.h <<EOF
1960 #define $cf_result 1
1964 cat >> confdefs.h <<EOF
1965 #define mbstate_t long
1972 echo $ac_n "checking if sys/time.h works with sys/select.h""... $ac_c" 1>&6
1973 echo "configure:1974: checking if sys/time.h works with sys/select.h" >&5
1974 if eval "test \"`echo '$''{'cf_cv_sys_time_select'+set}'`\" = set"; then
1975 echo $ac_n "(cached) $ac_c" 1>&6
1978 cat > conftest.$ac_ext <<EOF
1979 #line 1980 "configure"
1980 #include "confdefs.h"
1982 #include <sys/types.h>
1983 #ifdef HAVE_SYS_TIME_H
1984 #include <sys/time.h>
1986 #ifdef HAVE_SYS_SELECT_H
1987 #include <sys/select.h>
1994 if { (eval echo configure:1995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1996 cf_cv_sys_time_select=yes
1998 echo "configure: failed program was:" >&5
1999 cat conftest.$ac_ext >&5
2001 cf_cv_sys_time_select=no
2007 echo "$ac_t""$cf_cv_sys_time_select" 1>&6
2008 test "$cf_cv_sys_time_select" = yes && cat >> confdefs.h <<\EOF
2009 #define HAVE_SYS_TIME_SELECT 1
2015 cat > confcache <<\EOF
2016 # This file is a shell script that caches the results of configure
2017 # tests run on this system so they can be shared between configure
2018 # scripts and configure runs. It is not useful on other systems.
2019 # If it contains results you don't want to keep, you may remove or edit it.
2021 # By default, configure uses ./config.cache as the cache file,
2022 # creating it if it does not exist already. You can give configure
2023 # the --cache-file=FILE option to use a different cache file; that is
2024 # what configure does when it calls configure scripts in
2025 # subdirectories, so they share the cache.
2026 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2027 # config.status only pays attention to the cache file if you give it the
2028 # --recheck option to rerun configure.
2031 # The following way of writing the cache mishandles newlines in values,
2032 # but we know of no workaround that is simple, portable, and efficient.
2033 # So, don't put newlines in cache variables' values.
2034 # Ultrix sh set writes to stderr and can't be redirected directly,
2035 # and sets the high bit in the cache file unless we assign to the vars.
2037 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2039 # `set' does not quote correctly, so add quotes (double-quote substitution
2040 # turns \\\\ into \\, and sed turns \\ into \).
2042 -e "s/'/'\\\\''/g" \
2043 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2046 # `set' quotes correctly as required by POSIX, so do not add quotes.
2047 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2050 if cmp -s $cache_file confcache; then
2053 if test -w $cache_file; then
2054 echo "updating cache $cache_file"
2055 cat confcache > $cache_file
2057 echo "not updating unwritable cache $cache_file"
2062 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2064 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2065 # Let make expand exec_prefix.
2066 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2068 # Any assignment to VPATH causes Sun make to only execute
2069 # the first set of double-colon rules, so remove it if not needed.
2070 # If there is a colon in the path, we need to keep it.
2071 if test "x$srcdir" = x.; then
2072 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2075 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2077 DEFS=-DHAVE_CONFIG_H
2079 # Without the "./", some shells look in PATH for config.status.
2080 : ${CONFIG_STATUS=./config.status}
2082 echo creating $CONFIG_STATUS
2083 rm -f $CONFIG_STATUS
2084 cat > $CONFIG_STATUS <<EOF
2086 # Generated automatically by configure.
2087 # Run this file to recreate the current configuration.
2088 # This directory was configured as follows,
2089 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2091 # $0 $ac_configure_args
2093 # Compiler output produced by configure, useful for debugging
2094 # configure, is in ./config.log if it exists.
2096 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2099 case "\$ac_option" in
2100 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2101 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2102 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2103 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2104 echo "$CONFIG_STATUS generated by autoconf version 2.13.20000819"
2106 -help | --help | --hel | --he | --h)
2107 echo "\$ac_cs_usage"; exit 0 ;;
2108 *) echo "\$ac_cs_usage"; exit 1 ;;
2112 ac_given_srcdir=$srcdir
2114 trap 'rm -fr `echo "Makefile ncurses_cfg.h:ncurses_tst.hin" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2116 cat >> $CONFIG_STATUS <<EOF
2118 # Protect against being on the right side of a sed subst in config.status.
2119 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2120 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2124 s%@CFLAGS@%$CFLAGS%g
2125 s%@CPPFLAGS@%$CPPFLAGS%g
2126 s%@CXXFLAGS@%$CXXFLAGS%g
2127 s%@FFLAGS@%$FFLAGS%g
2129 s%@LDFLAGS@%$LDFLAGS%g
2131 s%@exec_prefix@%$exec_prefix%g
2132 s%@prefix@%$prefix%g
2133 s%@program_transform_name@%$program_transform_name%g
2134 s%@bindir@%$bindir%g
2135 s%@sbindir@%$sbindir%g
2136 s%@libexecdir@%$libexecdir%g
2137 s%@datadir@%$datadir%g
2138 s%@sysconfdir@%$sysconfdir%g
2139 s%@sharedstatedir@%$sharedstatedir%g
2140 s%@localstatedir@%$localstatedir%g
2141 s%@libdir@%$libdir%g
2142 s%@includedir@%$includedir%g
2143 s%@oldincludedir@%$oldincludedir%g
2144 s%@infodir@%$infodir%g
2145 s%@mandir@%$mandir%g
2147 s%@CC_G_OPT@%$CC_G_OPT%g
2148 s%@CC_SHARED_OPTS@%$CC_SHARED_OPTS%g
2149 s%@DFT_DEP_SUFFIX@%$DFT_DEP_SUFFIX%g
2150 s%@DFT_OBJ_SUBDIR@%$DFT_OBJ_SUBDIR%g
2151 s%@DFT_UPR_MODEL@%$DFT_UPR_MODEL%g
2152 s%@ECHO_LINK@%$ECHO_LINK%g
2153 s%@EXTRA_LIBS@%$EXTRA_LIBS%g
2155 s%@LDFLAGS_SHARED@%$LDFLAGS_SHARED%g
2156 s%@LD_MODEL@%$LD_MODEL%g
2157 s%@LD_SHARED_OPTS@%$LD_SHARED_OPTS%g
2158 s%@LIBTOOL@%$LIBTOOL%g
2159 s%@LIB_NAME@%$LIB_NAME%g
2160 s%@LIB_PREFIX@%$LIB_PREFIX%g
2161 s%@LINK_TESTS@%$LINK_TESTS%g
2163 s%@LINT_OPTS@%$LINT_OPTS%g
2164 s%@LOCAL_LDFLAGS@%$LOCAL_LDFLAGS%g
2165 s%@MATH_LIB@%$MATH_LIB%g
2166 s%@PROG_EXT@%$PROG_EXT%g
2167 s%@TEST_ARGS@%$TEST_ARGS%g
2168 s%@TEST_DEPS@%$TEST_DEPS%g
2169 s%@cf_cv_abi_version@%$cf_cv_abi_version%g
2170 s%@cf_cv_rel_version@%$cf_cv_rel_version%g
2176 cat >> $CONFIG_STATUS <<\EOF
2178 # Split the substitutions into bite-sized pieces for seds with
2179 # small command number limits, like on Digital OSF/1 and HP-UX.
2180 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2181 ac_file=1 # Number of current file.
2182 ac_beg=1 # First line for current file.
2183 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2186 while $ac_more_lines; do
2187 if test $ac_beg -gt 1; then
2188 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2190 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2192 if test ! -s conftest.s$ac_file; then
2194 rm -f conftest.s$ac_file
2196 if test -z "$ac_sed_cmds"; then
2197 ac_sed_cmds="sed -f conftest.s$ac_file"
2199 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2201 ac_file=`expr $ac_file + 1`
2203 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2206 if test -z "$ac_sed_cmds"; then
2211 cat >> $CONFIG_STATUS <<EOF
2213 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2215 cat >> $CONFIG_STATUS <<\EOF
2216 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2217 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2219 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2220 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2221 *) ac_file_in="${ac_file}.in" ;;
2224 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2226 # Remove last slash and all that follows it. Not all systems have dirname.
2227 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2228 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2229 # The file is in a subdirectory.
2230 test ! -d "$ac_dir" && mkdir "$ac_dir"
2231 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2232 # A "../" for each directory in $ac_dir_suffix.
2233 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2235 ac_dir_suffix= ac_dots=
2238 case "$ac_given_srcdir" in
2240 if test -z "$ac_dots"; then top_srcdir=.
2241 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2242 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2244 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2245 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2249 echo creating "$ac_file"
2251 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2253 *Makefile*) ac_comsub="1i\\
2254 # $configure_input" ;;
2258 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2260 s%@configure_input@%$configure_input%g
2261 s%@srcdir@%$srcdir%g
2262 s%@top_srcdir@%$top_srcdir%g
2263 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2267 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2268 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2270 # ac_d sets the value in "#define NAME VALUE" lines.
2271 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2272 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2275 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2276 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2277 ac_uB='\([ ]\)%\1#\2define\3'
2280 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2281 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2282 ac_eB='$%\1#\2define\3'
2286 if test "${CONFIG_HEADERS+set}" != set; then
2288 cat >> $CONFIG_STATUS <<EOF
2289 CONFIG_HEADERS="ncurses_cfg.h:ncurses_tst.hin"
2291 cat >> $CONFIG_STATUS <<\EOF
2293 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2294 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2296 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2297 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2298 *) ac_file_in="${ac_file}.in" ;;
2301 echo creating $ac_file
2303 rm -f conftest.frag conftest.in conftest.out
2304 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2305 cat $ac_file_inputs > conftest.in
2310 # Transform confdefs.h into a list of #define's. We won't use it as a sed
2311 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
2312 # be either 'cat' or 'sort'.
2313 sort confdefs.h >conftest.vals
2315 # Break up conftest.vals because some shells have a limit on
2316 # the size of here documents, and old seds have small limits too.
2319 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
2322 ac_lines=`grep -c . conftest.vals`
2323 # grep -c gives empty output for an empty file on some AIX systems.
2324 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2325 # Write chunks of a limited-size here document to conftest.frag.
2326 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
2327 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2328 echo 'CEOF' >> $CONFIG_STATUS
2329 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2331 mv conftest.tail conftest.vals
2335 # Run sed to substitute the contents of conftest.frag into conftest.in at the
2337 echo ' cat >> conftest.edit <<CEOF
2338 /@DEFS@/r conftest.frag
2341 sed -f conftest.edit conftest.in > conftest.out
2343 mv conftest.out conftest.in
2344 rm -f conftest.edit conftest.frag
2348 cat >> $CONFIG_STATUS <<\EOF
2349 rm -f conftest.frag conftest.h
2350 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2351 cat conftest.in >> conftest.h
2353 if cmp -s $ac_file conftest.h 2>/dev/null; then
2354 echo "$ac_file is unchanged"
2357 # Remove last slash and all that follows it. Not all systems have dirname.
2358 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2359 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2360 # The file is in a subdirectory.
2361 test ! -d "$ac_dir" && mkdir "$ac_dir"
2364 mv conftest.h $ac_file
2369 cat >> $CONFIG_STATUS <<EOF
2370 # Extra initialization commands, if any
2373 cat >> $CONFIG_STATUS <<\EOF
2374 # Extra commands, if any
2376 cat >>Makefile <<TEST_EOF
2378 # These rules are generated so we do not rely on suffix rules, which do not
2379 # work consistently for different make-programs (the '\$(MODEL)/' confuses
2380 # some, and the '\$x' confuses others).
2382 LIST=`make echo_tests`
2383 LAST=`make echo_suffix`
2386 N=`echo $n | sed -e s/${LAST}\$//`
2387 cat >>Makefile <<TEST_EOF
2389 \$(MODEL)/$N.o : $N.c \\
2392 @echo compiling $N; \$(CC) -c \$(CFLAGS_DEFAULT) $N.c
2398 chmod +x $CONFIG_STATUS
2399 rm -fr confdefs* $ac_clean_files
2400 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1