2 # From configure.in Revision: 1.60 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20141204.
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 datarootdir='${prefix}/share'
139 datadir='${datarootdir}'
140 sysconfdir='${prefix}/etc'
141 sharedstatedir='${prefix}/com'
142 localstatedir='${prefix}/var'
143 libdir='${exec_prefix}/lib'
144 includedir='${prefix}/include'
145 oldincludedir='/usr/include'
146 infodir='${datarootdir}/info'
147 mandir='${datarootdir}/man'
149 # Identity of this package.
159 # If the previous option needs an argument, assign it.
160 if test -n "$ac_prev"; then
161 eval "$ac_prev=\$ac_option"
166 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
168 # Accept the important Cygnus configure options, so we can diagnose typos.
172 -bindir | --bindir | --bindi | --bind | --bin | --bi)
174 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
177 -build | --build | --buil | --bui | --bu)
178 ac_prev=build_alias ;;
179 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
180 build_alias=$ac_optarg ;;
182 -cache-file | --cache-file | --cache-fil | --cache-fi \
183 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
184 ac_prev=cache_file ;;
185 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
186 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
187 cache_file=$ac_optarg ;;
190 cache_file=config.cache ;;
192 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
194 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
196 datadir=$ac_optarg ;;
198 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
199 | --dataroo | --dataro | --datar)
200 ac_prev=datarootdir ;;
201 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
202 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
203 datarootdir=$ac_optarg ;;
205 -disable-* | --disable-*)
206 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
207 # Reject names that are not valid shell variable names.
208 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
209 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
210 { (exit 1); exit 1; }; }
211 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
212 eval "enable_$ac_feature=no" ;;
214 -enable-* | --enable-*)
215 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
216 # Reject names that are not valid shell variable names.
217 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
218 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
219 { (exit 1); exit 1; }; }
220 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
222 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
225 eval "enable_$ac_feature='$ac_optarg'" ;;
227 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
228 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
229 | --exec | --exe | --ex)
230 ac_prev=exec_prefix ;;
231 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
232 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
233 | --exec=* | --exe=* | --ex=*)
234 exec_prefix=$ac_optarg ;;
236 -gas | --gas | --ga | --g)
237 # Obsolete; use --with-gas.
240 -help | --help | --hel | --he | -h)
242 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
243 ac_init_help=recursive ;;
244 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
245 ac_init_help=short ;;
247 -host | --host | --hos | --ho)
248 ac_prev=host_alias ;;
249 -host=* | --host=* | --hos=* | --ho=*)
250 host_alias=$ac_optarg ;;
252 -includedir | --includedir | --includedi | --included | --include \
253 | --includ | --inclu | --incl | --inc)
254 ac_prev=includedir ;;
255 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
256 | --includ=* | --inclu=* | --incl=* | --inc=*)
257 includedir=$ac_optarg ;;
259 -infodir | --infodir | --infodi | --infod | --info | --inf)
261 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
262 infodir=$ac_optarg ;;
264 -libdir | --libdir | --libdi | --libd)
266 -libdir=* | --libdir=* | --libdi=* | --libd=*)
269 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
270 | --libexe | --libex | --libe)
271 ac_prev=libexecdir ;;
272 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
273 | --libexe=* | --libex=* | --libe=*)
274 libexecdir=$ac_optarg ;;
276 -localstatedir | --localstatedir | --localstatedi | --localstated \
277 | --localstate | --localstat | --localsta | --localst \
278 | --locals | --local | --loca | --loc | --lo)
279 ac_prev=localstatedir ;;
280 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
281 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
282 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
283 localstatedir=$ac_optarg ;;
285 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
287 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
291 # Obsolete; use --without-fp.
294 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
298 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
299 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
302 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
303 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
304 | --oldin | --oldi | --old | --ol | --o)
305 ac_prev=oldincludedir ;;
306 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
307 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
308 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
309 oldincludedir=$ac_optarg ;;
311 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
313 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
316 -program-prefix | --program-prefix | --program-prefi | --program-pref \
317 | --program-pre | --program-pr | --program-p)
318 ac_prev=program_prefix ;;
319 -program-prefix=* | --program-prefix=* | --program-prefi=* \
320 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
321 program_prefix=$ac_optarg ;;
323 -program-suffix | --program-suffix | --program-suffi | --program-suff \
324 | --program-suf | --program-su | --program-s)
325 ac_prev=program_suffix ;;
326 -program-suffix=* | --program-suffix=* | --program-suffi=* \
327 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
328 program_suffix=$ac_optarg ;;
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 ac_prev=program_transform_name ;;
338 -program-transform-name=* | --program-transform-name=* \
339 | --program-transform-nam=* | --program-transform-na=* \
340 | --program-transform-n=* | --program-transform-=* \
341 | --program-transform=* | --program-transfor=* \
342 | --program-transfo=* | --program-transf=* \
343 | --program-trans=* | --program-tran=* \
344 | --progr-tra=* | --program-tr=* | --program-t=*)
345 program_transform_name=$ac_optarg ;;
347 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
348 | -silent | --silent | --silen | --sile | --sil)
351 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
353 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
355 sbindir=$ac_optarg ;;
357 -sharedstatedir | --sharedstatedir | --sharedstatedi \
358 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
359 | --sharedst | --shareds | --shared | --share | --shar \
361 ac_prev=sharedstatedir ;;
362 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
363 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
364 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
366 sharedstatedir=$ac_optarg ;;
368 -site | --site | --sit)
370 -site=* | --site=* | --sit=*)
373 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
375 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
378 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
379 | --syscon | --sysco | --sysc | --sys | --sy)
380 ac_prev=sysconfdir ;;
381 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
382 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
383 sysconfdir=$ac_optarg ;;
385 -target | --target | --targe | --targ | --tar | --ta | --t)
386 ac_prev=target_alias ;;
387 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
388 target_alias=$ac_optarg ;;
390 -v | -verbose | --verbose | --verbos | --verbo | --verb)
393 -version | --version | --versio | --versi | --vers | -V)
397 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid package name: $ac_package" >&2
401 { (exit 1); exit 1; }; }
402 ac_package=`echo $ac_package| sed 's/-/_/g'`
404 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
407 eval "with_$ac_package='$ac_optarg'" ;;
409 -without-* | --without-*)
410 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
411 # Reject names that are not valid shell variable names.
412 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
413 { echo "$as_me: error: invalid package name: $ac_package" >&2
414 { (exit 1); exit 1; }; }
415 ac_package=`echo $ac_package | sed 's/-/_/g'`
416 eval "with_$ac_package=no" ;;
419 # Obsolete; use --with-x.
422 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
423 | --x-incl | --x-inc | --x-in | --x-i)
424 ac_prev=x_includes ;;
425 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
426 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
427 x_includes=$ac_optarg ;;
429 -x-libraries | --x-libraries | --x-librarie | --x-librari \
430 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
431 ac_prev=x_libraries ;;
432 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
433 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
434 x_libraries=$ac_optarg ;;
436 -*) { echo "$as_me: error: unrecognized option: $ac_option
437 Try \`$0 --help' for more information." >&2
438 { (exit 1); exit 1; }; }
442 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
443 # Reject names that are not valid shell variable names.
444 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
445 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
446 { (exit 1); exit 1; }; }
447 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
448 eval "$ac_envvar='$ac_optarg'"
452 # FIXME: should be removed in autoconf 3.0.
453 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
454 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
455 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
456 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
462 if test -n "$ac_prev"; then
463 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
464 { echo "$as_me: error: missing argument to $ac_option" >&2
465 { (exit 1); exit 1; }; }
468 # Be sure to have absolute paths.
469 for ac_var in exec_prefix prefix
471 eval ac_val=$`echo $ac_var`
473 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
474 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
475 { (exit 1); exit 1; }; };;
479 # Be sure to have absolute paths.
480 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
481 localstatedir libdir includedir oldincludedir infodir mandir
483 eval ac_val=$`echo $ac_var`
485 [\\/$]* | ?:[\\/]* ) ;;
486 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
487 { (exit 1); exit 1; }; };;
491 # There might be people who depend on the old broken behavior: `$host'
492 # used to hold the argument of --host etc.
497 # FIXME: should be removed in autoconf 3.0.
498 if test "x$host_alias" != x; then
499 if test "x$build_alias" = x; then
500 cross_compiling=maybe
501 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
502 If a cross compiler is detected then cross compile mode will be used." >&2
503 elif test "x$build_alias" != "x$host_alias"; then
509 test -n "$host_alias" && ac_tool_prefix=$host_alias-
511 test "$silent" = yes && exec 6>/dev/null
513 # Find the source files, if location was not specified.
514 if test -z "$srcdir"; then
515 ac_srcdir_defaulted=yes
516 # Try the directory containing this script, then its parent.
518 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
519 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
521 if test ! -r $srcdir/$ac_unique_file; then
525 ac_srcdir_defaulted=no
527 if test ! -r $srcdir/$ac_unique_file; then
528 if test "$ac_srcdir_defaulted" = yes; then
529 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
530 { (exit 1); exit 1; }; }
532 { echo "$as_me: error: cannot find sources in $srcdir" >&2
533 { (exit 1); exit 1; }; }
536 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
537 ac_env_build_alias_set=${build_alias+set}
538 ac_env_build_alias_value=$build_alias
539 ac_cv_env_build_alias_set=${build_alias+set}
540 ac_cv_env_build_alias_value=$build_alias
541 ac_env_host_alias_set=${host_alias+set}
542 ac_env_host_alias_value=$host_alias
543 ac_cv_env_host_alias_set=${host_alias+set}
544 ac_cv_env_host_alias_value=$host_alias
545 ac_env_target_alias_set=${target_alias+set}
546 ac_env_target_alias_value=$target_alias
547 ac_cv_env_target_alias_set=${target_alias+set}
548 ac_cv_env_target_alias_value=$target_alias
549 ac_env_CC_set=${CC+set}
551 ac_cv_env_CC_set=${CC+set}
552 ac_cv_env_CC_value=$CC
553 ac_env_CFLAGS_set=${CFLAGS+set}
554 ac_env_CFLAGS_value=$CFLAGS
555 ac_cv_env_CFLAGS_set=${CFLAGS+set}
556 ac_cv_env_CFLAGS_value=$CFLAGS
557 ac_env_LDFLAGS_set=${LDFLAGS+set}
558 ac_env_LDFLAGS_value=$LDFLAGS
559 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
560 ac_cv_env_LDFLAGS_value=$LDFLAGS
561 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
562 ac_env_CPPFLAGS_value=$CPPFLAGS
563 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
564 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
565 ac_env_CPP_set=${CPP+set}
566 ac_env_CPP_value=$CPP
567 ac_cv_env_CPP_set=${CPP+set}
568 ac_cv_env_CPP_value=$CPP
571 # Report the --help message.
573 if test "$ac_init_help" = "long"; then
574 # Omit some internal or obsolete options to make the list less imposing.
575 # This message is too long to be a string in the A/UX 3.1 sh.
577 \`configure' configures this package to adapt to many kinds of systems.
579 Usage: $0 [OPTION]... [VAR=VALUE]...
581 To assign environment variables (e.g., CC, CFLAGS...), specify them as
582 VAR=VALUE. See below for descriptions of some of the useful variables.
584 Defaults for the options are specified in brackets.
587 -h, --help display this help and exit
588 --help=short display options specific to this package
589 --help=recursive display the short help of all the included packages
590 -V, --version display version information and exit
591 -q, --quiet, --silent do not print \`checking...' messages
592 --cache-file=FILE cache test results in FILE [disabled]
593 -C, --config-cache alias for \`--cache-file=config.cache'
594 -n, --no-create do not create output files
595 --srcdir=DIR find the sources in DIR [configure dir or \`..']
600 Installation directories:
601 --prefix=PREFIX install architecture-independent files in PREFIX
603 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
606 By default, \`make install' will install all the files in
607 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
608 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
609 for instance \`--prefix=\$HOME'.
611 For better control, use the options below.
613 Fine tuning of the installation directories:
614 --bindir=DIR user executables [EPREFIX/bin]
615 --sbindir=DIR system admin executables [EPREFIX/sbin]
616 --libexecdir=DIR program executables [EPREFIX/libexec]
617 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
618 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
619 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
620 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
621 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
622 --libdir=DIR object code libraries [EPREFIX/lib]
623 --includedir=DIR C header files [PREFIX/include]
624 --oldincludedir=DIR C header files for non-gcc [/usr/include]
625 --infodir=DIR info documentation [DATAROOTDIR/info]
626 --mandir=DIR man documentation [DATAROOTDIR/man]
632 --program-prefix=PREFIX prepend PREFIX to installed program names
633 --program-suffix=SUFFIX append SUFFIX to installed program names
634 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
637 --build=BUILD configure for building on BUILD [guessed]
638 --host=HOST build programs to run on HOST [BUILD]
639 --target=TARGET configure for building compilers for TARGET [HOST]
643 if test -n "$ac_init_help"; then
648 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
649 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
652 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
653 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
655 --with-system-type=XXX test: override derived host system-type
656 --with-pkg-config{=path} enable/disable use of pkg-config
657 --with-pkg-config-libdir=XXX use given directory for installing pc-files
658 --without-tests suppress build with test-programs
659 --enable-mixed-case tic should assume mixed-case filenames
660 --with-install-prefix prefixes actual install-location ($DESTDIR)
661 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
662 --with-build-cc=XXX the build C compiler ($BUILD_CC)
663 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
664 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
665 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
666 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
667 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
668 Options to Specify the Libraries Built/Used:
669 --with-shared generate shared C-objects (needed for --with-ada-sharedlib)
670 --enable-widec compile with wide-char/UTF-8 code
671 --with-curses-dir=DIR directory in which (n)curses is installed
672 --with-lib-prefix override library-prefix
673 --with-shlib-version=X Specify rel or abi version for shared libs
674 --enable-rpath-link link sample programs with rpath option
675 Fine-Tuning Your Configuration:
676 --enable-broken_linker compile with broken-linker support code
677 --disable-largefile omit support for large files
678 --with-rcs-ids compile-in RCS identifiers
680 --disable-ext-funcs disable function-extensions
681 --enable-const compile with extra/non-standard const
683 --without-develop disable development options
685 --with-pthread use POSIX thread library
686 --enable-weak-symbols enable weak-symbols for pthreads
687 --enable-reentrant compile with experimental reentrant code
688 --with-wrap-prefix=XXX override prefix used for public variables
689 Testing/development Options:
690 --disable-echo do not display "compiling" commands
691 --enable-warnings build: turn on GCC compiler warnings
692 --enable-assertions test: turn on generation of assertion code
693 --enable-expanded test: generate functions for certain macros
694 --disable-macros test: use functions rather than macros
695 --with-trace test: add trace() function to all models of ncurses
696 --disable-gnat-projects test: disable GNAT projects even if usable
697 Ada95 Binding Options:
698 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
699 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
700 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
701 --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
703 Some influential environment variables:
704 CC C compiler command
705 CFLAGS C compiler flags
706 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
707 nonstandard directory <lib dir>
708 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
709 headers in a nonstandard directory <include dir>
712 Use these variables to override the choices made by `configure' or to help
713 it to find libraries and programs with nonstandard names/locations.
718 if test "$ac_init_help" = "recursive"; then
719 # If there are subdirs, report their specific --help.
721 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
723 # A "../" for each directory in /$ac_subdir.
724 ac_dots=`echo $ac_subdir |
725 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
728 .) # No --srcdir option. We are building in place.
729 ac_sub_srcdir=$srcdir ;;
730 [\\/]* | ?:[\\/]* ) # Absolute path.
731 ac_sub_srcdir=$srcdir/$ac_subdir ;;
733 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
736 # Check for guested configure; otherwise get Cygnus style configure.
737 if test -f $ac_sub_srcdir/configure.gnu; then
739 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
740 elif test -f $ac_sub_srcdir/configure; then
742 $SHELL $ac_sub_srcdir/configure --help=recursive
743 elif test -f $ac_sub_srcdir/configure.ac ||
744 test -f $ac_sub_srcdir/configure.in; then
748 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
754 test -n "$ac_init_help" && exit 0
755 if $ac_init_version; then
758 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
759 Free Software Foundation, Inc.
760 This configure script is free software; the Free Software Foundation
761 gives unlimited permission to copy, distribute and modify it.
767 This file contains any messages produced by compilers while
768 running configure, to aid debugging if configure makes a mistake.
770 It was created by $as_me, which was
771 generated by GNU Autoconf 2.52.20141204. Invocation command line was
782 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
783 uname -m = `(uname -m) 2>/dev/null || echo unknown`
784 uname -r = `(uname -r) 2>/dev/null || echo unknown`
785 uname -s = `(uname -s) 2>/dev/null || echo unknown`
786 uname -v = `(uname -v) 2>/dev/null || echo unknown`
788 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
789 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
791 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
792 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
793 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
794 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
795 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
796 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
797 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
811 # Keep a trace of the command line.
812 # Strip out --no-create and --no-recursion so they do not pile up.
813 # Also quote any args containing shell meta-characters.
819 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
820 | --no-cr | --no-c) ;;
821 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
822 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
823 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
824 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
825 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
827 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
830 # Get rid of the leading space.
833 # When interrupted or exit'd, cleanup temporary files, and complete
834 # config.log. We remove comments because anyway the quotes in there
835 # would cause problems or look ugly.
837 # Save into config.log some information that might help in debugging.
839 echo "## ----------------- ##" >&5
840 echo "## Cache variables. ##" >&5
841 echo "## ----------------- ##" >&5
843 # The following way of writing the cache mishandles newlines in values,
846 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
849 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
850 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
854 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
858 sed "/^$/d" confdefs.h >conftest.log
859 if test -s conftest.log; then
861 echo "## ------------ ##" >&5
862 echo "## confdefs.h. ##" >&5
863 echo "## ------------ ##" >&5
868 test "$ac_signal" != 0 &&
869 echo "$as_me: caught signal $ac_signal" >&5
870 echo "$as_me: exit $exit_status" >&5
871 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
874 for ac_signal in 1 2 13 15; do
875 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
879 # confdefs.h avoids OS command line length limits that DEFS can exceed.
880 rm -rf conftest* confdefs.h
881 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
884 # Let the site file select an alternate cache file if it wants to.
885 # Prefer explicitly selected file to automatically selected ones.
886 if test -z "$CONFIG_SITE"; then
887 if test "x$prefix" != xNONE; then
888 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
890 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
893 for ac_site_file in $CONFIG_SITE; do
894 if test -r "$ac_site_file"; then
895 { echo "$as_me:895: loading site script $ac_site_file" >&5
896 echo "$as_me: loading site script $ac_site_file" >&6;}
897 cat "$ac_site_file" >&5
902 if test -r "$cache_file"; then
903 # Some versions of bash will fail to source /dev/null (special
904 # files actually), so we avoid doing that.
905 if test -f "$cache_file"; then
906 { echo "$as_me:906: loading cache $cache_file" >&5
907 echo "$as_me: loading cache $cache_file" >&6;}
909 [\\/]* | ?:[\\/]* ) . $cache_file;;
914 { echo "$as_me:914: creating cache $cache_file" >&5
915 echo "$as_me: creating cache $cache_file" >&6;}
919 # Check that the precious variables saved in the cache have kept the same
921 ac_cache_corrupted=false
922 for ac_var in `(set) 2>&1 |
923 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
924 eval ac_old_set=\$ac_cv_env_${ac_var}_set
925 eval ac_new_set=\$ac_env_${ac_var}_set
926 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
927 eval ac_new_val="\$ac_env_${ac_var}_value"
928 case $ac_old_set,$ac_new_set in
930 { echo "$as_me:930: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
931 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
932 ac_cache_corrupted=: ;;
934 { echo "$as_me:934: error: \`$ac_var' was not set in the previous run" >&5
935 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
936 ac_cache_corrupted=: ;;
939 if test "x$ac_old_val" != "x$ac_new_val"; then
940 { echo "$as_me:940: error: \`$ac_var' has changed since the previous run:" >&5
941 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
942 { echo "$as_me:942: former value: $ac_old_val" >&5
943 echo "$as_me: former value: $ac_old_val" >&2;}
944 { echo "$as_me:944: current value: $ac_new_val" >&5
945 echo "$as_me: current value: $ac_new_val" >&2;}
949 # Pass precious variables to config.status. It doesn't matter if
950 # we pass some twice (in addition to the command line arguments).
951 if test "$ac_new_set" = set; then
953 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
954 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
955 ac_configure_args="$ac_configure_args '$ac_arg'"
957 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
962 if $ac_cache_corrupted; then
963 { echo "$as_me:963: error: changes in the environment can compromise the build" >&5
964 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
965 { { echo "$as_me:965: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
966 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
967 { (exit 1); exit 1; }; }
971 ac_cpp='$CPP $CPPFLAGS'
972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
975 ac_main_return=return
977 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
978 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
980 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
981 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
983 echo "#! $SHELL" >conftest.sh
984 echo "exit 0" >>conftest.sh
986 if { (echo "$as_me:986: PATH=\".;.\"; conftest.sh") >&5
987 (PATH=".;."; conftest.sh) 2>&5
989 echo "$as_me:989: \$? = $ac_status" >&5
990 (exit $ac_status); }; then
991 ac_path_separator=';'
995 PATH_SEPARATOR="$ac_path_separator"
998 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1003 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1004 if test -f $ac_dir/install-sh; then
1006 ac_install_sh="$ac_aux_dir/install-sh -c"
1008 elif test -f $ac_dir/install.sh; then
1010 ac_install_sh="$ac_aux_dir/install.sh -c"
1012 elif test -f $ac_dir/shtool; then
1014 ac_install_sh="$ac_aux_dir/shtool install -c"
1018 if test -z "$ac_aux_dir"; then
1019 { { echo "$as_me:1019: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1020 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1021 { (exit 1); exit 1; }; }
1023 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1024 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1025 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1027 # Make sure we can run config.sub.
1028 $ac_config_sub sun4 >/dev/null 2>&1 ||
1029 { { echo "$as_me:1029: error: cannot run $ac_config_sub" >&5
1030 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1031 { (exit 1); exit 1; }; }
1033 echo "$as_me:1033: checking build system type" >&5
1034 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1035 if test "${ac_cv_build+set}" = set; then
1036 echo $ECHO_N "(cached) $ECHO_C" >&6
1038 ac_cv_build_alias=$build_alias
1039 test -z "$ac_cv_build_alias" &&
1040 ac_cv_build_alias=`$ac_config_guess`
1041 test -z "$ac_cv_build_alias" &&
1042 { { echo "$as_me:1042: error: cannot guess build type; you must specify one" >&5
1043 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1044 { (exit 1); exit 1; }; }
1045 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1046 { { echo "$as_me:1046: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1047 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1048 { (exit 1); exit 1; }; }
1051 echo "$as_me:1051: result: $ac_cv_build" >&5
1052 echo "${ECHO_T}$ac_cv_build" >&6
1054 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1055 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1056 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1058 echo "$as_me:1058: checking host system type" >&5
1059 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1060 if test "${ac_cv_host+set}" = set; then
1061 echo $ECHO_N "(cached) $ECHO_C" >&6
1063 ac_cv_host_alias=$host_alias
1064 test -z "$ac_cv_host_alias" &&
1065 ac_cv_host_alias=$ac_cv_build_alias
1066 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1067 { { echo "$as_me:1067: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1068 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1069 { (exit 1); exit 1; }; }
1072 echo "$as_me:1072: result: $ac_cv_host" >&5
1073 echo "${ECHO_T}$ac_cv_host" >&6
1075 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1076 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1077 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1079 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1080 echo "$as_me:1080: checking target system type" >&5
1081 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1082 if test "${ac_cv_target+set}" = set; then
1083 echo $ECHO_N "(cached) $ECHO_C" >&6
1085 ac_cv_target_alias=$target_alias
1086 test "x$ac_cv_target_alias" = "x" &&
1087 ac_cv_target_alias=$ac_cv_host_alias
1088 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1089 { { echo "$as_me:1089: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1090 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1091 { (exit 1); exit 1; }; }
1094 echo "$as_me:1094: result: $ac_cv_target" >&5
1095 echo "${ECHO_T}$ac_cv_target" >&6
1096 target=$ac_cv_target
1097 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1098 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1099 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1101 # The aliases save the names the user supplied, while $host etc.
1102 # will get canonicalized.
1103 test -n "$target_alias" &&
1104 test "$program_prefix$program_suffix$program_transform_name" = \
1106 program_prefix=${target_alias}-
1107 system_name="$host_os"
1109 system_name="`(uname -s -r) 2>/dev/null`"
1110 if test -z "$system_name" ; then
1111 system_name="`(hostname) 2>/dev/null`"
1114 test -n "$system_name" &&
1115 cat >>confdefs.h <<EOF
1116 #define SYSTEM_NAME "$system_name"
1119 if test "${cf_cv_system_name+set}" = set; then
1120 echo $ECHO_N "(cached) $ECHO_C" >&6
1122 cf_cv_system_name="$system_name"
1125 test -z "$system_name" && system_name="$cf_cv_system_name"
1126 test -n "$cf_cv_system_name" && echo "$as_me:1126: result: Configuring for $cf_cv_system_name" >&5
1127 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1129 if test ".$system_name" != ".$cf_cv_system_name" ; then
1130 echo "$as_me:1130: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1131 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1132 { { echo "$as_me:1132: error: \"Please remove config.cache and try again.\"" >&5
1133 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1134 { (exit 1); exit 1; }; }
1137 # Check whether --with-system-type or --without-system-type was given.
1138 if test "${with_system_type+set}" = set; then
1139 withval="$with_system_type"
1140 { echo "$as_me:1140: WARNING: overriding system type to $withval" >&5
1141 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1142 cf_cv_system_name=$withval
1147 ### Save the given $CFLAGS to allow user-override.
1148 cf_user_CFLAGS="$CFLAGS"
1150 ### Default install-location
1152 echo "$as_me:1152: checking for prefix" >&5
1153 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1154 if test "x$prefix" = "xNONE" ; then
1155 case "$cf_cv_system_name" in
1156 # non-vendor systems don't have a conflict
1157 (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1160 (*) prefix=$ac_default_prefix
1164 echo "$as_me:1164: result: $prefix" >&5
1165 echo "${ECHO_T}$prefix" >&6
1167 if test "x$prefix" = "xNONE" ; then
1168 echo "$as_me:1168: checking for default include-directory" >&5
1169 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1170 test -n "$verbose" && echo 1>&6
1173 $includedir/ncurses \
1175 $prefix/include/ncurses \
1176 /usr/local/include \
1177 /usr/local/include/ncurses \
1179 /usr/include/ncurses
1181 cf_dir=`eval echo $cf_symbol`
1182 if test -f $cf_dir/curses.h ; then
1183 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1184 includedir="$cf_symbol"
1185 test -n "$verbose" && echo $ac_n " found " 1>&6
1189 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1191 echo "$as_me:1191: result: $includedir" >&5
1192 echo "${ECHO_T}$includedir" >&6
1195 ### Checks for programs.
1198 ac_cpp='$CPP $CPPFLAGS'
1199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1202 ac_main_return=return
1203 if test -n "$ac_tool_prefix"; then
1204 for ac_prog in gnatgcc gcc cc
1206 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1207 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1208 echo "$as_me:1208: checking for $ac_word" >&5
1209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1210 if test "${ac_cv_prog_CC+set}" = set; then
1211 echo $ECHO_N "(cached) $ECHO_C" >&6
1213 if test -n "$CC"; then
1214 ac_cv_prog_CC="$CC" # Let the user override the test.
1216 ac_save_IFS=$IFS; IFS=$ac_path_separator
1218 for ac_dir in $ac_dummy; do
1220 test -z "$ac_dir" && ac_dir=.
1221 $as_executable_p "$ac_dir/$ac_word" || continue
1222 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1223 echo "$as_me:1223: found $ac_dir/$ac_word" >&5
1230 if test -n "$CC"; then
1231 echo "$as_me:1231: result: $CC" >&5
1232 echo "${ECHO_T}$CC" >&6
1234 echo "$as_me:1234: result: no" >&5
1235 echo "${ECHO_T}no" >&6
1238 test -n "$CC" && break
1241 if test -z "$CC"; then
1243 for ac_prog in gnatgcc gcc cc
1245 # Extract the first word of "$ac_prog", so it can be a program name with args.
1246 set dummy $ac_prog; ac_word=$2
1247 echo "$as_me:1247: checking for $ac_word" >&5
1248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1249 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1250 echo $ECHO_N "(cached) $ECHO_C" >&6
1252 if test -n "$ac_ct_CC"; then
1253 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1255 ac_save_IFS=$IFS; IFS=$ac_path_separator
1257 for ac_dir in $ac_dummy; do
1259 test -z "$ac_dir" && ac_dir=.
1260 $as_executable_p "$ac_dir/$ac_word" || continue
1261 ac_cv_prog_ac_ct_CC="$ac_prog"
1262 echo "$as_me:1262: found $ac_dir/$ac_word" >&5
1268 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1269 if test -n "$ac_ct_CC"; then
1270 echo "$as_me:1270: result: $ac_ct_CC" >&5
1271 echo "${ECHO_T}$ac_ct_CC" >&6
1273 echo "$as_me:1273: result: no" >&5
1274 echo "${ECHO_T}no" >&6
1277 test -n "$ac_ct_CC" && break
1283 test -z "$CC" && { { echo "$as_me:1283: error: no acceptable cc found in \$PATH" >&5
1284 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1285 { (exit 1); exit 1; }; }
1287 # Provide some information about the compiler.
1288 echo "$as_me:1288:" \
1289 "checking for C compiler version" >&5
1290 ac_compiler=`set X $ac_compile; echo $2`
1291 { (eval echo "$as_me:1291: \"$ac_compiler --version </dev/null >&5\"") >&5
1292 (eval $ac_compiler --version </dev/null >&5) 2>&5
1294 echo "$as_me:1294: \$? = $ac_status" >&5
1295 (exit $ac_status); }
1296 { (eval echo "$as_me:1296: \"$ac_compiler -v </dev/null >&5\"") >&5
1297 (eval $ac_compiler -v </dev/null >&5) 2>&5
1299 echo "$as_me:1299: \$? = $ac_status" >&5
1300 (exit $ac_status); }
1301 { (eval echo "$as_me:1301: \"$ac_compiler -V </dev/null >&5\"") >&5
1302 (eval $ac_compiler -V </dev/null >&5) 2>&5
1304 echo "$as_me:1304: \$? = $ac_status" >&5
1305 (exit $ac_status); }
1307 cat >conftest.$ac_ext <<_ACEOF
1308 #line 1308 "configure"
1309 #include "confdefs.h"
1319 ac_clean_files_save=$ac_clean_files
1320 ac_clean_files="$ac_clean_files a.out a.exe"
1321 # Try to create an executable without -o first, disregard a.out.
1322 # It will help us diagnose broken compilers, and finding out an intuition
1324 echo "$as_me:1324: checking for C compiler default output" >&5
1325 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1326 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1327 if { (eval echo "$as_me:1327: \"$ac_link_default\"") >&5
1328 (eval $ac_link_default) 2>&5
1330 echo "$as_me:1330: \$? = $ac_status" >&5
1331 (exit $ac_status); }; then
1332 # Find the output, starting from the most likely. This scheme is
1333 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1335 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1336 ls a.out conftest 2>/dev/null;
1337 ls a.* conftest.* 2>/dev/null`; do
1339 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1340 a.out ) # We found the default executable, but exeext='' is most
1343 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1344 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1351 echo "$as_me: failed program was:" >&5
1352 cat conftest.$ac_ext >&5
1353 { { echo "$as_me:1353: error: C compiler cannot create executables" >&5
1354 echo "$as_me: error: C compiler cannot create executables" >&2;}
1355 { (exit 77); exit 77; }; }
1358 ac_exeext=$ac_cv_exeext
1359 echo "$as_me:1359: result: $ac_file" >&5
1360 echo "${ECHO_T}$ac_file" >&6
1362 # Check the compiler produces executables we can run. If not, either
1363 # the compiler is broken, or we cross compile.
1364 echo "$as_me:1364: checking whether the C compiler works" >&5
1365 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1366 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1367 # If not cross compiling, check that we can run a simple program.
1368 if test "$cross_compiling" != yes; then
1369 if { ac_try='./$ac_file'
1370 { (eval echo "$as_me:1370: \"$ac_try\"") >&5
1373 echo "$as_me:1373: \$? = $ac_status" >&5
1374 (exit $ac_status); }; }; then
1377 if test "$cross_compiling" = maybe; then
1380 { { echo "$as_me:1380: error: cannot run C compiled programs.
1381 If you meant to cross compile, use \`--host'." >&5
1382 echo "$as_me: error: cannot run C compiled programs.
1383 If you meant to cross compile, use \`--host'." >&2;}
1384 { (exit 1); exit 1; }; }
1388 echo "$as_me:1388: result: yes" >&5
1389 echo "${ECHO_T}yes" >&6
1391 rm -f a.out a.exe conftest$ac_cv_exeext
1392 ac_clean_files=$ac_clean_files_save
1393 # Check the compiler produces executables we can run. If not, either
1394 # the compiler is broken, or we cross compile.
1395 echo "$as_me:1395: checking whether we are cross compiling" >&5
1396 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1397 echo "$as_me:1397: result: $cross_compiling" >&5
1398 echo "${ECHO_T}$cross_compiling" >&6
1400 echo "$as_me:1400: checking for executable suffix" >&5
1401 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1402 if { (eval echo "$as_me:1402: \"$ac_link\"") >&5
1403 (eval $ac_link) 2>&5
1405 echo "$as_me:1405: \$? = $ac_status" >&5
1406 (exit $ac_status); }; then
1407 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1408 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1409 # work properly (i.e., refer to `conftest.exe'), while it won't with
1411 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1413 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1414 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1421 { { echo "$as_me:1421: error: cannot compute EXEEXT: cannot compile and link" >&5
1422 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1423 { (exit 1); exit 1; }; }
1426 rm -f conftest$ac_cv_exeext
1427 echo "$as_me:1427: result: $ac_cv_exeext" >&5
1428 echo "${ECHO_T}$ac_cv_exeext" >&6
1430 rm -f conftest.$ac_ext
1431 EXEEXT=$ac_cv_exeext
1433 echo "$as_me:1433: checking for object suffix" >&5
1434 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1435 if test "${ac_cv_objext+set}" = set; then
1436 echo $ECHO_N "(cached) $ECHO_C" >&6
1438 cat >conftest.$ac_ext <<_ACEOF
1439 #line 1439 "configure"
1440 #include "confdefs.h"
1450 rm -f conftest.o conftest.obj
1451 if { (eval echo "$as_me:1451: \"$ac_compile\"") >&5
1452 (eval $ac_compile) 2>&5
1454 echo "$as_me:1454: \$? = $ac_status" >&5
1455 (exit $ac_status); }; then
1456 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1458 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1459 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1464 echo "$as_me: failed program was:" >&5
1465 cat conftest.$ac_ext >&5
1466 { { echo "$as_me:1466: error: cannot compute OBJEXT: cannot compile" >&5
1467 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1468 { (exit 1); exit 1; }; }
1471 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1473 echo "$as_me:1473: result: $ac_cv_objext" >&5
1474 echo "${ECHO_T}$ac_cv_objext" >&6
1475 OBJEXT=$ac_cv_objext
1477 echo "$as_me:1477: checking whether we are using the GNU C compiler" >&5
1478 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1479 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1480 echo $ECHO_N "(cached) $ECHO_C" >&6
1482 cat >conftest.$ac_ext <<_ACEOF
1483 #line 1483 "configure"
1484 #include "confdefs.h"
1497 rm -f conftest.$ac_objext
1498 if { (eval echo "$as_me:1498: \"$ac_compile\"") >&5
1499 (eval $ac_compile) 2>&5
1501 echo "$as_me:1501: \$? = $ac_status" >&5
1502 (exit $ac_status); } &&
1503 { ac_try='test -s conftest.$ac_objext'
1504 { (eval echo "$as_me:1504: \"$ac_try\"") >&5
1507 echo "$as_me:1507: \$? = $ac_status" >&5
1508 (exit $ac_status); }; }; then
1511 echo "$as_me: failed program was:" >&5
1512 cat conftest.$ac_ext >&5
1515 rm -f conftest.$ac_objext conftest.$ac_ext
1516 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1519 echo "$as_me:1519: result: $ac_cv_c_compiler_gnu" >&5
1520 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1521 GCC=`test $ac_compiler_gnu = yes && echo yes`
1522 ac_test_CFLAGS=${CFLAGS+set}
1523 ac_save_CFLAGS=$CFLAGS
1525 echo "$as_me:1525: checking whether $CC accepts -g" >&5
1526 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1527 if test "${ac_cv_prog_cc_g+set}" = set; then
1528 echo $ECHO_N "(cached) $ECHO_C" >&6
1530 cat >conftest.$ac_ext <<_ACEOF
1531 #line 1531 "configure"
1532 #include "confdefs.h"
1542 rm -f conftest.$ac_objext
1543 if { (eval echo "$as_me:1543: \"$ac_compile\"") >&5
1544 (eval $ac_compile) 2>&5
1546 echo "$as_me:1546: \$? = $ac_status" >&5
1547 (exit $ac_status); } &&
1548 { ac_try='test -s conftest.$ac_objext'
1549 { (eval echo "$as_me:1549: \"$ac_try\"") >&5
1552 echo "$as_me:1552: \$? = $ac_status" >&5
1553 (exit $ac_status); }; }; then
1556 echo "$as_me: failed program was:" >&5
1557 cat conftest.$ac_ext >&5
1560 rm -f conftest.$ac_objext conftest.$ac_ext
1562 echo "$as_me:1562: result: $ac_cv_prog_cc_g" >&5
1563 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1564 if test "$ac_test_CFLAGS" = set; then
1565 CFLAGS=$ac_save_CFLAGS
1566 elif test $ac_cv_prog_cc_g = yes; then
1567 if test "$GCC" = yes; then
1573 if test "$GCC" = yes; then
1579 # Some people use a C++ compiler to compile C. Since we use `exit',
1580 # in C++ we need to declare it. In case someone uses the same compiler
1581 # for both compiling C and C++ we need to have the C++ compiler decide
1582 # the declaration of exit, since it's the most demanding environment.
1583 cat >conftest.$ac_ext <<_ACEOF
1588 rm -f conftest.$ac_objext
1589 if { (eval echo "$as_me:1589: \"$ac_compile\"") >&5
1590 (eval $ac_compile) 2>&5
1592 echo "$as_me:1592: \$? = $ac_status" >&5
1593 (exit $ac_status); } &&
1594 { ac_try='test -s conftest.$ac_objext'
1595 { (eval echo "$as_me:1595: \"$ac_try\"") >&5
1598 echo "$as_me:1598: \$? = $ac_status" >&5
1599 (exit $ac_status); }; }; then
1600 for ac_declaration in \
1602 '#include <stdlib.h>' \
1603 'extern "C" void std::exit (int) throw (); using std::exit;' \
1604 'extern "C" void std::exit (int); using std::exit;' \
1605 'extern "C" void exit (int) throw ();' \
1606 'extern "C" void exit (int);' \
1609 cat >conftest.$ac_ext <<_ACEOF
1610 #line 1610 "configure"
1611 #include "confdefs.h"
1622 rm -f conftest.$ac_objext
1623 if { (eval echo "$as_me:1623: \"$ac_compile\"") >&5
1624 (eval $ac_compile) 2>&5
1626 echo "$as_me:1626: \$? = $ac_status" >&5
1627 (exit $ac_status); } &&
1628 { ac_try='test -s conftest.$ac_objext'
1629 { (eval echo "$as_me:1629: \"$ac_try\"") >&5
1632 echo "$as_me:1632: \$? = $ac_status" >&5
1633 (exit $ac_status); }; }; then
1636 echo "$as_me: failed program was:" >&5
1637 cat conftest.$ac_ext >&5
1640 rm -f conftest.$ac_objext conftest.$ac_ext
1641 cat >conftest.$ac_ext <<_ACEOF
1642 #line 1642 "configure"
1643 #include "confdefs.h"
1653 rm -f conftest.$ac_objext
1654 if { (eval echo "$as_me:1654: \"$ac_compile\"") >&5
1655 (eval $ac_compile) 2>&5
1657 echo "$as_me:1657: \$? = $ac_status" >&5
1658 (exit $ac_status); } &&
1659 { ac_try='test -s conftest.$ac_objext'
1660 { (eval echo "$as_me:1660: \"$ac_try\"") >&5
1663 echo "$as_me:1663: \$? = $ac_status" >&5
1664 (exit $ac_status); }; }; then
1667 echo "$as_me: failed program was:" >&5
1668 cat conftest.$ac_ext >&5
1670 rm -f conftest.$ac_objext conftest.$ac_ext
1673 if test -n "$ac_declaration"; then
1674 echo '#ifdef __cplusplus' >>confdefs.h
1675 echo $ac_declaration >>confdefs.h
1676 echo '#endif' >>confdefs.h
1680 echo "$as_me: failed program was:" >&5
1681 cat conftest.$ac_ext >&5
1683 rm -f conftest.$ac_objext conftest.$ac_ext
1685 ac_cpp='$CPP $CPPFLAGS'
1686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1689 ac_main_return=return
1692 if test "$GCC" = yes ; then
1693 echo "$as_me:1693: checking version of $CC" >&5
1694 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1695 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
1696 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1697 echo "$as_me:1697: result: $GCC_VERSION" >&5
1698 echo "${ECHO_T}$GCC_VERSION" >&6
1701 echo "$as_me:1701: checking for $CC option to accept ANSI C" >&5
1702 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1703 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
1706 ac_cv_prog_cc_stdc=no
1708 cat >conftest.$ac_ext <<_ACEOF
1709 #line 1709 "configure"
1710 #include "confdefs.h"
1713 #include <sys/types.h>
1714 #include <sys/stat.h>
1715 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1716 struct buf { int x; };
1717 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1718 static char *e (p, i)
1724 static char *f (char * (*g) (char **, int), char **p, ...)
1729 s = g (p, va_arg (v,int));
1733 int test (int i, double x);
1734 struct s1 {int (*f) (int a);};
1735 struct s2 {int (*f) (double a);};
1736 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1742 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1747 # Don't try gcc -ansi; that turns off useful extensions and
1748 # breaks some systems' header files.
1749 # AIX -qlanglvl=ansi
1750 # Ultrix and OSF/1 -std1
1751 # HP-UX 10.20 and later -Ae
1752 # HP-UX older versions -Aa -D_HPUX_SOURCE
1753 # SVR4 -Xc -D__EXTENSIONS__
1754 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1756 CC="$ac_save_CC $ac_arg"
1757 rm -f conftest.$ac_objext
1758 if { (eval echo "$as_me:1758: \"$ac_compile\"") >&5
1759 (eval $ac_compile) 2>&5
1761 echo "$as_me:1761: \$? = $ac_status" >&5
1762 (exit $ac_status); } &&
1763 { ac_try='test -s conftest.$ac_objext'
1764 { (eval echo "$as_me:1764: \"$ac_try\"") >&5
1767 echo "$as_me:1767: \$? = $ac_status" >&5
1768 (exit $ac_status); }; }; then
1769 ac_cv_prog_cc_stdc=$ac_arg
1772 echo "$as_me: failed program was:" >&5
1773 cat conftest.$ac_ext >&5
1775 rm -f conftest.$ac_objext
1777 rm -f conftest.$ac_ext conftest.$ac_objext
1782 case "x$ac_cv_prog_cc_stdc" in
1784 echo "$as_me:1784: result: none needed" >&5
1785 echo "${ECHO_T}none needed" >&6 ;;
1787 echo "$as_me:1787: result: $ac_cv_prog_cc_stdc" >&5
1788 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1789 CC="$CC $ac_cv_prog_cc_stdc" ;;
1792 # This should have been defined by AC_PROG_CC
1795 echo "$as_me:1795: checking \$CC variable" >&5
1796 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
1799 echo "$as_me:1799: result: broken" >&5
1800 echo "${ECHO_T}broken" >&6
1801 { echo "$as_me:1801: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
1802 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
1804 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
1805 CC=`echo "$CC" | sed -e 's/[ ].*//'`
1810 cf_new_extra_cppflags=
1812 for cf_add_cflags in $cf_flags
1814 case $cf_fix_cppflags in
1816 case $cf_add_cflags in
1817 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
1818 case $cf_add_cflags in
1820 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
1822 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
1823 && test -z "${cf_tst_cflags}" \
1824 && cf_fix_cppflags=yes
1826 if test $cf_fix_cppflags = yes ; then
1827 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1829 elif test "${cf_tst_cflags}" = "\"'" ; then
1830 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1839 case $cf_add_cflags in
1841 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
1843 CPPFLAGS=`echo "$CPPFLAGS" | \
1844 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
1845 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
1849 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
1854 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
1859 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1861 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
1863 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
1864 && test -z "${cf_tst_cflags}" \
1865 && cf_fix_cppflags=no
1870 if test -n "$cf_new_cflags" ; then
1872 CFLAGS="$CFLAGS $cf_new_cflags"
1875 if test -n "$cf_new_cppflags" ; then
1877 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
1880 if test -n "$cf_new_extra_cppflags" ; then
1882 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
1887 echo "$as_me:1887: result: ok" >&5
1888 echo "${ECHO_T}ok" >&6
1893 ac_cpp='$CPP $CPPFLAGS'
1894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1897 ac_main_return=return
1898 echo "$as_me:1898: checking how to run the C preprocessor" >&5
1899 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1900 # On Suns, sometimes $CPP names a directory.
1901 if test -n "$CPP" && test -d "$CPP"; then
1904 if test -z "$CPP"; then
1905 if test "${ac_cv_prog_CPP+set}" = set; then
1906 echo $ECHO_N "(cached) $ECHO_C" >&6
1908 # Double quotes because CPP needs to be expanded
1909 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1912 for ac_c_preproc_warn_flag in '' yes
1914 # Use a header file that comes with gcc, so configuring glibc
1915 # with a fresh cross-compiler works.
1916 # On the NeXT, cc -E runs the code through the compiler's parser,
1917 # not just through cpp. "Syntax error" is here to catch this case.
1918 cat >conftest.$ac_ext <<_ACEOF
1919 #line 1919 "configure"
1920 #include "confdefs.h"
1924 if { (eval echo "$as_me:1924: \"$ac_cpp conftest.$ac_ext\"") >&5
1925 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1927 egrep -v '^ *\+' conftest.er1 >conftest.err
1929 cat conftest.err >&5
1930 echo "$as_me:1930: \$? = $ac_status" >&5
1931 (exit $ac_status); } >/dev/null; then
1932 if test -s conftest.err; then
1933 ac_cpp_err=$ac_c_preproc_warn_flag
1940 if test -z "$ac_cpp_err"; then
1943 echo "$as_me: failed program was:" >&5
1944 cat conftest.$ac_ext >&5
1945 # Broken: fails on valid input.
1948 rm -f conftest.err conftest.$ac_ext
1950 # OK, works on sane cases. Now check whether non-existent headers
1951 # can be detected and how.
1952 cat >conftest.$ac_ext <<_ACEOF
1953 #line 1953 "configure"
1954 #include "confdefs.h"
1955 #include <ac_nonexistent.h>
1957 if { (eval echo "$as_me:1957: \"$ac_cpp conftest.$ac_ext\"") >&5
1958 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1960 egrep -v '^ *\+' conftest.er1 >conftest.err
1962 cat conftest.err >&5
1963 echo "$as_me:1963: \$? = $ac_status" >&5
1964 (exit $ac_status); } >/dev/null; then
1965 if test -s conftest.err; then
1966 ac_cpp_err=$ac_c_preproc_warn_flag
1973 if test -z "$ac_cpp_err"; then
1974 # Broken: success on invalid input.
1977 echo "$as_me: failed program was:" >&5
1978 cat conftest.$ac_ext >&5
1979 # Passes both tests.
1983 rm -f conftest.err conftest.$ac_ext
1986 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1987 rm -f conftest.err conftest.$ac_ext
1988 if $ac_preproc_ok; then
2000 echo "$as_me:2000: result: $CPP" >&5
2001 echo "${ECHO_T}$CPP" >&6
2003 for ac_c_preproc_warn_flag in '' yes
2005 # Use a header file that comes with gcc, so configuring glibc
2006 # with a fresh cross-compiler works.
2007 # On the NeXT, cc -E runs the code through the compiler's parser,
2008 # not just through cpp. "Syntax error" is here to catch this case.
2009 cat >conftest.$ac_ext <<_ACEOF
2010 #line 2010 "configure"
2011 #include "confdefs.h"
2015 if { (eval echo "$as_me:2015: \"$ac_cpp conftest.$ac_ext\"") >&5
2016 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2018 egrep -v '^ *\+' conftest.er1 >conftest.err
2020 cat conftest.err >&5
2021 echo "$as_me:2021: \$? = $ac_status" >&5
2022 (exit $ac_status); } >/dev/null; then
2023 if test -s conftest.err; then
2024 ac_cpp_err=$ac_c_preproc_warn_flag
2031 if test -z "$ac_cpp_err"; then
2034 echo "$as_me: failed program was:" >&5
2035 cat conftest.$ac_ext >&5
2036 # Broken: fails on valid input.
2039 rm -f conftest.err conftest.$ac_ext
2041 # OK, works on sane cases. Now check whether non-existent headers
2042 # can be detected and how.
2043 cat >conftest.$ac_ext <<_ACEOF
2044 #line 2044 "configure"
2045 #include "confdefs.h"
2046 #include <ac_nonexistent.h>
2048 if { (eval echo "$as_me:2048: \"$ac_cpp conftest.$ac_ext\"") >&5
2049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2051 egrep -v '^ *\+' conftest.er1 >conftest.err
2053 cat conftest.err >&5
2054 echo "$as_me:2054: \$? = $ac_status" >&5
2055 (exit $ac_status); } >/dev/null; then
2056 if test -s conftest.err; then
2057 ac_cpp_err=$ac_c_preproc_warn_flag
2064 if test -z "$ac_cpp_err"; then
2065 # Broken: success on invalid input.
2068 echo "$as_me: failed program was:" >&5
2069 cat conftest.$ac_ext >&5
2070 # Passes both tests.
2074 rm -f conftest.err conftest.$ac_ext
2077 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2078 rm -f conftest.err conftest.$ac_ext
2079 if $ac_preproc_ok; then
2082 { { echo "$as_me:2082: error: C preprocessor \"$CPP\" fails sanity check" >&5
2083 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2084 { (exit 1); exit 1; }; }
2088 ac_cpp='$CPP $CPPFLAGS'
2089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2092 ac_main_return=return
2094 if test $ac_cv_c_compiler_gnu = yes; then
2095 echo "$as_me:2095: checking whether $CC needs -traditional" >&5
2096 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2097 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2100 ac_pattern="Autoconf.*'x'"
2101 cat >conftest.$ac_ext <<_ACEOF
2102 #line 2102 "configure"
2103 #include "confdefs.h"
2105 int Autoconf = TIOCGETP;
2107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2108 egrep "$ac_pattern" >/dev/null 2>&1; then
2109 ac_cv_prog_gcc_traditional=yes
2111 ac_cv_prog_gcc_traditional=no
2115 if test $ac_cv_prog_gcc_traditional = no; then
2116 cat >conftest.$ac_ext <<_ACEOF
2117 #line 2117 "configure"
2118 #include "confdefs.h"
2120 int Autoconf = TCGETA;
2122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2123 egrep "$ac_pattern" >/dev/null 2>&1; then
2124 ac_cv_prog_gcc_traditional=yes
2130 echo "$as_me:2130: result: $ac_cv_prog_gcc_traditional" >&5
2131 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2132 if test $ac_cv_prog_gcc_traditional = yes; then
2133 CC="$CC -traditional"
2137 echo "$as_me:2137: checking whether $CC understands -c and -o together" >&5
2138 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2139 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2140 echo $ECHO_N "(cached) $ECHO_C" >&6
2143 cat > conftest.$ac_ext <<CF_EOF
2147 ${cf_cv_main_return:-return}(0);
2150 # We do the test twice because some compilers refuse to overwrite an
2151 # existing .o file with -o, though they will create one.
2152 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2153 if { (eval echo "$as_me:2153: \"$ac_try\"") >&5
2156 echo "$as_me:2156: \$? = $ac_status" >&5
2157 (exit $ac_status); } &&
2158 test -f conftest2.$ac_objext && { (eval echo "$as_me:2158: \"$ac_try\"") >&5
2161 echo "$as_me:2161: \$? = $ac_status" >&5
2162 (exit $ac_status); };
2164 eval cf_cv_prog_CC_c_o=yes
2166 eval cf_cv_prog_CC_c_o=no
2171 if test $cf_cv_prog_CC_c_o = yes; then
2172 echo "$as_me:2172: result: yes" >&5
2173 echo "${ECHO_T}yes" >&6
2175 echo "$as_me:2175: result: no" >&5
2176 echo "${ECHO_T}no" >&6
2179 test "$program_prefix" != NONE &&
2180 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2181 # Use a double $ so make ignores it.
2182 test "$program_suffix" != NONE &&
2183 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2184 # Double any \ or $. echo might interpret backslashes.
2185 # By default was `s,x,x', remove it if useless.
2186 cat <<\_ACEOF >conftest.sed
2187 s/[\\$]/&&/g;s/;s,x,x,$//
2189 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2192 for ac_prog in mawk gawk nawk awk
2194 # Extract the first word of "$ac_prog", so it can be a program name with args.
2195 set dummy $ac_prog; ac_word=$2
2196 echo "$as_me:2196: checking for $ac_word" >&5
2197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2198 if test "${ac_cv_prog_AWK+set}" = set; then
2199 echo $ECHO_N "(cached) $ECHO_C" >&6
2201 if test -n "$AWK"; then
2202 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2204 ac_save_IFS=$IFS; IFS=$ac_path_separator
2206 for ac_dir in $ac_dummy; do
2208 test -z "$ac_dir" && ac_dir=.
2209 $as_executable_p "$ac_dir/$ac_word" || continue
2210 ac_cv_prog_AWK="$ac_prog"
2211 echo "$as_me:2211: found $ac_dir/$ac_word" >&5
2218 if test -n "$AWK"; then
2219 echo "$as_me:2219: result: $AWK" >&5
2220 echo "${ECHO_T}$AWK" >&6
2222 echo "$as_me:2222: result: no" >&5
2223 echo "${ECHO_T}no" >&6
2226 test -n "$AWK" && break
2229 test -z "$AWK" && { { echo "$as_me:2229: error: No awk program found" >&5
2230 echo "$as_me: error: No awk program found" >&2;}
2231 { (exit 1); exit 1; }; }
2233 echo "$as_me:2233: checking for egrep" >&5
2234 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2235 if test "${ac_cv_prog_egrep+set}" = set; then
2236 echo $ECHO_N "(cached) $ECHO_C" >&6
2238 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2239 then ac_cv_prog_egrep='grep -E'
2240 else ac_cv_prog_egrep='egrep'
2243 echo "$as_me:2243: result: $ac_cv_prog_egrep" >&5
2244 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2245 EGREP=$ac_cv_prog_egrep
2247 test -z "$EGREP" && { { echo "$as_me:2247: error: No egrep program found" >&5
2248 echo "$as_me: error: No egrep program found" >&2;}
2249 { (exit 1); exit 1; }; }
2251 # Find a good install program. We prefer a C program (faster),
2252 # so one script is as good as another. But avoid the broken or
2253 # incompatible versions:
2254 # SysV /etc/install, /usr/sbin/install
2255 # SunOS /usr/etc/install
2256 # IRIX /sbin/install
2258 # AmigaOS /C/install, which installs bootblocks on floppy discs
2259 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2260 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2261 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2262 # ./install, which can be erroneously created by make from ./install.sh.
2263 echo "$as_me:2263: checking for a BSD compatible install" >&5
2264 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2265 if test -z "$INSTALL"; then
2266 if test "${ac_cv_path_install+set}" = set; then
2267 echo $ECHO_N "(cached) $ECHO_C" >&6
2269 ac_save_IFS=$IFS; IFS=$ac_path_separator
2270 for ac_dir in $PATH; do
2272 # Account for people who put trailing slashes in PATH elements.
2274 / | ./ | .// | /cC/* \
2275 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2278 # OSF1 and SCO ODT 3.0 have their own names for install.
2279 # Don't use installbsd from OSF since it installs stuff as root
2281 for ac_prog in ginstall scoinst install; do
2282 if $as_executable_p "$ac_dir/$ac_prog"; then
2283 if test $ac_prog = install &&
2284 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2285 # AIX install. It has an incompatible calling convention.
2287 elif test $ac_prog = install &&
2288 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2289 # program-specific install script used by HP pwplus--don't use.
2292 ac_cv_path_install="$ac_dir/$ac_prog -c"
2302 if test "${ac_cv_path_install+set}" = set; then
2303 INSTALL=$ac_cv_path_install
2305 # As a last resort, use the slow shell script. We don't cache a
2306 # path for INSTALL within a source directory, because that will
2307 # break other packages using the cache if that directory is
2308 # removed, or if the path is relative.
2309 INSTALL=$ac_install_sh
2312 echo "$as_me:2312: result: $INSTALL" >&5
2313 echo "${ECHO_T}$INSTALL" >&6
2315 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2316 # It thinks the first close brace ends the variable substitution.
2317 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2319 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2321 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2323 echo "$as_me:2323: checking whether ln -s works" >&5
2324 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2326 if test "$LN_S" = "ln -s"; then
2327 echo "$as_me:2327: result: yes" >&5
2328 echo "${ECHO_T}yes" >&6
2330 echo "$as_me:2330: result: no, using $LN_S" >&5
2331 echo "${ECHO_T}no, using $LN_S" >&6
2334 echo "$as_me:2334: checking if $LN_S -f options work" >&5
2335 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
2337 rm -f conf$$.src conf$$dst
2339 echo first >conf$$.src
2340 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
2345 rm -f conf$$.dst conf$$src
2346 echo "$as_me:2346: result: $cf_prog_ln_sf" >&5
2347 echo "${ECHO_T}$cf_prog_ln_sf" >&6
2349 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
2351 echo "$as_me:2351: checking for long file names" >&5
2352 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
2353 if test "${ac_cv_sys_long_file_names+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2356 ac_cv_sys_long_file_names=yes
2357 # Test for long file names in all the places we know might matter:
2358 # . the current directory, where building will happen
2359 # $prefix/lib where we will be installing things
2360 # $exec_prefix/lib likewise
2361 # eval it to expand exec_prefix.
2362 # $TMPDIR if set, where it might want to write temporary files
2363 # if $TMPDIR is not set:
2364 # /tmp where it might want to write temporary files
2367 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
2370 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
2372 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
2373 test -d $ac_dir || continue
2374 test -w $ac_dir || continue # It is less confusing to not echo anything here.
2375 ac_xdir=$ac_dir/cf$$
2376 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
2377 ac_tf1=$ac_xdir/conftest9012345
2378 ac_tf2=$ac_xdir/conftest9012346
2379 (echo 1 >$ac_tf1) 2>/dev/null
2380 (echo 2 >$ac_tf2) 2>/dev/null
2381 ac_val=`cat $ac_tf1 2>/dev/null`
2382 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
2383 ac_cv_sys_long_file_names=no
2384 rm -rf $ac_xdir 2>/dev/null
2387 rm -rf $ac_xdir 2>/dev/null
2390 echo "$as_me:2390: result: $ac_cv_sys_long_file_names" >&5
2391 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
2392 if test $ac_cv_sys_long_file_names = yes; then
2394 cat >>confdefs.h <<\EOF
2395 #define HAVE_LONG_FILE_NAMES 1
2400 # if we find pkg-config, check if we should install the ".pc" files.
2402 echo "$as_me:2402: checking if you want to use pkg-config" >&5
2403 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
2405 # Check whether --with-pkg-config or --without-pkg-config was given.
2406 if test "${with_pkg_config+set}" = set; then
2407 withval="$with_pkg_config"
2408 cf_pkg_config=$withval
2412 echo "$as_me:2412: result: $cf_pkg_config" >&5
2413 echo "${ECHO_T}$cf_pkg_config" >&6
2415 case $cf_pkg_config in
2421 if test -n "$ac_tool_prefix"; then
2422 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
2423 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
2424 echo "$as_me:2424: checking for $ac_word" >&5
2425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2426 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
2427 echo $ECHO_N "(cached) $ECHO_C" >&6
2431 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
2434 ac_save_IFS=$IFS; IFS=$ac_path_separator
2436 for ac_dir in $ac_dummy; do
2438 test -z "$ac_dir" && ac_dir=.
2439 if $as_executable_p "$ac_dir/$ac_word"; then
2440 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
2441 echo "$as_me:2441: found $ac_dir/$ac_word" >&5
2449 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
2451 if test -n "$PKG_CONFIG"; then
2452 echo "$as_me:2452: result: $PKG_CONFIG" >&5
2453 echo "${ECHO_T}$PKG_CONFIG" >&6
2455 echo "$as_me:2455: result: no" >&5
2456 echo "${ECHO_T}no" >&6
2460 if test -z "$ac_cv_path_PKG_CONFIG"; then
2461 ac_pt_PKG_CONFIG=$PKG_CONFIG
2462 # Extract the first word of "pkg-config", so it can be a program name with args.
2463 set dummy pkg-config; ac_word=$2
2464 echo "$as_me:2464: checking for $ac_word" >&5
2465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2466 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
2469 case $ac_pt_PKG_CONFIG in
2471 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
2474 ac_save_IFS=$IFS; IFS=$ac_path_separator
2476 for ac_dir in $ac_dummy; do
2478 test -z "$ac_dir" && ac_dir=.
2479 if $as_executable_p "$ac_dir/$ac_word"; then
2480 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
2481 echo "$as_me:2481: found $ac_dir/$ac_word" >&5
2486 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
2490 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
2492 if test -n "$ac_pt_PKG_CONFIG"; then
2493 echo "$as_me:2493: result: $ac_pt_PKG_CONFIG" >&5
2494 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
2496 echo "$as_me:2496: result: no" >&5
2497 echo "${ECHO_T}no" >&6
2500 PKG_CONFIG=$ac_pt_PKG_CONFIG
2502 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
2511 test -z "$PKG_CONFIG" && PKG_CONFIG=none
2512 if test "$PKG_CONFIG" != none ; then
2514 if test "x$prefix" != xNONE; then
2515 cf_path_syntax="$prefix"
2517 cf_path_syntax="$ac_default_prefix"
2520 case ".$PKG_CONFIG" in
2525 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
2527 (.\${*prefix}*|.\${*dir}*)
2528 eval PKG_CONFIG="$PKG_CONFIG"
2529 case ".$PKG_CONFIG" in
2531 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
2536 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
2539 { { echo "$as_me:2539: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
2540 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
2541 { (exit 1); exit 1; }; }
2546 { echo "$as_me:2546: WARNING: pkg-config is not installed" >&5
2547 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
2550 echo "$as_me:2550: checking for $PKG_CONFIG library directory" >&5
2551 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
2553 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
2554 if test "${with_pkg_config_libdir+set}" = set; then
2555 withval="$with_pkg_config_libdir"
2556 PKG_CONFIG_LIBDIR=$withval
2558 PKG_CONFIG_LIBDIR=yes
2561 case x$PKG_CONFIG_LIBDIR in
2565 # Look for the library directory using the same prefix as the executable
2566 if test "x$PKG_CONFIG" = xnone
2570 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
2573 # If you don't like using the default architecture, you have to specify the
2574 # intended library directory and corresponding compiler/linker options.
2576 # This case allows for Debian's 2014-flavor of multiarch, along with the
2577 # most common variations before that point. Some other variants spell the
2578 # directory differently, e.g., "pkg-config", and put it in unusual places.
2579 # pkg-config has always been poorly standardized, which is ironic...
2580 case x`(arch) 2>/dev/null` in
2583 $cf_path/lib/*64-linux-gnu \
2591 $cf_path/lib/*-linux-gnu \
2599 test -n "$verbose" && echo " list..." 1>&6
2601 echo "${as_me:-configure}:2601: testing list... ..." 1>&5
2603 for cf_config in $cf_search_path
2605 test -n "$verbose" && echo " checking $cf_config/pkgconfig" 1>&6
2607 echo "${as_me:-configure}:2607: testing checking $cf_config/pkgconfig ..." 1>&5
2609 if test -d $cf_config/pkgconfig
2611 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
2612 echo "$as_me:2612: checking done" >&5
2613 echo $ECHO_N "checking done... $ECHO_C" >&6
2622 echo "$as_me:2622: result: $PKG_CONFIG_LIBDIR" >&5
2623 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
2625 echo "$as_me:2625: checking if you want to build test-programs" >&5
2626 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
2628 # Check whether --with-tests or --without-tests was given.
2629 if test "${with_tests+set}" = set; then
2630 withval="$with_tests"
2631 cf_with_tests=$withval
2635 echo "$as_me:2635: result: $cf_with_tests" >&5
2636 echo "${ECHO_T}$cf_with_tests" >&6
2638 echo "$as_me:2638: checking if we should assume mixed-case filenames" >&5
2639 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
2641 # Check whether --enable-mixed-case or --disable-mixed-case was given.
2642 if test "${enable_mixed_case+set}" = set; then
2643 enableval="$enable_mixed_case"
2644 enable_mixedcase=$enableval
2646 enable_mixedcase=auto
2648 echo "$as_me:2648: result: $enable_mixedcase" >&5
2649 echo "${ECHO_T}$enable_mixedcase" >&6
2650 if test "$enable_mixedcase" = "auto" ; then
2652 echo "$as_me:2652: checking if filesystem supports mixed-case filenames" >&5
2653 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2654 if test "${cf_cv_mixedcase+set}" = set; then
2655 echo $ECHO_N "(cached) $ECHO_C" >&6
2658 if test "$cross_compiling" = yes ; then
2659 case $target_alias in
2660 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
2668 rm -f conftest CONFTEST
2670 if test -f CONFTEST ; then
2675 rm -f conftest CONFTEST
2679 echo "$as_me:2679: result: $cf_cv_mixedcase" >&5
2680 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2681 test "$cf_cv_mixedcase" = yes &&
2682 cat >>confdefs.h <<\EOF
2683 #define MIXEDCASE_FILENAMES 1
2687 cf_cv_mixedcase=$enable_mixedcase
2688 if test "$enable_mixedcase" = "yes" ; then
2689 cat >>confdefs.h <<\EOF
2690 #define MIXEDCASE_FILENAMES 1
2696 # do this after mixed-case option (tags/TAGS is not as important as tic).
2697 echo "$as_me:2697: checking whether ${MAKE-make} sets \${MAKE}" >&5
2698 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2699 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2700 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2701 echo $ECHO_N "(cached) $ECHO_C" >&6
2703 cat >conftest.make <<\EOF
2705 @echo 'ac_maketemp="${MAKE}"'
2707 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2708 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2709 if test -n "$ac_maketemp"; then
2710 eval ac_cv_prog_make_${ac_make}_set=yes
2712 eval ac_cv_prog_make_${ac_make}_set=no
2716 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2717 echo "$as_me:2717: result: yes" >&5
2718 echo "${ECHO_T}yes" >&6
2721 echo "$as_me:2721: result: no" >&5
2722 echo "${ECHO_T}no" >&6
2723 SET_MAKE="MAKE=${MAKE-make}"
2726 for ac_prog in exctags ctags
2728 # Extract the first word of "$ac_prog", so it can be a program name with args.
2729 set dummy $ac_prog; ac_word=$2
2730 echo "$as_me:2730: checking for $ac_word" >&5
2731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2732 if test "${ac_cv_prog_CTAGS+set}" = set; then
2733 echo $ECHO_N "(cached) $ECHO_C" >&6
2735 if test -n "$CTAGS"; then
2736 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2738 ac_save_IFS=$IFS; IFS=$ac_path_separator
2740 for ac_dir in $ac_dummy; do
2742 test -z "$ac_dir" && ac_dir=.
2743 $as_executable_p "$ac_dir/$ac_word" || continue
2744 ac_cv_prog_CTAGS="$ac_prog"
2745 echo "$as_me:2745: found $ac_dir/$ac_word" >&5
2751 CTAGS=$ac_cv_prog_CTAGS
2752 if test -n "$CTAGS"; then
2753 echo "$as_me:2753: result: $CTAGS" >&5
2754 echo "${ECHO_T}$CTAGS" >&6
2756 echo "$as_me:2756: result: no" >&5
2757 echo "${ECHO_T}no" >&6
2760 test -n "$CTAGS" && break
2763 for ac_prog in exetags etags
2765 # Extract the first word of "$ac_prog", so it can be a program name with args.
2766 set dummy $ac_prog; ac_word=$2
2767 echo "$as_me:2767: checking for $ac_word" >&5
2768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2769 if test "${ac_cv_prog_ETAGS+set}" = set; then
2770 echo $ECHO_N "(cached) $ECHO_C" >&6
2772 if test -n "$ETAGS"; then
2773 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2775 ac_save_IFS=$IFS; IFS=$ac_path_separator
2777 for ac_dir in $ac_dummy; do
2779 test -z "$ac_dir" && ac_dir=.
2780 $as_executable_p "$ac_dir/$ac_word" || continue
2781 ac_cv_prog_ETAGS="$ac_prog"
2782 echo "$as_me:2782: found $ac_dir/$ac_word" >&5
2788 ETAGS=$ac_cv_prog_ETAGS
2789 if test -n "$ETAGS"; then
2790 echo "$as_me:2790: result: $ETAGS" >&5
2791 echo "${ECHO_T}$ETAGS" >&6
2793 echo "$as_me:2793: result: no" >&5
2794 echo "${ECHO_T}no" >&6
2797 test -n "$ETAGS" && break
2800 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2801 set dummy ${CTAGS:-ctags}; ac_word=$2
2802 echo "$as_me:2802: checking for $ac_word" >&5
2803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2804 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2805 echo $ECHO_N "(cached) $ECHO_C" >&6
2807 if test -n "$MAKE_LOWER_TAGS"; then
2808 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2810 ac_save_IFS=$IFS; IFS=$ac_path_separator
2812 for ac_dir in $ac_dummy; do
2814 test -z "$ac_dir" && ac_dir=.
2815 $as_executable_p "$ac_dir/$ac_word" || continue
2816 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2817 echo "$as_me:2817: found $ac_dir/$ac_word" >&5
2821 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2824 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2825 if test -n "$MAKE_LOWER_TAGS"; then
2826 echo "$as_me:2826: result: $MAKE_LOWER_TAGS" >&5
2827 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2829 echo "$as_me:2829: result: no" >&5
2830 echo "${ECHO_T}no" >&6
2833 if test "$cf_cv_mixedcase" = yes ; then
2834 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2835 set dummy ${ETAGS:-etags}; ac_word=$2
2836 echo "$as_me:2836: checking for $ac_word" >&5
2837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2838 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2839 echo $ECHO_N "(cached) $ECHO_C" >&6
2841 if test -n "$MAKE_UPPER_TAGS"; then
2842 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2844 ac_save_IFS=$IFS; IFS=$ac_path_separator
2846 for ac_dir in $ac_dummy; do
2848 test -z "$ac_dir" && ac_dir=.
2849 $as_executable_p "$ac_dir/$ac_word" || continue
2850 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2851 echo "$as_me:2851: found $ac_dir/$ac_word" >&5
2855 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2858 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2859 if test -n "$MAKE_UPPER_TAGS"; then
2860 echo "$as_me:2860: result: $MAKE_UPPER_TAGS" >&5
2861 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2863 echo "$as_me:2863: result: no" >&5
2864 echo "${ECHO_T}no" >&6
2871 if test "$MAKE_UPPER_TAGS" = yes ; then
2877 if test "$MAKE_LOWER_TAGS" = yes ; then
2883 echo "$as_me:2883: checking for makeflags variable" >&5
2884 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
2885 if test "${cf_cv_makeflags+set}" = set; then
2886 echo $ECHO_N "(cached) $ECHO_C" >&6
2890 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
2892 cat >cf_makeflags.tmp <<CF_EOF
2895 @ echo '.$cf_option'
2897 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
2898 case "$cf_result" in
2900 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
2901 case "$cf_result" in
2902 (.*CC=*) cf_cv_makeflags=
2904 (*) cf_cv_makeflags=$cf_option
2910 (*) echo "given option \"$cf_option\", no match \"$cf_result\""
2914 rm -f cf_makeflags.tmp
2917 echo "$as_me:2917: result: $cf_cv_makeflags" >&5
2918 echo "${ECHO_T}$cf_cv_makeflags" >&6
2920 if test -n "$ac_tool_prefix"; then
2921 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2922 set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+set}" = set; then
2926 echo $ECHO_N "(cached) $ECHO_C" >&6
2928 if test -n "$RANLIB"; then
2929 ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="${ac_tool_prefix}ranlib"
2938 echo "$as_me:2938: found $ac_dir/$ac_word" >&5
2944 RANLIB=$ac_cv_prog_RANLIB
2945 if test -n "$RANLIB"; then
2946 echo "$as_me:2946: result: $RANLIB" >&5
2947 echo "${ECHO_T}$RANLIB" >&6
2949 echo "$as_me:2949: result: no" >&5
2950 echo "${ECHO_T}no" >&6
2954 if test -z "$ac_cv_prog_RANLIB"; then
2955 ac_ct_RANLIB=$RANLIB
2956 # Extract the first word of "ranlib", so it can be a program name with args.
2957 set dummy ranlib; ac_word=$2
2958 echo "$as_me:2958: checking for $ac_word" >&5
2959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2960 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2961 echo $ECHO_N "(cached) $ECHO_C" >&6
2963 if test -n "$ac_ct_RANLIB"; then
2964 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2966 ac_save_IFS=$IFS; IFS=$ac_path_separator
2968 for ac_dir in $ac_dummy; do
2970 test -z "$ac_dir" && ac_dir=.
2971 $as_executable_p "$ac_dir/$ac_word" || continue
2972 ac_cv_prog_ac_ct_RANLIB="ranlib"
2973 echo "$as_me:2973: found $ac_dir/$ac_word" >&5
2977 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
2980 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2981 if test -n "$ac_ct_RANLIB"; then
2982 echo "$as_me:2982: result: $ac_ct_RANLIB" >&5
2983 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2985 echo "$as_me:2985: result: no" >&5
2986 echo "${ECHO_T}no" >&6
2989 RANLIB=$ac_ct_RANLIB
2991 RANLIB="$ac_cv_prog_RANLIB"
2994 if test -n "$ac_tool_prefix"; then
2995 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
2996 set dummy ${ac_tool_prefix}ld; ac_word=$2
2997 echo "$as_me:2997: checking for $ac_word" >&5
2998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2999 if test "${ac_cv_prog_LD+set}" = set; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3002 if test -n "$LD"; then
3003 ac_cv_prog_LD="$LD" # Let the user override the test.
3005 ac_save_IFS=$IFS; IFS=$ac_path_separator
3007 for ac_dir in $ac_dummy; do
3009 test -z "$ac_dir" && ac_dir=.
3010 $as_executable_p "$ac_dir/$ac_word" || continue
3011 ac_cv_prog_LD="${ac_tool_prefix}ld"
3012 echo "$as_me:3012: found $ac_dir/$ac_word" >&5
3019 if test -n "$LD"; then
3020 echo "$as_me:3020: result: $LD" >&5
3021 echo "${ECHO_T}$LD" >&6
3023 echo "$as_me:3023: result: no" >&5
3024 echo "${ECHO_T}no" >&6
3028 if test -z "$ac_cv_prog_LD"; then
3030 # Extract the first word of "ld", so it can be a program name with args.
3031 set dummy ld; ac_word=$2
3032 echo "$as_me:3032: checking for $ac_word" >&5
3033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3034 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3035 echo $ECHO_N "(cached) $ECHO_C" >&6
3037 if test -n "$ac_ct_LD"; then
3038 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3040 ac_save_IFS=$IFS; IFS=$ac_path_separator
3042 for ac_dir in $ac_dummy; do
3044 test -z "$ac_dir" && ac_dir=.
3045 $as_executable_p "$ac_dir/$ac_word" || continue
3046 ac_cv_prog_ac_ct_LD="ld"
3047 echo "$as_me:3047: found $ac_dir/$ac_word" >&5
3051 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3054 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3055 if test -n "$ac_ct_LD"; then
3056 echo "$as_me:3056: result: $ac_ct_LD" >&5
3057 echo "${ECHO_T}$ac_ct_LD" >&6
3059 echo "$as_me:3059: result: no" >&5
3060 echo "${ECHO_T}no" >&6
3068 if test -n "$ac_tool_prefix"; then
3069 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3070 set dummy ${ac_tool_prefix}ar; ac_word=$2
3071 echo "$as_me:3071: checking for $ac_word" >&5
3072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3073 if test "${ac_cv_prog_AR+set}" = set; then
3074 echo $ECHO_N "(cached) $ECHO_C" >&6
3076 if test -n "$AR"; then
3077 ac_cv_prog_AR="$AR" # Let the user override the test.
3079 ac_save_IFS=$IFS; IFS=$ac_path_separator
3081 for ac_dir in $ac_dummy; do
3083 test -z "$ac_dir" && ac_dir=.
3084 $as_executable_p "$ac_dir/$ac_word" || continue
3085 ac_cv_prog_AR="${ac_tool_prefix}ar"
3086 echo "$as_me:3086: found $ac_dir/$ac_word" >&5
3093 if test -n "$AR"; then
3094 echo "$as_me:3094: result: $AR" >&5
3095 echo "${ECHO_T}$AR" >&6
3097 echo "$as_me:3097: result: no" >&5
3098 echo "${ECHO_T}no" >&6
3102 if test -z "$ac_cv_prog_AR"; then
3104 # Extract the first word of "ar", so it can be a program name with args.
3105 set dummy ar; ac_word=$2
3106 echo "$as_me:3106: checking for $ac_word" >&5
3107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3108 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3109 echo $ECHO_N "(cached) $ECHO_C" >&6
3111 if test -n "$ac_ct_AR"; then
3112 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3114 ac_save_IFS=$IFS; IFS=$ac_path_separator
3116 for ac_dir in $ac_dummy; do
3118 test -z "$ac_dir" && ac_dir=.
3119 $as_executable_p "$ac_dir/$ac_word" || continue
3120 ac_cv_prog_ac_ct_AR="ar"
3121 echo "$as_me:3121: found $ac_dir/$ac_word" >&5
3125 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3128 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3129 if test -n "$ac_ct_AR"; then
3130 echo "$as_me:3130: result: $ac_ct_AR" >&5
3131 echo "${ECHO_T}$ac_ct_AR" >&6
3133 echo "$as_me:3133: result: no" >&5
3134 echo "${ECHO_T}no" >&6
3142 if test -n "$ac_tool_prefix"; then
3143 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3144 set dummy ${ac_tool_prefix}ar; ac_word=$2
3145 echo "$as_me:3145: checking for $ac_word" >&5
3146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3147 if test "${ac_cv_prog_AR+set}" = set; then
3148 echo $ECHO_N "(cached) $ECHO_C" >&6
3150 if test -n "$AR"; then
3151 ac_cv_prog_AR="$AR" # Let the user override the test.
3153 ac_save_IFS=$IFS; IFS=$ac_path_separator
3155 for ac_dir in $ac_dummy; do
3157 test -z "$ac_dir" && ac_dir=.
3158 $as_executable_p "$ac_dir/$ac_word" || continue
3159 ac_cv_prog_AR="${ac_tool_prefix}ar"
3160 echo "$as_me:3160: found $ac_dir/$ac_word" >&5
3167 if test -n "$AR"; then
3168 echo "$as_me:3168: result: $AR" >&5
3169 echo "${ECHO_T}$AR" >&6
3171 echo "$as_me:3171: result: no" >&5
3172 echo "${ECHO_T}no" >&6
3176 if test -z "$ac_cv_prog_AR"; then
3178 # Extract the first word of "ar", so it can be a program name with args.
3179 set dummy ar; ac_word=$2
3180 echo "$as_me:3180: checking for $ac_word" >&5
3181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3182 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3183 echo $ECHO_N "(cached) $ECHO_C" >&6
3185 if test -n "$ac_ct_AR"; then
3186 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3188 ac_save_IFS=$IFS; IFS=$ac_path_separator
3190 for ac_dir in $ac_dummy; do
3192 test -z "$ac_dir" && ac_dir=.
3193 $as_executable_p "$ac_dir/$ac_word" || continue
3194 ac_cv_prog_ac_ct_AR="ar"
3195 echo "$as_me:3195: found $ac_dir/$ac_word" >&5
3199 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3202 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3203 if test -n "$ac_ct_AR"; then
3204 echo "$as_me:3204: result: $ac_ct_AR" >&5
3205 echo "${ECHO_T}$ac_ct_AR" >&6
3207 echo "$as_me:3207: result: no" >&5
3208 echo "${ECHO_T}no" >&6
3216 echo "$as_me:3216: checking for options to update archives" >&5
3217 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
3218 if test "${cf_cv_ar_flags+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3222 cf_cv_ar_flags=unknown
3223 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
3226 # check if $ARFLAGS already contains this choice
3227 if test "x$ARFLAGS" != "x" ; then
3228 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
3229 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
3235 rm -f conftest.$ac_cv_objext
3238 cat >conftest.$ac_ext <<EOF
3239 #line 3239 "configure"
3240 int testdata[3] = { 123, 456, 789 };
3242 if { (eval echo "$as_me:3242: \"$ac_compile\"") >&5
3243 (eval $ac_compile) 2>&5
3245 echo "$as_me:3245: \$? = $ac_status" >&5
3246 (exit $ac_status); } ; then
3247 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
3248 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
3249 if test -f conftest.a ; then
3250 cf_cv_ar_flags=$cf_ar_flags
3254 test -n "$verbose" && echo " cannot compile test-program" 1>&6
3256 echo "${as_me:-configure}:3256: testing cannot compile test-program ..." 1>&5
3261 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
3264 echo "$as_me:3264: result: $cf_cv_ar_flags" >&5
3265 echo "${ECHO_T}$cf_cv_ar_flags" >&6
3267 if test -n "$ARFLAGS" ; then
3268 if test -n "$cf_cv_ar_flags" ; then
3269 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
3272 ARFLAGS=$cf_cv_ar_flags
3275 echo "$as_me:3275: checking for PATH separator" >&5
3276 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
3277 case $cf_cv_system_name in
3278 (os2*) PATH_SEPARATOR=';' ;;
3279 (*) ${PATH_SEPARATOR:=':'} ;;
3282 echo "$as_me:3282: result: $PATH_SEPARATOR" >&5
3283 echo "${ECHO_T}$PATH_SEPARATOR" >&6
3285 echo "$as_me:3285: checking if you have specified an install-prefix" >&5
3286 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
3288 # Check whether --with-install-prefix or --without-install-prefix was given.
3289 if test "${with_install_prefix+set}" = set; then
3290 withval="$with_install_prefix"
3294 (*) DESTDIR="$withval"
3298 echo "$as_me:3298: result: $DESTDIR" >&5
3299 echo "${ECHO_T}$DESTDIR" >&6
3301 ###############################################################################
3303 # If we're cross-compiling, allow the user to override the tools and their
3304 # options. The configure script is oriented toward identifying the host
3305 # compiler, etc., but we need a build compiler to generate parts of the source.
3307 if test "$cross_compiling" = yes ; then
3309 # defaults that we might want to override
3310 : ${BUILD_CFLAGS:=''}
3311 : ${BUILD_CPPFLAGS:=''}
3312 : ${BUILD_LDFLAGS:=''}
3314 : ${BUILD_EXEEXT:='$x'}
3315 : ${BUILD_OBJEXT:='o'}
3317 # Check whether --with-build-cc or --without-build-cc was given.
3318 if test "${with_build_cc+set}" = set; then
3319 withval="$with_build_cc"
3322 for ac_prog in gcc cc cl
3324 # Extract the first word of "$ac_prog", so it can be a program name with args.
3325 set dummy $ac_prog; ac_word=$2
3326 echo "$as_me:3326: checking for $ac_word" >&5
3327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3328 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3329 echo $ECHO_N "(cached) $ECHO_C" >&6
3331 if test -n "$BUILD_CC"; then
3332 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3334 ac_save_IFS=$IFS; IFS=$ac_path_separator
3336 for ac_dir in $ac_dummy; do
3338 test -z "$ac_dir" && ac_dir=.
3339 $as_executable_p "$ac_dir/$ac_word" || continue
3340 ac_cv_prog_BUILD_CC="$ac_prog"
3341 echo "$as_me:3341: found $ac_dir/$ac_word" >&5
3347 BUILD_CC=$ac_cv_prog_BUILD_CC
3348 if test -n "$BUILD_CC"; then
3349 echo "$as_me:3349: result: $BUILD_CC" >&5
3350 echo "${ECHO_T}$BUILD_CC" >&6
3352 echo "$as_me:3352: result: no" >&5
3353 echo "${ECHO_T}no" >&6
3356 test -n "$BUILD_CC" && break
3360 echo "$as_me:3360: checking for native build C compiler" >&5
3361 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
3362 echo "$as_me:3362: result: $BUILD_CC" >&5
3363 echo "${ECHO_T}$BUILD_CC" >&6
3365 echo "$as_me:3365: checking for native build C preprocessor" >&5
3366 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
3368 # Check whether --with-build-cpp or --without-build-cpp was given.
3369 if test "${with_build_cpp+set}" = set; then
3370 withval="$with_build_cpp"
3371 BUILD_CPP="$withval"
3373 BUILD_CPP='${BUILD_CC} -E'
3375 echo "$as_me:3375: result: $BUILD_CPP" >&5
3376 echo "${ECHO_T}$BUILD_CPP" >&6
3378 echo "$as_me:3378: checking for native build C flags" >&5
3379 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
3381 # Check whether --with-build-cflags or --without-build-cflags was given.
3382 if test "${with_build_cflags+set}" = set; then
3383 withval="$with_build_cflags"
3384 BUILD_CFLAGS="$withval"
3386 echo "$as_me:3386: result: $BUILD_CFLAGS" >&5
3387 echo "${ECHO_T}$BUILD_CFLAGS" >&6
3389 echo "$as_me:3389: checking for native build C preprocessor-flags" >&5
3390 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
3392 # Check whether --with-build-cppflags or --without-build-cppflags was given.
3393 if test "${with_build_cppflags+set}" = set; then
3394 withval="$with_build_cppflags"
3395 BUILD_CPPFLAGS="$withval"
3397 echo "$as_me:3397: result: $BUILD_CPPFLAGS" >&5
3398 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
3400 echo "$as_me:3400: checking for native build linker-flags" >&5
3401 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
3403 # Check whether --with-build-ldflags or --without-build-ldflags was given.
3404 if test "${with_build_ldflags+set}" = set; then
3405 withval="$with_build_ldflags"
3406 BUILD_LDFLAGS="$withval"
3408 echo "$as_me:3408: result: $BUILD_LDFLAGS" >&5
3409 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
3411 echo "$as_me:3411: checking for native build linker-libraries" >&5
3412 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
3414 # Check whether --with-build-libs or --without-build-libs was given.
3415 if test "${with_build_libs+set}" = set; then
3416 withval="$with_build_libs"
3417 BUILD_LIBS="$withval"
3419 echo "$as_me:3419: result: $BUILD_LIBS" >&5
3420 echo "${ECHO_T}$BUILD_LIBS" >&6
3422 # this assumes we're on Unix.
3426 : ${BUILD_CC:='${CC}'}
3428 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
3429 { { echo "$as_me:3429: error: Cross-build requires two compilers.
3430 Use --with-build-cc to specify the native compiler." >&5
3431 echo "$as_me: error: Cross-build requires two compilers.
3432 Use --with-build-cc to specify the native compiler." >&2;}
3433 { (exit 1); exit 1; }; }
3437 : ${BUILD_CC:='${CC}'}
3438 : ${BUILD_CPP:='${CPP}'}
3439 : ${BUILD_CFLAGS:='${CFLAGS}'}
3440 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
3441 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
3442 : ${BUILD_LIBS:='${LIBS}'}
3443 : ${BUILD_EXEEXT:='$x'}
3444 : ${BUILD_OBJEXT:='o'}
3447 ###############################################################################
3449 ### Options to allow the user to specify the set of libraries which are used.
3450 ### Use "--without-normal --with-shared" to allow the default model to be
3451 ### shared, for example.
3454 echo "$as_me:3454: checking if you want to build shared C-objects" >&5
3455 echo $ECHO_N "checking if you want to build shared C-objects... $ECHO_C" >&6
3457 # Check whether --with-shared or --without-shared was given.
3458 if test "${with_shared+set}" = set; then
3459 withval="$with_shared"
3460 with_shared=$withval
3464 echo "$as_me:3464: result: $with_shared" >&5
3465 echo "${ECHO_T}$with_shared" >&6
3466 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
3468 echo "$as_me:3468: checking for specified models" >&5
3469 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
3470 test -z "$cf_list_models" && cf_list_models=normal
3471 echo "$as_me:3471: result: $cf_list_models" >&5
3472 echo "${ECHO_T}$cf_list_models" >&6
3474 ### Use the first model as the default, and save its suffix for use in building
3475 ### up test-applications.
3476 echo "$as_me:3476: checking for default model" >&5
3477 echo $ECHO_N "checking for default model... $ECHO_C" >&6
3478 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
3479 echo "$as_me:3479: result: $DFT_LWR_MODEL" >&5
3480 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
3482 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3484 echo "$as_me:3484: checking for specific curses-directory" >&5
3485 echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6
3487 # Check whether --with-curses-dir or --without-curses-dir was given.
3488 if test "${with_curses_dir+set}" = set; then
3489 withval="$with_curses_dir"
3490 cf_cv_curses_dir=$withval
3494 echo "$as_me:3494: result: $cf_cv_curses_dir" >&5
3495 echo "${ECHO_T}$cf_cv_curses_dir" >&6
3497 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
3500 if test "x$prefix" != xNONE; then
3501 cf_path_syntax="$prefix"
3503 cf_path_syntax="$ac_default_prefix"
3511 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3513 (.\${*prefix}*|.\${*dir}*)
3514 eval withval="$withval"
3517 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
3522 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
3525 { { echo "$as_me:3525: error: expected a pathname, not \"$withval\"" >&5
3526 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
3527 { (exit 1); exit 1; }; }
3531 if test -d "$cf_cv_curses_dir"
3534 if test -n "$cf_cv_curses_dir/include" ; then
3535 for cf_add_incdir in $cf_cv_curses_dir/include
3537 while test $cf_add_incdir != /usr/include
3539 if test -d $cf_add_incdir
3542 if test -n "$CFLAGS$CPPFLAGS" ; then
3543 # a loop is needed to ensure we can add subdirs of existing dirs
3544 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
3545 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
3546 cf_have_incdir=yes; break
3551 if test "$cf_have_incdir" = no ; then
3552 if test "$cf_add_incdir" = /usr/local/include ; then
3553 if test "$GCC" = yes
3555 cf_save_CPPFLAGS=$CPPFLAGS
3556 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
3557 cat >conftest.$ac_ext <<_ACEOF
3558 #line 3558 "configure"
3559 #include "confdefs.h"
3569 rm -f conftest.$ac_objext
3570 if { (eval echo "$as_me:3570: \"$ac_compile\"") >&5
3571 (eval $ac_compile) 2>&5
3573 echo "$as_me:3573: \$? = $ac_status" >&5
3574 (exit $ac_status); } &&
3575 { ac_try='test -s conftest.$ac_objext'
3576 { (eval echo "$as_me:3576: \"$ac_try\"") >&5
3579 echo "$as_me:3579: \$? = $ac_status" >&5
3580 (exit $ac_status); }; }; then
3583 echo "$as_me: failed program was:" >&5
3584 cat conftest.$ac_ext >&5
3587 rm -f conftest.$ac_objext conftest.$ac_ext
3588 CPPFLAGS=$cf_save_CPPFLAGS
3593 if test "$cf_have_incdir" = no ; then
3594 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
3596 echo "${as_me:-configure}:3596: testing adding $cf_add_incdir to include-path ..." 1>&5
3598 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
3600 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
3601 test "$cf_top_incdir" = "$cf_add_incdir" && break
3602 cf_add_incdir="$cf_top_incdir"
3611 if test -n "$cf_cv_curses_dir/lib" ; then
3612 for cf_add_libdir in $cf_cv_curses_dir/lib
3614 if test $cf_add_libdir = /usr/lib ; then
3616 elif test -d $cf_add_libdir
3619 if test -n "$LDFLAGS$LIBS" ; then
3620 # a loop is needed to ensure we can add subdirs of existing dirs
3621 for cf_test_libdir in $LDFLAGS $LIBS ; do
3622 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
3623 cf_have_libdir=yes; break
3627 if test "$cf_have_libdir" = no ; then
3628 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
3630 echo "${as_me:-configure}:3630: testing adding $cf_add_libdir to library-path ..." 1>&5
3632 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
3641 echo "$as_me:3641: checking if you want wide-character code" >&5
3642 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
3644 # Check whether --enable-widec or --disable-widec was given.
3645 if test "${enable_widec+set}" = set; then
3646 enableval="$enable_widec"
3647 with_widec=$enableval
3651 echo "$as_me:3651: result: $with_widec" >&5
3652 echo "${ECHO_T}$with_widec" >&6
3653 if test "$with_widec" = yes ; then
3655 echo "$as_me:3655: checking for multibyte character support" >&5
3656 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
3657 if test "${cf_cv_utf8_lib+set}" = set; then
3658 echo $ECHO_N "(cached) $ECHO_C" >&6
3661 cf_save_LIBS="$LIBS"
3662 cat >conftest.$ac_ext <<_ACEOF
3663 #line 3663 "configure"
3664 #include "confdefs.h"
3675 rm -f conftest.$ac_objext conftest$ac_exeext
3676 if { (eval echo "$as_me:3676: \"$ac_link\"") >&5
3677 (eval $ac_link) 2>&5
3679 echo "$as_me:3679: \$? = $ac_status" >&5
3680 (exit $ac_status); } &&
3681 { ac_try='test -s conftest$ac_exeext'
3682 { (eval echo "$as_me:3682: \"$ac_try\"") >&5
3685 echo "$as_me:3685: \$? = $ac_status" >&5
3686 (exit $ac_status); }; }; then
3689 echo "$as_me: failed program was:" >&5
3690 cat conftest.$ac_ext >&5
3692 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
3693 # will be set on completion of the AC_TRY_LINK below.
3694 cf_cv_header_path_utf8=
3695 cf_cv_library_path_utf8=
3697 echo "${as_me:-configure}:3697: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
3699 cf_save_LIBS="$LIBS"
3701 cat >conftest.$ac_ext <<_ACEOF
3702 #line 3702 "configure"
3703 #include "confdefs.h"
3705 #include <libutf8.h>
3714 rm -f conftest.$ac_objext conftest$ac_exeext
3715 if { (eval echo "$as_me:3715: \"$ac_link\"") >&5
3716 (eval $ac_link) 2>&5
3718 echo "$as_me:3718: \$? = $ac_status" >&5
3719 (exit $ac_status); } &&
3720 { ac_try='test -s conftest$ac_exeext'
3721 { (eval echo "$as_me:3721: \"$ac_try\"") >&5
3724 echo "$as_me:3724: \$? = $ac_status" >&5
3725 (exit $ac_status); }; }; then
3727 cf_cv_find_linkage_utf8=yes
3728 cf_cv_header_path_utf8=/usr/include
3729 cf_cv_library_path_utf8=/usr/lib
3732 echo "$as_me: failed program was:" >&5
3733 cat conftest.$ac_ext >&5
3735 LIBS="-lutf8 $cf_save_LIBS"
3737 cat >conftest.$ac_ext <<_ACEOF
3738 #line 3738 "configure"
3739 #include "confdefs.h"
3741 #include <libutf8.h>
3750 rm -f conftest.$ac_objext conftest$ac_exeext
3751 if { (eval echo "$as_me:3751: \"$ac_link\"") >&5
3752 (eval $ac_link) 2>&5
3754 echo "$as_me:3754: \$? = $ac_status" >&5
3755 (exit $ac_status); } &&
3756 { ac_try='test -s conftest$ac_exeext'
3757 { (eval echo "$as_me:3757: \"$ac_try\"") >&5
3760 echo "$as_me:3760: \$? = $ac_status" >&5
3761 (exit $ac_status); }; }; then
3763 cf_cv_find_linkage_utf8=yes
3764 cf_cv_header_path_utf8=/usr/include
3765 cf_cv_library_path_utf8=/usr/lib
3766 cf_cv_library_file_utf8="-lutf8"
3769 echo "$as_me: failed program was:" >&5
3770 cat conftest.$ac_ext >&5
3772 cf_cv_find_linkage_utf8=no
3773 LIBS="$cf_save_LIBS"
3775 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
3777 echo "${as_me:-configure}:3777: testing find linkage for utf8 library ..." 1>&5
3779 echo "${as_me:-configure}:3779: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
3781 cf_save_CPPFLAGS="$CPPFLAGS"
3782 cf_test_CPPFLAGS="$CPPFLAGS"
3786 # collect the current set of include-directories from compiler flags
3787 cf_header_path_list=""
3788 if test -n "${CFLAGS}${CPPFLAGS}" ; then
3789 for cf_header_path in $CPPFLAGS $CFLAGS
3791 case $cf_header_path in
3793 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
3795 test "x$cf_header_path" != "xNONE" && \
3796 test -d "$cf_header_path" && \
3798 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
3799 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
3800 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
3801 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
3802 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
3803 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
3806 cf_header_path_list="$cf_header_path_list $cf_search"
3812 # add the variations for the package we are looking for
3816 test "x$prefix" != "xNONE" && \
3817 test -d "$prefix" && \
3819 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
3820 test -d $prefix/include && cf_search="$cf_search $prefix/include"
3821 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
3822 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
3823 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
3824 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
3827 for cf_subdir_prefix in \
3836 test "x$cf_subdir_prefix" != "x$prefix" && \
3837 test -d "$cf_subdir_prefix" && \
3838 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
3839 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
3840 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
3841 test -d $cf_subdir_prefix/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/include/utf8"
3842 test -d $cf_subdir_prefix/include/utf8/include && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include"
3843 test -d $cf_subdir_prefix/utf8/include && cf_search="$cf_search $cf_subdir_prefix/utf8/include"
3844 test -d $cf_subdir_prefix/utf8/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8"
3849 test "$includedir" != NONE && \
3850 test "$includedir" != "/usr/include" && \
3851 test -d "$includedir" && {
3852 test -d $includedir && cf_search="$cf_search $includedir"
3853 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
3856 test "$oldincludedir" != NONE && \
3857 test "$oldincludedir" != "/usr/include" && \
3858 test -d "$oldincludedir" && {
3859 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
3860 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
3863 cf_search="$cf_search $cf_header_path_list"
3865 for cf_cv_header_path_utf8 in $cf_search
3867 if test -d $cf_cv_header_path_utf8 ; then
3868 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
3870 echo "${as_me:-configure}:3870: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
3872 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
3873 cat >conftest.$ac_ext <<_ACEOF
3874 #line 3874 "configure"
3875 #include "confdefs.h"
3877 #include <libutf8.h>
3886 rm -f conftest.$ac_objext
3887 if { (eval echo "$as_me:3887: \"$ac_compile\"") >&5
3888 (eval $ac_compile) 2>&5
3890 echo "$as_me:3890: \$? = $ac_status" >&5
3891 (exit $ac_status); } &&
3892 { ac_try='test -s conftest.$ac_objext'
3893 { (eval echo "$as_me:3893: \"$ac_try\"") >&5
3896 echo "$as_me:3896: \$? = $ac_status" >&5
3897 (exit $ac_status); }; }; then
3899 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
3901 echo "${as_me:-configure}:3901: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
3903 cf_cv_find_linkage_utf8=maybe
3904 cf_test_CPPFLAGS="$CPPFLAGS"
3907 echo "$as_me: failed program was:" >&5
3908 cat conftest.$ac_ext >&5
3910 CPPFLAGS="$cf_save_CPPFLAGS"
3913 rm -f conftest.$ac_objext conftest.$ac_ext
3917 if test "$cf_cv_find_linkage_utf8" = maybe ; then
3919 echo "${as_me:-configure}:3919: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
3921 cf_save_LIBS="$LIBS"
3922 cf_save_LDFLAGS="$LDFLAGS"
3924 if test "$cf_cv_find_linkage_utf8" != yes ; then
3927 cf_library_path_list=""
3928 if test -n "${LDFLAGS}${LIBS}" ; then
3929 for cf_library_path in $LDFLAGS $LIBS
3931 case $cf_library_path in
3933 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
3935 test "x$cf_library_path" != "xNONE" && \
3936 test -d "$cf_library_path" && \
3938 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
3939 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
3940 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
3941 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
3942 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
3943 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
3946 cf_library_path_list="$cf_library_path_list $cf_search"
3954 test "x$prefix" != "xNONE" && \
3955 test -d "$prefix" && \
3957 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
3958 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
3959 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
3960 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
3961 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
3962 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
3965 for cf_subdir_prefix in \
3974 test "x$cf_subdir_prefix" != "x$prefix" && \
3975 test -d "$cf_subdir_prefix" && \
3976 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
3977 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
3978 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
3979 test -d $cf_subdir_prefix/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
3980 test -d $cf_subdir_prefix/lib/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib"
3981 test -d $cf_subdir_prefix/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
3982 test -d $cf_subdir_prefix/utf8/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8"
3987 cf_search="$cf_library_path_list $cf_search"
3989 for cf_cv_library_path_utf8 in $cf_search
3991 if test -d $cf_cv_library_path_utf8 ; then
3992 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
3994 echo "${as_me:-configure}:3994: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
3996 CPPFLAGS="$cf_test_CPPFLAGS"
3997 LIBS="-lutf8 $cf_save_LIBS"
3998 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
3999 cat >conftest.$ac_ext <<_ACEOF
4000 #line 4000 "configure"
4001 #include "confdefs.h"
4003 #include <libutf8.h>
4012 rm -f conftest.$ac_objext conftest$ac_exeext
4013 if { (eval echo "$as_me:4013: \"$ac_link\"") >&5
4014 (eval $ac_link) 2>&5
4016 echo "$as_me:4016: \$? = $ac_status" >&5
4017 (exit $ac_status); } &&
4018 { ac_try='test -s conftest$ac_exeext'
4019 { (eval echo "$as_me:4019: \"$ac_try\"") >&5
4022 echo "$as_me:4022: \$? = $ac_status" >&5
4023 (exit $ac_status); }; }; then
4025 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
4027 echo "${as_me:-configure}:4027: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
4029 cf_cv_find_linkage_utf8=yes
4030 cf_cv_library_file_utf8="-lutf8"
4033 echo "$as_me: failed program was:" >&5
4034 cat conftest.$ac_ext >&5
4036 CPPFLAGS="$cf_save_CPPFLAGS"
4037 LIBS="$cf_save_LIBS"
4038 LDFLAGS="$cf_save_LDFLAGS"
4041 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4044 CPPFLAGS="$cf_save_CPPFLAGS"
4045 LDFLAGS="$cf_save_LDFLAGS"
4049 cf_cv_find_linkage_utf8=no
4053 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4058 LIBS="$cf_save_LIBS"
4060 if test "$cf_cv_find_linkage_utf8" = yes ; then
4061 cf_cv_utf8_lib=add-on
4067 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4069 echo "$as_me:4069: result: $cf_cv_utf8_lib" >&5
4070 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
4072 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
4074 if test "$cf_cv_utf8_lib" = "add-on" ; then
4076 cat >>confdefs.h <<\EOF
4077 #define HAVE_LIBUTF8_H 1
4080 if test -n "$cf_cv_header_path_utf8" ; then
4081 for cf_add_incdir in $cf_cv_header_path_utf8
4083 while test $cf_add_incdir != /usr/include
4085 if test -d $cf_add_incdir
4088 if test -n "$CFLAGS$CPPFLAGS" ; then
4089 # a loop is needed to ensure we can add subdirs of existing dirs
4090 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4091 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4092 cf_have_incdir=yes; break
4097 if test "$cf_have_incdir" = no ; then
4098 if test "$cf_add_incdir" = /usr/local/include ; then
4099 if test "$GCC" = yes
4101 cf_save_CPPFLAGS=$CPPFLAGS
4102 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4103 cat >conftest.$ac_ext <<_ACEOF
4104 #line 4104 "configure"
4105 #include "confdefs.h"
4115 rm -f conftest.$ac_objext
4116 if { (eval echo "$as_me:4116: \"$ac_compile\"") >&5
4117 (eval $ac_compile) 2>&5
4119 echo "$as_me:4119: \$? = $ac_status" >&5
4120 (exit $ac_status); } &&
4121 { ac_try='test -s conftest.$ac_objext'
4122 { (eval echo "$as_me:4122: \"$ac_try\"") >&5
4125 echo "$as_me:4125: \$? = $ac_status" >&5
4126 (exit $ac_status); }; }; then
4129 echo "$as_me: failed program was:" >&5
4130 cat conftest.$ac_ext >&5
4133 rm -f conftest.$ac_objext conftest.$ac_ext
4134 CPPFLAGS=$cf_save_CPPFLAGS
4139 if test "$cf_have_incdir" = no ; then
4140 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4142 echo "${as_me:-configure}:4142: testing adding $cf_add_incdir to include-path ..." 1>&5
4144 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4146 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4147 test "$cf_top_incdir" = "$cf_add_incdir" && break
4148 cf_add_incdir="$cf_top_incdir"
4157 if test -n "$cf_cv_library_path_utf8" ; then
4158 for cf_add_libdir in $cf_cv_library_path_utf8
4160 if test $cf_add_libdir = /usr/lib ; then
4162 elif test -d $cf_add_libdir
4165 if test -n "$LDFLAGS$LIBS" ; then
4166 # a loop is needed to ensure we can add subdirs of existing dirs
4167 for cf_test_libdir in $LDFLAGS $LIBS ; do
4168 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
4169 cf_have_libdir=yes; break
4173 if test "$cf_have_libdir" = no ; then
4174 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
4176 echo "${as_me:-configure}:4176: testing adding $cf_add_libdir to library-path ..." 1>&5
4178 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
4184 cf_add_libs="$cf_cv_library_file_utf8"
4185 # Filter out duplicates - this happens with badly-designed ".pc" files...
4186 for cf_add_1lib in $LIBS
4188 for cf_add_2lib in $cf_add_libs
4190 if test "x$cf_add_1lib" = "x$cf_add_2lib"
4196 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
4202 cf_ncuconfig_root=ncursesw
4203 cf_have_ncuconfig=no
4205 if test "x$PKG_CONFIG" != xnone; then
4206 echo "$as_me:4206: checking pkg-config for $cf_ncuconfig_root" >&5
4207 echo $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6
4208 if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then
4209 echo "$as_me:4209: result: yes" >&5
4210 echo "${ECHO_T}yes" >&6
4212 echo "$as_me:4212: checking if the $cf_ncuconfig_root package files work" >&5
4213 echo $ECHO_N "checking if the $cf_ncuconfig_root package files work... $ECHO_C" >&6
4214 cf_have_ncuconfig=unknown
4216 cf_save_CPPFLAGS="$CPPFLAGS"
4217 cf_save_LIBS="$LIBS"
4219 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG --cflags $cf_ncuconfig_root`"
4221 cf_add_libs="`$PKG_CONFIG --libs $cf_ncuconfig_root`"
4222 # Filter out duplicates - this happens with badly-designed ".pc" files...
4223 for cf_add_1lib in $LIBS
4225 for cf_add_2lib in $cf_add_libs
4227 if test "x$cf_add_1lib" = "x$cf_add_2lib"
4233 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
4237 cat >conftest.$ac_ext <<_ACEOF
4238 #line 4238 "configure"
4239 #include "confdefs.h"
4240 #include <${cf_cv_ncurses_header:-curses.h}>
4244 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
4249 rm -f conftest.$ac_objext conftest$ac_exeext
4250 if { (eval echo "$as_me:4250: \"$ac_link\"") >&5
4251 (eval $ac_link) 2>&5
4253 echo "$as_me:4253: \$? = $ac_status" >&5
4254 (exit $ac_status); } &&
4255 { ac_try='test -s conftest$ac_exeext'
4256 { (eval echo "$as_me:4256: \"$ac_try\"") >&5
4259 echo "$as_me:4259: \$? = $ac_status" >&5
4260 (exit $ac_status); }; }; then
4261 if test "$cross_compiling" = yes; then
4262 { { echo "$as_me:4262: error: cannot run test program while cross compiling" >&5
4263 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
4264 { (exit 1); exit 1; }; }
4266 cat >conftest.$ac_ext <<_ACEOF
4267 #line 4267 "configure"
4268 #include "confdefs.h"
4269 #include <${cf_cv_ncurses_header:-curses.h}>
4271 { char *xx = curses_version(); return (xx == 0); }
4273 rm -f conftest$ac_exeext
4274 if { (eval echo "$as_me:4274: \"$ac_link\"") >&5
4275 (eval $ac_link) 2>&5
4277 echo "$as_me:4277: \$? = $ac_status" >&5
4278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4279 { (eval echo "$as_me:4279: \"$ac_try\"") >&5
4282 echo "$as_me:4282: \$? = $ac_status" >&5
4283 (exit $ac_status); }; }; then
4284 cf_have_ncuconfig=yes
4286 echo "$as_me: program exited with status $ac_status" >&5
4287 echo "$as_me: failed program was:" >&5
4288 cat conftest.$ac_ext >&5
4289 cf_have_ncuconfig=no
4291 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4294 echo "$as_me: failed program was:" >&5
4295 cat conftest.$ac_ext >&5
4296 cf_have_ncuconfig=no
4298 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4300 echo "$as_me:4300: result: $cf_have_ncuconfig" >&5
4301 echo "${ECHO_T}$cf_have_ncuconfig" >&6
4302 if test "$cf_have_ncuconfig" != "yes"
4304 CPPFLAGS="$cf_save_CPPFLAGS"
4305 LIBS="$cf_save_LIBS"
4308 cat >>confdefs.h <<\EOF
4315 echo "$as_me:4315: result: no" >&5
4316 echo "${ECHO_T}no" >&6
4320 if test "x$cf_have_ncuconfig" = "xno"; then
4321 echo "Looking for ${cf_ncuconfig_root}-config"
4323 if test -n "$ac_tool_prefix"; then
4324 for ac_prog in ${cf_ncuconfig_root}-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
4326 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4327 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4328 echo "$as_me:4328: checking for $ac_word" >&5
4329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4330 if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
4331 echo $ECHO_N "(cached) $ECHO_C" >&6
4333 if test -n "$NCURSES_CONFIG"; then
4334 ac_cv_prog_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test.
4336 ac_save_IFS=$IFS; IFS=$ac_path_separator
4338 for ac_dir in $ac_dummy; do
4340 test -z "$ac_dir" && ac_dir=.
4341 $as_executable_p "$ac_dir/$ac_word" || continue
4342 ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog"
4343 echo "$as_me:4343: found $ac_dir/$ac_word" >&5
4349 NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG
4350 if test -n "$NCURSES_CONFIG"; then
4351 echo "$as_me:4351: result: $NCURSES_CONFIG" >&5
4352 echo "${ECHO_T}$NCURSES_CONFIG" >&6
4354 echo "$as_me:4354: result: no" >&5
4355 echo "${ECHO_T}no" >&6
4358 test -n "$NCURSES_CONFIG" && break
4361 if test -z "$NCURSES_CONFIG"; then
4362 ac_ct_NCURSES_CONFIG=$NCURSES_CONFIG
4363 for ac_prog in ${cf_ncuconfig_root}-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
4365 # Extract the first word of "$ac_prog", so it can be a program name with args.
4366 set dummy $ac_prog; ac_word=$2
4367 echo "$as_me:4367: checking for $ac_word" >&5
4368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4369 if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
4372 if test -n "$ac_ct_NCURSES_CONFIG"; then
4373 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_ct_NCURSES_CONFIG" # Let the user override the test.
4375 ac_save_IFS=$IFS; IFS=$ac_path_separator
4377 for ac_dir in $ac_dummy; do
4379 test -z "$ac_dir" && ac_dir=.
4380 $as_executable_p "$ac_dir/$ac_word" || continue
4381 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog"
4382 echo "$as_me:4382: found $ac_dir/$ac_word" >&5
4388 ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG
4389 if test -n "$ac_ct_NCURSES_CONFIG"; then
4390 echo "$as_me:4390: result: $ac_ct_NCURSES_CONFIG" >&5
4391 echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
4393 echo "$as_me:4393: result: no" >&5
4394 echo "${ECHO_T}no" >&6
4397 test -n "$ac_ct_NCURSES_CONFIG" && break
4399 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
4401 NCURSES_CONFIG=$ac_ct_NCURSES_CONFIG
4404 if test "$NCURSES_CONFIG" != none ; then
4406 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
4408 cf_add_libs="`$NCURSES_CONFIG --libs`"
4409 # Filter out duplicates - this happens with badly-designed ".pc" files...
4410 for cf_add_1lib in $LIBS
4412 for cf_add_2lib in $cf_add_libs
4414 if test "x$cf_add_1lib" = "x$cf_add_2lib"
4420 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
4424 # even with config script, some packages use no-override for curses.h
4426 echo "$as_me:4426: checking if we have identified curses headers" >&5
4427 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
4428 if test "${cf_cv_ncurses_header+set}" = set; then
4429 echo $ECHO_N "(cached) $ECHO_C" >&6
4432 cf_cv_ncurses_header=none
4434 ncurses.h ncursesw/ncurses.h \
4435 curses.h ncursesw/curses.h
4437 cat >conftest.$ac_ext <<_ACEOF
4438 #line 4438 "configure"
4439 #include "confdefs.h"
4440 #include <${cf_header}>
4444 initscr(); tgoto("?", 0,0)
4449 rm -f conftest.$ac_objext
4450 if { (eval echo "$as_me:4450: \"$ac_compile\"") >&5
4451 (eval $ac_compile) 2>&5
4453 echo "$as_me:4453: \$? = $ac_status" >&5
4454 (exit $ac_status); } &&
4455 { ac_try='test -s conftest.$ac_objext'
4456 { (eval echo "$as_me:4456: \"$ac_try\"") >&5
4459 echo "$as_me:4459: \$? = $ac_status" >&5
4460 (exit $ac_status); }; }; then
4461 cf_cv_ncurses_header=$cf_header; break
4463 echo "$as_me: failed program was:" >&5
4464 cat conftest.$ac_ext >&5
4466 rm -f conftest.$ac_objext conftest.$ac_ext
4470 echo "$as_me:4470: result: $cf_cv_ncurses_header" >&5
4471 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
4473 if test "$cf_cv_ncurses_header" = none ; then
4474 { { echo "$as_me:4474: error: No curses header-files found" >&5
4475 echo "$as_me: error: No curses header-files found" >&2;}
4476 { (exit 1); exit 1; }; }
4479 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
4481 for ac_header in $cf_cv_ncurses_header
4483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4484 echo "$as_me:4484: checking for $ac_header" >&5
4485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4487 echo $ECHO_N "(cached) $ECHO_C" >&6
4489 cat >conftest.$ac_ext <<_ACEOF
4490 #line 4490 "configure"
4491 #include "confdefs.h"
4492 #include <$ac_header>
4494 if { (eval echo "$as_me:4494: \"$ac_cpp conftest.$ac_ext\"") >&5
4495 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4497 egrep -v '^ *\+' conftest.er1 >conftest.err
4499 cat conftest.err >&5
4500 echo "$as_me:4500: \$? = $ac_status" >&5
4501 (exit $ac_status); } >/dev/null; then
4502 if test -s conftest.err; then
4503 ac_cpp_err=$ac_c_preproc_warn_flag
4510 if test -z "$ac_cpp_err"; then
4511 eval "$as_ac_Header=yes"
4513 echo "$as_me: failed program was:" >&5
4514 cat conftest.$ac_ext >&5
4515 eval "$as_ac_Header=no"
4517 rm -f conftest.err conftest.$ac_ext
4519 echo "$as_me:4519: result: `eval echo '${'$as_ac_Header'}'`" >&5
4520 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4521 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4522 cat >>confdefs.h <<EOF
4523 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4529 cat >>confdefs.h <<\EOF
4533 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4535 cat >>confdefs.h <<EOF
4536 #define $cf_nculib_ROOT 1
4539 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
4543 cf_ncuhdr_root=ncursesw
4545 test -n "$cf_cv_curses_dir" && \
4546 test "$cf_cv_curses_dir" != "no" && { \
4548 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
4549 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
4551 while test $cf_add_incdir != /usr/include
4553 if test -d $cf_add_incdir
4556 if test -n "$CFLAGS$CPPFLAGS" ; then
4557 # a loop is needed to ensure we can add subdirs of existing dirs
4558 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4559 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4560 cf_have_incdir=yes; break
4565 if test "$cf_have_incdir" = no ; then
4566 if test "$cf_add_incdir" = /usr/local/include ; then
4567 if test "$GCC" = yes
4569 cf_save_CPPFLAGS=$CPPFLAGS
4570 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4571 cat >conftest.$ac_ext <<_ACEOF
4572 #line 4572 "configure"
4573 #include "confdefs.h"
4583 rm -f conftest.$ac_objext
4584 if { (eval echo "$as_me:4584: \"$ac_compile\"") >&5
4585 (eval $ac_compile) 2>&5
4587 echo "$as_me:4587: \$? = $ac_status" >&5
4588 (exit $ac_status); } &&
4589 { ac_try='test -s conftest.$ac_objext'
4590 { (eval echo "$as_me:4590: \"$ac_try\"") >&5
4593 echo "$as_me:4593: \$? = $ac_status" >&5
4594 (exit $ac_status); }; }; then
4597 echo "$as_me: failed program was:" >&5
4598 cat conftest.$ac_ext >&5
4601 rm -f conftest.$ac_objext conftest.$ac_ext
4602 CPPFLAGS=$cf_save_CPPFLAGS
4607 if test "$cf_have_incdir" = no ; then
4608 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4610 echo "${as_me:-configure}:4610: testing adding $cf_add_incdir to include-path ..." 1>&5
4612 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4614 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4615 test "$cf_top_incdir" = "$cf_add_incdir" && break
4616 cf_add_incdir="$cf_top_incdir"
4627 echo "$as_me:4627: checking for $cf_ncuhdr_root header in include-path" >&5
4628 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
4629 if test "${cf_cv_ncurses_h+set}" = set; then
4630 echo $ECHO_N "(cached) $ECHO_C" >&6
4633 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
4634 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
4635 for cf_header in $cf_header_list
4638 cat >conftest.$ac_ext <<_ACEOF
4639 #line 4639 "configure"
4640 #include "confdefs.h"
4642 #define _XOPEN_SOURCE_EXTENDED
4643 #undef HAVE_LIBUTF8_H /* in case we used CF_UTF8_LIB */
4644 #define HAVE_LIBUTF8_H /* to force ncurses' header file to use cchar_t */
4646 #include <$cf_header>
4651 #ifdef NCURSES_VERSION
4657 printf("%s\n", NCURSES_VERSION);
4670 rm -f conftest.$ac_objext
4671 if { (eval echo "$as_me:4671: \"$ac_compile\"") >&5
4672 (eval $ac_compile) 2>&5
4674 echo "$as_me:4674: \$? = $ac_status" >&5
4675 (exit $ac_status); } &&
4676 { ac_try='test -s conftest.$ac_objext'
4677 { (eval echo "$as_me:4677: \"$ac_try\"") >&5
4680 echo "$as_me:4680: \$? = $ac_status" >&5
4681 (exit $ac_status); }; }; then
4682 cf_cv_ncurses_h=$cf_header
4685 echo "$as_me: failed program was:" >&5
4686 cat conftest.$ac_ext >&5
4689 rm -f conftest.$ac_objext conftest.$ac_ext
4691 test "$cf_cv_ncurses_h" != no && break
4695 echo "$as_me:4695: result: $cf_cv_ncurses_h" >&5
4696 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
4698 if test "$cf_cv_ncurses_h" != no ; then
4699 cf_cv_ncurses_header=$cf_cv_ncurses_h
4702 echo "$as_me:4702: checking for $cf_ncuhdr_root include-path" >&5
4703 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
4704 if test "${cf_cv_ncurses_h2+set}" = set; then
4705 echo $ECHO_N "(cached) $ECHO_C" >&6
4708 test -n "$verbose" && echo
4712 # collect the current set of include-directories from compiler flags
4713 cf_header_path_list=""
4714 if test -n "${CFLAGS}${CPPFLAGS}" ; then
4715 for cf_header_path in $CPPFLAGS $CFLAGS
4717 case $cf_header_path in
4719 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
4721 test "x$cf_header_path" != "xNONE" && \
4722 test -d "$cf_header_path" && \
4724 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
4725 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
4726 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
4727 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
4728 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
4729 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"
4732 cf_header_path_list="$cf_header_path_list $cf_search"
4738 # add the variations for the package we are looking for
4742 test "x$prefix" != "xNONE" && \
4743 test -d "$prefix" && \
4745 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
4746 test -d $prefix/include && cf_search="$cf_search $prefix/include"
4747 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
4748 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
4749 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
4750 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
4753 for cf_subdir_prefix in \
4762 test "x$cf_subdir_prefix" != "x$prefix" && \
4763 test -d "$cf_subdir_prefix" && \
4764 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
4765 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
4766 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
4767 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root"
4768 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root/include"
4769 test -d $cf_subdir_prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include"
4770 test -d $cf_subdir_prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
4775 test "$includedir" != NONE && \
4776 test "$includedir" != "/usr/include" && \
4777 test -d "$includedir" && {
4778 test -d $includedir && cf_search="$cf_search $includedir"
4779 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
4782 test "$oldincludedir" != NONE && \
4783 test "$oldincludedir" != "/usr/include" && \
4784 test -d "$oldincludedir" && {
4785 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
4786 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
4789 cf_search="$cf_search $cf_header_path_list"
4791 test -n "$verbose" && echo search path $cf_search
4792 cf_save2_CPPFLAGS="$CPPFLAGS"
4793 for cf_incdir in $cf_search
4796 if test -n "$cf_incdir" ; then
4797 for cf_add_incdir in $cf_incdir
4799 while test $cf_add_incdir != /usr/include
4801 if test -d $cf_add_incdir
4804 if test -n "$CFLAGS$CPPFLAGS" ; then
4805 # a loop is needed to ensure we can add subdirs of existing dirs
4806 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4807 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4808 cf_have_incdir=yes; break
4813 if test "$cf_have_incdir" = no ; then
4814 if test "$cf_add_incdir" = /usr/local/include ; then
4815 if test "$GCC" = yes
4817 cf_save_CPPFLAGS=$CPPFLAGS
4818 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4819 cat >conftest.$ac_ext <<_ACEOF
4820 #line 4820 "configure"
4821 #include "confdefs.h"
4831 rm -f conftest.$ac_objext
4832 if { (eval echo "$as_me:4832: \"$ac_compile\"") >&5
4833 (eval $ac_compile) 2>&5
4835 echo "$as_me:4835: \$? = $ac_status" >&5
4836 (exit $ac_status); } &&
4837 { ac_try='test -s conftest.$ac_objext'
4838 { (eval echo "$as_me:4838: \"$ac_try\"") >&5
4841 echo "$as_me:4841: \$? = $ac_status" >&5
4842 (exit $ac_status); }; }; then
4845 echo "$as_me: failed program was:" >&5
4846 cat conftest.$ac_ext >&5
4849 rm -f conftest.$ac_objext conftest.$ac_ext
4850 CPPFLAGS=$cf_save_CPPFLAGS
4855 if test "$cf_have_incdir" = no ; then
4856 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4858 echo "${as_me:-configure}:4858: testing adding $cf_add_incdir to include-path ..." 1>&5
4860 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4862 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4863 test "$cf_top_incdir" = "$cf_add_incdir" && break
4864 cf_add_incdir="$cf_top_incdir"
4878 cat >conftest.$ac_ext <<_ACEOF
4879 #line 4879 "configure"
4880 #include "confdefs.h"
4882 #include <$cf_header>
4887 #ifdef NCURSES_VERSION
4889 printf("%s\n", NCURSES_VERSION);
4902 rm -f conftest.$ac_objext
4903 if { (eval echo "$as_me:4903: \"$ac_compile\"") >&5
4904 (eval $ac_compile) 2>&5
4906 echo "$as_me:4906: \$? = $ac_status" >&5
4907 (exit $ac_status); } &&
4908 { ac_try='test -s conftest.$ac_objext'
4909 { (eval echo "$as_me:4909: \"$ac_try\"") >&5
4912 echo "$as_me:4912: \$? = $ac_status" >&5
4913 (exit $ac_status); }; }; then
4914 cf_cv_ncurses_h2=$cf_header
4917 echo "$as_me: failed program was:" >&5
4918 cat conftest.$ac_ext >&5
4921 rm -f conftest.$ac_objext conftest.$ac_ext
4923 if test "$cf_cv_ncurses_h2" != no ; then
4924 cf_cv_ncurses_h2=$cf_incdir/$cf_header
4925 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
4928 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
4930 CPPFLAGS="$cf_save2_CPPFLAGS"
4931 test "$cf_cv_ncurses_h2" != no && break
4933 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:4933: error: not found" >&5
4934 echo "$as_me: error: not found" >&2;}
4935 { (exit 1); exit 1; }; }
4938 echo "$as_me:4938: result: $cf_cv_ncurses_h2" >&5
4939 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
4941 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
4942 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
4943 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
4944 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
4947 if test -n "$cf_1st_incdir" ; then
4948 for cf_add_incdir in $cf_1st_incdir
4950 while test $cf_add_incdir != /usr/include
4952 if test -d $cf_add_incdir
4955 if test -n "$CFLAGS$CPPFLAGS" ; then
4956 # a loop is needed to ensure we can add subdirs of existing dirs
4957 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4958 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4959 cf_have_incdir=yes; break
4964 if test "$cf_have_incdir" = no ; then
4965 if test "$cf_add_incdir" = /usr/local/include ; then
4966 if test "$GCC" = yes
4968 cf_save_CPPFLAGS=$CPPFLAGS
4969 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4970 cat >conftest.$ac_ext <<_ACEOF
4971 #line 4971 "configure"
4972 #include "confdefs.h"
4982 rm -f conftest.$ac_objext
4983 if { (eval echo "$as_me:4983: \"$ac_compile\"") >&5
4984 (eval $ac_compile) 2>&5
4986 echo "$as_me:4986: \$? = $ac_status" >&5
4987 (exit $ac_status); } &&
4988 { ac_try='test -s conftest.$ac_objext'
4989 { (eval echo "$as_me:4989: \"$ac_try\"") >&5
4992 echo "$as_me:4992: \$? = $ac_status" >&5
4993 (exit $ac_status); }; }; then
4996 echo "$as_me: failed program was:" >&5
4997 cat conftest.$ac_ext >&5
5000 rm -f conftest.$ac_objext conftest.$ac_ext
5001 CPPFLAGS=$cf_save_CPPFLAGS
5006 if test "$cf_have_incdir" = no ; then
5007 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
5009 echo "${as_me:-configure}:5009: testing adding $cf_add_incdir to include-path ..." 1>&5
5011 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5013 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
5014 test "$cf_top_incdir" = "$cf_add_incdir" && break
5015 cf_add_incdir="$cf_top_incdir"
5026 # Set definitions to allow ifdef'ing for ncurses.h
5028 case $cf_cv_ncurses_header in
5031 cat >>confdefs.h <<\EOF
5032 #define HAVE_NCURSES_H 1
5038 case $cf_cv_ncurses_header in
5039 (ncurses/curses.h|ncurses/ncurses.h)
5041 cat >>confdefs.h <<\EOF
5042 #define HAVE_NCURSES_NCURSES_H 1
5046 (ncursesw/curses.h|ncursesw/ncurses.h)
5048 cat >>confdefs.h <<\EOF
5049 #define HAVE_NCURSESW_NCURSES_H 1
5055 echo "$as_me:5055: checking for terminfo header" >&5
5056 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
5057 if test "${cf_cv_term_header+set}" = set; then
5058 echo $ECHO_N "(cached) $ECHO_C" >&6
5061 case ${cf_cv_ncurses_header} in
5062 (*/ncurses.h|*/ncursesw.h)
5063 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
5066 cf_term_header=term.h
5070 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
5072 cat >conftest.$ac_ext <<_ACEOF
5073 #line 5073 "configure"
5074 #include "confdefs.h"
5076 #include <${cf_cv_ncurses_header:-curses.h}>
5082 int x = auto_left_margin
5087 rm -f conftest.$ac_objext
5088 if { (eval echo "$as_me:5088: \"$ac_compile\"") >&5
5089 (eval $ac_compile) 2>&5
5091 echo "$as_me:5091: \$? = $ac_status" >&5
5092 (exit $ac_status); } &&
5093 { ac_try='test -s conftest.$ac_objext'
5094 { (eval echo "$as_me:5094: \"$ac_try\"") >&5
5097 echo "$as_me:5097: \$? = $ac_status" >&5
5098 (exit $ac_status); }; }; then
5100 cf_cv_term_header="$cf_test"
5102 echo "$as_me: failed program was:" >&5
5103 cat conftest.$ac_ext >&5
5105 cf_cv_term_header=unknown
5108 rm -f conftest.$ac_objext conftest.$ac_ext
5109 test "$cf_cv_term_header" != unknown && break
5113 echo "$as_me:5113: result: $cf_cv_term_header" >&5
5114 echo "${ECHO_T}$cf_cv_term_header" >&6
5116 # Set definitions to allow ifdef'ing to accommodate subdirectories
5118 case $cf_cv_term_header in
5121 cat >>confdefs.h <<\EOF
5122 #define HAVE_TERM_H 1
5128 case $cf_cv_term_header in
5131 cat >>confdefs.h <<\EOF
5132 #define HAVE_NCURSES_TERM_H 1
5138 cat >>confdefs.h <<\EOF
5139 #define HAVE_NCURSESW_TERM_H 1
5145 # some applications need this, but should check for NCURSES_VERSION
5147 cat >>confdefs.h <<\EOF
5151 echo "$as_me:5151: checking for ncurses version" >&5
5152 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
5153 if test "${cf_cv_ncurses_version+set}" = set; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5157 cf_cv_ncurses_version=no
5160 if test "$cross_compiling" = yes; then
5162 # This will not work if the preprocessor splits the line after the
5163 # Autoconf token. The 'unproto' program does that.
5164 cat > conftest.$ac_ext <<EOF
5165 #include <${cf_cv_ncurses_header:-curses.h}>
5167 #ifdef NCURSES_VERSION
5168 Autoconf NCURSES_VERSION
5176 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
5177 { (eval echo "$as_me:5177: \"$cf_try\"") >&5
5180 echo "$as_me:5180: \$? = $ac_status" >&5
5181 (exit $ac_status); }
5182 if test -f conftest.out ; then
5183 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
5184 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
5189 cat >conftest.$ac_ext <<_ACEOF
5190 #line 5190 "configure"
5191 #include "confdefs.h"
5193 #include <${cf_cv_ncurses_header:-curses.h}>
5197 FILE *fp = fopen("$cf_tempfile", "w");
5198 #ifdef NCURSES_VERSION
5199 # ifdef NCURSES_VERSION_PATCH
5200 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
5202 fprintf(fp, "%s\n", NCURSES_VERSION);
5206 fprintf(fp, "old\n");
5211 ${cf_cv_main_return:-return}(0);
5214 rm -f conftest$ac_exeext
5215 if { (eval echo "$as_me:5215: \"$ac_link\"") >&5
5216 (eval $ac_link) 2>&5
5218 echo "$as_me:5218: \$? = $ac_status" >&5
5219 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5220 { (eval echo "$as_me:5220: \"$ac_try\"") >&5
5223 echo "$as_me:5223: \$? = $ac_status" >&5
5224 (exit $ac_status); }; }; then
5226 cf_cv_ncurses_version=`cat $cf_tempfile`
5228 echo "$as_me: program exited with status $ac_status" >&5
5229 echo "$as_me: failed program was:" >&5
5230 cat conftest.$ac_ext >&5
5232 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5237 echo "$as_me:5237: result: $cf_cv_ncurses_version" >&5
5238 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
5239 test "$cf_cv_ncurses_version" = no ||
5240 cat >>confdefs.h <<\EOF
5244 cf_nculib_root=ncursesw
5245 # This works, except for the special case where we find gpm, but
5246 # ncurses is in a nonstandard location via $LIBS, and we really want
5249 cf_ncurses_SAVE="$LIBS"
5250 echo "$as_me:5250: checking for Gpm_Open in -lgpm" >&5
5251 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
5252 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
5253 echo $ECHO_N "(cached) $ECHO_C" >&6
5255 ac_check_lib_save_LIBS=$LIBS
5257 cat >conftest.$ac_ext <<_ACEOF
5258 #line 5258 "configure"
5259 #include "confdefs.h"
5261 /* Override any gcc2 internal prototype to avoid an error. */
5265 /* We use char because int might match the return type of a gcc2
5266 builtin and then its argument prototype would still apply. */
5276 rm -f conftest.$ac_objext conftest$ac_exeext
5277 if { (eval echo "$as_me:5277: \"$ac_link\"") >&5
5278 (eval $ac_link) 2>&5
5280 echo "$as_me:5280: \$? = $ac_status" >&5
5281 (exit $ac_status); } &&
5282 { ac_try='test -s conftest$ac_exeext'
5283 { (eval echo "$as_me:5283: \"$ac_try\"") >&5
5286 echo "$as_me:5286: \$? = $ac_status" >&5
5287 (exit $ac_status); }; }; then
5288 ac_cv_lib_gpm_Gpm_Open=yes
5290 echo "$as_me: failed program was:" >&5
5291 cat conftest.$ac_ext >&5
5292 ac_cv_lib_gpm_Gpm_Open=no
5294 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5295 LIBS=$ac_check_lib_save_LIBS
5297 echo "$as_me:5297: result: $ac_cv_lib_gpm_Gpm_Open" >&5
5298 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
5299 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
5300 echo "$as_me:5300: checking for initscr in -lgpm" >&5
5301 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
5302 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
5303 echo $ECHO_N "(cached) $ECHO_C" >&6
5305 ac_check_lib_save_LIBS=$LIBS
5307 cat >conftest.$ac_ext <<_ACEOF
5308 #line 5308 "configure"
5309 #include "confdefs.h"
5311 /* Override any gcc2 internal prototype to avoid an error. */
5315 /* We use char because int might match the return type of a gcc2
5316 builtin and then its argument prototype would still apply. */
5326 rm -f conftest.$ac_objext conftest$ac_exeext
5327 if { (eval echo "$as_me:5327: \"$ac_link\"") >&5
5328 (eval $ac_link) 2>&5
5330 echo "$as_me:5330: \$? = $ac_status" >&5
5331 (exit $ac_status); } &&
5332 { ac_try='test -s conftest$ac_exeext'
5333 { (eval echo "$as_me:5333: \"$ac_try\"") >&5
5336 echo "$as_me:5336: \$? = $ac_status" >&5
5337 (exit $ac_status); }; }; then
5338 ac_cv_lib_gpm_initscr=yes
5340 echo "$as_me: failed program was:" >&5
5341 cat conftest.$ac_ext >&5
5342 ac_cv_lib_gpm_initscr=no
5344 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5345 LIBS=$ac_check_lib_save_LIBS
5347 echo "$as_me:5347: result: $ac_cv_lib_gpm_initscr" >&5
5348 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
5349 if test $ac_cv_lib_gpm_initscr = yes; then
5350 LIBS="$cf_ncurses_SAVE"
5352 cf_ncurses_LIBS="-lgpm"
5359 # This is only necessary if you are linking against an obsolete
5360 # version of ncurses (but it should do no harm, since it's static).
5361 if test "$cf_nculib_root" = ncurses ; then
5362 echo "$as_me:5362: checking for tgoto in -lmytinfo" >&5
5363 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
5364 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
5365 echo $ECHO_N "(cached) $ECHO_C" >&6
5367 ac_check_lib_save_LIBS=$LIBS
5368 LIBS="-lmytinfo $LIBS"
5369 cat >conftest.$ac_ext <<_ACEOF
5370 #line 5370 "configure"
5371 #include "confdefs.h"
5373 /* Override any gcc2 internal prototype to avoid an error. */
5377 /* We use char because int might match the return type of a gcc2
5378 builtin and then its argument prototype would still apply. */
5388 rm -f conftest.$ac_objext conftest$ac_exeext
5389 if { (eval echo "$as_me:5389: \"$ac_link\"") >&5
5390 (eval $ac_link) 2>&5
5392 echo "$as_me:5392: \$? = $ac_status" >&5
5393 (exit $ac_status); } &&
5394 { ac_try='test -s conftest$ac_exeext'
5395 { (eval echo "$as_me:5395: \"$ac_try\"") >&5
5398 echo "$as_me:5398: \$? = $ac_status" >&5
5399 (exit $ac_status); }; }; then
5400 ac_cv_lib_mytinfo_tgoto=yes
5402 echo "$as_me: failed program was:" >&5
5403 cat conftest.$ac_ext >&5
5404 ac_cv_lib_mytinfo_tgoto=no
5406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5407 LIBS=$ac_check_lib_save_LIBS
5409 echo "$as_me:5409: result: $ac_cv_lib_mytinfo_tgoto" >&5
5410 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
5411 if test $ac_cv_lib_mytinfo_tgoto = yes; then
5412 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
5419 cf_add_libs="$cf_ncurses_LIBS"
5420 # Filter out duplicates - this happens with badly-designed ".pc" files...
5421 for cf_add_1lib in $LIBS
5423 for cf_add_2lib in $cf_add_libs
5425 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5431 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5435 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
5438 cf_add_libs="-l$cf_nculib_root"
5439 # Filter out duplicates - this happens with badly-designed ".pc" files...
5440 for cf_add_1lib in $LIBS
5442 for cf_add_2lib in $cf_add_libs
5444 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5450 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5456 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
5458 echo "$as_me:5458: checking for initscr" >&5
5459 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
5460 if test "${ac_cv_func_initscr+set}" = set; then
5461 echo $ECHO_N "(cached) $ECHO_C" >&6
5463 cat >conftest.$ac_ext <<_ACEOF
5464 #line 5464 "configure"
5465 #include "confdefs.h"
5466 /* System header to define __stub macros and hopefully few prototypes,
5467 which can conflict with char initscr (); below. */
5469 /* Override any gcc2 internal prototype to avoid an error. */
5473 /* We use char because int might match the return type of a gcc2
5474 builtin and then its argument prototype would still apply. */
5481 /* The GNU C library defines this for functions which it implements
5482 to always fail with ENOSYS. Some functions are actually named
5483 something starting with __ and the normal name is an alias. */
5484 #if defined (__stub_initscr) || defined (__stub___initscr)
5487 f = initscr; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
5494 rm -f conftest.$ac_objext conftest$ac_exeext
5495 if { (eval echo "$as_me:5495: \"$ac_link\"") >&5
5496 (eval $ac_link) 2>&5
5498 echo "$as_me:5498: \$? = $ac_status" >&5
5499 (exit $ac_status); } &&
5500 { ac_try='test -s conftest$ac_exeext'
5501 { (eval echo "$as_me:5501: \"$ac_try\"") >&5
5504 echo "$as_me:5504: \$? = $ac_status" >&5
5505 (exit $ac_status); }; }; then
5506 ac_cv_func_initscr=yes
5508 echo "$as_me: failed program was:" >&5
5509 cat conftest.$ac_ext >&5
5510 ac_cv_func_initscr=no
5512 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5514 echo "$as_me:5514: result: $ac_cv_func_initscr" >&5
5515 echo "${ECHO_T}$ac_cv_func_initscr" >&6
5516 if test $ac_cv_func_initscr = yes; then
5517 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
5520 cf_save_LIBS="$LIBS"
5521 echo "$as_me:5521: checking for initscr in -l$cf_nculib_root" >&5
5522 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
5523 LIBS="-l$cf_nculib_root $LIBS"
5524 cat >conftest.$ac_ext <<_ACEOF
5525 #line 5525 "configure"
5526 #include "confdefs.h"
5527 #include <${cf_cv_ncurses_header:-curses.h}>
5536 rm -f conftest.$ac_objext conftest$ac_exeext
5537 if { (eval echo "$as_me:5537: \"$ac_link\"") >&5
5538 (eval $ac_link) 2>&5
5540 echo "$as_me:5540: \$? = $ac_status" >&5
5541 (exit $ac_status); } &&
5542 { ac_try='test -s conftest$ac_exeext'
5543 { (eval echo "$as_me:5543: \"$ac_try\"") >&5
5546 echo "$as_me:5546: \$? = $ac_status" >&5
5547 (exit $ac_status); }; }; then
5548 echo "$as_me:5548: result: yes" >&5
5549 echo "${ECHO_T}yes" >&6
5550 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
5553 echo "$as_me: failed program was:" >&5
5554 cat conftest.$ac_ext >&5
5555 echo "$as_me:5555: result: no" >&5
5556 echo "${ECHO_T}no" >&6
5559 cf_library_path_list=""
5560 if test -n "${LDFLAGS}${LIBS}" ; then
5561 for cf_library_path in $LDFLAGS $LIBS
5563 case $cf_library_path in
5565 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
5567 test "x$cf_library_path" != "xNONE" && \
5568 test -d "$cf_library_path" && \
5570 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
5571 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
5572 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
5573 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
5574 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
5575 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"
5578 cf_library_path_list="$cf_library_path_list $cf_search"
5586 test "x$prefix" != "xNONE" && \
5587 test -d "$prefix" && \
5589 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
5590 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
5591 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
5592 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
5593 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
5594 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
5597 for cf_subdir_prefix in \
5606 test "x$cf_subdir_prefix" != "x$prefix" && \
5607 test -d "$cf_subdir_prefix" && \
5608 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
5609 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
5610 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
5611 test -d $cf_subdir_prefix/lib/$cf_nculib_root && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root"
5612 test -d $cf_subdir_prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root/lib"
5613 test -d $cf_subdir_prefix/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib"
5614 test -d $cf_subdir_prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib/$cf_nculib_root"
5619 cf_search="$cf_library_path_list $cf_search"
5621 for cf_libdir in $cf_search
5623 echo "$as_me:5623: checking for -l$cf_nculib_root in $cf_libdir" >&5
5624 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
5625 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
5626 cat >conftest.$ac_ext <<_ACEOF
5627 #line 5627 "configure"
5628 #include "confdefs.h"
5629 #include <${cf_cv_ncurses_header:-curses.h}>
5638 rm -f conftest.$ac_objext conftest$ac_exeext
5639 if { (eval echo "$as_me:5639: \"$ac_link\"") >&5
5640 (eval $ac_link) 2>&5
5642 echo "$as_me:5642: \$? = $ac_status" >&5
5643 (exit $ac_status); } &&
5644 { ac_try='test -s conftest$ac_exeext'
5645 { (eval echo "$as_me:5645: \"$ac_try\"") >&5
5648 echo "$as_me:5648: \$? = $ac_status" >&5
5649 (exit $ac_status); }; }; then
5650 echo "$as_me:5650: result: yes" >&5
5651 echo "${ECHO_T}yes" >&6
5652 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
5655 echo "$as_me: failed program was:" >&5
5656 cat conftest.$ac_ext >&5
5657 echo "$as_me:5657: result: no" >&5
5658 echo "${ECHO_T}no" >&6
5659 LIBS="$cf_save_LIBS"
5661 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5665 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5669 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
5671 if test $cf_found_library = no ; then
5672 { { echo "$as_me:5672: error: Cannot link $cf_nculib_root library" >&5
5673 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
5674 { (exit 1); exit 1; }; }
5679 if test -n "$cf_ncurses_LIBS" ; then
5680 echo "$as_me:5680: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
5681 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
5682 cf_ncurses_SAVE="$LIBS"
5683 for p in $cf_ncurses_LIBS ; do
5684 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
5685 if test "$q" != "$LIBS" ; then
5689 cat >conftest.$ac_ext <<_ACEOF
5690 #line 5690 "configure"
5691 #include "confdefs.h"
5692 #include <${cf_cv_ncurses_header:-curses.h}>
5696 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
5701 rm -f conftest.$ac_objext conftest$ac_exeext
5702 if { (eval echo "$as_me:5702: \"$ac_link\"") >&5
5703 (eval $ac_link) 2>&5
5705 echo "$as_me:5705: \$? = $ac_status" >&5
5706 (exit $ac_status); } &&
5707 { ac_try='test -s conftest$ac_exeext'
5708 { (eval echo "$as_me:5708: \"$ac_try\"") >&5
5711 echo "$as_me:5711: \$? = $ac_status" >&5
5712 (exit $ac_status); }; }; then
5713 echo "$as_me:5713: result: yes" >&5
5714 echo "${ECHO_T}yes" >&6
5716 echo "$as_me: failed program was:" >&5
5717 cat conftest.$ac_ext >&5
5718 echo "$as_me:5718: result: no" >&5
5719 echo "${ECHO_T}no" >&6
5720 LIBS="$cf_ncurses_SAVE"
5722 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5725 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5727 cat >>confdefs.h <<EOF
5728 #define $cf_nculib_ROOT 1
5736 cf_ncuconfig_root=ncurses
5737 cf_have_ncuconfig=no
5739 if test "x$PKG_CONFIG" != xnone; then
5740 echo "$as_me:5740: checking pkg-config for $cf_ncuconfig_root" >&5
5741 echo $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6
5742 if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then
5743 echo "$as_me:5743: result: yes" >&5
5744 echo "${ECHO_T}yes" >&6
5746 echo "$as_me:5746: checking if the $cf_ncuconfig_root package files work" >&5
5747 echo $ECHO_N "checking if the $cf_ncuconfig_root package files work... $ECHO_C" >&6
5748 cf_have_ncuconfig=unknown
5750 cf_save_CPPFLAGS="$CPPFLAGS"
5751 cf_save_LIBS="$LIBS"
5753 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG --cflags $cf_ncuconfig_root`"
5755 cf_add_libs="`$PKG_CONFIG --libs $cf_ncuconfig_root`"
5756 # Filter out duplicates - this happens with badly-designed ".pc" files...
5757 for cf_add_1lib in $LIBS
5759 for cf_add_2lib in $cf_add_libs
5761 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5767 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5771 cat >conftest.$ac_ext <<_ACEOF
5772 #line 5772 "configure"
5773 #include "confdefs.h"
5774 #include <${cf_cv_ncurses_header:-curses.h}>
5778 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
5783 rm -f conftest.$ac_objext conftest$ac_exeext
5784 if { (eval echo "$as_me:5784: \"$ac_link\"") >&5
5785 (eval $ac_link) 2>&5
5787 echo "$as_me:5787: \$? = $ac_status" >&5
5788 (exit $ac_status); } &&
5789 { ac_try='test -s conftest$ac_exeext'
5790 { (eval echo "$as_me:5790: \"$ac_try\"") >&5
5793 echo "$as_me:5793: \$? = $ac_status" >&5
5794 (exit $ac_status); }; }; then
5795 if test "$cross_compiling" = yes; then
5796 { { echo "$as_me:5796: error: cannot run test program while cross compiling" >&5
5797 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
5798 { (exit 1); exit 1; }; }
5800 cat >conftest.$ac_ext <<_ACEOF
5801 #line 5801 "configure"
5802 #include "confdefs.h"
5803 #include <${cf_cv_ncurses_header:-curses.h}>
5805 { char *xx = curses_version(); return (xx == 0); }
5807 rm -f conftest$ac_exeext
5808 if { (eval echo "$as_me:5808: \"$ac_link\"") >&5
5809 (eval $ac_link) 2>&5
5811 echo "$as_me:5811: \$? = $ac_status" >&5
5812 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5813 { (eval echo "$as_me:5813: \"$ac_try\"") >&5
5816 echo "$as_me:5816: \$? = $ac_status" >&5
5817 (exit $ac_status); }; }; then
5818 cf_have_ncuconfig=yes
5820 echo "$as_me: program exited with status $ac_status" >&5
5821 echo "$as_me: failed program was:" >&5
5822 cat conftest.$ac_ext >&5
5823 cf_have_ncuconfig=no
5825 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5828 echo "$as_me: failed program was:" >&5
5829 cat conftest.$ac_ext >&5
5830 cf_have_ncuconfig=no
5832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5834 echo "$as_me:5834: result: $cf_have_ncuconfig" >&5
5835 echo "${ECHO_T}$cf_have_ncuconfig" >&6
5836 if test "$cf_have_ncuconfig" != "yes"
5838 CPPFLAGS="$cf_save_CPPFLAGS"
5839 LIBS="$cf_save_LIBS"
5842 cat >>confdefs.h <<\EOF
5849 echo "$as_me:5849: result: no" >&5
5850 echo "${ECHO_T}no" >&6
5854 if test "x$cf_have_ncuconfig" = "xno"; then
5855 echo "Looking for ${cf_ncuconfig_root}-config"
5857 if test -n "$ac_tool_prefix"; then
5858 for ac_prog in ${cf_ncuconfig_root}-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
5860 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5861 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5862 echo "$as_me:5862: checking for $ac_word" >&5
5863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5864 if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
5865 echo $ECHO_N "(cached) $ECHO_C" >&6
5867 if test -n "$NCURSES_CONFIG"; then
5868 ac_cv_prog_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test.
5870 ac_save_IFS=$IFS; IFS=$ac_path_separator
5872 for ac_dir in $ac_dummy; do
5874 test -z "$ac_dir" && ac_dir=.
5875 $as_executable_p "$ac_dir/$ac_word" || continue
5876 ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog"
5877 echo "$as_me:5877: found $ac_dir/$ac_word" >&5
5883 NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG
5884 if test -n "$NCURSES_CONFIG"; then
5885 echo "$as_me:5885: result: $NCURSES_CONFIG" >&5
5886 echo "${ECHO_T}$NCURSES_CONFIG" >&6
5888 echo "$as_me:5888: result: no" >&5
5889 echo "${ECHO_T}no" >&6
5892 test -n "$NCURSES_CONFIG" && break
5895 if test -z "$NCURSES_CONFIG"; then
5896 ac_ct_NCURSES_CONFIG=$NCURSES_CONFIG
5897 for ac_prog in ${cf_ncuconfig_root}-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
5899 # Extract the first word of "$ac_prog", so it can be a program name with args.
5900 set dummy $ac_prog; ac_word=$2
5901 echo "$as_me:5901: checking for $ac_word" >&5
5902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5903 if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
5904 echo $ECHO_N "(cached) $ECHO_C" >&6
5906 if test -n "$ac_ct_NCURSES_CONFIG"; then
5907 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_ct_NCURSES_CONFIG" # Let the user override the test.
5909 ac_save_IFS=$IFS; IFS=$ac_path_separator
5911 for ac_dir in $ac_dummy; do
5913 test -z "$ac_dir" && ac_dir=.
5914 $as_executable_p "$ac_dir/$ac_word" || continue
5915 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog"
5916 echo "$as_me:5916: found $ac_dir/$ac_word" >&5
5922 ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG
5923 if test -n "$ac_ct_NCURSES_CONFIG"; then
5924 echo "$as_me:5924: result: $ac_ct_NCURSES_CONFIG" >&5
5925 echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
5927 echo "$as_me:5927: result: no" >&5
5928 echo "${ECHO_T}no" >&6
5931 test -n "$ac_ct_NCURSES_CONFIG" && break
5933 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
5935 NCURSES_CONFIG=$ac_ct_NCURSES_CONFIG
5938 if test "$NCURSES_CONFIG" != none ; then
5940 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
5942 cf_add_libs="`$NCURSES_CONFIG --libs`"
5943 # Filter out duplicates - this happens with badly-designed ".pc" files...
5944 for cf_add_1lib in $LIBS
5946 for cf_add_2lib in $cf_add_libs
5948 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5954 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5958 # even with config script, some packages use no-override for curses.h
5960 echo "$as_me:5960: checking if we have identified curses headers" >&5
5961 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
5962 if test "${cf_cv_ncurses_header+set}" = set; then
5963 echo $ECHO_N "(cached) $ECHO_C" >&6
5966 cf_cv_ncurses_header=none
5968 ncurses.h ncurses/ncurses.h \
5969 curses.h ncurses/curses.h
5971 cat >conftest.$ac_ext <<_ACEOF
5972 #line 5972 "configure"
5973 #include "confdefs.h"
5974 #include <${cf_header}>
5978 initscr(); tgoto("?", 0,0)
5983 rm -f conftest.$ac_objext
5984 if { (eval echo "$as_me:5984: \"$ac_compile\"") >&5
5985 (eval $ac_compile) 2>&5
5987 echo "$as_me:5987: \$? = $ac_status" >&5
5988 (exit $ac_status); } &&
5989 { ac_try='test -s conftest.$ac_objext'
5990 { (eval echo "$as_me:5990: \"$ac_try\"") >&5
5993 echo "$as_me:5993: \$? = $ac_status" >&5
5994 (exit $ac_status); }; }; then
5995 cf_cv_ncurses_header=$cf_header; break
5997 echo "$as_me: failed program was:" >&5
5998 cat conftest.$ac_ext >&5
6000 rm -f conftest.$ac_objext conftest.$ac_ext
6004 echo "$as_me:6004: result: $cf_cv_ncurses_header" >&5
6005 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
6007 if test "$cf_cv_ncurses_header" = none ; then
6008 { { echo "$as_me:6008: error: No curses header-files found" >&5
6009 echo "$as_me: error: No curses header-files found" >&2;}
6010 { (exit 1); exit 1; }; }
6013 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
6015 for ac_header in $cf_cv_ncurses_header
6017 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6018 echo "$as_me:6018: checking for $ac_header" >&5
6019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6021 echo $ECHO_N "(cached) $ECHO_C" >&6
6023 cat >conftest.$ac_ext <<_ACEOF
6024 #line 6024 "configure"
6025 #include "confdefs.h"
6026 #include <$ac_header>
6028 if { (eval echo "$as_me:6028: \"$ac_cpp conftest.$ac_ext\"") >&5
6029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6031 egrep -v '^ *\+' conftest.er1 >conftest.err
6033 cat conftest.err >&5
6034 echo "$as_me:6034: \$? = $ac_status" >&5
6035 (exit $ac_status); } >/dev/null; then
6036 if test -s conftest.err; then
6037 ac_cpp_err=$ac_c_preproc_warn_flag
6044 if test -z "$ac_cpp_err"; then
6045 eval "$as_ac_Header=yes"
6047 echo "$as_me: failed program was:" >&5
6048 cat conftest.$ac_ext >&5
6049 eval "$as_ac_Header=no"
6051 rm -f conftest.err conftest.$ac_ext
6053 echo "$as_me:6053: result: `eval echo '${'$as_ac_Header'}'`" >&5
6054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6055 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6056 cat >>confdefs.h <<EOF
6057 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6063 cat >>confdefs.h <<\EOF
6067 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
6069 cat >>confdefs.h <<EOF
6070 #define $cf_nculib_ROOT 1
6073 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
6077 cf_ncuhdr_root=ncurses
6079 test -n "$cf_cv_curses_dir" && \
6080 test "$cf_cv_curses_dir" != "no" && { \
6082 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
6083 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
6085 while test $cf_add_incdir != /usr/include
6087 if test -d $cf_add_incdir
6090 if test -n "$CFLAGS$CPPFLAGS" ; then
6091 # a loop is needed to ensure we can add subdirs of existing dirs
6092 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
6093 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6094 cf_have_incdir=yes; break
6099 if test "$cf_have_incdir" = no ; then
6100 if test "$cf_add_incdir" = /usr/local/include ; then
6101 if test "$GCC" = yes
6103 cf_save_CPPFLAGS=$CPPFLAGS
6104 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6105 cat >conftest.$ac_ext <<_ACEOF
6106 #line 6106 "configure"
6107 #include "confdefs.h"
6117 rm -f conftest.$ac_objext
6118 if { (eval echo "$as_me:6118: \"$ac_compile\"") >&5
6119 (eval $ac_compile) 2>&5
6121 echo "$as_me:6121: \$? = $ac_status" >&5
6122 (exit $ac_status); } &&
6123 { ac_try='test -s conftest.$ac_objext'
6124 { (eval echo "$as_me:6124: \"$ac_try\"") >&5
6127 echo "$as_me:6127: \$? = $ac_status" >&5
6128 (exit $ac_status); }; }; then
6131 echo "$as_me: failed program was:" >&5
6132 cat conftest.$ac_ext >&5
6135 rm -f conftest.$ac_objext conftest.$ac_ext
6136 CPPFLAGS=$cf_save_CPPFLAGS
6141 if test "$cf_have_incdir" = no ; then
6142 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6144 echo "${as_me:-configure}:6144: testing adding $cf_add_incdir to include-path ..." 1>&5
6146 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6148 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6149 test "$cf_top_incdir" = "$cf_add_incdir" && break
6150 cf_add_incdir="$cf_top_incdir"
6161 echo "$as_me:6161: checking for $cf_ncuhdr_root header in include-path" >&5
6162 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
6163 if test "${cf_cv_ncurses_h+set}" = set; then
6164 echo $ECHO_N "(cached) $ECHO_C" >&6
6167 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
6168 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
6169 for cf_header in $cf_header_list
6172 cat >conftest.$ac_ext <<_ACEOF
6173 #line 6173 "configure"
6174 #include "confdefs.h"
6176 #include <$cf_header>
6181 #ifdef NCURSES_VERSION
6183 printf("%s\n", NCURSES_VERSION);
6196 rm -f conftest.$ac_objext
6197 if { (eval echo "$as_me:6197: \"$ac_compile\"") >&5
6198 (eval $ac_compile) 2>&5
6200 echo "$as_me:6200: \$? = $ac_status" >&5
6201 (exit $ac_status); } &&
6202 { ac_try='test -s conftest.$ac_objext'
6203 { (eval echo "$as_me:6203: \"$ac_try\"") >&5
6206 echo "$as_me:6206: \$? = $ac_status" >&5
6207 (exit $ac_status); }; }; then
6208 cf_cv_ncurses_h=$cf_header
6211 echo "$as_me: failed program was:" >&5
6212 cat conftest.$ac_ext >&5
6215 rm -f conftest.$ac_objext conftest.$ac_ext
6217 test "$cf_cv_ncurses_h" != no && break
6221 echo "$as_me:6221: result: $cf_cv_ncurses_h" >&5
6222 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
6224 if test "$cf_cv_ncurses_h" != no ; then
6225 cf_cv_ncurses_header=$cf_cv_ncurses_h
6228 echo "$as_me:6228: checking for $cf_ncuhdr_root include-path" >&5
6229 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
6230 if test "${cf_cv_ncurses_h2+set}" = set; then
6231 echo $ECHO_N "(cached) $ECHO_C" >&6
6234 test -n "$verbose" && echo
6238 # collect the current set of include-directories from compiler flags
6239 cf_header_path_list=""
6240 if test -n "${CFLAGS}${CPPFLAGS}" ; then
6241 for cf_header_path in $CPPFLAGS $CFLAGS
6243 case $cf_header_path in
6245 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
6247 test "x$cf_header_path" != "xNONE" && \
6248 test -d "$cf_header_path" && \
6250 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
6251 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
6252 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
6253 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
6254 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
6255 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"
6258 cf_header_path_list="$cf_header_path_list $cf_search"
6264 # add the variations for the package we are looking for
6268 test "x$prefix" != "xNONE" && \
6269 test -d "$prefix" && \
6271 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
6272 test -d $prefix/include && cf_search="$cf_search $prefix/include"
6273 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
6274 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
6275 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
6276 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
6279 for cf_subdir_prefix in \
6288 test "x$cf_subdir_prefix" != "x$prefix" && \
6289 test -d "$cf_subdir_prefix" && \
6290 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
6291 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
6292 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
6293 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root"
6294 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root/include"
6295 test -d $cf_subdir_prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include"
6296 test -d $cf_subdir_prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
6301 test "$includedir" != NONE && \
6302 test "$includedir" != "/usr/include" && \
6303 test -d "$includedir" && {
6304 test -d $includedir && cf_search="$cf_search $includedir"
6305 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
6308 test "$oldincludedir" != NONE && \
6309 test "$oldincludedir" != "/usr/include" && \
6310 test -d "$oldincludedir" && {
6311 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
6312 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
6315 cf_search="$cf_search $cf_header_path_list"
6317 test -n "$verbose" && echo search path $cf_search
6318 cf_save2_CPPFLAGS="$CPPFLAGS"
6319 for cf_incdir in $cf_search
6322 if test -n "$cf_incdir" ; then
6323 for cf_add_incdir in $cf_incdir
6325 while test $cf_add_incdir != /usr/include
6327 if test -d $cf_add_incdir
6330 if test -n "$CFLAGS$CPPFLAGS" ; then
6331 # a loop is needed to ensure we can add subdirs of existing dirs
6332 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
6333 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6334 cf_have_incdir=yes; break
6339 if test "$cf_have_incdir" = no ; then
6340 if test "$cf_add_incdir" = /usr/local/include ; then
6341 if test "$GCC" = yes
6343 cf_save_CPPFLAGS=$CPPFLAGS
6344 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6345 cat >conftest.$ac_ext <<_ACEOF
6346 #line 6346 "configure"
6347 #include "confdefs.h"
6357 rm -f conftest.$ac_objext
6358 if { (eval echo "$as_me:6358: \"$ac_compile\"") >&5
6359 (eval $ac_compile) 2>&5
6361 echo "$as_me:6361: \$? = $ac_status" >&5
6362 (exit $ac_status); } &&
6363 { ac_try='test -s conftest.$ac_objext'
6364 { (eval echo "$as_me:6364: \"$ac_try\"") >&5
6367 echo "$as_me:6367: \$? = $ac_status" >&5
6368 (exit $ac_status); }; }; then
6371 echo "$as_me: failed program was:" >&5
6372 cat conftest.$ac_ext >&5
6375 rm -f conftest.$ac_objext conftest.$ac_ext
6376 CPPFLAGS=$cf_save_CPPFLAGS
6381 if test "$cf_have_incdir" = no ; then
6382 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6384 echo "${as_me:-configure}:6384: testing adding $cf_add_incdir to include-path ..." 1>&5
6386 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6388 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6389 test "$cf_top_incdir" = "$cf_add_incdir" && break
6390 cf_add_incdir="$cf_top_incdir"
6404 cat >conftest.$ac_ext <<_ACEOF
6405 #line 6405 "configure"
6406 #include "confdefs.h"
6408 #include <$cf_header>
6413 #ifdef NCURSES_VERSION
6415 printf("%s\n", NCURSES_VERSION);
6428 rm -f conftest.$ac_objext
6429 if { (eval echo "$as_me:6429: \"$ac_compile\"") >&5
6430 (eval $ac_compile) 2>&5
6432 echo "$as_me:6432: \$? = $ac_status" >&5
6433 (exit $ac_status); } &&
6434 { ac_try='test -s conftest.$ac_objext'
6435 { (eval echo "$as_me:6435: \"$ac_try\"") >&5
6438 echo "$as_me:6438: \$? = $ac_status" >&5
6439 (exit $ac_status); }; }; then
6440 cf_cv_ncurses_h2=$cf_header
6443 echo "$as_me: failed program was:" >&5
6444 cat conftest.$ac_ext >&5
6447 rm -f conftest.$ac_objext conftest.$ac_ext
6449 if test "$cf_cv_ncurses_h2" != no ; then
6450 cf_cv_ncurses_h2=$cf_incdir/$cf_header
6451 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
6454 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
6456 CPPFLAGS="$cf_save2_CPPFLAGS"
6457 test "$cf_cv_ncurses_h2" != no && break
6459 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:6459: error: not found" >&5
6460 echo "$as_me: error: not found" >&2;}
6461 { (exit 1); exit 1; }; }
6464 echo "$as_me:6464: result: $cf_cv_ncurses_h2" >&5
6465 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
6467 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
6468 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
6469 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
6470 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
6473 if test -n "$cf_1st_incdir" ; then
6474 for cf_add_incdir in $cf_1st_incdir
6476 while test $cf_add_incdir != /usr/include
6478 if test -d $cf_add_incdir
6481 if test -n "$CFLAGS$CPPFLAGS" ; then
6482 # a loop is needed to ensure we can add subdirs of existing dirs
6483 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
6484 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6485 cf_have_incdir=yes; break
6490 if test "$cf_have_incdir" = no ; then
6491 if test "$cf_add_incdir" = /usr/local/include ; then
6492 if test "$GCC" = yes
6494 cf_save_CPPFLAGS=$CPPFLAGS
6495 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6496 cat >conftest.$ac_ext <<_ACEOF
6497 #line 6497 "configure"
6498 #include "confdefs.h"
6508 rm -f conftest.$ac_objext
6509 if { (eval echo "$as_me:6509: \"$ac_compile\"") >&5
6510 (eval $ac_compile) 2>&5
6512 echo "$as_me:6512: \$? = $ac_status" >&5
6513 (exit $ac_status); } &&
6514 { ac_try='test -s conftest.$ac_objext'
6515 { (eval echo "$as_me:6515: \"$ac_try\"") >&5
6518 echo "$as_me:6518: \$? = $ac_status" >&5
6519 (exit $ac_status); }; }; then
6522 echo "$as_me: failed program was:" >&5
6523 cat conftest.$ac_ext >&5
6526 rm -f conftest.$ac_objext conftest.$ac_ext
6527 CPPFLAGS=$cf_save_CPPFLAGS
6532 if test "$cf_have_incdir" = no ; then
6533 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6535 echo "${as_me:-configure}:6535: testing adding $cf_add_incdir to include-path ..." 1>&5
6537 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6539 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6540 test "$cf_top_incdir" = "$cf_add_incdir" && break
6541 cf_add_incdir="$cf_top_incdir"
6552 # Set definitions to allow ifdef'ing for ncurses.h
6554 case $cf_cv_ncurses_header in
6557 cat >>confdefs.h <<\EOF
6558 #define HAVE_NCURSES_H 1
6564 case $cf_cv_ncurses_header in
6565 (ncurses/curses.h|ncurses/ncurses.h)
6567 cat >>confdefs.h <<\EOF
6568 #define HAVE_NCURSES_NCURSES_H 1
6572 (ncursesw/curses.h|ncursesw/ncurses.h)
6574 cat >>confdefs.h <<\EOF
6575 #define HAVE_NCURSESW_NCURSES_H 1
6581 echo "$as_me:6581: checking for terminfo header" >&5
6582 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
6583 if test "${cf_cv_term_header+set}" = set; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
6587 case ${cf_cv_ncurses_header} in
6588 (*/ncurses.h|*/ncursesw.h)
6589 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
6592 cf_term_header=term.h
6596 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
6598 cat >conftest.$ac_ext <<_ACEOF
6599 #line 6599 "configure"
6600 #include "confdefs.h"
6602 #include <${cf_cv_ncurses_header:-curses.h}>
6608 int x = auto_left_margin
6613 rm -f conftest.$ac_objext
6614 if { (eval echo "$as_me:6614: \"$ac_compile\"") >&5
6615 (eval $ac_compile) 2>&5
6617 echo "$as_me:6617: \$? = $ac_status" >&5
6618 (exit $ac_status); } &&
6619 { ac_try='test -s conftest.$ac_objext'
6620 { (eval echo "$as_me:6620: \"$ac_try\"") >&5
6623 echo "$as_me:6623: \$? = $ac_status" >&5
6624 (exit $ac_status); }; }; then
6626 cf_cv_term_header="$cf_test"
6628 echo "$as_me: failed program was:" >&5
6629 cat conftest.$ac_ext >&5
6631 cf_cv_term_header=unknown
6634 rm -f conftest.$ac_objext conftest.$ac_ext
6635 test "$cf_cv_term_header" != unknown && break
6639 echo "$as_me:6639: result: $cf_cv_term_header" >&5
6640 echo "${ECHO_T}$cf_cv_term_header" >&6
6642 # Set definitions to allow ifdef'ing to accommodate subdirectories
6644 case $cf_cv_term_header in
6647 cat >>confdefs.h <<\EOF
6648 #define HAVE_TERM_H 1
6654 case $cf_cv_term_header in
6657 cat >>confdefs.h <<\EOF
6658 #define HAVE_NCURSES_TERM_H 1
6664 cat >>confdefs.h <<\EOF
6665 #define HAVE_NCURSESW_TERM_H 1
6671 # some applications need this, but should check for NCURSES_VERSION
6673 cat >>confdefs.h <<\EOF
6677 echo "$as_me:6677: checking for ncurses version" >&5
6678 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
6679 if test "${cf_cv_ncurses_version+set}" = set; then
6680 echo $ECHO_N "(cached) $ECHO_C" >&6
6683 cf_cv_ncurses_version=no
6686 if test "$cross_compiling" = yes; then
6688 # This will not work if the preprocessor splits the line after the
6689 # Autoconf token. The 'unproto' program does that.
6690 cat > conftest.$ac_ext <<EOF
6691 #include <${cf_cv_ncurses_header:-curses.h}>
6693 #ifdef NCURSES_VERSION
6694 Autoconf NCURSES_VERSION
6702 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
6703 { (eval echo "$as_me:6703: \"$cf_try\"") >&5
6706 echo "$as_me:6706: \$? = $ac_status" >&5
6707 (exit $ac_status); }
6708 if test -f conftest.out ; then
6709 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
6710 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
6715 cat >conftest.$ac_ext <<_ACEOF
6716 #line 6716 "configure"
6717 #include "confdefs.h"
6719 #include <${cf_cv_ncurses_header:-curses.h}>
6723 FILE *fp = fopen("$cf_tempfile", "w");
6724 #ifdef NCURSES_VERSION
6725 # ifdef NCURSES_VERSION_PATCH
6726 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
6728 fprintf(fp, "%s\n", NCURSES_VERSION);
6732 fprintf(fp, "old\n");
6737 ${cf_cv_main_return:-return}(0);
6740 rm -f conftest$ac_exeext
6741 if { (eval echo "$as_me:6741: \"$ac_link\"") >&5
6742 (eval $ac_link) 2>&5
6744 echo "$as_me:6744: \$? = $ac_status" >&5
6745 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6746 { (eval echo "$as_me:6746: \"$ac_try\"") >&5
6749 echo "$as_me:6749: \$? = $ac_status" >&5
6750 (exit $ac_status); }; }; then
6752 cf_cv_ncurses_version=`cat $cf_tempfile`
6754 echo "$as_me: program exited with status $ac_status" >&5
6755 echo "$as_me: failed program was:" >&5
6756 cat conftest.$ac_ext >&5
6758 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6763 echo "$as_me:6763: result: $cf_cv_ncurses_version" >&5
6764 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
6765 test "$cf_cv_ncurses_version" = no ||
6766 cat >>confdefs.h <<\EOF
6770 cf_nculib_root=ncurses
6771 # This works, except for the special case where we find gpm, but
6772 # ncurses is in a nonstandard location via $LIBS, and we really want
6775 cf_ncurses_SAVE="$LIBS"
6776 echo "$as_me:6776: checking for Gpm_Open in -lgpm" >&5
6777 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
6778 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
6779 echo $ECHO_N "(cached) $ECHO_C" >&6
6781 ac_check_lib_save_LIBS=$LIBS
6783 cat >conftest.$ac_ext <<_ACEOF
6784 #line 6784 "configure"
6785 #include "confdefs.h"
6787 /* Override any gcc2 internal prototype to avoid an error. */
6791 /* We use char because int might match the return type of a gcc2
6792 builtin and then its argument prototype would still apply. */
6802 rm -f conftest.$ac_objext conftest$ac_exeext
6803 if { (eval echo "$as_me:6803: \"$ac_link\"") >&5
6804 (eval $ac_link) 2>&5
6806 echo "$as_me:6806: \$? = $ac_status" >&5
6807 (exit $ac_status); } &&
6808 { ac_try='test -s conftest$ac_exeext'
6809 { (eval echo "$as_me:6809: \"$ac_try\"") >&5
6812 echo "$as_me:6812: \$? = $ac_status" >&5
6813 (exit $ac_status); }; }; then
6814 ac_cv_lib_gpm_Gpm_Open=yes
6816 echo "$as_me: failed program was:" >&5
6817 cat conftest.$ac_ext >&5
6818 ac_cv_lib_gpm_Gpm_Open=no
6820 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6821 LIBS=$ac_check_lib_save_LIBS
6823 echo "$as_me:6823: result: $ac_cv_lib_gpm_Gpm_Open" >&5
6824 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
6825 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
6826 echo "$as_me:6826: checking for initscr in -lgpm" >&5
6827 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
6828 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
6829 echo $ECHO_N "(cached) $ECHO_C" >&6
6831 ac_check_lib_save_LIBS=$LIBS
6833 cat >conftest.$ac_ext <<_ACEOF
6834 #line 6834 "configure"
6835 #include "confdefs.h"
6837 /* Override any gcc2 internal prototype to avoid an error. */
6841 /* We use char because int might match the return type of a gcc2
6842 builtin and then its argument prototype would still apply. */
6852 rm -f conftest.$ac_objext conftest$ac_exeext
6853 if { (eval echo "$as_me:6853: \"$ac_link\"") >&5
6854 (eval $ac_link) 2>&5
6856 echo "$as_me:6856: \$? = $ac_status" >&5
6857 (exit $ac_status); } &&
6858 { ac_try='test -s conftest$ac_exeext'
6859 { (eval echo "$as_me:6859: \"$ac_try\"") >&5
6862 echo "$as_me:6862: \$? = $ac_status" >&5
6863 (exit $ac_status); }; }; then
6864 ac_cv_lib_gpm_initscr=yes
6866 echo "$as_me: failed program was:" >&5
6867 cat conftest.$ac_ext >&5
6868 ac_cv_lib_gpm_initscr=no
6870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6871 LIBS=$ac_check_lib_save_LIBS
6873 echo "$as_me:6873: result: $ac_cv_lib_gpm_initscr" >&5
6874 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
6875 if test $ac_cv_lib_gpm_initscr = yes; then
6876 LIBS="$cf_ncurses_SAVE"
6878 cf_ncurses_LIBS="-lgpm"
6885 # This is only necessary if you are linking against an obsolete
6886 # version of ncurses (but it should do no harm, since it's static).
6887 if test "$cf_nculib_root" = ncurses ; then
6888 echo "$as_me:6888: checking for tgoto in -lmytinfo" >&5
6889 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
6890 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
6891 echo $ECHO_N "(cached) $ECHO_C" >&6
6893 ac_check_lib_save_LIBS=$LIBS
6894 LIBS="-lmytinfo $LIBS"
6895 cat >conftest.$ac_ext <<_ACEOF
6896 #line 6896 "configure"
6897 #include "confdefs.h"
6899 /* Override any gcc2 internal prototype to avoid an error. */
6903 /* We use char because int might match the return type of a gcc2
6904 builtin and then its argument prototype would still apply. */
6914 rm -f conftest.$ac_objext conftest$ac_exeext
6915 if { (eval echo "$as_me:6915: \"$ac_link\"") >&5
6916 (eval $ac_link) 2>&5
6918 echo "$as_me:6918: \$? = $ac_status" >&5
6919 (exit $ac_status); } &&
6920 { ac_try='test -s conftest$ac_exeext'
6921 { (eval echo "$as_me:6921: \"$ac_try\"") >&5
6924 echo "$as_me:6924: \$? = $ac_status" >&5
6925 (exit $ac_status); }; }; then
6926 ac_cv_lib_mytinfo_tgoto=yes
6928 echo "$as_me: failed program was:" >&5
6929 cat conftest.$ac_ext >&5
6930 ac_cv_lib_mytinfo_tgoto=no
6932 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6933 LIBS=$ac_check_lib_save_LIBS
6935 echo "$as_me:6935: result: $ac_cv_lib_mytinfo_tgoto" >&5
6936 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
6937 if test $ac_cv_lib_mytinfo_tgoto = yes; then
6938 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
6945 cf_add_libs="$cf_ncurses_LIBS"
6946 # Filter out duplicates - this happens with badly-designed ".pc" files...
6947 for cf_add_1lib in $LIBS
6949 for cf_add_2lib in $cf_add_libs
6951 if test "x$cf_add_1lib" = "x$cf_add_2lib"
6957 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
6961 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
6964 cf_add_libs="-l$cf_nculib_root"
6965 # Filter out duplicates - this happens with badly-designed ".pc" files...
6966 for cf_add_1lib in $LIBS
6968 for cf_add_2lib in $cf_add_libs
6970 if test "x$cf_add_1lib" = "x$cf_add_2lib"
6976 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
6982 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
6984 echo "$as_me:6984: checking for initscr" >&5
6985 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
6986 if test "${ac_cv_func_initscr+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6989 cat >conftest.$ac_ext <<_ACEOF
6990 #line 6990 "configure"
6991 #include "confdefs.h"
6992 /* System header to define __stub macros and hopefully few prototypes,
6993 which can conflict with char initscr (); below. */
6995 /* Override any gcc2 internal prototype to avoid an error. */
6999 /* We use char because int might match the return type of a gcc2
7000 builtin and then its argument prototype would still apply. */
7007 /* The GNU C library defines this for functions which it implements
7008 to always fail with ENOSYS. Some functions are actually named
7009 something starting with __ and the normal name is an alias. */
7010 #if defined (__stub_initscr) || defined (__stub___initscr)
7013 f = initscr; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
7020 rm -f conftest.$ac_objext conftest$ac_exeext
7021 if { (eval echo "$as_me:7021: \"$ac_link\"") >&5
7022 (eval $ac_link) 2>&5
7024 echo "$as_me:7024: \$? = $ac_status" >&5
7025 (exit $ac_status); } &&
7026 { ac_try='test -s conftest$ac_exeext'
7027 { (eval echo "$as_me:7027: \"$ac_try\"") >&5
7030 echo "$as_me:7030: \$? = $ac_status" >&5
7031 (exit $ac_status); }; }; then
7032 ac_cv_func_initscr=yes
7034 echo "$as_me: failed program was:" >&5
7035 cat conftest.$ac_ext >&5
7036 ac_cv_func_initscr=no
7038 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7040 echo "$as_me:7040: result: $ac_cv_func_initscr" >&5
7041 echo "${ECHO_T}$ac_cv_func_initscr" >&6
7042 if test $ac_cv_func_initscr = yes; then
7043 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
7046 cf_save_LIBS="$LIBS"
7047 echo "$as_me:7047: checking for initscr in -l$cf_nculib_root" >&5
7048 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
7049 LIBS="-l$cf_nculib_root $LIBS"
7050 cat >conftest.$ac_ext <<_ACEOF
7051 #line 7051 "configure"
7052 #include "confdefs.h"
7053 #include <${cf_cv_ncurses_header:-curses.h}>
7062 rm -f conftest.$ac_objext conftest$ac_exeext
7063 if { (eval echo "$as_me:7063: \"$ac_link\"") >&5
7064 (eval $ac_link) 2>&5
7066 echo "$as_me:7066: \$? = $ac_status" >&5
7067 (exit $ac_status); } &&
7068 { ac_try='test -s conftest$ac_exeext'
7069 { (eval echo "$as_me:7069: \"$ac_try\"") >&5
7072 echo "$as_me:7072: \$? = $ac_status" >&5
7073 (exit $ac_status); }; }; then
7074 echo "$as_me:7074: result: yes" >&5
7075 echo "${ECHO_T}yes" >&6
7076 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
7079 echo "$as_me: failed program was:" >&5
7080 cat conftest.$ac_ext >&5
7081 echo "$as_me:7081: result: no" >&5
7082 echo "${ECHO_T}no" >&6
7085 cf_library_path_list=""
7086 if test -n "${LDFLAGS}${LIBS}" ; then
7087 for cf_library_path in $LDFLAGS $LIBS
7089 case $cf_library_path in
7091 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
7093 test "x$cf_library_path" != "xNONE" && \
7094 test -d "$cf_library_path" && \
7096 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
7097 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
7098 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
7099 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
7100 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
7101 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"
7104 cf_library_path_list="$cf_library_path_list $cf_search"
7112 test "x$prefix" != "xNONE" && \
7113 test -d "$prefix" && \
7115 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
7116 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
7117 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
7118 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
7119 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
7120 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
7123 for cf_subdir_prefix in \
7132 test "x$cf_subdir_prefix" != "x$prefix" && \
7133 test -d "$cf_subdir_prefix" && \
7134 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
7135 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
7136 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
7137 test -d $cf_subdir_prefix/lib/$cf_nculib_root && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root"
7138 test -d $cf_subdir_prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root/lib"
7139 test -d $cf_subdir_prefix/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib"
7140 test -d $cf_subdir_prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib/$cf_nculib_root"
7145 cf_search="$cf_library_path_list $cf_search"
7147 for cf_libdir in $cf_search
7149 echo "$as_me:7149: checking for -l$cf_nculib_root in $cf_libdir" >&5
7150 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
7151 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
7152 cat >conftest.$ac_ext <<_ACEOF
7153 #line 7153 "configure"
7154 #include "confdefs.h"
7155 #include <${cf_cv_ncurses_header:-curses.h}>
7164 rm -f conftest.$ac_objext conftest$ac_exeext
7165 if { (eval echo "$as_me:7165: \"$ac_link\"") >&5
7166 (eval $ac_link) 2>&5
7168 echo "$as_me:7168: \$? = $ac_status" >&5
7169 (exit $ac_status); } &&
7170 { ac_try='test -s conftest$ac_exeext'
7171 { (eval echo "$as_me:7171: \"$ac_try\"") >&5
7174 echo "$as_me:7174: \$? = $ac_status" >&5
7175 (exit $ac_status); }; }; then
7176 echo "$as_me:7176: result: yes" >&5
7177 echo "${ECHO_T}yes" >&6
7178 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
7181 echo "$as_me: failed program was:" >&5
7182 cat conftest.$ac_ext >&5
7183 echo "$as_me:7183: result: no" >&5
7184 echo "${ECHO_T}no" >&6
7185 LIBS="$cf_save_LIBS"
7187 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7191 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7195 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
7197 if test $cf_found_library = no ; then
7198 { { echo "$as_me:7198: error: Cannot link $cf_nculib_root library" >&5
7199 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
7200 { (exit 1); exit 1; }; }
7205 if test -n "$cf_ncurses_LIBS" ; then
7206 echo "$as_me:7206: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
7207 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
7208 cf_ncurses_SAVE="$LIBS"
7209 for p in $cf_ncurses_LIBS ; do
7210 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
7211 if test "$q" != "$LIBS" ; then
7215 cat >conftest.$ac_ext <<_ACEOF
7216 #line 7216 "configure"
7217 #include "confdefs.h"
7218 #include <${cf_cv_ncurses_header:-curses.h}>
7222 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
7227 rm -f conftest.$ac_objext conftest$ac_exeext
7228 if { (eval echo "$as_me:7228: \"$ac_link\"") >&5
7229 (eval $ac_link) 2>&5
7231 echo "$as_me:7231: \$? = $ac_status" >&5
7232 (exit $ac_status); } &&
7233 { ac_try='test -s conftest$ac_exeext'
7234 { (eval echo "$as_me:7234: \"$ac_try\"") >&5
7237 echo "$as_me:7237: \$? = $ac_status" >&5
7238 (exit $ac_status); }; }; then
7239 echo "$as_me:7239: result: yes" >&5
7240 echo "${ECHO_T}yes" >&6
7242 echo "$as_me: failed program was:" >&5
7243 cat conftest.$ac_ext >&5
7244 echo "$as_me:7244: result: no" >&5
7245 echo "${ECHO_T}no" >&6
7246 LIBS="$cf_ncurses_SAVE"
7248 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7251 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
7253 cat >>confdefs.h <<EOF
7254 #define $cf_nculib_ROOT 1
7262 if test "$NCURSES_CONFIG" != none ; then
7264 cf_version=`$NCURSES_CONFIG --version`
7266 NCURSES_MAJOR=`echo "$cf_version" | sed -e 's/\..*//'`
7267 NCURSES_MINOR=`echo "$cf_version" | sed -e 's/^[0-9][0-9]*\.//' -e 's/\..*//'`
7268 NCURSES_PATCH=`echo "$cf_version" | sed -e 's/^[0-9][0-9]*\.[0-9][0-9]*\.//'`
7270 # ABI version is not available from headers
7271 cf_cv_abi_version=`$NCURSES_CONFIG --abi-version`
7275 for cf_name in MAJOR MINOR PATCH
7277 cat >conftest.$ac_ext <<CF_EOF
7278 #include <${cf_cv_ncurses_header:-curses.h}>
7279 AUTOCONF_$cf_name NCURSES_VERSION_$cf_name
7281 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | fgrep AUTOCONF_$cf_name >conftest.out"
7282 { (eval echo "$as_me:7282: \"$cf_try\"") >&5
7285 echo "$as_me:7285: \$? = $ac_status" >&5
7286 (exit $ac_status); }
7287 if test -f conftest.out ; then
7288 cf_result=`cat conftest.out | sed -e "s/^.*AUTOCONF_$cf_name[ ][ ]*//"`
7289 eval NCURSES_$cf_name=\"$cf_result\"
7290 # cat conftest.$ac_ext
7295 cf_cv_abi_version=${NCURSES_MAJOR}
7299 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
7301 cf_cv_timestamp=`date`
7303 echo "$as_me:7303: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
7304 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
7306 echo "$as_me:7306: checking if you want to have a library-prefix" >&5
7307 echo $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6
7309 # Check whether --with-lib-prefix or --without-lib-prefix was given.
7310 if test "${with_lib_prefix+set}" = set; then
7311 withval="$with_lib_prefix"
7312 with_lib_prefix=$withval
7314 with_lib_prefix=auto
7316 echo "$as_me:7316: result: $with_lib_prefix" >&5
7317 echo "${ECHO_T}$with_lib_prefix" >&6
7319 if test $with_lib_prefix = auto
7322 case $cf_cv_system_name in
7326 (*) LIB_PREFIX='lib'
7329 cf_prefix=$LIB_PREFIX
7331 elif test $with_lib_prefix = no
7335 LIB_PREFIX=$with_lib_prefix
7340 ###############################################################################
7342 if test X"$CC_G_OPT" = X"" ; then
7344 test -n "$GCC" && test "${ac_cv_prog_cc_g}" != yes && CC_G_OPT=''
7347 echo "$as_me:7347: checking for default loader flags" >&5
7348 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
7349 case $DFT_LWR_MODEL in
7350 (normal) LD_MODEL='' ;;
7351 (debug) LD_MODEL=$CC_G_OPT ;;
7352 (profile) LD_MODEL='-pg';;
7353 (shared) LD_MODEL='' ;;
7355 echo "$as_me:7355: result: $LD_MODEL" >&5
7356 echo "${ECHO_T}$LD_MODEL" >&6
7359 echo "$as_me:7359: checking for an rpath option" >&5
7360 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
7361 case $cf_cv_system_name in
7363 if test "$GCC" = yes; then
7364 LD_RPATH_OPT="-Wl,-rpath,"
7366 LD_RPATH_OPT="-rpath "
7369 (linux*|gnu*|k*bsd*-gnu)
7370 LD_RPATH_OPT="-Wl,-rpath,"
7372 (openbsd[2-9].*|mirbsd*)
7373 LD_RPATH_OPT="-Wl,-rpath,"
7375 (dragonfly*|freebsd*)
7376 LD_RPATH_OPT="-rpath "
7379 LD_RPATH_OPT="-Wl,-rpath,"
7382 LD_RPATH_OPT="-rpath "
7390 echo "$as_me:7390: result: $LD_RPATH_OPT" >&5
7391 echo "${ECHO_T}$LD_RPATH_OPT" >&6
7393 case "x$LD_RPATH_OPT" in
7395 echo "$as_me:7395: checking if we need a space after rpath option" >&5
7396 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
7397 cf_save_LIBS="$LIBS"
7399 cf_add_libs="${LD_RPATH_OPT}$libdir"
7400 # Filter out duplicates - this happens with badly-designed ".pc" files...
7401 for cf_add_1lib in $LIBS
7403 for cf_add_2lib in $cf_add_libs
7405 if test "x$cf_add_1lib" = "x$cf_add_2lib"
7411 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
7415 cat >conftest.$ac_ext <<_ACEOF
7416 #line 7416 "configure"
7417 #include "confdefs.h"
7427 rm -f conftest.$ac_objext conftest$ac_exeext
7428 if { (eval echo "$as_me:7428: \"$ac_link\"") >&5
7429 (eval $ac_link) 2>&5
7431 echo "$as_me:7431: \$? = $ac_status" >&5
7432 (exit $ac_status); } &&
7433 { ac_try='test -s conftest$ac_exeext'
7434 { (eval echo "$as_me:7434: \"$ac_try\"") >&5
7437 echo "$as_me:7437: \$? = $ac_status" >&5
7438 (exit $ac_status); }; }; then
7441 echo "$as_me: failed program was:" >&5
7442 cat conftest.$ac_ext >&5
7445 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7446 LIBS="$cf_save_LIBS"
7447 echo "$as_me:7447: result: $cf_rpath_space" >&5
7448 echo "${ECHO_T}$cf_rpath_space" >&6
7449 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
7457 INSTALL_LIB="-m 644"
7458 : ${rel_builddir:=.}
7464 cf_cv_do_symlinks=no
7466 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
7468 echo "$as_me:7468: checking if release/abi version should be used for shared libs" >&5
7469 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
7471 # Check whether --with-shlib-version or --without-shlib-version was given.
7472 if test "${with_shlib_version+set}" = set; then
7473 withval="$with_shlib_version"
7474 test -z "$withval" && withval=auto
7477 cf_cv_shlib_version=auto
7480 cf_cv_shlib_version=$withval
7483 { { echo "$as_me:7483: error: option value must be one of: rel, abi, auto or no" >&5
7484 echo "$as_me: error: option value must be one of: rel, abi, auto or no" >&2;}
7485 { (exit 1); exit 1; }; }
7490 cf_cv_shlib_version=auto
7492 echo "$as_me:7492: result: $cf_cv_shlib_version" >&5
7493 echo "${ECHO_T}$cf_cv_shlib_version" >&6
7498 # Some less-capable ports of gcc support only -fpic
7500 if test "$GCC" = yes
7502 echo "$as_me:7502: checking which $CC option to use" >&5
7503 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
7504 cf_save_CFLAGS="$CFLAGS"
7505 for CC_SHARED_OPTS in -fPIC -fpic ''
7507 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
7508 cat >conftest.$ac_ext <<_ACEOF
7509 #line 7509 "configure"
7510 #include "confdefs.h"
7520 rm -f conftest.$ac_objext
7521 if { (eval echo "$as_me:7521: \"$ac_compile\"") >&5
7522 (eval $ac_compile) 2>&5
7524 echo "$as_me:7524: \$? = $ac_status" >&5
7525 (exit $ac_status); } &&
7526 { ac_try='test -s conftest.$ac_objext'
7527 { (eval echo "$as_me:7527: \"$ac_try\"") >&5
7530 echo "$as_me:7530: \$? = $ac_status" >&5
7531 (exit $ac_status); }; }; then
7534 echo "$as_me: failed program was:" >&5
7535 cat conftest.$ac_ext >&5
7537 rm -f conftest.$ac_objext conftest.$ac_ext
7539 echo "$as_me:7539: result: $CC_SHARED_OPTS" >&5
7540 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
7541 CFLAGS="$cf_save_CFLAGS"
7544 cf_cv_shlib_version_infix=no
7546 case $cf_cv_system_name in
7547 (aix4.3-9*|aix[5-7]*)
7548 if test "$GCC" = yes; then
7549 CC_SHARED_OPTS='-Wl,-brtl'
7550 MK_SHARED_LIB='${CC} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
7552 CC_SHARED_OPTS='-brtl'
7553 # as well as '-qpic=large -G' or perhaps "-bM:SRE -bnoentry -bexpall"
7554 MK_SHARED_LIB='${CC} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
7558 MK_SHARED_LIB='${CC} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
7562 MK_SHARED_LIB='sh '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
7563 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
7564 cf_cv_shlib_version=cygdll
7565 cf_cv_shlib_version_infix=cygdll
7568 cat >mk_shared_lib.sh <<-CF_EOF
7571 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
7574 Linking shared library
7575 ** SHARED_LIB \$SHARED_LIB
7576 ** IMPORT_LIB \$IMPORT_LIB
7578 exec \$* -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
7580 chmod +x mk_shared_lib.sh
7584 MK_SHARED_LIB='sh '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
7585 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
7586 cf_cv_shlib_version=msysdll
7587 cf_cv_shlib_version_infix=msysdll
7590 cat >mk_shared_lib.sh <<-CF_EOF
7593 IMPORT_LIB=\`echo "\$1" | sed -e 's/msys-/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
7596 Linking shared library
7597 ** SHARED_LIB \$SHARED_LIB
7598 ** IMPORT_LIB \$IMPORT_LIB
7600 exec \$* -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
7602 chmod +x mk_shared_lib.sh
7605 cf_try_cflags="no-cpp-precomp"
7606 CC_SHARED_OPTS="-dynamic"
7607 MK_SHARED_LIB='${CC} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
7608 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
7609 cf_cv_shlib_version_infix=yes
7610 echo "$as_me:7610: checking if ld -search_paths_first works" >&5
7611 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
7612 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
7613 echo $ECHO_N "(cached) $ECHO_C" >&6
7616 cf_save_LDFLAGS=$LDFLAGS
7617 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
7618 cat >conftest.$ac_ext <<_ACEOF
7619 #line 7619 "configure"
7620 #include "confdefs.h"
7630 rm -f conftest.$ac_objext conftest$ac_exeext
7631 if { (eval echo "$as_me:7631: \"$ac_link\"") >&5
7632 (eval $ac_link) 2>&5
7634 echo "$as_me:7634: \$? = $ac_status" >&5
7635 (exit $ac_status); } &&
7636 { ac_try='test -s conftest$ac_exeext'
7637 { (eval echo "$as_me:7637: \"$ac_try\"") >&5
7640 echo "$as_me:7640: \$? = $ac_status" >&5
7641 (exit $ac_status); }; }; then
7642 cf_cv_ldflags_search_paths_first=yes
7644 echo "$as_me: failed program was:" >&5
7645 cat conftest.$ac_ext >&5
7646 cf_cv_ldflags_search_paths_first=no
7648 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7649 LDFLAGS=$cf_save_LDFLAGS
7651 echo "$as_me:7651: result: $cf_cv_ldflags_search_paths_first" >&5
7652 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
7653 if test $cf_cv_ldflags_search_paths_first = yes; then
7654 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
7658 # HP-UX 8.07 ld lacks "+b" option used for libdir search-list
7659 if test "$GCC" != yes; then
7662 MK_SHARED_LIB='${LD} -b -o $@'
7663 INSTALL_LIB="-m 555"
7666 # (tested with gcc 2.7.2 -- I don't have c89)
7667 if test "$GCC" = yes; then
7668 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
7671 LD_SHARED_OPTS='-Wl,+b,${libdir}'
7673 MK_SHARED_LIB='${LD} +b ${libdir} -b -o $@'
7674 # HP-UX shared libraries must be executable, and should be
7675 # readonly to exploit a quirk in the memory manager.
7676 INSTALL_LIB="-m 555"
7679 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7680 if test "$cf_cv_shlib_version" = rel; then
7681 cf_shared_soname='`basename .${REL_VERSION}`.${ABI_VERSION}'
7683 cf_shared_soname='`basename `'
7686 MK_SHARED_LIB='${CC} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o '
7689 if test "$cf_cv_enable_rpath" = yes ; then
7690 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
7692 # tested with IRIX 5.2 and 'cc'.
7693 if test "$GCC" != yes; then
7694 CC_SHARED_OPTS='-KPIC'
7695 MK_SHARED_LIB='${CC} -shared -rdata_shared -soname `basename $@` -o $@'
7697 MK_SHARED_LIB='${CC} -shared -Wl,-soname,`basename $@` -o $@'
7699 cf_cv_rm_so_locs=yes
7701 (linux*|gnu*|k*bsd*-gnu)
7702 if test "$DFT_LWR_MODEL" = "shared" ; then
7703 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
7704 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7706 if test "$cf_cv_enable_rpath" = yes ; then
7707 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
7710 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7711 if test "$cf_cv_shlib_version" = rel; then
7712 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
7714 cf_cv_shared_soname='`basename $@`'
7717 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
7720 cf_cv_shlib_version=mingw
7721 cf_cv_shlib_version_infix=mingw
7724 if test "$DFT_LWR_MODEL" = "shared" ; then
7725 LOCAL_LDFLAGS="-Wl,--enable-auto-import"
7726 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7727 EXTRA_LDFLAGS="-Wl,--enable-auto-import $EXTRA_LDFLAGS"
7730 MK_SHARED_LIB='sh '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
7731 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
7732 cat >mk_shared_lib.sh <<-CF_EOF
7735 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.a/'\`
7738 Linking shared library
7739 ** SHARED_LIB \$SHARED_LIB
7740 ** IMPORT_LIB \$IMPORT_LIB
7742 exec \$* -shared -Wl,--enable-auto-import,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
7744 chmod +x mk_shared_lib.sh
7746 (openbsd[2-9].*|mirbsd*)
7747 if test "$DFT_LWR_MODEL" = "shared" ; then
7748 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
7749 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7751 if test "$cf_cv_enable_rpath" = yes ; then
7752 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
7754 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
7756 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7757 if test "$cf_cv_shlib_version" = rel; then
7758 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
7760 cf_cv_shared_soname='`basename $@`'
7763 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
7765 (nto-qnx*|openbsd*|freebsd[12].*)
7766 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
7767 MK_SHARED_LIB='${LD} -Bshareable -o $@'
7768 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7770 (dragonfly*|freebsd*)
7771 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
7772 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
7773 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
7774 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
7775 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
7778 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7779 if test "$cf_cv_shlib_version" = rel; then
7780 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
7782 cf_cv_shared_soname='`basename $@`'
7785 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
7788 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
7789 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
7790 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
7791 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7792 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
7793 if test "$cf_cv_shlib_version" = auto; then
7794 if test -f /usr/libexec/ld.elf_so; then
7795 cf_cv_shlib_version=abi
7797 cf_cv_shlib_version=rel
7801 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7802 if test "$cf_cv_shlib_version" = rel; then
7803 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
7805 cf_cv_shared_soname='`basename $@`'
7808 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
7810 MK_SHARED_LIB='${CC} -Wl,-shared -Wl,-Bshareable -o $@'
7814 # tested with OSF/1 V3.2 and 'cc'
7815 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
7816 # link with shared libs).
7817 MK_SHARED_LIB='${LD} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
7820 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
7823 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
7824 if test "$DFT_LWR_MODEL" = "shared" ; then
7825 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
7826 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7828 cf_cv_rm_so_locs=yes
7830 (sco3.2v5*) # also uw2* and UW7: hops 13-Apr-98
7831 # tested with osr5.0.5
7832 if test "$GCC" != yes; then
7833 CC_SHARED_OPTS='-belf -KPIC'
7835 MK_SHARED_LIB='${LD} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
7836 if test "$cf_cv_enable_rpath" = yes ; then
7837 # only way is to set LD_RUN_PATH but no switch for it
7840 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7841 LINK_PROGS='LD_RUN_PATH=${libdir}'
7842 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
7845 # tested with SunOS 4.1.1 and gcc 2.7.0
7846 if test "$GCC" != yes; then
7847 CC_SHARED_OPTS='-KPIC'
7849 MK_SHARED_LIB='${LD} -assert pure-text -o $@'
7850 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7853 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
7854 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
7855 if test "$DFT_LWR_MODEL" = "shared" ; then
7856 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
7857 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7859 if test "$cf_cv_enable_rpath" = yes ; then
7860 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
7863 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7864 if test "$cf_cv_shlib_version" = rel; then
7865 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
7867 cf_cv_shared_soname='`basename $@`'
7870 if test "$GCC" != yes; then
7871 cf_save_CFLAGS="$CFLAGS"
7872 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
7874 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
7875 cat >conftest.$ac_ext <<_ACEOF
7876 #line 7876 "configure"
7877 #include "confdefs.h"
7887 rm -f conftest.$ac_objext
7888 if { (eval echo "$as_me:7888: \"$ac_compile\"") >&5
7889 (eval $ac_compile) 2>&5
7891 echo "$as_me:7891: \$? = $ac_status" >&5
7892 (exit $ac_status); } &&
7893 { ac_try='test -s conftest.$ac_objext'
7894 { (eval echo "$as_me:7894: \"$ac_try\"") >&5
7897 echo "$as_me:7897: \$? = $ac_status" >&5
7898 (exit $ac_status); }; }; then
7901 echo "$as_me: failed program was:" >&5
7902 cat conftest.$ac_ext >&5
7904 rm -f conftest.$ac_objext conftest.$ac_ext
7906 CFLAGS="$cf_save_CFLAGS"
7907 CC_SHARED_OPTS=$cf_shared_opts
7908 MK_SHARED_LIB='${CC} -dy -G -h '$cf_cv_shared_soname' -o $@'
7910 MK_SHARED_LIB='${CC} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
7913 (sysv5uw7*|unix_sv*)
7914 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
7915 if test "$GCC" != yes; then
7916 CC_SHARED_OPTS='-KPIC'
7918 MK_SHARED_LIB='${LD} -d y -G -o $@'
7921 CC_SHARED_OPTS='unknown'
7922 MK_SHARED_LIB='echo unknown'
7926 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
7927 case "$cf_cv_shlib_version" in
7929 case "$MK_SHARED_LIB" in
7931 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
7934 { echo "$as_me:7934: WARNING: ignored --with-shlib-version" >&5
7935 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
7941 if test -n "$cf_try_cflags"
7943 cat > conftest.$ac_ext <<EOF
7944 #line 7944 "${as_me:-configure}"
7946 int main(int argc, char *argv[])
7949 return (argv[argc-1] == 0) ;
7952 cf_save_CFLAGS="$CFLAGS"
7953 for cf_opt in $cf_try_cflags
7955 CFLAGS="$cf_save_CFLAGS -$cf_opt"
7956 echo "$as_me:7956: checking if CFLAGS option -$cf_opt works" >&5
7957 echo $ECHO_N "checking if CFLAGS option -$cf_opt works... $ECHO_C" >&6
7958 if { (eval echo "$as_me:7958: \"$ac_compile\"") >&5
7959 (eval $ac_compile) 2>&5
7961 echo "$as_me:7961: \$? = $ac_status" >&5
7962 (exit $ac_status); }; then
7963 echo "$as_me:7963: result: yes" >&5
7964 echo "${ECHO_T}yes" >&6
7965 cf_save_CFLAGS="$CFLAGS"
7967 echo "$as_me:7967: result: no" >&5
7968 echo "${ECHO_T}no" >&6
7971 CFLAGS="$cf_save_CFLAGS"
7974 # RPATH_LIST is a colon-separated list of directories
7975 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
7976 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
7978 test $cf_cv_rm_so_locs = yes && RM_SHARED_OPTS="$RM_SHARED_OPTS so_locations"
7980 test -n "$verbose" && echo " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6
7982 echo "${as_me:-configure}:7982: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5
7984 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
7986 echo "${as_me:-configure}:7986: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
7988 # The test/sample programs in the original tree link using rpath option.
7989 # Make it optional for packagers.
7990 if test -n "$LOCAL_LDFLAGS"
7992 echo "$as_me:7992: checking if you want to link sample programs with rpath option" >&5
7993 echo $ECHO_N "checking if you want to link sample programs with rpath option... $ECHO_C" >&6
7995 # Check whether --enable-rpath-link or --disable-rpath-link was given.
7996 if test "${enable_rpath_link+set}" = set; then
7997 enableval="$enable_rpath_link"
7998 with_rpath_link=$enableval
8002 echo "$as_me:8002: result: $with_rpath_link" >&5
8003 echo "${ECHO_T}$with_rpath_link" >&6
8004 if test "$with_rpath_link" = no
8011 ###############################################################################
8013 ### use option --enable-broken-linker to force on use of broken-linker support
8014 echo "$as_me:8014: checking if you want broken-linker support code" >&5
8015 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
8017 # Check whether --enable-broken_linker or --disable-broken_linker was given.
8018 if test "${enable_broken_linker+set}" = set; then
8019 enableval="$enable_broken_linker"
8020 with_broken_linker=$enableval
8022 with_broken_linker=${BROKEN_LINKER:-no}
8024 echo "$as_me:8024: result: $with_broken_linker" >&5
8025 echo "${ECHO_T}$with_broken_linker" >&6
8028 if test "$with_broken_linker" = yes ; then
8029 cat >>confdefs.h <<\EOF
8030 #define BROKEN_LINKER 1
8034 elif test "$DFT_LWR_MODEL" = shared ; then
8035 case $cf_cv_system_name in
8037 cat >>confdefs.h <<\EOF
8038 #define BROKEN_LINKER 1
8042 test -n "$verbose" && echo " cygwin linker is broken anyway" 1>&6
8044 echo "${as_me:-configure}:8044: testing cygwin linker is broken anyway ..." 1>&5
8050 # Check to define _XOPEN_SOURCE "automatically"
8053 cf_POSIX_C_SOURCE=199506L
8058 cf_xopen_source="-D_ALL_SOURCE"
8064 cf_xopen_source="-D_APPLE_C_SOURCE"
8067 cf_xopen_source="-D_DARWIN_C_SOURCE"
8070 (freebsd*|dragonfly*)
8071 # 5.x headers associate
8072 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
8073 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
8074 cf_POSIX_C_SOURCE=200112L
8076 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
8079 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
8082 cf_xopen_source="-D_HPUX_SOURCE"
8085 cf_xopen_source="-D_SGI_SOURCE"
8088 (linux*|gnu*|mint*|k*bsd*-gnu)
8090 echo "$as_me:8090: checking if we must define _GNU_SOURCE" >&5
8091 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
8092 if test "${cf_cv_gnu_source+set}" = set; then
8093 echo $ECHO_N "(cached) $ECHO_C" >&6
8096 cat >conftest.$ac_ext <<_ACEOF
8097 #line 8097 "configure"
8098 #include "confdefs.h"
8099 #include <sys/types.h>
8104 #ifndef _XOPEN_SOURCE
8111 rm -f conftest.$ac_objext
8112 if { (eval echo "$as_me:8112: \"$ac_compile\"") >&5
8113 (eval $ac_compile) 2>&5
8115 echo "$as_me:8115: \$? = $ac_status" >&5
8116 (exit $ac_status); } &&
8117 { ac_try='test -s conftest.$ac_objext'
8118 { (eval echo "$as_me:8118: \"$ac_try\"") >&5
8121 echo "$as_me:8121: \$? = $ac_status" >&5
8122 (exit $ac_status); }; }; then
8125 echo "$as_me: failed program was:" >&5
8126 cat conftest.$ac_ext >&5
8128 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
8129 cat >conftest.$ac_ext <<_ACEOF
8130 #line 8130 "configure"
8131 #include "confdefs.h"
8132 #include <sys/types.h>
8137 #ifdef _XOPEN_SOURCE
8144 rm -f conftest.$ac_objext
8145 if { (eval echo "$as_me:8145: \"$ac_compile\"") >&5
8146 (eval $ac_compile) 2>&5
8148 echo "$as_me:8148: \$? = $ac_status" >&5
8149 (exit $ac_status); } &&
8150 { ac_try='test -s conftest.$ac_objext'
8151 { (eval echo "$as_me:8151: \"$ac_try\"") >&5
8154 echo "$as_me:8154: \$? = $ac_status" >&5
8155 (exit $ac_status); }; }; then
8158 echo "$as_me: failed program was:" >&5
8159 cat conftest.$ac_ext >&5
8160 cf_cv_gnu_source=yes
8162 rm -f conftest.$ac_objext conftest.$ac_ext
8166 rm -f conftest.$ac_objext conftest.$ac_ext
8169 echo "$as_me:8169: result: $cf_cv_gnu_source" >&5
8170 echo "${ECHO_T}$cf_cv_gnu_source" >&6
8171 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
8175 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
8178 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
8181 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
8183 cf_save_CFLAGS="$CFLAGS"
8184 cf_save_CPPFLAGS="$CPPFLAGS"
8186 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
8187 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8188 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
8190 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
8191 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8192 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
8194 echo "$as_me:8194: checking if we should define _POSIX_C_SOURCE" >&5
8195 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
8196 if test "${cf_cv_posix_c_source+set}" = set; then
8197 echo $ECHO_N "(cached) $ECHO_C" >&6
8200 echo "${as_me:-configure}:8200: testing if the symbol is already defined go no further ..." 1>&5
8202 cat >conftest.$ac_ext <<_ACEOF
8203 #line 8203 "configure"
8204 #include "confdefs.h"
8205 #include <sys/types.h>
8210 #ifndef _POSIX_C_SOURCE
8217 rm -f conftest.$ac_objext
8218 if { (eval echo "$as_me:8218: \"$ac_compile\"") >&5
8219 (eval $ac_compile) 2>&5
8221 echo "$as_me:8221: \$? = $ac_status" >&5
8222 (exit $ac_status); } &&
8223 { ac_try='test -s conftest.$ac_objext'
8224 { (eval echo "$as_me:8224: \"$ac_try\"") >&5
8227 echo "$as_me:8227: \$? = $ac_status" >&5
8228 (exit $ac_status); }; }; then
8229 cf_cv_posix_c_source=no
8231 echo "$as_me: failed program was:" >&5
8232 cat conftest.$ac_ext >&5
8233 cf_want_posix_source=no
8234 case .$cf_POSIX_C_SOURCE in
8236 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8239 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8240 cf_want_posix_source=yes
8243 cf_want_posix_source=yes
8246 if test "$cf_want_posix_source" = yes ; then
8247 cat >conftest.$ac_ext <<_ACEOF
8248 #line 8248 "configure"
8249 #include "confdefs.h"
8250 #include <sys/types.h>
8255 #ifdef _POSIX_SOURCE
8262 rm -f conftest.$ac_objext
8263 if { (eval echo "$as_me:8263: \"$ac_compile\"") >&5
8264 (eval $ac_compile) 2>&5
8266 echo "$as_me:8266: \$? = $ac_status" >&5
8267 (exit $ac_status); } &&
8268 { ac_try='test -s conftest.$ac_objext'
8269 { (eval echo "$as_me:8269: \"$ac_try\"") >&5
8272 echo "$as_me:8272: \$? = $ac_status" >&5
8273 (exit $ac_status); }; }; then
8276 echo "$as_me: failed program was:" >&5
8277 cat conftest.$ac_ext >&5
8278 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
8280 rm -f conftest.$ac_objext conftest.$ac_ext
8283 echo "${as_me:-configure}:8283: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
8285 CFLAGS="$cf_trim_CFLAGS"
8286 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
8288 echo "${as_me:-configure}:8288: testing if the second compile does not leave our definition intact error ..." 1>&5
8290 cat >conftest.$ac_ext <<_ACEOF
8291 #line 8291 "configure"
8292 #include "confdefs.h"
8293 #include <sys/types.h>
8298 #ifndef _POSIX_C_SOURCE
8305 rm -f conftest.$ac_objext
8306 if { (eval echo "$as_me:8306: \"$ac_compile\"") >&5
8307 (eval $ac_compile) 2>&5
8309 echo "$as_me:8309: \$? = $ac_status" >&5
8310 (exit $ac_status); } &&
8311 { ac_try='test -s conftest.$ac_objext'
8312 { (eval echo "$as_me:8312: \"$ac_try\"") >&5
8315 echo "$as_me:8315: \$? = $ac_status" >&5
8316 (exit $ac_status); }; }; then
8319 echo "$as_me: failed program was:" >&5
8320 cat conftest.$ac_ext >&5
8321 cf_cv_posix_c_source=no
8323 rm -f conftest.$ac_objext conftest.$ac_ext
8324 CFLAGS="$cf_save_CFLAGS"
8325 CPPFLAGS="$cf_save_CPPFLAGS"
8328 rm -f conftest.$ac_objext conftest.$ac_ext
8331 echo "$as_me:8331: result: $cf_cv_posix_c_source" >&5
8332 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
8334 if test "$cf_cv_posix_c_source" != no ; then
8335 CFLAGS="$cf_trim_CFLAGS"
8336 CPPFLAGS="$cf_trim_CPPFLAGS"
8341 cf_new_extra_cppflags=
8343 for cf_add_cflags in $cf_cv_posix_c_source
8345 case $cf_fix_cppflags in
8347 case $cf_add_cflags in
8348 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8349 case $cf_add_cflags in
8351 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8353 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8354 && test -z "${cf_tst_cflags}" \
8355 && cf_fix_cppflags=yes
8357 if test $cf_fix_cppflags = yes ; then
8358 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8360 elif test "${cf_tst_cflags}" = "\"'" ; then
8361 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8370 case $cf_add_cflags in
8372 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8374 CPPFLAGS=`echo "$CPPFLAGS" | \
8375 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8376 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8380 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8385 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8390 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8392 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8394 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8395 && test -z "${cf_tst_cflags}" \
8396 && cf_fix_cppflags=no
8401 if test -n "$cf_new_cflags" ; then
8403 CFLAGS="$CFLAGS $cf_new_cflags"
8406 if test -n "$cf_new_cppflags" ; then
8408 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8411 if test -n "$cf_new_extra_cppflags" ; then
8413 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8420 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
8423 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
8424 cf_xopen_source="-D_BSD_SOURCE"
8428 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
8431 cf_xopen_source="-D_OSF_SOURCE"
8434 cf_xopen_source="-D_QNX_SOURCE"
8437 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
8440 cf_xopen_source="-D__EXTENSIONS__"
8441 cf_cv_xopen_source=broken
8443 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
8449 echo "$as_me:8449: checking if we should define _XOPEN_SOURCE" >&5
8450 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
8451 if test "${cf_cv_xopen_source+set}" = set; then
8452 echo $ECHO_N "(cached) $ECHO_C" >&6
8455 cat >conftest.$ac_ext <<_ACEOF
8456 #line 8456 "configure"
8457 #include "confdefs.h"
8461 #include <sys/types.h>
8467 #ifndef _XOPEN_SOURCE
8474 rm -f conftest.$ac_objext
8475 if { (eval echo "$as_me:8475: \"$ac_compile\"") >&5
8476 (eval $ac_compile) 2>&5
8478 echo "$as_me:8478: \$? = $ac_status" >&5
8479 (exit $ac_status); } &&
8480 { ac_try='test -s conftest.$ac_objext'
8481 { (eval echo "$as_me:8481: \"$ac_try\"") >&5
8484 echo "$as_me:8484: \$? = $ac_status" >&5
8485 (exit $ac_status); }; }; then
8486 cf_cv_xopen_source=no
8488 echo "$as_me: failed program was:" >&5
8489 cat conftest.$ac_ext >&5
8491 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
8492 cat >conftest.$ac_ext <<_ACEOF
8493 #line 8493 "configure"
8494 #include "confdefs.h"
8498 #include <sys/types.h>
8504 #ifdef _XOPEN_SOURCE
8511 rm -f conftest.$ac_objext
8512 if { (eval echo "$as_me:8512: \"$ac_compile\"") >&5
8513 (eval $ac_compile) 2>&5
8515 echo "$as_me:8515: \$? = $ac_status" >&5
8516 (exit $ac_status); } &&
8517 { ac_try='test -s conftest.$ac_objext'
8518 { (eval echo "$as_me:8518: \"$ac_try\"") >&5
8521 echo "$as_me:8521: \$? = $ac_status" >&5
8522 (exit $ac_status); }; }; then
8523 cf_cv_xopen_source=no
8525 echo "$as_me: failed program was:" >&5
8526 cat conftest.$ac_ext >&5
8527 cf_cv_xopen_source=$cf_XOPEN_SOURCE
8529 rm -f conftest.$ac_objext conftest.$ac_ext
8533 rm -f conftest.$ac_objext conftest.$ac_ext
8536 echo "$as_me:8536: result: $cf_cv_xopen_source" >&5
8537 echo "${ECHO_T}$cf_cv_xopen_source" >&6
8539 if test "$cf_cv_xopen_source" != no ; then
8541 CFLAGS=`echo "$CFLAGS" | \
8542 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8543 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8545 CPPFLAGS=`echo "$CPPFLAGS" | \
8546 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8547 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8549 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
8554 cf_new_extra_cppflags=
8556 for cf_add_cflags in $cf_temp_xopen_source
8558 case $cf_fix_cppflags in
8560 case $cf_add_cflags in
8561 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8562 case $cf_add_cflags in
8564 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8566 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8567 && test -z "${cf_tst_cflags}" \
8568 && cf_fix_cppflags=yes
8570 if test $cf_fix_cppflags = yes ; then
8571 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8573 elif test "${cf_tst_cflags}" = "\"'" ; then
8574 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8583 case $cf_add_cflags in
8585 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8587 CPPFLAGS=`echo "$CPPFLAGS" | \
8588 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8589 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8593 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8598 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8603 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8605 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8607 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8608 && test -z "${cf_tst_cflags}" \
8609 && cf_fix_cppflags=no
8614 if test -n "$cf_new_cflags" ; then
8616 CFLAGS="$CFLAGS $cf_new_cflags"
8619 if test -n "$cf_new_cppflags" ; then
8621 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8624 if test -n "$cf_new_extra_cppflags" ; then
8626 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8631 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
8633 cf_save_CFLAGS="$CFLAGS"
8634 cf_save_CPPFLAGS="$CPPFLAGS"
8636 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
8637 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8638 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
8640 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
8641 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8642 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
8644 echo "$as_me:8644: checking if we should define _POSIX_C_SOURCE" >&5
8645 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
8646 if test "${cf_cv_posix_c_source+set}" = set; then
8647 echo $ECHO_N "(cached) $ECHO_C" >&6
8650 echo "${as_me:-configure}:8650: testing if the symbol is already defined go no further ..." 1>&5
8652 cat >conftest.$ac_ext <<_ACEOF
8653 #line 8653 "configure"
8654 #include "confdefs.h"
8655 #include <sys/types.h>
8660 #ifndef _POSIX_C_SOURCE
8667 rm -f conftest.$ac_objext
8668 if { (eval echo "$as_me:8668: \"$ac_compile\"") >&5
8669 (eval $ac_compile) 2>&5
8671 echo "$as_me:8671: \$? = $ac_status" >&5
8672 (exit $ac_status); } &&
8673 { ac_try='test -s conftest.$ac_objext'
8674 { (eval echo "$as_me:8674: \"$ac_try\"") >&5
8677 echo "$as_me:8677: \$? = $ac_status" >&5
8678 (exit $ac_status); }; }; then
8679 cf_cv_posix_c_source=no
8681 echo "$as_me: failed program was:" >&5
8682 cat conftest.$ac_ext >&5
8683 cf_want_posix_source=no
8684 case .$cf_POSIX_C_SOURCE in
8686 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8689 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8690 cf_want_posix_source=yes
8693 cf_want_posix_source=yes
8696 if test "$cf_want_posix_source" = yes ; then
8697 cat >conftest.$ac_ext <<_ACEOF
8698 #line 8698 "configure"
8699 #include "confdefs.h"
8700 #include <sys/types.h>
8705 #ifdef _POSIX_SOURCE
8712 rm -f conftest.$ac_objext
8713 if { (eval echo "$as_me:8713: \"$ac_compile\"") >&5
8714 (eval $ac_compile) 2>&5
8716 echo "$as_me:8716: \$? = $ac_status" >&5
8717 (exit $ac_status); } &&
8718 { ac_try='test -s conftest.$ac_objext'
8719 { (eval echo "$as_me:8719: \"$ac_try\"") >&5
8722 echo "$as_me:8722: \$? = $ac_status" >&5
8723 (exit $ac_status); }; }; then
8726 echo "$as_me: failed program was:" >&5
8727 cat conftest.$ac_ext >&5
8728 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
8730 rm -f conftest.$ac_objext conftest.$ac_ext
8733 echo "${as_me:-configure}:8733: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
8735 CFLAGS="$cf_trim_CFLAGS"
8736 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
8738 echo "${as_me:-configure}:8738: testing if the second compile does not leave our definition intact error ..." 1>&5
8740 cat >conftest.$ac_ext <<_ACEOF
8741 #line 8741 "configure"
8742 #include "confdefs.h"
8743 #include <sys/types.h>
8748 #ifndef _POSIX_C_SOURCE
8755 rm -f conftest.$ac_objext
8756 if { (eval echo "$as_me:8756: \"$ac_compile\"") >&5
8757 (eval $ac_compile) 2>&5
8759 echo "$as_me:8759: \$? = $ac_status" >&5
8760 (exit $ac_status); } &&
8761 { ac_try='test -s conftest.$ac_objext'
8762 { (eval echo "$as_me:8762: \"$ac_try\"") >&5
8765 echo "$as_me:8765: \$? = $ac_status" >&5
8766 (exit $ac_status); }; }; then
8769 echo "$as_me: failed program was:" >&5
8770 cat conftest.$ac_ext >&5
8771 cf_cv_posix_c_source=no
8773 rm -f conftest.$ac_objext conftest.$ac_ext
8774 CFLAGS="$cf_save_CFLAGS"
8775 CPPFLAGS="$cf_save_CPPFLAGS"
8778 rm -f conftest.$ac_objext conftest.$ac_ext
8781 echo "$as_me:8781: result: $cf_cv_posix_c_source" >&5
8782 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
8784 if test "$cf_cv_posix_c_source" != no ; then
8785 CFLAGS="$cf_trim_CFLAGS"
8786 CPPFLAGS="$cf_trim_CPPFLAGS"
8791 cf_new_extra_cppflags=
8793 for cf_add_cflags in $cf_cv_posix_c_source
8795 case $cf_fix_cppflags in
8797 case $cf_add_cflags in
8798 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8799 case $cf_add_cflags in
8801 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8803 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8804 && test -z "${cf_tst_cflags}" \
8805 && cf_fix_cppflags=yes
8807 if test $cf_fix_cppflags = yes ; then
8808 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8810 elif test "${cf_tst_cflags}" = "\"'" ; then
8811 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8820 case $cf_add_cflags in
8822 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8824 CPPFLAGS=`echo "$CPPFLAGS" | \
8825 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8826 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8830 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8835 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8840 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8842 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8844 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8845 && test -z "${cf_tst_cflags}" \
8846 && cf_fix_cppflags=no
8851 if test -n "$cf_new_cflags" ; then
8853 CFLAGS="$CFLAGS $cf_new_cflags"
8856 if test -n "$cf_new_cppflags" ; then
8858 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8861 if test -n "$cf_new_extra_cppflags" ; then
8863 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8871 if test -n "$cf_xopen_source" ; then
8876 cf_new_extra_cppflags=
8878 for cf_add_cflags in $cf_xopen_source
8880 case $cf_fix_cppflags in
8882 case $cf_add_cflags in
8883 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8884 case $cf_add_cflags in
8886 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8888 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8889 && test -z "${cf_tst_cflags}" \
8890 && cf_fix_cppflags=yes
8892 if test $cf_fix_cppflags = yes ; then
8893 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8895 elif test "${cf_tst_cflags}" = "\"'" ; then
8896 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8905 case $cf_add_cflags in
8907 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8909 CPPFLAGS=`echo "$CPPFLAGS" | \
8910 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8911 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8915 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8920 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8925 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8927 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8929 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8930 && test -z "${cf_tst_cflags}" \
8931 && cf_fix_cppflags=no
8936 if test -n "$cf_new_cflags" ; then
8937 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
8939 echo "${as_me:-configure}:8939: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
8941 CFLAGS="$CFLAGS $cf_new_cflags"
8944 if test -n "$cf_new_cppflags" ; then
8945 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
8947 echo "${as_me:-configure}:8947: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
8949 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8952 if test -n "$cf_new_extra_cppflags" ; then
8953 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
8955 echo "${as_me:-configure}:8955: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
8957 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8962 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
8963 echo "$as_me:8963: checking if _XOPEN_SOURCE really is set" >&5
8964 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
8965 cat >conftest.$ac_ext <<_ACEOF
8966 #line 8966 "configure"
8967 #include "confdefs.h"
8973 #ifndef _XOPEN_SOURCE
8980 rm -f conftest.$ac_objext
8981 if { (eval echo "$as_me:8981: \"$ac_compile\"") >&5
8982 (eval $ac_compile) 2>&5
8984 echo "$as_me:8984: \$? = $ac_status" >&5
8985 (exit $ac_status); } &&
8986 { ac_try='test -s conftest.$ac_objext'
8987 { (eval echo "$as_me:8987: \"$ac_try\"") >&5
8990 echo "$as_me:8990: \$? = $ac_status" >&5
8991 (exit $ac_status); }; }; then
8992 cf_XOPEN_SOURCE_set=yes
8994 echo "$as_me: failed program was:" >&5
8995 cat conftest.$ac_ext >&5
8996 cf_XOPEN_SOURCE_set=no
8998 rm -f conftest.$ac_objext conftest.$ac_ext
8999 echo "$as_me:8999: result: $cf_XOPEN_SOURCE_set" >&5
9000 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
9001 if test $cf_XOPEN_SOURCE_set = yes
9003 cat >conftest.$ac_ext <<_ACEOF
9004 #line 9004 "configure"
9005 #include "confdefs.h"
9011 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
9018 rm -f conftest.$ac_objext
9019 if { (eval echo "$as_me:9019: \"$ac_compile\"") >&5
9020 (eval $ac_compile) 2>&5
9022 echo "$as_me:9022: \$? = $ac_status" >&5
9023 (exit $ac_status); } &&
9024 { ac_try='test -s conftest.$ac_objext'
9025 { (eval echo "$as_me:9025: \"$ac_try\"") >&5
9028 echo "$as_me:9028: \$? = $ac_status" >&5
9029 (exit $ac_status); }; }; then
9030 cf_XOPEN_SOURCE_set_ok=yes
9032 echo "$as_me: failed program was:" >&5
9033 cat conftest.$ac_ext >&5
9034 cf_XOPEN_SOURCE_set_ok=no
9036 rm -f conftest.$ac_objext conftest.$ac_ext
9037 if test $cf_XOPEN_SOURCE_set_ok = no
9039 { echo "$as_me:9039: WARNING: _XOPEN_SOURCE is lower than requested" >&5
9040 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
9044 echo "$as_me:9044: checking if we should define _XOPEN_SOURCE" >&5
9045 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
9046 if test "${cf_cv_xopen_source+set}" = set; then
9047 echo $ECHO_N "(cached) $ECHO_C" >&6
9050 cat >conftest.$ac_ext <<_ACEOF
9051 #line 9051 "configure"
9052 #include "confdefs.h"
9056 #include <sys/types.h>
9062 #ifndef _XOPEN_SOURCE
9069 rm -f conftest.$ac_objext
9070 if { (eval echo "$as_me:9070: \"$ac_compile\"") >&5
9071 (eval $ac_compile) 2>&5
9073 echo "$as_me:9073: \$? = $ac_status" >&5
9074 (exit $ac_status); } &&
9075 { ac_try='test -s conftest.$ac_objext'
9076 { (eval echo "$as_me:9076: \"$ac_try\"") >&5
9079 echo "$as_me:9079: \$? = $ac_status" >&5
9080 (exit $ac_status); }; }; then
9081 cf_cv_xopen_source=no
9083 echo "$as_me: failed program was:" >&5
9084 cat conftest.$ac_ext >&5
9086 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
9087 cat >conftest.$ac_ext <<_ACEOF
9088 #line 9088 "configure"
9089 #include "confdefs.h"
9093 #include <sys/types.h>
9099 #ifdef _XOPEN_SOURCE
9106 rm -f conftest.$ac_objext
9107 if { (eval echo "$as_me:9107: \"$ac_compile\"") >&5
9108 (eval $ac_compile) 2>&5
9110 echo "$as_me:9110: \$? = $ac_status" >&5
9111 (exit $ac_status); } &&
9112 { ac_try='test -s conftest.$ac_objext'
9113 { (eval echo "$as_me:9113: \"$ac_try\"") >&5
9116 echo "$as_me:9116: \$? = $ac_status" >&5
9117 (exit $ac_status); }; }; then
9118 cf_cv_xopen_source=no
9120 echo "$as_me: failed program was:" >&5
9121 cat conftest.$ac_ext >&5
9122 cf_cv_xopen_source=$cf_XOPEN_SOURCE
9124 rm -f conftest.$ac_objext conftest.$ac_ext
9128 rm -f conftest.$ac_objext conftest.$ac_ext
9131 echo "$as_me:9131: result: $cf_cv_xopen_source" >&5
9132 echo "${ECHO_T}$cf_cv_xopen_source" >&6
9134 if test "$cf_cv_xopen_source" != no ; then
9136 CFLAGS=`echo "$CFLAGS" | \
9137 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
9138 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
9140 CPPFLAGS=`echo "$CPPFLAGS" | \
9141 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
9142 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
9144 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
9149 cf_new_extra_cppflags=
9151 for cf_add_cflags in $cf_temp_xopen_source
9153 case $cf_fix_cppflags in
9155 case $cf_add_cflags in
9156 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
9157 case $cf_add_cflags in
9159 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9161 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9162 && test -z "${cf_tst_cflags}" \
9163 && cf_fix_cppflags=yes
9165 if test $cf_fix_cppflags = yes ; then
9166 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9168 elif test "${cf_tst_cflags}" = "\"'" ; then
9169 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9178 case $cf_add_cflags in
9180 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9182 CPPFLAGS=`echo "$CPPFLAGS" | \
9183 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9184 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9188 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
9193 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
9198 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9200 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9202 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9203 && test -z "${cf_tst_cflags}" \
9204 && cf_fix_cppflags=no
9209 if test -n "$cf_new_cflags" ; then
9211 CFLAGS="$CFLAGS $cf_new_cflags"
9214 if test -n "$cf_new_cppflags" ; then
9216 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
9219 if test -n "$cf_new_extra_cppflags" ; then
9221 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
9229 # Check whether --enable-largefile or --disable-largefile was given.
9230 if test "${enable_largefile+set}" = set; then
9231 enableval="$enable_largefile"
9234 if test "$enable_largefile" != no; then
9236 echo "$as_me:9236: checking for special C compiler options needed for large files" >&5
9237 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
9238 if test "${ac_cv_sys_largefile_CC+set}" = set; then
9239 echo $ECHO_N "(cached) $ECHO_C" >&6
9241 ac_cv_sys_largefile_CC=no
9242 if test "$GCC" != yes; then
9245 # IRIX 6.2 and later do not support large files by default,
9246 # so use the C compiler's -n32 option if that helps.
9247 cat >conftest.$ac_ext <<_ACEOF
9248 #line 9248 "configure"
9249 #include "confdefs.h"
9250 #include <sys/types.h>
9251 /* Check that off_t can represent 2**63 - 1 correctly.
9252 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9253 since some C++ compilers masquerading as C compilers
9254 incorrectly reject 9223372036854775807. */
9255 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9256 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9257 && LARGE_OFF_T % 2147483647 == 1)
9267 rm -f conftest.$ac_objext
9268 if { (eval echo "$as_me:9268: \"$ac_compile\"") >&5
9269 (eval $ac_compile) 2>&5
9271 echo "$as_me:9271: \$? = $ac_status" >&5
9272 (exit $ac_status); } &&
9273 { ac_try='test -s conftest.$ac_objext'
9274 { (eval echo "$as_me:9274: \"$ac_try\"") >&5
9277 echo "$as_me:9277: \$? = $ac_status" >&5
9278 (exit $ac_status); }; }; then
9281 echo "$as_me: failed program was:" >&5
9282 cat conftest.$ac_ext >&5
9284 rm -f conftest.$ac_objext
9286 rm -f conftest.$ac_objext
9287 if { (eval echo "$as_me:9287: \"$ac_compile\"") >&5
9288 (eval $ac_compile) 2>&5
9290 echo "$as_me:9290: \$? = $ac_status" >&5
9291 (exit $ac_status); } &&
9292 { ac_try='test -s conftest.$ac_objext'
9293 { (eval echo "$as_me:9293: \"$ac_try\"") >&5
9296 echo "$as_me:9296: \$? = $ac_status" >&5
9297 (exit $ac_status); }; }; then
9298 ac_cv_sys_largefile_CC=' -n32'; break
9300 echo "$as_me: failed program was:" >&5
9301 cat conftest.$ac_ext >&5
9303 rm -f conftest.$ac_objext
9307 rm -f conftest.$ac_ext
9310 echo "$as_me:9310: result: $ac_cv_sys_largefile_CC" >&5
9311 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
9312 if test "$ac_cv_sys_largefile_CC" != no; then
9313 CC=$CC$ac_cv_sys_largefile_CC
9316 echo "$as_me:9316: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9317 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
9318 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9319 echo $ECHO_N "(cached) $ECHO_C" >&6
9322 ac_cv_sys_file_offset_bits=no
9323 cat >conftest.$ac_ext <<_ACEOF
9324 #line 9324 "configure"
9325 #include "confdefs.h"
9326 #include <sys/types.h>
9327 /* Check that off_t can represent 2**63 - 1 correctly.
9328 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9329 since some C++ compilers masquerading as C compilers
9330 incorrectly reject 9223372036854775807. */
9331 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9332 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9333 && LARGE_OFF_T % 2147483647 == 1)
9343 rm -f conftest.$ac_objext
9344 if { (eval echo "$as_me:9344: \"$ac_compile\"") >&5
9345 (eval $ac_compile) 2>&5
9347 echo "$as_me:9347: \$? = $ac_status" >&5
9348 (exit $ac_status); } &&
9349 { ac_try='test -s conftest.$ac_objext'
9350 { (eval echo "$as_me:9350: \"$ac_try\"") >&5
9353 echo "$as_me:9353: \$? = $ac_status" >&5
9354 (exit $ac_status); }; }; then
9357 echo "$as_me: failed program was:" >&5
9358 cat conftest.$ac_ext >&5
9360 rm -f conftest.$ac_objext conftest.$ac_ext
9361 cat >conftest.$ac_ext <<_ACEOF
9362 #line 9362 "configure"
9363 #include "confdefs.h"
9364 #define _FILE_OFFSET_BITS 64
9365 #include <sys/types.h>
9366 /* Check that off_t can represent 2**63 - 1 correctly.
9367 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9368 since some C++ compilers masquerading as C compilers
9369 incorrectly reject 9223372036854775807. */
9370 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9371 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9372 && LARGE_OFF_T % 2147483647 == 1)
9382 rm -f conftest.$ac_objext
9383 if { (eval echo "$as_me:9383: \"$ac_compile\"") >&5
9384 (eval $ac_compile) 2>&5
9386 echo "$as_me:9386: \$? = $ac_status" >&5
9387 (exit $ac_status); } &&
9388 { ac_try='test -s conftest.$ac_objext'
9389 { (eval echo "$as_me:9389: \"$ac_try\"") >&5
9392 echo "$as_me:9392: \$? = $ac_status" >&5
9393 (exit $ac_status); }; }; then
9394 ac_cv_sys_file_offset_bits=64; break
9396 echo "$as_me: failed program was:" >&5
9397 cat conftest.$ac_ext >&5
9399 rm -f conftest.$ac_objext conftest.$ac_ext
9403 echo "$as_me:9403: result: $ac_cv_sys_file_offset_bits" >&5
9404 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9405 if test "$ac_cv_sys_file_offset_bits" != no; then
9407 cat >>confdefs.h <<EOF
9408 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9413 echo "$as_me:9413: checking for _LARGE_FILES value needed for large files" >&5
9414 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
9415 if test "${ac_cv_sys_large_files+set}" = set; then
9416 echo $ECHO_N "(cached) $ECHO_C" >&6
9419 ac_cv_sys_large_files=no
9420 cat >conftest.$ac_ext <<_ACEOF
9421 #line 9421 "configure"
9422 #include "confdefs.h"
9423 #include <sys/types.h>
9424 /* Check that off_t can represent 2**63 - 1 correctly.
9425 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9426 since some C++ compilers masquerading as C compilers
9427 incorrectly reject 9223372036854775807. */
9428 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9429 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9430 && LARGE_OFF_T % 2147483647 == 1)
9440 rm -f conftest.$ac_objext
9441 if { (eval echo "$as_me:9441: \"$ac_compile\"") >&5
9442 (eval $ac_compile) 2>&5
9444 echo "$as_me:9444: \$? = $ac_status" >&5
9445 (exit $ac_status); } &&
9446 { ac_try='test -s conftest.$ac_objext'
9447 { (eval echo "$as_me:9447: \"$ac_try\"") >&5
9450 echo "$as_me:9450: \$? = $ac_status" >&5
9451 (exit $ac_status); }; }; then
9454 echo "$as_me: failed program was:" >&5
9455 cat conftest.$ac_ext >&5
9457 rm -f conftest.$ac_objext conftest.$ac_ext
9458 cat >conftest.$ac_ext <<_ACEOF
9459 #line 9459 "configure"
9460 #include "confdefs.h"
9461 #define _LARGE_FILES 1
9462 #include <sys/types.h>
9463 /* Check that off_t can represent 2**63 - 1 correctly.
9464 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9465 since some C++ compilers masquerading as C compilers
9466 incorrectly reject 9223372036854775807. */
9467 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9468 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9469 && LARGE_OFF_T % 2147483647 == 1)
9479 rm -f conftest.$ac_objext
9480 if { (eval echo "$as_me:9480: \"$ac_compile\"") >&5
9481 (eval $ac_compile) 2>&5
9483 echo "$as_me:9483: \$? = $ac_status" >&5
9484 (exit $ac_status); } &&
9485 { ac_try='test -s conftest.$ac_objext'
9486 { (eval echo "$as_me:9486: \"$ac_try\"") >&5
9489 echo "$as_me:9489: \$? = $ac_status" >&5
9490 (exit $ac_status); }; }; then
9491 ac_cv_sys_large_files=1; break
9493 echo "$as_me: failed program was:" >&5
9494 cat conftest.$ac_ext >&5
9496 rm -f conftest.$ac_objext conftest.$ac_ext
9500 echo "$as_me:9500: result: $ac_cv_sys_large_files" >&5
9501 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9502 if test "$ac_cv_sys_large_files" != no; then
9504 cat >>confdefs.h <<EOF
9505 #define _LARGE_FILES $ac_cv_sys_large_files
9512 if test "$enable_largefile" != no ; then
9513 echo "$as_me:9513: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9514 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
9515 if test "${ac_cv_sys_largefile_source+set}" = set; then
9516 echo $ECHO_N "(cached) $ECHO_C" >&6
9519 ac_cv_sys_largefile_source=no
9520 cat >conftest.$ac_ext <<_ACEOF
9521 #line 9521 "configure"
9522 #include "confdefs.h"
9532 rm -f conftest.$ac_objext
9533 if { (eval echo "$as_me:9533: \"$ac_compile\"") >&5
9534 (eval $ac_compile) 2>&5
9536 echo "$as_me:9536: \$? = $ac_status" >&5
9537 (exit $ac_status); } &&
9538 { ac_try='test -s conftest.$ac_objext'
9539 { (eval echo "$as_me:9539: \"$ac_try\"") >&5
9542 echo "$as_me:9542: \$? = $ac_status" >&5
9543 (exit $ac_status); }; }; then
9546 echo "$as_me: failed program was:" >&5
9547 cat conftest.$ac_ext >&5
9549 rm -f conftest.$ac_objext conftest.$ac_ext
9550 cat >conftest.$ac_ext <<_ACEOF
9551 #line 9551 "configure"
9552 #include "confdefs.h"
9553 #define _LARGEFILE_SOURCE 1
9563 rm -f conftest.$ac_objext
9564 if { (eval echo "$as_me:9564: \"$ac_compile\"") >&5
9565 (eval $ac_compile) 2>&5
9567 echo "$as_me:9567: \$? = $ac_status" >&5
9568 (exit $ac_status); } &&
9569 { ac_try='test -s conftest.$ac_objext'
9570 { (eval echo "$as_me:9570: \"$ac_try\"") >&5
9573 echo "$as_me:9573: \$? = $ac_status" >&5
9574 (exit $ac_status); }; }; then
9575 ac_cv_sys_largefile_source=1; break
9577 echo "$as_me: failed program was:" >&5
9578 cat conftest.$ac_ext >&5
9580 rm -f conftest.$ac_objext conftest.$ac_ext
9584 echo "$as_me:9584: result: $ac_cv_sys_largefile_source" >&5
9585 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9586 if test "$ac_cv_sys_largefile_source" != no; then
9588 cat >>confdefs.h <<EOF
9589 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9595 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9596 # in glibc 2.1.3, but that breaks too many other things.
9597 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9598 echo "$as_me:9598: checking for fseeko" >&5
9599 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
9600 if test "${ac_cv_func_fseeko+set}" = set; then
9601 echo $ECHO_N "(cached) $ECHO_C" >&6
9603 cat >conftest.$ac_ext <<_ACEOF
9604 #line 9604 "configure"
9605 #include "confdefs.h"
9610 return fseeko && fseeko (stdin, 0, 0);
9615 rm -f conftest.$ac_objext conftest$ac_exeext
9616 if { (eval echo "$as_me:9616: \"$ac_link\"") >&5
9617 (eval $ac_link) 2>&5
9619 echo "$as_me:9619: \$? = $ac_status" >&5
9620 (exit $ac_status); } &&
9621 { ac_try='test -s conftest$ac_exeext'
9622 { (eval echo "$as_me:9622: \"$ac_try\"") >&5
9625 echo "$as_me:9625: \$? = $ac_status" >&5
9626 (exit $ac_status); }; }; then
9627 ac_cv_func_fseeko=yes
9629 echo "$as_me: failed program was:" >&5
9630 cat conftest.$ac_ext >&5
9631 ac_cv_func_fseeko=no
9633 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9635 echo "$as_me:9635: result: $ac_cv_func_fseeko" >&5
9636 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
9637 if test $ac_cv_func_fseeko = yes; then
9639 cat >>confdefs.h <<\EOF
9640 #define HAVE_FSEEKO 1
9645 # Normally we would collect these definitions in the config.h,
9646 # but (like _XOPEN_SOURCE), some environments rely on having these
9647 # defined before any of the system headers are included. Another
9648 # case comes up with C++, e.g., on AIX the compiler compiles the
9649 # header files by themselves before looking at the body files it is
9650 # told to compile. For ncurses, those header files do not include
9652 test "$ac_cv_sys_large_files" != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES "
9653 test "$ac_cv_sys_largefile_source" != no && CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE "
9654 test "$ac_cv_sys_file_offset_bits" != no && CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits "
9656 echo "$as_me:9656: checking whether to use struct dirent64" >&5
9657 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
9658 if test "${cf_cv_struct_dirent64+set}" = set; then
9659 echo $ECHO_N "(cached) $ECHO_C" >&6
9662 cat >conftest.$ac_ext <<_ACEOF
9663 #line 9663 "configure"
9664 #include "confdefs.h"
9666 #include <sys/types.h>
9673 /* if transitional largefile support is setup, this is true */
9674 extern struct dirent64 * readdir(DIR *);
9675 struct dirent64 *x = readdir((DIR *)0);
9676 struct dirent *y = readdir((DIR *)0);
9683 rm -f conftest.$ac_objext
9684 if { (eval echo "$as_me:9684: \"$ac_compile\"") >&5
9685 (eval $ac_compile) 2>&5
9687 echo "$as_me:9687: \$? = $ac_status" >&5
9688 (exit $ac_status); } &&
9689 { ac_try='test -s conftest.$ac_objext'
9690 { (eval echo "$as_me:9690: \"$ac_try\"") >&5
9693 echo "$as_me:9693: \$? = $ac_status" >&5
9694 (exit $ac_status); }; }; then
9695 cf_cv_struct_dirent64=yes
9697 echo "$as_me: failed program was:" >&5
9698 cat conftest.$ac_ext >&5
9699 cf_cv_struct_dirent64=no
9701 rm -f conftest.$ac_objext conftest.$ac_ext
9704 echo "$as_me:9704: result: $cf_cv_struct_dirent64" >&5
9705 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
9706 test "$cf_cv_struct_dirent64" = yes &&
9707 cat >>confdefs.h <<\EOF
9708 #define HAVE_STRUCT_DIRENT64 1
9713 ### Enable compiling-in rcs id's
9714 echo "$as_me:9714: checking if RCS identifiers should be compiled-in" >&5
9715 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
9717 # Check whether --with-rcs-ids or --without-rcs-ids was given.
9718 if test "${with_rcs_ids+set}" = set; then
9719 withval="$with_rcs_ids"
9720 with_rcs_ids=$withval
9724 echo "$as_me:9724: result: $with_rcs_ids" >&5
9725 echo "${ECHO_T}$with_rcs_ids" >&6
9726 test "$with_rcs_ids" = yes &&
9727 cat >>confdefs.h <<\EOF
9728 #define USE_RCS_IDS 1
9731 ###############################################################################
9733 ### Note that some functions (such as const) are normally disabled anyway.
9734 echo "$as_me:9734: checking if you want to build with function extensions" >&5
9735 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
9737 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
9738 if test "${enable_ext_funcs+set}" = set; then
9739 enableval="$enable_ext_funcs"
9740 with_ext_funcs=$enableval
9744 echo "$as_me:9744: result: $with_ext_funcs" >&5
9745 echo "${ECHO_T}$with_ext_funcs" >&6
9746 if test "$with_ext_funcs" = yes ; then
9749 cat >>confdefs.h <<\EOF
9750 #define HAVE_USE_DEFAULT_COLORS 1
9753 cat >>confdefs.h <<\EOF
9754 #define NCURSES_EXT_FUNCS 1
9761 ### use option --enable-const to turn on use of const beyond that in XSI.
9762 echo "$as_me:9762: checking for extended use of const keyword" >&5
9763 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
9765 # Check whether --enable-const or --disable-const was given.
9766 if test "${enable_const+set}" = set; then
9767 enableval="$enable_const"
9768 with_ext_const=$enableval
9772 echo "$as_me:9772: result: $with_ext_const" >&5
9773 echo "${ECHO_T}$with_ext_const" >&6
9774 NCURSES_CONST='/*nothing*/'
9775 if test "$with_ext_const" = yes ; then
9779 ###############################################################################
9780 # These options are relatively safe to experiment with.
9782 echo "$as_me:9782: checking if you want all development code" >&5
9783 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
9785 # Check whether --with-develop or --without-develop was given.
9786 if test "${with_develop+set}" = set; then
9787 withval="$with_develop"
9788 with_develop=$withval
9792 echo "$as_me:9792: result: $with_develop" >&5
9793 echo "${ECHO_T}$with_develop" >&6
9795 ###############################################################################
9796 # These are just experimental, probably should not be in a package:
9798 # This is still experimental (20080329), but should ultimately be moved to
9799 # the script-block --with-normal, etc.
9801 echo "$as_me:9801: checking if you want to link with the pthread library" >&5
9802 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
9804 # Check whether --with-pthread or --without-pthread was given.
9805 if test "${with_pthread+set}" = set; then
9806 withval="$with_pthread"
9807 with_pthread=$withval
9811 echo "$as_me:9811: result: $with_pthread" >&5
9812 echo "${ECHO_T}$with_pthread" >&6
9814 if test "$with_pthread" != no ; then
9815 echo "$as_me:9815: checking for pthread.h" >&5
9816 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
9817 if test "${ac_cv_header_pthread_h+set}" = set; then
9818 echo $ECHO_N "(cached) $ECHO_C" >&6
9820 cat >conftest.$ac_ext <<_ACEOF
9821 #line 9821 "configure"
9822 #include "confdefs.h"
9823 #include <pthread.h>
9825 if { (eval echo "$as_me:9825: \"$ac_cpp conftest.$ac_ext\"") >&5
9826 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9828 egrep -v '^ *\+' conftest.er1 >conftest.err
9830 cat conftest.err >&5
9831 echo "$as_me:9831: \$? = $ac_status" >&5
9832 (exit $ac_status); } >/dev/null; then
9833 if test -s conftest.err; then
9834 ac_cpp_err=$ac_c_preproc_warn_flag
9841 if test -z "$ac_cpp_err"; then
9842 ac_cv_header_pthread_h=yes
9844 echo "$as_me: failed program was:" >&5
9845 cat conftest.$ac_ext >&5
9846 ac_cv_header_pthread_h=no
9848 rm -f conftest.err conftest.$ac_ext
9850 echo "$as_me:9850: result: $ac_cv_header_pthread_h" >&5
9851 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
9852 if test $ac_cv_header_pthread_h = yes; then
9854 cat >>confdefs.h <<\EOF
9855 #define HAVE_PTHREADS_H 1
9858 for cf_lib_pthread in pthread c_r
9860 echo "$as_me:9860: checking if we can link with the $cf_lib_pthread library" >&5
9861 echo $ECHO_N "checking if we can link with the $cf_lib_pthread library... $ECHO_C" >&6
9862 cf_save_LIBS="$LIBS"
9864 cf_add_libs="-l$cf_lib_pthread"
9865 # Filter out duplicates - this happens with badly-designed ".pc" files...
9866 for cf_add_1lib in $LIBS
9868 for cf_add_2lib in $cf_add_libs
9870 if test "x$cf_add_1lib" = "x$cf_add_2lib"
9876 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
9880 cat >conftest.$ac_ext <<_ACEOF
9881 #line 9881 "configure"
9882 #include "confdefs.h"
9884 #include <pthread.h>
9890 int rc = pthread_create(0,0,0,0);
9891 int r2 = pthread_mutexattr_settype(0, 0);
9897 rm -f conftest.$ac_objext conftest$ac_exeext
9898 if { (eval echo "$as_me:9898: \"$ac_link\"") >&5
9899 (eval $ac_link) 2>&5
9901 echo "$as_me:9901: \$? = $ac_status" >&5
9902 (exit $ac_status); } &&
9903 { ac_try='test -s conftest$ac_exeext'
9904 { (eval echo "$as_me:9904: \"$ac_try\"") >&5
9907 echo "$as_me:9907: \$? = $ac_status" >&5
9908 (exit $ac_status); }; }; then
9911 echo "$as_me: failed program was:" >&5
9912 cat conftest.$ac_ext >&5
9915 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9916 LIBS="$cf_save_LIBS"
9917 echo "$as_me:9917: result: $with_pthread" >&5
9918 echo "${ECHO_T}$with_pthread" >&6
9919 test "$with_pthread" = yes && break
9922 if test "$with_pthread" = yes ; then
9924 cf_add_libs="-l$cf_lib_pthread"
9925 # Filter out duplicates - this happens with badly-designed ".pc" files...
9926 for cf_add_1lib in $LIBS
9928 for cf_add_2lib in $cf_add_libs
9930 if test "x$cf_add_1lib" = "x$cf_add_2lib"
9936 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
9940 cat >>confdefs.h <<\EOF
9941 #define HAVE_LIBPTHREADS 1
9945 { { echo "$as_me:9945: error: Cannot link with pthread library" >&5
9946 echo "$as_me: error: Cannot link with pthread library" >&2;}
9947 { (exit 1); exit 1; }; }
9954 echo "$as_me:9954: checking if you want to use weak-symbols for pthreads" >&5
9955 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
9957 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
9958 if test "${enable_weak_symbols+set}" = set; then
9959 enableval="$enable_weak_symbols"
9960 use_weak_symbols=$withval
9964 echo "$as_me:9964: result: $use_weak_symbols" >&5
9965 echo "${ECHO_T}$use_weak_symbols" >&6
9966 if test "$use_weak_symbols" = yes ; then
9968 echo "$as_me:9968: checking if $CC supports weak symbols" >&5
9969 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
9970 if test "${cf_cv_weak_symbols+set}" = set; then
9971 echo $ECHO_N "(cached) $ECHO_C" >&6
9974 cat >conftest.$ac_ext <<_ACEOF
9975 #line 9975 "configure"
9976 #include "confdefs.h"
9983 #if defined(__GNUC__)
9984 # if defined __USE_ISOC99
9985 # define _cat_pragma(exp) _Pragma(#exp)
9986 # define _weak_pragma(exp) _cat_pragma(weak name)
9988 # define _weak_pragma(exp)
9990 # define _declare(name) __extension__ extern __typeof__(name) name
9991 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
10000 rm -f conftest.$ac_objext
10001 if { (eval echo "$as_me:10001: \"$ac_compile\"") >&5
10002 (eval $ac_compile) 2>&5
10004 echo "$as_me:10004: \$? = $ac_status" >&5
10005 (exit $ac_status); } &&
10006 { ac_try='test -s conftest.$ac_objext'
10007 { (eval echo "$as_me:10007: \"$ac_try\"") >&5
10008 (eval $ac_try) 2>&5
10010 echo "$as_me:10010: \$? = $ac_status" >&5
10011 (exit $ac_status); }; }; then
10012 cf_cv_weak_symbols=yes
10014 echo "$as_me: failed program was:" >&5
10015 cat conftest.$ac_ext >&5
10016 cf_cv_weak_symbols=no
10018 rm -f conftest.$ac_objext conftest.$ac_ext
10021 echo "$as_me:10021: result: $cf_cv_weak_symbols" >&5
10022 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
10025 cf_cv_weak_symbols=no
10028 if test $cf_cv_weak_symbols = yes ; then
10030 cat >>confdefs.h <<\EOF
10031 #define USE_WEAK_SYMBOLS 1
10037 if test "$with_pthread" = "yes" ; then
10039 cat >>confdefs.h <<\EOF
10040 #define USE_PTHREADS 1
10043 enable_reentrant=yes
10044 if test $cf_cv_weak_symbols = yes ; then
10049 # OpenSUSE is installing ncurses6, using reentrant option.
10050 echo "$as_me:10050: checking for _nc_TABSIZE" >&5
10051 echo $ECHO_N "checking for _nc_TABSIZE... $ECHO_C" >&6
10052 if test "${ac_cv_func__nc_TABSIZE+set}" = set; then
10053 echo $ECHO_N "(cached) $ECHO_C" >&6
10055 cat >conftest.$ac_ext <<_ACEOF
10056 #line 10056 "configure"
10057 #include "confdefs.h"
10058 /* System header to define __stub macros and hopefully few prototypes,
10059 which can conflict with char _nc_TABSIZE (); below. */
10060 #include <assert.h>
10061 /* Override any gcc2 internal prototype to avoid an error. */
10065 /* We use char because int might match the return type of a gcc2
10066 builtin and then its argument prototype would still apply. */
10067 char _nc_TABSIZE ();
10073 /* The GNU C library defines this for functions which it implements
10074 to always fail with ENOSYS. Some functions are actually named
10075 something starting with __ and the normal name is an alias. */
10076 #if defined (__stub__nc_TABSIZE) || defined (__stub____nc_TABSIZE)
10079 f = _nc_TABSIZE; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
10086 rm -f conftest.$ac_objext conftest$ac_exeext
10087 if { (eval echo "$as_me:10087: \"$ac_link\"") >&5
10088 (eval $ac_link) 2>&5
10090 echo "$as_me:10090: \$? = $ac_status" >&5
10091 (exit $ac_status); } &&
10092 { ac_try='test -s conftest$ac_exeext'
10093 { (eval echo "$as_me:10093: \"$ac_try\"") >&5
10094 (eval $ac_try) 2>&5
10096 echo "$as_me:10096: \$? = $ac_status" >&5
10097 (exit $ac_status); }; }; then
10098 ac_cv_func__nc_TABSIZE=yes
10100 echo "$as_me: failed program was:" >&5
10101 cat conftest.$ac_ext >&5
10102 ac_cv_func__nc_TABSIZE=no
10104 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10106 echo "$as_me:10106: result: $ac_cv_func__nc_TABSIZE" >&5
10107 echo "${ECHO_T}$ac_cv_func__nc_TABSIZE" >&6
10108 if test $ac_cv_func__nc_TABSIZE = yes; then
10109 assume_reentrant=yes
10111 assume_reentrant=no
10114 # Reentrant code has to be opaque; there's little advantage to making ncurses
10115 # opaque outside of that, so there is no --enable-opaque option. We can use
10116 # this option without --with-pthreads, but this will be always set for
10118 echo "$as_me:10118: checking if you want experimental reentrant code" >&5
10119 echo $ECHO_N "checking if you want experimental reentrant code... $ECHO_C" >&6
10121 # Check whether --enable-reentrant or --disable-reentrant was given.
10122 if test "${enable_reentrant+set}" = set; then
10123 enableval="$enable_reentrant"
10124 with_reentrant=$enableval
10126 with_reentrant=$assume_reentrant
10128 echo "$as_me:10128: result: $with_reentrant" >&5
10129 echo "${ECHO_T}$with_reentrant" >&6
10130 if test "$with_reentrant" = yes ; then
10131 cf_cv_enable_reentrant=1
10132 if test $cf_cv_weak_symbols = yes ; then
10134 # remove pthread library from $LIBS
10135 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
10137 elif test "$assume_reentrant" = no ; then
10138 LIB_SUFFIX="t${LIB_SUFFIX}"
10141 cat >>confdefs.h <<\EOF
10142 #define USE_REENTRANT 1
10146 cf_cv_enable_reentrant=0
10149 ### Allow using a different wrap-prefix
10150 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
10151 echo "$as_me:10151: checking for prefix used to wrap public variables" >&5
10152 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
10154 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
10155 if test "${with_wrap_prefix+set}" = set; then
10156 withval="$with_wrap_prefix"
10157 NCURSES_WRAP_PREFIX=$withval
10159 NCURSES_WRAP_PREFIX=_nc_
10161 echo "$as_me:10161: result: $NCURSES_WRAP_PREFIX" >&5
10162 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
10164 NCURSES_WRAP_PREFIX=_nc_
10167 cat >>confdefs.h <<EOF
10168 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
10171 ###############################################################################
10173 ### use option --disable-echo to suppress full display compiling commands
10175 echo "$as_me:10175: checking if you want to see long compiling messages" >&5
10176 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
10178 # Check whether --enable-echo or --disable-echo was given.
10179 if test "${enable_echo+set}" = set; then
10180 enableval="$enable_echo"
10181 test "$enableval" != no && enableval=yes
10182 if test "$enableval" != "yes" ; then
10185 ECHO_LD='@echo linking $@;'
10186 RULE_CC='@echo compiling $<'
10187 SHOW_CC='@echo compiling $@'
10209 echo "$as_me:10209: result: $enableval" >&5
10210 echo "${ECHO_T}$enableval" >&6
10212 ### use option --enable-warnings to turn on all gcc warnings
10213 echo "$as_me:10213: checking if you want to see compiler warnings" >&5
10214 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
10216 # Check whether --enable-warnings or --disable-warnings was given.
10217 if test "${enable_warnings+set}" = set; then
10218 enableval="$enable_warnings"
10219 with_warnings=$enableval
10221 echo "$as_me:10221: result: $with_warnings" >&5
10222 echo "${ECHO_T}$with_warnings" >&6
10224 if test "x$with_warnings" = "xyes"; then
10226 ADAFLAGS="$ADAFLAGS -gnatg"
10230 if test "$GCC" = yes ; then
10233 echo "$as_me:10233: checking if this is really Intel C compiler" >&5
10234 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
10235 cf_save_CFLAGS="$CFLAGS"
10236 CFLAGS="$CFLAGS -no-gcc"
10237 cat >conftest.$ac_ext <<_ACEOF
10238 #line 10238 "configure"
10239 #include "confdefs.h"
10245 #ifdef __INTEL_COMPILER
10254 rm -f conftest.$ac_objext
10255 if { (eval echo "$as_me:10255: \"$ac_compile\"") >&5
10256 (eval $ac_compile) 2>&5
10258 echo "$as_me:10258: \$? = $ac_status" >&5
10259 (exit $ac_status); } &&
10260 { ac_try='test -s conftest.$ac_objext'
10261 { (eval echo "$as_me:10261: \"$ac_try\"") >&5
10262 (eval $ac_try) 2>&5
10264 echo "$as_me:10264: \$? = $ac_status" >&5
10265 (exit $ac_status); }; }; then
10267 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
10270 echo "$as_me: failed program was:" >&5
10271 cat conftest.$ac_ext >&5
10273 rm -f conftest.$ac_objext conftest.$ac_ext
10274 CFLAGS="$cf_save_CFLAGS"
10275 echo "$as_me:10275: result: $INTEL_COMPILER" >&5
10276 echo "${ECHO_T}$INTEL_COMPILER" >&6
10283 if test "$GCC" = yes ; then
10284 echo "$as_me:10284: checking if this is really Clang C compiler" >&5
10285 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
10286 cf_save_CFLAGS="$CFLAGS"
10287 CFLAGS="$CFLAGS -Qunused-arguments"
10288 cat >conftest.$ac_ext <<_ACEOF
10289 #line 10289 "configure"
10290 #include "confdefs.h"
10305 rm -f conftest.$ac_objext
10306 if { (eval echo "$as_me:10306: \"$ac_compile\"") >&5
10307 (eval $ac_compile) 2>&5
10309 echo "$as_me:10309: \$? = $ac_status" >&5
10310 (exit $ac_status); } &&
10311 { ac_try='test -s conftest.$ac_objext'
10312 { (eval echo "$as_me:10312: \"$ac_try\"") >&5
10313 (eval $ac_try) 2>&5
10315 echo "$as_me:10315: \$? = $ac_status" >&5
10316 (exit $ac_status); }; }; then
10318 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
10321 echo "$as_me: failed program was:" >&5
10322 cat conftest.$ac_ext >&5
10324 rm -f conftest.$ac_objext conftest.$ac_ext
10325 CFLAGS="$cf_save_CFLAGS"
10326 echo "$as_me:10326: result: $CLANG_COMPILER" >&5
10327 echo "${ECHO_T}$CLANG_COMPILER" >&6
10330 cat > conftest.$ac_ext <<EOF
10331 #line 10331 "${as_me:-configure}"
10332 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
10335 if test "$INTEL_COMPILER" = yes
10337 # The "-wdXXX" options suppress warnings:
10338 # remark #1419: external declaration in primary source file
10339 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
10340 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
10341 # remark #193: zero used for undefined preprocessing identifier
10342 # remark #593: variable "curs_sb_left_arrow" was set but never used
10343 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
10344 # remark #869: parameter "tw" was never referenced
10345 # remark #981: operands are evaluated in unspecified order
10346 # warning #279: controlling expression is constant
10348 { echo "$as_me:10348: checking for $CC warning options..." >&5
10349 echo "$as_me: checking for $CC warning options..." >&6;}
10350 cf_save_CFLAGS="$CFLAGS"
10351 EXTRA_CFLAGS="-Wall"
10363 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
10364 if { (eval echo "$as_me:10364: \"$ac_compile\"") >&5
10365 (eval $ac_compile) 2>&5
10367 echo "$as_me:10367: \$? = $ac_status" >&5
10368 (exit $ac_status); }; then
10369 test -n "$verbose" && echo "$as_me:10369: result: ... -$cf_opt" >&5
10370 echo "${ECHO_T}... -$cf_opt" >&6
10371 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
10374 CFLAGS="$cf_save_CFLAGS"
10376 elif test "$GCC" = yes
10378 { echo "$as_me:10378: checking for $CC warning options..." >&5
10379 echo "$as_me: checking for $CC warning options..." >&6;}
10380 cf_save_CFLAGS="$CFLAGS"
10383 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
10384 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
10385 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
10386 for cf_opt in W Wall \
10387 Wbad-function-cast \
10390 Wdeclaration-after-statement \
10393 Wmissing-declarations \
10394 Wmissing-prototypes \
10398 Wstrict-prototypes \
10399 Wundef $cf_gcc_warnings $cf_warn_CONST Wno-unknown-pragmas Wswitch-enum
10401 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
10402 if { (eval echo "$as_me:10402: \"$ac_compile\"") >&5
10403 (eval $ac_compile) 2>&5
10405 echo "$as_me:10405: \$? = $ac_status" >&5
10406 (exit $ac_status); }; then
10407 test -n "$verbose" && echo "$as_me:10407: result: ... -$cf_opt" >&5
10408 echo "${ECHO_T}... -$cf_opt" >&6
10411 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
10414 case $GCC_VERSION in
10416 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
10418 echo "${as_me:-configure}:10418: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
10424 case $GCC_VERSION in
10426 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
10428 echo "${as_me:-configure}:10428: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
10434 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
10437 CFLAGS="$cf_save_CFLAGS"
10443 if test "$GCC" = yes
10445 cat > conftest.i <<EOF
10447 #define GCC_PRINTF 0
10450 #define GCC_SCANF 0
10452 #ifndef GCC_NORETURN
10453 #define GCC_NORETURN /* nothing */
10456 #define GCC_UNUSED /* nothing */
10459 if test "$GCC" = yes
10461 { echo "$as_me:10461: checking for $CC __attribute__ directives..." >&5
10462 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
10463 cat > conftest.$ac_ext <<EOF
10464 #line 10464 "${as_me:-configure}"
10465 #include "confdefs.h"
10466 #include "conftest.h"
10467 #include "conftest.i"
10469 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
10471 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
10474 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
10476 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
10478 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
10479 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
10480 extern void foo(void) GCC_NORETURN;
10481 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
10483 cf_printf_attribute=no
10484 cf_scanf_attribute=no
10485 for cf_attribute in scanf printf unused noreturn
10488 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
10490 cf_directive="__attribute__(($cf_attribute))"
10491 echo "checking for $CC $cf_directive" 1>&5
10493 case $cf_attribute in
10495 cf_printf_attribute=yes
10496 cat >conftest.h <<EOF
10497 #define GCC_$cf_ATTRIBUTE 1
10501 cf_scanf_attribute=yes
10502 cat >conftest.h <<EOF
10503 #define GCC_$cf_ATTRIBUTE 1
10507 cat >conftest.h <<EOF
10508 #define GCC_$cf_ATTRIBUTE $cf_directive
10513 if { (eval echo "$as_me:10513: \"$ac_compile\"") >&5
10514 (eval $ac_compile) 2>&5
10516 echo "$as_me:10516: \$? = $ac_status" >&5
10517 (exit $ac_status); }; then
10518 test -n "$verbose" && echo "$as_me:10518: result: ... $cf_attribute" >&5
10519 echo "${ECHO_T}... $cf_attribute" >&6
10520 cat conftest.h >>confdefs.h
10521 case $cf_attribute in
10524 cat >>confdefs.h <<EOF
10525 #define GCC_NORETURN $cf_directive
10530 cf_value='/* nothing */'
10531 if test "$cf_printf_attribute" != no ; then
10532 cf_value='__attribute__((format(printf,fmt,var)))'
10534 cat >>confdefs.h <<\EOF
10535 #define GCC_PRINTF 1
10540 cat >>confdefs.h <<EOF
10541 #define GCC_PRINTFLIKE(fmt,var) $cf_value
10546 cf_value='/* nothing */'
10547 if test "$cf_scanf_attribute" != no ; then
10548 cf_value='__attribute__((format(scanf,fmt,var)))'
10550 cat >>confdefs.h <<\EOF
10551 #define GCC_SCANF 1
10556 cat >>confdefs.h <<EOF
10557 #define GCC_SCANFLIKE(fmt,var) $cf_value
10563 cat >>confdefs.h <<EOF
10564 #define GCC_UNUSED $cf_directive
10572 fgrep define conftest.i >>confdefs.h
10577 ### use option --enable-assertions to turn on generation of assertion code
10578 echo "$as_me:10578: checking if you want to enable runtime assertions" >&5
10579 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
10581 # Check whether --enable-assertions or --disable-assertions was given.
10582 if test "${enable_assertions+set}" = set; then
10583 enableval="$enable_assertions"
10584 with_assertions=$enableval
10588 echo "$as_me:10588: result: $with_assertions" >&5
10589 echo "${ECHO_T}$with_assertions" >&6
10592 if test "$with_assertions" = no
10594 CPPFLAGS="$CPPFLAGS -DNDEBUG"
10597 ADAFLAGS="$ADAFLAGS -gnata"
10602 ### use option --disable-leaks to suppress "permanent" leaks, for testing
10604 cat >>confdefs.h <<\EOF
10605 #define HAVE_NC_ALLOC_H 1
10608 ### use option --enable-expanded to generate certain macros as functions
10610 # Check whether --enable-expanded or --disable-expanded was given.
10611 if test "${enable_expanded+set}" = set; then
10612 enableval="$enable_expanded"
10613 test "$enableval" = yes &&
10614 cat >>confdefs.h <<\EOF
10615 #define NCURSES_EXPANDED 1
10620 ### use option --disable-macros to suppress macros in favor of functions
10622 # Check whether --enable-macros or --disable-macros was given.
10623 if test "${enable_macros+set}" = set; then
10624 enableval="$enable_macros"
10625 test "$enableval" = no &&
10626 cat >>confdefs.h <<\EOF
10627 #define NCURSES_NOMACROS 1
10632 # Normally we only add trace() to the debug-library. Allow this to be
10633 # extended to all models of the ncurses library:
10635 case "$CFLAGS $CPPFLAGS" in
10641 echo "$as_me:10641: checking whether to add trace feature to all models" >&5
10642 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
10644 # Check whether --with-trace or --without-trace was given.
10645 if test "${with_trace+set}" = set; then
10646 withval="$with_trace"
10647 cf_with_trace=$withval
10649 cf_with_trace=$cf_all_traces
10651 echo "$as_me:10651: result: $cf_with_trace" >&5
10652 echo "${ECHO_T}$cf_with_trace" >&6
10654 if test "$cf_with_trace" = yes ; then
10660 cf_new_extra_cppflags=
10662 for cf_add_cflags in -DTRACE
10664 case $cf_fix_cppflags in
10666 case $cf_add_cflags in
10667 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10668 case $cf_add_cflags in
10670 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10672 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10673 && test -z "${cf_tst_cflags}" \
10674 && cf_fix_cppflags=yes
10676 if test $cf_fix_cppflags = yes ; then
10677 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10679 elif test "${cf_tst_cflags}" = "\"'" ; then
10680 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10685 case "$CPPFLAGS" in
10689 case $cf_add_cflags in
10691 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10693 CPPFLAGS=`echo "$CPPFLAGS" | \
10694 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10695 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10699 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10704 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10709 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10711 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10713 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10714 && test -z "${cf_tst_cflags}" \
10715 && cf_fix_cppflags=no
10720 if test -n "$cf_new_cflags" ; then
10722 CFLAGS="$CFLAGS $cf_new_cflags"
10725 if test -n "$cf_new_cppflags" ; then
10727 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10730 if test -n "$cf_new_extra_cppflags" ; then
10732 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10739 echo "$as_me:10739: checking if we want to use GNAT projects" >&5
10740 echo $ECHO_N "checking if we want to use GNAT projects... $ECHO_C" >&6
10742 # Check whether --enable-gnat-projects or --disable-gnat-projects was given.
10743 if test "${enable_gnat_projects+set}" = set; then
10744 enableval="$enable_gnat_projects"
10745 test "$enableval" != no && enableval=yes
10746 if test "$enableval" != "yes" ; then
10747 enable_gnat_projects=no
10749 enable_gnat_projects=yes
10753 enable_gnat_projects=yes
10756 echo "$as_me:10756: result: $enable_gnat_projects" >&5
10757 echo "${ECHO_T}$enable_gnat_projects" >&6
10759 ### Checks for libraries.
10760 case $cf_cv_system_name in
10764 echo "$as_me:10764: checking for gettimeofday" >&5
10765 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
10766 if test "${ac_cv_func_gettimeofday+set}" = set; then
10767 echo $ECHO_N "(cached) $ECHO_C" >&6
10769 cat >conftest.$ac_ext <<_ACEOF
10770 #line 10770 "configure"
10771 #include "confdefs.h"
10772 /* System header to define __stub macros and hopefully few prototypes,
10773 which can conflict with char gettimeofday (); below. */
10774 #include <assert.h>
10775 /* Override any gcc2 internal prototype to avoid an error. */
10779 /* We use char because int might match the return type of a gcc2
10780 builtin and then its argument prototype would still apply. */
10781 char gettimeofday ();
10787 /* The GNU C library defines this for functions which it implements
10788 to always fail with ENOSYS. Some functions are actually named
10789 something starting with __ and the normal name is an alias. */
10790 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
10793 f = gettimeofday; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
10800 rm -f conftest.$ac_objext conftest$ac_exeext
10801 if { (eval echo "$as_me:10801: \"$ac_link\"") >&5
10802 (eval $ac_link) 2>&5
10804 echo "$as_me:10804: \$? = $ac_status" >&5
10805 (exit $ac_status); } &&
10806 { ac_try='test -s conftest$ac_exeext'
10807 { (eval echo "$as_me:10807: \"$ac_try\"") >&5
10808 (eval $ac_try) 2>&5
10810 echo "$as_me:10810: \$? = $ac_status" >&5
10811 (exit $ac_status); }; }; then
10812 ac_cv_func_gettimeofday=yes
10814 echo "$as_me: failed program was:" >&5
10815 cat conftest.$ac_ext >&5
10816 ac_cv_func_gettimeofday=no
10818 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10820 echo "$as_me:10820: result: $ac_cv_func_gettimeofday" >&5
10821 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
10822 if test $ac_cv_func_gettimeofday = yes; then
10823 cat >>confdefs.h <<\EOF
10824 #define HAVE_GETTIMEOFDAY 1
10829 echo "$as_me:10829: checking for gettimeofday in -lbsd" >&5
10830 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
10831 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
10832 echo $ECHO_N "(cached) $ECHO_C" >&6
10834 ac_check_lib_save_LIBS=$LIBS
10836 cat >conftest.$ac_ext <<_ACEOF
10837 #line 10837 "configure"
10838 #include "confdefs.h"
10840 /* Override any gcc2 internal prototype to avoid an error. */
10844 /* We use char because int might match the return type of a gcc2
10845 builtin and then its argument prototype would still apply. */
10846 char gettimeofday ();
10855 rm -f conftest.$ac_objext conftest$ac_exeext
10856 if { (eval echo "$as_me:10856: \"$ac_link\"") >&5
10857 (eval $ac_link) 2>&5
10859 echo "$as_me:10859: \$? = $ac_status" >&5
10860 (exit $ac_status); } &&
10861 { ac_try='test -s conftest$ac_exeext'
10862 { (eval echo "$as_me:10862: \"$ac_try\"") >&5
10863 (eval $ac_try) 2>&5
10865 echo "$as_me:10865: \$? = $ac_status" >&5
10866 (exit $ac_status); }; }; then
10867 ac_cv_lib_bsd_gettimeofday=yes
10869 echo "$as_me: failed program was:" >&5
10870 cat conftest.$ac_ext >&5
10871 ac_cv_lib_bsd_gettimeofday=no
10873 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10874 LIBS=$ac_check_lib_save_LIBS
10876 echo "$as_me:10876: result: $ac_cv_lib_bsd_gettimeofday" >&5
10877 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
10878 if test $ac_cv_lib_bsd_gettimeofday = yes; then
10880 cat >>confdefs.h <<\EOF
10881 #define HAVE_GETTIMEOFDAY 1
10891 ### Checks for header files.
10892 echo "$as_me:10892: checking for ANSI C header files" >&5
10893 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10894 if test "${ac_cv_header_stdc+set}" = set; then
10895 echo $ECHO_N "(cached) $ECHO_C" >&6
10897 cat >conftest.$ac_ext <<_ACEOF
10898 #line 10898 "configure"
10899 #include "confdefs.h"
10900 #include <stdlib.h>
10901 #include <stdarg.h>
10902 #include <string.h>
10906 if { (eval echo "$as_me:10906: \"$ac_cpp conftest.$ac_ext\"") >&5
10907 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10909 egrep -v '^ *\+' conftest.er1 >conftest.err
10911 cat conftest.err >&5
10912 echo "$as_me:10912: \$? = $ac_status" >&5
10913 (exit $ac_status); } >/dev/null; then
10914 if test -s conftest.err; then
10915 ac_cpp_err=$ac_c_preproc_warn_flag
10922 if test -z "$ac_cpp_err"; then
10923 ac_cv_header_stdc=yes
10925 echo "$as_me: failed program was:" >&5
10926 cat conftest.$ac_ext >&5
10927 ac_cv_header_stdc=no
10929 rm -f conftest.err conftest.$ac_ext
10931 if test $ac_cv_header_stdc = yes; then
10932 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10933 cat >conftest.$ac_ext <<_ACEOF
10934 #line 10934 "configure"
10935 #include "confdefs.h"
10936 #include <string.h>
10939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10940 egrep "memchr" >/dev/null 2>&1; then
10943 ac_cv_header_stdc=no
10949 if test $ac_cv_header_stdc = yes; then
10950 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10951 cat >conftest.$ac_ext <<_ACEOF
10952 #line 10952 "configure"
10953 #include "confdefs.h"
10954 #include <stdlib.h>
10957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10958 egrep "free" >/dev/null 2>&1; then
10961 ac_cv_header_stdc=no
10967 if test $ac_cv_header_stdc = yes; then
10968 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10969 if test "$cross_compiling" = yes; then
10972 cat >conftest.$ac_ext <<_ACEOF
10973 #line 10973 "configure"
10974 #include "confdefs.h"
10976 #if ((' ' & 0x0FF) == 0x020)
10977 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10978 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10980 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
10981 || ('j' <= (c) && (c) <= 'r') \
10982 || ('s' <= (c) && (c) <= 'z'))
10983 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10986 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10991 for (i = 0; i < 256; i++)
10992 if (XOR (islower (i), ISLOWER (i))
10993 || toupper (i) != TOUPPER (i))
10994 $ac_main_return(2);
10995 $ac_main_return (0);
10998 rm -f conftest$ac_exeext
10999 if { (eval echo "$as_me:10999: \"$ac_link\"") >&5
11000 (eval $ac_link) 2>&5
11002 echo "$as_me:11002: \$? = $ac_status" >&5
11003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11004 { (eval echo "$as_me:11004: \"$ac_try\"") >&5
11005 (eval $ac_try) 2>&5
11007 echo "$as_me:11007: \$? = $ac_status" >&5
11008 (exit $ac_status); }; }; then
11011 echo "$as_me: program exited with status $ac_status" >&5
11012 echo "$as_me: failed program was:" >&5
11013 cat conftest.$ac_ext >&5
11014 ac_cv_header_stdc=no
11016 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11020 echo "$as_me:11020: result: $ac_cv_header_stdc" >&5
11021 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11022 if test $ac_cv_header_stdc = yes; then
11024 cat >>confdefs.h <<\EOF
11025 #define STDC_HEADERS 1
11030 ac_header_dirent=no
11031 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11032 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11033 echo "$as_me:11033: checking for $ac_hdr that defines DIR" >&5
11034 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11035 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11036 echo $ECHO_N "(cached) $ECHO_C" >&6
11038 cat >conftest.$ac_ext <<_ACEOF
11039 #line 11039 "configure"
11040 #include "confdefs.h"
11041 #include <sys/types.h>
11053 rm -f conftest.$ac_objext
11054 if { (eval echo "$as_me:11054: \"$ac_compile\"") >&5
11055 (eval $ac_compile) 2>&5
11057 echo "$as_me:11057: \$? = $ac_status" >&5
11058 (exit $ac_status); } &&
11059 { ac_try='test -s conftest.$ac_objext'
11060 { (eval echo "$as_me:11060: \"$ac_try\"") >&5
11061 (eval $ac_try) 2>&5
11063 echo "$as_me:11063: \$? = $ac_status" >&5
11064 (exit $ac_status); }; }; then
11065 eval "$as_ac_Header=yes"
11067 echo "$as_me: failed program was:" >&5
11068 cat conftest.$ac_ext >&5
11069 eval "$as_ac_Header=no"
11071 rm -f conftest.$ac_objext conftest.$ac_ext
11073 echo "$as_me:11073: result: `eval echo '${'$as_ac_Header'}'`" >&5
11074 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11076 cat >>confdefs.h <<EOF
11077 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11080 ac_header_dirent=$ac_hdr; break
11084 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11085 if test $ac_header_dirent = dirent.h; then
11086 echo "$as_me:11086: checking for opendir in -ldir" >&5
11087 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
11088 if test "${ac_cv_lib_dir_opendir+set}" = set; then
11089 echo $ECHO_N "(cached) $ECHO_C" >&6
11091 ac_check_lib_save_LIBS=$LIBS
11093 cat >conftest.$ac_ext <<_ACEOF
11094 #line 11094 "configure"
11095 #include "confdefs.h"
11097 /* Override any gcc2 internal prototype to avoid an error. */
11101 /* We use char because int might match the return type of a gcc2
11102 builtin and then its argument prototype would still apply. */
11112 rm -f conftest.$ac_objext conftest$ac_exeext
11113 if { (eval echo "$as_me:11113: \"$ac_link\"") >&5
11114 (eval $ac_link) 2>&5
11116 echo "$as_me:11116: \$? = $ac_status" >&5
11117 (exit $ac_status); } &&
11118 { ac_try='test -s conftest$ac_exeext'
11119 { (eval echo "$as_me:11119: \"$ac_try\"") >&5
11120 (eval $ac_try) 2>&5
11122 echo "$as_me:11122: \$? = $ac_status" >&5
11123 (exit $ac_status); }; }; then
11124 ac_cv_lib_dir_opendir=yes
11126 echo "$as_me: failed program was:" >&5
11127 cat conftest.$ac_ext >&5
11128 ac_cv_lib_dir_opendir=no
11130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11131 LIBS=$ac_check_lib_save_LIBS
11133 echo "$as_me:11133: result: $ac_cv_lib_dir_opendir" >&5
11134 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
11135 if test $ac_cv_lib_dir_opendir = yes; then
11140 echo "$as_me:11140: checking for opendir in -lx" >&5
11141 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
11142 if test "${ac_cv_lib_x_opendir+set}" = set; then
11143 echo $ECHO_N "(cached) $ECHO_C" >&6
11145 ac_check_lib_save_LIBS=$LIBS
11147 cat >conftest.$ac_ext <<_ACEOF
11148 #line 11148 "configure"
11149 #include "confdefs.h"
11151 /* Override any gcc2 internal prototype to avoid an error. */
11155 /* We use char because int might match the return type of a gcc2
11156 builtin and then its argument prototype would still apply. */
11166 rm -f conftest.$ac_objext conftest$ac_exeext
11167 if { (eval echo "$as_me:11167: \"$ac_link\"") >&5
11168 (eval $ac_link) 2>&5
11170 echo "$as_me:11170: \$? = $ac_status" >&5
11171 (exit $ac_status); } &&
11172 { ac_try='test -s conftest$ac_exeext'
11173 { (eval echo "$as_me:11173: \"$ac_try\"") >&5
11174 (eval $ac_try) 2>&5
11176 echo "$as_me:11176: \$? = $ac_status" >&5
11177 (exit $ac_status); }; }; then
11178 ac_cv_lib_x_opendir=yes
11180 echo "$as_me: failed program was:" >&5
11181 cat conftest.$ac_ext >&5
11182 ac_cv_lib_x_opendir=no
11184 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11185 LIBS=$ac_check_lib_save_LIBS
11187 echo "$as_me:11187: result: $ac_cv_lib_x_opendir" >&5
11188 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
11189 if test $ac_cv_lib_x_opendir = yes; then
11195 echo "$as_me:11195: checking whether time.h and sys/time.h may both be included" >&5
11196 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11197 if test "${ac_cv_header_time+set}" = set; then
11198 echo $ECHO_N "(cached) $ECHO_C" >&6
11200 cat >conftest.$ac_ext <<_ACEOF
11201 #line 11201 "configure"
11202 #include "confdefs.h"
11203 #include <sys/types.h>
11204 #include <sys/time.h>
11210 if ((struct tm *) 0)
11216 rm -f conftest.$ac_objext
11217 if { (eval echo "$as_me:11217: \"$ac_compile\"") >&5
11218 (eval $ac_compile) 2>&5
11220 echo "$as_me:11220: \$? = $ac_status" >&5
11221 (exit $ac_status); } &&
11222 { ac_try='test -s conftest.$ac_objext'
11223 { (eval echo "$as_me:11223: \"$ac_try\"") >&5
11224 (eval $ac_try) 2>&5
11226 echo "$as_me:11226: \$? = $ac_status" >&5
11227 (exit $ac_status); }; }; then
11228 ac_cv_header_time=yes
11230 echo "$as_me: failed program was:" >&5
11231 cat conftest.$ac_ext >&5
11232 ac_cv_header_time=no
11234 rm -f conftest.$ac_objext conftest.$ac_ext
11236 echo "$as_me:11236: result: $ac_cv_header_time" >&5
11237 echo "${ECHO_T}$ac_cv_header_time" >&6
11238 if test $ac_cv_header_time = yes; then
11240 cat >>confdefs.h <<\EOF
11241 #define TIME_WITH_SYS_TIME 1
11246 ### checks for compiler characteristics
11248 ac_cpp='$CPP $CPPFLAGS'
11249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11252 ac_main_return=return
11254 echo "$as_me:11254: checking for an ANSI C-conforming const" >&5
11255 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11256 if test "${ac_cv_c_const+set}" = set; then
11257 echo $ECHO_N "(cached) $ECHO_C" >&6
11259 cat >conftest.$ac_ext <<_ACEOF
11260 #line 11260 "configure"
11261 #include "confdefs.h"
11266 /* FIXME: Include the comments suggested by Paul. */
11267 #ifndef __cplusplus
11268 /* Ultrix mips cc rejects this. */
11269 typedef int charset[2];
11271 /* SunOS 4.1.1 cc rejects this. */
11272 char const *const *ccp;
11274 /* NEC SVR4.0.2 mips cc rejects this. */
11275 struct point {int x, y;};
11276 static struct point const zero = {0,0};
11277 /* AIX XL C 1.02.0.0 rejects this.
11278 It does not let you subtract one const X* pointer from another in
11279 an arm of an if-expression whose if-part is not a constant
11281 const char *g = "string";
11282 ccp = &g + (g ? g-g : 0);
11283 /* HPUX 7.0 cc rejects these. */
11286 ccp = (char const *const *) p;
11287 { /* SCO 3.2v4 cc rejects this. */
11289 char const *s = 0 ? (char *) 0 : (char const *) 0;
11293 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11294 int x[] = {25, 17};
11295 const int *foo = &x[0];
11298 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11299 typedef const int *iptr;
11303 { /* AIX XL C 1.02.0.0 rejects this saying
11304 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11305 struct s { int j; const int *ap[3]; };
11306 struct s *b; b->j = 5;
11308 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11309 const int foo = 10;
11317 rm -f conftest.$ac_objext
11318 if { (eval echo "$as_me:11318: \"$ac_compile\"") >&5
11319 (eval $ac_compile) 2>&5
11321 echo "$as_me:11321: \$? = $ac_status" >&5
11322 (exit $ac_status); } &&
11323 { ac_try='test -s conftest.$ac_objext'
11324 { (eval echo "$as_me:11324: \"$ac_try\"") >&5
11325 (eval $ac_try) 2>&5
11327 echo "$as_me:11327: \$? = $ac_status" >&5
11328 (exit $ac_status); }; }; then
11331 echo "$as_me: failed program was:" >&5
11332 cat conftest.$ac_ext >&5
11335 rm -f conftest.$ac_objext conftest.$ac_ext
11337 echo "$as_me:11337: result: $ac_cv_c_const" >&5
11338 echo "${ECHO_T}$ac_cv_c_const" >&6
11339 if test $ac_cv_c_const = no; then
11341 cat >>confdefs.h <<\EOF
11347 ### Checks for external-data
11349 echo "$as_me:11349: checking if data-only library module links" >&5
11350 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
11351 if test "${cf_cv_link_dataonly+set}" = set; then
11352 echo $ECHO_N "(cached) $ECHO_C" >&6
11356 cat >conftest.$ac_ext <<EOF
11357 #line 11357 "configure"
11358 int testdata[3] = { 123, 456, 789 };
11360 if { (eval echo "$as_me:11360: \"$ac_compile\"") >&5
11361 (eval $ac_compile) 2>&5
11363 echo "$as_me:11363: \$? = $ac_status" >&5
11364 (exit $ac_status); } ; then
11365 mv conftest.o data.o && \
11366 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
11368 rm -f conftest.$ac_ext data.o
11369 cat >conftest.$ac_ext <<EOF
11370 #line 11370 "configure"
11374 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
11376 extern int testdata[3];
11377 return testdata[0] == 123
11378 && testdata[1] == 456
11379 && testdata[2] == 789;
11383 if { (eval echo "$as_me:11383: \"$ac_compile\"") >&5
11384 (eval $ac_compile) 2>&5
11386 echo "$as_me:11386: \$? = $ac_status" >&5
11387 (exit $ac_status); }; then
11388 mv conftest.o func.o && \
11389 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
11391 rm -f conftest.$ac_ext func.o
11392 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
11393 cf_saveLIBS="$LIBS"
11394 LIBS="conftest.a $LIBS"
11395 if test "$cross_compiling" = yes; then
11396 cf_cv_link_dataonly=unknown
11398 cat >conftest.$ac_ext <<_ACEOF
11399 #line 11399 "configure"
11400 #include "confdefs.h"
11404 extern int testfunc();
11405 ${cf_cv_main_return:-return} (!testfunc());
11409 rm -f conftest$ac_exeext
11410 if { (eval echo "$as_me:11410: \"$ac_link\"") >&5
11411 (eval $ac_link) 2>&5
11413 echo "$as_me:11413: \$? = $ac_status" >&5
11414 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11415 { (eval echo "$as_me:11415: \"$ac_try\"") >&5
11416 (eval $ac_try) 2>&5
11418 echo "$as_me:11418: \$? = $ac_status" >&5
11419 (exit $ac_status); }; }; then
11420 cf_cv_link_dataonly=yes
11422 echo "$as_me: program exited with status $ac_status" >&5
11423 echo "$as_me: failed program was:" >&5
11424 cat conftest.$ac_ext >&5
11425 cf_cv_link_dataonly=no
11427 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11429 LIBS="$cf_saveLIBS"
11433 echo "$as_me:11433: result: $cf_cv_link_dataonly" >&5
11434 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
11436 if test "$cf_cv_link_dataonly" = no ; then
11438 cat >>confdefs.h <<\EOF
11439 #define BROKEN_LINKER 1
11445 ### Checks for library functions.
11447 echo "$as_me:11447: checking for working mkstemp" >&5
11448 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
11449 if test "${cf_cv_func_mkstemp+set}" = set; then
11450 echo $ECHO_N "(cached) $ECHO_C" >&6
11454 if test "$cross_compiling" = yes; then
11455 cf_cv_func_mkstemp=maybe
11457 cat >conftest.$ac_ext <<_ACEOF
11458 #line 11458 "configure"
11459 #include "confdefs.h"
11461 #include <sys/types.h>
11462 #include <stdlib.h>
11464 #include <string.h>
11465 #include <sys/stat.h>
11468 char *tmpl = "conftestXXXXXX";
11476 for (n = 0; n < 2; ++n) {
11477 strcpy(name[n], tmpl);
11478 if ((fd = mkstemp(name[n])) >= 0) {
11479 if (!strcmp(name[n], tmpl)
11480 || stat(name[n], &sb) != 0
11481 || (sb.st_mode & S_IFMT) != S_IFREG
11482 || (sb.st_mode & 077) != 0) {
11489 && !strcmp(name[0], name[1]))
11491 ${cf_cv_main_return:-return}(result);
11495 rm -f conftest$ac_exeext
11496 if { (eval echo "$as_me:11496: \"$ac_link\"") >&5
11497 (eval $ac_link) 2>&5
11499 echo "$as_me:11499: \$? = $ac_status" >&5
11500 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11501 { (eval echo "$as_me:11501: \"$ac_try\"") >&5
11502 (eval $ac_try) 2>&5
11504 echo "$as_me:11504: \$? = $ac_status" >&5
11505 (exit $ac_status); }; }; then
11506 cf_cv_func_mkstemp=yes
11509 echo "$as_me: program exited with status $ac_status" >&5
11510 echo "$as_me: failed program was:" >&5
11511 cat conftest.$ac_ext >&5
11512 cf_cv_func_mkstemp=no
11515 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11519 echo "$as_me:11519: result: $cf_cv_func_mkstemp" >&5
11520 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
11521 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
11522 echo "$as_me:11522: checking for mkstemp" >&5
11523 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
11524 if test "${ac_cv_func_mkstemp+set}" = set; then
11525 echo $ECHO_N "(cached) $ECHO_C" >&6
11527 cat >conftest.$ac_ext <<_ACEOF
11528 #line 11528 "configure"
11529 #include "confdefs.h"
11530 /* System header to define __stub macros and hopefully few prototypes,
11531 which can conflict with char mkstemp (); below. */
11532 #include <assert.h>
11533 /* Override any gcc2 internal prototype to avoid an error. */
11537 /* We use char because int might match the return type of a gcc2
11538 builtin and then its argument prototype would still apply. */
11545 /* The GNU C library defines this for functions which it implements
11546 to always fail with ENOSYS. Some functions are actually named
11547 something starting with __ and the normal name is an alias. */
11548 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
11551 f = mkstemp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
11558 rm -f conftest.$ac_objext conftest$ac_exeext
11559 if { (eval echo "$as_me:11559: \"$ac_link\"") >&5
11560 (eval $ac_link) 2>&5
11562 echo "$as_me:11562: \$? = $ac_status" >&5
11563 (exit $ac_status); } &&
11564 { ac_try='test -s conftest$ac_exeext'
11565 { (eval echo "$as_me:11565: \"$ac_try\"") >&5
11566 (eval $ac_try) 2>&5
11568 echo "$as_me:11568: \$? = $ac_status" >&5
11569 (exit $ac_status); }; }; then
11570 ac_cv_func_mkstemp=yes
11572 echo "$as_me: failed program was:" >&5
11573 cat conftest.$ac_ext >&5
11574 ac_cv_func_mkstemp=no
11576 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11578 echo "$as_me:11578: result: $ac_cv_func_mkstemp" >&5
11579 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
11582 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
11584 cat >>confdefs.h <<\EOF
11585 #define HAVE_MKSTEMP 1
11590 if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
11591 CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
11592 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
11596 if test "$cf_with_ada" != "no" ; then
11598 cf_ada_make=gnatmake
11599 # Extract the first word of "$cf_ada_make", so it can be a program name with args.
11600 set dummy $cf_ada_make; ac_word=$2
11601 echo "$as_me:11601: checking for $ac_word" >&5
11602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11603 if test "${ac_cv_prog_gnat_exists+set}" = set; then
11604 echo $ECHO_N "(cached) $ECHO_C" >&6
11606 if test -n "$gnat_exists"; then
11607 ac_cv_prog_gnat_exists="$gnat_exists" # Let the user override the test.
11609 ac_save_IFS=$IFS; IFS=$ac_path_separator
11611 for ac_dir in $ac_dummy; do
11613 test -z "$ac_dir" && ac_dir=.
11614 $as_executable_p "$ac_dir/$ac_word" || continue
11615 ac_cv_prog_gnat_exists="yes"
11616 echo "$as_me:11616: found $ac_dir/$ac_word" >&5
11620 test -z "$ac_cv_prog_gnat_exists" && ac_cv_prog_gnat_exists="no"
11623 gnat_exists=$ac_cv_prog_gnat_exists
11624 if test -n "$gnat_exists"; then
11625 echo "$as_me:11625: result: $gnat_exists" >&5
11626 echo "${ECHO_T}$gnat_exists" >&6
11628 echo "$as_me:11628: result: no" >&5
11629 echo "${ECHO_T}no" >&6
11632 if test "$ac_cv_prog_gnat_exists" = no; then
11634 cf_cv_prog_gnat_correct=no
11637 echo "$as_me:11637: checking for gnat version" >&5
11638 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
11639 cf_gnat_version=`${cf_ada_make:-gnatmake} -v 2>&1 | \
11640 grep '[0-9].[0-9][0-9]*' |\
11641 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
11642 echo "$as_me:11642: result: $cf_gnat_version" >&5
11643 echo "${ECHO_T}$cf_gnat_version" >&6
11645 case $cf_gnat_version in
11646 (3.1[1-9]*|3.[2-9]*|[4-9].*|20[0-9][0-9])
11647 cf_cv_prog_gnat_correct=yes
11650 { echo "$as_me:11650: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
11651 echo "$as_me: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
11652 cf_cv_prog_gnat_correct=no
11656 # Extract the first word of "m4", so it can be a program name with args.
11657 set dummy m4; ac_word=$2
11658 echo "$as_me:11658: checking for $ac_word" >&5
11659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11660 if test "${ac_cv_prog_M4_exists+set}" = set; then
11661 echo $ECHO_N "(cached) $ECHO_C" >&6
11663 if test -n "$M4_exists"; then
11664 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
11666 ac_save_IFS=$IFS; IFS=$ac_path_separator
11668 for ac_dir in $ac_dummy; do
11670 test -z "$ac_dir" && ac_dir=.
11671 $as_executable_p "$ac_dir/$ac_word" || continue
11672 ac_cv_prog_M4_exists="yes"
11673 echo "$as_me:11673: found $ac_dir/$ac_word" >&5
11677 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
11680 M4_exists=$ac_cv_prog_M4_exists
11681 if test -n "$M4_exists"; then
11682 echo "$as_me:11682: result: $M4_exists" >&5
11683 echo "${ECHO_T}$M4_exists" >&6
11685 echo "$as_me:11685: result: no" >&5
11686 echo "${ECHO_T}no" >&6
11689 if test "$ac_cv_prog_M4_exists" = no; then
11690 cf_cv_prog_gnat_correct=no
11691 echo Ada95 binding required program m4 not found. Ada95 binding disabled.
11693 if test "$cf_cv_prog_gnat_correct" = yes; then
11694 echo "$as_me:11694: checking if GNAT works" >&5
11695 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
11697 rm -rf conftest* *~conftest*
11698 cat >>conftest.ads <<CF_EOF
11699 procedure conftest;
11701 cat >>conftest.adb <<CF_EOF
11704 procedure conftest is
11706 Text_IO.Put ("Hello World");
11708 GNAT.OS_Lib.OS_Exit (0);
11711 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
11712 if ( ./conftest 1>&5 2>&1 ) ; then
11713 cf_cv_prog_gnat_correct=yes
11715 cf_cv_prog_gnat_correct=no
11718 cf_cv_prog_gnat_correct=no
11720 rm -rf conftest* *~conftest*
11722 echo "$as_me:11722: result: $cf_cv_prog_gnat_correct" >&5
11723 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
11727 if test "$cf_cv_prog_gnat_correct" = yes; then
11729 echo "$as_me:11729: checking optimization options for ADAFLAGS" >&5
11730 echo $ECHO_N "checking optimization options for ADAFLAGS... $ECHO_C" >&6
11734 ADAFLAGS="$ADAFLAGS -g"
11740 cf_O_flag=`echo "$CFLAGS" |sed -e 's/^.*-O/-O/' -e 's/[ ].*//'`
11742 ADAFLAGS="$ADAFLAGS $cf_O_flag"
11746 echo "$as_me:11746: result: $ADAFLAGS" >&5
11747 echo "${ECHO_T}$ADAFLAGS" >&6
11749 echo "$as_me:11749: checking if GNATPREP supports -T option" >&5
11750 echo $ECHO_N "checking if GNATPREP supports -T option... $ECHO_C" >&6
11751 if test "${cf_cv_gnatprep_opt_t+set}" = set; then
11752 echo $ECHO_N "(cached) $ECHO_C" >&6
11755 cf_cv_gnatprep_opt_t=no
11756 gnatprep -T 2>/dev/null >/dev/null && cf_cv_gnatprep_opt_t=yes
11759 echo "$as_me:11759: result: $cf_cv_gnatprep_opt_t" >&5
11760 echo "${ECHO_T}$cf_cv_gnatprep_opt_t" >&6
11761 test "$cf_cv_gnatprep_opt_t" = yes && GNATPREP_OPTS="-T $GNATPREP_OPTS"
11763 echo "$as_me:11763: checking if GNAT supports generics" >&5
11764 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
11765 case $cf_gnat_version in
11767 cf_gnat_generics=yes
11770 cf_gnat_generics=no
11773 echo "$as_me:11773: result: $cf_gnat_generics" >&5
11774 echo "${ECHO_T}$cf_gnat_generics" >&6
11776 if test "$cf_gnat_generics" = yes
11778 cf_compile_generics=generics
11779 cf_generic_objects="\${GENOBJS}"
11781 cf_compile_generics=
11782 cf_generic_objects=
11785 echo "$as_me:11785: checking if GNAT supports SIGINT" >&5
11786 echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
11787 if test "${cf_cv_gnat_sigint+set}" = set; then
11788 echo $ECHO_N "(cached) $ECHO_C" >&6
11791 rm -rf conftest* *~conftest*
11792 cat >>conftest.ads <<CF_EOF
11793 with Ada.Interrupts.Names;
11795 package ConfTest is
11797 pragma Warnings (Off); -- the next pragma exists since 3.11p
11798 pragma Unreserve_All_Interrupts;
11799 pragma Warnings (On);
11801 protected Process is
11803 function Continue return Boolean;
11804 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
11806 Done : Boolean := False;
11811 cat >>conftest.adb <<CF_EOF
11812 package body ConfTest is
11813 protected body Process is
11818 function Continue return Boolean is
11825 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
11826 cf_cv_gnat_sigint=yes
11828 cf_cv_gnat_sigint=no
11830 rm -rf conftest* *~conftest*
11833 echo "$as_me:11833: result: $cf_cv_gnat_sigint" >&5
11834 echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
11836 if test $cf_cv_gnat_sigint = yes ; then
11839 USE_GNAT_SIGINT="#"
11842 cf_gnat_libraries=no
11843 cf_gnat_projects=no
11845 if test "$enable_gnat_projects" != no ; then
11846 echo "$as_me:11846: checking if GNAT supports project files" >&5
11847 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
11848 case $cf_gnat_version in
11852 case $cf_cv_system_name in
11856 mkdir conftest.src conftest.bin conftest.lib
11858 rm -rf conftest* *~conftest*
11859 cat >>library.gpr <<CF_EOF
11861 Kind := External ("LIB_KIND");
11862 for Library_Name use "ConfTest";
11863 for Object_Dir use ".";
11864 for Library_ALI_Dir use External("LIBRARY_DIR");
11865 for Library_Version use External ("SONAME");
11866 for Library_Kind use Kind;
11867 for Library_Dir use External("BUILD_DIR");
11868 Source_Dir := External ("SOURCE_DIR");
11869 for Source_Dirs use (Source_Dir);
11872 cat >>confpackage.ads <<CF_EOF
11873 package ConfPackage is
11874 procedure conftest;
11877 cat >>confpackage.adb <<CF_EOF
11879 package body ConfPackage is
11880 procedure conftest is
11882 Text_IO.Put ("Hello World");
11887 if ( $cf_ada_make $ADAFLAGS \
11889 -XBUILD_DIR=`cd ../conftest.bin;pwd` \
11890 -XLIBRARY_DIR=`cd ../conftest.lib;pwd` \
11891 -XSOURCE_DIR=`pwd` \
11892 -XSONAME=libConfTest.so.1 \
11893 -XLIB_KIND=static 1>&5 2>&1 ) ; then
11894 cf_gnat_projects=yes
11897 if test -f conftest.lib/confpackage.ali
11899 cf_gnat_libraries=yes
11901 rm -rf conftest* *~conftest*
11906 echo "$as_me:11906: result: $cf_gnat_projects" >&5
11907 echo "${ECHO_T}$cf_gnat_projects" >&6
11908 fi # enable_gnat_projects
11910 if test $cf_gnat_projects = yes
11912 echo "$as_me:11912: checking if GNAT supports libraries" >&5
11913 echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
11914 echo "$as_me:11914: result: $cf_gnat_libraries" >&5
11915 echo "${ECHO_T}$cf_gnat_libraries" >&6
11918 if test "$cf_gnat_projects" = yes
11920 USE_OLD_MAKERULES="#"
11921 USE_GNAT_PROJECTS=""
11923 USE_OLD_MAKERULES=""
11924 USE_GNAT_PROJECTS="#"
11927 if test "$cf_gnat_libraries" = yes
11929 USE_GNAT_LIBRARIES=""
11931 USE_GNAT_LIBRARIES="#"
11934 echo "$as_me:11934: checking for ada-compiler" >&5
11935 echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6
11937 # Check whether --with-ada-compiler or --without-ada-compiler was given.
11938 if test "${with_ada_compiler+set}" = set; then
11939 withval="$with_ada_compiler"
11940 cf_ada_compiler=$withval
11942 cf_ada_compiler=gnatmake
11945 echo "$as_me:11945: result: $cf_ada_compiler" >&5
11946 echo "${ECHO_T}$cf_ada_compiler" >&6
11948 cf_ada_package=terminal_interface
11950 echo "$as_me:11950: checking for ada-include" >&5
11951 echo $ECHO_N "checking for ada-include... $ECHO_C" >&6
11953 # Check whether --with-ada-include or --without-ada-include was given.
11954 if test "${with_ada_include+set}" = set; then
11955 withval="$with_ada_include"
11958 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
11959 fi; if test -n "$prefix/share/ada/adainclude" ; then
11961 if test "x$prefix" != xNONE; then
11962 cf_path_syntax="$prefix"
11964 cf_path_syntax="$ac_default_prefix"
11967 case ".$withval" in
11968 (.\$\(*\)*|.\'*\'*)
11972 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
11974 (.\${*prefix}*|.\${*dir}*)
11975 eval withval="$withval"
11976 case ".$withval" in
11978 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
11983 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
11986 { { echo "$as_me:11986: error: expected a pathname, not \"$withval\"" >&5
11987 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
11988 { (exit 1); exit 1; }; }
11993 eval ADA_INCLUDE="$withval"
11995 echo "$as_me:11995: result: $ADA_INCLUDE" >&5
11996 echo "${ECHO_T}$ADA_INCLUDE" >&6
11998 echo "$as_me:11998: checking for ada-objects" >&5
11999 echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6
12001 # Check whether --with-ada-objects or --without-ada-objects was given.
12002 if test "${with_ada_objects+set}" = set; then
12003 withval="$with_ada_objects"
12006 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
12007 fi; if test -n "$prefix/lib/ada/adalib" ; then
12009 if test "x$prefix" != xNONE; then
12010 cf_path_syntax="$prefix"
12012 cf_path_syntax="$ac_default_prefix"
12015 case ".$withval" in
12016 (.\$\(*\)*|.\'*\'*)
12020 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
12022 (.\${*prefix}*|.\${*dir}*)
12023 eval withval="$withval"
12024 case ".$withval" in
12026 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
12031 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
12034 { { echo "$as_me:12034: error: expected a pathname, not \"$withval\"" >&5
12035 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
12036 { (exit 1); exit 1; }; }
12041 eval ADA_OBJECTS="$withval"
12043 echo "$as_me:12043: result: $ADA_OBJECTS" >&5
12044 echo "${ECHO_T}$ADA_OBJECTS" >&6
12046 echo "$as_me:12046: checking if an Ada95 shared-library should be built" >&5
12047 echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6
12049 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
12050 if test "${with_ada_sharedlib+set}" = set; then
12051 withval="$with_ada_sharedlib"
12052 with_ada_sharedlib=$withval
12054 with_ada_sharedlib=no
12056 echo "$as_me:12056: result: $with_ada_sharedlib" >&5
12057 echo "${ECHO_T}$with_ada_sharedlib" >&6
12059 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
12060 MAKE_ADA_SHAREDLIB="#"
12062 if test "x$with_ada_sharedlib" != xno
12064 MAKE_ADA_SHAREDLIB=
12065 if test "x$with_ada_sharedlib" != xyes
12067 ADA_SHAREDLIB="$with_ada_sharedlib"
12072 { { echo "$as_me:12072: error: No usable Ada compiler found" >&5
12073 echo "$as_me: error: No usable Ada compiler found" >&2;}
12074 { (exit 1); exit 1; }; }
12077 { { echo "$as_me:12077: error: The Ada compiler is needed for this package" >&5
12078 echo "$as_me: error: The Ada compiler is needed for this package" >&2;}
12079 { (exit 1); exit 1; }; }
12082 ################################################################################
12089 ### Construct the list of include-directories to be generated
12091 if test "$srcdir" != "."; then
12092 CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
12094 CPPFLAGS="-I../include $CPPFLAGS"
12095 if test "$srcdir" != "."; then
12096 CPPFLAGS="-I\${srcdir} $CPPFLAGS"
12098 CPPFLAGS="-I. $CPPFLAGS"
12100 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
12101 if test "$srcdir" != "."; then
12102 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
12104 if test "$GCC" != yes; then
12105 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
12106 elif test "$includedir" != "/usr/include"; then
12107 if test "$includedir" = '${prefix}/include' ; then
12108 if test x$prefix != x/usr ; then
12109 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
12112 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
12116 ### Build up pieces for makefile rules
12117 echo "$as_me:12117: checking default library suffix" >&5
12118 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
12120 case $DFT_LWR_MODEL in
12121 (libtool) DFT_ARG_SUFFIX='' ;;
12122 (normal) DFT_ARG_SUFFIX='' ;;
12123 (debug) DFT_ARG_SUFFIX='_g' ;;
12124 (profile) DFT_ARG_SUFFIX='_p' ;;
12125 (shared) DFT_ARG_SUFFIX='' ;;
12127 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
12128 echo "$as_me:12128: result: $DFT_ARG_SUFFIX" >&5
12129 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
12131 echo "$as_me:12131: checking default library-dependency suffix" >&5
12132 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
12134 case X$DFT_LWR_MODEL in
12136 DFT_LIB_SUFFIX='.la'
12137 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
12140 DFT_LIB_SUFFIX='_g.a'
12141 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
12144 DFT_LIB_SUFFIX='_p.a'
12145 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
12148 case $cf_cv_system_name in
12150 DFT_LIB_SUFFIX='.so'
12151 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
12153 (cygwin*|msys*|mingw*)
12154 DFT_LIB_SUFFIX='.dll'
12155 DFT_DEP_SUFFIX='.dll.a'
12158 DFT_LIB_SUFFIX='.dylib'
12159 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
12164 DFT_LIB_SUFFIX='.so'
12165 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
12168 DFT_LIB_SUFFIX='.sl'
12169 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
12174 DFT_LIB_SUFFIX='.so'
12175 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
12180 DFT_LIB_SUFFIX='.a'
12181 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
12184 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
12186 DFT_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_LIB_SUFFIX}"
12187 DFT_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_DEP_SUFFIX}"
12189 echo "$as_me:12189: result: $DFT_DEP_SUFFIX" >&5
12190 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
12192 echo "$as_me:12192: checking default object directory" >&5
12193 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
12195 case $DFT_LWR_MODEL in
12196 (libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
12197 (normal) DFT_OBJ_SUBDIR='objects' ;;
12198 (debug) DFT_OBJ_SUBDIR='obj_g' ;;
12199 (profile) DFT_OBJ_SUBDIR='obj_p' ;;
12201 case $cf_cv_system_name in
12203 DFT_OBJ_SUBDIR='objects' ;;
12205 DFT_OBJ_SUBDIR='obj_s' ;;
12208 echo "$as_me:12208: result: $DFT_OBJ_SUBDIR" >&5
12209 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
12211 ### Set up low-level terminfo dependencies for makefiles.
12213 if test "$DFT_LWR_MODEL" = shared ; then
12214 case $cf_cv_system_name in
12216 # "lib" files have ".dll.a" suffix, "cyg" files have ".dll"
12219 # "lib" files have ".dll.a" suffix, "msys-" files have ".dll"
12224 USE_CFG_SUFFIX=${DFT_ARG_SUFFIX}
12226 ### Construct the list of subdirectories for which we'll customize makefiles
12227 ### with the appropriate compile-rules.
12229 SUB_MAKEFILES="gen/adacurses${USE_ARG_SUFFIX}-config:gen/adacurses-config.in"
12231 cat >>confdefs.h <<EOF
12232 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
12235 ### Now that we're done running tests, add the compiler-warnings, if any
12240 cf_new_extra_cppflags=
12242 for cf_add_cflags in $EXTRA_CFLAGS
12244 case $cf_fix_cppflags in
12246 case $cf_add_cflags in
12247 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12248 case $cf_add_cflags in
12250 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12252 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12253 && test -z "${cf_tst_cflags}" \
12254 && cf_fix_cppflags=yes
12256 if test $cf_fix_cppflags = yes ; then
12257 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12259 elif test "${cf_tst_cflags}" = "\"'" ; then
12260 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12265 case "$CPPFLAGS" in
12269 case $cf_add_cflags in
12271 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12273 CPPFLAGS=`echo "$CPPFLAGS" | \
12274 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12275 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12279 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12284 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12289 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12291 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12293 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12294 && test -z "${cf_tst_cflags}" \
12295 && cf_fix_cppflags=no
12300 if test -n "$cf_new_cflags" ; then
12302 CFLAGS="$CFLAGS $cf_new_cflags"
12305 if test -n "$cf_new_cppflags" ; then
12307 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12310 if test -n "$cf_new_extra_cppflags" ; then
12312 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12315 ################################################################################
12321 NCURSES_SHLIB2="sh -c"
12323 ADA_SUBDIRS="include gen src doc"
12324 if test "x$cf_with_tests" != "xno" ; then
12325 ADA_SUBDIRS="$ADA_SUBDIRS samples"
12327 for cf_dir in $ADA_SUBDIRS
12329 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
12336 # match layout used by make-tar.sh
12337 ADAHTML_DIR=../doc/ada
12339 ac_config_files="$ac_config_files $SUB_MAKEFILES doc/adacurses${DFT_ARG_SUFFIX}-config.1:doc/MKada_config.in Makefile"
12340 ac_config_commands="$ac_config_commands default"
12341 cat >confcache <<\_ACEOF
12342 # This file is a shell script that caches the results of configure
12343 # tests run on this system so they can be shared between configure
12344 # scripts and configure runs, see configure's option --config-cache.
12345 # It is not useful on other systems. If it contains results you don't
12346 # want to keep, you may remove or edit it.
12348 # config.status only pays attention to the cache file if you give it
12349 # the --recheck option to rerun configure.
12351 # `ac_cv_env_foo' variables (set or unset) will be overriden when
12352 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12353 # following values.
12357 # The following way of writing the cache mishandles newlines in values,
12358 # but we know of no workaround that is simple, portable, and efficient.
12359 # So, don't put newlines in cache variables' values.
12360 # Ultrix sh set writes to stderr and can't be redirected directly,
12361 # and sets the high bit in the cache file unless we assign to the vars.
12364 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12366 # `set' does not quote correctly, so add quotes (double-quote
12367 # substitution turns \\\\ into \\, and sed turns \\ into \).
12370 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12373 # `set' quotes correctly as required by POSIX, so do not add quotes.
12375 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12382 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12384 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12386 if cmp -s $cache_file confcache; then :; else
12387 if test -w $cache_file; then
12388 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12389 cat confcache >$cache_file
12391 echo "not updating unwritable cache $cache_file"
12396 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12397 # Let make expand exec_prefix.
12398 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12400 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12401 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12402 # trailing colons and then remove the whole line if VPATH becomes empty
12403 # (actually we leave an empty line to preserve line numbers).
12404 if test "x$srcdir" = x.; then
12405 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12406 s/:*\$(srcdir):*/:/;
12407 s/:*\${srcdir}:*/:/;
12409 s/^\([^=]*=[ ]*\):*/\1/;
12415 DEFS=-DHAVE_CONFIG_H
12417 : ${CONFIG_STATUS=./config.status}
12418 ac_clean_files_save=$ac_clean_files
12419 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12420 { echo "$as_me:12420: creating $CONFIG_STATUS" >&5
12421 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12422 cat >$CONFIG_STATUS <<_ACEOF
12424 # Generated automatically by configure.
12425 # Run this file to recreate the current configuration.
12426 # Compiler output produced by configure, useful for debugging
12427 # configure, is in config.log if it exists.
12430 SHELL=\${CONFIG_SHELL-$SHELL}
12431 ac_cs_invocation="\$0 \$@"
12435 cat >>$CONFIG_STATUS <<\_ACEOF
12436 # Be Bourne compatible
12437 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12440 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12444 # Name of the executable.
12445 as_me=`echo "$0" |sed 's,.*[\\/],,'`
12447 if expr a : '\(a\)' >/dev/null 2>&1; then
12453 rm -f conf$$ conf$$.exe conf$$.file
12455 if ln -s conf$$.file conf$$ 2>/dev/null; then
12456 # We could just check for DJGPP; but this test a) works b) is more generic
12457 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12458 if test -f conf$$.exe; then
12459 # Don't use ln at all; we don't have any links
12464 elif ln conf$$.file conf$$ 2>/dev/null; then
12469 rm -f conf$$ conf$$.exe conf$$.file
12471 as_executable_p="test -f"
12473 # Support unset when possible.
12474 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
12481 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
12482 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
12483 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
12484 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
12485 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
12486 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
12487 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
12488 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
12491 # We need space, tab and new line, in precisely that order.
12497 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
12503 # Files that config.status was made for.
12504 if test -n "$ac_config_files"; then
12505 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12508 if test -n "$ac_config_headers"; then
12509 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12512 if test -n "$ac_config_links"; then
12513 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12516 if test -n "$ac_config_commands"; then
12517 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12520 cat >>$CONFIG_STATUS <<\EOF
12523 \`$as_me' instantiates files from templates according to the
12524 current configuration.
12526 Usage: $0 [OPTIONS] [FILE]...
12528 -h, --help print this help, then exit
12529 -V, --version print version number, then exit
12530 -d, --debug don't remove temporary files
12531 --recheck update $as_me by reconfiguring in the same conditions
12532 --file=FILE[:TEMPLATE]
12533 instantiate the configuration file FILE
12534 --header=FILE[:TEMPLATE]
12535 instantiate the configuration header FILE
12537 Configuration files:
12540 Configuration headers:
12543 Configuration commands:
12546 Report bugs to <dickey@invisible-island.net>."
12549 cat >>$CONFIG_STATUS <<EOF
12552 configured by $0, generated by GNU Autoconf 2.52.20141204,
12553 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12555 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12556 Free Software Foundation, Inc.
12557 This config.status script is free software; the Free Software Foundation
12558 gives unlimited permission to copy, distribute and modify it."
12563 cat >>$CONFIG_STATUS <<\EOF
12564 # If no file are specified by the user, then we need to provide default
12565 # value. By we need to know if files were specified by the user.
12571 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12572 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12574 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
12578 *) # This is not an option, so the user has probably given explicit
12580 ac_need_defaults=false;;
12584 # Handling of the options.
12586 cat >>$CONFIG_STATUS <<EOF
12587 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12588 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
12589 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
12591 cat >>$CONFIG_STATUS <<\EOF
12592 --version | --vers* | -V )
12593 echo "$ac_cs_version"; exit 0 ;;
12595 # Conflict between --help and --header
12596 { { echo "$as_me:12596: error: ambiguous option: $1
12597 Try \`$0 --help' for more information." >&5
12598 echo "$as_me: error: ambiguous option: $1
12599 Try \`$0 --help' for more information." >&2;}
12600 { (exit 1); exit 1; }; };;
12601 --help | --hel | -h )
12602 echo "$ac_cs_usage"; exit 0 ;;
12603 --debug | --d* | -d )
12605 --file | --fil | --fi | --f )
12607 CONFIG_FILES="$CONFIG_FILES $1"
12608 ac_need_defaults=false;;
12609 --header | --heade | --head | --hea )
12611 CONFIG_HEADERS="$CONFIG_HEADERS $1"
12612 ac_need_defaults=false;;
12614 # This is an error.
12615 -*) { { echo "$as_me:12615: error: unrecognized option: $1
12616 Try \`$0 --help' for more information." >&5
12617 echo "$as_me: error: unrecognized option: $1
12618 Try \`$0 --help' for more information." >&2;}
12619 { (exit 1); exit 1; }; } ;;
12621 *) ac_config_targets="$ac_config_targets $1" ;;
12630 ## ----------------------- ##
12631 ## Running config.status. ##
12632 ## ----------------------- ##
12634 This file was extended by $as_me 2.52.20141204, executed with
12635 CONFIG_FILES = $CONFIG_FILES
12636 CONFIG_HEADERS = $CONFIG_HEADERS
12637 CONFIG_LINKS = $CONFIG_LINKS
12638 CONFIG_COMMANDS = $CONFIG_COMMANDS
12639 > $ac_cs_invocation
12640 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12645 cat >>$CONFIG_STATUS <<EOF
12647 # INIT-COMMANDS section.
12650 ### Special initialization commands, used to pass information from the
12651 ### configuration-run into config.status
12654 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
12655 DFT_LWR_MODEL="$DFT_LWR_MODEL"
12656 LIB_NAME="$LIB_NAME"
12657 LIB_PREFIX="$LIB_PREFIX"
12658 LIB_SUFFIX="$LIB_SUFFIX"
12660 NCURSES_MAJOR="$NCURSES_MAJOR"
12661 NCURSES_MINOR="$NCURSES_MINOR"
12662 NCURSES_PATCH="$NCURSES_PATCH"
12663 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
12664 cf_cv_abi_version="$cf_cv_abi_version"
12665 cf_cv_rel_version="$cf_cv_rel_version"
12666 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
12667 cf_cv_shared_soname='$cf_cv_shared_soname'
12668 cf_cv_shlib_version="$cf_cv_shlib_version"
12669 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
12670 cf_cv_system_name="$cf_cv_system_name"
12676 cat >>$CONFIG_STATUS <<\EOF
12677 for ac_config_target in $ac_config_targets
12679 case "$ac_config_target" in
12680 # Handling of arguments.
12681 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
12682 "doc/adacurses${DFT_ARG_SUFFIX}-config.1" ) CONFIG_FILES="$CONFIG_FILES doc/adacurses${DFT_ARG_SUFFIX}-config.1:doc/MKada_config.in" ;;
12683 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12684 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12685 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
12686 *) { { echo "$as_me:12686: error: invalid argument: $ac_config_target" >&5
12687 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12688 { (exit 1); exit 1; }; };;
12692 # If the user did not use the arguments to specify the items to instantiate,
12693 # then the envvar interface is used. Set only those that are not.
12694 # We use the long form for the default assignment because of an extremely
12695 # bizarre bug on SunOS 4.1.3.
12696 if $ac_need_defaults; then
12697 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12698 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12699 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12702 # Create a temporary directory, and hook for its removal unless debugging.
12705 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12706 trap '{ (exit 1); exit 1; }' 1 2 13 15
12709 # Create a (secure) tmp directory for tmp files.
12712 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
12713 test -n "$tmp" && test -d "$tmp"
12716 tmp=$TMPDIR/cs$$-$RANDOM
12717 (umask 077 && mkdir $tmp)
12720 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
12721 { (exit 1); exit 1; }
12726 cat >>$CONFIG_STATUS <<EOF
12729 # CONFIG_FILES section.
12732 # No need to generate the scripts if there are no CONFIG_FILES.
12733 # This happens for instance when ./config.status config.h
12734 if test -n "\$CONFIG_FILES"; then
12735 # Protect against being on the right side of a sed subst in config.status.
12736 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12737 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12738 s,@SHELL@,$SHELL,;t t
12739 s,@exec_prefix@,$exec_prefix,;t t
12740 s,@prefix@,$prefix,;t t
12741 s,@program_transform_name@,$program_transform_name,;t t
12742 s,@bindir@,$bindir,;t t
12743 s,@sbindir@,$sbindir,;t t
12744 s,@libexecdir@,$libexecdir,;t t
12745 s,@datarootdir@,$datarootdir,;t t
12746 s,@datadir@,$datadir,;t t
12747 s,@sysconfdir@,$sysconfdir,;t t
12748 s,@sharedstatedir@,$sharedstatedir,;t t
12749 s,@localstatedir@,$localstatedir,;t t
12750 s,@libdir@,$libdir,;t t
12751 s,@includedir@,$includedir,;t t
12752 s,@oldincludedir@,$oldincludedir,;t t
12753 s,@infodir@,$infodir,;t t
12754 s,@mandir@,$mandir,;t t
12755 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12756 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12757 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12758 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12759 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12760 s,@build_alias@,$build_alias,;t t
12761 s,@host_alias@,$host_alias,;t t
12762 s,@target_alias@,$target_alias,;t t
12763 s,@ECHO_C@,$ECHO_C,;t t
12764 s,@ECHO_N@,$ECHO_N,;t t
12765 s,@ECHO_T@,$ECHO_T,;t t
12766 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12767 s,@DEFS@,$DEFS,;t t
12768 s,@LIBS@,$LIBS,;t t
12769 s,@top_builddir@,$top_builddir,;t t
12770 s,@build@,$build,;t t
12771 s,@build_cpu@,$build_cpu,;t t
12772 s,@build_vendor@,$build_vendor,;t t
12773 s,@build_os@,$build_os,;t t
12774 s,@host@,$host,;t t
12775 s,@host_cpu@,$host_cpu,;t t
12776 s,@host_vendor@,$host_vendor,;t t
12777 s,@host_os@,$host_os,;t t
12778 s,@target@,$target,;t t
12779 s,@target_cpu@,$target_cpu,;t t
12780 s,@target_vendor@,$target_vendor,;t t
12781 s,@target_os@,$target_os,;t t
12783 s,@CFLAGS@,$CFLAGS,;t t
12784 s,@LDFLAGS@,$LDFLAGS,;t t
12785 s,@CPPFLAGS@,$CPPFLAGS,;t t
12786 s,@ac_ct_CC@,$ac_ct_CC,;t t
12787 s,@EXEEXT@,$EXEEXT,;t t
12788 s,@OBJEXT@,$OBJEXT,;t t
12789 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
12792 s,@EGREP@,$EGREP,;t t
12793 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12794 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12795 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12796 s,@LN_S@,$LN_S,;t t
12797 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
12798 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
12799 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
12800 s,@SET_MAKE@,$SET_MAKE,;t t
12801 s,@CTAGS@,$CTAGS,;t t
12802 s,@ETAGS@,$ETAGS,;t t
12803 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
12804 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
12805 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
12806 s,@RANLIB@,$RANLIB,;t t
12807 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12809 s,@ac_ct_LD@,$ac_ct_LD,;t t
12811 s,@ac_ct_AR@,$ac_ct_AR,;t t
12812 s,@ARFLAGS@,$ARFLAGS,;t t
12813 s,@DESTDIR@,$DESTDIR,;t t
12814 s,@BUILD_CC@,$BUILD_CC,;t t
12815 s,@BUILD_CPP@,$BUILD_CPP,;t t
12816 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
12817 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
12818 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
12819 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
12820 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
12821 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
12822 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
12823 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
12824 s,@NCURSES_CONFIG@,$NCURSES_CONFIG,;t t
12825 s,@ac_ct_NCURSES_CONFIG@,$ac_ct_NCURSES_CONFIG,;t t
12826 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
12827 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
12828 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
12829 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
12830 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
12831 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
12832 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
12833 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
12834 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
12835 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
12836 s,@CC_G_OPT@,$CC_G_OPT,;t t
12837 s,@LD_MODEL@,$LD_MODEL,;t t
12838 s,@shlibdir@,$shlibdir,;t t
12839 s,@MAKE_DLLS@,$MAKE_DLLS,;t t
12840 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
12841 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
12842 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
12843 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
12844 s,@RM_SHARED_OPTS@,$RM_SHARED_OPTS,;t t
12845 s,@LINK_PROGS@,$LINK_PROGS,;t t
12846 s,@LINK_TESTS@,$LINK_TESTS,;t t
12847 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
12848 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
12849 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
12850 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
12851 s,@RPATH_LIST@,$RPATH_LIST,;t t
12852 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
12853 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
12854 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
12855 s,@PTHREAD@,$PTHREAD,;t t
12856 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
12857 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
12858 s,@ECHO_LT@,$ECHO_LT,;t t
12859 s,@ECHO_LD@,$ECHO_LD,;t t
12860 s,@RULE_CC@,$RULE_CC,;t t
12861 s,@SHOW_CC@,$SHOW_CC,;t t
12862 s,@ECHO_CC@,$ECHO_CC,;t t
12863 s,@ADAFLAGS@,$ADAFLAGS,;t t
12864 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
12865 s,@ADA_TRACE@,$ADA_TRACE,;t t
12866 s,@gnat_exists@,$gnat_exists,;t t
12867 s,@M4_exists@,$M4_exists,;t t
12868 s,@cf_ada_make@,$cf_ada_make,;t t
12869 s,@GNATPREP_OPTS@,$GNATPREP_OPTS,;t t
12870 s,@cf_compile_generics@,$cf_compile_generics,;t t
12871 s,@cf_generic_objects@,$cf_generic_objects,;t t
12872 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
12873 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
12874 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
12875 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
12876 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
12877 s,@cf_ada_package@,$cf_ada_package,;t t
12878 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
12879 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
12880 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
12881 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
12882 s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t
12883 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
12884 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
12885 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
12886 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
12887 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
12888 s,@USE_CFG_SUFFIX@,$USE_CFG_SUFFIX,;t t
12889 s,@TEST_ARG2@,$TEST_ARG2,;t t
12890 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
12891 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
12892 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
12893 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
12894 s,@EXTERNAL_TREE@,$EXTERNAL_TREE,;t t
12895 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
12900 cat >>$CONFIG_STATUS <<\EOF
12901 # Split the substitutions into bite-sized pieces for seds with
12902 # small command number limits, like on Digital OSF/1 and HP-UX.
12903 ac_max_sed_lines=48
12904 ac_sed_frag=1 # Number of current file.
12905 ac_beg=1 # First line for current file.
12906 ac_end=$ac_max_sed_lines # Line after last line for current file.
12909 while $ac_more_lines; do
12910 if test $ac_beg -gt 1; then
12911 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12913 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12915 if test ! -s $tmp/subs.frag; then
12916 ac_more_lines=false
12918 # The purpose of the label and of the branching condition is to
12919 # speed up the sed processing (if there are no `@' at all, there
12920 # is no need to browse any of the substitutions).
12921 # These are the two extra sed commands mentioned above.
12923 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12924 if test -z "$ac_sed_cmds"; then
12925 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12927 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12929 ac_sed_frag=`expr $ac_sed_frag + 1`
12931 ac_end=`expr $ac_end + $ac_max_sed_lines`
12934 if test -z "$ac_sed_cmds"; then
12937 fi # test -n "$CONFIG_FILES"
12940 cat >>$CONFIG_STATUS <<\EOF
12941 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12942 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12944 - | *:- | *:-:* ) # input from stdin
12946 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12947 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12948 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12949 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12950 * ) ac_file_in=$ac_file.in ;;
12953 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12954 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12955 X"$ac_file" : 'X\(//\)[^/]' \| \
12956 X"$ac_file" : 'X\(//\)$' \| \
12957 X"$ac_file" : 'X\(/\)' \| \
12958 . : '\(.\)' 2>/dev/null ||
12960 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12961 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12962 /^X\(\/\/\)$/{ s//\1/; q; }
12963 /^X\(\/\).*/{ s//\1/; q; }
12965 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12966 { case "$ac_dir" in
12967 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
12971 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12972 case $as_mkdir_dir in
12973 # Skip DOS drivespec
12974 ?:) as_incr_dir=$as_mkdir_dir ;;
12976 as_incr_dir=$as_incr_dir/$as_mkdir_dir
12977 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
12982 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
12983 # A "../" for each directory in $ac_dir_suffix.
12984 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
12986 ac_dir_suffix= ac_dots=
12991 if test -z "$ac_dots"; then
12994 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
12996 [\\/]* | ?:[\\/]* )
12997 ac_srcdir=$srcdir$ac_dir_suffix;
12998 ac_top_srcdir=$srcdir ;;
12999 *) # Relative path.
13000 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
13001 ac_top_srcdir=$ac_dots$srcdir ;;
13005 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13006 *) ac_INSTALL=$ac_dots$INSTALL ;;
13009 if test x"$ac_file" != x-; then
13010 { echo "$as_me:13010: creating $ac_file" >&5
13011 echo "$as_me: creating $ac_file" >&6;}
13014 # Let's still pretend it is `configure' which instantiates (i.e., don't
13015 # use $as_me), people would be surprised to read:
13016 # /* config.h. Generated automatically by config.status. */
13017 configure_input="Generated automatically from `echo $ac_file_in |
13018 sed 's,.*/,,'` by configure."
13020 # First look for the input files in the build tree, otherwise in the
13022 ac_file_inputs=`IFS=:
13023 for f in $ac_file_in; do
13025 -) echo $tmp/stdin ;;
13027 # Absolute (can't be DOS-style, as IFS=:)
13028 test -f "$f" || { { echo "$as_me:13028: error: cannot find input file: $f" >&5
13029 echo "$as_me: error: cannot find input file: $f" >&2;}
13030 { (exit 1); exit 1; }; }
13033 if test -f "$f"; then
13036 elif test -f "$srcdir/$f"; then
13041 { { echo "$as_me:13041: error: cannot find input file: $f" >&5
13042 echo "$as_me: error: cannot find input file: $f" >&2;}
13043 { (exit 1); exit 1; }; }
13046 done` || { (exit 1); exit 1; }
13048 cat >>$CONFIG_STATUS <<\EOF
13049 ac_warn_datarootdir=no
13050 if test x"$ac_file" != x-; then
13051 for ac_item in $ac_file_inputs
13053 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
13054 if test -n "$ac_seen"; then
13055 ac_used=`grep '@datarootdir@' $ac_item`
13056 if test -z "$ac_used"; then
13057 { echo "$as_me:13057: WARNING: datarootdir was used implicitly but not set:
13059 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
13061 ac_warn_datarootdir=yes
13064 ac_seen=`grep '${datarootdir}' $ac_item`
13065 if test -n "$ac_seen"; then
13066 { echo "$as_me:13066: WARNING: datarootdir was used explicitly but not set:
13068 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
13070 ac_warn_datarootdir=yes
13075 if test "x$ac_warn_datarootdir" = xyes; then
13076 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
13080 cat >>$CONFIG_STATUS <<EOF
13084 cat >>$CONFIG_STATUS <<\EOF
13086 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13087 s,@configure_input@,$configure_input,;t t
13088 s,@srcdir@,$ac_srcdir,;t t
13089 s,@top_srcdir@,$ac_top_srcdir,;t t
13090 s,@INSTALL@,$ac_INSTALL,;t t
13091 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13093 if test x"$ac_file" != x-; then
13094 cp $tmp/out $ac_file
13096 for ac_name in prefix exec_prefix datarootdir
13098 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
13099 if test -n "$ac_seen"; then
13100 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
13101 if test -z "$ac_init"; then
13102 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
13103 { echo "$as_me:13103: WARNING: Variable $ac_name is used but was not set:
13105 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
13110 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
13111 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
13112 if test -s $tmp/out; then
13113 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
13114 { echo "$as_me:13114: WARNING: Some variables may not be substituted:
13116 echo "$as_me: WARNING: Some variables may not be substituted:
13126 cat >>$CONFIG_STATUS <<\EOF
13129 # CONFIG_HEADER section.
13132 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13133 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13135 # ac_d sets the value in "#define NAME VALUE" lines.
13136 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13137 ac_dB='[ ].*$,\1#\2'
13140 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
13141 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13142 ac_iB='\([ ]\),\1#\2define\3'
13145 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13146 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13147 ac_uB='$,\1#\2define\3'
13151 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13152 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13154 - | *:- | *:-:* ) # input from stdin
13156 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13157 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13158 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13159 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13160 * ) ac_file_in=$ac_file.in ;;
13163 test x"$ac_file" != x- && { echo "$as_me:13163: creating $ac_file" >&5
13164 echo "$as_me: creating $ac_file" >&6;}
13166 # First look for the input files in the build tree, otherwise in the
13168 ac_file_inputs=`IFS=:
13169 for f in $ac_file_in; do
13171 -) echo $tmp/stdin ;;
13173 # Absolute (can't be DOS-style, as IFS=:)
13174 test -f "$f" || { { echo "$as_me:13174: error: cannot find input file: $f" >&5
13175 echo "$as_me: error: cannot find input file: $f" >&2;}
13176 { (exit 1); exit 1; }; }
13179 if test -f "$f"; then
13182 elif test -f "$srcdir/$f"; then
13187 { { echo "$as_me:13187: error: cannot find input file: $f" >&5
13188 echo "$as_me: error: cannot find input file: $f" >&2;}
13189 { (exit 1); exit 1; }; }
13192 done` || { (exit 1); exit 1; }
13193 # Remove the trailing spaces.
13194 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13198 # Transform confdefs.h into a list of #define's. We won't use it as a sed
13199 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
13200 # be either 'cat' or 'sort'.
13201 cat confdefs.h | uniq >conftest.vals
13203 # Break up conftest.vals because some shells have a limit on
13204 # the size of here documents, and old seds have small limits too.
13206 rm -f conftest.tail
13207 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
13208 while grep . conftest.vals >/dev/null
13210 # Write chunks of a limited-size here document to conftest.frag.
13211 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
13212 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
13213 echo 'CEOF' >> $CONFIG_STATUS
13214 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
13215 rm -f conftest.vals
13216 mv conftest.tail conftest.vals
13218 rm -f conftest.vals
13220 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
13222 echo ' cat >> conftest.edit <<CEOF
13223 /@DEFS@/r conftest.frag
13226 sed -f conftest.edit $tmp/in > $tmp/out
13228 mv $tmp/out $tmp/in
13229 rm -f conftest.edit conftest.frag
13230 ' >> $CONFIG_STATUS
13232 cat >>$CONFIG_STATUS <<\EOF
13233 # Let's still pretend it is `configure' which instantiates (i.e., don't
13234 # use $as_me), people would be surprised to read:
13235 # /* config.h. Generated automatically by config.status. */
13236 if test x"$ac_file" = x-; then
13237 echo "/* Generated automatically by configure. */" >$tmp/config.h
13239 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
13241 cat $tmp/in >>$tmp/config.h
13243 if test x"$ac_file" != x-; then
13244 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
13245 { echo "$as_me:13245: $ac_file is unchanged" >&5
13246 echo "$as_me: $ac_file is unchanged" >&6;}
13248 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13249 X"$ac_file" : 'X\(//\)[^/]' \| \
13250 X"$ac_file" : 'X\(//\)$' \| \
13251 X"$ac_file" : 'X\(/\)' \| \
13252 . : '\(.\)' 2>/dev/null ||
13254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13255 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13256 /^X\(\/\/\)$/{ s//\1/; q; }
13257 /^X\(\/\).*/{ s//\1/; q; }
13259 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13260 { case "$ac_dir" in
13261 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
13265 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13266 case $as_mkdir_dir in
13267 # Skip DOS drivespec
13268 ?:) as_incr_dir=$as_mkdir_dir ;;
13270 as_incr_dir=$as_incr_dir/$as_mkdir_dir
13271 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
13278 mv $tmp/config.h $ac_file
13282 rm -f $tmp/config.h
13286 cat >>$CONFIG_STATUS <<\EOF
13288 # CONFIG_COMMANDS section.
13290 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13291 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13292 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13296 if test -z "$USE_OLD_MAKERULES" ; then
13297 $AWK -f $srcdir/mk-1st.awk <$srcdir/src/modules >>src/Makefile
13304 cat >>$CONFIG_STATUS <<\EOF
13306 { (exit 0); exit 0; }
13308 chmod +x $CONFIG_STATUS
13309 ac_clean_files=$ac_clean_files_save
13311 # configure is writing to config.log, and then calls config.status.
13312 # config.status does its own redirection, appending to config.log.
13313 # Unfortunately, on DOS this fails, as config.log is still kept open
13314 # by configure, so config.status won't be able to write to it; its
13315 # output is simply discarded. So we exec the FD to /dev/null,
13316 # effectively closing config.log, so it can be properly (re)opened and
13317 # appended to by config.status. When coming back to configure, we
13318 # need to make the FD available again.
13319 if test "$no_create" != yes; then
13322 $SHELL $CONFIG_STATUS || ac_cs_success=false
13324 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13325 # would make configure fail if this is the last instruction.
13326 $ac_cs_success || { (exit 1); exit 1; }
13328 ${MAKE:-make} preinstall