2 # From configure.in Revision: 1.54 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20121002.
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 --enable-pc-files generate and install .pc files for pkg-config
659 --without-tests suppress build with test-programs
660 --enable-mixed-case tic should assume mixed-case filenames
661 --with-install-prefix prefixes actual install-location ($DESTDIR)
662 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
663 --with-build-cc=XXX the build C compiler ($BUILD_CC)
664 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
665 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
666 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
667 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
668 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
669 Options to Specify the Libraries Built/Used:
670 --with-shared generate shared C-objects (needed for --with-ada-sharedlib)
671 --enable-widec compile with wide-char/UTF-8 code
672 --with-curses-dir=DIR directory in which (n)curses is installed
673 --with-lib-prefix override library-prefix
674 --with-shlib-version=X Specify rel or abi version for shared libs
675 --enable-rpath-link link sample programs with rpath option
676 Fine-Tuning Your Configuration:
677 --enable-broken_linker compile with broken-linker support code
678 --disable-largefile omit support for large files
679 --with-rcs-ids compile-in RCS identifiers
681 --disable-ext-funcs disable function-extensions
682 --enable-const compile with extra/non-standard const
684 --without-develop disable development options
686 --with-pthread use POSIX thread library
687 --enable-weak-symbols enable weak-symbols for pthreads
688 --enable-reentrant compile with experimental reentrant code
689 --with-wrap-prefix=XXX override prefix used for public variables
690 Testing/development Options:
691 --disable-echo do not display "compiling" commands
692 --enable-warnings build: turn on GCC compiler warnings
693 --enable-assertions test: turn on generation of assertion code
694 --enable-expanded test: generate functions for certain macros
695 --disable-macros test: use functions rather than macros
696 --with-trace test: add trace() function to all models of ncurses
697 --disable-gnat-projects test: disable GNAT projects even if usable
698 Ada95 Binding Options:
699 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
700 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
701 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
702 --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
704 Some influential environment variables:
705 CC C compiler command
706 CFLAGS C compiler flags
707 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
708 nonstandard directory <lib dir>
709 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
710 headers in a nonstandard directory <include dir>
713 Use these variables to override the choices made by `configure' or to help
714 it to find libraries and programs with nonstandard names/locations.
719 if test "$ac_init_help" = "recursive"; then
720 # If there are subdirs, report their specific --help.
722 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
724 # A "../" for each directory in /$ac_subdir.
725 ac_dots=`echo $ac_subdir |
726 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
729 .) # No --srcdir option. We are building in place.
730 ac_sub_srcdir=$srcdir ;;
731 [\\/]* | ?:[\\/]* ) # Absolute path.
732 ac_sub_srcdir=$srcdir/$ac_subdir ;;
734 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
737 # Check for guested configure; otherwise get Cygnus style configure.
738 if test -f $ac_sub_srcdir/configure.gnu; then
740 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
741 elif test -f $ac_sub_srcdir/configure; then
743 $SHELL $ac_sub_srcdir/configure --help=recursive
744 elif test -f $ac_sub_srcdir/configure.ac ||
745 test -f $ac_sub_srcdir/configure.in; then
749 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
755 test -n "$ac_init_help" && exit 0
756 if $ac_init_version; then
759 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
760 Free Software Foundation, Inc.
761 This configure script is free software; the Free Software Foundation
762 gives unlimited permission to copy, distribute and modify it.
768 This file contains any messages produced by compilers while
769 running configure, to aid debugging if configure makes a mistake.
771 It was created by $as_me, which was
772 generated by GNU Autoconf 2.52.20121002. Invocation command line was
783 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
784 uname -m = `(uname -m) 2>/dev/null || echo unknown`
785 uname -r = `(uname -r) 2>/dev/null || echo unknown`
786 uname -s = `(uname -s) 2>/dev/null || echo unknown`
787 uname -v = `(uname -v) 2>/dev/null || echo unknown`
789 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
790 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
792 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
793 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
794 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
795 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
796 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
797 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
798 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
812 # Keep a trace of the command line.
813 # Strip out --no-create and --no-recursion so they do not pile up.
814 # Also quote any args containing shell meta-characters.
820 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
821 | --no-cr | --no-c) ;;
822 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
823 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
824 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
825 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
826 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
828 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
831 # Get rid of the leading space.
834 # When interrupted or exit'd, cleanup temporary files, and complete
835 # config.log. We remove comments because anyway the quotes in there
836 # would cause problems or look ugly.
838 # Save into config.log some information that might help in debugging.
840 echo "## ----------------- ##" >&5
841 echo "## Cache variables. ##" >&5
842 echo "## ----------------- ##" >&5
844 # The following way of writing the cache mishandles newlines in values,
847 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
850 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
851 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
855 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
859 sed "/^$/d" confdefs.h >conftest.log
860 if test -s conftest.log; then
862 echo "## ------------ ##" >&5
863 echo "## confdefs.h. ##" >&5
864 echo "## ------------ ##" >&5
869 test "$ac_signal" != 0 &&
870 echo "$as_me: caught signal $ac_signal" >&5
871 echo "$as_me: exit $exit_status" >&5
872 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
875 for ac_signal in 1 2 13 15; do
876 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
880 # confdefs.h avoids OS command line length limits that DEFS can exceed.
881 rm -rf conftest* confdefs.h
882 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
885 # Let the site file select an alternate cache file if it wants to.
886 # Prefer explicitly selected file to automatically selected ones.
887 if test -z "$CONFIG_SITE"; then
888 if test "x$prefix" != xNONE; then
889 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
891 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
894 for ac_site_file in $CONFIG_SITE; do
895 if test -r "$ac_site_file"; then
896 { echo "$as_me:896: loading site script $ac_site_file" >&5
897 echo "$as_me: loading site script $ac_site_file" >&6;}
898 cat "$ac_site_file" >&5
903 if test -r "$cache_file"; then
904 # Some versions of bash will fail to source /dev/null (special
905 # files actually), so we avoid doing that.
906 if test -f "$cache_file"; then
907 { echo "$as_me:907: loading cache $cache_file" >&5
908 echo "$as_me: loading cache $cache_file" >&6;}
910 [\\/]* | ?:[\\/]* ) . $cache_file;;
915 { echo "$as_me:915: creating cache $cache_file" >&5
916 echo "$as_me: creating cache $cache_file" >&6;}
920 # Check that the precious variables saved in the cache have kept the same
922 ac_cache_corrupted=false
923 for ac_var in `(set) 2>&1 |
924 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
925 eval ac_old_set=\$ac_cv_env_${ac_var}_set
926 eval ac_new_set=\$ac_env_${ac_var}_set
927 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
928 eval ac_new_val="\$ac_env_${ac_var}_value"
929 case $ac_old_set,$ac_new_set in
931 { echo "$as_me:931: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
932 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
933 ac_cache_corrupted=: ;;
935 { echo "$as_me:935: error: \`$ac_var' was not set in the previous run" >&5
936 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
937 ac_cache_corrupted=: ;;
940 if test "x$ac_old_val" != "x$ac_new_val"; then
941 { echo "$as_me:941: error: \`$ac_var' has changed since the previous run:" >&5
942 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
943 { echo "$as_me:943: former value: $ac_old_val" >&5
944 echo "$as_me: former value: $ac_old_val" >&2;}
945 { echo "$as_me:945: current value: $ac_new_val" >&5
946 echo "$as_me: current value: $ac_new_val" >&2;}
950 # Pass precious variables to config.status. It doesn't matter if
951 # we pass some twice (in addition to the command line arguments).
952 if test "$ac_new_set" = set; then
954 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
955 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
956 ac_configure_args="$ac_configure_args '$ac_arg'"
958 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
963 if $ac_cache_corrupted; then
964 { echo "$as_me:964: error: changes in the environment can compromise the build" >&5
965 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
966 { { echo "$as_me:966: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
967 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
968 { (exit 1); exit 1; }; }
972 ac_cpp='$CPP $CPPFLAGS'
973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
976 ac_main_return=return
978 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
979 *c*,-n*) ECHO_N= ECHO_C='
981 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
982 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
984 echo "#! $SHELL" >conftest.sh
985 echo "exit 0" >>conftest.sh
987 if { (echo "$as_me:987: PATH=\".;.\"; conftest.sh") >&5
988 (PATH=".;."; conftest.sh) 2>&5
990 echo "$as_me:990: \$? = $ac_status" >&5
991 (exit $ac_status); }; then
992 ac_path_separator=';'
996 PATH_SEPARATOR="$ac_path_separator"
999 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1004 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1005 if test -f $ac_dir/install-sh; then
1007 ac_install_sh="$ac_aux_dir/install-sh -c"
1009 elif test -f $ac_dir/install.sh; then
1011 ac_install_sh="$ac_aux_dir/install.sh -c"
1013 elif test -f $ac_dir/shtool; then
1015 ac_install_sh="$ac_aux_dir/shtool install -c"
1019 if test -z "$ac_aux_dir"; then
1020 { { echo "$as_me:1020: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1021 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1022 { (exit 1); exit 1; }; }
1024 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1025 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1026 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1028 # Make sure we can run config.sub.
1029 $ac_config_sub sun4 >/dev/null 2>&1 ||
1030 { { echo "$as_me:1030: error: cannot run $ac_config_sub" >&5
1031 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1032 { (exit 1); exit 1; }; }
1034 echo "$as_me:1034: checking build system type" >&5
1035 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1036 if test "${ac_cv_build+set}" = set; then
1037 echo $ECHO_N "(cached) $ECHO_C" >&6
1039 ac_cv_build_alias=$build_alias
1040 test -z "$ac_cv_build_alias" &&
1041 ac_cv_build_alias=`$ac_config_guess`
1042 test -z "$ac_cv_build_alias" &&
1043 { { echo "$as_me:1043: error: cannot guess build type; you must specify one" >&5
1044 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1045 { (exit 1); exit 1; }; }
1046 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1047 { { echo "$as_me:1047: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1048 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1049 { (exit 1); exit 1; }; }
1052 echo "$as_me:1052: result: $ac_cv_build" >&5
1053 echo "${ECHO_T}$ac_cv_build" >&6
1055 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1056 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1057 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1059 echo "$as_me:1059: checking host system type" >&5
1060 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1061 if test "${ac_cv_host+set}" = set; then
1062 echo $ECHO_N "(cached) $ECHO_C" >&6
1064 ac_cv_host_alias=$host_alias
1065 test -z "$ac_cv_host_alias" &&
1066 ac_cv_host_alias=$ac_cv_build_alias
1067 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1068 { { echo "$as_me:1068: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1069 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1070 { (exit 1); exit 1; }; }
1073 echo "$as_me:1073: result: $ac_cv_host" >&5
1074 echo "${ECHO_T}$ac_cv_host" >&6
1076 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1077 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1078 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1080 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1081 echo "$as_me:1081: checking target system type" >&5
1082 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1083 if test "${ac_cv_target+set}" = set; then
1084 echo $ECHO_N "(cached) $ECHO_C" >&6
1086 ac_cv_target_alias=$target_alias
1087 test "x$ac_cv_target_alias" = "x" &&
1088 ac_cv_target_alias=$ac_cv_host_alias
1089 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1090 { { echo "$as_me:1090: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1091 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1092 { (exit 1); exit 1; }; }
1095 echo "$as_me:1095: result: $ac_cv_target" >&5
1096 echo "${ECHO_T}$ac_cv_target" >&6
1097 target=$ac_cv_target
1098 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1099 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1100 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1102 # The aliases save the names the user supplied, while $host etc.
1103 # will get canonicalized.
1104 test -n "$target_alias" &&
1105 test "$program_prefix$program_suffix$program_transform_name" = \
1107 program_prefix=${target_alias}-
1108 system_name="$host_os"
1110 system_name="`(uname -s -r) 2>/dev/null`"
1111 if test -z "$system_name" ; then
1112 system_name="`(hostname) 2>/dev/null`"
1115 test -n "$system_name" &&
1116 cat >>confdefs.h <<EOF
1117 #define SYSTEM_NAME "$system_name"
1120 if test "${cf_cv_system_name+set}" = set; then
1121 echo $ECHO_N "(cached) $ECHO_C" >&6
1123 cf_cv_system_name="$system_name"
1126 test -z "$system_name" && system_name="$cf_cv_system_name"
1127 test -n "$cf_cv_system_name" && echo "$as_me:1127: result: Configuring for $cf_cv_system_name" >&5
1128 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1130 if test ".$system_name" != ".$cf_cv_system_name" ; then
1131 echo "$as_me:1131: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1132 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1133 { { echo "$as_me:1133: error: \"Please remove config.cache and try again.\"" >&5
1134 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1135 { (exit 1); exit 1; }; }
1138 # Check whether --with-system-type or --without-system-type was given.
1139 if test "${with_system_type+set}" = set; then
1140 withval="$with_system_type"
1141 { echo "$as_me:1141: WARNING: overriding system type to $withval" >&5
1142 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1143 cf_cv_system_name=$withval
1148 ### Save the given $CFLAGS to allow user-override.
1149 cf_user_CFLAGS="$CFLAGS"
1151 ### Default install-location
1153 echo "$as_me:1153: checking for prefix" >&5
1154 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1155 if test "x$prefix" = "xNONE" ; then
1156 case "$cf_cv_system_name" in
1157 # non-vendor systems don't have a conflict
1158 openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1161 *) prefix=$ac_default_prefix
1165 echo "$as_me:1165: result: $prefix" >&5
1166 echo "${ECHO_T}$prefix" >&6
1168 if test "x$prefix" = "xNONE" ; then
1169 echo "$as_me:1169: checking for default include-directory" >&5
1170 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1171 test -n "$verbose" && echo 1>&6
1174 $includedir/ncurses \
1176 $prefix/include/ncurses \
1177 /usr/local/include \
1178 /usr/local/include/ncurses \
1180 /usr/include/ncurses
1182 cf_dir=`eval echo $cf_symbol`
1183 if test -f $cf_dir/curses.h ; then
1184 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1185 includedir="$cf_symbol"
1186 test -n "$verbose" && echo $ac_n " found " 1>&6
1190 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1192 echo "$as_me:1192: result: $includedir" >&5
1193 echo "${ECHO_T}$includedir" >&6
1196 ### Checks for programs.
1199 ac_cpp='$CPP $CPPFLAGS'
1200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1203 ac_main_return=return
1204 if test -n "$ac_tool_prefix"; then
1205 for ac_prog in gnatgcc gcc cc
1207 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1208 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1209 echo "$as_me:1209: checking for $ac_word" >&5
1210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1211 if test "${ac_cv_prog_CC+set}" = set; then
1212 echo $ECHO_N "(cached) $ECHO_C" >&6
1214 if test -n "$CC"; then
1215 ac_cv_prog_CC="$CC" # Let the user override the test.
1217 ac_save_IFS=$IFS; IFS=$ac_path_separator
1219 for ac_dir in $ac_dummy; do
1221 test -z "$ac_dir" && ac_dir=.
1222 $as_executable_p "$ac_dir/$ac_word" || continue
1223 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1224 echo "$as_me:1224: found $ac_dir/$ac_word" >&5
1231 if test -n "$CC"; then
1232 echo "$as_me:1232: result: $CC" >&5
1233 echo "${ECHO_T}$CC" >&6
1235 echo "$as_me:1235: result: no" >&5
1236 echo "${ECHO_T}no" >&6
1239 test -n "$CC" && break
1242 if test -z "$CC"; then
1244 for ac_prog in gnatgcc gcc cc
1246 # Extract the first word of "$ac_prog", so it can be a program name with args.
1247 set dummy $ac_prog; ac_word=$2
1248 echo "$as_me:1248: checking for $ac_word" >&5
1249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1250 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1251 echo $ECHO_N "(cached) $ECHO_C" >&6
1253 if test -n "$ac_ct_CC"; then
1254 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1256 ac_save_IFS=$IFS; IFS=$ac_path_separator
1258 for ac_dir in $ac_dummy; do
1260 test -z "$ac_dir" && ac_dir=.
1261 $as_executable_p "$ac_dir/$ac_word" || continue
1262 ac_cv_prog_ac_ct_CC="$ac_prog"
1263 echo "$as_me:1263: found $ac_dir/$ac_word" >&5
1269 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1270 if test -n "$ac_ct_CC"; then
1271 echo "$as_me:1271: result: $ac_ct_CC" >&5
1272 echo "${ECHO_T}$ac_ct_CC" >&6
1274 echo "$as_me:1274: result: no" >&5
1275 echo "${ECHO_T}no" >&6
1278 test -n "$ac_ct_CC" && break
1284 test -z "$CC" && { { echo "$as_me:1284: error: no acceptable cc found in \$PATH" >&5
1285 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1286 { (exit 1); exit 1; }; }
1288 # Provide some information about the compiler.
1289 echo "$as_me:1289:" \
1290 "checking for C compiler version" >&5
1291 ac_compiler=`set X $ac_compile; echo $2`
1292 { (eval echo "$as_me:1292: \"$ac_compiler --version </dev/null >&5\"") >&5
1293 (eval $ac_compiler --version </dev/null >&5) 2>&5
1295 echo "$as_me:1295: \$? = $ac_status" >&5
1296 (exit $ac_status); }
1297 { (eval echo "$as_me:1297: \"$ac_compiler -v </dev/null >&5\"") >&5
1298 (eval $ac_compiler -v </dev/null >&5) 2>&5
1300 echo "$as_me:1300: \$? = $ac_status" >&5
1301 (exit $ac_status); }
1302 { (eval echo "$as_me:1302: \"$ac_compiler -V </dev/null >&5\"") >&5
1303 (eval $ac_compiler -V </dev/null >&5) 2>&5
1305 echo "$as_me:1305: \$? = $ac_status" >&5
1306 (exit $ac_status); }
1308 cat >conftest.$ac_ext <<_ACEOF
1309 #line 1309 "configure"
1310 #include "confdefs.h"
1320 ac_clean_files_save=$ac_clean_files
1321 ac_clean_files="$ac_clean_files a.out a.exe"
1322 # Try to create an executable without -o first, disregard a.out.
1323 # It will help us diagnose broken compilers, and finding out an intuition
1325 echo "$as_me:1325: checking for C compiler default output" >&5
1326 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1327 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1328 if { (eval echo "$as_me:1328: \"$ac_link_default\"") >&5
1329 (eval $ac_link_default) 2>&5
1331 echo "$as_me:1331: \$? = $ac_status" >&5
1332 (exit $ac_status); }; then
1333 # Find the output, starting from the most likely. This scheme is
1334 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1336 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1337 ls a.out conftest 2>/dev/null;
1338 ls a.* conftest.* 2>/dev/null`; do
1340 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1341 a.out ) # We found the default executable, but exeext='' is most
1344 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1345 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1352 echo "$as_me: failed program was:" >&5
1353 cat conftest.$ac_ext >&5
1354 { { echo "$as_me:1354: error: C compiler cannot create executables" >&5
1355 echo "$as_me: error: C compiler cannot create executables" >&2;}
1356 { (exit 77); exit 77; }; }
1359 ac_exeext=$ac_cv_exeext
1360 echo "$as_me:1360: result: $ac_file" >&5
1361 echo "${ECHO_T}$ac_file" >&6
1363 # Check the compiler produces executables we can run. If not, either
1364 # the compiler is broken, or we cross compile.
1365 echo "$as_me:1365: checking whether the C compiler works" >&5
1366 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1367 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1368 # If not cross compiling, check that we can run a simple program.
1369 if test "$cross_compiling" != yes; then
1370 if { ac_try='./$ac_file'
1371 { (eval echo "$as_me:1371: \"$ac_try\"") >&5
1374 echo "$as_me:1374: \$? = $ac_status" >&5
1375 (exit $ac_status); }; }; then
1378 if test "$cross_compiling" = maybe; then
1381 { { echo "$as_me:1381: error: cannot run C compiled programs.
1382 If you meant to cross compile, use \`--host'." >&5
1383 echo "$as_me: error: cannot run C compiled programs.
1384 If you meant to cross compile, use \`--host'." >&2;}
1385 { (exit 1); exit 1; }; }
1389 echo "$as_me:1389: result: yes" >&5
1390 echo "${ECHO_T}yes" >&6
1392 rm -f a.out a.exe conftest$ac_cv_exeext
1393 ac_clean_files=$ac_clean_files_save
1394 # Check the compiler produces executables we can run. If not, either
1395 # the compiler is broken, or we cross compile.
1396 echo "$as_me:1396: checking whether we are cross compiling" >&5
1397 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1398 echo "$as_me:1398: result: $cross_compiling" >&5
1399 echo "${ECHO_T}$cross_compiling" >&6
1401 echo "$as_me:1401: checking for executable suffix" >&5
1402 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1403 if { (eval echo "$as_me:1403: \"$ac_link\"") >&5
1404 (eval $ac_link) 2>&5
1406 echo "$as_me:1406: \$? = $ac_status" >&5
1407 (exit $ac_status); }; then
1408 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1409 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1410 # work properly (i.e., refer to `conftest.exe'), while it won't with
1412 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1414 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1415 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1422 { { echo "$as_me:1422: error: cannot compute EXEEXT: cannot compile and link" >&5
1423 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1424 { (exit 1); exit 1; }; }
1427 rm -f conftest$ac_cv_exeext
1428 echo "$as_me:1428: result: $ac_cv_exeext" >&5
1429 echo "${ECHO_T}$ac_cv_exeext" >&6
1431 rm -f conftest.$ac_ext
1432 EXEEXT=$ac_cv_exeext
1434 echo "$as_me:1434: checking for object suffix" >&5
1435 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1436 if test "${ac_cv_objext+set}" = set; then
1437 echo $ECHO_N "(cached) $ECHO_C" >&6
1439 cat >conftest.$ac_ext <<_ACEOF
1440 #line 1440 "configure"
1441 #include "confdefs.h"
1451 rm -f conftest.o conftest.obj
1452 if { (eval echo "$as_me:1452: \"$ac_compile\"") >&5
1453 (eval $ac_compile) 2>&5
1455 echo "$as_me:1455: \$? = $ac_status" >&5
1456 (exit $ac_status); }; then
1457 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1459 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1460 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1465 echo "$as_me: failed program was:" >&5
1466 cat conftest.$ac_ext >&5
1467 { { echo "$as_me:1467: error: cannot compute OBJEXT: cannot compile" >&5
1468 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1469 { (exit 1); exit 1; }; }
1472 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1474 echo "$as_me:1474: result: $ac_cv_objext" >&5
1475 echo "${ECHO_T}$ac_cv_objext" >&6
1476 OBJEXT=$ac_cv_objext
1478 echo "$as_me:1478: checking whether we are using the GNU C compiler" >&5
1479 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1480 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1481 echo $ECHO_N "(cached) $ECHO_C" >&6
1483 cat >conftest.$ac_ext <<_ACEOF
1484 #line 1484 "configure"
1485 #include "confdefs.h"
1498 rm -f conftest.$ac_objext
1499 if { (eval echo "$as_me:1499: \"$ac_compile\"") >&5
1500 (eval $ac_compile) 2>&5
1502 echo "$as_me:1502: \$? = $ac_status" >&5
1503 (exit $ac_status); } &&
1504 { ac_try='test -s conftest.$ac_objext'
1505 { (eval echo "$as_me:1505: \"$ac_try\"") >&5
1508 echo "$as_me:1508: \$? = $ac_status" >&5
1509 (exit $ac_status); }; }; then
1512 echo "$as_me: failed program was:" >&5
1513 cat conftest.$ac_ext >&5
1516 rm -f conftest.$ac_objext conftest.$ac_ext
1517 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1520 echo "$as_me:1520: result: $ac_cv_c_compiler_gnu" >&5
1521 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1522 GCC=`test $ac_compiler_gnu = yes && echo yes`
1523 ac_test_CFLAGS=${CFLAGS+set}
1524 ac_save_CFLAGS=$CFLAGS
1526 echo "$as_me:1526: checking whether $CC accepts -g" >&5
1527 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1528 if test "${ac_cv_prog_cc_g+set}" = set; then
1529 echo $ECHO_N "(cached) $ECHO_C" >&6
1531 cat >conftest.$ac_ext <<_ACEOF
1532 #line 1532 "configure"
1533 #include "confdefs.h"
1543 rm -f conftest.$ac_objext
1544 if { (eval echo "$as_me:1544: \"$ac_compile\"") >&5
1545 (eval $ac_compile) 2>&5
1547 echo "$as_me:1547: \$? = $ac_status" >&5
1548 (exit $ac_status); } &&
1549 { ac_try='test -s conftest.$ac_objext'
1550 { (eval echo "$as_me:1550: \"$ac_try\"") >&5
1553 echo "$as_me:1553: \$? = $ac_status" >&5
1554 (exit $ac_status); }; }; then
1557 echo "$as_me: failed program was:" >&5
1558 cat conftest.$ac_ext >&5
1561 rm -f conftest.$ac_objext conftest.$ac_ext
1563 echo "$as_me:1563: result: $ac_cv_prog_cc_g" >&5
1564 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1565 if test "$ac_test_CFLAGS" = set; then
1566 CFLAGS=$ac_save_CFLAGS
1567 elif test $ac_cv_prog_cc_g = yes; then
1568 if test "$GCC" = yes; then
1574 if test "$GCC" = yes; then
1580 # Some people use a C++ compiler to compile C. Since we use `exit',
1581 # in C++ we need to declare it. In case someone uses the same compiler
1582 # for both compiling C and C++ we need to have the C++ compiler decide
1583 # the declaration of exit, since it's the most demanding environment.
1584 cat >conftest.$ac_ext <<_ACEOF
1589 rm -f conftest.$ac_objext
1590 if { (eval echo "$as_me:1590: \"$ac_compile\"") >&5
1591 (eval $ac_compile) 2>&5
1593 echo "$as_me:1593: \$? = $ac_status" >&5
1594 (exit $ac_status); } &&
1595 { ac_try='test -s conftest.$ac_objext'
1596 { (eval echo "$as_me:1596: \"$ac_try\"") >&5
1599 echo "$as_me:1599: \$? = $ac_status" >&5
1600 (exit $ac_status); }; }; then
1601 for ac_declaration in \
1603 '#include <stdlib.h>' \
1604 'extern "C" void std::exit (int) throw (); using std::exit;' \
1605 'extern "C" void std::exit (int); using std::exit;' \
1606 'extern "C" void exit (int) throw ();' \
1607 'extern "C" void exit (int);' \
1610 cat >conftest.$ac_ext <<_ACEOF
1611 #line 1611 "configure"
1612 #include "confdefs.h"
1623 rm -f conftest.$ac_objext
1624 if { (eval echo "$as_me:1624: \"$ac_compile\"") >&5
1625 (eval $ac_compile) 2>&5
1627 echo "$as_me:1627: \$? = $ac_status" >&5
1628 (exit $ac_status); } &&
1629 { ac_try='test -s conftest.$ac_objext'
1630 { (eval echo "$as_me:1630: \"$ac_try\"") >&5
1633 echo "$as_me:1633: \$? = $ac_status" >&5
1634 (exit $ac_status); }; }; then
1637 echo "$as_me: failed program was:" >&5
1638 cat conftest.$ac_ext >&5
1641 rm -f conftest.$ac_objext conftest.$ac_ext
1642 cat >conftest.$ac_ext <<_ACEOF
1643 #line 1643 "configure"
1644 #include "confdefs.h"
1654 rm -f conftest.$ac_objext
1655 if { (eval echo "$as_me:1655: \"$ac_compile\"") >&5
1656 (eval $ac_compile) 2>&5
1658 echo "$as_me:1658: \$? = $ac_status" >&5
1659 (exit $ac_status); } &&
1660 { ac_try='test -s conftest.$ac_objext'
1661 { (eval echo "$as_me:1661: \"$ac_try\"") >&5
1664 echo "$as_me:1664: \$? = $ac_status" >&5
1665 (exit $ac_status); }; }; then
1668 echo "$as_me: failed program was:" >&5
1669 cat conftest.$ac_ext >&5
1671 rm -f conftest.$ac_objext conftest.$ac_ext
1674 if test -n "$ac_declaration"; then
1675 echo '#ifdef __cplusplus' >>confdefs.h
1676 echo $ac_declaration >>confdefs.h
1677 echo '#endif' >>confdefs.h
1681 echo "$as_me: failed program was:" >&5
1682 cat conftest.$ac_ext >&5
1684 rm -f conftest.$ac_objext conftest.$ac_ext
1686 ac_cpp='$CPP $CPPFLAGS'
1687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1690 ac_main_return=return
1693 if test "$GCC" = yes ; then
1694 echo "$as_me:1694: checking version of $CC" >&5
1695 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1696 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.].*//'`"
1697 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1698 echo "$as_me:1698: result: $GCC_VERSION" >&5
1699 echo "${ECHO_T}$GCC_VERSION" >&6
1702 echo "$as_me:1702: checking for $CC option to accept ANSI C" >&5
1703 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1704 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1705 echo $ECHO_N "(cached) $ECHO_C" >&6
1707 ac_cv_prog_cc_stdc=no
1709 cat >conftest.$ac_ext <<_ACEOF
1710 #line 1710 "configure"
1711 #include "confdefs.h"
1714 #include <sys/types.h>
1715 #include <sys/stat.h>
1716 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1717 struct buf { int x; };
1718 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1719 static char *e (p, i)
1725 static char *f (char * (*g) (char **, int), char **p, ...)
1730 s = g (p, va_arg (v,int));
1734 int test (int i, double x);
1735 struct s1 {int (*f) (int a);};
1736 struct s2 {int (*f) (double a);};
1737 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1743 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1748 # Don't try gcc -ansi; that turns off useful extensions and
1749 # breaks some systems' header files.
1750 # AIX -qlanglvl=ansi
1751 # Ultrix and OSF/1 -std1
1752 # HP-UX 10.20 and later -Ae
1753 # HP-UX older versions -Aa -D_HPUX_SOURCE
1754 # SVR4 -Xc -D__EXTENSIONS__
1755 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1757 CC="$ac_save_CC $ac_arg"
1758 rm -f conftest.$ac_objext
1759 if { (eval echo "$as_me:1759: \"$ac_compile\"") >&5
1760 (eval $ac_compile) 2>&5
1762 echo "$as_me:1762: \$? = $ac_status" >&5
1763 (exit $ac_status); } &&
1764 { ac_try='test -s conftest.$ac_objext'
1765 { (eval echo "$as_me:1765: \"$ac_try\"") >&5
1768 echo "$as_me:1768: \$? = $ac_status" >&5
1769 (exit $ac_status); }; }; then
1770 ac_cv_prog_cc_stdc=$ac_arg
1773 echo "$as_me: failed program was:" >&5
1774 cat conftest.$ac_ext >&5
1776 rm -f conftest.$ac_objext
1778 rm -f conftest.$ac_ext conftest.$ac_objext
1783 case "x$ac_cv_prog_cc_stdc" in
1785 echo "$as_me:1785: result: none needed" >&5
1786 echo "${ECHO_T}none needed" >&6 ;;
1788 echo "$as_me:1788: result: $ac_cv_prog_cc_stdc" >&5
1789 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1790 CC="$CC $ac_cv_prog_cc_stdc" ;;
1793 # This should have been defined by AC_PROG_CC
1796 echo "$as_me:1796: checking \$CC variable" >&5
1797 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
1800 echo "$as_me:1800: result: broken" >&5
1801 echo "${ECHO_T}broken" >&6
1802 { echo "$as_me:1802: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
1803 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
1805 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
1806 CC=`echo "$CC" | sed -e 's/[ ].*//'`
1811 cf_new_extra_cppflags=
1813 for cf_add_cflags in $cf_flags
1815 case $cf_fix_cppflags in
1817 case $cf_add_cflags in #(vi
1818 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
1819 case $cf_add_cflags in
1821 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
1823 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
1824 && test -z "${cf_tst_cflags}" \
1825 && cf_fix_cppflags=yes
1827 if test $cf_fix_cppflags = yes ; then
1828 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1830 elif test "${cf_tst_cflags}" = "\"'" ; then
1831 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1837 *$cf_add_cflags) #(vi
1840 case $cf_add_cflags in #(vi
1842 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
1844 CPPFLAGS=`echo "$CPPFLAGS" | \
1845 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
1846 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
1850 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
1855 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
1860 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1862 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
1864 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
1865 && test -z "${cf_tst_cflags}" \
1866 && cf_fix_cppflags=no
1871 if test -n "$cf_new_cflags" ; then
1873 CFLAGS="$CFLAGS $cf_new_cflags"
1876 if test -n "$cf_new_cppflags" ; then
1878 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
1881 if test -n "$cf_new_extra_cppflags" ; then
1883 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
1888 echo "$as_me:1888: result: ok" >&5
1889 echo "${ECHO_T}ok" >&6
1894 ac_cpp='$CPP $CPPFLAGS'
1895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1898 ac_main_return=return
1899 echo "$as_me:1899: checking how to run the C preprocessor" >&5
1900 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1901 # On Suns, sometimes $CPP names a directory.
1902 if test -n "$CPP" && test -d "$CPP"; then
1905 if test -z "$CPP"; then
1906 if test "${ac_cv_prog_CPP+set}" = set; then
1907 echo $ECHO_N "(cached) $ECHO_C" >&6
1909 # Double quotes because CPP needs to be expanded
1910 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1913 for ac_c_preproc_warn_flag in '' yes
1915 # Use a header file that comes with gcc, so configuring glibc
1916 # with a fresh cross-compiler works.
1917 # On the NeXT, cc -E runs the code through the compiler's parser,
1918 # not just through cpp. "Syntax error" is here to catch this case.
1919 cat >conftest.$ac_ext <<_ACEOF
1920 #line 1920 "configure"
1921 #include "confdefs.h"
1925 if { (eval echo "$as_me:1925: \"$ac_cpp conftest.$ac_ext\"") >&5
1926 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1928 egrep -v '^ *\+' conftest.er1 >conftest.err
1930 cat conftest.err >&5
1931 echo "$as_me:1931: \$? = $ac_status" >&5
1932 (exit $ac_status); } >/dev/null; then
1933 if test -s conftest.err; then
1934 ac_cpp_err=$ac_c_preproc_warn_flag
1941 if test -z "$ac_cpp_err"; then
1944 echo "$as_me: failed program was:" >&5
1945 cat conftest.$ac_ext >&5
1946 # Broken: fails on valid input.
1949 rm -f conftest.err conftest.$ac_ext
1951 # OK, works on sane cases. Now check whether non-existent headers
1952 # can be detected and how.
1953 cat >conftest.$ac_ext <<_ACEOF
1954 #line 1954 "configure"
1955 #include "confdefs.h"
1956 #include <ac_nonexistent.h>
1958 if { (eval echo "$as_me:1958: \"$ac_cpp conftest.$ac_ext\"") >&5
1959 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1961 egrep -v '^ *\+' conftest.er1 >conftest.err
1963 cat conftest.err >&5
1964 echo "$as_me:1964: \$? = $ac_status" >&5
1965 (exit $ac_status); } >/dev/null; then
1966 if test -s conftest.err; then
1967 ac_cpp_err=$ac_c_preproc_warn_flag
1974 if test -z "$ac_cpp_err"; then
1975 # Broken: success on invalid input.
1978 echo "$as_me: failed program was:" >&5
1979 cat conftest.$ac_ext >&5
1980 # Passes both tests.
1984 rm -f conftest.err conftest.$ac_ext
1987 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1988 rm -f conftest.err conftest.$ac_ext
1989 if $ac_preproc_ok; then
2001 echo "$as_me:2001: result: $CPP" >&5
2002 echo "${ECHO_T}$CPP" >&6
2004 for ac_c_preproc_warn_flag in '' yes
2006 # Use a header file that comes with gcc, so configuring glibc
2007 # with a fresh cross-compiler works.
2008 # On the NeXT, cc -E runs the code through the compiler's parser,
2009 # not just through cpp. "Syntax error" is here to catch this case.
2010 cat >conftest.$ac_ext <<_ACEOF
2011 #line 2011 "configure"
2012 #include "confdefs.h"
2016 if { (eval echo "$as_me:2016: \"$ac_cpp conftest.$ac_ext\"") >&5
2017 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2019 egrep -v '^ *\+' conftest.er1 >conftest.err
2021 cat conftest.err >&5
2022 echo "$as_me:2022: \$? = $ac_status" >&5
2023 (exit $ac_status); } >/dev/null; then
2024 if test -s conftest.err; then
2025 ac_cpp_err=$ac_c_preproc_warn_flag
2032 if test -z "$ac_cpp_err"; then
2035 echo "$as_me: failed program was:" >&5
2036 cat conftest.$ac_ext >&5
2037 # Broken: fails on valid input.
2040 rm -f conftest.err conftest.$ac_ext
2042 # OK, works on sane cases. Now check whether non-existent headers
2043 # can be detected and how.
2044 cat >conftest.$ac_ext <<_ACEOF
2045 #line 2045 "configure"
2046 #include "confdefs.h"
2047 #include <ac_nonexistent.h>
2049 if { (eval echo "$as_me:2049: \"$ac_cpp conftest.$ac_ext\"") >&5
2050 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2052 egrep -v '^ *\+' conftest.er1 >conftest.err
2054 cat conftest.err >&5
2055 echo "$as_me:2055: \$? = $ac_status" >&5
2056 (exit $ac_status); } >/dev/null; then
2057 if test -s conftest.err; then
2058 ac_cpp_err=$ac_c_preproc_warn_flag
2065 if test -z "$ac_cpp_err"; then
2066 # Broken: success on invalid input.
2069 echo "$as_me: failed program was:" >&5
2070 cat conftest.$ac_ext >&5
2071 # Passes both tests.
2075 rm -f conftest.err conftest.$ac_ext
2078 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2079 rm -f conftest.err conftest.$ac_ext
2080 if $ac_preproc_ok; then
2083 { { echo "$as_me:2083: error: C preprocessor \"$CPP\" fails sanity check" >&5
2084 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2085 { (exit 1); exit 1; }; }
2089 ac_cpp='$CPP $CPPFLAGS'
2090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2093 ac_main_return=return
2095 if test $ac_cv_c_compiler_gnu = yes; then
2096 echo "$as_me:2096: checking whether $CC needs -traditional" >&5
2097 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2098 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2099 echo $ECHO_N "(cached) $ECHO_C" >&6
2101 ac_pattern="Autoconf.*'x'"
2102 cat >conftest.$ac_ext <<_ACEOF
2103 #line 2103 "configure"
2104 #include "confdefs.h"
2106 int Autoconf = TIOCGETP;
2108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2109 egrep "$ac_pattern" >/dev/null 2>&1; then
2110 ac_cv_prog_gcc_traditional=yes
2112 ac_cv_prog_gcc_traditional=no
2116 if test $ac_cv_prog_gcc_traditional = no; then
2117 cat >conftest.$ac_ext <<_ACEOF
2118 #line 2118 "configure"
2119 #include "confdefs.h"
2121 int Autoconf = TCGETA;
2123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2124 egrep "$ac_pattern" >/dev/null 2>&1; then
2125 ac_cv_prog_gcc_traditional=yes
2131 echo "$as_me:2131: result: $ac_cv_prog_gcc_traditional" >&5
2132 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2133 if test $ac_cv_prog_gcc_traditional = yes; then
2134 CC="$CC -traditional"
2138 echo "$as_me:2138: checking whether $CC understands -c and -o together" >&5
2139 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2140 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2141 echo $ECHO_N "(cached) $ECHO_C" >&6
2144 cat > conftest.$ac_ext <<CF_EOF
2148 ${cf_cv_main_return:-return}(0);
2151 # We do the test twice because some compilers refuse to overwrite an
2152 # existing .o file with -o, though they will create one.
2153 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2154 if { (eval echo "$as_me:2154: \"$ac_try\"") >&5
2157 echo "$as_me:2157: \$? = $ac_status" >&5
2158 (exit $ac_status); } &&
2159 test -f conftest2.$ac_objext && { (eval echo "$as_me:2159: \"$ac_try\"") >&5
2162 echo "$as_me:2162: \$? = $ac_status" >&5
2163 (exit $ac_status); };
2165 eval cf_cv_prog_CC_c_o=yes
2167 eval cf_cv_prog_CC_c_o=no
2172 if test $cf_cv_prog_CC_c_o = yes; then
2173 echo "$as_me:2173: result: yes" >&5
2174 echo "${ECHO_T}yes" >&6
2176 echo "$as_me:2176: result: no" >&5
2177 echo "${ECHO_T}no" >&6
2180 test "$program_prefix" != NONE &&
2181 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2182 # Use a double $ so make ignores it.
2183 test "$program_suffix" != NONE &&
2184 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2185 # Double any \ or $. echo might interpret backslashes.
2186 # By default was `s,x,x', remove it if useless.
2187 cat <<\_ACEOF >conftest.sed
2188 s/[\\$]/&&/g;s/;s,x,x,$//
2190 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2193 for ac_prog in mawk gawk nawk awk
2195 # Extract the first word of "$ac_prog", so it can be a program name with args.
2196 set dummy $ac_prog; ac_word=$2
2197 echo "$as_me:2197: checking for $ac_word" >&5
2198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2199 if test "${ac_cv_prog_AWK+set}" = set; then
2200 echo $ECHO_N "(cached) $ECHO_C" >&6
2202 if test -n "$AWK"; then
2203 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2205 ac_save_IFS=$IFS; IFS=$ac_path_separator
2207 for ac_dir in $ac_dummy; do
2209 test -z "$ac_dir" && ac_dir=.
2210 $as_executable_p "$ac_dir/$ac_word" || continue
2211 ac_cv_prog_AWK="$ac_prog"
2212 echo "$as_me:2212: found $ac_dir/$ac_word" >&5
2219 if test -n "$AWK"; then
2220 echo "$as_me:2220: result: $AWK" >&5
2221 echo "${ECHO_T}$AWK" >&6
2223 echo "$as_me:2223: result: no" >&5
2224 echo "${ECHO_T}no" >&6
2227 test -n "$AWK" && break
2230 test -z "$AWK" && { { echo "$as_me:2230: error: No awk program found" >&5
2231 echo "$as_me: error: No awk program found" >&2;}
2232 { (exit 1); exit 1; }; }
2234 echo "$as_me:2234: checking for egrep" >&5
2235 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2236 if test "${ac_cv_prog_egrep+set}" = set; then
2237 echo $ECHO_N "(cached) $ECHO_C" >&6
2239 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2240 then ac_cv_prog_egrep='grep -E'
2241 else ac_cv_prog_egrep='egrep'
2244 echo "$as_me:2244: result: $ac_cv_prog_egrep" >&5
2245 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2246 EGREP=$ac_cv_prog_egrep
2248 test -z "$EGREP" && { { echo "$as_me:2248: error: No egrep program found" >&5
2249 echo "$as_me: error: No egrep program found" >&2;}
2250 { (exit 1); exit 1; }; }
2252 # Find a good install program. We prefer a C program (faster),
2253 # so one script is as good as another. But avoid the broken or
2254 # incompatible versions:
2255 # SysV /etc/install, /usr/sbin/install
2256 # SunOS /usr/etc/install
2257 # IRIX /sbin/install
2259 # AmigaOS /C/install, which installs bootblocks on floppy discs
2260 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2261 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2262 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2263 # ./install, which can be erroneously created by make from ./install.sh.
2264 echo "$as_me:2264: checking for a BSD compatible install" >&5
2265 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2266 if test -z "$INSTALL"; then
2267 if test "${ac_cv_path_install+set}" = set; then
2268 echo $ECHO_N "(cached) $ECHO_C" >&6
2270 ac_save_IFS=$IFS; IFS=$ac_path_separator
2271 for ac_dir in $PATH; do
2273 # Account for people who put trailing slashes in PATH elements.
2275 / | ./ | .// | /cC/* \
2276 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2279 # OSF1 and SCO ODT 3.0 have their own names for install.
2280 # Don't use installbsd from OSF since it installs stuff as root
2282 for ac_prog in ginstall scoinst install; do
2283 if $as_executable_p "$ac_dir/$ac_prog"; then
2284 if test $ac_prog = install &&
2285 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2286 # AIX install. It has an incompatible calling convention.
2288 elif test $ac_prog = install &&
2289 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2290 # program-specific install script used by HP pwplus--don't use.
2293 ac_cv_path_install="$ac_dir/$ac_prog -c"
2303 if test "${ac_cv_path_install+set}" = set; then
2304 INSTALL=$ac_cv_path_install
2306 # As a last resort, use the slow shell script. We don't cache a
2307 # path for INSTALL within a source directory, because that will
2308 # break other packages using the cache if that directory is
2309 # removed, or if the path is relative.
2310 INSTALL=$ac_install_sh
2313 echo "$as_me:2313: result: $INSTALL" >&5
2314 echo "${ECHO_T}$INSTALL" >&6
2316 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2317 # It thinks the first close brace ends the variable substitution.
2318 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2320 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2322 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2324 echo "$as_me:2324: checking whether ln -s works" >&5
2325 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2327 if test "$LN_S" = "ln -s"; then
2328 echo "$as_me:2328: result: yes" >&5
2329 echo "${ECHO_T}yes" >&6
2331 echo "$as_me:2331: result: no, using $LN_S" >&5
2332 echo "${ECHO_T}no, using $LN_S" >&6
2335 echo "$as_me:2335: checking if $LN_S -f options work" >&5
2336 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
2338 rm -f conf$$.src conf$$dst
2340 echo first >conf$$.src
2341 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
2346 rm -f conf$$.dst conf$$src
2347 echo "$as_me:2347: result: $cf_prog_ln_sf" >&5
2348 echo "${ECHO_T}$cf_prog_ln_sf" >&6
2350 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
2352 echo "$as_me:2352: checking for long file names" >&5
2353 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
2354 if test "${ac_cv_sys_long_file_names+set}" = set; then
2355 echo $ECHO_N "(cached) $ECHO_C" >&6
2357 ac_cv_sys_long_file_names=yes
2358 # Test for long file names in all the places we know might matter:
2359 # . the current directory, where building will happen
2360 # $prefix/lib where we will be installing things
2361 # $exec_prefix/lib likewise
2362 # eval it to expand exec_prefix.
2363 # $TMPDIR if set, where it might want to write temporary files
2364 # if $TMPDIR is not set:
2365 # /tmp where it might want to write temporary files
2368 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
2371 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
2373 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
2374 test -d $ac_dir || continue
2375 test -w $ac_dir || continue # It is less confusing to not echo anything here.
2376 ac_xdir=$ac_dir/cf$$
2377 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
2378 ac_tf1=$ac_xdir/conftest9012345
2379 ac_tf2=$ac_xdir/conftest9012346
2380 (echo 1 >$ac_tf1) 2>/dev/null
2381 (echo 2 >$ac_tf2) 2>/dev/null
2382 ac_val=`cat $ac_tf1 2>/dev/null`
2383 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
2384 ac_cv_sys_long_file_names=no
2385 rm -rf $ac_xdir 2>/dev/null
2388 rm -rf $ac_xdir 2>/dev/null
2391 echo "$as_me:2391: result: $ac_cv_sys_long_file_names" >&5
2392 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
2393 if test $ac_cv_sys_long_file_names = yes; then
2395 cat >>confdefs.h <<\EOF
2396 #define HAVE_LONG_FILE_NAMES 1
2401 # if we find pkg-config, check if we should install the ".pc" files.
2403 echo "$as_me:2403: checking if you want to use pkg-config" >&5
2404 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
2406 # Check whether --with-pkg-config or --without-pkg-config was given.
2407 if test "${with_pkg_config+set}" = set; then
2408 withval="$with_pkg_config"
2409 cf_pkg_config=$withval
2413 echo "$as_me:2413: result: $cf_pkg_config" >&5
2414 echo "${ECHO_T}$cf_pkg_config" >&6
2416 case $cf_pkg_config in #(vi
2422 if test -n "$ac_tool_prefix"; then
2423 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
2424 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
2425 echo "$as_me:2425: checking for $ac_word" >&5
2426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2427 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
2428 echo $ECHO_N "(cached) $ECHO_C" >&6
2432 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
2435 ac_save_IFS=$IFS; IFS=$ac_path_separator
2437 for ac_dir in $ac_dummy; do
2439 test -z "$ac_dir" && ac_dir=.
2440 if $as_executable_p "$ac_dir/$ac_word"; then
2441 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
2442 echo "$as_me:2442: found $ac_dir/$ac_word" >&5
2450 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
2452 if test -n "$PKG_CONFIG"; then
2453 echo "$as_me:2453: result: $PKG_CONFIG" >&5
2454 echo "${ECHO_T}$PKG_CONFIG" >&6
2456 echo "$as_me:2456: result: no" >&5
2457 echo "${ECHO_T}no" >&6
2461 if test -z "$ac_cv_path_PKG_CONFIG"; then
2462 ac_pt_PKG_CONFIG=$PKG_CONFIG
2463 # Extract the first word of "pkg-config", so it can be a program name with args.
2464 set dummy pkg-config; ac_word=$2
2465 echo "$as_me:2465: checking for $ac_word" >&5
2466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2467 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
2468 echo $ECHO_N "(cached) $ECHO_C" >&6
2470 case $ac_pt_PKG_CONFIG in
2472 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
2475 ac_save_IFS=$IFS; IFS=$ac_path_separator
2477 for ac_dir in $ac_dummy; do
2479 test -z "$ac_dir" && ac_dir=.
2480 if $as_executable_p "$ac_dir/$ac_word"; then
2481 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
2482 echo "$as_me:2482: found $ac_dir/$ac_word" >&5
2487 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
2491 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
2493 if test -n "$ac_pt_PKG_CONFIG"; then
2494 echo "$as_me:2494: result: $ac_pt_PKG_CONFIG" >&5
2495 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
2497 echo "$as_me:2497: result: no" >&5
2498 echo "${ECHO_T}no" >&6
2501 PKG_CONFIG=$ac_pt_PKG_CONFIG
2503 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
2512 test -z "$PKG_CONFIG" && PKG_CONFIG=none
2513 if test "$PKG_CONFIG" != none ; then
2515 if test "x$prefix" != xNONE; then
2516 cf_path_syntax="$prefix"
2518 cf_path_syntax="$ac_default_prefix"
2521 case ".$PKG_CONFIG" in #(vi
2522 .\$\(*\)*|.\'*\'*) #(vi
2526 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
2528 .\${*prefix}*|.\${*dir}*) #(vi
2529 eval PKG_CONFIG="$PKG_CONFIG"
2530 case ".$PKG_CONFIG" in #(vi
2532 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
2537 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
2540 { { echo "$as_me:2540: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
2541 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
2542 { (exit 1); exit 1; }; }
2548 if test "$PKG_CONFIG" != none ; then
2549 echo "$as_me:2549: checking for $PKG_CONFIG library directory" >&5
2550 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
2552 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
2553 if test "${with_pkg_config_libdir+set}" = set; then
2554 withval="$with_pkg_config_libdir"
2555 PKG_CONFIG_LIBDIR=$withval
2557 PKG_CONFIG_LIBDIR=yes
2560 case x$PKG_CONFIG_LIBDIR in #(vi
2564 # look for the library directory using the same prefix as the executable
2565 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
2566 case x`(arch) 2>/dev/null` in #(vi
2568 for cf_config in $cf_path/share $cf_path/lib64 $cf_path/lib32 $cf_path/lib
2570 if test -d $cf_config/pkgconfig
2572 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
2578 PKG_CONFIG_LIBDIR=$cf_path/lib/pkgconfig
2586 echo "$as_me:2586: result: $PKG_CONFIG_LIBDIR" >&5
2587 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
2590 if test "$PKG_CONFIG" != none ; then
2591 echo "$as_me:2591: checking if we should install .pc files for $PKG_CONFIG" >&5
2592 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
2594 # Check whether --enable-pc-files or --disable-pc-files was given.
2595 if test "${enable_pc_files+set}" = set; then
2596 enableval="$enable_pc_files"
2597 enable_pc_files=$enableval
2601 echo "$as_me:2601: result: $enable_pc_files" >&5
2602 echo "${ECHO_T}$enable_pc_files" >&6
2603 if test "$enable_pc_files" != no
2606 if test "x$prefix" != xNONE; then
2607 cf_path_syntax="$prefix"
2609 cf_path_syntax="$ac_default_prefix"
2612 case ".$PKG_CONFIG_LIBDIR" in #(vi
2613 .\$\(*\)*|.\'*\'*) #(vi
2617 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
2619 .\${*prefix}*|.\${*dir}*) #(vi
2620 eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
2621 case ".$PKG_CONFIG_LIBDIR" in #(vi
2623 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
2628 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
2631 { { echo "$as_me:2631: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5
2632 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;}
2633 { (exit 1); exit 1; }; }
2642 echo "$as_me:2642: checking if you want to build test-programs" >&5
2643 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
2645 # Check whether --with-tests or --without-tests was given.
2646 if test "${with_tests+set}" = set; then
2647 withval="$with_tests"
2648 cf_with_tests=$withval
2652 echo "$as_me:2652: result: $cf_with_tests" >&5
2653 echo "${ECHO_T}$cf_with_tests" >&6
2655 echo "$as_me:2655: checking if we should assume mixed-case filenames" >&5
2656 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
2658 # Check whether --enable-mixed-case or --disable-mixed-case was given.
2659 if test "${enable_mixed_case+set}" = set; then
2660 enableval="$enable_mixed_case"
2661 enable_mixedcase=$enableval
2663 enable_mixedcase=auto
2665 echo "$as_me:2665: result: $enable_mixedcase" >&5
2666 echo "${ECHO_T}$enable_mixedcase" >&6
2667 if test "$enable_mixedcase" = "auto" ; then
2669 echo "$as_me:2669: checking if filesystem supports mixed-case filenames" >&5
2670 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2671 if test "${cf_cv_mixedcase+set}" = set; then
2672 echo $ECHO_N "(cached) $ECHO_C" >&6
2675 if test "$cross_compiling" = yes ; then
2676 case $target_alias in #(vi
2677 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*) #(vi
2685 rm -f conftest CONFTEST
2687 if test -f CONFTEST ; then
2692 rm -f conftest CONFTEST
2696 echo "$as_me:2696: result: $cf_cv_mixedcase" >&5
2697 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2698 test "$cf_cv_mixedcase" = yes &&
2699 cat >>confdefs.h <<\EOF
2700 #define MIXEDCASE_FILENAMES 1
2704 cf_cv_mixedcase=$enable_mixedcase
2705 if test "$enable_mixedcase" = "yes" ; then
2706 cat >>confdefs.h <<\EOF
2707 #define MIXEDCASE_FILENAMES 1
2713 # do this after mixed-case option (tags/TAGS is not as important as tic).
2714 echo "$as_me:2714: checking whether ${MAKE-make} sets \${MAKE}" >&5
2715 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2716 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2717 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2718 echo $ECHO_N "(cached) $ECHO_C" >&6
2720 cat >conftest.make <<\EOF
2722 @echo 'ac_maketemp="${MAKE}"'
2724 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2725 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2726 if test -n "$ac_maketemp"; then
2727 eval ac_cv_prog_make_${ac_make}_set=yes
2729 eval ac_cv_prog_make_${ac_make}_set=no
2733 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2734 echo "$as_me:2734: result: yes" >&5
2735 echo "${ECHO_T}yes" >&6
2738 echo "$as_me:2738: result: no" >&5
2739 echo "${ECHO_T}no" >&6
2740 SET_MAKE="MAKE=${MAKE-make}"
2743 for ac_prog in exctags ctags
2745 # Extract the first word of "$ac_prog", so it can be a program name with args.
2746 set dummy $ac_prog; ac_word=$2
2747 echo "$as_me:2747: checking for $ac_word" >&5
2748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2749 if test "${ac_cv_prog_CTAGS+set}" = set; then
2750 echo $ECHO_N "(cached) $ECHO_C" >&6
2752 if test -n "$CTAGS"; then
2753 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2755 ac_save_IFS=$IFS; IFS=$ac_path_separator
2757 for ac_dir in $ac_dummy; do
2759 test -z "$ac_dir" && ac_dir=.
2760 $as_executable_p "$ac_dir/$ac_word" || continue
2761 ac_cv_prog_CTAGS="$ac_prog"
2762 echo "$as_me:2762: found $ac_dir/$ac_word" >&5
2768 CTAGS=$ac_cv_prog_CTAGS
2769 if test -n "$CTAGS"; then
2770 echo "$as_me:2770: result: $CTAGS" >&5
2771 echo "${ECHO_T}$CTAGS" >&6
2773 echo "$as_me:2773: result: no" >&5
2774 echo "${ECHO_T}no" >&6
2777 test -n "$CTAGS" && break
2780 for ac_prog in exetags etags
2782 # Extract the first word of "$ac_prog", so it can be a program name with args.
2783 set dummy $ac_prog; ac_word=$2
2784 echo "$as_me:2784: checking for $ac_word" >&5
2785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2786 if test "${ac_cv_prog_ETAGS+set}" = set; then
2787 echo $ECHO_N "(cached) $ECHO_C" >&6
2789 if test -n "$ETAGS"; then
2790 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2792 ac_save_IFS=$IFS; IFS=$ac_path_separator
2794 for ac_dir in $ac_dummy; do
2796 test -z "$ac_dir" && ac_dir=.
2797 $as_executable_p "$ac_dir/$ac_word" || continue
2798 ac_cv_prog_ETAGS="$ac_prog"
2799 echo "$as_me:2799: found $ac_dir/$ac_word" >&5
2805 ETAGS=$ac_cv_prog_ETAGS
2806 if test -n "$ETAGS"; then
2807 echo "$as_me:2807: result: $ETAGS" >&5
2808 echo "${ECHO_T}$ETAGS" >&6
2810 echo "$as_me:2810: result: no" >&5
2811 echo "${ECHO_T}no" >&6
2814 test -n "$ETAGS" && break
2817 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2818 set dummy ${CTAGS:-ctags}; ac_word=$2
2819 echo "$as_me:2819: checking for $ac_word" >&5
2820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2821 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2822 echo $ECHO_N "(cached) $ECHO_C" >&6
2824 if test -n "$MAKE_LOWER_TAGS"; then
2825 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2827 ac_save_IFS=$IFS; IFS=$ac_path_separator
2829 for ac_dir in $ac_dummy; do
2831 test -z "$ac_dir" && ac_dir=.
2832 $as_executable_p "$ac_dir/$ac_word" || continue
2833 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2834 echo "$as_me:2834: found $ac_dir/$ac_word" >&5
2838 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2841 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2842 if test -n "$MAKE_LOWER_TAGS"; then
2843 echo "$as_me:2843: result: $MAKE_LOWER_TAGS" >&5
2844 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2846 echo "$as_me:2846: result: no" >&5
2847 echo "${ECHO_T}no" >&6
2850 if test "$cf_cv_mixedcase" = yes ; then
2851 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2852 set dummy ${ETAGS:-etags}; ac_word=$2
2853 echo "$as_me:2853: checking for $ac_word" >&5
2854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2855 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2858 if test -n "$MAKE_UPPER_TAGS"; then
2859 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2861 ac_save_IFS=$IFS; IFS=$ac_path_separator
2863 for ac_dir in $ac_dummy; do
2865 test -z "$ac_dir" && ac_dir=.
2866 $as_executable_p "$ac_dir/$ac_word" || continue
2867 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2868 echo "$as_me:2868: found $ac_dir/$ac_word" >&5
2872 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2875 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2876 if test -n "$MAKE_UPPER_TAGS"; then
2877 echo "$as_me:2877: result: $MAKE_UPPER_TAGS" >&5
2878 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2880 echo "$as_me:2880: result: no" >&5
2881 echo "${ECHO_T}no" >&6
2888 if test "$MAKE_UPPER_TAGS" = yes ; then
2894 if test "$MAKE_LOWER_TAGS" = yes ; then
2900 echo "$as_me:2900: checking for makeflags variable" >&5
2901 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
2902 if test "${cf_cv_makeflags+set}" = set; then
2903 echo $ECHO_N "(cached) $ECHO_C" >&6
2907 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
2909 cat >cf_makeflags.tmp <<CF_EOF
2912 @ echo '.$cf_option'
2914 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
2915 case "$cf_result" in
2917 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
2918 case "$cf_result" in
2919 .*CC=*) cf_cv_makeflags=
2921 *) cf_cv_makeflags=$cf_option
2927 *) echo "given option \"$cf_option\", no match \"$cf_result\""
2931 rm -f cf_makeflags.tmp
2934 echo "$as_me:2934: result: $cf_cv_makeflags" >&5
2935 echo "${ECHO_T}$cf_cv_makeflags" >&6
2937 if test -n "$ac_tool_prefix"; then
2938 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2939 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2940 echo "$as_me:2940: checking for $ac_word" >&5
2941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2942 if test "${ac_cv_prog_RANLIB+set}" = set; then
2943 echo $ECHO_N "(cached) $ECHO_C" >&6
2945 if test -n "$RANLIB"; then
2946 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2948 ac_save_IFS=$IFS; IFS=$ac_path_separator
2950 for ac_dir in $ac_dummy; do
2952 test -z "$ac_dir" && ac_dir=.
2953 $as_executable_p "$ac_dir/$ac_word" || continue
2954 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2955 echo "$as_me:2955: found $ac_dir/$ac_word" >&5
2961 RANLIB=$ac_cv_prog_RANLIB
2962 if test -n "$RANLIB"; then
2963 echo "$as_me:2963: result: $RANLIB" >&5
2964 echo "${ECHO_T}$RANLIB" >&6
2966 echo "$as_me:2966: result: no" >&5
2967 echo "${ECHO_T}no" >&6
2971 if test -z "$ac_cv_prog_RANLIB"; then
2972 ac_ct_RANLIB=$RANLIB
2973 # Extract the first word of "ranlib", so it can be a program name with args.
2974 set dummy ranlib; ac_word=$2
2975 echo "$as_me:2975: checking for $ac_word" >&5
2976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2977 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2978 echo $ECHO_N "(cached) $ECHO_C" >&6
2980 if test -n "$ac_ct_RANLIB"; then
2981 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2983 ac_save_IFS=$IFS; IFS=$ac_path_separator
2985 for ac_dir in $ac_dummy; do
2987 test -z "$ac_dir" && ac_dir=.
2988 $as_executable_p "$ac_dir/$ac_word" || continue
2989 ac_cv_prog_ac_ct_RANLIB="ranlib"
2990 echo "$as_me:2990: found $ac_dir/$ac_word" >&5
2994 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
2997 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2998 if test -n "$ac_ct_RANLIB"; then
2999 echo "$as_me:2999: result: $ac_ct_RANLIB" >&5
3000 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3002 echo "$as_me:3002: result: no" >&5
3003 echo "${ECHO_T}no" >&6
3006 RANLIB=$ac_ct_RANLIB
3008 RANLIB="$ac_cv_prog_RANLIB"
3011 if test -n "$ac_tool_prefix"; then
3012 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3013 set dummy ${ac_tool_prefix}ld; ac_word=$2
3014 echo "$as_me:3014: checking for $ac_word" >&5
3015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3016 if test "${ac_cv_prog_LD+set}" = set; then
3017 echo $ECHO_N "(cached) $ECHO_C" >&6
3019 if test -n "$LD"; then
3020 ac_cv_prog_LD="$LD" # Let the user override the test.
3022 ac_save_IFS=$IFS; IFS=$ac_path_separator
3024 for ac_dir in $ac_dummy; do
3026 test -z "$ac_dir" && ac_dir=.
3027 $as_executable_p "$ac_dir/$ac_word" || continue
3028 ac_cv_prog_LD="${ac_tool_prefix}ld"
3029 echo "$as_me:3029: found $ac_dir/$ac_word" >&5
3036 if test -n "$LD"; then
3037 echo "$as_me:3037: result: $LD" >&5
3038 echo "${ECHO_T}$LD" >&6
3040 echo "$as_me:3040: result: no" >&5
3041 echo "${ECHO_T}no" >&6
3045 if test -z "$ac_cv_prog_LD"; then
3047 # Extract the first word of "ld", so it can be a program name with args.
3048 set dummy ld; ac_word=$2
3049 echo "$as_me:3049: checking for $ac_word" >&5
3050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3051 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3052 echo $ECHO_N "(cached) $ECHO_C" >&6
3054 if test -n "$ac_ct_LD"; then
3055 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3057 ac_save_IFS=$IFS; IFS=$ac_path_separator
3059 for ac_dir in $ac_dummy; do
3061 test -z "$ac_dir" && ac_dir=.
3062 $as_executable_p "$ac_dir/$ac_word" || continue
3063 ac_cv_prog_ac_ct_LD="ld"
3064 echo "$as_me:3064: found $ac_dir/$ac_word" >&5
3068 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3071 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3072 if test -n "$ac_ct_LD"; then
3073 echo "$as_me:3073: result: $ac_ct_LD" >&5
3074 echo "${ECHO_T}$ac_ct_LD" >&6
3076 echo "$as_me:3076: result: no" >&5
3077 echo "${ECHO_T}no" >&6
3085 if test -n "$ac_tool_prefix"; then
3086 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3087 set dummy ${ac_tool_prefix}ar; ac_word=$2
3088 echo "$as_me:3088: checking for $ac_word" >&5
3089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3090 if test "${ac_cv_prog_AR+set}" = set; then
3091 echo $ECHO_N "(cached) $ECHO_C" >&6
3093 if test -n "$AR"; then
3094 ac_cv_prog_AR="$AR" # Let the user override the test.
3096 ac_save_IFS=$IFS; IFS=$ac_path_separator
3098 for ac_dir in $ac_dummy; do
3100 test -z "$ac_dir" && ac_dir=.
3101 $as_executable_p "$ac_dir/$ac_word" || continue
3102 ac_cv_prog_AR="${ac_tool_prefix}ar"
3103 echo "$as_me:3103: found $ac_dir/$ac_word" >&5
3110 if test -n "$AR"; then
3111 echo "$as_me:3111: result: $AR" >&5
3112 echo "${ECHO_T}$AR" >&6
3114 echo "$as_me:3114: result: no" >&5
3115 echo "${ECHO_T}no" >&6
3119 if test -z "$ac_cv_prog_AR"; then
3121 # Extract the first word of "ar", so it can be a program name with args.
3122 set dummy ar; ac_word=$2
3123 echo "$as_me:3123: checking for $ac_word" >&5
3124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3125 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3126 echo $ECHO_N "(cached) $ECHO_C" >&6
3128 if test -n "$ac_ct_AR"; then
3129 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3131 ac_save_IFS=$IFS; IFS=$ac_path_separator
3133 for ac_dir in $ac_dummy; do
3135 test -z "$ac_dir" && ac_dir=.
3136 $as_executable_p "$ac_dir/$ac_word" || continue
3137 ac_cv_prog_ac_ct_AR="ar"
3138 echo "$as_me:3138: found $ac_dir/$ac_word" >&5
3142 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3145 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3146 if test -n "$ac_ct_AR"; then
3147 echo "$as_me:3147: result: $ac_ct_AR" >&5
3148 echo "${ECHO_T}$ac_ct_AR" >&6
3150 echo "$as_me:3150: result: no" >&5
3151 echo "${ECHO_T}no" >&6
3159 if test -n "$ac_tool_prefix"; then
3160 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3161 set dummy ${ac_tool_prefix}ar; ac_word=$2
3162 echo "$as_me:3162: checking for $ac_word" >&5
3163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3164 if test "${ac_cv_prog_AR+set}" = set; then
3165 echo $ECHO_N "(cached) $ECHO_C" >&6
3167 if test -n "$AR"; then
3168 ac_cv_prog_AR="$AR" # Let the user override the test.
3170 ac_save_IFS=$IFS; IFS=$ac_path_separator
3172 for ac_dir in $ac_dummy; do
3174 test -z "$ac_dir" && ac_dir=.
3175 $as_executable_p "$ac_dir/$ac_word" || continue
3176 ac_cv_prog_AR="${ac_tool_prefix}ar"
3177 echo "$as_me:3177: found $ac_dir/$ac_word" >&5
3184 if test -n "$AR"; then
3185 echo "$as_me:3185: result: $AR" >&5
3186 echo "${ECHO_T}$AR" >&6
3188 echo "$as_me:3188: result: no" >&5
3189 echo "${ECHO_T}no" >&6
3193 if test -z "$ac_cv_prog_AR"; then
3195 # Extract the first word of "ar", so it can be a program name with args.
3196 set dummy ar; ac_word=$2
3197 echo "$as_me:3197: checking for $ac_word" >&5
3198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3199 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3200 echo $ECHO_N "(cached) $ECHO_C" >&6
3202 if test -n "$ac_ct_AR"; then
3203 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3205 ac_save_IFS=$IFS; IFS=$ac_path_separator
3207 for ac_dir in $ac_dummy; do
3209 test -z "$ac_dir" && ac_dir=.
3210 $as_executable_p "$ac_dir/$ac_word" || continue
3211 ac_cv_prog_ac_ct_AR="ar"
3212 echo "$as_me:3212: found $ac_dir/$ac_word" >&5
3216 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3219 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3220 if test -n "$ac_ct_AR"; then
3221 echo "$as_me:3221: result: $ac_ct_AR" >&5
3222 echo "${ECHO_T}$ac_ct_AR" >&6
3224 echo "$as_me:3224: result: no" >&5
3225 echo "${ECHO_T}no" >&6
3233 echo "$as_me:3233: checking for options to update archives" >&5
3234 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
3235 if test "${cf_cv_ar_flags+set}" = set; then
3236 echo $ECHO_N "(cached) $ECHO_C" >&6
3239 cf_cv_ar_flags=unknown
3240 for cf_ar_flags in -curv curv -crv crv -cqv cqv -rv rv
3243 # check if $ARFLAGS already contains this choice
3244 if test "x$ARFLAGS" != "x" ; then
3245 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
3246 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
3252 rm -f conftest.$ac_cv_objext
3255 cat >conftest.$ac_ext <<EOF
3256 #line 3256 "configure"
3257 int testdata[3] = { 123, 456, 789 };
3259 if { (eval echo "$as_me:3259: \"$ac_compile\"") >&5
3260 (eval $ac_compile) 2>&5
3262 echo "$as_me:3262: \$? = $ac_status" >&5
3263 (exit $ac_status); } ; then
3264 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
3265 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
3266 if test -f conftest.a ; then
3267 cf_cv_ar_flags=$cf_ar_flags
3271 test -n "$verbose" && echo " cannot compile test-program" 1>&6
3273 echo "${as_me:-configure}:3273: testing cannot compile test-program ..." 1>&5
3278 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
3281 echo "$as_me:3281: result: $cf_cv_ar_flags" >&5
3282 echo "${ECHO_T}$cf_cv_ar_flags" >&6
3284 if test -n "$ARFLAGS" ; then
3285 if test -n "$cf_cv_ar_flags" ; then
3286 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
3289 ARFLAGS=$cf_cv_ar_flags
3292 echo "$as_me:3292: checking for PATH separator" >&5
3293 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
3294 case $cf_cv_system_name in
3295 os2*) PATH_SEPARATOR=';' ;;
3296 *) ${PATH_SEPARATOR:=':'} ;;
3299 echo "$as_me:3299: result: $PATH_SEPARATOR" >&5
3300 echo "${ECHO_T}$PATH_SEPARATOR" >&6
3302 echo "$as_me:3302: checking if you have specified an install-prefix" >&5
3303 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
3305 # Check whether --with-install-prefix or --without-install-prefix was given.
3306 if test "${with_install_prefix+set}" = set; then
3307 withval="$with_install_prefix"
3308 case "$withval" in #(vi
3311 *) DESTDIR="$withval"
3315 echo "$as_me:3315: result: $DESTDIR" >&5
3316 echo "${ECHO_T}$DESTDIR" >&6
3318 ###############################################################################
3320 # If we're cross-compiling, allow the user to override the tools and their
3321 # options. The configure script is oriented toward identifying the host
3322 # compiler, etc., but we need a build compiler to generate parts of the source.
3324 if test "$cross_compiling" = yes ; then
3326 # defaults that we might want to override
3327 : ${BUILD_CFLAGS:=''}
3328 : ${BUILD_CPPFLAGS:=''}
3329 : ${BUILD_LDFLAGS:=''}
3331 : ${BUILD_EXEEXT:='$x'}
3332 : ${BUILD_OBJEXT:='o'}
3334 # Check whether --with-build-cc or --without-build-cc was given.
3335 if test "${with_build_cc+set}" = set; then
3336 withval="$with_build_cc"
3339 for ac_prog in gcc cc cl
3341 # Extract the first word of "$ac_prog", so it can be a program name with args.
3342 set dummy $ac_prog; ac_word=$2
3343 echo "$as_me:3343: checking for $ac_word" >&5
3344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3345 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3346 echo $ECHO_N "(cached) $ECHO_C" >&6
3348 if test -n "$BUILD_CC"; then
3349 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3351 ac_save_IFS=$IFS; IFS=$ac_path_separator
3353 for ac_dir in $ac_dummy; do
3355 test -z "$ac_dir" && ac_dir=.
3356 $as_executable_p "$ac_dir/$ac_word" || continue
3357 ac_cv_prog_BUILD_CC="$ac_prog"
3358 echo "$as_me:3358: found $ac_dir/$ac_word" >&5
3364 BUILD_CC=$ac_cv_prog_BUILD_CC
3365 if test -n "$BUILD_CC"; then
3366 echo "$as_me:3366: result: $BUILD_CC" >&5
3367 echo "${ECHO_T}$BUILD_CC" >&6
3369 echo "$as_me:3369: result: no" >&5
3370 echo "${ECHO_T}no" >&6
3373 test -n "$BUILD_CC" && break
3377 echo "$as_me:3377: checking for native build C compiler" >&5
3378 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
3379 echo "$as_me:3379: result: $BUILD_CC" >&5
3380 echo "${ECHO_T}$BUILD_CC" >&6
3382 echo "$as_me:3382: checking for native build C preprocessor" >&5
3383 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
3385 # Check whether --with-build-cpp or --without-build-cpp was given.
3386 if test "${with_build_cpp+set}" = set; then
3387 withval="$with_build_cpp"
3388 BUILD_CPP="$withval"
3390 BUILD_CPP='${BUILD_CC} -E'
3392 echo "$as_me:3392: result: $BUILD_CPP" >&5
3393 echo "${ECHO_T}$BUILD_CPP" >&6
3395 echo "$as_me:3395: checking for native build C flags" >&5
3396 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
3398 # Check whether --with-build-cflags or --without-build-cflags was given.
3399 if test "${with_build_cflags+set}" = set; then
3400 withval="$with_build_cflags"
3401 BUILD_CFLAGS="$withval"
3403 echo "$as_me:3403: result: $BUILD_CFLAGS" >&5
3404 echo "${ECHO_T}$BUILD_CFLAGS" >&6
3406 echo "$as_me:3406: checking for native build C preprocessor-flags" >&5
3407 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
3409 # Check whether --with-build-cppflags or --without-build-cppflags was given.
3410 if test "${with_build_cppflags+set}" = set; then
3411 withval="$with_build_cppflags"
3412 BUILD_CPPFLAGS="$withval"
3414 echo "$as_me:3414: result: $BUILD_CPPFLAGS" >&5
3415 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
3417 echo "$as_me:3417: checking for native build linker-flags" >&5
3418 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
3420 # Check whether --with-build-ldflags or --without-build-ldflags was given.
3421 if test "${with_build_ldflags+set}" = set; then
3422 withval="$with_build_ldflags"
3423 BUILD_LDFLAGS="$withval"
3425 echo "$as_me:3425: result: $BUILD_LDFLAGS" >&5
3426 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
3428 echo "$as_me:3428: checking for native build linker-libraries" >&5
3429 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
3431 # Check whether --with-build-libs or --without-build-libs was given.
3432 if test "${with_build_libs+set}" = set; then
3433 withval="$with_build_libs"
3434 BUILD_LIBS="$withval"
3436 echo "$as_me:3436: result: $BUILD_LIBS" >&5
3437 echo "${ECHO_T}$BUILD_LIBS" >&6
3439 # this assumes we're on Unix.
3443 : ${BUILD_CC:='${CC}'}
3445 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
3446 { { echo "$as_me:3446: error: Cross-build requires two compilers.
3447 Use --with-build-cc to specify the native compiler." >&5
3448 echo "$as_me: error: Cross-build requires two compilers.
3449 Use --with-build-cc to specify the native compiler." >&2;}
3450 { (exit 1); exit 1; }; }
3454 : ${BUILD_CC:='${CC}'}
3455 : ${BUILD_CPP:='${CPP}'}
3456 : ${BUILD_CFLAGS:='${CFLAGS}'}
3457 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
3458 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
3459 : ${BUILD_LIBS:='${LIBS}'}
3460 : ${BUILD_EXEEXT:='$x'}
3461 : ${BUILD_OBJEXT:='o'}
3464 ###############################################################################
3466 ### Options to allow the user to specify the set of libraries which are used.
3467 ### Use "--without-normal --with-shared" to allow the default model to be
3468 ### shared, for example.
3471 echo "$as_me:3471: checking if you want to build shared C-objects" >&5
3472 echo $ECHO_N "checking if you want to build shared C-objects... $ECHO_C" >&6
3474 # Check whether --with-shared or --without-shared was given.
3475 if test "${with_shared+set}" = set; then
3476 withval="$with_shared"
3477 with_shared=$withval
3481 echo "$as_me:3481: result: $with_shared" >&5
3482 echo "${ECHO_T}$with_shared" >&6
3483 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
3485 echo "$as_me:3485: checking for specified models" >&5
3486 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
3487 test -z "$cf_list_models" && cf_list_models=normal
3488 echo "$as_me:3488: result: $cf_list_models" >&5
3489 echo "${ECHO_T}$cf_list_models" >&6
3491 ### Use the first model as the default, and save its suffix for use in building
3492 ### up test-applications.
3493 echo "$as_me:3493: checking for default model" >&5
3494 echo $ECHO_N "checking for default model... $ECHO_C" >&6
3495 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
3496 echo "$as_me:3496: result: $DFT_LWR_MODEL" >&5
3497 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
3499 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3501 echo "$as_me:3501: checking for specific curses-directory" >&5
3502 echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6
3504 # Check whether --with-curses-dir or --without-curses-dir was given.
3505 if test "${with_curses_dir+set}" = set; then
3506 withval="$with_curses_dir"
3507 cf_cv_curses_dir=$withval
3511 echo "$as_me:3511: result: $cf_cv_curses_dir" >&5
3512 echo "${ECHO_T}$cf_cv_curses_dir" >&6
3514 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
3517 if test "x$prefix" != xNONE; then
3518 cf_path_syntax="$prefix"
3520 cf_path_syntax="$ac_default_prefix"
3523 case ".$withval" in #(vi
3524 .\$\(*\)*|.\'*\'*) #(vi
3528 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3530 .\${*prefix}*|.\${*dir}*) #(vi
3531 eval withval="$withval"
3532 case ".$withval" in #(vi
3534 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
3539 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
3542 { { echo "$as_me:3542: error: expected a pathname, not \"$withval\"" >&5
3543 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
3544 { (exit 1); exit 1; }; }
3548 if test -d "$cf_cv_curses_dir"
3551 if test -n "$cf_cv_curses_dir/include" ; then
3552 for cf_add_incdir in $cf_cv_curses_dir/include
3554 while test $cf_add_incdir != /usr/include
3556 if test -d $cf_add_incdir
3559 if test -n "$CFLAGS$CPPFLAGS" ; then
3560 # a loop is needed to ensure we can add subdirs of existing dirs
3561 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
3562 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
3563 cf_have_incdir=yes; break
3568 if test "$cf_have_incdir" = no ; then
3569 if test "$cf_add_incdir" = /usr/local/include ; then
3570 if test "$GCC" = yes
3572 cf_save_CPPFLAGS=$CPPFLAGS
3573 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
3574 cat >conftest.$ac_ext <<_ACEOF
3575 #line 3575 "configure"
3576 #include "confdefs.h"
3586 rm -f conftest.$ac_objext
3587 if { (eval echo "$as_me:3587: \"$ac_compile\"") >&5
3588 (eval $ac_compile) 2>&5
3590 echo "$as_me:3590: \$? = $ac_status" >&5
3591 (exit $ac_status); } &&
3592 { ac_try='test -s conftest.$ac_objext'
3593 { (eval echo "$as_me:3593: \"$ac_try\"") >&5
3596 echo "$as_me:3596: \$? = $ac_status" >&5
3597 (exit $ac_status); }; }; then
3600 echo "$as_me: failed program was:" >&5
3601 cat conftest.$ac_ext >&5
3604 rm -f conftest.$ac_objext conftest.$ac_ext
3605 CPPFLAGS=$cf_save_CPPFLAGS
3610 if test "$cf_have_incdir" = no ; then
3611 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
3613 echo "${as_me:-configure}:3613: testing adding $cf_add_incdir to include-path ..." 1>&5
3615 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
3617 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
3618 test "$cf_top_incdir" = "$cf_add_incdir" && break
3619 cf_add_incdir="$cf_top_incdir"
3628 if test -n "$cf_cv_curses_dir/lib" ; then
3629 for cf_add_libdir in $cf_cv_curses_dir/lib
3631 if test $cf_add_libdir = /usr/lib ; then
3633 elif test -d $cf_add_libdir
3636 if test -n "$LDFLAGS$LIBS" ; then
3637 # a loop is needed to ensure we can add subdirs of existing dirs
3638 for cf_test_libdir in $LDFLAGS $LIBS ; do
3639 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
3640 cf_have_libdir=yes; break
3644 if test "$cf_have_libdir" = no ; then
3645 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
3647 echo "${as_me:-configure}:3647: testing adding $cf_add_libdir to library-path ..." 1>&5
3649 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
3658 echo "$as_me:3658: checking if you want wide-character code" >&5
3659 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
3661 # Check whether --enable-widec or --disable-widec was given.
3662 if test "${enable_widec+set}" = set; then
3663 enableval="$enable_widec"
3664 with_widec=$enableval
3668 echo "$as_me:3668: result: $with_widec" >&5
3669 echo "${ECHO_T}$with_widec" >&6
3670 if test "$with_widec" = yes ; then
3672 echo "$as_me:3672: checking for multibyte character support" >&5
3673 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
3674 if test "${cf_cv_utf8_lib+set}" = set; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3678 cf_save_LIBS="$LIBS"
3679 cat >conftest.$ac_ext <<_ACEOF
3680 #line 3680 "configure"
3681 #include "confdefs.h"
3692 rm -f conftest.$ac_objext conftest$ac_exeext
3693 if { (eval echo "$as_me:3693: \"$ac_link\"") >&5
3694 (eval $ac_link) 2>&5
3696 echo "$as_me:3696: \$? = $ac_status" >&5
3697 (exit $ac_status); } &&
3698 { ac_try='test -s conftest$ac_exeext'
3699 { (eval echo "$as_me:3699: \"$ac_try\"") >&5
3702 echo "$as_me:3702: \$? = $ac_status" >&5
3703 (exit $ac_status); }; }; then
3706 echo "$as_me: failed program was:" >&5
3707 cat conftest.$ac_ext >&5
3709 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
3710 # will be set on completion of the AC_TRY_LINK below.
3711 cf_cv_header_path_utf8=
3712 cf_cv_library_path_utf8=
3714 echo "${as_me:-configure}:3714: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
3716 cf_save_LIBS="$LIBS"
3718 cat >conftest.$ac_ext <<_ACEOF
3719 #line 3719 "configure"
3720 #include "confdefs.h"
3722 #include <libutf8.h>
3731 rm -f conftest.$ac_objext conftest$ac_exeext
3732 if { (eval echo "$as_me:3732: \"$ac_link\"") >&5
3733 (eval $ac_link) 2>&5
3735 echo "$as_me:3735: \$? = $ac_status" >&5
3736 (exit $ac_status); } &&
3737 { ac_try='test -s conftest$ac_exeext'
3738 { (eval echo "$as_me:3738: \"$ac_try\"") >&5
3741 echo "$as_me:3741: \$? = $ac_status" >&5
3742 (exit $ac_status); }; }; then
3744 cf_cv_find_linkage_utf8=yes
3745 cf_cv_header_path_utf8=/usr/include
3746 cf_cv_library_path_utf8=/usr/lib
3749 echo "$as_me: failed program was:" >&5
3750 cat conftest.$ac_ext >&5
3752 LIBS="-lutf8 $cf_save_LIBS"
3754 cat >conftest.$ac_ext <<_ACEOF
3755 #line 3755 "configure"
3756 #include "confdefs.h"
3758 #include <libutf8.h>
3767 rm -f conftest.$ac_objext conftest$ac_exeext
3768 if { (eval echo "$as_me:3768: \"$ac_link\"") >&5
3769 (eval $ac_link) 2>&5
3771 echo "$as_me:3771: \$? = $ac_status" >&5
3772 (exit $ac_status); } &&
3773 { ac_try='test -s conftest$ac_exeext'
3774 { (eval echo "$as_me:3774: \"$ac_try\"") >&5
3777 echo "$as_me:3777: \$? = $ac_status" >&5
3778 (exit $ac_status); }; }; then
3780 cf_cv_find_linkage_utf8=yes
3781 cf_cv_header_path_utf8=/usr/include
3782 cf_cv_library_path_utf8=/usr/lib
3783 cf_cv_library_file_utf8="-lutf8"
3786 echo "$as_me: failed program was:" >&5
3787 cat conftest.$ac_ext >&5
3789 cf_cv_find_linkage_utf8=no
3790 LIBS="$cf_save_LIBS"
3792 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
3794 echo "${as_me:-configure}:3794: testing find linkage for utf8 library ..." 1>&5
3796 echo "${as_me:-configure}:3796: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
3798 cf_save_CPPFLAGS="$CPPFLAGS"
3799 cf_test_CPPFLAGS="$CPPFLAGS"
3803 # collect the current set of include-directories from compiler flags
3804 cf_header_path_list=""
3805 if test -n "${CFLAGS}${CPPFLAGS}" ; then
3806 for cf_header_path in $CPPFLAGS $CFLAGS
3808 case $cf_header_path in #(vi
3810 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
3812 test "x$cf_header_path" != "xNONE" && \
3813 test -d "$cf_header_path" && \
3815 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
3816 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
3817 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
3818 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
3819 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
3820 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
3823 cf_header_path_list="$cf_header_path_list $cf_search"
3829 # add the variations for the package we are looking for
3833 test "x/usr" != "x$prefix" && \
3835 (test -z "$prefix" || test x$prefix = xNONE || test "x/usr" != "x$prefix") && {
3836 test -n "$verbose" && echo " ... testing for include-directories under /usr"
3837 test -d /usr/include && cf_search="$cf_search /usr/include"
3838 test -d /usr/include/utf8 && cf_search="$cf_search /usr/include/utf8"
3839 test -d /usr/include/utf8/include && cf_search="$cf_search /usr/include/utf8/include"
3840 test -d /usr/utf8/include && cf_search="$cf_search /usr/utf8/include"
3841 test -d /usr/utf8/include/utf8 && cf_search="$cf_search /usr/utf8/include/utf8"
3844 test "x$prefix" != "xNONE" && \
3845 test -d "$prefix" && \
3847 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
3848 test -d $prefix/include && cf_search="$cf_search $prefix/include"
3849 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
3850 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
3851 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
3852 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
3855 test "x/usr/local" != "x$prefix" && \
3856 test -d "/usr/local" && \
3857 (test -z "$prefix" || test x$prefix = xNONE || test "x/usr/local" != "x$prefix") && {
3858 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
3859 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
3860 test -d /usr/local/include/utf8 && cf_search="$cf_search /usr/local/include/utf8"
3861 test -d /usr/local/include/utf8/include && cf_search="$cf_search /usr/local/include/utf8/include"
3862 test -d /usr/local/utf8/include && cf_search="$cf_search /usr/local/utf8/include"
3863 test -d /usr/local/utf8/include/utf8 && cf_search="$cf_search /usr/local/utf8/include/utf8"
3866 test "x/opt" != "x$prefix" && \
3868 (test -z "$prefix" || test x$prefix = xNONE || test "x/opt" != "x$prefix") && {
3869 test -n "$verbose" && echo " ... testing for include-directories under /opt"
3870 test -d /opt/include && cf_search="$cf_search /opt/include"
3871 test -d /opt/include/utf8 && cf_search="$cf_search /opt/include/utf8"
3872 test -d /opt/include/utf8/include && cf_search="$cf_search /opt/include/utf8/include"
3873 test -d /opt/utf8/include && cf_search="$cf_search /opt/utf8/include"
3874 test -d /opt/utf8/include/utf8 && cf_search="$cf_search /opt/utf8/include/utf8"
3877 test "x$HOME" != "x$prefix" && \
3878 test -d "$HOME" && \
3879 (test -z "$prefix" || test x$prefix = xNONE || test "x$HOME" != "x$prefix") && {
3880 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
3881 test -d $HOME/include && cf_search="$cf_search $HOME/include"
3882 test -d $HOME/include/utf8 && cf_search="$cf_search $HOME/include/utf8"
3883 test -d $HOME/include/utf8/include && cf_search="$cf_search $HOME/include/utf8/include"
3884 test -d $HOME/utf8/include && cf_search="$cf_search $HOME/utf8/include"
3885 test -d $HOME/utf8/include/utf8 && cf_search="$cf_search $HOME/utf8/include/utf8"
3888 test "$includedir" != NONE && \
3889 test "$includedir" != "/usr/include" && \
3890 test -d "$includedir" && {
3891 test -d $includedir && cf_search="$cf_search $includedir"
3892 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
3895 test "$oldincludedir" != NONE && \
3896 test "$oldincludedir" != "/usr/include" && \
3897 test -d "$oldincludedir" && {
3898 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
3899 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
3902 cf_search="$cf_search $cf_header_path_list"
3904 for cf_cv_header_path_utf8 in $cf_search
3906 if test -d $cf_cv_header_path_utf8 ; then
3907 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
3909 echo "${as_me:-configure}:3909: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
3911 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
3912 cat >conftest.$ac_ext <<_ACEOF
3913 #line 3913 "configure"
3914 #include "confdefs.h"
3916 #include <libutf8.h>
3925 rm -f conftest.$ac_objext
3926 if { (eval echo "$as_me:3926: \"$ac_compile\"") >&5
3927 (eval $ac_compile) 2>&5
3929 echo "$as_me:3929: \$? = $ac_status" >&5
3930 (exit $ac_status); } &&
3931 { ac_try='test -s conftest.$ac_objext'
3932 { (eval echo "$as_me:3932: \"$ac_try\"") >&5
3935 echo "$as_me:3935: \$? = $ac_status" >&5
3936 (exit $ac_status); }; }; then
3938 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6