2 # From configure.in Revision: 1.36 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20101002.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Avoid depending upon Character Ranges.
12 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15 as_cr_digits='0123456789'
16 as_cr_alnum=$as_cr_Letters$as_cr_digits
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21 # Sed expression to map a string onto a valid CPP name.
22 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
32 # Name of the executable.
33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
35 if expr a : '\(a\)' >/dev/null 2>&1; then
41 rm -f conf$$ conf$$.exe conf$$.file
43 if ln -s conf$$.file conf$$ 2>/dev/null; then
44 # We could just check for DJGPP; but this test a) works b) is more generic
45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46 if test -f conf$$.exe; then
47 # Don't use ln at all; we don't have any links
52 elif ln conf$$.file conf$$ 2>/dev/null; then
57 rm -f conf$$ conf$$.exe conf$$.file
59 as_executable_p="test -f"
61 # Support unset when possible.
62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
69 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
79 # We need space, tab and new line, in precisely that order.
85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
88 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89 # so uname gets run too.
90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
97 ac_default_prefix=/usr/local
101 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
104 # This variable seems obsolete. It should probably be removed, and
105 # only ac_max_sed_lines should be used.
106 : ${ac_max_here_lines=38}
108 ac_unique_file="gen/gen.c"
110 # Initialize some variables set by options.
112 ac_init_version=false
113 # The variables have the same names as the options, with
114 # dashes changed to underlines.
122 program_transform_name=s,x,x,
130 # Installation directory options.
131 # These are left unexpanded so users can "make install exec_prefix=/foo"
132 # and all the variables that are supposed to be based on exec_prefix
133 # by default will actually change.
134 # Use braces instead of parens because sh, perl, etc. also accept them.
135 bindir='${exec_prefix}/bin'
136 sbindir='${exec_prefix}/sbin'
137 libexecdir='${exec_prefix}/libexec'
138 datadir='${prefix}/share'
139 sysconfdir='${prefix}/etc'
140 sharedstatedir='${prefix}/com'
141 localstatedir='${prefix}/var'
142 libdir='${exec_prefix}/lib'
143 includedir='${prefix}/include'
144 oldincludedir='/usr/include'
145 infodir='${prefix}/info'
146 mandir='${prefix}/man'
148 # Identity of this package.
158 # If the previous option needs an argument, assign it.
159 if test -n "$ac_prev"; then
160 eval "$ac_prev=\$ac_option"
165 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
167 # Accept the important Cygnus configure options, so we can diagnose typos.
171 -bindir | --bindir | --bindi | --bind | --bin | --bi)
173 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
176 -build | --build | --buil | --bui | --bu)
177 ac_prev=build_alias ;;
178 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
179 build_alias=$ac_optarg ;;
181 -cache-file | --cache-file | --cache-fil | --cache-fi \
182 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
183 ac_prev=cache_file ;;
184 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
185 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
186 cache_file=$ac_optarg ;;
189 cache_file=config.cache ;;
191 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
193 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
195 datadir=$ac_optarg ;;
197 -disable-* | --disable-*)
198 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
199 # Reject names that are not valid shell variable names.
200 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
201 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
202 { (exit 1); exit 1; }; }
203 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
204 eval "enable_$ac_feature=no" ;;
206 -enable-* | --enable-*)
207 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
208 # Reject names that are not valid shell variable names.
209 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
210 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
211 { (exit 1); exit 1; }; }
212 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
214 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
217 eval "enable_$ac_feature='$ac_optarg'" ;;
219 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
220 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
221 | --exec | --exe | --ex)
222 ac_prev=exec_prefix ;;
223 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
224 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
225 | --exec=* | --exe=* | --ex=*)
226 exec_prefix=$ac_optarg ;;
228 -gas | --gas | --ga | --g)
229 # Obsolete; use --with-gas.
232 -help | --help | --hel | --he | -h)
234 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
235 ac_init_help=recursive ;;
236 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
237 ac_init_help=short ;;
239 -host | --host | --hos | --ho)
240 ac_prev=host_alias ;;
241 -host=* | --host=* | --hos=* | --ho=*)
242 host_alias=$ac_optarg ;;
244 -includedir | --includedir | --includedi | --included | --include \
245 | --includ | --inclu | --incl | --inc)
246 ac_prev=includedir ;;
247 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
248 | --includ=* | --inclu=* | --incl=* | --inc=*)
249 includedir=$ac_optarg ;;
251 -infodir | --infodir | --infodi | --infod | --info | --inf)
253 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
254 infodir=$ac_optarg ;;
256 -libdir | --libdir | --libdi | --libd)
258 -libdir=* | --libdir=* | --libdi=* | --libd=*)
261 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
262 | --libexe | --libex | --libe)
263 ac_prev=libexecdir ;;
264 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
265 | --libexe=* | --libex=* | --libe=*)
266 libexecdir=$ac_optarg ;;
268 -localstatedir | --localstatedir | --localstatedi | --localstated \
269 | --localstate | --localstat | --localsta | --localst \
270 | --locals | --local | --loca | --loc | --lo)
271 ac_prev=localstatedir ;;
272 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
273 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
274 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
275 localstatedir=$ac_optarg ;;
277 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
279 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
283 # Obsolete; use --without-fp.
286 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
290 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
291 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
294 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
295 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
296 | --oldin | --oldi | --old | --ol | --o)
297 ac_prev=oldincludedir ;;
298 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
299 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
300 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
301 oldincludedir=$ac_optarg ;;
303 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
305 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
308 -program-prefix | --program-prefix | --program-prefi | --program-pref \
309 | --program-pre | --program-pr | --program-p)
310 ac_prev=program_prefix ;;
311 -program-prefix=* | --program-prefix=* | --program-prefi=* \
312 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
313 program_prefix=$ac_optarg ;;
315 -program-suffix | --program-suffix | --program-suffi | --program-suff \
316 | --program-suf | --program-su | --program-s)
317 ac_prev=program_suffix ;;
318 -program-suffix=* | --program-suffix=* | --program-suffi=* \
319 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
320 program_suffix=$ac_optarg ;;
322 -program-transform-name | --program-transform-name \
323 | --program-transform-nam | --program-transform-na \
324 | --program-transform-n | --program-transform- \
325 | --program-transform | --program-transfor \
326 | --program-transfo | --program-transf \
327 | --program-trans | --program-tran \
328 | --progr-tra | --program-tr | --program-t)
329 ac_prev=program_transform_name ;;
330 -program-transform-name=* | --program-transform-name=* \
331 | --program-transform-nam=* | --program-transform-na=* \
332 | --program-transform-n=* | --program-transform-=* \
333 | --program-transform=* | --program-transfor=* \
334 | --program-transfo=* | --program-transf=* \
335 | --program-trans=* | --program-tran=* \
336 | --progr-tra=* | --program-tr=* | --program-t=*)
337 program_transform_name=$ac_optarg ;;
339 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
340 | -silent | --silent | --silen | --sile | --sil)
343 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
345 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
347 sbindir=$ac_optarg ;;
349 -sharedstatedir | --sharedstatedir | --sharedstatedi \
350 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
351 | --sharedst | --shareds | --shared | --share | --shar \
353 ac_prev=sharedstatedir ;;
354 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
355 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
356 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
358 sharedstatedir=$ac_optarg ;;
360 -site | --site | --sit)
362 -site=* | --site=* | --sit=*)
365 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
367 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
370 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
371 | --syscon | --sysco | --sysc | --sys | --sy)
372 ac_prev=sysconfdir ;;
373 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
374 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
375 sysconfdir=$ac_optarg ;;
377 -target | --target | --targe | --targ | --tar | --ta | --t)
378 ac_prev=target_alias ;;
379 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
380 target_alias=$ac_optarg ;;
382 -v | -verbose | --verbose | --verbos | --verbo | --verb)
385 -version | --version | --versio | --versi | --vers | -V)
389 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
390 # Reject names that are not valid shell variable names.
391 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
392 { echo "$as_me: error: invalid package name: $ac_package" >&2
393 { (exit 1); exit 1; }; }
394 ac_package=`echo $ac_package| sed 's/-/_/g'`
396 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
399 eval "with_$ac_package='$ac_optarg'" ;;
401 -without-* | --without-*)
402 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
403 # Reject names that are not valid shell variable names.
404 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
405 { echo "$as_me: error: invalid package name: $ac_package" >&2
406 { (exit 1); exit 1; }; }
407 ac_package=`echo $ac_package | sed 's/-/_/g'`
408 eval "with_$ac_package=no" ;;
411 # Obsolete; use --with-x.
414 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
415 | --x-incl | --x-inc | --x-in | --x-i)
416 ac_prev=x_includes ;;
417 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
418 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
419 x_includes=$ac_optarg ;;
421 -x-libraries | --x-libraries | --x-librarie | --x-librari \
422 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
423 ac_prev=x_libraries ;;
424 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
425 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
426 x_libraries=$ac_optarg ;;
428 -*) { echo "$as_me: error: unrecognized option: $ac_option
429 Try \`$0 --help' for more information." >&2
430 { (exit 1); exit 1; }; }
434 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
435 # Reject names that are not valid shell variable names.
436 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
437 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
438 { (exit 1); exit 1; }; }
439 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
440 eval "$ac_envvar='$ac_optarg'"
444 # FIXME: should be removed in autoconf 3.0.
445 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
446 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
447 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
448 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
454 if test -n "$ac_prev"; then
455 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
456 { echo "$as_me: error: missing argument to $ac_option" >&2
457 { (exit 1); exit 1; }; }
460 # Be sure to have absolute paths.
461 for ac_var in exec_prefix prefix
463 eval ac_val=$`echo $ac_var`
465 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
466 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
467 { (exit 1); exit 1; }; };;
471 # Be sure to have absolute paths.
472 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
473 localstatedir libdir includedir oldincludedir infodir mandir
475 eval ac_val=$`echo $ac_var`
477 [\\/$]* | ?:[\\/]* ) ;;
478 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
479 { (exit 1); exit 1; }; };;
483 # There might be people who depend on the old broken behavior: `$host'
484 # used to hold the argument of --host etc.
489 # FIXME: should be removed in autoconf 3.0.
490 if test "x$host_alias" != x; then
491 if test "x$build_alias" = x; then
492 cross_compiling=maybe
493 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
494 If a cross compiler is detected then cross compile mode will be used." >&2
495 elif test "x$build_alias" != "x$host_alias"; then
501 test -n "$host_alias" && ac_tool_prefix=$host_alias-
503 test "$silent" = yes && exec 6>/dev/null
505 # Find the source files, if location was not specified.
506 if test -z "$srcdir"; then
507 ac_srcdir_defaulted=yes
508 # Try the directory containing this script, then its parent.
510 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
511 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
513 if test ! -r $srcdir/$ac_unique_file; then
517 ac_srcdir_defaulted=no
519 if test ! -r $srcdir/$ac_unique_file; then
520 if test "$ac_srcdir_defaulted" = yes; then
521 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
522 { (exit 1); exit 1; }; }
524 { echo "$as_me: error: cannot find sources in $srcdir" >&2
525 { (exit 1); exit 1; }; }
528 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
529 ac_env_build_alias_set=${build_alias+set}
530 ac_env_build_alias_value=$build_alias
531 ac_cv_env_build_alias_set=${build_alias+set}
532 ac_cv_env_build_alias_value=$build_alias
533 ac_env_host_alias_set=${host_alias+set}
534 ac_env_host_alias_value=$host_alias
535 ac_cv_env_host_alias_set=${host_alias+set}
536 ac_cv_env_host_alias_value=$host_alias
537 ac_env_target_alias_set=${target_alias+set}
538 ac_env_target_alias_value=$target_alias
539 ac_cv_env_target_alias_set=${target_alias+set}
540 ac_cv_env_target_alias_value=$target_alias
541 ac_env_CC_set=${CC+set}
543 ac_cv_env_CC_set=${CC+set}
544 ac_cv_env_CC_value=$CC
545 ac_env_CFLAGS_set=${CFLAGS+set}
546 ac_env_CFLAGS_value=$CFLAGS
547 ac_cv_env_CFLAGS_set=${CFLAGS+set}
548 ac_cv_env_CFLAGS_value=$CFLAGS
549 ac_env_LDFLAGS_set=${LDFLAGS+set}
550 ac_env_LDFLAGS_value=$LDFLAGS
551 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
552 ac_cv_env_LDFLAGS_value=$LDFLAGS
553 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
554 ac_env_CPPFLAGS_value=$CPPFLAGS
555 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
556 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
557 ac_env_CPP_set=${CPP+set}
558 ac_env_CPP_value=$CPP
559 ac_cv_env_CPP_set=${CPP+set}
560 ac_cv_env_CPP_value=$CPP
563 # Report the --help message.
565 if test "$ac_init_help" = "long"; then
566 # Omit some internal or obsolete options to make the list less imposing.
567 # This message is too long to be a string in the A/UX 3.1 sh.
569 \`configure' configures this package to adapt to many kinds of systems.
571 Usage: $0 [OPTION]... [VAR=VALUE]...
573 To assign environment variables (e.g., CC, CFLAGS...), specify them as
574 VAR=VALUE. See below for descriptions of some of the useful variables.
576 Defaults for the options are specified in brackets.
579 -h, --help display this help and exit
580 --help=short display options specific to this package
581 --help=recursive display the short help of all the included packages
582 -V, --version display version information and exit
583 -q, --quiet, --silent do not print \`checking...' messages
584 --cache-file=FILE cache test results in FILE [disabled]
585 -C, --config-cache alias for \`--cache-file=config.cache'
586 -n, --no-create do not create output files
587 --srcdir=DIR find the sources in DIR [configure dir or \`..']
592 Installation directories:
593 --prefix=PREFIX install architecture-independent files in PREFIX
595 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
598 By default, \`make install' will install all the files in
599 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
600 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
601 for instance \`--prefix=\$HOME'.
603 For better control, use the options below.
605 Fine tuning of the installation directories:
606 --bindir=DIR user executables [EPREFIX/bin]
607 --sbindir=DIR system admin executables [EPREFIX/sbin]
608 --libexecdir=DIR program executables [EPREFIX/libexec]
609 --datadir=DIR read-only architecture-independent data [PREFIX/share]
610 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
611 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
612 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
613 --libdir=DIR object code libraries [EPREFIX/lib]
614 --includedir=DIR C header files [PREFIX/include]
615 --oldincludedir=DIR C header files for non-gcc [/usr/include]
616 --infodir=DIR info documentation [PREFIX/info]
617 --mandir=DIR man documentation [PREFIX/man]
623 --program-prefix=PREFIX prepend PREFIX to installed program names
624 --program-suffix=SUFFIX append SUFFIX to installed program names
625 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
628 --build=BUILD configure for building on BUILD [guessed]
629 --host=HOST build programs to run on HOST [BUILD]
630 --target=TARGET configure for building compilers for TARGET [HOST]
634 if test -n "$ac_init_help"; then
639 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
640 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
643 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
644 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
646 --with-system-type=XXX test: override derived host system-type
647 --with-pkg-config{=path} enable/disable use of pkg-config
648 --with-pkg-config-libdir=XXX use given directory for installing pc-files
649 --enable-pc-files generate and install .pc files for pkg-config
650 --without-tests suppress build with test-programs
651 --enable-mixed-case tic should assume mixed-case filenames
652 --with-install-prefix prefixes actual install-location ($DESTDIR)
653 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
654 --with-build-cc=XXX the build C compiler ($BUILD_CC)
655 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
656 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
657 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
658 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
659 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
660 Options to Specify the Libraries Built/Used:
661 --with-shared generate shared C-objects (needed for --with-ada-sharedlib)
662 --enable-widec compile with wide-char/UTF-8 code
663 --with-curses-dir=DIR directory in which (n)curses is installed
664 --with-shlib-version=X Specify rel or abi version for shared libs
665 --enable-rpath-link link sample programs with rpath option
666 Fine-Tuning Your Configuration:
667 --enable-broken_linker compile with broken-linker support code
668 --disable-largefile omit support for large files
669 --with-rcs-ids compile-in RCS identifiers
671 --disable-ext-funcs disable function-extensions
672 --enable-const compile with extra/non-standard const
674 --without-develop disable development options
676 --with-pthread use POSIX thread library
677 --enable-weak-symbols enable weak-symbols for pthreads
678 --enable-reentrant compile with experimental reentrant code
679 --with-wrap-prefix=XXX override prefix used for public variables
680 Testing/development Options:
681 --enable-echo build: display "compiling" commands (default)
682 --enable-warnings build: turn on GCC compiler warnings
683 --enable-assertions test: turn on generation of assertion code
684 --enable-expanded test: generate functions for certain macros
685 --disable-macros test: use functions rather than macros
686 --with-trace test: add trace() function to all models of ncurses
687 Ada95 Binding Options:
688 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
689 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
690 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
691 --with-ada-sharedlib=XX build Ada95 shared-library
693 Some influential environment variables:
694 CC C compiler command
695 CFLAGS C compiler flags
696 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
697 nonstandard directory <lib dir>
698 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
699 headers in a nonstandard directory <include dir>
702 Use these variables to override the choices made by `configure' or to help
703 it to find libraries and programs with nonstandard names/locations.
708 if test "$ac_init_help" = "recursive"; then
709 # If there are subdirs, report their specific --help.
711 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
713 # A "../" for each directory in /$ac_subdir.
714 ac_dots=`echo $ac_subdir |
715 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
718 .) # No --srcdir option. We are building in place.
719 ac_sub_srcdir=$srcdir ;;
720 [\\/]* | ?:[\\/]* ) # Absolute path.
721 ac_sub_srcdir=$srcdir/$ac_subdir ;;
723 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
726 # Check for guested configure; otherwise get Cygnus style configure.
727 if test -f $ac_sub_srcdir/configure.gnu; then
729 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
730 elif test -f $ac_sub_srcdir/configure; then
732 $SHELL $ac_sub_srcdir/configure --help=recursive
733 elif test -f $ac_sub_srcdir/configure.ac ||
734 test -f $ac_sub_srcdir/configure.in; then
738 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
744 test -n "$ac_init_help" && exit 0
745 if $ac_init_version; then
748 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
749 Free Software Foundation, Inc.
750 This configure script is free software; the Free Software Foundation
751 gives unlimited permission to copy, distribute and modify it.
757 This file contains any messages produced by compilers while
758 running configure, to aid debugging if configure makes a mistake.
760 It was created by $as_me, which was
761 generated by GNU Autoconf 2.52.20101002. Invocation command line was
772 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
773 uname -m = `(uname -m) 2>/dev/null || echo unknown`
774 uname -r = `(uname -r) 2>/dev/null || echo unknown`
775 uname -s = `(uname -s) 2>/dev/null || echo unknown`
776 uname -v = `(uname -v) 2>/dev/null || echo unknown`
778 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
779 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
781 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
782 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
783 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
784 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
785 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
786 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
787 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
801 # Keep a trace of the command line.
802 # Strip out --no-create and --no-recursion so they do not pile up.
803 # Also quote any args containing shell meta-characters.
809 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
810 | --no-cr | --no-c) ;;
811 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
812 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
813 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
814 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
815 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
817 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
820 # Get rid of the leading space.
823 # When interrupted or exit'd, cleanup temporary files, and complete
824 # config.log. We remove comments because anyway the quotes in there
825 # would cause problems or look ugly.
827 # Save into config.log some information that might help in debugging.
829 echo "## ----------------- ##" >&5
830 echo "## Cache variables. ##" >&5
831 echo "## ----------------- ##" >&5
833 # The following way of writing the cache mishandles newlines in values,
836 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
839 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
840 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
844 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
848 sed "/^$/d" confdefs.h >conftest.log
849 if test -s conftest.log; then
851 echo "## ------------ ##" >&5
852 echo "## confdefs.h. ##" >&5
853 echo "## ------------ ##" >&5
858 test "$ac_signal" != 0 &&
859 echo "$as_me: caught signal $ac_signal" >&5
860 echo "$as_me: exit $exit_status" >&5
861 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
864 for ac_signal in 1 2 13 15; do
865 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
869 # confdefs.h avoids OS command line length limits that DEFS can exceed.
870 rm -rf conftest* confdefs.h
871 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
874 # Let the site file select an alternate cache file if it wants to.
875 # Prefer explicitly selected file to automatically selected ones.
876 if test -z "$CONFIG_SITE"; then
877 if test "x$prefix" != xNONE; then
878 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
880 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
883 for ac_site_file in $CONFIG_SITE; do
884 if test -r "$ac_site_file"; then
885 { echo "$as_me:885: loading site script $ac_site_file" >&5
886 echo "$as_me: loading site script $ac_site_file" >&6;}
887 cat "$ac_site_file" >&5
892 if test -r "$cache_file"; then
893 # Some versions of bash will fail to source /dev/null (special
894 # files actually), so we avoid doing that.
895 if test -f "$cache_file"; then
896 { echo "$as_me:896: loading cache $cache_file" >&5
897 echo "$as_me: loading cache $cache_file" >&6;}
899 [\\/]* | ?:[\\/]* ) . $cache_file;;
904 { echo "$as_me:904: creating cache $cache_file" >&5
905 echo "$as_me: creating cache $cache_file" >&6;}
909 # Check that the precious variables saved in the cache have kept the same
911 ac_cache_corrupted=false
912 for ac_var in `(set) 2>&1 |
913 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
914 eval ac_old_set=\$ac_cv_env_${ac_var}_set
915 eval ac_new_set=\$ac_env_${ac_var}_set
916 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
917 eval ac_new_val="\$ac_env_${ac_var}_value"
918 case $ac_old_set,$ac_new_set in
920 { echo "$as_me:920: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
921 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
922 ac_cache_corrupted=: ;;
924 { echo "$as_me:924: error: \`$ac_var' was not set in the previous run" >&5
925 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
926 ac_cache_corrupted=: ;;
929 if test "x$ac_old_val" != "x$ac_new_val"; then
930 { echo "$as_me:930: error: \`$ac_var' has changed since the previous run:" >&5
931 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
932 { echo "$as_me:932: former value: $ac_old_val" >&5
933 echo "$as_me: former value: $ac_old_val" >&2;}
934 { echo "$as_me:934: current value: $ac_new_val" >&5
935 echo "$as_me: current value: $ac_new_val" >&2;}
939 # Pass precious variables to config.status. It doesn't matter if
940 # we pass some twice (in addition to the command line arguments).
941 if test "$ac_new_set" = set; then
943 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
944 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
945 ac_configure_args="$ac_configure_args '$ac_arg'"
947 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
952 if $ac_cache_corrupted; then
953 { echo "$as_me:953: error: changes in the environment can compromise the build" >&5
954 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
955 { { echo "$as_me:955: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
956 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
957 { (exit 1); exit 1; }; }
961 ac_cpp='$CPP $CPPFLAGS'
962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
965 ac_main_return=return
967 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
968 *c*,-n*) ECHO_N= ECHO_C='
970 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
971 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
973 echo "#! $SHELL" >conftest.sh
974 echo "exit 0" >>conftest.sh
976 if { (echo "$as_me:976: PATH=\".;.\"; conftest.sh") >&5
977 (PATH=".;."; conftest.sh) 2>&5
979 echo "$as_me:979: \$? = $ac_status" >&5
980 (exit $ac_status); }; then
981 ac_path_separator=';'
985 PATH_SEPARATOR="$ac_path_separator"
988 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
993 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
994 if test -f $ac_dir/install-sh; then
996 ac_install_sh="$ac_aux_dir/install-sh -c"
998 elif test -f $ac_dir/install.sh; then
1000 ac_install_sh="$ac_aux_dir/install.sh -c"
1002 elif test -f $ac_dir/shtool; then
1004 ac_install_sh="$ac_aux_dir/shtool install -c"
1008 if test -z "$ac_aux_dir"; then
1009 { { echo "$as_me:1009: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1010 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1011 { (exit 1); exit 1; }; }
1013 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1014 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1015 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1017 # Make sure we can run config.sub.
1018 $ac_config_sub sun4 >/dev/null 2>&1 ||
1019 { { echo "$as_me:1019: error: cannot run $ac_config_sub" >&5
1020 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1021 { (exit 1); exit 1; }; }
1023 echo "$as_me:1023: checking build system type" >&5
1024 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1025 if test "${ac_cv_build+set}" = set; then
1026 echo $ECHO_N "(cached) $ECHO_C" >&6
1028 ac_cv_build_alias=$build_alias
1029 test -z "$ac_cv_build_alias" &&
1030 ac_cv_build_alias=`$ac_config_guess`
1031 test -z "$ac_cv_build_alias" &&
1032 { { echo "$as_me:1032: error: cannot guess build type; you must specify one" >&5
1033 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1034 { (exit 1); exit 1; }; }
1035 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1036 { { echo "$as_me:1036: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1037 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1038 { (exit 1); exit 1; }; }
1041 echo "$as_me:1041: result: $ac_cv_build" >&5
1042 echo "${ECHO_T}$ac_cv_build" >&6
1044 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1045 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1046 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1048 echo "$as_me:1048: checking host system type" >&5
1049 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1050 if test "${ac_cv_host+set}" = set; then
1051 echo $ECHO_N "(cached) $ECHO_C" >&6
1053 ac_cv_host_alias=$host_alias
1054 test -z "$ac_cv_host_alias" &&
1055 ac_cv_host_alias=$ac_cv_build_alias
1056 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1057 { { echo "$as_me:1057: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1058 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1059 { (exit 1); exit 1; }; }
1062 echo "$as_me:1062: result: $ac_cv_host" >&5
1063 echo "${ECHO_T}$ac_cv_host" >&6
1065 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1066 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1067 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1069 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1070 echo "$as_me:1070: checking target system type" >&5
1071 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1072 if test "${ac_cv_target+set}" = set; then
1073 echo $ECHO_N "(cached) $ECHO_C" >&6
1075 ac_cv_target_alias=$target_alias
1076 test "x$ac_cv_target_alias" = "x" &&
1077 ac_cv_target_alias=$ac_cv_host_alias
1078 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1079 { { echo "$as_me:1079: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1080 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1081 { (exit 1); exit 1; }; }
1084 echo "$as_me:1084: result: $ac_cv_target" >&5
1085 echo "${ECHO_T}$ac_cv_target" >&6
1086 target=$ac_cv_target
1087 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1088 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1089 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1091 # The aliases save the names the user supplied, while $host etc.
1092 # will get canonicalized.
1093 test -n "$target_alias" &&
1094 test "$program_prefix$program_suffix$program_transform_name" = \
1096 program_prefix=${target_alias}-
1097 system_name="$host_os"
1099 system_name="`(uname -s -r) 2>/dev/null`"
1100 if test -z "$system_name" ; then
1101 system_name="`(hostname) 2>/dev/null`"
1104 test -n "$system_name" && cat >>confdefs.h <<EOF
1105 #define SYSTEM_NAME "$system_name"
1108 if test "${cf_cv_system_name+set}" = set; then
1109 echo $ECHO_N "(cached) $ECHO_C" >&6
1111 cf_cv_system_name="$system_name"
1114 test -z "$system_name" && system_name="$cf_cv_system_name"
1115 test -n "$cf_cv_system_name" && echo "$as_me:1115: result: Configuring for $cf_cv_system_name" >&5
1116 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1118 if test ".$system_name" != ".$cf_cv_system_name" ; then
1119 echo "$as_me:1119: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1120 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1121 { { echo "$as_me:1121: error: \"Please remove config.cache and try again.\"" >&5
1122 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1123 { (exit 1); exit 1; }; }
1126 # Check whether --with-system-type or --without-system-type was given.
1127 if test "${with_system_type+set}" = set; then
1128 withval="$with_system_type"
1129 { echo "$as_me:1129: WARNING: overriding system type to $withval" >&5
1130 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1131 cf_cv_system_name=$withval
1134 ### Save the given $CFLAGS to allow user-override.
1135 cf_user_CFLAGS="$CFLAGS"
1137 ### Default install-location
1139 echo "$as_me:1139: checking for prefix" >&5
1140 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1141 if test "x$prefix" = "xNONE" ; then
1142 case "$cf_cv_system_name" in
1143 # non-vendor systems don't have a conflict
1144 openbsd*|freebsd*|mirbsd*|linux*|cygwin*|k*bsd*-gnu)
1147 *) prefix=$ac_default_prefix
1151 echo "$as_me:1151: result: $prefix" >&5
1152 echo "${ECHO_T}$prefix" >&6
1154 if test "x$prefix" = "xNONE" ; then
1155 echo "$as_me:1155: checking for default include-directory" >&5
1156 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1157 test -n "$verbose" && echo 1>&6
1160 $includedir/ncurses \
1162 $prefix/include/ncurses \
1163 /usr/local/include \
1164 /usr/local/include/ncurses \
1166 /usr/include/ncurses
1168 cf_dir=`eval echo $cf_symbol`
1169 if test -f $cf_dir/curses.h ; then
1170 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1171 includedir="$cf_symbol"
1172 test -n "$verbose" && echo $ac_n " found " 1>&6
1176 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1178 echo "$as_me:1178: result: $includedir" >&5
1179 echo "${ECHO_T}$includedir" >&6
1182 ### Checks for programs.
1184 ac_cpp='$CPP $CPPFLAGS'
1185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1188 ac_main_return=return
1189 if test -n "$ac_tool_prefix"; then
1190 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1191 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1192 echo "$as_me:1192: checking for $ac_word" >&5
1193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1194 if test "${ac_cv_prog_CC+set}" = set; then
1195 echo $ECHO_N "(cached) $ECHO_C" >&6
1197 if test -n "$CC"; then
1198 ac_cv_prog_CC="$CC" # Let the user override the test.
1200 ac_save_IFS=$IFS; IFS=$ac_path_separator
1202 for ac_dir in $ac_dummy; do
1204 test -z "$ac_dir" && ac_dir=.
1205 $as_executable_p "$ac_dir/$ac_word" || continue
1206 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1207 echo "$as_me:1207: found $ac_dir/$ac_word" >&5
1214 if test -n "$CC"; then
1215 echo "$as_me:1215: result: $CC" >&5
1216 echo "${ECHO_T}$CC" >&6
1218 echo "$as_me:1218: result: no" >&5
1219 echo "${ECHO_T}no" >&6
1223 if test -z "$ac_cv_prog_CC"; then
1225 # Extract the first word of "gcc", so it can be a program name with args.
1226 set dummy gcc; ac_word=$2
1227 echo "$as_me:1227: checking for $ac_word" >&5
1228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1229 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1230 echo $ECHO_N "(cached) $ECHO_C" >&6
1232 if test -n "$ac_ct_CC"; then
1233 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1235 ac_save_IFS=$IFS; IFS=$ac_path_separator
1237 for ac_dir in $ac_dummy; do
1239 test -z "$ac_dir" && ac_dir=.
1240 $as_executable_p "$ac_dir/$ac_word" || continue
1241 ac_cv_prog_ac_ct_CC="gcc"
1242 echo "$as_me:1242: found $ac_dir/$ac_word" >&5
1248 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1249 if test -n "$ac_ct_CC"; then
1250 echo "$as_me:1250: result: $ac_ct_CC" >&5
1251 echo "${ECHO_T}$ac_ct_CC" >&6
1253 echo "$as_me:1253: result: no" >&5
1254 echo "${ECHO_T}no" >&6
1262 if test -z "$CC"; then
1263 if test -n "$ac_tool_prefix"; then
1264 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1265 set dummy ${ac_tool_prefix}cc; ac_word=$2
1266 echo "$as_me:1266: checking for $ac_word" >&5
1267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1268 if test "${ac_cv_prog_CC+set}" = set; then
1269 echo $ECHO_N "(cached) $ECHO_C" >&6
1271 if test -n "$CC"; then
1272 ac_cv_prog_CC="$CC" # Let the user override the test.
1274 ac_save_IFS=$IFS; IFS=$ac_path_separator
1276 for ac_dir in $ac_dummy; do
1278 test -z "$ac_dir" && ac_dir=.
1279 $as_executable_p "$ac_dir/$ac_word" || continue
1280 ac_cv_prog_CC="${ac_tool_prefix}cc"
1281 echo "$as_me:1281: found $ac_dir/$ac_word" >&5
1288 if test -n "$CC"; then
1289 echo "$as_me:1289: result: $CC" >&5
1290 echo "${ECHO_T}$CC" >&6
1292 echo "$as_me:1292: result: no" >&5
1293 echo "${ECHO_T}no" >&6
1297 if test -z "$ac_cv_prog_CC"; then
1299 # Extract the first word of "cc", so it can be a program name with args.
1300 set dummy cc; ac_word=$2
1301 echo "$as_me:1301: checking for $ac_word" >&5
1302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1303 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1304 echo $ECHO_N "(cached) $ECHO_C" >&6
1306 if test -n "$ac_ct_CC"; then
1307 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1309 ac_save_IFS=$IFS; IFS=$ac_path_separator
1311 for ac_dir in $ac_dummy; do
1313 test -z "$ac_dir" && ac_dir=.
1314 $as_executable_p "$ac_dir/$ac_word" || continue
1315 ac_cv_prog_ac_ct_CC="cc"
1316 echo "$as_me:1316: found $ac_dir/$ac_word" >&5
1322 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1323 if test -n "$ac_ct_CC"; then
1324 echo "$as_me:1324: result: $ac_ct_CC" >&5
1325 echo "${ECHO_T}$ac_ct_CC" >&6
1327 echo "$as_me:1327: result: no" >&5
1328 echo "${ECHO_T}no" >&6
1337 if test -z "$CC"; then
1338 # Extract the first word of "cc", so it can be a program name with args.
1339 set dummy cc; ac_word=$2
1340 echo "$as_me:1340: checking for $ac_word" >&5
1341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1342 if test "${ac_cv_prog_CC+set}" = set; then
1343 echo $ECHO_N "(cached) $ECHO_C" >&6
1345 if test -n "$CC"; then
1346 ac_cv_prog_CC="$CC" # Let the user override the test.
1349 ac_save_IFS=$IFS; IFS=$ac_path_separator
1351 for ac_dir in $ac_dummy; do
1353 test -z "$ac_dir" && ac_dir=.
1354 $as_executable_p "$ac_dir/$ac_word" || continue
1355 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1356 ac_prog_rejected=yes
1360 echo "$as_me:1360: found $ac_dir/$ac_word" >&5
1364 if test $ac_prog_rejected = yes; then
1365 # We found a bogon in the path, so make sure we never use it.
1366 set dummy $ac_cv_prog_CC
1368 if test $# != 0; then
1369 # We chose a different compiler from the bogus one.
1370 # However, it has the same basename, so the bogon will be chosen
1371 # first if we set CC to just the basename; use the full file name.
1373 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1381 if test -n "$CC"; then
1382 echo "$as_me:1382: result: $CC" >&5
1383 echo "${ECHO_T}$CC" >&6
1385 echo "$as_me:1385: result: no" >&5
1386 echo "${ECHO_T}no" >&6
1390 if test -z "$CC"; then
1391 if test -n "$ac_tool_prefix"; then
1394 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1395 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1396 echo "$as_me:1396: checking for $ac_word" >&5
1397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1398 if test "${ac_cv_prog_CC+set}" = set; then
1399 echo $ECHO_N "(cached) $ECHO_C" >&6
1401 if test -n "$CC"; then
1402 ac_cv_prog_CC="$CC" # Let the user override the test.
1404 ac_save_IFS=$IFS; IFS=$ac_path_separator
1406 for ac_dir in $ac_dummy; do
1408 test -z "$ac_dir" && ac_dir=.
1409 $as_executable_p "$ac_dir/$ac_word" || continue
1410 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1411 echo "$as_me:1411: found $ac_dir/$ac_word" >&5
1418 if test -n "$CC"; then
1419 echo "$as_me:1419: result: $CC" >&5
1420 echo "${ECHO_T}$CC" >&6
1422 echo "$as_me:1422: result: no" >&5
1423 echo "${ECHO_T}no" >&6
1426 test -n "$CC" && break
1429 if test -z "$CC"; then
1433 # Extract the first word of "$ac_prog", so it can be a program name with args.
1434 set dummy $ac_prog; ac_word=$2
1435 echo "$as_me:1435: checking for $ac_word" >&5
1436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1437 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1438 echo $ECHO_N "(cached) $ECHO_C" >&6
1440 if test -n "$ac_ct_CC"; then
1441 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1443 ac_save_IFS=$IFS; IFS=$ac_path_separator
1445 for ac_dir in $ac_dummy; do
1447 test -z "$ac_dir" && ac_dir=.
1448 $as_executable_p "$ac_dir/$ac_word" || continue
1449 ac_cv_prog_ac_ct_CC="$ac_prog"
1450 echo "$as_me:1450: found $ac_dir/$ac_word" >&5
1456 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1457 if test -n "$ac_ct_CC"; then
1458 echo "$as_me:1458: result: $ac_ct_CC" >&5
1459 echo "${ECHO_T}$ac_ct_CC" >&6
1461 echo "$as_me:1461: result: no" >&5
1462 echo "${ECHO_T}no" >&6
1465 test -n "$ac_ct_CC" && break
1473 test -z "$CC" && { { echo "$as_me:1473: error: no acceptable cc found in \$PATH" >&5
1474 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1475 { (exit 1); exit 1; }; }
1477 # Provide some information about the compiler.
1478 echo "$as_me:1478:" \
1479 "checking for C compiler version" >&5
1480 ac_compiler=`set X $ac_compile; echo $2`
1481 { (eval echo "$as_me:1481: \"$ac_compiler --version </dev/null >&5\"") >&5
1482 (eval $ac_compiler --version </dev/null >&5) 2>&5
1484 echo "$as_me:1484: \$? = $ac_status" >&5
1485 (exit $ac_status); }
1486 { (eval echo "$as_me:1486: \"$ac_compiler -v </dev/null >&5\"") >&5
1487 (eval $ac_compiler -v </dev/null >&5) 2>&5
1489 echo "$as_me:1489: \$? = $ac_status" >&5
1490 (exit $ac_status); }
1491 { (eval echo "$as_me:1491: \"$ac_compiler -V </dev/null >&5\"") >&5
1492 (eval $ac_compiler -V </dev/null >&5) 2>&5
1494 echo "$as_me:1494: \$? = $ac_status" >&5
1495 (exit $ac_status); }
1497 cat >conftest.$ac_ext <<_ACEOF
1498 #line 1498 "configure"
1499 #include "confdefs.h"
1509 ac_clean_files_save=$ac_clean_files
1510 ac_clean_files="$ac_clean_files a.out a.exe"
1511 # Try to create an executable without -o first, disregard a.out.
1512 # It will help us diagnose broken compilers, and finding out an intuition
1514 echo "$as_me:1514: checking for C compiler default output" >&5
1515 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1516 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1517 if { (eval echo "$as_me:1517: \"$ac_link_default\"") >&5
1518 (eval $ac_link_default) 2>&5
1520 echo "$as_me:1520: \$? = $ac_status" >&5
1521 (exit $ac_status); }; then
1522 # Find the output, starting from the most likely. This scheme is
1523 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1525 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1526 ls a.out conftest 2>/dev/null;
1527 ls a.* conftest.* 2>/dev/null`; do
1529 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1530 a.out ) # We found the default executable, but exeext='' is most
1533 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1534 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1541 echo "$as_me: failed program was:" >&5
1542 cat conftest.$ac_ext >&5
1543 { { echo "$as_me:1543: error: C compiler cannot create executables" >&5
1544 echo "$as_me: error: C compiler cannot create executables" >&2;}
1545 { (exit 77); exit 77; }; }
1548 ac_exeext=$ac_cv_exeext
1549 echo "$as_me:1549: result: $ac_file" >&5
1550 echo "${ECHO_T}$ac_file" >&6
1552 # Check the compiler produces executables we can run. If not, either
1553 # the compiler is broken, or we cross compile.
1554 echo "$as_me:1554: checking whether the C compiler works" >&5
1555 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1556 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1557 # If not cross compiling, check that we can run a simple program.
1558 if test "$cross_compiling" != yes; then
1559 if { ac_try='./$ac_file'
1560 { (eval echo "$as_me:1560: \"$ac_try\"") >&5
1563 echo "$as_me:1563: \$? = $ac_status" >&5
1564 (exit $ac_status); }; }; then
1567 if test "$cross_compiling" = maybe; then
1570 { { echo "$as_me:1570: error: cannot run C compiled programs.
1571 If you meant to cross compile, use \`--host'." >&5
1572 echo "$as_me: error: cannot run C compiled programs.
1573 If you meant to cross compile, use \`--host'." >&2;}
1574 { (exit 1); exit 1; }; }
1578 echo "$as_me:1578: result: yes" >&5
1579 echo "${ECHO_T}yes" >&6
1581 rm -f a.out a.exe conftest$ac_cv_exeext
1582 ac_clean_files=$ac_clean_files_save
1583 # Check the compiler produces executables we can run. If not, either
1584 # the compiler is broken, or we cross compile.
1585 echo "$as_me:1585: checking whether we are cross compiling" >&5
1586 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1587 echo "$as_me:1587: result: $cross_compiling" >&5
1588 echo "${ECHO_T}$cross_compiling" >&6
1590 echo "$as_me:1590: checking for executable suffix" >&5
1591 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1592 if { (eval echo "$as_me:1592: \"$ac_link\"") >&5
1593 (eval $ac_link) 2>&5
1595 echo "$as_me:1595: \$? = $ac_status" >&5
1596 (exit $ac_status); }; then
1597 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1598 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1599 # work properly (i.e., refer to `conftest.exe'), while it won't with
1601 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1603 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1604 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1611 { { echo "$as_me:1611: error: cannot compute EXEEXT: cannot compile and link" >&5
1612 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1613 { (exit 1); exit 1; }; }
1616 rm -f conftest$ac_cv_exeext
1617 echo "$as_me:1617: result: $ac_cv_exeext" >&5
1618 echo "${ECHO_T}$ac_cv_exeext" >&6
1620 rm -f conftest.$ac_ext
1621 EXEEXT=$ac_cv_exeext
1623 echo "$as_me:1623: checking for object suffix" >&5
1624 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1625 if test "${ac_cv_objext+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1628 cat >conftest.$ac_ext <<_ACEOF
1629 #line 1629 "configure"
1630 #include "confdefs.h"
1640 rm -f conftest.o conftest.obj
1641 if { (eval echo "$as_me:1641: \"$ac_compile\"") >&5
1642 (eval $ac_compile) 2>&5
1644 echo "$as_me:1644: \$? = $ac_status" >&5
1645 (exit $ac_status); }; then
1646 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1648 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1649 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1654 echo "$as_me: failed program was:" >&5
1655 cat conftest.$ac_ext >&5
1656 { { echo "$as_me:1656: error: cannot compute OBJEXT: cannot compile" >&5
1657 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1658 { (exit 1); exit 1; }; }
1661 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1663 echo "$as_me:1663: result: $ac_cv_objext" >&5
1664 echo "${ECHO_T}$ac_cv_objext" >&6
1665 OBJEXT=$ac_cv_objext
1667 echo "$as_me:1667: checking whether we are using the GNU C compiler" >&5
1668 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1669 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1670 echo $ECHO_N "(cached) $ECHO_C" >&6
1672 cat >conftest.$ac_ext <<_ACEOF
1673 #line 1673 "configure"
1674 #include "confdefs.h"
1687 rm -f conftest.$ac_objext
1688 if { (eval echo "$as_me:1688: \"$ac_compile\"") >&5
1689 (eval $ac_compile) 2>&5
1691 echo "$as_me:1691: \$? = $ac_status" >&5
1692 (exit $ac_status); } &&
1693 { ac_try='test -s conftest.$ac_objext'
1694 { (eval echo "$as_me:1694: \"$ac_try\"") >&5
1697 echo "$as_me:1697: \$? = $ac_status" >&5
1698 (exit $ac_status); }; }; then
1701 echo "$as_me: failed program was:" >&5
1702 cat conftest.$ac_ext >&5
1705 rm -f conftest.$ac_objext conftest.$ac_ext
1706 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1709 echo "$as_me:1709: result: $ac_cv_c_compiler_gnu" >&5
1710 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1711 GCC=`test $ac_compiler_gnu = yes && echo yes`
1712 ac_test_CFLAGS=${CFLAGS+set}
1713 ac_save_CFLAGS=$CFLAGS
1715 echo "$as_me:1715: checking whether $CC accepts -g" >&5
1716 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1717 if test "${ac_cv_prog_cc_g+set}" = set; then
1718 echo $ECHO_N "(cached) $ECHO_C" >&6
1720 cat >conftest.$ac_ext <<_ACEOF
1721 #line 1721 "configure"
1722 #include "confdefs.h"
1732 rm -f conftest.$ac_objext
1733 if { (eval echo "$as_me:1733: \"$ac_compile\"") >&5
1734 (eval $ac_compile) 2>&5
1736 echo "$as_me:1736: \$? = $ac_status" >&5
1737 (exit $ac_status); } &&
1738 { ac_try='test -s conftest.$ac_objext'
1739 { (eval echo "$as_me:1739: \"$ac_try\"") >&5
1742 echo "$as_me:1742: \$? = $ac_status" >&5
1743 (exit $ac_status); }; }; then
1746 echo "$as_me: failed program was:" >&5
1747 cat conftest.$ac_ext >&5
1750 rm -f conftest.$ac_objext conftest.$ac_ext
1752 echo "$as_me:1752: result: $ac_cv_prog_cc_g" >&5
1753 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1754 if test "$ac_test_CFLAGS" = set; then
1755 CFLAGS=$ac_save_CFLAGS
1756 elif test $ac_cv_prog_cc_g = yes; then
1757 if test "$GCC" = yes; then
1763 if test "$GCC" = yes; then
1769 # Some people use a C++ compiler to compile C. Since we use `exit',
1770 # in C++ we need to declare it. In case someone uses the same compiler
1771 # for both compiling C and C++ we need to have the C++ compiler decide
1772 # the declaration of exit, since it's the most demanding environment.
1773 cat >conftest.$ac_ext <<_ACEOF
1778 rm -f conftest.$ac_objext
1779 if { (eval echo "$as_me:1779: \"$ac_compile\"") >&5
1780 (eval $ac_compile) 2>&5
1782 echo "$as_me:1782: \$? = $ac_status" >&5
1783 (exit $ac_status); } &&
1784 { ac_try='test -s conftest.$ac_objext'
1785 { (eval echo "$as_me:1785: \"$ac_try\"") >&5
1788 echo "$as_me:1788: \$? = $ac_status" >&5
1789 (exit $ac_status); }; }; then
1790 for ac_declaration in \
1792 '#include <stdlib.h>' \
1793 'extern "C" void std::exit (int) throw (); using std::exit;' \
1794 'extern "C" void std::exit (int); using std::exit;' \
1795 'extern "C" void exit (int) throw ();' \
1796 'extern "C" void exit (int);' \
1799 cat >conftest.$ac_ext <<_ACEOF
1800 #line 1800 "configure"
1801 #include "confdefs.h"
1812 rm -f conftest.$ac_objext
1813 if { (eval echo "$as_me:1813: \"$ac_compile\"") >&5
1814 (eval $ac_compile) 2>&5
1816 echo "$as_me:1816: \$? = $ac_status" >&5
1817 (exit $ac_status); } &&
1818 { ac_try='test -s conftest.$ac_objext'
1819 { (eval echo "$as_me:1819: \"$ac_try\"") >&5
1822 echo "$as_me:1822: \$? = $ac_status" >&5
1823 (exit $ac_status); }; }; then
1826 echo "$as_me: failed program was:" >&5
1827 cat conftest.$ac_ext >&5
1830 rm -f conftest.$ac_objext conftest.$ac_ext
1831 cat >conftest.$ac_ext <<_ACEOF
1832 #line 1832 "configure"
1833 #include "confdefs.h"
1843 rm -f conftest.$ac_objext
1844 if { (eval echo "$as_me:1844: \"$ac_compile\"") >&5
1845 (eval $ac_compile) 2>&5
1847 echo "$as_me:1847: \$? = $ac_status" >&5
1848 (exit $ac_status); } &&
1849 { ac_try='test -s conftest.$ac_objext'
1850 { (eval echo "$as_me:1850: \"$ac_try\"") >&5
1853 echo "$as_me:1853: \$? = $ac_status" >&5
1854 (exit $ac_status); }; }; then
1857 echo "$as_me: failed program was:" >&5
1858 cat conftest.$ac_ext >&5
1860 rm -f conftest.$ac_objext conftest.$ac_ext
1863 if test -n "$ac_declaration"; then
1864 echo '#ifdef __cplusplus' >>confdefs.h
1865 echo $ac_declaration >>confdefs.h
1866 echo '#endif' >>confdefs.h
1870 echo "$as_me: failed program was:" >&5
1871 cat conftest.$ac_ext >&5
1873 rm -f conftest.$ac_objext conftest.$ac_ext
1875 ac_cpp='$CPP $CPPFLAGS'
1876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1879 ac_main_return=return
1882 if test "$GCC" = yes ; then
1883 echo "$as_me:1883: checking version of $CC" >&5
1884 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1885 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
1886 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1887 echo "$as_me:1887: result: $GCC_VERSION" >&5
1888 echo "${ECHO_T}$GCC_VERSION" >&6
1892 ac_cpp='$CPP $CPPFLAGS'
1893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1896 ac_main_return=return
1897 echo "$as_me:1897: checking how to run the C preprocessor" >&5
1898 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1899 # On Suns, sometimes $CPP names a directory.
1900 if test -n "$CPP" && test -d "$CPP"; then
1903 if test -z "$CPP"; then
1904 if test "${ac_cv_prog_CPP+set}" = set; then
1905 echo $ECHO_N "(cached) $ECHO_C" >&6
1907 # Double quotes because CPP needs to be expanded
1908 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1911 for ac_c_preproc_warn_flag in '' yes
1913 # Use a header file that comes with gcc, so configuring glibc
1914 # with a fresh cross-compiler works.
1915 # On the NeXT, cc -E runs the code through the compiler's parser,
1916 # not just through cpp. "Syntax error" is here to catch this case.
1917 cat >conftest.$ac_ext <<_ACEOF
1918 #line 1918 "configure"
1919 #include "confdefs.h"
1923 if { (eval echo "$as_me:1923: \"$ac_cpp conftest.$ac_ext\"") >&5
1924 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1926 egrep -v '^ *\+' conftest.er1 >conftest.err
1928 cat conftest.err >&5
1929 echo "$as_me:1929: \$? = $ac_status" >&5
1930 (exit $ac_status); } >/dev/null; then
1931 if test -s conftest.err; then
1932 ac_cpp_err=$ac_c_preproc_warn_flag
1939 if test -z "$ac_cpp_err"; then
1942 echo "$as_me: failed program was:" >&5
1943 cat conftest.$ac_ext >&5
1944 # Broken: fails on valid input.
1947 rm -f conftest.err conftest.$ac_ext
1949 # OK, works on sane cases. Now check whether non-existent headers
1950 # can be detected and how.
1951 cat >conftest.$ac_ext <<_ACEOF
1952 #line 1952 "configure"
1953 #include "confdefs.h"
1954 #include <ac_nonexistent.h>
1956 if { (eval echo "$as_me:1956: \"$ac_cpp conftest.$ac_ext\"") >&5
1957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1959 egrep -v '^ *\+' conftest.er1 >conftest.err
1961 cat conftest.err >&5
1962 echo "$as_me:1962: \$? = $ac_status" >&5
1963 (exit $ac_status); } >/dev/null; then
1964 if test -s conftest.err; then
1965 ac_cpp_err=$ac_c_preproc_warn_flag
1972 if test -z "$ac_cpp_err"; then
1973 # Broken: success on invalid input.
1976 echo "$as_me: failed program was:" >&5
1977 cat conftest.$ac_ext >&5
1978 # Passes both tests.
1982 rm -f conftest.err conftest.$ac_ext
1985 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1986 rm -f conftest.err conftest.$ac_ext
1987 if $ac_preproc_ok; then
1999 echo "$as_me:1999: result: $CPP" >&5
2000 echo "${ECHO_T}$CPP" >&6
2002 for ac_c_preproc_warn_flag in '' yes
2004 # Use a header file that comes with gcc, so configuring glibc
2005 # with a fresh cross-compiler works.
2006 # On the NeXT, cc -E runs the code through the compiler's parser,
2007 # not just through cpp. "Syntax error" is here to catch this case.
2008 cat >conftest.$ac_ext <<_ACEOF
2009 #line 2009 "configure"
2010 #include "confdefs.h"
2014 if { (eval echo "$as_me:2014: \"$ac_cpp conftest.$ac_ext\"") >&5
2015 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2017 egrep -v '^ *\+' conftest.er1 >conftest.err
2019 cat conftest.err >&5
2020 echo "$as_me:2020: \$? = $ac_status" >&5
2021 (exit $ac_status); } >/dev/null; then
2022 if test -s conftest.err; then
2023 ac_cpp_err=$ac_c_preproc_warn_flag
2030 if test -z "$ac_cpp_err"; then
2033 echo "$as_me: failed program was:" >&5
2034 cat conftest.$ac_ext >&5
2035 # Broken: fails on valid input.
2038 rm -f conftest.err conftest.$ac_ext
2040 # OK, works on sane cases. Now check whether non-existent headers
2041 # can be detected and how.
2042 cat >conftest.$ac_ext <<_ACEOF
2043 #line 2043 "configure"
2044 #include "confdefs.h"
2045 #include <ac_nonexistent.h>
2047 if { (eval echo "$as_me:2047: \"$ac_cpp conftest.$ac_ext\"") >&5
2048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2050 egrep -v '^ *\+' conftest.er1 >conftest.err
2052 cat conftest.err >&5
2053 echo "$as_me:2053: \$? = $ac_status" >&5
2054 (exit $ac_status); } >/dev/null; then
2055 if test -s conftest.err; then
2056 ac_cpp_err=$ac_c_preproc_warn_flag
2063 if test -z "$ac_cpp_err"; then
2064 # Broken: success on invalid input.
2067 echo "$as_me: failed program was:" >&5
2068 cat conftest.$ac_ext >&5
2069 # Passes both tests.
2073 rm -f conftest.err conftest.$ac_ext
2076 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2077 rm -f conftest.err conftest.$ac_ext
2078 if $ac_preproc_ok; then
2081 { { echo "$as_me:2081: error: C preprocessor \"$CPP\" fails sanity check" >&5
2082 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2083 { (exit 1); exit 1; }; }
2087 ac_cpp='$CPP $CPPFLAGS'
2088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2091 ac_main_return=return
2093 if test $ac_cv_c_compiler_gnu = yes; then
2094 echo "$as_me:2094: checking whether $CC needs -traditional" >&5
2095 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2096 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2099 ac_pattern="Autoconf.*'x'"
2100 cat >conftest.$ac_ext <<_ACEOF
2101 #line 2101 "configure"
2102 #include "confdefs.h"
2104 int Autoconf = TIOCGETP;
2106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2107 egrep "$ac_pattern" >/dev/null 2>&1; then
2108 ac_cv_prog_gcc_traditional=yes
2110 ac_cv_prog_gcc_traditional=no
2114 if test $ac_cv_prog_gcc_traditional = no; then
2115 cat >conftest.$ac_ext <<_ACEOF
2116 #line 2116 "configure"
2117 #include "confdefs.h"
2119 int Autoconf = TCGETA;
2121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2122 egrep "$ac_pattern" >/dev/null 2>&1; then
2123 ac_cv_prog_gcc_traditional=yes
2129 echo "$as_me:2129: result: $ac_cv_prog_gcc_traditional" >&5
2130 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2131 if test $ac_cv_prog_gcc_traditional = yes; then
2132 CC="$CC -traditional"
2136 echo "$as_me:2136: checking whether $CC understands -c and -o together" >&5
2137 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2138 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2139 echo $ECHO_N "(cached) $ECHO_C" >&6
2142 cat > conftest.$ac_ext <<CF_EOF
2146 ${cf_cv_main_return:-return}(0);
2149 # We do the test twice because some compilers refuse to overwrite an
2150 # existing .o file with -o, though they will create one.
2151 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2152 if { (eval echo "$as_me:2152: \"$ac_try\"") >&5
2155 echo "$as_me:2155: \$? = $ac_status" >&5
2156 (exit $ac_status); } &&
2157 test -f conftest2.$ac_objext && { (eval echo "$as_me:2157: \"$ac_try\"") >&5
2160 echo "$as_me:2160: \$? = $ac_status" >&5
2161 (exit $ac_status); };
2163 eval cf_cv_prog_CC_c_o=yes
2165 eval cf_cv_prog_CC_c_o=no
2170 if test $cf_cv_prog_CC_c_o = yes; then
2171 echo "$as_me:2171: result: yes" >&5
2172 echo "${ECHO_T}yes" >&6
2174 echo "$as_me:2174: result: no" >&5
2175 echo "${ECHO_T}no" >&6
2178 echo "$as_me:2178: checking for POSIXized ISC" >&5
2179 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2180 if test -d /etc/conf/kconfig.d &&
2181 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2183 echo "$as_me:2183: result: yes" >&5
2184 echo "${ECHO_T}yes" >&6
2185 ISC=yes # If later tests want to check for ISC.
2187 cat >>confdefs.h <<\EOF
2188 #define _POSIX_SOURCE 1
2191 if test "$GCC" = yes; then
2197 echo "$as_me:2197: result: no" >&5
2198 echo "${ECHO_T}no" >&6
2202 # This should have been defined by AC_PROG_CC
2205 # Check for user's environment-breakage by stuffing CFLAGS/CPPFLAGS content
2206 # into CC. This will not help with broken scripts that wrap the compiler with
2207 # options, but eliminates a more common category of user confusion.
2208 echo "$as_me:2208: checking \$CC variable" >&5
2209 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2212 echo "$as_me:2212: result: broken" >&5
2213 echo "${ECHO_T}broken" >&6
2214 { echo "$as_me:2214: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2215 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2217 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
2218 CC=`echo "$CC" | sed -e 's/[ ].*//'`
2223 cf_new_extra_cppflags=
2225 for cf_add_cflags in $cf_flags
2227 case $cf_fix_cppflags in
2229 case $cf_add_cflags in #(vi
2230 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2231 case $cf_add_cflags in
2233 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2235 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2236 && test -z "${cf_tst_cflags}" \
2237 && cf_fix_cppflags=yes
2239 if test $cf_fix_cppflags = yes ; then
2240 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2242 elif test "${cf_tst_cflags}" = "\"'" ; then
2243 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2249 *$cf_add_cflags) #(vi
2252 case $cf_add_cflags in #(vi
2254 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2256 CPPFLAGS=`echo "$CPPFLAGS" | \
2257 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2258 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2262 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2267 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2272 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2274 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2276 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2277 && test -z "${cf_tst_cflags}" \
2278 && cf_fix_cppflags=no
2283 if test -n "$cf_new_cflags" ; then
2285 CFLAGS="$CFLAGS $cf_new_cflags"
2288 if test -n "$cf_new_cppflags" ; then
2290 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2293 if test -n "$cf_new_extra_cppflags" ; then
2295 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2300 echo "$as_me:2300: result: ok" >&5
2301 echo "${ECHO_T}ok" >&6
2305 echo "$as_me:2305: checking for ${CC:-cc} option to accept ANSI C" >&5
2306 echo $ECHO_N "checking for ${CC:-cc} option to accept ANSI C... $ECHO_C" >&6
2307 if test "${cf_cv_ansi_cc+set}" = set; then
2308 echo $ECHO_N "(cached) $ECHO_C" >&6
2312 cf_save_CFLAGS="$CFLAGS"
2313 cf_save_CPPFLAGS="$CPPFLAGS"
2314 # Don't try gcc -ansi; that turns off useful extensions and
2315 # breaks some systems' header files.
2316 # AIX -qlanglvl=ansi
2317 # Ultrix and OSF/1 -std1
2318 # HP-UX -Aa -D_HPUX_SOURCE
2320 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2321 for cf_arg in "-DCC_HAS_PROTOS" \
2326 "-Aa -D_HPUX_SOURCE" \
2333 cf_new_extra_cppflags=
2335 for cf_add_cflags in $cf_arg
2337 case $cf_fix_cppflags in
2339 case $cf_add_cflags in #(vi
2340 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2341 case $cf_add_cflags in
2343 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2345 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2346 && test -z "${cf_tst_cflags}" \
2347 && cf_fix_cppflags=yes
2349 if test $cf_fix_cppflags = yes ; then
2350 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2352 elif test "${cf_tst_cflags}" = "\"'" ; then
2353 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2359 *$cf_add_cflags) #(vi
2362 case $cf_add_cflags in #(vi
2364 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2366 CPPFLAGS=`echo "$CPPFLAGS" | \
2367 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2368 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2372 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2377 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2382 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2384 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2386 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2387 && test -z "${cf_tst_cflags}" \
2388 && cf_fix_cppflags=no
2393 if test -n "$cf_new_cflags" ; then
2395 CFLAGS="$CFLAGS $cf_new_cflags"
2398 if test -n "$cf_new_cppflags" ; then
2400 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2403 if test -n "$cf_new_extra_cppflags" ; then
2405 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2408 cat >conftest.$ac_ext <<_ACEOF
2409 #line 2409 "configure"
2410 #include "confdefs.h"
2412 #ifndef CC_HAS_PROTOS
2413 #if !defined(__STDC__) || (__STDC__ != 1)
2422 int test (int i, double x);
2423 struct s1 {int (*f) (int a);};
2424 struct s2 {int (*f) (double a);};
2429 rm -f conftest.$ac_objext
2430 if { (eval echo "$as_me:2430: \"$ac_compile\"") >&5
2431 (eval $ac_compile) 2>&5
2433 echo "$as_me:2433: \$? = $ac_status" >&5
2434 (exit $ac_status); } &&
2435 { ac_try='test -s conftest.$ac_objext'
2436 { (eval echo "$as_me:2436: \"$ac_try\"") >&5
2439 echo "$as_me:2439: \$? = $ac_status" >&5
2440 (exit $ac_status); }; }; then
2441 cf_cv_ansi_cc="$cf_arg"; break
2443 echo "$as_me: failed program was:" >&5
2444 cat conftest.$ac_ext >&5
2446 rm -f conftest.$ac_objext conftest.$ac_ext
2448 CFLAGS="$cf_save_CFLAGS"
2449 CPPFLAGS="$cf_save_CPPFLAGS"
2452 echo "$as_me:2452: result: $cf_cv_ansi_cc" >&5
2453 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2455 if test "$cf_cv_ansi_cc" != "no"; then
2456 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2461 cf_new_extra_cppflags=
2463 for cf_add_cflags in $cf_cv_ansi_cc
2465 case $cf_fix_cppflags in
2467 case $cf_add_cflags in #(vi
2468 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2469 case $cf_add_cflags in
2471 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2473 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2474 && test -z "${cf_tst_cflags}" \
2475 && cf_fix_cppflags=yes
2477 if test $cf_fix_cppflags = yes ; then
2478 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2480 elif test "${cf_tst_cflags}" = "\"'" ; then
2481 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2487 *$cf_add_cflags) #(vi
2490 case $cf_add_cflags in #(vi
2492 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2494 CPPFLAGS=`echo "$CPPFLAGS" | \
2495 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2496 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2500 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2505 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2510 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2512 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2514 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2515 && test -z "${cf_tst_cflags}" \
2516 && cf_fix_cppflags=no
2521 if test -n "$cf_new_cflags" ; then
2523 CFLAGS="$CFLAGS $cf_new_cflags"
2526 if test -n "$cf_new_cppflags" ; then
2528 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2531 if test -n "$cf_new_extra_cppflags" ; then
2533 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2537 cat >>confdefs.h <<\EOF
2538 #define CC_HAS_PROTOS 1
2544 if test "$cf_cv_ansi_cc" = "no"; then
2545 { { echo "$as_me:2545: error: Your compiler does not appear to recognize prototypes.
2546 You have the following choices:
2547 a. adjust your compiler options
2548 b. get an up-to-date compiler
2549 c. use a wrapper such as unproto" >&5
2550 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2551 You have the following choices:
2552 a. adjust your compiler options
2553 b. get an up-to-date compiler
2554 c. use a wrapper such as unproto" >&2;}
2555 { (exit 1); exit 1; }; }
2558 case $cf_cv_system_name in
2560 CFLAGS="$CFLAGS -Zmt"
2561 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2562 CXXFLAGS="$CXXFLAGS -Zmt"
2563 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2564 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2571 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2572 #define PROG_EXT "$PROG_EXT"
2575 test "$program_prefix" != NONE &&
2576 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2577 # Use a double $ so make ignores it.
2578 test "$program_suffix" != NONE &&
2579 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2580 # Double any \ or $. echo might interpret backslashes.
2581 # By default was `s,x,x', remove it if useless.
2582 cat <<\_ACEOF >conftest.sed
2583 s/[\\$]/&&/g;s/;s,x,x,$//
2585 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2588 for ac_prog in mawk gawk nawk awk
2590 # Extract the first word of "$ac_prog", so it can be a program name with args.
2591 set dummy $ac_prog; ac_word=$2
2592 echo "$as_me:2592: checking for $ac_word" >&5
2593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2594 if test "${ac_cv_prog_AWK+set}" = set; then
2595 echo $ECHO_N "(cached) $ECHO_C" >&6
2597 if test -n "$AWK"; then
2598 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2600 ac_save_IFS=$IFS; IFS=$ac_path_separator
2602 for ac_dir in $ac_dummy; do
2604 test -z "$ac_dir" && ac_dir=.
2605 $as_executable_p "$ac_dir/$ac_word" || continue
2606 ac_cv_prog_AWK="$ac_prog"
2607 echo "$as_me:2607: found $ac_dir/$ac_word" >&5
2614 if test -n "$AWK"; then
2615 echo "$as_me:2615: result: $AWK" >&5
2616 echo "${ECHO_T}$AWK" >&6
2618 echo "$as_me:2618: result: no" >&5
2619 echo "${ECHO_T}no" >&6
2622 test -n "$AWK" && break
2625 test -z "$AWK" && { { echo "$as_me:2625: error: No awk program found" >&5
2626 echo "$as_me: error: No awk program found" >&2;}
2627 { (exit 1); exit 1; }; }
2629 echo "$as_me:2629: checking for egrep" >&5
2630 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2631 if test "${ac_cv_prog_egrep+set}" = set; then
2632 echo $ECHO_N "(cached) $ECHO_C" >&6
2634 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2635 then ac_cv_prog_egrep='grep -E'
2636 else ac_cv_prog_egrep='egrep'
2639 echo "$as_me:2639: result: $ac_cv_prog_egrep" >&5
2640 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2641 EGREP=$ac_cv_prog_egrep
2643 test -z "$EGREP" && { { echo "$as_me:2643: error: No egrep program found" >&5
2644 echo "$as_me: error: No egrep program found" >&2;}
2645 { (exit 1); exit 1; }; }
2647 # Find a good install program. We prefer a C program (faster),
2648 # so one script is as good as another. But avoid the broken or
2649 # incompatible versions:
2650 # SysV /etc/install, /usr/sbin/install
2651 # SunOS /usr/etc/install
2652 # IRIX /sbin/install
2654 # AmigaOS /C/install, which installs bootblocks on floppy discs
2655 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2656 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2657 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2658 # ./install, which can be erroneously created by make from ./install.sh.
2659 echo "$as_me:2659: checking for a BSD compatible install" >&5
2660 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2661 if test -z "$INSTALL"; then
2662 if test "${ac_cv_path_install+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2665 ac_save_IFS=$IFS; IFS=$ac_path_separator
2666 for ac_dir in $PATH; do
2668 # Account for people who put trailing slashes in PATH elements.
2670 / | ./ | .// | /cC/* \
2671 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2674 # OSF1 and SCO ODT 3.0 have their own names for install.
2675 # Don't use installbsd from OSF since it installs stuff as root
2677 for ac_prog in ginstall scoinst install; do
2678 if $as_executable_p "$ac_dir/$ac_prog"; then
2679 if test $ac_prog = install &&
2680 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2681 # AIX install. It has an incompatible calling convention.
2683 elif test $ac_prog = install &&
2684 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2685 # program-specific install script used by HP pwplus--don't use.
2688 ac_cv_path_install="$ac_dir/$ac_prog -c"
2698 if test "${ac_cv_path_install+set}" = set; then
2699 INSTALL=$ac_cv_path_install
2701 # As a last resort, use the slow shell script. We don't cache a
2702 # path for INSTALL within a source directory, because that will
2703 # break other packages using the cache if that directory is
2704 # removed, or if the path is relative.
2705 INSTALL=$ac_install_sh
2708 echo "$as_me:2708: result: $INSTALL" >&5
2709 echo "${ECHO_T}$INSTALL" >&6
2711 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2712 # It thinks the first close brace ends the variable substitution.
2713 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2715 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2717 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2719 echo "$as_me:2719: checking whether ln -s works" >&5
2720 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2722 if test "$LN_S" = "ln -s"; then
2723 echo "$as_me:2723: result: yes" >&5
2724 echo "${ECHO_T}yes" >&6
2726 echo "$as_me:2726: result: no, using $LN_S" >&5
2727 echo "${ECHO_T}no, using $LN_S" >&6
2730 echo "$as_me:2730: checking if $LN_S -f options work" >&5
2731 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
2733 rm -f conf$$.src conf$$dst
2735 echo first >conf$$.src
2736 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
2741 rm -f conf$$.dst conf$$src
2742 echo "$as_me:2742: result: $cf_prog_ln_sf" >&5
2743 echo "${ECHO_T}$cf_prog_ln_sf" >&6
2745 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
2747 echo "$as_me:2747: checking for long file names" >&5
2748 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
2749 if test "${ac_cv_sys_long_file_names+set}" = set; then
2750 echo $ECHO_N "(cached) $ECHO_C" >&6
2752 ac_cv_sys_long_file_names=yes
2753 # Test for long file names in all the places we know might matter:
2754 # . the current directory, where building will happen
2755 # $prefix/lib where we will be installing things
2756 # $exec_prefix/lib likewise
2757 # eval it to expand exec_prefix.
2758 # $TMPDIR if set, where it might want to write temporary files
2759 # if $TMPDIR is not set:
2760 # /tmp where it might want to write temporary files
2763 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
2766 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
2768 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
2769 test -d $ac_dir || continue
2770 test -w $ac_dir || continue # It is less confusing to not echo anything here.
2771 ac_xdir=$ac_dir/cf$$
2772 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
2773 ac_tf1=$ac_xdir/conftest9012345
2774 ac_tf2=$ac_xdir/conftest9012346
2775 (echo 1 >$ac_tf1) 2>/dev/null
2776 (echo 2 >$ac_tf2) 2>/dev/null
2777 ac_val=`cat $ac_tf1 2>/dev/null`
2778 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
2779 ac_cv_sys_long_file_names=no
2780 rm -rf $ac_xdir 2>/dev/null
2783 rm -rf $ac_xdir 2>/dev/null
2786 echo "$as_me:2786: result: $ac_cv_sys_long_file_names" >&5
2787 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
2788 if test $ac_cv_sys_long_file_names = yes; then
2790 cat >>confdefs.h <<\EOF
2791 #define HAVE_LONG_FILE_NAMES 1
2796 # if we find pkg-config, check if we should install the ".pc" files.
2798 echo "$as_me:2798: checking if you want to use pkg-config" >&5
2799 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
2801 # Check whether --with-pkg-config or --without-pkg-config was given.
2802 if test "${with_pkg_config+set}" = set; then
2803 withval="$with_pkg_config"
2804 cf_pkg_config=$withval
2808 echo "$as_me:2808: result: $cf_pkg_config" >&5
2809 echo "${ECHO_T}$cf_pkg_config" >&6
2811 case $cf_pkg_config in #(vi
2817 if test -n "$ac_tool_prefix"; then
2818 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
2819 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
2820 echo "$as_me:2820: checking for $ac_word" >&5
2821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2822 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
2823 echo $ECHO_N "(cached) $ECHO_C" >&6
2827 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
2830 ac_save_IFS=$IFS; IFS=$ac_path_separator
2832 for ac_dir in $ac_dummy; do
2834 test -z "$ac_dir" && ac_dir=.
2835 if $as_executable_p "$ac_dir/$ac_word"; then
2836 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
2837 echo "$as_me:2837: found $ac_dir/$ac_word" >&5
2845 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
2847 if test -n "$PKG_CONFIG"; then
2848 echo "$as_me:2848: result: $PKG_CONFIG" >&5
2849 echo "${ECHO_T}$PKG_CONFIG" >&6
2851 echo "$as_me:2851: result: no" >&5
2852 echo "${ECHO_T}no" >&6
2856 if test -z "$ac_cv_path_PKG_CONFIG"; then
2857 ac_pt_PKG_CONFIG=$PKG_CONFIG
2858 # Extract the first word of "pkg-config", so it can be a program name with args.
2859 set dummy pkg-config; ac_word=$2
2860 echo "$as_me:2860: checking for $ac_word" >&5
2861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2862 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
2863 echo $ECHO_N "(cached) $ECHO_C" >&6
2865 case $ac_pt_PKG_CONFIG in
2867 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
2870 ac_save_IFS=$IFS; IFS=$ac_path_separator
2872 for ac_dir in $ac_dummy; do
2874 test -z "$ac_dir" && ac_dir=.
2875 if $as_executable_p "$ac_dir/$ac_word"; then
2876 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
2877 echo "$as_me:2877: found $ac_dir/$ac_word" >&5
2882 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
2886 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
2888 if test -n "$ac_pt_PKG_CONFIG"; then
2889 echo "$as_me:2889: result: $ac_pt_PKG_CONFIG" >&5
2890 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
2892 echo "$as_me:2892: result: no" >&5
2893 echo "${ECHO_T}no" >&6
2896 PKG_CONFIG=$ac_pt_PKG_CONFIG
2898 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
2907 test -z "$PKG_CONFIG" && PKG_CONFIG=none
2908 if test "$PKG_CONFIG" != none ; then
2910 if test "x$prefix" != xNONE; then
2911 cf_path_syntax="$prefix"
2913 cf_path_syntax="$ac_default_prefix"
2916 case ".$PKG_CONFIG" in #(vi
2917 .\$\(*\)*|.\'*\'*) #(vi
2921 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
2924 eval PKG_CONFIG="$PKG_CONFIG"
2925 case ".$PKG_CONFIG" in #(vi
2927 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
2932 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
2935 { { echo "$as_me:2935: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
2936 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
2937 { (exit 1); exit 1; }; }
2943 if test "$PKG_CONFIG" != no ; then
2944 echo "$as_me:2944: checking for $PKG_CONFIG library directory" >&5
2945 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
2947 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
2948 if test "${with_pkg_config_libdir+set}" = set; then
2949 withval="$with_pkg_config_libdir"
2950 PKG_CONFIG_LIBDIR=$withval
2952 PKG_CONFIG_LIBDIR=yes
2955 case x$PKG_CONFIG_LIBDIR in #(vi
2959 # look for the library directory using the same prefix as the executable
2960 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
2961 case x`(arch) 2>/dev/null` in #(vi
2963 for cf_config in $cf_path/share $cf_path/lib64 $cf_path/lib32 $cf_path/lib
2965 if test -d $cf_config/pkgconfig
2967 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
2973 PKG_CONFIG_LIBDIR=$cf_path/lib/pkgconfig
2981 echo "$as_me:2981: result: $PKG_CONFIG_LIBDIR" >&5
2982 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
2985 if test "$PKG_CONFIG" != no ; then
2986 if test -n "$PKG_CONFIG_LIBDIR" && test -d "$PKG_CONFIG_LIBDIR" ; then
2987 echo "$as_me:2987: checking if we should install .pc files for $PKG_CONFIG" >&5
2988 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
2990 # Check whether --enable-pc-files or --disable-pc-files was given.
2991 if test "${enable_pc_files+set}" = set; then
2992 enableval="$enable_pc_files"
2993 enable_pc_files=$enableval
2997 echo "$as_me:2997: result: $enable_pc_files" >&5
2998 echo "${ECHO_T}$enable_pc_files" >&6
2999 elif test -z "$PKG_CONFIG_LIBDIR" || test "$PKG_CONFIG_LIBDIR" != no; then
3001 { echo "$as_me:3001: WARNING: did not find $PKG_CONFIG library" >&5
3002 echo "$as_me: WARNING: did not find $PKG_CONFIG library" >&2;}
3008 echo "$as_me:3008: checking if you want to build test-programs" >&5
3009 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3011 # Check whether --with-tests or --without-tests was given.
3012 if test "${with_tests+set}" = set; then
3013 withval="$with_tests"
3014 cf_with_tests=$withval
3018 echo "$as_me:3018: result: $cf_with_tests" >&5
3019 echo "${ECHO_T}$cf_with_tests" >&6
3021 echo "$as_me:3021: checking if we should assume mixed-case filenames" >&5
3022 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3024 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3025 if test "${enable_mixed_case+set}" = set; then
3026 enableval="$enable_mixed_case"
3027 enable_mixedcase=$enableval
3029 enable_mixedcase=auto
3031 echo "$as_me:3031: result: $enable_mixedcase" >&5
3032 echo "${ECHO_T}$enable_mixedcase" >&6
3033 if test "$enable_mixedcase" = "auto" ; then
3035 echo "$as_me:3035: checking if filesystem supports mixed-case filenames" >&5
3036 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3037 if test "${cf_cv_mixedcase+set}" = set; then
3038 echo $ECHO_N "(cached) $ECHO_C" >&6
3041 if test "$cross_compiling" = yes ; then
3042 case $target_alias in #(vi
3043 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3051 rm -f conftest CONFTEST
3053 if test -f CONFTEST ; then
3058 rm -f conftest CONFTEST
3062 echo "$as_me:3062: result: $cf_cv_mixedcase" >&5
3063 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3064 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3065 #define MIXEDCASE_FILENAMES 1
3069 cf_cv_mixedcase=$enable_mixedcase
3070 if test "$enable_mixedcase" = "yes" ; then
3071 cat >>confdefs.h <<\EOF
3072 #define MIXEDCASE_FILENAMES 1
3078 # do this after mixed-case option (tags/TAGS is not as important as tic).
3079 echo "$as_me:3079: checking whether ${MAKE-make} sets \${MAKE}" >&5
3080 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3081 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3082 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3083 echo $ECHO_N "(cached) $ECHO_C" >&6
3085 cat >conftest.make <<\EOF
3087 @echo 'ac_maketemp="${MAKE}"'
3089 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3090 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3091 if test -n "$ac_maketemp"; then
3092 eval ac_cv_prog_make_${ac_make}_set=yes
3094 eval ac_cv_prog_make_${ac_make}_set=no
3098 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3099 echo "$as_me:3099: result: yes" >&5
3100 echo "${ECHO_T}yes" >&6
3103 echo "$as_me:3103: result: no" >&5
3104 echo "${ECHO_T}no" >&6
3105 SET_MAKE="MAKE=${MAKE-make}"
3108 for ac_prog in exctags ctags
3110 # Extract the first word of "$ac_prog", so it can be a program name with args.
3111 set dummy $ac_prog; ac_word=$2
3112 echo "$as_me:3112: checking for $ac_word" >&5
3113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3114 if test "${ac_cv_prog_CTAGS+set}" = set; then
3115 echo $ECHO_N "(cached) $ECHO_C" >&6
3117 if test -n "$CTAGS"; then
3118 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3120 ac_save_IFS=$IFS; IFS=$ac_path_separator
3122 for ac_dir in $ac_dummy; do
3124 test -z "$ac_dir" && ac_dir=.
3125 $as_executable_p "$ac_dir/$ac_word" || continue
3126 ac_cv_prog_CTAGS="$ac_prog"
3127 echo "$as_me:3127: found $ac_dir/$ac_word" >&5
3133 CTAGS=$ac_cv_prog_CTAGS
3134 if test -n "$CTAGS"; then
3135 echo "$as_me:3135: result: $CTAGS" >&5
3136 echo "${ECHO_T}$CTAGS" >&6
3138 echo "$as_me:3138: result: no" >&5
3139 echo "${ECHO_T}no" >&6
3142 test -n "$CTAGS" && break
3145 for ac_prog in exetags etags
3147 # Extract the first word of "$ac_prog", so it can be a program name with args.
3148 set dummy $ac_prog; ac_word=$2
3149 echo "$as_me:3149: checking for $ac_word" >&5
3150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3151 if test "${ac_cv_prog_ETAGS+set}" = set; then
3152 echo $ECHO_N "(cached) $ECHO_C" >&6
3154 if test -n "$ETAGS"; then
3155 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3157 ac_save_IFS=$IFS; IFS=$ac_path_separator
3159 for ac_dir in $ac_dummy; do
3161 test -z "$ac_dir" && ac_dir=.
3162 $as_executable_p "$ac_dir/$ac_word" || continue
3163 ac_cv_prog_ETAGS="$ac_prog"
3164 echo "$as_me:3164: found $ac_dir/$ac_word" >&5
3170 ETAGS=$ac_cv_prog_ETAGS
3171 if test -n "$ETAGS"; then
3172 echo "$as_me:3172: result: $ETAGS" >&5
3173 echo "${ECHO_T}$ETAGS" >&6
3175 echo "$as_me:3175: result: no" >&5
3176 echo "${ECHO_T}no" >&6
3179 test -n "$ETAGS" && break
3182 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3183 set dummy ${CTAGS:-ctags}; ac_word=$2
3184 echo "$as_me:3184: checking for $ac_word" >&5
3185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3186 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3187 echo $ECHO_N "(cached) $ECHO_C" >&6
3189 if test -n "$MAKE_LOWER_TAGS"; then
3190 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3192 ac_save_IFS=$IFS; IFS=$ac_path_separator
3194 for ac_dir in $ac_dummy; do
3196 test -z "$ac_dir" && ac_dir=.
3197 $as_executable_p "$ac_dir/$ac_word" || continue
3198 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3199 echo "$as_me:3199: found $ac_dir/$ac_word" >&5
3203 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3206 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3207 if test -n "$MAKE_LOWER_TAGS"; then
3208 echo "$as_me:3208: result: $MAKE_LOWER_TAGS" >&5
3209 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3211 echo "$as_me:3211: result: no" >&5
3212 echo "${ECHO_T}no" >&6
3215 if test "$cf_cv_mixedcase" = yes ; then
3216 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3217 set dummy ${ETAGS:-etags}; ac_word=$2
3218 echo "$as_me:3218: checking for $ac_word" >&5
3219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3220 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3221 echo $ECHO_N "(cached) $ECHO_C" >&6
3223 if test -n "$MAKE_UPPER_TAGS"; then
3224 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3226 ac_save_IFS=$IFS; IFS=$ac_path_separator
3228 for ac_dir in $ac_dummy; do
3230 test -z "$ac_dir" && ac_dir=.
3231 $as_executable_p "$ac_dir/$ac_word" || continue
3232 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3233 echo "$as_me:3233: found $ac_dir/$ac_word" >&5
3237 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3240 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3241 if test -n "$MAKE_UPPER_TAGS"; then
3242 echo "$as_me:3242: result: $MAKE_UPPER_TAGS" >&5
3243 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3245 echo "$as_me:3245: result: no" >&5
3246 echo "${ECHO_T}no" >&6
3253 if test "$MAKE_UPPER_TAGS" = yes ; then
3259 if test "$MAKE_LOWER_TAGS" = yes ; then
3265 echo "$as_me:3265: checking for makeflags variable" >&5
3266 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3267 if test "${cf_cv_makeflags+set}" = set; then
3268 echo $ECHO_N "(cached) $ECHO_C" >&6
3272 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
3274 cat >cf_makeflags.tmp <<CF_EOF
3277 @ echo '.$cf_option'
3279 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
3280 case "$cf_result" in
3282 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3283 case "$cf_result" in
3284 .*CC=*) cf_cv_makeflags=
3286 *) cf_cv_makeflags=$cf_option
3292 *) echo "given option \"$cf_option\", no match \"$cf_result\""
3296 rm -f cf_makeflags.tmp
3299 echo "$as_me:3299: result: $cf_cv_makeflags" >&5
3300 echo "${ECHO_T}$cf_cv_makeflags" >&6
3302 if test -n "$ac_tool_prefix"; then
3303 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3304 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3305 echo "$as_me:3305: checking for $ac_word" >&5
3306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3307 if test "${ac_cv_prog_RANLIB+set}" = set; then
3308 echo $ECHO_N "(cached) $ECHO_C" >&6
3310 if test -n "$RANLIB"; then
3311 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3313 ac_save_IFS=$IFS; IFS=$ac_path_separator
3315 for ac_dir in $ac_dummy; do
3317 test -z "$ac_dir" && ac_dir=.
3318 $as_executable_p "$ac_dir/$ac_word" || continue
3319 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3320 echo "$as_me:3320: found $ac_dir/$ac_word" >&5
3326 RANLIB=$ac_cv_prog_RANLIB
3327 if test -n "$RANLIB"; then
3328 echo "$as_me:3328: result: $RANLIB" >&5
3329 echo "${ECHO_T}$RANLIB" >&6
3331 echo "$as_me:3331: result: no" >&5
3332 echo "${ECHO_T}no" >&6
3336 if test -z "$ac_cv_prog_RANLIB"; then
3337 ac_ct_RANLIB=$RANLIB
3338 # Extract the first word of "ranlib", so it can be a program name with args.
3339 set dummy ranlib; ac_word=$2
3340 echo "$as_me:3340: checking for $ac_word" >&5
3341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3342 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3343 echo $ECHO_N "(cached) $ECHO_C" >&6
3345 if test -n "$ac_ct_RANLIB"; then
3346 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3348 ac_save_IFS=$IFS; IFS=$ac_path_separator
3350 for ac_dir in $ac_dummy; do
3352 test -z "$ac_dir" && ac_dir=.
3353 $as_executable_p "$ac_dir/$ac_word" || continue
3354 ac_cv_prog_ac_ct_RANLIB="ranlib"
3355 echo "$as_me:3355: found $ac_dir/$ac_word" >&5
3359 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3362 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3363 if test -n "$ac_ct_RANLIB"; then
3364 echo "$as_me:3364: result: $ac_ct_RANLIB" >&5
3365 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3367 echo "$as_me:3367: result: no" >&5
3368 echo "${ECHO_T}no" >&6
3371 RANLIB=$ac_ct_RANLIB
3373 RANLIB="$ac_cv_prog_RANLIB"
3376 if test -n "$ac_tool_prefix"; then
3377 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3378 set dummy ${ac_tool_prefix}ld; ac_word=$2
3379 echo "$as_me:3379: checking for $ac_word" >&5
3380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3381 if test "${ac_cv_prog_LD+set}" = set; then
3382 echo $ECHO_N "(cached) $ECHO_C" >&6
3384 if test -n "$LD"; then
3385 ac_cv_prog_LD="$LD" # Let the user override the test.
3387 ac_save_IFS=$IFS; IFS=$ac_path_separator
3389 for ac_dir in $ac_dummy; do
3391 test -z "$ac_dir" && ac_dir=.
3392 $as_executable_p "$ac_dir/$ac_word" || continue
3393 ac_cv_prog_LD="${ac_tool_prefix}ld"
3394 echo "$as_me:3394: found $ac_dir/$ac_word" >&5
3401 if test -n "$LD"; then
3402 echo "$as_me:3402: result: $LD" >&5
3403 echo "${ECHO_T}$LD" >&6
3405 echo "$as_me:3405: result: no" >&5
3406 echo "${ECHO_T}no" >&6
3410 if test -z "$ac_cv_prog_LD"; then
3412 # Extract the first word of "ld", so it can be a program name with args.
3413 set dummy ld; ac_word=$2
3414 echo "$as_me:3414: checking for $ac_word" >&5
3415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3416 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3417 echo $ECHO_N "(cached) $ECHO_C" >&6
3419 if test -n "$ac_ct_LD"; then
3420 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3422 ac_save_IFS=$IFS; IFS=$ac_path_separator
3424 for ac_dir in $ac_dummy; do
3426 test -z "$ac_dir" && ac_dir=.
3427 $as_executable_p "$ac_dir/$ac_word" || continue
3428 ac_cv_prog_ac_ct_LD="ld"
3429 echo "$as_me:3429: found $ac_dir/$ac_word" >&5
3433 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3436 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3437 if test -n "$ac_ct_LD"; then
3438 echo "$as_me:3438: result: $ac_ct_LD" >&5
3439 echo "${ECHO_T}$ac_ct_LD" >&6
3441 echo "$as_me:3441: result: no" >&5
3442 echo "${ECHO_T}no" >&6
3450 if test -n "$ac_tool_prefix"; then
3451 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3452 set dummy ${ac_tool_prefix}ar; ac_word=$2
3453 echo "$as_me:3453: checking for $ac_word" >&5
3454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3455 if test "${ac_cv_prog_AR+set}" = set; then
3456 echo $ECHO_N "(cached) $ECHO_C" >&6
3458 if test -n "$AR"; then
3459 ac_cv_prog_AR="$AR" # Let the user override the test.
3461 ac_save_IFS=$IFS; IFS=$ac_path_separator
3463 for ac_dir in $ac_dummy; do
3465 test -z "$ac_dir" && ac_dir=.
3466 $as_executable_p "$ac_dir/$ac_word" || continue
3467 ac_cv_prog_AR="${ac_tool_prefix}ar"
3468 echo "$as_me:3468: found $ac_dir/$ac_word" >&5
3475 if test -n "$AR"; then
3476 echo "$as_me:3476: result: $AR" >&5
3477 echo "${ECHO_T}$AR" >&6
3479 echo "$as_me:3479: result: no" >&5
3480 echo "${ECHO_T}no" >&6
3484 if test -z "$ac_cv_prog_AR"; then
3486 # Extract the first word of "ar", so it can be a program name with args.
3487 set dummy ar; ac_word=$2
3488 echo "$as_me:3488: checking for $ac_word" >&5
3489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3490 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3491 echo $ECHO_N "(cached) $ECHO_C" >&6
3493 if test -n "$ac_ct_AR"; then
3494 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3496 ac_save_IFS=$IFS; IFS=$ac_path_separator
3498 for ac_dir in $ac_dummy; do
3500 test -z "$ac_dir" && ac_dir=.
3501 $as_executable_p "$ac_dir/$ac_word" || continue
3502 ac_cv_prog_ac_ct_AR="ar"
3503 echo "$as_me:3503: found $ac_dir/$ac_word" >&5
3507 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3510 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3511 if test -n "$ac_ct_AR"; then
3512 echo "$as_me:3512: result: $ac_ct_AR" >&5
3513 echo "${ECHO_T}$ac_ct_AR" >&6
3515 echo "$as_me:3515: result: no" >&5
3516 echo "${ECHO_T}no" >&6
3524 if test -n "$ac_tool_prefix"; then
3525 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3526 set dummy ${ac_tool_prefix}ar; ac_word=$2
3527 echo "$as_me:3527: checking for $ac_word" >&5
3528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3529 if test "${ac_cv_prog_AR+set}" = set; then
3530 echo $ECHO_N "(cached) $ECHO_C" >&6
3532 if test -n "$AR"; then
3533 ac_cv_prog_AR="$AR" # Let the user override the test.
3535 ac_save_IFS=$IFS; IFS=$ac_path_separator
3537 for ac_dir in $ac_dummy; do
3539 test -z "$ac_dir" && ac_dir=.
3540 $as_executable_p "$ac_dir/$ac_word" || continue
3541 ac_cv_prog_AR="${ac_tool_prefix}ar"
3542 echo "$as_me:3542: found $ac_dir/$ac_word" >&5
3549 if test -n "$AR"; then
3550 echo "$as_me:3550: result: $AR" >&5
3551 echo "${ECHO_T}$AR" >&6
3553 echo "$as_me:3553: result: no" >&5
3554 echo "${ECHO_T}no" >&6
3558 if test -z "$ac_cv_prog_AR"; then
3560 # Extract the first word of "ar", so it can be a program name with args.
3561 set dummy ar; ac_word=$2
3562 echo "$as_me:3562: checking for $ac_word" >&5
3563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3564 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3565 echo $ECHO_N "(cached) $ECHO_C" >&6
3567 if test -n "$ac_ct_AR"; then
3568 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3570 ac_save_IFS=$IFS; IFS=$ac_path_separator
3572 for ac_dir in $ac_dummy; do
3574 test -z "$ac_dir" && ac_dir=.
3575 $as_executable_p "$ac_dir/$ac_word" || continue
3576 ac_cv_prog_ac_ct_AR="ar"
3577 echo "$as_me:3577: found $ac_dir/$ac_word" >&5
3581 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3584 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3585 if test -n "$ac_ct_AR"; then
3586 echo "$as_me:3586: result: $ac_ct_AR" >&5
3587 echo "${ECHO_T}$ac_ct_AR" >&6
3589 echo "$as_me:3589: result: no" >&5
3590 echo "${ECHO_T}no" >&6
3598 echo "$as_me:3598: checking for options to update archives" >&5
3599 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
3600 if test "${cf_cv_ar_flags+set}" = set; then
3601 echo $ECHO_N "(cached) $ECHO_C" >&6
3604 cf_cv_ar_flags=unknown
3605 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
3608 # check if $ARFLAGS already contains this choice
3609 if test "x$ARFLAGS" != "x" ; then
3610 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
3611 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
3617 rm -f conftest.$ac_cv_objext
3620 cat >conftest.$ac_ext <<EOF
3621 #line 3621 "configure"
3622 int testdata[3] = { 123, 456, 789 };
3624 if { (eval echo "$as_me:3624: \"$ac_compile\"") >&5
3625 (eval $ac_compile) 2>&5
3627 echo "$as_me:3627: \$? = $ac_status" >&5
3628 (exit $ac_status); } ; then
3629 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
3630 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
3631 if test -f conftest.a ; then
3632 cf_cv_ar_flags=$cf_ar_flags
3636 test -n "$verbose" && echo " cannot compile test-program" 1>&6
3638 echo "${as_me:-configure}:3638: testing cannot compile test-program ..." 1>&5
3643 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
3646 echo "$as_me:3646: result: $cf_cv_ar_flags" >&5
3647 echo "${ECHO_T}$cf_cv_ar_flags" >&6
3649 if test -n "$ARFLAGS" ; then
3650 if test -n "$cf_cv_ar_flags" ; then
3651 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
3654 ARFLAGS=$cf_cv_ar_flags
3657 echo "$as_me:3657: checking if you have specified an install-prefix" >&5
3658 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
3660 # Check whether --with-install-prefix or --without-install-prefix was given.
3661 if test "${with_install_prefix+set}" = set; then
3662 withval="$with_install_prefix"
3663 case "$withval" in #(vi
3666 *) DESTDIR="$withval"
3670 echo "$as_me:3670: result: $DESTDIR" >&5
3671 echo "${ECHO_T}$DESTDIR" >&6
3673 ###############################################################################
3675 # If we're cross-compiling, allow the user to override the tools and their
3676 # options. The configure script is oriented toward identifying the host
3677 # compiler, etc., but we need a build compiler to generate parts of the source.
3679 if test "$cross_compiling" = yes ; then
3681 # defaults that we might want to override
3682 : ${BUILD_CFLAGS:=''}
3683 : ${BUILD_CPPFLAGS:=''}
3684 : ${BUILD_LDFLAGS:=''}
3686 : ${BUILD_EXEEXT:='$x'}
3687 : ${BUILD_OBJEXT:='o'}
3689 # Check whether --with-build-cc or --without-build-cc was given.
3690 if test "${with_build_cc+set}" = set; then
3691 withval="$with_build_cc"
3694 for ac_prog in gcc cc cl
3696 # Extract the first word of "$ac_prog", so it can be a program name with args.
3697 set dummy $ac_prog; ac_word=$2
3698 echo "$as_me:3698: checking for $ac_word" >&5
3699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3700 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6
3703 if test -n "$BUILD_CC"; then
3704 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3706 ac_save_IFS=$IFS; IFS=$ac_path_separator
3708 for ac_dir in $ac_dummy; do
3710 test -z "$ac_dir" && ac_dir=.
3711 $as_executable_p "$ac_dir/$ac_word" || continue
3712 ac_cv_prog_BUILD_CC="$ac_prog"
3713 echo "$as_me:3713: found $ac_dir/$ac_word" >&5
3719 BUILD_CC=$ac_cv_prog_BUILD_CC
3720 if test -n "$BUILD_CC"; then
3721 echo "$as_me:3721: result: $BUILD_CC" >&5
3722 echo "${ECHO_T}$BUILD_CC" >&6
3724 echo "$as_me:3724: result: no" >&5
3725 echo "${ECHO_T}no" >&6
3728 test -n "$BUILD_CC" && break
3732 echo "$as_me:3732: checking for native build C compiler" >&5
3733 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
3734 echo "$as_me:3734: result: $BUILD_CC" >&5
3735 echo "${ECHO_T}$BUILD_CC" >&6
3737 echo "$as_me:3737: checking for native build C preprocessor" >&5
3738 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
3740 # Check whether --with-build-cpp or --without-build-cpp was given.
3741 if test "${with_build_cpp+set}" = set; then
3742 withval="$with_build_cpp"
3743 BUILD_CPP="$withval"
3745 BUILD_CPP='${BUILD_CC} -E'
3747 echo "$as_me:3747: result: $BUILD_CPP" >&5
3748 echo "${ECHO_T}$BUILD_CPP" >&6
3750 echo "$as_me:3750: checking for native build C flags" >&5
3751 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
3753 # Check whether --with-build-cflags or --without-build-cflags was given.
3754 if test "${with_build_cflags+set}" = set; then
3755 withval="$with_build_cflags"
3756 BUILD_CFLAGS="$withval"
3758 echo "$as_me:3758: result: $BUILD_CFLAGS" >&5
3759 echo "${ECHO_T}$BUILD_CFLAGS" >&6
3761 echo "$as_me:3761: checking for native build C preprocessor-flags" >&5
3762 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
3764 # Check whether --with-build-cppflags or --without-build-cppflags was given.
3765 if test "${with_build_cppflags+set}" = set; then
3766 withval="$with_build_cppflags"
3767 BUILD_CPPFLAGS="$withval"
3769 echo "$as_me:3769: result: $BUILD_CPPFLAGS" >&5
3770 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
3772 echo "$as_me:3772: checking for native build linker-flags" >&5
3773 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
3775 # Check whether --with-build-ldflags or --without-build-ldflags was given.
3776 if test "${with_build_ldflags+set}" = set; then
3777 withval="$with_build_ldflags"
3778 BUILD_LDFLAGS="$withval"
3780 echo "$as_me:3780: result: $BUILD_LDFLAGS" >&5
3781 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
3783 echo "$as_me:3783: checking for native build linker-libraries" >&5
3784 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
3786 # Check whether --with-build-libs or --without-build-libs was given.
3787 if test "${with_build_libs+set}" = set; then
3788 withval="$with_build_libs"
3789 BUILD_LIBS="$withval"
3791 echo "$as_me:3791: result: $BUILD_LIBS" >&5
3792 echo "${ECHO_T}$BUILD_LIBS" >&6
3794 # this assumes we're on Unix.
3798 : ${BUILD_CC:='${CC}'}
3800 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
3801 { { echo "$as_me:3801: error: Cross-build requires two compilers.
3802 Use --with-build-cc to specify the native compiler." >&5
3803 echo "$as_me: error: Cross-build requires two compilers.
3804 Use --with-build-cc to specify the native compiler." >&2;}
3805 { (exit 1); exit 1; }; }
3809 : ${BUILD_CC:='${CC}'}
3810 : ${BUILD_CPP:='${CPP}'}
3811 : ${BUILD_CFLAGS:='${CFLAGS}'}
3812 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
3813 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
3814 : ${BUILD_LIBS:='${LIBS}'}
3815 : ${BUILD_EXEEXT:='$x'}
3816 : ${BUILD_OBJEXT:='o'}
3819 ###############################################################################
3821 ### Options to allow the user to specify the set of libraries which are used.
3822 ### Use "--without-normal --with-shared" to allow the default model to be
3823 ### shared, for example.
3826 echo "$as_me:3826: checking if you want to build shared C-objects" >&5
3827 echo $ECHO_N "checking if you want to build shared C-objects... $ECHO_C" >&6
3829 # Check whether --with-shared or --without-shared was given.
3830 if test "${with_shared+set}" = set; then
3831 withval="$with_shared"
3832 with_shared=$withval
3836 echo "$as_me:3836: result: $with_shared" >&5
3837 echo "${ECHO_T}$with_shared" >&6
3838 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
3840 echo "$as_me:3840: checking for specified models" >&5
3841 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
3842 test -z "$cf_list_models" && cf_list_models=normal
3843 echo "$as_me:3843: result: $cf_list_models" >&5
3844 echo "${ECHO_T}$cf_list_models" >&6
3846 ### Use the first model as the default, and save its suffix for use in building
3847 ### up test-applications.
3848 echo "$as_me:3848: checking for default model" >&5
3849 echo $ECHO_N "checking for default model... $ECHO_C" >&6
3850 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
3851 echo "$as_me:3851: result: $DFT_LWR_MODEL" >&5
3852 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
3854 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3856 echo "$as_me:3856: checking for specific curses-directory" >&5
3857 echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6
3859 # Check whether --with-curses-dir or --without-curses-dir was given.
3860 if test "${with_curses_dir+set}" = set; then
3861 withval="$with_curses_dir"
3862 cf_cv_curses_dir=$withval
3866 echo "$as_me:3866: result: $cf_cv_curses_dir" >&5
3867 echo "${ECHO_T}$cf_cv_curses_dir" >&6
3869 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
3872 if test "x$prefix" != xNONE; then
3873 cf_path_syntax="$prefix"
3875 cf_path_syntax="$ac_default_prefix"
3878 case ".$withval" in #(vi
3879 .\$\(*\)*|.\'*\'*) #(vi
3883 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3886 eval withval="$withval"
3887 case ".$withval" in #(vi
3889 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
3894 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
3897 { { echo "$as_me:3897: error: expected a pathname, not \"$withval\"" >&5
3898 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
3899 { (exit 1); exit 1; }; }
3903 if test -d "$cf_cv_curses_dir"
3906 if test -n "$cf_cv_curses_dir/include" ; then
3907 for cf_add_incdir in $cf_cv_curses_dir/include
3909 while test $cf_add_incdir != /usr/include
3911 if test -d $cf_add_incdir
3914 if test -n "$CFLAGS$CPPFLAGS" ; then
3915 # a loop is needed to ensure we can add subdirs of existing dirs
3916 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
3917 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
3918 cf_have_incdir=yes; break
3923 if test "$cf_have_incdir" = no ; then
3924 if test "$cf_add_incdir" = /usr/local/include ; then
3925 if test "$GCC" = yes
3927 cf_save_CPPFLAGS=$CPPFLAGS
3928 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
3929 cat >conftest.$ac_ext <<_ACEOF
3930 #line 3930 "configure"
3931 #include "confdefs.h"
3941 rm -f conftest.$ac_objext
3942 if { (eval echo "$as_me:3942: \"$ac_compile\"") >&5
3943 (eval $ac_compile) 2>&5
3945 echo "$as_me:3945: \$? = $ac_status" >&5
3946 (exit $ac_status); } &&
3947 { ac_try='test -s conftest.$ac_objext'
3948 { (eval echo "$as_me:3948: \"$ac_try\"") >&5
3951 echo "$as_me:3951: \$? = $ac_status" >&5
3952 (exit $ac_status); }; }; then
3955 echo "$as_me: failed program was:" >&5
3956 cat conftest.$ac_ext >&5
3959 rm -f conftest.$ac_objext conftest.$ac_ext
3960 CPPFLAGS=$cf_save_CPPFLAGS
3965 if test "$cf_have_incdir" = no ; then
3966 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
3968 echo "${as_me:-configure}:3968: testing adding $cf_add_incdir to include-path ..." 1>&5
3970 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
3972 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
3973 test "$cf_top_incdir" = "$cf_add_incdir" && break
3974 cf_add_incdir="$cf_top_incdir"
3983 if test -n "$cf_cv_curses_dir/lib" ; then
3984 for cf_add_libdir in $cf_cv_curses_dir/lib
3986 if test $cf_add_libdir = /usr/lib ; then
3988 elif test -d $cf_add_libdir
3991 if test -n "$LDFLAGS$LIBS" ; then
3992 # a loop is needed to ensure we can add subdirs of existing dirs
3993 for cf_test_libdir in $LDFLAGS $LIBS ; do
3994 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
3995 cf_have_libdir=yes; break
3999 if test "$cf_have_libdir" = no ; then
4000 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
4002 echo "${as_me:-configure}:4002: testing adding $cf_add_libdir to library-path ..." 1>&5
4004 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
4013 echo "$as_me:4013: checking if you want wide-character code" >&5
4014 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
4016 # Check whether --enable-widec or --disable-widec was given.
4017 if test "${enable_widec+set}" = set; then
4018 enableval="$enable_widec"
4019 with_widec=$enableval
4023 echo "$as_me:4023: result: $with_widec" >&5
4024 echo "${ECHO_T}$with_widec" >&6
4025 if test "$with_widec" = yes ; then
4027 echo "$as_me:4027: checking for multibyte character support" >&5
4028 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
4029 if test "${cf_cv_utf8_lib+set}" = set; then
4030 echo $ECHO_N "(cached) $ECHO_C" >&6
4033 cf_save_LIBS="$LIBS"
4034 cat >conftest.$ac_ext <<_ACEOF
4035 #line 4035 "configure"
4036 #include "confdefs.h"
4047 rm -f conftest.$ac_objext conftest$ac_exeext
4048 if { (eval echo "$as_me:4048: \"$ac_link\"") >&5
4049 (eval $ac_link) 2>&5
4051 echo "$as_me:4051: \$? = $ac_status" >&5
4052 (exit $ac_status); } &&
4053 { ac_try='test -s conftest$ac_exeext'
4054 { (eval echo "$as_me:4054: \"$ac_try\"") >&5
4057 echo "$as_me:4057: \$? = $ac_status" >&5
4058 (exit $ac_status); }; }; then
4061 echo "$as_me: failed program was:" >&5
4062 cat conftest.$ac_ext >&5
4064 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
4065 # will be set on completion of the AC_TRY_LINK below.
4066 cf_cv_header_path_utf8=
4067 cf_cv_library_path_utf8=
4069 echo "${as_me:-configure}:4069: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
4071 cf_save_LIBS="$LIBS"
4073 cat >conftest.$ac_ext <<_ACEOF
4074 #line 4074 "configure"
4075 #include "confdefs.h"
4077 #include <libutf8.h>
4086 rm -f conftest.$ac_objext conftest$ac_exeext
4087 if { (eval echo "$as_me:4087: \"$ac_link\"") >&5
4088 (eval $ac_link) 2>&5
4090 echo "$as_me:4090: \$? = $ac_status" >&5
4091 (exit $ac_status); } &&
4092 { ac_try='test -s conftest$ac_exeext'
4093 { (eval echo "$as_me:4093: \"$ac_try\"") >&5
4096 echo "$as_me:4096: \$? = $ac_status" >&5
4097 (exit $ac_status); }; }; then
4099 cf_cv_find_linkage_utf8=yes
4100 cf_cv_header_path_utf8=/usr/include
4101 cf_cv_library_path_utf8=/usr/lib
4104 echo "$as_me: failed program was:" >&5
4105 cat conftest.$ac_ext >&5
4107 LIBS="-lutf8 $cf_save_LIBS"
4109 cat >conftest.$ac_ext <<_ACEOF
4110 #line 4110 "configure"
4111 #include "confdefs.h"
4113 #include <libutf8.h>
4122 rm -f conftest.$ac_objext conftest$ac_exeext
4123 if { (eval echo "$as_me:4123: \"$ac_link\"") >&5
4124 (eval $ac_link) 2>&5
4126 echo "$as_me:4126: \$? = $ac_status" >&5
4127 (exit $ac_status); } &&
4128 { ac_try='test -s conftest$ac_exeext'
4129 { (eval echo "$as_me:4129: \"$ac_try\"") >&5
4132 echo "$as_me:4132: \$? = $ac_status" >&5
4133 (exit $ac_status); }; }; then
4135 cf_cv_find_linkage_utf8=yes
4136 cf_cv_header_path_utf8=/usr/include
4137 cf_cv_library_path_utf8=/usr/lib
4138 cf_cv_library_file_utf8="-lutf8"
4141 echo "$as_me: failed program was:" >&5
4142 cat conftest.$ac_ext >&5
4144 cf_cv_find_linkage_utf8=no
4145 LIBS="$cf_save_LIBS"
4147 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
4149 echo "${as_me:-configure}:4149: testing find linkage for utf8 library ..." 1>&5
4151 echo "${as_me:-configure}:4151: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
4153 cf_save_CPPFLAGS="$CPPFLAGS"
4154 cf_test_CPPFLAGS="$CPPFLAGS"
4158 # collect the current set of include-directories from compiler flags
4159 cf_header_path_list=""
4160 if test -n "${CFLAGS}${CPPFLAGS}" ; then
4161 for cf_header_path in $CPPFLAGS $CFLAGS
4163 case $cf_header_path in #(vi
4165 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
4167 test "$cf_header_path" != "NONE" && \
4168 test -d "$cf_header_path" && \
4170 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
4171 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
4172 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
4173 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
4174 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
4175 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
4178 cf_header_path_list="$cf_header_path_list $cf_search"
4184 # add the variations for the package we are looking for
4188 test "/usr" != "$prefix" && \
4190 (test $prefix = NONE || test "/usr" != "$prefix") && {
4191 test -n "$verbose" && echo " ... testing for include-directories under /usr"
4192 test -d /usr/include && cf_search="$cf_search /usr/include"
4193 test -d /usr/include/utf8 && cf_search="$cf_search /usr/include/utf8"
4194 test -d /usr/include/utf8/include && cf_search="$cf_search /usr/include/utf8/include"
4195 test -d /usr/utf8/include && cf_search="$cf_search /usr/utf8/include"
4196 test -d /usr/utf8/include/utf8 && cf_search="$cf_search /usr/utf8/include/utf8"
4199 test "$prefix" != "NONE" && \
4200 test -d "$prefix" && \
4202 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
4203 test -d $prefix/include && cf_search="$cf_search $prefix/include"
4204 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
4205 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
4206 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
4207 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
4210 test "/usr/local" != "$prefix" && \
4211 test -d "/usr/local" && \
4212 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
4213 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
4214 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
4215 test -d /usr/local/include/utf8 && cf_search="$cf_search /usr/local/include/utf8"
4216 test -d /usr/local/include/utf8/include && cf_search="$cf_search /usr/local/include/utf8/include"
4217 test -d /usr/local/utf8/include && cf_search="$cf_search /usr/local/utf8/include"
4218 test -d /usr/local/utf8/include/utf8 && cf_search="$cf_search /usr/local/utf8/include/utf8"
4221 test "/opt" != "$prefix" && \
4223 (test $prefix = NONE || test "/opt" != "$prefix") && {
4224 test -n "$verbose" && echo " ... testing for include-directories under /opt"
4225 test -d /opt/include && cf_search="$cf_search /opt/include"
4226 test -d /opt/include/utf8 && cf_search="$cf_search /opt/include/utf8"
4227 test -d /opt/include/utf8/include && cf_search="$cf_search /opt/include/utf8/include"
4228 test -d /opt/utf8/include && cf_search="$cf_search /opt/utf8/include"
4229 test -d /opt/utf8/include/utf8 && cf_search="$cf_search /opt/utf8/include/utf8"
4232 test "$HOME" != "$prefix" && \
4233 test -d "$HOME" && \
4234 (test $prefix = NONE || test "$HOME" != "$prefix") && {
4235 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
4236 test -d $HOME/include && cf_search="$cf_search $HOME/include"
4237 test -d $HOME/include/utf8 && cf_search="$cf_search $HOME/include/utf8"
4238 test -d $HOME/include/utf8/include && cf_search="$cf_search $HOME/include/utf8/include"
4239 test -d $HOME/utf8/include && cf_search="$cf_search $HOME/utf8/include"
4240 test -d $HOME/utf8/include/utf8 && cf_search="$cf_search $HOME/utf8/include/utf8"
4243 test "$includedir" != NONE && \
4244 test "$includedir" != "/usr/include" && \
4245 test -d "$includedir" && {
4246 test -d $includedir && cf_search="$cf_search $includedir"
4247 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
4250 test "$oldincludedir" != NONE && \
4251 test "$oldincludedir" != "/usr/include" && \
4252 test -d "$oldincludedir" && {
4253 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
4254 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
4257 cf_search="$cf_search $cf_header_path_list"
4259 for cf_cv_header_path_utf8 in $cf_search
4261 if test -d $cf_cv_header_path_utf8 ; then
4262 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
4264 echo "${as_me:-configure}:4264: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
4266 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
4267 cat >conftest.$ac_ext <<_ACEOF
4268 #line 4268 "configure"
4269 #include "confdefs.h"
4271 #include <libutf8.h>
4280 rm -f conftest.$ac_objext
4281 if { (eval echo "$as_me:4281: \"$ac_compile\"") >&5
4282 (eval $ac_compile) 2>&5
4284 echo "$as_me:4284: \$? = $ac_status" >&5
4285 (exit $ac_status); } &&
4286 { ac_try='test -s conftest.$ac_objext'
4287 { (eval echo "$as_me:4287: \"$ac_try\"") >&5
4290 echo "$as_me:4290: \$? = $ac_status" >&5
4291 (exit $ac_status); }; }; then
4293 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
4295 echo "${as_me:-configure}:4295: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
4297 cf_cv_find_linkage_utf8=maybe
4298 cf_test_CPPFLAGS="$CPPFLAGS"
4301 echo "$as_me: failed program was:" >&5
4302 cat conftest.$ac_ext >&5
4304 CPPFLAGS="$cf_save_CPPFLAGS"
4307 rm -f conftest.$ac_objext conftest.$ac_ext
4311 if test "$cf_cv_find_linkage_utf8" = maybe ; then
4313 echo "${as_me:-configure}:4313: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
4315 cf_save_LIBS="$LIBS"
4316 cf_save_LDFLAGS="$LDFLAGS"
4318 if test "$cf_cv_find_linkage_utf8" != yes ; then
4321 cf_library_path_list=""
4322 if test -n "${LDFLAGS}${LIBS}" ; then
4323 for cf_library_path in $LDFLAGS $LIBS
4325 case $cf_library_path in #(vi
4327 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
4329 test "$cf_library_path" != "NONE" && \
4330 test -d "$cf_library_path" && \
4332 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
4333 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
4334 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
4335 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
4336 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
4337 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
4340 cf_library_path_list="$cf_library_path_list $cf_search"
4348 test "/usr" != "$prefix" && \
4350 (test $prefix = NONE || test "/usr" != "$prefix") && {
4351 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
4352 test -d /usr/lib && cf_search="$cf_search /usr/lib"
4353 test -d /usr/lib/utf8 && cf_search="$cf_search /usr/lib/utf8"
4354 test -d /usr/lib/utf8/lib && cf_search="$cf_search /usr/lib/utf8/lib"
4355 test -d /usr/utf8/lib && cf_search="$cf_search /usr/utf8/lib"
4356 test -d /usr/utf8/lib/utf8 && cf_search="$cf_search /usr/utf8/lib/utf8"
4359 test "$prefix" != "NONE" && \
4360 test -d "$prefix" && \
4362 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
4363 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
4364 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
4365 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
4366 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
4367 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
4370 test "/usr/local" != "$prefix" && \
4371 test -d "/usr/local" && \
4372 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
4373 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
4374 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
4375 test -d /usr/local/lib/utf8 && cf_search="$cf_search /usr/local/lib/utf8"
4376 test -d /usr/local/lib/utf8/lib && cf_search="$cf_search /usr/local/lib/utf8/lib"
4377 test -d /usr/local/utf8/lib && cf_search="$cf_search /usr/local/utf8/lib"
4378 test -d /usr/local/utf8/lib/utf8 && cf_search="$cf_search /usr/local/utf8/lib/utf8"
4381 test "/opt" != "$prefix" && \
4383 (test $prefix = NONE || test "/opt" != "$prefix") && {
4384 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
4385 test -d /opt/lib && cf_search="$cf_search /opt/lib"
4386 test -d /opt/lib/utf8 && cf_search="$cf_search /opt/lib/utf8"
4387 test -d /opt/lib/utf8/lib && cf_search="$cf_search /opt/lib/utf8/lib"
4388 test -d /opt/utf8/lib && cf_search="$cf_search /opt/utf8/lib"
4389 test -d /opt/utf8/lib/utf8 && cf_search="$cf_search /opt/utf8/lib/utf8"
4392 test "$HOME" != "$prefix" && \
4393 test -d "$HOME" && \
4394 (test $prefix = NONE || test "$HOME" != "$prefix") && {
4395 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
4396 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
4397 test -d $HOME/lib/utf8 && cf_search="$cf_search $HOME/lib/utf8"
4398 test -d $HOME/lib/utf8/lib && cf_search="$cf_search $HOME/lib/utf8/lib"
4399 test -d $HOME/utf8/lib && cf_search="$cf_search $HOME/utf8/lib"
4400 test -d $HOME/utf8/lib/utf8 && cf_search="$cf_search $HOME/utf8/lib/utf8"
4403 cf_search="$cf_library_path_list $cf_search"
4405 for cf_cv_library_path_utf8 in $cf_search
4407 if test -d $cf_cv_library_path_utf8 ; then
4408 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
4410 echo "${as_me:-configure}:4410: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
4412 CPPFLAGS="$cf_test_CPPFLAGS"
4413 LIBS="-lutf8 $cf_save_LIBS"
4414 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
4415 cat >conftest.$ac_ext <<_ACEOF
4416 #line 4416 "configure"
4417 #include "confdefs.h"
4419 #include <libutf8.h>
4428 rm -f conftest.$ac_objext conftest$ac_exeext
4429 if { (eval echo "$as_me:4429: \"$ac_link\"") >&5
4430 (eval $ac_link) 2>&5
4432 echo "$as_me:4432: \$? = $ac_status" >&5
4433 (exit $ac_status); } &&
4434 { ac_try='test -s conftest$ac_exeext'
4435 { (eval echo "$as_me:4435: \"$ac_try\"") >&5
4438 echo "$as_me:4438: \$? = $ac_status" >&5
4439 (exit $ac_status); }; }; then
4441 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
4443 echo "${as_me:-configure}:4443: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
4445 cf_cv_find_linkage_utf8=yes
4446 cf_cv_library_file_utf8="-lutf8"
4449 echo "$as_me: failed program was:" >&5
4450 cat conftest.$ac_ext >&5
4452 CPPFLAGS="$cf_save_CPPFLAGS"
4453 LIBS="$cf_save_LIBS"
4454 LDFLAGS="$cf_save_LDFLAGS"
4457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4460 CPPFLAGS="$cf_save_CPPFLAGS"
4461 LDFLAGS="$cf_save_LDFLAGS"
4465 cf_cv_find_linkage_utf8=no
4469 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4472 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4474 LIBS="$cf_save_LIBS"
4476 if test "$cf_cv_find_linkage_utf8" = yes ; then
4477 cf_cv_utf8_lib=add-on
4483 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4485 echo "$as_me:4485: result: $cf_cv_utf8_lib" >&5
4486 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
4488 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
4490 if test "$cf_cv_utf8_lib" = "add-on" ; then
4491 cat >>confdefs.h <<\EOF
4492 #define HAVE_LIBUTF8_H 1
4495 if test -n "$cf_cv_header_path_utf8" ; then
4496 for cf_add_incdir in $cf_cv_header_path_utf8
4498 while test $cf_add_incdir != /usr/include
4500 if test -d $cf_add_incdir
4503 if test -n "$CFLAGS$CPPFLAGS" ; then
4504 # a loop is needed to ensure we can add subdirs of existing dirs
4505 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4506 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4507 cf_have_incdir=yes; break
4512 if test "$cf_have_incdir" = no ; then
4513 if test "$cf_add_incdir" = /usr/local/include ; then
4514 if test "$GCC" = yes
4516 cf_save_CPPFLAGS=$CPPFLAGS
4517 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4518 cat >conftest.$ac_ext <<_ACEOF
4519 #line 4519 "configure"
4520 #include "confdefs.h"
4530 rm -f conftest.$ac_objext
4531 if { (eval echo "$as_me:4531: \"$ac_compile\"") >&5
4532 (eval $ac_compile) 2>&5
4534 echo "$as_me:4534: \$? = $ac_status" >&5
4535 (exit $ac_status); } &&
4536 { ac_try='test -s conftest.$ac_objext'
4537 { (eval echo "$as_me:4537: \"$ac_try\"") >&5
4540 echo "$as_me:4540: \$? = $ac_status" >&5
4541 (exit $ac_status); }; }; then
4544 echo "$as_me: failed program was:" >&5
4545 cat conftest.$ac_ext >&5
4548 rm -f conftest.$ac_objext conftest.$ac_ext
4549 CPPFLAGS=$cf_save_CPPFLAGS
4554 if test "$cf_have_incdir" = no ; then
4555 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4557 echo "${as_me:-configure}:4557: testing adding $cf_add_incdir to include-path ..." 1>&5
4559 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4561 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4562 test "$cf_top_incdir" = "$cf_add_incdir" && break
4563 cf_add_incdir="$cf_top_incdir"
4572 if test -n "$cf_cv_library_path_utf8" ; then
4573 for cf_add_libdir in $cf_cv_library_path_utf8
4575 if test $cf_add_libdir = /usr/lib ; then
4577 elif test -d $cf_add_libdir
4580 if test -n "$LDFLAGS$LIBS" ; then
4581 # a loop is needed to ensure we can add subdirs of existing dirs
4582 for cf_test_libdir in $LDFLAGS $LIBS ; do
4583 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
4584 cf_have_libdir=yes; break
4588 if test "$cf_have_libdir" = no ; then
4589 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
4591 echo "${as_me:-configure}:4591: testing adding $cf_add_libdir to library-path ..." 1>&5
4593 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
4599 LIBS="$cf_cv_library_file_utf8 $LIBS"
4602 cf_ncuconfig_root=ncursesw
4604 echo "Looking for ${cf_ncuconfig_root}-config"
4605 for ac_prog in ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
4607 # Extract the first word of "$ac_prog", so it can be a program name with args.
4608 set dummy $ac_prog; ac_word=$2
4609 echo "$as_me:4609: checking for $ac_word" >&5
4610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4611 if test "${ac_cv_path_NCURSES_CONFIG+set}" = set; then
4612 echo $ECHO_N "(cached) $ECHO_C" >&6
4614 case $NCURSES_CONFIG in
4616 ac_cv_path_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test with a path.
4619 ac_save_IFS=$IFS; IFS=$ac_path_separator
4621 for ac_dir in $ac_dummy; do
4623 test -z "$ac_dir" && ac_dir=.
4624 if $as_executable_p "$ac_dir/$ac_word"; then
4625 ac_cv_path_NCURSES_CONFIG="$ac_dir/$ac_word"
4626 echo "$as_me:4626: found $ac_dir/$ac_word" >&5
4634 NCURSES_CONFIG=$ac_cv_path_NCURSES_CONFIG
4636 if test -n "$NCURSES_CONFIG"; then
4637 echo "$as_me:4637: result: $NCURSES_CONFIG" >&5
4638 echo "${ECHO_T}$NCURSES_CONFIG" >&6
4640 echo "$as_me:4640: result: no" >&5
4641 echo "${ECHO_T}no" >&6
4644 test -n "$NCURSES_CONFIG" && break
4646 test -n "$NCURSES_CONFIG" || NCURSES_CONFIG="none"
4648 if test "$NCURSES_CONFIG" != none ; then
4650 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
4651 LIBS="`$NCURSES_CONFIG --libs` $LIBS"
4653 # even with config script, some packages use no-override for curses.h
4655 echo "$as_me:4655: checking if we have identified curses headers" >&5
4656 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
4657 if test "${cf_cv_ncurses_header+set}" = set; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4661 cf_cv_ncurses_header=none
4663 ncursesw/ncurses.h \
4668 cat >conftest.$ac_ext <<_ACEOF
4669 #line 4669 "configure"
4670 #include "confdefs.h"
4671 #include <${cf_header}>
4675 initscr(); tgoto("?", 0,0)
4680 rm -f conftest.$ac_objext
4681 if { (eval echo "$as_me:4681: \"$ac_compile\"") >&5
4682 (eval $ac_compile) 2>&5
4684 echo "$as_me:4684: \$? = $ac_status" >&5
4685 (exit $ac_status); } &&
4686 { ac_try='test -s conftest.$ac_objext'
4687 { (eval echo "$as_me:4687: \"$ac_try\"") >&5
4690 echo "$as_me:4690: \$? = $ac_status" >&5
4691 (exit $ac_status); }; }; then
4692 cf_cv_ncurses_header=$cf_header; break
4694 echo "$as_me: failed program was:" >&5
4695 cat conftest.$ac_ext >&5
4697 rm -f conftest.$ac_objext conftest.$ac_ext
4701 echo "$as_me:4701: result: $cf_cv_ncurses_header" >&5
4702 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
4704 if test "$cf_cv_ncurses_header" = none ; then
4705 { { echo "$as_me:4705: error: No curses header-files found" >&5
4706 echo "$as_me: error: No curses header-files found" >&2;}
4707 { (exit 1); exit 1; }; }
4710 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
4712 for ac_header in $cf_cv_ncurses_header
4714 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4715 echo "$as_me:4715: checking for $ac_header" >&5
4716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4718 echo $ECHO_N "(cached) $ECHO_C" >&6
4720 cat >conftest.$ac_ext <<_ACEOF
4721 #line 4721 "configure"
4722 #include "confdefs.h"
4723 #include <$ac_header>
4725 if { (eval echo "$as_me:4725: \"$ac_cpp conftest.$ac_ext\"") >&5
4726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4728 egrep -v '^ *\+' conftest.er1 >conftest.err
4730 cat conftest.err >&5
4731 echo "$as_me:4731: \$? = $ac_status" >&5
4732 (exit $ac_status); } >/dev/null; then
4733 if test -s conftest.err; then
4734 ac_cpp_err=$ac_c_preproc_warn_flag
4741 if test -z "$ac_cpp_err"; then
4742 eval "$as_ac_Header=yes"
4744 echo "$as_me: failed program was:" >&5
4745 cat conftest.$ac_ext >&5
4746 eval "$as_ac_Header=no"
4748 rm -f conftest.err conftest.$ac_ext
4750 echo "$as_me:4750: result: `eval echo '${'$as_ac_Header'}'`" >&5
4751 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4752 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4753 cat >>confdefs.h <<EOF
4754 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4760 cat >>confdefs.h <<\EOF
4764 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4766 cat >>confdefs.h <<EOF
4767 #define $cf_nculib_ROOT 1
4770 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
4774 cf_ncuhdr_root=ncursesw
4776 test -n "$cf_cv_curses_dir" && \
4777 test "$cf_cv_curses_dir" != "no" && { \
4779 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
4780 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
4782 while test $cf_add_incdir != /usr/include
4784 if test -d $cf_add_incdir
4787 if test -n "$CFLAGS$CPPFLAGS" ; then
4788 # a loop is needed to ensure we can add subdirs of existing dirs
4789 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4790 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4791 cf_have_incdir=yes; break
4796 if test "$cf_have_incdir" = no ; then
4797 if test "$cf_add_incdir" = /usr/local/include ; then
4798 if test "$GCC" = yes
4800 cf_save_CPPFLAGS=$CPPFLAGS
4801 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4802 cat >conftest.$ac_ext <<_ACEOF
4803 #line 4803 "configure"
4804 #include "confdefs.h"
4814 rm -f conftest.$ac_objext
4815 if { (eval echo "$as_me:4815: \"$ac_compile\"") >&5
4816 (eval $ac_compile) 2>&5
4818 echo "$as_me:4818: \$? = $ac_status" >&5
4819 (exit $ac_status); } &&
4820 { ac_try='test -s conftest.$ac_objext'
4821 { (eval echo "$as_me:4821: \"$ac_try\"") >&5
4824 echo "$as_me:4824: \$? = $ac_status" >&5
4825 (exit $ac_status); }; }; then
4828 echo "$as_me: failed program was:" >&5
4829 cat conftest.$ac_ext >&5
4832 rm -f conftest.$ac_objext conftest.$ac_ext
4833 CPPFLAGS=$cf_save_CPPFLAGS
4838 if test "$cf_have_incdir" = no ; then
4839 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4841 echo "${as_me:-configure}:4841: testing adding $cf_add_incdir to include-path ..." 1>&5
4843 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4845 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4846 test "$cf_top_incdir" = "$cf_add_incdir" && break
4847 cf_add_incdir="$cf_top_incdir"
4858 echo "$as_me:4858: checking for $cf_ncuhdr_root header in include-path" >&5
4859 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
4860 if test "${cf_cv_ncurses_h+set}" = set; then
4861 echo $ECHO_N "(cached) $ECHO_C" >&6
4864 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
4865 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
4866 for cf_header in $cf_header_list
4869 cat >conftest.$ac_ext <<_ACEOF
4870 #line 4870 "configure"
4871 #include "confdefs.h"
4873 #define _XOPEN_SOURCE_EXTENDED
4874 #undef HAVE_LIBUTF8_H /* in case we used CF_UTF8_LIB */
4875 #define HAVE_LIBUTF8_H /* to force ncurses' header file to use cchar_t */
4877 #include <$cf_header>
4882 #ifdef NCURSES_VERSION
4888 printf("%s\n", NCURSES_VERSION);
4901 rm -f conftest.$ac_objext
4902 if { (eval echo "$as_me:4902: \"$ac_compile\"") >&5
4903 (eval $ac_compile) 2>&5
4905 echo "$as_me:4905: \$? = $ac_status" >&5
4906 (exit $ac_status); } &&
4907 { ac_try='test -s conftest.$ac_objext'
4908 { (eval echo "$as_me:4908: \"$ac_try\"") >&5
4911 echo "$as_me:4911: \$? = $ac_status" >&5
4912 (exit $ac_status); }; }; then
4913 cf_cv_ncurses_h=$cf_header
4916 echo "$as_me: failed program was:" >&5
4917 cat conftest.$ac_ext >&5
4920 rm -f conftest.$ac_objext conftest.$ac_ext
4922 test "$cf_cv_ncurses_h" != no && break
4926 echo "$as_me:4926: result: $cf_cv_ncurses_h" >&5
4927 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
4929 if test "$cf_cv_ncurses_h" != no ; then
4930 cf_cv_ncurses_header=$cf_cv_ncurses_h
4933 echo "$as_me:4933: checking for $cf_ncuhdr_root include-path" >&5
4934 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
4935 if test "${cf_cv_ncurses_h2+set}" = set; then
4936 echo $ECHO_N "(cached) $ECHO_C" >&6
4939 test -n "$verbose" && echo
4943 # collect the current set of include-directories from compiler flags
4944 cf_header_path_list=""
4945 if test -n "${CFLAGS}${CPPFLAGS}" ; then
4946 for cf_header_path in $CPPFLAGS $CFLAGS
4948 case $cf_header_path in #(vi
4950 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
4952 test "$cf_header_path" != "NONE" && \
4953 test -d "$cf_header_path" && \
4955 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
4956 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
4957 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
4958 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
4959 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
4960 test -d $cf_header_path/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
4963 cf_header_path_list="$cf_header_path_list $cf_search"
4969 # add the variations for the package we are looking for
4973 test "/usr" != "$prefix" && \
4975 (test $prefix = NONE || test "/usr" != "$prefix") && {
4976 test -n "$verbose" && echo " ... testing for include-directories under /usr"
4977 test -d /usr/include && cf_search="$cf_search /usr/include"
4978 test -d /usr/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/include/$cf_ncuhdr_root"
4979 test -d /usr/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/include/$cf_ncuhdr_root/include"
4980 test -d /usr/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/$cf_ncuhdr_root/include"
4981 test -d /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
4984 test "$prefix" != "NONE" && \
4985 test -d "$prefix" && \
4987 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
4988 test -d $prefix/include && cf_search="$cf_search $prefix/include"
4989 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
4990 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
4991 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
4992 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
4995 test "/usr/local" != "$prefix" && \
4996 test -d "/usr/local" && \
4997 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
4998 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
4999 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
5000 test -d /usr/local/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root"
5001 test -d /usr/local/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root/include"
5002 test -d /usr/local/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include"
5003 test -d /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
5006 test "/opt" != "$prefix" && \
5008 (test $prefix = NONE || test "/opt" != "$prefix") && {
5009 test -n "$verbose" && echo " ... testing for include-directories under /opt"
5010 test -d /opt/include && cf_search="$cf_search /opt/include"
5011 test -d /opt/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/include/$cf_ncuhdr_root"
5012 test -d /opt/include/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/include/$cf_ncuhdr_root/include"
5013 test -d /opt/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/$cf_ncuhdr_root/include"
5014 test -d /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
5017 test "$HOME" != "$prefix" && \
5018 test -d "$HOME" && \
5019 (test $prefix = NONE || test "$HOME" != "$prefix") && {
5020 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
5021 test -d $HOME/include && cf_search="$cf_search $HOME/include"
5022 test -d $HOME/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root"
5023 test -d $HOME/include/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root/include"
5024 test -d $HOME/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include"
5025 test -d $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
5028 test "$includedir" != NONE && \
5029 test "$includedir" != "/usr/include" && \
5030 test -d "$includedir" && {
5031 test -d $includedir && cf_search="$cf_search $includedir"
5032 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
5035 test "$oldincludedir" != NONE && \
5036 test "$oldincludedir" != "/usr/include" && \
5037 test -d "$oldincludedir" && {
5038 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
5039 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
5042 cf_search="$cf_search $cf_header_path_list"
5044 test -n "$verbose" && echo search path $cf_search
5045 cf_save2_CPPFLAGS="$CPPFLAGS"
5046 for cf_incdir in $cf_search
5049 if test -n "$cf_incdir" ; then
5050 for cf_add_incdir in $cf_incdir
5052 while test $cf_add_incdir != /usr/include
5054 if test -d $cf_add_incdir
5057 if test -n "$CFLAGS$CPPFLAGS" ; then
5058 # a loop is needed to ensure we can add subdirs of existing dirs
5059 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
5060 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
5061 cf_have_incdir=yes; break
5066 if test "$cf_have_incdir" = no ; then
5067 if test "$cf_add_incdir" = /usr/local/include ; then
5068 if test "$GCC" = yes
5070 cf_save_CPPFLAGS=$CPPFLAGS
5071 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5072 cat >conftest.$ac_ext <<_ACEOF
5073 #line 5073 "configure"
5074 #include "confdefs.h"
5084 rm -f conftest.$ac_objext
5085 if { (eval echo "$as_me:5085: \"$ac_compile\"") >&5
5086 (eval $ac_compile) 2>&5
5088 echo "$as_me:5088: \$? = $ac_status" >&5
5089 (exit $ac_status); } &&
5090 { ac_try='test -s conftest.$ac_objext'
5091 { (eval echo "$as_me:5091: \"$ac_try\"") >&5
5094 echo "$as_me:5094: \$? = $ac_status" >&5
5095 (exit $ac_status); }; }; then
5098 echo "$as_me: failed program was:" >&5
5099 cat conftest.$ac_ext >&5
5102 rm -f conftest.$ac_objext conftest.$ac_ext
5103 CPPFLAGS=$cf_save_CPPFLAGS
5108 if test "$cf_have_incdir" = no ; then
5109 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
5111 echo "${as_me:-configure}:5111: testing adding $cf_add_incdir to include-path ..." 1>&5
5113 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5115 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
5116 test "$cf_top_incdir" = "$cf_add_incdir" && break
5117 cf_add_incdir="$cf_top_incdir"
5131 cat >conftest.$ac_ext <<_ACEOF
5132 #line 5132 "configure"
5133 #include "confdefs.h"
5135 #include <$cf_header>
5140 #ifdef NCURSES_VERSION
5142 printf("%s\n", NCURSES_VERSION);
5155 rm -f conftest.$ac_objext
5156 if { (eval echo "$as_me:5156: \"$ac_compile\"") >&5
5157 (eval $ac_compile) 2>&5
5159 echo "$as_me:5159: \$? = $ac_status" >&5
5160 (exit $ac_status); } &&
5161 { ac_try='test -s conftest.$ac_objext'
5162 { (eval echo "$as_me:5162: \"$ac_try\"") >&5
5165 echo "$as_me:5165: \$? = $ac_status" >&5
5166 (exit $ac_status); }; }; then
5167 cf_cv_ncurses_h2=$cf_header
5170 echo "$as_me: failed program was:" >&5
5171 cat conftest.$ac_ext >&5
5174 rm -f conftest.$ac_objext conftest.$ac_ext
5176 if test "$cf_cv_ncurses_h2" != no ; then
5177 cf_cv_ncurses_h2=$cf_incdir/$cf_header
5178 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
5181 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
5183 CPPFLAGS="$cf_save2_CPPFLAGS"
5184 test "$cf_cv_ncurses_h2" != no && break
5186 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:5186: error: not found" >&5
5187 echo "$as_me: error: not found" >&2;}
5188 { (exit 1); exit 1; }; }
5191 echo "$as_me:5191: result: $cf_cv_ncurses_h2" >&5
5192 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
5194 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
5195 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
5196 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
5197 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
5200 if test -n "$cf_1st_incdir" ; then
5201 for cf_add_incdir in $cf_1st_incdir
5203 while test $cf_add_incdir != /usr/include
5205 if test -d $cf_add_incdir
5208 if test -n "$CFLAGS$CPPFLAGS" ; then
5209 # a loop is needed to ensure we can add subdirs of existing dirs
5210 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
5211 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
5212 cf_have_incdir=yes; break
5217 if test "$cf_have_incdir" = no ; then
5218 if test "$cf_add_incdir" = /usr/local/include ; then
5219 if test "$GCC" = yes
5221 cf_save_CPPFLAGS=$CPPFLAGS
5222 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5223 cat >conftest.$ac_ext <<_ACEOF
5224 #line 5224 "configure"
5225 #include "confdefs.h"
5235 rm -f conftest.$ac_objext
5236 if { (eval echo "$as_me:5236: \"$ac_compile\"") >&5
5237 (eval $ac_compile) 2>&5
5239 echo "$as_me:5239: \$? = $ac_status" >&5
5240 (exit $ac_status); } &&
5241 { ac_try='test -s conftest.$ac_objext'
5242 { (eval echo "$as_me:5242: \"$ac_try\"") >&5
5245 echo "$as_me:5245: \$? = $ac_status" >&5
5246 (exit $ac_status); }; }; then
5249 echo "$as_me: failed program was:" >&5
5250 cat conftest.$ac_ext >&5
5253 rm -f conftest.$ac_objext conftest.$ac_ext
5254 CPPFLAGS=$cf_save_CPPFLAGS
5259 if test "$cf_have_incdir" = no ; then
5260 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
5262 echo "${as_me:-configure}:5262: testing adding $cf_add_incdir to include-path ..." 1>&5
5264 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5266 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
5267 test "$cf_top_incdir" = "$cf_add_incdir" && break
5268 cf_add_incdir="$cf_top_incdir"
5279 # Set definitions to allow ifdef'ing for ncurses.h
5281 case $cf_cv_ncurses_header in # (vi
5283 cat >>confdefs.h <<\EOF
5284 #define HAVE_NCURSES_H 1
5290 case $cf_cv_ncurses_header in # (vi
5291 ncurses/curses.h|ncurses/ncurses.h)
5292 cat >>confdefs.h <<\EOF
5293 #define HAVE_NCURSES_NCURSES_H 1
5297 ncursesw/curses.h|ncursesw/ncurses.h)
5298 cat >>confdefs.h <<\EOF
5299 #define HAVE_NCURSESW_NCURSES_H 1
5305 echo "$as_me:5305: checking for terminfo header" >&5
5306 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
5307 if test "${cf_cv_term_header+set}" = set; then
5308 echo $ECHO_N "(cached) $ECHO_C" >&6
5311 case ${cf_cv_ncurses_header} in #(vi
5312 */ncurses.h|*/ncursesw.h) #(vi
5313 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
5316 cf_term_header=term.h
5320 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
5322 cat >conftest.$ac_ext <<_ACEOF
5323 #line 5323 "configure"
5324 #include "confdefs.h"
5326 #include <${cf_cv_ncurses_header:-curses.h}>
5332 int x = auto_left_margin
5337 rm -f conftest.$ac_objext
5338 if { (eval echo "$as_me:5338: \"$ac_compile\"") >&5
5339 (eval $ac_compile) 2>&5
5341 echo "$as_me:5341: \$? = $ac_status" >&5
5342 (exit $ac_status); } &&
5343 { ac_try='test -s conftest.$ac_objext'
5344 { (eval echo "$as_me:5344: \"$ac_try\"") >&5
5347 echo "$as_me:5347: \$? = $ac_status" >&5
5348 (exit $ac_status); }; }; then
5350 cf_cv_term_header="$cf_test"
5352 echo "$as_me: failed program was:" >&5
5353 cat conftest.$ac_ext >&5
5355 cf_cv_term_header=unknown
5358 rm -f conftest.$ac_objext conftest.$ac_ext
5359 test "$cf_cv_term_header" != unknown && break
5363 echo "$as_me:5363: result: $cf_cv_term_header" >&5
5364 echo "${ECHO_T}$cf_cv_term_header" >&6
5366 # Set definitions to allow ifdef'ing to accommodate subdirectories
5368 case $cf_cv_term_header in # (vi
5370 cat >>confdefs.h <<\EOF
5371 #define HAVE_TERM_H 1
5377 case $cf_cv_term_header in # (vi
5378 ncurses/term.h) #(vi
5379 cat >>confdefs.h <<\EOF
5380 #define HAVE_NCURSES_TERM_H 1
5385 cat >>confdefs.h <<\EOF
5386 #define HAVE_NCURSESW_TERM_H 1
5392 # some applications need this, but should check for NCURSES_VERSION
5393 cat >>confdefs.h <<\EOF
5397 echo "$as_me:5397: checking for ncurses version" >&5
5398 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
5399 if test "${cf_cv_ncurses_version+set}" = set; then
5400 echo $ECHO_N "(cached) $ECHO_C" >&6
5403 cf_cv_ncurses_version=no
5406 if test "$cross_compiling" = yes; then
5408 # This will not work if the preprocessor splits the line after the
5409 # Autoconf token. The 'unproto' program does that.
5410 cat > conftest.$ac_ext <<EOF
5411 #include <${cf_cv_ncurses_header:-curses.h}>
5413 #ifdef NCURSES_VERSION
5414 Autoconf NCURSES_VERSION
5422 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
5423 { (eval echo "$as_me:5423: \"$cf_try\"") >&5
5426 echo "$as_me:5426: \$? = $ac_status" >&5
5427 (exit $ac_status); }
5428 if test -f conftest.out ; then
5429 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
5430 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
5435 cat >conftest.$ac_ext <<_ACEOF
5436 #line 5436 "configure"
5437 #include "confdefs.h"
5439 #include <${cf_cv_ncurses_header:-curses.h}>
5443 FILE *fp = fopen("$cf_tempfile", "w");
5444 #ifdef NCURSES_VERSION
5445 # ifdef NCURSES_VERSION_PATCH
5446 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
5448 fprintf(fp, "%s\n", NCURSES_VERSION);
5452 fprintf(fp, "old\n");
5457 ${cf_cv_main_return:-return}(0);
5460 rm -f conftest$ac_exeext
5461 if { (eval echo "$as_me:5461: \"$ac_link\"") >&5
5462 (eval $ac_link) 2>&5
5464 echo "$as_me:5464: \$? = $ac_status" >&5
5465 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5466 { (eval echo "$as_me:5466: \"$ac_try\"") >&5
5469 echo "$as_me:5469: \$? = $ac_status" >&5
5470 (exit $ac_status); }; }; then
5472 cf_cv_ncurses_version=`cat $cf_tempfile`
5474 echo "$as_me: program exited with status $ac_status" >&5
5475 echo "$as_me: failed program was:" >&5
5476 cat conftest.$ac_ext >&5
5478 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5483 echo "$as_me:5483: result: $cf_cv_ncurses_version" >&5
5484 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
5485 test "$cf_cv_ncurses_version" = no || cat >>confdefs.h <<\EOF
5489 cf_nculib_root=ncursesw
5490 # This works, except for the special case where we find gpm, but
5491 # ncurses is in a nonstandard location via $LIBS, and we really want
5494 cf_ncurses_SAVE="$LIBS"
5495 echo "$as_me:5495: checking for Gpm_Open in -lgpm" >&5
5496 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
5497 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
5498 echo $ECHO_N "(cached) $ECHO_C" >&6
5500 ac_check_lib_save_LIBS=$LIBS
5502 cat >conftest.$ac_ext <<_ACEOF
5503 #line 5503 "configure"
5504 #include "confdefs.h"
5506 /* Override any gcc2 internal prototype to avoid an error. */
5510 /* We use char because int might match the return type of a gcc2
5511 builtin and then its argument prototype would still apply. */
5521 rm -f conftest.$ac_objext conftest$ac_exeext
5522 if { (eval echo "$as_me:5522: \"$ac_link\"") >&5
5523 (eval $ac_link) 2>&5
5525 echo "$as_me:5525: \$? = $ac_status" >&5
5526 (exit $ac_status); } &&
5527 { ac_try='test -s conftest$ac_exeext'
5528 { (eval echo "$as_me:5528: \"$ac_try\"") >&5
5531 echo "$as_me:5531: \$? = $ac_status" >&5
5532 (exit $ac_status); }; }; then
5533 ac_cv_lib_gpm_Gpm_Open=yes
5535 echo "$as_me: failed program was:" >&5
5536 cat conftest.$ac_ext >&5
5537 ac_cv_lib_gpm_Gpm_Open=no
5539 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5540 LIBS=$ac_check_lib_save_LIBS
5542 echo "$as_me:5542: result: $ac_cv_lib_gpm_Gpm_Open" >&5
5543 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
5544 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
5545 echo "$as_me:5545: checking for initscr in -lgpm" >&5
5546 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
5547 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
5548 echo $ECHO_N "(cached) $ECHO_C" >&6
5550 ac_check_lib_save_LIBS=$LIBS
5552 cat >conftest.$ac_ext <<_ACEOF
5553 #line 5553 "configure"
5554 #include "confdefs.h"
5556 /* Override any gcc2 internal prototype to avoid an error. */
5560 /* We use char because int might match the return type of a gcc2
5561 builtin and then its argument prototype would still apply. */
5571 rm -f conftest.$ac_objext conftest$ac_exeext
5572 if { (eval echo "$as_me:5572: \"$ac_link\"") >&5
5573 (eval $ac_link) 2>&5
5575 echo "$as_me:5575: \$? = $ac_status" >&5
5576 (exit $ac_status); } &&
5577 { ac_try='test -s conftest$ac_exeext'
5578 { (eval echo "$as_me:5578: \"$ac_try\"") >&5
5581 echo "$as_me:5581: \$? = $ac_status" >&5
5582 (exit $ac_status); }; }; then
5583 ac_cv_lib_gpm_initscr=yes
5585 echo "$as_me: failed program was:" >&5
5586 cat conftest.$ac_ext >&5
5587 ac_cv_lib_gpm_initscr=no
5589 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5590 LIBS=$ac_check_lib_save_LIBS
5592 echo "$as_me:5592: result: $ac_cv_lib_gpm_initscr" >&5
5593 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
5594 if test $ac_cv_lib_gpm_initscr = yes; then
5595 LIBS="$cf_ncurses_SAVE"
5597 cf_ncurses_LIBS="-lgpm"
5602 case $host_os in #(vi
5604 # This is only necessary if you are linking against an obsolete
5605 # version of ncurses (but it should do no harm, since it's static).
5606 if test "$cf_nculib_root" = ncurses ; then
5607 echo "$as_me:5607: checking for tgoto in -lmytinfo" >&5
5608 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
5609 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
5612 ac_check_lib_save_LIBS=$LIBS
5613 LIBS="-lmytinfo $LIBS"
5614 cat >conftest.$ac_ext <<_ACEOF
5615 #line 5615 "configure"
5616 #include "confdefs.h"
5618 /* Override any gcc2 internal prototype to avoid an error. */
5622 /* We use char because int might match the return type of a gcc2
5623 builtin and then its argument prototype would still apply. */
5633 rm -f conftest.$ac_objext conftest$ac_exeext
5634 if { (eval echo "$as_me:5634: \"$ac_link\"") >&5
5635 (eval $ac_link) 2>&5
5637 echo "$as_me:5637: \$? = $ac_status" >&5
5638 (exit $ac_status); } &&
5639 { ac_try='test -s conftest$ac_exeext'
5640 { (eval echo "$as_me:5640: \"$ac_try\"") >&5
5643 echo "$as_me:5643: \$? = $ac_status" >&5
5644 (exit $ac_status); }; }; then
5645 ac_cv_lib_mytinfo_tgoto=yes
5647 echo "$as_me: failed program was:" >&5
5648 cat conftest.$ac_ext >&5
5649 ac_cv_lib_mytinfo_tgoto=no
5651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5652 LIBS=$ac_check_lib_save_LIBS
5654 echo "$as_me:5654: result: $ac_cv_lib_mytinfo_tgoto" >&5
5655 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
5656 if test $ac_cv_lib_mytinfo_tgoto = yes; then
5657 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
5664 LIBS="$cf_ncurses_LIBS $LIBS"
5666 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
5668 LIBS="-l$cf_nculib_root $LIBS"
5671 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
5673 echo "$as_me:5673: checking for initscr" >&5
5674 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
5675 if test "${ac_cv_func_initscr+set}" = set; then
5676 echo $ECHO_N "(cached) $ECHO_C" >&6
5678 cat >conftest.$ac_ext <<_ACEOF
5679 #line 5679 "configure"
5680 #include "confdefs.h"
5681 /* System header to define __stub macros and hopefully few prototypes,
5682 which can conflict with char initscr (); below. */
5684 /* Override any gcc2 internal prototype to avoid an error. */
5688 /* We use char because int might match the return type of a gcc2
5689 builtin and then its argument prototype would still apply. */
5696 /* The GNU C library defines this for functions which it implements
5697 to always fail with ENOSYS. Some functions are actually named
5698 something starting with __ and the normal name is an alias. */
5699 #if defined (__stub_initscr) || defined (__stub___initscr)
5709 rm -f conftest.$ac_objext conftest$ac_exeext
5710 if { (eval echo "$as_me:5710: \"$ac_link\"") >&5
5711 (eval $ac_link) 2>&5
5713 echo "$as_me:5713: \$? = $ac_status" >&5
5714 (exit $ac_status); } &&
5715 { ac_try='test -s conftest$ac_exeext'
5716 { (eval echo "$as_me:5716: \"$ac_try\"") >&5
5719 echo "$as_me:5719: \$? = $ac_status" >&5
5720 (exit $ac_status); }; }; then
5721 ac_cv_func_initscr=yes
5723 echo "$as_me: failed program was:" >&5
5724 cat conftest.$ac_ext >&5
5725 ac_cv_func_initscr=no
5727 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5729 echo "$as_me:5729: result: $ac_cv_func_initscr" >&5
5730 echo "${ECHO_T}$ac_cv_func_initscr" >&6
5731 if test $ac_cv_func_initscr = yes; then
5732 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
5735 cf_save_LIBS="$LIBS"
5736 echo "$as_me:5736: checking for initscr in -l$cf_nculib_root" >&5
5737 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
5738 LIBS="-l$cf_nculib_root $LIBS"
5739 cat >conftest.$ac_ext <<_ACEOF
5740 #line 5740 "configure"
5741 #include "confdefs.h"
5742 #include <${cf_cv_ncurses_header:-curses.h}>
5751 rm -f conftest.$ac_objext conftest$ac_exeext
5752 if { (eval echo "$as_me:5752: \"$ac_link\"") >&5
5753 (eval $ac_link) 2>&5
5755 echo "$as_me:5755: \$? = $ac_status" >&5
5756 (exit $ac_status); } &&
5757 { ac_try='test -s conftest$ac_exeext'
5758 { (eval echo "$as_me:5758: \"$ac_try\"") >&5
5761 echo "$as_me:5761: \$? = $ac_status" >&5
5762 (exit $ac_status); }; }; then
5763 echo "$as_me:5763: result: yes" >&5
5764 echo "${ECHO_T}yes" >&6
5765 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
5768 echo "$as_me: failed program was:" >&5
5769 cat conftest.$ac_ext >&5
5770 echo "$as_me:5770: result: no" >&5
5771 echo "${ECHO_T}no" >&6
5774 cf_library_path_list=""
5775 if test -n "${LDFLAGS}${LIBS}" ; then
5776 for cf_library_path in $LDFLAGS $LIBS
5778 case $cf_library_path in #(vi
5780 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
5782 test "$cf_library_path" != "NONE" && \
5783 test -d "$cf_library_path" && \
5785 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
5786 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
5787 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
5788 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
5789 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
5790 test -d $cf_library_path/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib/$cf_nculib_root"
5793 cf_library_path_list="$cf_library_path_list $cf_search"
5801 test "/usr" != "$prefix" && \
5803 (test $prefix = NONE || test "/usr" != "$prefix") && {
5804 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
5805 test -d /usr/lib && cf_search="$cf_search /usr/lib"
5806 test -d /usr/lib/$cf_nculib_root && cf_search="$cf_search /usr/lib/$cf_nculib_root"
5807 test -d /usr/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/lib/$cf_nculib_root/lib"
5808 test -d /usr/$cf_nculib_root/lib && cf_search="$cf_search /usr/$cf_nculib_root/lib"
5809 test -d /usr/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/$cf_nculib_root/lib/$cf_nculib_root"
5812 test "$prefix" != "NONE" && \
5813 test -d "$prefix" && \
5815 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
5816 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
5817 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
5818 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
5819 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
5820 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
5823 test "/usr/local" != "$prefix" && \
5824 test -d "/usr/local" && \
5825 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
5826 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
5827 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
5828 test -d /usr/local/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/lib/$cf_nculib_root"
5829 test -d /usr/local/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/lib/$cf_nculib_root/lib"
5830 test -d /usr/local/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/$cf_nculib_root/lib"
5831 test -d /usr/local/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/$cf_nculib_root/lib/$cf_nculib_root"
5834 test "/opt" != "$prefix" && \
5836 (test $prefix = NONE || test "/opt" != "$prefix") && {
5837 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
5838 test -d /opt/lib && cf_search="$cf_search /opt/lib"
5839 test -d /opt/lib/$cf_nculib_root && cf_search="$cf_search /opt/lib/$cf_nculib_root"
5840 test -d /opt/lib/$cf_nculib_root/lib && cf_search="$cf_search /opt/lib/$cf_nculib_root/lib"
5841 test -d /opt/$cf_nculib_root/lib && cf_search="$cf_search /opt/$cf_nculib_root/lib"
5842 test -d /opt/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /opt/$cf_nculib_root/lib/$cf_nculib_root"
5845 test "$HOME" != "$prefix" && \
5846 test -d "$HOME" && \
5847 (test $prefix = NONE || test "$HOME" != "$prefix") && {
5848 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
5849 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
5850 test -d $HOME/lib/$cf_nculib_root && cf_search="$cf_search $HOME/lib/$cf_nculib_root"
5851 test -d $HOME/lib/$cf_nculib_root/lib && cf_search="$cf_search $HOME/lib/$cf_nculib_root/lib"
5852 test -d $HOME/$cf_nculib_root/lib && cf_search="$cf_search $HOME/$cf_nculib_root/lib"
5853 test -d $HOME/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $HOME/$cf_nculib_root/lib/$cf_nculib_root"
5856 cf_search="$cf_library_path_list $cf_search"
5858 for cf_libdir in $cf_search
5860 echo "$as_me:5860: checking for -l$cf_nculib_root in $cf_libdir" >&5
5861 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
5862 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
5863 cat >conftest.$ac_ext <<_ACEOF
5864 #line 5864 "configure"
5865 #include "confdefs.h"
5866 #include <${cf_cv_ncurses_header:-curses.h}>
5875 rm -f conftest.$ac_objext conftest$ac_exeext
5876 if { (eval echo "$as_me:5876: \"$ac_link\"") >&5
5877 (eval $ac_link) 2>&5
5879 echo "$as_me:5879: \$? = $ac_status" >&5
5880 (exit $ac_status); } &&
5881 { ac_try='test -s conftest$ac_exeext'
5882 { (eval echo "$as_me:5882: \"$ac_try\"") >&5
5885 echo "$as_me:5885: \$? = $ac_status" >&5
5886 (exit $ac_status); }; }; then
5887 echo "$as_me:5887: result: yes" >&5
5888 echo "${ECHO_T}yes" >&6
5889 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
5892 echo "$as_me: failed program was:" >&5
5893 cat conftest.$ac_ext >&5
5894 echo "$as_me:5894: result: no" >&5
5895 echo "${ECHO_T}no" >&6
5896 LIBS="$cf_save_LIBS"
5898 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5902 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5906 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
5908 if test $cf_found_library = no ; then
5909 { { echo "$as_me:5909: error: Cannot link $cf_nculib_root library" >&5
5910 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
5911 { (exit 1); exit 1; }; }
5916 if test -n "$cf_ncurses_LIBS" ; then
5917 echo "$as_me:5917: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
5918 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
5919 cf_ncurses_SAVE="$LIBS"
5920 for p in $cf_ncurses_LIBS ; do
5921 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
5922 if test "$q" != "$LIBS" ; then
5926 cat >conftest.$ac_ext <<_ACEOF
5927 #line 5927 "configure"
5928 #include "confdefs.h"
5929 #include <${cf_cv_ncurses_header:-curses.h}>
5933 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
5938 rm -f conftest.$ac_objext conftest$ac_exeext
5939 if { (eval echo "$as_me:5939: \"$ac_link\"") >&5
5940 (eval $ac_link) 2>&5
5942 echo "$as_me:5942: \$? = $ac_status" >&5
5943 (exit $ac_status); } &&
5944 { ac_try='test -s conftest$ac_exeext'
5945 { (eval echo "$as_me:5945: \"$ac_try\"") >&5
5948 echo "$as_me:5948: \$? = $ac_status" >&5
5949 (exit $ac_status); }; }; then
5950 echo "$as_me:5950: result: yes" >&5
5951 echo "${ECHO_T}yes" >&6
5953 echo "$as_me: failed program was:" >&5
5954 cat conftest.$ac_ext >&5
5955 echo "$as_me:5955: result: no" >&5
5956 echo "${ECHO_T}no" >&6
5957 LIBS="$cf_ncurses_SAVE"
5959 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5962 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5964 cat >>confdefs.h <<EOF
5965 #define $cf_nculib_ROOT 1
5972 cf_ncuconfig_root=ncurses
5974 echo "Looking for ${cf_ncuconfig_root}-config"
5975 for ac_prog in ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
5977 # Extract the first word of "$ac_prog", so it can be a program name with args.
5978 set dummy $ac_prog; ac_word=$2
5979 echo "$as_me:5979: checking for $ac_word" >&5
5980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5981 if test "${ac_cv_path_NCURSES_CONFIG+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5984 case $NCURSES_CONFIG in
5986 ac_cv_path_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test with a path.
5989 ac_save_IFS=$IFS; IFS=$ac_path_separator
5991 for ac_dir in $ac_dummy; do
5993 test -z "$ac_dir" && ac_dir=.
5994 if $as_executable_p "$ac_dir/$ac_word"; then
5995 ac_cv_path_NCURSES_CONFIG="$ac_dir/$ac_word"
5996 echo "$as_me:5996: found $ac_dir/$ac_word" >&5
6004 NCURSES_CONFIG=$ac_cv_path_NCURSES_CONFIG
6006 if test -n "$NCURSES_CONFIG"; then
6007 echo "$as_me:6007: result: $NCURSES_CONFIG" >&5
6008 echo "${ECHO_T}$NCURSES_CONFIG" >&6
6010 echo "$as_me:6010: result: no" >&5
6011 echo "${ECHO_T}no" >&6
6014 test -n "$NCURSES_CONFIG" && break
6016 test -n "$NCURSES_CONFIG" || NCURSES_CONFIG="none"
6018 if test "$NCURSES_CONFIG" != none ; then
6020 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
6021 LIBS="`$NCURSES_CONFIG --libs` $LIBS"
6023 # even with config script, some packages use no-override for curses.h
6025 echo "$as_me:6025: checking if we have identified curses headers" >&5
6026 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
6027 if test "${cf_cv_ncurses_header+set}" = set; then
6028 echo $ECHO_N "(cached) $ECHO_C" >&6
6031 cf_cv_ncurses_header=none
6038 cat >conftest.$ac_ext <<_ACEOF
6039 #line 6039 "configure"
6040 #include "confdefs.h"
6041 #include <${cf_header}>
6045 initscr(); tgoto("?", 0,0)
6050 rm -f conftest.$ac_objext
6051 if { (eval echo "$as_me:6051: \"$ac_compile\"") >&5
6052 (eval $ac_compile) 2>&5
6054 echo "$as_me:6054: \$? = $ac_status" >&5
6055 (exit $ac_status); } &&
6056 { ac_try='test -s conftest.$ac_objext'
6057 { (eval echo "$as_me:6057: \"$ac_try\"") >&5
6060 echo "$as_me:6060: \$? = $ac_status" >&5
6061 (exit $ac_status); }; }; then
6062 cf_cv_ncurses_header=$cf_header; break
6064 echo "$as_me: failed program was:" >&5
6065 cat conftest.$ac_ext >&5
6067 rm -f conftest.$ac_objext conftest.$ac_ext
6071 echo "$as_me:6071: result: $cf_cv_ncurses_header" >&5
6072 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
6074 if test "$cf_cv_ncurses_header" = none ; then
6075 { { echo "$as_me:6075: error: No curses header-files found" >&5
6076 echo "$as_me: error: No curses header-files found" >&2;}
6077 { (exit 1); exit 1; }; }
6080 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
6082 for ac_header in $cf_cv_ncurses_header
6084 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6085 echo "$as_me:6085: checking for $ac_header" >&5
6086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6088 echo $ECHO_N "(cached) $ECHO_C" >&6
6090 cat >conftest.$ac_ext <<_ACEOF
6091 #line 6091 "configure"
6092 #include "confdefs.h"
6093 #include <$ac_header>
6095 if { (eval echo "$as_me:6095: \"$ac_cpp conftest.$ac_ext\"") >&5
6096 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6098 egrep -v '^ *\+' conftest.er1 >conftest.err
6100 cat conftest.err >&5
6101 echo "$as_me:6101: \$? = $ac_status" >&5
6102 (exit $ac_status); } >/dev/null; then
6103 if test -s conftest.err; then
6104 ac_cpp_err=$ac_c_preproc_warn_flag
6111 if test -z "$ac_cpp_err"; then
6112 eval "$as_ac_Header=yes"
6114 echo "$as_me: failed program was:" >&5
6115 cat conftest.$ac_ext >&5
6116 eval "$as_ac_Header=no"
6118 rm -f conftest.err conftest.$ac_ext
6120 echo "$as_me:6120: result: `eval echo '${'$as_ac_Header'}'`" >&5
6121 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6123 cat >>confdefs.h <<EOF
6124 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6130 cat >>confdefs.h <<\EOF
6134 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
6136 cat >>confdefs.h <<EOF
6137 #define $cf_nculib_ROOT 1
6140 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
6144 cf_ncuhdr_root=ncurses
6146 test -n "$cf_cv_curses_dir" && \
6147 test "$cf_cv_curses_dir" != "no" && { \
6149 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
6150 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
6152 while test $cf_add_incdir != /usr/include
6154 if test -d $cf_add_incdir
6157 if test -n "$CFLAGS$CPPFLAGS" ; then
6158 # a loop is needed to ensure we can add subdirs of existing dirs
6159 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
6160 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6161 cf_have_incdir=yes; break
6166 if test "$cf_have_incdir" = no ; then
6167 if test "$cf_add_incdir" = /usr/local/include ; then
6168 if test "$GCC" = yes
6170 cf_save_CPPFLAGS=$CPPFLAGS
6171 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6172 cat >conftest.$ac_ext <<_ACEOF
6173 #line 6173 "configure"
6174 #include "confdefs.h"
6184 rm -f conftest.$ac_objext
6185 if { (eval echo "$as_me:6185: \"$ac_compile\"") >&5
6186 (eval $ac_compile) 2>&5
6188 echo "$as_me:6188: \$? = $ac_status" >&5
6189 (exit $ac_status); } &&
6190 { ac_try='test -s conftest.$ac_objext'
6191 { (eval echo "$as_me:6191: \"$ac_try\"") >&5
6194 echo "$as_me:6194: \$? = $ac_status" >&5
6195 (exit $ac_status); }; }; then
6198 echo "$as_me: failed program was:" >&5
6199 cat conftest.$ac_ext >&5
6202 rm -f conftest.$ac_objext conftest.$ac_ext
6203 CPPFLAGS=$cf_save_CPPFLAGS
6208 if test "$cf_have_incdir" = no ; then
6209 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6211 echo "${as_me:-configure}:6211: testing adding $cf_add_incdir to include-path ..." 1>&5
6213 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6215 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6216 test "$cf_top_incdir" = "$cf_add_incdir" && break
6217 cf_add_incdir="$cf_top_incdir"
6228 echo "$as_me:6228: checking for $cf_ncuhdr_root header in include-path" >&5
6229 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
6230 if test "${cf_cv_ncurses_h+set}" = set; then
6231 echo $ECHO_N "(cached) $ECHO_C" >&6
6234 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
6235 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
6236 for cf_header in $cf_header_list
6239 cat >conftest.$ac_ext <<_ACEOF
6240 #line 6240 "configure"
6241 #include "confdefs.h"
6243 #include <$cf_header>
6248 #ifdef NCURSES_VERSION
6250 printf("%s\n", NCURSES_VERSION);
6263 rm -f conftest.$ac_objext
6264 if { (eval echo "$as_me:6264: \"$ac_compile\"") >&5
6265 (eval $ac_compile) 2>&5
6267 echo "$as_me:6267: \$? = $ac_status" >&5
6268 (exit $ac_status); } &&
6269 { ac_try='test -s conftest.$ac_objext'
6270 { (eval echo "$as_me:6270: \"$ac_try\"") >&5
6273 echo "$as_me:6273: \$? = $ac_status" >&5
6274 (exit $ac_status); }; }; then
6275 cf_cv_ncurses_h=$cf_header
6278 echo "$as_me: failed program was:" >&5
6279 cat conftest.$ac_ext >&5
6282 rm -f conftest.$ac_objext conftest.$ac_ext
6284 test "$cf_cv_ncurses_h" != no && break
6288 echo "$as_me:6288: result: $cf_cv_ncurses_h" >&5
6289 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
6291 if test "$cf_cv_ncurses_h" != no ; then
6292 cf_cv_ncurses_header=$cf_cv_ncurses_h
6295 echo "$as_me:6295: checking for $cf_ncuhdr_root include-path" >&5
6296 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
6297 if test "${cf_cv_ncurses_h2+set}" = set; then
6298 echo $ECHO_N "(cached) $ECHO_C" >&6
6301 test -n "$verbose" && echo
6305 # collect the current set of include-directories from compiler flags
6306 cf_header_path_list=""
6307 if test -n "${CFLAGS}${CPPFLAGS}" ; then
6308 for cf_header_path in $CPPFLAGS $CFLAGS
6310 case $cf_header_path in #(vi
6312 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
6314 test "$cf_header_path" != "NONE" && \
6315 test -d "$cf_header_path" && \
6317 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
6318 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
6319 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
6320 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
6321 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
6322 test -d $cf_header_path/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
6325 cf_header_path_list="$cf_header_path_list $cf_search"
6331 # add the variations for the package we are looking for
6335 test "/usr" != "$prefix" && \
6337 (test $prefix = NONE || test "/usr" != "$prefix") && {
6338 test -n "$verbose" && echo " ... testing for include-directories under /usr"
6339 test -d /usr/include && cf_search="$cf_search /usr/include"
6340 test -d /usr/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/include/$cf_ncuhdr_root"
6341 test -d /usr/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/include/$cf_ncuhdr_root/include"
6342 test -d /usr/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/$cf_ncuhdr_root/include"
6343 test -d /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
6346 test "$prefix" != "NONE" && \
6347 test -d "$prefix" && \
6349 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
6350 test -d $prefix/include && cf_search="$cf_search $prefix/include"
6351 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
6352 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
6353 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
6354 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
6357 test "/usr/local" != "$prefix" && \
6358 test -d "/usr/local" && \
6359 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
6360 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
6361 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
6362 test -d /usr/local/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root"
6363 test -d /usr/local/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root/include"
6364 test -d /usr/local/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include"
6365 test -d /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
6368 test "/opt" != "$prefix" && \
6370 (test $prefix = NONE || test "/opt" != "$prefix") && {
6371 test -n "$verbose" && echo " ... testing for include-directories under /opt"
6372 test -d /opt/include && cf_search="$cf_search /opt/include"
6373 test -d /opt/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/include/$cf_ncuhdr_root"
6374 test -d /opt/include/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/include/$cf_ncuhdr_root/include"
6375 test -d /opt/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/$cf_ncuhdr_root/include"
6376 test -d /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
6379 test "$HOME" != "$prefix" && \
6380 test -d "$HOME" && \
6381 (test $prefix = NONE || test "$HOME" != "$prefix") && {
6382 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
6383 test -d $HOME/include && cf_search="$cf_search $HOME/include"
6384 test -d $HOME/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root"
6385 test -d $HOME/include/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root/include"
6386 test -d $HOME/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include"
6387 test -d $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
6390 test "$includedir" != NONE && \
6391 test "$includedir" != "/usr/include" && \
6392 test -d "$includedir" && {
6393 test -d $includedir && cf_search="$cf_search $includedir"
6394 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
6397 test "$oldincludedir" != NONE && \
6398 test "$oldincludedir" != "/usr/include" && \
6399 test -d "$oldincludedir" && {
6400 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
6401 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
6404 cf_search="$cf_search $cf_header_path_list"
6406 test -n "$verbose" && echo search path $cf_search
6407 cf_save2_CPPFLAGS="$CPPFLAGS"
6408 for cf_incdir in $cf_search
6411 if test -n "$cf_incdir" ; then
6412 for cf_add_incdir in $cf_incdir
6414 while test $cf_add_incdir != /usr/include
6416 if test -d $cf_add_incdir
6419 if test -n "$CFLAGS$CPPFLAGS" ; then
6420 # a loop is needed to ensure we can add subdirs of existing dirs
6421 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
6422 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6423 cf_have_incdir=yes; break
6428 if test "$cf_have_incdir" = no ; then
6429 if test "$cf_add_incdir" = /usr/local/include ; then
6430 if test "$GCC" = yes
6432 cf_save_CPPFLAGS=$CPPFLAGS
6433 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6434 cat >conftest.$ac_ext <<_ACEOF
6435 #line 6435 "configure"
6436 #include "confdefs.h"
6446 rm -f conftest.$ac_objext
6447 if { (eval echo "$as_me:6447: \"$ac_compile\"") >&5
6448 (eval $ac_compile) 2>&5
6450 echo "$as_me:6450: \$? = $ac_status" >&5
6451 (exit $ac_status); } &&
6452 { ac_try='test -s conftest.$ac_objext'
6453 { (eval echo "$as_me:6453: \"$ac_try\"") >&5
6456 echo "$as_me:6456: \$? = $ac_status" >&5
6457 (exit $ac_status); }; }; then
6460 echo "$as_me: failed program was:" >&5
6461 cat conftest.$ac_ext >&5
6464 rm -f conftest.$ac_objext conftest.$ac_ext
6465 CPPFLAGS=$cf_save_CPPFLAGS
6470 if test "$cf_have_incdir" = no ; then
6471 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6473 echo "${as_me:-configure}:6473: testing adding $cf_add_incdir to include-path ..." 1>&5
6475 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6477 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6478 test "$cf_top_incdir" = "$cf_add_incdir" && break
6479 cf_add_incdir="$cf_top_incdir"
6493 cat >conftest.$ac_ext <<_ACEOF
6494 #line 6494 "configure"
6495 #include "confdefs.h"
6497 #include <$cf_header>
6502 #ifdef NCURSES_VERSION
6504 printf("%s\n", NCURSES_VERSION);
6517 rm -f conftest.$ac_objext
6518 if { (eval echo "$as_me:6518: \"$ac_compile\"") >&5
6519 (eval $ac_compile) 2>&5
6521 echo "$as_me:6521: \$? = $ac_status" >&5
6522 (exit $ac_status); } &&
6523 { ac_try='test -s conftest.$ac_objext'
6524 { (eval echo "$as_me:6524: \"$ac_try\"") >&5
6527 echo "$as_me:6527: \$? = $ac_status" >&5
6528 (exit $ac_status); }; }; then
6529 cf_cv_ncurses_h2=$cf_header
6532 echo "$as_me: failed program was:" >&5
6533 cat conftest.$ac_ext >&5
6536 rm -f conftest.$ac_objext conftest.$ac_ext
6538 if test "$cf_cv_ncurses_h2" != no ; then
6539 cf_cv_ncurses_h2=$cf_incdir/$cf_header
6540 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
6543 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
6545 CPPFLAGS="$cf_save2_CPPFLAGS"
6546 test "$cf_cv_ncurses_h2" != no && break
6548 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:6548: error: not found" >&5
6549 echo "$as_me: error: not found" >&2;}
6550 { (exit 1); exit 1; }; }
6553 echo "$as_me:6553: result: $cf_cv_ncurses_h2" >&5
6554 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
6556 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
6557 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
6558 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
6559 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
6562 if test -n "$cf_1st_incdir" ; then
6563 for cf_add_incdir in $cf_1st_incdir
6565 while test $cf_add_incdir != /usr/include
6567 if test -d $cf_add_incdir
6570 if test -n "$CFLAGS$CPPFLAGS" ; then
6571 # a loop is needed to ensure we can add subdirs of existing dirs
6572 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
6573 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6574 cf_have_incdir=yes; break
6579 if test "$cf_have_incdir" = no ; then
6580 if test "$cf_add_incdir" = /usr/local/include ; then
6581 if test "$GCC" = yes
6583 cf_save_CPPFLAGS=$CPPFLAGS
6584 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6585 cat >conftest.$ac_ext <<_ACEOF
6586 #line 6586 "configure"
6587 #include "confdefs.h"
6597 rm -f conftest.$ac_objext
6598 if { (eval echo "$as_me:6598: \"$ac_compile\"") >&5
6599 (eval $ac_compile) 2>&5
6601 echo "$as_me:6601: \$? = $ac_status" >&5
6602 (exit $ac_status); } &&
6603 { ac_try='test -s conftest.$ac_objext'
6604 { (eval echo "$as_me:6604: \"$ac_try\"") >&5
6607 echo "$as_me:6607: \$? = $ac_status" >&5
6608 (exit $ac_status); }; }; then
6611 echo "$as_me: failed program was:" >&5
6612 cat conftest.$ac_ext >&5
6615 rm -f conftest.$ac_objext conftest.$ac_ext
6616 CPPFLAGS=$cf_save_CPPFLAGS
6621 if test "$cf_have_incdir" = no ; then
6622 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6624 echo "${as_me:-configure}:6624: testing adding $cf_add_incdir to include-path ..." 1>&5
6626 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6628 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6629 test "$cf_top_incdir" = "$cf_add_incdir" && break
6630 cf_add_incdir="$cf_top_incdir"
6641 # Set definitions to allow ifdef'ing for ncurses.h
6643 case $cf_cv_ncurses_header in # (vi
6645 cat >>confdefs.h <<\EOF
6646 #define HAVE_NCURSES_H 1
6652 case $cf_cv_ncurses_header in # (vi
6653 ncurses/curses.h|ncurses/ncurses.h)
6654 cat >>confdefs.h <<\EOF
6655 #define HAVE_NCURSES_NCURSES_H 1
6659 ncursesw/curses.h|ncursesw/ncurses.h)
6660 cat >>confdefs.h <<\EOF
6661 #define HAVE_NCURSESW_NCURSES_H 1
6667 echo "$as_me:6667: checking for terminfo header" >&5
6668 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
6669 if test "${cf_cv_term_header+set}" = set; then
6670 echo $ECHO_N "(cached) $ECHO_C" >&6
6673 case ${cf_cv_ncurses_header} in #(vi
6674 */ncurses.h|*/ncursesw.h) #(vi
6675 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
6678 cf_term_header=term.h
6682 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
6684 cat >conftest.$ac_ext <<_ACEOF
6685 #line 6685 "configure"
6686 #include "confdefs.h"
6688 #include <${cf_cv_ncurses_header:-curses.h}>
6694 int x = auto_left_margin
6699 rm -f conftest.$ac_objext
6700 if { (eval echo "$as_me:6700: \"$ac_compile\"") >&5
6701 (eval $ac_compile) 2>&5
6703 echo "$as_me:6703: \$? = $ac_status" >&5
6704 (exit $ac_status); } &&
6705 { ac_try='test -s conftest.$ac_objext'
6706 { (eval echo "$as_me:6706: \"$ac_try\"") >&5
6709 echo "$as_me:6709: \$? = $ac_status" >&5
6710 (exit $ac_status); }; }; then
6712 cf_cv_term_header="$cf_test"
6714 echo "$as_me: failed program was:" >&5
6715 cat conftest.$ac_ext >&5
6717 cf_cv_term_header=unknown
6720 rm -f conftest.$ac_objext conftest.$ac_ext
6721 test "$cf_cv_term_header" != unknown && break
6725 echo "$as_me:6725: result: $cf_cv_term_header" >&5
6726 echo "${ECHO_T}$cf_cv_term_header" >&6
6728 # Set definitions to allow ifdef'ing to accommodate subdirectories
6730 case $cf_cv_term_header in # (vi
6732 cat >>confdefs.h <<\EOF
6733 #define HAVE_TERM_H 1
6739 case $cf_cv_term_header in # (vi
6740 ncurses/term.h) #(vi
6741 cat >>confdefs.h <<\EOF
6742 #define HAVE_NCURSES_TERM_H 1
6747 cat >>confdefs.h <<\EOF
6748 #define HAVE_NCURSESW_TERM_H 1
6754 # some applications need this, but should check for NCURSES_VERSION
6755 cat >>confdefs.h <<\EOF
6759 echo "$as_me:6759: checking for ncurses version" >&5
6760 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
6761 if test "${cf_cv_ncurses_version+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6765 cf_cv_ncurses_version=no
6768 if test "$cross_compiling" = yes; then
6770 # This will not work if the preprocessor splits the line after the
6771 # Autoconf token. The 'unproto' program does that.
6772 cat > conftest.$ac_ext <<EOF
6773 #include <${cf_cv_ncurses_header:-curses.h}>
6775 #ifdef NCURSES_VERSION
6776 Autoconf NCURSES_VERSION
6784 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
6785 { (eval echo "$as_me:6785: \"$cf_try\"") >&5
6788 echo "$as_me:6788: \$? = $ac_status" >&5
6789 (exit $ac_status); }
6790 if test -f conftest.out ; then
6791 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
6792 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
6797 cat >conftest.$ac_ext <<_ACEOF
6798 #line 6798 "configure"
6799 #include "confdefs.h"
6801 #include <${cf_cv_ncurses_header:-curses.h}>
6805 FILE *fp = fopen("$cf_tempfile", "w");
6806 #ifdef NCURSES_VERSION
6807 # ifdef NCURSES_VERSION_PATCH
6808 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
6810 fprintf(fp, "%s\n", NCURSES_VERSION);
6814 fprintf(fp, "old\n");
6819 ${cf_cv_main_return:-return}(0);
6822 rm -f conftest$ac_exeext
6823 if { (eval echo "$as_me:6823: \"$ac_link\"") >&5
6824 (eval $ac_link) 2>&5
6826 echo "$as_me:6826: \$? = $ac_status" >&5
6827 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6828 { (eval echo "$as_me:6828: \"$ac_try\"") >&5
6831 echo "$as_me:6831: \$? = $ac_status" >&5
6832 (exit $ac_status); }; }; then
6834 cf_cv_ncurses_version=`cat $cf_tempfile`
6836 echo "$as_me: program exited with status $ac_status" >&5
6837 echo "$as_me: failed program was:" >&5
6838 cat conftest.$ac_ext >&5
6840 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6845 echo "$as_me:6845: result: $cf_cv_ncurses_version" >&5
6846 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
6847 test "$cf_cv_ncurses_version" = no || cat >>confdefs.h <<\EOF
6851 cf_nculib_root=ncurses
6852 # This works, except for the special case where we find gpm, but
6853 # ncurses is in a nonstandard location via $LIBS, and we really want
6856 cf_ncurses_SAVE="$LIBS"
6857 echo "$as_me:6857: checking for Gpm_Open in -lgpm" >&5
6858 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
6859 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6862 ac_check_lib_save_LIBS=$LIBS
6864 cat >conftest.$ac_ext <<_ACEOF
6865 #line 6865 "configure"
6866 #include "confdefs.h"
6868 /* Override any gcc2 internal prototype to avoid an error. */
6872 /* We use char because int might match the return type of a gcc2
6873 builtin and then its argument prototype would still apply. */
6883 rm -f conftest.$ac_objext conftest$ac_exeext
6884 if { (eval echo "$as_me:6884: \"$ac_link\"") >&5
6885 (eval $ac_link) 2>&5
6887 echo "$as_me:6887: \$? = $ac_status" >&5
6888 (exit $ac_status); } &&
6889 { ac_try='test -s conftest$ac_exeext'
6890 { (eval echo "$as_me:6890: \"$ac_try\"") >&5
6893 echo "$as_me:6893: \$? = $ac_status" >&5
6894 (exit $ac_status); }; }; then
6895 ac_cv_lib_gpm_Gpm_Open=yes
6897 echo "$as_me: failed program was:" >&5
6898 cat conftest.$ac_ext >&5
6899 ac_cv_lib_gpm_Gpm_Open=no
6901 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6902 LIBS=$ac_check_lib_save_LIBS
6904 echo "$as_me:6904: result: $ac_cv_lib_gpm_Gpm_Open" >&5
6905 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
6906 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
6907 echo "$as_me:6907: checking for initscr in -lgpm" >&5
6908 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
6909 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
6910 echo $ECHO_N "(cached) $ECHO_C" >&6
6912 ac_check_lib_save_LIBS=$LIBS
6914 cat >conftest.$ac_ext <<_ACEOF
6915 #line 6915 "configure"
6916 #include "confdefs.h"
6918 /* Override any gcc2 internal prototype to avoid an error. */
6922 /* We use char because int might match the return type of a gcc2
6923 builtin and then its argument prototype would still apply. */
6933 rm -f conftest.$ac_objext conftest$ac_exeext
6934 if { (eval echo "$as_me:6934: \"$ac_link\"") >&5
6935 (eval $ac_link) 2>&5
6937 echo "$as_me:6937: \$? = $ac_status" >&5
6938 (exit $ac_status); } &&
6939 { ac_try='test -s conftest$ac_exeext'
6940 { (eval echo "$as_me:6940: \"$ac_try\"") >&5
6943 echo "$as_me:6943: \$? = $ac_status" >&5
6944 (exit $ac_status); }; }; then
6945 ac_cv_lib_gpm_initscr=yes
6947 echo "$as_me: failed program was:" >&5
6948 cat conftest.$ac_ext >&5
6949 ac_cv_lib_gpm_initscr=no
6951 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6952 LIBS=$ac_check_lib_save_LIBS
6954 echo "$as_me:6954: result: $ac_cv_lib_gpm_initscr" >&5
6955 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
6956 if test $ac_cv_lib_gpm_initscr = yes; then
6957 LIBS="$cf_ncurses_SAVE"
6959 cf_ncurses_LIBS="-lgpm"
6964 case $host_os in #(vi
6966 # This is only necessary if you are linking against an obsolete
6967 # version of ncurses (but it should do no harm, since it's static).
6968 if test "$cf_nculib_root" = ncurses ; then
6969 echo "$as_me:6969: checking for tgoto in -lmytinfo" >&5
6970 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
6971 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
6972 echo $ECHO_N "(cached) $ECHO_C" >&6
6974 ac_check_lib_save_LIBS=$LIBS
6975 LIBS="-lmytinfo $LIBS"
6976 cat >conftest.$ac_ext <<_ACEOF
6977 #line 6977 "configure"
6978 #include "confdefs.h"
6980 /* Override any gcc2 internal prototype to avoid an error. */
6984 /* We use char because int might match the return type of a gcc2
6985 builtin and then its argument prototype would still apply. */
6995 rm -f conftest.$ac_objext conftest$ac_exeext
6996 if { (eval echo "$as_me:6996: \"$ac_link\"") >&5
6997 (eval $ac_link) 2>&5
6999 echo "$as_me:6999: \$? = $ac_status" >&5
7000 (exit $ac_status); } &&
7001 { ac_try='test -s conftest$ac_exeext'
7002 { (eval echo "$as_me:7002: \"$ac_try\"") >&5
7005 echo "$as_me:7005: \$? = $ac_status" >&5
7006 (exit $ac_status); }; }; then
7007 ac_cv_lib_mytinfo_tgoto=yes
7009 echo "$as_me: failed program was:" >&5
7010 cat conftest.$ac_ext >&5
7011 ac_cv_lib_mytinfo_tgoto=no
7013 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7014 LIBS=$ac_check_lib_save_LIBS
7016 echo "$as_me:7016: result: $ac_cv_lib_mytinfo_tgoto" >&5
7017 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
7018 if test $ac_cv_lib_mytinfo_tgoto = yes; then
7019 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
7026 LIBS="$cf_ncurses_LIBS $LIBS"
7028 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
7030 LIBS="-l$cf_nculib_root $LIBS"
7033 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
7035 echo "$as_me:7035: checking for initscr" >&5
7036 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
7037 if test "${ac_cv_func_initscr+set}" = set; then
7038 echo $ECHO_N "(cached) $ECHO_C" >&6
7040 cat >conftest.$ac_ext <<_ACEOF
7041 #line 7041 "configure"
7042 #include "confdefs.h"
7043 /* System header to define __stub macros and hopefully few prototypes,
7044 which can conflict with char initscr (); below. */
7046 /* Override any gcc2 internal prototype to avoid an error. */
7050 /* We use char because int might match the return type of a gcc2
7051 builtin and then its argument prototype would still apply. */
7058 /* The GNU C library defines this for functions which it implements
7059 to always fail with ENOSYS. Some functions are actually named
7060 something starting with __ and the normal name is an alias. */
7061 #if defined (__stub_initscr) || defined (__stub___initscr)
7071 rm -f conftest.$ac_objext conftest$ac_exeext
7072 if { (eval echo "$as_me:7072: \"$ac_link\"") >&5
7073 (eval $ac_link) 2>&5
7075 echo "$as_me:7075: \$? = $ac_status" >&5
7076 (exit $ac_status); } &&
7077 { ac_try='test -s conftest$ac_exeext'
7078 { (eval echo "$as_me:7078: \"$ac_try\"") >&5
7081 echo "$as_me:7081: \$? = $ac_status" >&5
7082 (exit $ac_status); }; }; then
7083 ac_cv_func_initscr=yes
7085 echo "$as_me: failed program was:" >&5
7086 cat conftest.$ac_ext >&5
7087 ac_cv_func_initscr=no
7089 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7091 echo "$as_me:7091: result: $ac_cv_func_initscr" >&5
7092 echo "${ECHO_T}$ac_cv_func_initscr" >&6
7093 if test $ac_cv_func_initscr = yes; then
7094 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
7097 cf_save_LIBS="$LIBS"
7098 echo "$as_me:7098: checking for initscr in -l$cf_nculib_root" >&5
7099 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
7100 LIBS="-l$cf_nculib_root $LIBS"
7101 cat >conftest.$ac_ext <<_ACEOF
7102 #line 7102 "configure"
7103 #include "confdefs.h"
7104 #include <${cf_cv_ncurses_header:-curses.h}>
7113 rm -f conftest.$ac_objext conftest$ac_exeext
7114 if { (eval echo "$as_me:7114: \"$ac_link\"") >&5
7115 (eval $ac_link) 2>&5
7117 echo "$as_me:7117: \$? = $ac_status" >&5
7118 (exit $ac_status); } &&
7119 { ac_try='test -s conftest$ac_exeext'
7120 { (eval echo "$as_me:7120: \"$ac_try\"") >&5
7123 echo "$as_me:7123: \$? = $ac_status" >&5
7124 (exit $ac_status); }; }; then
7125 echo "$as_me:7125: result: yes" >&5
7126 echo "${ECHO_T}yes" >&6
7127 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
7130 echo "$as_me: failed program was:" >&5
7131 cat conftest.$ac_ext >&5
7132 echo "$as_me:7132: result: no" >&5
7133 echo "${ECHO_T}no" >&6
7136 cf_library_path_list=""
7137 if test -n "${LDFLAGS}${LIBS}" ; then
7138 for cf_library_path in $LDFLAGS $LIBS
7140 case $cf_library_path in #(vi
7142 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
7144 test "$cf_library_path" != "NONE" && \
7145 test -d "$cf_library_path" && \
7147 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
7148 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
7149 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
7150 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
7151 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
7152 test -d $cf_library_path/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib/$cf_nculib_root"
7155 cf_library_path_list="$cf_library_path_list $cf_search"
7163 test "/usr" != "$prefix" && \
7165 (test $prefix = NONE || test "/usr" != "$prefix") && {
7166 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
7167 test -d /usr/lib && cf_search="$cf_search /usr/lib"
7168 test -d /usr/lib/$cf_nculib_root && cf_search="$cf_search /usr/lib/$cf_nculib_root"
7169 test -d /usr/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/lib/$cf_nculib_root/lib"
7170 test -d /usr/$cf_nculib_root/lib && cf_search="$cf_search /usr/$cf_nculib_root/lib"
7171 test -d /usr/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/$cf_nculib_root/lib/$cf_nculib_root"
7174 test "$prefix" != "NONE" && \
7175 test -d "$prefix" && \
7177 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
7178 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
7179 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
7180 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
7181 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
7182 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
7185 test "/usr/local" != "$prefix" && \
7186 test -d "/usr/local" && \
7187 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
7188 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
7189 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
7190 test -d /usr/local/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/lib/$cf_nculib_root"
7191 test -d /usr/local/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/lib/$cf_nculib_root/lib"
7192 test -d /usr/local/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/$cf_nculib_root/lib"
7193 test -d /usr/local/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/$cf_nculib_root/lib/$cf_nculib_root"
7196 test "/opt" != "$prefix" && \
7198 (test $prefix = NONE || test "/opt" != "$prefix") && {
7199 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
7200 test -d /opt/lib && cf_search="$cf_search /opt/lib"
7201 test -d /opt/lib/$cf_nculib_root && cf_search="$cf_search /opt/lib/$cf_nculib_root"
7202 test -d /opt/lib/$cf_nculib_root/lib && cf_search="$cf_search /opt/lib/$cf_nculib_root/lib"
7203 test -d /opt/$cf_nculib_root/lib && cf_search="$cf_search /opt/$cf_nculib_root/lib"
7204 test -d /opt/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /opt/$cf_nculib_root/lib/$cf_nculib_root"
7207 test "$HOME" != "$prefix" && \
7208 test -d "$HOME" && \
7209 (test $prefix = NONE || test "$HOME" != "$prefix") && {
7210 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
7211 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
7212 test -d $HOME/lib/$cf_nculib_root && cf_search="$cf_search $HOME/lib/$cf_nculib_root"
7213 test -d $HOME/lib/$cf_nculib_root/lib && cf_search="$cf_search $HOME/lib/$cf_nculib_root/lib"
7214 test -d $HOME/$cf_nculib_root/lib && cf_search="$cf_search $HOME/$cf_nculib_root/lib"
7215 test -d $HOME/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $HOME/$cf_nculib_root/lib/$cf_nculib_root"
7218 cf_search="$cf_library_path_list $cf_search"
7220 for cf_libdir in $cf_search
7222 echo "$as_me:7222: checking for -l$cf_nculib_root in $cf_libdir" >&5
7223 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
7224 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
7225 cat >conftest.$ac_ext <<_ACEOF
7226 #line 7226 "configure"
7227 #include "confdefs.h"
7228 #include <${cf_cv_ncurses_header:-curses.h}>
7237 rm -f conftest.$ac_objext conftest$ac_exeext
7238 if { (eval echo "$as_me:7238: \"$ac_link\"") >&5
7239 (eval $ac_link) 2>&5
7241 echo "$as_me:7241: \$? = $ac_status" >&5
7242 (exit $ac_status); } &&
7243 { ac_try='test -s conftest$ac_exeext'
7244 { (eval echo "$as_me:7244: \"$ac_try\"") >&5
7247 echo "$as_me:7247: \$? = $ac_status" >&5
7248 (exit $ac_status); }; }; then
7249 echo "$as_me:7249: result: yes" >&5
7250 echo "${ECHO_T}yes" >&6
7251 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
7254 echo "$as_me: failed program was:" >&5
7255 cat conftest.$ac_ext >&5
7256 echo "$as_me:7256: result: no" >&5
7257 echo "${ECHO_T}no" >&6
7258 LIBS="$cf_save_LIBS"
7260 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7264 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7268 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
7270 if test $cf_found_library = no ; then
7271 { { echo "$as_me:7271: error: Cannot link $cf_nculib_root library" >&5
7272 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
7273 { (exit 1); exit 1; }; }
7278 if test -n "$cf_ncurses_LIBS" ; then
7279 echo "$as_me:7279: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
7280 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
7281 cf_ncurses_SAVE="$LIBS"
7282 for p in $cf_ncurses_LIBS ; do
7283 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
7284 if test "$q" != "$LIBS" ; then
7288 cat >conftest.$ac_ext <<_ACEOF
7289 #line 7289 "configure"
7290 #include "confdefs.h"
7291 #include <${cf_cv_ncurses_header:-curses.h}>
7295 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
7300 rm -f conftest.$ac_objext conftest$ac_exeext
7301 if { (eval echo "$as_me:7301: \"$ac_link\"") >&5
7302 (eval $ac_link) 2>&5
7304 echo "$as_me:7304: \$? = $ac_status" >&5
7305 (exit $ac_status); } &&
7306 { ac_try='test -s conftest$ac_exeext'
7307 { (eval echo "$as_me:7307: \"$ac_try\"") >&5
7310 echo "$as_me:7310: \$? = $ac_status" >&5
7311 (exit $ac_status); }; }; then
7312 echo "$as_me:7312: result: yes" >&5
7313 echo "${ECHO_T}yes" >&6
7315 echo "$as_me: failed program was:" >&5
7316 cat conftest.$ac_ext >&5
7317 echo "$as_me:7317: result: no" >&5
7318 echo "${ECHO_T}no" >&6
7319 LIBS="$cf_ncurses_SAVE"
7321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7324 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
7326 cat >>confdefs.h <<EOF
7327 #define $cf_nculib_ROOT 1
7334 if test "$NCURSES_CONFIG" != none ; then
7336 cf_version=`$NCURSES_CONFIG --version`
7338 NCURSES_MAJOR=`echo "$cf_version" | sed -e 's/\..*//'`
7339 NCURSES_MINOR=`echo "$cf_version" | sed -e 's/^[0-9][0-9]*\.//' -e 's/\..*//'`
7340 NCURSES_PATCH=`echo "$cf_version" | sed -e 's/^[0-9][0-9]*\.[0-9][0-9]*\.//'`
7342 # ABI version is not available from headers
7343 cf_cv_abi_version=`$NCURSES_CONFIG --abi-version`
7347 for cf_name in MAJOR MINOR PATCH
7349 cat >conftest.$ac_ext <<CF_EOF
7350 #include <${cf_cv_ncurses_header:-curses.h}>
7351 AUTOCONF_$cf_name NCURSES_VERSION_$cf_name
7353 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | fgrep AUTOCONF_$cf_name >conftest.out"
7354 { (eval echo "$as_me:7354: \"$cf_try\"") >&5
7357 echo "$as_me:7357: \$? = $ac_status" >&5
7358 (exit $ac_status); }
7359 if test -f conftest.out ; then
7360 cf_result=`cat conftest.out | sed -e "s/^.*AUTOCONF_$cf_name[ ][ ]*//"`
7361 eval NCURSES_$cf_name=\"$cf_result\"
7362 # cat conftest.$ac_ext
7367 cf_cv_abi_version=${NCURSES_MAJOR}
7371 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
7373 cf_cv_timestamp=`date`
7375 echo "$as_me:7375: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
7376 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
7378 case $cf_cv_system_name in #(vi
7385 cf_prefix=$LIB_PREFIX
7387 LIB_PREFIX=$cf_prefix
7391 ###############################################################################
7393 if test X"$CC_G_OPT" = X"" ; then
7395 test -n "$GCC" && test "${ac_cv_prog_cc_g}" != yes && CC_G_OPT=''
7398 echo "$as_me:7398: checking for default loader flags" >&5
7399 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
7400 case $DFT_LWR_MODEL in
7401 normal) LD_MODEL='' ;;
7402 debug) LD_MODEL=$CC_G_OPT ;;
7403 profile) LD_MODEL='-pg';;
7404 shared) LD_MODEL='' ;;
7406 echo "$as_me:7406: result: $LD_MODEL" >&5
7407 echo "${ECHO_T}$LD_MODEL" >&6
7410 echo "$as_me:7410: checking for an rpath option" >&5
7411 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
7412 case $cf_cv_system_name in #(vi
7414 if test "$GCC" = yes; then
7415 LD_RPATH_OPT="-Wl,-rpath,"
7417 LD_RPATH_OPT="-rpath "
7420 linux*|gnu*|k*bsd*-gnu) #(vi
7421 LD_RPATH_OPT="-Wl,-rpath,"
7423 openbsd[2-9].*|mirbsd*) #(vi
7424 LD_RPATH_OPT="-Wl,-rpath,"
7426 dragonfly*|freebsd*) #(vi
7427 LD_RPATH_OPT="-rpath "
7430 LD_RPATH_OPT="-Wl,-rpath,"
7433 LD_RPATH_OPT="-rpath "
7441 echo "$as_me:7441: result: $LD_RPATH_OPT" >&5
7442 echo "${ECHO_T}$LD_RPATH_OPT" >&6
7444 case "x$LD_RPATH_OPT" in #(vi
7446 echo "$as_me:7446: checking if we need a space after rpath option" >&5
7447 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
7448 cf_save_LIBS="$LIBS"
7449 LIBS="${LD_RPATH_OPT}$libdir $LIBS"
7450 cat >conftest.$ac_ext <<_ACEOF
7451 #line 7451 "configure"
7452 #include "confdefs.h"
7462 rm -f conftest.$ac_objext conftest$ac_exeext
7463 if { (eval echo "$as_me:7463: \"$ac_link\"") >&5
7464 (eval $ac_link) 2>&5
7466 echo "$as_me:7466: \$? = $ac_status" >&5
7467 (exit $ac_status); } &&
7468 { ac_try='test -s conftest$ac_exeext'
7469 { (eval echo "$as_me:7469: \"$ac_try\"") >&5
7472 echo "$as_me:7472: \$? = $ac_status" >&5
7473 (exit $ac_status); }; }; then
7476 echo "$as_me: failed program was:" >&5
7477 cat conftest.$ac_ext >&5
7480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7481 LIBS="$cf_save_LIBS"
7482 echo "$as_me:7482: result: $cf_rpath_space" >&5
7483 echo "${ECHO_T}$cf_rpath_space" >&6
7484 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
7491 INSTALL_LIB="-m 644"
7493 cf_cv_do_symlinks=no
7495 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
7497 echo "$as_me:7497: checking if release/abi version should be used for shared libs" >&5
7498 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
7500 # Check whether --with-shlib-version or --without-shlib-version was given.
7501 if test "${with_shlib_version+set}" = set; then
7502 withval="$with_shlib_version"
7503 test -z "$withval" && withval=auto
7504 case $withval in #(vi
7506 cf_cv_shlib_version=auto
7508 rel|abi|auto|no) #(vi
7509 cf_cv_shlib_version=$withval
7512 { { echo "$as_me:7512: error: option value must be one of: rel, abi, auto or no" >&5
7513 echo "$as_me: error: option value must be one of: rel, abi, auto or no" >&2;}
7514 { (exit 1); exit 1; }; }
7519 cf_cv_shlib_version=auto
7521 echo "$as_me:7521: result: $cf_cv_shlib_version" >&5
7522 echo "${ECHO_T}$cf_cv_shlib_version" >&6
7526 # Some less-capable ports of gcc support only -fpic
7528 if test "$GCC" = yes
7530 echo "$as_me:7530: checking which $CC option to use" >&5
7531 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
7532 cf_save_CFLAGS="$CFLAGS"
7533 for CC_SHARED_OPTS in -fPIC -fpic ''
7535 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
7536 cat >conftest.$ac_ext <<_ACEOF
7537 #line 7537 "configure"
7538 #include "confdefs.h"
7548 rm -f conftest.$ac_objext
7549 if { (eval echo "$as_me:7549: \"$ac_compile\"") >&5
7550 (eval $ac_compile) 2>&5
7552 echo "$as_me:7552: \$? = $ac_status" >&5
7553 (exit $ac_status); } &&
7554 { ac_try='test -s conftest.$ac_objext'
7555 { (eval echo "$as_me:7555: \"$ac_try\"") >&5
7558 echo "$as_me:7558: \$? = $ac_status" >&5
7559 (exit $ac_status); }; }; then
7562 echo "$as_me: failed program was:" >&5
7563 cat conftest.$ac_ext >&5
7565 rm -f conftest.$ac_objext conftest.$ac_ext
7567 echo "$as_me:7567: result: $CC_SHARED_OPTS" >&5
7568 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
7569 CFLAGS="$cf_save_CFLAGS"
7572 cf_cv_shlib_version_infix=no
7574 case $cf_cv_system_name in #(vi
7575 aix4.3-9*|aix[5-7]*) #(vi
7576 if test "$GCC" = yes; then
7578 MK_SHARED_LIB='${CC} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
7580 # CC_SHARED_OPTS='-qpic=large -G'
7581 # perhaps "-bM:SRE -bnoentry -bexpall"
7582 MK_SHARED_LIB='${CC} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
7586 MK_SHARED_LIB='${CC} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
7590 MK_SHARED_LIB='sh ../mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
7591 cf_cv_shlib_version=cygdll
7592 cf_cv_shlib_version_infix=cygdll
7593 cat >mk_shared_lib.sh <<-CF_EOF
7596 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
7599 Linking shared library
7600 ** SHARED_LIB \$SHARED_LIB
7601 ** IMPORT_LIB \$IMPORT_LIB
7603 exec \$* -shared -Wl,--out-implib=../lib/\${IMPORT_LIB} -Wl,--export-all-symbols -o ../lib/\${SHARED_LIB}
7605 chmod +x mk_shared_lib.sh
7608 EXTRA_CFLAGS="-no-cpp-precomp"
7609 CC_SHARED_OPTS="-dynamic"
7610 MK_SHARED_LIB='${CC} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
7611 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
7612 cf_cv_shlib_version_infix=yes
7613 echo "$as_me:7613: checking if ld -search_paths_first works" >&5
7614 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
7615 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
7616 echo $ECHO_N "(cached) $ECHO_C" >&6
7619 cf_save_LDFLAGS=$LDFLAGS
7620 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
7621 cat >conftest.$ac_ext <<_ACEOF
7622 #line 7622 "configure"
7623 #include "confdefs.h"
7633 rm -f conftest.$ac_objext conftest$ac_exeext
7634 if { (eval echo "$as_me:7634: \"$ac_link\"") >&5
7635 (eval $ac_link) 2>&5
7637 echo "$as_me:7637: \$? = $ac_status" >&5
7638 (exit $ac_status); } &&
7639 { ac_try='test -s conftest$ac_exeext'
7640 { (eval echo "$as_me:7640: \"$ac_try\"") >&5
7643 echo "$as_me:7643: \$? = $ac_status" >&5
7644 (exit $ac_status); }; }; then
7645 cf_cv_ldflags_search_paths_first=yes
7647 echo "$as_me: failed program was:" >&5
7648 cat conftest.$ac_ext >&5
7649 cf_cv_ldflags_search_paths_first=no
7651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7652 LDFLAGS=$cf_save_LDFLAGS
7654 echo "$as_me:7654: result: $cf_cv_ldflags_search_paths_first" >&5
7655 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
7656 if test $cf_cv_ldflags_search_paths_first = yes; then
7657 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
7661 # (tested with gcc 2.7.2 -- I don't have c89)
7662 if test "$GCC" = yes; then
7663 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
7666 LD_SHARED_OPTS='-Wl,+b,${libdir}'
7668 MK_SHARED_LIB='${LD} +b ${libdir} -b -o $@'
7669 # HP-UX shared libraries must be executable, and should be
7670 # readonly to exploit a quirk in the memory manager.
7671 INSTALL_LIB="-m 555"
7674 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7675 if test "$cf_cv_shlib_version" = rel; then
7676 cf_shared_soname='`basename .${REL_VERSION}`.${ABI_VERSION}'
7678 cf_shared_soname='`basename `'
7681 MK_SHARED_LIB='${CC} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o '
7684 if test "$cf_cv_enable_rpath" = yes ; then
7685 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
7687 # tested with IRIX 5.2 and 'cc'.
7688 if test "$GCC" != yes; then
7689 CC_SHARED_OPTS='-KPIC'
7690 MK_SHARED_LIB='${CC} -shared -rdata_shared -soname `basename $@` -o $@'
7692 MK_SHARED_LIB='${CC} -shared -Wl,-soname,`basename $@` -o $@'
7694 cf_cv_rm_so_locs=yes
7696 linux*|gnu*|k*bsd*-gnu) #(vi
7697 if test "$DFT_LWR_MODEL" = "shared" ; then
7698 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
7699 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7701 if test "$cf_cv_enable_rpath" = yes ; then
7702 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
7705 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7706 if test "$cf_cv_shlib_version" = rel; then
7707 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
7709 cf_cv_shared_soname='`basename $@`'
7712 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
7714 openbsd[2-9].*|mirbsd*) #(vi
7715 if test "$DFT_LWR_MODEL" = "shared" ; then
7716 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
7717 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7719 if test "$cf_cv_enable_rpath" = yes ; then
7720 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
7722 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
7724 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7725 if test "$cf_cv_shlib_version" = rel; then
7726 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
7728 cf_cv_shared_soname='`basename $@`'
7731 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
7733 nto-qnx*|openbsd*|freebsd[12].*) #(vi
7734 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
7735 MK_SHARED_LIB='${LD} -Bshareable -o $@'
7736 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7738 dragonfly*|freebsd*) #(vi
7739 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
7740 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
7741 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
7742 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
7743 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
7746 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7747 if test "$cf_cv_shlib_version" = rel; then
7748 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
7750 cf_cv_shared_soname='`basename $@`'
7753 MK_SHARED_LIB='${LD} -shared -Bshareable -soname=`basename $@` -o $@'
7756 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
7757 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
7758 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
7759 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7760 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
7761 if test "$cf_cv_shlib_version" = auto; then
7762 if test -f /usr/libexec/ld.elf_so; then
7763 cf_cv_shlib_version=abi
7765 cf_cv_shlib_version=rel
7769 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7770 if test "$cf_cv_shlib_version" = rel; then
7771 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
7773 cf_cv_shared_soname='`basename $@`'
7776 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
7778 MK_SHARED_LIB='${LD} -shared -Bshareable -o $@'
7782 # tested with OSF/1 V3.2 and 'cc'
7783 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
7784 # link with shared libs).
7785 MK_SHARED_LIB='${LD} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
7786 case $host_os in #(vi
7788 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
7791 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
7792 if test "$DFT_LWR_MODEL" = "shared" ; then
7793 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
7794 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7796 cf_cv_rm_so_locs=yes
7798 sco3.2v5*) # (also uw2* and UW7: hops 13-Apr-98
7799 # tested with osr5.0.5
7800 if test "$GCC" != yes; then
7801 CC_SHARED_OPTS='-belf -KPIC'
7803 MK_SHARED_LIB='${LD} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
7804 if test "$cf_cv_enable_rpath" = yes ; then
7805 # only way is to set LD_RUN_PATH but no switch for it
7808 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7809 LINK_PROGS='LD_RUN_PATH=${libdir}'
7810 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
7813 # tested with SunOS 4.1.1 and gcc 2.7.0
7814 if test "$GCC" != yes; then
7815 CC_SHARED_OPTS='-KPIC'
7817 MK_SHARED_LIB='${LD} -assert pure-text -o $@'
7818 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7821 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
7822 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
7823 if test "$DFT_LWR_MODEL" = "shared" ; then
7824 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
7825 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7827 if test "$cf_cv_enable_rpath" = yes ; then
7828 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
7831 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7832 if test "$cf_cv_shlib_version" = rel; then
7833 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
7835 cf_cv_shared_soname='`basename $@`'
7838 if test "$GCC" != yes; then
7839 cf_save_CFLAGS="$CFLAGS"
7840 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
7842 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
7843 cat >conftest.$ac_ext <<_ACEOF
7844 #line 7844 "configure"
7845 #include "confdefs.h"
7855 rm -f conftest.$ac_objext
7856 if { (eval echo "$as_me:7856: \"$ac_compile\"") >&5
7857 (eval $ac_compile) 2>&5
7859 echo "$as_me:7859: \$? = $ac_status" >&5
7860 (exit $ac_status); } &&
7861 { ac_try='test -s conftest.$ac_objext'
7862 { (eval echo "$as_me:7862: \"$ac_try\"") >&5
7865 echo "$as_me:7865: \$? = $ac_status" >&5
7866 (exit $ac_status); }; }; then
7869 echo "$as_me: failed program was:" >&5
7870 cat conftest.$ac_ext >&5
7872 rm -f conftest.$ac_objext conftest.$ac_ext
7874 CFLAGS="$cf_save_CFLAGS"
7875 CC_SHARED_OPTS=$cf_shared_opts
7876 MK_SHARED_LIB='${CC} -dy -G -h '$cf_cv_shared_soname' -o $@'
7878 MK_SHARED_LIB='${CC} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
7881 sysv5uw7*|unix_sv*) #(vi
7882 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
7883 if test "$GCC" != yes; then
7884 CC_SHARED_OPTS='-KPIC'
7886 MK_SHARED_LIB='${LD} -d y -G -o $@'
7889 CC_SHARED_OPTS='unknown'
7890 MK_SHARED_LIB='echo unknown'
7894 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
7895 case "$cf_cv_shlib_version" in #(vi
7897 case "$MK_SHARED_LIB" in #(vi
7899 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
7902 { echo "$as_me:7902: WARNING: ignored --with-shlib-version" >&5
7903 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
7909 # RPATH_LIST is a colon-separated list of directories
7910 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
7911 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
7913 # The test/sample programs in the original tree link using rpath option.
7914 # Make it optional for packagers.
7915 if test -n "$LOCAL_LDFLAGS"
7917 echo "$as_me:7917: checking if you want to link sample programs with rpath option" >&5
7918 echo $ECHO_N "checking if you want to link sample programs with rpath option... $ECHO_C" >&6
7920 # Check whether --enable-rpath-link or --disable-rpath-link was given.
7921 if test "${enable_rpath_link+set}" = set; then
7922 enableval="$enable_rpath_link"
7923 with_rpath_link=$enableval
7927 echo "$as_me:7927: result: $with_rpath_link" >&5
7928 echo "${ECHO_T}$with_rpath_link" >&6
7929 if test "$with_rpath_link" = no
7936 ###############################################################################
7938 ### use option --enable-broken-linker to force on use of broken-linker support
7939 echo "$as_me:7939: checking if you want broken-linker support code" >&5
7940 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
7942 # Check whether --enable-broken_linker or --disable-broken_linker was given.
7943 if test "${enable_broken_linker+set}" = set; then
7944 enableval="$enable_broken_linker"
7945 with_broken_linker=$enableval
7947 with_broken_linker=${BROKEN_LINKER:-no}
7949 echo "$as_me:7949: result: $with_broken_linker" >&5
7950 echo "${ECHO_T}$with_broken_linker" >&6
7953 if test "$with_broken_linker" = yes ; then
7954 cat >>confdefs.h <<\EOF
7955 #define BROKEN_LINKER 1
7959 elif test "$DFT_LWR_MODEL" = shared ; then
7960 case $cf_cv_system_name in #(vi
7962 cat >>confdefs.h <<\EOF
7963 #define BROKEN_LINKER 1
7967 test -n "$verbose" && echo " cygwin linker is broken anyway" 1>&6
7969 echo "${as_me:-configure}:7969: testing cygwin linker is broken anyway ..." 1>&5
7975 # Check to define _XOPEN_SOURCE "automatically"
7978 cf_POSIX_C_SOURCE=199506L
7981 case $host_os in #(vi
7983 cf_xopen_source="-D_ALL_SOURCE"
7989 cf_xopen_source="-D_APPLE_C_SOURCE"
7992 cf_xopen_source="-D_DARWIN_C_SOURCE"
7994 freebsd*|dragonfly*) #(vi
7995 # 5.x headers associate
7996 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
7997 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
7998 cf_POSIX_C_SOURCE=200112L
8000 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
8003 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
8006 cf_xopen_source="-D_HPUX_SOURCE"
8009 cf_xopen_source="-D_SGI_SOURCE"
8011 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
8013 echo "$as_me:8013: checking if we must define _GNU_SOURCE" >&5
8014 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
8015 if test "${cf_cv_gnu_source+set}" = set; then
8016 echo $ECHO_N "(cached) $ECHO_C" >&6
8019 cat >conftest.$ac_ext <<_ACEOF
8020 #line 8020 "configure"
8021 #include "confdefs.h"
8022 #include <sys/types.h>
8027 #ifndef _XOPEN_SOURCE
8034 rm -f conftest.$ac_objext
8035 if { (eval echo "$as_me:8035: \"$ac_compile\"") >&5
8036 (eval $ac_compile) 2>&5
8038 echo "$as_me:8038: \$? = $ac_status" >&5
8039 (exit $ac_status); } &&
8040 { ac_try='test -s conftest.$ac_objext'
8041 { (eval echo "$as_me:8041: \"$ac_try\"") >&5
8044 echo "$as_me:8044: \$? = $ac_status" >&5
8045 (exit $ac_status); }; }; then
8048 echo "$as_me: failed program was:" >&5
8049 cat conftest.$ac_ext >&5
8051 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
8052 cat >conftest.$ac_ext <<_ACEOF
8053 #line 8053 "configure"
8054 #include "confdefs.h"
8055 #include <sys/types.h>
8060 #ifdef _XOPEN_SOURCE
8067 rm -f conftest.$ac_objext
8068 if { (eval echo "$as_me:8068: \"$ac_compile\"") >&5
8069 (eval $ac_compile) 2>&5
8071 echo "$as_me:8071: \$? = $ac_status" >&5
8072 (exit $ac_status); } &&
8073 { ac_try='test -s conftest.$ac_objext'
8074 { (eval echo "$as_me:8074: \"$ac_try\"") >&5
8077 echo "$as_me:8077: \$? = $ac_status" >&5
8078 (exit $ac_status); }; }; then
8081 echo "$as_me: failed program was:" >&5
8082 cat conftest.$ac_ext >&5
8083 cf_cv_gnu_source=yes
8085 rm -f conftest.$ac_objext conftest.$ac_ext
8089 rm -f conftest.$ac_objext conftest.$ac_ext
8092 echo "$as_me:8092: result: $cf_cv_gnu_source" >&5
8093 echo "${ECHO_T}$cf_cv_gnu_source" >&6
8094 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
8098 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <arpa/inet.h>
8101 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
8104 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
8107 cf_xopen_source="-D_OSF_SOURCE"
8110 cf_xopen_source="-D_QNX_SOURCE"
8113 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
8116 cf_xopen_source="-D__EXTENSIONS__"
8120 echo "$as_me:8120: checking if we should define _XOPEN_SOURCE" >&5
8121 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
8122 if test "${cf_cv_xopen_source+set}" = set; then
8123 echo $ECHO_N "(cached) $ECHO_C" >&6
8126 cat >conftest.$ac_ext <<_ACEOF
8127 #line 8127 "configure"
8128 #include "confdefs.h"
8132 #include <sys/types.h>
8138 #ifndef _XOPEN_SOURCE
8145 rm -f conftest.$ac_objext
8146 if { (eval echo "$as_me:8146: \"$ac_compile\"") >&5
8147 (eval $ac_compile) 2>&5
8149 echo "$as_me:8149: \$? = $ac_status" >&5
8150 (exit $ac_status); } &&
8151 { ac_try='test -s conftest.$ac_objext'
8152 { (eval echo "$as_me:8152: \"$ac_try\"") >&5
8155 echo "$as_me:8155: \$? = $ac_status" >&5
8156 (exit $ac_status); }; }; then
8157 cf_cv_xopen_source=no
8159 echo "$as_me: failed program was:" >&5
8160 cat conftest.$ac_ext >&5
8162 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
8163 cat >conftest.$ac_ext <<_ACEOF
8164 #line 8164 "configure"
8165 #include "confdefs.h"
8169 #include <sys/types.h>
8175 #ifdef _XOPEN_SOURCE
8182 rm -f conftest.$ac_objext
8183 if { (eval echo "$as_me:8183: \"$ac_compile\"") >&5
8184 (eval $ac_compile) 2>&5
8186 echo "$as_me:8186: \$? = $ac_status" >&5
8187 (exit $ac_status); } &&
8188 { ac_try='test -s conftest.$ac_objext'
8189 { (eval echo "$as_me:8189: \"$ac_try\"") >&5
8192 echo "$as_me:8192: \$? = $ac_status" >&5
8193 (exit $ac_status); }; }; then
8194 cf_cv_xopen_source=no
8196 echo "$as_me: failed program was:" >&5
8197 cat conftest.$ac_ext >&5
8198 cf_cv_xopen_source=$cf_XOPEN_SOURCE
8200 rm -f conftest.$ac_objext conftest.$ac_ext
8204 rm -f conftest.$ac_objext conftest.$ac_ext
8207 echo "$as_me:8207: result: $cf_cv_xopen_source" >&5
8208 echo "${ECHO_T}$cf_cv_xopen_source" >&6
8210 if test "$cf_cv_xopen_source" != no ; then
8212 CFLAGS=`echo "$CFLAGS" | \
8213 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8214 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8216 CPPFLAGS=`echo "$CPPFLAGS" | \
8217 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8218 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8220 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
8225 cf_new_extra_cppflags=
8227 for cf_add_cflags in $cf_temp_xopen_source
8229 case $cf_fix_cppflags in
8231 case $cf_add_cflags in #(vi
8232 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
8233 case $cf_add_cflags in
8235 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8237 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8238 && test -z "${cf_tst_cflags}" \
8239 && cf_fix_cppflags=yes
8241 if test $cf_fix_cppflags = yes ; then
8242 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8244 elif test "${cf_tst_cflags}" = "\"'" ; then
8245 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8251 *$cf_add_cflags) #(vi
8254 case $cf_add_cflags in #(vi
8256 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8258 CPPFLAGS=`echo "$CPPFLAGS" | \
8259 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8260 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8264 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8269 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8274 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8276 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8278 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8279 && test -z "${cf_tst_cflags}" \
8280 && cf_fix_cppflags=no
8285 if test -n "$cf_new_cflags" ; then
8287 CFLAGS="$CFLAGS $cf_new_cflags"
8290 if test -n "$cf_new_cppflags" ; then
8292 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8295 if test -n "$cf_new_extra_cppflags" ; then
8297 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8302 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
8304 cf_save_CFLAGS="$CFLAGS"
8305 cf_save_CPPFLAGS="$CPPFLAGS"
8307 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
8308 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8309 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
8311 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
8312 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8313 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
8315 echo "$as_me:8315: checking if we should define _POSIX_C_SOURCE" >&5
8316 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
8317 if test "${cf_cv_posix_c_source+set}" = set; then
8318 echo $ECHO_N "(cached) $ECHO_C" >&6
8321 echo "${as_me:-configure}:8321: testing if the symbol is already defined go no further ..." 1>&5
8323 cat >conftest.$ac_ext <<_ACEOF
8324 #line 8324 "configure"
8325 #include "confdefs.h"
8326 #include <sys/types.h>
8331 #ifndef _POSIX_C_SOURCE
8338 rm -f conftest.$ac_objext
8339 if { (eval echo "$as_me:8339: \"$ac_compile\"") >&5
8340 (eval $ac_compile) 2>&5
8342 echo "$as_me:8342: \$? = $ac_status" >&5
8343 (exit $ac_status); } &&
8344 { ac_try='test -s conftest.$ac_objext'
8345 { (eval echo "$as_me:8345: \"$ac_try\"") >&5
8348 echo "$as_me:8348: \$? = $ac_status" >&5
8349 (exit $ac_status); }; }; then
8350 cf_cv_posix_c_source=no
8352 echo "$as_me: failed program was:" >&5
8353 cat conftest.$ac_ext >&5
8354 cf_want_posix_source=no
8355 case .$cf_POSIX_C_SOURCE in #(vi
8357 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8360 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8361 cf_want_posix_source=yes
8364 cf_want_posix_source=yes
8367 if test "$cf_want_posix_source" = yes ; then
8368 cat >conftest.$ac_ext <<_ACEOF
8369 #line 8369 "configure"
8370 #include "confdefs.h"
8371 #include <sys/types.h>
8376 #ifdef _POSIX_SOURCE
8383 rm -f conftest.$ac_objext
8384 if { (eval echo "$as_me:8384: \"$ac_compile\"") >&5
8385 (eval $ac_compile) 2>&5
8387 echo "$as_me:8387: \$? = $ac_status" >&5
8388 (exit $ac_status); } &&
8389 { ac_try='test -s conftest.$ac_objext'
8390 { (eval echo "$as_me:8390: \"$ac_try\"") >&5
8393 echo "$as_me:8393: \$? = $ac_status" >&5
8394 (exit $ac_status); }; }; then
8397 echo "$as_me: failed program was:" >&5
8398 cat conftest.$ac_ext >&5
8399 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
8401 rm -f conftest.$ac_objext conftest.$ac_ext
8404 echo "${as_me:-configure}:8404: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
8406 CFLAGS="$cf_trim_CFLAGS"
8407 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
8409 echo "${as_me:-configure}:8409: testing if the second compile does not leave our definition intact error ..." 1>&5
8411 cat >conftest.$ac_ext <<_ACEOF
8412 #line 8412 "configure"
8413 #include "confdefs.h"
8414 #include <sys/types.h>
8419 #ifndef _POSIX_C_SOURCE
8426 rm -f conftest.$ac_objext
8427 if { (eval echo "$as_me:8427: \"$ac_compile\"") >&5
8428 (eval $ac_compile) 2>&5
8430 echo "$as_me:8430: \$? = $ac_status" >&5
8431 (exit $ac_status); } &&
8432 { ac_try='test -s conftest.$ac_objext'
8433 { (eval echo "$as_me:8433: \"$ac_try\"") >&5
8436 echo "$as_me:8436: \$? = $ac_status" >&5
8437 (exit $ac_status); }; }; then
8440 echo "$as_me: failed program was:" >&5
8441 cat conftest.$ac_ext >&5
8442 cf_cv_posix_c_source=no
8444 rm -f conftest.$ac_objext conftest.$ac_ext
8445 CFLAGS="$cf_save_CFLAGS"
8446 CPPFLAGS="$cf_save_CPPFLAGS"
8449 rm -f conftest.$ac_objext conftest.$ac_ext
8452 echo "$as_me:8452: result: $cf_cv_posix_c_source" >&5
8453 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
8455 if test "$cf_cv_posix_c_source" != no ; then
8456 CFLAGS="$cf_trim_CFLAGS"
8457 CPPFLAGS="$cf_trim_CPPFLAGS"
8462 cf_new_extra_cppflags=
8464 for cf_add_cflags in $cf_cv_posix_c_source
8466 case $cf_fix_cppflags in
8468 case $cf_add_cflags in #(vi
8469 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
8470 case $cf_add_cflags in
8472 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8474 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8475 && test -z "${cf_tst_cflags}" \
8476 && cf_fix_cppflags=yes
8478 if test $cf_fix_cppflags = yes ; then
8479 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8481 elif test "${cf_tst_cflags}" = "\"'" ; then
8482 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8488 *$cf_add_cflags) #(vi
8491 case $cf_add_cflags in #(vi
8493 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8495 CPPFLAGS=`echo "$CPPFLAGS" | \
8496 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8497 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8501 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8506 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8511 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8513 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8515 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8516 && test -z "${cf_tst_cflags}" \
8517 && cf_fix_cppflags=no
8522 if test -n "$cf_new_cflags" ; then
8524 CFLAGS="$CFLAGS $cf_new_cflags"
8527 if test -n "$cf_new_cppflags" ; then
8529 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8532 if test -n "$cf_new_extra_cppflags" ; then
8534 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8542 if test -n "$cf_xopen_source" ; then
8547 cf_new_extra_cppflags=
8549 for cf_add_cflags in $cf_xopen_source
8551 case $cf_fix_cppflags in
8553 case $cf_add_cflags in #(vi
8554 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
8555 case $cf_add_cflags in
8557 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8559 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8560 && test -z "${cf_tst_cflags}" \
8561 && cf_fix_cppflags=yes
8563 if test $cf_fix_cppflags = yes ; then
8564 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8566 elif test "${cf_tst_cflags}" = "\"'" ; then
8567 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8573 *$cf_add_cflags) #(vi
8576 case $cf_add_cflags in #(vi
8578 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8580 CPPFLAGS=`echo "$CPPFLAGS" | \
8581 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8582 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8586 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8591 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8596 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8598 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8600 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8601 && test -z "${cf_tst_cflags}" \
8602 && cf_fix_cppflags=no
8607 if test -n "$cf_new_cflags" ; then
8609 CFLAGS="$CFLAGS $cf_new_cflags"
8612 if test -n "$cf_new_cppflags" ; then
8614 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8617 if test -n "$cf_new_extra_cppflags" ; then
8619 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8624 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
8625 echo "$as_me:8625: checking if _XOPEN_SOURCE really is set" >&5
8626 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
8627 cat >conftest.$ac_ext <<_ACEOF
8628 #line 8628 "configure"
8629 #include "confdefs.h"
8635 #ifndef _XOPEN_SOURCE
8642 rm -f conftest.$ac_objext
8643 if { (eval echo "$as_me:8643: \"$ac_compile\"") >&5
8644 (eval $ac_compile) 2>&5
8646 echo "$as_me:8646: \$? = $ac_status" >&5
8647 (exit $ac_status); } &&
8648 { ac_try='test -s conftest.$ac_objext'
8649 { (eval echo "$as_me:8649: \"$ac_try\"") >&5
8652 echo "$as_me:8652: \$? = $ac_status" >&5
8653 (exit $ac_status); }; }; then
8654 cf_XOPEN_SOURCE_set=yes
8656 echo "$as_me: failed program was:" >&5
8657 cat conftest.$ac_ext >&5
8658 cf_XOPEN_SOURCE_set=no
8660 rm -f conftest.$ac_objext conftest.$ac_ext
8661 echo "$as_me:8661: result: $cf_XOPEN_SOURCE_set" >&5
8662 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
8663 if test $cf_XOPEN_SOURCE_set = yes
8665 cat >conftest.$ac_ext <<_ACEOF
8666 #line 8666 "configure"
8667 #include "confdefs.h"
8673 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
8680 rm -f conftest.$ac_objext
8681 if { (eval echo "$as_me:8681: \"$ac_compile\"") >&5
8682 (eval $ac_compile) 2>&5
8684 echo "$as_me:8684: \$? = $ac_status" >&5
8685 (exit $ac_status); } &&
8686 { ac_try='test -s conftest.$ac_objext'
8687 { (eval echo "$as_me:8687: \"$ac_try\"") >&5
8690 echo "$as_me:8690: \$? = $ac_status" >&5
8691 (exit $ac_status); }; }; then
8692 cf_XOPEN_SOURCE_set_ok=yes
8694 echo "$as_me: failed program was:" >&5
8695 cat conftest.$ac_ext >&5
8696 cf_XOPEN_SOURCE_set_ok=no
8698 rm -f conftest.$ac_objext conftest.$ac_ext
8699 if test $cf_XOPEN_SOURCE_set_ok = no
8701 { echo "$as_me:8701: WARNING: _XOPEN_SOURCE is lower than requested" >&5
8702 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
8706 echo "$as_me:8706: checking if we should define _XOPEN_SOURCE" >&5
8707 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
8708 if test "${cf_cv_xopen_source+set}" = set; then
8709 echo $ECHO_N "(cached) $ECHO_C" >&6
8712 cat >conftest.$ac_ext <<_ACEOF
8713 #line 8713 "configure"
8714 #include "confdefs.h"
8718 #include <sys/types.h>
8724 #ifndef _XOPEN_SOURCE
8731 rm -f conftest.$ac_objext
8732 if { (eval echo "$as_me:8732: \"$ac_compile\"") >&5
8733 (eval $ac_compile) 2>&5
8735 echo "$as_me:8735: \$? = $ac_status" >&5
8736 (exit $ac_status); } &&
8737 { ac_try='test -s conftest.$ac_objext'
8738 { (eval echo "$as_me:8738: \"$ac_try\"") >&5
8741 echo "$as_me:8741: \$? = $ac_status" >&5
8742 (exit $ac_status); }; }; then
8743 cf_cv_xopen_source=no
8745 echo "$as_me: failed program was:" >&5
8746 cat conftest.$ac_ext >&5
8748 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
8749 cat >conftest.$ac_ext <<_ACEOF
8750 #line 8750 "configure"
8751 #include "confdefs.h"
8755 #include <sys/types.h>
8761 #ifdef _XOPEN_SOURCE
8768 rm -f conftest.$ac_objext
8769 if { (eval echo "$as_me:8769: \"$ac_compile\"") >&5
8770 (eval $ac_compile) 2>&5
8772 echo "$as_me:8772: \$? = $ac_status" >&5
8773 (exit $ac_status); } &&
8774 { ac_try='test -s conftest.$ac_objext'
8775 { (eval echo "$as_me:8775: \"$ac_try\"") >&5
8778 echo "$as_me:8778: \$? = $ac_status" >&5
8779 (exit $ac_status); }; }; then
8780 cf_cv_xopen_source=no
8782 echo "$as_me: failed program was:" >&5
8783 cat conftest.$ac_ext >&5
8784 cf_cv_xopen_source=$cf_XOPEN_SOURCE
8786 rm -f conftest.$ac_objext conftest.$ac_ext
8790 rm -f conftest.$ac_objext conftest.$ac_ext
8793 echo "$as_me:8793: result: $cf_cv_xopen_source" >&5
8794 echo "${ECHO_T}$cf_cv_xopen_source" >&6
8796 if test "$cf_cv_xopen_source" != no ; then
8798 CFLAGS=`echo "$CFLAGS" | \
8799 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8800 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8802 CPPFLAGS=`echo "$CPPFLAGS" | \
8803 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8804 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8806 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
8811 cf_new_extra_cppflags=
8813 for cf_add_cflags in $cf_temp_xopen_source
8815 case $cf_fix_cppflags in
8817 case $cf_add_cflags in #(vi
8818 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
8819 case $cf_add_cflags in
8821 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8823 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8824 && test -z "${cf_tst_cflags}" \
8825 && cf_fix_cppflags=yes
8827 if test $cf_fix_cppflags = yes ; then
8828 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8830 elif test "${cf_tst_cflags}" = "\"'" ; then
8831 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8837 *$cf_add_cflags) #(vi
8840 case $cf_add_cflags in #(vi
8842 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8844 CPPFLAGS=`echo "$CPPFLAGS" | \
8845 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8846 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8850 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8855 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8860 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8862 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8864 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
8865 && test -z "${cf_tst_cflags}" \
8866 && cf_fix_cppflags=no
8871 if test -n "$cf_new_cflags" ; then
8873 CFLAGS="$CFLAGS $cf_new_cflags"
8876 if test -n "$cf_new_cppflags" ; then
8878 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8881 if test -n "$cf_new_extra_cppflags" ; then
8883 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8891 # Check whether --enable-largefile or --disable-largefile was given.
8892 if test "${enable_largefile+set}" = set; then
8893 enableval="$enable_largefile"
8896 if test "$enable_largefile" != no; then
8898 echo "$as_me:8898: checking for special C compiler options needed for large files" >&5
8899 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
8900 if test "${ac_cv_sys_largefile_CC+set}" = set; then
8901 echo $ECHO_N "(cached) $ECHO_C" >&6
8903 ac_cv_sys_largefile_CC=no
8904 if test "$GCC" != yes; then
8907 # IRIX 6.2 and later do not support large files by default,
8908 # so use the C compiler's -n32 option if that helps.
8909 cat >conftest.$ac_ext <<_ACEOF
8910 #line 8910 "configure"
8911 #include "confdefs.h"
8912 #include <sys/types.h>
8913 /* Check that off_t can represent 2**63 - 1 correctly.
8914 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8915 since some C++ compilers masquerading as C compilers
8916 incorrectly reject 9223372036854775807. */
8917 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8918 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8919 && LARGE_OFF_T % 2147483647 == 1)
8929 rm -f conftest.$ac_objext
8930 if { (eval echo "$as_me:8930: \"$ac_compile\"") >&5
8931 (eval $ac_compile) 2>&5
8933 echo "$as_me:8933: \$? = $ac_status" >&5
8934 (exit $ac_status); } &&
8935 { ac_try='test -s conftest.$ac_objext'
8936 { (eval echo "$as_me:8936: \"$ac_try\"") >&5
8939 echo "$as_me:8939: \$? = $ac_status" >&5
8940 (exit $ac_status); }; }; then
8943 echo "$as_me: failed program was:" >&5
8944 cat conftest.$ac_ext >&5
8946 rm -f conftest.$ac_objext
8948 rm -f conftest.$ac_objext
8949 if { (eval echo "$as_me:8949: \"$ac_compile\"") >&5
8950 (eval $ac_compile) 2>&5
8952 echo "$as_me:8952: \$? = $ac_status" >&5
8953 (exit $ac_status); } &&
8954 { ac_try='test -s conftest.$ac_objext'
8955 { (eval echo "$as_me:8955: \"$ac_try\"") >&5
8958 echo "$as_me:8958: \$? = $ac_status" >&5
8959 (exit $ac_status); }; }; then
8960 ac_cv_sys_largefile_CC=' -n32'; break
8962 echo "$as_me: failed program was:" >&5
8963 cat conftest.$ac_ext >&5
8965 rm -f conftest.$ac_objext
8969 rm -f conftest.$ac_ext
8972 echo "$as_me:8972: result: $ac_cv_sys_largefile_CC" >&5
8973 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
8974 if test "$ac_cv_sys_largefile_CC" != no; then
8975 CC=$CC$ac_cv_sys_largefile_CC
8978 echo "$as_me:8978: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8979 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
8980 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8981 echo $ECHO_N "(cached) $ECHO_C" >&6
8984 ac_cv_sys_file_offset_bits=no
8985 cat >conftest.$ac_ext <<_ACEOF
8986 #line 8986 "configure"
8987 #include "confdefs.h"
8988 #include <sys/types.h>
8989 /* Check that off_t can represent 2**63 - 1 correctly.
8990 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8991 since some C++ compilers masquerading as C compilers
8992 incorrectly reject 9223372036854775807. */
8993 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8994 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8995 && LARGE_OFF_T % 2147483647 == 1)
9005 rm -f conftest.$ac_objext
9006 if { (eval echo "$as_me:9006: \"$ac_compile\"") >&5
9007 (eval $ac_compile) 2>&5
9009 echo "$as_me:9009: \$? = $ac_status" >&5
9010 (exit $ac_status); } &&
9011 { ac_try='test -s conftest.$ac_objext'
9012 { (eval echo "$as_me:9012: \"$ac_try\"") >&5
9015 echo "$as_me:9015: \$? = $ac_status" >&5
9016 (exit $ac_status); }; }; then
9019 echo "$as_me: failed program was:" >&5
9020 cat conftest.$ac_ext >&5
9022 rm -f conftest.$ac_objext conftest.$ac_ext
9023 cat >conftest.$ac_ext <<_ACEOF
9024 #line 9024 "configure"
9025 #include "confdefs.h"
9026 #define _FILE_OFFSET_BITS 64
9027 #include <sys/types.h>
9028 /* Check that off_t can represent 2**63 - 1 correctly.
9029 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9030 since some C++ compilers masquerading as C compilers
9031 incorrectly reject 9223372036854775807. */
9032 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9033 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9034 && LARGE_OFF_T % 2147483647 == 1)
9044 rm -f conftest.$ac_objext
9045 if { (eval echo "$as_me:9045: \"$ac_compile\"") >&5
9046 (eval $ac_compile) 2>&5
9048 echo "$as_me:9048: \$? = $ac_status" >&5
9049 (exit $ac_status); } &&
9050 { ac_try='test -s conftest.$ac_objext'
9051 { (eval echo "$as_me:9051: \"$ac_try\"") >&5
9054 echo "$as_me:9054: \$? = $ac_status" >&5
9055 (exit $ac_status); }; }; then
9056 ac_cv_sys_file_offset_bits=64; break
9058 echo "$as_me: failed program was:" >&5
9059 cat conftest.$ac_ext >&5
9061 rm -f conftest.$ac_objext conftest.$ac_ext
9065 echo "$as_me:9065: result: $ac_cv_sys_file_offset_bits" >&5
9066 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9067 if test "$ac_cv_sys_file_offset_bits" != no; then
9069 cat >>confdefs.h <<EOF
9070 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9075 echo "$as_me:9075: checking for _LARGE_FILES value needed for large files" >&5
9076 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
9077 if test "${ac_cv_sys_large_files+set}" = set; then
9078 echo $ECHO_N "(cached) $ECHO_C" >&6
9081 ac_cv_sys_large_files=no
9082 cat >conftest.$ac_ext <<_ACEOF
9083 #line 9083 "configure"
9084 #include "confdefs.h"
9085 #include <sys/types.h>
9086 /* Check that off_t can represent 2**63 - 1 correctly.
9087 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9088 since some C++ compilers masquerading as C compilers
9089 incorrectly reject 9223372036854775807. */
9090 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9091 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9092 && LARGE_OFF_T % 2147483647 == 1)
9102 rm -f conftest.$ac_objext
9103 if { (eval echo "$as_me:9103: \"$ac_compile\"") >&5
9104 (eval $ac_compile) 2>&5
9106 echo "$as_me:9106: \$? = $ac_status" >&5
9107 (exit $ac_status); } &&
9108 { ac_try='test -s conftest.$ac_objext'
9109 { (eval echo "$as_me:9109: \"$ac_try\"") >&5
9112 echo "$as_me:9112: \$? = $ac_status" >&5
9113 (exit $ac_status); }; }; then
9116 echo "$as_me: failed program was:" >&5
9117 cat conftest.$ac_ext >&5
9119 rm -f conftest.$ac_objext conftest.$ac_ext
9120 cat >conftest.$ac_ext <<_ACEOF
9121 #line 9121 "configure"
9122 #include "confdefs.h"
9123 #define _LARGE_FILES 1
9124 #include <sys/types.h>
9125 /* Check that off_t can represent 2**63 - 1 correctly.
9126 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9127 since some C++ compilers masquerading as C compilers
9128 incorrectly reject 9223372036854775807. */
9129 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9130 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9131 && LARGE_OFF_T % 2147483647 == 1)
9141 rm -f conftest.$ac_objext
9142 if { (eval echo "$as_me:9142: \"$ac_compile\"") >&5
9143 (eval $ac_compile) 2>&5
9145 echo "$as_me:9145: \$? = $ac_status" >&5
9146 (exit $ac_status); } &&
9147 { ac_try='test -s conftest.$ac_objext'
9148 { (eval echo "$as_me:9148: \"$ac_try\"") >&5
9151 echo "$as_me:9151: \$? = $ac_status" >&5
9152 (exit $ac_status); }; }; then
9153 ac_cv_sys_large_files=1; break
9155 echo "$as_me: failed program was:" >&5
9156 cat conftest.$ac_ext >&5
9158 rm -f conftest.$ac_objext conftest.$ac_ext
9162 echo "$as_me:9162: result: $ac_cv_sys_large_files" >&5
9163 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9164 if test "$ac_cv_sys_large_files" != no; then
9166 cat >>confdefs.h <<EOF
9167 #define _LARGE_FILES $ac_cv_sys_large_files
9174 if test "$enable_largefile" != no ; then
9175 echo "$as_me:9175: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9176 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
9177 if test "${ac_cv_sys_largefile_source+set}" = set; then
9178 echo $ECHO_N "(cached) $ECHO_C" >&6
9181 ac_cv_sys_largefile_source=no
9182 cat >conftest.$ac_ext <<_ACEOF
9183 #line 9183 "configure"
9184 #include "confdefs.h"
9194 rm -f conftest.$ac_objext
9195 if { (eval echo "$as_me:9195: \"$ac_compile\"") >&5
9196 (eval $ac_compile) 2>&5
9198 echo "$as_me:9198: \$? = $ac_status" >&5
9199 (exit $ac_status); } &&
9200 { ac_try='test -s conftest.$ac_objext'
9201 { (eval echo "$as_me:9201: \"$ac_try\"") >&5
9204 echo "$as_me:9204: \$? = $ac_status" >&5
9205 (exit $ac_status); }; }; then
9208 echo "$as_me: failed program was:" >&5
9209 cat conftest.$ac_ext >&5
9211 rm -f conftest.$ac_objext conftest.$ac_ext
9212 cat >conftest.$ac_ext <<_ACEOF
9213 #line 9213 "configure"
9214 #include "confdefs.h"
9215 #define _LARGEFILE_SOURCE 1
9225 rm -f conftest.$ac_objext
9226 if { (eval echo "$as_me:9226: \"$ac_compile\"") >&5
9227 (eval $ac_compile) 2>&5
9229 echo "$as_me:9229: \$? = $ac_status" >&5
9230 (exit $ac_status); } &&
9231 { ac_try='test -s conftest.$ac_objext'
9232 { (eval echo "$as_me:9232: \"$ac_try\"") >&5
9235 echo "$as_me:9235: \$? = $ac_status" >&5
9236 (exit $ac_status); }; }; then
9237 ac_cv_sys_largefile_source=1; break
9239 echo "$as_me: failed program was:" >&5
9240 cat conftest.$ac_ext >&5
9242 rm -f conftest.$ac_objext conftest.$ac_ext
9246 echo "$as_me:9246: result: $ac_cv_sys_largefile_source" >&5
9247 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9248 if test "$ac_cv_sys_largefile_source" != no; then
9250 cat >>confdefs.h <<EOF
9251 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9257 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9258 # in glibc 2.1.3, but that breaks too many other things.
9259 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9260 echo "$as_me:9260: checking for fseeko" >&5
9261 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
9262 if test "${ac_cv_func_fseeko+set}" = set; then
9263 echo $ECHO_N "(cached) $ECHO_C" >&6
9265 cat >conftest.$ac_ext <<_ACEOF
9266 #line 9266 "configure"
9267 #include "confdefs.h"
9272 return fseeko && fseeko (stdin, 0, 0);
9277 rm -f conftest.$ac_objext conftest$ac_exeext
9278 if { (eval echo "$as_me:9278: \"$ac_link\"") >&5
9279 (eval $ac_link) 2>&5
9281 echo "$as_me:9281: \$? = $ac_status" >&5
9282 (exit $ac_status); } &&
9283 { ac_try='test -s conftest$ac_exeext'
9284 { (eval echo "$as_me:9284: \"$ac_try\"") >&5
9287 echo "$as_me:9287: \$? = $ac_status" >&5
9288 (exit $ac_status); }; }; then
9289 ac_cv_func_fseeko=yes
9291 echo "$as_me: failed program was:" >&5
9292 cat conftest.$ac_ext >&5
9293 ac_cv_func_fseeko=no
9295 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9297 echo "$as_me:9297: result: $ac_cv_func_fseeko" >&5
9298 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
9299 if test $ac_cv_func_fseeko = yes; then
9301 cat >>confdefs.h <<\EOF
9302 #define HAVE_FSEEKO 1
9307 # Normally we would collect these definitions in the config.h,
9308 # but (like _XOPEN_SOURCE), some environments rely on having these
9309 # defined before any of the system headers are included. Another
9310 # case comes up with C++, e.g., on AIX the compiler compiles the
9311 # header files by themselves before looking at the body files it is
9312 # told to compile. For ncurses, those header files do not include
9314 test "$ac_cv_sys_large_files" != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES "
9315 test "$ac_cv_sys_largefile_source" != no && CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE "
9316 test "$ac_cv_sys_file_offset_bits" != no && CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits "
9318 echo "$as_me:9318: checking whether to use struct dirent64" >&5
9319 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
9320 if test "${cf_cv_struct_dirent64+set}" = set; then
9321 echo $ECHO_N "(cached) $ECHO_C" >&6
9324 cat >conftest.$ac_ext <<_ACEOF
9325 #line 9325 "configure"
9326 #include "confdefs.h"
9328 #include <sys/types.h>
9335 /* if transitional largefile support is setup, this is true */
9336 extern struct dirent64 * readdir(DIR *);
9337 struct dirent64 *x = readdir((DIR *)0);
9338 struct dirent *y = readdir((DIR *)0);
9345 rm -f conftest.$ac_objext
9346 if { (eval echo "$as_me:9346: \"$ac_compile\"") >&5
9347 (eval $ac_compile) 2>&5
9349 echo "$as_me:9349: \$? = $ac_status" >&5
9350 (exit $ac_status); } &&
9351 { ac_try='test -s conftest.$ac_objext'
9352 { (eval echo "$as_me:9352: \"$ac_try\"") >&5
9355 echo "$as_me:9355: \$? = $ac_status" >&5
9356 (exit $ac_status); }; }; then
9357 cf_cv_struct_dirent64=yes
9359 echo "$as_me: failed program was:" >&5
9360 cat conftest.$ac_ext >&5
9361 cf_cv_struct_dirent64=no
9363 rm -f conftest.$ac_objext conftest.$ac_ext
9366 echo "$as_me:9366: result: $cf_cv_struct_dirent64" >&5
9367 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
9368 test "$cf_cv_struct_dirent64" = yes && cat >>confdefs.h <<\EOF
9369 #define HAVE_STRUCT_DIRENT64 1
9374 ### Enable compiling-in rcs id's
9375 echo "$as_me:9375: checking if RCS identifiers should be compiled-in" >&5
9376 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
9378 # Check whether --with-rcs-ids or --without-rcs-ids was given.
9379 if test "${with_rcs_ids+set}" = set; then
9380 withval="$with_rcs_ids"
9381 with_rcs_ids=$withval
9385 echo "$as_me:9385: result: $with_rcs_ids" >&5
9386 echo "${ECHO_T}$with_rcs_ids" >&6
9387 test "$with_rcs_ids" = yes && cat >>confdefs.h <<\EOF
9388 #define USE_RCS_IDS 1
9391 ###############################################################################
9393 ### Note that some functions (such as const) are normally disabled anyway.
9394 echo "$as_me:9394: checking if you want to build with function extensions" >&5
9395 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
9397 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
9398 if test "${enable_ext_funcs+set}" = set; then
9399 enableval="$enable_ext_funcs"
9400 with_ext_funcs=$enableval
9404 echo "$as_me:9404: result: $with_ext_funcs" >&5
9405 echo "${ECHO_T}$with_ext_funcs" >&6
9406 if test "$with_ext_funcs" = yes ; then
9408 cat >>confdefs.h <<\EOF
9409 #define HAVE_USE_DEFAULT_COLORS 1
9412 cat >>confdefs.h <<\EOF
9413 #define NCURSES_EXT_FUNCS 1
9420 ### use option --enable-const to turn on use of const beyond that in XSI.
9421 echo "$as_me:9421: checking for extended use of const keyword" >&5
9422 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
9424 # Check whether --enable-const or --disable-const was given.
9425 if test "${enable_const+set}" = set; then
9426 enableval="$enable_const"
9427 with_ext_const=$enableval
9431 echo "$as_me:9431: result: $with_ext_const" >&5
9432 echo "${ECHO_T}$with_ext_const" >&6
9433 NCURSES_CONST='/*nothing*/'
9434 if test "$with_ext_const" = yes ; then
9438 ###############################################################################
9439 # These options are relatively safe to experiment with.
9441 echo "$as_me:9441: checking if you want all development code" >&5
9442 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
9444 # Check whether --with-develop or --without-develop was given.
9445 if test "${with_develop+set}" = set; then
9446 withval="$with_develop"
9447 with_develop=$withval
9451 echo "$as_me:9451: result: $with_develop" >&5
9452 echo "${ECHO_T}$with_develop" >&6
9454 ###############################################################################
9455 # These are just experimental, probably should not be in a package:
9457 # This is still experimental (20080329), but should ultimately be moved to
9458 # the script-block --with-normal, etc.
9460 echo "$as_me:9460: checking if you want to link with the pthread library" >&5
9461 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
9463 # Check whether --with-pthread or --without-pthread was given.
9464 if test "${with_pthread+set}" = set; then
9465 withval="$with_pthread"
9466 with_pthread=$withval
9470 echo "$as_me:9470: result: $with_pthread" >&5
9471 echo "${ECHO_T}$with_pthread" >&6
9473 if test "$with_pthread" != no ; then
9474 echo "$as_me:9474: checking for pthread.h" >&5
9475 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
9476 if test "${ac_cv_header_pthread_h+set}" = set; then
9477 echo $ECHO_N "(cached) $ECHO_C" >&6
9479 cat >conftest.$ac_ext <<_ACEOF
9480 #line 9480 "configure"
9481 #include "confdefs.h"
9482 #include <pthread.h>
9484 if { (eval echo "$as_me:9484: \"$ac_cpp conftest.$ac_ext\"") >&5
9485 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9487 egrep -v '^ *\+' conftest.er1 >conftest.err
9489 cat conftest.err >&5
9490 echo "$as_me:9490: \$? = $ac_status" >&5
9491 (exit $ac_status); } >/dev/null; then
9492 if test -s conftest.err; then
9493 ac_cpp_err=$ac_c_preproc_warn_flag
9500 if test -z "$ac_cpp_err"; then
9501 ac_cv_header_pthread_h=yes
9503 echo "$as_me: failed program was:" >&5
9504 cat conftest.$ac_ext >&5
9505 ac_cv_header_pthread_h=no
9507 rm -f conftest.err conftest.$ac_ext
9509 echo "$as_me:9509: result: $ac_cv_header_pthread_h" >&5
9510 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
9511 if test $ac_cv_header_pthread_h = yes; then
9513 cat >>confdefs.h <<\EOF
9514 #define HAVE_PTHREADS_H 1
9517 echo "$as_me:9517: checking if we can link with the pthread library" >&5
9518 echo $ECHO_N "checking if we can link with the pthread library... $ECHO_C" >&6
9519 cf_save_LIBS="$LIBS"
9520 LIBS="-lpthread $LIBS"
9521 cat >conftest.$ac_ext <<_ACEOF
9522 #line 9522 "configure"
9523 #include "confdefs.h"
9525 #include <pthread.h>
9531 int rc = pthread_create(0,0,0,0);
9537 rm -f conftest.$ac_objext conftest$ac_exeext
9538 if { (eval echo "$as_me:9538: \"$ac_link\"") >&5
9539 (eval $ac_link) 2>&5
9541 echo "$as_me:9541: \$? = $ac_status" >&5
9542 (exit $ac_status); } &&
9543 { ac_try='test -s conftest$ac_exeext'
9544 { (eval echo "$as_me:9544: \"$ac_try\"") >&5
9547 echo "$as_me:9547: \$? = $ac_status" >&5
9548 (exit $ac_status); }; }; then
9551 echo "$as_me: failed program was:" >&5
9552 cat conftest.$ac_ext >&5
9555 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9556 LIBS="$cf_save_LIBS"
9557 echo "$as_me:9557: result: $with_pthread" >&5
9558 echo "${ECHO_T}$with_pthread" >&6
9560 if test "$with_pthread" = yes ; then
9561 LIBS="-lpthread $LIBS"
9562 cat >>confdefs.h <<\EOF
9563 #define HAVE_LIBPTHREADS 1
9567 { { echo "$as_me:9567: error: Cannot link with pthread library" >&5
9568 echo "$as_me: error: Cannot link with pthread library" >&2;}
9569 { (exit 1); exit 1; }; }
9576 echo "$as_me:9576: checking if you want to use weak-symbols for pthreads" >&5
9577 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
9579 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
9580 if test "${enable_weak_symbols+set}" = set; then
9581 enableval="$enable_weak_symbols"
9582 use_weak_symbols=$withval
9586 echo "$as_me:9586: result: $use_weak_symbols" >&5
9587 echo "${ECHO_T}$use_weak_symbols" >&6
9588 if test "$use_weak_symbols" = yes ; then
9590 echo "$as_me:9590: checking if $CC supports weak symbols" >&5
9591 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
9592 if test "${cf_cv_weak_symbols+set}" = set; then
9593 echo $ECHO_N "(cached) $ECHO_C" >&6
9596 cat >conftest.$ac_ext <<_ACEOF
9597 #line 9597 "configure"
9598 #include "confdefs.h"
9605 #if defined(__GNUC__)
9606 # if defined __USE_ISOC99
9607 # define _cat_pragma(exp) _Pragma(#exp)
9608 # define _weak_pragma(exp) _cat_pragma(weak name)
9610 # define _weak_pragma(exp)
9612 # define _declare(name) __extension__ extern __typeof__(name) name
9613 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
9622 rm -f conftest.$ac_objext
9623 if { (eval echo "$as_me:9623: \"$ac_compile\"") >&5
9624 (eval $ac_compile) 2>&5
9626 echo "$as_me:9626: \$? = $ac_status" >&5
9627 (exit $ac_status); } &&
9628 { ac_try='test -s conftest.$ac_objext'
9629 { (eval echo "$as_me:9629: \"$ac_try\"") >&5
9632 echo "$as_me:9632: \$? = $ac_status" >&5
9633 (exit $ac_status); }; }; then
9634 cf_cv_weak_symbols=yes
9636 echo "$as_me: failed program was:" >&5
9637 cat conftest.$ac_ext >&5
9638 cf_cv_weak_symbols=no
9640 rm -f conftest.$ac_objext conftest.$ac_ext
9643 echo "$as_me:9643: result: $cf_cv_weak_symbols" >&5
9644 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
9647 cf_cv_weak_symbols=no
9650 if test $cf_cv_weak_symbols = yes ; then
9651 cat >>confdefs.h <<\EOF
9652 #define USE_WEAK_SYMBOLS 1
9658 if test "$with_pthread" = "yes" ; then
9659 cat >>confdefs.h <<\EOF
9660 #define USE_PTHREADS 1
9663 enable_reentrant=yes
9664 if test $cf_cv_weak_symbols = yes ; then
9669 # OpenSUSE is installing ncurses6, using reentrant option.
9670 echo "$as_me:9670: checking for _nc_TABSIZE" >&5
9671 echo $ECHO_N "checking for _nc_TABSIZE... $ECHO_C" >&6
9672 if test "${ac_cv_func__nc_TABSIZE+set}" = set; then
9673 echo $ECHO_N "(cached) $ECHO_C" >&6
9675 cat >conftest.$ac_ext <<_ACEOF
9676 #line 9676 "configure"
9677 #include "confdefs.h"
9678 /* System header to define __stub macros and hopefully few prototypes,
9679 which can conflict with char _nc_TABSIZE (); below. */
9681 /* Override any gcc2 internal prototype to avoid an error. */
9685 /* We use char because int might match the return type of a gcc2
9686 builtin and then its argument prototype would still apply. */
9687 char _nc_TABSIZE ();
9693 /* The GNU C library defines this for functions which it implements
9694 to always fail with ENOSYS. Some functions are actually named
9695 something starting with __ and the normal name is an alias. */
9696 #if defined (__stub__nc_TABSIZE) || defined (__stub____nc_TABSIZE)
9706 rm -f conftest.$ac_objext conftest$ac_exeext
9707 if { (eval echo "$as_me:9707: \"$ac_link\"") >&5
9708 (eval $ac_link) 2>&5
9710 echo "$as_me:9710: \$? = $ac_status" >&5
9711 (exit $ac_status); } &&
9712 { ac_try='test -s conftest$ac_exeext'
9713 { (eval echo "$as_me:9713: \"$ac_try\"") >&5
9716 echo "$as_me:9716: \$? = $ac_status" >&5
9717 (exit $ac_status); }; }; then
9718 ac_cv_func__nc_TABSIZE=yes
9720 echo "$as_me: failed program was:" >&5
9721 cat conftest.$ac_ext >&5
9722 ac_cv_func__nc_TABSIZE=no
9724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9726 echo "$as_me:9726: result: $ac_cv_func__nc_TABSIZE" >&5
9727 echo "${ECHO_T}$ac_cv_func__nc_TABSIZE" >&6
9728 if test $ac_cv_func__nc_TABSIZE = yes; then
9729 assume_reentrant=yes
9734 # Reentrant code has to be opaque; there's little advantage to making ncurses
9735 # opaque outside of that, so there is no --enable-opaque option. We can use
9736 # this option without --with-pthreads, but this will be always set for
9738 echo "$as_me:9738: checking if you want experimental reentrant code" >&5
9739 echo $ECHO_N "checking if you want experimental reentrant code... $ECHO_C" >&6
9741 # Check whether --enable-reentrant or --disable-reentrant was given.
9742 if test "${enable_reentrant+set}" = set; then
9743 enableval="$enable_reentrant"
9744 with_reentrant=$enableval
9746 with_reentrant=$assume_reentrant
9748 echo "$as_me:9748: result: $with_reentrant" >&5
9749 echo "${ECHO_T}$with_reentrant" >&6
9750 if test "$with_reentrant" = yes ; then
9751 cf_cv_enable_reentrant=1
9752 if test $cf_cv_weak_symbols = yes ; then
9754 # remove pthread library from $LIBS
9755 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
9757 elif test "$assume_reentrant" = no ; then
9758 LIB_SUFFIX="t${LIB_SUFFIX}"
9760 cat >>confdefs.h <<\EOF
9761 #define USE_REENTRANT 1
9765 cf_cv_enable_reentrant=0
9768 ### Allow using a different wrap-prefix
9769 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
9770 echo "$as_me:9770: checking for prefix used to wrap public variables" >&5
9771 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
9773 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
9774 if test "${with_wrap_prefix+set}" = set; then
9775 withval="$with_wrap_prefix"
9776 NCURSES_WRAP_PREFIX=$withval
9778 NCURSES_WRAP_PREFIX=_nc_
9780 echo "$as_me:9780: result: $NCURSES_WRAP_PREFIX" >&5
9781 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
9783 NCURSES_WRAP_PREFIX=_nc_
9786 cat >>confdefs.h <<EOF
9787 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
9790 ###############################################################################
9792 ### use option --disable-echo to suppress full display compiling commands
9793 echo "$as_me:9793: checking if you want to display full commands during build" >&5
9794 echo $ECHO_N "checking if you want to display full commands during build... $ECHO_C" >&6
9796 # Check whether --enable-echo or --disable-echo was given.
9797 if test "${enable_echo+set}" = set; then
9798 enableval="$enable_echo"
9799 with_echo=$enableval
9803 if test "$with_echo" = yes; then
9806 ECHO_LINK='@ echo linking $@ ... ;'
9808 echo "$as_me:9808: result: $with_echo" >&5
9809 echo "${ECHO_T}$with_echo" >&6
9811 ### use option --enable-warnings to turn on all gcc warnings
9812 echo "$as_me:9812: checking if you want to see compiler warnings" >&5
9813 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
9815 # Check whether --enable-warnings or --disable-warnings was given.
9816 if test "${enable_warnings+set}" = set; then
9817 enableval="$enable_warnings"
9818 with_warnings=$enableval
9820 echo "$as_me:9820: result: $with_warnings" >&5
9821 echo "${ECHO_T}$with_warnings" >&6
9823 if test "x$with_warnings" = "xyes"; then
9825 ADAFLAGS="$ADAFLAGS -gnatg"
9829 if test "$GCC" = yes ; then
9832 echo "$as_me:9832: checking if this is really Intel C compiler" >&5
9833 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
9834 cf_save_CFLAGS="$CFLAGS"
9835 CFLAGS="$CFLAGS -no-gcc"
9836 cat >conftest.$ac_ext <<_ACEOF
9837 #line 9837 "configure"
9838 #include "confdefs.h"
9844 #ifdef __INTEL_COMPILER
9853 rm -f conftest.$ac_objext
9854 if { (eval echo "$as_me:9854: \"$ac_compile\"") >&5
9855 (eval $ac_compile) 2>&5
9857 echo "$as_me:9857: \$? = $ac_status" >&5
9858 (exit $ac_status); } &&
9859 { ac_try='test -s conftest.$ac_objext'
9860 { (eval echo "$as_me:9860: \"$ac_try\"") >&5
9863 echo "$as_me:9863: \$? = $ac_status" >&5
9864 (exit $ac_status); }; }; then
9866 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
9869 echo "$as_me: failed program was:" >&5
9870 cat conftest.$ac_ext >&5
9872 rm -f conftest.$ac_objext conftest.$ac_ext
9873 CFLAGS="$cf_save_CFLAGS"
9874 echo "$as_me:9874: result: $INTEL_COMPILER" >&5
9875 echo "${ECHO_T}$INTEL_COMPILER" >&6
9880 cat > conftest.$ac_ext <<EOF
9881 #line 9881 "${as_me:-configure}"
9882 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
9885 if test "$INTEL_COMPILER" = yes
9887 # The "-wdXXX" options suppress warnings:
9888 # remark #1419: external declaration in primary source file
9889 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
9890 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
9891 # remark #193: zero used for undefined preprocessing identifier
9892 # remark #593: variable "curs_sb_left_arrow" was set but never used
9893 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
9894 # remark #869: parameter "tw" was never referenced
9895 # remark #981: operands are evaluated in unspecified order
9896 # warning #279: controlling expression is constant
9898 { echo "$as_me:9898: checking for $CC warning options..." >&5
9899 echo "$as_me: checking for $CC warning options..." >&6;}
9900 cf_save_CFLAGS="$CFLAGS"
9901 EXTRA_CFLAGS="-Wall"
9913 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
9914 if { (eval echo "$as_me:9914: \"$ac_compile\"") >&5
9915 (eval $ac_compile) 2>&5
9917 echo "$as_me:9917: \$? = $ac_status" >&5
9918 (exit $ac_status); }; then
9919 test -n "$verbose" && echo "$as_me:9919: result: ... -$cf_opt" >&5
9920 echo "${ECHO_T}... -$cf_opt" >&6
9921 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
9924 CFLAGS="$cf_save_CFLAGS"
9926 elif test "$GCC" = yes
9928 { echo "$as_me:9928: checking for $CC warning options..." >&5
9929 echo "$as_me: checking for $CC warning options..." >&6;}
9930 cf_save_CFLAGS="$CFLAGS"
9933 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
9934 for cf_opt in W Wall \
9935 Wbad-function-cast \
9939 Wmissing-declarations \
9940 Wmissing-prototypes \
9944 Wstrict-prototypes \
9945 Wundef $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum
9947 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
9948 if { (eval echo "$as_me:9948: \"$ac_compile\"") >&5
9949 (eval $ac_compile) 2>&5
9951 echo "$as_me:9951: \$? = $ac_status" >&5
9952 (exit $ac_status); }; then
9953 test -n "$verbose" && echo "$as_me:9953: result: ... -$cf_opt" >&5
9954 echo "${ECHO_T}... -$cf_opt" >&6
9955 case $cf_opt in #(vi
9957 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
9960 case $GCC_VERSION in
9962 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
9964 echo "${as_me:-configure}:9964: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
9970 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
9973 CFLAGS="$cf_save_CFLAGS"
9979 if test "$GCC" = yes
9981 cat > conftest.i <<EOF
9983 #define GCC_PRINTF 0
9988 #ifndef GCC_NORETURN
9989 #define GCC_NORETURN /* nothing */
9992 #define GCC_UNUSED /* nothing */
9995 if test "$GCC" = yes
9997 { echo "$as_me:9997: checking for $CC __attribute__ directives..." >&5
9998 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
9999 cat > conftest.$ac_ext <<EOF
10000 #line 10000 "${as_me:-configure}"
10001 #include "confdefs.h"
10002 #include "conftest.h"
10003 #include "conftest.i"
10005 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
10007 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
10010 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
10012 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
10014 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
10015 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
10016 extern void foo(void) GCC_NORETURN;
10017 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
10019 cf_printf_attribute=no
10020 cf_scanf_attribute=no
10021 for cf_attribute in scanf printf unused noreturn
10024 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
10026 cf_directive="__attribute__(($cf_attribute))"
10027 echo "checking for $CC $cf_directive" 1>&5
10029 case $cf_attribute in #(vi
10031 cf_printf_attribute=yes
10032 cat >conftest.h <<EOF
10033 #define GCC_$cf_ATTRIBUTE 1
10037 cf_scanf_attribute=yes
10038 cat >conftest.h <<EOF
10039 #define GCC_$cf_ATTRIBUTE 1
10043 cat >conftest.h <<EOF
10044 #define GCC_$cf_ATTRIBUTE $cf_directive
10049 if { (eval echo "$as_me:10049: \"$ac_compile\"") >&5
10050 (eval $ac_compile) 2>&5
10052 echo "$as_me:10052: \$? = $ac_status" >&5
10053 (exit $ac_status); }; then
10054 test -n "$verbose" && echo "$as_me:10054: result: ... $cf_attribute" >&5
10055 echo "${ECHO_T}... $cf_attribute" >&6
10056 cat conftest.h >>confdefs.h
10057 case $cf_attribute in #(vi
10059 if test "$cf_printf_attribute" = no ; then
10060 cat >>confdefs.h <<EOF
10061 #define GCC_PRINTFLIKE(fmt,var) /* nothing */
10064 cat >>confdefs.h <<EOF
10065 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
10070 if test "$cf_scanf_attribute" = no ; then
10071 cat >>confdefs.h <<EOF
10072 #define GCC_SCANFLIKE(fmt,var) /* nothing */
10075 cat >>confdefs.h <<EOF
10076 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
10084 fgrep define conftest.i >>confdefs.h
10089 ### use option --enable-assertions to turn on generation of assertion code
10090 echo "$as_me:10090: checking if you want to enable runtime assertions" >&5
10091 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
10093 # Check whether --enable-assertions or --disable-assertions was given.
10094 if test "${enable_assertions+set}" = set; then
10095 enableval="$enable_assertions"
10096 with_assertions=$enableval
10100 echo "$as_me:10100: result: $with_assertions" >&5
10101 echo "${ECHO_T}$with_assertions" >&6
10104 if test "$with_assertions" = no
10106 cat >>confdefs.h <<\EOF
10110 CPPFLAGS="$CPPFLAGS -DNDEBUG"
10113 ADAFLAGS="$ADAFLAGS -gnata"
10118 ### use option --disable-leaks to suppress "permanent" leaks, for testing
10119 cat >>confdefs.h <<\EOF
10120 #define HAVE_NC_ALLOC_H 1
10123 ### use option --enable-expanded to generate certain macros as functions
10125 # Check whether --enable-expanded or --disable-expanded was given.
10126 if test "${enable_expanded+set}" = set; then
10127 enableval="$enable_expanded"
10128 test "$enableval" = yes && cat >>confdefs.h <<\EOF
10129 #define NCURSES_EXPANDED 1
10134 ### use option --disable-macros to suppress macros in favor of functions
10136 # Check whether --enable-macros or --disable-macros was given.
10137 if test "${enable_macros+set}" = set; then
10138 enableval="$enable_macros"
10139 test "$enableval" = no && cat >>confdefs.h <<\EOF
10140 #define NCURSES_NOMACROS 1
10145 # Normally we only add trace() to the debug-library. Allow this to be
10146 # extended to all models of the ncurses library:
10148 case "$CFLAGS $CPPFLAGS" in
10154 echo "$as_me:10154: checking whether to add trace feature to all models" >&5
10155 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
10157 # Check whether --with-trace or --without-trace was given.
10158 if test "${with_trace+set}" = set; then
10159 withval="$with_trace"
10160 cf_with_trace=$withval
10162 cf_with_trace=$cf_all_traces
10164 echo "$as_me:10164: result: $cf_with_trace" >&5
10165 echo "${ECHO_T}$cf_with_trace" >&6
10167 if test "$cf_with_trace" = yes ; then
10173 cf_new_extra_cppflags=
10175 for cf_add_cflags in -DTRACE
10177 case $cf_fix_cppflags in
10179 case $cf_add_cflags in #(vi
10180 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10181 case $cf_add_cflags in
10183 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10185 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10186 && test -z "${cf_tst_cflags}" \
10187 && cf_fix_cppflags=yes
10189 if test $cf_fix_cppflags = yes ; then
10190 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10192 elif test "${cf_tst_cflags}" = "\"'" ; then
10193 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10198 case "$CPPFLAGS" in
10199 *$cf_add_cflags) #(vi
10202 case $cf_add_cflags in #(vi
10204 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10206 CPPFLAGS=`echo "$CPPFLAGS" | \
10207 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10208 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10212 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10217 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10222 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10224 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10226 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10227 && test -z "${cf_tst_cflags}" \
10228 && cf_fix_cppflags=no
10233 if test -n "$cf_new_cflags" ; then
10235 CFLAGS="$CFLAGS $cf_new_cflags"
10238 if test -n "$cf_new_cppflags" ; then
10240 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10243 if test -n "$cf_new_extra_cppflags" ; then
10245 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10252 ### Checks for libraries.
10253 case $cf_cv_system_name in #(vi
10257 echo "$as_me:10257: checking for gettimeofday" >&5
10258 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
10259 if test "${ac_cv_func_gettimeofday+set}" = set; then
10260 echo $ECHO_N "(cached) $ECHO_C" >&6
10262 cat >conftest.$ac_ext <<_ACEOF
10263 #line 10263 "configure"
10264 #include "confdefs.h"
10265 /* System header to define __stub macros and hopefully few prototypes,
10266 which can conflict with char gettimeofday (); below. */
10267 #include <assert.h>
10268 /* Override any gcc2 internal prototype to avoid an error. */
10272 /* We use char because int might match the return type of a gcc2
10273 builtin and then its argument prototype would still apply. */
10274 char gettimeofday ();
10280 /* The GNU C library defines this for functions which it implements
10281 to always fail with ENOSYS. Some functions are actually named
10282 something starting with __ and the normal name is an alias. */
10283 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
10293 rm -f conftest.$ac_objext conftest$ac_exeext
10294 if { (eval echo "$as_me:10294: \"$ac_link\"") >&5
10295 (eval $ac_link) 2>&5
10297 echo "$as_me:10297: \$? = $ac_status" >&5
10298 (exit $ac_status); } &&
10299 { ac_try='test -s conftest$ac_exeext'
10300 { (eval echo "$as_me:10300: \"$ac_try\"") >&5
10301 (eval $ac_try) 2>&5
10303 echo "$as_me:10303: \$? = $ac_status" >&5
10304 (exit $ac_status); }; }; then
10305 ac_cv_func_gettimeofday=yes
10307 echo "$as_me: failed program was:" >&5
10308 cat conftest.$ac_ext >&5
10309 ac_cv_func_gettimeofday=no
10311 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10313 echo "$as_me:10313: result: $ac_cv_func_gettimeofday" >&5
10314 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
10315 if test $ac_cv_func_gettimeofday = yes; then
10316 cat >>confdefs.h <<\EOF
10317 #define HAVE_GETTIMEOFDAY 1
10322 echo "$as_me:10322: checking for gettimeofday in -lbsd" >&5
10323 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
10324 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
10325 echo $ECHO_N "(cached) $ECHO_C" >&6
10327 ac_check_lib_save_LIBS=$LIBS
10329 cat >conftest.$ac_ext <<_ACEOF
10330 #line 10330 "configure"
10331 #include "confdefs.h"
10333 /* Override any gcc2 internal prototype to avoid an error. */
10337 /* We use char because int might match the return type of a gcc2
10338 builtin and then its argument prototype would still apply. */
10339 char gettimeofday ();
10348 rm -f conftest.$ac_objext conftest$ac_exeext
10349 if { (eval echo "$as_me:10349: \"$ac_link\"") >&5
10350 (eval $ac_link) 2>&5
10352 echo "$as_me:10352: \$? = $ac_status" >&5
10353 (exit $ac_status); } &&
10354 { ac_try='test -s conftest$ac_exeext'
10355 { (eval echo "$as_me:10355: \"$ac_try\"") >&5
10356 (eval $ac_try) 2>&5
10358 echo "$as_me:10358: \$? = $ac_status" >&5
10359 (exit $ac_status); }; }; then
10360 ac_cv_lib_bsd_gettimeofday=yes
10362 echo "$as_me: failed program was:" >&5
10363 cat conftest.$ac_ext >&5
10364 ac_cv_lib_bsd_gettimeofday=no
10366 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10367 LIBS=$ac_check_lib_save_LIBS
10369 echo "$as_me:10369: result: $ac_cv_lib_bsd_gettimeofday" >&5
10370 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
10371 if test $ac_cv_lib_bsd_gettimeofday = yes; then
10372 cat >>confdefs.h <<\EOF
10373 #define HAVE_GETTIMEOFDAY 1
10383 ### Checks for header files.
10384 echo "$as_me:10384: checking for ANSI C header files" >&5
10385 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10386 if test "${ac_cv_header_stdc+set}" = set; then
10387 echo $ECHO_N "(cached) $ECHO_C" >&6
10389 cat >conftest.$ac_ext <<_ACEOF
10390 #line 10390 "configure"
10391 #include "confdefs.h"
10392 #include <stdlib.h>
10393 #include <stdarg.h>
10394 #include <string.h>
10398 if { (eval echo "$as_me:10398: \"$ac_cpp conftest.$ac_ext\"") >&5
10399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10401 egrep -v '^ *\+' conftest.er1 >conftest.err
10403 cat conftest.err >&5
10404 echo "$as_me:10404: \$? = $ac_status" >&5
10405 (exit $ac_status); } >/dev/null; then
10406 if test -s conftest.err; then
10407 ac_cpp_err=$ac_c_preproc_warn_flag
10414 if test -z "$ac_cpp_err"; then
10415 ac_cv_header_stdc=yes
10417 echo "$as_me: failed program was:" >&5
10418 cat conftest.$ac_ext >&5
10419 ac_cv_header_stdc=no
10421 rm -f conftest.err conftest.$ac_ext
10423 if test $ac_cv_header_stdc = yes; then
10424 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10425 cat >conftest.$ac_ext <<_ACEOF
10426 #line 10426 "configure"
10427 #include "confdefs.h"
10428 #include <string.h>
10431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10432 egrep "memchr" >/dev/null 2>&1; then
10435 ac_cv_header_stdc=no
10441 if test $ac_cv_header_stdc = yes; then
10442 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10443 cat >conftest.$ac_ext <<_ACEOF
10444 #line 10444 "configure"
10445 #include "confdefs.h"
10446 #include <stdlib.h>
10449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10450 egrep "free" >/dev/null 2>&1; then
10453 ac_cv_header_stdc=no
10459 if test $ac_cv_header_stdc = yes; then
10460 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10461 if test "$cross_compiling" = yes; then
10464 cat >conftest.$ac_ext <<_ACEOF
10465 #line 10465 "configure"
10466 #include "confdefs.h"
10468 #if ((' ' & 0x0FF) == 0x020)
10469 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10470 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10472 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
10473 || ('j' <= (c) && (c) <= 'r') \
10474 || ('s' <= (c) && (c) <= 'z'))
10475 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10478 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10483 for (i = 0; i < 256; i++)
10484 if (XOR (islower (i), ISLOWER (i))
10485 || toupper (i) != TOUPPER (i))
10486 $ac_main_return(2);
10487 $ac_main_return (0);
10490 rm -f conftest$ac_exeext
10491 if { (eval echo "$as_me:10491: \"$ac_link\"") >&5
10492 (eval $ac_link) 2>&5
10494 echo "$as_me:10494: \$? = $ac_status" >&5
10495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10496 { (eval echo "$as_me:10496: \"$ac_try\"") >&5
10497 (eval $ac_try) 2>&5
10499 echo "$as_me:10499: \$? = $ac_status" >&5
10500 (exit $ac_status); }; }; then
10503 echo "$as_me: program exited with status $ac_status" >&5
10504 echo "$as_me: failed program was:" >&5
10505 cat conftest.$ac_ext >&5
10506 ac_cv_header_stdc=no
10508 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10512 echo "$as_me:10512: result: $ac_cv_header_stdc" >&5
10513 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10514 if test $ac_cv_header_stdc = yes; then
10516 cat >>confdefs.h <<\EOF
10517 #define STDC_HEADERS 1
10522 ac_header_dirent=no
10523 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10524 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10525 echo "$as_me:10525: checking for $ac_hdr that defines DIR" >&5
10526 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
10527 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10528 echo $ECHO_N "(cached) $ECHO_C" >&6
10530 cat >conftest.$ac_ext <<_ACEOF
10531 #line 10531 "configure"
10532 #include "confdefs.h"
10533 #include <sys/types.h>
10545 rm -f conftest.$ac_objext
10546 if { (eval echo "$as_me:10546: \"$ac_compile\"") >&5
10547 (eval $ac_compile) 2>&5
10549 echo "$as_me:10549: \$? = $ac_status" >&5
10550 (exit $ac_status); } &&
10551 { ac_try='test -s conftest.$ac_objext'
10552 { (eval echo "$as_me:10552: \"$ac_try\"") >&5
10553 (eval $ac_try) 2>&5
10555 echo "$as_me:10555: \$? = $ac_status" >&5
10556 (exit $ac_status); }; }; then
10557 eval "$as_ac_Header=yes"
10559 echo "$as_me: failed program was:" >&5
10560 cat conftest.$ac_ext >&5
10561 eval "$as_ac_Header=no"
10563 rm -f conftest.$ac_objext conftest.$ac_ext
10565 echo "$as_me:10565: result: `eval echo '${'$as_ac_Header'}'`" >&5
10566 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10567 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10568 cat >>confdefs.h <<EOF
10569 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10572 ac_header_dirent=$ac_hdr; break
10576 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10577 if test $ac_header_dirent = dirent.h; then
10578 echo "$as_me:10578: checking for opendir in -ldir" >&5
10579 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
10580 if test "${ac_cv_lib_dir_opendir+set}" = set; then
10581 echo $ECHO_N "(cached) $ECHO_C" >&6
10583 ac_check_lib_save_LIBS=$LIBS
10585 cat >conftest.$ac_ext <<_ACEOF
10586 #line 10586 "configure"
10587 #include "confdefs.h"
10589 /* Override any gcc2 internal prototype to avoid an error. */
10593 /* We use char because int might match the return type of a gcc2
10594 builtin and then its argument prototype would still apply. */
10604 rm -f conftest.$ac_objext conftest$ac_exeext
10605 if { (eval echo "$as_me:10605: \"$ac_link\"") >&5
10606 (eval $ac_link) 2>&5
10608 echo "$as_me:10608: \$? = $ac_status" >&5
10609 (exit $ac_status); } &&
10610 { ac_try='test -s conftest$ac_exeext'
10611 { (eval echo "$as_me:10611: \"$ac_try\"") >&5
10612 (eval $ac_try) 2>&5
10614 echo "$as_me:10614: \$? = $ac_status" >&5
10615 (exit $ac_status); }; }; then
10616 ac_cv_lib_dir_opendir=yes
10618 echo "$as_me: failed program was:" >&5
10619 cat conftest.$ac_ext >&5
10620 ac_cv_lib_dir_opendir=no
10622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10623 LIBS=$ac_check_lib_save_LIBS
10625 echo "$as_me:10625: result: $ac_cv_lib_dir_opendir" >&5
10626 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
10627 if test $ac_cv_lib_dir_opendir = yes; then
10632 echo "$as_me:10632: checking for opendir in -lx" >&5
10633 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
10634 if test "${ac_cv_lib_x_opendir+set}" = set; then
10635 echo $ECHO_N "(cached) $ECHO_C" >&6
10637 ac_check_lib_save_LIBS=$LIBS
10639 cat >conftest.$ac_ext <<_ACEOF
10640 #line 10640 "configure"
10641 #include "confdefs.h"
10643 /* Override any gcc2 internal prototype to avoid an error. */
10647 /* We use char because int might match the return type of a gcc2
10648 builtin and then its argument prototype would still apply. */
10658 rm -f conftest.$ac_objext conftest$ac_exeext
10659 if { (eval echo "$as_me:10659: \"$ac_link\"") >&5
10660 (eval $ac_link) 2>&5
10662 echo "$as_me:10662: \$? = $ac_status" >&5
10663 (exit $ac_status); } &&
10664 { ac_try='test -s conftest$ac_exeext'
10665 { (eval echo "$as_me:10665: \"$ac_try\"") >&5
10666 (eval $ac_try) 2>&5
10668 echo "$as_me:10668: \$? = $ac_status" >&5
10669 (exit $ac_status); }; }; then
10670 ac_cv_lib_x_opendir=yes
10672 echo "$as_me: failed program was:" >&5
10673 cat conftest.$ac_ext >&5
10674 ac_cv_lib_x_opendir=no
10676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10677 LIBS=$ac_check_lib_save_LIBS
10679 echo "$as_me:10679: result: $ac_cv_lib_x_opendir" >&5
10680 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
10681 if test $ac_cv_lib_x_opendir = yes; then
10687 echo "$as_me:10687: checking whether time.h and sys/time.h may both be included" >&5
10688 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10689 if test "${ac_cv_header_time+set}" = set; then
10690 echo $ECHO_N "(cached) $ECHO_C" >&6
10692 cat >conftest.$ac_ext <<_ACEOF
10693 #line 10693 "configure"
10694 #include "confdefs.h"
10695 #include <sys/types.h>
10696 #include <sys/time.h>
10702 if ((struct tm *) 0)
10708 rm -f conftest.$ac_objext
10709 if { (eval echo "$as_me:10709: \"$ac_compile\"") >&5
10710 (eval $ac_compile) 2>&5
10712 echo "$as_me:10712: \$? = $ac_status" >&5
10713 (exit $ac_status); } &&
10714 { ac_try='test -s conftest.$ac_objext'
10715 { (eval echo "$as_me:10715: \"$ac_try\"") >&5
10716 (eval $ac_try) 2>&5
10718 echo "$as_me:10718: \$? = $ac_status" >&5
10719 (exit $ac_status); }; }; then
10720 ac_cv_header_time=yes
10722 echo "$as_me: failed program was:" >&5
10723 cat conftest.$ac_ext >&5
10724 ac_cv_header_time=no
10726 rm -f conftest.$ac_objext conftest.$ac_ext
10728 echo "$as_me:10728: result: $ac_cv_header_time" >&5
10729 echo "${ECHO_T}$ac_cv_header_time" >&6
10730 if test $ac_cv_header_time = yes; then
10732 cat >>confdefs.h <<\EOF
10733 #define TIME_WITH_SYS_TIME 1
10738 ### checks for compiler characteristics
10740 ac_cpp='$CPP $CPPFLAGS'
10741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10744 ac_main_return=return
10746 echo "$as_me:10746: checking for $CC option to accept ANSI C" >&5
10747 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10748 if test "${ac_cv_prog_cc_stdc+set}" = set; then
10749 echo $ECHO_N "(cached) $ECHO_C" >&6
10751 ac_cv_prog_cc_stdc=no
10753 cat >conftest.$ac_ext <<_ACEOF
10754 #line 10754 "configure"
10755 #include "confdefs.h"
10756 #include <stdarg.h>
10758 #include <sys/types.h>
10759 #include <sys/stat.h>
10760 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10761 struct buf { int x; };
10762 FILE * (*rcsopen) (struct buf *, struct stat *, int);
10763 static char *e (p, i)
10769 static char *f (char * (*g) (char **, int), char **p, ...)
10774 s = g (p, va_arg (v,int));
10778 int test (int i, double x);
10779 struct s1 {int (*f) (int a);};
10780 struct s2 {int (*f) (double a);};
10781 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10787 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10792 # Don't try gcc -ansi; that turns off useful extensions and
10793 # breaks some systems' header files.
10794 # AIX -qlanglvl=ansi
10795 # Ultrix and OSF/1 -std1
10796 # HP-UX 10.20 and later -Ae
10797 # HP-UX older versions -Aa -D_HPUX_SOURCE
10798 # SVR4 -Xc -D__EXTENSIONS__
10799 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10801 CC="$ac_save_CC $ac_arg"
10802 rm -f conftest.$ac_objext
10803 if { (eval echo "$as_me:10803: \"$ac_compile\"") >&5
10804 (eval $ac_compile) 2>&5
10806 echo "$as_me:10806: \$? = $ac_status" >&5
10807 (exit $ac_status); } &&
10808 { ac_try='test -s conftest.$ac_objext'
10809 { (eval echo "$as_me:10809: \"$ac_try\"") >&5
10810 (eval $ac_try) 2>&5
10812 echo "$as_me:10812: \$? = $ac_status" >&5
10813 (exit $ac_status); }; }; then
10814 ac_cv_prog_cc_stdc=$ac_arg
10817 echo "$as_me: failed program was:" >&5
10818 cat conftest.$ac_ext >&5
10820 rm -f conftest.$ac_objext
10822 rm -f conftest.$ac_ext conftest.$ac_objext
10827 case "x$ac_cv_prog_cc_stdc" in
10829 echo "$as_me:10829: result: none needed" >&5
10830 echo "${ECHO_T}none needed" >&6 ;;
10832 echo "$as_me:10832: result: $ac_cv_prog_cc_stdc" >&5
10833 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10834 CC="$CC $ac_cv_prog_cc_stdc" ;;
10837 echo "$as_me:10837: checking for an ANSI C-conforming const" >&5
10838 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10839 if test "${ac_cv_c_const+set}" = set; then
10840 echo $ECHO_N "(cached) $ECHO_C" >&6
10842 cat >conftest.$ac_ext <<_ACEOF
10843 #line 10843 "configure"
10844 #include "confdefs.h"
10849 /* FIXME: Include the comments suggested by Paul. */
10850 #ifndef __cplusplus
10851 /* Ultrix mips cc rejects this. */
10852 typedef int charset[2];
10854 /* SunOS 4.1.1 cc rejects this. */
10855 char const *const *ccp;
10857 /* NEC SVR4.0.2 mips cc rejects this. */
10858 struct point {int x, y;};
10859 static struct point const zero = {0,0};
10860 /* AIX XL C 1.02.0.0 rejects this.
10861 It does not let you subtract one const X* pointer from another in
10862 an arm of an if-expression whose if-part is not a constant
10864 const char *g = "string";
10865 ccp = &g + (g ? g-g : 0);
10866 /* HPUX 7.0 cc rejects these. */
10869 ccp = (char const *const *) p;
10870 { /* SCO 3.2v4 cc rejects this. */
10872 char const *s = 0 ? (char *) 0 : (char const *) 0;
10876 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10877 int x[] = {25, 17};
10878 const int *foo = &x[0];
10881 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10882 typedef const int *iptr;
10886 { /* AIX XL C 1.02.0.0 rejects this saying
10887 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10888 struct s { int j; const int *ap[3]; };
10889 struct s *b; b->j = 5;
10891 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10892 const int foo = 10;
10900 rm -f conftest.$ac_objext
10901 if { (eval echo "$as_me:10901: \"$ac_compile\"") >&5
10902 (eval $ac_compile) 2>&5
10904 echo "$as_me:10904: \$? = $ac_status" >&5
10905 (exit $ac_status); } &&
10906 { ac_try='test -s conftest.$ac_objext'
10907 { (eval echo "$as_me:10907: \"$ac_try\"") >&5
10908 (eval $ac_try) 2>&5
10910 echo "$as_me:10910: \$? = $ac_status" >&5
10911 (exit $ac_status); }; }; then
10914 echo "$as_me: failed program was:" >&5
10915 cat conftest.$ac_ext >&5
10918 rm -f conftest.$ac_objext conftest.$ac_ext
10920 echo "$as_me:10920: result: $ac_cv_c_const" >&5
10921 echo "${ECHO_T}$ac_cv_c_const" >&6
10922 if test $ac_cv_c_const = no; then
10924 cat >>confdefs.h <<\EOF
10930 ### Checks for external-data
10932 echo "$as_me:10932: checking if data-only library module links" >&5
10933 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
10934 if test "${cf_cv_link_dataonly+set}" = set; then
10935 echo $ECHO_N "(cached) $ECHO_C" >&6
10939 cat >conftest.$ac_ext <<EOF
10940 #line 10940 "configure"
10941 int testdata[3] = { 123, 456, 789 };
10943 if { (eval echo "$as_me:10943: \"$ac_compile\"") >&5
10944 (eval $ac_compile) 2>&5
10946 echo "$as_me:10946: \$? = $ac_status" >&5
10947 (exit $ac_status); } ; then
10948 mv conftest.o data.o && \
10949 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
10951 rm -f conftest.$ac_ext data.o
10952 cat >conftest.$ac_ext <<EOF
10953 #line 10953 "configure"
10957 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
10959 extern int testdata[3];
10960 return testdata[0] == 123
10961 && testdata[1] == 456
10962 && testdata[2] == 789;
10966 if { (eval echo "$as_me:10966: \"$ac_compile\"") >&5
10967 (eval $ac_compile) 2>&5
10969 echo "$as_me:10969: \$? = $ac_status" >&5
10970 (exit $ac_status); }; then
10971 mv conftest.o func.o && \
10972 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
10974 rm -f conftest.$ac_ext func.o
10975 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
10976 cf_saveLIBS="$LIBS"
10977 LIBS="conftest.a $LIBS"
10978 if test "$cross_compiling" = yes; then
10979 cf_cv_link_dataonly=unknown
10981 cat >conftest.$ac_ext <<_ACEOF
10982 #line 10982 "configure"
10983 #include "confdefs.h"
10987 extern int testfunc();
10988 ${cf_cv_main_return:-return} (!testfunc());
10992 rm -f conftest$ac_exeext
10993 if { (eval echo "$as_me:10993: \"$ac_link\"") >&5
10994 (eval $ac_link) 2>&5
10996 echo "$as_me:10996: \$? = $ac_status" >&5
10997 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10998 { (eval echo "$as_me:10998: \"$ac_try\"") >&5
10999 (eval $ac_try) 2>&5
11001 echo "$as_me:11001: \$? = $ac_status" >&5
11002 (exit $ac_status); }; }; then
11003 cf_cv_link_dataonly=yes
11005 echo "$as_me: program exited with status $ac_status" >&5
11006 echo "$as_me: failed program was:" >&5
11007 cat conftest.$ac_ext >&5
11008 cf_cv_link_dataonly=no
11010 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11012 LIBS="$cf_saveLIBS"
11016 echo "$as_me:11016: result: $cf_cv_link_dataonly" >&5
11017 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
11019 if test "$cf_cv_link_dataonly" = no ; then
11020 cat >>confdefs.h <<\EOF
11021 #define BROKEN_LINKER 1
11027 ### Checks for library functions.
11029 echo "$as_me:11029: checking for working mkstemp" >&5
11030 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
11031 if test "${cf_cv_func_mkstemp+set}" = set; then
11032 echo $ECHO_N "(cached) $ECHO_C" >&6
11036 if test "$cross_compiling" = yes; then
11037 echo "$as_me:11037: checking for mkstemp" >&5
11038 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
11039 if test "${ac_cv_func_mkstemp+set}" = set; then
11040 echo $ECHO_N "(cached) $ECHO_C" >&6
11042 cat >conftest.$ac_ext <<_ACEOF
11043 #line 11043 "configure"
11044 #include "confdefs.h"
11045 /* System header to define __stub macros and hopefully few prototypes,
11046 which can conflict with char mkstemp (); below. */
11047 #include <assert.h>
11048 /* Override any gcc2 internal prototype to avoid an error. */
11052 /* We use char because int might match the return type of a gcc2
11053 builtin and then its argument prototype would still apply. */
11060 /* The GNU C library defines this for functions which it implements
11061 to always fail with ENOSYS. Some functions are actually named
11062 something starting with __ and the normal name is an alias. */
11063 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
11073 rm -f conftest.$ac_objext conftest$ac_exeext
11074 if { (eval echo "$as_me:11074: \"$ac_link\"") >&5
11075 (eval $ac_link) 2>&5
11077 echo "$as_me:11077: \$? = $ac_status" >&5
11078 (exit $ac_status); } &&
11079 { ac_try='test -s conftest$ac_exeext'
11080 { (eval echo "$as_me:11080: \"$ac_try\"") >&5
11081 (eval $ac_try) 2>&5
11083 echo "$as_me:11083: \$? = $ac_status" >&5
11084 (exit $ac_status); }; }; then
11085 ac_cv_func_mkstemp=yes
11087 echo "$as_me: failed program was:" >&5
11088 cat conftest.$ac_ext >&5
11089 ac_cv_func_mkstemp=no
11091 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11093 echo "$as_me:11093: result: $ac_cv_func_mkstemp" >&5
11094 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
11097 cat >conftest.$ac_ext <<_ACEOF
11098 #line 11098 "configure"
11099 #include "confdefs.h"
11101 #include <sys/types.h>
11102 #include <stdlib.h>
11104 #include <string.h>
11105 #include <sys/stat.h>
11108 char *tmpl = "conftestXXXXXX";
11116 for (n = 0; n < 2; ++n) {
11117 strcpy(name[n], tmpl);
11118 if ((fd = mkstemp(name[n])) >= 0) {
11119 if (!strcmp(name[n], tmpl)
11120 || stat(name[n], &sb) != 0
11121 || (sb.st_mode & S_IFMT) != S_IFREG
11122 || (sb.st_mode & 077) != 0) {
11129 && !strcmp(name[0], name[1]))
11131 ${cf_cv_main_return:-return}(result);
11135 rm -f conftest$ac_exeext
11136 if { (eval echo "$as_me:11136: \"$ac_link\"") >&5
11137 (eval $ac_link) 2>&5
11139 echo "$as_me:11139: \$? = $ac_status" >&5
11140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11141 { (eval echo "$as_me:11141: \"$ac_try\"") >&5
11142 (eval $ac_try) 2>&5
11144 echo "$as_me:11144: \$? = $ac_status" >&5
11145 (exit $ac_status); }; }; then
11146 cf_cv_func_mkstemp=yes
11149 echo "$as_me: program exited with status $ac_status" >&5
11150 echo "$as_me: failed program was:" >&5
11151 cat conftest.$ac_ext >&5
11152 cf_cv_func_mkstemp=no
11155 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11159 echo "$as_me:11159: result: $cf_cv_func_mkstemp" >&5
11160 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
11161 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
11162 cat >>confdefs.h <<\EOF
11163 #define HAVE_MKSTEMP 1
11168 echo "$as_me:11168: checking return type of signal handlers" >&5
11169 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11170 if test "${ac_cv_type_signal+set}" = set; then
11171 echo $ECHO_N "(cached) $ECHO_C" >&6
11173 cat >conftest.$ac_ext <<_ACEOF
11174 #line 11174 "configure"
11175 #include "confdefs.h"
11176 #include <sys/types.h>
11177 #include <signal.h>
11182 extern "C" void (*signal (int, void (*)(int)))(int);
11184 void (*signal ()) ();
11195 rm -f conftest.$ac_objext
11196 if { (eval echo "$as_me:11196: \"$ac_compile\"") >&5
11197 (eval $ac_compile) 2>&5
11199 echo "$as_me:11199: \$? = $ac_status" >&5
11200 (exit $ac_status); } &&
11201 { ac_try='test -s conftest.$ac_objext'
11202 { (eval echo "$as_me:11202: \"$ac_try\"") >&5
11203 (eval $ac_try) 2>&5
11205 echo "$as_me:11205: \$? = $ac_status" >&5
11206 (exit $ac_status); }; }; then
11207 ac_cv_type_signal=void
11209 echo "$as_me: failed program was:" >&5
11210 cat conftest.$ac_ext >&5
11211 ac_cv_type_signal=int
11213 rm -f conftest.$ac_objext conftest.$ac_ext
11215 echo "$as_me:11215: result: $ac_cv_type_signal" >&5
11216 echo "${ECHO_T}$ac_cv_type_signal" >&6
11218 cat >>confdefs.h <<EOF
11219 #define RETSIGTYPE $ac_cv_type_signal
11222 if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
11223 CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
11224 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
11228 if test "$cf_with_ada" != "no" ; then
11230 cf_ada_make=gnatmake
11231 # Extract the first word of "$cf_ada_make", so it can be a program name with args.
11232 set dummy $cf_ada_make; ac_word=$2
11233 echo "$as_me:11233: checking for $ac_word" >&5
11234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11235 if test "${ac_cv_prog_gnat_exists+set}" = set; then
11236 echo $ECHO_N "(cached) $ECHO_C" >&6
11238 if test -n "$gnat_exists"; then
11239 ac_cv_prog_gnat_exists="$gnat_exists" # Let the user override the test.
11241 ac_save_IFS=$IFS; IFS=$ac_path_separator
11243 for ac_dir in $ac_dummy; do
11245 test -z "$ac_dir" && ac_dir=.
11246 $as_executable_p "$ac_dir/$ac_word" || continue
11247 ac_cv_prog_gnat_exists="yes"
11248 echo "$as_me:11248: found $ac_dir/$ac_word" >&5
11252 test -z "$ac_cv_prog_gnat_exists" && ac_cv_prog_gnat_exists="no"
11255 gnat_exists=$ac_cv_prog_gnat_exists
11256 if test -n "$gnat_exists"; then
11257 echo "$as_me:11257: result: $gnat_exists" >&5
11258 echo "${ECHO_T}$gnat_exists" >&6
11260 echo "$as_me:11260: result: no" >&5
11261 echo "${ECHO_T}no" >&6
11264 if test "$ac_cv_prog_gnat_exists" = no; then
11266 cf_cv_prog_gnat_correct=no
11269 echo "$as_me:11269: checking for gnat version" >&5
11270 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
11271 cf_gnat_version=`${cf_ada_make:-gnatmake} -v 2>&1 | \
11272 grep '[0-9].[0-9][0-9]*' |\
11273 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
11274 echo "$as_me:11274: result: $cf_gnat_version" >&5
11275 echo "${ECHO_T}$cf_gnat_version" >&6
11277 case $cf_gnat_version in #(vi
11278 3.1[1-9]*|3.[2-9]*|[4-9].*) #(vi
11279 cf_cv_prog_gnat_correct=yes
11282 { echo "$as_me:11282: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
11283 echo "$as_me: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
11284 cf_cv_prog_gnat_correct=no
11288 # Extract the first word of "m4", so it can be a program name with args.
11289 set dummy m4; ac_word=$2
11290 echo "$as_me:11290: checking for $ac_word" >&5
11291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11292 if test "${ac_cv_prog_M4_exists+set}" = set; then
11293 echo $ECHO_N "(cached) $ECHO_C" >&6
11295 if test -n "$M4_exists"; then
11296 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
11298 ac_save_IFS=$IFS; IFS=$ac_path_separator
11300 for ac_dir in $ac_dummy; do
11302 test -z "$ac_dir" && ac_dir=.
11303 $as_executable_p "$ac_dir/$ac_word" || continue
11304 ac_cv_prog_M4_exists="yes"
11305 echo "$as_me:11305: found $ac_dir/$ac_word" >&5
11309 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
11312 M4_exists=$ac_cv_prog_M4_exists
11313 if test -n "$M4_exists"; then
11314 echo "$as_me:11314: result: $M4_exists" >&5
11315 echo "${ECHO_T}$M4_exists" >&6
11317 echo "$as_me:11317: result: no" >&5
11318 echo "${ECHO_T}no" >&6
11321 if test "$ac_cv_prog_M4_exists" = no; then
11322 cf_cv_prog_gnat_correct=no
11323 echo Ada95 binding required program m4 not found. Ada95 binding disabled.
11325 if test "$cf_cv_prog_gnat_correct" = yes; then
11326 echo "$as_me:11326: checking if GNAT works" >&5
11327 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
11329 rm -rf conftest* *~conftest*
11330 cat >>conftest.ads <<CF_EOF
11331 procedure conftest;
11333 cat >>conftest.adb <<CF_EOF
11336 procedure conftest is
11338 Text_IO.Put ("Hello World");
11340 GNAT.OS_Lib.OS_Exit (0);
11343 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
11344 if ( ./conftest 1>&5 2>&1 ) ; then
11345 cf_cv_prog_gnat_correct=yes
11347 cf_cv_prog_gnat_correct=no
11350 cf_cv_prog_gnat_correct=no
11352 rm -rf conftest* *~conftest*
11354 echo "$as_me:11354: result: $cf_cv_prog_gnat_correct" >&5
11355 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
11359 if test "$cf_cv_prog_gnat_correct" = yes; then
11361 # make ADAFLAGS consistent with CFLAGS
11365 ADAFLAGS="$ADAFLAGS -g"
11372 ADAFLAGS="$ADAFLAGS -O3"
11377 echo "$as_me:11377: checking if GNAT supports generics" >&5
11378 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
11379 case $cf_gnat_version in #(vi
11380 3.[1-9]*|[4-9].*) #(vi
11381 cf_gnat_generics=yes
11384 cf_gnat_generics=no
11387 echo "$as_me:11387: result: $cf_gnat_generics" >&5
11388 echo "${ECHO_T}$cf_gnat_generics" >&6
11390 if test "$cf_gnat_generics" = yes
11392 cf_compile_generics=generics
11393 cf_generic_objects="\${GENOBJS}"
11395 cf_compile_generics=
11396 cf_generic_objects=
11399 echo "$as_me:11399: checking if GNAT supports SIGINT" >&5
11400 echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
11401 if test "${cf_cv_gnat_sigint+set}" = set; then
11402 echo $ECHO_N "(cached) $ECHO_C" >&6
11405 rm -rf conftest* *~conftest*
11406 cat >>conftest.ads <<CF_EOF
11407 with Ada.Interrupts.Names;
11409 package ConfTest is
11411 pragma Warnings (Off); -- the next pragma exists since 3.11p
11412 pragma Unreserve_All_Interrupts;
11413 pragma Warnings (On);
11415 protected Process is
11417 function Continue return Boolean;
11418 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
11420 Done : Boolean := False;
11425 cat >>conftest.adb <<CF_EOF
11426 package body ConfTest is
11427 protected body Process is
11432 function Continue return Boolean is
11439 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
11440 cf_cv_gnat_sigint=yes
11442 cf_cv_gnat_sigint=no
11444 rm -rf conftest* *~conftest*
11447 echo "$as_me:11447: result: $cf_cv_gnat_sigint" >&5
11448 echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
11450 if test $cf_cv_gnat_sigint = yes ; then
11453 USE_GNAT_SIGINT="#"
11456 echo "$as_me:11456: checking if GNAT pragma Unreferenced works" >&5
11457 echo $ECHO_N "checking if GNAT pragma Unreferenced works... $ECHO_C" >&6
11458 if test "${cf_cv_pragma_unreferenced+set}" = set; then
11459 echo $ECHO_N "(cached) $ECHO_C" >&6
11462 rm -rf conftest* *~conftest*
11463 cat >>conftest.ads <<CF_EOF
11464 procedure conftest;
11466 cat >>conftest.adb <<CF_EOF
11469 procedure conftest is
11471 pragma Unreferenced (test);
11474 Text_IO.Put ("Hello World");
11476 GNAT.OS_Lib.OS_Exit (0);
11479 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
11480 cf_cv_pragma_unreferenced=yes
11482 cf_cv_pragma_unreferenced=no
11484 rm -rf conftest* *~conftest*
11487 echo "$as_me:11487: result: $cf_cv_pragma_unreferenced" >&5
11488 echo "${ECHO_T}$cf_cv_pragma_unreferenced" >&6
11490 # if the pragma is supported, use it (needed in the Trace code).
11491 if test $cf_cv_pragma_unreferenced = yes ; then
11497 cf_gnat_libraries=no
11498 cf_gnat_projects=no
11500 echo "$as_me:11500: checking if GNAT supports project files" >&5
11501 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
11502 case $cf_gnat_version in #(vi
11506 case $cf_cv_system_name in #(vi
11510 mkdir conftest.src conftest.bin conftest.lib
11512 rm -rf conftest* *~conftest*
11513 cat >>library.gpr <<CF_EOF
11515 Kind := External ("LIB_KIND");
11516 for Library_Name use "ConfTest";
11517 for Object_Dir use ".";
11518 for Library_ALI_Dir use External("LIBRARY_DIR");
11519 for Library_Version use External ("SONAME");
11520 for Library_Kind use Kind;
11521 for Library_Dir use External("BUILD_DIR");
11522 Source_Dir := External ("SOURCE_DIR");
11523 for Source_Dirs use (Source_Dir);
11524 package Compiler is
11525 for Default_Switches ("Ada") use
11529 "-gnatVa", -- All validity checks
11530 "-gnatwa"); -- Activate all optional errors
11534 cat >>confpackage.ads <<CF_EOF
11535 package ConfPackage is
11536 procedure conftest;
11539 cat >>confpackage.adb <<CF_EOF
11541 package body ConfPackage is
11542 procedure conftest is
11544 Text_IO.Put ("Hello World");
11549 if ( $cf_ada_make $ADAFLAGS \
11551 -XBUILD_DIR=`cd ../conftest.bin;pwd` \
11552 -XLIBRARY_DIR=`cd ../conftest.lib;pwd` \
11553 -XSOURCE_DIR=`pwd` \
11554 -XSONAME=libConfTest.so.1 \
11555 -XLIB_KIND=static 1>&5 2>&1 ) ; then
11556 cf_gnat_projects=yes
11559 if test -f conftest.lib/confpackage.ali
11561 cf_gnat_libraries=yes
11563 rm -rf conftest* *~conftest*
11568 echo "$as_me:11568: result: $cf_gnat_projects" >&5
11569 echo "${ECHO_T}$cf_gnat_projects" >&6
11571 if test $cf_gnat_projects = yes
11573 echo "$as_me:11573: checking if GNAT supports libraries" >&5
11574 echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
11575 echo "$as_me:11575: result: $cf_gnat_libraries" >&5
11576 echo "${ECHO_T}$cf_gnat_libraries" >&6
11579 if test "$cf_gnat_projects" = yes
11581 USE_OLD_MAKERULES="#"
11582 USE_GNAT_PROJECTS=""
11584 USE_OLD_MAKERULES=""
11585 USE_GNAT_PROJECTS="#"
11588 if test "$cf_gnat_libraries" = yes
11590 USE_GNAT_LIBRARIES=""
11592 USE_GNAT_LIBRARIES="#"
11595 echo "$as_me:11595: checking for ada-compiler" >&5
11596 echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6
11598 # Check whether --with-ada-compiler or --without-ada-compiler was given.
11599 if test "${with_ada_compiler+set}" = set; then
11600 withval="$with_ada_compiler"
11601 cf_ada_compiler=$withval
11603 cf_ada_compiler=gnatmake
11606 echo "$as_me:11606: result: $cf_ada_compiler" >&5
11607 echo "${ECHO_T}$cf_ada_compiler" >&6
11609 cf_ada_package=terminal_interface
11611 echo "$as_me:11611: checking for ada-include" >&5
11612 echo $ECHO_N "checking for ada-include... $ECHO_C" >&6
11614 # Check whether --with-ada-include or --without-ada-include was given.
11615 if test "${with_ada_include+set}" = set; then
11616 withval="$with_ada_include"
11619 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
11620 fi; if test -n "$prefix/share/ada/adainclude" ; then
11622 if test "x$prefix" != xNONE; then
11623 cf_path_syntax="$prefix"
11625 cf_path_syntax="$ac_default_prefix"
11628 case ".$withval" in #(vi
11629 .\$\(*\)*|.\'*\'*) #(vi
11633 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
11635 .\${*prefix}*) #(vi
11636 eval withval="$withval"
11637 case ".$withval" in #(vi
11639 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
11644 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
11647 { { echo "$as_me:11647: error: expected a pathname, not \"$withval\"" >&5
11648 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
11649 { (exit 1); exit 1; }; }
11654 ADA_INCLUDE="$withval"
11656 echo "$as_me:11656: result: $ADA_INCLUDE" >&5
11657 echo "${ECHO_T}$ADA_INCLUDE" >&6
11659 echo "$as_me:11659: checking for ada-objects" >&5
11660 echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6
11662 # Check whether --with-ada-objects or --without-ada-objects was given.
11663 if test "${with_ada_objects+set}" = set; then
11664 withval="$with_ada_objects"
11667 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
11668 fi; if test -n "$prefix/lib/ada/adalib" ; then
11670 if test "x$prefix" != xNONE; then
11671 cf_path_syntax="$prefix"
11673 cf_path_syntax="$ac_default_prefix"
11676 case ".$withval" in #(vi
11677 .\$\(*\)*|.\'*\'*) #(vi
11681 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
11683 .\${*prefix}*) #(vi
11684 eval withval="$withval"
11685 case ".$withval" in #(vi
11687 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
11692 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
11695 { { echo "$as_me:11695: error: expected a pathname, not \"$withval\"" >&5
11696 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
11697 { (exit 1); exit 1; }; }
11702 ADA_OBJECTS="$withval"
11704 echo "$as_me:11704: result: $ADA_OBJECTS" >&5
11705 echo "${ECHO_T}$ADA_OBJECTS" >&6
11707 echo "$as_me:11707: checking if an Ada95 shared-library should be built" >&5
11708 echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6
11710 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
11711 if test "${with_ada_sharedlib+set}" = set; then
11712 withval="$with_ada_sharedlib"
11713 with_ada_sharedlib=$withval
11715 with_ada_sharedlib=no
11717 echo "$as_me:11717: result: $with_ada_sharedlib" >&5
11718 echo "${ECHO_T}$with_ada_sharedlib" >&6
11720 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
11721 MAKE_ADA_SHAREDLIB="#"
11723 if test "x$with_ada_sharedlib" != xno
11725 MAKE_ADA_SHAREDLIB=
11726 if test "x$with_ada_sharedlib" != xyes
11728 ADA_SHAREDLIB="$with_ada_sharedlib"
11733 { { echo "$as_me:11733: error: No usable Ada compiler found" >&5
11734 echo "$as_me: error: No usable Ada compiler found" >&2;}
11735 { (exit 1); exit 1; }; }
11738 { { echo "$as_me:11738: error: The Ada compiler is needed for this package" >&5
11739 echo "$as_me: error: The Ada compiler is needed for this package" >&2;}
11740 { (exit 1); exit 1; }; }
11743 ################################################################################
11750 ### Construct the list of include-directories to be generated
11752 CPPFLAGS="$CPPFLAGS -I. -I../include"
11753 if test "$srcdir" != "."; then
11754 CPPFLAGS="$CPPFLAGS -I\${srcdir}/../include"
11756 if test "$GCC" != yes; then
11757 CPPFLAGS="$CPPFLAGS -I\${includedir}"
11758 elif test "$includedir" != "/usr/include"; then
11759 if test "$includedir" = '${prefix}/include' ; then
11760 if test $prefix != /usr ; then
11761 CPPFLAGS="$CPPFLAGS -I\${includedir}"
11764 CPPFLAGS="$CPPFLAGS -I\${includedir}"
11768 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
11769 if test "$srcdir" != "."; then
11770 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
11772 if test "$GCC" != yes; then
11773 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
11774 elif test "$includedir" != "/usr/include"; then
11775 if test "$includedir" = '${prefix}/include' ; then
11776 if test $prefix != /usr ; then
11777 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
11780 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
11784 ### Build up pieces for makefile rules
11785 echo "$as_me:11785: checking default library suffix" >&5
11786 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
11788 case $DFT_LWR_MODEL in
11789 libtool) DFT_ARG_SUFFIX='' ;;
11790 normal) DFT_ARG_SUFFIX='' ;;
11791 debug) DFT_ARG_SUFFIX='_g' ;;
11792 profile) DFT_ARG_SUFFIX='_p' ;;
11793 shared) DFT_ARG_SUFFIX='' ;;
11795 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
11796 echo "$as_me:11796: result: $DFT_ARG_SUFFIX" >&5
11797 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
11799 echo "$as_me:11799: checking default library-dependency suffix" >&5
11800 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
11802 case $DFT_LWR_MODEL in #(vi
11804 DFT_LIB_SUFFIX='.la'
11805 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
11808 DFT_LIB_SUFFIX='.a'
11809 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
11812 DFT_LIB_SUFFIX='_g.a'
11813 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
11816 DFT_LIB_SUFFIX='_p.a'
11817 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
11820 case $cf_cv_system_name in
11822 DFT_LIB_SUFFIX='.a'
11823 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
11826 DFT_LIB_SUFFIX='.dll'
11827 DFT_DEP_SUFFIX='.dll.a'
11830 DFT_LIB_SUFFIX='.dylib'
11831 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
11836 DFT_LIB_SUFFIX='.so'
11837 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
11840 DFT_LIB_SUFFIX='.sl'
11841 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
11845 *) DFT_LIB_SUFFIX='.so'
11846 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
11850 test -n "$LIB_SUFFIX" && DFT_LIB_SUFFIX="${LIB_SUFFIX}${DFT_LIB_SUFFIX}"
11851 test -n "$LIB_SUFFIX" && DFT_DEP_SUFFIX="${LIB_SUFFIX}${DFT_DEP_SUFFIX}"
11852 echo "$as_me:11852: result: $DFT_DEP_SUFFIX" >&5
11853 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
11855 echo "$as_me:11855: checking default object directory" >&5
11856 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
11858 case $DFT_LWR_MODEL in
11859 libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
11860 normal) DFT_OBJ_SUBDIR='objects' ;;
11861 debug) DFT_OBJ_SUBDIR='obj_g' ;;
11862 profile) DFT_OBJ_SUBDIR='obj_p' ;;
11864 case $cf_cv_system_name in #(vi
11866 DFT_OBJ_SUBDIR='objects' ;;
11868 DFT_OBJ_SUBDIR='obj_s' ;;
11871 echo "$as_me:11871: result: $DFT_OBJ_SUBDIR" >&5
11872 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
11874 ### Set up low-level terminfo dependencies for makefiles.
11876 if test "$DFT_LWR_MODEL" = shared ; then
11877 case $cf_cv_system_name in #(vi
11879 # "lib" files have ".dll.a" suffix, "cyg" files have ".dll"
11884 ### Construct the list of subdirectories for which we'll customize makefiles
11885 ### with the appropriate compile-rules.
11887 SUB_MAKEFILES="gen/adacurses${DFT_ARG_SUFFIX}-config:gen/adacurses-config.in"
11889 cat >>confdefs.h <<EOF
11890 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
11893 ### Now that we're done running tests, add the compiler-warnings, if any
11898 cf_new_extra_cppflags=
11900 for cf_add_cflags in $EXTRA_CFLAGS
11902 case $cf_fix_cppflags in
11904 case $cf_add_cflags in #(vi
11905 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
11906 case $cf_add_cflags in
11908 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11910 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11911 && test -z "${cf_tst_cflags}" \
11912 && cf_fix_cppflags=yes
11914 if test $cf_fix_cppflags = yes ; then
11915 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11917 elif test "${cf_tst_cflags}" = "\"'" ; then
11918 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11923 case "$CPPFLAGS" in
11924 *$cf_add_cflags) #(vi
11927 case $cf_add_cflags in #(vi
11929 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11931 CPPFLAGS=`echo "$CPPFLAGS" | \
11932 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11933 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11937 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11942 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11947 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11949 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11951 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11952 && test -z "${cf_tst_cflags}" \
11953 && cf_fix_cppflags=no
11958 if test -n "$cf_new_cflags" ; then
11960 CFLAGS="$CFLAGS $cf_new_cflags"
11963 if test -n "$cf_new_cppflags" ; then
11965 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11968 if test -n "$cf_new_extra_cppflags" ; then
11970 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11973 ################################################################################
11975 if test x"$enable_pc_files" = xyes ; then \
11976 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
11982 ################################################################################
11988 NCURSES_SHLIB2="sh -c"
11990 ADA_SUBDIRS="include gen src doc"
11991 if test "x$cf_with_tests" != "xno" ; then
11992 ADA_SUBDIRS="$ADA_SUBDIRS samples"
11994 for cf_dir in $ADA_SUBDIRS
11996 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
12003 # match layout used by make-tar.sh
12004 ADAHTML_DIR=../doc/ada
12006 ac_config_files="$ac_config_files $SUB_MAKEFILES doc/adacurses${DFT_ARG_SUFFIX}-config.1:doc/MKada_config.in Makefile"
12007 ac_config_commands="$ac_config_commands default"
12008 cat >confcache <<\_ACEOF
12009 # This file is a shell script that caches the results of configure
12010 # tests run on this system so they can be shared between configure
12011 # scripts and configure runs, see configure's option --config-cache.
12012 # It is not useful on other systems. If it contains results you don't
12013 # want to keep, you may remove or edit it.
12015 # config.status only pays attention to the cache file if you give it
12016 # the --recheck option to rerun configure.
12018 # `ac_cv_env_foo' variables (set or unset) will be overriden when
12019 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12020 # following values.
12024 # The following way of writing the cache mishandles newlines in values,
12025 # but we know of no workaround that is simple, portable, and efficient.
12026 # So, don't put newlines in cache variables' values.
12027 # Ultrix sh set writes to stderr and can't be redirected directly,
12028 # and sets the high bit in the cache file unless we assign to the vars.
12031 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12033 # `set' does not quote correctly, so add quotes (double-quote
12034 # substitution turns \\\\ into \\, and sed turns \\ into \).
12037 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12040 # `set' quotes correctly as required by POSIX, so do not add quotes.
12042 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12049 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12051 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12053 if cmp -s $cache_file confcache; then :; else
12054 if test -w $cache_file; then
12055 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12056 cat confcache >$cache_file
12058 echo "not updating unwritable cache $cache_file"
12063 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12064 # Let make expand exec_prefix.
12065 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12067 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12068 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12069 # trailing colons and then remove the whole line if VPATH becomes empty
12070 # (actually we leave an empty line to preserve line numbers).
12071 if test "x$srcdir" = x.; then
12072 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12073 s/:*\$(srcdir):*/:/;
12074 s/:*\${srcdir}:*/:/;
12076 s/^\([^=]*=[ ]*\):*/\1/;
12082 DEFS=-DHAVE_CONFIG_H
12084 : ${CONFIG_STATUS=./config.status}
12085 ac_clean_files_save=$ac_clean_files
12086 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12087 { echo "$as_me:12087: creating $CONFIG_STATUS" >&5
12088 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12089 cat >$CONFIG_STATUS <<_ACEOF
12091 # Generated automatically by configure.
12092 # Run this file to recreate the current configuration.
12093 # Compiler output produced by configure, useful for debugging
12094 # configure, is in config.log if it exists.
12097 SHELL=\${CONFIG_SHELL-$SHELL}
12098 ac_cs_invocation="\$0 \$@"
12102 cat >>$CONFIG_STATUS <<\_ACEOF
12103 # Be Bourne compatible
12104 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12107 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12111 # Name of the executable.
12112 as_me=`echo "$0" |sed 's,.*[\\/],,'`
12114 if expr a : '\(a\)' >/dev/null 2>&1; then
12120 rm -f conf$$ conf$$.exe conf$$.file
12122 if ln -s conf$$.file conf$$ 2>/dev/null; then
12123 # We could just check for DJGPP; but this test a) works b) is more generic
12124 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12125 if test -f conf$$.exe; then
12126 # Don't use ln at all; we don't have any links
12131 elif ln conf$$.file conf$$ 2>/dev/null; then
12136 rm -f conf$$ conf$$.exe conf$$.file
12138 as_executable_p="test -f"
12140 # Support unset when possible.
12141 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
12148 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
12149 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
12150 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
12151 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
12152 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
12153 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
12154 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
12155 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
12158 # We need space, tab and new line, in precisely that order.
12164 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
12170 # Files that config.status was made for.
12171 if test -n "$ac_config_files"; then
12172 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12175 if test -n "$ac_config_headers"; then
12176 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12179 if test -n "$ac_config_links"; then
12180 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12183 if test -n "$ac_config_commands"; then
12184 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12187 cat >>$CONFIG_STATUS <<\EOF
12190 \`$as_me' instantiates files from templates according to the
12191 current configuration.
12193 Usage: $0 [OPTIONS] [FILE]...
12195 -h, --help print this help, then exit
12196 -V, --version print version number, then exit
12197 -d, --debug don't remove temporary files
12198 --recheck update $as_me by reconfiguring in the same conditions
12199 --file=FILE[:TEMPLATE]
12200 instantiate the configuration file FILE
12201 --header=FILE[:TEMPLATE]
12202 instantiate the configuration header FILE
12204 Configuration files:
12207 Configuration headers:
12210 Configuration commands:
12213 Report bugs to <dickey@invisible-island.net>."
12216 cat >>$CONFIG_STATUS <<EOF
12219 configured by $0, generated by GNU Autoconf 2.52.20101002,
12220 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12222 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12223 Free Software Foundation, Inc.
12224 This config.status script is free software; the Free Software Foundation
12225 gives unlimited permission to copy, distribute and modify it."
12230 cat >>$CONFIG_STATUS <<\EOF
12231 # If no file are specified by the user, then we need to provide default
12232 # value. By we need to know if files were specified by the user.
12238 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12239 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12241 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
12245 *) # This is not an option, so the user has probably given explicit
12247 ac_need_defaults=false;;
12251 # Handling of the options.
12253 cat >>$CONFIG_STATUS <<EOF
12254 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12255 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
12256 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
12258 cat >>$CONFIG_STATUS <<\EOF
12259 --version | --vers* | -V )
12260 echo "$ac_cs_version"; exit 0 ;;
12262 # Conflict between --help and --header
12263 { { echo "$as_me:12263: error: ambiguous option: $1
12264 Try \`$0 --help' for more information." >&5
12265 echo "$as_me: error: ambiguous option: $1
12266 Try \`$0 --help' for more information." >&2;}
12267 { (exit 1); exit 1; }; };;
12268 --help | --hel | -h )
12269 echo "$ac_cs_usage"; exit 0 ;;
12270 --debug | --d* | -d )
12272 --file | --fil | --fi | --f )
12274 CONFIG_FILES="$CONFIG_FILES $1"
12275 ac_need_defaults=false;;
12276 --header | --heade | --head | --hea )
12278 CONFIG_HEADERS="$CONFIG_HEADERS $1"
12279 ac_need_defaults=false;;
12281 # This is an error.
12282 -*) { { echo "$as_me:12282: error: unrecognized option: $1
12283 Try \`$0 --help' for more information." >&5
12284 echo "$as_me: error: unrecognized option: $1
12285 Try \`$0 --help' for more information." >&2;}
12286 { (exit 1); exit 1; }; } ;;
12288 *) ac_config_targets="$ac_config_targets $1" ;;
12297 ## ----------------------- ##
12298 ## Running config.status. ##
12299 ## ----------------------- ##
12301 This file was extended by $as_me 2.52.20101002, executed with
12302 CONFIG_FILES = $CONFIG_FILES
12303 CONFIG_HEADERS = $CONFIG_HEADERS
12304 CONFIG_LINKS = $CONFIG_LINKS
12305 CONFIG_COMMANDS = $CONFIG_COMMANDS
12306 > $ac_cs_invocation
12307 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12312 cat >>$CONFIG_STATUS <<EOF
12314 # INIT-COMMANDS section.
12317 ### Special initialization commands, used to pass information from the
12318 ### configuration-run into config.status
12321 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
12322 DFT_LWR_MODEL="$DFT_LWR_MODEL"
12323 ECHO_LINK="$ECHO_LINK"
12324 LIB_NAME="$LIB_NAME"
12325 LIB_SUFFIX="$LIB_SUFFIX"
12327 NCURSES_MAJOR="$NCURSES_MAJOR"
12328 NCURSES_MINOR="$NCURSES_MINOR"
12329 NCURSES_PATCH="$NCURSES_PATCH"
12330 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
12331 cf_cv_abi_version="$cf_cv_abi_version"
12332 cf_cv_rel_version="$cf_cv_rel_version"
12333 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
12334 cf_cv_shared_soname='$cf_cv_shared_soname'
12335 cf_cv_shlib_version="$cf_cv_shlib_version"
12336 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
12337 cf_cv_system_name="$cf_cv_system_name"
12343 cat >>$CONFIG_STATUS <<\EOF
12344 for ac_config_target in $ac_config_targets
12346 case "$ac_config_target" in
12347 # Handling of arguments.
12348 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
12349 "doc/adacurses${DFT_ARG_SUFFIX}-config.1" ) CONFIG_FILES="$CONFIG_FILES doc/adacurses${DFT_ARG_SUFFIX}-config.1:doc/MKada_config.in" ;;
12350 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12351 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12352 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
12353 *) { { echo "$as_me:12353: error: invalid argument: $ac_config_target" >&5
12354 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12355 { (exit 1); exit 1; }; };;
12359 # If the user did not use the arguments to specify the items to instantiate,
12360 # then the envvar interface is used. Set only those that are not.
12361 # We use the long form for the default assignment because of an extremely
12362 # bizarre bug on SunOS 4.1.3.
12363 if $ac_need_defaults; then
12364 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12365 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12366 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12369 # Create a temporary directory, and hook for its removal unless debugging.
12372 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12373 trap '{ (exit 1); exit 1; }' 1 2 13 15
12376 # Create a (secure) tmp directory for tmp files.
12379 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
12380 test -n "$tmp" && test -d "$tmp"
12383 tmp=$TMPDIR/cs$$-$RANDOM
12384 (umask 077 && mkdir $tmp)
12387 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
12388 { (exit 1); exit 1; }
12393 cat >>$CONFIG_STATUS <<EOF
12396 # CONFIG_FILES section.
12399 # No need to generate the scripts if there are no CONFIG_FILES.
12400 # This happens for instance when ./config.status config.h
12401 if test -n "\$CONFIG_FILES"; then
12402 # Protect against being on the right side of a sed subst in config.status.
12403 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12404 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12405 s,@SHELL@,$SHELL,;t t
12406 s,@exec_prefix@,$exec_prefix,;t t
12407 s,@prefix@,$prefix,;t t
12408 s,@program_transform_name@,$program_transform_name,;t t
12409 s,@bindir@,$bindir,;t t
12410 s,@sbindir@,$sbindir,;t t
12411 s,@libexecdir@,$libexecdir,;t t
12412 s,@datadir@,$datadir,;t t
12413 s,@sysconfdir@,$sysconfdir,;t t
12414 s,@sharedstatedir@,$sharedstatedir,;t t
12415 s,@localstatedir@,$localstatedir,;t t
12416 s,@libdir@,$libdir,;t t
12417 s,@includedir@,$includedir,;t t
12418 s,@oldincludedir@,$oldincludedir,;t t
12419 s,@infodir@,$infodir,;t t
12420 s,@mandir@,$mandir,;t t
12421 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12422 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12423 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12424 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12425 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12426 s,@build_alias@,$build_alias,;t t
12427 s,@host_alias@,$host_alias,;t t
12428 s,@target_alias@,$target_alias,;t t
12429 s,@ECHO_C@,$ECHO_C,;t t
12430 s,@ECHO_N@,$ECHO_N,;t t
12431 s,@ECHO_T@,$ECHO_T,;t t
12432 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12433 s,@DEFS@,$DEFS,;t t
12434 s,@LIBS@,$LIBS,;t t
12435 s,@top_builddir@,$top_builddir,;t t
12436 s,@build@,$build,;t t
12437 s,@build_cpu@,$build_cpu,;t t
12438 s,@build_vendor@,$build_vendor,;t t
12439 s,@build_os@,$build_os,;t t
12440 s,@host@,$host,;t t
12441 s,@host_cpu@,$host_cpu,;t t
12442 s,@host_vendor@,$host_vendor,;t t
12443 s,@host_os@,$host_os,;t t
12444 s,@target@,$target,;t t
12445 s,@target_cpu@,$target_cpu,;t t
12446 s,@target_vendor@,$target_vendor,;t t
12447 s,@target_os@,$target_os,;t t
12449 s,@CFLAGS@,$CFLAGS,;t t
12450 s,@LDFLAGS@,$LDFLAGS,;t t
12451 s,@CPPFLAGS@,$CPPFLAGS,;t t
12452 s,@ac_ct_CC@,$ac_ct_CC,;t t
12453 s,@EXEEXT@,$EXEEXT,;t t
12454 s,@OBJEXT@,$OBJEXT,;t t
12456 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
12457 s,@PROG_EXT@,$PROG_EXT,;t t
12459 s,@EGREP@,$EGREP,;t t
12460 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12461 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12462 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12463 s,@LN_S@,$LN_S,;t t
12464 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
12465 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
12466 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
12467 s,@SET_MAKE@,$SET_MAKE,;t t
12468 s,@CTAGS@,$CTAGS,;t t
12469 s,@ETAGS@,$ETAGS,;t t
12470 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
12471 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
12472 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
12473 s,@RANLIB@,$RANLIB,;t t
12474 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12476 s,@ac_ct_LD@,$ac_ct_LD,;t t
12478 s,@ac_ct_AR@,$ac_ct_AR,;t t
12479 s,@ARFLAGS@,$ARFLAGS,;t t
12480 s,@DESTDIR@,$DESTDIR,;t t
12481 s,@BUILD_CC@,$BUILD_CC,;t t
12482 s,@BUILD_CPP@,$BUILD_CPP,;t t
12483 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
12484 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
12485 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
12486 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
12487 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
12488 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
12489 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
12490 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
12491 s,@NCURSES_CONFIG@,$NCURSES_CONFIG,;t t
12492 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
12493 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
12494 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
12495 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
12496 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
12497 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
12498 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
12499 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
12500 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
12501 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
12502 s,@CC_G_OPT@,$CC_G_OPT,;t t
12503 s,@LD_MODEL@,$LD_MODEL,;t t
12504 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
12505 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
12506 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
12507 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
12508 s,@LINK_PROGS@,$LINK_PROGS,;t t
12509 s,@LINK_TESTS@,$LINK_TESTS,;t t
12510 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
12511 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
12512 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
12513 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
12514 s,@RPATH_LIST@,$RPATH_LIST,;t t
12515 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
12516 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
12517 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
12518 s,@PTHREAD@,$PTHREAD,;t t
12519 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
12520 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
12521 s,@ECHO_LINK@,$ECHO_LINK,;t t
12522 s,@ADAFLAGS@,$ADAFLAGS,;t t
12523 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
12524 s,@ADA_TRACE@,$ADA_TRACE,;t t
12525 s,@gnat_exists@,$gnat_exists,;t t
12526 s,@M4_exists@,$M4_exists,;t t
12527 s,@cf_ada_make@,$cf_ada_make,;t t
12528 s,@cf_compile_generics@,$cf_compile_generics,;t t
12529 s,@cf_generic_objects@,$cf_generic_objects,;t t
12530 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
12531 s,@PRAGMA_UNREF@,$PRAGMA_UNREF,;t t
12532 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
12533 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
12534 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
12535 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
12536 s,@cf_ada_package@,$cf_ada_package,;t t
12537 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
12538 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
12539 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
12540 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
12541 s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t
12542 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
12543 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
12544 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
12545 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
12546 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
12547 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
12548 s,@cross_compiling@,$cross_compiling,;t t
12549 s,@TEST_ARG2@,$TEST_ARG2,;t t
12550 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
12551 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
12552 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
12553 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
12554 s,@EXTERNAL_TREE@,$EXTERNAL_TREE,;t t
12555 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
12560 cat >>$CONFIG_STATUS <<\EOF
12561 # Split the substitutions into bite-sized pieces for seds with
12562 # small command number limits, like on Digital OSF/1 and HP-UX.
12563 ac_max_sed_lines=48
12564 ac_sed_frag=1 # Number of current file.
12565 ac_beg=1 # First line for current file.
12566 ac_end=$ac_max_sed_lines # Line after last line for current file.
12569 while $ac_more_lines; do
12570 if test $ac_beg -gt 1; then
12571 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12573 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12575 if test ! -s $tmp/subs.frag; then
12576 ac_more_lines=false
12578 # The purpose of the label and of the branching condition is to
12579 # speed up the sed processing (if there are no `@' at all, there
12580 # is no need to browse any of the substitutions).
12581 # These are the two extra sed commands mentioned above.
12583 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12584 if test -z "$ac_sed_cmds"; then
12585 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12587 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12589 ac_sed_frag=`expr $ac_sed_frag + 1`
12591 ac_end=`expr $ac_end + $ac_max_sed_lines`
12594 if test -z "$ac_sed_cmds"; then
12597 fi # test -n "$CONFIG_FILES"
12600 cat >>$CONFIG_STATUS <<\EOF
12601 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12602 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12604 - | *:- | *:-:* ) # input from stdin
12606 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12607 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12608 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12609 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12610 * ) ac_file_in=$ac_file.in ;;
12613 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12614 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12615 X"$ac_file" : 'X\(//\)[^/]' \| \
12616 X"$ac_file" : 'X\(//\)$' \| \
12617 X"$ac_file" : 'X\(/\)' \| \
12618 . : '\(.\)' 2>/dev/null ||
12620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12621 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12622 /^X\(\/\/\)$/{ s//\1/; q; }
12623 /^X\(\/\).*/{ s//\1/; q; }
12625 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12626 { case "$ac_dir" in
12627 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
12631 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12632 case $as_mkdir_dir in
12633 # Skip DOS drivespec
12634 ?:) as_incr_dir=$as_mkdir_dir ;;
12636 as_incr_dir=$as_incr_dir/$as_mkdir_dir
12637 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
12642 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
12643 # A "../" for each directory in $ac_dir_suffix.
12644 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
12646 ac_dir_suffix= ac_dots=
12651 if test -z "$ac_dots"; then
12654 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
12656 [\\/]* | ?:[\\/]* )
12657 ac_srcdir=$srcdir$ac_dir_suffix;
12658 ac_top_srcdir=$srcdir ;;
12659 *) # Relative path.
12660 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
12661 ac_top_srcdir=$ac_dots$srcdir ;;
12665 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12666 *) ac_INSTALL=$ac_dots$INSTALL ;;
12669 if test x"$ac_file" != x-; then
12670 { echo "$as_me:12670: creating $ac_file" >&5
12671 echo "$as_me: creating $ac_file" >&6;}
12674 # Let's still pretend it is `configure' which instantiates (i.e., don't
12675 # use $as_me), people would be surprised to read:
12676 # /* config.h. Generated automatically by config.status. */
12677 configure_input="Generated automatically from `echo $ac_file_in |
12678 sed 's,.*/,,'` by configure."
12680 # First look for the input files in the build tree, otherwise in the
12682 ac_file_inputs=`IFS=:
12683 for f in $ac_file_in; do
12685 -) echo $tmp/stdin ;;
12687 # Absolute (can't be DOS-style, as IFS=:)
12688 test -f "$f" || { { echo "$as_me:12688: error: cannot find input file: $f" >&5
12689 echo "$as_me: error: cannot find input file: $f" >&2;}
12690 { (exit 1); exit 1; }; }
12693 if test -f "$f"; then
12696 elif test -f "$srcdir/$f"; then
12701 { { echo "$as_me:12701: error: cannot find input file: $f" >&5
12702 echo "$as_me: error: cannot find input file: $f" >&2;}
12703 { (exit 1); exit 1; }; }
12706 done` || { (exit 1); exit 1; }
12708 cat >>$CONFIG_STATUS <<EOF
12712 cat >>$CONFIG_STATUS <<\EOF
12714 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12715 s,@configure_input@,$configure_input,;t t
12716 s,@srcdir@,$ac_srcdir,;t t
12717 s,@top_srcdir@,$ac_top_srcdir,;t t
12718 s,@INSTALL@,$ac_INSTALL,;t t
12719 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12721 if test x"$ac_file" != x-; then
12722 mv $tmp/out $ac_file
12730 cat >>$CONFIG_STATUS <<\EOF
12733 # CONFIG_HEADER section.
12736 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12737 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12739 # ac_d sets the value in "#define NAME VALUE" lines.
12740 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12741 ac_dB='[ ].*$,\1#\2'
12744 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12745 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12746 ac_iB='\([ ]\),\1#\2define\3'
12749 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12750 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12751 ac_uB='$,\1#\2define\3'
12755 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12756 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12758 - | *:- | *:-:* ) # input from stdin
12760 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12761 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12762 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12763 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12764 * ) ac_file_in=$ac_file.in ;;
12767 test x"$ac_file" != x- && { echo "$as_me:12767: creating $ac_file" >&5
12768 echo "$as_me: creating $ac_file" >&6;}
12770 # First look for the input files in the build tree, otherwise in the
12772 ac_file_inputs=`IFS=:
12773 for f in $ac_file_in; do
12775 -) echo $tmp/stdin ;;
12777 # Absolute (can't be DOS-style, as IFS=:)
12778 test -f "$f" || { { echo "$as_me:12778: error: cannot find input file: $f" >&5
12779 echo "$as_me: error: cannot find input file: $f" >&2;}
12780 { (exit 1); exit 1; }; }
12783 if test -f "$f"; then
12786 elif test -f "$srcdir/$f"; then
12791 { { echo "$as_me:12791: error: cannot find input file: $f" >&5
12792 echo "$as_me: error: cannot find input file: $f" >&2;}
12793 { (exit 1); exit 1; }; }
12796 done` || { (exit 1); exit 1; }
12797 # Remove the trailing spaces.
12798 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12802 # Transform confdefs.h into a list of #define's. We won't use it as a sed
12803 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
12804 # be either 'cat' or 'sort'.
12805 cat confdefs.h | uniq >conftest.vals
12807 # Break up conftest.vals because some shells have a limit on
12808 # the size of here documents, and old seds have small limits too.
12810 rm -f conftest.tail
12811 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
12812 while grep . conftest.vals >/dev/null
12814 # Write chunks of a limited-size here document to conftest.frag.
12815 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
12816 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
12817 echo 'CEOF' >> $CONFIG_STATUS
12818 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12819 rm -f conftest.vals
12820 mv conftest.tail conftest.vals
12822 rm -f conftest.vals
12824 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
12826 echo ' cat >> conftest.edit <<CEOF
12827 /@DEFS@/r conftest.frag
12830 sed -f conftest.edit $tmp/in > $tmp/out
12832 mv $tmp/out $tmp/in
12833 rm -f conftest.edit conftest.frag
12834 ' >> $CONFIG_STATUS
12836 cat >>$CONFIG_STATUS <<\EOF
12837 # Let's still pretend it is `configure' which instantiates (i.e., don't
12838 # use $as_me), people would be surprised to read:
12839 # /* config.h. Generated automatically by config.status. */
12840 if test x"$ac_file" = x-; then
12841 echo "/* Generated automatically by configure. */" >$tmp/config.h
12843 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
12845 cat $tmp/in >>$tmp/config.h
12847 if test x"$ac_file" != x-; then
12848 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
12849 { echo "$as_me:12849: $ac_file is unchanged" >&5
12850 echo "$as_me: $ac_file is unchanged" >&6;}
12852 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12853 X"$ac_file" : 'X\(//\)[^/]' \| \
12854 X"$ac_file" : 'X\(//\)$' \| \
12855 X"$ac_file" : 'X\(/\)' \| \
12856 . : '\(.\)' 2>/dev/null ||
12858 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12859 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12860 /^X\(\/\/\)$/{ s//\1/; q; }
12861 /^X\(\/\).*/{ s//\1/; q; }
12863 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12864 { case "$ac_dir" in
12865 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
12869 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12870 case $as_mkdir_dir in
12871 # Skip DOS drivespec
12872 ?:) as_incr_dir=$as_mkdir_dir ;;
12874 as_incr_dir=$as_incr_dir/$as_mkdir_dir
12875 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
12882 mv $tmp/config.h $ac_file
12886 rm -f $tmp/config.h
12890 cat >>$CONFIG_STATUS <<\EOF
12892 # CONFIG_COMMANDS section.
12894 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12895 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12896 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12900 if test -z "$USE_OLD_MAKERULES" ; then
12901 $AWK -f $srcdir/mk-1st.awk <$srcdir/src/modules >>src/Makefile
12908 cat >>$CONFIG_STATUS <<\EOF
12910 { (exit 0); exit 0; }
12912 chmod +x $CONFIG_STATUS
12913 ac_clean_files=$ac_clean_files_save
12915 # configure is writing to config.log, and then calls config.status.
12916 # config.status does its own redirection, appending to config.log.
12917 # Unfortunately, on DOS this fails, as config.log is still kept open
12918 # by configure, so config.status won't be able to write to it; its
12919 # output is simply discarded. So we exec the FD to /dev/null,
12920 # effectively closing config.log, so it can be properly (re)opened and
12921 # appended to by config.status. When coming back to configure, we
12922 # need to make the FD available again.
12923 if test "$no_create" != yes; then
12926 $SHELL $CONFIG_STATUS || ac_cs_success=false
12928 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12929 # would make configure fail if this is the last instruction.
12930 $ac_cs_success || { (exit 1); exit 1; }
12932 ${MAKE:-make} preinstall