2 # From configure.in Revision: 1.11 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20081225.
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 --enable-pc-files generate and install .pc files for pkg-config
649 --enable-mixed-case tic should assume mixed-case filenames
650 --with-install-prefix prefixes actual install-location ($DESTDIR)
651 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
652 --with-build-cc=XXX the build C compiler ($BUILD_CC)
653 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
654 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
655 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
656 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
657 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
658 Options to Specify the Libraries Built/Used:
659 --enable-widec compile with wide-char/UTF-8 code
660 --with-curses-dir=DIR directory in which (n)curses is installed
661 --with-shlib-version=X Specify rel or abi version for shared libs
662 Fine-Tuning Your Configuration:
663 --enable-broken_linker compile with broken-linker support code
664 --disable-largefile omit support for large files
665 --with-rcs-ids compile-in RCS identifiers
667 --disable-ext-funcs disable function-extensions
668 --enable-const compile with extra/non-standard const
670 --without-develop disable development options
672 --with-pthread use POSIX thread library
673 --enable-weak-symbols enable weak-symbols for pthreads
674 --enable-reentrant compile with experimental reentrant code
675 --with-wrap-prefix=XXX override prefix used for public variables
676 Testing/development Options:
677 --enable-echo build: display "compiling" commands (default)
678 --enable-warnings build: turn on GCC compiler warnings
679 --enable-assertions test: turn on generation of assertion code
680 --enable-expanded test: generate functions for certain macros
681 --disable-macros test: use functions rather than macros
682 --with-trace test: add trace() function to all models of ncurses
683 Ada95 Binding Options:
684 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
685 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/lib/ada/adainclude)
686 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
688 Some influential environment variables:
689 CC C compiler command
690 CFLAGS C compiler flags
691 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
692 nonstandard directory <lib dir>
693 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
694 headers in a nonstandard directory <include dir>
697 Use these variables to override the choices made by `configure' or to help
698 it to find libraries and programs with nonstandard names/locations.
703 if test "$ac_init_help" = "recursive"; then
704 # If there are subdirs, report their specific --help.
706 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
708 # A "../" for each directory in /$ac_subdir.
709 ac_dots=`echo $ac_subdir |
710 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
713 .) # No --srcdir option. We are building in place.
714 ac_sub_srcdir=$srcdir ;;
715 [\\/]* | ?:[\\/]* ) # Absolute path.
716 ac_sub_srcdir=$srcdir/$ac_subdir ;;
718 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
721 # Check for guested configure; otherwise get Cygnus style configure.
722 if test -f $ac_sub_srcdir/configure.gnu; then
724 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
725 elif test -f $ac_sub_srcdir/configure; then
727 $SHELL $ac_sub_srcdir/configure --help=recursive
728 elif test -f $ac_sub_srcdir/configure.ac ||
729 test -f $ac_sub_srcdir/configure.in; then
733 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
739 test -n "$ac_init_help" && exit 0
740 if $ac_init_version; then
743 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
744 Free Software Foundation, Inc.
745 This configure script is free software; the Free Software Foundation
746 gives unlimited permission to copy, distribute and modify it.
752 This file contains any messages produced by compilers while
753 running configure, to aid debugging if configure makes a mistake.
755 It was created by $as_me, which was
756 generated by GNU Autoconf 2.52.20081225. Invocation command line was
767 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
768 uname -m = `(uname -m) 2>/dev/null || echo unknown`
769 uname -r = `(uname -r) 2>/dev/null || echo unknown`
770 uname -s = `(uname -s) 2>/dev/null || echo unknown`
771 uname -v = `(uname -v) 2>/dev/null || echo unknown`
773 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
774 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
776 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
777 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
778 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
779 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
780 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
781 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
782 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
796 # Keep a trace of the command line.
797 # Strip out --no-create and --no-recursion so they do not pile up.
798 # Also quote any args containing shell meta-characters.
804 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
805 | --no-cr | --no-c) ;;
806 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
807 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
808 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
809 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
810 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
812 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
815 # Get rid of the leading space.
818 # When interrupted or exit'd, cleanup temporary files, and complete
819 # config.log. We remove comments because anyway the quotes in there
820 # would cause problems or look ugly.
822 # Save into config.log some information that might help in debugging.
824 echo "## ----------------- ##" >&5
825 echo "## Cache variables. ##" >&5
826 echo "## ----------------- ##" >&5
828 # The following way of writing the cache mishandles newlines in values,
831 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
834 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
835 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
839 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
843 sed "/^$/d" confdefs.h >conftest.log
844 if test -s conftest.log; then
846 echo "## ------------ ##" >&5
847 echo "## confdefs.h. ##" >&5
848 echo "## ------------ ##" >&5
853 test "$ac_signal" != 0 &&
854 echo "$as_me: caught signal $ac_signal" >&5
855 echo "$as_me: exit $exit_status" >&5
856 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
859 for ac_signal in 1 2 13 15; do
860 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
864 # confdefs.h avoids OS command line length limits that DEFS can exceed.
865 rm -rf conftest* confdefs.h
866 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
869 # Let the site file select an alternate cache file if it wants to.
870 # Prefer explicitly selected file to automatically selected ones.
871 if test -z "$CONFIG_SITE"; then
872 if test "x$prefix" != xNONE; then
873 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
875 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
878 for ac_site_file in $CONFIG_SITE; do
879 if test -r "$ac_site_file"; then
880 { echo "$as_me:880: loading site script $ac_site_file" >&5
881 echo "$as_me: loading site script $ac_site_file" >&6;}
882 cat "$ac_site_file" >&5
887 if test -r "$cache_file"; then
888 # Some versions of bash will fail to source /dev/null (special
889 # files actually), so we avoid doing that.
890 if test -f "$cache_file"; then
891 { echo "$as_me:891: loading cache $cache_file" >&5
892 echo "$as_me: loading cache $cache_file" >&6;}
894 [\\/]* | ?:[\\/]* ) . $cache_file;;
899 { echo "$as_me:899: creating cache $cache_file" >&5
900 echo "$as_me: creating cache $cache_file" >&6;}
904 # Check that the precious variables saved in the cache have kept the same
906 ac_cache_corrupted=false
907 for ac_var in `(set) 2>&1 |
908 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
909 eval ac_old_set=\$ac_cv_env_${ac_var}_set
910 eval ac_new_set=\$ac_env_${ac_var}_set
911 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
912 eval ac_new_val="\$ac_env_${ac_var}_value"
913 case $ac_old_set,$ac_new_set in
915 { echo "$as_me:915: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
916 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
917 ac_cache_corrupted=: ;;
919 { echo "$as_me:919: error: \`$ac_var' was not set in the previous run" >&5
920 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
921 ac_cache_corrupted=: ;;
924 if test "x$ac_old_val" != "x$ac_new_val"; then
925 { echo "$as_me:925: error: \`$ac_var' has changed since the previous run:" >&5
926 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
927 { echo "$as_me:927: former value: $ac_old_val" >&5
928 echo "$as_me: former value: $ac_old_val" >&2;}
929 { echo "$as_me:929: current value: $ac_new_val" >&5
930 echo "$as_me: current value: $ac_new_val" >&2;}
934 # Pass precious variables to config.status. It doesn't matter if
935 # we pass some twice (in addition to the command line arguments).
936 if test "$ac_new_set" = set; then
938 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
939 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
940 ac_configure_args="$ac_configure_args '$ac_arg'"
942 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
947 if $ac_cache_corrupted; then
948 { echo "$as_me:948: error: changes in the environment can compromise the build" >&5
949 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
950 { { echo "$as_me:950: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
951 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
952 { (exit 1); exit 1; }; }
956 ac_cpp='$CPP $CPPFLAGS'
957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
960 ac_main_return=return
962 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
963 *c*,-n*) ECHO_N= ECHO_C='
965 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
966 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
968 echo "#! $SHELL" >conftest.sh
969 echo "exit 0" >>conftest.sh
971 if { (echo "$as_me:971: PATH=\".;.\"; conftest.sh") >&5
972 (PATH=".;."; conftest.sh) 2>&5
974 echo "$as_me:974: \$? = $ac_status" >&5
975 (exit $ac_status); }; then
976 ac_path_separator=';'
980 PATH_SEPARATOR="$ac_path_separator"
983 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
988 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
989 if test -f $ac_dir/install-sh; then
991 ac_install_sh="$ac_aux_dir/install-sh -c"
993 elif test -f $ac_dir/install.sh; then
995 ac_install_sh="$ac_aux_dir/install.sh -c"
997 elif test -f $ac_dir/shtool; then
999 ac_install_sh="$ac_aux_dir/shtool install -c"
1003 if test -z "$ac_aux_dir"; then
1004 { { echo "$as_me:1004: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1005 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1006 { (exit 1); exit 1; }; }
1008 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1009 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1010 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1012 # Make sure we can run config.sub.
1013 $ac_config_sub sun4 >/dev/null 2>&1 ||
1014 { { echo "$as_me:1014: error: cannot run $ac_config_sub" >&5
1015 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1016 { (exit 1); exit 1; }; }
1018 echo "$as_me:1018: checking build system type" >&5
1019 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1020 if test "${ac_cv_build+set}" = set; then
1021 echo $ECHO_N "(cached) $ECHO_C" >&6
1023 ac_cv_build_alias=$build_alias
1024 test -z "$ac_cv_build_alias" &&
1025 ac_cv_build_alias=`$ac_config_guess`
1026 test -z "$ac_cv_build_alias" &&
1027 { { echo "$as_me:1027: error: cannot guess build type; you must specify one" >&5
1028 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1029 { (exit 1); exit 1; }; }
1030 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1031 { { echo "$as_me:1031: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1032 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1033 { (exit 1); exit 1; }; }
1036 echo "$as_me:1036: result: $ac_cv_build" >&5
1037 echo "${ECHO_T}$ac_cv_build" >&6
1039 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1040 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1041 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1043 echo "$as_me:1043: checking host system type" >&5
1044 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1045 if test "${ac_cv_host+set}" = set; then
1046 echo $ECHO_N "(cached) $ECHO_C" >&6
1048 ac_cv_host_alias=$host_alias
1049 test -z "$ac_cv_host_alias" &&
1050 ac_cv_host_alias=$ac_cv_build_alias
1051 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1052 { { echo "$as_me:1052: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1053 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1054 { (exit 1); exit 1; }; }
1057 echo "$as_me:1057: result: $ac_cv_host" >&5
1058 echo "${ECHO_T}$ac_cv_host" >&6
1060 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1061 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1062 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1064 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1065 echo "$as_me:1065: checking target system type" >&5
1066 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1067 if test "${ac_cv_target+set}" = set; then
1068 echo $ECHO_N "(cached) $ECHO_C" >&6
1070 ac_cv_target_alias=$target_alias
1071 test "x$ac_cv_target_alias" = "x" &&
1072 ac_cv_target_alias=$ac_cv_host_alias
1073 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1074 { { echo "$as_me:1074: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1075 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1076 { (exit 1); exit 1; }; }
1079 echo "$as_me:1079: result: $ac_cv_target" >&5
1080 echo "${ECHO_T}$ac_cv_target" >&6
1081 target=$ac_cv_target
1082 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1083 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1084 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1086 # The aliases save the names the user supplied, while $host etc.
1087 # will get canonicalized.
1088 test -n "$target_alias" &&
1089 test "$program_prefix$program_suffix$program_transform_name" = \
1091 program_prefix=${target_alias}-
1092 system_name="$host_os"
1094 system_name="`(uname -s -r) 2>/dev/null`"
1095 if test -z "$system_name" ; then
1096 system_name="`(hostname) 2>/dev/null`"
1099 test -n "$system_name" && cat >>confdefs.h <<EOF
1100 #define SYSTEM_NAME "$system_name"
1103 if test "${cf_cv_system_name+set}" = set; then
1104 echo $ECHO_N "(cached) $ECHO_C" >&6
1106 cf_cv_system_name="$system_name"
1109 test -z "$system_name" && system_name="$cf_cv_system_name"
1110 test -n "$cf_cv_system_name" && echo "$as_me:1110: result: Configuring for $cf_cv_system_name" >&5
1111 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1113 if test ".$system_name" != ".$cf_cv_system_name" ; then
1114 echo "$as_me:1114: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1115 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1116 { { echo "$as_me:1116: error: \"Please remove config.cache and try again.\"" >&5
1117 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1118 { (exit 1); exit 1; }; }
1121 # Check whether --with-system-type or --without-system-type was given.
1122 if test "${with_system_type+set}" = set; then
1123 withval="$with_system_type"
1124 { echo "$as_me:1124: WARNING: overriding system type to $withval" >&5
1125 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1126 cf_cv_system_name=$withval
1129 ### Save the given $CFLAGS to allow user-override.
1130 cf_user_CFLAGS="$CFLAGS"
1132 ### Default install-location
1134 echo "$as_me:1134: checking for prefix" >&5
1135 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1136 if test "x$prefix" = "xNONE" ; then
1137 case "$cf_cv_system_name" in
1138 # non-vendor systems don't have a conflict
1139 openbsd*|freebsd*|linux*|cygwin*|k*bsd*-gnu)
1142 *) prefix=$ac_default_prefix
1146 echo "$as_me:1146: result: $prefix" >&5
1147 echo "${ECHO_T}$prefix" >&6
1149 if test "x$prefix" = "xNONE" ; then
1150 echo "$as_me:1150: checking for default include-directory" >&5
1151 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1152 test -n "$verbose" && echo 1>&6
1155 $includedir/ncurses \
1157 $prefix/include/ncurses \
1158 /usr/local/include \
1159 /usr/local/include/ncurses \
1161 /usr/include/ncurses
1163 cf_dir=`eval echo $cf_symbol`
1164 if test -f $cf_dir/curses.h ; then
1165 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1166 includedir="$cf_symbol"
1167 test -n "$verbose" && echo $ac_n " found " 1>&6
1171 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1173 echo "$as_me:1173: result: $includedir" >&5
1174 echo "${ECHO_T}$includedir" >&6
1177 ### Checks for programs.
1179 ac_cpp='$CPP $CPPFLAGS'
1180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1183 ac_main_return=return
1184 if test -n "$ac_tool_prefix"; then
1185 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1186 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1187 echo "$as_me:1187: checking for $ac_word" >&5
1188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1189 if test "${ac_cv_prog_CC+set}" = set; then
1190 echo $ECHO_N "(cached) $ECHO_C" >&6
1192 if test -n "$CC"; then
1193 ac_cv_prog_CC="$CC" # Let the user override the test.
1195 ac_save_IFS=$IFS; IFS=$ac_path_separator
1197 for ac_dir in $ac_dummy; do
1199 test -z "$ac_dir" && ac_dir=.
1200 $as_executable_p "$ac_dir/$ac_word" || continue
1201 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1202 echo "$as_me:1202: found $ac_dir/$ac_word" >&5
1209 if test -n "$CC"; then
1210 echo "$as_me:1210: result: $CC" >&5
1211 echo "${ECHO_T}$CC" >&6
1213 echo "$as_me:1213: result: no" >&5
1214 echo "${ECHO_T}no" >&6
1218 if test -z "$ac_cv_prog_CC"; then
1220 # Extract the first word of "gcc", so it can be a program name with args.
1221 set dummy gcc; ac_word=$2
1222 echo "$as_me:1222: checking for $ac_word" >&5
1223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1224 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1225 echo $ECHO_N "(cached) $ECHO_C" >&6
1227 if test -n "$ac_ct_CC"; then
1228 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1230 ac_save_IFS=$IFS; IFS=$ac_path_separator
1232 for ac_dir in $ac_dummy; do
1234 test -z "$ac_dir" && ac_dir=.
1235 $as_executable_p "$ac_dir/$ac_word" || continue
1236 ac_cv_prog_ac_ct_CC="gcc"
1237 echo "$as_me:1237: found $ac_dir/$ac_word" >&5
1243 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1244 if test -n "$ac_ct_CC"; then
1245 echo "$as_me:1245: result: $ac_ct_CC" >&5
1246 echo "${ECHO_T}$ac_ct_CC" >&6
1248 echo "$as_me:1248: result: no" >&5
1249 echo "${ECHO_T}no" >&6
1257 if test -z "$CC"; then
1258 if test -n "$ac_tool_prefix"; then
1259 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1260 set dummy ${ac_tool_prefix}cc; ac_word=$2
1261 echo "$as_me:1261: checking for $ac_word" >&5
1262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1263 if test "${ac_cv_prog_CC+set}" = set; then
1264 echo $ECHO_N "(cached) $ECHO_C" >&6
1266 if test -n "$CC"; then
1267 ac_cv_prog_CC="$CC" # Let the user override the test.
1269 ac_save_IFS=$IFS; IFS=$ac_path_separator
1271 for ac_dir in $ac_dummy; do
1273 test -z "$ac_dir" && ac_dir=.
1274 $as_executable_p "$ac_dir/$ac_word" || continue
1275 ac_cv_prog_CC="${ac_tool_prefix}cc"
1276 echo "$as_me:1276: found $ac_dir/$ac_word" >&5
1283 if test -n "$CC"; then
1284 echo "$as_me:1284: result: $CC" >&5
1285 echo "${ECHO_T}$CC" >&6
1287 echo "$as_me:1287: result: no" >&5
1288 echo "${ECHO_T}no" >&6
1292 if test -z "$ac_cv_prog_CC"; then
1294 # Extract the first word of "cc", so it can be a program name with args.
1295 set dummy cc; ac_word=$2
1296 echo "$as_me:1296: checking for $ac_word" >&5
1297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1298 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1299 echo $ECHO_N "(cached) $ECHO_C" >&6
1301 if test -n "$ac_ct_CC"; then
1302 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1304 ac_save_IFS=$IFS; IFS=$ac_path_separator
1306 for ac_dir in $ac_dummy; do
1308 test -z "$ac_dir" && ac_dir=.
1309 $as_executable_p "$ac_dir/$ac_word" || continue
1310 ac_cv_prog_ac_ct_CC="cc"
1311 echo "$as_me:1311: found $ac_dir/$ac_word" >&5
1317 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1318 if test -n "$ac_ct_CC"; then
1319 echo "$as_me:1319: result: $ac_ct_CC" >&5
1320 echo "${ECHO_T}$ac_ct_CC" >&6
1322 echo "$as_me:1322: result: no" >&5
1323 echo "${ECHO_T}no" >&6
1332 if test -z "$CC"; then
1333 # Extract the first word of "cc", so it can be a program name with args.
1334 set dummy cc; ac_word=$2
1335 echo "$as_me:1335: checking for $ac_word" >&5
1336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1337 if test "${ac_cv_prog_CC+set}" = set; then
1338 echo $ECHO_N "(cached) $ECHO_C" >&6
1340 if test -n "$CC"; then
1341 ac_cv_prog_CC="$CC" # Let the user override the test.
1344 ac_save_IFS=$IFS; IFS=$ac_path_separator
1346 for ac_dir in $ac_dummy; do
1348 test -z "$ac_dir" && ac_dir=.
1349 $as_executable_p "$ac_dir/$ac_word" || continue
1350 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1351 ac_prog_rejected=yes
1355 echo "$as_me:1355: found $ac_dir/$ac_word" >&5
1359 if test $ac_prog_rejected = yes; then
1360 # We found a bogon in the path, so make sure we never use it.
1361 set dummy $ac_cv_prog_CC
1363 if test $# != 0; then
1364 # We chose a different compiler from the bogus one.
1365 # However, it has the same basename, so the bogon will be chosen
1366 # first if we set CC to just the basename; use the full file name.
1368 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1376 if test -n "$CC"; then
1377 echo "$as_me:1377: result: $CC" >&5
1378 echo "${ECHO_T}$CC" >&6
1380 echo "$as_me:1380: result: no" >&5
1381 echo "${ECHO_T}no" >&6
1385 if test -z "$CC"; then
1386 if test -n "$ac_tool_prefix"; then
1389 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1390 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1391 echo "$as_me:1391: checking for $ac_word" >&5
1392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1393 if test "${ac_cv_prog_CC+set}" = set; then
1394 echo $ECHO_N "(cached) $ECHO_C" >&6
1396 if test -n "$CC"; then
1397 ac_cv_prog_CC="$CC" # Let the user override the test.
1399 ac_save_IFS=$IFS; IFS=$ac_path_separator
1401 for ac_dir in $ac_dummy; do
1403 test -z "$ac_dir" && ac_dir=.
1404 $as_executable_p "$ac_dir/$ac_word" || continue
1405 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1406 echo "$as_me:1406: found $ac_dir/$ac_word" >&5
1413 if test -n "$CC"; then
1414 echo "$as_me:1414: result: $CC" >&5
1415 echo "${ECHO_T}$CC" >&6
1417 echo "$as_me:1417: result: no" >&5
1418 echo "${ECHO_T}no" >&6
1421 test -n "$CC" && break
1424 if test -z "$CC"; then
1428 # Extract the first word of "$ac_prog", so it can be a program name with args.
1429 set dummy $ac_prog; ac_word=$2
1430 echo "$as_me:1430: checking for $ac_word" >&5
1431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1432 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1433 echo $ECHO_N "(cached) $ECHO_C" >&6
1435 if test -n "$ac_ct_CC"; then
1436 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1438 ac_save_IFS=$IFS; IFS=$ac_path_separator
1440 for ac_dir in $ac_dummy; do
1442 test -z "$ac_dir" && ac_dir=.
1443 $as_executable_p "$ac_dir/$ac_word" || continue
1444 ac_cv_prog_ac_ct_CC="$ac_prog"
1445 echo "$as_me:1445: found $ac_dir/$ac_word" >&5
1451 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1452 if test -n "$ac_ct_CC"; then
1453 echo "$as_me:1453: result: $ac_ct_CC" >&5
1454 echo "${ECHO_T}$ac_ct_CC" >&6
1456 echo "$as_me:1456: result: no" >&5
1457 echo "${ECHO_T}no" >&6
1460 test -n "$ac_ct_CC" && break
1468 test -z "$CC" && { { echo "$as_me:1468: error: no acceptable cc found in \$PATH" >&5
1469 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1470 { (exit 1); exit 1; }; }
1472 # Provide some information about the compiler.
1473 echo "$as_me:1473:" \
1474 "checking for C compiler version" >&5
1475 ac_compiler=`set X $ac_compile; echo $2`
1476 { (eval echo "$as_me:1476: \"$ac_compiler --version </dev/null >&5\"") >&5
1477 (eval $ac_compiler --version </dev/null >&5) 2>&5
1479 echo "$as_me:1479: \$? = $ac_status" >&5
1480 (exit $ac_status); }
1481 { (eval echo "$as_me:1481: \"$ac_compiler -v </dev/null >&5\"") >&5
1482 (eval $ac_compiler -v </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); }
1492 cat >conftest.$ac_ext <<_ACEOF
1493 #line 1493 "configure"
1494 #include "confdefs.h"
1504 ac_clean_files_save=$ac_clean_files
1505 ac_clean_files="$ac_clean_files a.out a.exe"
1506 # Try to create an executable without -o first, disregard a.out.
1507 # It will help us diagnose broken compilers, and finding out an intuition
1509 echo "$as_me:1509: checking for C compiler default output" >&5
1510 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1511 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1512 if { (eval echo "$as_me:1512: \"$ac_link_default\"") >&5
1513 (eval $ac_link_default) 2>&5
1515 echo "$as_me:1515: \$? = $ac_status" >&5
1516 (exit $ac_status); }; then
1517 # Find the output, starting from the most likely. This scheme is
1518 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1520 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1521 ls a.out conftest 2>/dev/null;
1522 ls a.* conftest.* 2>/dev/null`; do
1524 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1525 a.out ) # We found the default executable, but exeext='' is most
1528 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1529 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1536 echo "$as_me: failed program was:" >&5
1537 cat conftest.$ac_ext >&5
1538 { { echo "$as_me:1538: error: C compiler cannot create executables" >&5
1539 echo "$as_me: error: C compiler cannot create executables" >&2;}
1540 { (exit 77); exit 77; }; }
1543 ac_exeext=$ac_cv_exeext
1544 echo "$as_me:1544: result: $ac_file" >&5
1545 echo "${ECHO_T}$ac_file" >&6
1547 # Check the compiler produces executables we can run. If not, either
1548 # the compiler is broken, or we cross compile.
1549 echo "$as_me:1549: checking whether the C compiler works" >&5
1550 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1551 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1552 # If not cross compiling, check that we can run a simple program.
1553 if test "$cross_compiling" != yes; then
1554 if { ac_try='./$ac_file'
1555 { (eval echo "$as_me:1555: \"$ac_try\"") >&5
1558 echo "$as_me:1558: \$? = $ac_status" >&5
1559 (exit $ac_status); }; }; then
1562 if test "$cross_compiling" = maybe; then
1565 { { echo "$as_me:1565: error: cannot run C compiled programs.
1566 If you meant to cross compile, use \`--host'." >&5
1567 echo "$as_me: error: cannot run C compiled programs.
1568 If you meant to cross compile, use \`--host'." >&2;}
1569 { (exit 1); exit 1; }; }
1573 echo "$as_me:1573: result: yes" >&5
1574 echo "${ECHO_T}yes" >&6
1576 rm -f a.out a.exe conftest$ac_cv_exeext
1577 ac_clean_files=$ac_clean_files_save
1578 # Check the compiler produces executables we can run. If not, either
1579 # the compiler is broken, or we cross compile.
1580 echo "$as_me:1580: checking whether we are cross compiling" >&5
1581 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1582 echo "$as_me:1582: result: $cross_compiling" >&5
1583 echo "${ECHO_T}$cross_compiling" >&6
1585 echo "$as_me:1585: checking for executable suffix" >&5
1586 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1587 if { (eval echo "$as_me:1587: \"$ac_link\"") >&5
1588 (eval $ac_link) 2>&5
1590 echo "$as_me:1590: \$? = $ac_status" >&5
1591 (exit $ac_status); }; then
1592 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1593 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1594 # work properly (i.e., refer to `conftest.exe'), while it won't with
1596 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1598 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1599 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1606 { { echo "$as_me:1606: error: cannot compute EXEEXT: cannot compile and link" >&5
1607 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1608 { (exit 1); exit 1; }; }
1611 rm -f conftest$ac_cv_exeext
1612 echo "$as_me:1612: result: $ac_cv_exeext" >&5
1613 echo "${ECHO_T}$ac_cv_exeext" >&6
1615 rm -f conftest.$ac_ext
1616 EXEEXT=$ac_cv_exeext
1618 echo "$as_me:1618: checking for object suffix" >&5
1619 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1620 if test "${ac_cv_objext+set}" = set; then
1621 echo $ECHO_N "(cached) $ECHO_C" >&6
1623 cat >conftest.$ac_ext <<_ACEOF
1624 #line 1624 "configure"
1625 #include "confdefs.h"
1635 rm -f conftest.o conftest.obj
1636 if { (eval echo "$as_me:1636: \"$ac_compile\"") >&5
1637 (eval $ac_compile) 2>&5
1639 echo "$as_me:1639: \$? = $ac_status" >&5
1640 (exit $ac_status); }; then
1641 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1643 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1644 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1649 echo "$as_me: failed program was:" >&5
1650 cat conftest.$ac_ext >&5
1651 { { echo "$as_me:1651: error: cannot compute OBJEXT: cannot compile" >&5
1652 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1653 { (exit 1); exit 1; }; }
1656 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1658 echo "$as_me:1658: result: $ac_cv_objext" >&5
1659 echo "${ECHO_T}$ac_cv_objext" >&6
1660 OBJEXT=$ac_cv_objext
1662 echo "$as_me:1662: checking whether we are using the GNU C compiler" >&5
1663 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1664 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1667 cat >conftest.$ac_ext <<_ACEOF
1668 #line 1668 "configure"
1669 #include "confdefs.h"
1682 rm -f conftest.$ac_objext
1683 if { (eval echo "$as_me:1683: \"$ac_compile\"") >&5
1684 (eval $ac_compile) 2>&5
1686 echo "$as_me:1686: \$? = $ac_status" >&5
1687 (exit $ac_status); } &&
1688 { ac_try='test -s conftest.$ac_objext'
1689 { (eval echo "$as_me:1689: \"$ac_try\"") >&5
1692 echo "$as_me:1692: \$? = $ac_status" >&5
1693 (exit $ac_status); }; }; then
1696 echo "$as_me: failed program was:" >&5
1697 cat conftest.$ac_ext >&5
1700 rm -f conftest.$ac_objext conftest.$ac_ext
1701 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1704 echo "$as_me:1704: result: $ac_cv_c_compiler_gnu" >&5
1705 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1706 GCC=`test $ac_compiler_gnu = yes && echo yes`
1707 ac_test_CFLAGS=${CFLAGS+set}
1708 ac_save_CFLAGS=$CFLAGS
1710 echo "$as_me:1710: checking whether $CC accepts -g" >&5
1711 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1712 if test "${ac_cv_prog_cc_g+set}" = set; then
1713 echo $ECHO_N "(cached) $ECHO_C" >&6
1715 cat >conftest.$ac_ext <<_ACEOF
1716 #line 1716 "configure"
1717 #include "confdefs.h"
1727 rm -f conftest.$ac_objext
1728 if { (eval echo "$as_me:1728: \"$ac_compile\"") >&5
1729 (eval $ac_compile) 2>&5
1731 echo "$as_me:1731: \$? = $ac_status" >&5
1732 (exit $ac_status); } &&
1733 { ac_try='test -s conftest.$ac_objext'
1734 { (eval echo "$as_me:1734: \"$ac_try\"") >&5
1737 echo "$as_me:1737: \$? = $ac_status" >&5
1738 (exit $ac_status); }; }; then
1741 echo "$as_me: failed program was:" >&5
1742 cat conftest.$ac_ext >&5
1745 rm -f conftest.$ac_objext conftest.$ac_ext
1747 echo "$as_me:1747: result: $ac_cv_prog_cc_g" >&5
1748 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1749 if test "$ac_test_CFLAGS" = set; then
1750 CFLAGS=$ac_save_CFLAGS
1751 elif test $ac_cv_prog_cc_g = yes; then
1752 if test "$GCC" = yes; then
1758 if test "$GCC" = yes; then
1764 # Some people use a C++ compiler to compile C. Since we use `exit',
1765 # in C++ we need to declare it. In case someone uses the same compiler
1766 # for both compiling C and C++ we need to have the C++ compiler decide
1767 # the declaration of exit, since it's the most demanding environment.
1768 cat >conftest.$ac_ext <<_ACEOF
1773 rm -f conftest.$ac_objext
1774 if { (eval echo "$as_me:1774: \"$ac_compile\"") >&5
1775 (eval $ac_compile) 2>&5
1777 echo "$as_me:1777: \$? = $ac_status" >&5
1778 (exit $ac_status); } &&
1779 { ac_try='test -s conftest.$ac_objext'
1780 { (eval echo "$as_me:1780: \"$ac_try\"") >&5
1783 echo "$as_me:1783: \$? = $ac_status" >&5
1784 (exit $ac_status); }; }; then
1785 for ac_declaration in \
1787 '#include <stdlib.h>' \
1788 'extern "C" void std::exit (int) throw (); using std::exit;' \
1789 'extern "C" void std::exit (int); using std::exit;' \
1790 'extern "C" void exit (int) throw ();' \
1791 'extern "C" void exit (int);' \
1794 cat >conftest.$ac_ext <<_ACEOF
1795 #line 1795 "configure"
1796 #include "confdefs.h"
1807 rm -f conftest.$ac_objext
1808 if { (eval echo "$as_me:1808: \"$ac_compile\"") >&5
1809 (eval $ac_compile) 2>&5
1811 echo "$as_me:1811: \$? = $ac_status" >&5
1812 (exit $ac_status); } &&
1813 { ac_try='test -s conftest.$ac_objext'
1814 { (eval echo "$as_me:1814: \"$ac_try\"") >&5
1817 echo "$as_me:1817: \$? = $ac_status" >&5
1818 (exit $ac_status); }; }; then
1821 echo "$as_me: failed program was:" >&5
1822 cat conftest.$ac_ext >&5
1825 rm -f conftest.$ac_objext conftest.$ac_ext
1826 cat >conftest.$ac_ext <<_ACEOF
1827 #line 1827 "configure"
1828 #include "confdefs.h"
1838 rm -f conftest.$ac_objext
1839 if { (eval echo "$as_me:1839: \"$ac_compile\"") >&5
1840 (eval $ac_compile) 2>&5
1842 echo "$as_me:1842: \$? = $ac_status" >&5
1843 (exit $ac_status); } &&
1844 { ac_try='test -s conftest.$ac_objext'
1845 { (eval echo "$as_me:1845: \"$ac_try\"") >&5
1848 echo "$as_me:1848: \$? = $ac_status" >&5
1849 (exit $ac_status); }; }; then
1852 echo "$as_me: failed program was:" >&5
1853 cat conftest.$ac_ext >&5
1855 rm -f conftest.$ac_objext conftest.$ac_ext
1858 if test -n "$ac_declaration"; then
1859 echo '#ifdef __cplusplus' >>confdefs.h
1860 echo $ac_declaration >>confdefs.h
1861 echo '#endif' >>confdefs.h
1865 echo "$as_me: failed program was:" >&5
1866 cat conftest.$ac_ext >&5
1868 rm -f conftest.$ac_objext conftest.$ac_ext
1870 ac_cpp='$CPP $CPPFLAGS'
1871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1874 ac_main_return=return
1877 if test "$GCC" = yes ; then
1878 echo "$as_me:1878: checking version of $CC" >&5
1879 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1880 GCC_VERSION="`${CC} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
1881 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1882 echo "$as_me:1882: result: $GCC_VERSION" >&5
1883 echo "${ECHO_T}$GCC_VERSION" >&6
1887 ac_cpp='$CPP $CPPFLAGS'
1888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1891 ac_main_return=return
1892 echo "$as_me:1892: checking how to run the C preprocessor" >&5
1893 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1894 # On Suns, sometimes $CPP names a directory.
1895 if test -n "$CPP" && test -d "$CPP"; then
1898 if test -z "$CPP"; then
1899 if test "${ac_cv_prog_CPP+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1902 # Double quotes because CPP needs to be expanded
1903 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1906 for ac_c_preproc_warn_flag in '' yes
1908 # Use a header file that comes with gcc, so configuring glibc
1909 # with a fresh cross-compiler works.
1910 # On the NeXT, cc -E runs the code through the compiler's parser,
1911 # not just through cpp. "Syntax error" is here to catch this case.
1912 cat >conftest.$ac_ext <<_ACEOF
1913 #line 1913 "configure"
1914 #include "confdefs.h"
1918 if { (eval echo "$as_me:1918: \"$ac_cpp conftest.$ac_ext\"") >&5
1919 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1921 egrep -v '^ *\+' conftest.er1 >conftest.err
1923 cat conftest.err >&5
1924 echo "$as_me:1924: \$? = $ac_status" >&5
1925 (exit $ac_status); } >/dev/null; then
1926 if test -s conftest.err; then
1927 ac_cpp_err=$ac_c_preproc_warn_flag
1934 if test -z "$ac_cpp_err"; then
1937 echo "$as_me: failed program was:" >&5
1938 cat conftest.$ac_ext >&5
1939 # Broken: fails on valid input.
1942 rm -f conftest.err conftest.$ac_ext
1944 # OK, works on sane cases. Now check whether non-existent headers
1945 # can be detected and how.
1946 cat >conftest.$ac_ext <<_ACEOF
1947 #line 1947 "configure"
1948 #include "confdefs.h"
1949 #include <ac_nonexistent.h>
1951 if { (eval echo "$as_me:1951: \"$ac_cpp conftest.$ac_ext\"") >&5
1952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1954 egrep -v '^ *\+' conftest.er1 >conftest.err
1956 cat conftest.err >&5
1957 echo "$as_me:1957: \$? = $ac_status" >&5
1958 (exit $ac_status); } >/dev/null; then
1959 if test -s conftest.err; then
1960 ac_cpp_err=$ac_c_preproc_warn_flag
1967 if test -z "$ac_cpp_err"; then
1968 # Broken: success on invalid input.
1971 echo "$as_me: failed program was:" >&5
1972 cat conftest.$ac_ext >&5
1973 # Passes both tests.
1977 rm -f conftest.err conftest.$ac_ext
1980 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1981 rm -f conftest.err conftest.$ac_ext
1982 if $ac_preproc_ok; then
1994 echo "$as_me:1994: result: $CPP" >&5
1995 echo "${ECHO_T}$CPP" >&6
1997 for ac_c_preproc_warn_flag in '' yes
1999 # Use a header file that comes with gcc, so configuring glibc
2000 # with a fresh cross-compiler works.
2001 # On the NeXT, cc -E runs the code through the compiler's parser,
2002 # not just through cpp. "Syntax error" is here to catch this case.
2003 cat >conftest.$ac_ext <<_ACEOF
2004 #line 2004 "configure"
2005 #include "confdefs.h"
2009 if { (eval echo "$as_me:2009: \"$ac_cpp conftest.$ac_ext\"") >&5
2010 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2012 egrep -v '^ *\+' conftest.er1 >conftest.err
2014 cat conftest.err >&5
2015 echo "$as_me:2015: \$? = $ac_status" >&5
2016 (exit $ac_status); } >/dev/null; then
2017 if test -s conftest.err; then
2018 ac_cpp_err=$ac_c_preproc_warn_flag
2025 if test -z "$ac_cpp_err"; then
2028 echo "$as_me: failed program was:" >&5
2029 cat conftest.$ac_ext >&5
2030 # Broken: fails on valid input.
2033 rm -f conftest.err conftest.$ac_ext
2035 # OK, works on sane cases. Now check whether non-existent headers
2036 # can be detected and how.
2037 cat >conftest.$ac_ext <<_ACEOF
2038 #line 2038 "configure"
2039 #include "confdefs.h"
2040 #include <ac_nonexistent.h>
2042 if { (eval echo "$as_me:2042: \"$ac_cpp conftest.$ac_ext\"") >&5
2043 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2045 egrep -v '^ *\+' conftest.er1 >conftest.err
2047 cat conftest.err >&5
2048 echo "$as_me:2048: \$? = $ac_status" >&5
2049 (exit $ac_status); } >/dev/null; then
2050 if test -s conftest.err; then
2051 ac_cpp_err=$ac_c_preproc_warn_flag
2058 if test -z "$ac_cpp_err"; then
2059 # Broken: success on invalid input.
2062 echo "$as_me: failed program was:" >&5
2063 cat conftest.$ac_ext >&5
2064 # Passes both tests.
2068 rm -f conftest.err conftest.$ac_ext
2071 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2072 rm -f conftest.err conftest.$ac_ext
2073 if $ac_preproc_ok; then
2076 { { echo "$as_me:2076: error: C preprocessor \"$CPP\" fails sanity check" >&5
2077 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2078 { (exit 1); exit 1; }; }
2082 ac_cpp='$CPP $CPPFLAGS'
2083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2086 ac_main_return=return
2088 if test $ac_cv_c_compiler_gnu = yes; then
2089 echo "$as_me:2089: checking whether $CC needs -traditional" >&5
2090 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2091 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2092 echo $ECHO_N "(cached) $ECHO_C" >&6
2094 ac_pattern="Autoconf.*'x'"
2095 cat >conftest.$ac_ext <<_ACEOF
2096 #line 2096 "configure"
2097 #include "confdefs.h"
2099 int Autoconf = TIOCGETP;
2101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2102 egrep "$ac_pattern" >/dev/null 2>&1; then
2103 ac_cv_prog_gcc_traditional=yes
2105 ac_cv_prog_gcc_traditional=no
2109 if test $ac_cv_prog_gcc_traditional = no; then
2110 cat >conftest.$ac_ext <<_ACEOF
2111 #line 2111 "configure"
2112 #include "confdefs.h"
2114 int Autoconf = TCGETA;
2116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2117 egrep "$ac_pattern" >/dev/null 2>&1; then
2118 ac_cv_prog_gcc_traditional=yes
2124 echo "$as_me:2124: result: $ac_cv_prog_gcc_traditional" >&5
2125 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2126 if test $ac_cv_prog_gcc_traditional = yes; then
2127 CC="$CC -traditional"
2131 echo "$as_me:2131: checking whether $CC understands -c and -o together" >&5
2132 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2133 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 cat > conftest.$ac_ext <<CF_EOF
2141 ${cf_cv_main_return:-return}(0);
2144 # We do the test twice because some compilers refuse to overwrite an
2145 # existing .o file with -o, though they will create one.
2146 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2147 if { (eval echo "$as_me:2147: \"$ac_try\"") >&5
2150 echo "$as_me:2150: \$? = $ac_status" >&5
2151 (exit $ac_status); } &&
2152 test -f conftest2.$ac_objext && { (eval echo "$as_me:2152: \"$ac_try\"") >&5
2155 echo "$as_me:2155: \$? = $ac_status" >&5
2156 (exit $ac_status); };
2158 eval cf_cv_prog_CC_c_o=yes
2160 eval cf_cv_prog_CC_c_o=no
2165 if test $cf_cv_prog_CC_c_o = yes; then
2166 echo "$as_me:2166: result: yes" >&5
2167 echo "${ECHO_T}yes" >&6
2169 echo "$as_me:2169: result: no" >&5
2170 echo "${ECHO_T}no" >&6
2173 echo "$as_me:2173: checking for POSIXized ISC" >&5
2174 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2175 if test -d /etc/conf/kconfig.d &&
2176 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2178 echo "$as_me:2178: result: yes" >&5
2179 echo "${ECHO_T}yes" >&6
2180 ISC=yes # If later tests want to check for ISC.
2182 cat >>confdefs.h <<\EOF
2183 #define _POSIX_SOURCE 1
2186 if test "$GCC" = yes; then
2192 echo "$as_me:2192: result: no" >&5
2193 echo "${ECHO_T}no" >&6
2197 echo "$as_me:2197: checking for ${CC-cc} option to accept ANSI C" >&5
2198 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2199 if test "${cf_cv_ansi_cc+set}" = set; then
2200 echo $ECHO_N "(cached) $ECHO_C" >&6
2204 cf_save_CFLAGS="$CFLAGS"
2205 cf_save_CPPFLAGS="$CPPFLAGS"
2206 # Don't try gcc -ansi; that turns off useful extensions and
2207 # breaks some systems' header files.
2208 # AIX -qlanglvl=ansi
2209 # Ultrix and OSF/1 -std1
2210 # HP-UX -Aa -D_HPUX_SOURCE
2212 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2213 for cf_arg in "-DCC_HAS_PROTOS" \
2218 "-Aa -D_HPUX_SOURCE" \
2225 cf_new_extra_cppflags=
2227 for cf_add_cflags in $cf_arg
2229 case $cf_fix_cppflags in
2231 case $cf_add_cflags in #(vi
2232 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2233 case $cf_add_cflags in
2235 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2237 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2238 && test -z "${cf_tst_cflags}" \
2239 && cf_fix_cppflags=yes
2241 if test $cf_fix_cppflags = yes ; then
2242 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2244 elif test "${cf_tst_cflags}" = "\"'" ; then
2245 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2251 *$cf_add_cflags) #(vi
2254 case $cf_add_cflags in #(vi
2256 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2258 CPPFLAGS=`echo "$CPPFLAGS" | \
2259 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2260 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2264 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2269 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2274 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2276 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2278 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2279 && test -z "${cf_tst_cflags}" \
2280 && cf_fix_cppflags=no
2285 if test -n "$cf_new_cflags" ; then
2287 CFLAGS="$CFLAGS $cf_new_cflags"
2290 if test -n "$cf_new_cppflags" ; then
2292 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2295 if test -n "$cf_new_extra_cppflags" ; then
2297 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2300 cat >conftest.$ac_ext <<_ACEOF
2301 #line 2301 "configure"
2302 #include "confdefs.h"
2304 #ifndef CC_HAS_PROTOS
2305 #if !defined(__STDC__) || (__STDC__ != 1)
2314 int test (int i, double x);
2315 struct s1 {int (*f) (int a);};
2316 struct s2 {int (*f) (double a);};
2321 rm -f conftest.$ac_objext
2322 if { (eval echo "$as_me:2322: \"$ac_compile\"") >&5
2323 (eval $ac_compile) 2>&5
2325 echo "$as_me:2325: \$? = $ac_status" >&5
2326 (exit $ac_status); } &&
2327 { ac_try='test -s conftest.$ac_objext'
2328 { (eval echo "$as_me:2328: \"$ac_try\"") >&5
2331 echo "$as_me:2331: \$? = $ac_status" >&5
2332 (exit $ac_status); }; }; then
2333 cf_cv_ansi_cc="$cf_arg"; break
2335 echo "$as_me: failed program was:" >&5
2336 cat conftest.$ac_ext >&5
2338 rm -f conftest.$ac_objext conftest.$ac_ext
2340 CFLAGS="$cf_save_CFLAGS"
2341 CPPFLAGS="$cf_save_CPPFLAGS"
2344 echo "$as_me:2344: result: $cf_cv_ansi_cc" >&5
2345 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2347 if test "$cf_cv_ansi_cc" != "no"; then
2348 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2353 cf_new_extra_cppflags=
2355 for cf_add_cflags in $cf_cv_ansi_cc
2357 case $cf_fix_cppflags in
2359 case $cf_add_cflags in #(vi
2360 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2361 case $cf_add_cflags in
2363 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2365 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2366 && test -z "${cf_tst_cflags}" \
2367 && cf_fix_cppflags=yes
2369 if test $cf_fix_cppflags = yes ; then
2370 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2372 elif test "${cf_tst_cflags}" = "\"'" ; then
2373 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2379 *$cf_add_cflags) #(vi
2382 case $cf_add_cflags in #(vi
2384 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2386 CPPFLAGS=`echo "$CPPFLAGS" | \
2387 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2388 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2392 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2397 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2402 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2404 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2406 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2407 && test -z "${cf_tst_cflags}" \
2408 && cf_fix_cppflags=no
2413 if test -n "$cf_new_cflags" ; then
2415 CFLAGS="$CFLAGS $cf_new_cflags"
2418 if test -n "$cf_new_cppflags" ; then
2420 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2423 if test -n "$cf_new_extra_cppflags" ; then
2425 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2429 cat >>confdefs.h <<\EOF
2430 #define CC_HAS_PROTOS 1
2436 if test "$cf_cv_ansi_cc" = "no"; then
2437 { { echo "$as_me:2437: error: Your compiler does not appear to recognize prototypes.
2438 You have the following choices:
2439 a. adjust your compiler options
2440 b. get an up-to-date compiler
2441 c. use a wrapper such as unproto" >&5
2442 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2443 You have the following choices:
2444 a. adjust your compiler options
2445 b. get an up-to-date compiler
2446 c. use a wrapper such as unproto" >&2;}
2447 { (exit 1); exit 1; }; }
2450 case $cf_cv_system_name in
2452 CFLAGS="$CFLAGS -Zmt"
2453 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2454 CXXFLAGS="$CXXFLAGS -Zmt"
2455 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2456 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2463 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2464 #define PROG_EXT "$PROG_EXT"
2467 test "$program_prefix" != NONE &&
2468 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2469 # Use a double $ so make ignores it.
2470 test "$program_suffix" != NONE &&
2471 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2472 # Double any \ or $. echo might interpret backslashes.
2473 # By default was `s,x,x', remove it if useless.
2474 cat <<\_ACEOF >conftest.sed
2475 s/[\\$]/&&/g;s/;s,x,x,$//
2477 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2480 for ac_prog in mawk gawk nawk awk
2482 # Extract the first word of "$ac_prog", so it can be a program name with args.
2483 set dummy $ac_prog; ac_word=$2
2484 echo "$as_me:2484: checking for $ac_word" >&5
2485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2486 if test "${ac_cv_prog_AWK+set}" = set; then
2487 echo $ECHO_N "(cached) $ECHO_C" >&6
2489 if test -n "$AWK"; then
2490 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2492 ac_save_IFS=$IFS; IFS=$ac_path_separator
2494 for ac_dir in $ac_dummy; do
2496 test -z "$ac_dir" && ac_dir=.
2497 $as_executable_p "$ac_dir/$ac_word" || continue
2498 ac_cv_prog_AWK="$ac_prog"
2499 echo "$as_me:2499: found $ac_dir/$ac_word" >&5
2506 if test -n "$AWK"; then
2507 echo "$as_me:2507: result: $AWK" >&5
2508 echo "${ECHO_T}$AWK" >&6
2510 echo "$as_me:2510: result: no" >&5
2511 echo "${ECHO_T}no" >&6
2514 test -n "$AWK" && break
2517 test -z "$AWK" && { { echo "$as_me:2517: error: No awk program found" >&5
2518 echo "$as_me: error: No awk program found" >&2;}
2519 { (exit 1); exit 1; }; }
2521 echo "$as_me:2521: checking for egrep" >&5
2522 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2523 if test "${ac_cv_prog_egrep+set}" = set; then
2524 echo $ECHO_N "(cached) $ECHO_C" >&6
2526 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2527 then ac_cv_prog_egrep='grep -E'
2528 else ac_cv_prog_egrep='egrep'
2531 echo "$as_me:2531: result: $ac_cv_prog_egrep" >&5
2532 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2533 EGREP=$ac_cv_prog_egrep
2535 test -z "$EGREP" && { { echo "$as_me:2535: error: No egrep program found" >&5
2536 echo "$as_me: error: No egrep program found" >&2;}
2537 { (exit 1); exit 1; }; }
2539 # Find a good install program. We prefer a C program (faster),
2540 # so one script is as good as another. But avoid the broken or
2541 # incompatible versions:
2542 # SysV /etc/install, /usr/sbin/install
2543 # SunOS /usr/etc/install
2544 # IRIX /sbin/install
2546 # AmigaOS /C/install, which installs bootblocks on floppy discs
2547 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2548 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2549 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2550 # ./install, which can be erroneously created by make from ./install.sh.
2551 echo "$as_me:2551: checking for a BSD compatible install" >&5
2552 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2553 if test -z "$INSTALL"; then
2554 if test "${ac_cv_path_install+set}" = set; then
2555 echo $ECHO_N "(cached) $ECHO_C" >&6
2557 ac_save_IFS=$IFS; IFS=$ac_path_separator
2558 for ac_dir in $PATH; do
2560 # Account for people who put trailing slashes in PATH elements.
2562 / | ./ | .// | /cC/* \
2563 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2566 # OSF1 and SCO ODT 3.0 have their own names for install.
2567 # Don't use installbsd from OSF since it installs stuff as root
2569 for ac_prog in ginstall scoinst install; do
2570 if $as_executable_p "$ac_dir/$ac_prog"; then
2571 if test $ac_prog = install &&
2572 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2573 # AIX install. It has an incompatible calling convention.
2575 elif test $ac_prog = install &&
2576 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2577 # program-specific install script used by HP pwplus--don't use.
2580 ac_cv_path_install="$ac_dir/$ac_prog -c"
2590 if test "${ac_cv_path_install+set}" = set; then
2591 INSTALL=$ac_cv_path_install
2593 # As a last resort, use the slow shell script. We don't cache a
2594 # path for INSTALL within a source directory, because that will
2595 # break other packages using the cache if that directory is
2596 # removed, or if the path is relative.
2597 INSTALL=$ac_install_sh
2600 echo "$as_me:2600: result: $INSTALL" >&5
2601 echo "${ECHO_T}$INSTALL" >&6
2603 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2604 # It thinks the first close brace ends the variable substitution.
2605 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2607 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2609 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2611 echo "$as_me:2611: checking whether ln -s works" >&5
2612 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2614 if test "$LN_S" = "ln -s"; then
2615 echo "$as_me:2615: result: yes" >&5
2616 echo "${ECHO_T}yes" >&6
2618 echo "$as_me:2618: result: no, using $LN_S" >&5
2619 echo "${ECHO_T}no, using $LN_S" >&6
2622 echo "$as_me:2622: checking for long file names" >&5
2623 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
2624 if test "${ac_cv_sys_long_file_names+set}" = set; then
2625 echo $ECHO_N "(cached) $ECHO_C" >&6
2627 ac_cv_sys_long_file_names=yes
2628 # Test for long file names in all the places we know might matter:
2629 # . the current directory, where building will happen
2630 # $prefix/lib where we will be installing things
2631 # $exec_prefix/lib likewise
2632 # eval it to expand exec_prefix.
2633 # $TMPDIR if set, where it might want to write temporary files
2634 # if $TMPDIR is not set:
2635 # /tmp where it might want to write temporary files
2638 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
2641 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
2643 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
2644 test -d $ac_dir || continue
2645 test -w $ac_dir || continue # It is less confusing to not echo anything here.
2646 ac_xdir=$ac_dir/cf$$
2647 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
2648 ac_tf1=$ac_xdir/conftest9012345
2649 ac_tf2=$ac_xdir/conftest9012346
2650 (echo 1 >$ac_tf1) 2>/dev/null
2651 (echo 2 >$ac_tf2) 2>/dev/null
2652 ac_val=`cat $ac_tf1 2>/dev/null`
2653 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
2654 ac_cv_sys_long_file_names=no
2655 rm -rf $ac_xdir 2>/dev/null
2658 rm -rf $ac_xdir 2>/dev/null
2661 echo "$as_me:2661: result: $ac_cv_sys_long_file_names" >&5
2662 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
2663 if test $ac_cv_sys_long_file_names = yes; then
2665 cat >>confdefs.h <<\EOF
2666 #define HAVE_LONG_FILE_NAMES 1
2671 # if we find pkg-config, check if we should install the ".pc" files.
2673 echo "$as_me:2673: checking if you want to use pkg-config" >&5
2674 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
2676 # Check whether --with-pkg-config or --without-pkg-config was given.
2677 if test "${with_pkg_config+set}" = set; then
2678 withval="$with_pkg_config"
2679 cf_pkg_config=$withval
2683 echo "$as_me:2683: result: $cf_pkg_config" >&5
2684 echo "${ECHO_T}$cf_pkg_config" >&6
2686 case $cf_pkg_config in #(vi
2691 # Extract the first word of "pkg-config", so it can be a program name with args.
2692 set dummy pkg-config; ac_word=$2
2693 echo "$as_me:2693: checking for $ac_word" >&5
2694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2695 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2700 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
2703 ac_save_IFS=$IFS; IFS=$ac_path_separator
2705 for ac_dir in $ac_dummy; do
2707 test -z "$ac_dir" && ac_dir=.
2708 if $as_executable_p "$ac_dir/$ac_word"; then
2709 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
2710 echo "$as_me:2710: found $ac_dir/$ac_word" >&5
2715 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="none"
2719 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
2721 if test -n "$PKG_CONFIG"; then
2722 echo "$as_me:2722: result: $PKG_CONFIG" >&5
2723 echo "${ECHO_T}$PKG_CONFIG" >&6
2725 echo "$as_me:2725: result: no" >&5
2726 echo "${ECHO_T}no" >&6
2735 test -z "$PKG_CONFIG" && PKG_CONFIG=none
2736 if test "$PKG_CONFIG" != none ; then
2738 if test "x$prefix" != xNONE; then
2739 cf_path_syntax="$prefix"
2741 cf_path_syntax="$ac_default_prefix"
2744 case ".$PKG_CONFIG" in #(vi
2745 .\$\(*\)*|.\'*\'*) #(vi
2749 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
2752 eval PKG_CONFIG="$PKG_CONFIG"
2753 case ".$PKG_CONFIG" in #(vi
2755 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
2760 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
2763 { { echo "$as_me:2763: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
2764 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
2765 { (exit 1); exit 1; }; }
2771 if test "$PKG_CONFIG" != no ; then
2772 echo "$as_me:2772: checking if we should install .pc files for $PKG_CONFIG" >&5
2773 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
2775 # Leave this as something that can be overridden in the environment.
2776 if test -z "$PKG_CONFIG_LIBDIR" ; then
2777 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`/lib/pkgconfig
2779 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG_LIBDIR" | sed -e 's/^://' -e 's/:.*//'`
2780 if test -n "$PKG_CONFIG_LIBDIR" && test -d "$PKG_CONFIG_LIBDIR" ; then
2782 # Check whether --enable-pc-files or --disable-pc-files was given.
2783 if test "${enable_pc_files+set}" = set; then
2784 enableval="$enable_pc_files"
2785 enable_pc_files=$enableval
2789 echo "$as_me:2789: result: $enable_pc_files" >&5
2790 echo "${ECHO_T}$enable_pc_files" >&6
2792 echo "$as_me:2792: result: no" >&5
2793 echo "${ECHO_T}no" >&6
2794 { echo "$as_me:2794: WARNING: did not find library $PKG_CONFIG_LIBDIR" >&5
2795 echo "$as_me: WARNING: did not find library $PKG_CONFIG_LIBDIR" >&2;}
2800 echo "$as_me:2800: checking if we should assume mixed-case filenames" >&5
2801 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
2803 # Check whether --enable-mixed-case or --disable-mixed-case was given.
2804 if test "${enable_mixed_case+set}" = set; then
2805 enableval="$enable_mixed_case"
2806 enable_mixedcase=$enableval
2808 enable_mixedcase=auto
2810 echo "$as_me:2810: result: $enable_mixedcase" >&5
2811 echo "${ECHO_T}$enable_mixedcase" >&6
2812 if test "$enable_mixedcase" = "auto" ; then
2814 echo "$as_me:2814: checking if filesystem supports mixed-case filenames" >&5
2815 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2816 if test "${cf_cv_mixedcase+set}" = set; then
2817 echo $ECHO_N "(cached) $ECHO_C" >&6
2820 if test "$cross_compiling" = yes ; then
2821 case $target_alias in #(vi
2822 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
2830 rm -f conftest CONFTEST
2832 if test -f CONFTEST ; then
2837 rm -f conftest CONFTEST
2841 echo "$as_me:2841: result: $cf_cv_mixedcase" >&5
2842 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2843 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
2844 #define MIXEDCASE_FILENAMES 1
2848 cf_cv_mixedcase=$enable_mixedcase
2849 if test "$enable_mixedcase" = "yes" ; then
2850 cat >>confdefs.h <<\EOF
2851 #define MIXEDCASE_FILENAMES 1
2857 # do this after mixed-case option (tags/TAGS is not as important as tic).
2858 echo "$as_me:2858: checking whether ${MAKE-make} sets \${MAKE}" >&5
2859 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2860 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2861 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2862 echo $ECHO_N "(cached) $ECHO_C" >&6
2864 cat >conftest.make <<\EOF
2866 @echo 'ac_maketemp="${MAKE}"'
2868 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2869 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2870 if test -n "$ac_maketemp"; then
2871 eval ac_cv_prog_make_${ac_make}_set=yes
2873 eval ac_cv_prog_make_${ac_make}_set=no
2877 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2878 echo "$as_me:2878: result: yes" >&5
2879 echo "${ECHO_T}yes" >&6
2882 echo "$as_me:2882: result: no" >&5
2883 echo "${ECHO_T}no" >&6
2884 SET_MAKE="MAKE=${MAKE-make}"
2887 # Extract the first word of "ctags", so it can be a program name with args.
2888 set dummy ctags; ac_word=$2
2889 echo "$as_me:2889: checking for $ac_word" >&5
2890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2891 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2892 echo $ECHO_N "(cached) $ECHO_C" >&6
2894 if test -n "$MAKE_LOWER_TAGS"; then
2895 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2897 ac_save_IFS=$IFS; IFS=$ac_path_separator
2899 for ac_dir in $ac_dummy; do
2901 test -z "$ac_dir" && ac_dir=.
2902 $as_executable_p "$ac_dir/$ac_word" || continue
2903 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2904 echo "$as_me:2904: found $ac_dir/$ac_word" >&5
2908 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2911 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2912 if test -n "$MAKE_LOWER_TAGS"; then
2913 echo "$as_me:2913: result: $MAKE_LOWER_TAGS" >&5
2914 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2916 echo "$as_me:2916: result: no" >&5
2917 echo "${ECHO_T}no" >&6
2920 if test "$cf_cv_mixedcase" = yes ; then
2921 # Extract the first word of "etags", so it can be a program name with args.
2922 set dummy etags; ac_word=$2
2923 echo "$as_me:2923: checking for $ac_word" >&5
2924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2925 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2926 echo $ECHO_N "(cached) $ECHO_C" >&6
2928 if test -n "$MAKE_UPPER_TAGS"; then
2929 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2931 ac_save_IFS=$IFS; IFS=$ac_path_separator
2933 for ac_dir in $ac_dummy; do
2935 test -z "$ac_dir" && ac_dir=.
2936 $as_executable_p "$ac_dir/$ac_word" || continue
2937 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2938 echo "$as_me:2938: found $ac_dir/$ac_word" >&5
2942 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2945 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2946 if test -n "$MAKE_UPPER_TAGS"; then
2947 echo "$as_me:2947: result: $MAKE_UPPER_TAGS" >&5
2948 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2950 echo "$as_me:2950: result: no" >&5
2951 echo "${ECHO_T}no" >&6
2958 if test "$MAKE_UPPER_TAGS" = yes ; then
2964 if test "$MAKE_LOWER_TAGS" = yes ; then
2970 echo "$as_me:2970: checking for makeflags variable" >&5
2971 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
2972 if test "${cf_cv_makeflags+set}" = set; then
2973 echo $ECHO_N "(cached) $ECHO_C" >&6
2977 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
2979 cat >cf_makeflags.tmp <<CF_EOF
2982 @ echo '.$cf_option'
2984 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null | sed -e 's,[ ]*$,,'`
2985 case "$cf_result" in
2987 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
2988 case "$cf_result" in
2989 .*CC=*) cf_cv_makeflags=
2991 *) cf_cv_makeflags=$cf_option
2997 *) echo "given option \"$cf_option\", no match \"$cf_result\""
3001 rm -f cf_makeflags.tmp
3004 echo "$as_me:3004: result: $cf_cv_makeflags" >&5
3005 echo "${ECHO_T}$cf_cv_makeflags" >&6
3007 if test -n "$ac_tool_prefix"; then
3008 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3009 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3010 echo "$as_me:3010: checking for $ac_word" >&5
3011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3012 if test "${ac_cv_prog_RANLIB+set}" = set; then
3013 echo $ECHO_N "(cached) $ECHO_C" >&6
3015 if test -n "$RANLIB"; then
3016 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3018 ac_save_IFS=$IFS; IFS=$ac_path_separator
3020 for ac_dir in $ac_dummy; do
3022 test -z "$ac_dir" && ac_dir=.
3023 $as_executable_p "$ac_dir/$ac_word" || continue
3024 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3025 echo "$as_me:3025: found $ac_dir/$ac_word" >&5
3031 RANLIB=$ac_cv_prog_RANLIB
3032 if test -n "$RANLIB"; then
3033 echo "$as_me:3033: result: $RANLIB" >&5
3034 echo "${ECHO_T}$RANLIB" >&6
3036 echo "$as_me:3036: result: no" >&5
3037 echo "${ECHO_T}no" >&6
3041 if test -z "$ac_cv_prog_RANLIB"; then
3042 ac_ct_RANLIB=$RANLIB
3043 # Extract the first word of "ranlib", so it can be a program name with args.
3044 set dummy ranlib; ac_word=$2
3045 echo "$as_me:3045: checking for $ac_word" >&5
3046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3047 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3048 echo $ECHO_N "(cached) $ECHO_C" >&6
3050 if test -n "$ac_ct_RANLIB"; then
3051 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3053 ac_save_IFS=$IFS; IFS=$ac_path_separator
3055 for ac_dir in $ac_dummy; do
3057 test -z "$ac_dir" && ac_dir=.
3058 $as_executable_p "$ac_dir/$ac_word" || continue
3059 ac_cv_prog_ac_ct_RANLIB="ranlib"
3060 echo "$as_me:3060: found $ac_dir/$ac_word" >&5
3064 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3067 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3068 if test -n "$ac_ct_RANLIB"; then
3069 echo "$as_me:3069: result: $ac_ct_RANLIB" >&5
3070 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3072 echo "$as_me:3072: result: no" >&5
3073 echo "${ECHO_T}no" >&6
3076 RANLIB=$ac_ct_RANLIB
3078 RANLIB="$ac_cv_prog_RANLIB"
3081 if test -n "$ac_tool_prefix"; then
3082 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3083 set dummy ${ac_tool_prefix}ld; ac_word=$2
3084 echo "$as_me:3084: checking for $ac_word" >&5
3085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3086 if test "${ac_cv_prog_LD+set}" = set; then
3087 echo $ECHO_N "(cached) $ECHO_C" >&6
3089 if test -n "$LD"; then
3090 ac_cv_prog_LD="$LD" # Let the user override the test.
3092 ac_save_IFS=$IFS; IFS=$ac_path_separator
3094 for ac_dir in $ac_dummy; do
3096 test -z "$ac_dir" && ac_dir=.
3097 $as_executable_p "$ac_dir/$ac_word" || continue
3098 ac_cv_prog_LD="${ac_tool_prefix}ld"
3099 echo "$as_me:3099: found $ac_dir/$ac_word" >&5
3106 if test -n "$LD"; then
3107 echo "$as_me:3107: result: $LD" >&5
3108 echo "${ECHO_T}$LD" >&6
3110 echo "$as_me:3110: result: no" >&5
3111 echo "${ECHO_T}no" >&6
3115 if test -z "$ac_cv_prog_LD"; then
3117 # Extract the first word of "ld", so it can be a program name with args.
3118 set dummy ld; ac_word=$2
3119 echo "$as_me:3119: checking for $ac_word" >&5
3120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3121 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3122 echo $ECHO_N "(cached) $ECHO_C" >&6
3124 if test -n "$ac_ct_LD"; then
3125 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3127 ac_save_IFS=$IFS; IFS=$ac_path_separator
3129 for ac_dir in $ac_dummy; do
3131 test -z "$ac_dir" && ac_dir=.
3132 $as_executable_p "$ac_dir/$ac_word" || continue
3133 ac_cv_prog_ac_ct_LD="ld"
3134 echo "$as_me:3134: found $ac_dir/$ac_word" >&5
3138 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3141 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3142 if test -n "$ac_ct_LD"; then
3143 echo "$as_me:3143: result: $ac_ct_LD" >&5
3144 echo "${ECHO_T}$ac_ct_LD" >&6
3146 echo "$as_me:3146: result: no" >&5
3147 echo "${ECHO_T}no" >&6
3155 if test -n "$ac_tool_prefix"; then
3156 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3157 set dummy ${ac_tool_prefix}ar; ac_word=$2
3158 echo "$as_me:3158: checking for $ac_word" >&5
3159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3160 if test "${ac_cv_prog_AR+set}" = set; then
3161 echo $ECHO_N "(cached) $ECHO_C" >&6
3163 if test -n "$AR"; then
3164 ac_cv_prog_AR="$AR" # Let the user override the test.
3166 ac_save_IFS=$IFS; IFS=$ac_path_separator
3168 for ac_dir in $ac_dummy; do
3170 test -z "$ac_dir" && ac_dir=.
3171 $as_executable_p "$ac_dir/$ac_word" || continue
3172 ac_cv_prog_AR="${ac_tool_prefix}ar"
3173 echo "$as_me:3173: found $ac_dir/$ac_word" >&5
3180 if test -n "$AR"; then
3181 echo "$as_me:3181: result: $AR" >&5
3182 echo "${ECHO_T}$AR" >&6
3184 echo "$as_me:3184: result: no" >&5
3185 echo "${ECHO_T}no" >&6
3189 if test -z "$ac_cv_prog_AR"; then
3191 # Extract the first word of "ar", so it can be a program name with args.
3192 set dummy ar; ac_word=$2
3193 echo "$as_me:3193: checking for $ac_word" >&5
3194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3195 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3196 echo $ECHO_N "(cached) $ECHO_C" >&6
3198 if test -n "$ac_ct_AR"; then
3199 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3201 ac_save_IFS=$IFS; IFS=$ac_path_separator
3203 for ac_dir in $ac_dummy; do
3205 test -z "$ac_dir" && ac_dir=.
3206 $as_executable_p "$ac_dir/$ac_word" || continue
3207 ac_cv_prog_ac_ct_AR="ar"
3208 echo "$as_me:3208: found $ac_dir/$ac_word" >&5
3212 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3215 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3216 if test -n "$ac_ct_AR"; then
3217 echo "$as_me:3217: result: $ac_ct_AR" >&5
3218 echo "${ECHO_T}$ac_ct_AR" >&6
3220 echo "$as_me:3220: result: no" >&5
3221 echo "${ECHO_T}no" >&6
3229 if test -n "$ac_tool_prefix"; then
3230 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3231 set dummy ${ac_tool_prefix}ar; ac_word=$2
3232 echo "$as_me:3232: checking for $ac_word" >&5
3233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3234 if test "${ac_cv_prog_AR+set}" = set; then
3235 echo $ECHO_N "(cached) $ECHO_C" >&6
3237 if test -n "$AR"; then
3238 ac_cv_prog_AR="$AR" # Let the user override the test.
3240 ac_save_IFS=$IFS; IFS=$ac_path_separator
3242 for ac_dir in $ac_dummy; do
3244 test -z "$ac_dir" && ac_dir=.
3245 $as_executable_p "$ac_dir/$ac_word" || continue
3246 ac_cv_prog_AR="${ac_tool_prefix}ar"
3247 echo "$as_me:3247: found $ac_dir/$ac_word" >&5
3254 if test -n "$AR"; then
3255 echo "$as_me:3255: result: $AR" >&5
3256 echo "${ECHO_T}$AR" >&6
3258 echo "$as_me:3258: result: no" >&5
3259 echo "${ECHO_T}no" >&6
3263 if test -z "$ac_cv_prog_AR"; then
3265 # Extract the first word of "ar", so it can be a program name with args.
3266 set dummy ar; ac_word=$2
3267 echo "$as_me:3267: checking for $ac_word" >&5
3268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3269 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3270 echo $ECHO_N "(cached) $ECHO_C" >&6
3272 if test -n "$ac_ct_AR"; then
3273 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3275 ac_save_IFS=$IFS; IFS=$ac_path_separator
3277 for ac_dir in $ac_dummy; do
3279 test -z "$ac_dir" && ac_dir=.
3280 $as_executable_p "$ac_dir/$ac_word" || continue
3281 ac_cv_prog_ac_ct_AR="ar"
3282 echo "$as_me:3282: found $ac_dir/$ac_word" >&5
3286 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3289 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3290 if test -n "$ac_ct_AR"; then
3291 echo "$as_me:3291: result: $ac_ct_AR" >&5
3292 echo "${ECHO_T}$ac_ct_AR" >&6
3294 echo "$as_me:3294: result: no" >&5
3295 echo "${ECHO_T}no" >&6
3303 echo "$as_me:3303: checking for options to update archives" >&5
3304 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
3305 if test "${cf_cv_ar_flags+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
3309 cf_cv_ar_flags=unknown
3310 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
3312 rm -f conftest.$ac_cv_objext
3315 cat >conftest.$ac_ext <<EOF
3316 #line 3316 "configure"
3317 int testdata[3] = { 123, 456, 789 };
3319 if { (eval echo "$as_me:3319: \"$ac_compile\"") >&5
3320 (eval $ac_compile) 2>&5
3322 echo "$as_me:3322: \$? = $ac_status" >&5
3323 (exit $ac_status); } ; then
3324 $AR $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
3325 if test -f conftest.a ; then
3326 cf_cv_ar_flags=$cf_ar_flags
3330 test -n "$verbose" && echo " cannot compile test-program" 1>&6
3332 echo "${as_me-configure}:3332: testing cannot compile test-program ..." 1>&5
3337 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
3340 echo "$as_me:3340: result: $cf_cv_ar_flags" >&5
3341 echo "${ECHO_T}$cf_cv_ar_flags" >&6
3342 test -z "$ARFLAGS" && ARFLAGS=$cf_cv_ar_flags
3343 ARFLAGS=$cf_cv_ar_flags
3345 echo "$as_me:3345: checking if you have specified an install-prefix" >&5
3346 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
3348 # Check whether --with-install-prefix or --without-install-prefix was given.
3349 if test "${with_install_prefix+set}" = set; then
3350 withval="$with_install_prefix"
3351 case "$withval" in #(vi
3354 *) DESTDIR="$withval"
3358 echo "$as_me:3358: result: $DESTDIR" >&5
3359 echo "${ECHO_T}$DESTDIR" >&6
3361 ###############################################################################
3363 # If we're cross-compiling, allow the user to override the tools and their
3364 # options. The configure script is oriented toward identifying the host
3365 # compiler, etc., but we need a build compiler to generate parts of the source.
3367 if test "$cross_compiling" = yes ; then
3369 # defaults that we might want to override
3370 : ${BUILD_CFLAGS:=''}
3371 : ${BUILD_CPPFLAGS:=''}
3372 : ${BUILD_LDFLAGS:=''}
3374 : ${BUILD_EXEEXT:='$x'}
3375 : ${BUILD_OBJEXT:='o'}
3377 # Check whether --with-build-cc or --without-build-cc was given.
3378 if test "${with_build_cc+set}" = set; then
3379 withval="$with_build_cc"
3382 for ac_prog in gcc cc cl
3384 # Extract the first word of "$ac_prog", so it can be a program name with args.
3385 set dummy $ac_prog; ac_word=$2
3386 echo "$as_me:3386: checking for $ac_word" >&5
3387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3388 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3389 echo $ECHO_N "(cached) $ECHO_C" >&6
3391 if test -n "$BUILD_CC"; then
3392 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3394 ac_save_IFS=$IFS; IFS=$ac_path_separator
3396 for ac_dir in $ac_dummy; do
3398 test -z "$ac_dir" && ac_dir=.
3399 $as_executable_p "$ac_dir/$ac_word" || continue
3400 ac_cv_prog_BUILD_CC="$ac_prog"
3401 echo "$as_me:3401: found $ac_dir/$ac_word" >&5
3407 BUILD_CC=$ac_cv_prog_BUILD_CC
3408 if test -n "$BUILD_CC"; then
3409 echo "$as_me:3409: result: $BUILD_CC" >&5
3410 echo "${ECHO_T}$BUILD_CC" >&6
3412 echo "$as_me:3412: result: no" >&5
3413 echo "${ECHO_T}no" >&6
3416 test -n "$BUILD_CC" && break
3420 echo "$as_me:3420: checking for native build C compiler" >&5
3421 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
3422 echo "$as_me:3422: result: $BUILD_CC" >&5
3423 echo "${ECHO_T}$BUILD_CC" >&6
3425 echo "$as_me:3425: checking for native build C preprocessor" >&5
3426 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
3428 # Check whether --with-build-cpp or --without-build-cpp was given.
3429 if test "${with_build_cpp+set}" = set; then
3430 withval="$with_build_cpp"
3431 BUILD_CPP="$withval"
3433 BUILD_CPP='${BUILD_CC} -E'
3435 echo "$as_me:3435: result: $BUILD_CPP" >&5
3436 echo "${ECHO_T}$BUILD_CPP" >&6
3438 echo "$as_me:3438: checking for native build C flags" >&5
3439 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
3441 # Check whether --with-build-cflags or --without-build-cflags was given.
3442 if test "${with_build_cflags+set}" = set; then
3443 withval="$with_build_cflags"
3444 BUILD_CFLAGS="$withval"
3446 echo "$as_me:3446: result: $BUILD_CFLAGS" >&5
3447 echo "${ECHO_T}$BUILD_CFLAGS" >&6
3449 echo "$as_me:3449: checking for native build C preprocessor-flags" >&5
3450 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
3452 # Check whether --with-build-cppflags or --without-build-cppflags was given.
3453 if test "${with_build_cppflags+set}" = set; then
3454 withval="$with_build_cppflags"
3455 BUILD_CPPFLAGS="$withval"
3457 echo "$as_me:3457: result: $BUILD_CPPFLAGS" >&5
3458 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
3460 echo "$as_me:3460: checking for native build linker-flags" >&5
3461 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
3463 # Check whether --with-build-ldflags or --without-build-ldflags was given.
3464 if test "${with_build_ldflags+set}" = set; then
3465 withval="$with_build_ldflags"
3466 BUILD_LDFLAGS="$withval"
3468 echo "$as_me:3468: result: $BUILD_LDFLAGS" >&5
3469 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
3471 echo "$as_me:3471: checking for native build linker-libraries" >&5
3472 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
3474 # Check whether --with-build-libs or --without-build-libs was given.
3475 if test "${with_build_libs+set}" = set; then
3476 withval="$with_build_libs"
3477 BUILD_LIBS="$withval"
3479 echo "$as_me:3479: result: $BUILD_LIBS" >&5
3480 echo "${ECHO_T}$BUILD_LIBS" >&6
3482 # this assumes we're on Unix.
3486 : ${BUILD_CC:='${CC}'}
3488 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
3489 { { echo "$as_me:3489: error: Cross-build requires two compilers.
3490 Use --with-build-cc to specify the native compiler." >&5
3491 echo "$as_me: error: Cross-build requires two compilers.
3492 Use --with-build-cc to specify the native compiler." >&2;}
3493 { (exit 1); exit 1; }; }
3497 : ${BUILD_CC:='${CC}'}
3498 : ${BUILD_CPP:='${CPP}'}
3499 : ${BUILD_CFLAGS:='${CFLAGS}'}
3500 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
3501 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
3502 : ${BUILD_LIBS:='${LIBS}'}
3503 : ${BUILD_EXEEXT:='$x'}
3504 : ${BUILD_OBJEXT:='o'}
3507 ###############################################################################
3509 ### Options to allow the user to specify the set of libraries which are used.
3510 ### Use "--without-normal --with-shared" to allow the default model to be
3511 ### shared, for example.
3513 echo "$as_me:3513: checking for specified models" >&5
3514 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
3515 test -z "$cf_list_models" && cf_list_models=normal
3516 echo "$as_me:3516: result: $cf_list_models" >&5
3517 echo "${ECHO_T}$cf_list_models" >&6
3519 ### Use the first model as the default, and save its suffix for use in building
3520 ### up test-applications.
3521 echo "$as_me:3521: checking for default model" >&5
3522 echo $ECHO_N "checking for default model... $ECHO_C" >&6
3523 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
3524 echo "$as_me:3524: result: $DFT_LWR_MODEL" >&5
3525 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
3527 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3529 # Check whether --with-curses-dir or --without-curses-dir was given.
3530 if test "${with_curses_dir+set}" = set; then
3531 withval="$with_curses_dir"
3533 if test "x$prefix" != xNONE; then
3534 cf_path_syntax="$prefix"
3536 cf_path_syntax="$ac_default_prefix"
3539 case ".$withval" in #(vi
3540 .\$\(*\)*|.\'*\'*) #(vi
3544 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3547 eval withval="$withval"
3548 case ".$withval" in #(vi
3550 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
3555 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
3558 { { echo "$as_me:3558: error: expected a pathname, not \"$withval\"" >&5
3559 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
3560 { (exit 1); exit 1; }; }
3564 cf_cv_curses_dir=$withval
3569 echo "$as_me:3569: checking if you want wide-character code" >&5
3570 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
3572 # Check whether --enable-widec or --disable-widec was given.
3573 if test "${enable_widec+set}" = set; then
3574 enableval="$enable_widec"
3575 with_widec=$enableval
3579 echo "$as_me:3579: result: $with_widec" >&5
3580 echo "${ECHO_T}$with_widec" >&6
3581 if test "$with_widec" = yes ; then
3583 echo "$as_me:3583: checking for multibyte character support" >&5
3584 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
3585 if test "${cf_cv_utf8_lib+set}" = set; then
3586 echo $ECHO_N "(cached) $ECHO_C" >&6
3589 cf_save_LIBS="$LIBS"
3590 cat >conftest.$ac_ext <<_ACEOF
3591 #line 3591 "configure"
3592 #include "confdefs.h"
3603 rm -f conftest.$ac_objext conftest$ac_exeext
3604 if { (eval echo "$as_me:3604: \"$ac_link\"") >&5
3605 (eval $ac_link) 2>&5
3607 echo "$as_me:3607: \$? = $ac_status" >&5
3608 (exit $ac_status); } &&
3609 { ac_try='test -s conftest$ac_exeext'
3610 { (eval echo "$as_me:3610: \"$ac_try\"") >&5
3613 echo "$as_me:3613: \$? = $ac_status" >&5
3614 (exit $ac_status); }; }; then
3617 echo "$as_me: failed program was:" >&5
3618 cat conftest.$ac_ext >&5
3620 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
3621 # will be set on completion of the AC_TRY_LINK below.
3622 cf_cv_header_path_utf8=
3623 cf_cv_library_path_utf8=
3625 echo "${as_me-configure}:3625: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
3627 cat >conftest.$ac_ext <<_ACEOF
3628 #line 3628 "configure"
3629 #include "confdefs.h"
3631 #include <libutf8.h>
3640 rm -f conftest.$ac_objext conftest$ac_exeext
3641 if { (eval echo "$as_me:3641: \"$ac_link\"") >&5
3642 (eval $ac_link) 2>&5
3644 echo "$as_me:3644: \$? = $ac_status" >&5
3645 (exit $ac_status); } &&
3646 { ac_try='test -s conftest$ac_exeext'
3647 { (eval echo "$as_me:3647: \"$ac_try\"") >&5
3650 echo "$as_me:3650: \$? = $ac_status" >&5
3651 (exit $ac_status); }; }; then
3652 cf_cv_find_linkage_utf8=yes
3654 echo "$as_me: failed program was:" >&5
3655 cat conftest.$ac_ext >&5
3657 cf_cv_find_linkage_utf8=no
3659 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
3661 echo "${as_me-configure}:3661: testing find linkage for utf8 library ..." 1>&5
3663 echo "${as_me-configure}:3663: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
3665 cf_save_CPPFLAGS="$CPPFLAGS"
3666 cf_test_CPPFLAGS="$CPPFLAGS"
3669 cf_header_path_list=""
3670 if test -n "${CFLAGS}${CPPFLAGS}" ; then
3671 for cf_header_path in $CPPFLAGS $CFLAGS
3673 case $cf_header_path in #(vi
3675 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
3677 test "$cf_header_path" != "NONE" && \
3678 test -d "$cf_header_path" && \
3680 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
3681 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
3682 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
3683 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
3684 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
3685 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
3688 cf_header_path_list="$cf_header_path_list $cf_search"
3696 test "/usr" != "$prefix" && \
3698 (test $prefix = NONE || test -d $prefix) && {
3699 test -n "$verbose" && echo " ... testing for include-directories under /usr"
3700 test -d /usr/include && cf_search="$cf_search /usr/include"
3701 test -d /usr/include/utf8 && cf_search="$cf_search /usr/include/utf8"
3702 test -d /usr/include/utf8/include && cf_search="$cf_search /usr/include/utf8/include"
3703 test -d /usr/utf8/include && cf_search="$cf_search /usr/utf8/include"
3704 test -d /usr/utf8/include/utf8 && cf_search="$cf_search /usr/utf8/include/utf8"
3707 test "$prefix" != "NONE" && \
3708 test -d "$prefix" && \
3710 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
3711 test -d $prefix/include && cf_search="$cf_search $prefix/include"
3712 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
3713 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
3714 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
3715 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
3718 test "/usr/local" != "$prefix" && \
3719 test -d "/usr/local" && \
3720 (test $prefix = NONE || test -d $prefix) && {
3721 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
3722 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
3723 test -d /usr/local/include/utf8 && cf_search="$cf_search /usr/local/include/utf8"
3724 test -d /usr/local/include/utf8/include && cf_search="$cf_search /usr/local/include/utf8/include"
3725 test -d /usr/local/utf8/include && cf_search="$cf_search /usr/local/utf8/include"
3726 test -d /usr/local/utf8/include/utf8 && cf_search="$cf_search /usr/local/utf8/include/utf8"
3729 test "/opt" != "$prefix" && \
3731 (test $prefix = NONE || test -d $prefix) && {
3732 test -n "$verbose" && echo " ... testing for include-directories under /opt"
3733 test -d /opt/include && cf_search="$cf_search /opt/include"
3734 test -d /opt/include/utf8 && cf_search="$cf_search /opt/include/utf8"
3735 test -d /opt/include/utf8/include && cf_search="$cf_search /opt/include/utf8/include"
3736 test -d /opt/utf8/include && cf_search="$cf_search /opt/utf8/include"
3737 test -d /opt/utf8/include/utf8 && cf_search="$cf_search /opt/utf8/include/utf8"
3740 test "$HOME" != "$prefix" && \
3741 test -d "$HOME" && \
3742 (test $prefix = NONE || test -d $prefix) && {
3743 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
3744 test -d $HOME/include && cf_search="$cf_search $HOME/include"
3745 test -d $HOME/include/utf8 && cf_search="$cf_search $HOME/include/utf8"
3746 test -d $HOME/include/utf8/include && cf_search="$cf_search $HOME/include/utf8/include"
3747 test -d $HOME/utf8/include && cf_search="$cf_search $HOME/utf8/include"
3748 test -d $HOME/utf8/include/utf8 && cf_search="$cf_search $HOME/utf8/include/utf8"
3751 test "$includedir" != NONE && \
3752 test "$includedir" != "/usr/include" && \
3753 test -d "$includedir" && {
3754 test -d $includedir && cf_search="$cf_search $includedir"
3755 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
3758 test "$oldincludedir" != NONE && \
3759 test "$oldincludedir" != "/usr/include" && \
3760 test -d "$oldincludedir" && {
3761 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
3762 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
3765 cf_search="$cf_header_path_list $cf_search"
3767 for cf_cv_header_path_utf8 in $cf_search
3769 if test -d $cf_cv_header_path_utf8 ; then
3770 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
3772 echo "${as_me-configure}:3772: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
3774 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
3775 cat >conftest.$ac_ext <<_ACEOF
3776 #line 3776 "configure"
3777 #include "confdefs.h"
3779 #include <libutf8.h>
3788 rm -f conftest.$ac_objext
3789 if { (eval echo "$as_me:3789: \"$ac_compile\"") >&5
3790 (eval $ac_compile) 2>&5
3792 echo "$as_me:3792: \$? = $ac_status" >&5
3793 (exit $ac_status); } &&
3794 { ac_try='test -s conftest.$ac_objext'
3795 { (eval echo "$as_me:3795: \"$ac_try\"") >&5
3798 echo "$as_me:3798: \$? = $ac_status" >&5
3799 (exit $ac_status); }; }; then
3801 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
3803 echo "${as_me-configure}:3803: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
3805 cf_cv_find_linkage_utf8=maybe
3806 cf_test_CPPFLAGS="$CPPFLAGS"
3809 echo "$as_me: failed program was:" >&5
3810 cat conftest.$ac_ext >&5
3812 CPPFLAGS="$cf_save_CPPFLAGS"
3815 rm -f conftest.$ac_objext conftest.$ac_ext
3819 if test "$cf_cv_find_linkage_utf8" = maybe ; then
3821 echo "${as_me-configure}:3821: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
3823 cf_save_LIBS="$LIBS"
3824 cf_save_LDFLAGS="$LDFLAGS"
3826 if test "$cf_cv_find_linkage_utf8" != yes ; then
3828 cf_library_path_list=""
3829 if test -n "${LDFLAGS}${LIBS}" ; then
3830 for cf_library_path in $LDFLAGS $LIBS
3832 case $cf_library_path in #(vi
3834 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
3836 test "$cf_library_path" != "NONE" && \
3837 test -d "$cf_library_path" && \
3839 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
3840 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
3841 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
3842 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
3843 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
3844 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
3847 cf_library_path_list="$cf_library_path_list $cf_search"
3855 test "/usr" != "$prefix" && \
3857 (test $prefix = NONE || test -d $prefix) && {
3858 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
3859 test -d /usr/lib && cf_search="$cf_search /usr/lib"
3860 test -d /usr/lib/utf8 && cf_search="$cf_search /usr/lib/utf8"
3861 test -d /usr/lib/utf8/lib && cf_search="$cf_search /usr/lib/utf8/lib"
3862 test -d /usr/utf8/lib && cf_search="$cf_search /usr/utf8/lib"
3863 test -d /usr/utf8/lib/utf8 && cf_search="$cf_search /usr/utf8/lib/utf8"
3866 test "$prefix" != "NONE" && \
3867 test -d "$prefix" && \
3869 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
3870 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
3871 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
3872 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
3873 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
3874 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
3877 test "/usr/local" != "$prefix" && \
3878 test -d "/usr/local" && \
3879 (test $prefix = NONE || test -d $prefix) && {
3880 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
3881 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
3882 test -d /usr/local/lib/utf8 && cf_search="$cf_search /usr/local/lib/utf8"
3883 test -d /usr/local/lib/utf8/lib && cf_search="$cf_search /usr/local/lib/utf8/lib"
3884 test -d /usr/local/utf8/lib && cf_search="$cf_search /usr/local/utf8/lib"
3885 test -d /usr/local/utf8/lib/utf8 && cf_search="$cf_search /usr/local/utf8/lib/utf8"
3888 test "/opt" != "$prefix" && \
3890 (test $prefix = NONE || test -d $prefix) && {
3891 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
3892 test -d /opt/lib && cf_search="$cf_search /opt/lib"
3893 test -d /opt/lib/utf8 && cf_search="$cf_search /opt/lib/utf8"
3894 test -d /opt/lib/utf8/lib && cf_search="$cf_search /opt/lib/utf8/lib"
3895 test -d /opt/utf8/lib && cf_search="$cf_search /opt/utf8/lib"
3896 test -d /opt/utf8/lib/utf8 && cf_search="$cf_search /opt/utf8/lib/utf8"
3899 test "$HOME" != "$prefix" && \
3900 test -d "$HOME" && \
3901 (test $prefix = NONE || test -d $prefix) && {
3902 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
3903 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
3904 test -d $HOME/lib/utf8 && cf_search="$cf_search $HOME/lib/utf8"
3905 test -d $HOME/lib/utf8/lib && cf_search="$cf_search $HOME/lib/utf8/lib"
3906 test -d $HOME/utf8/lib && cf_search="$cf_search $HOME/utf8/lib"
3907 test -d $HOME/utf8/lib/utf8 && cf_search="$cf_search $HOME/utf8/lib/utf8"
3910 cf_search="$cf_library_path_list $cf_search"
3912 for cf_cv_library_path_utf8 in $cf_search
3914 if test -d $cf_cv_library_path_utf8 ; then
3915 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
3917 echo "${as_me-configure}:3917: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
3919 CPPFLAGS="$cf_test_CPPFLAGS"
3920 LIBS="-lutf8 $cf_save_LIBS"
3921 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
3922 cat >conftest.$ac_ext <<_ACEOF
3923 #line 3923 "configure"
3924 #include "confdefs.h"
3926 #include <libutf8.h>
3935 rm -f conftest.$ac_objext conftest$ac_exeext
3936 if { (eval echo "$as_me:3936: \"$ac_link\"") >&5
3937 (eval $ac_link) 2>&5
3939 echo "$as_me:3939: \$? = $ac_status" >&5
3940 (exit $ac_status); } &&
3941 { ac_try='test -s conftest$ac_exeext'
3942 { (eval echo "$as_me:3942: \"$ac_try\"") >&5
3945 echo "$as_me:3945: \$? = $ac_status" >&5
3946 (exit $ac_status); }; }; then
3948 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
3950 echo "${as_me-configure}:3950: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
3952 cf_cv_find_linkage_utf8=yes
3953 cf_cv_library_file_utf8="-lutf8"
3956 echo "$as_me: failed program was:" >&5
3957 cat conftest.$ac_ext >&5
3959 CPPFLAGS="$cf_save_CPPFLAGS"
3960 LIBS="$cf_save_LIBS"
3961 LDFLAGS="$cf_save_LDFLAGS"
3964 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3967 LIBS="$cf_save_LIBS"
3968 CPPFLAGS="$cf_save_CPPFLAGS"
3969 LDFLAGS="$cf_save_LDFLAGS"
3973 cf_cv_find_linkage_utf8=no
3977 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3979 if test "$cf_cv_find_linkage_utf8" = yes ; then
3980 cf_cv_utf8_lib=add-on
3986 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3988 echo "$as_me:3988: result: $cf_cv_utf8_lib" >&5
3989 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
3991 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
3993 if test "$cf_cv_utf8_lib" = "add-on" ; then
3994 cat >>confdefs.h <<\EOF
3995 #define HAVE_LIBUTF8_H 1
3998 if test -n "$cf_cv_header_path_utf8" ; then
3999 for cf_add_incdir in $cf_cv_header_path_utf8
4001 while test $cf_add_incdir != /usr/include
4003 if test -d $cf_add_incdir
4006 if test -n "$CFLAGS$CPPFLAGS" ; then
4007 # a loop is needed to ensure we can add subdirs of existing dirs
4008 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4009 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4010 cf_have_incdir=yes; break
4015 if test "$cf_have_incdir" = no ; then
4016 if test "$cf_add_incdir" = /usr/local/include ; then
4017 if test "$GCC" = yes
4019 cf_save_CPPFLAGS=$CPPFLAGS
4020 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4021 cat >conftest.$ac_ext <<_ACEOF
4022 #line 4022 "configure"
4023 #include "confdefs.h"
4033 rm -f conftest.$ac_objext
4034 if { (eval echo "$as_me:4034: \"$ac_compile\"") >&5
4035 (eval $ac_compile) 2>&5
4037 echo "$as_me:4037: \$? = $ac_status" >&5
4038 (exit $ac_status); } &&
4039 { ac_try='test -s conftest.$ac_objext'
4040 { (eval echo "$as_me:4040: \"$ac_try\"") >&5
4043 echo "$as_me:4043: \$? = $ac_status" >&5
4044 (exit $ac_status); }; }; then
4047 echo "$as_me: failed program was:" >&5
4048 cat conftest.$ac_ext >&5
4051 rm -f conftest.$ac_objext conftest.$ac_ext
4052 CPPFLAGS=$cf_save_CPPFLAGS
4057 if test "$cf_have_incdir" = no ; then
4058 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4060 echo "${as_me-configure}:4060: testing adding $cf_add_incdir to include-path ..." 1>&5
4062 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4064 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4065 test "$cf_top_incdir" = "$cf_add_incdir" && break
4066 cf_add_incdir="$cf_top_incdir"
4075 if test -n "$cf_cv_library_path_utf8" ; then
4076 for cf_add_libdir in $cf_cv_library_path_utf8
4078 if test $cf_add_libdir = /usr/lib ; then
4080 elif test -d $cf_add_libdir
4083 if test -n "$LDFLAGS$LIBS" ; then
4084 # a loop is needed to ensure we can add subdirs of existing dirs
4085 for cf_test_libdir in $LDFLAGS $LIBS ; do
4086 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
4087 cf_have_libdir=yes; break
4091 if test "$cf_have_libdir" = no ; then
4092 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
4094 echo "${as_me-configure}:4094: testing adding $cf_add_libdir to library-path ..." 1>&5
4096 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
4105 cf_ncuconfig_root=ncursesw
4107 echo "Looking for ${cf_ncuconfig_root}-config"
4108 for ac_prog in ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
4110 # Extract the first word of "$ac_prog", so it can be a program name with args.
4111 set dummy $ac_prog; ac_word=$2
4112 echo "$as_me:4112: checking for $ac_word" >&5
4113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4114 if test "${ac_cv_path_NCURSES_CONFIG+set}" = set; then
4115 echo $ECHO_N "(cached) $ECHO_C" >&6
4117 case $NCURSES_CONFIG in
4119 ac_cv_path_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test with a path.
4122 ac_save_IFS=$IFS; IFS=$ac_path_separator
4124 for ac_dir in $ac_dummy; do
4126 test -z "$ac_dir" && ac_dir=.
4127 if $as_executable_p "$ac_dir/$ac_word"; then
4128 ac_cv_path_NCURSES_CONFIG="$ac_dir/$ac_word"
4129 echo "$as_me:4129: found $ac_dir/$ac_word" >&5
4137 NCURSES_CONFIG=$ac_cv_path_NCURSES_CONFIG
4139 if test -n "$NCURSES_CONFIG"; then
4140 echo "$as_me:4140: result: $NCURSES_CONFIG" >&5
4141 echo "${ECHO_T}$NCURSES_CONFIG" >&6
4143 echo "$as_me:4143: result: no" >&5
4144 echo "${ECHO_T}no" >&6
4147 test -n "$NCURSES_CONFIG" && break
4149 test -n "$NCURSES_CONFIG" || NCURSES_CONFIG="none"
4151 if test "$NCURSES_CONFIG" != none ; then
4153 cf_cv_ncurses_header=curses.h
4155 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
4156 LIBS="`$NCURSES_CONFIG --libs` $LIBS"
4158 cat >>confdefs.h <<\EOF
4162 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4164 cat >>confdefs.h <<EOF
4165 #define $cf_nculib_ROOT 1
4168 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
4172 cf_ncuhdr_root=ncursesw
4174 test -n "$cf_cv_curses_dir" && \
4175 test "$cf_cv_curses_dir" != "no" && { \
4177 if test -n "$cf_cv_curses_dir/include $cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
4178 for cf_add_incdir in $cf_cv_curses_dir/include $cf_cv_curses_dir/include/$cf_ncuhdr_root
4180 while test $cf_add_incdir != /usr/include
4182 if test -d $cf_add_incdir
4185 if test -n "$CFLAGS$CPPFLAGS" ; then
4186 # a loop is needed to ensure we can add subdirs of existing dirs
4187 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4188 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4189 cf_have_incdir=yes; break
4194 if test "$cf_have_incdir" = no ; then
4195 if test "$cf_add_incdir" = /usr/local/include ; then
4196 if test "$GCC" = yes
4198 cf_save_CPPFLAGS=$CPPFLAGS
4199 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4200 cat >conftest.$ac_ext <<_ACEOF
4201 #line 4201 "configure"
4202 #include "confdefs.h"
4212 rm -f conftest.$ac_objext
4213 if { (eval echo "$as_me:4213: \"$ac_compile\"") >&5
4214 (eval $ac_compile) 2>&5
4216 echo "$as_me:4216: \$? = $ac_status" >&5
4217 (exit $ac_status); } &&
4218 { ac_try='test -s conftest.$ac_objext'
4219 { (eval echo "$as_me:4219: \"$ac_try\"") >&5
4222 echo "$as_me:4222: \$? = $ac_status" >&5
4223 (exit $ac_status); }; }; then
4226 echo "$as_me: failed program was:" >&5
4227 cat conftest.$ac_ext >&5
4230 rm -f conftest.$ac_objext conftest.$ac_ext
4231 CPPFLAGS=$cf_save_CPPFLAGS
4236 if test "$cf_have_incdir" = no ; then
4237 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4239 echo "${as_me-configure}:4239: testing adding $cf_add_incdir to include-path ..." 1>&5
4241 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4243 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4244 test "$cf_top_incdir" = "$cf_add_incdir" && break
4245 cf_add_incdir="$cf_top_incdir"
4256 echo "$as_me:4256: checking for $cf_ncuhdr_root header in include-path" >&5
4257 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
4258 if test "${cf_cv_ncurses_h+set}" = set; then
4259 echo $ECHO_N "(cached) $ECHO_C" >&6
4262 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
4263 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
4264 for cf_header in $cf_header_list
4267 cat >conftest.$ac_ext <<_ACEOF
4268 #line 4268 "configure"
4269 #include "confdefs.h"
4271 #define _XOPEN_SOURCE_EXTENDED
4272 #undef HAVE_LIBUTF8_H /* in case we used CF_UTF8_LIB */
4273 #define HAVE_LIBUTF8_H /* to force ncurses' header file to use cchar_t */
4275 #include <$cf_header>
4280 #ifdef NCURSES_VERSION
4286 printf("%s\n", NCURSES_VERSION);
4299 rm -f conftest.$ac_objext
4300 if { (eval echo "$as_me:4300: \"$ac_compile\"") >&5
4301 (eval $ac_compile) 2>&5
4303 echo "$as_me:4303: \$? = $ac_status" >&5
4304 (exit $ac_status); } &&
4305 { ac_try='test -s conftest.$ac_objext'
4306 { (eval echo "$as_me:4306: \"$ac_try\"") >&5
4309 echo "$as_me:4309: \$? = $ac_status" >&5
4310 (exit $ac_status); }; }; then
4311 cf_cv_ncurses_h=$cf_header
4314 echo "$as_me: failed program was:" >&5
4315 cat conftest.$ac_ext >&5
4318 rm -f conftest.$ac_objext conftest.$ac_ext
4320 test "$cf_cv_ncurses_h" != no && break
4324 echo "$as_me:4324: result: $cf_cv_ncurses_h" >&5
4325 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
4327 if test "$cf_cv_ncurses_h" != no ; then
4328 cf_cv_ncurses_header=$cf_cv_ncurses_h
4331 echo "$as_me:4331: checking for $cf_ncuhdr_root include-path" >&5
4332 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
4333 if test "${cf_cv_ncurses_h2+set}" = set; then
4334 echo $ECHO_N "(cached) $ECHO_C" >&6
4337 test -n "$verbose" && echo
4340 cf_header_path_list=""
4341 if test -n "${CFLAGS}${CPPFLAGS}" ; then
4342 for cf_header_path in $CPPFLAGS $CFLAGS
4344 case $cf_header_path in #(vi
4346 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
4348 test "$cf_header_path" != "NONE" && \
4349 test -d "$cf_header_path" && \
4351 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
4352 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
4353 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
4354 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
4355 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
4356 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"
4359 cf_header_path_list="$cf_header_path_list $cf_search"
4367 test "/usr" != "$prefix" && \
4369 (test $prefix = NONE || test -d $prefix) && {
4370 test -n "$verbose" && echo " ... testing for include-directories under /usr"
4371 test -d /usr/include && cf_search="$cf_search /usr/include"
4372 test -d /usr/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/include/$cf_ncuhdr_root"
4373 test -d /usr/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/include/$cf_ncuhdr_root/include"
4374 test -d /usr/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/$cf_ncuhdr_root/include"
4375 test -d /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
4378 test "$prefix" != "NONE" && \
4379 test -d "$prefix" && \
4381 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
4382 test -d $prefix/include && cf_search="$cf_search $prefix/include"
4383 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
4384 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
4385 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
4386 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
4389 test "/usr/local" != "$prefix" && \
4390 test -d "/usr/local" && \
4391 (test $prefix = NONE || test -d $prefix) && {
4392 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
4393 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
4394 test -d /usr/local/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root"
4395 test -d /usr/local/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root/include"
4396 test -d /usr/local/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include"
4397 test -d /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
4400 test "/opt" != "$prefix" && \
4402 (test $prefix = NONE || test -d $prefix) && {
4403 test -n "$verbose" && echo " ... testing for include-directories under /opt"
4404 test -d /opt/include && cf_search="$cf_search /opt/include"
4405 test -d /opt/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/include/$cf_ncuhdr_root"
4406 test -d /opt/include/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/include/$cf_ncuhdr_root/include"
4407 test -d /opt/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/$cf_ncuhdr_root/include"
4408 test -d /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
4411 test "$HOME" != "$prefix" && \
4412 test -d "$HOME" && \
4413 (test $prefix = NONE || test -d $prefix) && {
4414 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
4415 test -d $HOME/include && cf_search="$cf_search $HOME/include"
4416 test -d $HOME/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root"
4417 test -d $HOME/include/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root/include"
4418 test -d $HOME/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include"
4419 test -d $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
4422 test "$includedir" != NONE && \
4423 test "$includedir" != "/usr/include" && \
4424 test -d "$includedir" && {
4425 test -d $includedir && cf_search="$cf_search $includedir"
4426 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
4429 test "$oldincludedir" != NONE && \
4430 test "$oldincludedir" != "/usr/include" && \
4431 test -d "$oldincludedir" && {
4432 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
4433 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
4436 cf_search="$cf_header_path_list $cf_search"
4438 test -n "$verbose" && echo search path $cf_search
4439 cf_save2_CPPFLAGS="$CPPFLAGS"
4440 for cf_incdir in $cf_search
4443 if test -n "$cf_incdir" ; then
4444 for cf_add_incdir in $cf_incdir
4446 while test $cf_add_incdir != /usr/include
4448 if test -d $cf_add_incdir
4451 if test -n "$CFLAGS$CPPFLAGS" ; then
4452 # a loop is needed to ensure we can add subdirs of existing dirs
4453 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4454 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4455 cf_have_incdir=yes; break
4460 if test "$cf_have_incdir" = no ; then
4461 if test "$cf_add_incdir" = /usr/local/include ; then
4462 if test "$GCC" = yes
4464 cf_save_CPPFLAGS=$CPPFLAGS
4465 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4466 cat >conftest.$ac_ext <<_ACEOF
4467 #line 4467 "configure"
4468 #include "confdefs.h"
4478 rm -f conftest.$ac_objext
4479 if { (eval echo "$as_me:4479: \"$ac_compile\"") >&5
4480 (eval $ac_compile) 2>&5
4482 echo "$as_me:4482: \$? = $ac_status" >&5
4483 (exit $ac_status); } &&
4484 { ac_try='test -s conftest.$ac_objext'
4485 { (eval echo "$as_me:4485: \"$ac_try\"") >&5
4488 echo "$as_me:4488: \$? = $ac_status" >&5
4489 (exit $ac_status); }; }; then
4492 echo "$as_me: failed program was:" >&5
4493 cat conftest.$ac_ext >&5
4496 rm -f conftest.$ac_objext conftest.$ac_ext
4497 CPPFLAGS=$cf_save_CPPFLAGS
4502 if test "$cf_have_incdir" = no ; then
4503 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4505 echo "${as_me-configure}:4505: testing adding $cf_add_incdir to include-path ..." 1>&5
4507 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4509 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4510 test "$cf_top_incdir" = "$cf_add_incdir" && break
4511 cf_add_incdir="$cf_top_incdir"
4525 cat >conftest.$ac_ext <<_ACEOF
4526 #line 4526 "configure"
4527 #include "confdefs.h"
4529 #include <$cf_header>
4534 #ifdef NCURSES_VERSION
4536 printf("%s\n", NCURSES_VERSION);
4549 rm -f conftest.$ac_objext
4550 if { (eval echo "$as_me:4550: \"$ac_compile\"") >&5
4551 (eval $ac_compile) 2>&5
4553 echo "$as_me:4553: \$? = $ac_status" >&5
4554 (exit $ac_status); } &&
4555 { ac_try='test -s conftest.$ac_objext'
4556 { (eval echo "$as_me:4556: \"$ac_try\"") >&5
4559 echo "$as_me:4559: \$? = $ac_status" >&5
4560 (exit $ac_status); }; }; then
4561 cf_cv_ncurses_h2=$cf_header
4564 echo "$as_me: failed program was:" >&5
4565 cat conftest.$ac_ext >&5
4568 rm -f conftest.$ac_objext conftest.$ac_ext
4570 if test "$cf_cv_ncurses_h2" != no ; then
4571 cf_cv_ncurses_h2=$cf_incdir/$cf_header
4572 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
4575 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
4577 CPPFLAGS="$cf_save2_CPPFLAGS"
4578 test "$cf_cv_ncurses_h2" != no && break
4580 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:4580: error: not found" >&5
4581 echo "$as_me: error: not found" >&2;}
4582 { (exit 1); exit 1; }; }
4585 echo "$as_me:4585: result: $cf_cv_ncurses_h2" >&5
4586 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
4588 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
4589 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
4590 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
4591 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
4594 if test -n "$cf_1st_incdir" ; then
4595 for cf_add_incdir in $cf_1st_incdir
4597 while test $cf_add_incdir != /usr/include
4599 if test -d $cf_add_incdir
4602 if test -n "$CFLAGS$CPPFLAGS" ; then
4603 # a loop is needed to ensure we can add subdirs of existing dirs
4604 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4605 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4606 cf_have_incdir=yes; break
4611 if test "$cf_have_incdir" = no ; then
4612 if test "$cf_add_incdir" = /usr/local/include ; then
4613 if test "$GCC" = yes
4615 cf_save_CPPFLAGS=$CPPFLAGS
4616 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4617 cat >conftest.$ac_ext <<_ACEOF
4618 #line 4618 "configure"
4619 #include "confdefs.h"
4629 rm -f conftest.$ac_objext
4630 if { (eval echo "$as_me:4630: \"$ac_compile\"") >&5
4631 (eval $ac_compile) 2>&5
4633 echo "$as_me:4633: \$? = $ac_status" >&5
4634 (exit $ac_status); } &&
4635 { ac_try='test -s conftest.$ac_objext'
4636 { (eval echo "$as_me:4636: \"$ac_try\"") >&5
4639 echo "$as_me:4639: \$? = $ac_status" >&5
4640 (exit $ac_status); }; }; then
4643 echo "$as_me: failed program was:" >&5
4644 cat conftest.$ac_ext >&5
4647 rm -f conftest.$ac_objext conftest.$ac_ext
4648 CPPFLAGS=$cf_save_CPPFLAGS
4653 if test "$cf_have_incdir" = no ; then
4654 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4656 echo "${as_me-configure}:4656: testing adding $cf_add_incdir to include-path ..." 1>&5
4658 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4660 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4661 test "$cf_top_incdir" = "$cf_add_incdir" && break
4662 cf_add_incdir="$cf_top_incdir"
4673 # Set definitions to allow ifdef'ing for ncurses.h
4675 case $cf_cv_ncurses_header in # (vi
4677 cat >>confdefs.h <<\EOF
4678 #define HAVE_NCURSES_H 1
4684 case $cf_cv_ncurses_header in # (vi
4685 ncurses/curses.h|ncurses/ncurses.h)
4686 cat >>confdefs.h <<\EOF
4687 #define HAVE_NCURSES_NCURSES_H 1
4691 ncursesw/curses.h|ncursesw/ncurses.h)
4692 cat >>confdefs.h <<\EOF
4693 #define HAVE_NCURSESW_NCURSES_H 1
4699 echo "$as_me:4699: checking for terminfo header" >&5
4700 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
4701 if test "${cf_cv_term_header+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4705 case ${cf_cv_ncurses_header} in #(vi
4706 */ncurses.h|*/ncursesw.h) #(vi
4707 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
4710 cf_term_header=term.h
4714 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
4716 cat >conftest.$ac_ext <<_ACEOF
4717 #line 4717 "configure"
4718 #include "confdefs.h"
4720 #include <${cf_cv_ncurses_header-curses.h}>
4726 int x = auto_left_margin
4731 rm -f conftest.$ac_objext
4732 if { (eval echo "$as_me:4732: \"$ac_compile\"") >&5
4733 (eval $ac_compile) 2>&5
4735 echo "$as_me:4735: \$? = $ac_status" >&5
4736 (exit $ac_status); } &&
4737 { ac_try='test -s conftest.$ac_objext'
4738 { (eval echo "$as_me:4738: \"$ac_try\"") >&5
4741 echo "$as_me:4741: \$? = $ac_status" >&5
4742 (exit $ac_status); }; }; then
4744 cf_cv_term_header="$cf_test"
4746 echo "$as_me: failed program was:" >&5
4747 cat conftest.$ac_ext >&5
4749 cf_cv_term_header=unknown
4752 rm -f conftest.$ac_objext conftest.$ac_ext
4753 test "$cf_cv_term_header" != unknown && break
4757 echo "$as_me:4757: result: $cf_cv_term_header" >&5
4758 echo "${ECHO_T}$cf_cv_term_header" >&6
4760 # Set definitions to allow ifdef'ing to accommodate subdirectories
4762 case $cf_cv_term_header in # (vi
4764 cat >>confdefs.h <<\EOF
4765 #define HAVE_TERM_H 1
4771 case $cf_cv_term_header in # (vi
4772 ncurses/term.h) #(vi
4773 cat >>confdefs.h <<\EOF
4774 #define HAVE_NCURSES_TERM_H 1
4779 cat >>confdefs.h <<\EOF
4780 #define HAVE_NCURSESW_TERM_H 1
4786 # some applications need this, but should check for NCURSES_VERSION
4787 cat >>confdefs.h <<\EOF
4791 echo "$as_me:4791: checking for ncurses version" >&5
4792 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
4793 if test "${cf_cv_ncurses_version+set}" = set; then
4794 echo $ECHO_N "(cached) $ECHO_C" >&6
4797 cf_cv_ncurses_version=no
4800 if test "$cross_compiling" = yes; then
4802 # This will not work if the preprocessor splits the line after the
4803 # Autoconf token. The 'unproto' program does that.
4804 cat > conftest.$ac_ext <<EOF
4805 #include <${cf_cv_ncurses_header-curses.h}>
4807 #ifdef NCURSES_VERSION
4808 Autoconf NCURSES_VERSION
4816 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
4817 { (eval echo "$as_me:4817: \"$cf_try\"") >&5
4820 echo "$as_me:4820: \$? = $ac_status" >&5
4821 (exit $ac_status); }
4822 if test -f conftest.out ; then
4823 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
4824 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
4829 cat >conftest.$ac_ext <<_ACEOF
4830 #line 4830 "configure"
4831 #include "confdefs.h"
4833 #include <${cf_cv_ncurses_header-curses.h}>
4837 FILE *fp = fopen("$cf_tempfile", "w");
4838 #ifdef NCURSES_VERSION
4839 # ifdef NCURSES_VERSION_PATCH
4840 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
4842 fprintf(fp, "%s\n", NCURSES_VERSION);
4846 fprintf(fp, "old\n");
4851 ${cf_cv_main_return-return}(0);
4854 rm -f conftest$ac_exeext
4855 if { (eval echo "$as_me:4855: \"$ac_link\"") >&5
4856 (eval $ac_link) 2>&5
4858 echo "$as_me:4858: \$? = $ac_status" >&5
4859 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4860 { (eval echo "$as_me:4860: \"$ac_try\"") >&5
4863 echo "$as_me:4863: \$? = $ac_status" >&5
4864 (exit $ac_status); }; }; then
4866 cf_cv_ncurses_version=`cat $cf_tempfile`
4868 echo "$as_me: program exited with status $ac_status" >&5
4869 echo "$as_me: failed program was:" >&5
4870 cat conftest.$ac_ext >&5
4872 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4877 echo "$as_me:4877: result: $cf_cv_ncurses_version" >&5
4878 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
4879 test "$cf_cv_ncurses_version" = no || cat >>confdefs.h <<\EOF
4883 cf_nculib_root=ncursesw
4884 # This works, except for the special case where we find gpm, but
4885 # ncurses is in a nonstandard location via $LIBS, and we really want
4888 cf_ncurses_SAVE="$LIBS"
4889 echo "$as_me:4889: checking for Gpm_Open in -lgpm" >&5
4890 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
4891 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
4892 echo $ECHO_N "(cached) $ECHO_C" >&6
4894 ac_check_lib_save_LIBS=$LIBS
4896 cat >conftest.$ac_ext <<_ACEOF
4897 #line 4897 "configure"
4898 #include "confdefs.h"
4900 /* Override any gcc2 internal prototype to avoid an error. */
4904 /* We use char because int might match the return type of a gcc2
4905 builtin and then its argument prototype would still apply. */
4915 rm -f conftest.$ac_objext conftest$ac_exeext
4916 if { (eval echo "$as_me:4916: \"$ac_link\"") >&5
4917 (eval $ac_link) 2>&5
4919 echo "$as_me:4919: \$? = $ac_status" >&5
4920 (exit $ac_status); } &&
4921 { ac_try='test -s conftest$ac_exeext'
4922 { (eval echo "$as_me:4922: \"$ac_try\"") >&5
4925 echo "$as_me:4925: \$? = $ac_status" >&5
4926 (exit $ac_status); }; }; then
4927 ac_cv_lib_gpm_Gpm_Open=yes
4929 echo "$as_me: failed program was:" >&5
4930 cat conftest.$ac_ext >&5
4931 ac_cv_lib_gpm_Gpm_Open=no
4933 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4934 LIBS=$ac_check_lib_save_LIBS
4936 echo "$as_me:4936: result: $ac_cv_lib_gpm_Gpm_Open" >&5
4937 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
4938 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
4939 echo "$as_me:4939: checking for initscr in -lgpm" >&5
4940 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
4941 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
4942 echo $ECHO_N "(cached) $ECHO_C" >&6
4944 ac_check_lib_save_LIBS=$LIBS
4946 cat >conftest.$ac_ext <<_ACEOF
4947 #line 4947 "configure"
4948 #include "confdefs.h"
4950 /* Override any gcc2 internal prototype to avoid an error. */
4954 /* We use char because int might match the return type of a gcc2
4955 builtin and then its argument prototype would still apply. */
4965 rm -f conftest.$ac_objext conftest$ac_exeext
4966 if { (eval echo "$as_me:4966: \"$ac_link\"") >&5
4967 (eval $ac_link) 2>&5
4969 echo "$as_me:4969: \$? = $ac_status" >&5
4970 (exit $ac_status); } &&
4971 { ac_try='test -s conftest$ac_exeext'
4972 { (eval echo "$as_me:4972: \"$ac_try\"") >&5
4975 echo "$as_me:4975: \$? = $ac_status" >&5
4976 (exit $ac_status); }; }; then
4977 ac_cv_lib_gpm_initscr=yes
4979 echo "$as_me: failed program was:" >&5
4980 cat conftest.$ac_ext >&5
4981 ac_cv_lib_gpm_initscr=no
4983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4984 LIBS=$ac_check_lib_save_LIBS
4986 echo "$as_me:4986: result: $ac_cv_lib_gpm_initscr" >&5
4987 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
4988 if test $ac_cv_lib_gpm_initscr = yes; then
4989 LIBS="$cf_ncurses_SAVE"
4991 cf_ncurses_LIBS="-lgpm"
4996 case $host_os in #(vi
4998 # This is only necessary if you are linking against an obsolete
4999 # version of ncurses (but it should do no harm, since it's static).
5000 if test "$cf_nculib_root" = ncurses ; then
5001 echo "$as_me:5001: checking for tgoto in -lmytinfo" >&5
5002 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
5003 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
5004 echo $ECHO_N "(cached) $ECHO_C" >&6
5006 ac_check_lib_save_LIBS=$LIBS
5007 LIBS="-lmytinfo $LIBS"
5008 cat >conftest.$ac_ext <<_ACEOF
5009 #line 5009 "configure"
5010 #include "confdefs.h"
5012 /* Override any gcc2 internal prototype to avoid an error. */
5016 /* We use char because int might match the return type of a gcc2
5017 builtin and then its argument prototype would still apply. */
5027 rm -f conftest.$ac_objext conftest$ac_exeext
5028 if { (eval echo "$as_me:5028: \"$ac_link\"") >&5
5029 (eval $ac_link) 2>&5
5031 echo "$as_me:5031: \$? = $ac_status" >&5
5032 (exit $ac_status); } &&
5033 { ac_try='test -s conftest$ac_exeext'
5034 { (eval echo "$as_me:5034: \"$ac_try\"") >&5
5037 echo "$as_me:5037: \$? = $ac_status" >&5
5038 (exit $ac_status); }; }; then
5039 ac_cv_lib_mytinfo_tgoto=yes
5041 echo "$as_me: failed program was:" >&5
5042 cat conftest.$ac_ext >&5
5043 ac_cv_lib_mytinfo_tgoto=no
5045 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5046 LIBS=$ac_check_lib_save_LIBS
5048 echo "$as_me:5048: result: $ac_cv_lib_mytinfo_tgoto" >&5
5049 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
5050 if test $ac_cv_lib_mytinfo_tgoto = yes; then
5051 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
5058 LIBS="$cf_ncurses_LIBS $LIBS"
5060 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
5063 if test -n "$cf_cv_curses_dir/lib" ; then
5064 for cf_add_libdir in $cf_cv_curses_dir/lib
5066 if test $cf_add_libdir = /usr/lib ; then
5068 elif test -d $cf_add_libdir
5071 if test -n "$LDFLAGS$LIBS" ; then
5072 # a loop is needed to ensure we can add subdirs of existing dirs
5073 for cf_test_libdir in $LDFLAGS $LIBS ; do
5074 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5075 cf_have_libdir=yes; break
5079 if test "$cf_have_libdir" = no ; then
5080 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5082 echo "${as_me-configure}:5082: testing adding $cf_add_libdir to library-path ..." 1>&5
5084 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5090 LIBS="-l$cf_nculib_root $LIBS"
5093 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
5095 echo "$as_me:5095: checking for initscr" >&5
5096 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
5097 if test "${ac_cv_func_initscr+set}" = set; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5100 cat >conftest.$ac_ext <<_ACEOF
5101 #line 5101 "configure"
5102 #include "confdefs.h"
5103 /* System header to define __stub macros and hopefully few prototypes,
5104 which can conflict with char initscr (); below. */
5106 /* Override any gcc2 internal prototype to avoid an error. */
5110 /* We use char because int might match the return type of a gcc2
5111 builtin and then its argument prototype would still apply. */
5118 /* The GNU C library defines this for functions which it implements
5119 to always fail with ENOSYS. Some functions are actually named
5120 something starting with __ and the normal name is an alias. */
5121 #if defined (__stub_initscr) || defined (__stub___initscr)
5131 rm -f conftest.$ac_objext conftest$ac_exeext
5132 if { (eval echo "$as_me:5132: \"$ac_link\"") >&5
5133 (eval $ac_link) 2>&5
5135 echo "$as_me:5135: \$? = $ac_status" >&5
5136 (exit $ac_status); } &&
5137 { ac_try='test -s conftest$ac_exeext'
5138 { (eval echo "$as_me:5138: \"$ac_try\"") >&5
5141 echo "$as_me:5141: \$? = $ac_status" >&5
5142 (exit $ac_status); }; }; then
5143 ac_cv_func_initscr=yes
5145 echo "$as_me: failed program was:" >&5
5146 cat conftest.$ac_ext >&5
5147 ac_cv_func_initscr=no
5149 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5151 echo "$as_me:5151: result: $ac_cv_func_initscr" >&5
5152 echo "${ECHO_T}$ac_cv_func_initscr" >&6
5153 if test $ac_cv_func_initscr = yes; then
5154 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
5157 cf_save_LIBS="$LIBS"
5158 echo "$as_me:5158: checking for initscr in -l$cf_nculib_root" >&5
5159 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
5160 LIBS="-l$cf_nculib_root $LIBS"
5161 cat >conftest.$ac_ext <<_ACEOF
5162 #line 5162 "configure"
5163 #include "confdefs.h"
5164 #include <${cf_cv_ncurses_header-curses.h}>
5173 rm -f conftest.$ac_objext conftest$ac_exeext
5174 if { (eval echo "$as_me:5174: \"$ac_link\"") >&5
5175 (eval $ac_link) 2>&5
5177 echo "$as_me:5177: \$? = $ac_status" >&5
5178 (exit $ac_status); } &&
5179 { ac_try='test -s conftest$ac_exeext'
5180 { (eval echo "$as_me:5180: \"$ac_try\"") >&5
5183 echo "$as_me:5183: \$? = $ac_status" >&5
5184 (exit $ac_status); }; }; then
5185 echo "$as_me:5185: result: yes" >&5
5186 echo "${ECHO_T}yes" >&6
5187 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
5190 echo "$as_me: failed program was:" >&5
5191 cat conftest.$ac_ext >&5
5192 echo "$as_me:5192: result: no" >&5
5193 echo "${ECHO_T}no" >&6
5195 cf_library_path_list=""
5196 if test -n "${LDFLAGS}${LIBS}" ; then
5197 for cf_library_path in $LDFLAGS $LIBS
5199 case $cf_library_path in #(vi
5201 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
5203 test "$cf_library_path" != "NONE" && \
5204 test -d "$cf_library_path" && \
5206 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
5207 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
5208 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
5209 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
5210 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
5211 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"
5214 cf_library_path_list="$cf_library_path_list $cf_search"
5222 test "/usr" != "$prefix" && \
5224 (test $prefix = NONE || test -d $prefix) && {
5225 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
5226 test -d /usr/lib && cf_search="$cf_search /usr/lib"
5227 test -d /usr/lib/$cf_nculib_root && cf_search="$cf_search /usr/lib/$cf_nculib_root"
5228 test -d /usr/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/lib/$cf_nculib_root/lib"
5229 test -d /usr/$cf_nculib_root/lib && cf_search="$cf_search /usr/$cf_nculib_root/lib"
5230 test -d /usr/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/$cf_nculib_root/lib/$cf_nculib_root"
5233 test "$prefix" != "NONE" && \
5234 test -d "$prefix" && \
5236 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
5237 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
5238 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
5239 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
5240 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
5241 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
5244 test "/usr/local" != "$prefix" && \
5245 test -d "/usr/local" && \
5246 (test $prefix = NONE || test -d $prefix) && {
5247 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
5248 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
5249 test -d /usr/local/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/lib/$cf_nculib_root"
5250 test -d /usr/local/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/lib/$cf_nculib_root/lib"
5251 test -d /usr/local/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/$cf_nculib_root/lib"
5252 test -d /usr/local/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/$cf_nculib_root/lib/$cf_nculib_root"
5255 test "/opt" != "$prefix" && \
5257 (test $prefix = NONE || test -d $prefix) && {
5258 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
5259 test -d /opt/lib && cf_search="$cf_search /opt/lib"
5260 test -d /opt/lib/$cf_nculib_root && cf_search="$cf_search /opt/lib/$cf_nculib_root"
5261 test -d /opt/lib/$cf_nculib_root/lib && cf_search="$cf_search /opt/lib/$cf_nculib_root/lib"
5262 test -d /opt/$cf_nculib_root/lib && cf_search="$cf_search /opt/$cf_nculib_root/lib"
5263 test -d /opt/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /opt/$cf_nculib_root/lib/$cf_nculib_root"
5266 test "$HOME" != "$prefix" && \
5267 test -d "$HOME" && \
5268 (test $prefix = NONE || test -d $prefix) && {
5269 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
5270 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
5271 test -d $HOME/lib/$cf_nculib_root && cf_search="$cf_search $HOME/lib/$cf_nculib_root"
5272 test -d $HOME/lib/$cf_nculib_root/lib && cf_search="$cf_search $HOME/lib/$cf_nculib_root/lib"
5273 test -d $HOME/$cf_nculib_root/lib && cf_search="$cf_search $HOME/$cf_nculib_root/lib"
5274 test -d $HOME/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $HOME/$cf_nculib_root/lib/$cf_nculib_root"
5277 cf_search="$cf_library_path_list $cf_search"
5279 for cf_libdir in $cf_search
5281 echo "$as_me:5281: checking for -l$cf_nculib_root in $cf_libdir" >&5
5282 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
5283 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
5284 cat >conftest.$ac_ext <<_ACEOF
5285 #line 5285 "configure"
5286 #include "confdefs.h"
5287 #include <${cf_cv_ncurses_header-curses.h}>
5296 rm -f conftest.$ac_objext conftest$ac_exeext
5297 if { (eval echo "$as_me:5297: \"$ac_link\"") >&5
5298 (eval $ac_link) 2>&5
5300 echo "$as_me:5300: \$? = $ac_status" >&5
5301 (exit $ac_status); } &&
5302 { ac_try='test -s conftest$ac_exeext'
5303 { (eval echo "$as_me:5303: \"$ac_try\"") >&5
5306 echo "$as_me:5306: \$? = $ac_status" >&5
5307 (exit $ac_status); }; }; then
5308 echo "$as_me:5308: result: yes" >&5
5309 echo "${ECHO_T}yes" >&6
5310 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
5313 echo "$as_me: failed program was:" >&5
5314 cat conftest.$ac_ext >&5
5315 echo "$as_me:5315: result: no" >&5
5316 echo "${ECHO_T}no" >&6
5317 LIBS="$cf_save_LIBS"
5319 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5323 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5327 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
5329 if test $cf_found_library = no ; then
5330 { { echo "$as_me:5330: error: Cannot link $cf_nculib_root library" >&5
5331 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
5332 { (exit 1); exit 1; }; }
5337 if test -n "$cf_ncurses_LIBS" ; then
5338 echo "$as_me:5338: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
5339 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
5340 cf_ncurses_SAVE="$LIBS"
5341 for p in $cf_ncurses_LIBS ; do
5342 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
5343 if test "$q" != "$LIBS" ; then
5347 cat >conftest.$ac_ext <<_ACEOF
5348 #line 5348 "configure"
5349 #include "confdefs.h"
5350 #include <${cf_cv_ncurses_header-curses.h}>
5354 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
5359 rm -f conftest.$ac_objext conftest$ac_exeext
5360 if { (eval echo "$as_me:5360: \"$ac_link\"") >&5
5361 (eval $ac_link) 2>&5
5363 echo "$as_me:5363: \$? = $ac_status" >&5
5364 (exit $ac_status); } &&
5365 { ac_try='test -s conftest$ac_exeext'
5366 { (eval echo "$as_me:5366: \"$ac_try\"") >&5
5369 echo "$as_me:5369: \$? = $ac_status" >&5
5370 (exit $ac_status); }; }; then
5371 echo "$as_me:5371: result: yes" >&5
5372 echo "${ECHO_T}yes" >&6
5374 echo "$as_me: failed program was:" >&5
5375 cat conftest.$ac_ext >&5
5376 echo "$as_me:5376: result: no" >&5
5377 echo "${ECHO_T}no" >&6
5378 LIBS="$cf_ncurses_SAVE"
5380 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5383 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5385 cat >>confdefs.h <<EOF
5386 #define $cf_nculib_ROOT 1
5393 cf_ncuconfig_root=ncurses
5395 echo "Looking for ${cf_ncuconfig_root}-config"
5396 for ac_prog in ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
5398 # Extract the first word of "$ac_prog", so it can be a program name with args.
5399 set dummy $ac_prog; ac_word=$2
5400 echo "$as_me:5400: checking for $ac_word" >&5
5401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5402 if test "${ac_cv_path_NCURSES_CONFIG+set}" = set; then
5403 echo $ECHO_N "(cached) $ECHO_C" >&6
5405 case $NCURSES_CONFIG in
5407 ac_cv_path_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test with a path.
5410 ac_save_IFS=$IFS; IFS=$ac_path_separator
5412 for ac_dir in $ac_dummy; do
5414 test -z "$ac_dir" && ac_dir=.
5415 if $as_executable_p "$ac_dir/$ac_word"; then
5416 ac_cv_path_NCURSES_CONFIG="$ac_dir/$ac_word"
5417 echo "$as_me:5417: found $ac_dir/$ac_word" >&5
5425 NCURSES_CONFIG=$ac_cv_path_NCURSES_CONFIG
5427 if test -n "$NCURSES_CONFIG"; then
5428 echo "$as_me:5428: result: $NCURSES_CONFIG" >&5
5429 echo "${ECHO_T}$NCURSES_CONFIG" >&6
5431 echo "$as_me:5431: result: no" >&5
5432 echo "${ECHO_T}no" >&6
5435 test -n "$NCURSES_CONFIG" && break
5437 test -n "$NCURSES_CONFIG" || NCURSES_CONFIG="none"
5439 if test "$NCURSES_CONFIG" != none ; then
5441 cf_cv_ncurses_header=curses.h
5443 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
5444 LIBS="`$NCURSES_CONFIG --libs` $LIBS"
5446 cat >>confdefs.h <<\EOF
5450 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5452 cat >>confdefs.h <<EOF
5453 #define $cf_nculib_ROOT 1
5456 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
5460 cf_ncuhdr_root=ncurses
5462 test -n "$cf_cv_curses_dir" && \
5463 test "$cf_cv_curses_dir" != "no" && { \
5465 if test -n "$cf_cv_curses_dir/include $cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
5466 for cf_add_incdir in $cf_cv_curses_dir/include $cf_cv_curses_dir/include/$cf_ncuhdr_root
5468 while test $cf_add_incdir != /usr/include
5470 if test -d $cf_add_incdir
5473 if test -n "$CFLAGS$CPPFLAGS" ; then
5474 # a loop is needed to ensure we can add subdirs of existing dirs
5475 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
5476 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
5477 cf_have_incdir=yes; break
5482 if test "$cf_have_incdir" = no ; then
5483 if test "$cf_add_incdir" = /usr/local/include ; then
5484 if test "$GCC" = yes
5486 cf_save_CPPFLAGS=$CPPFLAGS
5487 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5488 cat >conftest.$ac_ext <<_ACEOF
5489 #line 5489 "configure"
5490 #include "confdefs.h"
5500 rm -f conftest.$ac_objext
5501 if { (eval echo "$as_me:5501: \"$ac_compile\"") >&5
5502 (eval $ac_compile) 2>&5
5504 echo "$as_me:5504: \$? = $ac_status" >&5
5505 (exit $ac_status); } &&
5506 { ac_try='test -s conftest.$ac_objext'
5507 { (eval echo "$as_me:5507: \"$ac_try\"") >&5
5510 echo "$as_me:5510: \$? = $ac_status" >&5
5511 (exit $ac_status); }; }; then
5514 echo "$as_me: failed program was:" >&5
5515 cat conftest.$ac_ext >&5
5518 rm -f conftest.$ac_objext conftest.$ac_ext
5519 CPPFLAGS=$cf_save_CPPFLAGS
5524 if test "$cf_have_incdir" = no ; then
5525 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
5527 echo "${as_me-configure}:5527: testing adding $cf_add_incdir to include-path ..." 1>&5
5529 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5531 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
5532 test "$cf_top_incdir" = "$cf_add_incdir" && break
5533 cf_add_incdir="$cf_top_incdir"
5544 echo "$as_me:5544: checking for $cf_ncuhdr_root header in include-path" >&5
5545 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
5546 if test "${cf_cv_ncurses_h+set}" = set; then
5547 echo $ECHO_N "(cached) $ECHO_C" >&6
5550 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
5551 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
5552 for cf_header in $cf_header_list
5555 cat >conftest.$ac_ext <<_ACEOF
5556 #line 5556 "configure"
5557 #include "confdefs.h"
5559 #include <$cf_header>
5564 #ifdef NCURSES_VERSION
5566 printf("%s\n", NCURSES_VERSION);
5579 rm -f conftest.$ac_objext
5580 if { (eval echo "$as_me:5580: \"$ac_compile\"") >&5
5581 (eval $ac_compile) 2>&5
5583 echo "$as_me:5583: \$? = $ac_status" >&5
5584 (exit $ac_status); } &&
5585 { ac_try='test -s conftest.$ac_objext'
5586 { (eval echo "$as_me:5586: \"$ac_try\"") >&5
5589 echo "$as_me:5589: \$? = $ac_status" >&5
5590 (exit $ac_status); }; }; then
5591 cf_cv_ncurses_h=$cf_header
5594 echo "$as_me: failed program was:" >&5
5595 cat conftest.$ac_ext >&5
5598 rm -f conftest.$ac_objext conftest.$ac_ext
5600 test "$cf_cv_ncurses_h" != no && break
5604 echo "$as_me:5604: result: $cf_cv_ncurses_h" >&5
5605 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
5607 if test "$cf_cv_ncurses_h" != no ; then
5608 cf_cv_ncurses_header=$cf_cv_ncurses_h
5611 echo "$as_me:5611: checking for $cf_ncuhdr_root include-path" >&5
5612 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
5613 if test "${cf_cv_ncurses_h2+set}" = set; then
5614 echo $ECHO_N "(cached) $ECHO_C" >&6
5617 test -n "$verbose" && echo
5620 cf_header_path_list=""
5621 if test -n "${CFLAGS}${CPPFLAGS}" ; then
5622 for cf_header_path in $CPPFLAGS $CFLAGS
5624 case $cf_header_path in #(vi
5626 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
5628 test "$cf_header_path" != "NONE" && \
5629 test -d "$cf_header_path" && \
5631 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
5632 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
5633 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
5634 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
5635 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
5636 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"
5639 cf_header_path_list="$cf_header_path_list $cf_search"
5647 test "/usr" != "$prefix" && \
5649 (test $prefix = NONE || test -d $prefix) && {
5650 test -n "$verbose" && echo " ... testing for include-directories under /usr"
5651 test -d /usr/include && cf_search="$cf_search /usr/include"
5652 test -d /usr/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/include/$cf_ncuhdr_root"
5653 test -d /usr/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/include/$cf_ncuhdr_root/include"
5654 test -d /usr/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/$cf_ncuhdr_root/include"
5655 test -d /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
5658 test "$prefix" != "NONE" && \
5659 test -d "$prefix" && \
5661 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
5662 test -d $prefix/include && cf_search="$cf_search $prefix/include"
5663 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
5664 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
5665 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
5666 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
5669 test "/usr/local" != "$prefix" && \
5670 test -d "/usr/local" && \
5671 (test $prefix = NONE || test -d $prefix) && {
5672 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
5673 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
5674 test -d /usr/local/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root"
5675 test -d /usr/local/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root/include"
5676 test -d /usr/local/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include"
5677 test -d /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
5680 test "/opt" != "$prefix" && \
5682 (test $prefix = NONE || test -d $prefix) && {
5683 test -n "$verbose" && echo " ... testing for include-directories under /opt"
5684 test -d /opt/include && cf_search="$cf_search /opt/include"
5685 test -d /opt/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/include/$cf_ncuhdr_root"
5686 test -d /opt/include/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/include/$cf_ncuhdr_root/include"
5687 test -d /opt/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/$cf_ncuhdr_root/include"
5688 test -d /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
5691 test "$HOME" != "$prefix" && \
5692 test -d "$HOME" && \
5693 (test $prefix = NONE || test -d $prefix) && {
5694 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
5695 test -d $HOME/include && cf_search="$cf_search $HOME/include"
5696 test -d $HOME/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root"
5697 test -d $HOME/include/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root/include"
5698 test -d $HOME/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include"
5699 test -d $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
5702 test "$includedir" != NONE && \
5703 test "$includedir" != "/usr/include" && \
5704 test -d "$includedir" && {
5705 test -d $includedir && cf_search="$cf_search $includedir"
5706 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
5709 test "$oldincludedir" != NONE && \
5710 test "$oldincludedir" != "/usr/include" && \
5711 test -d "$oldincludedir" && {
5712 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
5713 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
5716 cf_search="$cf_header_path_list $cf_search"
5718 test -n "$verbose" && echo search path $cf_search
5719 cf_save2_CPPFLAGS="$CPPFLAGS"
5720 for cf_incdir in $cf_search
5723 if test -n "$cf_incdir" ; then
5724 for cf_add_incdir in $cf_incdir
5726 while test $cf_add_incdir != /usr/include
5728 if test -d $cf_add_incdir
5731 if test -n "$CFLAGS$CPPFLAGS" ; then
5732 # a loop is needed to ensure we can add subdirs of existing dirs
5733 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
5734 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
5735 cf_have_incdir=yes; break
5740 if test "$cf_have_incdir" = no ; then
5741 if test "$cf_add_incdir" = /usr/local/include ; then
5742 if test "$GCC" = yes
5744 cf_save_CPPFLAGS=$CPPFLAGS
5745 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5746 cat >conftest.$ac_ext <<_ACEOF
5747 #line 5747 "configure"
5748 #include "confdefs.h"
5758 rm -f conftest.$ac_objext
5759 if { (eval echo "$as_me:5759: \"$ac_compile\"") >&5
5760 (eval $ac_compile) 2>&5
5762 echo "$as_me:5762: \$? = $ac_status" >&5
5763 (exit $ac_status); } &&
5764 { ac_try='test -s conftest.$ac_objext'
5765 { (eval echo "$as_me:5765: \"$ac_try\"") >&5
5768 echo "$as_me:5768: \$? = $ac_status" >&5
5769 (exit $ac_status); }; }; then
5772 echo "$as_me: failed program was:" >&5
5773 cat conftest.$ac_ext >&5
5776 rm -f conftest.$ac_objext conftest.$ac_ext
5777 CPPFLAGS=$cf_save_CPPFLAGS
5782 if test "$cf_have_incdir" = no ; then
5783 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
5785 echo "${as_me-configure}:5785: testing adding $cf_add_incdir to include-path ..." 1>&5
5787 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5789 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
5790 test "$cf_top_incdir" = "$cf_add_incdir" && break
5791 cf_add_incdir="$cf_top_incdir"
5805 cat >conftest.$ac_ext <<_ACEOF
5806 #line 5806 "configure"
5807 #include "confdefs.h"
5809 #include <$cf_header>
5814 #ifdef NCURSES_VERSION
5816 printf("%s\n", NCURSES_VERSION);
5829 rm -f conftest.$ac_objext
5830 if { (eval echo "$as_me:5830: \"$ac_compile\"") >&5
5831 (eval $ac_compile) 2>&5
5833 echo "$as_me:5833: \$? = $ac_status" >&5
5834 (exit $ac_status); } &&
5835 { ac_try='test -s conftest.$ac_objext'
5836 { (eval echo "$as_me:5836: \"$ac_try\"") >&5
5839 echo "$as_me:5839: \$? = $ac_status" >&5
5840 (exit $ac_status); }; }; then
5841 cf_cv_ncurses_h2=$cf_header
5844 echo "$as_me: failed program was:" >&5
5845 cat conftest.$ac_ext >&5
5848 rm -f conftest.$ac_objext conftest.$ac_ext
5850 if test "$cf_cv_ncurses_h2" != no ; then
5851 cf_cv_ncurses_h2=$cf_incdir/$cf_header
5852 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
5855 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
5857 CPPFLAGS="$cf_save2_CPPFLAGS"
5858 test "$cf_cv_ncurses_h2" != no && break
5860 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:5860: error: not found" >&5
5861 echo "$as_me: error: not found" >&2;}
5862 { (exit 1); exit 1; }; }
5865 echo "$as_me:5865: result: $cf_cv_ncurses_h2" >&5
5866 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
5868 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
5869 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
5870 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
5871 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
5874 if test -n "$cf_1st_incdir" ; then
5875 for cf_add_incdir in $cf_1st_incdir
5877 while test $cf_add_incdir != /usr/include
5879 if test -d $cf_add_incdir
5882 if test -n "$CFLAGS$CPPFLAGS" ; then
5883 # a loop is needed to ensure we can add subdirs of existing dirs
5884 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
5885 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
5886 cf_have_incdir=yes; break
5891 if test "$cf_have_incdir" = no ; then
5892 if test "$cf_add_incdir" = /usr/local/include ; then
5893 if test "$GCC" = yes
5895 cf_save_CPPFLAGS=$CPPFLAGS
5896 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5897 cat >conftest.$ac_ext <<_ACEOF
5898 #line 5898 "configure"
5899 #include "confdefs.h"
5909 rm -f conftest.$ac_objext
5910 if { (eval echo "$as_me:5910: \"$ac_compile\"") >&5
5911 (eval $ac_compile) 2>&5
5913 echo "$as_me:5913: \$? = $ac_status" >&5
5914 (exit $ac_status); } &&
5915 { ac_try='test -s conftest.$ac_objext'
5916 { (eval echo "$as_me:5916: \"$ac_try\"") >&5
5919 echo "$as_me:5919: \$? = $ac_status" >&5
5920 (exit $ac_status); }; }; then
5923 echo "$as_me: failed program was:" >&5
5924 cat conftest.$ac_ext >&5
5927 rm -f conftest.$ac_objext conftest.$ac_ext
5928 CPPFLAGS=$cf_save_CPPFLAGS
5933 if test "$cf_have_incdir" = no ; then
5934 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
5936 echo "${as_me-configure}:5936: testing adding $cf_add_incdir to include-path ..." 1>&5
5938 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5940 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
5941 test "$cf_top_incdir" = "$cf_add_incdir" && break
5942 cf_add_incdir="$cf_top_incdir"
5953 # Set definitions to allow ifdef'ing for ncurses.h
5955 case $cf_cv_ncurses_header in # (vi
5957 cat >>confdefs.h <<\EOF
5958 #define HAVE_NCURSES_H 1
5964 case $cf_cv_ncurses_header in # (vi
5965 ncurses/curses.h|ncurses/ncurses.h)
5966 cat >>confdefs.h <<\EOF
5967 #define HAVE_NCURSES_NCURSES_H 1
5971 ncursesw/curses.h|ncursesw/ncurses.h)
5972 cat >>confdefs.h <<\EOF
5973 #define HAVE_NCURSESW_NCURSES_H 1
5979 echo "$as_me:5979: checking for terminfo header" >&5
5980 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
5981 if test "${cf_cv_term_header+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5985 case ${cf_cv_ncurses_header} in #(vi
5986 */ncurses.h|*/ncursesw.h) #(vi
5987 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
5990 cf_term_header=term.h
5994 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
5996 cat >conftest.$ac_ext <<_ACEOF
5997 #line 5997 "configure"
5998 #include "confdefs.h"
6000 #include <${cf_cv_ncurses_header-curses.h}>
6006 int x = auto_left_margin
6011 rm -f conftest.$ac_objext
6012 if { (eval echo "$as_me:6012: \"$ac_compile\"") >&5
6013 (eval $ac_compile) 2>&5
6015 echo "$as_me:6015: \$? = $ac_status" >&5
6016 (exit $ac_status); } &&
6017 { ac_try='test -s conftest.$ac_objext'
6018 { (eval echo "$as_me:6018: \"$ac_try\"") >&5
6021 echo "$as_me:6021: \$? = $ac_status" >&5
6022 (exit $ac_status); }; }; then
6024 cf_cv_term_header="$cf_test"
6026 echo "$as_me: failed program was:" >&5
6027 cat conftest.$ac_ext >&5
6029 cf_cv_term_header=unknown
6032 rm -f conftest.$ac_objext conftest.$ac_ext
6033 test "$cf_cv_term_header" != unknown && break
6037 echo "$as_me:6037: result: $cf_cv_term_header" >&5
6038 echo "${ECHO_T}$cf_cv_term_header" >&6
6040 # Set definitions to allow ifdef'ing to accommodate subdirectories
6042 case $cf_cv_term_header in # (vi
6044 cat >>confdefs.h <<\EOF
6045 #define HAVE_TERM_H 1
6051 case $cf_cv_term_header in # (vi
6052 ncurses/term.h) #(vi
6053 cat >>confdefs.h <<\EOF
6054 #define HAVE_NCURSES_TERM_H 1
6059 cat >>confdefs.h <<\EOF
6060 #define HAVE_NCURSESW_TERM_H 1
6066 # some applications need this, but should check for NCURSES_VERSION
6067 cat >>confdefs.h <<\EOF
6071 echo "$as_me:6071: checking for ncurses version" >&5
6072 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
6073 if test "${cf_cv_ncurses_version+set}" = set; then
6074 echo $ECHO_N "(cached) $ECHO_C" >&6
6077 cf_cv_ncurses_version=no
6080 if test "$cross_compiling" = yes; then
6082 # This will not work if the preprocessor splits the line after the
6083 # Autoconf token. The 'unproto' program does that.
6084 cat > conftest.$ac_ext <<EOF
6085 #include <${cf_cv_ncurses_header-curses.h}>
6087 #ifdef NCURSES_VERSION
6088 Autoconf NCURSES_VERSION
6096 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
6097 { (eval echo "$as_me:6097: \"$cf_try\"") >&5
6100 echo "$as_me:6100: \$? = $ac_status" >&5
6101 (exit $ac_status); }
6102 if test -f conftest.out ; then
6103 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
6104 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
6109 cat >conftest.$ac_ext <<_ACEOF
6110 #line 6110 "configure"
6111 #include "confdefs.h"
6113 #include <${cf_cv_ncurses_header-curses.h}>
6117 FILE *fp = fopen("$cf_tempfile", "w");
6118 #ifdef NCURSES_VERSION
6119 # ifdef NCURSES_VERSION_PATCH
6120 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
6122 fprintf(fp, "%s\n", NCURSES_VERSION);
6126 fprintf(fp, "old\n");
6131 ${cf_cv_main_return-return}(0);
6134 rm -f conftest$ac_exeext
6135 if { (eval echo "$as_me:6135: \"$ac_link\"") >&5
6136 (eval $ac_link) 2>&5
6138 echo "$as_me:6138: \$? = $ac_status" >&5
6139 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6140 { (eval echo "$as_me:6140: \"$ac_try\"") >&5
6143 echo "$as_me:6143: \$? = $ac_status" >&5
6144 (exit $ac_status); }; }; then
6146 cf_cv_ncurses_version=`cat $cf_tempfile`
6148 echo "$as_me: program exited with status $ac_status" >&5
6149 echo "$as_me: failed program was:" >&5
6150 cat conftest.$ac_ext >&5
6152 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6157 echo "$as_me:6157: result: $cf_cv_ncurses_version" >&5
6158 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
6159 test "$cf_cv_ncurses_version" = no || cat >>confdefs.h <<\EOF
6163 cf_nculib_root=ncurses
6164 # This works, except for the special case where we find gpm, but
6165 # ncurses is in a nonstandard location via $LIBS, and we really want
6168 cf_ncurses_SAVE="$LIBS"
6169 echo "$as_me:6169: checking for Gpm_Open in -lgpm" >&5
6170 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
6171 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
6172 echo $ECHO_N "(cached) $ECHO_C" >&6
6174 ac_check_lib_save_LIBS=$LIBS
6176 cat >conftest.$ac_ext <<_ACEOF
6177 #line 6177 "configure"
6178 #include "confdefs.h"
6180 /* Override any gcc2 internal prototype to avoid an error. */
6184 /* We use char because int might match the return type of a gcc2
6185 builtin and then its argument prototype would still apply. */
6195 rm -f conftest.$ac_objext conftest$ac_exeext
6196 if { (eval echo "$as_me:6196: \"$ac_link\"") >&5
6197 (eval $ac_link) 2>&5
6199 echo "$as_me:6199: \$? = $ac_status" >&5
6200 (exit $ac_status); } &&
6201 { ac_try='test -s conftest$ac_exeext'
6202 { (eval echo "$as_me:6202: \"$ac_try\"") >&5
6205 echo "$as_me:6205: \$? = $ac_status" >&5
6206 (exit $ac_status); }; }; then
6207 ac_cv_lib_gpm_Gpm_Open=yes
6209 echo "$as_me: failed program was:" >&5
6210 cat conftest.$ac_ext >&5
6211 ac_cv_lib_gpm_Gpm_Open=no
6213 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6214 LIBS=$ac_check_lib_save_LIBS
6216 echo "$as_me:6216: result: $ac_cv_lib_gpm_Gpm_Open" >&5
6217 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
6218 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
6219 echo "$as_me:6219: checking for initscr in -lgpm" >&5
6220 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
6221 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
6222 echo $ECHO_N "(cached) $ECHO_C" >&6
6224 ac_check_lib_save_LIBS=$LIBS
6226 cat >conftest.$ac_ext <<_ACEOF
6227 #line 6227 "configure"
6228 #include "confdefs.h"
6230 /* Override any gcc2 internal prototype to avoid an error. */
6234 /* We use char because int might match the return type of a gcc2
6235 builtin and then its argument prototype would still apply. */
6245 rm -f conftest.$ac_objext conftest$ac_exeext
6246 if { (eval echo "$as_me:6246: \"$ac_link\"") >&5
6247 (eval $ac_link) 2>&5
6249 echo "$as_me:6249: \$? = $ac_status" >&5
6250 (exit $ac_status); } &&
6251 { ac_try='test -s conftest$ac_exeext'
6252 { (eval echo "$as_me:6252: \"$ac_try\"") >&5
6255 echo "$as_me:6255: \$? = $ac_status" >&5
6256 (exit $ac_status); }; }; then
6257 ac_cv_lib_gpm_initscr=yes
6259 echo "$as_me: failed program was:" >&5
6260 cat conftest.$ac_ext >&5
6261 ac_cv_lib_gpm_initscr=no
6263 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6264 LIBS=$ac_check_lib_save_LIBS
6266 echo "$as_me:6266: result: $ac_cv_lib_gpm_initscr" >&5
6267 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
6268 if test $ac_cv_lib_gpm_initscr = yes; then
6269 LIBS="$cf_ncurses_SAVE"
6271 cf_ncurses_LIBS="-lgpm"
6276 case $host_os in #(vi
6278 # This is only necessary if you are linking against an obsolete
6279 # version of ncurses (but it should do no harm, since it's static).
6280 if test "$cf_nculib_root" = ncurses ; then
6281 echo "$as_me:6281: checking for tgoto in -lmytinfo" >&5
6282 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
6283 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
6284 echo $ECHO_N "(cached) $ECHO_C" >&6
6286 ac_check_lib_save_LIBS=$LIBS
6287 LIBS="-lmytinfo $LIBS"
6288 cat >conftest.$ac_ext <<_ACEOF
6289 #line 6289 "configure"
6290 #include "confdefs.h"
6292 /* Override any gcc2 internal prototype to avoid an error. */
6296 /* We use char because int might match the return type of a gcc2
6297 builtin and then its argument prototype would still apply. */
6307 rm -f conftest.$ac_objext conftest$ac_exeext
6308 if { (eval echo "$as_me:6308: \"$ac_link\"") >&5
6309 (eval $ac_link) 2>&5
6311 echo "$as_me:6311: \$? = $ac_status" >&5
6312 (exit $ac_status); } &&
6313 { ac_try='test -s conftest$ac_exeext'
6314 { (eval echo "$as_me:6314: \"$ac_try\"") >&5
6317 echo "$as_me:6317: \$? = $ac_status" >&5
6318 (exit $ac_status); }; }; then
6319 ac_cv_lib_mytinfo_tgoto=yes
6321 echo "$as_me: failed program was:" >&5
6322 cat conftest.$ac_ext >&5
6323 ac_cv_lib_mytinfo_tgoto=no
6325 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6326 LIBS=$ac_check_lib_save_LIBS
6328 echo "$as_me:6328: result: $ac_cv_lib_mytinfo_tgoto" >&5
6329 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
6330 if test $ac_cv_lib_mytinfo_tgoto = yes; then
6331 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
6338 LIBS="$cf_ncurses_LIBS $LIBS"
6340 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
6343 if test -n "$cf_cv_curses_dir/lib" ; then
6344 for cf_add_libdir in $cf_cv_curses_dir/lib
6346 if test $cf_add_libdir = /usr/lib ; then
6348 elif test -d $cf_add_libdir
6351 if test -n "$LDFLAGS$LIBS" ; then
6352 # a loop is needed to ensure we can add subdirs of existing dirs
6353 for cf_test_libdir in $LDFLAGS $LIBS ; do
6354 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
6355 cf_have_libdir=yes; break
6359 if test "$cf_have_libdir" = no ; then
6360 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
6362 echo "${as_me-configure}:6362: testing adding $cf_add_libdir to library-path ..." 1>&5
6364 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
6370 LIBS="-l$cf_nculib_root $LIBS"
6373 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
6375 echo "$as_me:6375: checking for initscr" >&5
6376 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
6377 if test "${ac_cv_func_initscr+set}" = set; then
6378 echo $ECHO_N "(cached) $ECHO_C" >&6
6380 cat >conftest.$ac_ext <<_ACEOF
6381 #line 6381 "configure"
6382 #include "confdefs.h"
6383 /* System header to define __stub macros and hopefully few prototypes,
6384 which can conflict with char initscr (); below. */
6386 /* Override any gcc2 internal prototype to avoid an error. */
6390 /* We use char because int might match the return type of a gcc2
6391 builtin and then its argument prototype would still apply. */
6398 /* The GNU C library defines this for functions which it implements
6399 to always fail with ENOSYS. Some functions are actually named
6400 something starting with __ and the normal name is an alias. */
6401 #if defined (__stub_initscr) || defined (__stub___initscr)
6411 rm -f conftest.$ac_objext conftest$ac_exeext
6412 if { (eval echo "$as_me:6412: \"$ac_link\"") >&5
6413 (eval $ac_link) 2>&5
6415 echo "$as_me:6415: \$? = $ac_status" >&5
6416 (exit $ac_status); } &&
6417 { ac_try='test -s conftest$ac_exeext'
6418 { (eval echo "$as_me:6418: \"$ac_try\"") >&5
6421 echo "$as_me:6421: \$? = $ac_status" >&5
6422 (exit $ac_status); }; }; then
6423 ac_cv_func_initscr=yes
6425 echo "$as_me: failed program was:" >&5
6426 cat conftest.$ac_ext >&5
6427 ac_cv_func_initscr=no
6429 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6431 echo "$as_me:6431: result: $ac_cv_func_initscr" >&5
6432 echo "${ECHO_T}$ac_cv_func_initscr" >&6
6433 if test $ac_cv_func_initscr = yes; then
6434 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
6437 cf_save_LIBS="$LIBS"
6438 echo "$as_me:6438: checking for initscr in -l$cf_nculib_root" >&5
6439 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
6440 LIBS="-l$cf_nculib_root $LIBS"
6441 cat >conftest.$ac_ext <<_ACEOF
6442 #line 6442 "configure"
6443 #include "confdefs.h"
6444 #include <${cf_cv_ncurses_header-curses.h}>
6453 rm -f conftest.$ac_objext conftest$ac_exeext
6454 if { (eval echo "$as_me:6454: \"$ac_link\"") >&5
6455 (eval $ac_link) 2>&5
6457 echo "$as_me:6457: \$? = $ac_status" >&5
6458 (exit $ac_status); } &&
6459 { ac_try='test -s conftest$ac_exeext'
6460 { (eval echo "$as_me:6460: \"$ac_try\"") >&5
6463 echo "$as_me:6463: \$? = $ac_status" >&5
6464 (exit $ac_status); }; }; then
6465 echo "$as_me:6465: result: yes" >&5
6466 echo "${ECHO_T}yes" >&6
6467 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
6470 echo "$as_me: failed program was:" >&5
6471 cat conftest.$ac_ext >&5
6472 echo "$as_me:6472: result: no" >&5
6473 echo "${ECHO_T}no" >&6
6475 cf_library_path_list=""
6476 if test -n "${LDFLAGS}${LIBS}" ; then
6477 for cf_library_path in $LDFLAGS $LIBS
6479 case $cf_library_path in #(vi
6481 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
6483 test "$cf_library_path" != "NONE" && \
6484 test -d "$cf_library_path" && \
6486 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
6487 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
6488 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
6489 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
6490 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
6491 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"
6494 cf_library_path_list="$cf_library_path_list $cf_search"
6502 test "/usr" != "$prefix" && \
6504 (test $prefix = NONE || test -d $prefix) && {
6505 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
6506 test -d /usr/lib && cf_search="$cf_search /usr/lib"
6507 test -d /usr/lib/$cf_nculib_root && cf_search="$cf_search /usr/lib/$cf_nculib_root"
6508 test -d /usr/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/lib/$cf_nculib_root/lib"
6509 test -d /usr/$cf_nculib_root/lib && cf_search="$cf_search /usr/$cf_nculib_root/lib"
6510 test -d /usr/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/$cf_nculib_root/lib/$cf_nculib_root"
6513 test "$prefix" != "NONE" && \
6514 test -d "$prefix" && \
6516 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
6517 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
6518 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
6519 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
6520 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
6521 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
6524 test "/usr/local" != "$prefix" && \
6525 test -d "/usr/local" && \
6526 (test $prefix = NONE || test -d $prefix) && {
6527 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
6528 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
6529 test -d /usr/local/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/lib/$cf_nculib_root"
6530 test -d /usr/local/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/lib/$cf_nculib_root/lib"
6531 test -d /usr/local/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/$cf_nculib_root/lib"
6532 test -d /usr/local/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/$cf_nculib_root/lib/$cf_nculib_root"
6535 test "/opt" != "$prefix" && \
6537 (test $prefix = NONE || test -d $prefix) && {
6538 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
6539 test -d /opt/lib && cf_search="$cf_search /opt/lib"
6540 test -d /opt/lib/$cf_nculib_root && cf_search="$cf_search /opt/lib/$cf_nculib_root"
6541 test -d /opt/lib/$cf_nculib_root/lib && cf_search="$cf_search /opt/lib/$cf_nculib_root/lib"
6542 test -d /opt/$cf_nculib_root/lib && cf_search="$cf_search /opt/$cf_nculib_root/lib"
6543 test -d /opt/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /opt/$cf_nculib_root/lib/$cf_nculib_root"
6546 test "$HOME" != "$prefix" && \
6547 test -d "$HOME" && \
6548 (test $prefix = NONE || test -d $prefix) && {
6549 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
6550 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
6551 test -d $HOME/lib/$cf_nculib_root && cf_search="$cf_search $HOME/lib/$cf_nculib_root"
6552 test -d $HOME/lib/$cf_nculib_root/lib && cf_search="$cf_search $HOME/lib/$cf_nculib_root/lib"
6553 test -d $HOME/$cf_nculib_root/lib && cf_search="$cf_search $HOME/$cf_nculib_root/lib"
6554 test -d $HOME/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $HOME/$cf_nculib_root/lib/$cf_nculib_root"
6557 cf_search="$cf_library_path_list $cf_search"
6559 for cf_libdir in $cf_search
6561 echo "$as_me:6561: checking for -l$cf_nculib_root in $cf_libdir" >&5
6562 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
6563 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
6564 cat >conftest.$ac_ext <<_ACEOF
6565 #line 6565 "configure"
6566 #include "confdefs.h"
6567 #include <${cf_cv_ncurses_header-curses.h}>
6576 rm -f conftest.$ac_objext conftest$ac_exeext
6577 if { (eval echo "$as_me:6577: \"$ac_link\"") >&5
6578 (eval $ac_link) 2>&5
6580 echo "$as_me:6580: \$? = $ac_status" >&5
6581 (exit $ac_status); } &&
6582 { ac_try='test -s conftest$ac_exeext'
6583 { (eval echo "$as_me:6583: \"$ac_try\"") >&5
6586 echo "$as_me:6586: \$? = $ac_status" >&5
6587 (exit $ac_status); }; }; then
6588 echo "$as_me:6588: result: yes" >&5
6589 echo "${ECHO_T}yes" >&6
6590 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
6593 echo "$as_me: failed program was:" >&5
6594 cat conftest.$ac_ext >&5
6595 echo "$as_me:6595: result: no" >&5
6596 echo "${ECHO_T}no" >&6
6597 LIBS="$cf_save_LIBS"
6599 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6603 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6607 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
6609 if test $cf_found_library = no ; then
6610 { { echo "$as_me:6610: error: Cannot link $cf_nculib_root library" >&5
6611 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
6612 { (exit 1); exit 1; }; }
6617 if test -n "$cf_ncurses_LIBS" ; then
6618 echo "$as_me:6618: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
6619 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
6620 cf_ncurses_SAVE="$LIBS"
6621 for p in $cf_ncurses_LIBS ; do
6622 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
6623 if test "$q" != "$LIBS" ; then
6627 cat >conftest.$ac_ext <<_ACEOF
6628 #line 6628 "configure"
6629 #include "confdefs.h"
6630 #include <${cf_cv_ncurses_header-curses.h}>
6634 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
6639 rm -f conftest.$ac_objext conftest$ac_exeext
6640 if { (eval echo "$as_me:6640: \"$ac_link\"") >&5
6641 (eval $ac_link) 2>&5
6643 echo "$as_me:6643: \$? = $ac_status" >&5
6644 (exit $ac_status); } &&
6645 { ac_try='test -s conftest$ac_exeext'
6646 { (eval echo "$as_me:6646: \"$ac_try\"") >&5
6649 echo "$as_me:6649: \$? = $ac_status" >&5
6650 (exit $ac_status); }; }; then
6651 echo "$as_me:6651: result: yes" >&5
6652 echo "${ECHO_T}yes" >&6
6654 echo "$as_me: failed program was:" >&5
6655 cat conftest.$ac_ext >&5
6656 echo "$as_me:6656: result: no" >&5
6657 echo "${ECHO_T}no" >&6
6658 LIBS="$cf_ncurses_SAVE"
6660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6663 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
6665 cat >>confdefs.h <<EOF
6666 #define $cf_nculib_ROOT 1
6673 if test "$NCURSES_CONFIG" != none ; then
6675 cf_version=`$NCURSES_CONFIG --version`
6677 NCURSES_MAJOR=`echo "$cf_version" | sed -e 's/\..*//'`
6678 NCURSES_MINOR=`echo "$cf_version" | sed -e 's/^[0-9]\+\.//' -e 's/\..*//'`
6679 NCURSES_PATCH=`echo "$cf_version" | sed -e 's/^[0-9]\+\.[0-9]\+\.//'`
6681 # ABI version is not available from headers
6682 cf_cv_abi_version=`$NCURSES_CONFIG --abi-version`
6686 for cf_name in MAJOR MINOR PATCH
6688 cat >conftest.$ac_ext <<CF_EOF
6689 #include <${cf_cv_ncurses_header-curses.h}>
6690 AUTOCONF_$cf_name NCURSES_VERSION_$cf_name
6692 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | fgrep AUTOCONF_$cf_name >conftest.out"
6693 { (eval echo "$as_me:6693: \"$cf_try\"") >&5
6696 echo "$as_me:6696: \$? = $ac_status" >&5
6697 (exit $ac_status); }
6698 if test -f conftest.out ; then
6699 cf_result=`cat conftest.out | sed -e "s/^.*AUTOCONF_$cf_name[ ]\+//"`
6700 eval NCURSES_$cf_name=$cf_result
6701 cat conftest.$ac_ext
6706 cf_cv_abi_version=${NCURSES_MAJOR}
6710 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
6712 cf_cv_timestamp=`date`
6714 echo "$as_me:6714: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
6715 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
6717 case $cf_cv_system_name in #(vi
6724 cf_prefix=$LIB_PREFIX
6726 LIB_PREFIX=$cf_prefix
6730 ###############################################################################
6732 if test X"$CC_G_OPT" = X"" ; then
6734 test -n "$GCC" && test "${ac_cv_prog_cc_g}" != yes && CC_G_OPT=''
6737 echo "$as_me:6737: checking for default loader flags" >&5
6738 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
6739 case $DFT_LWR_MODEL in
6740 normal) LD_MODEL='' ;;
6741 debug) LD_MODEL=$CC_G_OPT ;;
6742 profile) LD_MODEL='-pg';;
6743 shared) LD_MODEL='' ;;
6745 echo "$as_me:6745: result: $LD_MODEL" >&5
6746 echo "${ECHO_T}$LD_MODEL" >&6
6752 INSTALL_LIB="-m 644"
6754 cf_cv_do_symlinks=no
6756 echo "$as_me:6756: checking if release/abi version should be used for shared libs" >&5
6757 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
6759 # Check whether --with-shlib-version or --without-shlib-version was given.
6760 if test "${with_shlib_version+set}" = set; then
6761 withval="$with_shlib_version"
6762 test -z "$withval" && withval=auto
6763 case $withval in #(vi
6765 cf_cv_shlib_version=auto
6767 rel|abi|auto|no) #(vi
6768 cf_cv_shlib_version=$withval
6771 { { echo "$as_me:6771: error: option value must be one of: rel, abi, auto or no" >&5
6772 echo "$as_me: error: option value must be one of: rel, abi, auto or no" >&2;}
6773 { (exit 1); exit 1; }; }
6778 cf_cv_shlib_version=auto
6780 echo "$as_me:6780: result: $cf_cv_shlib_version" >&5
6781 echo "${ECHO_T}$cf_cv_shlib_version" >&6
6785 # Some less-capable ports of gcc support only -fpic
6787 if test "$GCC" = yes
6789 echo "$as_me:6789: checking which $CC option to use" >&5
6790 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
6791 cf_save_CFLAGS="$CFLAGS"
6792 for CC_SHARED_OPTS in -fPIC -fpic ''
6794 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
6795 cat >conftest.$ac_ext <<_ACEOF
6796 #line 6796 "configure"
6797 #include "confdefs.h"
6807 rm -f conftest.$ac_objext
6808 if { (eval echo "$as_me:6808: \"$ac_compile\"") >&5
6809 (eval $ac_compile) 2>&5
6811 echo "$as_me:6811: \$? = $ac_status" >&5
6812 (exit $ac_status); } &&
6813 { ac_try='test -s conftest.$ac_objext'
6814 { (eval echo "$as_me:6814: \"$ac_try\"") >&5
6817 echo "$as_me:6817: \$? = $ac_status" >&5
6818 (exit $ac_status); }; }; then
6821 echo "$as_me: failed program was:" >&5
6822 cat conftest.$ac_ext >&5
6824 rm -f conftest.$ac_objext conftest.$ac_ext
6826 echo "$as_me:6826: result: $CC_SHARED_OPTS" >&5
6827 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
6828 CFLAGS="$cf_save_CFLAGS"
6831 cf_cv_shlib_version_infix=no
6833 case $cf_cv_system_name in
6835 if test "$GCC" = yes; then
6837 MK_SHARED_LIB="$(CC) -shared"
6841 MK_SHARED_LIB='${CC} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
6845 MK_SHARED_LIB='sh ../mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6846 cf_cv_shlib_version=cygdll
6847 cf_cv_shlib_version_infix=cygdll
6848 cat >mk_shared_lib.sh <<-CF_EOF
6851 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6854 Linking shared library
6855 ** SHARED_LIB \$SHARED_LIB
6856 ** IMPORT_LIB \$IMPORT_LIB
6858 exec \$* -shared -Wl,--out-implib=../lib/\${IMPORT_LIB} -Wl,--export-all-symbols -o ../lib/\${SHARED_LIB}
6860 chmod +x mk_shared_lib.sh
6863 EXTRA_CFLAGS="-no-cpp-precomp"
6864 CC_SHARED_OPTS="-dynamic"
6865 MK_SHARED_LIB='${CC} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
6866 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
6867 cf_cv_shlib_version_infix=yes
6868 echo "$as_me:6868: checking if ld -search_paths_first works" >&5
6869 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
6870 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
6871 echo $ECHO_N "(cached) $ECHO_C" >&6
6874 cf_save_LDFLAGS=$LDFLAGS
6875 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6876 cat >conftest.$ac_ext <<_ACEOF
6877 #line 6877 "configure"
6878 #include "confdefs.h"
6888 rm -f conftest.$ac_objext conftest$ac_exeext
6889 if { (eval echo "$as_me:6889: \"$ac_link\"") >&5
6890 (eval $ac_link) 2>&5
6892 echo "$as_me:6892: \$? = $ac_status" >&5
6893 (exit $ac_status); } &&
6894 { ac_try='test -s conftest$ac_exeext'
6895 { (eval echo "$as_me:6895: \"$ac_try\"") >&5
6898 echo "$as_me:6898: \$? = $ac_status" >&5
6899 (exit $ac_status); }; }; then
6900 cf_cv_ldflags_search_paths_first=yes
6902 echo "$as_me: failed program was:" >&5
6903 cat conftest.$ac_ext >&5
6904 cf_cv_ldflags_search_paths_first=no
6906 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6907 LDFLAGS=$cf_save_LDFLAGS
6909 echo "$as_me:6909: result: $cf_cv_ldflags_search_paths_first" >&5
6910 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
6911 if test $cf_cv_ldflags_search_paths_first = yes; then
6912 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6916 # (tested with gcc 2.7.2 -- I don't have c89)
6917 if test "$GCC" = yes; then
6918 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
6921 LD_SHARED_OPTS='-Wl,+b,${libdir}'
6923 MK_SHARED_LIB='${LD} +b ${libdir} -b -o $@'
6924 # HP-UX shared libraries must be executable, and should be
6925 # readonly to exploit a quirk in the memory manager.
6926 INSTALL_LIB="-m 555"
6929 if test "$cf_cv_ld_rpath" = yes ; then
6930 if test "$GCC" = yes; then
6931 LD_RPATH_OPT="-Wl,-rpath,"
6932 EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
6934 LD_RPATH_OPT="-rpath "
6935 EXTRA_LDFLAGS="-rpath \${libdir} $EXTRA_LDFLAGS"
6938 # tested with IRIX 5.2 and 'cc'.
6939 if test "$GCC" != yes; then
6940 CC_SHARED_OPTS='-KPIC'
6941 MK_SHARED_LIB='${CC} -shared -rdata_shared -soname `basename $@` -o $@'
6943 MK_SHARED_LIB='${CC} -shared -Wl,-soname,`basename $@` -o $@'
6945 cf_cv_rm_so_locs=yes
6947 linux*|gnu*|k*bsd*-gnu)
6948 if test "$DFT_LWR_MODEL" = "shared" ; then
6949 LOCAL_LDFLAGS="-Wl,-rpath,\$(LOCAL_LIBDIR)"
6950 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6952 if test "$cf_cv_ld_rpath" = yes ; then
6953 LD_RPATH_OPT="-Wl,-rpath,"
6954 EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
6957 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6958 if test "$cf_cv_shlib_version" = rel; then
6959 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6961 cf_cv_shared_soname='`basename $@`'
6964 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6967 if test "$DFT_LWR_MODEL" = "shared" ; then
6968 LOCAL_LDFLAGS="-Wl,-rpath,\$(LOCAL_LIBDIR)"
6969 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6971 if test "$cf_cv_ld_rpath" = yes ; then
6972 LD_RPATH_OPT="-Wl,-rpath,"
6973 EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
6975 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6977 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6978 if test "$cf_cv_shlib_version" = rel; then
6979 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6981 cf_cv_shared_soname='`basename $@`'
6984 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6986 nto-qnx*|openbsd*|freebsd[12].*)
6987 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6988 MK_SHARED_LIB='${LD} -Bshareable -o $@'
6989 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6992 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6993 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_ld_rpath" = yes ; then
6994 LOCAL_LDFLAGS="-rpath \$(LOCAL_LIBDIR)"
6995 LOCAL_LDFLAGS2="-rpath \${libdir} $LOCAL_LDFLAGS"
6996 LD_RPATH_OPT="-rpath "
6997 EXTRA_LDFLAGS="-rpath \${libdir} $EXTRA_LDFLAGS"
7000 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7001 if test "$cf_cv_shlib_version" = rel; then
7002 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
7004 cf_cv_shared_soname='`basename $@`'
7007 MK_SHARED_LIB='${LD} -shared -Bshareable -soname=`basename $@` -o $@'
7010 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
7011 test "$cf_cv_ld_rpath" = yes && LD_RPATH_OPT="-Wl,-rpath,"
7012 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_ld_rpath" = yes ; then
7013 LOCAL_LDFLAGS="-Wl,-rpath,\$(LOCAL_LIBDIR)"
7014 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7015 EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS"
7016 if test "$cf_cv_shlib_version" = auto; then
7017 if test -f /usr/libexec/ld.elf_so; then
7018 cf_cv_shlib_version=abi
7020 cf_cv_shlib_version=rel
7024 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7025 if test "$cf_cv_shlib_version" = rel; then
7026 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
7028 cf_cv_shared_soname='`basename $@`'
7031 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
7033 MK_SHARED_LIB='${LD} -shared -Bshareable -o $@'
7037 # tested with OSF/1 V3.2 and 'cc'
7038 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
7039 # link with shared libs).
7040 MK_SHARED_LIB='${LD} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
7043 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
7046 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
7047 if test "$DFT_LWR_MODEL" = "shared" ; then
7048 LOCAL_LDFLAGS="-Wl,-rpath,\$(LOCAL_LIBDIR)"
7049 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7051 if test "$cf_cv_ld_rpath" = yes ; then
7052 LD_RPATH_OPT="-rpath"
7053 # EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
7055 cf_cv_rm_so_locs=yes
7057 sco3.2v5*) # (also uw2* and UW7) hops 13-Apr-98
7058 # tested with osr5.0.5
7059 if test "$GCC" != yes; then
7060 CC_SHARED_OPTS='-belf -KPIC'
7062 MK_SHARED_LIB='${LD} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
7063 if test "$cf_cv_ld_rpath" = yes ; then
7064 # only way is to set LD_RUN_PATH but no switch for it
7067 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7068 LINK_PROGS='LD_RUN_PATH=${libdir}'
7069 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
7072 # tested with SunOS 4.1.1 and gcc 2.7.0
7073 if test "$GCC" != yes; then
7074 CC_SHARED_OPTS='-KPIC'
7076 MK_SHARED_LIB='${LD} -assert pure-text -o $@'
7077 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7080 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
7081 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
7082 if test "$DFT_LWR_MODEL" = "shared" ; then
7083 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
7084 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7086 if test "$cf_cv_ld_rpath" = yes ; then
7088 EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
7091 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7092 if test "$cf_cv_shlib_version" = rel; then
7093 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
7095 cf_cv_shared_soname='`basename $@`'
7098 if test "$GCC" != yes; then
7099 cf_save_CFLAGS="$CFLAGS"
7100 for cf_shared_opts in -xcode=pic13 -xcode=pic32 -Kpic -KPIC -O
7102 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
7103 cat >conftest.$ac_ext <<_ACEOF
7104 #line 7104 "configure"
7105 #include "confdefs.h"
7115 rm -f conftest.$ac_objext
7116 if { (eval echo "$as_me:7116: \"$ac_compile\"") >&5
7117 (eval $ac_compile) 2>&5
7119 echo "$as_me:7119: \$? = $ac_status" >&5
7120 (exit $ac_status); } &&
7121 { ac_try='test -s conftest.$ac_objext'
7122 { (eval echo "$as_me:7122: \"$ac_try\"") >&5
7125 echo "$as_me:7125: \$? = $ac_status" >&5
7126 (exit $ac_status); }; }; then
7129 echo "$as_me: failed program was:" >&5
7130 cat conftest.$ac_ext >&5
7132 rm -f conftest.$ac_objext conftest.$ac_ext
7134 CFLAGS="$cf_save_CFLAGS"
7135 CC_SHARED_OPTS=$cf_shared_opts
7136 MK_SHARED_LIB='${CC} -dy -G -h '$cf_cv_shared_soname' -o $@'
7138 MK_SHARED_LIB='${CC} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
7142 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
7143 if test "$GCC" != yes; then
7144 CC_SHARED_OPTS='-KPIC'
7146 MK_SHARED_LIB='${LD} -d y -G -o $@'
7149 CC_SHARED_OPTS='unknown'
7150 MK_SHARED_LIB='echo unknown'
7154 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
7155 case "$cf_cv_shlib_version" in #(vi
7157 case "$MK_SHARED_LIB" in #(vi
7159 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
7162 { echo "$as_me:7162: WARNING: ignored --with-shlib-version" >&5
7163 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
7169 if test -n "$LD_RPATH_OPT" ; then
7170 echo "$as_me:7170: checking if we need a space after rpath option" >&5
7171 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
7172 cf_save_LIBS="$LIBS"
7173 LIBS="${LD_RPATH_OPT}$libdir $LIBS"
7174 cat >conftest.$ac_ext <<_ACEOF
7175 #line 7175 "configure"
7176 #include "confdefs.h"
7186 rm -f conftest.$ac_objext conftest$ac_exeext
7187 if { (eval echo "$as_me:7187: \"$ac_link\"") >&5
7188 (eval $ac_link) 2>&5
7190 echo "$as_me:7190: \$? = $ac_status" >&5
7191 (exit $ac_status); } &&
7192 { ac_try='test -s conftest$ac_exeext'
7193 { (eval echo "$as_me:7193: \"$ac_try\"") >&5
7196 echo "$as_me:7196: \$? = $ac_status" >&5
7197 (exit $ac_status); }; }; then
7200 echo "$as_me: failed program was:" >&5
7201 cat conftest.$ac_ext >&5
7204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7205 LIBS="$cf_save_LIBS"
7206 echo "$as_me:7206: result: $cf_rpath_space" >&5
7207 echo "${ECHO_T}$cf_rpath_space" >&6
7208 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
7209 MK_SHARED_LIB="$MK_SHARED_LIB $LD_RPATH_OPT\${libdir}"
7212 ###############################################################################
7214 case $cf_cv_system_name in
7215 os2*) PATH_SEPARATOR=';' ;;
7216 *) PATH_SEPARATOR=':' ;;
7219 ### use option --enable-broken-linker to force on use of broken-linker support
7220 echo "$as_me:7220: checking if you want broken-linker support code" >&5
7221 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
7223 # Check whether --enable-broken_linker or --disable-broken_linker was given.
7224 if test "${enable_broken_linker+set}" = set; then
7225 enableval="$enable_broken_linker"
7226 with_broken_linker=$enableval
7228 with_broken_linker=${BROKEN_LINKER-no}
7230 echo "$as_me:7230: result: $with_broken_linker" >&5
7231 echo "${ECHO_T}$with_broken_linker" >&6
7234 if test "$with_broken_linker" = yes ; then
7235 cat >>confdefs.h <<\EOF
7236 #define BROKEN_LINKER 1
7240 elif test "$DFT_LWR_MODEL" = shared ; then
7241 case $cf_cv_system_name in #(vi
7243 cat >>confdefs.h <<\EOF
7244 #define BROKEN_LINKER 1
7248 test -n "$verbose" && echo " cygwin linker is broken anyway" 1>&6
7250 echo "${as_me-configure}:7250: testing cygwin linker is broken anyway ..." 1>&5
7256 # Check to define _XOPEN_SOURCE "automatically"
7259 cf_POSIX_C_SOURCE=199506L
7262 case $host_os in #(vi
7264 cf_xopen_source="-D_ALL_SOURCE"
7267 cf_xopen_source="-D_APPLE_C_SOURCE"
7270 cf_xopen_source="-D_DARWIN_C_SOURCE"
7272 freebsd*|dragonfly*) #(vi
7273 # 5.x headers associate
7274 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
7275 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
7276 cf_POSIX_C_SOURCE=200112L
7278 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
7281 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
7284 cf_xopen_source="-D_HPUX_SOURCE"
7287 cf_xopen_source="-D_SGI_SOURCE"
7289 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
7291 echo "$as_me:7291: checking if we must define _GNU_SOURCE" >&5
7292 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
7293 if test "${cf_cv_gnu_source+set}" = set; then
7294 echo $ECHO_N "(cached) $ECHO_C" >&6
7297 cat >conftest.$ac_ext <<_ACEOF
7298 #line 7298 "configure"
7299 #include "confdefs.h"
7300 #include <sys/types.h>
7305 #ifndef _XOPEN_SOURCE
7312 rm -f conftest.$ac_objext
7313 if { (eval echo "$as_me:7313: \"$ac_compile\"") >&5
7314 (eval $ac_compile) 2>&5
7316 echo "$as_me:7316: \$? = $ac_status" >&5
7317 (exit $ac_status); } &&
7318 { ac_try='test -s conftest.$ac_objext'
7319 { (eval echo "$as_me:7319: \"$ac_try\"") >&5
7322 echo "$as_me:7322: \$? = $ac_status" >&5
7323 (exit $ac_status); }; }; then
7326 echo "$as_me: failed program was:" >&5
7327 cat conftest.$ac_ext >&5
7329 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
7330 cat >conftest.$ac_ext <<_ACEOF
7331 #line 7331 "configure"
7332 #include "confdefs.h"
7333 #include <sys/types.h>
7338 #ifdef _XOPEN_SOURCE
7345 rm -f conftest.$ac_objext
7346 if { (eval echo "$as_me:7346: \"$ac_compile\"") >&5
7347 (eval $ac_compile) 2>&5
7349 echo "$as_me:7349: \$? = $ac_status" >&5
7350 (exit $ac_status); } &&
7351 { ac_try='test -s conftest.$ac_objext'
7352 { (eval echo "$as_me:7352: \"$ac_try\"") >&5
7355 echo "$as_me:7355: \$? = $ac_status" >&5
7356 (exit $ac_status); }; }; then
7359 echo "$as_me: failed program was:" >&5
7360 cat conftest.$ac_ext >&5
7361 cf_cv_gnu_source=yes
7363 rm -f conftest.$ac_objext conftest.$ac_ext
7367 rm -f conftest.$ac_objext conftest.$ac_ext
7370 echo "$as_me:7370: result: $cf_cv_gnu_source" >&5
7371 echo "${ECHO_T}$cf_cv_gnu_source" >&6
7372 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
7376 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <arpa/inet.h>
7379 # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
7382 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
7385 cf_xopen_source="-D_OSF_SOURCE"
7388 cf_xopen_source="-D_QNX_SOURCE"
7391 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
7394 cf_xopen_source="-D__EXTENSIONS__"
7397 echo "$as_me:7397: checking if we should define _XOPEN_SOURCE" >&5
7398 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
7399 if test "${cf_cv_xopen_source+set}" = set; then
7400 echo $ECHO_N "(cached) $ECHO_C" >&6
7403 cat >conftest.$ac_ext <<_ACEOF
7404 #line 7404 "configure"
7405 #include "confdefs.h"
7406 #include <sys/types.h>
7411 #ifndef _XOPEN_SOURCE
7418 rm -f conftest.$ac_objext
7419 if { (eval echo "$as_me:7419: \"$ac_compile\"") >&5
7420 (eval $ac_compile) 2>&5
7422 echo "$as_me:7422: \$? = $ac_status" >&5
7423 (exit $ac_status); } &&
7424 { ac_try='test -s conftest.$ac_objext'
7425 { (eval echo "$as_me:7425: \"$ac_try\"") >&5
7428 echo "$as_me:7428: \$? = $ac_status" >&5
7429 (exit $ac_status); }; }; then
7430 cf_cv_xopen_source=no
7432 echo "$as_me: failed program was:" >&5
7433 cat conftest.$ac_ext >&5
7435 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
7436 cat >conftest.$ac_ext <<_ACEOF
7437 #line 7437 "configure"
7438 #include "confdefs.h"
7439 #include <sys/types.h>
7444 #ifdef _XOPEN_SOURCE
7451 rm -f conftest.$ac_objext
7452 if { (eval echo "$as_me:7452: \"$ac_compile\"") >&5
7453 (eval $ac_compile) 2>&5
7455 echo "$as_me:7455: \$? = $ac_status" >&5
7456 (exit $ac_status); } &&
7457 { ac_try='test -s conftest.$ac_objext'
7458 { (eval echo "$as_me:7458: \"$ac_try\"") >&5
7461 echo "$as_me:7461: \$? = $ac_status" >&5
7462 (exit $ac_status); }; }; then
7463 cf_cv_xopen_source=no
7465 echo "$as_me: failed program was:" >&5
7466 cat conftest.$ac_ext >&5
7467 cf_cv_xopen_source=$cf_XOPEN_SOURCE
7469 rm -f conftest.$ac_objext conftest.$ac_ext
7473 rm -f conftest.$ac_objext conftest.$ac_ext
7476 echo "$as_me:7476: result: $cf_cv_xopen_source" >&5
7477 echo "${ECHO_T}$cf_cv_xopen_source" >&6
7478 if test "$cf_cv_xopen_source" != no ; then
7480 CFLAGS=`echo "$CFLAGS" | \
7481 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7482 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
7484 CPPFLAGS=`echo "$CPPFLAGS" | \
7485 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7486 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
7488 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
7493 cf_new_extra_cppflags=
7495 for cf_add_cflags in $cf_temp_xopen_source
7497 case $cf_fix_cppflags in
7499 case $cf_add_cflags in #(vi
7500 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7501 case $cf_add_cflags in
7503 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7505 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7506 && test -z "${cf_tst_cflags}" \
7507 && cf_fix_cppflags=yes
7509 if test $cf_fix_cppflags = yes ; then
7510 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7512 elif test "${cf_tst_cflags}" = "\"'" ; then
7513 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7519 *$cf_add_cflags) #(vi
7522 case $cf_add_cflags in #(vi
7524 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7526 CPPFLAGS=`echo "$CPPFLAGS" | \
7527 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7528 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7532 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7537 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7542 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7544 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7546 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7547 && test -z "${cf_tst_cflags}" \
7548 && cf_fix_cppflags=no
7553 if test -n "$cf_new_cflags" ; then
7555 CFLAGS="$CFLAGS $cf_new_cflags"
7558 if test -n "$cf_new_cppflags" ; then
7560 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7563 if test -n "$cf_new_extra_cppflags" ; then
7565 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7570 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
7572 cf_save_CFLAGS="$CFLAGS"
7573 cf_save_CPPFLAGS="$CPPFLAGS"
7575 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
7576 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7577 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7579 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
7580 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
7581 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
7583 echo "$as_me:7583: checking if we should define _POSIX_C_SOURCE" >&5
7584 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
7585 if test "${cf_cv_posix_c_source+set}" = set; then
7586 echo $ECHO_N "(cached) $ECHO_C" >&6
7589 echo "${as_me-configure}:7589: testing if the symbol is already defined go no further ..." 1>&5
7591 cat >conftest.$ac_ext <<_ACEOF
7592 #line 7592 "configure"
7593 #include "confdefs.h"
7594 #include <sys/types.h>
7599 #ifndef _POSIX_C_SOURCE
7606 rm -f conftest.$ac_objext
7607 if { (eval echo "$as_me:7607: \"$ac_compile\"") >&5
7608 (eval $ac_compile) 2>&5
7610 echo "$as_me:7610: \$? = $ac_status" >&5
7611 (exit $ac_status); } &&
7612 { ac_try='test -s conftest.$ac_objext'
7613 { (eval echo "$as_me:7613: \"$ac_try\"") >&5
7616 echo "$as_me:7616: \$? = $ac_status" >&5
7617 (exit $ac_status); }; }; then
7618 cf_cv_posix_c_source=no
7620 echo "$as_me: failed program was:" >&5
7621 cat conftest.$ac_ext >&5
7622 cf_want_posix_source=no
7623 case .$cf_POSIX_C_SOURCE in #(vi
7625 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
7628 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
7629 cf_want_posix_source=yes
7632 cf_want_posix_source=yes
7635 if test "$cf_want_posix_source" = yes ; then
7636 cat >conftest.$ac_ext <<_ACEOF
7637 #line 7637 "configure"
7638 #include "confdefs.h"
7639 #include <sys/types.h>
7644 #ifdef _POSIX_SOURCE
7651 rm -f conftest.$ac_objext
7652 if { (eval echo "$as_me:7652: \"$ac_compile\"") >&5
7653 (eval $ac_compile) 2>&5
7655 echo "$as_me:7655: \$? = $ac_status" >&5
7656 (exit $ac_status); } &&
7657 { ac_try='test -s conftest.$ac_objext'
7658 { (eval echo "$as_me:7658: \"$ac_try\"") >&5
7661 echo "$as_me:7661: \$? = $ac_status" >&5
7662 (exit $ac_status); }; }; then
7665 echo "$as_me: failed program was:" >&5
7666 cat conftest.$ac_ext >&5
7667 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
7669 rm -f conftest.$ac_objext conftest.$ac_ext
7672 echo "${as_me-configure}:7672: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
7674 CFLAGS="$cf_trim_CFLAGS"
7675 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
7677 echo "${as_me-configure}:7677: testing if the second compile does not leave our definition intact error ..." 1>&5
7679 cat >conftest.$ac_ext <<_ACEOF
7680 #line 7680 "configure"
7681 #include "confdefs.h"
7682 #include <sys/types.h>
7687 #ifndef _POSIX_C_SOURCE
7694 rm -f conftest.$ac_objext
7695 if { (eval echo "$as_me:7695: \"$ac_compile\"") >&5
7696 (eval $ac_compile) 2>&5
7698 echo "$as_me:7698: \$? = $ac_status" >&5
7699 (exit $ac_status); } &&
7700 { ac_try='test -s conftest.$ac_objext'
7701 { (eval echo "$as_me:7701: \"$ac_try\"") >&5
7704 echo "$as_me:7704: \$? = $ac_status" >&5
7705 (exit $ac_status); }; }; then
7708 echo "$as_me: failed program was:" >&5
7709 cat conftest.$ac_ext >&5
7710 cf_cv_posix_c_source=no
7712 rm -f conftest.$ac_objext conftest.$ac_ext
7713 CFLAGS="$cf_save_CFLAGS"
7714 CPPFLAGS="$cf_save_CPPFLAGS"
7717 rm -f conftest.$ac_objext conftest.$ac_ext
7720 echo "$as_me:7720: result: $cf_cv_posix_c_source" >&5
7721 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
7723 if test "$cf_cv_posix_c_source" != no ; then
7724 CFLAGS="$cf_trim_CFLAGS"
7725 CPPFLAGS="$cf_trim_CPPFLAGS"
7730 cf_new_extra_cppflags=
7732 for cf_add_cflags in $cf_cv_posix_c_source
7734 case $cf_fix_cppflags in
7736 case $cf_add_cflags in #(vi
7737 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7738 case $cf_add_cflags in
7740 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7742 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7743 && test -z "${cf_tst_cflags}" \
7744 && cf_fix_cppflags=yes
7746 if test $cf_fix_cppflags = yes ; then
7747 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7749 elif test "${cf_tst_cflags}" = "\"'" ; then
7750 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7756 *$cf_add_cflags) #(vi
7759 case $cf_add_cflags in #(vi
7761 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7763 CPPFLAGS=`echo "$CPPFLAGS" | \
7764 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7765 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7769 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7774 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7779 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7781 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7783 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7784 && test -z "${cf_tst_cflags}" \
7785 && cf_fix_cppflags=no
7790 if test -n "$cf_new_cflags" ; then
7792 CFLAGS="$CFLAGS $cf_new_cflags"
7795 if test -n "$cf_new_cppflags" ; then
7797 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7800 if test -n "$cf_new_extra_cppflags" ; then
7802 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7810 if test -n "$cf_xopen_source" ; then
7815 cf_new_extra_cppflags=
7817 for cf_add_cflags in $cf_xopen_source
7819 case $cf_fix_cppflags in
7821 case $cf_add_cflags in #(vi
7822 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7823 case $cf_add_cflags in
7825 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7827 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7828 && test -z "${cf_tst_cflags}" \
7829 && cf_fix_cppflags=yes
7831 if test $cf_fix_cppflags = yes ; then
7832 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7834 elif test "${cf_tst_cflags}" = "\"'" ; then
7835 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7841 *$cf_add_cflags) #(vi
7844 case $cf_add_cflags in #(vi
7846 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7848 CPPFLAGS=`echo "$CPPFLAGS" | \
7849 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7850 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7854 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7859 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7864 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
7866 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7868 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
7869 && test -z "${cf_tst_cflags}" \
7870 && cf_fix_cppflags=no
7875 if test -n "$cf_new_cflags" ; then
7877 CFLAGS="$CFLAGS $cf_new_cflags"
7880 if test -n "$cf_new_cppflags" ; then
7882 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
7885 if test -n "$cf_new_extra_cppflags" ; then
7887 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
7892 # Check whether --enable-largefile or --disable-largefile was given.
7893 if test "${enable_largefile+set}" = set; then
7894 enableval="$enable_largefile"
7897 if test "$enable_largefile" != no; then
7899 echo "$as_me:7899: checking for special C compiler options needed for large files" >&5
7900 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
7901 if test "${ac_cv_sys_largefile_CC+set}" = set; then
7902 echo $ECHO_N "(cached) $ECHO_C" >&6
7904 ac_cv_sys_largefile_CC=no
7905 if test "$GCC" != yes; then
7908 # IRIX 6.2 and later do not support large files by default,
7909 # so use the C compiler's -n32 option if that helps.
7910 cat >conftest.$ac_ext <<_ACEOF
7911 #line 7911 "configure"
7912 #include "confdefs.h"
7913 #include <sys/types.h>
7914 /* Check that off_t can represent 2**63 - 1 correctly.
7915 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7916 since some C++ compilers masquerading as C compilers
7917 incorrectly reject 9223372036854775807. */
7918 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7919 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7920 && LARGE_OFF_T % 2147483647 == 1)
7930 rm -f conftest.$ac_objext
7931 if { (eval echo "$as_me:7931: \"$ac_compile\"") >&5
7932 (eval $ac_compile) 2>&5
7934 echo "$as_me:7934: \$? = $ac_status" >&5
7935 (exit $ac_status); } &&
7936 { ac_try='test -s conftest.$ac_objext'
7937 { (eval echo "$as_me:7937: \"$ac_try\"") >&5
7940 echo "$as_me:7940: \$? = $ac_status" >&5
7941 (exit $ac_status); }; }; then
7944 echo "$as_me: failed program was:" >&5
7945 cat conftest.$ac_ext >&5
7947 rm -f conftest.$ac_objext
7949 rm -f conftest.$ac_objext
7950 if { (eval echo "$as_me:7950: \"$ac_compile\"") >&5
7951 (eval $ac_compile) 2>&5
7953 echo "$as_me:7953: \$? = $ac_status" >&5
7954 (exit $ac_status); } &&
7955 { ac_try='test -s conftest.$ac_objext'
7956 { (eval echo "$as_me:7956: \"$ac_try\"") >&5
7959 echo "$as_me:7959: \$? = $ac_status" >&5
7960 (exit $ac_status); }; }; then
7961 ac_cv_sys_largefile_CC=' -n32'; break
7963 echo "$as_me: failed program was:" >&5
7964 cat conftest.$ac_ext >&5
7966 rm -f conftest.$ac_objext
7970 rm -f conftest.$ac_ext
7973 echo "$as_me:7973: result: $ac_cv_sys_largefile_CC" >&5
7974 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
7975 if test "$ac_cv_sys_largefile_CC" != no; then
7976 CC=$CC$ac_cv_sys_largefile_CC
7979 echo "$as_me:7979: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7980 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
7981 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7982 echo $ECHO_N "(cached) $ECHO_C" >&6
7985 ac_cv_sys_file_offset_bits=no
7986 cat >conftest.$ac_ext <<_ACEOF
7987 #line 7987 "configure"
7988 #include "confdefs.h"
7989 #include <sys/types.h>
7990 /* Check that off_t can represent 2**63 - 1 correctly.
7991 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7992 since some C++ compilers masquerading as C compilers
7993 incorrectly reject 9223372036854775807. */
7994 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7995 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7996 && LARGE_OFF_T % 2147483647 == 1)
8006 rm -f conftest.$ac_objext
8007 if { (eval echo "$as_me:8007: \"$ac_compile\"") >&5
8008 (eval $ac_compile) 2>&5
8010 echo "$as_me:8010: \$? = $ac_status" >&5
8011 (exit $ac_status); } &&
8012 { ac_try='test -s conftest.$ac_objext'
8013 { (eval echo "$as_me:8013: \"$ac_try\"") >&5
8016 echo "$as_me:8016: \$? = $ac_status" >&5
8017 (exit $ac_status); }; }; then
8020 echo "$as_me: failed program was:" >&5
8021 cat conftest.$ac_ext >&5
8023 rm -f conftest.$ac_objext conftest.$ac_ext
8024 cat >conftest.$ac_ext <<_ACEOF
8025 #line 8025 "configure"
8026 #include "confdefs.h"
8027 #define _FILE_OFFSET_BITS 64
8028 #include <sys/types.h>
8029 /* Check that off_t can represent 2**63 - 1 correctly.
8030 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8031 since some C++ compilers masquerading as C compilers
8032 incorrectly reject 9223372036854775807. */
8033 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8034 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8035 && LARGE_OFF_T % 2147483647 == 1)
8045 rm -f conftest.$ac_objext
8046 if { (eval echo "$as_me:8046: \"$ac_compile\"") >&5
8047 (eval $ac_compile) 2>&5
8049 echo "$as_me:8049: \$? = $ac_status" >&5
8050 (exit $ac_status); } &&
8051 { ac_try='test -s conftest.$ac_objext'
8052 { (eval echo "$as_me:8052: \"$ac_try\"") >&5
8055 echo "$as_me:8055: \$? = $ac_status" >&5
8056 (exit $ac_status); }; }; then
8057 ac_cv_sys_file_offset_bits=64; break
8059 echo "$as_me: failed program was:" >&5
8060 cat conftest.$ac_ext >&5
8062 rm -f conftest.$ac_objext conftest.$ac_ext
8066 echo "$as_me:8066: result: $ac_cv_sys_file_offset_bits" >&5
8067 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
8068 if test "$ac_cv_sys_file_offset_bits" != no; then
8070 cat >>confdefs.h <<EOF
8071 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8076 echo "$as_me:8076: checking for _LARGE_FILES value needed for large files" >&5
8077 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
8078 if test "${ac_cv_sys_large_files+set}" = set; then
8079 echo $ECHO_N "(cached) $ECHO_C" >&6
8082 ac_cv_sys_large_files=no
8083 cat >conftest.$ac_ext <<_ACEOF
8084 #line 8084 "configure"
8085 #include "confdefs.h"
8086 #include <sys/types.h>
8087 /* Check that off_t can represent 2**63 - 1 correctly.
8088 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8089 since some C++ compilers masquerading as C compilers
8090 incorrectly reject 9223372036854775807. */
8091 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8092 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8093 && LARGE_OFF_T % 2147483647 == 1)
8103 rm -f conftest.$ac_objext
8104 if { (eval echo "$as_me:8104: \"$ac_compile\"") >&5
8105 (eval $ac_compile) 2>&5
8107 echo "$as_me:8107: \$? = $ac_status" >&5
8108 (exit $ac_status); } &&
8109 { ac_try='test -s conftest.$ac_objext'
8110 { (eval echo "$as_me:8110: \"$ac_try\"") >&5
8113 echo "$as_me:8113: \$? = $ac_status" >&5
8114 (exit $ac_status); }; }; then
8117 echo "$as_me: failed program was:" >&5
8118 cat conftest.$ac_ext >&5
8120 rm -f conftest.$ac_objext conftest.$ac_ext
8121 cat >conftest.$ac_ext <<_ACEOF
8122 #line 8122 "configure"
8123 #include "confdefs.h"
8124 #define _LARGE_FILES 1
8125 #include <sys/types.h>
8126 /* Check that off_t can represent 2**63 - 1 correctly.
8127 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8128 since some C++ compilers masquerading as C compilers
8129 incorrectly reject 9223372036854775807. */
8130 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8131 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8132 && LARGE_OFF_T % 2147483647 == 1)
8142 rm -f conftest.$ac_objext
8143 if { (eval echo "$as_me:8143: \"$ac_compile\"") >&5
8144 (eval $ac_compile) 2>&5
8146 echo "$as_me:8146: \$? = $ac_status" >&5
8147 (exit $ac_status); } &&
8148 { ac_try='test -s conftest.$ac_objext'
8149 { (eval echo "$as_me:8149: \"$ac_try\"") >&5
8152 echo "$as_me:8152: \$? = $ac_status" >&5
8153 (exit $ac_status); }; }; then
8154 ac_cv_sys_large_files=1; break
8156 echo "$as_me: failed program was:" >&5
8157 cat conftest.$ac_ext >&5
8159 rm -f conftest.$ac_objext conftest.$ac_ext
8163 echo "$as_me:8163: result: $ac_cv_sys_large_files" >&5
8164 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
8165 if test "$ac_cv_sys_large_files" != no; then
8167 cat >>confdefs.h <<EOF
8168 #define _LARGE_FILES $ac_cv_sys_large_files
8175 if test "$enable_largefile" != no ; then
8176 echo "$as_me:8176: checking for _LARGEFILE_SOURCE value needed for large files" >&5
8177 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
8178 if test "${ac_cv_sys_largefile_source+set}" = set; then
8179 echo $ECHO_N "(cached) $ECHO_C" >&6
8182 ac_cv_sys_largefile_source=no
8183 cat >conftest.$ac_ext <<_ACEOF
8184 #line 8184 "configure"
8185 #include "confdefs.h"
8195 rm -f conftest.$ac_objext
8196 if { (eval echo "$as_me:8196: \"$ac_compile\"") >&5
8197 (eval $ac_compile) 2>&5
8199 echo "$as_me:8199: \$? = $ac_status" >&5
8200 (exit $ac_status); } &&
8201 { ac_try='test -s conftest.$ac_objext'
8202 { (eval echo "$as_me:8202: \"$ac_try\"") >&5
8205 echo "$as_me:8205: \$? = $ac_status" >&5
8206 (exit $ac_status); }; }; then
8209 echo "$as_me: failed program was:" >&5
8210 cat conftest.$ac_ext >&5
8212 rm -f conftest.$ac_objext conftest.$ac_ext
8213 cat >conftest.$ac_ext <<_ACEOF
8214 #line 8214 "configure"
8215 #include "confdefs.h"
8216 #define _LARGEFILE_SOURCE 1
8226 rm -f conftest.$ac_objext
8227 if { (eval echo "$as_me:8227: \"$ac_compile\"") >&5
8228 (eval $ac_compile) 2>&5
8230 echo "$as_me:8230: \$? = $ac_status" >&5
8231 (exit $ac_status); } &&
8232 { ac_try='test -s conftest.$ac_objext'
8233 { (eval echo "$as_me:8233: \"$ac_try\"") >&5
8236 echo "$as_me:8236: \$? = $ac_status" >&5
8237 (exit $ac_status); }; }; then
8238 ac_cv_sys_largefile_source=1; break
8240 echo "$as_me: failed program was:" >&5
8241 cat conftest.$ac_ext >&5
8243 rm -f conftest.$ac_objext conftest.$ac_ext
8247 echo "$as_me:8247: result: $ac_cv_sys_largefile_source" >&5
8248 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
8249 if test "$ac_cv_sys_largefile_source" != no; then
8251 cat >>confdefs.h <<EOF
8252 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8258 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
8259 # in glibc 2.1.3, but that breaks too many other things.
8260 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
8261 echo "$as_me:8261: checking for fseeko" >&5
8262 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
8263 if test "${ac_cv_func_fseeko+set}" = set; then
8264 echo $ECHO_N "(cached) $ECHO_C" >&6
8266 cat >conftest.$ac_ext <<_ACEOF
8267 #line 8267 "configure"
8268 #include "confdefs.h"
8273 return fseeko && fseeko (stdin, 0, 0);
8278 rm -f conftest.$ac_objext conftest$ac_exeext
8279 if { (eval echo "$as_me:8279: \"$ac_link\"") >&5
8280 (eval $ac_link) 2>&5
8282 echo "$as_me:8282: \$? = $ac_status" >&5
8283 (exit $ac_status); } &&
8284 { ac_try='test -s conftest$ac_exeext'
8285 { (eval echo "$as_me:8285: \"$ac_try\"") >&5
8288 echo "$as_me:8288: \$? = $ac_status" >&5
8289 (exit $ac_status); }; }; then
8290 ac_cv_func_fseeko=yes
8292 echo "$as_me: failed program was:" >&5
8293 cat conftest.$ac_ext >&5
8294 ac_cv_func_fseeko=no
8296 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8298 echo "$as_me:8298: result: $ac_cv_func_fseeko" >&5
8299 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
8300 if test $ac_cv_func_fseeko = yes; then
8302 cat >>confdefs.h <<\EOF
8303 #define HAVE_FSEEKO 1
8308 # Normally we would collect these definitions in the config.h,
8309 # but (like _XOPEN_SOURCE), some environments rely on having these
8310 # defined before any of the system headers are included. Another
8311 # case comes up with C++, e.g., on AIX the compiler compiles the
8312 # header files by themselves before looking at the body files it is
8313 # told to compile. For ncurses, those header files do not include
8315 test "$ac_cv_sys_large_files" != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES "
8316 test "$ac_cv_sys_largefile_source" != no && CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE "
8317 test "$ac_cv_sys_file_offset_bits" != no && CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits "
8319 echo "$as_me:8319: checking whether to use struct dirent64" >&5
8320 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
8321 if test "${cf_cv_struct_dirent64+set}" = set; then
8322 echo $ECHO_N "(cached) $ECHO_C" >&6
8325 cat >conftest.$ac_ext <<_ACEOF
8326 #line 8326 "configure"
8327 #include "confdefs.h"
8329 #include <sys/types.h>
8336 /* if transitional largefile support is setup, this is true */
8337 extern struct dirent64 * readdir(DIR *);
8338 struct dirent64 *x = readdir((DIR *)0);
8339 struct dirent *y = readdir((DIR *)0);
8346 rm -f conftest.$ac_objext
8347 if { (eval echo "$as_me:8347: \"$ac_compile\"") >&5
8348 (eval $ac_compile) 2>&5
8350 echo "$as_me:8350: \$? = $ac_status" >&5
8351 (exit $ac_status); } &&
8352 { ac_try='test -s conftest.$ac_objext'
8353 { (eval echo "$as_me:8353: \"$ac_try\"") >&5
8356 echo "$as_me:8356: \$? = $ac_status" >&5
8357 (exit $ac_status); }; }; then
8358 cf_cv_struct_dirent64=yes
8360 echo "$as_me: failed program was:" >&5
8361 cat conftest.$ac_ext >&5
8362 cf_cv_struct_dirent64=no
8364 rm -f conftest.$ac_objext conftest.$ac_ext
8367 echo "$as_me:8367: result: $cf_cv_struct_dirent64" >&5
8368 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
8369 test "$cf_cv_struct_dirent64" = yes && cat >>confdefs.h <<\EOF
8370 #define HAVE_STRUCT_DIRENT64 1
8375 ### Enable compiling-in rcs id's
8376 echo "$as_me:8376: checking if RCS identifiers should be compiled-in" >&5
8377 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
8379 # Check whether --with-rcs-ids or --without-rcs-ids was given.
8380 if test "${with_rcs_ids+set}" = set; then
8381 withval="$with_rcs_ids"
8382 with_rcs_ids=$withval
8386 echo "$as_me:8386: result: $with_rcs_ids" >&5
8387 echo "${ECHO_T}$with_rcs_ids" >&6
8388 test "$with_rcs_ids" = yes && cat >>confdefs.h <<\EOF
8389 #define USE_RCS_IDS 1
8392 ###############################################################################
8394 ### Note that some functions (such as const) are normally disabled anyway.
8395 echo "$as_me:8395: checking if you want to build with function extensions" >&5
8396 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
8398 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
8399 if test "${enable_ext_funcs+set}" = set; then
8400 enableval="$enable_ext_funcs"
8401 with_ext_funcs=$enableval
8405 echo "$as_me:8405: result: $with_ext_funcs" >&5
8406 echo "${ECHO_T}$with_ext_funcs" >&6
8407 if test "$with_ext_funcs" = yes ; then
8409 cat >>confdefs.h <<\EOF
8410 #define HAVE_USE_DEFAULT_COLORS 1
8413 cat >>confdefs.h <<\EOF
8414 #define NCURSES_EXT_FUNCS 1
8421 ### use option --enable-const to turn on use of const beyond that in XSI.
8422 echo "$as_me:8422: checking for extended use of const keyword" >&5
8423 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
8425 # Check whether --enable-const or --disable-const was given.
8426 if test "${enable_const+set}" = set; then
8427 enableval="$enable_const"
8428 with_ext_const=$enableval
8432 echo "$as_me:8432: result: $with_ext_const" >&5
8433 echo "${ECHO_T}$with_ext_const" >&6
8434 NCURSES_CONST='/*nothing*/'
8435 if test "$with_ext_const" = yes ; then
8439 ###############################################################################
8440 # These options are relatively safe to experiment with.
8442 echo "$as_me:8442: checking if you want all development code" >&5
8443 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
8445 # Check whether --with-develop or --without-develop was given.
8446 if test "${with_develop+set}" = set; then
8447 withval="$with_develop"
8448 with_develop=$withval
8452 echo "$as_me:8452: result: $with_develop" >&5
8453 echo "${ECHO_T}$with_develop" >&6
8455 ###############################################################################
8456 # These are just experimental, probably should not be in a package:
8458 # This is still experimental (20080329), but should ultimately be moved to
8459 # the script-block --with-normal, etc.
8461 echo "$as_me:8461: checking if you want to link with the pthread library" >&5
8462 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
8464 # Check whether --with-pthread or --without-pthread was given.
8465 if test "${with_pthread+set}" = set; then
8466 withval="$with_pthread"
8467 with_pthread=$withval
8471 echo "$as_me:8471: result: $with_pthread" >&5
8472 echo "${ECHO_T}$with_pthread" >&6
8474 if test "$with_pthread" != no ; then
8475 echo "$as_me:8475: checking for pthread.h" >&5
8476 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
8477 if test "${ac_cv_header_pthread_h+set}" = set; then
8478 echo $ECHO_N "(cached) $ECHO_C" >&6
8480 cat >conftest.$ac_ext <<_ACEOF
8481 #line 8481 "configure"
8482 #include "confdefs.h"
8483 #include <pthread.h>
8485 if { (eval echo "$as_me:8485: \"$ac_cpp conftest.$ac_ext\"") >&5
8486 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8488 egrep -v '^ *\+' conftest.er1 >conftest.err
8490 cat conftest.err >&5
8491 echo "$as_me:8491: \$? = $ac_status" >&5
8492 (exit $ac_status); } >/dev/null; then
8493 if test -s conftest.err; then
8494 ac_cpp_err=$ac_c_preproc_warn_flag
8501 if test -z "$ac_cpp_err"; then
8502 ac_cv_header_pthread_h=yes
8504 echo "$as_me: failed program was:" >&5
8505 cat conftest.$ac_ext >&5
8506 ac_cv_header_pthread_h=no
8508 rm -f conftest.err conftest.$ac_ext
8510 echo "$as_me:8510: result: $ac_cv_header_pthread_h" >&5
8511 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
8512 if test $ac_cv_header_pthread_h = yes; then
8514 cat >>confdefs.h <<\EOF
8515 #define HAVE_PTHREADS_H 1
8518 echo "$as_me:8518: checking if we can link with the pthread library" >&5
8519 echo $ECHO_N "checking if we can link with the pthread library... $ECHO_C" >&6
8520 cf_save_LIBS="$LIBS"
8521 LIBS="-lpthread $LIBS"
8522 cat >conftest.$ac_ext <<_ACEOF
8523 #line 8523 "configure"
8524 #include "confdefs.h"
8526 #include <pthread.h>
8532 int rc = pthread_create(0,0,0,0);
8538 rm -f conftest.$ac_objext conftest$ac_exeext
8539 if { (eval echo "$as_me:8539: \"$ac_link\"") >&5
8540 (eval $ac_link) 2>&5
8542 echo "$as_me:8542: \$? = $ac_status" >&5
8543 (exit $ac_status); } &&
8544 { ac_try='test -s conftest$ac_exeext'
8545 { (eval echo "$as_me:8545: \"$ac_try\"") >&5
8548 echo "$as_me:8548: \$? = $ac_status" >&5
8549 (exit $ac_status); }; }; then
8552 echo "$as_me: failed program was:" >&5
8553 cat conftest.$ac_ext >&5
8556 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8557 LIBS="$cf_save_LIBS"
8558 echo "$as_me:8558: result: $with_pthread" >&5
8559 echo "${ECHO_T}$with_pthread" >&6
8561 if test "$with_pthread" = yes ; then
8562 LIBS="-lpthread $LIBS"
8563 cat >>confdefs.h <<\EOF
8564 #define HAVE_LIBPTHREADS 1
8568 { { echo "$as_me:8568: error: Cannot link with pthread library" >&5
8569 echo "$as_me: error: Cannot link with pthread library" >&2;}
8570 { (exit 1); exit 1; }; }
8577 echo "$as_me:8577: checking if you want to use weak-symbols for pthreads" >&5
8578 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
8580 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
8581 if test "${enable_weak_symbols+set}" = set; then
8582 enableval="$enable_weak_symbols"
8583 use_weak_symbols=$withval
8587 echo "$as_me:8587: result: $use_weak_symbols" >&5
8588 echo "${ECHO_T}$use_weak_symbols" >&6
8589 if test "$use_weak_symbols" = yes ; then
8591 echo "$as_me:8591: checking if $CC supports weak symbols" >&5
8592 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
8593 if test "${cf_cv_weak_symbols+set}" = set; then
8594 echo $ECHO_N "(cached) $ECHO_C" >&6
8597 cat >conftest.$ac_ext <<_ACEOF
8598 #line 8598 "configure"
8599 #include "confdefs.h"
8606 #if defined(__GNUC__)
8607 # if defined __USE_ISOC99
8608 # define _cat_pragma(exp) _Pragma(#exp)
8609 # define _weak_pragma(exp) _cat_pragma(weak name)
8611 # define _weak_pragma(exp)
8613 # define _declare(name) __extension__ extern __typeof__(name) name
8614 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
8623 rm -f conftest.$ac_objext
8624 if { (eval echo "$as_me:8624: \"$ac_compile\"") >&5
8625 (eval $ac_compile) 2>&5
8627 echo "$as_me:8627: \$? = $ac_status" >&5
8628 (exit $ac_status); } &&
8629 { ac_try='test -s conftest.$ac_objext'
8630 { (eval echo "$as_me:8630: \"$ac_try\"") >&5
8633 echo "$as_me:8633: \$? = $ac_status" >&5
8634 (exit $ac_status); }; }; then
8635 cf_cv_weak_symbols=yes
8637 echo "$as_me: failed program was:" >&5
8638 cat conftest.$ac_ext >&5
8639 cf_cv_weak_symbols=no
8641 rm -f conftest.$ac_objext conftest.$ac_ext
8644 echo "$as_me:8644: result: $cf_cv_weak_symbols" >&5
8645 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
8648 cf_cv_weak_symbols=no
8651 if test $cf_cv_weak_symbols = yes ; then
8652 cat >>confdefs.h <<\EOF
8653 #define USE_WEAK_SYMBOLS 1
8659 if test "$with_pthread" = "yes" ; then
8660 cat >>confdefs.h <<\EOF
8661 #define USE_PTHREADS 1
8664 enable_reentrant=yes
8665 if test $cf_cv_weak_symbols = yes ; then
8670 # Reentrant code has to be opaque; there's little advantage to making ncurses
8671 # opaque outside of that, so there is no --enable-opaque option. We can use
8672 # this option without --with-pthreads, but this will be always set for
8674 echo "$as_me:8674: checking if you want experimental reentrant code" >&5
8675 echo $ECHO_N "checking if you want experimental reentrant code... $ECHO_C" >&6
8677 # Check whether --enable-reentrant or --disable-reentrant was given.
8678 if test "${enable_reentrant+set}" = set; then
8679 enableval="$enable_reentrant"
8680 with_reentrant=$enableval
8684 echo "$as_me:8684: result: $with_reentrant" >&5
8685 echo "${ECHO_T}$with_reentrant" >&6
8686 if test "$with_reentrant" = yes ; then
8687 cf_cv_enable_reentrant=1
8688 if test $cf_cv_weak_symbols = yes ; then
8690 # remove pthread library from $LIBS
8691 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
8694 LIB_SUFFIX="t${LIB_SUFFIX}"
8696 cat >>confdefs.h <<\EOF
8697 #define USE_REENTRANT 1
8701 cf_cv_enable_reentrant=0
8704 ### Allow using a different wrap-prefix
8705 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
8706 echo "$as_me:8706: checking for prefix used to wrap public variables" >&5
8707 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
8709 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
8710 if test "${with_wrap_prefix+set}" = set; then
8711 withval="$with_wrap_prefix"
8712 NCURSES_WRAP_PREFIX=$withval
8714 NCURSES_WRAP_PREFIX=_nc_
8716 echo "$as_me:8716: result: $NCURSES_WRAP_PREFIX" >&5
8717 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
8719 NCURSES_WRAP_PREFIX=_nc_
8722 cat >>confdefs.h <<EOF
8723 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
8726 ###############################################################################
8728 ### use option --disable-echo to suppress full display compiling commands
8729 echo "$as_me:8729: checking if you want to display full commands during build" >&5
8730 echo $ECHO_N "checking if you want to display full commands during build... $ECHO_C" >&6
8732 # Check whether --enable-echo or --disable-echo was given.
8733 if test "${enable_echo+set}" = set; then
8734 enableval="$enable_echo"
8735 with_echo=$enableval
8739 if test "$with_echo" = yes; then
8742 ECHO_LINK='@ echo linking $@ ... ;'
8744 echo "$as_me:8744: result: $with_echo" >&5
8745 echo "${ECHO_T}$with_echo" >&6
8747 ### use option --enable-warnings to turn on all gcc warnings
8748 echo "$as_me:8748: checking if you want to see compiler warnings" >&5
8749 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
8751 # Check whether --enable-warnings or --disable-warnings was given.
8752 if test "${enable_warnings+set}" = set; then
8753 enableval="$enable_warnings"
8754 with_warnings=$enableval
8756 echo "$as_me:8756: result: $with_warnings" >&5
8757 echo "${ECHO_T}$with_warnings" >&6
8759 if test "x$with_warnings" = "xyes"; then
8760 ADAFLAGS="$ADAFLAGS -gnatg"
8764 if test "$GCC" = yes ; then
8767 echo "$as_me:8767: checking if this is really Intel C compiler" >&5
8768 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
8769 cf_save_CFLAGS="$CFLAGS"
8770 CFLAGS="$CFLAGS -no-gcc"
8771 cat >conftest.$ac_ext <<_ACEOF
8772 #line 8772 "configure"
8773 #include "confdefs.h"
8779 #ifdef __INTEL_COMPILER
8788 rm -f conftest.$ac_objext
8789 if { (eval echo "$as_me:8789: \"$ac_compile\"") >&5
8790 (eval $ac_compile) 2>&5
8792 echo "$as_me:8792: \$? = $ac_status" >&5
8793 (exit $ac_status); } &&
8794 { ac_try='test -s conftest.$ac_objext'
8795 { (eval echo "$as_me:8795: \"$ac_try\"") >&5
8798 echo "$as_me:8798: \$? = $ac_status" >&5
8799 (exit $ac_status); }; }; then
8801 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
8804 echo "$as_me: failed program was:" >&5
8805 cat conftest.$ac_ext >&5
8807 rm -f conftest.$ac_objext conftest.$ac_ext
8808 CFLAGS="$cf_save_CFLAGS"
8809 echo "$as_me:8809: result: $INTEL_COMPILER" >&5
8810 echo "${ECHO_T}$INTEL_COMPILER" >&6
8815 cat > conftest.$ac_ext <<EOF
8816 #line 8816 "${as_me-configure}"
8817 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
8820 if test "$INTEL_COMPILER" = yes
8822 # The "-wdXXX" options suppress warnings:
8823 # remark #1419: external declaration in primary source file
8824 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
8825 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
8826 # remark #193: zero used for undefined preprocessing identifier
8827 # remark #593: variable "curs_sb_left_arrow" was set but never used
8828 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
8829 # remark #869: parameter "tw" was never referenced
8830 # remark #981: operands are evaluated in unspecified order
8831 # warning #279: controlling expression is constant
8833 { echo "$as_me:8833: checking for $CC warning options..." >&5
8834 echo "$as_me: checking for $CC warning options..." >&6;}
8835 cf_save_CFLAGS="$CFLAGS"
8836 EXTRA_CFLAGS="-Wall"
8848 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
8849 if { (eval echo "$as_me:8849: \"$ac_compile\"") >&5
8850 (eval $ac_compile) 2>&5
8852 echo "$as_me:8852: \$? = $ac_status" >&5
8853 (exit $ac_status); }; then
8854 test -n "$verbose" && echo "$as_me:8854: result: ... -$cf_opt" >&5
8855 echo "${ECHO_T}... -$cf_opt" >&6
8856 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
8859 CFLAGS="$cf_save_CFLAGS"
8861 elif test "$GCC" = yes
8863 { echo "$as_me:8863: checking for $CC warning options..." >&5
8864 echo "$as_me: checking for $CC warning options..." >&6;}
8865 cf_save_CFLAGS="$CFLAGS"
8866 EXTRA_CFLAGS="-W -Wall"
8868 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
8870 Wbad-function-cast \
8874 Wmissing-declarations \
8875 Wmissing-prototypes \
8879 Wstrict-prototypes \
8880 Wundef $cf_warn_CONST Wdeclaration-after-statement Wextra Wno-unknown-pragmas Wswitch-enum
8882 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
8883 if { (eval echo "$as_me:8883: \"$ac_compile\"") >&5
8884 (eval $ac_compile) 2>&5
8886 echo "$as_me:8886: \$? = $ac_status" >&5
8887 (exit $ac_status); }; then
8888 test -n "$verbose" && echo "$as_me:8888: result: ... -$cf_opt" >&5
8889 echo "${ECHO_T}... -$cf_opt" >&6
8890 case $cf_opt in #(vi
8892 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
8895 case $GCC_VERSION in
8897 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
8899 echo "${as_me-configure}:8899: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
8905 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
8908 CFLAGS="$cf_save_CFLAGS"
8914 if test "$GCC" = yes
8916 cat > conftest.i <<EOF
8918 #define GCC_PRINTF 0
8923 #ifndef GCC_NORETURN
8924 #define GCC_NORETURN /* nothing */
8927 #define GCC_UNUSED /* nothing */
8930 if test "$GCC" = yes
8932 { echo "$as_me:8932: checking for $CC __attribute__ directives..." >&5
8933 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
8934 cat > conftest.$ac_ext <<EOF
8935 #line 8935 "${as_me-configure}"
8936 #include "confdefs.h"
8937 #include "conftest.h"
8938 #include "conftest.i"
8940 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
8942 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
8945 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
8947 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
8949 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
8950 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
8951 extern void foo(void) GCC_NORETURN;
8952 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
8954 cf_printf_attribute=no
8955 cf_scanf_attribute=no
8956 for cf_attribute in scanf printf unused noreturn
8959 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
8961 cf_directive="__attribute__(($cf_attribute))"
8962 echo "checking for $CC $cf_directive" 1>&5
8964 case $cf_attribute in #(vi
8966 cf_printf_attribute=yes
8967 cat >conftest.h <<EOF
8968 #define GCC_$cf_ATTRIBUTE 1
8972 cf_scanf_attribute=yes
8973 cat >conftest.h <<EOF
8974 #define GCC_$cf_ATTRIBUTE 1
8978 cat >conftest.h <<EOF
8979 #define GCC_$cf_ATTRIBUTE $cf_directive
8984 if { (eval echo "$as_me:8984: \"$ac_compile\"") >&5
8985 (eval $ac_compile) 2>&5
8987 echo "$as_me:8987: \$? = $ac_status" >&5
8988 (exit $ac_status); }; then
8989 test -n "$verbose" && echo "$as_me:8989: result: ... $cf_attribute" >&5
8990 echo "${ECHO_T}... $cf_attribute" >&6
8991 cat conftest.h >>confdefs.h
8992 case $cf_attribute in #(vi
8994 if test "$cf_printf_attribute" = no ; then
8995 cat >>confdefs.h <<EOF
8996 #define GCC_PRINTFLIKE(fmt,var) /* nothing */
8999 cat >>confdefs.h <<EOF
9000 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
9005 if test "$cf_scanf_attribute" = no ; then
9006 cat >>confdefs.h <<EOF
9007 #define GCC_SCANFLIKE(fmt,var) /* nothing */
9010 cat >>confdefs.h <<EOF
9011 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
9019 fgrep define conftest.i >>confdefs.h
9024 ### use option --enable-assertions to turn on generation of assertion code
9025 echo "$as_me:9025: checking if you want to enable runtime assertions" >&5
9026 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
9028 # Check whether --enable-assertions or --disable-assertions was given.
9029 if test "${enable_assertions+set}" = set; then
9030 enableval="$enable_assertions"
9031 with_assertions=$enableval
9035 echo "$as_me:9035: result: $with_assertions" >&5
9036 echo "${ECHO_T}$with_assertions" >&6
9039 if test "$with_assertions" = no
9041 cat >>confdefs.h <<\EOF
9045 CPPFLAGS="$CPPFLAGS -DNDEBUG"
9047 ADAFLAGS="$ADAFLAGS -gnata"
9051 ### use option --disable-leaks to suppress "permanent" leaks, for testing
9052 cat >>confdefs.h <<\EOF
9053 #define HAVE_NC_ALLOC_H 1
9056 ### use option --enable-expanded to generate certain macros as functions
9058 # Check whether --enable-expanded or --disable-expanded was given.
9059 if test "${enable_expanded+set}" = set; then
9060 enableval="$enable_expanded"
9061 test "$enableval" = yes && cat >>confdefs.h <<\EOF
9062 #define NCURSES_EXPANDED 1
9067 ### use option --disable-macros to suppress macros in favor of functions
9069 # Check whether --enable-macros or --disable-macros was given.
9070 if test "${enable_macros+set}" = set; then
9071 enableval="$enable_macros"
9072 test "$enableval" = no && cat >>confdefs.h <<\EOF
9073 #define NCURSES_NOMACROS 1
9078 # Normally we only add trace() to the debug-library. Allow this to be
9079 # extended to all models of the ncurses library:
9081 case "$CFLAGS $CPPFLAGS" in
9087 echo "$as_me:9087: checking whether to add trace feature to all models" >&5
9088 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
9090 # Check whether --with-trace or --without-trace was given.
9091 if test "${with_trace+set}" = set; then
9092 withval="$with_trace"
9093 cf_with_trace=$withval
9095 cf_with_trace=$cf_all_traces
9097 echo "$as_me:9097: result: $cf_with_trace" >&5
9098 echo "${ECHO_T}$cf_with_trace" >&6
9100 if test "$cf_with_trace" = yes ; then
9106 cf_new_extra_cppflags=
9108 for cf_add_cflags in -DTRACE
9110 case $cf_fix_cppflags in
9112 case $cf_add_cflags in #(vi
9113 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
9114 case $cf_add_cflags in
9116 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9118 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
9119 && test -z "${cf_tst_cflags}" \
9120 && cf_fix_cppflags=yes
9122 if test $cf_fix_cppflags = yes ; then
9123 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9125 elif test "${cf_tst_cflags}" = "\"'" ; then
9126 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9132 *$cf_add_cflags) #(vi
9135 case $cf_add_cflags in #(vi
9137 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9139 CPPFLAGS=`echo "$CPPFLAGS" | \
9140 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9141 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9145 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
9150 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
9155 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9157 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9159 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
9160 && test -z "${cf_tst_cflags}" \
9161 && cf_fix_cppflags=no
9166 if test -n "$cf_new_cflags" ; then
9168 CFLAGS="$CFLAGS $cf_new_cflags"
9171 if test -n "$cf_new_cppflags" ; then
9173 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
9176 if test -n "$cf_new_extra_cppflags" ; then
9178 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
9185 ### Checks for libraries.
9186 case $cf_cv_system_name in #(vi
9190 echo "$as_me:9190: checking for gettimeofday" >&5
9191 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
9192 if test "${ac_cv_func_gettimeofday+set}" = set; then
9193 echo $ECHO_N "(cached) $ECHO_C" >&6
9195 cat >conftest.$ac_ext <<_ACEOF
9196 #line 9196 "configure"
9197 #include "confdefs.h"
9198 /* System header to define __stub macros and hopefully few prototypes,
9199 which can conflict with char gettimeofday (); below. */
9201 /* Override any gcc2 internal prototype to avoid an error. */
9205 /* We use char because int might match the return type of a gcc2
9206 builtin and then its argument prototype would still apply. */
9207 char gettimeofday ();
9213 /* The GNU C library defines this for functions which it implements
9214 to always fail with ENOSYS. Some functions are actually named
9215 something starting with __ and the normal name is an alias. */
9216 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
9226 rm -f conftest.$ac_objext conftest$ac_exeext
9227 if { (eval echo "$as_me:9227: \"$ac_link\"") >&5
9228 (eval $ac_link) 2>&5
9230 echo "$as_me:9230: \$? = $ac_status" >&5
9231 (exit $ac_status); } &&
9232 { ac_try='test -s conftest$ac_exeext'
9233 { (eval echo "$as_me:9233: \"$ac_try\"") >&5
9236 echo "$as_me:9236: \$? = $ac_status" >&5
9237 (exit $ac_status); }; }; then
9238 ac_cv_func_gettimeofday=yes
9240 echo "$as_me: failed program was:" >&5
9241 cat conftest.$ac_ext >&5
9242 ac_cv_func_gettimeofday=no
9244 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9246 echo "$as_me:9246: result: $ac_cv_func_gettimeofday" >&5
9247 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
9248 if test $ac_cv_func_gettimeofday = yes; then
9249 cat >>confdefs.h <<\EOF
9250 #define HAVE_GETTIMEOFDAY 1
9255 echo "$as_me:9255: checking for gettimeofday in -lbsd" >&5
9256 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
9257 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
9258 echo $ECHO_N "(cached) $ECHO_C" >&6
9260 ac_check_lib_save_LIBS=$LIBS
9262 cat >conftest.$ac_ext <<_ACEOF
9263 #line 9263 "configure"
9264 #include "confdefs.h"
9266 /* Override any gcc2 internal prototype to avoid an error. */
9270 /* We use char because int might match the return type of a gcc2
9271 builtin and then its argument prototype would still apply. */
9272 char gettimeofday ();
9281 rm -f conftest.$ac_objext conftest$ac_exeext
9282 if { (eval echo "$as_me:9282: \"$ac_link\"") >&5
9283 (eval $ac_link) 2>&5
9285 echo "$as_me:9285: \$? = $ac_status" >&5
9286 (exit $ac_status); } &&
9287 { ac_try='test -s conftest$ac_exeext'
9288 { (eval echo "$as_me:9288: \"$ac_try\"") >&5
9291 echo "$as_me:9291: \$? = $ac_status" >&5
9292 (exit $ac_status); }; }; then
9293 ac_cv_lib_bsd_gettimeofday=yes
9295 echo "$as_me: failed program was:" >&5
9296 cat conftest.$ac_ext >&5
9297 ac_cv_lib_bsd_gettimeofday=no
9299 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9300 LIBS=$ac_check_lib_save_LIBS
9302 echo "$as_me:9302: result: $ac_cv_lib_bsd_gettimeofday" >&5
9303 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
9304 if test $ac_cv_lib_bsd_gettimeofday = yes; then
9305 cat >>confdefs.h <<\EOF
9306 #define HAVE_GETTIMEOFDAY 1
9316 ### Checks for header files.
9317 echo "$as_me:9317: checking for ANSI C header files" >&5
9318 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9319 if test "${ac_cv_header_stdc+set}" = set; then
9320 echo $ECHO_N "(cached) $ECHO_C" >&6
9322 cat >conftest.$ac_ext <<_ACEOF
9323 #line 9323 "configure"
9324 #include "confdefs.h"
9331 if { (eval echo "$as_me:9331: \"$ac_cpp conftest.$ac_ext\"") >&5
9332 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9334 egrep -v '^ *\+' conftest.er1 >conftest.err
9336 cat conftest.err >&5
9337 echo "$as_me:9337: \$? = $ac_status" >&5
9338 (exit $ac_status); } >/dev/null; then
9339 if test -s conftest.err; then
9340 ac_cpp_err=$ac_c_preproc_warn_flag
9347 if test -z "$ac_cpp_err"; then
9348 ac_cv_header_stdc=yes
9350 echo "$as_me: failed program was:" >&5
9351 cat conftest.$ac_ext >&5
9352 ac_cv_header_stdc=no
9354 rm -f conftest.err conftest.$ac_ext
9356 if test $ac_cv_header_stdc = yes; then
9357 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9358 cat >conftest.$ac_ext <<_ACEOF
9359 #line 9359 "configure"
9360 #include "confdefs.h"
9364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9365 egrep "memchr" >/dev/null 2>&1; then
9368 ac_cv_header_stdc=no
9374 if test $ac_cv_header_stdc = yes; then
9375 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9376 cat >conftest.$ac_ext <<_ACEOF
9377 #line 9377 "configure"
9378 #include "confdefs.h"
9382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9383 egrep "free" >/dev/null 2>&1; then
9386 ac_cv_header_stdc=no
9392 if test $ac_cv_header_stdc = yes; then
9393 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9394 if test "$cross_compiling" = yes; then
9397 cat >conftest.$ac_ext <<_ACEOF
9398 #line 9398 "configure"
9399 #include "confdefs.h"
9401 #if ((' ' & 0x0FF) == 0x020)
9402 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9403 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9405 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
9406 || ('j' <= (c) && (c) <= 'r') \
9407 || ('s' <= (c) && (c) <= 'z'))
9408 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9411 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9416 for (i = 0; i < 256; i++)
9417 if (XOR (islower (i), ISLOWER (i))
9418 || toupper (i) != TOUPPER (i))
9420 $ac_main_return (0);
9423 rm -f conftest$ac_exeext
9424 if { (eval echo "$as_me:9424: \"$ac_link\"") >&5
9425 (eval $ac_link) 2>&5
9427 echo "$as_me:9427: \$? = $ac_status" >&5
9428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9429 { (eval echo "$as_me:9429: \"$ac_try\"") >&5
9432 echo "$as_me:9432: \$? = $ac_status" >&5
9433 (exit $ac_status); }; }; then
9436 echo "$as_me: program exited with status $ac_status" >&5
9437 echo "$as_me: failed program was:" >&5
9438 cat conftest.$ac_ext >&5
9439 ac_cv_header_stdc=no
9441 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9445 echo "$as_me:9445: result: $ac_cv_header_stdc" >&5
9446 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9447 if test $ac_cv_header_stdc = yes; then
9449 cat >>confdefs.h <<\EOF
9450 #define STDC_HEADERS 1
9456 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9457 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9458 echo "$as_me:9458: checking for $ac_hdr that defines DIR" >&5
9459 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9461 echo $ECHO_N "(cached) $ECHO_C" >&6
9463 cat >conftest.$ac_ext <<_ACEOF
9464 #line 9464 "configure"
9465 #include "confdefs.h"
9466 #include <sys/types.h>
9478 rm -f conftest.$ac_objext
9479 if { (eval echo "$as_me:9479: \"$ac_compile\"") >&5
9480 (eval $ac_compile) 2>&5
9482 echo "$as_me:9482: \$? = $ac_status" >&5
9483 (exit $ac_status); } &&
9484 { ac_try='test -s conftest.$ac_objext'
9485 { (eval echo "$as_me:9485: \"$ac_try\"") >&5
9488 echo "$as_me:9488: \$? = $ac_status" >&5
9489 (exit $ac_status); }; }; then
9490 eval "$as_ac_Header=yes"
9492 echo "$as_me: failed program was:" >&5
9493 cat conftest.$ac_ext >&5
9494 eval "$as_ac_Header=no"
9496 rm -f conftest.$ac_objext conftest.$ac_ext
9498 echo "$as_me:9498: result: `eval echo '${'$as_ac_Header'}'`" >&5
9499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9501 cat >>confdefs.h <<EOF
9502 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9505 ac_header_dirent=$ac_hdr; break
9509 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9510 if test $ac_header_dirent = dirent.h; then
9511 echo "$as_me:9511: checking for opendir in -ldir" >&5
9512 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
9513 if test "${ac_cv_lib_dir_opendir+set}" = set; then
9514 echo $ECHO_N "(cached) $ECHO_C" >&6
9516 ac_check_lib_save_LIBS=$LIBS
9518 cat >conftest.$ac_ext <<_ACEOF
9519 #line 9519 "configure"
9520 #include "confdefs.h"
9522 /* Override any gcc2 internal prototype to avoid an error. */
9526 /* We use char because int might match the return type of a gcc2
9527 builtin and then its argument prototype would still apply. */
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
9549 ac_cv_lib_dir_opendir=yes
9551 echo "$as_me: failed program was:" >&5
9552 cat conftest.$ac_ext >&5
9553 ac_cv_lib_dir_opendir=no
9555 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9556 LIBS=$ac_check_lib_save_LIBS
9558 echo "$as_me:9558: result: $ac_cv_lib_dir_opendir" >&5
9559 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
9560 if test $ac_cv_lib_dir_opendir = yes; then
9565 echo "$as_me:9565: checking for opendir in -lx" >&5
9566 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
9567 if test "${ac_cv_lib_x_opendir+set}" = set; then
9568 echo $ECHO_N "(cached) $ECHO_C" >&6
9570 ac_check_lib_save_LIBS=$LIBS
9572 cat >conftest.$ac_ext <<_ACEOF
9573 #line 9573 "configure"
9574 #include "confdefs.h"
9576 /* Override any gcc2 internal prototype to avoid an error. */
9580 /* We use char because int might match the return type of a gcc2
9581 builtin and then its argument prototype would still apply. */
9591 rm -f conftest.$ac_objext conftest$ac_exeext
9592 if { (eval echo "$as_me:9592: \"$ac_link\"") >&5
9593 (eval $ac_link) 2>&5
9595 echo "$as_me:9595: \$? = $ac_status" >&5
9596 (exit $ac_status); } &&
9597 { ac_try='test -s conftest$ac_exeext'
9598 { (eval echo "$as_me:9598: \"$ac_try\"") >&5
9601 echo "$as_me:9601: \$? = $ac_status" >&5
9602 (exit $ac_status); }; }; then
9603 ac_cv_lib_x_opendir=yes
9605 echo "$as_me: failed program was:" >&5
9606 cat conftest.$ac_ext >&5
9607 ac_cv_lib_x_opendir=no
9609 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9610 LIBS=$ac_check_lib_save_LIBS
9612 echo "$as_me:9612: result: $ac_cv_lib_x_opendir" >&5
9613 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
9614 if test $ac_cv_lib_x_opendir = yes; then
9620 echo "$as_me:9620: checking whether time.h and sys/time.h may both be included" >&5
9621 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9622 if test "${ac_cv_header_time+set}" = set; then
9623 echo $ECHO_N "(cached) $ECHO_C" >&6
9625 cat >conftest.$ac_ext <<_ACEOF
9626 #line 9626 "configure"
9627 #include "confdefs.h"
9628 #include <sys/types.h>
9629 #include <sys/time.h>
9635 if ((struct tm *) 0)
9641 rm -f conftest.$ac_objext
9642 if { (eval echo "$as_me:9642: \"$ac_compile\"") >&5
9643 (eval $ac_compile) 2>&5
9645 echo "$as_me:9645: \$? = $ac_status" >&5
9646 (exit $ac_status); } &&
9647 { ac_try='test -s conftest.$ac_objext'
9648 { (eval echo "$as_me:9648: \"$ac_try\"") >&5
9651 echo "$as_me:9651: \$? = $ac_status" >&5
9652 (exit $ac_status); }; }; then
9653 ac_cv_header_time=yes
9655 echo "$as_me: failed program was:" >&5
9656 cat conftest.$ac_ext >&5
9657 ac_cv_header_time=no
9659 rm -f conftest.$ac_objext conftest.$ac_ext
9661 echo "$as_me:9661: result: $ac_cv_header_time" >&5
9662 echo "${ECHO_T}$ac_cv_header_time" >&6
9663 if test $ac_cv_header_time = yes; then
9665 cat >>confdefs.h <<\EOF
9666 #define TIME_WITH_SYS_TIME 1
9671 ### checks for compiler characteristics
9673 ac_cpp='$CPP $CPPFLAGS'
9674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9677 ac_main_return=return
9679 echo "$as_me:9679: checking for $CC option to accept ANSI C" >&5
9680 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
9681 if test "${ac_cv_prog_cc_stdc+set}" = set; then
9682 echo $ECHO_N "(cached) $ECHO_C" >&6
9684 ac_cv_prog_cc_stdc=no
9686 cat >conftest.$ac_ext <<_ACEOF
9687 #line 9687 "configure"
9688 #include "confdefs.h"
9691 #include <sys/types.h>
9692 #include <sys/stat.h>
9693 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
9694 struct buf { int x; };
9695 FILE * (*rcsopen) (struct buf *, struct stat *, int);
9696 static char *e (p, i)
9702 static char *f (char * (*g) (char **, int), char **p, ...)
9707 s = g (p, va_arg (v,int));
9711 int test (int i, double x);
9712 struct s1 {int (*f) (int a);};
9713 struct s2 {int (*f) (double a);};
9714 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
9720 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
9725 # Don't try gcc -ansi; that turns off useful extensions and
9726 # breaks some systems' header files.
9727 # AIX -qlanglvl=ansi
9728 # Ultrix and OSF/1 -std1
9729 # HP-UX 10.20 and later -Ae
9730 # HP-UX older versions -Aa -D_HPUX_SOURCE
9731 # SVR4 -Xc -D__EXTENSIONS__
9732 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
9734 CC="$ac_save_CC $ac_arg"
9735 rm -f conftest.$ac_objext
9736 if { (eval echo "$as_me:9736: \"$ac_compile\"") >&5
9737 (eval $ac_compile) 2>&5
9739 echo "$as_me:9739: \$? = $ac_status" >&5
9740 (exit $ac_status); } &&
9741 { ac_try='test -s conftest.$ac_objext'
9742 { (eval echo "$as_me:9742: \"$ac_try\"") >&5
9745 echo "$as_me:9745: \$? = $ac_status" >&5
9746 (exit $ac_status); }; }; then
9747 ac_cv_prog_cc_stdc=$ac_arg
9750 echo "$as_me: failed program was:" >&5
9751 cat conftest.$ac_ext >&5
9753 rm -f conftest.$ac_objext
9755 rm -f conftest.$ac_ext conftest.$ac_objext
9760 case "x$ac_cv_prog_cc_stdc" in
9762 echo "$as_me:9762: result: none needed" >&5
9763 echo "${ECHO_T}none needed" >&6 ;;
9765 echo "$as_me:9765: result: $ac_cv_prog_cc_stdc" >&5
9766 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
9767 CC="$CC $ac_cv_prog_cc_stdc" ;;
9770 echo "$as_me:9770: checking for an ANSI C-conforming const" >&5
9771 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9772 if test "${ac_cv_c_const+set}" = set; then
9773 echo $ECHO_N "(cached) $ECHO_C" >&6
9775 cat >conftest.$ac_ext <<_ACEOF
9776 #line 9776 "configure"
9777 #include "confdefs.h"
9782 /* FIXME: Include the comments suggested by Paul. */
9784 /* Ultrix mips cc rejects this. */
9785 typedef int charset[2];
9787 /* SunOS 4.1.1 cc rejects this. */
9788 char const *const *ccp;
9790 /* NEC SVR4.0.2 mips cc rejects this. */
9791 struct point {int x, y;};
9792 static struct point const zero = {0,0};
9793 /* AIX XL C 1.02.0.0 rejects this.
9794 It does not let you subtract one const X* pointer from another in
9795 an arm of an if-expression whose if-part is not a constant
9797 const char *g = "string";
9798 ccp = &g + (g ? g-g : 0);
9799 /* HPUX 7.0 cc rejects these. */
9802 ccp = (char const *const *) p;
9803 { /* SCO 3.2v4 cc rejects this. */
9805 char const *s = 0 ? (char *) 0 : (char const *) 0;
9809 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9811 const int *foo = &x[0];
9814 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9815 typedef const int *iptr;
9819 { /* AIX XL C 1.02.0.0 rejects this saying
9820 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9821 struct s { int j; const int *ap[3]; };
9822 struct s *b; b->j = 5;
9824 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9833 rm -f conftest.$ac_objext
9834 if { (eval echo "$as_me:9834: \"$ac_compile\"") >&5
9835 (eval $ac_compile) 2>&5
9837 echo "$as_me:9837: \$? = $ac_status" >&5
9838 (exit $ac_status); } &&
9839 { ac_try='test -s conftest.$ac_objext'
9840 { (eval echo "$as_me:9840: \"$ac_try\"") >&5
9843 echo "$as_me:9843: \$? = $ac_status" >&5
9844 (exit $ac_status); }; }; then
9847 echo "$as_me: failed program was:" >&5
9848 cat conftest.$ac_ext >&5
9851 rm -f conftest.$ac_objext conftest.$ac_ext
9853 echo "$as_me:9853: result: $ac_cv_c_const" >&5
9854 echo "${ECHO_T}$ac_cv_c_const" >&6
9855 if test $ac_cv_c_const = no; then
9857 cat >>confdefs.h <<\EOF
9863 ### Checks for external-data
9865 echo "$as_me:9865: checking if data-only library module links" >&5
9866 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
9867 if test "${cf_cv_link_dataonly+set}" = set; then
9868 echo $ECHO_N "(cached) $ECHO_C" >&6
9872 cat >conftest.$ac_ext <<EOF
9873 #line 9873 "configure"
9874 int testdata[3] = { 123, 456, 789 };
9876 if { (eval echo "$as_me:9876: \"$ac_compile\"") >&5
9877 (eval $ac_compile) 2>&5
9879 echo "$as_me:9879: \$? = $ac_status" >&5
9880 (exit $ac_status); } ; then
9881 mv conftest.o data.o && \
9882 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
9884 rm -f conftest.$ac_ext data.o
9885 cat >conftest.$ac_ext <<EOF
9886 #line 9886 "configure"
9890 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
9892 extern int testdata[3];
9893 return testdata[0] == 123
9894 && testdata[1] == 456
9895 && testdata[2] == 789;
9899 if { (eval echo "$as_me:9899: \"$ac_compile\"") >&5
9900 (eval $ac_compile) 2>&5
9902 echo "$as_me:9902: \$? = $ac_status" >&5
9903 (exit $ac_status); }; then
9904 mv conftest.o func.o && \
9905 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
9907 rm -f conftest.$ac_ext func.o
9908 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
9910 LIBS="conftest.a $LIBS"
9911 if test "$cross_compiling" = yes; then
9912 cf_cv_link_dataonly=unknown
9914 cat >conftest.$ac_ext <<_ACEOF
9915 #line 9915 "configure"
9916 #include "confdefs.h"
9920 extern int testfunc();
9921 ${cf_cv_main_return:-return} (!testfunc());
9925 rm -f conftest$ac_exeext
9926 if { (eval echo "$as_me:9926: \"$ac_link\"") >&5
9927 (eval $ac_link) 2>&5
9929 echo "$as_me:9929: \$? = $ac_status" >&5
9930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9931 { (eval echo "$as_me:9931: \"$ac_try\"") >&5
9934 echo "$as_me:9934: \$? = $ac_status" >&5
9935 (exit $ac_status); }; }; then
9936 cf_cv_link_dataonly=yes
9938 echo "$as_me: program exited with status $ac_status" >&5
9939 echo "$as_me: failed program was:" >&5
9940 cat conftest.$ac_ext >&5
9941 cf_cv_link_dataonly=no
9943 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9949 echo "$as_me:9949: result: $cf_cv_link_dataonly" >&5
9950 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
9952 if test "$cf_cv_link_dataonly" = no ; then
9953 cat >>confdefs.h <<\EOF
9954 #define BROKEN_LINKER 1
9960 ### Checks for library functions.
9962 echo "$as_me:9962: checking for working mkstemp" >&5
9963 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
9964 if test "${cf_cv_func_mkstemp+set}" = set; then
9965 echo $ECHO_N "(cached) $ECHO_C" >&6
9969 if test "$cross_compiling" = yes; then
9970 echo "$as_me:9970: checking for mkstemp" >&5
9971 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
9972 if test "${ac_cv_func_mkstemp+set}" = set; then
9973 echo $ECHO_N "(cached) $ECHO_C" >&6
9975 cat >conftest.$ac_ext <<_ACEOF
9976 #line 9976 "configure"
9977 #include "confdefs.h"
9978 /* System header to define __stub macros and hopefully few prototypes,
9979 which can conflict with char mkstemp (); below. */
9981 /* Override any gcc2 internal prototype to avoid an error. */
9985 /* We use char because int might match the return type of a gcc2
9986 builtin and then its argument prototype would still apply. */
9993 /* The GNU C library defines this for functions which it implements
9994 to always fail with ENOSYS. Some functions are actually named
9995 something starting with __ and the normal name is an alias. */
9996 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
10006 rm -f conftest.$ac_objext conftest$ac_exeext
10007 if { (eval echo "$as_me:10007: \"$ac_link\"") >&5
10008 (eval $ac_link) 2>&5
10010 echo "$as_me:10010: \$? = $ac_status" >&5
10011 (exit $ac_status); } &&
10012 { ac_try='test -s conftest$ac_exeext'
10013 { (eval echo "$as_me:10013: \"$ac_try\"") >&5
10014 (eval $ac_try) 2>&5
10016 echo "$as_me:10016: \$? = $ac_status" >&5
10017 (exit $ac_status); }; }; then
10018 ac_cv_func_mkstemp=yes
10020 echo "$as_me: failed program was:" >&5
10021 cat conftest.$ac_ext >&5
10022 ac_cv_func_mkstemp=no
10024 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10026 echo "$as_me:10026: result: $ac_cv_func_mkstemp" >&5
10027 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
10030 cat >conftest.$ac_ext <<_ACEOF
10031 #line 10031 "configure"
10032 #include "confdefs.h"
10034 #include <sys/types.h>
10035 #include <stdlib.h>
10037 #include <string.h>
10038 #include <sys/stat.h>
10041 char *tmpl = "conftestXXXXXX";
10049 for (n = 0; n < 2; ++n) {
10050 strcpy(name[n], tmpl);
10051 if ((fd = mkstemp(name[n])) >= 0) {
10052 if (!strcmp(name[n], tmpl)
10053 || stat(name[n], &sb) != 0
10054 || (sb.st_mode & S_IFMT) != S_IFREG
10055 || (sb.st_mode & 077) != 0) {
10062 && !strcmp(name[0], name[1]))
10064 ${cf_cv_main_return:-return}(result);
10068 rm -f conftest$ac_exeext
10069 if { (eval echo "$as_me:10069: \"$ac_link\"") >&5
10070 (eval $ac_link) 2>&5
10072 echo "$as_me:10072: \$? = $ac_status" >&5
10073 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10074 { (eval echo "$as_me:10074: \"$ac_try\"") >&5
10075 (eval $ac_try) 2>&5
10077 echo "$as_me:10077: \$? = $ac_status" >&5
10078 (exit $ac_status); }; }; then
10079 cf_cv_func_mkstemp=yes
10082 echo "$as_me: program exited with status $ac_status" >&5
10083 echo "$as_me: failed program was:" >&5
10084 cat conftest.$ac_ext >&5
10085 cf_cv_func_mkstemp=no
10088 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10092 echo "$as_me:10092: result: $cf_cv_func_mkstemp" >&5
10093 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
10094 if test "$cf_cv_func_mkstemp" = yes ; then
10095 cat >>confdefs.h <<\EOF
10096 #define HAVE_MKSTEMP 1
10101 echo "$as_me:10101: checking return type of signal handlers" >&5
10102 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10103 if test "${ac_cv_type_signal+set}" = set; then
10104 echo $ECHO_N "(cached) $ECHO_C" >&6
10106 cat >conftest.$ac_ext <<_ACEOF
10107 #line 10107 "configure"
10108 #include "confdefs.h"
10109 #include <sys/types.h>
10110 #include <signal.h>
10115 extern "C" void (*signal (int, void (*)(int)))(int);
10117 void (*signal ()) ();
10128 rm -f conftest.$ac_objext
10129 if { (eval echo "$as_me:10129: \"$ac_compile\"") >&5
10130 (eval $ac_compile) 2>&5
10132 echo "$as_me:10132: \$? = $ac_status" >&5
10133 (exit $ac_status); } &&
10134 { ac_try='test -s conftest.$ac_objext'
10135 { (eval echo "$as_me:10135: \"$ac_try\"") >&5
10136 (eval $ac_try) 2>&5
10138 echo "$as_me:10138: \$? = $ac_status" >&5
10139 (exit $ac_status); }; }; then
10140 ac_cv_type_signal=void
10142 echo "$as_me: failed program was:" >&5
10143 cat conftest.$ac_ext >&5
10144 ac_cv_type_signal=int
10146 rm -f conftest.$ac_objext conftest.$ac_ext
10148 echo "$as_me:10148: result: $ac_cv_type_signal" >&5
10149 echo "${ECHO_T}$ac_cv_type_signal" >&6
10151 cat >>confdefs.h <<EOF
10152 #define RETSIGTYPE $ac_cv_type_signal
10155 if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
10156 CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
10157 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
10160 cf_ada_make=gnatmake
10161 # Extract the first word of "$cf_ada_make", so it can be a program name with args.
10162 set dummy $cf_ada_make; ac_word=$2
10163 echo "$as_me:10163: checking for $ac_word" >&5
10164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10165 if test "${ac_cv_prog_gnat_exists+set}" = set; then
10166 echo $ECHO_N "(cached) $ECHO_C" >&6
10168 if test -n "$gnat_exists"; then
10169 ac_cv_prog_gnat_exists="$gnat_exists" # Let the user override the test.
10171 ac_save_IFS=$IFS; IFS=$ac_path_separator
10173 for ac_dir in $ac_dummy; do
10175 test -z "$ac_dir" && ac_dir=.
10176 $as_executable_p "$ac_dir/$ac_word" || continue
10177 ac_cv_prog_gnat_exists="yes"
10178 echo "$as_me:10178: found $ac_dir/$ac_word" >&5
10182 test -z "$ac_cv_prog_gnat_exists" && ac_cv_prog_gnat_exists="no"
10185 gnat_exists=$ac_cv_prog_gnat_exists
10186 if test -n "$gnat_exists"; then
10187 echo "$as_me:10187: result: $gnat_exists" >&5
10188 echo "${ECHO_T}$gnat_exists" >&6
10190 echo "$as_me:10190: result: no" >&5
10191 echo "${ECHO_T}no" >&6
10194 if test "$ac_cv_prog_gnat_exists" = no; then
10198 echo "$as_me:10198: checking for gnat version" >&5
10199 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
10200 cf_gnat_version=`${cf_ada_make-gnatmake} -v 2>&1 | grep '[0-9].[0-9][0-9]*' |\
10201 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
10202 echo "$as_me:10202: result: $cf_gnat_version" >&5
10203 echo "${ECHO_T}$cf_gnat_version" >&6
10205 case $cf_gnat_version in
10206 3.1[1-9]*|3.[2-9]*|[4-9].*)
10207 cf_cv_prog_gnat_correct=yes
10209 *) echo Unsupported GNAT version $cf_gnat_version. Required is 3.11 or better. Disabling Ada95 binding.
10210 cf_cv_prog_gnat_correct=no
10213 case $cf_gnat_version in
10215 cf_compile_generics=generics
10216 cf_generic_objects="\${GENOBJS}"
10218 *) cf_compile_generics=
10219 cf_generic_objects=
10223 # Extract the first word of "m4", so it can be a program name with args.
10224 set dummy m4; ac_word=$2
10225 echo "$as_me:10225: checking for $ac_word" >&5
10226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10227 if test "${ac_cv_prog_M4_exists+set}" = set; then
10228 echo $ECHO_N "(cached) $ECHO_C" >&6
10230 if test -n "$M4_exists"; then
10231 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
10233 ac_save_IFS=$IFS; IFS=$ac_path_separator
10235 for ac_dir in $ac_dummy; do
10237 test -z "$ac_dir" && ac_dir=.
10238 $as_executable_p "$ac_dir/$ac_word" || continue
10239 ac_cv_prog_M4_exists="yes"
10240 echo "$as_me:10240: found $ac_dir/$ac_word" >&5
10244 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
10247 M4_exists=$ac_cv_prog_M4_exists
10248 if test -n "$M4_exists"; then
10249 echo "$as_me:10249: result: $M4_exists" >&5
10250 echo "${ECHO_T}$M4_exists" >&6
10252 echo "$as_me:10252: result: no" >&5
10253 echo "${ECHO_T}no" >&6
10256 if test "$ac_cv_prog_M4_exists" = no; then
10257 cf_cv_prog_gnat_correct=no
10258 echo Ada95 binding required program m4 not found. Ada95 binding disabled.
10260 if test "$cf_cv_prog_gnat_correct" = yes; then
10261 echo "$as_me:10261: checking if GNAT works" >&5
10262 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
10265 cat >>conftest.ads <<CF_EOF
10266 procedure conftest;
10268 cat >>conftest.adb <<CF_EOF
10271 procedure conftest is
10273 Text_IO.Put ("Hello World");
10275 GNAT.OS_Lib.OS_Exit (0);
10278 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
10279 if ( ./conftest 1>&5 2>&1 ) ; then
10280 cf_cv_prog_gnat_correct=yes
10282 cf_cv_prog_gnat_correct=no
10285 cf_cv_prog_gnat_correct=no
10289 echo "$as_me:10289: result: $cf_cv_prog_gnat_correct" >&5
10290 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
10293 if test "$cf_cv_prog_gnat_correct" = yes; then
10294 ADAFLAGS="-O3 -gnatpn $ADAFLAGS"
10296 echo "$as_me:10296: checking if GNAT pragma Unreferenced works" >&5
10297 echo $ECHO_N "checking if GNAT pragma Unreferenced works... $ECHO_C" >&6
10300 cat >>conftest.ads <<CF_EOF
10301 procedure conftest;
10303 cat >>conftest.adb <<CF_EOF
10306 procedure conftest is
10308 pragma Unreferenced (test);
10311 Text_IO.Put ("Hello World");
10313 GNAT.OS_Lib.OS_Exit (0);
10316 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
10317 cf_cv_pragma_unreferenced=yes
10319 cf_cv_pragma_unreferenced=no
10323 echo "$as_me:10323: result: $cf_cv_pragma_unreferenced" >&5
10324 echo "${ECHO_T}$cf_cv_pragma_unreferenced" >&6
10326 # if the pragma is supported, use it (needed in the Trace code).
10327 if test $cf_cv_pragma_unreferenced = yes ; then
10333 # Check whether --with-ada-compiler or --without-ada-compiler was given.
10334 if test "${with_ada_compiler+set}" = set; then
10335 withval="$with_ada_compiler"
10336 cf_ada_compiler=$withval
10338 cf_ada_compiler=gnatmake
10341 cf_ada_package=terminal_interface
10343 # Check whether --with-ada-include or --without-ada-include was given.
10344 if test "${with_ada_include+set}" = set; then
10345 withval="$with_ada_include"
10348 withval="${ADA_INCLUDE-$prefix/lib/ada/adainclude}"
10349 fi; if test -n "$prefix/lib/ada/adainclude" ; then
10351 if test "x$prefix" != xNONE; then
10352 cf_path_syntax="$prefix"
10354 cf_path_syntax="$ac_default_prefix"
10357 case ".$withval" in #(vi
10358 .\$\(*\)*|.\'*\'*) #(vi
10362 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
10364 .\${*prefix}*) #(vi
10365 eval withval="$withval"
10366 case ".$withval" in #(vi
10368 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
10373 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
10376 { { echo "$as_me:10376: error: expected a pathname, not \"$withval\"" >&5
10377 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
10378 { (exit 1); exit 1; }; }
10383 ADA_INCLUDE="$withval"
10385 # Check whether --with-ada-objects or --without-ada-objects was given.
10386 if test "${with_ada_objects+set}" = set; then
10387 withval="$with_ada_objects"
10390 withval="${ADA_OBJECTS-$prefix/lib/ada/adalib}"
10391 fi; if test -n "$prefix/lib/ada/adalib" ; then
10393 if test "x$prefix" != xNONE; then
10394 cf_path_syntax="$prefix"
10396 cf_path_syntax="$ac_default_prefix"
10399 case ".$withval" in #(vi
10400 .\$\(*\)*|.\'*\'*) #(vi
10404 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
10406 .\${*prefix}*) #(vi
10407 eval withval="$withval"
10408 case ".$withval" in #(vi
10410 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
10415 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
10418 { { echo "$as_me:10418: error: expected a pathname, not \"$withval\"" >&5
10419 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
10420 { (exit 1); exit 1; }; }
10425 ADA_OBJECTS="$withval"
10429 ################################################################################
10434 ### Construct the list of include-directories to be generated
10436 CPPFLAGS="$CPPFLAGS -I. -I../include"
10437 if test "$srcdir" != "."; then
10438 CPPFLAGS="$CPPFLAGS -I\${srcdir}/../include"
10440 if test "$GCC" != yes; then
10441 CPPFLAGS="$CPPFLAGS -I\${includedir}"
10442 elif test "$includedir" != "/usr/include"; then
10443 if test "$includedir" = '${prefix}/include' ; then
10444 if test $prefix != /usr ; then
10445 CPPFLAGS="$CPPFLAGS -I\${includedir}"
10448 CPPFLAGS="$CPPFLAGS -I\${includedir}"
10452 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
10453 if test "$srcdir" != "."; then
10454 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
10456 if test "$GCC" != yes; then
10457 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
10458 elif test "$includedir" != "/usr/include"; then
10459 if test "$includedir" = '${prefix}/include' ; then
10460 if test $prefix != /usr ; then
10461 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
10464 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
10468 ### Build up pieces for makefile rules
10469 echo "$as_me:10469: checking default library suffix" >&5
10470 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
10472 case $DFT_LWR_MODEL in
10473 libtool) DFT_ARG_SUFFIX='' ;;
10474 normal) DFT_ARG_SUFFIX='' ;;
10475 debug) DFT_ARG_SUFFIX='_g' ;;
10476 profile) DFT_ARG_SUFFIX='_p' ;;
10477 shared) DFT_ARG_SUFFIX='' ;;
10479 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
10480 echo "$as_me:10480: result: $DFT_ARG_SUFFIX" >&5
10481 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
10483 echo "$as_me:10483: checking default library-dependency suffix" >&5
10484 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
10486 case $DFT_LWR_MODEL in #(vi
10488 DFT_LIB_SUFFIX='.la'
10489 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
10492 DFT_LIB_SUFFIX='.a'
10493 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
10496 DFT_LIB_SUFFIX='_g.a'
10497 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
10500 DFT_LIB_SUFFIX='_p.a'
10501 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
10504 case $cf_cv_system_name in
10506 DFT_LIB_SUFFIX='.a'
10507 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
10510 DFT_LIB_SUFFIX='.dll'
10511 DFT_DEP_SUFFIX='.dll.a'
10514 DFT_LIB_SUFFIX='.dylib'
10515 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
10520 DFT_LIB_SUFFIX='.so'
10521 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
10524 DFT_LIB_SUFFIX='.sl'
10525 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
10529 *) DFT_LIB_SUFFIX='.so'
10530 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
10534 test -n "$LIB_SUFFIX" && DFT_LIB_SUFFIX="${LIB_SUFFIX}${DFT_LIB_SUFFIX}"
10535 test -n "$LIB_SUFFIX" && DFT_DEP_SUFFIX="${LIB_SUFFIX}${DFT_DEP_SUFFIX}"
10536 echo "$as_me:10536: result: $DFT_DEP_SUFFIX" >&5
10537 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
10539 echo "$as_me:10539: checking default object directory" >&5
10540 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
10542 case $DFT_LWR_MODEL in
10543 libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
10544 normal) DFT_OBJ_SUBDIR='objects' ;;
10545 debug) DFT_OBJ_SUBDIR='obj_g' ;;
10546 profile) DFT_OBJ_SUBDIR='obj_p' ;;
10548 case $cf_cv_system_name in #(vi
10550 DFT_OBJ_SUBDIR='objects' ;;
10552 DFT_OBJ_SUBDIR='obj_s' ;;
10555 echo "$as_me:10555: result: $DFT_OBJ_SUBDIR" >&5
10556 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
10558 ### Set up low-level terminfo dependencies for makefiles.
10560 if test "$DFT_LWR_MODEL" = shared ; then
10561 case $cf_cv_system_name in #(vi
10563 # "lib" files have ".dll.a" suffix, "cyg" files have ".dll"
10568 ### Construct the list of subdirectories for which we'll customize makefiles
10569 ### with the appropriate compile-rules.
10571 SUB_MAKEFILES="gen/adacurses${DFT_ARG_SUFFIX}-config:gen/adacurses-config.in"
10573 cat >>confdefs.h <<EOF
10574 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
10577 ### Now that we're done running tests, add the compiler-warnings, if any
10582 cf_new_extra_cppflags=
10584 for cf_add_cflags in $EXTRA_CFLAGS
10586 case $cf_fix_cppflags in
10588 case $cf_add_cflags in #(vi
10589 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10590 case $cf_add_cflags in
10592 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10594 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10595 && test -z "${cf_tst_cflags}" \
10596 && cf_fix_cppflags=yes
10598 if test $cf_fix_cppflags = yes ; then
10599 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10601 elif test "${cf_tst_cflags}" = "\"'" ; then
10602 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10607 case "$CPPFLAGS" in
10608 *$cf_add_cflags) #(vi
10611 case $cf_add_cflags in #(vi
10613 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10615 CPPFLAGS=`echo "$CPPFLAGS" | \
10616 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10617 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10621 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10626 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10631 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10633 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10635 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10636 && test -z "${cf_tst_cflags}" \
10637 && cf_fix_cppflags=no
10642 if test -n "$cf_new_cflags" ; then
10644 CFLAGS="$CFLAGS $cf_new_cflags"
10647 if test -n "$cf_new_cppflags" ; then
10649 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10652 if test -n "$cf_new_extra_cppflags" ; then
10654 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10657 ################################################################################
10659 if test x"$enable_pc_files" = xyes ; then \
10660 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
10666 ################################################################################
10670 NCURSES_SHLIB2="sh -c"
10672 for cf_path in . .. ../..
10674 if test -f $cf_path/tar-copy.sh
10676 NCURSES_COPY2=`echo 'sh $(top_srcdir)/'$cf_path'/tar-copy.sh' | sed -e 's,/./,/,'`
10681 ADA_SUBDIRS="include gen src samples"
10682 for cf_dir in $ADA_SUBDIRS
10684 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
10691 ac_config_files="$ac_config_files $SUB_MAKEFILES Makefile"
10692 ac_config_commands="$ac_config_commands default"
10693 cat >confcache <<\_ACEOF
10694 # This file is a shell script that caches the results of configure
10695 # tests run on this system so they can be shared between configure
10696 # scripts and configure runs, see configure's option --config-cache.
10697 # It is not useful on other systems. If it contains results you don't
10698 # want to keep, you may remove or edit it.
10700 # config.status only pays attention to the cache file if you give it
10701 # the --recheck option to rerun configure.
10703 # `ac_cv_env_foo' variables (set or unset) will be overriden when
10704 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10705 # following values.
10709 # The following way of writing the cache mishandles newlines in values,
10710 # but we know of no workaround that is simple, portable, and efficient.
10711 # So, don't put newlines in cache variables' values.
10712 # Ultrix sh set writes to stderr and can't be redirected directly,
10713 # and sets the high bit in the cache file unless we assign to the vars.
10716 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10718 # `set' does not quote correctly, so add quotes (double-quote
10719 # substitution turns \\\\ into \\, and sed turns \\ into \).
10722 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10725 # `set' quotes correctly as required by POSIX, so do not add quotes.
10727 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10734 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10736 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10738 if cmp -s $cache_file confcache; then :; else
10739 if test -w $cache_file; then
10740 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10741 cat confcache >$cache_file
10743 echo "not updating unwritable cache $cache_file"
10748 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10749 # Let make expand exec_prefix.
10750 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10752 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10753 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10754 # trailing colons and then remove the whole line if VPATH becomes empty
10755 # (actually we leave an empty line to preserve line numbers).
10756 if test "x$srcdir" = x.; then
10757 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10758 s/:*\$(srcdir):*/:/;
10759 s/:*\${srcdir}:*/:/;
10761 s/^\([^=]*=[ ]*\):*/\1/;
10767 DEFS=-DHAVE_CONFIG_H
10769 : ${CONFIG_STATUS=./config.status}
10770 ac_clean_files_save=$ac_clean_files
10771 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10772 { echo "$as_me:10772: creating $CONFIG_STATUS" >&5
10773 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10774 cat >$CONFIG_STATUS <<_ACEOF
10776 # Generated automatically by configure.
10777 # Run this file to recreate the current configuration.
10778 # Compiler output produced by configure, useful for debugging
10779 # configure, is in config.log if it exists.
10782 SHELL=\${CONFIG_SHELL-$SHELL}
10783 ac_cs_invocation="\$0 \$@"
10787 cat >>$CONFIG_STATUS <<\_ACEOF
10788 # Be Bourne compatible
10789 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10792 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10796 # Name of the executable.
10797 as_me=`echo "$0" |sed 's,.*[\\/],,'`
10799 if expr a : '\(a\)' >/dev/null 2>&1; then
10805 rm -f conf$$ conf$$.exe conf$$.file
10807 if ln -s conf$$.file conf$$ 2>/dev/null; then
10808 # We could just check for DJGPP; but this test a) works b) is more generic
10809 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10810 if test -f conf$$.exe; then
10811 # Don't use ln at all; we don't have any links
10816 elif ln conf$$.file conf$$ 2>/dev/null; then
10821 rm -f conf$$ conf$$.exe conf$$.file
10823 as_executable_p="test -f"
10825 # Support unset when possible.
10826 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
10833 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
10834 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
10835 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
10836 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
10837 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
10838 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
10839 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
10840 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
10843 # We need space, tab and new line, in precisely that order.
10849 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
10855 # Files that config.status was made for.
10856 if test -n "$ac_config_files"; then
10857 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10860 if test -n "$ac_config_headers"; then
10861 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10864 if test -n "$ac_config_links"; then
10865 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10868 if test -n "$ac_config_commands"; then
10869 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10872 cat >>$CONFIG_STATUS <<\EOF
10875 \`$as_me' instantiates files from templates according to the
10876 current configuration.
10878 Usage: $0 [OPTIONS] [FILE]...
10880 -h, --help print this help, then exit
10881 -V, --version print version number, then exit
10882 -d, --debug don't remove temporary files
10883 --recheck update $as_me by reconfiguring in the same conditions
10884 --file=FILE[:TEMPLATE]
10885 instantiate the configuration file FILE
10886 --header=FILE[:TEMPLATE]
10887 instantiate the configuration header FILE
10889 Configuration files:
10892 Configuration headers:
10895 Configuration commands:
10898 Report bugs to <bug-autoconf@gnu.org>."
10901 cat >>$CONFIG_STATUS <<EOF
10904 configured by $0, generated by GNU Autoconf 2.52.20081225,
10905 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10907 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10908 Free Software Foundation, Inc.
10909 This config.status script is free software; the Free Software Foundation
10910 gives unlimited permission to copy, distribute and modify it."
10915 cat >>$CONFIG_STATUS <<\EOF
10916 # If no file are specified by the user, then we need to provide default
10917 # value. By we need to know if files were specified by the user.
10923 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10924 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10926 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
10930 *) # This is not an option, so the user has probably given explicit
10932 ac_need_defaults=false;;
10936 # Handling of the options.
10938 cat >>$CONFIG_STATUS <<EOF
10939 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10940 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
10941 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
10943 cat >>$CONFIG_STATUS <<\EOF
10944 --version | --vers* | -V )
10945 echo "$ac_cs_version"; exit 0 ;;
10947 # Conflict between --help and --header
10948 { { echo "$as_me:10948: error: ambiguous option: $1
10949 Try \`$0 --help' for more information." >&5
10950 echo "$as_me: error: ambiguous option: $1
10951 Try \`$0 --help' for more information." >&2;}
10952 { (exit 1); exit 1; }; };;
10953 --help | --hel | -h )
10954 echo "$ac_cs_usage"; exit 0 ;;
10955 --debug | --d* | -d )
10957 --file | --fil | --fi | --f )
10959 CONFIG_FILES="$CONFIG_FILES $1"
10960 ac_need_defaults=false;;
10961 --header | --heade | --head | --hea )
10963 CONFIG_HEADERS="$CONFIG_HEADERS $1"
10964 ac_need_defaults=false;;
10966 # This is an error.
10967 -*) { { echo "$as_me:10967: error: unrecognized option: $1
10968 Try \`$0 --help' for more information." >&5
10969 echo "$as_me: error: unrecognized option: $1
10970 Try \`$0 --help' for more information." >&2;}
10971 { (exit 1); exit 1; }; } ;;
10973 *) ac_config_targets="$ac_config_targets $1" ;;
10982 ## ----------------------- ##
10983 ## Running config.status. ##
10984 ## ----------------------- ##
10986 This file was extended by $as_me 2.52.20081225, executed with
10987 CONFIG_FILES = $CONFIG_FILES
10988 CONFIG_HEADERS = $CONFIG_HEADERS
10989 CONFIG_LINKS = $CONFIG_LINKS
10990 CONFIG_COMMANDS = $CONFIG_COMMANDS
10991 > $ac_cs_invocation
10992 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10997 cat >>$CONFIG_STATUS <<EOF
10999 # INIT-COMMANDS section.
11002 ### Special initialization commands, used to pass information from the
11003 ### configuration-run into config.status
11006 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
11007 DFT_LWR_MODEL="$DFT_LWR_MODEL"
11008 ECHO_LINK="$ECHO_LINK"
11009 LIB_NAME="$LIB_NAME"
11010 LIB_SUFFIX="$LIB_SUFFIX"
11011 NCURSES_MAJOR="$NCURSES_MAJOR"
11012 NCURSES_MINOR="$NCURSES_MINOR"
11013 NCURSES_PATCH="$NCURSES_PATCH"
11014 cf_cv_abi_version="$cf_cv_abi_version"
11015 cf_cv_rel_version="$cf_cv_rel_version"
11016 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
11017 cf_cv_shared_soname='$cf_cv_shared_soname'
11018 cf_cv_shlib_version="$cf_cv_shlib_version"
11019 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
11020 cf_cv_system_name="$cf_cv_system_name"
11026 cat >>$CONFIG_STATUS <<\EOF
11027 for ac_config_target in $ac_config_targets
11029 case "$ac_config_target" in
11030 # Handling of arguments.
11031 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
11032 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11033 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
11034 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
11035 *) { { echo "$as_me:11035: error: invalid argument: $ac_config_target" >&5
11036 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11037 { (exit 1); exit 1; }; };;
11041 # If the user did not use the arguments to specify the items to instantiate,
11042 # then the envvar interface is used. Set only those that are not.
11043 # We use the long form for the default assignment because of an extremely
11044 # bizarre bug on SunOS 4.1.3.
11045 if $ac_need_defaults; then
11046 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11047 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11048 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11051 # Create a temporary directory, and hook for its removal unless debugging.
11054 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11055 trap '{ (exit 1); exit 1; }' 1 2 13 15
11058 # Create a (secure) tmp directory for tmp files.
11061 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
11062 test -n "$tmp" && test -d "$tmp"
11065 tmp=$TMPDIR/cs$$-$RANDOM
11066 (umask 077 && mkdir $tmp)
11069 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
11070 { (exit 1); exit 1; }
11075 cat >>$CONFIG_STATUS <<EOF
11078 # CONFIG_FILES section.
11081 # No need to generate the scripts if there are no CONFIG_FILES.
11082 # This happens for instance when ./config.status config.h
11083 if test -n "\$CONFIG_FILES"; then
11084 # Protect against being on the right side of a sed subst in config.status.
11085 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11086 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11087 s,@SHELL@,$SHELL,;t t
11088 s,@exec_prefix@,$exec_prefix,;t t
11089 s,@prefix@,$prefix,;t t
11090 s,@program_transform_name@,$program_transform_name,;t t
11091 s,@bindir@,$bindir,;t t
11092 s,@sbindir@,$sbindir,;t t
11093 s,@libexecdir@,$libexecdir,;t t
11094 s,@datadir@,$datadir,;t t
11095 s,@sysconfdir@,$sysconfdir,;t t
11096 s,@sharedstatedir@,$sharedstatedir,;t t
11097 s,@localstatedir@,$localstatedir,;t t
11098 s,@libdir@,$libdir,;t t
11099 s,@includedir@,$includedir,;t t
11100 s,@oldincludedir@,$oldincludedir,;t t
11101 s,@infodir@,$infodir,;t t
11102 s,@mandir@,$mandir,;t t
11103 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11104 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11105 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11106 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11107 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11108 s,@build_alias@,$build_alias,;t t
11109 s,@host_alias@,$host_alias,;t t
11110 s,@target_alias@,$target_alias,;t t
11111 s,@ECHO_C@,$ECHO_C,;t t
11112 s,@ECHO_N@,$ECHO_N,;t t
11113 s,@ECHO_T@,$ECHO_T,;t t
11114 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11115 s,@DEFS@,$DEFS,;t t
11116 s,@LIBS@,$LIBS,;t t
11117 s,@top_builddir@,$top_builddir,;t t
11118 s,@build@,$build,;t t
11119 s,@build_cpu@,$build_cpu,;t t
11120 s,@build_vendor@,$build_vendor,;t t
11121 s,@build_os@,$build_os,;t t
11122 s,@host@,$host,;t t
11123 s,@host_cpu@,$host_cpu,;t t
11124 s,@host_vendor@,$host_vendor,;t t
11125 s,@host_os@,$host_os,;t t
11126 s,@target@,$target,;t t
11127 s,@target_cpu@,$target_cpu,;t t
11128 s,@target_vendor@,$target_vendor,;t t
11129 s,@target_os@,$target_os,;t t
11131 s,@CFLAGS@,$CFLAGS,;t t
11132 s,@LDFLAGS@,$LDFLAGS,;t t
11133 s,@CPPFLAGS@,$CPPFLAGS,;t t
11134 s,@ac_ct_CC@,$ac_ct_CC,;t t
11135 s,@EXEEXT@,$EXEEXT,;t t
11136 s,@OBJEXT@,$OBJEXT,;t t
11138 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
11139 s,@PROG_EXT@,$PROG_EXT,;t t
11141 s,@EGREP@,$EGREP,;t t
11142 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11143 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11144 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11145 s,@LN_S@,$LN_S,;t t
11146 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
11147 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
11148 s,@SET_MAKE@,$SET_MAKE,;t t
11149 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
11150 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
11151 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
11152 s,@RANLIB@,$RANLIB,;t t
11153 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11155 s,@ac_ct_LD@,$ac_ct_LD,;t t
11157 s,@ac_ct_AR@,$ac_ct_AR,;t t
11158 s,@ARFLAGS@,$ARFLAGS,;t t
11159 s,@DESTDIR@,$DESTDIR,;t t
11160 s,@BUILD_CC@,$BUILD_CC,;t t
11161 s,@BUILD_CPP@,$BUILD_CPP,;t t
11162 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
11163 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
11164 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
11165 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
11166 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
11167 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
11168 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
11169 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
11170 s,@NCURSES_CONFIG@,$NCURSES_CONFIG,;t t
11171 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
11172 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
11173 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
11174 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
11175 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
11176 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
11177 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
11178 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
11179 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
11180 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
11181 s,@CC_G_OPT@,$CC_G_OPT,;t t
11182 s,@LD_MODEL@,$LD_MODEL,;t t
11183 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
11184 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
11185 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
11186 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
11187 s,@LINK_PROGS@,$LINK_PROGS,;t t
11188 s,@LINK_TESTS@,$LINK_TESTS,;t t
11189 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
11190 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
11191 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
11192 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
11193 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
11194 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
11195 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
11196 s,@PTHREAD@,$PTHREAD,;t t
11197 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
11198 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
11199 s,@ECHO_LINK@,$ECHO_LINK,;t t
11200 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
11201 s,@ADA_TRACE@,$ADA_TRACE,;t t
11202 s,@gnat_exists@,$gnat_exists,;t t
11203 s,@M4_exists@,$M4_exists,;t t
11204 s,@cf_ada_make@,$cf_ada_make,;t t
11205 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
11206 s,@cf_ada_package@,$cf_ada_package,;t t
11207 s,@ADAFLAGS@,$ADAFLAGS,;t t
11208 s,@cf_compile_generics@,$cf_compile_generics,;t t
11209 s,@cf_generic_objects@,$cf_generic_objects,;t t
11210 s,@PRAGMA_UNREF@,$PRAGMA_UNREF,;t t
11211 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
11212 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
11213 s,@TINFO_ARGS2@,$TINFO_ARGS2,;t t
11214 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
11215 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
11216 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
11217 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
11218 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
11219 s,@cross_compiling@,$cross_compiling,;t t
11220 s,@TEST_ARG2@,$TEST_ARG2,;t t
11221 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
11222 s,@NCURSES_COPY2@,$NCURSES_COPY2,;t t
11223 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
11224 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
11225 s,@EXTERNAL_TREE@,$EXTERNAL_TREE,;t t
11230 cat >>$CONFIG_STATUS <<\EOF
11231 # Split the substitutions into bite-sized pieces for seds with
11232 # small command number limits, like on Digital OSF/1 and HP-UX.
11233 ac_max_sed_lines=48
11234 ac_sed_frag=1 # Number of current file.
11235 ac_beg=1 # First line for current file.
11236 ac_end=$ac_max_sed_lines # Line after last line for current file.
11239 while $ac_more_lines; do
11240 if test $ac_beg -gt 1; then
11241 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11243 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11245 if test ! -s $tmp/subs.frag; then
11246 ac_more_lines=false
11248 # The purpose of the label and of the branching condition is to
11249 # speed up the sed processing (if there are no `@' at all, there
11250 # is no need to browse any of the substitutions).
11251 # These are the two extra sed commands mentioned above.
11253 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11254 if test -z "$ac_sed_cmds"; then
11255 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11257 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11259 ac_sed_frag=`expr $ac_sed_frag + 1`
11261 ac_end=`expr $ac_end + $ac_max_sed_lines`
11264 if test -z "$ac_sed_cmds"; then
11267 fi # test -n "$CONFIG_FILES"
11270 cat >>$CONFIG_STATUS <<\EOF
11271 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11272 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11274 - | *:- | *:-:* ) # input from stdin
11276 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11277 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11278 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11279 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11280 * ) ac_file_in=$ac_file.in ;;
11283 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11284 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11285 X"$ac_file" : 'X\(//\)[^/]' \| \
11286 X"$ac_file" : 'X\(//\)$' \| \
11287 X"$ac_file" : 'X\(/\)' \| \
11288 . : '\(.\)' 2>/dev/null ||
11290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11291 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11292 /^X\(\/\/\)$/{ s//\1/; q; }
11293 /^X\(\/\).*/{ s//\1/; q; }
11295 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11296 { case "$ac_dir" in
11297 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
11301 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
11302 case $as_mkdir_dir in
11303 # Skip DOS drivespec
11304 ?:) as_incr_dir=$as_mkdir_dir ;;
11306 as_incr_dir=$as_incr_dir/$as_mkdir_dir
11307 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
11312 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
11313 # A "../" for each directory in $ac_dir_suffix.
11314 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
11316 ac_dir_suffix= ac_dots=
11321 if test -z "$ac_dots"; then
11324 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
11326 [\\/]* | ?:[\\/]* )
11327 ac_srcdir=$srcdir$ac_dir_suffix;
11328 ac_top_srcdir=$srcdir ;;
11329 *) # Relative path.
11330 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
11331 ac_top_srcdir=$ac_dots$srcdir ;;
11335 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11336 *) ac_INSTALL=$ac_dots$INSTALL ;;
11339 if test x"$ac_file" != x-; then
11340 { echo "$as_me:11340: creating $ac_file" >&5
11341 echo "$as_me: creating $ac_file" >&6;}
11344 # Let's still pretend it is `configure' which instantiates (i.e., don't
11345 # use $as_me), people would be surprised to read:
11346 # /* config.h. Generated automatically by config.status. */
11347 configure_input="Generated automatically from `echo $ac_file_in |
11348 sed 's,.*/,,'` by configure."
11350 # First look for the input files in the build tree, otherwise in the
11352 ac_file_inputs=`IFS=:
11353 for f in $ac_file_in; do
11355 -) echo $tmp/stdin ;;
11357 # Absolute (can't be DOS-style, as IFS=:)
11358 test -f "$f" || { { echo "$as_me:11358: error: cannot find input file: $f" >&5
11359 echo "$as_me: error: cannot find input file: $f" >&2;}
11360 { (exit 1); exit 1; }; }
11363 if test -f "$f"; then
11366 elif test -f "$srcdir/$f"; then
11371 { { echo "$as_me:11371: error: cannot find input file: $f" >&5
11372 echo "$as_me: error: cannot find input file: $f" >&2;}
11373 { (exit 1); exit 1; }; }
11376 done` || { (exit 1); exit 1; }
11378 cat >>$CONFIG_STATUS <<EOF
11382 cat >>$CONFIG_STATUS <<\EOF
11384 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11385 s,@configure_input@,$configure_input,;t t
11386 s,@srcdir@,$ac_srcdir,;t t
11387 s,@top_srcdir@,$ac_top_srcdir,;t t
11388 s,@INSTALL@,$ac_INSTALL,;t t
11389 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11391 if test x"$ac_file" != x-; then
11392 mv $tmp/out $ac_file
11400 cat >>$CONFIG_STATUS <<\EOF
11403 # CONFIG_HEADER section.
11406 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11407 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11409 # ac_d sets the value in "#define NAME VALUE" lines.
11410 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11411 ac_dB='[ ].*$,\1#\2'
11414 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
11415 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11416 ac_iB='\([ ]\),\1#\2define\3'
11419 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11420 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11421 ac_uB='$,\1#\2define\3'
11425 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11426 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11428 - | *:- | *:-:* ) # input from stdin
11430 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11431 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11432 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11433 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11434 * ) ac_file_in=$ac_file.in ;;
11437 test x"$ac_file" != x- && { echo "$as_me:11437: creating $ac_file" >&5
11438 echo "$as_me: creating $ac_file" >&6;}
11440 # First look for the input files in the build tree, otherwise in the
11442 ac_file_inputs=`IFS=:
11443 for f in $ac_file_in; do
11445 -) echo $tmp/stdin ;;
11447 # Absolute (can't be DOS-style, as IFS=:)
11448 test -f "$f" || { { echo "$as_me:11448: error: cannot find input file: $f" >&5
11449 echo "$as_me: error: cannot find input file: $f" >&2;}
11450 { (exit 1); exit 1; }; }
11453 if test -f "$f"; then
11456 elif test -f "$srcdir/$f"; then
11461 { { echo "$as_me:11461: error: cannot find input file: $f" >&5
11462 echo "$as_me: error: cannot find input file: $f" >&2;}
11463 { (exit 1); exit 1; }; }
11466 done` || { (exit 1); exit 1; }
11467 # Remove the trailing spaces.
11468 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11472 # Transform confdefs.h into a list of #define's. We won't use it as a sed
11473 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
11474 # be either 'cat' or 'sort'.
11475 cat confdefs.h | uniq >conftest.vals
11477 # Break up conftest.vals because some shells have a limit on
11478 # the size of here documents, and old seds have small limits too.
11480 rm -f conftest.tail
11481 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
11482 while grep . conftest.vals >/dev/null
11484 # Write chunks of a limited-size here document to conftest.frag.
11485 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
11486 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
11487 echo 'CEOF' >> $CONFIG_STATUS
11488 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
11489 rm -f conftest.vals
11490 mv conftest.tail conftest.vals
11492 rm -f conftest.vals
11494 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
11496 echo ' cat >> conftest.edit <<CEOF
11497 /@DEFS@/r conftest.frag
11500 sed -f conftest.edit $tmp/in > $tmp/out
11502 mv $tmp/out $tmp/in
11503 rm -f conftest.edit conftest.frag
11504 ' >> $CONFIG_STATUS
11506 cat >>$CONFIG_STATUS <<\EOF
11507 # Let's still pretend it is `configure' which instantiates (i.e., don't
11508 # use $as_me), people would be surprised to read:
11509 # /* config.h. Generated automatically by config.status. */
11510 if test x"$ac_file" = x-; then
11511 echo "/* Generated automatically by configure. */" >$tmp/config.h
11513 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
11515 cat $tmp/in >>$tmp/config.h
11517 if test x"$ac_file" != x-; then
11518 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
11519 { echo "$as_me:11519: $ac_file is unchanged" >&5
11520 echo "$as_me: $ac_file is unchanged" >&6;}
11522 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11523 X"$ac_file" : 'X\(//\)[^/]' \| \
11524 X"$ac_file" : 'X\(//\)$' \| \
11525 X"$ac_file" : 'X\(/\)' \| \
11526 . : '\(.\)' 2>/dev/null ||
11528 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11529 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11530 /^X\(\/\/\)$/{ s//\1/; q; }
11531 /^X\(\/\).*/{ s//\1/; q; }
11533 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11534 { case "$ac_dir" in
11535 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
11539 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
11540 case $as_mkdir_dir in
11541 # Skip DOS drivespec
11542 ?:) as_incr_dir=$as_mkdir_dir ;;
11544 as_incr_dir=$as_incr_dir/$as_mkdir_dir
11545 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
11552 mv $tmp/config.h $ac_file
11556 rm -f $tmp/config.h
11560 cat >>$CONFIG_STATUS <<\EOF
11563 # CONFIG_COMMANDS section.
11565 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11566 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11567 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11574 cat >>$CONFIG_STATUS <<\EOF
11576 { (exit 0); exit 0; }
11578 chmod +x $CONFIG_STATUS
11579 ac_clean_files=$ac_clean_files_save
11581 # configure is writing to config.log, and then calls config.status.
11582 # config.status does its own redirection, appending to config.log.
11583 # Unfortunately, on DOS this fails, as config.log is still kept open
11584 # by configure, so config.status won't be able to write to it; its
11585 # output is simply discarded. So we exec the FD to /dev/null,
11586 # effectively closing config.log, so it can be properly (re)opened and
11587 # appended to by config.status. When coming back to configure, we
11588 # need to make the FD available again.
11589 if test "$no_create" != yes; then
11592 $SHELL $CONFIG_STATUS || ac_cs_success=false
11594 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11595 # would make configure fail if this is the last instruction.
11596 $ac_cs_success || { (exit 1); exit 1; }
11598 ${MAKE-make} preinstall