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 --with-curses-dir=DIR directory in which (n)curses is installed
671 --enable-widec compile with wide-char/UTF-8 code
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; }; }
2545 elif test "x$cf_pkg_config" != xno ; then
2546 { echo "$as_me:2546: WARNING: pkg-config is not installed" >&5
2547 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
2552 echo "$as_me:2552: checking for pkg-config library directory" >&5
2553 echo $ECHO_N "checking for pkg-config library directory... $ECHO_C" >&6
2556 echo "$as_me:2556: checking for $PKG_CONFIG library directory" >&5
2557 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
2561 PKG_CONFIG_LIBDIR=no
2563 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
2564 if test "${with_pkg_config_libdir+set}" = set; then
2565 withval="$with_pkg_config_libdir"
2566 PKG_CONFIG_LIBDIR=$withval
2568 test "x$PKG_CONFIG" != xnone && PKG_CONFIG_LIBDIR=yes
2571 case x$PKG_CONFIG_LIBDIR in
2575 # Look for the library directory using the same prefix as the executable
2576 if test "x$PKG_CONFIG" = xnone
2580 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
2583 # If you don't like using the default architecture, you have to specify the
2584 # intended library directory and corresponding compiler/linker options.
2586 # This case allows for Debian's 2014-flavor of multiarch, along with the
2587 # most common variations before that point. Some other variants spell the
2588 # directory differently, e.g., "pkg-config", and put it in unusual places.
2589 # pkg-config has always been poorly standardized, which is ironic...
2590 case x`(arch) 2>/dev/null` in
2593 $cf_path/lib/*64-linux-gnu \
2601 $cf_path/lib/*-linux-gnu \
2609 test -n "$verbose" && echo " list..." 1>&6
2611 echo "${as_me:-configure}:2611: testing list... ..." 1>&5
2613 for cf_config in $cf_search_path
2615 test -n "$verbose" && echo " checking $cf_config/pkgconfig" 1>&6
2617 echo "${as_me:-configure}:2617: testing checking $cf_config/pkgconfig ..." 1>&5
2619 if test -d $cf_config/pkgconfig
2621 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
2622 echo "$as_me:2622: checking done" >&5
2623 echo $ECHO_N "checking done... $ECHO_C" >&6
2632 if test "x$PKG_CONFIG_LIBDIR" != xno ; then
2633 echo "$as_me:2633: result: $PKG_CONFIG_LIBDIR" >&5
2634 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
2637 echo "$as_me:2637: checking if you want to build test-programs" >&5
2638 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
2640 # Check whether --with-tests or --without-tests was given.
2641 if test "${with_tests+set}" = set; then
2642 withval="$with_tests"
2643 cf_with_tests=$withval
2647 echo "$as_me:2647: result: $cf_with_tests" >&5
2648 echo "${ECHO_T}$cf_with_tests" >&6
2650 echo "$as_me:2650: checking if we should assume mixed-case filenames" >&5
2651 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
2653 # Check whether --enable-mixed-case or --disable-mixed-case was given.
2654 if test "${enable_mixed_case+set}" = set; then
2655 enableval="$enable_mixed_case"
2656 enable_mixedcase=$enableval
2658 enable_mixedcase=auto
2660 echo "$as_me:2660: result: $enable_mixedcase" >&5
2661 echo "${ECHO_T}$enable_mixedcase" >&6
2662 if test "$enable_mixedcase" = "auto" ; then
2664 echo "$as_me:2664: checking if filesystem supports mixed-case filenames" >&5
2665 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2666 if test "${cf_cv_mixedcase+set}" = set; then
2667 echo $ECHO_N "(cached) $ECHO_C" >&6
2670 if test "$cross_compiling" = yes ; then
2671 case $target_alias in
2672 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
2680 rm -f conftest CONFTEST
2682 if test -f CONFTEST ; then
2687 rm -f conftest CONFTEST
2691 echo "$as_me:2691: result: $cf_cv_mixedcase" >&5
2692 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2693 test "$cf_cv_mixedcase" = yes &&
2694 cat >>confdefs.h <<\EOF
2695 #define MIXEDCASE_FILENAMES 1
2699 cf_cv_mixedcase=$enable_mixedcase
2700 if test "$enable_mixedcase" = "yes" ; then
2701 cat >>confdefs.h <<\EOF
2702 #define MIXEDCASE_FILENAMES 1
2708 # do this after mixed-case option (tags/TAGS is not as important as tic).
2709 echo "$as_me:2709: checking whether ${MAKE-make} sets \${MAKE}" >&5
2710 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2711 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2712 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2713 echo $ECHO_N "(cached) $ECHO_C" >&6
2715 cat >conftest.make <<\EOF
2717 @echo 'ac_maketemp="${MAKE}"'
2719 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2720 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2721 if test -n "$ac_maketemp"; then
2722 eval ac_cv_prog_make_${ac_make}_set=yes
2724 eval ac_cv_prog_make_${ac_make}_set=no
2728 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2729 echo "$as_me:2729: result: yes" >&5
2730 echo "${ECHO_T}yes" >&6
2733 echo "$as_me:2733: result: no" >&5
2734 echo "${ECHO_T}no" >&6
2735 SET_MAKE="MAKE=${MAKE-make}"
2738 for ac_prog in exctags ctags
2740 # Extract the first word of "$ac_prog", so it can be a program name with args.
2741 set dummy $ac_prog; ac_word=$2
2742 echo "$as_me:2742: checking for $ac_word" >&5
2743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2744 if test "${ac_cv_prog_CTAGS+set}" = set; then
2745 echo $ECHO_N "(cached) $ECHO_C" >&6
2747 if test -n "$CTAGS"; then
2748 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2750 ac_save_IFS=$IFS; IFS=$ac_path_separator
2752 for ac_dir in $ac_dummy; do
2754 test -z "$ac_dir" && ac_dir=.
2755 $as_executable_p "$ac_dir/$ac_word" || continue
2756 ac_cv_prog_CTAGS="$ac_prog"
2757 echo "$as_me:2757: found $ac_dir/$ac_word" >&5
2763 CTAGS=$ac_cv_prog_CTAGS
2764 if test -n "$CTAGS"; then
2765 echo "$as_me:2765: result: $CTAGS" >&5
2766 echo "${ECHO_T}$CTAGS" >&6
2768 echo "$as_me:2768: result: no" >&5
2769 echo "${ECHO_T}no" >&6
2772 test -n "$CTAGS" && break
2775 for ac_prog in exetags etags
2777 # Extract the first word of "$ac_prog", so it can be a program name with args.
2778 set dummy $ac_prog; ac_word=$2
2779 echo "$as_me:2779: checking for $ac_word" >&5
2780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2781 if test "${ac_cv_prog_ETAGS+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2784 if test -n "$ETAGS"; then
2785 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2787 ac_save_IFS=$IFS; IFS=$ac_path_separator
2789 for ac_dir in $ac_dummy; do
2791 test -z "$ac_dir" && ac_dir=.
2792 $as_executable_p "$ac_dir/$ac_word" || continue
2793 ac_cv_prog_ETAGS="$ac_prog"
2794 echo "$as_me:2794: found $ac_dir/$ac_word" >&5
2800 ETAGS=$ac_cv_prog_ETAGS
2801 if test -n "$ETAGS"; then
2802 echo "$as_me:2802: result: $ETAGS" >&5
2803 echo "${ECHO_T}$ETAGS" >&6
2805 echo "$as_me:2805: result: no" >&5
2806 echo "${ECHO_T}no" >&6
2809 test -n "$ETAGS" && break
2812 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2813 set dummy ${CTAGS:-ctags}; ac_word=$2
2814 echo "$as_me:2814: checking for $ac_word" >&5
2815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2816 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2817 echo $ECHO_N "(cached) $ECHO_C" >&6
2819 if test -n "$MAKE_LOWER_TAGS"; then
2820 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2822 ac_save_IFS=$IFS; IFS=$ac_path_separator
2824 for ac_dir in $ac_dummy; do
2826 test -z "$ac_dir" && ac_dir=.
2827 $as_executable_p "$ac_dir/$ac_word" || continue
2828 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2829 echo "$as_me:2829: found $ac_dir/$ac_word" >&5
2833 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2836 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2837 if test -n "$MAKE_LOWER_TAGS"; then
2838 echo "$as_me:2838: result: $MAKE_LOWER_TAGS" >&5
2839 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2841 echo "$as_me:2841: result: no" >&5
2842 echo "${ECHO_T}no" >&6
2845 if test "$cf_cv_mixedcase" = yes ; then
2846 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2847 set dummy ${ETAGS:-etags}; ac_word=$2
2848 echo "$as_me:2848: checking for $ac_word" >&5
2849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2850 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2851 echo $ECHO_N "(cached) $ECHO_C" >&6
2853 if test -n "$MAKE_UPPER_TAGS"; then
2854 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2856 ac_save_IFS=$IFS; IFS=$ac_path_separator
2858 for ac_dir in $ac_dummy; do
2860 test -z "$ac_dir" && ac_dir=.
2861 $as_executable_p "$ac_dir/$ac_word" || continue
2862 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2863 echo "$as_me:2863: found $ac_dir/$ac_word" >&5
2867 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2870 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2871 if test -n "$MAKE_UPPER_TAGS"; then
2872 echo "$as_me:2872: result: $MAKE_UPPER_TAGS" >&5
2873 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2875 echo "$as_me:2875: result: no" >&5
2876 echo "${ECHO_T}no" >&6
2883 if test "$MAKE_UPPER_TAGS" = yes ; then
2889 if test "$MAKE_LOWER_TAGS" = yes ; then
2895 echo "$as_me:2895: checking for makeflags variable" >&5
2896 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
2897 if test "${cf_cv_makeflags+set}" = set; then
2898 echo $ECHO_N "(cached) $ECHO_C" >&6
2902 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
2904 cat >cf_makeflags.tmp <<CF_EOF
2907 @ echo '.$cf_option'
2909 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
2910 case "$cf_result" in
2912 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
2913 case "$cf_result" in
2914 (.*CC=*) cf_cv_makeflags=
2916 (*) cf_cv_makeflags=$cf_option
2922 (*) echo "given option \"$cf_option\", no match \"$cf_result\""
2926 rm -f cf_makeflags.tmp
2929 echo "$as_me:2929: result: $cf_cv_makeflags" >&5
2930 echo "${ECHO_T}$cf_cv_makeflags" >&6
2932 if test -n "$ac_tool_prefix"; then
2933 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2934 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2935 echo "$as_me:2935: checking for $ac_word" >&5
2936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2937 if test "${ac_cv_prog_RANLIB+set}" = set; then
2938 echo $ECHO_N "(cached) $ECHO_C" >&6
2940 if test -n "$RANLIB"; then
2941 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2943 ac_save_IFS=$IFS; IFS=$ac_path_separator
2945 for ac_dir in $ac_dummy; do
2947 test -z "$ac_dir" && ac_dir=.
2948 $as_executable_p "$ac_dir/$ac_word" || continue
2949 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2950 echo "$as_me:2950: found $ac_dir/$ac_word" >&5
2956 RANLIB=$ac_cv_prog_RANLIB
2957 if test -n "$RANLIB"; then
2958 echo "$as_me:2958: result: $RANLIB" >&5
2959 echo "${ECHO_T}$RANLIB" >&6
2961 echo "$as_me:2961: result: no" >&5
2962 echo "${ECHO_T}no" >&6
2966 if test -z "$ac_cv_prog_RANLIB"; then
2967 ac_ct_RANLIB=$RANLIB
2968 # Extract the first word of "ranlib", so it can be a program name with args.
2969 set dummy ranlib; ac_word=$2
2970 echo "$as_me:2970: checking for $ac_word" >&5
2971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2972 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2973 echo $ECHO_N "(cached) $ECHO_C" >&6
2975 if test -n "$ac_ct_RANLIB"; then
2976 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2978 ac_save_IFS=$IFS; IFS=$ac_path_separator
2980 for ac_dir in $ac_dummy; do
2982 test -z "$ac_dir" && ac_dir=.
2983 $as_executable_p "$ac_dir/$ac_word" || continue
2984 ac_cv_prog_ac_ct_RANLIB="ranlib"
2985 echo "$as_me:2985: found $ac_dir/$ac_word" >&5
2989 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
2992 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2993 if test -n "$ac_ct_RANLIB"; then
2994 echo "$as_me:2994: result: $ac_ct_RANLIB" >&5
2995 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2997 echo "$as_me:2997: result: no" >&5
2998 echo "${ECHO_T}no" >&6
3001 RANLIB=$ac_ct_RANLIB
3003 RANLIB="$ac_cv_prog_RANLIB"
3006 if test -n "$ac_tool_prefix"; then
3007 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3008 set dummy ${ac_tool_prefix}ld; ac_word=$2
3009 echo "$as_me:3009: checking for $ac_word" >&5
3010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3011 if test "${ac_cv_prog_LD+set}" = set; then
3012 echo $ECHO_N "(cached) $ECHO_C" >&6
3014 if test -n "$LD"; then
3015 ac_cv_prog_LD="$LD" # Let the user override the test.
3017 ac_save_IFS=$IFS; IFS=$ac_path_separator
3019 for ac_dir in $ac_dummy; do
3021 test -z "$ac_dir" && ac_dir=.
3022 $as_executable_p "$ac_dir/$ac_word" || continue
3023 ac_cv_prog_LD="${ac_tool_prefix}ld"
3024 echo "$as_me:3024: found $ac_dir/$ac_word" >&5
3031 if test -n "$LD"; then
3032 echo "$as_me:3032: result: $LD" >&5
3033 echo "${ECHO_T}$LD" >&6
3035 echo "$as_me:3035: result: no" >&5
3036 echo "${ECHO_T}no" >&6
3040 if test -z "$ac_cv_prog_LD"; then
3042 # Extract the first word of "ld", so it can be a program name with args.
3043 set dummy ld; ac_word=$2
3044 echo "$as_me:3044: checking for $ac_word" >&5
3045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3046 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3047 echo $ECHO_N "(cached) $ECHO_C" >&6
3049 if test -n "$ac_ct_LD"; then
3050 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3052 ac_save_IFS=$IFS; IFS=$ac_path_separator
3054 for ac_dir in $ac_dummy; do
3056 test -z "$ac_dir" && ac_dir=.
3057 $as_executable_p "$ac_dir/$ac_word" || continue
3058 ac_cv_prog_ac_ct_LD="ld"
3059 echo "$as_me:3059: found $ac_dir/$ac_word" >&5
3063 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3066 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3067 if test -n "$ac_ct_LD"; then
3068 echo "$as_me:3068: result: $ac_ct_LD" >&5
3069 echo "${ECHO_T}$ac_ct_LD" >&6
3071 echo "$as_me:3071: result: no" >&5
3072 echo "${ECHO_T}no" >&6
3080 if test -n "$ac_tool_prefix"; then
3081 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3082 set dummy ${ac_tool_prefix}ar; ac_word=$2
3083 echo "$as_me:3083: checking for $ac_word" >&5
3084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3085 if test "${ac_cv_prog_AR+set}" = set; then
3086 echo $ECHO_N "(cached) $ECHO_C" >&6
3088 if test -n "$AR"; then
3089 ac_cv_prog_AR="$AR" # Let the user override the test.
3091 ac_save_IFS=$IFS; IFS=$ac_path_separator
3093 for ac_dir in $ac_dummy; do
3095 test -z "$ac_dir" && ac_dir=.
3096 $as_executable_p "$ac_dir/$ac_word" || continue
3097 ac_cv_prog_AR="${ac_tool_prefix}ar"
3098 echo "$as_me:3098: found $ac_dir/$ac_word" >&5
3105 if test -n "$AR"; then
3106 echo "$as_me:3106: result: $AR" >&5
3107 echo "${ECHO_T}$AR" >&6
3109 echo "$as_me:3109: result: no" >&5
3110 echo "${ECHO_T}no" >&6
3114 if test -z "$ac_cv_prog_AR"; then
3116 # Extract the first word of "ar", so it can be a program name with args.
3117 set dummy ar; ac_word=$2
3118 echo "$as_me:3118: checking for $ac_word" >&5
3119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3120 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3121 echo $ECHO_N "(cached) $ECHO_C" >&6
3123 if test -n "$ac_ct_AR"; then
3124 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3126 ac_save_IFS=$IFS; IFS=$ac_path_separator
3128 for ac_dir in $ac_dummy; do
3130 test -z "$ac_dir" && ac_dir=.
3131 $as_executable_p "$ac_dir/$ac_word" || continue
3132 ac_cv_prog_ac_ct_AR="ar"
3133 echo "$as_me:3133: found $ac_dir/$ac_word" >&5
3137 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3140 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3141 if test -n "$ac_ct_AR"; then
3142 echo "$as_me:3142: result: $ac_ct_AR" >&5
3143 echo "${ECHO_T}$ac_ct_AR" >&6
3145 echo "$as_me:3145: result: no" >&5
3146 echo "${ECHO_T}no" >&6
3154 if test -n "$ac_tool_prefix"; then
3155 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3156 set dummy ${ac_tool_prefix}ar; ac_word=$2
3157 echo "$as_me:3157: checking for $ac_word" >&5
3158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3159 if test "${ac_cv_prog_AR+set}" = set; then
3160 echo $ECHO_N "(cached) $ECHO_C" >&6
3162 if test -n "$AR"; then
3163 ac_cv_prog_AR="$AR" # Let the user override the test.
3165 ac_save_IFS=$IFS; IFS=$ac_path_separator
3167 for ac_dir in $ac_dummy; do
3169 test -z "$ac_dir" && ac_dir=.
3170 $as_executable_p "$ac_dir/$ac_word" || continue
3171 ac_cv_prog_AR="${ac_tool_prefix}ar"
3172 echo "$as_me:3172: found $ac_dir/$ac_word" >&5
3179 if test -n "$AR"; then
3180 echo "$as_me:3180: result: $AR" >&5
3181 echo "${ECHO_T}$AR" >&6
3183 echo "$as_me:3183: result: no" >&5
3184 echo "${ECHO_T}no" >&6
3188 if test -z "$ac_cv_prog_AR"; then
3190 # Extract the first word of "ar", so it can be a program name with args.
3191 set dummy ar; ac_word=$2
3192 echo "$as_me:3192: checking for $ac_word" >&5
3193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3194 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3195 echo $ECHO_N "(cached) $ECHO_C" >&6
3197 if test -n "$ac_ct_AR"; then
3198 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3200 ac_save_IFS=$IFS; IFS=$ac_path_separator
3202 for ac_dir in $ac_dummy; do
3204 test -z "$ac_dir" && ac_dir=.
3205 $as_executable_p "$ac_dir/$ac_word" || continue
3206 ac_cv_prog_ac_ct_AR="ar"
3207 echo "$as_me:3207: found $ac_dir/$ac_word" >&5
3211 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3214 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3215 if test -n "$ac_ct_AR"; then
3216 echo "$as_me:3216: result: $ac_ct_AR" >&5
3217 echo "${ECHO_T}$ac_ct_AR" >&6
3219 echo "$as_me:3219: result: no" >&5
3220 echo "${ECHO_T}no" >&6
3228 echo "$as_me:3228: checking for options to update archives" >&5
3229 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
3230 if test "${cf_cv_ar_flags+set}" = set; then
3231 echo $ECHO_N "(cached) $ECHO_C" >&6
3234 cf_cv_ar_flags=unknown
3235 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
3238 # check if $ARFLAGS already contains this choice
3239 if test "x$ARFLAGS" != "x" ; then
3240 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
3241 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
3247 rm -f conftest.$ac_cv_objext
3250 cat >conftest.$ac_ext <<EOF
3251 #line 3251 "configure"
3252 int testdata[3] = { 123, 456, 789 };
3254 if { (eval echo "$as_me:3254: \"$ac_compile\"") >&5
3255 (eval $ac_compile) 2>&5
3257 echo "$as_me:3257: \$? = $ac_status" >&5
3258 (exit $ac_status); } ; then
3259 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
3260 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
3261 if test -f conftest.a ; then
3262 cf_cv_ar_flags=$cf_ar_flags
3266 test -n "$verbose" && echo " cannot compile test-program" 1>&6
3268 echo "${as_me:-configure}:3268: testing cannot compile test-program ..." 1>&5
3273 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
3276 echo "$as_me:3276: result: $cf_cv_ar_flags" >&5
3277 echo "${ECHO_T}$cf_cv_ar_flags" >&6
3279 if test -n "$ARFLAGS" ; then
3280 if test -n "$cf_cv_ar_flags" ; then
3281 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
3284 ARFLAGS=$cf_cv_ar_flags
3287 echo "$as_me:3287: checking for PATH separator" >&5
3288 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
3289 case $cf_cv_system_name in
3290 (os2*) PATH_SEPARATOR=';' ;;
3291 (*) ${PATH_SEPARATOR:=':'} ;;
3294 echo "$as_me:3294: result: $PATH_SEPARATOR" >&5
3295 echo "${ECHO_T}$PATH_SEPARATOR" >&6
3297 echo "$as_me:3297: checking if you have specified an install-prefix" >&5
3298 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
3300 # Check whether --with-install-prefix or --without-install-prefix was given.
3301 if test "${with_install_prefix+set}" = set; then
3302 withval="$with_install_prefix"
3306 (*) DESTDIR="$withval"
3310 echo "$as_me:3310: result: $DESTDIR" >&5
3311 echo "${ECHO_T}$DESTDIR" >&6
3313 ###############################################################################
3315 # If we're cross-compiling, allow the user to override the tools and their
3316 # options. The configure script is oriented toward identifying the host
3317 # compiler, etc., but we need a build compiler to generate parts of the source.
3319 if test "$cross_compiling" = yes ; then
3321 # defaults that we might want to override
3322 : ${BUILD_CFLAGS:=''}
3323 : ${BUILD_CPPFLAGS:=''}
3324 : ${BUILD_LDFLAGS:=''}
3326 : ${BUILD_EXEEXT:='$x'}
3327 : ${BUILD_OBJEXT:='o'}
3329 # Check whether --with-build-cc or --without-build-cc was given.
3330 if test "${with_build_cc+set}" = set; then
3331 withval="$with_build_cc"
3334 for ac_prog in gcc cc cl
3336 # Extract the first word of "$ac_prog", so it can be a program name with args.
3337 set dummy $ac_prog; ac_word=$2
3338 echo "$as_me:3338: checking for $ac_word" >&5
3339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3340 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3341 echo $ECHO_N "(cached) $ECHO_C" >&6
3343 if test -n "$BUILD_CC"; then
3344 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3346 ac_save_IFS=$IFS; IFS=$ac_path_separator
3348 for ac_dir in $ac_dummy; do
3350 test -z "$ac_dir" && ac_dir=.
3351 $as_executable_p "$ac_dir/$ac_word" || continue
3352 ac_cv_prog_BUILD_CC="$ac_prog"
3353 echo "$as_me:3353: found $ac_dir/$ac_word" >&5
3359 BUILD_CC=$ac_cv_prog_BUILD_CC
3360 if test -n "$BUILD_CC"; then
3361 echo "$as_me:3361: result: $BUILD_CC" >&5
3362 echo "${ECHO_T}$BUILD_CC" >&6
3364 echo "$as_me:3364: result: no" >&5
3365 echo "${ECHO_T}no" >&6
3368 test -n "$BUILD_CC" && break
3372 echo "$as_me:3372: checking for native build C compiler" >&5
3373 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
3374 echo "$as_me:3374: result: $BUILD_CC" >&5
3375 echo "${ECHO_T}$BUILD_CC" >&6
3377 echo "$as_me:3377: checking for native build C preprocessor" >&5
3378 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
3380 # Check whether --with-build-cpp or --without-build-cpp was given.
3381 if test "${with_build_cpp+set}" = set; then
3382 withval="$with_build_cpp"
3383 BUILD_CPP="$withval"
3385 BUILD_CPP='${BUILD_CC} -E'
3387 echo "$as_me:3387: result: $BUILD_CPP" >&5
3388 echo "${ECHO_T}$BUILD_CPP" >&6
3390 echo "$as_me:3390: checking for native build C flags" >&5
3391 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
3393 # Check whether --with-build-cflags or --without-build-cflags was given.
3394 if test "${with_build_cflags+set}" = set; then
3395 withval="$with_build_cflags"
3396 BUILD_CFLAGS="$withval"
3398 echo "$as_me:3398: result: $BUILD_CFLAGS" >&5
3399 echo "${ECHO_T}$BUILD_CFLAGS" >&6
3401 echo "$as_me:3401: checking for native build C preprocessor-flags" >&5
3402 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
3404 # Check whether --with-build-cppflags or --without-build-cppflags was given.
3405 if test "${with_build_cppflags+set}" = set; then
3406 withval="$with_build_cppflags"
3407 BUILD_CPPFLAGS="$withval"
3409 echo "$as_me:3409: result: $BUILD_CPPFLAGS" >&5
3410 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
3412 echo "$as_me:3412: checking for native build linker-flags" >&5
3413 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
3415 # Check whether --with-build-ldflags or --without-build-ldflags was given.
3416 if test "${with_build_ldflags+set}" = set; then
3417 withval="$with_build_ldflags"
3418 BUILD_LDFLAGS="$withval"
3420 echo "$as_me:3420: result: $BUILD_LDFLAGS" >&5
3421 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
3423 echo "$as_me:3423: checking for native build linker-libraries" >&5
3424 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
3426 # Check whether --with-build-libs or --without-build-libs was given.
3427 if test "${with_build_libs+set}" = set; then
3428 withval="$with_build_libs"
3429 BUILD_LIBS="$withval"
3431 echo "$as_me:3431: result: $BUILD_LIBS" >&5
3432 echo "${ECHO_T}$BUILD_LIBS" >&6
3434 # this assumes we're on Unix.
3438 : ${BUILD_CC:='${CC}'}
3440 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
3441 { { echo "$as_me:3441: error: Cross-build requires two compilers.
3442 Use --with-build-cc to specify the native compiler." >&5
3443 echo "$as_me: error: Cross-build requires two compilers.
3444 Use --with-build-cc to specify the native compiler." >&2;}
3445 { (exit 1); exit 1; }; }
3449 : ${BUILD_CC:='${CC}'}
3450 : ${BUILD_CPP:='${CPP}'}
3451 : ${BUILD_CFLAGS:='${CFLAGS}'}
3452 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
3453 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
3454 : ${BUILD_LIBS:='${LIBS}'}
3455 : ${BUILD_EXEEXT:='$x'}
3456 : ${BUILD_OBJEXT:='o'}
3459 ###############################################################################
3461 ### Options to allow the user to specify the set of libraries which are used.
3462 ### Use "--without-normal --with-shared" to allow the default model to be
3463 ### shared, for example.
3466 echo "$as_me:3466: checking if you want to build shared C-objects" >&5
3467 echo $ECHO_N "checking if you want to build shared C-objects... $ECHO_C" >&6
3469 # Check whether --with-shared or --without-shared was given.
3470 if test "${with_shared+set}" = set; then
3471 withval="$with_shared"
3472 with_shared=$withval
3476 echo "$as_me:3476: result: $with_shared" >&5
3477 echo "${ECHO_T}$with_shared" >&6
3478 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
3480 echo "$as_me:3480: checking for specified models" >&5
3481 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
3482 test -z "$cf_list_models" && cf_list_models=normal
3483 echo "$as_me:3483: result: $cf_list_models" >&5
3484 echo "${ECHO_T}$cf_list_models" >&6
3486 ### Use the first model as the default, and save its suffix for use in building
3487 ### up test-applications.
3488 echo "$as_me:3488: checking for default model" >&5
3489 echo $ECHO_N "checking for default model... $ECHO_C" >&6
3490 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
3491 echo "$as_me:3491: result: $DFT_LWR_MODEL" >&5
3492 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
3494 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3496 echo "$as_me:3496: checking for specific curses-directory" >&5
3497 echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6
3499 # Check whether --with-curses-dir or --without-curses-dir was given.
3500 if test "${with_curses_dir+set}" = set; then
3501 withval="$with_curses_dir"
3502 cf_cv_curses_dir=$withval
3506 echo "$as_me:3506: result: $cf_cv_curses_dir" >&5
3507 echo "${ECHO_T}$cf_cv_curses_dir" >&6
3509 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
3512 if test "x$prefix" != xNONE; then
3513 cf_path_syntax="$prefix"
3515 cf_path_syntax="$ac_default_prefix"
3523 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3525 (.\${*prefix}*|.\${*dir}*)
3526 eval withval="$withval"
3529 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
3534 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
3537 { { echo "$as_me:3537: error: expected a pathname, not \"$withval\"" >&5
3538 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
3539 { (exit 1); exit 1; }; }
3543 if test -d "$cf_cv_curses_dir"
3546 if test -n "$cf_cv_curses_dir/include" ; then
3547 for cf_add_incdir in $cf_cv_curses_dir/include
3549 while test $cf_add_incdir != /usr/include
3551 if test -d $cf_add_incdir
3554 if test -n "$CFLAGS$CPPFLAGS" ; then
3555 # a loop is needed to ensure we can add subdirs of existing dirs
3556 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
3557 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
3558 cf_have_incdir=yes; break
3563 if test "$cf_have_incdir" = no ; then
3564 if test "$cf_add_incdir" = /usr/local/include ; then
3565 if test "$GCC" = yes
3567 cf_save_CPPFLAGS=$CPPFLAGS
3568 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
3569 cat >conftest.$ac_ext <<_ACEOF
3570 #line 3570 "configure"
3571 #include "confdefs.h"
3581 rm -f conftest.$ac_objext
3582 if { (eval echo "$as_me:3582: \"$ac_compile\"") >&5
3583 (eval $ac_compile) 2>&5
3585 echo "$as_me:3585: \$? = $ac_status" >&5
3586 (exit $ac_status); } &&
3587 { ac_try='test -s conftest.$ac_objext'
3588 { (eval echo "$as_me:3588: \"$ac_try\"") >&5
3591 echo "$as_me:3591: \$? = $ac_status" >&5
3592 (exit $ac_status); }; }; then
3595 echo "$as_me: failed program was:" >&5
3596 cat conftest.$ac_ext >&5
3599 rm -f conftest.$ac_objext conftest.$ac_ext
3600 CPPFLAGS=$cf_save_CPPFLAGS
3605 if test "$cf_have_incdir" = no ; then
3606 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
3608 echo "${as_me:-configure}:3608: testing adding $cf_add_incdir to include-path ..." 1>&5
3610 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
3612 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
3613 test "$cf_top_incdir" = "$cf_add_incdir" && break
3614 cf_add_incdir="$cf_top_incdir"
3625 if test -n "$cf_cv_curses_dir/lib" ; then
3626 for cf_add_libdir in $cf_cv_curses_dir/lib
3628 if test $cf_add_libdir = /usr/lib ; then
3630 elif test -d $cf_add_libdir
3633 if test -n "$LDFLAGS$LIBS" ; then
3634 # a loop is needed to ensure we can add subdirs of existing dirs
3635 for cf_test_libdir in $LDFLAGS $LIBS ; do
3636 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
3637 cf_have_libdir=yes; break
3641 if test "$cf_have_libdir" = no ; then
3642 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
3644 echo "${as_me:-configure}:3644: testing adding $cf_add_libdir to library-path ..." 1>&5
3646 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
3655 cf_ncuconfig_root=ncurses
3656 cf_have_ncuconfig=no
3658 if test "x${PKG_CONFIG:=none}" != xnone; then
3659 echo "$as_me:3659: checking pkg-config for $cf_ncuconfig_root" >&5
3660 echo $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6
3661 if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then
3662 echo "$as_me:3662: result: yes" >&5
3663 echo "${ECHO_T}yes" >&6
3665 echo "$as_me:3665: checking if the $cf_ncuconfig_root package files work" >&5
3666 echo $ECHO_N "checking if the $cf_ncuconfig_root package files work... $ECHO_C" >&6
3667 cf_have_ncuconfig=unknown
3669 cf_save_CPPFLAGS="$CPPFLAGS"
3670 cf_save_LIBS="$LIBS"
3672 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG --cflags $cf_ncuconfig_root`"
3674 cf_add_libs="`$PKG_CONFIG --libs $cf_ncuconfig_root`"
3675 # Filter out duplicates - this happens with badly-designed ".pc" files...
3676 for cf_add_1lib in $LIBS
3678 for cf_add_2lib in $cf_add_libs
3680 if test "x$cf_add_1lib" = "x$cf_add_2lib"
3686 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
3690 cat >conftest.$ac_ext <<_ACEOF
3691 #line 3691 "configure"
3692 #include "confdefs.h"
3693 #include <${cf_cv_ncurses_header:-curses.h}>
3697 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
3702 rm -f conftest.$ac_objext conftest$ac_exeext
3703 if { (eval echo "$as_me:3703: \"$ac_link\"") >&5
3704 (eval $ac_link) 2>&5
3706 echo "$as_me:3706: \$? = $ac_status" >&5
3707 (exit $ac_status); } &&
3708 { ac_try='test -s conftest$ac_exeext'
3709 { (eval echo "$as_me:3709: \"$ac_try\"") >&5
3712 echo "$as_me:3712: \$? = $ac_status" >&5
3713 (exit $ac_status); }; }; then
3714 if test "$cross_compiling" = yes; then
3715 cf_have_ncuconfig=maybe
3717 cat >conftest.$ac_ext <<_ACEOF
3718 #line 3718 "configure"
3719 #include "confdefs.h"
3720 #include <${cf_cv_ncurses_header:-curses.h}>
3722 { char *xx = curses_version(); return (xx == 0); }
3724 rm -f conftest$ac_exeext
3725 if { (eval echo "$as_me:3725: \"$ac_link\"") >&5
3726 (eval $ac_link) 2>&5
3728 echo "$as_me:3728: \$? = $ac_status" >&5
3729 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3730 { (eval echo "$as_me:3730: \"$ac_try\"") >&5
3733 echo "$as_me:3733: \$? = $ac_status" >&5
3734 (exit $ac_status); }; }; then
3735 cf_have_ncuconfig=yes
3737 echo "$as_me: program exited with status $ac_status" >&5
3738 echo "$as_me: failed program was:" >&5
3739 cat conftest.$ac_ext >&5
3740 cf_have_ncuconfig=no
3742 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3745 echo "$as_me: failed program was:" >&5
3746 cat conftest.$ac_ext >&5
3747 cf_have_ncuconfig=no
3749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3750 echo "$as_me:3750: result: $cf_have_ncuconfig" >&5
3751 echo "${ECHO_T}$cf_have_ncuconfig" >&6
3752 test "$cf_have_ncuconfig" = maybe && cf_have_ncuconfig=yes
3753 if test "$cf_have_ncuconfig" != "yes"
3755 CPPFLAGS="$cf_save_CPPFLAGS"
3756 LIBS="$cf_save_LIBS"
3757 NCURSES_CONFIG_PKG=none
3760 cat >>confdefs.h <<\EOF
3764 NCURSES_CONFIG_PKG=$cf_ncuconfig_root
3768 echo "$as_me:3768: result: no" >&5
3769 echo "${ECHO_T}no" >&6
3770 NCURSES_CONFIG_PKG=none
3773 NCURSES_CONFIG_PKG=none
3776 if test "x$cf_have_ncuconfig" = "xno"; then
3777 echo "Looking for ${cf_ncuconfig_root}-config"
3779 if test -n "$ac_tool_prefix"; then
3780 for ac_prog in ${cf_ncuconfig_root}-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
3782 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3783 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3784 echo "$as_me:3784: checking for $ac_word" >&5
3785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3786 if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3789 if test -n "$NCURSES_CONFIG"; then
3790 ac_cv_prog_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test.
3792 ac_save_IFS=$IFS; IFS=$ac_path_separator
3794 for ac_dir in $ac_dummy; do
3796 test -z "$ac_dir" && ac_dir=.
3797 $as_executable_p "$ac_dir/$ac_word" || continue
3798 ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog"
3799 echo "$as_me:3799: found $ac_dir/$ac_word" >&5
3805 NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG
3806 if test -n "$NCURSES_CONFIG"; then
3807 echo "$as_me:3807: result: $NCURSES_CONFIG" >&5
3808 echo "${ECHO_T}$NCURSES_CONFIG" >&6
3810 echo "$as_me:3810: result: no" >&5
3811 echo "${ECHO_T}no" >&6
3814 test -n "$NCURSES_CONFIG" && break
3817 if test -z "$NCURSES_CONFIG"; then
3818 ac_ct_NCURSES_CONFIG=$NCURSES_CONFIG
3819 for ac_prog in ${cf_ncuconfig_root}-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
3821 # Extract the first word of "$ac_prog", so it can be a program name with args.
3822 set dummy $ac_prog; ac_word=$2
3823 echo "$as_me:3823: checking for $ac_word" >&5
3824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3825 if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
3826 echo $ECHO_N "(cached) $ECHO_C" >&6
3828 if test -n "$ac_ct_NCURSES_CONFIG"; then
3829 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_ct_NCURSES_CONFIG" # Let the user override the test.
3831 ac_save_IFS=$IFS; IFS=$ac_path_separator
3833 for ac_dir in $ac_dummy; do
3835 test -z "$ac_dir" && ac_dir=.
3836 $as_executable_p "$ac_dir/$ac_word" || continue
3837 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog"
3838 echo "$as_me:3838: found $ac_dir/$ac_word" >&5
3844 ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG
3845 if test -n "$ac_ct_NCURSES_CONFIG"; then
3846 echo "$as_me:3846: result: $ac_ct_NCURSES_CONFIG" >&5
3847 echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
3849 echo "$as_me:3849: result: no" >&5
3850 echo "${ECHO_T}no" >&6
3853 test -n "$ac_ct_NCURSES_CONFIG" && break
3855 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
3857 NCURSES_CONFIG=$ac_ct_NCURSES_CONFIG
3860 if test "$NCURSES_CONFIG" != none ; then
3862 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
3864 cf_add_libs="`$NCURSES_CONFIG --libs`"
3865 # Filter out duplicates - this happens with badly-designed ".pc" files...
3866 for cf_add_1lib in $LIBS
3868 for cf_add_2lib in $cf_add_libs
3870 if test "x$cf_add_1lib" = "x$cf_add_2lib"
3876 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
3880 # even with config script, some packages use no-override for curses.h
3882 echo "$as_me:3882: checking if we have identified curses headers" >&5
3883 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
3884 if test "${cf_cv_ncurses_header+set}" = set; then
3885 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 cf_cv_ncurses_header=none
3890 ncurses.h ncurses/ncurses.h \
3891 curses.h ncurses/curses.h
3893 cat >conftest.$ac_ext <<_ACEOF
3894 #line 3894 "configure"
3895 #include "confdefs.h"
3896 #include <${cf_header}>
3900 initscr(); tgoto("?", 0,0)
3905 rm -f conftest.$ac_objext
3906 if { (eval echo "$as_me:3906: \"$ac_compile\"") >&5
3907 (eval $ac_compile) 2>&5
3909 echo "$as_me:3909: \$? = $ac_status" >&5
3910 (exit $ac_status); } &&
3911 { ac_try='test -s conftest.$ac_objext'
3912 { (eval echo "$as_me:3912: \"$ac_try\"") >&5
3915 echo "$as_me:3915: \$? = $ac_status" >&5
3916 (exit $ac_status); }; }; then
3917 cf_cv_ncurses_header=$cf_header; break
3919 echo "$as_me: failed program was:" >&5
3920 cat conftest.$ac_ext >&5
3922 rm -f conftest.$ac_objext conftest.$ac_ext
3926 echo "$as_me:3926: result: $cf_cv_ncurses_header" >&5
3927 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
3929 if test "$cf_cv_ncurses_header" = none ; then
3930 { { echo "$as_me:3930: error: No curses header-files found" >&5
3931 echo "$as_me: error: No curses header-files found" >&2;}
3932 { (exit 1); exit 1; }; }
3935 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
3937 for ac_header in $cf_cv_ncurses_header
3939 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3940 echo "$as_me:3940: checking for $ac_header" >&5
3941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3945 cat >conftest.$ac_ext <<_ACEOF
3946 #line 3946 "configure"
3947 #include "confdefs.h"
3948 #include <$ac_header>
3950 if { (eval echo "$as_me:3950: \"$ac_cpp conftest.$ac_ext\"") >&5
3951 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3953 egrep -v '^ *\+' conftest.er1 >conftest.err
3955 cat conftest.err >&5
3956 echo "$as_me:3956: \$? = $ac_status" >&5
3957 (exit $ac_status); } >/dev/null; then
3958 if test -s conftest.err; then
3959 ac_cpp_err=$ac_c_preproc_warn_flag
3966 if test -z "$ac_cpp_err"; then
3967 eval "$as_ac_Header=yes"
3969 echo "$as_me: failed program was:" >&5
3970 cat conftest.$ac_ext >&5
3971 eval "$as_ac_Header=no"
3973 rm -f conftest.err conftest.$ac_ext
3975 echo "$as_me:3975: result: `eval echo '${'$as_ac_Header'}'`" >&5
3976 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3978 cat >>confdefs.h <<EOF
3979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3985 cat >>confdefs.h <<\EOF
3989 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3991 cat >>confdefs.h <<EOF
3992 #define $cf_nculib_ROOT 1
3995 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
3999 cf_ncuhdr_root=ncurses
4001 test -n "$cf_cv_curses_dir" && \
4002 test "$cf_cv_curses_dir" != "no" && { \
4004 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
4005 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
4007 while test $cf_add_incdir != /usr/include
4009 if test -d $cf_add_incdir
4012 if test -n "$CFLAGS$CPPFLAGS" ; then
4013 # a loop is needed to ensure we can add subdirs of existing dirs
4014 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4015 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4016 cf_have_incdir=yes; break
4021 if test "$cf_have_incdir" = no ; then
4022 if test "$cf_add_incdir" = /usr/local/include ; then
4023 if test "$GCC" = yes
4025 cf_save_CPPFLAGS=$CPPFLAGS
4026 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4027 cat >conftest.$ac_ext <<_ACEOF
4028 #line 4028 "configure"
4029 #include "confdefs.h"
4039 rm -f conftest.$ac_objext
4040 if { (eval echo "$as_me:4040: \"$ac_compile\"") >&5
4041 (eval $ac_compile) 2>&5
4043 echo "$as_me:4043: \$? = $ac_status" >&5
4044 (exit $ac_status); } &&
4045 { ac_try='test -s conftest.$ac_objext'
4046 { (eval echo "$as_me:4046: \"$ac_try\"") >&5
4049 echo "$as_me:4049: \$? = $ac_status" >&5
4050 (exit $ac_status); }; }; then
4053 echo "$as_me: failed program was:" >&5
4054 cat conftest.$ac_ext >&5
4057 rm -f conftest.$ac_objext conftest.$ac_ext
4058 CPPFLAGS=$cf_save_CPPFLAGS
4063 if test "$cf_have_incdir" = no ; then
4064 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4066 echo "${as_me:-configure}:4066: testing adding $cf_add_incdir to include-path ..." 1>&5
4068 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4070 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4071 test "$cf_top_incdir" = "$cf_add_incdir" && break
4072 cf_add_incdir="$cf_top_incdir"
4085 echo "$as_me:4085: checking for $cf_ncuhdr_root header in include-path" >&5
4086 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
4087 if test "${cf_cv_ncurses_h+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
4091 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
4092 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
4093 for cf_header in $cf_header_list
4096 cat >conftest.$ac_ext <<_ACEOF
4097 #line 4097 "configure"
4098 #include "confdefs.h"
4100 #include <$cf_header>
4105 #ifdef NCURSES_VERSION
4107 printf("%s\n", NCURSES_VERSION);
4120 rm -f conftest.$ac_objext
4121 if { (eval echo "$as_me:4121: \"$ac_compile\"") >&5
4122 (eval $ac_compile) 2>&5
4124 echo "$as_me:4124: \$? = $ac_status" >&5
4125 (exit $ac_status); } &&
4126 { ac_try='test -s conftest.$ac_objext'
4127 { (eval echo "$as_me:4127: \"$ac_try\"") >&5
4130 echo "$as_me:4130: \$? = $ac_status" >&5
4131 (exit $ac_status); }; }; then
4132 cf_cv_ncurses_h=$cf_header
4135 echo "$as_me: failed program was:" >&5
4136 cat conftest.$ac_ext >&5
4139 rm -f conftest.$ac_objext conftest.$ac_ext
4141 test "$cf_cv_ncurses_h" != no && break
4145 echo "$as_me:4145: result: $cf_cv_ncurses_h" >&5
4146 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
4148 if test "$cf_cv_ncurses_h" != no ; then
4149 cf_cv_ncurses_header=$cf_cv_ncurses_h
4152 echo "$as_me:4152: checking for $cf_ncuhdr_root include-path" >&5
4153 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
4154 if test "${cf_cv_ncurses_h2+set}" = set; then
4155 echo $ECHO_N "(cached) $ECHO_C" >&6
4158 test -n "$verbose" && echo
4162 # collect the current set of include-directories from compiler flags
4163 cf_header_path_list=""
4164 if test -n "${CFLAGS}${CPPFLAGS}" ; then
4165 for cf_header_path in $CPPFLAGS $CFLAGS
4167 case $cf_header_path in
4169 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
4171 test "x$cf_header_path" != "xNONE" && \
4172 test -d "$cf_header_path" && \
4174 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
4175 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
4176 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
4177 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
4178 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
4179 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"
4182 cf_header_path_list="$cf_header_path_list $cf_search"
4188 # add the variations for the package we are looking for
4192 test "x$prefix" != "xNONE" && \
4193 test -d "$prefix" && \
4195 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
4196 test -d $prefix/include && cf_search="$cf_search $prefix/include"
4197 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
4198 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
4199 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
4200 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
4203 for cf_subdir_prefix in \
4212 test "x$cf_subdir_prefix" != "x$prefix" && \
4213 test -d "$cf_subdir_prefix" && \
4214 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
4215 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
4216 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
4217 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root"
4218 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root/include"
4219 test -d $cf_subdir_prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include"
4220 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"
4225 test "$includedir" != NONE && \
4226 test "$includedir" != "/usr/include" && \
4227 test -d "$includedir" && {
4228 test -d $includedir && cf_search="$cf_search $includedir"
4229 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
4232 test "$oldincludedir" != NONE && \
4233 test "$oldincludedir" != "/usr/include" && \
4234 test -d "$oldincludedir" && {
4235 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
4236 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
4239 cf_search="$cf_search $cf_header_path_list"
4241 test -n "$verbose" && echo search path $cf_search
4242 cf_save2_CPPFLAGS="$CPPFLAGS"
4243 for cf_incdir in $cf_search
4246 if test -n "$cf_incdir" ; then
4247 for cf_add_incdir in $cf_incdir
4249 while test $cf_add_incdir != /usr/include
4251 if test -d $cf_add_incdir
4254 if test -n "$CFLAGS$CPPFLAGS" ; then
4255 # a loop is needed to ensure we can add subdirs of existing dirs
4256 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4257 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4258 cf_have_incdir=yes; break
4263 if test "$cf_have_incdir" = no ; then
4264 if test "$cf_add_incdir" = /usr/local/include ; then
4265 if test "$GCC" = yes
4267 cf_save_CPPFLAGS=$CPPFLAGS
4268 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4269 cat >conftest.$ac_ext <<_ACEOF
4270 #line 4270 "configure"
4271 #include "confdefs.h"
4281 rm -f conftest.$ac_objext
4282 if { (eval echo "$as_me:4282: \"$ac_compile\"") >&5
4283 (eval $ac_compile) 2>&5
4285 echo "$as_me:4285: \$? = $ac_status" >&5
4286 (exit $ac_status); } &&
4287 { ac_try='test -s conftest.$ac_objext'
4288 { (eval echo "$as_me:4288: \"$ac_try\"") >&5
4291 echo "$as_me:4291: \$? = $ac_status" >&5
4292 (exit $ac_status); }; }; then
4295 echo "$as_me: failed program was:" >&5
4296 cat conftest.$ac_ext >&5
4299 rm -f conftest.$ac_objext conftest.$ac_ext
4300 CPPFLAGS=$cf_save_CPPFLAGS
4305 if test "$cf_have_incdir" = no ; then
4306 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4308 echo "${as_me:-configure}:4308: testing adding $cf_add_incdir to include-path ..." 1>&5
4310 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4312 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4313 test "$cf_top_incdir" = "$cf_add_incdir" && break
4314 cf_add_incdir="$cf_top_incdir"
4330 cat >conftest.$ac_ext <<_ACEOF
4331 #line 4331 "configure"
4332 #include "confdefs.h"
4334 #include <$cf_header>
4339 #ifdef NCURSES_VERSION
4341 printf("%s\n", NCURSES_VERSION);
4354 rm -f conftest.$ac_objext
4355 if { (eval echo "$as_me:4355: \"$ac_compile\"") >&5
4356 (eval $ac_compile) 2>&5
4358 echo "$as_me:4358: \$? = $ac_status" >&5
4359 (exit $ac_status); } &&
4360 { ac_try='test -s conftest.$ac_objext'
4361 { (eval echo "$as_me:4361: \"$ac_try\"") >&5
4364 echo "$as_me:4364: \$? = $ac_status" >&5
4365 (exit $ac_status); }; }; then
4366 cf_cv_ncurses_h2=$cf_header
4369 echo "$as_me: failed program was:" >&5
4370 cat conftest.$ac_ext >&5
4373 rm -f conftest.$ac_objext conftest.$ac_ext
4375 if test "$cf_cv_ncurses_h2" != no ; then
4376 cf_cv_ncurses_h2=$cf_incdir/$cf_header
4377 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
4380 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
4382 CPPFLAGS="$cf_save2_CPPFLAGS"
4383 test "$cf_cv_ncurses_h2" != no && break
4385 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:4385: error: not found" >&5
4386 echo "$as_me: error: not found" >&2;}
4387 { (exit 1); exit 1; }; }
4390 echo "$as_me:4390: result: $cf_cv_ncurses_h2" >&5
4391 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
4393 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
4394 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
4395 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
4396 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
4399 if test -n "$cf_1st_incdir" ; then
4400 for cf_add_incdir in $cf_1st_incdir
4402 while test $cf_add_incdir != /usr/include
4404 if test -d $cf_add_incdir
4407 if test -n "$CFLAGS$CPPFLAGS" ; then
4408 # a loop is needed to ensure we can add subdirs of existing dirs
4409 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4410 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4411 cf_have_incdir=yes; break
4416 if test "$cf_have_incdir" = no ; then
4417 if test "$cf_add_incdir" = /usr/local/include ; then
4418 if test "$GCC" = yes
4420 cf_save_CPPFLAGS=$CPPFLAGS
4421 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4422 cat >conftest.$ac_ext <<_ACEOF
4423 #line 4423 "configure"
4424 #include "confdefs.h"
4434 rm -f conftest.$ac_objext
4435 if { (eval echo "$as_me:4435: \"$ac_compile\"") >&5
4436 (eval $ac_compile) 2>&5
4438 echo "$as_me:4438: \$? = $ac_status" >&5
4439 (exit $ac_status); } &&
4440 { ac_try='test -s conftest.$ac_objext'
4441 { (eval echo "$as_me:4441: \"$ac_try\"") >&5
4444 echo "$as_me:4444: \$? = $ac_status" >&5
4445 (exit $ac_status); }; }; then
4448 echo "$as_me: failed program was:" >&5
4449 cat conftest.$ac_ext >&5
4452 rm -f conftest.$ac_objext conftest.$ac_ext
4453 CPPFLAGS=$cf_save_CPPFLAGS
4458 if test "$cf_have_incdir" = no ; then
4459 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4461 echo "${as_me:-configure}:4461: testing adding $cf_add_incdir to include-path ..." 1>&5
4463 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4465 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4466 test "$cf_top_incdir" = "$cf_add_incdir" && break
4467 cf_add_incdir="$cf_top_incdir"
4480 # Set definitions to allow ifdef'ing for ncurses.h
4482 case $cf_cv_ncurses_header in
4485 cat >>confdefs.h <<\EOF
4486 #define HAVE_NCURSES_H 1
4492 case $cf_cv_ncurses_header in
4493 (ncurses/curses.h|ncurses/ncurses.h)
4495 cat >>confdefs.h <<\EOF
4496 #define HAVE_NCURSES_NCURSES_H 1
4500 (ncursesw/curses.h|ncursesw/ncurses.h)
4502 cat >>confdefs.h <<\EOF
4503 #define HAVE_NCURSESW_NCURSES_H 1
4509 echo "$as_me:4509: checking for terminfo header" >&5
4510 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
4511 if test "${cf_cv_term_header+set}" = set; then
4512 echo $ECHO_N "(cached) $ECHO_C" >&6
4515 case ${cf_cv_ncurses_header} in
4516 (*/ncurses.h|*/ncursesw.h)
4517 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
4520 cf_term_header=term.h
4524 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
4526 cat >conftest.$ac_ext <<_ACEOF
4527 #line 4527 "configure"
4528 #include "confdefs.h"
4530 #include <${cf_cv_ncurses_header:-curses.h}>
4536 int x = auto_left_margin
4541 rm -f conftest.$ac_objext
4542 if { (eval echo "$as_me:4542: \"$ac_compile\"") >&5
4543 (eval $ac_compile) 2>&5
4545 echo "$as_me:4545: \$? = $ac_status" >&5
4546 (exit $ac_status); } &&
4547 { ac_try='test -s conftest.$ac_objext'
4548 { (eval echo "$as_me:4548: \"$ac_try\"") >&5
4551 echo "$as_me:4551: \$? = $ac_status" >&5
4552 (exit $ac_status); }; }; then
4554 cf_cv_term_header="$cf_test"
4556 echo "$as_me: failed program was:" >&5
4557 cat conftest.$ac_ext >&5
4559 cf_cv_term_header=unknown
4562 rm -f conftest.$ac_objext conftest.$ac_ext
4563 test "$cf_cv_term_header" != unknown && break
4567 echo "$as_me:4567: result: $cf_cv_term_header" >&5
4568 echo "${ECHO_T}$cf_cv_term_header" >&6
4570 # Set definitions to allow ifdef'ing to accommodate subdirectories
4572 case $cf_cv_term_header in
4575 cat >>confdefs.h <<\EOF
4576 #define HAVE_TERM_H 1
4582 case $cf_cv_term_header in
4585 cat >>confdefs.h <<\EOF
4586 #define HAVE_NCURSES_TERM_H 1
4592 cat >>confdefs.h <<\EOF
4593 #define HAVE_NCURSESW_TERM_H 1
4599 # some applications need this, but should check for NCURSES_VERSION
4601 cat >>confdefs.h <<\EOF
4605 echo "$as_me:4605: checking for ncurses version" >&5
4606 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
4607 if test "${cf_cv_ncurses_version+set}" = set; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4611 cf_cv_ncurses_version=no
4614 if test "$cross_compiling" = yes; then
4616 # This will not work if the preprocessor splits the line after the
4617 # Autoconf token. The 'unproto' program does that.
4618 cat > conftest.$ac_ext <<EOF
4619 #include <${cf_cv_ncurses_header:-curses.h}>
4621 #ifdef NCURSES_VERSION
4622 Autoconf NCURSES_VERSION
4630 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
4631 { (eval echo "$as_me:4631: \"$cf_try\"") >&5
4634 echo "$as_me:4634: \$? = $ac_status" >&5
4635 (exit $ac_status); }
4636 if test -f conftest.out ; then
4637 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
4638 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
4643 cat >conftest.$ac_ext <<_ACEOF
4644 #line 4644 "configure"
4645 #include "confdefs.h"
4647 #include <${cf_cv_ncurses_header:-curses.h}>
4651 FILE *fp = fopen("$cf_tempfile", "w");
4652 #ifdef NCURSES_VERSION
4653 # ifdef NCURSES_VERSION_PATCH
4654 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
4656 fprintf(fp, "%s\n", NCURSES_VERSION);
4660 fprintf(fp, "old\n");
4665 ${cf_cv_main_return:-return}(0);
4668 rm -f conftest$ac_exeext
4669 if { (eval echo "$as_me:4669: \"$ac_link\"") >&5
4670 (eval $ac_link) 2>&5
4672 echo "$as_me:4672: \$? = $ac_status" >&5
4673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4674 { (eval echo "$as_me:4674: \"$ac_try\"") >&5