FYI: Reply from HP-UX
[git/dscho.git] / flex-2.5.33 / configure
blob1420f23b7c42be4b3b23b798efd4f4da4e1d2b7f
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for flex 2.5.33.
5 # Report bugs to <flex-help@lists.sourceforge.net>.
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
46 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
51 done
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
98 rm -f conf$$.sh
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
156 esac
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 as_mkdir_p=false
226 as_executable_p="test -f"
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
239 IFS=" $as_nl"
241 # CDPATH.
242 $as_unset CDPATH
245 # Name of the host.
246 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247 # so uname gets run too.
248 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250 exec 6>&1
253 # Initializations.
255 ac_default_prefix=/usr/local
256 ac_config_libobj_dir=.
257 cross_compiling=no
258 subdirs=
259 MFLAGS=
260 MAKEFLAGS=
261 SHELL=${CONFIG_SHELL-/bin/sh}
263 # Maximum number of lines to put in a shell here document.
264 # This variable seems obsolete. It should probably be removed, and
265 # only ac_max_sed_lines should be used.
266 : ${ac_max_here_lines=38}
268 # Identity of this package.
269 PACKAGE_NAME='flex'
270 PACKAGE_TARNAME='flex'
271 PACKAGE_VERSION='2.5.33'
272 PACKAGE_STRING='flex 2.5.33'
273 PACKAGE_BUGREPORT='flex-help@lists.sourceforge.net'
275 ac_unique_file="scan.l"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB YACC LEX LEXLIB LEX_OUTPUT_ROOT CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE LN_S RANLIB ac_ct_RANLIB BISON HELP2MAN M4 INDENT CPP EGREP LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=config.cache
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
354 if [ "`uname -s`" = "HP-UX" ]
355 then
356 export prefix="/usr/local"
357 export PATH="$prefix/bin:$PATH"
358 if [ "`uname -m`" = "ia64" ]
359 then
360 export libdir="$prefix/lib/hpux32"
361 export SHEXT="so"
362 else
363 export SHEXT="sl"
365 export CC="cc"
366 export CFLAGS="-O +z -I$prefix/include -D_INCLUDE_STDC__SOURCE_199901"
367 export CXX="aCC -AA"
368 export CPPFLAGS="$CFLAGS"
369 export CXXFLAGS="$CFLAGS"
370 export LDFLAGS="-Wl,+b -Wl,$libdir"
371 export F77="/bin/true"
372 export RANLIB="/bin/true"
375 ac_prev=
376 for ac_option
378 # If the previous option needs an argument, assign it.
379 if test -n "$ac_prev"; then
380 eval "$ac_prev=\$ac_option"
381 ac_prev=
382 continue
385 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
387 # Accept the important Cygnus configure options, so we can diagnose typos.
389 case $ac_option in
391 -bindir | --bindir | --bindi | --bind | --bin | --bi)
392 ac_prev=bindir ;;
393 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
394 bindir=$ac_optarg ;;
396 -build | --build | --buil | --bui | --bu)
397 ac_prev=build_alias ;;
398 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
399 build_alias=$ac_optarg ;;
401 -cache-file | --cache-file | --cache-fil | --cache-fi \
402 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
403 ac_prev=cache_file ;;
404 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
405 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
406 cache_file=$ac_optarg ;;
408 --config-cache | -C)
409 cache_file=config.cache ;;
411 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
412 ac_prev=datadir ;;
413 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
414 | --da=*)
415 datadir=$ac_optarg ;;
417 -disable-* | --disable-*)
418 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
419 # Reject names that are not valid shell variable names.
420 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
421 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
422 { (exit 1); exit 1; }; }
423 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
424 eval "enable_$ac_feature=no" ;;
426 -enable-* | --enable-*)
427 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
428 # Reject names that are not valid shell variable names.
429 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
430 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
431 { (exit 1); exit 1; }; }
432 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
433 case $ac_option in
434 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
435 *) ac_optarg=yes ;;
436 esac
437 eval "enable_$ac_feature='$ac_optarg'" ;;
439 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
440 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
441 | --exec | --exe | --ex)
442 ac_prev=exec_prefix ;;
443 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
444 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
445 | --exec=* | --exe=* | --ex=*)
446 exec_prefix=$ac_optarg ;;
448 -gas | --gas | --ga | --g)
449 # Obsolete; use --with-gas.
450 with_gas=yes ;;
452 -help | --help | --hel | --he | -h)
453 ac_init_help=long ;;
454 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
455 ac_init_help=recursive ;;
456 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
457 ac_init_help=short ;;
459 -host | --host | --hos | --ho)
460 ac_prev=host_alias ;;
461 -host=* | --host=* | --hos=* | --ho=*)
462 host_alias=$ac_optarg ;;
464 -includedir | --includedir | --includedi | --included | --include \
465 | --includ | --inclu | --incl | --inc)
466 ac_prev=includedir ;;
467 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
468 | --includ=* | --inclu=* | --incl=* | --inc=*)
469 includedir=$ac_optarg ;;
471 -infodir | --infodir | --infodi | --infod | --info | --inf)
472 ac_prev=infodir ;;
473 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
474 infodir=$ac_optarg ;;
476 -libdir | --libdir | --libdi | --libd)
477 ac_prev=libdir ;;
478 -libdir=* | --libdir=* | --libdi=* | --libd=*)
479 libdir=$ac_optarg ;;
481 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
482 | --libexe | --libex | --libe)
483 ac_prev=libexecdir ;;
484 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
485 | --libexe=* | --libex=* | --libe=*)
486 libexecdir=$ac_optarg ;;
488 -localstatedir | --localstatedir | --localstatedi | --localstated \
489 | --localstate | --localstat | --localsta | --localst \
490 | --locals | --local | --loca | --loc | --lo)
491 ac_prev=localstatedir ;;
492 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
493 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
494 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
495 localstatedir=$ac_optarg ;;
497 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
498 ac_prev=mandir ;;
499 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
500 mandir=$ac_optarg ;;
502 -nfp | --nfp | --nf)
503 # Obsolete; use --without-fp.
504 with_fp=no ;;
506 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
507 | --no-cr | --no-c | -n)
508 no_create=yes ;;
510 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
511 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
512 no_recursion=yes ;;
514 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
515 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
516 | --oldin | --oldi | --old | --ol | --o)
517 ac_prev=oldincludedir ;;
518 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
519 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
520 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
521 oldincludedir=$ac_optarg ;;
523 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
524 ac_prev=prefix ;;
525 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
526 prefix=$ac_optarg ;;
528 -program-prefix | --program-prefix | --program-prefi | --program-pref \
529 | --program-pre | --program-pr | --program-p)
530 ac_prev=program_prefix ;;
531 -program-prefix=* | --program-prefix=* | --program-prefi=* \
532 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
533 program_prefix=$ac_optarg ;;
535 -program-suffix | --program-suffix | --program-suffi | --program-suff \
536 | --program-suf | --program-su | --program-s)
537 ac_prev=program_suffix ;;
538 -program-suffix=* | --program-suffix=* | --program-suffi=* \
539 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
540 program_suffix=$ac_optarg ;;
542 -program-transform-name | --program-transform-name \
543 | --program-transform-nam | --program-transform-na \
544 | --program-transform-n | --program-transform- \
545 | --program-transform | --program-transfor \
546 | --program-transfo | --program-transf \
547 | --program-trans | --program-tran \
548 | --progr-tra | --program-tr | --program-t)
549 ac_prev=program_transform_name ;;
550 -program-transform-name=* | --program-transform-name=* \
551 | --program-transform-nam=* | --program-transform-na=* \
552 | --program-transform-n=* | --program-transform-=* \
553 | --program-transform=* | --program-transfor=* \
554 | --program-transfo=* | --program-transf=* \
555 | --program-trans=* | --program-tran=* \
556 | --progr-tra=* | --program-tr=* | --program-t=*)
557 program_transform_name=$ac_optarg ;;
559 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
560 | -silent | --silent | --silen | --sile | --sil)
561 silent=yes ;;
563 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
564 ac_prev=sbindir ;;
565 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
566 | --sbi=* | --sb=*)
567 sbindir=$ac_optarg ;;
569 -sharedstatedir | --sharedstatedir | --sharedstatedi \
570 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
571 | --sharedst | --shareds | --shared | --share | --shar \
572 | --sha | --sh)
573 ac_prev=sharedstatedir ;;
574 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
575 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
576 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
577 | --sha=* | --sh=*)
578 sharedstatedir=$ac_optarg ;;
580 -site | --site | --sit)
581 ac_prev=site ;;
582 -site=* | --site=* | --sit=*)
583 site=$ac_optarg ;;
585 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
586 ac_prev=srcdir ;;
587 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
588 srcdir=$ac_optarg ;;
590 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
591 | --syscon | --sysco | --sysc | --sys | --sy)
592 ac_prev=sysconfdir ;;
593 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
594 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
595 sysconfdir=$ac_optarg ;;
597 -target | --target | --targe | --targ | --tar | --ta | --t)
598 ac_prev=target_alias ;;
599 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
600 target_alias=$ac_optarg ;;
602 -v | -verbose | --verbose | --verbos | --verbo | --verb)
603 verbose=yes ;;
605 -version | --version | --versio | --versi | --vers | -V)
606 ac_init_version=: ;;
608 -with-* | --with-*)
609 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
610 # Reject names that are not valid shell variable names.
611 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
612 { echo "$as_me: error: invalid package name: $ac_package" >&2
613 { (exit 1); exit 1; }; }
614 ac_package=`echo $ac_package| sed 's/-/_/g'`
615 case $ac_option in
616 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
617 *) ac_optarg=yes ;;
618 esac
619 eval "with_$ac_package='$ac_optarg'" ;;
621 -without-* | --without-*)
622 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
623 # Reject names that are not valid shell variable names.
624 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
625 { echo "$as_me: error: invalid package name: $ac_package" >&2
626 { (exit 1); exit 1; }; }
627 ac_package=`echo $ac_package | sed 's/-/_/g'`
628 eval "with_$ac_package=no" ;;
630 --x)
631 # Obsolete; use --with-x.
632 with_x=yes ;;
634 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
635 | --x-incl | --x-inc | --x-in | --x-i)
636 ac_prev=x_includes ;;
637 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
638 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
639 x_includes=$ac_optarg ;;
641 -x-libraries | --x-libraries | --x-librarie | --x-librari \
642 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
643 ac_prev=x_libraries ;;
644 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
645 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
646 x_libraries=$ac_optarg ;;
648 -*) { echo "$as_me: error: unrecognized option: $ac_option
649 Try \`$0 --help' for more information." >&2
650 { (exit 1); exit 1; }; }
653 *=*)
654 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
655 # Reject names that are not valid shell variable names.
656 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
657 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
658 { (exit 1); exit 1; }; }
659 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
660 eval "$ac_envvar='$ac_optarg'"
661 export $ac_envvar ;;
664 # FIXME: should be removed in autoconf 3.0.
665 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
666 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
667 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
668 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
671 esac
672 done
674 if test -n "$ac_prev"; then
675 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
676 { echo "$as_me: error: missing argument to $ac_option" >&2
677 { (exit 1); exit 1; }; }
680 # Be sure to have absolute paths.
681 for ac_var in exec_prefix prefix
683 eval ac_val=$`echo $ac_var`
684 case $ac_val in
685 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
686 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
687 { (exit 1); exit 1; }; };;
688 esac
689 done
691 # Be sure to have absolute paths.
692 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
693 localstatedir libdir includedir oldincludedir infodir mandir
695 eval ac_val=$`echo $ac_var`
696 case $ac_val in
697 [\\/$]* | ?:[\\/]* ) ;;
698 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
699 { (exit 1); exit 1; }; };;
700 esac
701 done
703 # There might be people who depend on the old broken behavior: `$host'
704 # used to hold the argument of --host etc.
705 # FIXME: To remove some day.
706 build=$build_alias
707 host=$host_alias
708 target=$target_alias
710 # FIXME: To remove some day.
711 if test "x$host_alias" != x; then
712 if test "x$build_alias" = x; then
713 cross_compiling=maybe
714 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
715 If a cross compiler is detected then cross compile mode will be used." >&2
716 elif test "x$build_alias" != "x$host_alias"; then
717 cross_compiling=yes
721 ac_tool_prefix=
722 test -n "$host_alias" && ac_tool_prefix=$host_alias-
724 test "$silent" = yes && exec 6>/dev/null
727 # Find the source files, if location was not specified.
728 if test -z "$srcdir"; then
729 ac_srcdir_defaulted=yes
730 # Try the directory containing this script, then its parent.
731 ac_confdir=`(dirname "$0") 2>/dev/null ||
732 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
733 X"$0" : 'X\(//\)[^/]' \| \
734 X"$0" : 'X\(//\)$' \| \
735 X"$0" : 'X\(/\)' \| \
736 . : '\(.\)' 2>/dev/null ||
737 echo X"$0" |
738 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
739 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
740 /^X\(\/\/\)$/{ s//\1/; q; }
741 /^X\(\/\).*/{ s//\1/; q; }
742 s/.*/./; q'`
743 srcdir=$ac_confdir
744 if test ! -r $srcdir/$ac_unique_file; then
745 srcdir=..
747 else
748 ac_srcdir_defaulted=no
750 if test ! -r $srcdir/$ac_unique_file; then
751 if test "$ac_srcdir_defaulted" = yes; then
752 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
753 { (exit 1); exit 1; }; }
754 else
755 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
756 { (exit 1); exit 1; }; }
759 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
760 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
761 { (exit 1); exit 1; }; }
762 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
763 ac_env_build_alias_set=${build_alias+set}
764 ac_env_build_alias_value=$build_alias
765 ac_cv_env_build_alias_set=${build_alias+set}
766 ac_cv_env_build_alias_value=$build_alias
767 ac_env_host_alias_set=${host_alias+set}
768 ac_env_host_alias_value=$host_alias
769 ac_cv_env_host_alias_set=${host_alias+set}
770 ac_cv_env_host_alias_value=$host_alias
771 ac_env_target_alias_set=${target_alias+set}
772 ac_env_target_alias_value=$target_alias
773 ac_cv_env_target_alias_set=${target_alias+set}
774 ac_cv_env_target_alias_value=$target_alias
775 ac_env_CC_set=${CC+set}
776 ac_env_CC_value=$CC
777 ac_cv_env_CC_set=${CC+set}
778 ac_cv_env_CC_value=$CC
779 ac_env_CFLAGS_set=${CFLAGS+set}
780 ac_env_CFLAGS_value=$CFLAGS
781 ac_cv_env_CFLAGS_set=${CFLAGS+set}
782 ac_cv_env_CFLAGS_value=$CFLAGS
783 ac_env_LDFLAGS_set=${LDFLAGS+set}
784 ac_env_LDFLAGS_value=$LDFLAGS
785 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
786 ac_cv_env_LDFLAGS_value=$LDFLAGS
787 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
788 ac_env_CPPFLAGS_value=$CPPFLAGS
789 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
790 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
791 ac_env_CXX_set=${CXX+set}
792 ac_env_CXX_value=$CXX
793 ac_cv_env_CXX_set=${CXX+set}
794 ac_cv_env_CXX_value=$CXX
795 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
796 ac_env_CXXFLAGS_value=$CXXFLAGS
797 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
798 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
799 ac_env_CPP_set=${CPP+set}
800 ac_env_CPP_value=$CPP
801 ac_cv_env_CPP_set=${CPP+set}
802 ac_cv_env_CPP_value=$CPP
805 # Report the --help message.
807 if test "$ac_init_help" = "long"; then
808 # Omit some internal or obsolete options to make the list less imposing.
809 # This message is too long to be a string in the A/UX 3.1 sh.
810 cat <<_ACEOF
811 \`configure' configures flex 2.5.33 to adapt to many kinds of systems.
813 Usage: $0 [OPTION]... [VAR=VALUE]...
815 To assign environment variables (e.g., CC, CFLAGS...), specify them as
816 VAR=VALUE. See below for descriptions of some of the useful variables.
818 Defaults for the options are specified in brackets.
820 Configuration:
821 -h, --help display this help and exit
822 --help=short display options specific to this package
823 --help=recursive display the short help of all the included packages
824 -V, --version display version information and exit
825 -q, --quiet, --silent do not print \`checking...' messages
826 --cache-file=FILE cache test results in FILE [disabled]
827 -C, --config-cache alias for \`--cache-file=config.cache'
828 -n, --no-create do not create output files
829 --srcdir=DIR find the sources in DIR [configure dir or \`..']
831 _ACEOF
833 cat <<_ACEOF
834 Installation directories:
835 --prefix=PREFIX install architecture-independent files in PREFIX
836 [$ac_default_prefix]
837 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
838 [PREFIX]
840 By default, \`make install' will install all the files in
841 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
842 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
843 for instance \`--prefix=\$HOME'.
845 For better control, use the options below.
847 Fine tuning of the installation directories:
848 --bindir=DIR user executables [EPREFIX/bin]
849 --sbindir=DIR system admin executables [EPREFIX/sbin]
850 --libexecdir=DIR program executables [EPREFIX/libexec]
851 --datadir=DIR read-only architecture-independent data [PREFIX/share]
852 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
853 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
854 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
855 --libdir=DIR object code libraries [EPREFIX/lib]
856 --includedir=DIR C header files [PREFIX/include]
857 --oldincludedir=DIR C header files for non-gcc [/usr/include]
858 --infodir=DIR info documentation [PREFIX/info]
859 --mandir=DIR man documentation [PREFIX/man]
860 _ACEOF
862 cat <<\_ACEOF
864 Program names:
865 --program-prefix=PREFIX prepend PREFIX to installed program names
866 --program-suffix=SUFFIX append SUFFIX to installed program names
867 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
869 System types:
870 --build=BUILD configure for building on BUILD [guessed]
871 --host=HOST cross-compile to build programs to run on HOST [BUILD]
872 _ACEOF
875 if test -n "$ac_init_help"; then
876 case $ac_init_help in
877 short | recursive ) echo "Configuration of flex 2.5.33:";;
878 esac
879 cat <<\_ACEOF
881 Optional Features:
882 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
883 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
884 --disable-nls do not use Native Language Support
885 --disable-dependency-tracking Speeds up one-time builds
886 --enable-dependency-tracking Do not reject slow dependency extractors
887 --disable-rpath do not hardcode runtime library paths
889 Optional Packages:
890 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
891 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
892 --with-gnu-ld assume the C compiler uses GNU ld default=no
893 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
894 --without-libiconv-prefix don't search for libiconv in includedir and libdir
895 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
896 --without-libintl-prefix don't search for libintl in includedir and libdir
898 Some influential environment variables:
899 CC C compiler command
900 CFLAGS C compiler flags
901 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
902 nonstandard directory <lib dir>
903 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
904 headers in a nonstandard directory <include dir>
905 CXX C++ compiler command
906 CXXFLAGS C++ compiler flags
907 CPP C preprocessor
909 Use these variables to override the choices made by `configure' or to help
910 it to find libraries and programs with nonstandard names/locations.
912 Report bugs to <flex-help@lists.sourceforge.net>.
913 _ACEOF
916 if test "$ac_init_help" = "recursive"; then
917 # If there are subdirs, report their specific --help.
918 ac_popdir=`pwd`
919 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
920 test -d $ac_dir || continue
921 ac_builddir=.
923 if test "$ac_dir" != .; then
924 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
925 # A "../" for each directory in $ac_dir_suffix.
926 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
927 else
928 ac_dir_suffix= ac_top_builddir=
931 case $srcdir in
932 .) # No --srcdir option. We are building in place.
933 ac_srcdir=.
934 if test -z "$ac_top_builddir"; then
935 ac_top_srcdir=.
936 else
937 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
938 fi ;;
939 [\\/]* | ?:[\\/]* ) # Absolute path.
940 ac_srcdir=$srcdir$ac_dir_suffix;
941 ac_top_srcdir=$srcdir ;;
942 *) # Relative path.
943 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
944 ac_top_srcdir=$ac_top_builddir$srcdir ;;
945 esac
946 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
947 # absolute.
948 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
949 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
950 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
951 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
953 cd $ac_dir
954 # Check for guested configure; otherwise get Cygnus style configure.
955 if test -f $ac_srcdir/configure.gnu; then
956 echo
957 $SHELL $ac_srcdir/configure.gnu --help=recursive
958 elif test -f $ac_srcdir/configure; then
959 echo
960 $SHELL $ac_srcdir/configure --help=recursive
961 elif test -f $ac_srcdir/configure.ac ||
962 test -f $ac_srcdir/configure.in; then
963 echo
964 $ac_configure --help
965 else
966 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
968 cd $ac_popdir
969 done
972 test -n "$ac_init_help" && exit 0
973 if $ac_init_version; then
974 cat <<\_ACEOF
975 flex configure 2.5.33
976 generated by GNU Autoconf 2.57
978 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
979 Free Software Foundation, Inc.
980 This configure script is free software; the Free Software Foundation
981 gives unlimited permission to copy, distribute and modify it.
982 _ACEOF
983 exit 0
985 exec 5>config.log
986 cat >&5 <<_ACEOF
987 This file contains any messages produced by compilers while
988 running configure, to aid debugging if configure makes a mistake.
990 It was created by flex $as_me 2.5.33, which was
991 generated by GNU Autoconf 2.57. Invocation command line was
993 $ $0 $@
995 _ACEOF
997 cat <<_ASUNAME
998 ## --------- ##
999 ## Platform. ##
1000 ## --------- ##
1002 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1003 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1004 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1005 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1006 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1008 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1009 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1011 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1012 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1013 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1014 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1015 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1016 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1017 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1019 _ASUNAME
1021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1022 for as_dir in $PATH
1024 IFS=$as_save_IFS
1025 test -z "$as_dir" && as_dir=.
1026 echo "PATH: $as_dir"
1027 done
1029 } >&5
1031 cat >&5 <<_ACEOF
1034 ## ----------- ##
1035 ## Core tests. ##
1036 ## ----------- ##
1038 _ACEOF
1041 # Keep a trace of the command line.
1042 # Strip out --no-create and --no-recursion so they do not pile up.
1043 # Strip out --silent because we don't want to record it for future runs.
1044 # Also quote any args containing shell meta-characters.
1045 # Make two passes to allow for proper duplicate-argument suppression.
1046 ac_configure_args=
1047 ac_configure_args0=
1048 ac_configure_args1=
1049 ac_sep=
1050 ac_must_keep_next=false
1051 for ac_pass in 1 2
1053 for ac_arg
1055 case $ac_arg in
1056 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1057 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1058 | -silent | --silent | --silen | --sile | --sil)
1059 continue ;;
1060 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1061 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1062 esac
1063 case $ac_pass in
1064 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1066 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1067 if test $ac_must_keep_next = true; then
1068 ac_must_keep_next=false # Got value, back to normal.
1069 else
1070 case $ac_arg in
1071 *=* | --config-cache | -C | -disable-* | --disable-* \
1072 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1073 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1074 | -with-* | --with-* | -without-* | --without-* | --x)
1075 case "$ac_configure_args0 " in
1076 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1077 esac
1079 -* ) ac_must_keep_next=true ;;
1080 esac
1082 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1083 # Get rid of the leading space.
1084 ac_sep=" "
1086 esac
1087 done
1088 done
1089 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1090 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1092 # When interrupted or exit'd, cleanup temporary files, and complete
1093 # config.log. We remove comments because anyway the quotes in there
1094 # would cause problems or look ugly.
1095 # WARNING: Be sure not to use single quotes in there, as some shells,
1096 # such as our DU 5.0 friend, will then `close' the trap.
1097 trap 'exit_status=$?
1098 # Save into config.log some information that might help in debugging.
1100 echo
1102 cat <<\_ASBOX
1103 ## ---------------- ##
1104 ## Cache variables. ##
1105 ## ---------------- ##
1106 _ASBOX
1107 echo
1108 # The following way of writing the cache mishandles newlines in values,
1110 (set) 2>&1 |
1111 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1112 *ac_space=\ *)
1113 sed -n \
1114 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1115 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1118 sed -n \
1119 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1121 esac;
1123 echo
1125 cat <<\_ASBOX
1126 ## ----------------- ##
1127 ## Output variables. ##
1128 ## ----------------- ##
1129 _ASBOX
1130 echo
1131 for ac_var in $ac_subst_vars
1133 eval ac_val=$`echo $ac_var`
1134 echo "$ac_var='"'"'$ac_val'"'"'"
1135 done | sort
1136 echo
1138 if test -n "$ac_subst_files"; then
1139 cat <<\_ASBOX
1140 ## ------------- ##
1141 ## Output files. ##
1142 ## ------------- ##
1143 _ASBOX
1144 echo
1145 for ac_var in $ac_subst_files
1147 eval ac_val=$`echo $ac_var`
1148 echo "$ac_var='"'"'$ac_val'"'"'"
1149 done | sort
1150 echo
1153 if test -s confdefs.h; then
1154 cat <<\_ASBOX
1155 ## ----------- ##
1156 ## confdefs.h. ##
1157 ## ----------- ##
1158 _ASBOX
1159 echo
1160 sed "/^$/d" confdefs.h | sort
1161 echo
1163 test "$ac_signal" != 0 &&
1164 echo "$as_me: caught signal $ac_signal"
1165 echo "$as_me: exit $exit_status"
1166 } >&5
1167 rm -f core core.* *.core &&
1168 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1169 exit $exit_status
1171 for ac_signal in 1 2 13 15; do
1172 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1173 done
1174 ac_signal=0
1176 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1177 rm -rf conftest* confdefs.h
1178 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1179 echo >confdefs.h
1181 # Predefined preprocessor variables.
1183 cat >>confdefs.h <<_ACEOF
1184 #define PACKAGE_NAME "$PACKAGE_NAME"
1185 _ACEOF
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1190 _ACEOF
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1195 _ACEOF
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_STRING "$PACKAGE_STRING"
1200 _ACEOF
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1205 _ACEOF
1208 # Let the site file select an alternate cache file if it wants to.
1209 # Prefer explicitly selected file to automatically selected ones.
1210 if test -z "$CONFIG_SITE"; then
1211 if test "x$prefix" != xNONE; then
1212 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1213 else
1214 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1217 for ac_site_file in $CONFIG_SITE; do
1218 if test -r "$ac_site_file"; then
1219 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1220 echo "$as_me: loading site script $ac_site_file" >&6;}
1221 sed 's/^/| /' "$ac_site_file" >&5
1222 . "$ac_site_file"
1224 done
1226 if test -r "$cache_file"; then
1227 # Some versions of bash will fail to source /dev/null (special
1228 # files actually), so we avoid doing that.
1229 if test -f "$cache_file"; then
1230 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1231 echo "$as_me: loading cache $cache_file" >&6;}
1232 case $cache_file in
1233 [\\/]* | ?:[\\/]* ) . $cache_file;;
1234 *) . ./$cache_file;;
1235 esac
1237 else
1238 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1239 echo "$as_me: creating cache $cache_file" >&6;}
1240 >$cache_file
1243 # Check that the precious variables saved in the cache have kept the same
1244 # value.
1245 ac_cache_corrupted=false
1246 for ac_var in `(set) 2>&1 |
1247 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1248 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1249 eval ac_new_set=\$ac_env_${ac_var}_set
1250 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1251 eval ac_new_val="\$ac_env_${ac_var}_value"
1252 case $ac_old_set,$ac_new_set in
1253 set,)
1254 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1255 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1256 ac_cache_corrupted=: ;;
1257 ,set)
1258 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1259 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1260 ac_cache_corrupted=: ;;
1261 ,);;
1263 if test "x$ac_old_val" != "x$ac_new_val"; then
1264 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1265 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1266 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1267 echo "$as_me: former value: $ac_old_val" >&2;}
1268 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1269 echo "$as_me: current value: $ac_new_val" >&2;}
1270 ac_cache_corrupted=:
1271 fi;;
1272 esac
1273 # Pass precious variables to config.status.
1274 if test "$ac_new_set" = set; then
1275 case $ac_new_val in
1276 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1277 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1278 *) ac_arg=$ac_var=$ac_new_val ;;
1279 esac
1280 case " $ac_configure_args " in
1281 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1282 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1283 esac
1285 done
1286 if $ac_cache_corrupted; then
1287 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1288 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1289 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1290 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1291 { (exit 1); exit 1; }; }
1294 ac_ext=c
1295 ac_cpp='$CPP $CPPFLAGS'
1296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1327 am__api_version="1.7"
1328 ac_aux_dir=
1329 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1330 if test -f $ac_dir/install-sh; then
1331 ac_aux_dir=$ac_dir
1332 ac_install_sh="$ac_aux_dir/install-sh -c"
1333 break
1334 elif test -f $ac_dir/install.sh; then
1335 ac_aux_dir=$ac_dir
1336 ac_install_sh="$ac_aux_dir/install.sh -c"
1337 break
1338 elif test -f $ac_dir/shtool; then
1339 ac_aux_dir=$ac_dir
1340 ac_install_sh="$ac_aux_dir/shtool install -c"
1341 break
1343 done
1344 if test -z "$ac_aux_dir"; then
1345 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1346 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1347 { (exit 1); exit 1; }; }
1349 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1350 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1351 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1353 # Find a good install program. We prefer a C program (faster),
1354 # so one script is as good as another. But avoid the broken or
1355 # incompatible versions:
1356 # SysV /etc/install, /usr/sbin/install
1357 # SunOS /usr/etc/install
1358 # IRIX /sbin/install
1359 # AIX /bin/install
1360 # AmigaOS /C/install, which installs bootblocks on floppy discs
1361 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1362 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1363 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1364 # ./install, which can be erroneously created by make from ./install.sh.
1365 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1366 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1367 if test -z "$INSTALL"; then
1368 if test "${ac_cv_path_install+set}" = set; then
1369 echo $ECHO_N "(cached) $ECHO_C" >&6
1370 else
1371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1372 for as_dir in $PATH
1374 IFS=$as_save_IFS
1375 test -z "$as_dir" && as_dir=.
1376 # Account for people who put trailing slashes in PATH elements.
1377 case $as_dir/ in
1378 ./ | .// | /cC/* | \
1379 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1380 /usr/ucb/* ) ;;
1382 # OSF1 and SCO ODT 3.0 have their own names for install.
1383 # Don't use installbsd from OSF since it installs stuff as root
1384 # by default.
1385 for ac_prog in ginstall scoinst install; do
1386 for ac_exec_ext in '' $ac_executable_extensions; do
1387 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1388 if test $ac_prog = install &&
1389 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1390 # AIX install. It has an incompatible calling convention.
1392 elif test $ac_prog = install &&
1393 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1394 # program-specific install script used by HP pwplus--don't use.
1396 else
1397 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1398 break 3
1401 done
1402 done
1404 esac
1405 done
1409 if test "${ac_cv_path_install+set}" = set; then
1410 INSTALL=$ac_cv_path_install
1411 else
1412 # As a last resort, use the slow shell script. We don't cache a
1413 # path for INSTALL within a source directory, because that will
1414 # break other packages using the cache if that directory is
1415 # removed, or if the path is relative.
1416 INSTALL=$ac_install_sh
1419 echo "$as_me:$LINENO: result: $INSTALL" >&5
1420 echo "${ECHO_T}$INSTALL" >&6
1422 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1423 # It thinks the first close brace ends the variable substitution.
1424 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL} -s'
1426 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL} -m 755'
1428 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1430 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1431 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1432 # Just in case
1433 sleep 1
1434 echo timestamp > conftest.file
1435 # Do `set' in a subshell so we don't clobber the current shell's
1436 # arguments. Must try -L first in case configure is actually a
1437 # symlink; some systems play weird games with the mod time of symlinks
1438 # (eg FreeBSD returns the mod time of the symlink's containing
1439 # directory).
1440 if (
1441 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1442 if test "$*" = "X"; then
1443 # -L didn't work.
1444 set X `ls -t $srcdir/configure conftest.file`
1446 rm -f conftest.file
1447 if test "$*" != "X $srcdir/configure conftest.file" \
1448 && test "$*" != "X conftest.file $srcdir/configure"; then
1450 # If neither matched, then we have a broken ls. This can happen
1451 # if, for instance, CONFIG_SHELL is bash and it inherits a
1452 # broken ls alias from the environment. This has actually
1453 # happened. Such a system could not be considered "sane".
1454 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1455 alias in your environment" >&5
1456 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1457 alias in your environment" >&2;}
1458 { (exit 1); exit 1; }; }
1461 test "$2" = conftest.file
1463 then
1464 # Ok.
1466 else
1467 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1468 Check your system clock" >&5
1469 echo "$as_me: error: newly created file is older than distributed files!
1470 Check your system clock" >&2;}
1471 { (exit 1); exit 1; }; }
1473 echo "$as_me:$LINENO: result: yes" >&5
1474 echo "${ECHO_T}yes" >&6
1475 test "$program_prefix" != NONE &&
1476 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1477 # Use a double $ so make ignores it.
1478 test "$program_suffix" != NONE &&
1479 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1480 # Double any \ or $. echo might interpret backslashes.
1481 # By default was `s,x,x', remove it if useless.
1482 cat <<\_ACEOF >conftest.sed
1483 s/[\\$]/&&/g;s/;s,x,x,$//
1484 _ACEOF
1485 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1486 rm conftest.sed
1489 # expand $ac_aux_dir to an absolute path
1490 am_aux_dir=`cd $ac_aux_dir && pwd`
1492 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1493 # Use eval to expand $SHELL
1494 if eval "$MISSING --run true"; then
1495 am_missing_run="$MISSING --run "
1496 else
1497 am_missing_run=
1498 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1499 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1502 for ac_prog in gawk mawk nawk awk
1504 # Extract the first word of "$ac_prog", so it can be a program name with args.
1505 set dummy $ac_prog; ac_word=$2
1506 echo "$as_me:$LINENO: checking for $ac_word" >&5
1507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1508 if test "${ac_cv_prog_AWK+set}" = set; then
1509 echo $ECHO_N "(cached) $ECHO_C" >&6
1510 else
1511 if test -n "$AWK"; then
1512 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1513 else
1514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1515 for as_dir in $PATH
1517 IFS=$as_save_IFS
1518 test -z "$as_dir" && as_dir=.
1519 for ac_exec_ext in '' $ac_executable_extensions; do
1520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1521 ac_cv_prog_AWK="$ac_prog"
1522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1523 break 2
1525 done
1526 done
1530 AWK=$ac_cv_prog_AWK
1531 if test -n "$AWK"; then
1532 echo "$as_me:$LINENO: result: $AWK" >&5
1533 echo "${ECHO_T}$AWK" >&6
1534 else
1535 echo "$as_me:$LINENO: result: no" >&5
1536 echo "${ECHO_T}no" >&6
1539 test -n "$AWK" && break
1540 done
1542 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1543 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1544 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1545 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1546 echo $ECHO_N "(cached) $ECHO_C" >&6
1547 else
1548 cat >conftest.make <<\_ACEOF
1549 all:
1550 @echo 'ac_maketemp="$(MAKE)"'
1551 _ACEOF
1552 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1553 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1554 if test -n "$ac_maketemp"; then
1555 eval ac_cv_prog_make_${ac_make}_set=yes
1556 else
1557 eval ac_cv_prog_make_${ac_make}_set=no
1559 rm -f conftest.make
1561 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1562 echo "$as_me:$LINENO: result: yes" >&5
1563 echo "${ECHO_T}yes" >&6
1564 SET_MAKE=
1565 else
1566 echo "$as_me:$LINENO: result: no" >&5
1567 echo "${ECHO_T}no" >&6
1568 SET_MAKE="MAKE=${MAKE-make}"
1571 rm -rf .tst 2>/dev/null
1572 mkdir .tst 2>/dev/null
1573 if test -d .tst; then
1574 am__leading_dot=.
1575 else
1576 am__leading_dot=_
1578 rmdir .tst 2>/dev/null
1580 # test to see if srcdir already configured
1581 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1582 test -f $srcdir/config.status; then
1583 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1584 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1585 { (exit 1); exit 1; }; }
1588 # test whether we have cygpath
1589 if test -z "$CYGPATH_W"; then
1590 if (cygpath --version) >/dev/null 2>/dev/null; then
1591 CYGPATH_W='cygpath -w'
1592 else
1593 CYGPATH_W=echo
1598 # Define the identity of the package.
1599 PACKAGE='flex'
1600 VERSION='2.5.33'
1603 cat >>confdefs.h <<_ACEOF
1604 #define PACKAGE "$PACKAGE"
1605 _ACEOF
1608 cat >>confdefs.h <<_ACEOF
1609 #define VERSION "$VERSION"
1610 _ACEOF
1612 # Some tools Automake needs.
1614 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1617 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1620 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1623 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1626 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1629 AMTAR=${AMTAR-"${am_missing_run}tar"}
1631 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1633 # Installed binaries are usually stripped using `strip' when the user
1634 # run `make install-strip'. However `strip' might not be the right
1635 # tool to use in cross-compilation environments, therefore Automake
1636 # will honor the `STRIP' environment variable to overrule this program.
1637 if test "$cross_compiling" != no; then
1638 if test -n "$ac_tool_prefix"; then
1639 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1640 set dummy ${ac_tool_prefix}strip; ac_word=$2
1641 echo "$as_me:$LINENO: checking for $ac_word" >&5
1642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1643 if test "${ac_cv_prog_STRIP+set}" = set; then
1644 echo $ECHO_N "(cached) $ECHO_C" >&6
1645 else
1646 if test -n "$STRIP"; then
1647 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1648 else
1649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650 for as_dir in $PATH
1652 IFS=$as_save_IFS
1653 test -z "$as_dir" && as_dir=.
1654 for ac_exec_ext in '' $ac_executable_extensions; do
1655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1656 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1658 break 2
1660 done
1661 done
1665 STRIP=$ac_cv_prog_STRIP
1666 if test -n "$STRIP"; then
1667 echo "$as_me:$LINENO: result: $STRIP" >&5
1668 echo "${ECHO_T}$STRIP" >&6
1669 else
1670 echo "$as_me:$LINENO: result: no" >&5
1671 echo "${ECHO_T}no" >&6
1675 if test -z "$ac_cv_prog_STRIP"; then
1676 ac_ct_STRIP=$STRIP
1677 # Extract the first word of "strip", so it can be a program name with args.
1678 set dummy strip; ac_word=$2
1679 echo "$as_me:$LINENO: checking for $ac_word" >&5
1680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1681 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1682 echo $ECHO_N "(cached) $ECHO_C" >&6
1683 else
1684 if test -n "$ac_ct_STRIP"; then
1685 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1686 else
1687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688 for as_dir in $PATH
1690 IFS=$as_save_IFS
1691 test -z "$as_dir" && as_dir=.
1692 for ac_exec_ext in '' $ac_executable_extensions; do
1693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1694 ac_cv_prog_ac_ct_STRIP="strip"
1695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1696 break 2
1698 done
1699 done
1701 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1704 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1705 if test -n "$ac_ct_STRIP"; then
1706 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1707 echo "${ECHO_T}$ac_ct_STRIP" >&6
1708 else
1709 echo "$as_me:$LINENO: result: no" >&5
1710 echo "${ECHO_T}no" >&6
1713 STRIP=$ac_ct_STRIP
1714 else
1715 STRIP="$ac_cv_prog_STRIP"
1719 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1721 # We need awk for the "check" target. The system "awk" is bad on
1722 # some platforms.
1726 ac_config_headers="$ac_config_headers config.h:conf.in"
1731 MKINSTALLDIRS=
1732 if test -n "$ac_aux_dir"; then
1733 case "$ac_aux_dir" in
1734 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
1735 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
1736 esac
1738 if test -z "$MKINSTALLDIRS"; then
1739 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
1744 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
1745 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
1746 # Check whether --enable-nls or --disable-nls was given.
1747 if test "${enable_nls+set}" = set; then
1748 enableval="$enable_nls"
1749 USE_NLS=$enableval
1750 else
1751 USE_NLS=yes
1753 echo "$as_me:$LINENO: result: $USE_NLS" >&5
1754 echo "${ECHO_T}$USE_NLS" >&6
1761 # Prepare PATH_SEPARATOR.
1762 # The user is always right.
1763 if test "${PATH_SEPARATOR+set}" != set; then
1764 echo "#! /bin/sh" >conf$$.sh
1765 echo "exit 0" >>conf$$.sh
1766 chmod +x conf$$.sh
1767 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
1768 PATH_SEPARATOR=';'
1769 else
1770 PATH_SEPARATOR=:
1772 rm -f conf$$.sh
1775 # Find out how to test for executable files. Don't use a zero-byte file,
1776 # as systems may use methods other than mode bits to determine executability.
1777 cat >conf$$.file <<_ASEOF
1778 #! /bin/sh
1779 exit 0
1780 _ASEOF
1781 chmod +x conf$$.file
1782 if test -x conf$$.file >/dev/null 2>&1; then
1783 ac_executable_p="test -x"
1784 else
1785 ac_executable_p="test -f"
1787 rm -f conf$$.file
1789 # Extract the first word of "msgfmt", so it can be a program name with args.
1790 set dummy msgfmt; ac_word=$2
1791 echo "$as_me:$LINENO: checking for $ac_word" >&5
1792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1793 if test "${ac_cv_path_MSGFMT+set}" = set; then
1794 echo $ECHO_N "(cached) $ECHO_C" >&6
1795 else
1796 case "$MSGFMT" in
1797 [\\/]* | ?:[\\/]*)
1798 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
1801 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
1802 for ac_dir in $PATH; do
1803 IFS="$ac_save_IFS"
1804 test -z "$ac_dir" && ac_dir=.
1805 for ac_exec_ext in '' $ac_executable_extensions; do
1806 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
1807 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
1808 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
1809 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
1810 break 2
1813 done
1814 done
1815 IFS="$ac_save_IFS"
1816 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
1818 esac
1820 MSGFMT="$ac_cv_path_MSGFMT"
1821 if test "$MSGFMT" != ":"; then
1822 echo "$as_me:$LINENO: result: $MSGFMT" >&5
1823 echo "${ECHO_T}$MSGFMT" >&6
1824 else
1825 echo "$as_me:$LINENO: result: no" >&5
1826 echo "${ECHO_T}no" >&6
1829 # Extract the first word of "gmsgfmt", so it can be a program name with args.
1830 set dummy gmsgfmt; ac_word=$2
1831 echo "$as_me:$LINENO: checking for $ac_word" >&5
1832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1833 if test "${ac_cv_path_GMSGFMT+set}" = set; then
1834 echo $ECHO_N "(cached) $ECHO_C" >&6
1835 else
1836 case $GMSGFMT in
1837 [\\/]* | ?:[\\/]*)
1838 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
1841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1842 for as_dir in $PATH
1844 IFS=$as_save_IFS
1845 test -z "$as_dir" && as_dir=.
1846 for ac_exec_ext in '' $ac_executable_extensions; do
1847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1848 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
1849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1850 break 2
1852 done
1853 done
1855 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
1857 esac
1859 GMSGFMT=$ac_cv_path_GMSGFMT
1861 if test -n "$GMSGFMT"; then
1862 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
1863 echo "${ECHO_T}$GMSGFMT" >&6
1864 else
1865 echo "$as_me:$LINENO: result: no" >&5
1866 echo "${ECHO_T}no" >&6
1871 # Prepare PATH_SEPARATOR.
1872 # The user is always right.
1873 if test "${PATH_SEPARATOR+set}" != set; then
1874 echo "#! /bin/sh" >conf$$.sh
1875 echo "exit 0" >>conf$$.sh
1876 chmod +x conf$$.sh
1877 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
1878 PATH_SEPARATOR=';'
1879 else
1880 PATH_SEPARATOR=:
1882 rm -f conf$$.sh
1885 # Find out how to test for executable files. Don't use a zero-byte file,
1886 # as systems may use methods other than mode bits to determine executability.
1887 cat >conf$$.file <<_ASEOF
1888 #! /bin/sh
1889 exit 0
1890 _ASEOF
1891 chmod +x conf$$.file
1892 if test -x conf$$.file >/dev/null 2>&1; then
1893 ac_executable_p="test -x"
1894 else
1895 ac_executable_p="test -f"
1897 rm -f conf$$.file
1899 # Extract the first word of "xgettext", so it can be a program name with args.
1900 set dummy xgettext; ac_word=$2
1901 echo "$as_me:$LINENO: checking for $ac_word" >&5
1902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1903 if test "${ac_cv_path_XGETTEXT+set}" = set; then
1904 echo $ECHO_N "(cached) $ECHO_C" >&6
1905 else
1906 case "$XGETTEXT" in
1907 [\\/]* | ?:[\\/]*)
1908 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
1911 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
1912 for ac_dir in $PATH; do
1913 IFS="$ac_save_IFS"
1914 test -z "$ac_dir" && ac_dir=.
1915 for ac_exec_ext in '' $ac_executable_extensions; do
1916 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
1917 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
1918 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
1919 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
1920 break 2
1923 done
1924 done
1925 IFS="$ac_save_IFS"
1926 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
1928 esac
1930 XGETTEXT="$ac_cv_path_XGETTEXT"
1931 if test "$XGETTEXT" != ":"; then
1932 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
1933 echo "${ECHO_T}$XGETTEXT" >&6
1934 else
1935 echo "$as_me:$LINENO: result: no" >&5
1936 echo "${ECHO_T}no" >&6
1939 rm -f messages.po
1942 # Prepare PATH_SEPARATOR.
1943 # The user is always right.
1944 if test "${PATH_SEPARATOR+set}" != set; then
1945 echo "#! /bin/sh" >conf$$.sh
1946 echo "exit 0" >>conf$$.sh
1947 chmod +x conf$$.sh
1948 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
1949 PATH_SEPARATOR=';'
1950 else
1951 PATH_SEPARATOR=:
1953 rm -f conf$$.sh
1956 # Find out how to test for executable files. Don't use a zero-byte file,
1957 # as systems may use methods other than mode bits to determine executability.
1958 cat >conf$$.file <<_ASEOF
1959 #! /bin/sh
1960 exit 0
1961 _ASEOF
1962 chmod +x conf$$.file
1963 if test -x conf$$.file >/dev/null 2>&1; then
1964 ac_executable_p="test -x"
1965 else
1966 ac_executable_p="test -f"
1968 rm -f conf$$.file
1970 # Extract the first word of "msgmerge", so it can be a program name with args.
1971 set dummy msgmerge; ac_word=$2
1972 echo "$as_me:$LINENO: checking for $ac_word" >&5
1973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1974 if test "${ac_cv_path_MSGMERGE+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
1976 else
1977 case "$MSGMERGE" in
1978 [\\/]* | ?:[\\/]*)
1979 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
1982 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
1983 for ac_dir in $PATH; do
1984 IFS="$ac_save_IFS"
1985 test -z "$ac_dir" && ac_dir=.
1986 for ac_exec_ext in '' $ac_executable_extensions; do
1987 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
1988 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
1989 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
1990 break 2
1993 done
1994 done
1995 IFS="$ac_save_IFS"
1996 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
1998 esac
2000 MSGMERGE="$ac_cv_path_MSGMERGE"
2001 if test "$MSGMERGE" != ":"; then
2002 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
2003 echo "${ECHO_T}$MSGMERGE" >&6
2004 else
2005 echo "$as_me:$LINENO: result: no" >&5
2006 echo "${ECHO_T}no" >&6
2010 if test "$GMSGFMT" != ":"; then
2011 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
2012 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2014 else
2015 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
2016 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
2017 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
2018 GMSGFMT=":"
2022 if test "$XGETTEXT" != ":"; then
2023 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
2024 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2026 else
2027 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
2028 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
2029 XGETTEXT=":"
2031 rm -f messages.po
2034 ac_config_commands="$ac_config_commands default-1"
2038 if test "X$prefix" = "XNONE"; then
2039 acl_final_prefix="$ac_default_prefix"
2040 else
2041 acl_final_prefix="$prefix"
2043 if test "X$exec_prefix" = "XNONE"; then
2044 acl_final_exec_prefix='${prefix}'
2045 else
2046 acl_final_exec_prefix="$exec_prefix"
2048 acl_save_prefix="$prefix"
2049 prefix="$acl_final_prefix"
2050 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
2051 prefix="$acl_save_prefix"
2053 DEPDIR="${am__leading_dot}deps"
2055 ac_config_commands="$ac_config_commands depfiles"
2058 am_make=${MAKE-make}
2059 cat > confinc << 'END'
2060 am__doit:
2061 @echo done
2062 .PHONY: am__doit
2064 # If we don't find an include directive, just comment out the code.
2065 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2066 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2067 am__include="#"
2068 am__quote=
2069 _am_result=none
2070 # First try GNU make style include.
2071 echo "include confinc" > confmf
2072 # We grep out `Entering directory' and `Leaving directory'
2073 # messages which can occur if `w' ends up in MAKEFLAGS.
2074 # In particular we don't look at `^make:' because GNU make might
2075 # be invoked under some other name (usually "gmake"), in which
2076 # case it prints its new name instead of `make'.
2077 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2078 am__include=include
2079 am__quote=
2080 _am_result=GNU
2082 # Now try BSD make style include.
2083 if test "$am__include" = "#"; then
2084 echo '.include "confinc"' > confmf
2085 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2086 am__include=.include
2087 am__quote="\""
2088 _am_result=BSD
2093 echo "$as_me:$LINENO: result: $_am_result" >&5
2094 echo "${ECHO_T}$_am_result" >&6
2095 rm -f confinc confmf
2097 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2098 if test "${enable_dependency_tracking+set}" = set; then
2099 enableval="$enable_dependency_tracking"
2102 if test "x$enable_dependency_tracking" != xno; then
2103 am_depcomp="$ac_aux_dir/depcomp"
2104 AMDEPBACKSLASH='\'
2108 if test "x$enable_dependency_tracking" != xno; then
2109 AMDEP_TRUE=
2110 AMDEP_FALSE='#'
2111 else
2112 AMDEP_TRUE='#'
2113 AMDEP_FALSE=
2118 ac_ext=c
2119 ac_cpp='$CPP $CPPFLAGS'
2120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2123 if test -n "$ac_tool_prefix"; then
2124 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2125 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2126 echo "$as_me:$LINENO: checking for $ac_word" >&5
2127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2128 if test "${ac_cv_prog_CC+set}" = set; then
2129 echo $ECHO_N "(cached) $ECHO_C" >&6
2130 else
2131 if test -n "$CC"; then
2132 ac_cv_prog_CC="$CC" # Let the user override the test.
2133 else
2134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2135 for as_dir in $PATH
2137 IFS=$as_save_IFS
2138 test -z "$as_dir" && as_dir=.
2139 for ac_exec_ext in '' $ac_executable_extensions; do
2140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2141 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2143 break 2
2145 done
2146 done
2150 CC=$ac_cv_prog_CC
2151 if test -n "$CC"; then
2152 echo "$as_me:$LINENO: result: $CC" >&5
2153 echo "${ECHO_T}$CC" >&6
2154 else
2155 echo "$as_me:$LINENO: result: no" >&5
2156 echo "${ECHO_T}no" >&6
2160 if test -z "$ac_cv_prog_CC"; then
2161 ac_ct_CC=$CC
2162 # Extract the first word of "gcc", so it can be a program name with args.
2163 set dummy gcc; ac_word=$2
2164 echo "$as_me:$LINENO: checking for $ac_word" >&5
2165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2166 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2167 echo $ECHO_N "(cached) $ECHO_C" >&6
2168 else
2169 if test -n "$ac_ct_CC"; then
2170 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2171 else
2172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2173 for as_dir in $PATH
2175 IFS=$as_save_IFS
2176 test -z "$as_dir" && as_dir=.
2177 for ac_exec_ext in '' $ac_executable_extensions; do
2178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2179 ac_cv_prog_ac_ct_CC="gcc"
2180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2181 break 2
2183 done
2184 done
2188 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2189 if test -n "$ac_ct_CC"; then
2190 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2191 echo "${ECHO_T}$ac_ct_CC" >&6
2192 else
2193 echo "$as_me:$LINENO: result: no" >&5
2194 echo "${ECHO_T}no" >&6
2197 CC=$ac_ct_CC
2198 else
2199 CC="$ac_cv_prog_CC"
2202 if test -z "$CC"; then
2203 if test -n "$ac_tool_prefix"; then
2204 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2205 set dummy ${ac_tool_prefix}cc; ac_word=$2
2206 echo "$as_me:$LINENO: checking for $ac_word" >&5
2207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2208 if test "${ac_cv_prog_CC+set}" = set; then
2209 echo $ECHO_N "(cached) $ECHO_C" >&6
2210 else
2211 if test -n "$CC"; then
2212 ac_cv_prog_CC="$CC" # Let the user override the test.
2213 else
2214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2215 for as_dir in $PATH
2217 IFS=$as_save_IFS
2218 test -z "$as_dir" && as_dir=.
2219 for ac_exec_ext in '' $ac_executable_extensions; do
2220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2221 ac_cv_prog_CC="${ac_tool_prefix}cc"
2222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2223 break 2
2225 done
2226 done
2230 CC=$ac_cv_prog_CC
2231 if test -n "$CC"; then
2232 echo "$as_me:$LINENO: result: $CC" >&5
2233 echo "${ECHO_T}$CC" >&6
2234 else
2235 echo "$as_me:$LINENO: result: no" >&5
2236 echo "${ECHO_T}no" >&6
2240 if test -z "$ac_cv_prog_CC"; then
2241 ac_ct_CC=$CC
2242 # Extract the first word of "cc", so it can be a program name with args.
2243 set dummy cc; ac_word=$2
2244 echo "$as_me:$LINENO: checking for $ac_word" >&5
2245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2246 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2247 echo $ECHO_N "(cached) $ECHO_C" >&6
2248 else
2249 if test -n "$ac_ct_CC"; then
2250 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2251 else
2252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2253 for as_dir in $PATH
2255 IFS=$as_save_IFS
2256 test -z "$as_dir" && as_dir=.
2257 for ac_exec_ext in '' $ac_executable_extensions; do
2258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2259 ac_cv_prog_ac_ct_CC="cc"
2260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2261 break 2
2263 done
2264 done
2268 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2269 if test -n "$ac_ct_CC"; then
2270 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2271 echo "${ECHO_T}$ac_ct_CC" >&6
2272 else
2273 echo "$as_me:$LINENO: result: no" >&5
2274 echo "${ECHO_T}no" >&6
2277 CC=$ac_ct_CC
2278 else
2279 CC="$ac_cv_prog_CC"
2283 if test -z "$CC"; then
2284 # Extract the first word of "cc", so it can be a program name with args.
2285 set dummy cc; ac_word=$2
2286 echo "$as_me:$LINENO: checking for $ac_word" >&5
2287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2288 if test "${ac_cv_prog_CC+set}" = set; then
2289 echo $ECHO_N "(cached) $ECHO_C" >&6
2290 else
2291 if test -n "$CC"; then
2292 ac_cv_prog_CC="$CC" # Let the user override the test.
2293 else
2294 ac_prog_rejected=no
2295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2296 for as_dir in $PATH
2298 IFS=$as_save_IFS
2299 test -z "$as_dir" && as_dir=.
2300 for ac_exec_ext in '' $ac_executable_extensions; do
2301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2302 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2303 ac_prog_rejected=yes
2304 continue
2306 ac_cv_prog_CC="cc"
2307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2308 break 2
2310 done
2311 done
2313 if test $ac_prog_rejected = yes; then
2314 # We found a bogon in the path, so make sure we never use it.
2315 set dummy $ac_cv_prog_CC
2316 shift
2317 if test $# != 0; then
2318 # We chose a different compiler from the bogus one.
2319 # However, it has the same basename, so the bogon will be chosen
2320 # first if we set CC to just the basename; use the full file name.
2321 shift
2322 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2327 CC=$ac_cv_prog_CC
2328 if test -n "$CC"; then
2329 echo "$as_me:$LINENO: result: $CC" >&5
2330 echo "${ECHO_T}$CC" >&6
2331 else
2332 echo "$as_me:$LINENO: result: no" >&5
2333 echo "${ECHO_T}no" >&6
2337 if test -z "$CC"; then
2338 if test -n "$ac_tool_prefix"; then
2339 for ac_prog in cl
2341 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2342 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2343 echo "$as_me:$LINENO: checking for $ac_word" >&5
2344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2345 if test "${ac_cv_prog_CC+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
2347 else
2348 if test -n "$CC"; then
2349 ac_cv_prog_CC="$CC" # Let the user override the test.
2350 else
2351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352 for as_dir in $PATH
2354 IFS=$as_save_IFS
2355 test -z "$as_dir" && as_dir=.
2356 for ac_exec_ext in '' $ac_executable_extensions; do
2357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2358 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2360 break 2
2362 done
2363 done
2367 CC=$ac_cv_prog_CC
2368 if test -n "$CC"; then
2369 echo "$as_me:$LINENO: result: $CC" >&5
2370 echo "${ECHO_T}$CC" >&6
2371 else
2372 echo "$as_me:$LINENO: result: no" >&5
2373 echo "${ECHO_T}no" >&6
2376 test -n "$CC" && break
2377 done
2379 if test -z "$CC"; then
2380 ac_ct_CC=$CC
2381 for ac_prog in cl
2383 # Extract the first word of "$ac_prog", so it can be a program name with args.
2384 set dummy $ac_prog; ac_word=$2
2385 echo "$as_me:$LINENO: checking for $ac_word" >&5
2386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2387 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2388 echo $ECHO_N "(cached) $ECHO_C" >&6
2389 else
2390 if test -n "$ac_ct_CC"; then
2391 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2392 else
2393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394 for as_dir in $PATH
2396 IFS=$as_save_IFS
2397 test -z "$as_dir" && as_dir=.
2398 for ac_exec_ext in '' $ac_executable_extensions; do
2399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2400 ac_cv_prog_ac_ct_CC="$ac_prog"
2401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2402 break 2
2404 done
2405 done
2409 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2410 if test -n "$ac_ct_CC"; then
2411 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2412 echo "${ECHO_T}$ac_ct_CC" >&6
2413 else
2414 echo "$as_me:$LINENO: result: no" >&5
2415 echo "${ECHO_T}no" >&6
2418 test -n "$ac_ct_CC" && break
2419 done
2421 CC=$ac_ct_CC
2427 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2428 See \`config.log' for more details." >&5
2429 echo "$as_me: error: no acceptable C compiler found in \$PATH
2430 See \`config.log' for more details." >&2;}
2431 { (exit 1); exit 1; }; }
2433 # Provide some information about the compiler.
2434 echo "$as_me:$LINENO:" \
2435 "checking for C compiler version" >&5
2436 ac_compiler=`set X $ac_compile; echo $2`
2437 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2438 (eval $ac_compiler --version </dev/null >&5) 2>&5
2439 ac_status=$?
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); }
2442 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2443 (eval $ac_compiler -v </dev/null >&5) 2>&5
2444 ac_status=$?
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); }
2447 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2448 (eval $ac_compiler -V </dev/null >&5) 2>&5
2449 ac_status=$?
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); }
2453 cat >conftest.$ac_ext <<_ACEOF
2454 #line $LINENO "configure"
2455 /* confdefs.h. */
2456 _ACEOF
2457 cat confdefs.h >>conftest.$ac_ext
2458 cat >>conftest.$ac_ext <<_ACEOF
2459 /* end confdefs.h. */
2462 main ()
2466 return 0;
2468 _ACEOF
2469 ac_clean_files_save=$ac_clean_files
2470 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2471 # Try to create an executable without -o first, disregard a.out.
2472 # It will help us diagnose broken compilers, and finding out an intuition
2473 # of exeext.
2474 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2475 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2476 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2477 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2478 (eval $ac_link_default) 2>&5
2479 ac_status=$?
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }; then
2482 # Find the output, starting from the most likely. This scheme is
2483 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2484 # resort.
2486 # Be careful to initialize this variable, since it used to be cached.
2487 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2488 ac_cv_exeext=
2489 # b.out is created by i960 compilers.
2490 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2492 test -f "$ac_file" || continue
2493 case $ac_file in
2494 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2496 conftest.$ac_ext )
2497 # This is the source file.
2499 [ab].out )
2500 # We found the default executable, but exeext='' is most
2501 # certainly right.
2502 break;;
2503 *.* )
2504 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2505 # FIXME: I believe we export ac_cv_exeext for Libtool,
2506 # but it would be cool to find out if it's true. Does anybody
2507 # maintain Libtool? --akim.
2508 export ac_cv_exeext
2509 break;;
2511 break;;
2512 esac
2513 done
2514 else
2515 echo "$as_me: failed program was:" >&5
2516 sed 's/^/| /' conftest.$ac_ext >&5
2518 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2519 See \`config.log' for more details." >&5
2520 echo "$as_me: error: C compiler cannot create executables
2521 See \`config.log' for more details." >&2;}
2522 { (exit 77); exit 77; }; }
2525 ac_exeext=$ac_cv_exeext
2526 echo "$as_me:$LINENO: result: $ac_file" >&5
2527 echo "${ECHO_T}$ac_file" >&6
2529 # Check the compiler produces executables we can run. If not, either
2530 # the compiler is broken, or we cross compile.
2531 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2532 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2533 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2534 # If not cross compiling, check that we can run a simple program.
2535 if test "$cross_compiling" != yes; then
2536 if { ac_try='./$ac_file'
2537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538 (eval $ac_try) 2>&5
2539 ac_status=$?
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; }; then
2542 cross_compiling=no
2543 else
2544 if test "$cross_compiling" = maybe; then
2545 cross_compiling=yes
2546 else
2547 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2548 If you meant to cross compile, use \`--host'.
2549 See \`config.log' for more details." >&5
2550 echo "$as_me: error: cannot run C compiled programs.
2551 If you meant to cross compile, use \`--host'.
2552 See \`config.log' for more details." >&2;}
2553 { (exit 1); exit 1; }; }
2557 echo "$as_me:$LINENO: result: yes" >&5
2558 echo "${ECHO_T}yes" >&6
2560 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2561 ac_clean_files=$ac_clean_files_save
2562 # Check the compiler produces executables we can run. If not, either
2563 # the compiler is broken, or we cross compile.
2564 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2565 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2566 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2567 echo "${ECHO_T}$cross_compiling" >&6
2569 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2570 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2572 (eval $ac_link) 2>&5
2573 ac_status=$?
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; then
2576 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2577 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2578 # work properly (i.e., refer to `conftest.exe'), while it won't with
2579 # `rm'.
2580 for ac_file in conftest.exe conftest conftest.*; do
2581 test -f "$ac_file" || continue
2582 case $ac_file in
2583 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2584 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2585 export ac_cv_exeext
2586 break;;
2587 * ) break;;
2588 esac
2589 done
2590 else
2591 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2592 See \`config.log' for more details." >&5
2593 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2594 See \`config.log' for more details." >&2;}
2595 { (exit 1); exit 1; }; }
2598 rm -f conftest$ac_cv_exeext
2599 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2600 echo "${ECHO_T}$ac_cv_exeext" >&6
2602 rm -f conftest.$ac_ext
2603 EXEEXT=$ac_cv_exeext
2604 ac_exeext=$EXEEXT
2605 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2606 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2607 if test "${ac_cv_objext+set}" = set; then
2608 echo $ECHO_N "(cached) $ECHO_C" >&6
2609 else
2610 cat >conftest.$ac_ext <<_ACEOF
2611 #line $LINENO "configure"
2612 /* confdefs.h. */
2613 _ACEOF
2614 cat confdefs.h >>conftest.$ac_ext
2615 cat >>conftest.$ac_ext <<_ACEOF
2616 /* end confdefs.h. */
2619 main ()
2623 return 0;
2625 _ACEOF
2626 rm -f conftest.o conftest.obj
2627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2628 (eval $ac_compile) 2>&5
2629 ac_status=$?
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; then
2632 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2633 case $ac_file in
2634 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2635 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2636 break;;
2637 esac
2638 done
2639 else
2640 echo "$as_me: failed program was:" >&5
2641 sed 's/^/| /' conftest.$ac_ext >&5
2643 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2644 See \`config.log' for more details." >&5
2645 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2646 See \`config.log' for more details." >&2;}
2647 { (exit 1); exit 1; }; }
2650 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2652 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2653 echo "${ECHO_T}$ac_cv_objext" >&6
2654 OBJEXT=$ac_cv_objext
2655 ac_objext=$OBJEXT
2656 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2657 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2658 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2659 echo $ECHO_N "(cached) $ECHO_C" >&6
2660 else
2661 cat >conftest.$ac_ext <<_ACEOF
2662 #line $LINENO "configure"
2663 /* confdefs.h. */
2664 _ACEOF
2665 cat confdefs.h >>conftest.$ac_ext
2666 cat >>conftest.$ac_ext <<_ACEOF
2667 /* end confdefs.h. */
2670 main ()
2672 #ifndef __GNUC__
2673 choke me
2674 #endif
2677 return 0;
2679 _ACEOF
2680 rm -f conftest.$ac_objext
2681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2682 (eval $ac_compile) 2>&5
2683 ac_status=$?
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); } &&
2686 { ac_try='test -s conftest.$ac_objext'
2687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688 (eval $ac_try) 2>&5
2689 ac_status=$?
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }; }; then
2692 ac_compiler_gnu=yes
2693 else
2694 echo "$as_me: failed program was:" >&5
2695 sed 's/^/| /' conftest.$ac_ext >&5
2697 ac_compiler_gnu=no
2699 rm -f conftest.$ac_objext conftest.$ac_ext
2700 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2703 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2704 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2705 GCC=`test $ac_compiler_gnu = yes && echo yes`
2706 ac_test_CFLAGS=${CFLAGS+set}
2707 ac_save_CFLAGS=$CFLAGS
2708 CFLAGS="-g"
2709 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2710 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2711 if test "${ac_cv_prog_cc_g+set}" = set; then
2712 echo $ECHO_N "(cached) $ECHO_C" >&6
2713 else
2714 cat >conftest.$ac_ext <<_ACEOF
2715 #line $LINENO "configure"
2716 /* confdefs.h. */
2717 _ACEOF
2718 cat confdefs.h >>conftest.$ac_ext
2719 cat >>conftest.$ac_ext <<_ACEOF
2720 /* end confdefs.h. */
2723 main ()
2727 return 0;
2729 _ACEOF
2730 rm -f conftest.$ac_objext
2731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2732 (eval $ac_compile) 2>&5
2733 ac_status=$?
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); } &&
2736 { ac_try='test -s conftest.$ac_objext'
2737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738 (eval $ac_try) 2>&5
2739 ac_status=$?
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; }; then
2742 ac_cv_prog_cc_g=yes
2743 else
2744 echo "$as_me: failed program was:" >&5
2745 sed 's/^/| /' conftest.$ac_ext >&5
2747 ac_cv_prog_cc_g=no
2749 rm -f conftest.$ac_objext conftest.$ac_ext
2751 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2752 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2753 if test "$ac_test_CFLAGS" = set; then
2754 CFLAGS=$ac_save_CFLAGS
2755 elif test $ac_cv_prog_cc_g = yes; then
2756 if test "$GCC" = yes; then
2757 CFLAGS="-g -O2"
2758 else
2759 CFLAGS="-g"
2761 else
2762 if test "$GCC" = yes; then
2763 CFLAGS="-O2"
2764 else
2765 CFLAGS=
2768 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2769 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2770 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2771 echo $ECHO_N "(cached) $ECHO_C" >&6
2772 else
2773 ac_cv_prog_cc_stdc=no
2774 ac_save_CC=$CC
2775 cat >conftest.$ac_ext <<_ACEOF
2776 #line $LINENO "configure"
2777 /* confdefs.h. */
2778 _ACEOF
2779 cat confdefs.h >>conftest.$ac_ext
2780 cat >>conftest.$ac_ext <<_ACEOF
2781 /* end confdefs.h. */
2782 #include <stdarg.h>
2783 #include <stdio.h>
2784 #include <sys/types.h>
2785 #include <sys/stat.h>
2786 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2787 struct buf { int x; };
2788 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2789 static char *e (p, i)
2790 char **p;
2791 int i;
2793 return p[i];
2795 static char *f (char * (*g) (char **, int), char **p, ...)
2797 char *s;
2798 va_list v;
2799 va_start (v,p);
2800 s = g (p, va_arg (v,int));
2801 va_end (v);
2802 return s;
2804 int test (int i, double x);
2805 struct s1 {int (*f) (int a);};
2806 struct s2 {int (*f) (double a);};
2807 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2808 int argc;
2809 char **argv;
2811 main ()
2813 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2815 return 0;
2817 _ACEOF
2818 # Don't try gcc -ansi; that turns off useful extensions and
2819 # breaks some systems' header files.
2820 # AIX -qlanglvl=ansi
2821 # Ultrix and OSF/1 -std1
2822 # HP-UX 10.20 and later -Ae
2823 # HP-UX older versions -Aa -D_HPUX_SOURCE
2824 # SVR4 -Xc -D__EXTENSIONS__
2825 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2827 CC="$ac_save_CC $ac_arg"
2828 rm -f conftest.$ac_objext
2829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2830 (eval $ac_compile) 2>&5
2831 ac_status=$?
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); } &&
2834 { ac_try='test -s conftest.$ac_objext'
2835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836 (eval $ac_try) 2>&5
2837 ac_status=$?
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; }; then
2840 ac_cv_prog_cc_stdc=$ac_arg
2841 break
2842 else
2843 echo "$as_me: failed program was:" >&5
2844 sed 's/^/| /' conftest.$ac_ext >&5
2847 rm -f conftest.$ac_objext
2848 done
2849 rm -f conftest.$ac_ext conftest.$ac_objext
2850 CC=$ac_save_CC
2854 case "x$ac_cv_prog_cc_stdc" in
2855 x|xno)
2856 echo "$as_me:$LINENO: result: none needed" >&5
2857 echo "${ECHO_T}none needed" >&6 ;;
2859 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2860 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2861 CC="$CC $ac_cv_prog_cc_stdc" ;;
2862 esac
2864 # Some people use a C++ compiler to compile C. Since we use `exit',
2865 # in C++ we need to declare it. In case someone uses the same compiler
2866 # for both compiling C and C++ we need to have the C++ compiler decide
2867 # the declaration of exit, since it's the most demanding environment.
2868 cat >conftest.$ac_ext <<_ACEOF
2869 #ifndef __cplusplus
2870 choke me
2871 #endif
2872 _ACEOF
2873 rm -f conftest.$ac_objext
2874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2875 (eval $ac_compile) 2>&5
2876 ac_status=$?
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); } &&
2879 { ac_try='test -s conftest.$ac_objext'
2880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2881 (eval $ac_try) 2>&5
2882 ac_status=$?
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); }; }; then
2885 for ac_declaration in \
2887 '#include <stdlib.h>' \
2888 'extern "C" void std::exit (int) throw (); using std::exit;' \
2889 'extern "C" void std::exit (int); using std::exit;' \
2890 'extern "C" void exit (int) throw ();' \
2891 'extern "C" void exit (int);' \
2892 'void exit (int);'
2894 cat >conftest.$ac_ext <<_ACEOF
2895 #line $LINENO "configure"
2896 /* confdefs.h. */
2897 _ACEOF
2898 cat confdefs.h >>conftest.$ac_ext
2899 cat >>conftest.$ac_ext <<_ACEOF
2900 /* end confdefs.h. */
2901 #include <stdlib.h>
2902 $ac_declaration
2904 main ()
2906 exit (42);
2908 return 0;
2910 _ACEOF
2911 rm -f conftest.$ac_objext
2912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2913 (eval $ac_compile) 2>&5
2914 ac_status=$?
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); } &&
2917 { ac_try='test -s conftest.$ac_objext'
2918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2919 (eval $ac_try) 2>&5
2920 ac_status=$?
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); }; }; then
2924 else
2925 echo "$as_me: failed program was:" >&5
2926 sed 's/^/| /' conftest.$ac_ext >&5
2928 continue
2930 rm -f conftest.$ac_objext conftest.$ac_ext
2931 cat >conftest.$ac_ext <<_ACEOF
2932 #line $LINENO "configure"
2933 /* confdefs.h. */
2934 _ACEOF
2935 cat confdefs.h >>conftest.$ac_ext
2936 cat >>conftest.$ac_ext <<_ACEOF
2937 /* end confdefs.h. */
2938 $ac_declaration
2940 main ()
2942 exit (42);
2944 return 0;
2946 _ACEOF
2947 rm -f conftest.$ac_objext
2948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2949 (eval $ac_compile) 2>&5
2950 ac_status=$?
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); } &&
2953 { ac_try='test -s conftest.$ac_objext'
2954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2955 (eval $ac_try) 2>&5
2956 ac_status=$?
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }; }; then
2959 break
2960 else
2961 echo "$as_me: failed program was:" >&5
2962 sed 's/^/| /' conftest.$ac_ext >&5
2965 rm -f conftest.$ac_objext conftest.$ac_ext
2966 done
2967 rm -f conftest*
2968 if test -n "$ac_declaration"; then
2969 echo '#ifdef __cplusplus' >>confdefs.h
2970 echo $ac_declaration >>confdefs.h
2971 echo '#endif' >>confdefs.h
2974 else
2975 echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2979 rm -f conftest.$ac_objext conftest.$ac_ext
2980 ac_ext=c
2981 ac_cpp='$CPP $CPPFLAGS'
2982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2986 depcc="$CC" am_compiler_list=
2988 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2989 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2990 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2991 echo $ECHO_N "(cached) $ECHO_C" >&6
2992 else
2993 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2994 # We make a subdir and do the tests there. Otherwise we can end up
2995 # making bogus files that we don't know about and never remove. For
2996 # instance it was reported that on HP-UX the gcc test will end up
2997 # making a dummy file named `D' -- because `-MD' means `put the output
2998 # in D'.
2999 mkdir conftest.dir
3000 # Copy depcomp to subdir because otherwise we won't find it if we're
3001 # using a relative directory.
3002 cp "$am_depcomp" conftest.dir
3003 cd conftest.dir
3005 am_cv_CC_dependencies_compiler_type=none
3006 if test "$am_compiler_list" = ""; then
3007 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3009 for depmode in $am_compiler_list; do
3010 # We need to recreate these files for each test, as the compiler may
3011 # overwrite some of them when testing with obscure command lines.
3012 # This happens at least with the AIX C compiler.
3013 echo '#include "conftest.h"' > conftest.c
3014 echo 'int i;' > conftest.h
3015 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3017 case $depmode in
3018 nosideeffect)
3019 # after this tag, mechanisms are not by side-effect, so they'll
3020 # only be used when explicitly requested
3021 if test "x$enable_dependency_tracking" = xyes; then
3022 continue
3023 else
3024 break
3027 none) break ;;
3028 esac
3029 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3030 # mode. It turns out that the SunPro C++ compiler does not properly
3031 # handle `-M -o', and we need to detect this.
3032 if depmode=$depmode \
3033 source=conftest.c object=conftest.o \
3034 depfile=conftest.Po tmpdepfile=conftest.TPo \
3035 $SHELL ./depcomp $depcc -c -o conftest.o conftest.c \
3036 >/dev/null 2>conftest.err &&
3037 grep conftest.h conftest.Po > /dev/null 2>&1 &&
3038 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3039 # icc doesn't choke on unknown options, it will just issue warnings
3040 # (even with -Werror). So we grep stderr for any message
3041 # that says an option was ignored.
3042 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3043 am_cv_CC_dependencies_compiler_type=$depmode
3044 break
3047 done
3049 cd ..
3050 rm -rf conftest.dir
3051 else
3052 am_cv_CC_dependencies_compiler_type=none
3056 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3057 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3058 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3063 test "x$enable_dependency_tracking" != xno \
3064 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3065 am__fastdepCC_TRUE=
3066 am__fastdepCC_FALSE='#'
3067 else
3068 am__fastdepCC_TRUE='#'
3069 am__fastdepCC_FALSE=
3073 # Make sure we can run config.sub.
3074 $ac_config_sub sun4 >/dev/null 2>&1 ||
3075 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3076 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3077 { (exit 1); exit 1; }; }
3079 echo "$as_me:$LINENO: checking build system type" >&5
3080 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3081 if test "${ac_cv_build+set}" = set; then
3082 echo $ECHO_N "(cached) $ECHO_C" >&6
3083 else
3084 ac_cv_build_alias=$build_alias
3085 test -z "$ac_cv_build_alias" &&
3086 ac_cv_build_alias=`$ac_config_guess`
3087 test -z "$ac_cv_build_alias" &&
3088 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3089 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3090 { (exit 1); exit 1; }; }
3091 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3092 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3093 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3094 { (exit 1); exit 1; }; }
3097 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3098 echo "${ECHO_T}$ac_cv_build" >&6
3099 build=$ac_cv_build
3100 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3101 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3102 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3105 echo "$as_me:$LINENO: checking host system type" >&5
3106 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3107 if test "${ac_cv_host+set}" = set; then
3108 echo $ECHO_N "(cached) $ECHO_C" >&6
3109 else
3110 ac_cv_host_alias=$host_alias
3111 test -z "$ac_cv_host_alias" &&
3112 ac_cv_host_alias=$ac_cv_build_alias
3113 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3114 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3115 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3116 { (exit 1); exit 1; }; }
3119 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3120 echo "${ECHO_T}$ac_cv_host" >&6
3121 host=$ac_cv_host
3122 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3123 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3124 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3128 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3129 if test "${with_gnu_ld+set}" = set; then
3130 withval="$with_gnu_ld"
3131 test "$withval" = no || with_gnu_ld=yes
3132 else
3133 with_gnu_ld=no
3135 # Prepare PATH_SEPARATOR.
3136 # The user is always right.
3137 if test "${PATH_SEPARATOR+set}" != set; then
3138 echo "#! /bin/sh" >conf$$.sh
3139 echo "exit 0" >>conf$$.sh
3140 chmod +x conf$$.sh
3141 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3142 PATH_SEPARATOR=';'
3143 else
3144 PATH_SEPARATOR=:
3146 rm -f conf$$.sh
3148 ac_prog=ld
3149 if test "$GCC" = yes; then
3150 # Check if gcc -print-prog-name=ld gives a path.
3151 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3152 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3153 case $host in
3154 *-*-mingw*)
3155 # gcc leaves a trailing carriage return which upsets mingw
3156 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3158 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3159 esac
3160 case $ac_prog in
3161 # Accept absolute paths.
3162 [\\/]* | [A-Za-z]:[\\/]*)
3163 re_direlt='/[^/][^/]*/\.\./'
3164 # Canonicalize the path of ld
3165 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3166 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3167 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3168 done
3169 test -z "$LD" && LD="$ac_prog"
3172 # If it fails, then pretend we aren't using GCC.
3173 ac_prog=ld
3176 # If it is relative, then search for the first ld in PATH.
3177 with_gnu_ld=unknown
3179 esac
3180 elif test "$with_gnu_ld" = yes; then
3181 echo "$as_me:$LINENO: checking for GNU ld" >&5
3182 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3183 else
3184 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3185 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3187 if test "${acl_cv_path_LD+set}" = set; then
3188 echo $ECHO_N "(cached) $ECHO_C" >&6
3189 else
3190 if test -z "$LD"; then
3191 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3192 for ac_dir in $PATH; do
3193 test -z "$ac_dir" && ac_dir=.
3194 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3195 acl_cv_path_LD="$ac_dir/$ac_prog"
3196 # Check to see if the program is GNU ld. I'd rather use --version,
3197 # but apparently some GNU ld's only accept -v.
3198 # Break only if it was the GNU/non-GNU ld that we prefer.
3199 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3200 test "$with_gnu_ld" != no && break
3201 else
3202 test "$with_gnu_ld" != yes && break
3205 done
3206 IFS="$ac_save_ifs"
3207 else
3208 acl_cv_path_LD="$LD" # Let the user override the test with a path.
3212 LD="$acl_cv_path_LD"
3213 if test -n "$LD"; then
3214 echo "$as_me:$LINENO: result: $LD" >&5
3215 echo "${ECHO_T}$LD" >&6
3216 else
3217 echo "$as_me:$LINENO: result: no" >&5
3218 echo "${ECHO_T}no" >&6
3220 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3221 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3222 { (exit 1); exit 1; }; }
3223 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3224 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3225 if test "${acl_cv_prog_gnu_ld+set}" = set; then
3226 echo $ECHO_N "(cached) $ECHO_C" >&6
3227 else
3228 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3229 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3230 acl_cv_prog_gnu_ld=yes
3231 else
3232 acl_cv_prog_gnu_ld=no
3235 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
3236 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
3237 with_gnu_ld=$acl_cv_prog_gnu_ld
3241 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
3242 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
3243 if test "${acl_cv_rpath+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
3245 else
3247 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
3248 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
3249 . ./conftest.sh
3250 rm -f ./conftest.sh
3251 acl_cv_rpath=done
3254 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
3255 echo "${ECHO_T}$acl_cv_rpath" >&6
3256 wl="$acl_cv_wl"
3257 libext="$acl_cv_libext"
3258 shlibext="$acl_cv_shlibext"
3259 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
3260 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
3261 hardcode_direct="$acl_cv_hardcode_direct"
3262 hardcode_minus_L="$acl_cv_hardcode_minus_L"
3263 # Check whether --enable-rpath or --disable-rpath was given.
3264 if test "${enable_rpath+set}" = set; then
3265 enableval="$enable_rpath"
3267 else
3268 enable_rpath=yes
3277 use_additional=yes
3279 acl_save_prefix="$prefix"
3280 prefix="$acl_final_prefix"
3281 acl_save_exec_prefix="$exec_prefix"
3282 exec_prefix="$acl_final_exec_prefix"
3284 eval additional_includedir=\"$includedir\"
3285 eval additional_libdir=\"$libdir\"
3287 exec_prefix="$acl_save_exec_prefix"
3288 prefix="$acl_save_prefix"
3291 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
3292 if test "${with_libiconv_prefix+set}" = set; then
3293 withval="$with_libiconv_prefix"
3295 if test "X$withval" = "Xno"; then
3296 use_additional=no
3297 else
3298 if test "X$withval" = "X"; then
3300 acl_save_prefix="$prefix"
3301 prefix="$acl_final_prefix"
3302 acl_save_exec_prefix="$exec_prefix"
3303 exec_prefix="$acl_final_exec_prefix"
3305 eval additional_includedir=\"$includedir\"
3306 eval additional_libdir=\"$libdir\"
3308 exec_prefix="$acl_save_exec_prefix"
3309 prefix="$acl_save_prefix"
3311 else
3312 additional_includedir="$withval/include"
3313 additional_libdir="$withval/lib"
3318 LIBICONV=
3319 LTLIBICONV=
3320 INCICONV=
3321 rpathdirs=
3322 ltrpathdirs=
3323 names_already_handled=
3324 names_next_round='iconv '
3325 while test -n "$names_next_round"; do
3326 names_this_round="$names_next_round"
3327 names_next_round=
3328 for name in $names_this_round; do
3329 already_handled=
3330 for n in $names_already_handled; do
3331 if test "$n" = "$name"; then
3332 already_handled=yes
3333 break
3335 done
3336 if test -z "$already_handled"; then
3337 names_already_handled="$names_already_handled $name"
3338 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
3339 eval value=\"\$HAVE_LIB$uppername\"
3340 if test -n "$value"; then
3341 if test "$value" = yes; then
3342 eval value=\"\$LIB$uppername\"
3343 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
3344 eval value=\"\$LTLIB$uppername\"
3345 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
3346 else
3349 else
3350 found_dir=
3351 found_la=
3352 found_so=
3353 found_a=
3354 if test $use_additional = yes; then
3355 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
3356 found_dir="$additional_libdir"
3357 found_so="$additional_libdir/lib$name.$shlibext"
3358 if test -f "$additional_libdir/lib$name.la"; then
3359 found_la="$additional_libdir/lib$name.la"
3361 else
3362 if test -f "$additional_libdir/lib$name.$libext"; then
3363 found_dir="$additional_libdir"
3364 found_a="$additional_libdir/lib$name.$libext"
3365 if test -f "$additional_libdir/lib$name.la"; then
3366 found_la="$additional_libdir/lib$name.la"
3371 if test "X$found_dir" = "X"; then
3372 for x in $LDFLAGS $LTLIBICONV; do
3374 acl_save_prefix="$prefix"
3375 prefix="$acl_final_prefix"
3376 acl_save_exec_prefix="$exec_prefix"
3377 exec_prefix="$acl_final_exec_prefix"
3378 eval x=\"$x\"
3379 exec_prefix="$acl_save_exec_prefix"
3380 prefix="$acl_save_prefix"
3382 case "$x" in
3383 -L*)
3384 dir=`echo "X$x" | sed -e 's/^X-L//'`
3385 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
3386 found_dir="$dir"
3387 found_so="$dir/lib$name.$shlibext"
3388 if test -f "$dir/lib$name.la"; then
3389 found_la="$dir/lib$name.la"
3391 else
3392 if test -f "$dir/lib$name.$libext"; then
3393 found_dir="$dir"
3394 found_a="$dir/lib$name.$libext"
3395 if test -f "$dir/lib$name.la"; then
3396 found_la="$dir/lib$name.la"
3401 esac
3402 if test "X$found_dir" != "X"; then
3403 break
3405 done
3407 if test "X$found_dir" != "X"; then
3408 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
3409 if test "X$found_so" != "X"; then
3410 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
3411 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3412 else
3413 haveit=
3414 for x in $ltrpathdirs; do
3415 if test "X$x" = "X$found_dir"; then
3416 haveit=yes
3417 break
3419 done
3420 if test -z "$haveit"; then
3421 ltrpathdirs="$ltrpathdirs $found_dir"
3423 if test "$hardcode_direct" = yes; then
3424 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3425 else
3426 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
3427 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3428 haveit=
3429 for x in $rpathdirs; do
3430 if test "X$x" = "X$found_dir"; then
3431 haveit=yes
3432 break
3434 done
3435 if test -z "$haveit"; then
3436 rpathdirs="$rpathdirs $found_dir"
3438 else
3439 haveit=
3440 for x in $LDFLAGS $LIBICONV; do
3442 acl_save_prefix="$prefix"
3443 prefix="$acl_final_prefix"
3444 acl_save_exec_prefix="$exec_prefix"
3445 exec_prefix="$acl_final_exec_prefix"
3446 eval x=\"$x\"
3447 exec_prefix="$acl_save_exec_prefix"
3448 prefix="$acl_save_prefix"
3450 if test "X$x" = "X-L$found_dir"; then
3451 haveit=yes
3452 break
3454 done
3455 if test -z "$haveit"; then
3456 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
3458 if test "$hardcode_minus_L" != no; then
3459 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3460 else
3461 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
3466 else
3467 if test "X$found_a" != "X"; then
3468 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
3469 else
3470 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
3473 additional_includedir=
3474 case "$found_dir" in
3475 */lib | */lib/)
3476 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
3477 additional_includedir="$basedir/include"
3479 esac
3480 if test "X$additional_includedir" != "X"; then
3481 if test "X$additional_includedir" != "X/usr/include"; then
3482 haveit=
3483 if test "X$additional_includedir" = "X/usr/local/include"; then
3484 if test -n "$GCC"; then
3485 case $host_os in
3486 linux*) haveit=yes;;
3487 esac
3490 if test -z "$haveit"; then
3491 for x in $CPPFLAGS $INCICONV; do
3493 acl_save_prefix="$prefix"
3494 prefix="$acl_final_prefix"
3495 acl_save_exec_prefix="$exec_prefix"
3496 exec_prefix="$acl_final_exec_prefix"
3497 eval x=\"$x\"
3498 exec_prefix="$acl_save_exec_prefix"
3499 prefix="$acl_save_prefix"
3501 if test "X$x" = "X-I$additional_includedir"; then
3502 haveit=yes
3503 break
3505 done
3506 if test -z "$haveit"; then
3507 if test -d "$additional_includedir"; then
3508 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
3514 if test -n "$found_la"; then
3515 save_libdir="$libdir"
3516 case "$found_la" in
3517 */* | *\\*) . "$found_la" ;;
3518 *) . "./$found_la" ;;
3519 esac
3520 libdir="$save_libdir"
3521 for dep in $dependency_libs; do
3522 case "$dep" in
3523 -L*)
3524 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
3525 if test "X$additional_libdir" != "X/usr/lib"; then
3526 haveit=
3527 if test "X$additional_libdir" = "X/usr/local/lib"; then
3528 if test -n "$GCC"; then
3529 case $host_os in
3530 linux*) haveit=yes;;
3531 esac
3534 if test -z "$haveit"; then
3535 haveit=
3536 for x in $LDFLAGS $LIBICONV; do
3538 acl_save_prefix="$prefix"
3539 prefix="$acl_final_prefix"
3540 acl_save_exec_prefix="$exec_prefix"
3541 exec_prefix="$acl_final_exec_prefix"
3542 eval x=\"$x\"
3543 exec_prefix="$acl_save_exec_prefix"
3544 prefix="$acl_save_prefix"
3546 if test "X$x" = "X-L$additional_libdir"; then
3547 haveit=yes
3548 break
3550 done
3551 if test -z "$haveit"; then
3552 if test -d "$additional_libdir"; then
3553 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
3556 haveit=
3557 for x in $LDFLAGS $LTLIBICONV; do
3559 acl_save_prefix="$prefix"
3560 prefix="$acl_final_prefix"
3561 acl_save_exec_prefix="$exec_prefix"
3562 exec_prefix="$acl_final_exec_prefix"
3563 eval x=\"$x\"
3564 exec_prefix="$acl_save_exec_prefix"
3565 prefix="$acl_save_prefix"
3567 if test "X$x" = "X-L$additional_libdir"; then
3568 haveit=yes
3569 break
3571 done
3572 if test -z "$haveit"; then
3573 if test -d "$additional_libdir"; then
3574 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
3580 -R*)
3581 dir=`echo "X$dep" | sed -e 's/^X-R//'`
3582 if test "$enable_rpath" != no; then
3583 haveit=
3584 for x in $rpathdirs; do
3585 if test "X$x" = "X$dir"; then
3586 haveit=yes
3587 break
3589 done
3590 if test -z "$haveit"; then
3591 rpathdirs="$rpathdirs $dir"
3593 haveit=
3594 for x in $ltrpathdirs; do
3595 if test "X$x" = "X$dir"; then
3596 haveit=yes
3597 break
3599 done
3600 if test -z "$haveit"; then
3601 ltrpathdirs="$ltrpathdirs $dir"
3605 -l*)
3606 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
3608 *.la)
3609 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
3612 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
3613 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
3615 esac
3616 done
3618 else
3619 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
3620 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
3624 done
3625 done
3626 if test "X$rpathdirs" != "X"; then
3627 if test -n "$hardcode_libdir_separator"; then
3628 alldirs=
3629 for found_dir in $rpathdirs; do
3630 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
3631 done
3632 acl_save_libdir="$libdir"
3633 libdir="$alldirs"
3634 eval flag=\"$hardcode_libdir_flag_spec\"
3635 libdir="$acl_save_libdir"
3636 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
3637 else
3638 for found_dir in $rpathdirs; do
3639 acl_save_libdir="$libdir"
3640 libdir="$found_dir"
3641 eval flag=\"$hardcode_libdir_flag_spec\"
3642 libdir="$acl_save_libdir"
3643 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
3644 done
3647 if test "X$ltrpathdirs" != "X"; then
3648 for found_dir in $ltrpathdirs; do
3649 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
3650 done
3671 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3672 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3673 # Check whether --enable-nls or --disable-nls was given.
3674 if test "${enable_nls+set}" = set; then
3675 enableval="$enable_nls"
3676 USE_NLS=$enableval
3677 else
3678 USE_NLS=yes
3680 echo "$as_me:$LINENO: result: $USE_NLS" >&5
3681 echo "${ECHO_T}$USE_NLS" >&6
3686 LIBINTL=
3687 LTLIBINTL=
3688 POSUB=
3690 if test "$USE_NLS" = "yes"; then
3691 gt_use_preinstalled_gnugettext=no
3698 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
3699 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
3700 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6
3702 else
3703 cat >conftest.$ac_ext <<_ACEOF
3704 #line $LINENO "configure"
3705 /* confdefs.h. */
3706 _ACEOF
3707 cat confdefs.h >>conftest.$ac_ext
3708 cat >>conftest.$ac_ext <<_ACEOF
3709 /* end confdefs.h. */
3710 #include <libintl.h>
3711 extern int _nl_msg_cat_cntr;
3712 extern int *_nl_domain_bindings;
3714 main ()
3716 bindtextdomain ("", "");
3717 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
3719 return 0;
3721 _ACEOF
3722 rm -f conftest.$ac_objext conftest$ac_exeext
3723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3724 (eval $ac_link) 2>&5
3725 ac_status=$?
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); } &&
3728 { ac_try='test -s conftest$ac_exeext'
3729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3730 (eval $ac_try) 2>&5
3731 ac_status=$?
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); }; }; then
3734 gt_cv_func_gnugettext1_libc=yes
3735 else
3736 echo "$as_me: failed program was:" >&5
3737 sed 's/^/| /' conftest.$ac_ext >&5
3739 gt_cv_func_gnugettext1_libc=no
3741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3743 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
3744 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
3746 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
3752 am_save_CPPFLAGS="$CPPFLAGS"
3754 for element in $INCICONV; do
3755 haveit=
3756 for x in $CPPFLAGS; do
3758 acl_save_prefix="$prefix"
3759 prefix="$acl_final_prefix"
3760 acl_save_exec_prefix="$exec_prefix"
3761 exec_prefix="$acl_final_exec_prefix"
3762 eval x=\"$x\"
3763 exec_prefix="$acl_save_exec_prefix"
3764 prefix="$acl_save_prefix"
3766 if test "X$x" = "X$element"; then
3767 haveit=yes
3768 break
3770 done
3771 if test -z "$haveit"; then
3772 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
3774 done
3777 echo "$as_me:$LINENO: checking for iconv" >&5
3778 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
3779 if test "${am_cv_func_iconv+set}" = set; then
3780 echo $ECHO_N "(cached) $ECHO_C" >&6
3781 else
3783 am_cv_func_iconv="no, consider installing GNU libiconv"
3784 am_cv_lib_iconv=no
3785 cat >conftest.$ac_ext <<_ACEOF
3786 #line $LINENO "configure"
3787 /* confdefs.h. */
3788 _ACEOF
3789 cat confdefs.h >>conftest.$ac_ext
3790 cat >>conftest.$ac_ext <<_ACEOF
3791 /* end confdefs.h. */
3792 #include <stdlib.h>
3793 #include <iconv.h>
3795 main ()
3797 iconv_t cd = iconv_open("","");
3798 iconv(cd,NULL,NULL,NULL,NULL);
3799 iconv_close(cd);
3801 return 0;
3803 _ACEOF
3804 rm -f conftest.$ac_objext conftest$ac_exeext
3805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3806 (eval $ac_link) 2>&5
3807 ac_status=$?
3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809 (exit $ac_status); } &&
3810 { ac_try='test -s conftest$ac_exeext'
3811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3812 (eval $ac_try) 2>&5
3813 ac_status=$?
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); }; }; then
3816 am_cv_func_iconv=yes
3817 else
3818 echo "$as_me: failed program was:" >&5
3819 sed 's/^/| /' conftest.$ac_ext >&5
3822 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3823 if test "$am_cv_func_iconv" != yes; then
3824 am_save_LIBS="$LIBS"
3825 LIBS="$LIBS $LIBICONV"
3826 cat >conftest.$ac_ext <<_ACEOF
3827 #line $LINENO "configure"
3828 /* confdefs.h. */
3829 _ACEOF
3830 cat confdefs.h >>conftest.$ac_ext
3831 cat >>conftest.$ac_ext <<_ACEOF
3832 /* end confdefs.h. */
3833 #include <stdlib.h>
3834 #include <iconv.h>
3836 main ()
3838 iconv_t cd = iconv_open("","");
3839 iconv(cd,NULL,NULL,NULL,NULL);
3840 iconv_close(cd);
3842 return 0;
3844 _ACEOF
3845 rm -f conftest.$ac_objext conftest$ac_exeext
3846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3847 (eval $ac_link) 2>&5
3848 ac_status=$?
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); } &&
3851 { ac_try='test -s conftest$ac_exeext'
3852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3853 (eval $ac_try) 2>&5
3854 ac_status=$?
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }; }; then
3857 am_cv_lib_iconv=yes
3858 am_cv_func_iconv=yes
3859 else
3860 echo "$as_me: failed program was:" >&5
3861 sed 's/^/| /' conftest.$ac_ext >&5
3864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3865 LIBS="$am_save_LIBS"
3869 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
3870 echo "${ECHO_T}$am_cv_func_iconv" >&6
3871 if test "$am_cv_func_iconv" = yes; then
3873 cat >>confdefs.h <<\_ACEOF
3874 #define HAVE_ICONV 1
3875 _ACEOF
3878 if test "$am_cv_lib_iconv" = yes; then
3879 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
3880 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
3881 echo "$as_me:$LINENO: result: $LIBICONV" >&5
3882 echo "${ECHO_T}$LIBICONV" >&6
3883 else
3884 CPPFLAGS="$am_save_CPPFLAGS"
3885 LIBICONV=
3886 LTLIBICONV=
3894 use_additional=yes
3896 acl_save_prefix="$prefix"
3897 prefix="$acl_final_prefix"
3898 acl_save_exec_prefix="$exec_prefix"
3899 exec_prefix="$acl_final_exec_prefix"
3901 eval additional_includedir=\"$includedir\"
3902 eval additional_libdir=\"$libdir\"
3904 exec_prefix="$acl_save_exec_prefix"
3905 prefix="$acl_save_prefix"
3908 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
3909 if test "${with_libintl_prefix+set}" = set; then
3910 withval="$with_libintl_prefix"
3912 if test "X$withval" = "Xno"; then
3913 use_additional=no
3914 else
3915 if test "X$withval" = "X"; then
3917 acl_save_prefix="$prefix"
3918 prefix="$acl_final_prefix"
3919 acl_save_exec_prefix="$exec_prefix"
3920 exec_prefix="$acl_final_exec_prefix"
3922 eval additional_includedir=\"$includedir\"
3923 eval additional_libdir=\"$libdir\"
3925 exec_prefix="$acl_save_exec_prefix"
3926 prefix="$acl_save_prefix"
3928 else
3929 additional_includedir="$withval/include"
3930 additional_libdir="$withval/lib"
3935 LIBINTL=
3936 LTLIBINTL=
3937 INCINTL=
3938 rpathdirs=
3939 ltrpathdirs=
3940 names_already_handled=
3941 names_next_round='intl '
3942 while test -n "$names_next_round"; do
3943 names_this_round="$names_next_round"
3944 names_next_round=
3945 for name in $names_this_round; do
3946 already_handled=
3947 for n in $names_already_handled; do
3948 if test "$n" = "$name"; then
3949 already_handled=yes
3950 break
3952 done
3953 if test -z "$already_handled"; then
3954 names_already_handled="$names_already_handled $name"
3955 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
3956 eval value=\"\$HAVE_LIB$uppername\"
3957 if test -n "$value"; then
3958 if test "$value" = yes; then
3959 eval value=\"\$LIB$uppername\"
3960 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
3961 eval value=\"\$LTLIB$uppername\"
3962 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
3963 else
3966 else
3967 found_dir=
3968 found_la=
3969 found_so=
3970 found_a=
3971 if test $use_additional = yes; then
3972 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
3973 found_dir="$additional_libdir"
3974 found_so="$additional_libdir/lib$name.$shlibext"
3975 if test -f "$additional_libdir/lib$name.la"; then
3976 found_la="$additional_libdir/lib$name.la"
3978 else
3979 if test -f "$additional_libdir/lib$name.$libext"; then
3980 found_dir="$additional_libdir"
3981 found_a="$additional_libdir/lib$name.$libext"
3982 if test -f "$additional_libdir/lib$name.la"; then
3983 found_la="$additional_libdir/lib$name.la"
3988 if test "X$found_dir" = "X"; then
3989 for x in $LDFLAGS $LTLIBINTL; do
3991 acl_save_prefix="$prefix"
3992 prefix="$acl_final_prefix"
3993 acl_save_exec_prefix="$exec_prefix"
3994 exec_prefix="$acl_final_exec_prefix"
3995 eval x=\"$x\"
3996 exec_prefix="$acl_save_exec_prefix"
3997 prefix="$acl_save_prefix"
3999 case "$x" in
4000 -L*)
4001 dir=`echo "X$x" | sed -e 's/^X-L//'`
4002 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4003 found_dir="$dir"
4004 found_so="$dir/lib$name.$shlibext"
4005 if test -f "$dir/lib$name.la"; then
4006 found_la="$dir/lib$name.la"
4008 else
4009 if test -f "$dir/lib$name.$libext"; then
4010 found_dir="$dir"
4011 found_a="$dir/lib$name.$libext"
4012 if test -f "$dir/lib$name.la"; then
4013 found_la="$dir/lib$name.la"
4018 esac
4019 if test "X$found_dir" != "X"; then
4020 break
4022 done
4024 if test "X$found_dir" != "X"; then
4025 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
4026 if test "X$found_so" != "X"; then
4027 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
4028 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4029 else
4030 haveit=
4031 for x in $ltrpathdirs; do
4032 if test "X$x" = "X$found_dir"; then
4033 haveit=yes
4034 break
4036 done
4037 if test -z "$haveit"; then
4038 ltrpathdirs="$ltrpathdirs $found_dir"
4040 if test "$hardcode_direct" = yes; then
4041 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4042 else
4043 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
4044 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4045 haveit=
4046 for x in $rpathdirs; do
4047 if test "X$x" = "X$found_dir"; then
4048 haveit=yes
4049 break
4051 done
4052 if test -z "$haveit"; then
4053 rpathdirs="$rpathdirs $found_dir"
4055 else
4056 haveit=
4057 for x in $LDFLAGS $LIBINTL; do
4059 acl_save_prefix="$prefix"
4060 prefix="$acl_final_prefix"
4061 acl_save_exec_prefix="$exec_prefix"
4062 exec_prefix="$acl_final_exec_prefix"
4063 eval x=\"$x\"
4064 exec_prefix="$acl_save_exec_prefix"
4065 prefix="$acl_save_prefix"
4067 if test "X$x" = "X-L$found_dir"; then
4068 haveit=yes
4069 break
4071 done
4072 if test -z "$haveit"; then
4073 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
4075 if test "$hardcode_minus_L" != no; then
4076 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4077 else
4078 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
4083 else
4084 if test "X$found_a" != "X"; then
4085 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
4086 else
4087 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
4090 additional_includedir=
4091 case "$found_dir" in
4092 */lib | */lib/)
4093 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
4094 additional_includedir="$basedir/include"
4096 esac
4097 if test "X$additional_includedir" != "X"; then
4098 if test "X$additional_includedir" != "X/usr/include"; then
4099 haveit=
4100 if test "X$additional_includedir" = "X/usr/local/include"; then
4101 if test -n "$GCC"; then
4102 case $host_os in
4103 linux*) haveit=yes;;
4104 esac
4107 if test -z "$haveit"; then
4108 for x in $CPPFLAGS $INCINTL; do
4110 acl_save_prefix="$prefix"
4111 prefix="$acl_final_prefix"
4112 acl_save_exec_prefix="$exec_prefix"
4113 exec_prefix="$acl_final_exec_prefix"
4114 eval x=\"$x\"
4115 exec_prefix="$acl_save_exec_prefix"
4116 prefix="$acl_save_prefix"
4118 if test "X$x" = "X-I$additional_includedir"; then
4119 haveit=yes
4120 break
4122 done
4123 if test -z "$haveit"; then
4124 if test -d "$additional_includedir"; then
4125 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
4131 if test -n "$found_la"; then
4132 save_libdir="$libdir"
4133 case "$found_la" in
4134 */* | *\\*) . "$found_la" ;;
4135 *) . "./$found_la" ;;
4136 esac
4137 libdir="$save_libdir"
4138 for dep in $dependency_libs; do
4139 case "$dep" in
4140 -L*)
4141 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4142 if test "X$additional_libdir" != "X/usr/lib"; then
4143 haveit=
4144 if test "X$additional_libdir" = "X/usr/local/lib"; then
4145 if test -n "$GCC"; then
4146 case $host_os in
4147 linux*) haveit=yes;;
4148 esac
4151 if test -z "$haveit"; then
4152 haveit=
4153 for x in $LDFLAGS $LIBINTL; do
4155 acl_save_prefix="$prefix"
4156 prefix="$acl_final_prefix"
4157 acl_save_exec_prefix="$exec_prefix"
4158 exec_prefix="$acl_final_exec_prefix"
4159 eval x=\"$x\"
4160 exec_prefix="$acl_save_exec_prefix"
4161 prefix="$acl_save_prefix"
4163 if test "X$x" = "X-L$additional_libdir"; then
4164 haveit=yes
4165 break
4167 done
4168 if test -z "$haveit"; then
4169 if test -d "$additional_libdir"; then
4170 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
4173 haveit=
4174 for x in $LDFLAGS $LTLIBINTL; do
4176 acl_save_prefix="$prefix"
4177 prefix="$acl_final_prefix"
4178 acl_save_exec_prefix="$exec_prefix"
4179 exec_prefix="$acl_final_exec_prefix"
4180 eval x=\"$x\"
4181 exec_prefix="$acl_save_exec_prefix"
4182 prefix="$acl_save_prefix"
4184 if test "X$x" = "X-L$additional_libdir"; then
4185 haveit=yes
4186 break
4188 done
4189 if test -z "$haveit"; then
4190 if test -d "$additional_libdir"; then
4191 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
4197 -R*)
4198 dir=`echo "X$dep" | sed -e 's/^X-R//'`
4199 if test "$enable_rpath" != no; then
4200 haveit=
4201 for x in $rpathdirs; do
4202 if test "X$x" = "X$dir"; then
4203 haveit=yes
4204 break
4206 done
4207 if test -z "$haveit"; then
4208 rpathdirs="$rpathdirs $dir"
4210 haveit=
4211 for x in $ltrpathdirs; do
4212 if test "X$x" = "X$dir"; then
4213 haveit=yes
4214 break
4216 done
4217 if test -z "$haveit"; then
4218 ltrpathdirs="$ltrpathdirs $dir"
4222 -l*)
4223 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4225 *.la)
4226 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4229 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
4230 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
4232 esac
4233 done
4235 else
4236 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
4237 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
4241 done
4242 done
4243 if test "X$rpathdirs" != "X"; then
4244 if test -n "$hardcode_libdir_separator"; then
4245 alldirs=
4246 for found_dir in $rpathdirs; do
4247 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
4248 done
4249 acl_save_libdir="$libdir"
4250 libdir="$alldirs"
4251 eval flag=\"$hardcode_libdir_flag_spec\"
4252 libdir="$acl_save_libdir"
4253 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
4254 else
4255 for found_dir in $rpathdirs; do
4256 acl_save_libdir="$libdir"
4257 libdir="$found_dir"
4258 eval flag=\"$hardcode_libdir_flag_spec\"
4259 libdir="$acl_save_libdir"
4260 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
4261 done
4264 if test "X$ltrpathdirs" != "X"; then
4265 for found_dir in $ltrpathdirs; do
4266 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
4267 done
4270 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
4271 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
4272 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
4273 echo $ECHO_N "(cached) $ECHO_C" >&6
4274 else
4275 gt_save_CPPFLAGS="$CPPFLAGS"
4276 CPPFLAGS="$CPPFLAGS $INCINTL"
4277 gt_save_LIBS="$LIBS"
4278 LIBS="$LIBS $LIBINTL"
4279 cat >conftest.$ac_ext <<_ACEOF
4280 #line $LINENO "configure"
4281 /* confdefs.h. */
4282 _ACEOF
4283 cat confdefs.h >>conftest.$ac_ext
4284 cat >>conftest.$ac_ext <<_ACEOF
4285 /* end confdefs.h. */
4286 #include <libintl.h>
4287 extern int _nl_msg_cat_cntr;
4288 extern
4289 #ifdef __cplusplus
4291 #endif
4292 const char *_nl_expand_alias ();
4294 main ()
4296 bindtextdomain ("", "");
4297 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
4299 return 0;
4301 _ACEOF
4302 rm -f conftest.$ac_objext conftest$ac_exeext
4303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4304 (eval $ac_link) 2>&5
4305 ac_status=$?
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); } &&
4308 { ac_try='test -s conftest$ac_exeext'
4309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4310 (eval $ac_try) 2>&5
4311 ac_status=$?
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); }; }; then
4314 gt_cv_func_gnugettext1_libintl=yes
4315 else
4316 echo "$as_me: failed program was:" >&5
4317 sed 's/^/| /' conftest.$ac_ext >&5
4319 gt_cv_func_gnugettext1_libintl=no
4321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4322 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
4323 LIBS="$LIBS $LIBICONV"
4324 cat >conftest.$ac_ext <<_ACEOF
4325 #line $LINENO "configure"
4326 /* confdefs.h. */
4327 _ACEOF
4328 cat confdefs.h >>conftest.$ac_ext
4329 cat >>conftest.$ac_ext <<_ACEOF
4330 /* end confdefs.h. */
4331 #include <libintl.h>
4332 extern int _nl_msg_cat_cntr;
4333 extern
4334 #ifdef __cplusplus
4336 #endif
4337 const char *_nl_expand_alias ();
4339 main ()
4341 bindtextdomain ("", "");
4342 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
4344 return 0;
4346 _ACEOF
4347 rm -f conftest.$ac_objext conftest$ac_exeext
4348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4349 (eval $ac_link) 2>&5
4350 ac_status=$?
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } &&
4353 { ac_try='test -s conftest$ac_exeext'
4354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4355 (eval $ac_try) 2>&5
4356 ac_status=$?
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); }; }; then
4359 LIBINTL="$LIBINTL $LIBICONV"
4360 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
4361 gt_cv_func_gnugettext1_libintl=yes
4363 else
4364 echo "$as_me: failed program was:" >&5
4365 sed 's/^/| /' conftest.$ac_ext >&5
4368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4370 CPPFLAGS="$gt_save_CPPFLAGS"
4371 LIBS="$gt_save_LIBS"
4373 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
4374 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
4377 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
4378 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
4379 && test "$PACKAGE" != gettext-runtime \
4380 && test "$PACKAGE" != gettext-tools; }; then
4381 gt_use_preinstalled_gnugettext=yes
4382 else
4383 LIBINTL=
4384 LTLIBINTL=
4385 INCINTL=
4390 if test "$gt_use_preinstalled_gnugettext" = "yes" \
4391 || test "$nls_cv_use_gnu_gettext" = "yes"; then
4393 cat >>confdefs.h <<\_ACEOF
4394 #define ENABLE_NLS 1
4395 _ACEOF
4397 else
4398 USE_NLS=no
4402 echo "$as_me:$LINENO: checking whether to use NLS" >&5
4403 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
4404 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4405 echo "${ECHO_T}$USE_NLS" >&6
4406 if test "$USE_NLS" = "yes"; then
4407 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
4408 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
4409 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
4410 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
4411 gt_source="external libintl"
4412 else
4413 gt_source="libc"
4415 else
4416 gt_source="included intl directory"
4418 echo "$as_me:$LINENO: result: $gt_source" >&5
4419 echo "${ECHO_T}$gt_source" >&6
4422 if test "$USE_NLS" = "yes"; then
4424 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
4425 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
4426 echo "$as_me:$LINENO: checking how to link with libintl" >&5
4427 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
4428 echo "$as_me:$LINENO: result: $LIBINTL" >&5
4429 echo "${ECHO_T}$LIBINTL" >&6
4431 for element in $INCINTL; do
4432 haveit=
4433 for x in $CPPFLAGS; do
4435 acl_save_prefix="$prefix"
4436 prefix="$acl_final_prefix"
4437 acl_save_exec_prefix="$exec_prefix"
4438 exec_prefix="$acl_final_exec_prefix"
4439 eval x=\"$x\"
4440 exec_prefix="$acl_save_exec_prefix"
4441 prefix="$acl_save_prefix"
4443 if test "X$x" = "X$element"; then
4444 haveit=yes
4445 break
4447 done
4448 if test -z "$haveit"; then
4449 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
4451 done
4456 cat >>confdefs.h <<\_ACEOF
4457 #define HAVE_GETTEXT 1
4458 _ACEOF
4461 cat >>confdefs.h <<\_ACEOF
4462 #define HAVE_DCGETTEXT 1
4463 _ACEOF
4467 POSUB=po
4472 INTLLIBS="$LIBINTL"
4481 for ac_prog in 'bison -y' byacc
4483 # Extract the first word of "$ac_prog", so it can be a program name with args.
4484 set dummy $ac_prog; ac_word=$2
4485 echo "$as_me:$LINENO: checking for $ac_word" >&5
4486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4487 if test "${ac_cv_prog_YACC+set}" = set; then
4488 echo $ECHO_N "(cached) $ECHO_C" >&6
4489 else
4490 if test -n "$YACC"; then
4491 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4492 else
4493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4494 for as_dir in $PATH
4496 IFS=$as_save_IFS
4497 test -z "$as_dir" && as_dir=.
4498 for ac_exec_ext in '' $ac_executable_extensions; do
4499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4500 ac_cv_prog_YACC="$ac_prog"
4501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4502 break 2
4504 done
4505 done
4509 YACC=$ac_cv_prog_YACC
4510 if test -n "$YACC"; then
4511 echo "$as_me:$LINENO: result: $YACC" >&5
4512 echo "${ECHO_T}$YACC" >&6
4513 else
4514 echo "$as_me:$LINENO: result: no" >&5
4515 echo "${ECHO_T}no" >&6
4518 test -n "$YACC" && break
4519 done
4520 test -n "$YACC" || YACC="yacc"
4522 for ac_prog in flex lex
4524 # Extract the first word of "$ac_prog", so it can be a program name with args.
4525 set dummy $ac_prog; ac_word=$2
4526 echo "$as_me:$LINENO: checking for $ac_word" >&5
4527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4528 if test "${ac_cv_prog_LEX+set}" = set; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4530 else
4531 if test -n "$LEX"; then
4532 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4533 else
4534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4535 for as_dir in $PATH
4537 IFS=$as_save_IFS
4538 test -z "$as_dir" && as_dir=.
4539 for ac_exec_ext in '' $ac_executable_extensions; do
4540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4541 ac_cv_prog_LEX="$ac_prog"
4542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4543 break 2
4545 done
4546 done
4550 LEX=$ac_cv_prog_LEX
4551 if test -n "$LEX"; then
4552 echo "$as_me:$LINENO: result: $LEX" >&5
4553 echo "${ECHO_T}$LEX" >&6
4554 else
4555 echo "$as_me:$LINENO: result: no" >&5
4556 echo "${ECHO_T}no" >&6
4559 test -n "$LEX" && break
4560 done
4561 test -n "$LEX" || LEX=":"
4563 if test -z "$LEXLIB"
4564 then
4565 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4566 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4567 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4568 echo $ECHO_N "(cached) $ECHO_C" >&6
4569 else
4570 ac_check_lib_save_LIBS=$LIBS
4571 LIBS="-lfl $LIBS"
4572 cat >conftest.$ac_ext <<_ACEOF
4573 #line $LINENO "configure"
4574 /* confdefs.h. */
4575 _ACEOF
4576 cat confdefs.h >>conftest.$ac_ext
4577 cat >>conftest.$ac_ext <<_ACEOF
4578 /* end confdefs.h. */
4580 /* Override any gcc2 internal prototype to avoid an error. */
4581 #ifdef __cplusplus
4582 extern "C"
4583 #endif
4584 /* We use char because int might match the return type of a gcc2
4585 builtin and then its argument prototype would still apply. */
4586 char yywrap ();
4588 main ()
4590 yywrap ();
4592 return 0;
4594 _ACEOF
4595 rm -f conftest.$ac_objext conftest$ac_exeext
4596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4597 (eval $ac_link) 2>&5
4598 ac_status=$?
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); } &&
4601 { ac_try='test -s conftest$ac_exeext'
4602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603 (eval $ac_try) 2>&5
4604 ac_status=$?
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }; }; then
4607 ac_cv_lib_fl_yywrap=yes
4608 else
4609 echo "$as_me: failed program was:" >&5
4610 sed 's/^/| /' conftest.$ac_ext >&5
4612 ac_cv_lib_fl_yywrap=no
4614 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4615 LIBS=$ac_check_lib_save_LIBS
4617 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4618 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4619 if test $ac_cv_lib_fl_yywrap = yes; then
4620 LEXLIB="-lfl"
4621 else
4622 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4623 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4624 if test "${ac_cv_lib_l_yywrap+set}" = set; then
4625 echo $ECHO_N "(cached) $ECHO_C" >&6
4626 else
4627 ac_check_lib_save_LIBS=$LIBS
4628 LIBS="-ll $LIBS"
4629 cat >conftest.$ac_ext <<_ACEOF
4630 #line $LINENO "configure"
4631 /* confdefs.h. */
4632 _ACEOF
4633 cat confdefs.h >>conftest.$ac_ext
4634 cat >>conftest.$ac_ext <<_ACEOF
4635 /* end confdefs.h. */
4637 /* Override any gcc2 internal prototype to avoid an error. */
4638 #ifdef __cplusplus
4639 extern "C"
4640 #endif
4641 /* We use char because int might match the return type of a gcc2
4642 builtin and then its argument prototype would still apply. */
4643 char yywrap ();
4645 main ()
4647 yywrap ();
4649 return 0;
4651 _ACEOF
4652 rm -f conftest.$ac_objext conftest$ac_exeext
4653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4654 (eval $ac_link) 2>&5
4655 ac_status=$?
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); } &&
4658 { ac_try='test -s conftest$ac_exeext'
4659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660 (eval $ac_try) 2>&5
4661 ac_status=$?
4662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663 (exit $ac_status); }; }; then
4664 ac_cv_lib_l_yywrap=yes
4665 else
4666 echo "$as_me: failed program was:" >&5
4667 sed 's/^/| /' conftest.$ac_ext >&5
4669 ac_cv_lib_l_yywrap=no
4671 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4672 LIBS=$ac_check_lib_save_LIBS
4674 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4675 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4676 if test $ac_cv_lib_l_yywrap = yes; then
4677 LEXLIB="-ll"
4684 if test "x$LEX" != "x:"; then
4685 echo "$as_me:$LINENO: checking lex output file root" >&5
4686 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4687 if test "${ac_cv_prog_lex_root+set}" = set; then
4688 echo $ECHO_N "(cached) $ECHO_C" >&6
4689 else
4690 # The minimal lex program is just a single line: %%. But some broken lexes
4691 # (Solaris, I think it was) want two %% lines, so accommodate them.
4692 cat >conftest.l <<_ACEOF
4695 _ACEOF
4696 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4697 (eval $LEX conftest.l) 2>&5
4698 ac_status=$?
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); }
4701 if test -f lex.yy.c; then
4702 ac_cv_prog_lex_root=lex.yy
4703 elif test -f lexyy.c; then
4704 ac_cv_prog_lex_root=lexyy
4705 else
4706 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4707 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4708 { (exit 1); exit 1; }; }
4711 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4712 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4713 rm -f conftest.l
4714 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4716 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4717 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4718 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4719 echo $ECHO_N "(cached) $ECHO_C" >&6
4720 else
4721 # POSIX says lex can declare yytext either as a pointer or an array; the
4722 # default is implementation-dependent. Figure out which it is, since
4723 # not all implementations provide the %pointer and %array declarations.
4724 ac_cv_prog_lex_yytext_pointer=no
4725 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4726 ac_save_LIBS=$LIBS
4727 LIBS="$LIBS $LEXLIB"
4728 cat >conftest.$ac_ext <<_ACEOF
4729 `cat $LEX_OUTPUT_ROOT.c`
4730 _ACEOF
4731 rm -f conftest.$ac_objext conftest$ac_exeext
4732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4733 (eval $ac_link) 2>&5
4734 ac_status=$?
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); } &&
4737 { ac_try='test -s conftest$ac_exeext'
4738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4739 (eval $ac_try) 2>&5
4740 ac_status=$?
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); }; }; then
4743 ac_cv_prog_lex_yytext_pointer=yes
4744 else
4745 echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.$ac_ext >&5
4749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4750 LIBS=$ac_save_LIBS
4751 rm -f "${LEX_OUTPUT_ROOT}.c"
4754 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4755 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4756 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4758 cat >>confdefs.h <<\_ACEOF
4759 #define YYTEXT_POINTER 1
4760 _ACEOF
4765 if test "$LEX" = :; then
4766 LEX=${am_missing_run}flex
4768 ac_ext=c
4769 ac_cpp='$CPP $CPPFLAGS'
4770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4773 if test -n "$ac_tool_prefix"; then
4774 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4775 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4776 echo "$as_me:$LINENO: checking for $ac_word" >&5
4777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4778 if test "${ac_cv_prog_CC+set}" = set; then
4779 echo $ECHO_N "(cached) $ECHO_C" >&6
4780 else
4781 if test -n "$CC"; then
4782 ac_cv_prog_CC="$CC" # Let the user override the test.
4783 else
4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 for as_dir in $PATH
4787 IFS=$as_save_IFS
4788 test -z "$as_dir" && as_dir=.
4789 for ac_exec_ext in '' $ac_executable_extensions; do
4790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4791 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4793 break 2
4795 done
4796 done
4800 CC=$ac_cv_prog_CC
4801 if test -n "$CC"; then
4802 echo "$as_me:$LINENO: result: $CC" >&5
4803 echo "${ECHO_T}$CC" >&6
4804 else
4805 echo "$as_me:$LINENO: result: no" >&5
4806 echo "${ECHO_T}no" >&6
4810 if test -z "$ac_cv_prog_CC"; then
4811 ac_ct_CC=$CC
4812 # Extract the first word of "gcc", so it can be a program name with args.
4813 set dummy gcc; ac_word=$2
4814 echo "$as_me:$LINENO: checking for $ac_word" >&5
4815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4816 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4817 echo $ECHO_N "(cached) $ECHO_C" >&6
4818 else
4819 if test -n "$ac_ct_CC"; then
4820 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4821 else
4822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823 for as_dir in $PATH
4825 IFS=$as_save_IFS
4826 test -z "$as_dir" && as_dir=.
4827 for ac_exec_ext in '' $ac_executable_extensions; do
4828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4829 ac_cv_prog_ac_ct_CC="gcc"
4830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4831 break 2
4833 done
4834 done
4838 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4839 if test -n "$ac_ct_CC"; then
4840 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4841 echo "${ECHO_T}$ac_ct_CC" >&6
4842 else
4843 echo "$as_me:$LINENO: result: no" >&5
4844 echo "${ECHO_T}no" >&6
4847 CC=$ac_ct_CC
4848 else
4849 CC="$ac_cv_prog_CC"
4852 if test -z "$CC"; then
4853 if test -n "$ac_tool_prefix"; then
4854 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4855 set dummy ${ac_tool_prefix}cc; ac_word=$2
4856 echo "$as_me:$LINENO: checking for $ac_word" >&5
4857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4858 if test "${ac_cv_prog_CC+set}" = set; then
4859 echo $ECHO_N "(cached) $ECHO_C" >&6
4860 else
4861 if test -n "$CC"; then
4862 ac_cv_prog_CC="$CC" # Let the user override the test.
4863 else
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 for as_dir in $PATH
4867 IFS=$as_save_IFS
4868 test -z "$as_dir" && as_dir=.
4869 for ac_exec_ext in '' $ac_executable_extensions; do
4870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4871 ac_cv_prog_CC="${ac_tool_prefix}cc"
4872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4873 break 2
4875 done
4876 done
4880 CC=$ac_cv_prog_CC
4881 if test -n "$CC"; then
4882 echo "$as_me:$LINENO: result: $CC" >&5
4883 echo "${ECHO_T}$CC" >&6
4884 else
4885 echo "$as_me:$LINENO: result: no" >&5
4886 echo "${ECHO_T}no" >&6
4890 if test -z "$ac_cv_prog_CC"; then
4891 ac_ct_CC=$CC
4892 # Extract the first word of "cc", so it can be a program name with args.
4893 set dummy cc; ac_word=$2
4894 echo "$as_me:$LINENO: checking for $ac_word" >&5
4895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4896 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4897 echo $ECHO_N "(cached) $ECHO_C" >&6
4898 else
4899 if test -n "$ac_ct_CC"; then
4900 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4901 else
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903 for as_dir in $PATH
4905 IFS=$as_save_IFS
4906 test -z "$as_dir" && as_dir=.
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4909 ac_cv_prog_ac_ct_CC="cc"
4910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4911 break 2
4913 done
4914 done
4918 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4919 if test -n "$ac_ct_CC"; then
4920 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4921 echo "${ECHO_T}$ac_ct_CC" >&6
4922 else
4923 echo "$as_me:$LINENO: result: no" >&5
4924 echo "${ECHO_T}no" >&6
4927 CC=$ac_ct_CC
4928 else
4929 CC="$ac_cv_prog_CC"
4933 if test -z "$CC"; then
4934 # Extract the first word of "cc", so it can be a program name with args.
4935 set dummy cc; ac_word=$2
4936 echo "$as_me:$LINENO: checking for $ac_word" >&5
4937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4938 if test "${ac_cv_prog_CC+set}" = set; then
4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4940 else
4941 if test -n "$CC"; then
4942 ac_cv_prog_CC="$CC" # Let the user override the test.
4943 else
4944 ac_prog_rejected=no
4945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946 for as_dir in $PATH
4948 IFS=$as_save_IFS
4949 test -z "$as_dir" && as_dir=.
4950 for ac_exec_ext in '' $ac_executable_extensions; do
4951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4952 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4953 ac_prog_rejected=yes
4954 continue
4956 ac_cv_prog_CC="cc"
4957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4958 break 2
4960 done
4961 done
4963 if test $ac_prog_rejected = yes; then
4964 # We found a bogon in the path, so make sure we never use it.
4965 set dummy $ac_cv_prog_CC
4966 shift
4967 if test $# != 0; then
4968 # We chose a different compiler from the bogus one.
4969 # However, it has the same basename, so the bogon will be chosen
4970 # first if we set CC to just the basename; use the full file name.
4971 shift
4972 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4977 CC=$ac_cv_prog_CC
4978 if test -n "$CC"; then
4979 echo "$as_me:$LINENO: result: $CC" >&5
4980 echo "${ECHO_T}$CC" >&6
4981 else
4982 echo "$as_me:$LINENO: result: no" >&5
4983 echo "${ECHO_T}no" >&6
4987 if test -z "$CC"; then
4988 if test -n "$ac_tool_prefix"; then
4989 for ac_prog in cl
4991 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4992 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4993 echo "$as_me:$LINENO: checking for $ac_word" >&5
4994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4995 if test "${ac_cv_prog_CC+set}" = set; then
4996 echo $ECHO_N "(cached) $ECHO_C" >&6
4997 else
4998 if test -n "$CC"; then
4999 ac_cv_prog_CC="$CC" # Let the user override the test.
5000 else
5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 for as_dir in $PATH
5004 IFS=$as_save_IFS
5005 test -z "$as_dir" && as_dir=.
5006 for ac_exec_ext in '' $ac_executable_extensions; do
5007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5008 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5010 break 2
5012 done
5013 done
5017 CC=$ac_cv_prog_CC
5018 if test -n "$CC"; then
5019 echo "$as_me:$LINENO: result: $CC" >&5
5020 echo "${ECHO_T}$CC" >&6
5021 else
5022 echo "$as_me:$LINENO: result: no" >&5
5023 echo "${ECHO_T}no" >&6
5026 test -n "$CC" && break
5027 done
5029 if test -z "$CC"; then
5030 ac_ct_CC=$CC
5031 for ac_prog in cl
5033 # Extract the first word of "$ac_prog", so it can be a program name with args.
5034 set dummy $ac_prog; ac_word=$2
5035 echo "$as_me:$LINENO: checking for $ac_word" >&5
5036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5037 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5038 echo $ECHO_N "(cached) $ECHO_C" >&6
5039 else
5040 if test -n "$ac_ct_CC"; then
5041 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5042 else
5043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5044 for as_dir in $PATH
5046 IFS=$as_save_IFS
5047 test -z "$as_dir" && as_dir=.
5048 for ac_exec_ext in '' $ac_executable_extensions; do
5049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5050 ac_cv_prog_ac_ct_CC="$ac_prog"
5051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5052 break 2
5054 done
5055 done
5059 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5060 if test -n "$ac_ct_CC"; then
5061 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5062 echo "${ECHO_T}$ac_ct_CC" >&6
5063 else
5064 echo "$as_me:$LINENO: result: no" >&5
5065 echo "${ECHO_T}no" >&6
5068 test -n "$ac_ct_CC" && break
5069 done
5071 CC=$ac_ct_CC
5077 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5078 See \`config.log' for more details." >&5
5079 echo "$as_me: error: no acceptable C compiler found in \$PATH
5080 See \`config.log' for more details." >&2;}
5081 { (exit 1); exit 1; }; }
5083 # Provide some information about the compiler.
5084 echo "$as_me:$LINENO:" \
5085 "checking for C compiler version" >&5
5086 ac_compiler=`set X $ac_compile; echo $2`
5087 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5088 (eval $ac_compiler --version </dev/null >&5) 2>&5
5089 ac_status=$?
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); }
5092 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5093 (eval $ac_compiler -v </dev/null >&5) 2>&5
5094 ac_status=$?
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); }
5097 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5098 (eval $ac_compiler -V </dev/null >&5) 2>&5
5099 ac_status=$?
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); }
5103 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5104 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
5105 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5106 echo $ECHO_N "(cached) $ECHO_C" >&6
5107 else
5108 cat >conftest.$ac_ext <<_ACEOF
5109 #line $LINENO "configure"
5110 /* confdefs.h. */
5111 _ACEOF
5112 cat confdefs.h >>conftest.$ac_ext
5113 cat >>conftest.$ac_ext <<_ACEOF
5114 /* end confdefs.h. */
5117 main ()
5119 #ifndef __GNUC__
5120 choke me
5121 #endif
5124 return 0;
5126 _ACEOF
5127 rm -f conftest.$ac_objext
5128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5129 (eval $ac_compile) 2>&5
5130 ac_status=$?
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); } &&
5133 { ac_try='test -s conftest.$ac_objext'
5134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5135 (eval $ac_try) 2>&5
5136 ac_status=$?
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); }; }; then
5139 ac_compiler_gnu=yes
5140 else
5141 echo "$as_me: failed program was:" >&5
5142 sed 's/^/| /' conftest.$ac_ext >&5
5144 ac_compiler_gnu=no
5146 rm -f conftest.$ac_objext conftest.$ac_ext
5147 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5150 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5151 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
5152 GCC=`test $ac_compiler_gnu = yes && echo yes`
5153 ac_test_CFLAGS=${CFLAGS+set}
5154 ac_save_CFLAGS=$CFLAGS
5155 CFLAGS="-g"
5156 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5157 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
5158 if test "${ac_cv_prog_cc_g+set}" = set; then
5159 echo $ECHO_N "(cached) $ECHO_C" >&6
5160 else
5161 cat >conftest.$ac_ext <<_ACEOF
5162 #line $LINENO "configure"
5163 /* confdefs.h. */
5164 _ACEOF
5165 cat confdefs.h >>conftest.$ac_ext
5166 cat >>conftest.$ac_ext <<_ACEOF
5167 /* end confdefs.h. */
5170 main ()
5174 return 0;
5176 _ACEOF
5177 rm -f conftest.$ac_objext
5178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5179 (eval $ac_compile) 2>&5
5180 ac_status=$?
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); } &&
5183 { ac_try='test -s conftest.$ac_objext'
5184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5185 (eval $ac_try) 2>&5
5186 ac_status=$?
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); }; }; then
5189 ac_cv_prog_cc_g=yes
5190 else
5191 echo "$as_me: failed program was:" >&5
5192 sed 's/^/| /' conftest.$ac_ext >&5
5194 ac_cv_prog_cc_g=no
5196 rm -f conftest.$ac_objext conftest.$ac_ext
5198 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5199 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
5200 if test "$ac_test_CFLAGS" = set; then
5201 CFLAGS=$ac_save_CFLAGS
5202 elif test $ac_cv_prog_cc_g = yes; then
5203 if test "$GCC" = yes; then
5204 CFLAGS="-g -O2"
5205 else
5206 CFLAGS="-g"
5208 else
5209 if test "$GCC" = yes; then
5210 CFLAGS="-O2"
5211 else
5212 CFLAGS=
5215 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5216 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5217 if test "${ac_cv_prog_cc_stdc+set}" = set; then
5218 echo $ECHO_N "(cached) $ECHO_C" >&6
5219 else
5220 ac_cv_prog_cc_stdc=no
5221 ac_save_CC=$CC
5222 cat >conftest.$ac_ext <<_ACEOF
5223 #line $LINENO "configure"
5224 /* confdefs.h. */
5225 _ACEOF
5226 cat confdefs.h >>conftest.$ac_ext
5227 cat >>conftest.$ac_ext <<_ACEOF
5228 /* end confdefs.h. */
5229 #include <stdarg.h>
5230 #include <stdio.h>
5231 #include <sys/types.h>
5232 #include <sys/stat.h>
5233 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5234 struct buf { int x; };
5235 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5236 static char *e (p, i)
5237 char **p;
5238 int i;
5240 return p[i];
5242 static char *f (char * (*g) (char **, int), char **p, ...)
5244 char *s;
5245 va_list v;
5246 va_start (v,p);
5247 s = g (p, va_arg (v,int));
5248 va_end (v);
5249 return s;
5251 int test (int i, double x);
5252 struct s1 {int (*f) (int a);};
5253 struct s2 {int (*f) (double a);};
5254 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5255 int argc;
5256 char **argv;
5258 main ()
5260 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5262 return 0;
5264 _ACEOF
5265 # Don't try gcc -ansi; that turns off useful extensions and
5266 # breaks some systems' header files.
5267 # AIX -qlanglvl=ansi
5268 # Ultrix and OSF/1 -std1
5269 # HP-UX 10.20 and later -Ae
5270 # HP-UX older versions -Aa -D_HPUX_SOURCE
5271 # SVR4 -Xc -D__EXTENSIONS__
5272 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5274 CC="$ac_save_CC $ac_arg"
5275 rm -f conftest.$ac_objext
5276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5277 (eval $ac_compile) 2>&5
5278 ac_status=$?
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); } &&
5281 { ac_try='test -s conftest.$ac_objext'
5282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5283 (eval $ac_try) 2>&5
5284 ac_status=$?
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); }; }; then
5287 ac_cv_prog_cc_stdc=$ac_arg
5288 break
5289 else
5290 echo "$as_me: failed program was:" >&5
5291 sed 's/^/| /' conftest.$ac_ext >&5
5294 rm -f conftest.$ac_objext
5295 done
5296 rm -f conftest.$ac_ext conftest.$ac_objext
5297 CC=$ac_save_CC
5301 case "x$ac_cv_prog_cc_stdc" in
5302 x|xno)
5303 echo "$as_me:$LINENO: result: none needed" >&5
5304 echo "${ECHO_T}none needed" >&6 ;;
5306 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5307 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5308 CC="$CC $ac_cv_prog_cc_stdc" ;;
5309 esac
5311 # Some people use a C++ compiler to compile C. Since we use `exit',
5312 # in C++ we need to declare it. In case someone uses the same compiler
5313 # for both compiling C and C++ we need to have the C++ compiler decide
5314 # the declaration of exit, since it's the most demanding environment.
5315 cat >conftest.$ac_ext <<_ACEOF
5316 #ifndef __cplusplus
5317 choke me
5318 #endif
5319 _ACEOF
5320 rm -f conftest.$ac_objext
5321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5322 (eval $ac_compile) 2>&5
5323 ac_status=$?
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); } &&
5326 { ac_try='test -s conftest.$ac_objext'
5327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5328 (eval $ac_try) 2>&5
5329 ac_status=$?
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); }; }; then
5332 for ac_declaration in \
5334 '#include <stdlib.h>' \
5335 'extern "C" void std::exit (int) throw (); using std::exit;' \
5336 'extern "C" void std::exit (int); using std::exit;' \
5337 'extern "C" void exit (int) throw ();' \
5338 'extern "C" void exit (int);' \
5339 'void exit (int);'
5341 cat >conftest.$ac_ext <<_ACEOF
5342 #line $LINENO "configure"
5343 /* confdefs.h. */
5344 _ACEOF
5345 cat confdefs.h >>conftest.$ac_ext
5346 cat >>conftest.$ac_ext <<_ACEOF
5347 /* end confdefs.h. */
5348 #include <stdlib.h>
5349 $ac_declaration
5351 main ()
5353 exit (42);
5355 return 0;
5357 _ACEOF
5358 rm -f conftest.$ac_objext
5359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5360 (eval $ac_compile) 2>&5
5361 ac_status=$?
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); } &&
5364 { ac_try='test -s conftest.$ac_objext'
5365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5366 (eval $ac_try) 2>&5
5367 ac_status=$?
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); }; }; then
5371 else
5372 echo "$as_me: failed program was:" >&5
5373 sed 's/^/| /' conftest.$ac_ext >&5
5375 continue
5377 rm -f conftest.$ac_objext conftest.$ac_ext
5378 cat >conftest.$ac_ext <<_ACEOF
5379 #line $LINENO "configure"
5380 /* confdefs.h. */
5381 _ACEOF
5382 cat confdefs.h >>conftest.$ac_ext
5383 cat >>conftest.$ac_ext <<_ACEOF
5384 /* end confdefs.h. */
5385 $ac_declaration
5387 main ()
5389 exit (42);
5391 return 0;
5393 _ACEOF
5394 rm -f conftest.$ac_objext
5395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5396 (eval $ac_compile) 2>&5
5397 ac_status=$?
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); } &&
5400 { ac_try='test -s conftest.$ac_objext'
5401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5402 (eval $ac_try) 2>&5
5403 ac_status=$?
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); }; }; then
5406 break
5407 else
5408 echo "$as_me: failed program was:" >&5
5409 sed 's/^/| /' conftest.$ac_ext >&5
5412 rm -f conftest.$ac_objext conftest.$ac_ext
5413 done
5414 rm -f conftest*
5415 if test -n "$ac_declaration"; then
5416 echo '#ifdef __cplusplus' >>confdefs.h
5417 echo $ac_declaration >>confdefs.h
5418 echo '#endif' >>confdefs.h
5421 else
5422 echo "$as_me: failed program was:" >&5
5423 sed 's/^/| /' conftest.$ac_ext >&5
5426 rm -f conftest.$ac_objext conftest.$ac_ext
5427 ac_ext=c
5428 ac_cpp='$CPP $CPPFLAGS'
5429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5433 depcc="$CC" am_compiler_list=
5435 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5436 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5437 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5438 echo $ECHO_N "(cached) $ECHO_C" >&6
5439 else
5440 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5441 # We make a subdir and do the tests there. Otherwise we can end up
5442 # making bogus files that we don't know about and never remove. For
5443 # instance it was reported that on HP-UX the gcc test will end up
5444 # making a dummy file named `D' -- because `-MD' means `put the output
5445 # in D'.
5446 mkdir conftest.dir
5447 # Copy depcomp to subdir because otherwise we won't find it if we're
5448 # using a relative directory.
5449 cp "$am_depcomp" conftest.dir
5450 cd conftest.dir
5452 am_cv_CC_dependencies_compiler_type=none
5453 if test "$am_compiler_list" = ""; then
5454 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5456 for depmode in $am_compiler_list; do
5457 # We need to recreate these files for each test, as the compiler may
5458 # overwrite some of them when testing with obscure command lines.
5459 # This happens at least with the AIX C compiler.
5460 echo '#include "conftest.h"' > conftest.c
5461 echo 'int i;' > conftest.h
5462 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
5464 case $depmode in
5465 nosideeffect)
5466 # after this tag, mechanisms are not by side-effect, so they'll
5467 # only be used when explicitly requested
5468 if test "x$enable_dependency_tracking" = xyes; then
5469 continue
5470 else
5471 break
5474 none) break ;;
5475 esac
5476 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5477 # mode. It turns out that the SunPro C++ compiler does not properly
5478 # handle `-M -o', and we need to detect this.
5479 if depmode=$depmode \
5480 source=conftest.c object=conftest.o \
5481 depfile=conftest.Po tmpdepfile=conftest.TPo \
5482 $SHELL ./depcomp $depcc -c -o conftest.o conftest.c \
5483 >/dev/null 2>conftest.err &&
5484 grep conftest.h conftest.Po > /dev/null 2>&1 &&
5485 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5486 # icc doesn't choke on unknown options, it will just issue warnings
5487 # (even with -Werror). So we grep stderr for any message
5488 # that says an option was ignored.
5489 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
5490 am_cv_CC_dependencies_compiler_type=$depmode
5491 break
5494 done
5496 cd ..
5497 rm -rf conftest.dir
5498 else
5499 am_cv_CC_dependencies_compiler_type=none
5503 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5504 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5505 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5510 test "x$enable_dependency_tracking" != xno \
5511 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5512 am__fastdepCC_TRUE=
5513 am__fastdepCC_FALSE='#'
5514 else
5515 am__fastdepCC_TRUE='#'
5516 am__fastdepCC_FALSE=
5520 ac_ext=cc
5521 ac_cpp='$CXXCPP $CPPFLAGS'
5522 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5523 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5524 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5525 if test -n "$ac_tool_prefix"; then
5526 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5528 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5529 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5530 echo "$as_me:$LINENO: checking for $ac_word" >&5
5531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5532 if test "${ac_cv_prog_CXX+set}" = set; then
5533 echo $ECHO_N "(cached) $ECHO_C" >&6
5534 else
5535 if test -n "$CXX"; then
5536 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5537 else
5538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539 for as_dir in $PATH
5541 IFS=$as_save_IFS
5542 test -z "$as_dir" && as_dir=.
5543 for ac_exec_ext in '' $ac_executable_extensions; do
5544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5545 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5547 break 2
5549 done
5550 done
5554 CXX=$ac_cv_prog_CXX
5555 if test -n "$CXX"; then
5556 echo "$as_me:$LINENO: result: $CXX" >&5
5557 echo "${ECHO_T}$CXX" >&6
5558 else
5559 echo "$as_me:$LINENO: result: no" >&5
5560 echo "${ECHO_T}no" >&6
5563 test -n "$CXX" && break
5564 done
5566 if test -z "$CXX"; then
5567 ac_ct_CXX=$CXX
5568 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5570 # Extract the first word of "$ac_prog", so it can be a program name with args.
5571 set dummy $ac_prog; ac_word=$2
5572 echo "$as_me:$LINENO: checking for $ac_word" >&5
5573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5574 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5575 echo $ECHO_N "(cached) $ECHO_C" >&6
5576 else
5577 if test -n "$ac_ct_CXX"; then
5578 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5579 else
5580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581 for as_dir in $PATH
5583 IFS=$as_save_IFS
5584 test -z "$as_dir" && as_dir=.
5585 for ac_exec_ext in '' $ac_executable_extensions; do
5586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5587 ac_cv_prog_ac_ct_CXX="$ac_prog"
5588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5589 break 2
5591 done
5592 done
5596 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5597 if test -n "$ac_ct_CXX"; then
5598 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5599 echo "${ECHO_T}$ac_ct_CXX" >&6
5600 else
5601 echo "$as_me:$LINENO: result: no" >&5
5602 echo "${ECHO_T}no" >&6
5605 test -n "$ac_ct_CXX" && break
5606 done
5607 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5609 CXX=$ac_ct_CXX
5613 # Provide some information about the compiler.
5614 echo "$as_me:$LINENO:" \
5615 "checking for C++ compiler version" >&5
5616 ac_compiler=`set X $ac_compile; echo $2`
5617 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5618 (eval $ac_compiler --version </dev/null >&5) 2>&5
5619 ac_status=$?
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); }
5622 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5623 (eval $ac_compiler -v </dev/null >&5) 2>&5
5624 ac_status=$?
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); }
5627 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5628 (eval $ac_compiler -V </dev/null >&5) 2>&5
5629 ac_status=$?
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); }
5633 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5634 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5635 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5636 echo $ECHO_N "(cached) $ECHO_C" >&6
5637 else
5638 cat >conftest.$ac_ext <<_ACEOF
5639 #line $LINENO "configure"
5640 /* confdefs.h. */
5641 _ACEOF
5642 cat confdefs.h >>conftest.$ac_ext
5643 cat >>conftest.$ac_ext <<_ACEOF
5644 /* end confdefs.h. */
5647 main ()
5649 #ifndef __GNUC__
5650 choke me
5651 #endif
5654 return 0;
5656 _ACEOF
5657 rm -f conftest.$ac_objext
5658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5659 (eval $ac_compile) 2>&5
5660 ac_status=$?
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); } &&
5663 { ac_try='test -s conftest.$ac_objext'
5664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5665 (eval $ac_try) 2>&5
5666 ac_status=$?
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); }; }; then
5669 ac_compiler_gnu=yes
5670 else
5671 echo "$as_me: failed program was:" >&5
5672 sed 's/^/| /' conftest.$ac_ext >&5
5674 ac_compiler_gnu=no
5676 rm -f conftest.$ac_objext conftest.$ac_ext
5677 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5680 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5681 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5682 GXX=`test $ac_compiler_gnu = yes && echo yes`
5683 ac_test_CXXFLAGS=${CXXFLAGS+set}
5684 ac_save_CXXFLAGS=$CXXFLAGS
5685 CXXFLAGS="-g"
5686 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5687 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5688 if test "${ac_cv_prog_cxx_g+set}" = set; then
5689 echo $ECHO_N "(cached) $ECHO_C" >&6
5690 else
5691 cat >conftest.$ac_ext <<_ACEOF
5692 #line $LINENO "configure"
5693 /* confdefs.h. */
5694 _ACEOF
5695 cat confdefs.h >>conftest.$ac_ext
5696 cat >>conftest.$ac_ext <<_ACEOF
5697 /* end confdefs.h. */
5700 main ()
5704 return 0;
5706 _ACEOF
5707 rm -f conftest.$ac_objext
5708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5709 (eval $ac_compile) 2>&5
5710 ac_status=$?
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); } &&
5713 { ac_try='test -s conftest.$ac_objext'
5714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5715 (eval $ac_try) 2>&5
5716 ac_status=$?
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); }; }; then
5719 ac_cv_prog_cxx_g=yes
5720 else
5721 echo "$as_me: failed program was:" >&5
5722 sed 's/^/| /' conftest.$ac_ext >&5
5724 ac_cv_prog_cxx_g=no
5726 rm -f conftest.$ac_objext conftest.$ac_ext
5728 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5729 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5730 if test "$ac_test_CXXFLAGS" = set; then
5731 CXXFLAGS=$ac_save_CXXFLAGS
5732 elif test $ac_cv_prog_cxx_g = yes; then
5733 if test "$GXX" = yes; then
5734 CXXFLAGS="-g -O2"
5735 else
5736 CXXFLAGS="-g"
5738 else
5739 if test "$GXX" = yes; then
5740 CXXFLAGS="-O2"
5741 else
5742 CXXFLAGS=
5745 for ac_declaration in \
5747 '#include <stdlib.h>' \
5748 'extern "C" void std::exit (int) throw (); using std::exit;' \
5749 'extern "C" void std::exit (int); using std::exit;' \
5750 'extern "C" void exit (int) throw ();' \
5751 'extern "C" void exit (int);' \
5752 'void exit (int);'
5754 cat >conftest.$ac_ext <<_ACEOF
5755 #line $LINENO "configure"
5756 /* confdefs.h. */
5757 _ACEOF
5758 cat confdefs.h >>conftest.$ac_ext
5759 cat >>conftest.$ac_ext <<_ACEOF
5760 /* end confdefs.h. */
5761 #include <stdlib.h>
5762 $ac_declaration
5764 main ()
5766 exit (42);
5768 return 0;
5770 _ACEOF
5771 rm -f conftest.$ac_objext
5772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5773 (eval $ac_compile) 2>&5
5774 ac_status=$?
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); } &&
5777 { ac_try='test -s conftest.$ac_objext'
5778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5779 (eval $ac_try) 2>&5
5780 ac_status=$?
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); }; }; then
5784 else
5785 echo "$as_me: failed program was:" >&5
5786 sed 's/^/| /' conftest.$ac_ext >&5
5788 continue
5790 rm -f conftest.$ac_objext conftest.$ac_ext
5791 cat >conftest.$ac_ext <<_ACEOF
5792 #line $LINENO "configure"
5793 /* confdefs.h. */
5794 _ACEOF
5795 cat confdefs.h >>conftest.$ac_ext
5796 cat >>conftest.$ac_ext <<_ACEOF
5797 /* end confdefs.h. */
5798 $ac_declaration
5800 main ()
5802 exit (42);
5804 return 0;
5806 _ACEOF
5807 rm -f conftest.$ac_objext
5808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5809 (eval $ac_compile) 2>&5
5810 ac_status=$?
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); } &&
5813 { ac_try='test -s conftest.$ac_objext'
5814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5815 (eval $ac_try) 2>&5
5816 ac_status=$?
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); }; }; then
5819 break
5820 else
5821 echo "$as_me: failed program was:" >&5
5822 sed 's/^/| /' conftest.$ac_ext >&5
5825 rm -f conftest.$ac_objext conftest.$ac_ext
5826 done
5827 rm -f conftest*
5828 if test -n "$ac_declaration"; then
5829 echo '#ifdef __cplusplus' >>confdefs.h
5830 echo $ac_declaration >>confdefs.h
5831 echo '#endif' >>confdefs.h
5834 ac_ext=c
5835 ac_cpp='$CPP $CPPFLAGS'
5836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5840 depcc="$CXX" am_compiler_list=
5842 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5843 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5844 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
5846 else
5847 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5848 # We make a subdir and do the tests there. Otherwise we can end up
5849 # making bogus files that we don't know about and never remove. For
5850 # instance it was reported that on HP-UX the gcc test will end up
5851 # making a dummy file named `D' -- because `-MD' means `put the output
5852 # in D'.
5853 mkdir conftest.dir
5854 # Copy depcomp to subdir because otherwise we won't find it if we're
5855 # using a relative directory.
5856 cp "$am_depcomp" conftest.dir
5857 cd conftest.dir
5859 am_cv_CXX_dependencies_compiler_type=none
5860 if test "$am_compiler_list" = ""; then
5861 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5863 for depmode in $am_compiler_list; do
5864 # We need to recreate these files for each test, as the compiler may
5865 # overwrite some of them when testing with obscure command lines.
5866 # This happens at least with the AIX C compiler.
5867 echo '#include "conftest.h"' > conftest.c
5868 echo 'int i;' > conftest.h
5869 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
5871 case $depmode in
5872 nosideeffect)
5873 # after this tag, mechanisms are not by side-effect, so they'll
5874 # only be used when explicitly requested
5875 if test "x$enable_dependency_tracking" = xyes; then
5876 continue
5877 else
5878 break
5881 none) break ;;
5882 esac
5883 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5884 # mode. It turns out that the SunPro C++ compiler does not properly
5885 # handle `-M -o', and we need to detect this.
5886 if depmode=$depmode \
5887 source=conftest.c object=conftest.o \
5888 depfile=conftest.Po tmpdepfile=conftest.TPo \
5889 $SHELL ./depcomp $depcc -c -o conftest.o conftest.c \
5890 >/dev/null 2>conftest.err &&
5891 grep conftest.h conftest.Po > /dev/null 2>&1 &&
5892 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5893 # icc doesn't choke on unknown options, it will just issue warnings
5894 # (even with -Werror). So we grep stderr for any message
5895 # that says an option was ignored.
5896 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
5897 am_cv_CXX_dependencies_compiler_type=$depmode
5898 break
5901 done
5903 cd ..
5904 rm -rf conftest.dir
5905 else
5906 am_cv_CXX_dependencies_compiler_type=none
5910 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5911 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5912 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5917 test "x$enable_dependency_tracking" != xno \
5918 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5919 am__fastdepCXX_TRUE=
5920 am__fastdepCXX_FALSE='#'
5921 else
5922 am__fastdepCXX_TRUE='#'
5923 am__fastdepCXX_FALSE=
5927 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5928 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5929 LN_S=$as_ln_s
5930 if test "$LN_S" = "ln -s"; then
5931 echo "$as_me:$LINENO: result: yes" >&5
5932 echo "${ECHO_T}yes" >&6
5933 else
5934 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5935 echo "${ECHO_T}no, using $LN_S" >&6
5938 if test -n "$ac_tool_prefix"; then
5939 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5940 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5941 echo "$as_me:$LINENO: checking for $ac_word" >&5
5942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5943 if test "${ac_cv_prog_RANLIB+set}" = set; then
5944 echo $ECHO_N "(cached) $ECHO_C" >&6
5945 else
5946 if test -n "$RANLIB"; then
5947 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5948 else
5949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5950 for as_dir in $PATH
5952 IFS=$as_save_IFS
5953 test -z "$as_dir" && as_dir=.
5954 for ac_exec_ext in '' $ac_executable_extensions; do
5955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5956 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5958 break 2
5960 done
5961 done
5965 RANLIB=$ac_cv_prog_RANLIB
5966 if test -n "$RANLIB"; then
5967 echo "$as_me:$LINENO: result: $RANLIB" >&5
5968 echo "${ECHO_T}$RANLIB" >&6
5969 else
5970 echo "$as_me:$LINENO: result: no" >&5
5971 echo "${ECHO_T}no" >&6
5975 if test -z "$ac_cv_prog_RANLIB"; then
5976 ac_ct_RANLIB=$RANLIB
5977 # Extract the first word of "ranlib", so it can be a program name with args.
5978 set dummy ranlib; ac_word=$2
5979 echo "$as_me:$LINENO: checking for $ac_word" >&5
5980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5981 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5983 else
5984 if test -n "$ac_ct_RANLIB"; then
5985 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5986 else
5987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5988 for as_dir in $PATH
5990 IFS=$as_save_IFS
5991 test -z "$as_dir" && as_dir=.
5992 for ac_exec_ext in '' $ac_executable_extensions; do
5993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5994 ac_cv_prog_ac_ct_RANLIB="ranlib"
5995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5996 break 2
5998 done
5999 done
6001 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6004 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6005 if test -n "$ac_ct_RANLIB"; then
6006 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6007 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6008 else
6009 echo "$as_me:$LINENO: result: no" >&5
6010 echo "${ECHO_T}no" >&6
6013 RANLIB=$ac_ct_RANLIB
6014 else
6015 RANLIB="$ac_cv_prog_RANLIB"
6019 # Extract the first word of "bison", so it can be a program name with args.
6020 set dummy bison; ac_word=$2
6021 echo "$as_me:$LINENO: checking for $ac_word" >&5
6022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6023 if test "${ac_cv_path_BISON+set}" = set; then
6024 echo $ECHO_N "(cached) $ECHO_C" >&6
6025 else
6026 case $BISON in
6027 [\\/]* | ?:[\\/]*)
6028 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
6031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6032 for as_dir in $PATH
6034 IFS=$as_save_IFS
6035 test -z "$as_dir" && as_dir=.
6036 for ac_exec_ext in '' $ac_executable_extensions; do
6037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6038 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
6039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6040 break 2
6042 done
6043 done
6045 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="bison"
6047 esac
6049 BISON=$ac_cv_path_BISON
6051 if test -n "$BISON"; then
6052 echo "$as_me:$LINENO: result: $BISON" >&5
6053 echo "${ECHO_T}$BISON" >&6
6054 else
6055 echo "$as_me:$LINENO: result: no" >&5
6056 echo "${ECHO_T}no" >&6
6059 # Extract the first word of "help2man", so it can be a program name with args.
6060 set dummy help2man; ac_word=$2
6061 echo "$as_me:$LINENO: checking for $ac_word" >&5
6062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6063 if test "${ac_cv_path_HELP2MAN+set}" = set; then
6064 echo $ECHO_N "(cached) $ECHO_C" >&6
6065 else
6066 case $HELP2MAN in
6067 [\\/]* | ?:[\\/]*)
6068 ac_cv_path_HELP2MAN="$HELP2MAN" # Let the user override the test with a path.
6071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6072 for as_dir in $PATH
6074 IFS=$as_save_IFS
6075 test -z "$as_dir" && as_dir=.
6076 for ac_exec_ext in '' $ac_executable_extensions; do
6077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6078 ac_cv_path_HELP2MAN="$as_dir/$ac_word$ac_exec_ext"
6079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6080 break 2
6082 done
6083 done
6085 test -z "$ac_cv_path_HELP2MAN" && ac_cv_path_HELP2MAN="help2man"
6087 esac
6089 HELP2MAN=$ac_cv_path_HELP2MAN
6091 if test -n "$HELP2MAN"; then
6092 echo "$as_me:$LINENO: result: $HELP2MAN" >&5
6093 echo "${ECHO_T}$HELP2MAN" >&6
6094 else
6095 echo "$as_me:$LINENO: result: no" >&5
6096 echo "${ECHO_T}no" >&6
6101 # Check for a GNU m4 that supports --prefix-builtins
6102 for ac_prog in gm4 gnum4 m4
6104 # Extract the first word of "$ac_prog", so it can be a program name with args.
6105 set dummy $ac_prog; ac_word=$2
6106 echo "$as_me:$LINENO: checking for $ac_word" >&5
6107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6108 if test "${ac_cv_path_M4+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6110 else
6111 case $M4 in
6112 [\\/]* | ?:[\\/]*)
6113 ac_cv_path_M4="$M4" # Let the user override the test with a path.
6116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117 for as_dir in $PATH
6119 IFS=$as_save_IFS
6120 test -z "$as_dir" && as_dir=.
6121 for ac_exec_ext in '' $ac_executable_extensions; do
6122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6123 ac_cv_path_M4="$as_dir/$ac_word$ac_exec_ext"
6124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6125 break 2
6127 done
6128 done
6131 esac
6133 M4=$ac_cv_path_M4
6135 if test -n "$M4"; then
6136 echo "$as_me:$LINENO: result: $M4" >&5
6137 echo "${ECHO_T}$M4" >&6
6138 else
6139 echo "$as_me:$LINENO: result: no" >&5
6140 echo "${ECHO_T}no" >&6
6143 test -n "$M4" && break
6144 done
6145 test -n "$M4" || M4="m4"
6147 if test x"$M4" != x; then
6148 echo "$as_me:$LINENO: checking for GNU m4" >&5
6149 echo $ECHO_N "checking for GNU m4... $ECHO_C" >&6
6150 case `$M4 --help < /dev/null 2>&1` in
6151 *prefix-builtins*) echo "$as_me:$LINENO: result: yes" >&5
6152 echo "${ECHO_T}yes" >&6 ;;
6153 *) echo "$as_me:$LINENO: result: no" >&5
6154 echo "${ECHO_T}no" >&6 ;
6155 { { echo "$as_me:$LINENO: error: GNU M4 1.4 is required" >&5
6156 echo "$as_me: error: GNU M4 1.4 is required" >&2;}
6157 { (exit 1); exit 1; }; } ;;
6158 esac
6159 else
6160 { { echo "$as_me:$LINENO: error: GNU M4 1.4 is required" >&5
6161 echo "$as_me: error: GNU M4 1.4 is required" >&2;}
6162 { (exit 1); exit 1; }; } ;
6165 cat >>confdefs.h <<_ACEOF
6166 #define M4 "$M4"
6167 _ACEOF
6170 # Extract the first word of "indent", so it can be a program name with args.
6171 set dummy indent; ac_word=$2
6172 echo "$as_me:$LINENO: checking for $ac_word" >&5
6173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6174 if test "${ac_cv_path_INDENT+set}" = set; then
6175 echo $ECHO_N "(cached) $ECHO_C" >&6
6176 else
6177 case $INDENT in
6178 [\\/]* | ?:[\\/]*)
6179 ac_cv_path_INDENT="$INDENT" # Let the user override the test with a path.
6182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6183 for as_dir in $PATH
6185 IFS=$as_save_IFS
6186 test -z "$as_dir" && as_dir=.
6187 for ac_exec_ext in '' $ac_executable_extensions; do
6188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6189 ac_cv_path_INDENT="$as_dir/$ac_word$ac_exec_ext"
6190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6191 break 2
6193 done
6194 done
6196 test -z "$ac_cv_path_INDENT" && ac_cv_path_INDENT="indent"
6198 esac
6200 INDENT=$ac_cv_path_INDENT
6202 if test -n "$INDENT"; then
6203 echo "$as_me:$LINENO: result: $INDENT" >&5
6204 echo "${ECHO_T}$INDENT" >&6
6205 else
6206 echo "$as_me:$LINENO: result: no" >&5
6207 echo "${ECHO_T}no" >&6
6210 if test "$INDENT" != indent ; then
6211 echo "$as_me:$LINENO: checking if $INDENT is GNU indent" >&5
6212 echo $ECHO_N "checking if $INDENT is GNU indent... $ECHO_C" >&6
6213 if $INDENT --version 2>/dev/null | head -n 1|grep "GNU indent" > /dev/null ; then
6214 echo "$as_me:$LINENO: result: yes" >&5
6215 echo "${ECHO_T}yes" >&6
6216 else
6217 echo "$as_me:$LINENO: result: no" >&5
6218 echo "${ECHO_T}no" >&6
6219 { echo "$as_me:$LINENO: WARNING: $INDENT does not appear to be GNU indent." >&5
6220 echo "$as_me: WARNING: $INDENT does not appear to be GNU indent." >&2;}
6222 else
6223 { echo "$as_me:$LINENO: WARNING: no indent program found: make indent target will not function" >&5
6224 echo "$as_me: WARNING: no indent program found: make indent target will not function" >&2;}
6228 echo "$as_me:$LINENO: checking for log in -lm" >&5
6229 echo $ECHO_N "checking for log in -lm... $ECHO_C" >&6
6230 if test "${ac_cv_lib_m_log+set}" = set; then
6231 echo $ECHO_N "(cached) $ECHO_C" >&6
6232 else
6233 ac_check_lib_save_LIBS=$LIBS
6234 LIBS="-lm $LIBS"
6235 cat >conftest.$ac_ext <<_ACEOF
6236 #line $LINENO "configure"
6237 /* confdefs.h. */
6238 _ACEOF
6239 cat confdefs.h >>conftest.$ac_ext
6240 cat >>conftest.$ac_ext <<_ACEOF
6241 /* end confdefs.h. */
6243 /* Override any gcc2 internal prototype to avoid an error. */
6244 #ifdef __cplusplus
6245 extern "C"
6246 #endif
6247 /* We use char because int might match the return type of a gcc2
6248 builtin and then its argument prototype would still apply. */
6249 char log ();
6251 main ()
6253 log ();
6255 return 0;
6257 _ACEOF
6258 rm -f conftest.$ac_objext conftest$ac_exeext
6259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6260 (eval $ac_link) 2>&5
6261 ac_status=$?
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); } &&
6264 { ac_try='test -s conftest$ac_exeext'
6265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6266 (eval $ac_try) 2>&5
6267 ac_status=$?
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); }; }; then
6270 ac_cv_lib_m_log=yes
6271 else
6272 echo "$as_me: failed program was:" >&5
6273 sed 's/^/| /' conftest.$ac_ext >&5
6275 ac_cv_lib_m_log=no
6277 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6278 LIBS=$ac_check_lib_save_LIBS
6280 echo "$as_me:$LINENO: result: $ac_cv_lib_m_log" >&5
6281 echo "${ECHO_T}$ac_cv_lib_m_log" >&6
6282 if test $ac_cv_lib_m_log = yes; then
6283 cat >>confdefs.h <<_ACEOF
6284 #define HAVE_LIBM 1
6285 _ACEOF
6287 LIBS="-lm $LIBS"
6293 ac_ext=c
6294 ac_cpp='$CPP $CPPFLAGS'
6295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6298 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6299 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6300 # On Suns, sometimes $CPP names a directory.
6301 if test -n "$CPP" && test -d "$CPP"; then
6302 CPP=
6304 if test -z "$CPP"; then
6305 if test "${ac_cv_prog_CPP+set}" = set; then
6306 echo $ECHO_N "(cached) $ECHO_C" >&6
6307 else
6308 # Double quotes because CPP needs to be expanded
6309 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6311 ac_preproc_ok=false
6312 for ac_c_preproc_warn_flag in '' yes
6314 # Use a header file that comes with gcc, so configuring glibc
6315 # with a fresh cross-compiler works.
6316 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6317 # <limits.h> exists even on freestanding compilers.
6318 # On the NeXT, cc -E runs the code through the compiler's parser,
6319 # not just through cpp. "Syntax error" is here to catch this case.
6320 cat >conftest.$ac_ext <<_ACEOF
6321 #line $LINENO "configure"
6322 /* confdefs.h. */
6323 _ACEOF
6324 cat confdefs.h >>conftest.$ac_ext
6325 cat >>conftest.$ac_ext <<_ACEOF
6326 /* end confdefs.h. */
6327 #ifdef __STDC__
6328 # include <limits.h>
6329 #else
6330 # include <assert.h>
6331 #endif
6332 Syntax error
6333 _ACEOF
6334 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6335 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6336 ac_status=$?
6337 grep -v '^ *+' conftest.er1 >conftest.err
6338 rm -f conftest.er1
6339 cat conftest.err >&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } >/dev/null; then
6342 if test -s conftest.err; then
6343 ac_cpp_err=$ac_c_preproc_warn_flag
6344 else
6345 ac_cpp_err=
6347 else
6348 ac_cpp_err=yes
6350 if test -z "$ac_cpp_err"; then
6352 else
6353 echo "$as_me: failed program was:" >&5
6354 sed 's/^/| /' conftest.$ac_ext >&5
6356 # Broken: fails on valid input.
6357 continue
6359 rm -f conftest.err conftest.$ac_ext
6361 # OK, works on sane cases. Now check whether non-existent headers
6362 # can be detected and how.
6363 cat >conftest.$ac_ext <<_ACEOF
6364 #line $LINENO "configure"
6365 /* confdefs.h. */
6366 _ACEOF
6367 cat confdefs.h >>conftest.$ac_ext
6368 cat >>conftest.$ac_ext <<_ACEOF
6369 /* end confdefs.h. */
6370 #include <ac_nonexistent.h>
6371 _ACEOF
6372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6374 ac_status=$?
6375 grep -v '^ *+' conftest.er1 >conftest.err
6376 rm -f conftest.er1
6377 cat conftest.err >&5
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); } >/dev/null; then
6380 if test -s conftest.err; then
6381 ac_cpp_err=$ac_c_preproc_warn_flag
6382 else
6383 ac_cpp_err=
6385 else
6386 ac_cpp_err=yes
6388 if test -z "$ac_cpp_err"; then
6389 # Broken: success on invalid input.
6390 continue
6391 else
6392 echo "$as_me: failed program was:" >&5
6393 sed 's/^/| /' conftest.$ac_ext >&5
6395 # Passes both tests.
6396 ac_preproc_ok=:
6397 break
6399 rm -f conftest.err conftest.$ac_ext
6401 done
6402 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6403 rm -f conftest.err conftest.$ac_ext
6404 if $ac_preproc_ok; then
6405 break
6408 done
6409 ac_cv_prog_CPP=$CPP
6412 CPP=$ac_cv_prog_CPP
6413 else
6414 ac_cv_prog_CPP=$CPP
6416 echo "$as_me:$LINENO: result: $CPP" >&5
6417 echo "${ECHO_T}$CPP" >&6
6418 ac_preproc_ok=false
6419 for ac_c_preproc_warn_flag in '' yes
6421 # Use a header file that comes with gcc, so configuring glibc
6422 # with a fresh cross-compiler works.
6423 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6424 # <limits.h> exists even on freestanding compilers.
6425 # On the NeXT, cc -E runs the code through the compiler's parser,
6426 # not just through cpp. "Syntax error" is here to catch this case.
6427 cat >conftest.$ac_ext <<_ACEOF
6428 #line $LINENO "configure"
6429 /* confdefs.h. */
6430 _ACEOF
6431 cat confdefs.h >>conftest.$ac_ext
6432 cat >>conftest.$ac_ext <<_ACEOF
6433 /* end confdefs.h. */
6434 #ifdef __STDC__
6435 # include <limits.h>
6436 #else
6437 # include <assert.h>
6438 #endif
6439 Syntax error
6440 _ACEOF
6441 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6442 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6443 ac_status=$?
6444 grep -v '^ *+' conftest.er1 >conftest.err
6445 rm -f conftest.er1
6446 cat conftest.err >&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); } >/dev/null; then
6449 if test -s conftest.err; then
6450 ac_cpp_err=$ac_c_preproc_warn_flag
6451 else
6452 ac_cpp_err=
6454 else
6455 ac_cpp_err=yes
6457 if test -z "$ac_cpp_err"; then
6459 else
6460 echo "$as_me: failed program was:" >&5
6461 sed 's/^/| /' conftest.$ac_ext >&5
6463 # Broken: fails on valid input.
6464 continue
6466 rm -f conftest.err conftest.$ac_ext
6468 # OK, works on sane cases. Now check whether non-existent headers
6469 # can be detected and how.
6470 cat >conftest.$ac_ext <<_ACEOF
6471 #line $LINENO "configure"
6472 /* confdefs.h. */
6473 _ACEOF
6474 cat confdefs.h >>conftest.$ac_ext
6475 cat >>conftest.$ac_ext <<_ACEOF
6476 /* end confdefs.h. */
6477 #include <ac_nonexistent.h>
6478 _ACEOF
6479 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6480 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6481 ac_status=$?
6482 grep -v '^ *+' conftest.er1 >conftest.err
6483 rm -f conftest.er1
6484 cat conftest.err >&5
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); } >/dev/null; then
6487 if test -s conftest.err; then
6488 ac_cpp_err=$ac_c_preproc_warn_flag
6489 else
6490 ac_cpp_err=
6492 else
6493 ac_cpp_err=yes
6495 if test -z "$ac_cpp_err"; then
6496 # Broken: success on invalid input.
6497 continue
6498 else
6499 echo "$as_me: failed program was:" >&5
6500 sed 's/^/| /' conftest.$ac_ext >&5
6502 # Passes both tests.
6503 ac_preproc_ok=:
6504 break
6506 rm -f conftest.err conftest.$ac_ext
6508 done
6509 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6510 rm -f conftest.err conftest.$ac_ext
6511 if $ac_preproc_ok; then
6513 else
6514 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6515 See \`config.log' for more details." >&5
6516 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6517 See \`config.log' for more details." >&2;}
6518 { (exit 1); exit 1; }; }
6521 ac_ext=c
6522 ac_cpp='$CPP $CPPFLAGS'
6523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6528 echo "$as_me:$LINENO: checking for egrep" >&5
6529 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6530 if test "${ac_cv_prog_egrep+set}" = set; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6532 else
6533 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6534 then ac_cv_prog_egrep='grep -E'
6535 else ac_cv_prog_egrep='egrep'
6538 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6539 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6540 EGREP=$ac_cv_prog_egrep
6543 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6544 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6545 if test "${ac_cv_header_stdc+set}" = set; then
6546 echo $ECHO_N "(cached) $ECHO_C" >&6
6547 else
6548 cat >conftest.$ac_ext <<_ACEOF
6549 #line $LINENO "configure"
6550 /* confdefs.h. */
6551 _ACEOF
6552 cat confdefs.h >>conftest.$ac_ext
6553 cat >>conftest.$ac_ext <<_ACEOF
6554 /* end confdefs.h. */
6555 #include <stdlib.h>
6556 #include <stdarg.h>
6557 #include <string.h>
6558 #include <float.h>
6561 main ()
6565 return 0;
6567 _ACEOF
6568 rm -f conftest.$ac_objext
6569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6570 (eval $ac_compile) 2>&5
6571 ac_status=$?
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); } &&
6574 { ac_try='test -s conftest.$ac_objext'
6575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6576 (eval $ac_try) 2>&5
6577 ac_status=$?
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); }; }; then
6580 ac_cv_header_stdc=yes
6581 else
6582 echo "$as_me: failed program was:" >&5
6583 sed 's/^/| /' conftest.$ac_ext >&5
6585 ac_cv_header_stdc=no
6587 rm -f conftest.$ac_objext conftest.$ac_ext
6589 if test $ac_cv_header_stdc = yes; then
6590 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6591 cat >conftest.$ac_ext <<_ACEOF
6592 #line $LINENO "configure"
6593 /* confdefs.h. */
6594 _ACEOF
6595 cat confdefs.h >>conftest.$ac_ext
6596 cat >>conftest.$ac_ext <<_ACEOF
6597 /* end confdefs.h. */
6598 #include <string.h>
6600 _ACEOF
6601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6602 $EGREP "memchr" >/dev/null 2>&1; then
6604 else
6605 ac_cv_header_stdc=no
6607 rm -f conftest*
6611 if test $ac_cv_header_stdc = yes; then
6612 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6613 cat >conftest.$ac_ext <<_ACEOF
6614 #line $LINENO "configure"
6615 /* confdefs.h. */
6616 _ACEOF
6617 cat confdefs.h >>conftest.$ac_ext
6618 cat >>conftest.$ac_ext <<_ACEOF
6619 /* end confdefs.h. */
6620 #include <stdlib.h>
6622 _ACEOF
6623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6624 $EGREP "free" >/dev/null 2>&1; then
6626 else
6627 ac_cv_header_stdc=no
6629 rm -f conftest*
6633 if test $ac_cv_header_stdc = yes; then
6634 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6635 if test "$cross_compiling" = yes; then
6637 else
6638 cat >conftest.$ac_ext <<_ACEOF
6639 #line $LINENO "configure"
6640 /* confdefs.h. */
6641 _ACEOF
6642 cat confdefs.h >>conftest.$ac_ext
6643 cat >>conftest.$ac_ext <<_ACEOF
6644 /* end confdefs.h. */
6645 #include <ctype.h>
6646 #if ((' ' & 0x0FF) == 0x020)
6647 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6648 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6649 #else
6650 # define ISLOWER(c) \
6651 (('a' <= (c) && (c) <= 'i') \
6652 || ('j' <= (c) && (c) <= 'r') \
6653 || ('s' <= (c) && (c) <= 'z'))
6654 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6655 #endif
6657 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6659 main ()
6661 int i;
6662 for (i = 0; i < 256; i++)
6663 if (XOR (islower (i), ISLOWER (i))
6664 || toupper (i) != TOUPPER (i))
6665 exit(2);
6666 exit (0);
6668 _ACEOF
6669 rm -f conftest$ac_exeext
6670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6671 (eval $ac_link) 2>&5
6672 ac_status=$?
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6676 (eval $ac_try) 2>&5
6677 ac_status=$?
6678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679 (exit $ac_status); }; }; then
6681 else
6682 echo "$as_me: program exited with status $ac_status" >&5
6683 echo "$as_me: failed program was:" >&5
6684 sed 's/^/| /' conftest.$ac_ext >&5
6686 ( exit $ac_status )
6687 ac_cv_header_stdc=no
6689 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6693 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6694 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6695 if test $ac_cv_header_stdc = yes; then
6697 cat >>confdefs.h <<\_ACEOF
6698 #define STDC_HEADERS 1
6699 _ACEOF
6703 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6713 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6714 inttypes.h stdint.h unistd.h
6716 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6717 echo "$as_me:$LINENO: checking for $ac_header" >&5
6718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6720 echo $ECHO_N "(cached) $ECHO_C" >&6
6721 else
6722 cat >conftest.$ac_ext <<_ACEOF
6723 #line $LINENO "configure"
6724 /* confdefs.h. */
6725 _ACEOF
6726 cat confdefs.h >>conftest.$ac_ext
6727 cat >>conftest.$ac_ext <<_ACEOF
6728 /* end confdefs.h. */
6729 $ac_includes_default
6731 #include <$ac_header>
6732 _ACEOF
6733 rm -f conftest.$ac_objext
6734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6735 (eval $ac_compile) 2>&5
6736 ac_status=$?
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); } &&
6739 { ac_try='test -s conftest.$ac_objext'
6740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6741 (eval $ac_try) 2>&5
6742 ac_status=$?
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); }; }; then
6745 eval "$as_ac_Header=yes"
6746 else
6747 echo "$as_me: failed program was:" >&5
6748 sed 's/^/| /' conftest.$ac_ext >&5
6750 eval "$as_ac_Header=no"
6752 rm -f conftest.$ac_objext conftest.$ac_ext
6754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6755 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6756 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6757 cat >>confdefs.h <<_ACEOF
6758 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6759 _ACEOF
6763 done
6770 for ac_header in unistd.h stdbool.h netinet/in.h limits.h
6772 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6774 echo "$as_me:$LINENO: checking for $ac_header" >&5
6775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6777 echo $ECHO_N "(cached) $ECHO_C" >&6
6779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6780 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6781 else
6782 # Is the header compilable?
6783 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6784 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6785 cat >conftest.$ac_ext <<_ACEOF
6786 #line $LINENO "configure"
6787 /* confdefs.h. */
6788 _ACEOF
6789 cat confdefs.h >>conftest.$ac_ext
6790 cat >>conftest.$ac_ext <<_ACEOF
6791 /* end confdefs.h. */
6792 $ac_includes_default
6793 #include <$ac_header>
6794 _ACEOF
6795 rm -f conftest.$ac_objext
6796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6797 (eval $ac_compile) 2>&5
6798 ac_status=$?
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); } &&
6801 { ac_try='test -s conftest.$ac_objext'
6802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6803 (eval $ac_try) 2>&5
6804 ac_status=$?
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); }; }; then
6807 ac_header_compiler=yes
6808 else
6809 echo "$as_me: failed program was:" >&5
6810 sed 's/^/| /' conftest.$ac_ext >&5
6812 ac_header_compiler=no
6814 rm -f conftest.$ac_objext conftest.$ac_ext
6815 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6816 echo "${ECHO_T}$ac_header_compiler" >&6
6818 # Is the header present?
6819 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6820 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6821 cat >conftest.$ac_ext <<_ACEOF
6822 #line $LINENO "configure"
6823 /* confdefs.h. */
6824 _ACEOF
6825 cat confdefs.h >>conftest.$ac_ext
6826 cat >>conftest.$ac_ext <<_ACEOF
6827 /* end confdefs.h. */
6828 #include <$ac_header>
6829 _ACEOF
6830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6832 ac_status=$?
6833 grep -v '^ *+' conftest.er1 >conftest.err
6834 rm -f conftest.er1
6835 cat conftest.err >&5
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); } >/dev/null; then
6838 if test -s conftest.err; then
6839 ac_cpp_err=$ac_c_preproc_warn_flag
6840 else
6841 ac_cpp_err=
6843 else
6844 ac_cpp_err=yes
6846 if test -z "$ac_cpp_err"; then
6847 ac_header_preproc=yes
6848 else
6849 echo "$as_me: failed program was:" >&5
6850 sed 's/^/| /' conftest.$ac_ext >&5
6852 ac_header_preproc=no
6854 rm -f conftest.err conftest.$ac_ext
6855 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6856 echo "${ECHO_T}$ac_header_preproc" >&6
6858 # So? What about this header?
6859 case $ac_header_compiler:$ac_header_preproc in
6860 yes:no )
6861 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6862 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6864 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6866 cat <<\_ASBOX
6867 ## ------------------------------------ ##
6868 ## Report this to bug-autoconf@gnu.org. ##
6869 ## ------------------------------------ ##
6870 _ASBOX
6872 sed "s/^/$as_me: WARNING: /" >&2
6874 no:yes )
6875 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6876 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6877 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6878 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6880 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6882 cat <<\_ASBOX
6883 ## ------------------------------------ ##
6884 ## Report this to bug-autoconf@gnu.org. ##
6885 ## ------------------------------------ ##
6886 _ASBOX
6888 sed "s/^/$as_me: WARNING: /" >&2
6890 esac
6891 echo "$as_me:$LINENO: checking for $ac_header" >&5
6892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6894 echo $ECHO_N "(cached) $ECHO_C" >&6
6895 else
6896 eval "$as_ac_Header=$ac_header_preproc"
6898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6899 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6903 cat >>confdefs.h <<_ACEOF
6904 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6905 _ACEOF
6909 done
6913 for ac_header in sys/wait.h sys/params.h
6915 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6917 echo "$as_me:$LINENO: checking for $ac_header" >&5
6918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6920 echo $ECHO_N "(cached) $ECHO_C" >&6
6922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6924 else
6925 # Is the header compilable?
6926 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6927 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6928 cat >conftest.$ac_ext <<_ACEOF
6929 #line $LINENO "configure"
6930 /* confdefs.h. */
6931 _ACEOF
6932 cat confdefs.h >>conftest.$ac_ext
6933 cat >>conftest.$ac_ext <<_ACEOF
6934 /* end confdefs.h. */
6935 $ac_includes_default
6936 #include <$ac_header>
6937 _ACEOF
6938 rm -f conftest.$ac_objext
6939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6940 (eval $ac_compile) 2>&5
6941 ac_status=$?
6942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943 (exit $ac_status); } &&
6944 { ac_try='test -s conftest.$ac_objext'
6945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6946 (eval $ac_try) 2>&5
6947 ac_status=$?
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); }; }; then
6950 ac_header_compiler=yes
6951 else
6952 echo "$as_me: failed program was:" >&5
6953 sed 's/^/| /' conftest.$ac_ext >&5
6955 ac_header_compiler=no
6957 rm -f conftest.$ac_objext conftest.$ac_ext
6958 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6959 echo "${ECHO_T}$ac_header_compiler" >&6
6961 # Is the header present?
6962 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6963 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6964 cat >conftest.$ac_ext <<_ACEOF
6965 #line $LINENO "configure"
6966 /* confdefs.h. */
6967 _ACEOF
6968 cat confdefs.h >>conftest.$ac_ext
6969 cat >>conftest.$ac_ext <<_ACEOF
6970 /* end confdefs.h. */
6971 #include <$ac_header>
6972 _ACEOF
6973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6975 ac_status=$?
6976 grep -v '^ *+' conftest.er1 >conftest.err
6977 rm -f conftest.er1
6978 cat conftest.err >&5
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); } >/dev/null; then
6981 if test -s conftest.err; then
6982 ac_cpp_err=$ac_c_preproc_warn_flag
6983 else
6984 ac_cpp_err=
6986 else
6987 ac_cpp_err=yes
6989 if test -z "$ac_cpp_err"; then
6990 ac_header_preproc=yes
6991 else
6992 echo "$as_me: failed program was:" >&5
6993 sed 's/^/| /' conftest.$ac_ext >&5
6995 ac_header_preproc=no
6997 rm -f conftest.err conftest.$ac_ext
6998 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6999 echo "${ECHO_T}$ac_header_preproc" >&6
7001 # So? What about this header?
7002 case $ac_header_compiler:$ac_header_preproc in
7003 yes:no )
7004 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7005 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7006 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7007 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7009 cat <<\_ASBOX
7010 ## ------------------------------------ ##
7011 ## Report this to bug-autoconf@gnu.org. ##
7012 ## ------------------------------------ ##
7013 _ASBOX
7015 sed "s/^/$as_me: WARNING: /" >&2
7017 no:yes )
7018 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7019 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7020 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7021 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7023 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7025 cat <<\_ASBOX
7026 ## ------------------------------------ ##
7027 ## Report this to bug-autoconf@gnu.org. ##
7028 ## ------------------------------------ ##
7029 _ASBOX
7031 sed "s/^/$as_me: WARNING: /" >&2
7033 esac
7034 echo "$as_me:$LINENO: checking for $ac_header" >&5
7035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7037 echo $ECHO_N "(cached) $ECHO_C" >&6
7038 else
7039 eval "$as_ac_Header=$ac_header_preproc"
7041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7046 cat >>confdefs.h <<_ACEOF
7047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7048 _ACEOF
7052 done
7055 for ac_header in cunistd
7057 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7059 echo "$as_me:$LINENO: checking for $ac_header" >&5
7060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7062 echo $ECHO_N "(cached) $ECHO_C" >&6
7064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7065 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7066 else
7067 # Is the header compilable?
7068 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7069 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7070 cat >conftest.$ac_ext <<_ACEOF
7071 #line $LINENO "configure"
7072 /* confdefs.h. */
7073 _ACEOF
7074 cat confdefs.h >>conftest.$ac_ext
7075 cat >>conftest.$ac_ext <<_ACEOF
7076 /* end confdefs.h. */
7077 $ac_includes_default
7078 #include <$ac_header>
7079 _ACEOF
7080 rm -f conftest.$ac_objext
7081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7082 (eval $ac_compile) 2>&5
7083 ac_status=$?
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); } &&
7086 { ac_try='test -s conftest.$ac_objext'
7087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7088 (eval $ac_try) 2>&5
7089 ac_status=$?
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); }; }; then
7092 ac_header_compiler=yes
7093 else
7094 echo "$as_me: failed program was:" >&5
7095 sed 's/^/| /' conftest.$ac_ext >&5
7097 ac_header_compiler=no
7099 rm -f conftest.$ac_objext conftest.$ac_ext
7100 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7101 echo "${ECHO_T}$ac_header_compiler" >&6
7103 # Is the header present?
7104 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7105 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7106 cat >conftest.$ac_ext <<_ACEOF
7107 #line $LINENO "configure"
7108 /* confdefs.h. */
7109 _ACEOF
7110 cat confdefs.h >>conftest.$ac_ext
7111 cat >>conftest.$ac_ext <<_ACEOF
7112 /* end confdefs.h. */
7113 #include <$ac_header>
7114 _ACEOF
7115 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7116 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7117 ac_status=$?
7118 grep -v '^ *+' conftest.er1 >conftest.err
7119 rm -f conftest.er1
7120 cat conftest.err >&5
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); } >/dev/null; then
7123 if test -s conftest.err; then
7124 ac_cpp_err=$ac_c_preproc_warn_flag
7125 else
7126 ac_cpp_err=
7128 else
7129 ac_cpp_err=yes
7131 if test -z "$ac_cpp_err"; then
7132 ac_header_preproc=yes
7133 else
7134 echo "$as_me: failed program was:" >&5
7135 sed 's/^/| /' conftest.$ac_ext >&5
7137 ac_header_preproc=no
7139 rm -f conftest.err conftest.$ac_ext
7140 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7141 echo "${ECHO_T}$ac_header_preproc" >&6
7143 # So? What about this header?
7144 case $ac_header_compiler:$ac_header_preproc in
7145 yes:no )
7146 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7147 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7149 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7151 cat <<\_ASBOX
7152 ## ------------------------------------ ##
7153 ## Report this to bug-autoconf@gnu.org. ##
7154 ## ------------------------------------ ##
7155 _ASBOX
7157 sed "s/^/$as_me: WARNING: /" >&2
7159 no:yes )
7160 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7161 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7162 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7163 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7165 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7167 cat <<\_ASBOX
7168 ## ------------------------------------ ##
7169 ## Report this to bug-autoconf@gnu.org. ##
7170 ## ------------------------------------ ##
7171 _ASBOX
7173 sed "s/^/$as_me: WARNING: /" >&2
7175 esac
7176 echo "$as_me:$LINENO: checking for $ac_header" >&5
7177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7179 echo $ECHO_N "(cached) $ECHO_C" >&6
7180 else
7181 eval "$as_ac_Header=$ac_header_preproc"
7183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7187 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7188 cat >>confdefs.h <<_ACEOF
7189 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7190 _ACEOF
7194 done
7198 for ac_header in locale.h libintl.h
7200 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7202 echo "$as_me:$LINENO: checking for $ac_header" >&5
7203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7205 echo $ECHO_N "(cached) $ECHO_C" >&6
7207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7208 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7209 else
7210 # Is the header compilable?
7211 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7212 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7213 cat >conftest.$ac_ext <<_ACEOF
7214 #line $LINENO "configure"
7215 /* confdefs.h. */
7216 _ACEOF
7217 cat confdefs.h >>conftest.$ac_ext
7218 cat >>conftest.$ac_ext <<_ACEOF
7219 /* end confdefs.h. */
7220 $ac_includes_default
7221 #include <$ac_header>
7222 _ACEOF
7223 rm -f conftest.$ac_objext
7224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7225 (eval $ac_compile) 2>&5
7226 ac_status=$?
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); } &&
7229 { ac_try='test -s conftest.$ac_objext'
7230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7231 (eval $ac_try) 2>&5
7232 ac_status=$?
7233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234 (exit $ac_status); }; }; then
7235 ac_header_compiler=yes
7236 else
7237 echo "$as_me: failed program was:" >&5
7238 sed 's/^/| /' conftest.$ac_ext >&5
7240 ac_header_compiler=no
7242 rm -f conftest.$ac_objext conftest.$ac_ext
7243 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7244 echo "${ECHO_T}$ac_header_compiler" >&6
7246 # Is the header present?
7247 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7249 cat >conftest.$ac_ext <<_ACEOF
7250 #line $LINENO "configure"
7251 /* confdefs.h. */
7252 _ACEOF
7253 cat confdefs.h >>conftest.$ac_ext
7254 cat >>conftest.$ac_ext <<_ACEOF
7255 /* end confdefs.h. */
7256 #include <$ac_header>
7257 _ACEOF
7258 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7259 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7260 ac_status=$?
7261 grep -v '^ *+' conftest.er1 >conftest.err
7262 rm -f conftest.er1
7263 cat conftest.err >&5
7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); } >/dev/null; then
7266 if test -s conftest.err; then
7267 ac_cpp_err=$ac_c_preproc_warn_flag
7268 else
7269 ac_cpp_err=
7271 else
7272 ac_cpp_err=yes
7274 if test -z "$ac_cpp_err"; then
7275 ac_header_preproc=yes
7276 else
7277 echo "$as_me: failed program was:" >&5
7278 sed 's/^/| /' conftest.$ac_ext >&5
7280 ac_header_preproc=no
7282 rm -f conftest.err conftest.$ac_ext
7283 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7284 echo "${ECHO_T}$ac_header_preproc" >&6
7286 # So? What about this header?
7287 case $ac_header_compiler:$ac_header_preproc in
7288 yes:no )
7289 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7290 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7294 cat <<\_ASBOX
7295 ## ------------------------------------ ##
7296 ## Report this to bug-autoconf@gnu.org. ##
7297 ## ------------------------------------ ##
7298 _ASBOX
7300 sed "s/^/$as_me: WARNING: /" >&2
7302 no:yes )
7303 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7304 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7305 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7306 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7308 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7310 cat <<\_ASBOX
7311 ## ------------------------------------ ##
7312 ## Report this to bug-autoconf@gnu.org. ##
7313 ## ------------------------------------ ##
7314 _ASBOX
7316 sed "s/^/$as_me: WARNING: /" >&2
7318 esac
7319 echo "$as_me:$LINENO: checking for $ac_header" >&5
7320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7322 echo $ECHO_N "(cached) $ECHO_C" >&6
7323 else
7324 eval "$as_ac_Header=$ac_header_preproc"
7326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7331 cat >>confdefs.h <<_ACEOF
7332 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7333 _ACEOF
7337 done
7340 for ac_header in regex.h
7342 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7344 echo "$as_me:$LINENO: checking for $ac_header" >&5
7345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7347 echo $ECHO_N "(cached) $ECHO_C" >&6
7349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7350 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7351 else
7352 # Is the header compilable?
7353 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7354 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7355 cat >conftest.$ac_ext <<_ACEOF
7356 #line $LINENO "configure"
7357 /* confdefs.h. */
7358 _ACEOF
7359 cat confdefs.h >>conftest.$ac_ext
7360 cat >>conftest.$ac_ext <<_ACEOF
7361 /* end confdefs.h. */
7362 $ac_includes_default
7363 #include <$ac_header>
7364 _ACEOF
7365 rm -f conftest.$ac_objext
7366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7367 (eval $ac_compile) 2>&5
7368 ac_status=$?
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); } &&
7371 { ac_try='test -s conftest.$ac_objext'
7372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7373 (eval $ac_try) 2>&5
7374 ac_status=$?
7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376 (exit $ac_status); }; }; then
7377 ac_header_compiler=yes
7378 else
7379 echo "$as_me: failed program was:" >&5
7380 sed 's/^/| /' conftest.$ac_ext >&5
7382 ac_header_compiler=no
7384 rm -f conftest.$ac_objext conftest.$ac_ext
7385 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7386 echo "${ECHO_T}$ac_header_compiler" >&6
7388 # Is the header present?
7389 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7391 cat >conftest.$ac_ext <<_ACEOF
7392 #line $LINENO "configure"
7393 /* confdefs.h. */
7394 _ACEOF
7395 cat confdefs.h >>conftest.$ac_ext
7396 cat >>conftest.$ac_ext <<_ACEOF
7397 /* end confdefs.h. */
7398 #include <$ac_header>
7399 _ACEOF
7400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7402 ac_status=$?
7403 grep -v '^ *+' conftest.er1 >conftest.err
7404 rm -f conftest.er1
7405 cat conftest.err >&5
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); } >/dev/null; then
7408 if test -s conftest.err; then
7409 ac_cpp_err=$ac_c_preproc_warn_flag
7410 else
7411 ac_cpp_err=
7413 else
7414 ac_cpp_err=yes
7416 if test -z "$ac_cpp_err"; then
7417 ac_header_preproc=yes
7418 else
7419 echo "$as_me: failed program was:" >&5
7420 sed 's/^/| /' conftest.$ac_ext >&5
7422 ac_header_preproc=no
7424 rm -f conftest.err conftest.$ac_ext
7425 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7426 echo "${ECHO_T}$ac_header_preproc" >&6
7428 # So? What about this header?
7429 case $ac_header_compiler:$ac_header_preproc in
7430 yes:no )
7431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7434 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7436 cat <<\_ASBOX
7437 ## ------------------------------------ ##
7438 ## Report this to bug-autoconf@gnu.org. ##
7439 ## ------------------------------------ ##
7440 _ASBOX
7442 sed "s/^/$as_me: WARNING: /" >&2
7444 no:yes )
7445 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7446 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7447 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7448 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7450 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7452 cat <<\_ASBOX
7453 ## ------------------------------------ ##
7454 ## Report this to bug-autoconf@gnu.org. ##
7455 ## ------------------------------------ ##
7456 _ASBOX
7458 sed "s/^/$as_me: WARNING: /" >&2
7460 esac
7461 echo "$as_me:$LINENO: checking for $ac_header" >&5
7462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7464 echo $ECHO_N "(cached) $ECHO_C" >&6
7465 else
7466 eval "$as_ac_Header=$ac_header_preproc"
7468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7473 cat >>confdefs.h <<_ACEOF
7474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7475 _ACEOF
7479 done
7483 echo "$as_me:$LINENO: checking for size_t" >&5
7484 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7485 if test "${ac_cv_type_size_t+set}" = set; then
7486 echo $ECHO_N "(cached) $ECHO_C" >&6
7487 else
7488 cat >conftest.$ac_ext <<_ACEOF
7489 #line $LINENO "configure"
7490 /* confdefs.h. */
7491 _ACEOF
7492 cat confdefs.h >>conftest.$ac_ext
7493 cat >>conftest.$ac_ext <<_ACEOF
7494 /* end confdefs.h. */
7495 $ac_includes_default
7497 main ()
7499 if ((size_t *) 0)
7500 return 0;
7501 if (sizeof (size_t))
7502 return 0;
7504 return 0;
7506 _ACEOF
7507 rm -f conftest.$ac_objext
7508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7509 (eval $ac_compile) 2>&5
7510 ac_status=$?
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); } &&
7513 { ac_try='test -s conftest.$ac_objext'
7514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7515 (eval $ac_try) 2>&5
7516 ac_status=$?
7517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518 (exit $ac_status); }; }; then
7519 ac_cv_type_size_t=yes
7520 else
7521 echo "$as_me: failed program was:" >&5
7522 sed 's/^/| /' conftest.$ac_ext >&5
7524 ac_cv_type_size_t=no
7526 rm -f conftest.$ac_objext conftest.$ac_ext
7528 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7529 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7530 if test $ac_cv_type_size_t = yes; then
7532 else
7534 cat >>confdefs.h <<_ACEOF
7535 #define size_t unsigned
7536 _ACEOF
7542 echo "$as_me:$LINENO: checking whether __func__ is declared" >&5
7543 echo $ECHO_N "checking whether __func__ is declared... $ECHO_C" >&6
7544 if test "${ac_cv_have_decl___func__+set}" = set; then
7545 echo $ECHO_N "(cached) $ECHO_C" >&6
7546 else
7547 cat >conftest.$ac_ext <<_ACEOF
7548 #line $LINENO "configure"
7549 /* confdefs.h. */
7550 _ACEOF
7551 cat confdefs.h >>conftest.$ac_ext
7552 cat >>conftest.$ac_ext <<_ACEOF
7553 /* end confdefs.h. */
7554 $ac_includes_default
7556 main ()
7558 #ifndef __func__
7559 char *p = (char *) __func__;
7560 #endif
7563 return 0;
7565 _ACEOF
7566 rm -f conftest.$ac_objext
7567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7568 (eval $ac_compile) 2>&5
7569 ac_status=$?
7570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571 (exit $ac_status); } &&
7572 { ac_try='test -s conftest.$ac_objext'
7573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7574 (eval $ac_try) 2>&5
7575 ac_status=$?
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); }; }; then
7578 ac_cv_have_decl___func__=yes
7579 else
7580 echo "$as_me: failed program was:" >&5
7581 sed 's/^/| /' conftest.$ac_ext >&5
7583 ac_cv_have_decl___func__=no
7585 rm -f conftest.$ac_objext conftest.$ac_ext
7587 echo "$as_me:$LINENO: result: $ac_cv_have_decl___func__" >&5
7588 echo "${ECHO_T}$ac_cv_have_decl___func__" >&6
7589 if test $ac_cv_have_decl___func__ = yes; then
7591 cat >>confdefs.h <<_ACEOF
7592 #define HAVE_DECL___FUNC__ 1
7593 _ACEOF
7596 else
7597 cat >>confdefs.h <<_ACEOF
7598 #define HAVE_DECL___FUNC__ 0
7599 _ACEOF
7606 ac_config_files="$ac_config_files flex.spec Makefile doc/Makefile examples/Makefile examples/fastwc/Makefile examples/manual/Makefile m4/Makefile po/Makefile.in tools/Makefile tests/Makefile tests/TEMPLATE/Makefile tests/test-array-nr/Makefile tests/test-array-r/Makefile tests/test-basic-nr/Makefile tests/test-basic-r/Makefile tests/test-bison-yylloc/Makefile tests/test-bison-yylval/Makefile tests/test-c-cpp-nr/Makefile tests/test-c-cpp-r/Makefile tests/test-header-nr/Makefile tests/test-header-r/Makefile tests/test-include-by-buffer/Makefile tests/test-include-by-push/Makefile tests/test-include-by-reentrant/Makefile tests/test-multiple-scanners-nr/Makefile tests/test-multiple-scanners-r/Makefile tests/test-noansi-nr/Makefile tests/test-noansi-r/Makefile tests/test-prefix-nr/Makefile tests/test-prefix-r/Makefile tests/test-pthread/Makefile tests/test-string-nr/Makefile tests/test-string-r/Makefile tests/test-yyextra/Makefile tests/test-lineno-nr/Makefile tests/test-lineno-r/Makefile tests/test-linedir-r/Makefile tests/test-debug-r/Makefile tests/test-debug-nr/Makefile tests/test-mem-nr/Makefile tests/test-mem-r/Makefile tests/test-posix/Makefile tests/test-posixly-correct/Makefile tests/test-table-opts/Makefile tests/test-c++-basic/Makefile tests/test-bison-nr/Makefile tests/test-reject/Makefile tests/test-c++-multiple-scanners/Makefile tests/test-top/Makefile tests/test-rescan-nr/Makefile tests/test-rescan-r/Makefile"
7609 cat >confcache <<\_ACEOF
7610 # This file is a shell script that caches the results of configure
7611 # tests run on this system so they can be shared between configure
7612 # scripts and configure runs, see configure's option --config-cache.
7613 # It is not useful on other systems. If it contains results you don't
7614 # want to keep, you may remove or edit it.
7616 # config.status only pays attention to the cache file if you give it
7617 # the --recheck option to rerun configure.
7619 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7620 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7621 # following values.
7623 _ACEOF
7625 # The following way of writing the cache mishandles newlines in values,
7626 # but we know of no workaround that is simple, portable, and efficient.
7627 # So, don't put newlines in cache variables' values.
7628 # Ultrix sh set writes to stderr and can't be redirected directly,
7629 # and sets the high bit in the cache file unless we assign to the vars.
7631 (set) 2>&1 |
7632 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7633 *ac_space=\ *)
7634 # `set' does not quote correctly, so add quotes (double-quote
7635 # substitution turns \\\\ into \\, and sed turns \\ into \).
7636 sed -n \
7637 "s/'/'\\\\''/g;
7638 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7641 # `set' quotes correctly as required by POSIX, so do not add quotes.
7642 sed -n \
7643 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7645 esac;
7647 sed '
7648 t clear
7649 : clear
7650 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7651 t end
7652 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7653 : end' >>confcache
7654 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7655 if test -w $cache_file; then
7656 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7657 cat confcache >$cache_file
7658 else
7659 echo "not updating unwritable cache $cache_file"
7662 rm -f confcache
7664 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7665 # Let make expand exec_prefix.
7666 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7668 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7669 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7670 # trailing colons and then remove the whole line if VPATH becomes empty
7671 # (actually we leave an empty line to preserve line numbers).
7672 if test "x$srcdir" = x.; then
7673 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7674 s/:*\$(srcdir):*/:/;
7675 s/:*\${srcdir}:*/:/;
7676 s/:*@srcdir@:*/:/;
7677 s/^\([^=]*=[ ]*\):*/\1/;
7678 s/:*$//;
7679 s/^[^=]*=[ ]*$//;
7683 DEFS=-DHAVE_CONFIG_H
7685 ac_libobjs=
7686 ac_ltlibobjs=
7687 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7688 # 1. Remove the extension, and $U if already installed.
7689 ac_i=`echo "$ac_i" |
7690 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7691 # 2. Add them.
7692 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7693 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7694 done
7695 LIBOBJS=$ac_libobjs
7697 LTLIBOBJS=$ac_ltlibobjs
7700 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7701 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
7702 Usually this means the macro was only invoked conditionally." >&5
7703 echo "$as_me: error: conditional \"AMDEP\" was never defined.
7704 Usually this means the macro was only invoked conditionally." >&2;}
7705 { (exit 1); exit 1; }; }
7707 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7708 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
7709 Usually this means the macro was only invoked conditionally." >&5
7710 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
7711 Usually this means the macro was only invoked conditionally." >&2;}
7712 { (exit 1); exit 1; }; }
7714 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7715 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
7716 Usually this means the macro was only invoked conditionally." >&5
7717 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
7718 Usually this means the macro was only invoked conditionally." >&2;}
7719 { (exit 1); exit 1; }; }
7721 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
7722 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
7723 Usually this means the macro was only invoked conditionally." >&5
7724 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
7725 Usually this means the macro was only invoked conditionally." >&2;}
7726 { (exit 1); exit 1; }; }
7729 : ${CONFIG_STATUS=./config.status}
7730 ac_clean_files_save=$ac_clean_files
7731 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7732 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7733 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7734 cat >$CONFIG_STATUS <<_ACEOF
7735 #! $SHELL
7736 # Generated by $as_me.
7737 # Run this file to recreate the current configuration.
7738 # Compiler output produced by configure, useful for debugging
7739 # configure, is in config.log if it exists.
7741 debug=false
7742 ac_cs_recheck=false
7743 ac_cs_silent=false
7744 SHELL=\${CONFIG_SHELL-$SHELL}
7745 _ACEOF
7747 cat >>$CONFIG_STATUS <<\_ACEOF
7748 ## --------------------- ##
7749 ## M4sh Initialization. ##
7750 ## --------------------- ##
7752 # Be Bourne compatible
7753 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7754 emulate sh
7755 NULLCMD=:
7756 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7757 # is contrary to our usage. Disable this feature.
7758 alias -g '${1+"$@"}'='"$@"'
7759 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7760 set -o posix
7763 # Support unset when possible.
7764 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
7765 as_unset=unset
7766 else
7767 as_unset=false
7771 # Work around bugs in pre-3.0 UWIN ksh.
7772 $as_unset ENV MAIL MAILPATH
7773 PS1='$ '
7774 PS2='> '
7775 PS4='+ '
7777 # NLS nuisances.
7778 for as_var in \
7779 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7780 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7781 LC_TELEPHONE LC_TIME
7783 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
7784 eval $as_var=C; export $as_var
7785 else
7786 $as_unset $as_var
7788 done
7790 # Required to use basename.
7791 if expr a : '\(a\)' >/dev/null 2>&1; then
7792 as_expr=expr
7793 else
7794 as_expr=false
7797 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
7798 as_basename=basename
7799 else
7800 as_basename=false
7804 # Name of the executable.
7805 as_me=`$as_basename "$0" ||
7806 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7807 X"$0" : 'X\(//\)$' \| \
7808 X"$0" : 'X\(/\)$' \| \
7809 . : '\(.\)' 2>/dev/null ||
7810 echo X/"$0" |
7811 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7812 /^X\/\(\/\/\)$/{ s//\1/; q; }
7813 /^X\/\(\/\).*/{ s//\1/; q; }
7814 s/.*/./; q'`
7817 # PATH needs CR, and LINENO needs CR and PATH.
7818 # Avoid depending upon Character Ranges.
7819 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7820 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7821 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7822 as_cr_digits='0123456789'
7823 as_cr_alnum=$as_cr_Letters$as_cr_digits
7825 # The user is always right.
7826 if test "${PATH_SEPARATOR+set}" != set; then
7827 echo "#! /bin/sh" >conf$$.sh
7828 echo "exit 0" >>conf$$.sh
7829 chmod +x conf$$.sh
7830 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7831 PATH_SEPARATOR=';'
7832 else
7833 PATH_SEPARATOR=:
7835 rm -f conf$$.sh
7839 as_lineno_1=$LINENO
7840 as_lineno_2=$LINENO
7841 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7842 test "x$as_lineno_1" != "x$as_lineno_2" &&
7843 test "x$as_lineno_3" = "x$as_lineno_2" || {
7844 # Find who we are. Look in the path if we contain no path at all
7845 # relative or not.
7846 case $0 in
7847 *[\\/]* ) as_myself=$0 ;;
7848 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849 for as_dir in $PATH
7851 IFS=$as_save_IFS
7852 test -z "$as_dir" && as_dir=.
7853 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7854 done
7857 esac
7858 # We did not find ourselves, most probably we were run as `sh COMMAND'
7859 # in which case we are not to be found in the path.
7860 if test "x$as_myself" = x; then
7861 as_myself=$0
7863 if test ! -f "$as_myself"; then
7864 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7865 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7866 { (exit 1); exit 1; }; }
7868 case $CONFIG_SHELL in
7870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7871 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7873 IFS=$as_save_IFS
7874 test -z "$as_dir" && as_dir=.
7875 for as_base in sh bash ksh sh5; do
7876 case $as_dir in
7878 if ("$as_dir/$as_base" -c '
7879 as_lineno_1=$LINENO
7880 as_lineno_2=$LINENO
7881 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7882 test "x$as_lineno_1" != "x$as_lineno_2" &&
7883 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7884 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7885 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7886 CONFIG_SHELL=$as_dir/$as_base
7887 export CONFIG_SHELL
7888 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7889 fi;;
7890 esac
7891 done
7892 done
7894 esac
7896 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7897 # uniformly replaced by the line number. The first 'sed' inserts a
7898 # line-number line before each line; the second 'sed' does the real
7899 # work. The second script uses 'N' to pair each line-number line
7900 # with the numbered line, and appends trailing '-' during
7901 # substitution so that $LINENO is not a special case at line end.
7902 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7903 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7904 sed '=' <$as_myself |
7905 sed '
7907 s,$,-,
7908 : loop
7909 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7910 t loop
7911 s,-$,,
7912 s,^['$as_cr_digits']*\n,,
7913 ' >$as_me.lineno &&
7914 chmod +x $as_me.lineno ||
7915 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7916 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7917 { (exit 1); exit 1; }; }
7919 # Don't try to exec as it changes $[0], causing all sort of problems
7920 # (the dirname of $[0] is not the place where we might find the
7921 # original and so on. Autoconf is especially sensible to this).
7922 . ./$as_me.lineno
7923 # Exit status is that of the last command.
7924 exit
7928 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7929 *c*,-n*) ECHO_N= ECHO_C='
7930 ' ECHO_T=' ' ;;
7931 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7932 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7933 esac
7935 if expr a : '\(a\)' >/dev/null 2>&1; then
7936 as_expr=expr
7937 else
7938 as_expr=false
7941 rm -f conf$$ conf$$.exe conf$$.file
7942 echo >conf$$.file
7943 if ln -s conf$$.file conf$$ 2>/dev/null; then
7944 # We could just check for DJGPP; but this test a) works b) is more generic
7945 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7946 if test -f conf$$.exe; then
7947 # Don't use ln at all; we don't have any links
7948 as_ln_s='cp -p'
7949 else
7950 as_ln_s='ln -s'
7952 elif ln conf$$.file conf$$ 2>/dev/null; then
7953 as_ln_s=ln
7954 else
7955 as_ln_s='cp -p'
7957 rm -f conf$$ conf$$.exe conf$$.file
7959 if mkdir -p . 2>/dev/null; then
7960 as_mkdir_p=:
7961 else
7962 as_mkdir_p=false
7965 as_executable_p="test -f"
7967 # Sed expression to map a string onto a valid CPP name.
7968 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7970 # Sed expression to map a string onto a valid variable name.
7971 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7974 # IFS
7975 # We need space, tab and new line, in precisely that order.
7976 as_nl='
7978 IFS=" $as_nl"
7980 # CDPATH.
7981 $as_unset CDPATH
7983 exec 6>&1
7985 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7986 # report actual input values of CONFIG_FILES etc. instead of their
7987 # values after options handling. Logging --version etc. is OK.
7988 exec 5>>config.log
7990 echo
7991 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7992 ## Running $as_me. ##
7993 _ASBOX
7994 } >&5
7995 cat >&5 <<_CSEOF
7997 This file was extended by flex $as_me 2.5.33, which was
7998 generated by GNU Autoconf 2.57. Invocation command line was
8000 CONFIG_FILES = $CONFIG_FILES
8001 CONFIG_HEADERS = $CONFIG_HEADERS
8002 CONFIG_LINKS = $CONFIG_LINKS
8003 CONFIG_COMMANDS = $CONFIG_COMMANDS
8004 $ $0 $@
8006 _CSEOF
8007 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8008 echo >&5
8009 _ACEOF
8011 # Files that config.status was made for.
8012 if test -n "$ac_config_files"; then
8013 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8016 if test -n "$ac_config_headers"; then
8017 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8020 if test -n "$ac_config_links"; then
8021 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8024 if test -n "$ac_config_commands"; then
8025 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8028 cat >>$CONFIG_STATUS <<\_ACEOF
8030 ac_cs_usage="\
8031 \`$as_me' instantiates files from templates according to the
8032 current configuration.
8034 Usage: $0 [OPTIONS] [FILE]...
8036 -h, --help print this help, then exit
8037 -V, --version print version number, then exit
8038 -q, --quiet do not print progress messages
8039 -d, --debug don't remove temporary files
8040 --recheck update $as_me by reconfiguring in the same conditions
8041 --file=FILE[:TEMPLATE]
8042 instantiate the configuration file FILE
8043 --header=FILE[:TEMPLATE]
8044 instantiate the configuration header FILE
8046 Configuration files:
8047 $config_files
8049 Configuration headers:
8050 $config_headers
8052 Configuration commands:
8053 $config_commands
8055 Report bugs to <bug-autoconf@gnu.org>."
8056 _ACEOF
8058 cat >>$CONFIG_STATUS <<_ACEOF
8059 ac_cs_version="\\
8060 flex config.status 2.5.33
8061 configured by $0, generated by GNU Autoconf 2.57,
8062 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8064 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8065 Free Software Foundation, Inc.
8066 This config.status script is free software; the Free Software Foundation
8067 gives unlimited permission to copy, distribute and modify it."
8068 srcdir=$srcdir
8069 INSTALL="$INSTALL"
8070 _ACEOF
8072 cat >>$CONFIG_STATUS <<\_ACEOF
8073 # If no file are specified by the user, then we need to provide default
8074 # value. By we need to know if files were specified by the user.
8075 ac_need_defaults=:
8076 while test $# != 0
8078 case $1 in
8079 --*=*)
8080 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8081 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8082 ac_shift=:
8085 ac_option=$1
8086 ac_optarg=$2
8087 ac_shift=shift
8089 *) # This is not an option, so the user has probably given explicit
8090 # arguments.
8091 ac_option=$1
8092 ac_need_defaults=false;;
8093 esac
8095 case $ac_option in
8096 # Handling of the options.
8097 _ACEOF
8098 cat >>$CONFIG_STATUS <<\_ACEOF
8099 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8100 ac_cs_recheck=: ;;
8101 --version | --vers* | -V )
8102 echo "$ac_cs_version"; exit 0 ;;
8103 --he | --h)
8104 # Conflict between --help and --header
8105 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8106 Try \`$0 --help' for more information." >&5
8107 echo "$as_me: error: ambiguous option: $1
8108 Try \`$0 --help' for more information." >&2;}
8109 { (exit 1); exit 1; }; };;
8110 --help | --hel | -h )
8111 echo "$ac_cs_usage"; exit 0 ;;
8112 --debug | --d* | -d )
8113 debug=: ;;
8114 --file | --fil | --fi | --f )
8115 $ac_shift
8116 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8117 ac_need_defaults=false;;
8118 --header | --heade | --head | --hea )
8119 $ac_shift
8120 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8121 ac_need_defaults=false;;
8122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8123 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8124 ac_cs_silent=: ;;
8126 # This is an error.
8127 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8128 Try \`$0 --help' for more information." >&5
8129 echo "$as_me: error: unrecognized option: $1
8130 Try \`$0 --help' for more information." >&2;}
8131 { (exit 1); exit 1; }; } ;;
8133 *) ac_config_targets="$ac_config_targets $1" ;;
8135 esac
8136 shift
8137 done
8139 ac_configure_extra_args=
8141 if $ac_cs_silent; then
8142 exec 6>/dev/null
8143 ac_configure_extra_args="$ac_configure_extra_args --silent"
8146 _ACEOF
8147 cat >>$CONFIG_STATUS <<_ACEOF
8148 if \$ac_cs_recheck; then
8149 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8150 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8153 _ACEOF
8155 cat >>$CONFIG_STATUS <<_ACEOF
8157 # INIT-COMMANDS section.
8160 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
8161 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
8162 # from automake.
8163 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
8164 # Capture the value of LINGUAS because we need it to compute CATALOGS.
8165 LINGUAS="${LINGUAS-%UNSET%}"
8167 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8169 _ACEOF
8173 cat >>$CONFIG_STATUS <<\_ACEOF
8174 for ac_config_target in $ac_config_targets
8176 case "$ac_config_target" in
8177 # Handling of arguments.
8178 "flex.spec" ) CONFIG_FILES="$CONFIG_FILES flex.spec" ;;
8179 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8180 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8181 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
8182 "examples/fastwc/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/fastwc/Makefile" ;;
8183 "examples/manual/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/manual/Makefile" ;;
8184 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
8185 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
8186 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
8187 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
8188 "tests/TEMPLATE/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/TEMPLATE/Makefile" ;;
8189 "tests/test-array-nr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-array-nr/Makefile" ;;
8190 "tests/test-array-r/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-array-r/Makefile" ;;
8191 "tests/test-basic-nr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-basic-nr/Makefile" ;;
8192 "tests/test-basic-r/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-basic-r/Makefile" ;;
8193 "tests/test-bison-yylloc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-bison-yylloc/Makefile" ;;
8194 "tests/test-bison-yylval/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-bison-yylval/Makefile" ;;
8195 "tests/test-c-cpp-nr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-c-cpp-nr/Makefile" ;;
8196 "tests/test-c-cpp-r/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-c-cpp-r/Makefile" ;;
8197 "tests/test-header-nr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-header-nr/Makefile" ;;
8198 "tests/test-header-r/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-header-r/Makefile" ;;
8199 "tests/test-include-by-buffer/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-include-by-buffer/Makefile" ;;
8200 "tests/test-include-by-push/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-include-by-push/Makefile" ;;
8201 "tests/test-include-by-reentrant/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-include-by-reentrant/Makefile" ;;
8202 "tests/test-multiple-scanners-nr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-multiple-scanners-nr/Makefile" ;;
8203 "tests/test-multiple-scanners-r/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-multiple-scanners-r/Makefile" ;;
8204 "tests/test-noansi-nr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-noansi-nr/Makefile" ;;
8205 "tests/test-noansi-r/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-noansi-r/Makefile" ;;
8206 "tests/test-prefix-nr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-prefix-nr/Makefile" ;;
8207 "tests/test-prefix-r/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-prefix-r/Makefile" ;;
8208 "tests/test-pthread/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-pthread/Makefile" ;;
8209 "tests/test-string-nr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-string-nr/Makefile" ;;
8210 "tests/test-string-r/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-string-r/Makefile" ;;
8211 "tests/test-yyextra/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-yyextra/Makefile" ;;
8212 "tests/test-lineno-nr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-lineno-nr/Makefile" ;;
8213 "tests/test-lineno-r/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-lineno-r/Makefile" ;;
8214 "tests/test-linedir-r/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-linedir-r/Makefile" ;;
8215 "tests/test-debug-r/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-debug-r/Makefile" ;;
8216 "tests/test-debug-nr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-debug-nr/Makefile" ;;
8217 "tests/test-mem-nr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-mem-nr/Makefile" ;;
8218 "tests/test-mem-r/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-mem-r/Makefile" ;;
8219 "tests/test-posix/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-posix/Makefile" ;;
8220 "tests/test-posixly-correct/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-posixly-correct/Makefile" ;;
8221 "tests/test-table-opts/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-table-opts/Makefile" ;;
8222 "tests/test-c++-basic/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-c++-basic/Makefile" ;;
8223 "tests/test-bison-nr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-bison-nr/Makefile" ;;
8224 "tests/test-reject/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-reject/Makefile" ;;
8225 "tests/test-c++-multiple-scanners/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-c++-multiple-scanners/Makefile" ;;
8226 "tests/test-top/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-top/Makefile" ;;
8227 "tests/test-rescan-nr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-rescan-nr/Makefile" ;;
8228 "tests/test-rescan-r/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-rescan-r/Makefile" ;;
8229 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
8230 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8231 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:conf.in" ;;
8232 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8233 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8234 { (exit 1); exit 1; }; };;
8235 esac
8236 done
8238 # If the user did not use the arguments to specify the items to instantiate,
8239 # then the envvar interface is used. Set only those that are not.
8240 # We use the long form for the default assignment because of an extremely
8241 # bizarre bug on SunOS 4.1.3.
8242 if $ac_need_defaults; then
8243 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8244 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8245 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8248 # Have a temporary directory for convenience. Make it in the build tree
8249 # simply because there is no reason to put it here, and in addition,
8250 # creating and moving files from /tmp can sometimes cause problems.
8251 # Create a temporary directory, and hook for its removal unless debugging.
8252 $debug ||
8254 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8255 trap '{ (exit 1); exit 1; }' 1 2 13 15
8258 # Create a (secure) tmp directory for tmp files.
8261 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8262 test -n "$tmp" && test -d "$tmp"
8263 } ||
8265 tmp=./confstat$$-$RANDOM
8266 (umask 077 && mkdir $tmp)
8267 } ||
8269 echo "$me: cannot create a temporary directory in ." >&2
8270 { (exit 1); exit 1; }
8273 _ACEOF
8275 cat >>$CONFIG_STATUS <<_ACEOF
8278 # CONFIG_FILES section.
8281 # No need to generate the scripts if there are no CONFIG_FILES.
8282 # This happens for instance when ./config.status config.h
8283 if test -n "\$CONFIG_FILES"; then
8284 # Protect against being on the right side of a sed subst in config.status.
8285 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8286 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8287 s,@SHELL@,$SHELL,;t t
8288 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8289 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8290 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8291 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8292 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8293 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8294 s,@exec_prefix@,$exec_prefix,;t t
8295 s,@prefix@,$prefix,;t t
8296 s,@program_transform_name@,$program_transform_name,;t t
8297 s,@bindir@,$bindir,;t t
8298 s,@sbindir@,$sbindir,;t t
8299 s,@libexecdir@,$libexecdir,;t t
8300 s,@datadir@,$datadir,;t t
8301 s,@sysconfdir@,$sysconfdir,;t t
8302 s,@sharedstatedir@,$sharedstatedir,;t t
8303 s,@localstatedir@,$localstatedir,;t t
8304 s,@libdir@,$libdir,;t t
8305 s,@includedir@,$includedir,;t t
8306 s,@oldincludedir@,$oldincludedir,;t t
8307 s,@infodir@,$infodir,;t t
8308 s,@mandir@,$mandir,;t t
8309 s,@build_alias@,$build_alias,;t t
8310 s,@host_alias@,$host_alias,;t t
8311 s,@target_alias@,$target_alias,;t t
8312 s,@DEFS@,$DEFS,;t t
8313 s,@ECHO_C@,$ECHO_C,;t t
8314 s,@ECHO_N@,$ECHO_N,;t t
8315 s,@ECHO_T@,$ECHO_T,;t t
8316 s,@LIBS@,$LIBS,;t t
8317 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8318 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8319 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8320 s,@CYGPATH_W@,$CYGPATH_W,;t t
8321 s,@PACKAGE@,$PACKAGE,;t t
8322 s,@VERSION@,$VERSION,;t t
8323 s,@ACLOCAL@,$ACLOCAL,;t t
8324 s,@AUTOCONF@,$AUTOCONF,;t t
8325 s,@AUTOMAKE@,$AUTOMAKE,;t t
8326 s,@AUTOHEADER@,$AUTOHEADER,;t t
8327 s,@MAKEINFO@,$MAKEINFO,;t t
8328 s,@AMTAR@,$AMTAR,;t t
8329 s,@install_sh@,$install_sh,;t t
8330 s,@STRIP@,$STRIP,;t t
8331 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8332 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
8333 s,@AWK@,$AWK,;t t
8334 s,@SET_MAKE@,$SET_MAKE,;t t
8335 s,@am__leading_dot@,$am__leading_dot,;t t
8336 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
8337 s,@USE_NLS@,$USE_NLS,;t t
8338 s,@MSGFMT@,$MSGFMT,;t t
8339 s,@GMSGFMT@,$GMSGFMT,;t t
8340 s,@XGETTEXT@,$XGETTEXT,;t t
8341 s,@MSGMERGE@,$MSGMERGE,;t t
8342 s,@CC@,$CC,;t t
8343 s,@CFLAGS@,$CFLAGS,;t t
8344 s,@LDFLAGS@,$LDFLAGS,;t t
8345 s,@CPPFLAGS@,$CPPFLAGS,;t t
8346 s,@ac_ct_CC@,$ac_ct_CC,;t t
8347 s,@EXEEXT@,$EXEEXT,;t t
8348 s,@OBJEXT@,$OBJEXT,;t t
8349 s,@DEPDIR@,$DEPDIR,;t t
8350 s,@am__include@,$am__include,;t t
8351 s,@am__quote@,$am__quote,;t t
8352 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
8353 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
8354 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
8355 s,@CCDEPMODE@,$CCDEPMODE,;t t
8356 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
8357 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
8358 s,@build@,$build,;t t
8359 s,@build_cpu@,$build_cpu,;t t
8360 s,@build_vendor@,$build_vendor,;t t
8361 s,@build_os@,$build_os,;t t
8362 s,@host@,$host,;t t
8363 s,@host_cpu@,$host_cpu,;t t
8364 s,@host_vendor@,$host_vendor,;t t
8365 s,@host_os@,$host_os,;t t
8366 s,@LIBICONV@,$LIBICONV,;t t
8367 s,@LTLIBICONV@,$LTLIBICONV,;t t
8368 s,@INTLLIBS@,$INTLLIBS,;t t
8369 s,@LIBINTL@,$LIBINTL,;t t
8370 s,@LTLIBINTL@,$LTLIBINTL,;t t
8371 s,@POSUB@,$POSUB,;t t
8372 s,@YACC@,$YACC,;t t
8373 s,@LEX@,$LEX,;t t
8374 s,@LEXLIB@,$LEXLIB,;t t
8375 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
8376 s,@CXX@,$CXX,;t t
8377 s,@CXXFLAGS@,$CXXFLAGS,;t t
8378 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
8379 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
8380 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
8381 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
8382 s,@LN_S@,$LN_S,;t t
8383 s,@RANLIB@,$RANLIB,;t t
8384 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8385 s,@BISON@,$BISON,;t t
8386 s,@HELP2MAN@,$HELP2MAN,;t t
8387 s,@M4@,$M4,;t t
8388 s,@INDENT@,$INDENT,;t t
8389 s,@CPP@,$CPP,;t t
8390 s,@EGREP@,$EGREP,;t t
8391 s,@LIBOBJS@,$LIBOBJS,;t t
8392 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8393 s,@SHEXT@,$SHEXT,;t t
8394 CEOF
8396 _ACEOF
8398 cat >>$CONFIG_STATUS <<\_ACEOF
8399 # Split the substitutions into bite-sized pieces for seds with
8400 # small command number limits, like on Digital OSF/1 and HP-UX.
8401 ac_max_sed_lines=48
8402 ac_sed_frag=1 # Number of current file.
8403 ac_beg=1 # First line for current file.
8404 ac_end=$ac_max_sed_lines # Line after last line for current file.
8405 ac_more_lines=:
8406 ac_sed_cmds=
8407 while $ac_more_lines; do
8408 if test $ac_beg -gt 1; then
8409 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8410 else
8411 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8413 if test ! -s $tmp/subs.frag; then
8414 ac_more_lines=false
8415 else
8416 # The purpose of the label and of the branching condition is to
8417 # speed up the sed processing (if there are no `@' at all, there
8418 # is no need to browse any of the substitutions).
8419 # These are the two extra sed commands mentioned above.
8420 (echo ':t
8421 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8422 if test -z "$ac_sed_cmds"; then
8423 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8424 else
8425 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8427 ac_sed_frag=`expr $ac_sed_frag + 1`
8428 ac_beg=$ac_end
8429 ac_end=`expr $ac_end + $ac_max_sed_lines`
8431 done
8432 if test -z "$ac_sed_cmds"; then
8433 ac_sed_cmds=cat
8435 fi # test -n "$CONFIG_FILES"
8437 _ACEOF
8438 cat >>$CONFIG_STATUS <<\_ACEOF
8439 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8440 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8441 case $ac_file in
8442 - | *:- | *:-:* ) # input from stdin
8443 cat >$tmp/stdin
8444 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8445 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8446 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8447 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8448 * ) ac_file_in=$ac_file.in ;;
8449 esac
8451 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8452 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8453 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8454 X"$ac_file" : 'X\(//\)[^/]' \| \
8455 X"$ac_file" : 'X\(//\)$' \| \
8456 X"$ac_file" : 'X\(/\)' \| \
8457 . : '\(.\)' 2>/dev/null ||
8458 echo X"$ac_file" |
8459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8460 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8461 /^X\(\/\/\)$/{ s//\1/; q; }
8462 /^X\(\/\).*/{ s//\1/; q; }
8463 s/.*/./; q'`
8464 { if $as_mkdir_p; then
8465 mkdir -p "$ac_dir"
8466 else
8467 as_dir="$ac_dir"
8468 as_dirs=
8469 while test ! -d "$as_dir"; do
8470 as_dirs="$as_dir $as_dirs"
8471 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8472 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8473 X"$as_dir" : 'X\(//\)[^/]' \| \
8474 X"$as_dir" : 'X\(//\)$' \| \
8475 X"$as_dir" : 'X\(/\)' \| \
8476 . : '\(.\)' 2>/dev/null ||
8477 echo X"$as_dir" |
8478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8479 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8480 /^X\(\/\/\)$/{ s//\1/; q; }
8481 /^X\(\/\).*/{ s//\1/; q; }
8482 s/.*/./; q'`
8483 done
8484 test ! -n "$as_dirs" || mkdir $as_dirs
8485 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8486 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8487 { (exit 1); exit 1; }; }; }
8489 ac_builddir=.
8491 if test "$ac_dir" != .; then
8492 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8493 # A "../" for each directory in $ac_dir_suffix.
8494 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8495 else
8496 ac_dir_suffix= ac_top_builddir=
8499 case $srcdir in
8500 .) # No --srcdir option. We are building in place.
8501 ac_srcdir=.
8502 if test -z "$ac_top_builddir"; then
8503 ac_top_srcdir=.
8504 else
8505 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8506 fi ;;
8507 [\\/]* | ?:[\\/]* ) # Absolute path.
8508 ac_srcdir=$srcdir$ac_dir_suffix;
8509 ac_top_srcdir=$srcdir ;;
8510 *) # Relative path.
8511 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8512 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8513 esac
8514 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
8515 # absolute.
8516 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
8517 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
8518 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
8519 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
8522 case $INSTALL in
8523 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8524 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8525 esac
8527 if test x"$ac_file" != x-; then
8528 { echo "$as_me:$LINENO: creating $ac_file" >&5
8529 echo "$as_me: creating $ac_file" >&6;}
8530 rm -f "$ac_file"
8532 # Let's still pretend it is `configure' which instantiates (i.e., don't
8533 # use $as_me), people would be surprised to read:
8534 # /* config.h. Generated by config.status. */
8535 if test x"$ac_file" = x-; then
8536 configure_input=
8537 else
8538 configure_input="$ac_file. "
8540 configure_input=$configure_input"Generated from `echo $ac_file_in |
8541 sed 's,.*/,,'` by configure."
8543 # First look for the input files in the build tree, otherwise in the
8544 # src tree.
8545 ac_file_inputs=`IFS=:
8546 for f in $ac_file_in; do
8547 case $f in
8548 -) echo $tmp/stdin ;;
8549 [\\/$]*)
8550 # Absolute (can't be DOS-style, as IFS=:)
8551 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8552 echo "$as_me: error: cannot find input file: $f" >&2;}
8553 { (exit 1); exit 1; }; }
8554 echo $f;;
8555 *) # Relative
8556 if test -f "$f"; then
8557 # Build tree
8558 echo $f
8559 elif test -f "$srcdir/$f"; then
8560 # Source tree
8561 echo $srcdir/$f
8562 else
8563 # /dev/null tree
8564 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8565 echo "$as_me: error: cannot find input file: $f" >&2;}
8566 { (exit 1); exit 1; }; }
8567 fi;;
8568 esac
8569 done` || { (exit 1); exit 1; }
8570 _ACEOF
8571 cat >>$CONFIG_STATUS <<_ACEOF
8572 sed "$ac_vpsub
8573 $extrasub
8574 _ACEOF
8575 cat >>$CONFIG_STATUS <<\_ACEOF
8577 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8578 s,@configure_input@,$configure_input,;t t
8579 s,@srcdir@,$ac_srcdir,;t t
8580 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8581 s,@top_srcdir@,$ac_top_srcdir,;t t
8582 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8583 s,@builddir@,$ac_builddir,;t t
8584 s,@abs_builddir@,$ac_abs_builddir,;t t
8585 s,@top_builddir@,$ac_top_builddir,;t t
8586 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8587 s,@INSTALL@,$ac_INSTALL,;t t
8588 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8589 rm -f $tmp/stdin
8590 if test x"$ac_file" != x-; then
8591 mv $tmp/out $ac_file
8592 else
8593 cat $tmp/out
8594 rm -f $tmp/out
8597 done
8598 _ACEOF
8599 cat >>$CONFIG_STATUS <<\_ACEOF
8602 # CONFIG_HEADER section.
8605 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8606 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8608 # ac_d sets the value in "#define NAME VALUE" lines.
8609 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8610 ac_dB='[ ].*$,\1#\2'
8611 ac_dC=' '
8612 ac_dD=',;t'
8613 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8614 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8615 ac_uB='$,\1#\2define\3'
8616 ac_uC=' '
8617 ac_uD=',;t'
8619 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8620 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8621 case $ac_file in
8622 - | *:- | *:-:* ) # input from stdin
8623 cat >$tmp/stdin
8624 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8625 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8626 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8627 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8628 * ) ac_file_in=$ac_file.in ;;
8629 esac
8631 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8632 echo "$as_me: creating $ac_file" >&6;}
8634 # First look for the input files in the build tree, otherwise in the
8635 # src tree.
8636 ac_file_inputs=`IFS=:
8637 for f in $ac_file_in; do
8638 case $f in
8639 -) echo $tmp/stdin ;;
8640 [\\/$]*)
8641 # Absolute (can't be DOS-style, as IFS=:)
8642 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8643 echo "$as_me: error: cannot find input file: $f" >&2;}
8644 { (exit 1); exit 1; }; }
8645 echo $f;;
8646 *) # Relative
8647 if test -f "$f"; then
8648 # Build tree
8649 echo $f
8650 elif test -f "$srcdir/$f"; then
8651 # Source tree
8652 echo $srcdir/$f
8653 else
8654 # /dev/null tree
8655 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8656 echo "$as_me: error: cannot find input file: $f" >&2;}
8657 { (exit 1); exit 1; }; }
8658 fi;;
8659 esac
8660 done` || { (exit 1); exit 1; }
8661 # Remove the trailing spaces.
8662 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8664 _ACEOF
8666 # Transform confdefs.h into two sed scripts, `conftest.defines' and
8667 # `conftest.undefs', that substitutes the proper values into
8668 # config.h.in to produce config.h. The first handles `#define'
8669 # templates, and the second `#undef' templates.
8670 # And first: Protect against being on the right side of a sed subst in
8671 # config.status. Protect against being in an unquoted here document
8672 # in config.status.
8673 rm -f conftest.defines conftest.undefs
8674 # Using a here document instead of a string reduces the quoting nightmare.
8675 # Putting comments in sed scripts is not portable.
8677 # `end' is used to avoid that the second main sed command (meant for
8678 # 0-ary CPP macros) applies to n-ary macro definitions.
8679 # See the Autoconf documentation for `clear'.
8680 cat >confdef2sed.sed <<\_ACEOF
8681 s/[\\&,]/\\&/g
8682 s,[\\$`],\\&,g
8683 t clear
8684 : clear
8685 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8686 t end
8687 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8688 : end
8689 _ACEOF
8690 # If some macros were called several times there might be several times
8691 # the same #defines, which is useless. Nevertheless, we may not want to
8692 # sort them, since we want the *last* AC-DEFINE to be honored.
8693 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8694 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8695 rm -f confdef2sed.sed
8697 # This sed command replaces #undef with comments. This is necessary, for
8698 # example, in the case of _POSIX_SOURCE, which is predefined and required
8699 # on some systems where configure will not decide to define it.
8700 cat >>conftest.undefs <<\_ACEOF
8701 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8702 _ACEOF
8704 # Break up conftest.defines because some shells have a limit on the size
8705 # of here documents, and old seds have small limits too (100 cmds).
8706 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8707 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8708 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8709 echo ' :' >>$CONFIG_STATUS
8710 rm -f conftest.tail
8711 while grep . conftest.defines >/dev/null
8713 # Write a limited-size here document to $tmp/defines.sed.
8714 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8715 # Speed up: don't consider the non `#define' lines.
8716 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8717 # Work around the forget-to-reset-the-flag bug.
8718 echo 't clr' >>$CONFIG_STATUS
8719 echo ': clr' >>$CONFIG_STATUS
8720 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8721 echo 'CEOF
8722 sed -f $tmp/defines.sed $tmp/in >$tmp/out
8723 rm -f $tmp/in
8724 mv $tmp/out $tmp/in
8725 ' >>$CONFIG_STATUS
8726 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8727 rm -f conftest.defines
8728 mv conftest.tail conftest.defines
8729 done
8730 rm -f conftest.defines
8731 echo ' fi # grep' >>$CONFIG_STATUS
8732 echo >>$CONFIG_STATUS
8734 # Break up conftest.undefs because some shells have a limit on the size
8735 # of here documents, and old seds have small limits too (100 cmds).
8736 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8737 rm -f conftest.tail
8738 while grep . conftest.undefs >/dev/null
8740 # Write a limited-size here document to $tmp/undefs.sed.
8741 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8742 # Speed up: don't consider the non `#undef'
8743 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8744 # Work around the forget-to-reset-the-flag bug.
8745 echo 't clr' >>$CONFIG_STATUS
8746 echo ': clr' >>$CONFIG_STATUS
8747 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8748 echo 'CEOF
8749 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8750 rm -f $tmp/in
8751 mv $tmp/out $tmp/in
8752 ' >>$CONFIG_STATUS
8753 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8754 rm -f conftest.undefs
8755 mv conftest.tail conftest.undefs
8756 done
8757 rm -f conftest.undefs
8759 cat >>$CONFIG_STATUS <<\_ACEOF
8760 # Let's still pretend it is `configure' which instantiates (i.e., don't
8761 # use $as_me), people would be surprised to read:
8762 # /* config.h. Generated by config.status. */
8763 if test x"$ac_file" = x-; then
8764 echo "/* Generated by configure. */" >$tmp/config.h
8765 else
8766 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8768 cat $tmp/in >>$tmp/config.h
8769 rm -f $tmp/in
8770 if test x"$ac_file" != x-; then
8771 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
8772 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8773 echo "$as_me: $ac_file is unchanged" >&6;}
8774 else
8775 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8776 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8777 X"$ac_file" : 'X\(//\)[^/]' \| \
8778 X"$ac_file" : 'X\(//\)$' \| \
8779 X"$ac_file" : 'X\(/\)' \| \
8780 . : '\(.\)' 2>/dev/null ||
8781 echo X"$ac_file" |
8782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8783 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8784 /^X\(\/\/\)$/{ s//\1/; q; }
8785 /^X\(\/\).*/{ s//\1/; q; }
8786 s/.*/./; q'`
8787 { if $as_mkdir_p; then
8788 mkdir -p "$ac_dir"
8789 else
8790 as_dir="$ac_dir"
8791 as_dirs=
8792 while test ! -d "$as_dir"; do
8793 as_dirs="$as_dir $as_dirs"
8794 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8795 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8796 X"$as_dir" : 'X\(//\)[^/]' \| \
8797 X"$as_dir" : 'X\(//\)$' \| \
8798 X"$as_dir" : 'X\(/\)' \| \
8799 . : '\(.\)' 2>/dev/null ||
8800 echo X"$as_dir" |
8801 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8802 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8803 /^X\(\/\/\)$/{ s//\1/; q; }
8804 /^X\(\/\).*/{ s//\1/; q; }
8805 s/.*/./; q'`
8806 done
8807 test ! -n "$as_dirs" || mkdir $as_dirs
8808 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8809 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8810 { (exit 1); exit 1; }; }; }
8812 rm -f $ac_file
8813 mv $tmp/config.h $ac_file
8815 else
8816 cat $tmp/config.h
8817 rm -f $tmp/config.h
8819 # Compute $ac_file's index in $config_headers.
8820 _am_stamp_count=1
8821 for _am_header in $config_headers :; do
8822 case $_am_header in
8823 $ac_file | $ac_file:* )
8824 break ;;
8826 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8827 esac
8828 done
8829 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
8830 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8831 X$ac_file : 'X\(//\)[^/]' \| \
8832 X$ac_file : 'X\(//\)$' \| \
8833 X$ac_file : 'X\(/\)' \| \
8834 . : '\(.\)' 2>/dev/null ||
8835 echo X$ac_file |
8836 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8837 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8838 /^X\(\/\/\)$/{ s//\1/; q; }
8839 /^X\(\/\).*/{ s//\1/; q; }
8840 s/.*/./; q'`/stamp-h$_am_stamp_count
8841 done
8842 _ACEOF
8843 cat >>$CONFIG_STATUS <<\_ACEOF
8846 # CONFIG_COMMANDS section.
8848 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8849 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8850 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8851 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8852 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8853 X"$ac_dest" : 'X\(//\)[^/]' \| \
8854 X"$ac_dest" : 'X\(//\)$' \| \
8855 X"$ac_dest" : 'X\(/\)' \| \
8856 . : '\(.\)' 2>/dev/null ||
8857 echo X"$ac_dest" |
8858 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8859 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8860 /^X\(\/\/\)$/{ s//\1/; q; }
8861 /^X\(\/\).*/{ s//\1/; q; }
8862 s/.*/./; q'`
8863 ac_builddir=.
8865 if test "$ac_dir" != .; then
8866 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8867 # A "../" for each directory in $ac_dir_suffix.
8868 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8869 else
8870 ac_dir_suffix= ac_top_builddir=
8873 case $srcdir in
8874 .) # No --srcdir option. We are building in place.
8875 ac_srcdir=.
8876 if test -z "$ac_top_builddir"; then
8877 ac_top_srcdir=.
8878 else
8879 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8880 fi ;;
8881 [\\/]* | ?:[\\/]* ) # Absolute path.
8882 ac_srcdir=$srcdir$ac_dir_suffix;
8883 ac_top_srcdir=$srcdir ;;
8884 *) # Relative path.
8885 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8886 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8887 esac
8888 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
8889 # absolute.
8890 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
8891 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
8892 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
8893 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
8896 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8897 echo "$as_me: executing $ac_dest commands" >&6;}
8898 case $ac_dest in
8899 default-1 )
8900 for ac_file in $CONFIG_FILES; do
8901 # Support "outfile[:infile[:infile...]]"
8902 case "$ac_file" in
8903 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8904 esac
8905 # PO directories have a Makefile.in generated from Makefile.in.in.
8906 case "$ac_file" in */Makefile.in)
8907 # Adjust a relative srcdir.
8908 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
8909 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
8910 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
8911 # In autoconf-2.13 it is called $ac_given_srcdir.
8912 # In autoconf-2.50 it is called $srcdir.
8913 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8914 case "$ac_given_srcdir" in
8915 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
8916 /*) top_srcdir="$ac_given_srcdir" ;;
8917 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
8918 esac
8919 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8920 rm -f "$ac_dir/POTFILES"
8921 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8922 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
8923 POMAKEFILEDEPS="POTFILES.in"
8924 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
8925 # on $ac_dir but don't depend on user-specified configuration
8926 # parameters.
8927 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
8928 # The LINGUAS file contains the set of available languages.
8929 if test -n "$OBSOLETE_ALL_LINGUAS"; then
8930 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
8932 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
8933 # Hide the ALL_LINGUAS assigment from automake.
8934 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
8935 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
8936 else
8937 # The set of available languages was given in configure.in.
8938 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
8940 case "$ac_given_srcdir" in
8941 .) srcdirpre= ;;
8942 *) srcdirpre='$(srcdir)/' ;;
8943 esac
8944 POFILES=
8945 GMOFILES=
8946 UPDATEPOFILES=
8947 DUMMYPOFILES=
8948 for lang in $ALL_LINGUAS; do
8949 POFILES="$POFILES $srcdirpre$lang.po"
8950 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
8951 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
8952 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
8953 done
8954 # CATALOGS depends on both $ac_dir and the user's LINGUAS
8955 # environment variable.
8956 INST_LINGUAS=
8957 if test -n "$ALL_LINGUAS"; then
8958 for presentlang in $ALL_LINGUAS; do
8959 useit=no
8960 if test "%UNSET%" != "$LINGUAS"; then
8961 desiredlanguages="$LINGUAS"
8962 else
8963 desiredlanguages="$ALL_LINGUAS"
8965 for desiredlang in $desiredlanguages; do
8966 # Use the presentlang catalog if desiredlang is
8967 # a. equal to presentlang, or
8968 # b. a variant of presentlang (because in this case,
8969 # presentlang can be used as a fallback for messages
8970 # which are not translated in the desiredlang catalog).
8971 case "$desiredlang" in
8972 "$presentlang"*) useit=yes;;
8973 esac
8974 done
8975 if test $useit = yes; then
8976 INST_LINGUAS="$INST_LINGUAS $presentlang"
8978 done
8980 CATALOGS=
8981 if test -n "$INST_LINGUAS"; then
8982 for lang in $INST_LINGUAS; do
8983 CATALOGS="$CATALOGS $lang.gmo"
8984 done
8986 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
8987 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
8988 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
8989 if test -f "$f"; then
8990 case "$f" in
8991 *.orig | *.bak | *~) ;;
8992 *) cat "$f" >> "$ac_dir/Makefile" ;;
8993 esac
8995 done
8998 esac
8999 done ;;
9000 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
9001 # Strip MF so we end up with the name of the file.
9002 mf=`echo "$mf" | sed -e 's/:.*$//'`
9003 # Check whether this is an Automake generated Makefile or not.
9004 # We used to match only the files named `Makefile.in', but
9005 # some people rename them; so instead we look at the file content.
9006 # Grep'ing the first line is not enough: some people post-process
9007 # each Makefile.in and add a new line on top of each file to say so.
9008 # So let's grep whole file.
9009 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
9010 dirpart=`(dirname "$mf") 2>/dev/null ||
9011 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9012 X"$mf" : 'X\(//\)[^/]' \| \
9013 X"$mf" : 'X\(//\)$' \| \
9014 X"$mf" : 'X\(/\)' \| \
9015 . : '\(.\)' 2>/dev/null ||
9016 echo X"$mf" |
9017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9018 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9019 /^X\(\/\/\)$/{ s//\1/; q; }
9020 /^X\(\/\).*/{ s//\1/; q; }
9021 s/.*/./; q'`
9022 else
9023 continue
9025 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
9026 # Extract the definition of DEP_FILES from the Makefile without
9027 # running `make'.
9028 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
9029 test -z "$DEPDIR" && continue
9030 # When using ansi2knr, U may be empty or an underscore; expand it
9031 U=`sed -n -e '/^U = / s///p' < "$mf"`
9032 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
9033 # We invoke sed twice because it is the simplest approach to
9034 # changing $(DEPDIR) to its actual value in the expansion.
9035 for file in `sed -n -e '
9036 /^DEP_FILES = .*\\\\$/ {
9037 s/^DEP_FILES = //
9038 :loop
9039 s/\\\\$//
9042 /\\\\$/ b loop
9045 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
9046 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9047 # Make sure the directory exists.
9048 test -f "$dirpart/$file" && continue
9049 fdir=`(dirname "$file") 2>/dev/null ||
9050 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9051 X"$file" : 'X\(//\)[^/]' \| \
9052 X"$file" : 'X\(//\)$' \| \
9053 X"$file" : 'X\(/\)' \| \
9054 . : '\(.\)' 2>/dev/null ||
9055 echo X"$file" |
9056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9057 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9058 /^X\(\/\/\)$/{ s//\1/; q; }
9059 /^X\(\/\).*/{ s//\1/; q; }
9060 s/.*/./; q'`
9061 { if $as_mkdir_p; then
9062 mkdir -p $dirpart/$fdir
9063 else
9064 as_dir=$dirpart/$fdir
9065 as_dirs=
9066 while test ! -d "$as_dir"; do
9067 as_dirs="$as_dir $as_dirs"
9068 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9069 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9070 X"$as_dir" : 'X\(//\)[^/]' \| \
9071 X"$as_dir" : 'X\(//\)$' \| \
9072 X"$as_dir" : 'X\(/\)' \| \
9073 . : '\(.\)' 2>/dev/null ||
9074 echo X"$as_dir" |
9075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9076 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9077 /^X\(\/\/\)$/{ s//\1/; q; }
9078 /^X\(\/\).*/{ s//\1/; q; }
9079 s/.*/./; q'`
9080 done
9081 test ! -n "$as_dirs" || mkdir $as_dirs
9082 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
9083 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
9084 { (exit 1); exit 1; }; }; }
9086 # echo "creating $dirpart/$file"
9087 echo '# dummy' > "$dirpart/$file"
9088 done
9089 done
9091 esac
9092 done
9093 _ACEOF
9095 cat >>$CONFIG_STATUS <<\_ACEOF
9097 { (exit 0); exit 0; }
9098 _ACEOF
9099 chmod +x $CONFIG_STATUS
9100 ac_clean_files=$ac_clean_files_save
9103 # configure is writing to config.log, and then calls config.status.
9104 # config.status does its own redirection, appending to config.log.
9105 # Unfortunately, on DOS this fails, as config.log is still kept open
9106 # by configure, so config.status won't be able to write to it; its
9107 # output is simply discarded. So we exec the FD to /dev/null,
9108 # effectively closing config.log, so it can be properly (re)opened and
9109 # appended to by config.status. When coming back to configure, we
9110 # need to make the FD available again.
9111 if test "$no_create" != yes; then
9112 ac_cs_success=:
9113 ac_config_status_args=
9114 test "$silent" = yes &&
9115 ac_config_status_args="$ac_config_status_args --quiet"
9116 exec 5>/dev/null
9117 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9118 exec 5>>config.log
9119 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9120 # would make configure fail if this is the last instruction.
9121 $ac_cs_success || { (exit 1); exit 1; }