tools/llvm: Do not build with symbols
[minix3.git] / external / bsd / flex / dist / configure
blob30106ae713fe7cc0b9f5e2e7c8385c5eaa752b38
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for the fast lexical analyser generator 2.5.37.
5 # Report bugs to <flex-help@lists.sourceforge.net>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 # Inc.
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
34 esac
38 as_nl='
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
93 # Find who we are. Look in the path if we contain no directory separator.
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146 else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
152 esac
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 else
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179 else
180 as_have_required=no
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184 else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
204 done;;
205 esac
206 as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: flex-help@lists.sourceforge.net about your system,
235 $0: including any error possibly output before this
236 $0: message. Then install a modern shell, or manually run
237 $0: the script under such a shell if you do have one."
239 exit 1
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
257 { eval $1=; unset $1;}
259 as_unset=as_fn_unset
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
266 return $1
267 } # as_fn_set_status
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
274 set +e
275 as_fn_set_status $1
276 exit $1
277 } # as_fn_exit
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
310 /^X\(\/\/\)$/{
311 s//\1/
314 /^X\(\/\).*/{
315 s//\1/
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
335 eval $1+=\$2
337 else
338 as_fn_append ()
340 eval $1=\$$1\$2
342 fi # as_fn_append
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
352 as_val=$(( $* ))
354 else
355 as_fn_arith ()
357 as_val=`expr "$@" || test $? -eq 1`
359 fi # as_fn_arith
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
367 as_fn_error ()
369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
376 } # as_fn_error
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381 else
382 as_expr=false
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387 else
388 as_basename=false
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393 else
394 as_dirname=false
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
406 /^X\/\(\/\/\)$/{
407 s//\1/
410 /^X\/\(\/\).*/{
411 s//\1/
414 s/.*/./; q'`
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
429 sed -n '
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
437 :lineno
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
463 esac;;
465 ECHO_N='-n';;
466 esac
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471 else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
487 as_ln_s='cp -p'
489 else
490 as_ln_s='cp -p'
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
497 else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
502 if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504 else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
515 case $1 in #(
516 -*)set "./$1";;
517 esac;
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532 test -n "$DJDIR" || exec 7<&0 </dev/null
533 exec 6>&1
535 # Name of the host.
536 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
541 # Initializations.
543 ac_default_prefix=/usr/local
544 ac_clean_files=
545 ac_config_libobj_dir=.
546 LIBOBJS=
547 cross_compiling=no
548 subdirs=
549 MFLAGS=
550 MAKEFLAGS=
552 # Identity of this package.
553 PACKAGE_NAME='the fast lexical analyser generator'
554 PACKAGE_TARNAME='flex'
555 PACKAGE_VERSION='2.5.37'
556 PACKAGE_STRING='the fast lexical analyser generator 2.5.37'
557 PACKAGE_BUGREPORT='flex-help@lists.sourceforge.net'
558 PACKAGE_URL=''
560 ac_unique_file="scan.l"
561 ac_config_libobj_dir=lib
562 # Factoring default headers for most tests.
563 ac_includes_default="\
564 #include <stdio.h>
565 #ifdef HAVE_SYS_TYPES_H
566 # include <sys/types.h>
567 #endif
568 #ifdef HAVE_SYS_STAT_H
569 # include <sys/stat.h>
570 #endif
571 #ifdef STDC_HEADERS
572 # include <stdlib.h>
573 # include <stddef.h>
574 #else
575 # ifdef HAVE_STDLIB_H
576 # include <stdlib.h>
577 # endif
578 #endif
579 #ifdef HAVE_STRING_H
580 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 # include <memory.h>
582 # endif
583 # include <string.h>
584 #endif
585 #ifdef HAVE_STRINGS_H
586 # include <strings.h>
587 #endif
588 #ifdef HAVE_INTTYPES_H
589 # include <inttypes.h>
590 #endif
591 #ifdef HAVE_STDINT_H
592 # include <stdint.h>
593 #endif
594 #ifdef HAVE_UNISTD_H
595 # include <unistd.h>
596 #endif"
598 ac_subst_vars='am__EXEEXT_FALSE
599 am__EXEEXT_TRUE
600 LTLIBOBJS
601 LIBOBJS
602 ALLOCA
603 EGREP
604 GREP
606 INDENT
608 HELP2MAN
609 BISON
610 RANLIB
611 LN_S
612 am__fastdepCXX_FALSE
613 am__fastdepCXX_TRUE
614 CXXDEPMODE
615 ac_ct_CXX
616 CXXFLAGS
618 LEXLIB
619 LEX_OUTPUT_ROOT
621 YFLAGS
622 YACC
623 POSUB
624 LTLIBINTL
625 LIBINTL
626 INTLLIBS
627 LTLIBICONV
628 LIBICONV
629 host_os
630 host_vendor
631 host_cpu
632 host
633 build_os
634 build_vendor
635 build_cpu
636 build
637 am__fastdepCC_FALSE
638 am__fastdepCC_TRUE
639 CCDEPMODE
640 AMDEPBACKSLASH
641 AMDEP_FALSE
642 AMDEP_TRUE
643 am__quote
644 am__include
645 DEPDIR
646 OBJEXT
647 EXEEXT
648 ac_ct_CC
649 CPPFLAGS
650 LDFLAGS
651 CFLAGS
653 MSGMERGE
654 XGETTEXT
655 GMSGFMT
656 MSGFMT
657 USE_NLS
658 MKINSTALLDIRS
659 am__untar
660 am__tar
661 AMTAR
662 am__leading_dot
663 SET_MAKE
665 mkdir_p
666 MKDIR_P
667 INSTALL_STRIP_PROGRAM
668 STRIP
669 install_sh
670 MAKEINFO
671 AUTOHEADER
672 AUTOMAKE
673 AUTOCONF
674 ACLOCAL
675 VERSION
676 PACKAGE
677 CYGPATH_W
678 am__isrc
679 INSTALL_DATA
680 INSTALL_SCRIPT
681 INSTALL_PROGRAM
682 target_alias
683 host_alias
684 build_alias
685 LIBS
686 ECHO_T
687 ECHO_N
688 ECHO_C
689 DEFS
690 mandir
691 localedir
692 libdir
693 psdir
694 pdfdir
695 dvidir
696 htmldir
697 infodir
698 docdir
699 oldincludedir
700 includedir
701 localstatedir
702 sharedstatedir
703 sysconfdir
704 datadir
705 datarootdir
706 libexecdir
707 sbindir
708 bindir
709 program_transform_name
710 prefix
711 exec_prefix
712 PACKAGE_URL
713 PACKAGE_BUGREPORT
714 PACKAGE_STRING
715 PACKAGE_VERSION
716 PACKAGE_TARNAME
717 PACKAGE_NAME
718 PATH_SEPARATOR
719 SHELL'
720 ac_subst_files=''
721 ac_user_opts='
722 enable_option_checking
723 enable_nls
724 enable_dependency_tracking
725 with_gnu_ld
726 enable_rpath
727 with_libiconv_prefix
728 with_libintl_prefix
730 ac_precious_vars='build_alias
731 host_alias
732 target_alias
734 CFLAGS
735 LDFLAGS
736 LIBS
737 CPPFLAGS
738 YACC
739 YFLAGS
741 CXXFLAGS
743 CPP'
746 # Initialize some variables set by options.
747 ac_init_help=
748 ac_init_version=false
749 ac_unrecognized_opts=
750 ac_unrecognized_sep=
751 # The variables have the same names as the options, with
752 # dashes changed to underlines.
753 cache_file=/dev/null
754 exec_prefix=NONE
755 no_create=
756 no_recursion=
757 prefix=NONE
758 program_prefix=NONE
759 program_suffix=NONE
760 program_transform_name=s,x,x,
761 silent=
762 site=
763 srcdir=
764 verbose=
765 x_includes=NONE
766 x_libraries=NONE
768 # Installation directory options.
769 # These are left unexpanded so users can "make install exec_prefix=/foo"
770 # and all the variables that are supposed to be based on exec_prefix
771 # by default will actually change.
772 # Use braces instead of parens because sh, perl, etc. also accept them.
773 # (The list follows the same order as the GNU Coding Standards.)
774 bindir='${exec_prefix}/bin'
775 sbindir='${exec_prefix}/sbin'
776 libexecdir='${exec_prefix}/libexec'
777 datarootdir='${prefix}/share'
778 datadir='${datarootdir}'
779 sysconfdir='${prefix}/etc'
780 sharedstatedir='${prefix}/com'
781 localstatedir='${prefix}/var'
782 includedir='${prefix}/include'
783 oldincludedir='/usr/include'
784 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
785 infodir='${datarootdir}/info'
786 htmldir='${docdir}'
787 dvidir='${docdir}'
788 pdfdir='${docdir}'
789 psdir='${docdir}'
790 libdir='${exec_prefix}/lib'
791 localedir='${datarootdir}/locale'
792 mandir='${datarootdir}/man'
794 ac_prev=
795 ac_dashdash=
796 for ac_option
798 # If the previous option needs an argument, assign it.
799 if test -n "$ac_prev"; then
800 eval $ac_prev=\$ac_option
801 ac_prev=
802 continue
805 case $ac_option in
806 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
807 *) ac_optarg=yes ;;
808 esac
810 # Accept the important Cygnus configure options, so we can diagnose typos.
812 case $ac_dashdash$ac_option in
814 ac_dashdash=yes ;;
816 -bindir | --bindir | --bindi | --bind | --bin | --bi)
817 ac_prev=bindir ;;
818 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
819 bindir=$ac_optarg ;;
821 -build | --build | --buil | --bui | --bu)
822 ac_prev=build_alias ;;
823 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
824 build_alias=$ac_optarg ;;
826 -cache-file | --cache-file | --cache-fil | --cache-fi \
827 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
828 ac_prev=cache_file ;;
829 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
830 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
831 cache_file=$ac_optarg ;;
833 --config-cache | -C)
834 cache_file=config.cache ;;
836 -datadir | --datadir | --datadi | --datad)
837 ac_prev=datadir ;;
838 -datadir=* | --datadir=* | --datadi=* | --datad=*)
839 datadir=$ac_optarg ;;
841 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
842 | --dataroo | --dataro | --datar)
843 ac_prev=datarootdir ;;
844 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
845 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
846 datarootdir=$ac_optarg ;;
848 -disable-* | --disable-*)
849 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
850 # Reject names that are not valid shell variable names.
851 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
852 as_fn_error "invalid feature name: $ac_useropt"
853 ac_useropt_orig=$ac_useropt
854 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
855 case $ac_user_opts in
857 "enable_$ac_useropt"
858 "*) ;;
859 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
860 ac_unrecognized_sep=', ';;
861 esac
862 eval enable_$ac_useropt=no ;;
864 -docdir | --docdir | --docdi | --doc | --do)
865 ac_prev=docdir ;;
866 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
867 docdir=$ac_optarg ;;
869 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
870 ac_prev=dvidir ;;
871 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
872 dvidir=$ac_optarg ;;
874 -enable-* | --enable-*)
875 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
876 # Reject names that are not valid shell variable names.
877 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
878 as_fn_error "invalid feature name: $ac_useropt"
879 ac_useropt_orig=$ac_useropt
880 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
881 case $ac_user_opts in
883 "enable_$ac_useropt"
884 "*) ;;
885 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
886 ac_unrecognized_sep=', ';;
887 esac
888 eval enable_$ac_useropt=\$ac_optarg ;;
890 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
891 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
892 | --exec | --exe | --ex)
893 ac_prev=exec_prefix ;;
894 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
895 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
896 | --exec=* | --exe=* | --ex=*)
897 exec_prefix=$ac_optarg ;;
899 -gas | --gas | --ga | --g)
900 # Obsolete; use --with-gas.
901 with_gas=yes ;;
903 -help | --help | --hel | --he | -h)
904 ac_init_help=long ;;
905 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
906 ac_init_help=recursive ;;
907 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
908 ac_init_help=short ;;
910 -host | --host | --hos | --ho)
911 ac_prev=host_alias ;;
912 -host=* | --host=* | --hos=* | --ho=*)
913 host_alias=$ac_optarg ;;
915 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
916 ac_prev=htmldir ;;
917 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
918 | --ht=*)
919 htmldir=$ac_optarg ;;
921 -includedir | --includedir | --includedi | --included | --include \
922 | --includ | --inclu | --incl | --inc)
923 ac_prev=includedir ;;
924 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
925 | --includ=* | --inclu=* | --incl=* | --inc=*)
926 includedir=$ac_optarg ;;
928 -infodir | --infodir | --infodi | --infod | --info | --inf)
929 ac_prev=infodir ;;
930 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
931 infodir=$ac_optarg ;;
933 -libdir | --libdir | --libdi | --libd)
934 ac_prev=libdir ;;
935 -libdir=* | --libdir=* | --libdi=* | --libd=*)
936 libdir=$ac_optarg ;;
938 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
939 | --libexe | --libex | --libe)
940 ac_prev=libexecdir ;;
941 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
942 | --libexe=* | --libex=* | --libe=*)
943 libexecdir=$ac_optarg ;;
945 -localedir | --localedir | --localedi | --localed | --locale)
946 ac_prev=localedir ;;
947 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
948 localedir=$ac_optarg ;;
950 -localstatedir | --localstatedir | --localstatedi | --localstated \
951 | --localstate | --localstat | --localsta | --localst | --locals)
952 ac_prev=localstatedir ;;
953 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
954 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
955 localstatedir=$ac_optarg ;;
957 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
958 ac_prev=mandir ;;
959 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
960 mandir=$ac_optarg ;;
962 -nfp | --nfp | --nf)
963 # Obsolete; use --without-fp.
964 with_fp=no ;;
966 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
967 | --no-cr | --no-c | -n)
968 no_create=yes ;;
970 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
971 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
972 no_recursion=yes ;;
974 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
975 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
976 | --oldin | --oldi | --old | --ol | --o)
977 ac_prev=oldincludedir ;;
978 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
979 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
980 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
981 oldincludedir=$ac_optarg ;;
983 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
984 ac_prev=prefix ;;
985 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
986 prefix=$ac_optarg ;;
988 -program-prefix | --program-prefix | --program-prefi | --program-pref \
989 | --program-pre | --program-pr | --program-p)
990 ac_prev=program_prefix ;;
991 -program-prefix=* | --program-prefix=* | --program-prefi=* \
992 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
993 program_prefix=$ac_optarg ;;
995 -program-suffix | --program-suffix | --program-suffi | --program-suff \
996 | --program-suf | --program-su | --program-s)
997 ac_prev=program_suffix ;;
998 -program-suffix=* | --program-suffix=* | --program-suffi=* \
999 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1000 program_suffix=$ac_optarg ;;
1002 -program-transform-name | --program-transform-name \
1003 | --program-transform-nam | --program-transform-na \
1004 | --program-transform-n | --program-transform- \
1005 | --program-transform | --program-transfor \
1006 | --program-transfo | --program-transf \
1007 | --program-trans | --program-tran \
1008 | --progr-tra | --program-tr | --program-t)
1009 ac_prev=program_transform_name ;;
1010 -program-transform-name=* | --program-transform-name=* \
1011 | --program-transform-nam=* | --program-transform-na=* \
1012 | --program-transform-n=* | --program-transform-=* \
1013 | --program-transform=* | --program-transfor=* \
1014 | --program-transfo=* | --program-transf=* \
1015 | --program-trans=* | --program-tran=* \
1016 | --progr-tra=* | --program-tr=* | --program-t=*)
1017 program_transform_name=$ac_optarg ;;
1019 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1020 ac_prev=pdfdir ;;
1021 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1022 pdfdir=$ac_optarg ;;
1024 -psdir | --psdir | --psdi | --psd | --ps)
1025 ac_prev=psdir ;;
1026 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1027 psdir=$ac_optarg ;;
1029 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1030 | -silent | --silent | --silen | --sile | --sil)
1031 silent=yes ;;
1033 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1034 ac_prev=sbindir ;;
1035 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1036 | --sbi=* | --sb=*)
1037 sbindir=$ac_optarg ;;
1039 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1040 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1041 | --sharedst | --shareds | --shared | --share | --shar \
1042 | --sha | --sh)
1043 ac_prev=sharedstatedir ;;
1044 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1045 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1046 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1047 | --sha=* | --sh=*)
1048 sharedstatedir=$ac_optarg ;;
1050 -site | --site | --sit)
1051 ac_prev=site ;;
1052 -site=* | --site=* | --sit=*)
1053 site=$ac_optarg ;;
1055 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1056 ac_prev=srcdir ;;
1057 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1058 srcdir=$ac_optarg ;;
1060 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1061 | --syscon | --sysco | --sysc | --sys | --sy)
1062 ac_prev=sysconfdir ;;
1063 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1064 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1065 sysconfdir=$ac_optarg ;;
1067 -target | --target | --targe | --targ | --tar | --ta | --t)
1068 ac_prev=target_alias ;;
1069 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1070 target_alias=$ac_optarg ;;
1072 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1073 verbose=yes ;;
1075 -version | --version | --versio | --versi | --vers | -V)
1076 ac_init_version=: ;;
1078 -with-* | --with-*)
1079 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1080 # Reject names that are not valid shell variable names.
1081 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082 as_fn_error "invalid package name: $ac_useropt"
1083 ac_useropt_orig=$ac_useropt
1084 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085 case $ac_user_opts in
1087 "with_$ac_useropt"
1088 "*) ;;
1089 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1090 ac_unrecognized_sep=', ';;
1091 esac
1092 eval with_$ac_useropt=\$ac_optarg ;;
1094 -without-* | --without-*)
1095 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098 as_fn_error "invalid package name: $ac_useropt"
1099 ac_useropt_orig=$ac_useropt
1100 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101 case $ac_user_opts in
1103 "with_$ac_useropt"
1104 "*) ;;
1105 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1106 ac_unrecognized_sep=', ';;
1107 esac
1108 eval with_$ac_useropt=no ;;
1110 --x)
1111 # Obsolete; use --with-x.
1112 with_x=yes ;;
1114 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1115 | --x-incl | --x-inc | --x-in | --x-i)
1116 ac_prev=x_includes ;;
1117 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1118 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1119 x_includes=$ac_optarg ;;
1121 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1122 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1123 ac_prev=x_libraries ;;
1124 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1125 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1126 x_libraries=$ac_optarg ;;
1128 -*) as_fn_error "unrecognized option: \`$ac_option'
1129 Try \`$0 --help' for more information."
1132 *=*)
1133 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1134 # Reject names that are not valid shell variable names.
1135 case $ac_envvar in #(
1136 '' | [0-9]* | *[!_$as_cr_alnum]* )
1137 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1138 esac
1139 eval $ac_envvar=\$ac_optarg
1140 export $ac_envvar ;;
1143 # FIXME: should be removed in autoconf 3.0.
1144 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1145 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1146 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1147 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1150 esac
1151 done
1153 if test -n "$ac_prev"; then
1154 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1155 as_fn_error "missing argument to $ac_option"
1158 if test -n "$ac_unrecognized_opts"; then
1159 case $enable_option_checking in
1160 no) ;;
1161 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1162 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1163 esac
1166 # Check all directory arguments for consistency.
1167 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1168 datadir sysconfdir sharedstatedir localstatedir includedir \
1169 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1170 libdir localedir mandir
1172 eval ac_val=\$$ac_var
1173 # Remove trailing slashes.
1174 case $ac_val in
1175 */ )
1176 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1177 eval $ac_var=\$ac_val;;
1178 esac
1179 # Be sure to have absolute directory names.
1180 case $ac_val in
1181 [\\/$]* | ?:[\\/]* ) continue;;
1182 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1183 esac
1184 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1185 done
1187 # There might be people who depend on the old broken behavior: `$host'
1188 # used to hold the argument of --host etc.
1189 # FIXME: To remove some day.
1190 build=$build_alias
1191 host=$host_alias
1192 target=$target_alias
1194 # FIXME: To remove some day.
1195 if test "x$host_alias" != x; then
1196 if test "x$build_alias" = x; then
1197 cross_compiling=maybe
1198 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1199 If a cross compiler is detected then cross compile mode will be used." >&2
1200 elif test "x$build_alias" != "x$host_alias"; then
1201 cross_compiling=yes
1205 ac_tool_prefix=
1206 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1208 test "$silent" = yes && exec 6>/dev/null
1211 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1212 ac_ls_di=`ls -di .` &&
1213 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1214 as_fn_error "working directory cannot be determined"
1215 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1216 as_fn_error "pwd does not report name of working directory"
1219 # Find the source files, if location was not specified.
1220 if test -z "$srcdir"; then
1221 ac_srcdir_defaulted=yes
1222 # Try the directory containing this script, then the parent directory.
1223 ac_confdir=`$as_dirname -- "$as_myself" ||
1224 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1225 X"$as_myself" : 'X\(//\)[^/]' \| \
1226 X"$as_myself" : 'X\(//\)$' \| \
1227 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1228 $as_echo X"$as_myself" |
1229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1230 s//\1/
1233 /^X\(\/\/\)[^/].*/{
1234 s//\1/
1237 /^X\(\/\/\)$/{
1238 s//\1/
1241 /^X\(\/\).*/{
1242 s//\1/
1245 s/.*/./; q'`
1246 srcdir=$ac_confdir
1247 if test ! -r "$srcdir/$ac_unique_file"; then
1248 srcdir=..
1250 else
1251 ac_srcdir_defaulted=no
1253 if test ! -r "$srcdir/$ac_unique_file"; then
1254 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1255 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1257 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1258 ac_abs_confdir=`(
1259 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1260 pwd)`
1261 # When building in place, set srcdir=.
1262 if test "$ac_abs_confdir" = "$ac_pwd"; then
1263 srcdir=.
1265 # Remove unnecessary trailing slashes from srcdir.
1266 # Double slashes in file names in object file debugging info
1267 # mess up M-x gdb in Emacs.
1268 case $srcdir in
1269 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1270 esac
1271 for ac_var in $ac_precious_vars; do
1272 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1273 eval ac_env_${ac_var}_value=\$${ac_var}
1274 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1275 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1276 done
1279 # Report the --help message.
1281 if test "$ac_init_help" = "long"; then
1282 # Omit some internal or obsolete options to make the list less imposing.
1283 # This message is too long to be a string in the A/UX 3.1 sh.
1284 cat <<_ACEOF
1285 \`configure' configures the fast lexical analyser generator 2.5.37 to adapt to many kinds of systems.
1287 Usage: $0 [OPTION]... [VAR=VALUE]...
1289 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1290 VAR=VALUE. See below for descriptions of some of the useful variables.
1292 Defaults for the options are specified in brackets.
1294 Configuration:
1295 -h, --help display this help and exit
1296 --help=short display options specific to this package
1297 --help=recursive display the short help of all the included packages
1298 -V, --version display version information and exit
1299 -q, --quiet, --silent do not print \`checking...' messages
1300 --cache-file=FILE cache test results in FILE [disabled]
1301 -C, --config-cache alias for \`--cache-file=config.cache'
1302 -n, --no-create do not create output files
1303 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1305 Installation directories:
1306 --prefix=PREFIX install architecture-independent files in PREFIX
1307 [$ac_default_prefix]
1308 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1309 [PREFIX]
1311 By default, \`make install' will install all the files in
1312 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1313 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1314 for instance \`--prefix=\$HOME'.
1316 For better control, use the options below.
1318 Fine tuning of the installation directories:
1319 --bindir=DIR user executables [EPREFIX/bin]
1320 --sbindir=DIR system admin executables [EPREFIX/sbin]
1321 --libexecdir=DIR program executables [EPREFIX/libexec]
1322 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1323 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1324 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1325 --libdir=DIR object code libraries [EPREFIX/lib]
1326 --includedir=DIR C header files [PREFIX/include]
1327 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1328 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1329 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1330 --infodir=DIR info documentation [DATAROOTDIR/info]
1331 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1332 --mandir=DIR man documentation [DATAROOTDIR/man]
1333 --docdir=DIR documentation root [DATAROOTDIR/doc/flex]
1334 --htmldir=DIR html documentation [DOCDIR]
1335 --dvidir=DIR dvi documentation [DOCDIR]
1336 --pdfdir=DIR pdf documentation [DOCDIR]
1337 --psdir=DIR ps documentation [DOCDIR]
1338 _ACEOF
1340 cat <<\_ACEOF
1342 Program names:
1343 --program-prefix=PREFIX prepend PREFIX to installed program names
1344 --program-suffix=SUFFIX append SUFFIX to installed program names
1345 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1347 System types:
1348 --build=BUILD configure for building on BUILD [guessed]
1349 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1350 _ACEOF
1353 if test -n "$ac_init_help"; then
1354 case $ac_init_help in
1355 short | recursive ) echo "Configuration of the fast lexical analyser generator 2.5.37:";;
1356 esac
1357 cat <<\_ACEOF
1359 Optional Features:
1360 --disable-option-checking ignore unrecognized --enable/--with options
1361 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1362 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1363 --disable-nls do not use Native Language Support
1364 --disable-dependency-tracking speeds up one-time build
1365 --enable-dependency-tracking do not reject slow dependency extractors
1366 --disable-rpath do not hardcode runtime library paths
1368 Optional Packages:
1369 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1370 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1371 --with-gnu-ld assume the C compiler uses GNU ld default=no
1372 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1373 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1374 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1375 --without-libintl-prefix don't search for libintl in includedir and libdir
1377 Some influential environment variables:
1378 CC C compiler command
1379 CFLAGS C compiler flags
1380 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1381 nonstandard directory <lib dir>
1382 LIBS libraries to pass to the linker, e.g. -l<library>
1383 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1384 you have headers in a nonstandard directory <include dir>
1385 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1386 the first program found out of: `bison -y', `byacc', `yacc'.
1387 YFLAGS The list of arguments that will be passed by default to $YACC.
1388 This script will default YFLAGS to the empty string to avoid a
1389 default value of `-d' given by some make applications.
1390 CXX C++ compiler command
1391 CXXFLAGS C++ compiler flags
1392 CPP C preprocessor
1394 Use these variables to override the choices made by `configure' or to help
1395 it to find libraries and programs with nonstandard names/locations.
1397 Report bugs to <flex-help@lists.sourceforge.net>.
1398 _ACEOF
1399 ac_status=$?
1402 if test "$ac_init_help" = "recursive"; then
1403 # If there are subdirs, report their specific --help.
1404 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1405 test -d "$ac_dir" ||
1406 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1407 continue
1408 ac_builddir=.
1410 case "$ac_dir" in
1411 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1413 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1414 # A ".." for each directory in $ac_dir_suffix.
1415 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1416 case $ac_top_builddir_sub in
1417 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1418 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1419 esac ;;
1420 esac
1421 ac_abs_top_builddir=$ac_pwd
1422 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1423 # for backward compatibility:
1424 ac_top_builddir=$ac_top_build_prefix
1426 case $srcdir in
1427 .) # We are building in place.
1428 ac_srcdir=.
1429 ac_top_srcdir=$ac_top_builddir_sub
1430 ac_abs_top_srcdir=$ac_pwd ;;
1431 [\\/]* | ?:[\\/]* ) # Absolute name.
1432 ac_srcdir=$srcdir$ac_dir_suffix;
1433 ac_top_srcdir=$srcdir
1434 ac_abs_top_srcdir=$srcdir ;;
1435 *) # Relative name.
1436 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1437 ac_top_srcdir=$ac_top_build_prefix$srcdir
1438 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1439 esac
1440 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1442 cd "$ac_dir" || { ac_status=$?; continue; }
1443 # Check for guested configure.
1444 if test -f "$ac_srcdir/configure.gnu"; then
1445 echo &&
1446 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1447 elif test -f "$ac_srcdir/configure"; then
1448 echo &&
1449 $SHELL "$ac_srcdir/configure" --help=recursive
1450 else
1451 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1452 fi || ac_status=$?
1453 cd "$ac_pwd" || { ac_status=$?; break; }
1454 done
1457 test -n "$ac_init_help" && exit $ac_status
1458 if $ac_init_version; then
1459 cat <<\_ACEOF
1460 the fast lexical analyser generator configure 2.5.37
1461 generated by GNU Autoconf 2.65
1463 Copyright (C) 2009 Free Software Foundation, Inc.
1464 This configure script is free software; the Free Software Foundation
1465 gives unlimited permission to copy, distribute and modify it.
1466 _ACEOF
1467 exit
1470 ## ------------------------ ##
1471 ## Autoconf initialization. ##
1472 ## ------------------------ ##
1474 # ac_fn_c_try_compile LINENO
1475 # --------------------------
1476 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1477 ac_fn_c_try_compile ()
1479 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1480 rm -f conftest.$ac_objext
1481 if { { ac_try="$ac_compile"
1482 case "(($ac_try" in
1483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1484 *) ac_try_echo=$ac_try;;
1485 esac
1486 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1487 $as_echo "$ac_try_echo"; } >&5
1488 (eval "$ac_compile") 2>conftest.err
1489 ac_status=$?
1490 if test -s conftest.err; then
1491 grep -v '^ *+' conftest.err >conftest.er1
1492 cat conftest.er1 >&5
1493 mv -f conftest.er1 conftest.err
1495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1496 test $ac_status = 0; } && {
1497 test -z "$ac_c_werror_flag" ||
1498 test ! -s conftest.err
1499 } && test -s conftest.$ac_objext; then :
1500 ac_retval=0
1501 else
1502 $as_echo "$as_me: failed program was:" >&5
1503 sed 's/^/| /' conftest.$ac_ext >&5
1505 ac_retval=1
1507 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1508 as_fn_set_status $ac_retval
1510 } # ac_fn_c_try_compile
1512 # ac_fn_c_try_link LINENO
1513 # -----------------------
1514 # Try to link conftest.$ac_ext, and return whether this succeeded.
1515 ac_fn_c_try_link ()
1517 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1518 rm -f conftest.$ac_objext conftest$ac_exeext
1519 if { { ac_try="$ac_link"
1520 case "(($ac_try" in
1521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1522 *) ac_try_echo=$ac_try;;
1523 esac
1524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1525 $as_echo "$ac_try_echo"; } >&5
1526 (eval "$ac_link") 2>conftest.err
1527 ac_status=$?
1528 if test -s conftest.err; then
1529 grep -v '^ *+' conftest.err >conftest.er1
1530 cat conftest.er1 >&5
1531 mv -f conftest.er1 conftest.err
1533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1534 test $ac_status = 0; } && {
1535 test -z "$ac_c_werror_flag" ||
1536 test ! -s conftest.err
1537 } && test -s conftest$ac_exeext && {
1538 test "$cross_compiling" = yes ||
1539 $as_test_x conftest$ac_exeext
1540 }; then :
1541 ac_retval=0
1542 else
1543 $as_echo "$as_me: failed program was:" >&5
1544 sed 's/^/| /' conftest.$ac_ext >&5
1546 ac_retval=1
1548 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1549 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1550 # interfere with the next link command; also delete a directory that is
1551 # left behind by Apple's compiler. We do this before executing the actions.
1552 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1553 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1554 as_fn_set_status $ac_retval
1556 } # ac_fn_c_try_link
1558 # ac_fn_cxx_try_compile LINENO
1559 # ----------------------------
1560 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1561 ac_fn_cxx_try_compile ()
1563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564 rm -f conftest.$ac_objext
1565 if { { ac_try="$ac_compile"
1566 case "(($ac_try" in
1567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568 *) ac_try_echo=$ac_try;;
1569 esac
1570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571 $as_echo "$ac_try_echo"; } >&5
1572 (eval "$ac_compile") 2>conftest.err
1573 ac_status=$?
1574 if test -s conftest.err; then
1575 grep -v '^ *+' conftest.err >conftest.er1
1576 cat conftest.er1 >&5
1577 mv -f conftest.er1 conftest.err
1579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580 test $ac_status = 0; } && {
1581 test -z "$ac_cxx_werror_flag" ||
1582 test ! -s conftest.err
1583 } && test -s conftest.$ac_objext; then :
1584 ac_retval=0
1585 else
1586 $as_echo "$as_me: failed program was:" >&5
1587 sed 's/^/| /' conftest.$ac_ext >&5
1589 ac_retval=1
1591 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1592 as_fn_set_status $ac_retval
1594 } # ac_fn_cxx_try_compile
1596 # ac_fn_c_try_cpp LINENO
1597 # ----------------------
1598 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1599 ac_fn_c_try_cpp ()
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 if { { ac_try="$ac_cpp conftest.$ac_ext"
1603 case "(($ac_try" in
1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605 *) ac_try_echo=$ac_try;;
1606 esac
1607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608 $as_echo "$ac_try_echo"; } >&5
1609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1610 ac_status=$?
1611 if test -s conftest.err; then
1612 grep -v '^ *+' conftest.err >conftest.er1
1613 cat conftest.er1 >&5
1614 mv -f conftest.er1 conftest.err
1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617 test $ac_status = 0; } >/dev/null && {
1618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1619 test ! -s conftest.err
1620 }; then :
1621 ac_retval=0
1622 else
1623 $as_echo "$as_me: failed program was:" >&5
1624 sed 's/^/| /' conftest.$ac_ext >&5
1626 ac_retval=1
1628 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1629 as_fn_set_status $ac_retval
1631 } # ac_fn_c_try_cpp
1633 # ac_fn_c_try_run LINENO
1634 # ----------------------
1635 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1636 # that executables *can* be run.
1637 ac_fn_c_try_run ()
1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640 if { { ac_try="$ac_link"
1641 case "(($ac_try" in
1642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1643 *) ac_try_echo=$ac_try;;
1644 esac
1645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646 $as_echo "$ac_try_echo"; } >&5
1647 (eval "$ac_link") 2>&5
1648 ac_status=$?
1649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1651 { { case "(($ac_try" in
1652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653 *) ac_try_echo=$ac_try;;
1654 esac
1655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656 $as_echo "$ac_try_echo"; } >&5
1657 (eval "$ac_try") 2>&5
1658 ac_status=$?
1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660 test $ac_status = 0; }; }; then :
1661 ac_retval=0
1662 else
1663 $as_echo "$as_me: program exited with status $ac_status" >&5
1664 $as_echo "$as_me: failed program was:" >&5
1665 sed 's/^/| /' conftest.$ac_ext >&5
1667 ac_retval=$ac_status
1669 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1670 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1671 as_fn_set_status $ac_retval
1673 } # ac_fn_c_try_run
1675 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1676 # -------------------------------------------------------
1677 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1678 # the include files in INCLUDES and setting the cache variable VAR
1679 # accordingly.
1680 ac_fn_c_check_header_mongrel ()
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1685 $as_echo_n "checking for $2... " >&6; }
1686 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1687 $as_echo_n "(cached) " >&6
1689 eval ac_res=\$$3
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1691 $as_echo "$ac_res" >&6; }
1692 else
1693 # Is the header compilable?
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1695 $as_echo_n "checking $2 usability... " >&6; }
1696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1697 /* end confdefs.h. */
1699 #include <$2>
1700 _ACEOF
1701 if ac_fn_c_try_compile "$LINENO"; then :
1702 ac_header_compiler=yes
1703 else
1704 ac_header_compiler=no
1706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1708 $as_echo "$ac_header_compiler" >&6; }
1710 # Is the header present?
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1712 $as_echo_n "checking $2 presence... " >&6; }
1713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1714 /* end confdefs.h. */
1715 #include <$2>
1716 _ACEOF
1717 if ac_fn_c_try_cpp "$LINENO"; then :
1718 ac_header_preproc=yes
1719 else
1720 ac_header_preproc=no
1722 rm -f conftest.err conftest.$ac_ext
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1724 $as_echo "$ac_header_preproc" >&6; }
1726 # So? What about this header?
1727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1728 yes:no: )
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1730 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1732 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1734 no:yes:* )
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1736 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1738 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1740 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1742 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1744 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1745 ( cat <<\_ASBOX
1746 ## ---------------------------------------------- ##
1747 ## Report this to flex-help@lists.sourceforge.net ##
1748 ## ---------------------------------------------- ##
1749 _ASBOX
1750 ) | sed "s/^/$as_me: WARNING: /" >&2
1752 esac
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1754 $as_echo_n "checking for $2... " >&6; }
1755 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1756 $as_echo_n "(cached) " >&6
1757 else
1758 eval "$3=\$ac_header_compiler"
1760 eval ac_res=\$$3
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762 $as_echo "$ac_res" >&6; }
1764 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1766 } # ac_fn_c_check_header_mongrel
1768 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1769 # -------------------------------------------------------
1770 # Tests whether HEADER exists and can be compiled using the include files in
1771 # INCLUDES, setting the cache variable VAR accordingly.
1772 ac_fn_c_check_header_compile ()
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776 $as_echo_n "checking for $2... " >&6; }
1777 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1778 $as_echo_n "(cached) " >&6
1779 else
1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781 /* end confdefs.h. */
1783 #include <$2>
1784 _ACEOF
1785 if ac_fn_c_try_compile "$LINENO"; then :
1786 eval "$3=yes"
1787 else
1788 eval "$3=no"
1790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1792 eval ac_res=\$$3
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794 $as_echo "$ac_res" >&6; }
1795 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1797 } # ac_fn_c_check_header_compile
1799 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1800 # -------------------------------------------
1801 # Tests whether TYPE exists after having included INCLUDES, setting cache
1802 # variable VAR accordingly.
1803 ac_fn_c_check_type ()
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1807 $as_echo_n "checking for $2... " >&6; }
1808 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1809 $as_echo_n "(cached) " >&6
1810 else
1811 eval "$3=no"
1812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 /* end confdefs.h. */
1816 main ()
1818 if (sizeof ($2))
1819 return 0;
1821 return 0;
1823 _ACEOF
1824 if ac_fn_c_try_compile "$LINENO"; then :
1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826 /* end confdefs.h. */
1829 main ()
1831 if (sizeof (($2)))
1832 return 0;
1834 return 0;
1836 _ACEOF
1837 if ac_fn_c_try_compile "$LINENO"; then :
1839 else
1840 eval "$3=yes"
1842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1846 eval ac_res=\$$3
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848 $as_echo "$ac_res" >&6; }
1849 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1851 } # ac_fn_c_check_type
1853 # ac_fn_c_check_func LINENO FUNC VAR
1854 # ----------------------------------
1855 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1856 ac_fn_c_check_func ()
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1860 $as_echo_n "checking for $2... " >&6; }
1861 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1862 $as_echo_n "(cached) " >&6
1863 else
1864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865 /* end confdefs.h. */
1866 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1868 #define $2 innocuous_$2
1870 /* System header to define __stub macros and hopefully few prototypes,
1871 which can conflict with char $2 (); below.
1872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1873 <limits.h> exists even on freestanding compilers. */
1875 #ifdef __STDC__
1876 # include <limits.h>
1877 #else
1878 # include <assert.h>
1879 #endif
1881 #undef $2
1883 /* Override any GCC internal prototype to avoid an error.
1884 Use char because int might match the return type of a GCC
1885 builtin and then its argument prototype would still apply. */
1886 #ifdef __cplusplus
1887 extern "C"
1888 #endif
1889 char $2 ();
1890 /* The GNU C library defines this for functions which it implements
1891 to always fail with ENOSYS. Some functions are actually named
1892 something starting with __ and the normal name is an alias. */
1893 #if defined __stub_$2 || defined __stub___$2
1894 choke me
1895 #endif
1898 main ()
1900 return $2 ();
1902 return 0;
1904 _ACEOF
1905 if ac_fn_c_try_link "$LINENO"; then :
1906 eval "$3=yes"
1907 else
1908 eval "$3=no"
1910 rm -f core conftest.err conftest.$ac_objext \
1911 conftest$ac_exeext conftest.$ac_ext
1913 eval ac_res=\$$3
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1915 $as_echo "$ac_res" >&6; }
1916 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1918 } # ac_fn_c_check_func
1919 cat >config.log <<_ACEOF
1920 This file contains any messages produced by compilers while
1921 running configure, to aid debugging if configure makes a mistake.
1923 It was created by the fast lexical analyser generator $as_me 2.5.37, which was
1924 generated by GNU Autoconf 2.65. Invocation command line was
1926 $ $0 $@
1928 _ACEOF
1929 exec 5>>config.log
1931 cat <<_ASUNAME
1932 ## --------- ##
1933 ## Platform. ##
1934 ## --------- ##
1936 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1937 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1938 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1939 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1940 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1942 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1943 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1945 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1946 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1947 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1948 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1949 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1950 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1951 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1953 _ASUNAME
1955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1956 for as_dir in $PATH
1958 IFS=$as_save_IFS
1959 test -z "$as_dir" && as_dir=.
1960 $as_echo "PATH: $as_dir"
1961 done
1962 IFS=$as_save_IFS
1964 } >&5
1966 cat >&5 <<_ACEOF
1969 ## ----------- ##
1970 ## Core tests. ##
1971 ## ----------- ##
1973 _ACEOF
1976 # Keep a trace of the command line.
1977 # Strip out --no-create and --no-recursion so they do not pile up.
1978 # Strip out --silent because we don't want to record it for future runs.
1979 # Also quote any args containing shell meta-characters.
1980 # Make two passes to allow for proper duplicate-argument suppression.
1981 ac_configure_args=
1982 ac_configure_args0=
1983 ac_configure_args1=
1984 ac_must_keep_next=false
1985 for ac_pass in 1 2
1987 for ac_arg
1989 case $ac_arg in
1990 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1991 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1992 | -silent | --silent | --silen | --sile | --sil)
1993 continue ;;
1994 *\'*)
1995 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1996 esac
1997 case $ac_pass in
1998 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2000 as_fn_append ac_configure_args1 " '$ac_arg'"
2001 if test $ac_must_keep_next = true; then
2002 ac_must_keep_next=false # Got value, back to normal.
2003 else
2004 case $ac_arg in
2005 *=* | --config-cache | -C | -disable-* | --disable-* \
2006 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2007 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2008 | -with-* | --with-* | -without-* | --without-* | --x)
2009 case "$ac_configure_args0 " in
2010 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2011 esac
2013 -* ) ac_must_keep_next=true ;;
2014 esac
2016 as_fn_append ac_configure_args " '$ac_arg'"
2018 esac
2019 done
2020 done
2021 { ac_configure_args0=; unset ac_configure_args0;}
2022 { ac_configure_args1=; unset ac_configure_args1;}
2024 # When interrupted or exit'd, cleanup temporary files, and complete
2025 # config.log. We remove comments because anyway the quotes in there
2026 # would cause problems or look ugly.
2027 # WARNING: Use '\'' to represent an apostrophe within the trap.
2028 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2029 trap 'exit_status=$?
2030 # Save into config.log some information that might help in debugging.
2032 echo
2034 cat <<\_ASBOX
2035 ## ---------------- ##
2036 ## Cache variables. ##
2037 ## ---------------- ##
2038 _ASBOX
2039 echo
2040 # The following way of writing the cache mishandles newlines in values,
2042 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2043 eval ac_val=\$$ac_var
2044 case $ac_val in #(
2045 *${as_nl}*)
2046 case $ac_var in #(
2047 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2048 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2049 esac
2050 case $ac_var in #(
2051 _ | IFS | as_nl) ;; #(
2052 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2053 *) { eval $ac_var=; unset $ac_var;} ;;
2054 esac ;;
2055 esac
2056 done
2057 (set) 2>&1 |
2058 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2059 *${as_nl}ac_space=\ *)
2060 sed -n \
2061 "s/'\''/'\''\\\\'\'''\''/g;
2062 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2063 ;; #(
2065 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2067 esac |
2068 sort
2070 echo
2072 cat <<\_ASBOX
2073 ## ----------------- ##
2074 ## Output variables. ##
2075 ## ----------------- ##
2076 _ASBOX
2077 echo
2078 for ac_var in $ac_subst_vars
2080 eval ac_val=\$$ac_var
2081 case $ac_val in
2082 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2083 esac
2084 $as_echo "$ac_var='\''$ac_val'\''"
2085 done | sort
2086 echo
2088 if test -n "$ac_subst_files"; then
2089 cat <<\_ASBOX
2090 ## ------------------- ##
2091 ## File substitutions. ##
2092 ## ------------------- ##
2093 _ASBOX
2094 echo
2095 for ac_var in $ac_subst_files
2097 eval ac_val=\$$ac_var
2098 case $ac_val in
2099 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2100 esac
2101 $as_echo "$ac_var='\''$ac_val'\''"
2102 done | sort
2103 echo
2106 if test -s confdefs.h; then
2107 cat <<\_ASBOX
2108 ## ----------- ##
2109 ## confdefs.h. ##
2110 ## ----------- ##
2111 _ASBOX
2112 echo
2113 cat confdefs.h
2114 echo
2116 test "$ac_signal" != 0 &&
2117 $as_echo "$as_me: caught signal $ac_signal"
2118 $as_echo "$as_me: exit $exit_status"
2119 } >&5
2120 rm -f core *.core core.conftest.* &&
2121 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2122 exit $exit_status
2124 for ac_signal in 1 2 13 15; do
2125 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2126 done
2127 ac_signal=0
2129 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2130 rm -f -r conftest* confdefs.h
2132 $as_echo "/* confdefs.h */" > confdefs.h
2134 # Predefined preprocessor variables.
2136 cat >>confdefs.h <<_ACEOF
2137 #define PACKAGE_NAME "$PACKAGE_NAME"
2138 _ACEOF
2140 cat >>confdefs.h <<_ACEOF
2141 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2142 _ACEOF
2144 cat >>confdefs.h <<_ACEOF
2145 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2146 _ACEOF
2148 cat >>confdefs.h <<_ACEOF
2149 #define PACKAGE_STRING "$PACKAGE_STRING"
2150 _ACEOF
2152 cat >>confdefs.h <<_ACEOF
2153 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2154 _ACEOF
2156 cat >>confdefs.h <<_ACEOF
2157 #define PACKAGE_URL "$PACKAGE_URL"
2158 _ACEOF
2161 # Let the site file select an alternate cache file if it wants to.
2162 # Prefer an explicitly selected file to automatically selected ones.
2163 ac_site_file1=NONE
2164 ac_site_file2=NONE
2165 if test -n "$CONFIG_SITE"; then
2166 ac_site_file1=$CONFIG_SITE
2167 elif test "x$prefix" != xNONE; then
2168 ac_site_file1=$prefix/share/config.site
2169 ac_site_file2=$prefix/etc/config.site
2170 else
2171 ac_site_file1=$ac_default_prefix/share/config.site
2172 ac_site_file2=$ac_default_prefix/etc/config.site
2174 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2176 test "x$ac_site_file" = xNONE && continue
2177 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2179 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2180 sed 's/^/| /' "$ac_site_file" >&5
2181 . "$ac_site_file"
2183 done
2185 if test -r "$cache_file"; then
2186 # Some versions of bash will fail to source /dev/null (special files
2187 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2188 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2190 $as_echo "$as_me: loading cache $cache_file" >&6;}
2191 case $cache_file in
2192 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2193 *) . "./$cache_file";;
2194 esac
2196 else
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2198 $as_echo "$as_me: creating cache $cache_file" >&6;}
2199 >$cache_file
2202 # Check that the precious variables saved in the cache have kept the same
2203 # value.
2204 ac_cache_corrupted=false
2205 for ac_var in $ac_precious_vars; do
2206 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2207 eval ac_new_set=\$ac_env_${ac_var}_set
2208 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2209 eval ac_new_val=\$ac_env_${ac_var}_value
2210 case $ac_old_set,$ac_new_set in
2211 set,)
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2213 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2214 ac_cache_corrupted=: ;;
2215 ,set)
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2217 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2218 ac_cache_corrupted=: ;;
2219 ,);;
2221 if test "x$ac_old_val" != "x$ac_new_val"; then
2222 # differences in whitespace do not lead to failure.
2223 ac_old_val_w=`echo x $ac_old_val`
2224 ac_new_val_w=`echo x $ac_new_val`
2225 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2227 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2228 ac_cache_corrupted=:
2229 else
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2231 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2232 eval $ac_var=\$ac_old_val
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2235 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2237 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2238 fi;;
2239 esac
2240 # Pass precious variables to config.status.
2241 if test "$ac_new_set" = set; then
2242 case $ac_new_val in
2243 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2244 *) ac_arg=$ac_var=$ac_new_val ;;
2245 esac
2246 case " $ac_configure_args " in
2247 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2248 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2249 esac
2251 done
2252 if $ac_cache_corrupted; then
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2256 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2257 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2259 ## -------------------- ##
2260 ## Main body of script. ##
2261 ## -------------------- ##
2263 ac_ext=c
2264 ac_cpp='$CPP $CPPFLAGS'
2265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2271 am__api_version='1.11'
2273 ac_aux_dir=
2274 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2275 for ac_t in install-sh install.sh shtool; do
2276 if test -f "$ac_dir/$ac_t"; then
2277 ac_aux_dir=$ac_dir
2278 ac_install_sh="$ac_aux_dir/$ac_t -c"
2279 break 2
2281 done
2282 done
2283 if test -z "$ac_aux_dir"; then
2284 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2287 # These three variables are undocumented and unsupported,
2288 # and are intended to be withdrawn in a future Autoconf release.
2289 # They can cause serious problems if a builder's source tree is in a directory
2290 # whose full name contains unusual characters.
2291 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2292 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2293 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2296 # Find a good install program. We prefer a C program (faster),
2297 # so one script is as good as another. But avoid the broken or
2298 # incompatible versions:
2299 # SysV /etc/install, /usr/sbin/install
2300 # SunOS /usr/etc/install
2301 # IRIX /sbin/install
2302 # AIX /bin/install
2303 # AmigaOS /C/install, which installs bootblocks on floppy discs
2304 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2305 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2306 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2307 # OS/2's system install, which has a completely different semantic
2308 # ./install, which can be erroneously created by make from ./install.sh.
2309 # Reject install programs that cannot install multiple files.
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2311 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2312 if test -z "$INSTALL"; then
2313 if test "${ac_cv_path_install+set}" = set; then :
2314 $as_echo_n "(cached) " >&6
2315 else
2316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2317 for as_dir in $PATH
2319 IFS=$as_save_IFS
2320 test -z "$as_dir" && as_dir=.
2321 # Account for people who put trailing slashes in PATH elements.
2322 case $as_dir/ in #((
2323 ./ | .// | /[cC]/* | \
2324 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2325 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2326 /usr/ucb/* ) ;;
2328 # OSF1 and SCO ODT 3.0 have their own names for install.
2329 # Don't use installbsd from OSF since it installs stuff as root
2330 # by default.
2331 for ac_prog in ginstall scoinst install; do
2332 for ac_exec_ext in '' $ac_executable_extensions; do
2333 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2334 if test $ac_prog = install &&
2335 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2336 # AIX install. It has an incompatible calling convention.
2338 elif test $ac_prog = install &&
2339 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2340 # program-specific install script used by HP pwplus--don't use.
2342 else
2343 rm -rf conftest.one conftest.two conftest.dir
2344 echo one > conftest.one
2345 echo two > conftest.two
2346 mkdir conftest.dir
2347 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2348 test -s conftest.one && test -s conftest.two &&
2349 test -s conftest.dir/conftest.one &&
2350 test -s conftest.dir/conftest.two
2351 then
2352 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2353 break 3
2357 done
2358 done
2360 esac
2362 done
2363 IFS=$as_save_IFS
2365 rm -rf conftest.one conftest.two conftest.dir
2368 if test "${ac_cv_path_install+set}" = set; then
2369 INSTALL=$ac_cv_path_install
2370 else
2371 # As a last resort, use the slow shell script. Don't cache a
2372 # value for INSTALL within a source directory, because that will
2373 # break other packages using the cache if that directory is
2374 # removed, or if the value is a relative name.
2375 INSTALL=$ac_install_sh
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2379 $as_echo "$INSTALL" >&6; }
2381 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2382 # It thinks the first close brace ends the variable substitution.
2383 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2385 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2387 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2390 $as_echo_n "checking whether build environment is sane... " >&6; }
2391 # Just in case
2392 sleep 1
2393 echo timestamp > conftest.file
2394 # Reject unsafe characters in $srcdir or the absolute working directory
2395 # name. Accept space and tab only in the latter.
2396 am_lf='
2398 case `pwd` in
2399 *[\\\"\#\$\&\'\`$am_lf]*)
2400 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2401 esac
2402 case $srcdir in
2403 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2404 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2405 esac
2407 # Do `set' in a subshell so we don't clobber the current shell's
2408 # arguments. Must try -L first in case configure is actually a
2409 # symlink; some systems play weird games with the mod time of symlinks
2410 # (eg FreeBSD returns the mod time of the symlink's containing
2411 # directory).
2412 if (
2413 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2414 if test "$*" = "X"; then
2415 # -L didn't work.
2416 set X `ls -t "$srcdir/configure" conftest.file`
2418 rm -f conftest.file
2419 if test "$*" != "X $srcdir/configure conftest.file" \
2420 && test "$*" != "X conftest.file $srcdir/configure"; then
2422 # If neither matched, then we have a broken ls. This can happen
2423 # if, for instance, CONFIG_SHELL is bash and it inherits a
2424 # broken ls alias from the environment. This has actually
2425 # happened. Such a system could not be considered "sane".
2426 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2427 alias in your environment" "$LINENO" 5
2430 test "$2" = conftest.file
2432 then
2433 # Ok.
2435 else
2436 as_fn_error "newly created file is older than distributed files!
2437 Check your system clock" "$LINENO" 5
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2440 $as_echo "yes" >&6; }
2441 test "$program_prefix" != NONE &&
2442 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2443 # Use a double $ so make ignores it.
2444 test "$program_suffix" != NONE &&
2445 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2446 # Double any \ or $.
2447 # By default was `s,x,x', remove it if useless.
2448 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2449 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2451 # expand $ac_aux_dir to an absolute path
2452 am_aux_dir=`cd $ac_aux_dir && pwd`
2454 if test x"${MISSING+set}" != xset; then
2455 case $am_aux_dir in
2456 *\ * | *\ *)
2457 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2459 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2460 esac
2462 # Use eval to expand $SHELL
2463 if eval "$MISSING --run true"; then
2464 am_missing_run="$MISSING --run "
2465 else
2466 am_missing_run=
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2468 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2471 if test x"${install_sh}" != xset; then
2472 case $am_aux_dir in
2473 *\ * | *\ *)
2474 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2476 install_sh="\${SHELL} $am_aux_dir/install-sh"
2477 esac
2480 # Installed binaries are usually stripped using `strip' when the user
2481 # run `make install-strip'. However `strip' might not be the right
2482 # tool to use in cross-compilation environments, therefore Automake
2483 # will honor the `STRIP' environment variable to overrule this program.
2484 if test "$cross_compiling" != no; then
2485 if test -n "$ac_tool_prefix"; then
2486 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2487 set dummy ${ac_tool_prefix}strip; ac_word=$2
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2489 $as_echo_n "checking for $ac_word... " >&6; }
2490 if test "${ac_cv_prog_STRIP+set}" = set; then :
2491 $as_echo_n "(cached) " >&6
2492 else
2493 if test -n "$STRIP"; then
2494 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2495 else
2496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497 for as_dir in $PATH
2499 IFS=$as_save_IFS
2500 test -z "$as_dir" && as_dir=.
2501 for ac_exec_ext in '' $ac_executable_extensions; do
2502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2503 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2505 break 2
2507 done
2508 done
2509 IFS=$as_save_IFS
2513 STRIP=$ac_cv_prog_STRIP
2514 if test -n "$STRIP"; then
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2516 $as_echo "$STRIP" >&6; }
2517 else
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2519 $as_echo "no" >&6; }
2524 if test -z "$ac_cv_prog_STRIP"; then
2525 ac_ct_STRIP=$STRIP
2526 # Extract the first word of "strip", so it can be a program name with args.
2527 set dummy strip; ac_word=$2
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2529 $as_echo_n "checking for $ac_word... " >&6; }
2530 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2531 $as_echo_n "(cached) " >&6
2532 else
2533 if test -n "$ac_ct_STRIP"; then
2534 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2535 else
2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537 for as_dir in $PATH
2539 IFS=$as_save_IFS
2540 test -z "$as_dir" && as_dir=.
2541 for ac_exec_ext in '' $ac_executable_extensions; do
2542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2543 ac_cv_prog_ac_ct_STRIP="strip"
2544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2545 break 2
2547 done
2548 done
2549 IFS=$as_save_IFS
2553 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2554 if test -n "$ac_ct_STRIP"; then
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2556 $as_echo "$ac_ct_STRIP" >&6; }
2557 else
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2559 $as_echo "no" >&6; }
2562 if test "x$ac_ct_STRIP" = x; then
2563 STRIP=":"
2564 else
2565 case $cross_compiling:$ac_tool_warned in
2566 yes:)
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2569 ac_tool_warned=yes ;;
2570 esac
2571 STRIP=$ac_ct_STRIP
2573 else
2574 STRIP="$ac_cv_prog_STRIP"
2578 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2581 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2582 if test -z "$MKDIR_P"; then
2583 if test "${ac_cv_path_mkdir+set}" = set; then :
2584 $as_echo_n "(cached) " >&6
2585 else
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2589 IFS=$as_save_IFS
2590 test -z "$as_dir" && as_dir=.
2591 for ac_prog in mkdir gmkdir; do
2592 for ac_exec_ext in '' $ac_executable_extensions; do
2593 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2594 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2595 'mkdir (GNU coreutils) '* | \
2596 'mkdir (coreutils) '* | \
2597 'mkdir (fileutils) '4.1*)
2598 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2599 break 3;;
2600 esac
2601 done
2602 done
2603 done
2604 IFS=$as_save_IFS
2608 test -d ./--version && rmdir ./--version
2609 if test "${ac_cv_path_mkdir+set}" = set; then
2610 MKDIR_P="$ac_cv_path_mkdir -p"
2611 else
2612 # As a last resort, use the slow shell script. Don't cache a
2613 # value for MKDIR_P within a source directory, because that will
2614 # break other packages using the cache if that directory is
2615 # removed, or if the value is a relative name.
2616 MKDIR_P="$ac_install_sh -d"
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2620 $as_echo "$MKDIR_P" >&6; }
2622 mkdir_p="$MKDIR_P"
2623 case $mkdir_p in
2624 [\\/$]* | ?:[\\/]*) ;;
2625 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2626 esac
2628 for ac_prog in gawk mawk nawk awk
2630 # Extract the first word of "$ac_prog", so it can be a program name with args.
2631 set dummy $ac_prog; ac_word=$2
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2633 $as_echo_n "checking for $ac_word... " >&6; }
2634 if test "${ac_cv_prog_AWK+set}" = set; then :
2635 $as_echo_n "(cached) " >&6
2636 else
2637 if test -n "$AWK"; then
2638 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2639 else
2640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641 for as_dir in $PATH
2643 IFS=$as_save_IFS
2644 test -z "$as_dir" && as_dir=.
2645 for ac_exec_ext in '' $ac_executable_extensions; do
2646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2647 ac_cv_prog_AWK="$ac_prog"
2648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2649 break 2
2651 done
2652 done
2653 IFS=$as_save_IFS
2657 AWK=$ac_cv_prog_AWK
2658 if test -n "$AWK"; then
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2660 $as_echo "$AWK" >&6; }
2661 else
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2663 $as_echo "no" >&6; }
2667 test -n "$AWK" && break
2668 done
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2671 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2672 set x ${MAKE-make}
2673 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2674 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2675 $as_echo_n "(cached) " >&6
2676 else
2677 cat >conftest.make <<\_ACEOF
2678 SHELL = /bin/sh
2679 all:
2680 @echo '@@@%%%=$(MAKE)=@@@%%%'
2681 _ACEOF
2682 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2683 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2684 *@@@%%%=?*=@@@%%%*)
2685 eval ac_cv_prog_make_${ac_make}_set=yes;;
2687 eval ac_cv_prog_make_${ac_make}_set=no;;
2688 esac
2689 rm -f conftest.make
2691 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2693 $as_echo "yes" >&6; }
2694 SET_MAKE=
2695 else
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2697 $as_echo "no" >&6; }
2698 SET_MAKE="MAKE=${MAKE-make}"
2701 rm -rf .tst 2>/dev/null
2702 mkdir .tst 2>/dev/null
2703 if test -d .tst; then
2704 am__leading_dot=.
2705 else
2706 am__leading_dot=_
2708 rmdir .tst 2>/dev/null
2710 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2711 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2712 # is not polluted with repeated "-I."
2713 am__isrc=' -I$(srcdir)'
2714 # test to see if srcdir already configured
2715 if test -f $srcdir/config.status; then
2716 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2720 # test whether we have cygpath
2721 if test -z "$CYGPATH_W"; then
2722 if (cygpath --version) >/dev/null 2>/dev/null; then
2723 CYGPATH_W='cygpath -w'
2724 else
2725 CYGPATH_W=echo
2730 # Define the identity of the package.
2731 PACKAGE='flex'
2732 VERSION='2.5.37'
2735 cat >>confdefs.h <<_ACEOF
2736 #define PACKAGE "$PACKAGE"
2737 _ACEOF
2740 cat >>confdefs.h <<_ACEOF
2741 #define VERSION "$VERSION"
2742 _ACEOF
2744 # Some tools Automake needs.
2746 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2749 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2752 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2755 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2758 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2760 # We need awk for the "check" target. The system "awk" is bad on
2761 # some platforms.
2762 # Always define AMTAR for backward compatibility.
2764 AMTAR=${AMTAR-"${am_missing_run}tar"}
2766 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2772 ac_config_headers="$ac_config_headers config.h:conf.in"
2776 # checks for programs
2779 MKINSTALLDIRS=
2780 if test -n "$ac_aux_dir"; then
2781 case "$ac_aux_dir" in
2782 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
2783 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
2784 esac
2786 if test -z "$MKINSTALLDIRS"; then
2787 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
2793 $as_echo_n "checking whether NLS is requested... " >&6; }
2794 # Check whether --enable-nls was given.
2795 if test "${enable_nls+set}" = set; then :
2796 enableval=$enable_nls; USE_NLS=$enableval
2797 else
2798 USE_NLS=yes
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
2802 $as_echo "$USE_NLS" >&6; }
2809 # Prepare PATH_SEPARATOR.
2810 # The user is always right.
2811 if test "${PATH_SEPARATOR+set}" != set; then
2812 echo "#! /bin/sh" >conf$$.sh
2813 echo "exit 0" >>conf$$.sh
2814 chmod +x conf$$.sh
2815 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2816 PATH_SEPARATOR=';'
2817 else
2818 PATH_SEPARATOR=:
2820 rm -f conf$$.sh
2823 # Find out how to test for executable files. Don't use a zero-byte file,
2824 # as systems may use methods other than mode bits to determine executability.
2825 cat >conf$$.file <<_ASEOF
2826 #! /bin/sh
2827 exit 0
2828 _ASEOF
2829 chmod +x conf$$.file
2830 if test -x conf$$.file >/dev/null 2>&1; then
2831 ac_executable_p="test -x"
2832 else
2833 ac_executable_p="test -f"
2835 rm -f conf$$.file
2837 # Extract the first word of "msgfmt", so it can be a program name with args.
2838 set dummy msgfmt; ac_word=$2
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2840 $as_echo_n "checking for $ac_word... " >&6; }
2841 if test "${ac_cv_path_MSGFMT+set}" = set; then :
2842 $as_echo_n "(cached) " >&6
2843 else
2844 case "$MSGFMT" in
2845 [\\/]* | ?:[\\/]*)
2846 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2849 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2850 for ac_dir in $PATH; do
2851 IFS="$ac_save_IFS"
2852 test -z "$ac_dir" && ac_dir=.
2853 for ac_exec_ext in '' $ac_executable_extensions; do
2854 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2855 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
2856 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2857 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
2858 break 2
2861 done
2862 done
2863 IFS="$ac_save_IFS"
2864 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2866 esac
2868 MSGFMT="$ac_cv_path_MSGFMT"
2869 if test "$MSGFMT" != ":"; then
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
2871 $as_echo "$MSGFMT" >&6; }
2872 else
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874 $as_echo "no" >&6; }
2877 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2878 set dummy gmsgfmt; ac_word=$2
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2880 $as_echo_n "checking for $ac_word... " >&6; }
2881 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
2882 $as_echo_n "(cached) " >&6
2883 else
2884 case $GMSGFMT in
2885 [\\/]* | ?:[\\/]*)
2886 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890 for as_dir in $PATH
2892 IFS=$as_save_IFS
2893 test -z "$as_dir" && as_dir=.
2894 for ac_exec_ext in '' $ac_executable_extensions; do
2895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2896 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
2897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2898 break 2
2900 done
2901 done
2902 IFS=$as_save_IFS
2904 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2906 esac
2908 GMSGFMT=$ac_cv_path_GMSGFMT
2909 if test -n "$GMSGFMT"; then
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
2911 $as_echo "$GMSGFMT" >&6; }
2912 else
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2914 $as_echo "no" >&6; }
2920 # Prepare PATH_SEPARATOR.
2921 # The user is always right.
2922 if test "${PATH_SEPARATOR+set}" != set; then
2923 echo "#! /bin/sh" >conf$$.sh
2924 echo "exit 0" >>conf$$.sh
2925 chmod +x conf$$.sh
2926 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2927 PATH_SEPARATOR=';'
2928 else
2929 PATH_SEPARATOR=:
2931 rm -f conf$$.sh
2934 # Find out how to test for executable files. Don't use a zero-byte file,
2935 # as systems may use methods other than mode bits to determine executability.
2936 cat >conf$$.file <<_ASEOF
2937 #! /bin/sh
2938 exit 0
2939 _ASEOF
2940 chmod +x conf$$.file
2941 if test -x conf$$.file >/dev/null 2>&1; then
2942 ac_executable_p="test -x"
2943 else
2944 ac_executable_p="test -f"
2946 rm -f conf$$.file
2948 # Extract the first word of "xgettext", so it can be a program name with args.
2949 set dummy xgettext; ac_word=$2
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2951 $as_echo_n "checking for $ac_word... " >&6; }
2952 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
2953 $as_echo_n "(cached) " >&6
2954 else
2955 case "$XGETTEXT" in
2956 [\\/]* | ?:[\\/]*)
2957 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2960 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2961 for ac_dir in $PATH; do
2962 IFS="$ac_save_IFS"
2963 test -z "$ac_dir" && ac_dir=.
2964 for ac_exec_ext in '' $ac_executable_extensions; do
2965 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2966 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
2967 (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
2968 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
2969 break 2
2972 done
2973 done
2974 IFS="$ac_save_IFS"
2975 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2977 esac
2979 XGETTEXT="$ac_cv_path_XGETTEXT"
2980 if test "$XGETTEXT" != ":"; then
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
2982 $as_echo "$XGETTEXT" >&6; }
2983 else
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2985 $as_echo "no" >&6; }
2988 rm -f messages.po
2991 # Prepare PATH_SEPARATOR.
2992 # The user is always right.
2993 if test "${PATH_SEPARATOR+set}" != set; then
2994 echo "#! /bin/sh" >conf$$.sh
2995 echo "exit 0" >>conf$$.sh
2996 chmod +x conf$$.sh
2997 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2998 PATH_SEPARATOR=';'
2999 else
3000 PATH_SEPARATOR=:
3002 rm -f conf$$.sh
3005 # Find out how to test for executable files. Don't use a zero-byte file,
3006 # as systems may use methods other than mode bits to determine executability.
3007 cat >conf$$.file <<_ASEOF
3008 #! /bin/sh
3009 exit 0
3010 _ASEOF
3011 chmod +x conf$$.file
3012 if test -x conf$$.file >/dev/null 2>&1; then
3013 ac_executable_p="test -x"
3014 else
3015 ac_executable_p="test -f"
3017 rm -f conf$$.file
3019 # Extract the first word of "msgmerge", so it can be a program name with args.
3020 set dummy msgmerge; ac_word=$2
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022 $as_echo_n "checking for $ac_word... " >&6; }
3023 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
3024 $as_echo_n "(cached) " >&6
3025 else
3026 case "$MSGMERGE" in
3027 [\\/]* | ?:[\\/]*)
3028 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3031 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3032 for ac_dir in $PATH; do
3033 IFS="$ac_save_IFS"
3034 test -z "$ac_dir" && ac_dir=.
3035 for ac_exec_ext in '' $ac_executable_extensions; do
3036 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3037 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
3038 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
3039 break 2
3042 done
3043 done
3044 IFS="$ac_save_IFS"
3045 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3047 esac
3049 MSGMERGE="$ac_cv_path_MSGMERGE"
3050 if test "$MSGMERGE" != ":"; then
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
3052 $as_echo "$MSGMERGE" >&6; }
3053 else
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3055 $as_echo "no" >&6; }
3059 if test "$GMSGFMT" != ":"; then
3060 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
3061 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3063 else
3064 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
3066 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
3067 GMSGFMT=":"
3071 if test "$XGETTEXT" != ":"; then
3072 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3073 (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
3075 else
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
3077 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
3078 XGETTEXT=":"
3080 rm -f messages.po
3083 ac_config_commands="$ac_config_commands default-1"
3087 if test "X$prefix" = "XNONE"; then
3088 acl_final_prefix="$ac_default_prefix"
3089 else
3090 acl_final_prefix="$prefix"
3092 if test "X$exec_prefix" = "XNONE"; then
3093 acl_final_exec_prefix='${prefix}'
3094 else
3095 acl_final_exec_prefix="$exec_prefix"
3097 acl_save_prefix="$prefix"
3098 prefix="$acl_final_prefix"
3099 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
3100 prefix="$acl_save_prefix"
3102 DEPDIR="${am__leading_dot}deps"
3104 ac_config_commands="$ac_config_commands depfiles"
3107 am_make=${MAKE-make}
3108 cat > confinc << 'END'
3109 am__doit:
3110 @echo this is the am__doit target
3111 .PHONY: am__doit
3113 # If we don't find an include directive, just comment out the code.
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3115 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3116 am__include="#"
3117 am__quote=
3118 _am_result=none
3119 # First try GNU make style include.
3120 echo "include confinc" > confmf
3121 # Ignore all kinds of additional output from `make'.
3122 case `$am_make -s -f confmf 2> /dev/null` in #(
3123 *the\ am__doit\ target*)
3124 am__include=include
3125 am__quote=
3126 _am_result=GNU
3128 esac
3129 # Now try BSD make style include.
3130 if test "$am__include" = "#"; then
3131 echo '.include "confinc"' > confmf
3132 case `$am_make -s -f confmf 2> /dev/null` in #(
3133 *the\ am__doit\ target*)
3134 am__include=.include
3135 am__quote="\""
3136 _am_result=BSD
3138 esac
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3143 $as_echo "$_am_result" >&6; }
3144 rm -f confinc confmf
3146 # Check whether --enable-dependency-tracking was given.
3147 if test "${enable_dependency_tracking+set}" = set; then :
3148 enableval=$enable_dependency_tracking;
3151 if test "x$enable_dependency_tracking" != xno; then
3152 am_depcomp="$ac_aux_dir/depcomp"
3153 AMDEPBACKSLASH='\'
3155 if test "x$enable_dependency_tracking" != xno; then
3156 AMDEP_TRUE=
3157 AMDEP_FALSE='#'
3158 else
3159 AMDEP_TRUE='#'
3160 AMDEP_FALSE=
3164 ac_ext=c
3165 ac_cpp='$CPP $CPPFLAGS'
3166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3169 if test -n "$ac_tool_prefix"; then
3170 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3171 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3173 $as_echo_n "checking for $ac_word... " >&6; }
3174 if test "${ac_cv_prog_CC+set}" = set; then :
3175 $as_echo_n "(cached) " >&6
3176 else
3177 if test -n "$CC"; then
3178 ac_cv_prog_CC="$CC" # Let the user override the test.
3179 else
3180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181 for as_dir in $PATH
3183 IFS=$as_save_IFS
3184 test -z "$as_dir" && as_dir=.
3185 for ac_exec_ext in '' $ac_executable_extensions; do
3186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3187 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3189 break 2
3191 done
3192 done
3193 IFS=$as_save_IFS
3197 CC=$ac_cv_prog_CC
3198 if test -n "$CC"; then
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3200 $as_echo "$CC" >&6; }
3201 else
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203 $as_echo "no" >&6; }
3208 if test -z "$ac_cv_prog_CC"; then
3209 ac_ct_CC=$CC
3210 # Extract the first word of "gcc", so it can be a program name with args.
3211 set dummy gcc; ac_word=$2
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3213 $as_echo_n "checking for $ac_word... " >&6; }
3214 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3215 $as_echo_n "(cached) " >&6
3216 else
3217 if test -n "$ac_ct_CC"; then
3218 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3219 else
3220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221 for as_dir in $PATH
3223 IFS=$as_save_IFS
3224 test -z "$as_dir" && as_dir=.
3225 for ac_exec_ext in '' $ac_executable_extensions; do
3226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3227 ac_cv_prog_ac_ct_CC="gcc"
3228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3229 break 2
3231 done
3232 done
3233 IFS=$as_save_IFS
3237 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3238 if test -n "$ac_ct_CC"; then
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3240 $as_echo "$ac_ct_CC" >&6; }
3241 else
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3243 $as_echo "no" >&6; }
3246 if test "x$ac_ct_CC" = x; then
3247 CC=""
3248 else
3249 case $cross_compiling:$ac_tool_warned in
3250 yes:)
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3253 ac_tool_warned=yes ;;
3254 esac
3255 CC=$ac_ct_CC
3257 else
3258 CC="$ac_cv_prog_CC"
3261 if test -z "$CC"; then
3262 if test -n "$ac_tool_prefix"; then
3263 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3264 set dummy ${ac_tool_prefix}cc; ac_word=$2
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3266 $as_echo_n "checking for $ac_word... " >&6; }
3267 if test "${ac_cv_prog_CC+set}" = set; then :
3268 $as_echo_n "(cached) " >&6
3269 else
3270 if test -n "$CC"; then
3271 ac_cv_prog_CC="$CC" # Let the user override the test.
3272 else
3273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 for as_dir in $PATH
3276 IFS=$as_save_IFS
3277 test -z "$as_dir" && as_dir=.
3278 for ac_exec_ext in '' $ac_executable_extensions; do
3279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3280 ac_cv_prog_CC="${ac_tool_prefix}cc"
3281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3282 break 2
3284 done
3285 done
3286 IFS=$as_save_IFS
3290 CC=$ac_cv_prog_CC
3291 if test -n "$CC"; then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3293 $as_echo "$CC" >&6; }
3294 else
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 $as_echo "no" >&6; }
3302 if test -z "$CC"; then
3303 # Extract the first word of "cc", so it can be a program name with args.
3304 set dummy cc; ac_word=$2
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3306 $as_echo_n "checking for $ac_word... " >&6; }
3307 if test "${ac_cv_prog_CC+set}" = set; then :
3308 $as_echo_n "(cached) " >&6
3309 else
3310 if test -n "$CC"; then
3311 ac_cv_prog_CC="$CC" # Let the user override the test.
3312 else
3313 ac_prog_rejected=no
3314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315 for as_dir in $PATH
3317 IFS=$as_save_IFS
3318 test -z "$as_dir" && as_dir=.
3319 for ac_exec_ext in '' $ac_executable_extensions; do
3320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3321 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3322 ac_prog_rejected=yes
3323 continue
3325 ac_cv_prog_CC="cc"
3326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3327 break 2
3329 done
3330 done
3331 IFS=$as_save_IFS
3333 if test $ac_prog_rejected = yes; then
3334 # We found a bogon in the path, so make sure we never use it.
3335 set dummy $ac_cv_prog_CC
3336 shift
3337 if test $# != 0; then
3338 # We chose a different compiler from the bogus one.
3339 # However, it has the same basename, so the bogon will be chosen
3340 # first if we set CC to just the basename; use the full file name.
3341 shift
3342 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3347 CC=$ac_cv_prog_CC
3348 if test -n "$CC"; then
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3350 $as_echo "$CC" >&6; }
3351 else
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353 $as_echo "no" >&6; }
3358 if test -z "$CC"; then
3359 if test -n "$ac_tool_prefix"; then
3360 for ac_prog in cl.exe
3362 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3363 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3365 $as_echo_n "checking for $ac_word... " >&6; }
3366 if test "${ac_cv_prog_CC+set}" = set; then :
3367 $as_echo_n "(cached) " >&6
3368 else
3369 if test -n "$CC"; then
3370 ac_cv_prog_CC="$CC" # Let the user override the test.
3371 else
3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373 for as_dir in $PATH
3375 IFS=$as_save_IFS
3376 test -z "$as_dir" && as_dir=.
3377 for ac_exec_ext in '' $ac_executable_extensions; do
3378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3379 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3381 break 2
3383 done
3384 done
3385 IFS=$as_save_IFS
3389 CC=$ac_cv_prog_CC
3390 if test -n "$CC"; then
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3392 $as_echo "$CC" >&6; }
3393 else
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3395 $as_echo "no" >&6; }
3399 test -n "$CC" && break
3400 done
3402 if test -z "$CC"; then
3403 ac_ct_CC=$CC
3404 for ac_prog in cl.exe
3406 # Extract the first word of "$ac_prog", so it can be a program name with args.
3407 set dummy $ac_prog; ac_word=$2
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3409 $as_echo_n "checking for $ac_word... " >&6; }
3410 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3411 $as_echo_n "(cached) " >&6
3412 else
3413 if test -n "$ac_ct_CC"; then
3414 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3415 else
3416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417 for as_dir in $PATH
3419 IFS=$as_save_IFS
3420 test -z "$as_dir" && as_dir=.
3421 for ac_exec_ext in '' $ac_executable_extensions; do
3422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3423 ac_cv_prog_ac_ct_CC="$ac_prog"
3424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3425 break 2
3427 done
3428 done
3429 IFS=$as_save_IFS
3433 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3434 if test -n "$ac_ct_CC"; then
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3436 $as_echo "$ac_ct_CC" >&6; }
3437 else
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3439 $as_echo "no" >&6; }
3443 test -n "$ac_ct_CC" && break
3444 done
3446 if test "x$ac_ct_CC" = x; then
3447 CC=""
3448 else
3449 case $cross_compiling:$ac_tool_warned in
3450 yes:)
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3453 ac_tool_warned=yes ;;
3454 esac
3455 CC=$ac_ct_CC
3462 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3463 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3464 as_fn_error "no acceptable C compiler found in \$PATH
3465 See \`config.log' for more details." "$LINENO" 5; }
3467 # Provide some information about the compiler.
3468 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3469 set X $ac_compile
3470 ac_compiler=$2
3471 for ac_option in --version -v -V -qversion; do
3472 { { ac_try="$ac_compiler $ac_option >&5"
3473 case "(($ac_try" in
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3476 esac
3477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3478 $as_echo "$ac_try_echo"; } >&5
3479 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3480 ac_status=$?
3481 if test -s conftest.err; then
3482 sed '10a\
3483 ... rest of stderr output deleted ...
3484 10q' conftest.err >conftest.er1
3485 cat conftest.er1 >&5
3487 rm -f conftest.er1 conftest.err
3488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3489 test $ac_status = 0; }
3490 done
3492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3493 /* end confdefs.h. */
3496 main ()
3500 return 0;
3502 _ACEOF
3503 ac_clean_files_save=$ac_clean_files
3504 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3505 # Try to create an executable without -o first, disregard a.out.
3506 # It will help us diagnose broken compilers, and finding out an intuition
3507 # of exeext.
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3509 $as_echo_n "checking whether the C compiler works... " >&6; }
3510 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3512 # The possible output files:
3513 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3515 ac_rmfiles=
3516 for ac_file in $ac_files
3518 case $ac_file in
3519 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3520 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3521 esac
3522 done
3523 rm -f $ac_rmfiles
3525 if { { ac_try="$ac_link_default"
3526 case "(($ac_try" in
3527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528 *) ac_try_echo=$ac_try;;
3529 esac
3530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3531 $as_echo "$ac_try_echo"; } >&5
3532 (eval "$ac_link_default") 2>&5
3533 ac_status=$?
3534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3535 test $ac_status = 0; }; then :
3536 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3537 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3538 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3539 # so that the user can short-circuit this test for compilers unknown to
3540 # Autoconf.
3541 for ac_file in $ac_files ''
3543 test -f "$ac_file" || continue
3544 case $ac_file in
3545 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3547 [ab].out )
3548 # We found the default executable, but exeext='' is most
3549 # certainly right.
3550 break;;
3551 *.* )
3552 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3553 then :; else
3554 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3556 # We set ac_cv_exeext here because the later test for it is not
3557 # safe: cross compilers may not add the suffix if given an `-o'
3558 # argument, so we may need to know it at that point already.
3559 # Even if this section looks crufty: it has the advantage of
3560 # actually working.
3561 break;;
3563 break;;
3564 esac
3565 done
3566 test "$ac_cv_exeext" = no && ac_cv_exeext=
3568 else
3569 ac_file=''
3571 if test -z "$ac_file"; then :
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573 $as_echo "no" >&6; }
3574 $as_echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3579 { as_fn_set_status 77
3580 as_fn_error "C compiler cannot create executables
3581 See \`config.log' for more details." "$LINENO" 5; }; }
3582 else
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3584 $as_echo "yes" >&6; }
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3587 $as_echo_n "checking for C compiler default output file name... " >&6; }
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3589 $as_echo "$ac_file" >&6; }
3590 ac_exeext=$ac_cv_exeext
3592 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3593 ac_clean_files=$ac_clean_files_save
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3595 $as_echo_n "checking for suffix of executables... " >&6; }
3596 if { { ac_try="$ac_link"
3597 case "(($ac_try" in
3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599 *) ac_try_echo=$ac_try;;
3600 esac
3601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3602 $as_echo "$ac_try_echo"; } >&5
3603 (eval "$ac_link") 2>&5
3604 ac_status=$?
3605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3606 test $ac_status = 0; }; then :
3607 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3608 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3609 # work properly (i.e., refer to `conftest.exe'), while it won't with
3610 # `rm'.
3611 for ac_file in conftest.exe conftest conftest.*; do
3612 test -f "$ac_file" || continue
3613 case $ac_file in
3614 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3615 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3616 break;;
3617 * ) break;;
3618 esac
3619 done
3620 else
3621 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3623 as_fn_error "cannot compute suffix of executables: cannot compile and link
3624 See \`config.log' for more details." "$LINENO" 5; }
3626 rm -f conftest conftest$ac_cv_exeext
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3628 $as_echo "$ac_cv_exeext" >&6; }
3630 rm -f conftest.$ac_ext
3631 EXEEXT=$ac_cv_exeext
3632 ac_exeext=$EXEEXT
3633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634 /* end confdefs.h. */
3635 #include <stdio.h>
3637 main ()
3639 FILE *f = fopen ("conftest.out", "w");
3640 return ferror (f) || fclose (f) != 0;
3643 return 0;
3645 _ACEOF
3646 ac_clean_files="$ac_clean_files conftest.out"
3647 # Check that the compiler produces executables we can run. If not, either
3648 # the compiler is broken, or we cross compile.
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3650 $as_echo_n "checking whether we are cross compiling... " >&6; }
3651 if test "$cross_compiling" != yes; then
3652 { { ac_try="$ac_link"
3653 case "(($ac_try" in
3654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655 *) ac_try_echo=$ac_try;;
3656 esac
3657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3658 $as_echo "$ac_try_echo"; } >&5
3659 (eval "$ac_link") 2>&5
3660 ac_status=$?
3661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3662 test $ac_status = 0; }
3663 if { ac_try='./conftest$ac_cv_exeext'
3664 { { case "(($ac_try" in
3665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666 *) ac_try_echo=$ac_try;;
3667 esac
3668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3669 $as_echo "$ac_try_echo"; } >&5
3670 (eval "$ac_try") 2>&5
3671 ac_status=$?
3672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3673 test $ac_status = 0; }; }; then
3674 cross_compiling=no
3675 else
3676 if test "$cross_compiling" = maybe; then
3677 cross_compiling=yes
3678 else
3679 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3681 as_fn_error "cannot run C compiled programs.
3682 If you meant to cross compile, use \`--host'.
3683 See \`config.log' for more details." "$LINENO" 5; }
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3688 $as_echo "$cross_compiling" >&6; }
3690 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3691 ac_clean_files=$ac_clean_files_save
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3693 $as_echo_n "checking for suffix of object files... " >&6; }
3694 if test "${ac_cv_objext+set}" = set; then :
3695 $as_echo_n "(cached) " >&6
3696 else
3697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698 /* end confdefs.h. */
3701 main ()
3705 return 0;
3707 _ACEOF
3708 rm -f conftest.o conftest.obj
3709 if { { ac_try="$ac_compile"
3710 case "(($ac_try" in
3711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3712 *) ac_try_echo=$ac_try;;
3713 esac
3714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3715 $as_echo "$ac_try_echo"; } >&5
3716 (eval "$ac_compile") 2>&5
3717 ac_status=$?
3718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3719 test $ac_status = 0; }; then :
3720 for ac_file in conftest.o conftest.obj conftest.*; do
3721 test -f "$ac_file" || continue;
3722 case $ac_file in
3723 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3724 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3725 break;;
3726 esac
3727 done
3728 else
3729 $as_echo "$as_me: failed program was:" >&5
3730 sed 's/^/| /' conftest.$ac_ext >&5
3732 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3733 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3734 as_fn_error "cannot compute suffix of object files: cannot compile
3735 See \`config.log' for more details." "$LINENO" 5; }
3737 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3740 $as_echo "$ac_cv_objext" >&6; }
3741 OBJEXT=$ac_cv_objext
3742 ac_objext=$OBJEXT
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3744 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3745 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3746 $as_echo_n "(cached) " >&6
3747 else
3748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3749 /* end confdefs.h. */
3752 main ()
3754 #ifndef __GNUC__
3755 choke me
3756 #endif
3759 return 0;
3761 _ACEOF
3762 if ac_fn_c_try_compile "$LINENO"; then :
3763 ac_compiler_gnu=yes
3764 else
3765 ac_compiler_gnu=no
3767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3768 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3772 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3773 if test $ac_compiler_gnu = yes; then
3774 GCC=yes
3775 else
3776 GCC=
3778 ac_test_CFLAGS=${CFLAGS+set}
3779 ac_save_CFLAGS=$CFLAGS
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3781 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3782 if test "${ac_cv_prog_cc_g+set}" = set; then :
3783 $as_echo_n "(cached) " >&6
3784 else
3785 ac_save_c_werror_flag=$ac_c_werror_flag
3786 ac_c_werror_flag=yes
3787 ac_cv_prog_cc_g=no
3788 CFLAGS="-g"
3789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790 /* end confdefs.h. */
3793 main ()
3797 return 0;
3799 _ACEOF
3800 if ac_fn_c_try_compile "$LINENO"; then :
3801 ac_cv_prog_cc_g=yes
3802 else
3803 CFLAGS=""
3804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805 /* end confdefs.h. */
3808 main ()
3812 return 0;
3814 _ACEOF
3815 if ac_fn_c_try_compile "$LINENO"; then :
3817 else
3818 ac_c_werror_flag=$ac_save_c_werror_flag
3819 CFLAGS="-g"
3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821 /* end confdefs.h. */
3824 main ()
3828 return 0;
3830 _ACEOF
3831 if ac_fn_c_try_compile "$LINENO"; then :
3832 ac_cv_prog_cc_g=yes
3834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3839 ac_c_werror_flag=$ac_save_c_werror_flag
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3842 $as_echo "$ac_cv_prog_cc_g" >&6; }
3843 if test "$ac_test_CFLAGS" = set; then
3844 CFLAGS=$ac_save_CFLAGS
3845 elif test $ac_cv_prog_cc_g = yes; then
3846 if test "$GCC" = yes; then
3847 CFLAGS="-g -O2"
3848 else
3849 CFLAGS="-g"
3851 else
3852 if test "$GCC" = yes; then
3853 CFLAGS="-O2"
3854 else
3855 CFLAGS=
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3859 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3860 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3861 $as_echo_n "(cached) " >&6
3862 else
3863 ac_cv_prog_cc_c89=no
3864 ac_save_CC=$CC
3865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3866 /* end confdefs.h. */
3867 #include <stdarg.h>
3868 #include <stdio.h>
3869 #include <sys/types.h>
3870 #include <sys/stat.h>
3871 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3872 struct buf { int x; };
3873 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3874 static char *e (p, i)
3875 char **p;
3876 int i;
3878 return p[i];
3880 static char *f (char * (*g) (char **, int), char **p, ...)
3882 char *s;
3883 va_list v;
3884 va_start (v,p);
3885 s = g (p, va_arg (v,int));
3886 va_end (v);
3887 return s;
3890 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3891 function prototypes and stuff, but not '\xHH' hex character constants.
3892 These don't provoke an error unfortunately, instead are silently treated
3893 as 'x'. The following induces an error, until -std is added to get
3894 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3895 array size at least. It's necessary to write '\x00'==0 to get something
3896 that's true only with -std. */
3897 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3899 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3900 inside strings and character constants. */
3901 #define FOO(x) 'x'
3902 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3904 int test (int i, double x);
3905 struct s1 {int (*f) (int a);};
3906 struct s2 {int (*f) (double a);};
3907 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3908 int argc;
3909 char **argv;
3911 main ()
3913 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3915 return 0;
3917 _ACEOF
3918 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3919 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3921 CC="$ac_save_CC $ac_arg"
3922 if ac_fn_c_try_compile "$LINENO"; then :
3923 ac_cv_prog_cc_c89=$ac_arg
3925 rm -f core conftest.err conftest.$ac_objext
3926 test "x$ac_cv_prog_cc_c89" != "xno" && break
3927 done
3928 rm -f conftest.$ac_ext
3929 CC=$ac_save_CC
3932 # AC_CACHE_VAL
3933 case "x$ac_cv_prog_cc_c89" in
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3936 $as_echo "none needed" >&6; } ;;
3937 xno)
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3939 $as_echo "unsupported" >&6; } ;;
3941 CC="$CC $ac_cv_prog_cc_c89"
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3943 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3944 esac
3945 if test "x$ac_cv_prog_cc_c89" != xno; then :
3949 ac_ext=c
3950 ac_cpp='$CPP $CPPFLAGS'
3951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3955 depcc="$CC" am_compiler_list=
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3958 $as_echo_n "checking dependency style of $depcc... " >&6; }
3959 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3960 $as_echo_n "(cached) " >&6
3961 else
3962 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3963 # We make a subdir and do the tests there. Otherwise we can end up
3964 # making bogus files that we don't know about and never remove. For
3965 # instance it was reported that on HP-UX the gcc test will end up
3966 # making a dummy file named `D' -- because `-MD' means `put the output
3967 # in D'.
3968 mkdir conftest.dir
3969 # Copy depcomp to subdir because otherwise we won't find it if we're
3970 # using a relative directory.
3971 cp "$am_depcomp" conftest.dir
3972 cd conftest.dir
3973 # We will build objects and dependencies in a subdirectory because
3974 # it helps to detect inapplicable dependency modes. For instance
3975 # both Tru64's cc and ICC support -MD to output dependencies as a
3976 # side effect of compilation, but ICC will put the dependencies in
3977 # the current directory while Tru64 will put them in the object
3978 # directory.
3979 mkdir sub
3981 am_cv_CC_dependencies_compiler_type=none
3982 if test "$am_compiler_list" = ""; then
3983 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3985 am__universal=false
3986 case " $depcc " in #(
3987 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3988 esac
3990 for depmode in $am_compiler_list; do
3991 # Setup a source with many dependencies, because some compilers
3992 # like to wrap large dependency lists on column 80 (with \), and
3993 # we should not choose a depcomp mode which is confused by this.
3995 # We need to recreate these files for each test, as the compiler may
3996 # overwrite some of them when testing with obscure command lines.
3997 # This happens at least with the AIX C compiler.
3998 : > sub/conftest.c
3999 for i in 1 2 3 4 5 6; do
4000 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4001 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4002 # Solaris 8's {/usr,}/bin/sh.
4003 touch sub/conftst$i.h
4004 done
4005 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4007 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4008 # mode. It turns out that the SunPro C++ compiler does not properly
4009 # handle `-M -o', and we need to detect this. Also, some Intel
4010 # versions had trouble with output in subdirs
4011 am__obj=sub/conftest.${OBJEXT-o}
4012 am__minus_obj="-o $am__obj"
4013 case $depmode in
4014 gcc)
4015 # This depmode causes a compiler race in universal mode.
4016 test "$am__universal" = false || continue
4018 nosideeffect)
4019 # after this tag, mechanisms are not by side-effect, so they'll
4020 # only be used when explicitly requested
4021 if test "x$enable_dependency_tracking" = xyes; then
4022 continue
4023 else
4024 break
4027 msvisualcpp | msvcmsys)
4028 # This compiler won't grok `-c -o', but also, the minuso test has
4029 # not run yet. These depmodes are late enough in the game, and
4030 # so weak that their functioning should not be impacted.
4031 am__obj=conftest.${OBJEXT-o}
4032 am__minus_obj=
4034 none) break ;;
4035 esac
4036 if depmode=$depmode \
4037 source=sub/conftest.c object=$am__obj \
4038 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4039 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4040 >/dev/null 2>conftest.err &&
4041 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4042 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4043 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4044 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4045 # icc doesn't choke on unknown options, it will just issue warnings
4046 # or remarks (even with -Werror). So we grep stderr for any message
4047 # that says an option was ignored or not supported.
4048 # When given -MP, icc 7.0 and 7.1 complain thusly:
4049 # icc: Command line warning: ignoring option '-M'; no argument required
4050 # The diagnosis changed in icc 8.0:
4051 # icc: Command line remark: option '-MP' not supported
4052 if (grep 'ignoring option' conftest.err ||
4053 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4054 am_cv_CC_dependencies_compiler_type=$depmode
4055 break
4058 done
4060 cd ..
4061 rm -rf conftest.dir
4062 else
4063 am_cv_CC_dependencies_compiler_type=none
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4068 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4069 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4072 test "x$enable_dependency_tracking" != xno \
4073 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4074 am__fastdepCC_TRUE=
4075 am__fastdepCC_FALSE='#'
4076 else
4077 am__fastdepCC_TRUE='#'
4078 am__fastdepCC_FALSE=
4082 # Make sure we can run config.sub.
4083 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4084 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4087 $as_echo_n "checking build system type... " >&6; }
4088 if test "${ac_cv_build+set}" = set; then :
4089 $as_echo_n "(cached) " >&6
4090 else
4091 ac_build_alias=$build_alias
4092 test "x$ac_build_alias" = x &&
4093 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4094 test "x$ac_build_alias" = x &&
4095 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4096 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4097 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4101 $as_echo "$ac_cv_build" >&6; }
4102 case $ac_cv_build in
4103 *-*-*) ;;
4104 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4105 esac
4106 build=$ac_cv_build
4107 ac_save_IFS=$IFS; IFS='-'
4108 set x $ac_cv_build
4109 shift
4110 build_cpu=$1
4111 build_vendor=$2
4112 shift; shift
4113 # Remember, the first character of IFS is used to create $*,
4114 # except with old shells:
4115 build_os=$*
4116 IFS=$ac_save_IFS
4117 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4121 $as_echo_n "checking host system type... " >&6; }
4122 if test "${ac_cv_host+set}" = set; then :
4123 $as_echo_n "(cached) " >&6
4124 else
4125 if test "x$host_alias" = x; then
4126 ac_cv_host=$ac_cv_build
4127 else
4128 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4129 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4134 $as_echo "$ac_cv_host" >&6; }
4135 case $ac_cv_host in
4136 *-*-*) ;;
4137 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4138 esac
4139 host=$ac_cv_host
4140 ac_save_IFS=$IFS; IFS='-'
4141 set x $ac_cv_host
4142 shift
4143 host_cpu=$1
4144 host_vendor=$2
4145 shift; shift
4146 # Remember, the first character of IFS is used to create $*,
4147 # except with old shells:
4148 host_os=$*
4149 IFS=$ac_save_IFS
4150 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4154 # Check whether --with-gnu-ld was given.
4155 if test "${with_gnu_ld+set}" = set; then :
4156 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4157 else
4158 with_gnu_ld=no
4161 # Prepare PATH_SEPARATOR.
4162 # The user is always right.
4163 if test "${PATH_SEPARATOR+set}" != set; then
4164 echo "#! /bin/sh" >conf$$.sh
4165 echo "exit 0" >>conf$$.sh
4166 chmod +x conf$$.sh
4167 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4168 PATH_SEPARATOR=';'
4169 else
4170 PATH_SEPARATOR=:
4172 rm -f conf$$.sh
4174 ac_prog=ld
4175 if test "$GCC" = yes; then
4176 # Check if gcc -print-prog-name=ld gives a path.
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4178 $as_echo_n "checking for ld used by GCC... " >&6; }
4179 case $host in
4180 *-*-mingw*)
4181 # gcc leaves a trailing carriage return which upsets mingw
4182 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4184 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4185 esac
4186 case $ac_prog in
4187 # Accept absolute paths.
4188 [\\/]* | [A-Za-z]:[\\/]*)
4189 re_direlt='/[^/][^/]*/\.\./'
4190 # Canonicalize the path of ld
4191 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4192 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4193 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4194 done
4195 test -z "$LD" && LD="$ac_prog"
4198 # If it fails, then pretend we aren't using GCC.
4199 ac_prog=ld
4202 # If it is relative, then search for the first ld in PATH.
4203 with_gnu_ld=unknown
4205 esac
4206 elif test "$with_gnu_ld" = yes; then
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4208 $as_echo_n "checking for GNU ld... " >&6; }
4209 else
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4211 $as_echo_n "checking for non-GNU ld... " >&6; }
4213 if test "${acl_cv_path_LD+set}" = set; then :
4214 $as_echo_n "(cached) " >&6
4215 else
4216 if test -z "$LD"; then
4217 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4218 for ac_dir in $PATH; do
4219 test -z "$ac_dir" && ac_dir=.
4220 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4221 acl_cv_path_LD="$ac_dir/$ac_prog"
4222 # Check to see if the program is GNU ld. I'd rather use --version,
4223 # but apparently some GNU ld's only accept -v.
4224 # Break only if it was the GNU/non-GNU ld that we prefer.
4225 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4226 test "$with_gnu_ld" != no && break
4227 else
4228 test "$with_gnu_ld" != yes && break
4231 done
4232 IFS="$ac_save_ifs"
4233 else
4234 acl_cv_path_LD="$LD" # Let the user override the test with a path.
4238 LD="$acl_cv_path_LD"
4239 if test -n "$LD"; then
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4241 $as_echo "$LD" >&6; }
4242 else
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4244 $as_echo "no" >&6; }
4246 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4248 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4249 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
4250 $as_echo_n "(cached) " >&6
4251 else
4252 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4253 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4254 acl_cv_prog_gnu_ld=yes
4255 else
4256 acl_cv_prog_gnu_ld=no
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4260 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4261 with_gnu_ld=$acl_cv_prog_gnu_ld
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4266 $as_echo_n "checking for shared library run path origin... " >&6; }
4267 if test "${acl_cv_rpath+set}" = set; then :
4268 $as_echo_n "(cached) " >&6
4269 else
4271 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4272 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4273 . ./conftest.sh
4274 rm -f ./conftest.sh
4275 acl_cv_rpath=done
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4279 $as_echo "$acl_cv_rpath" >&6; }
4280 wl="$acl_cv_wl"
4281 libext="$acl_cv_libext"
4282 shlibext="$acl_cv_shlibext"
4283 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4284 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4285 hardcode_direct="$acl_cv_hardcode_direct"
4286 hardcode_minus_L="$acl_cv_hardcode_minus_L"
4287 # Check whether --enable-rpath was given.
4288 if test "${enable_rpath+set}" = set; then :
4289 enableval=$enable_rpath; :
4290 else
4291 enable_rpath=yes
4301 use_additional=yes
4303 acl_save_prefix="$prefix"
4304 prefix="$acl_final_prefix"
4305 acl_save_exec_prefix="$exec_prefix"
4306 exec_prefix="$acl_final_exec_prefix"
4308 eval additional_includedir=\"$includedir\"
4309 eval additional_libdir=\"$libdir\"
4311 exec_prefix="$acl_save_exec_prefix"
4312 prefix="$acl_save_prefix"
4315 # Check whether --with-libiconv-prefix was given.
4316 if test "${with_libiconv_prefix+set}" = set; then :
4317 withval=$with_libiconv_prefix;
4318 if test "X$withval" = "Xno"; then
4319 use_additional=no
4320 else
4321 if test "X$withval" = "X"; then
4323 acl_save_prefix="$prefix"
4324 prefix="$acl_final_prefix"
4325 acl_save_exec_prefix="$exec_prefix"
4326 exec_prefix="$acl_final_exec_prefix"
4328 eval additional_includedir=\"$includedir\"
4329 eval additional_libdir=\"$libdir\"
4331 exec_prefix="$acl_save_exec_prefix"
4332 prefix="$acl_save_prefix"
4334 else
4335 additional_includedir="$withval/include"
4336 additional_libdir="$withval/lib"
4342 LIBICONV=
4343 LTLIBICONV=
4344 INCICONV=
4345 rpathdirs=
4346 ltrpathdirs=
4347 names_already_handled=
4348 names_next_round='iconv '
4349 while test -n "$names_next_round"; do
4350 names_this_round="$names_next_round"
4351 names_next_round=
4352 for name in $names_this_round; do
4353 already_handled=
4354 for n in $names_already_handled; do
4355 if test "$n" = "$name"; then
4356 already_handled=yes
4357 break
4359 done
4360 if test -z "$already_handled"; then
4361 names_already_handled="$names_already_handled $name"
4362 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4363 eval value=\"\$HAVE_LIB$uppername\"
4364 if test -n "$value"; then
4365 if test "$value" = yes; then
4366 eval value=\"\$LIB$uppername\"
4367 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
4368 eval value=\"\$LTLIB$uppername\"
4369 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
4370 else
4373 else
4374 found_dir=
4375 found_la=
4376 found_so=
4377 found_a=
4378 if test $use_additional = yes; then
4379 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
4380 found_dir="$additional_libdir"
4381 found_so="$additional_libdir/lib$name.$shlibext"
4382 if test -f "$additional_libdir/lib$name.la"; then
4383 found_la="$additional_libdir/lib$name.la"
4385 else
4386 if test -f "$additional_libdir/lib$name.$libext"; then
4387 found_dir="$additional_libdir"
4388 found_a="$additional_libdir/lib$name.$libext"
4389 if test -f "$additional_libdir/lib$name.la"; then
4390 found_la="$additional_libdir/lib$name.la"
4395 if test "X$found_dir" = "X"; then
4396 for x in $LDFLAGS $LTLIBICONV; do
4398 acl_save_prefix="$prefix"
4399 prefix="$acl_final_prefix"
4400 acl_save_exec_prefix="$exec_prefix"
4401 exec_prefix="$acl_final_exec_prefix"
4402 eval x=\"$x\"
4403 exec_prefix="$acl_save_exec_prefix"
4404 prefix="$acl_save_prefix"
4406 case "$x" in
4407 -L*)
4408 dir=`echo "X$x" | sed -e 's/^X-L//'`
4409 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4410 found_dir="$dir"
4411 found_so="$dir/lib$name.$shlibext"
4412 if test -f "$dir/lib$name.la"; then
4413 found_la="$dir/lib$name.la"
4415 else
4416 if test -f "$dir/lib$name.$libext"; then
4417 found_dir="$dir"
4418 found_a="$dir/lib$name.$libext"
4419 if test -f "$dir/lib$name.la"; then
4420 found_la="$dir/lib$name.la"
4425 esac
4426 if test "X$found_dir" != "X"; then
4427 break
4429 done
4431 if test "X$found_dir" != "X"; then
4432 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
4433 if test "X$found_so" != "X"; then
4434 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
4435 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4436 else
4437 haveit=
4438 for x in $ltrpathdirs; do
4439 if test "X$x" = "X$found_dir"; then
4440 haveit=yes
4441 break
4443 done
4444 if test -z "$haveit"; then
4445 ltrpathdirs="$ltrpathdirs $found_dir"
4447 if test "$hardcode_direct" = yes; then
4448 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4449 else
4450 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
4451 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4452 haveit=
4453 for x in $rpathdirs; do
4454 if test "X$x" = "X$found_dir"; then
4455 haveit=yes
4456 break
4458 done
4459 if test -z "$haveit"; then
4460 rpathdirs="$rpathdirs $found_dir"
4462 else
4463 haveit=
4464 for x in $LDFLAGS $LIBICONV; do
4466 acl_save_prefix="$prefix"
4467 prefix="$acl_final_prefix"
4468 acl_save_exec_prefix="$exec_prefix"
4469 exec_prefix="$acl_final_exec_prefix"
4470 eval x=\"$x\"
4471 exec_prefix="$acl_save_exec_prefix"
4472 prefix="$acl_save_prefix"
4474 if test "X$x" = "X-L$found_dir"; then
4475 haveit=yes
4476 break
4478 done
4479 if test -z "$haveit"; then
4480 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
4482 if test "$hardcode_minus_L" != no; then
4483 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4484 else
4485 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4490 else
4491 if test "X$found_a" != "X"; then
4492 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
4493 else
4494 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
4497 additional_includedir=
4498 case "$found_dir" in
4499 */lib | */lib/)
4500 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
4501 additional_includedir="$basedir/include"
4503 esac
4504 if test "X$additional_includedir" != "X"; then
4505 if test "X$additional_includedir" != "X/usr/include"; then
4506 haveit=
4507 if test "X$additional_includedir" = "X/usr/local/include"; then
4508 if test -n "$GCC"; then
4509 case $host_os in
4510 linux*) haveit=yes;;
4511 esac
4514 if test -z "$haveit"; then
4515 for x in $CPPFLAGS $INCICONV; do
4517 acl_save_prefix="$prefix"
4518 prefix="$acl_final_prefix"
4519 acl_save_exec_prefix="$exec_prefix"
4520 exec_prefix="$acl_final_exec_prefix"
4521 eval x=\"$x\"
4522 exec_prefix="$acl_save_exec_prefix"
4523 prefix="$acl_save_prefix"
4525 if test "X$x" = "X-I$additional_includedir"; then
4526 haveit=yes
4527 break
4529 done
4530 if test -z "$haveit"; then
4531 if test -d "$additional_includedir"; then
4532 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
4538 if test -n "$found_la"; then
4539 save_libdir="$libdir"
4540 case "$found_la" in
4541 */* | *\\*) . "$found_la" ;;
4542 *) . "./$found_la" ;;
4543 esac
4544 libdir="$save_libdir"
4545 for dep in $dependency_libs; do
4546 case "$dep" in
4547 -L*)
4548 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4549 if test "X$additional_libdir" != "X/usr/lib"; then
4550 haveit=
4551 if test "X$additional_libdir" = "X/usr/local/lib"; then
4552 if test -n "$GCC"; then
4553 case $host_os in
4554 linux*) haveit=yes;;
4555 esac
4558 if test -z "$haveit"; then
4559 haveit=
4560 for x in $LDFLAGS $LIBICONV; do
4562 acl_save_prefix="$prefix"
4563 prefix="$acl_final_prefix"
4564 acl_save_exec_prefix="$exec_prefix"
4565 exec_prefix="$acl_final_exec_prefix"
4566 eval x=\"$x\"
4567 exec_prefix="$acl_save_exec_prefix"
4568 prefix="$acl_save_prefix"
4570 if test "X$x" = "X-L$additional_libdir"; then
4571 haveit=yes
4572 break
4574 done
4575 if test -z "$haveit"; then
4576 if test -d "$additional_libdir"; then
4577 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
4580 haveit=
4581 for x in $LDFLAGS $LTLIBICONV; do
4583 acl_save_prefix="$prefix"
4584 prefix="$acl_final_prefix"
4585 acl_save_exec_prefix="$exec_prefix"
4586 exec_prefix="$acl_final_exec_prefix"
4587 eval x=\"$x\"
4588 exec_prefix="$acl_save_exec_prefix"
4589 prefix="$acl_save_prefix"
4591 if test "X$x" = "X-L$additional_libdir"; then
4592 haveit=yes
4593 break
4595 done
4596 if test -z "$haveit"; then
4597 if test -d "$additional_libdir"; then
4598 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
4604 -R*)
4605 dir=`echo "X$dep" | sed -e 's/^X-R//'`
4606 if test "$enable_rpath" != no; then
4607 haveit=
4608 for x in $rpathdirs; do
4609 if test "X$x" = "X$dir"; then
4610 haveit=yes
4611 break
4613 done
4614 if test -z "$haveit"; then
4615 rpathdirs="$rpathdirs $dir"
4617 haveit=
4618 for x in $ltrpathdirs; do
4619 if test "X$x" = "X$dir"; then
4620 haveit=yes
4621 break
4623 done
4624 if test -z "$haveit"; then
4625 ltrpathdirs="$ltrpathdirs $dir"
4629 -l*)
4630 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4632 *.la)
4633 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4636 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
4637 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
4639 esac
4640 done
4642 else
4643 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4644 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
4648 done
4649 done
4650 if test "X$rpathdirs" != "X"; then
4651 if test -n "$hardcode_libdir_separator"; then
4652 alldirs=
4653 for found_dir in $rpathdirs; do
4654 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
4655 done
4656 acl_save_libdir="$libdir"
4657 libdir="$alldirs"
4658 eval flag=\"$hardcode_libdir_flag_spec\"
4659 libdir="$acl_save_libdir"
4660 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4661 else
4662 for found_dir in $rpathdirs; do
4663 acl_save_libdir="$libdir"
4664 libdir="$found_dir"
4665 eval flag=\"$hardcode_libdir_flag_spec\"
4666 libdir="$acl_save_libdir"
4667 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4668 done
4671 if test "X$ltrpathdirs" != "X"; then
4672 for found_dir in $ltrpathdirs; do
4673 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
4674 done
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4696 $as_echo_n "checking whether NLS is requested... " >&6; }
4697 # Check whether --enable-nls was given.
4698 if test "${enable_nls+set}" = set; then :
4699 enableval=$enable_nls; USE_NLS=$enableval
4700 else
4701 USE_NLS=yes
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4705 $as_echo "$USE_NLS" >&6; }
4710 LIBINTL=
4711 LTLIBINTL=
4712 POSUB=
4714 if test "$USE_NLS" = "yes"; then
4715 gt_use_preinstalled_gnugettext=no
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
4723 $as_echo_n "checking for GNU gettext in libc... " >&6; }
4724 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
4725 $as_echo_n "(cached) " >&6
4726 else
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h. */
4729 #include <libintl.h>
4730 extern int _nl_msg_cat_cntr;
4731 extern int *_nl_domain_bindings;
4733 main ()
4735 bindtextdomain ("", "");
4736 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
4738 return 0;
4740 _ACEOF
4741 if ac_fn_c_try_link "$LINENO"; then :
4742 gt_cv_func_gnugettext1_libc=yes
4743 else
4744 gt_cv_func_gnugettext1_libc=no
4746 rm -f core conftest.err conftest.$ac_objext \
4747 conftest$ac_exeext conftest.$ac_ext
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
4750 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
4752 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
4758 am_save_CPPFLAGS="$CPPFLAGS"
4760 for element in $INCICONV; do
4761 haveit=
4762 for x in $CPPFLAGS; do
4764 acl_save_prefix="$prefix"
4765 prefix="$acl_final_prefix"
4766 acl_save_exec_prefix="$exec_prefix"
4767 exec_prefix="$acl_final_exec_prefix"
4768 eval x=\"$x\"
4769 exec_prefix="$acl_save_exec_prefix"
4770 prefix="$acl_save_prefix"
4772 if test "X$x" = "X$element"; then
4773 haveit=yes
4774 break
4776 done
4777 if test -z "$haveit"; then
4778 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
4780 done
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
4784 $as_echo_n "checking for iconv... " >&6; }
4785 if test "${am_cv_func_iconv+set}" = set; then :
4786 $as_echo_n "(cached) " >&6
4787 else
4789 am_cv_func_iconv="no, consider installing GNU libiconv"
4790 am_cv_lib_iconv=no
4791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4792 /* end confdefs.h. */
4793 #include <stdlib.h>
4794 #include <iconv.h>
4796 main ()
4798 iconv_t cd = iconv_open("","");
4799 iconv(cd,NULL,NULL,NULL,NULL);
4800 iconv_close(cd);
4802 return 0;
4804 _ACEOF
4805 if ac_fn_c_try_link "$LINENO"; then :
4806 am_cv_func_iconv=yes
4808 rm -f core conftest.err conftest.$ac_objext \
4809 conftest$ac_exeext conftest.$ac_ext
4810 if test "$am_cv_func_iconv" != yes; then
4811 am_save_LIBS="$LIBS"
4812 LIBS="$LIBS $LIBICONV"
4813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4814 /* end confdefs.h. */
4815 #include <stdlib.h>
4816 #include <iconv.h>
4818 main ()
4820 iconv_t cd = iconv_open("","");
4821 iconv(cd,NULL,NULL,NULL,NULL);
4822 iconv_close(cd);
4824 return 0;
4826 _ACEOF
4827 if ac_fn_c_try_link "$LINENO"; then :
4828 am_cv_lib_iconv=yes
4829 am_cv_func_iconv=yes
4831 rm -f core conftest.err conftest.$ac_objext \
4832 conftest$ac_exeext conftest.$ac_ext
4833 LIBS="$am_save_LIBS"
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
4838 $as_echo "$am_cv_func_iconv" >&6; }
4839 if test "$am_cv_func_iconv" = yes; then
4841 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
4844 if test "$am_cv_lib_iconv" = yes; then
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
4846 $as_echo_n "checking how to link with libiconv... " >&6; }
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
4848 $as_echo "$LIBICONV" >&6; }
4849 else
4850 CPPFLAGS="$am_save_CPPFLAGS"
4851 LIBICONV=
4852 LTLIBICONV=
4860 use_additional=yes
4862 acl_save_prefix="$prefix"
4863 prefix="$acl_final_prefix"
4864 acl_save_exec_prefix="$exec_prefix"
4865 exec_prefix="$acl_final_exec_prefix"
4867 eval additional_includedir=\"$includedir\"
4868 eval additional_libdir=\"$libdir\"
4870 exec_prefix="$acl_save_exec_prefix"
4871 prefix="$acl_save_prefix"
4874 # Check whether --with-libintl-prefix was given.
4875 if test "${with_libintl_prefix+set}" = set; then :
4876 withval=$with_libintl_prefix;
4877 if test "X$withval" = "Xno"; then
4878 use_additional=no
4879 else
4880 if test "X$withval" = "X"; then
4882 acl_save_prefix="$prefix"
4883 prefix="$acl_final_prefix"
4884 acl_save_exec_prefix="$exec_prefix"
4885 exec_prefix="$acl_final_exec_prefix"
4887 eval additional_includedir=\"$includedir\"
4888 eval additional_libdir=\"$libdir\"
4890 exec_prefix="$acl_save_exec_prefix"
4891 prefix="$acl_save_prefix"
4893 else
4894 additional_includedir="$withval/include"
4895 additional_libdir="$withval/lib"
4901 LIBINTL=
4902 LTLIBINTL=
4903 INCINTL=
4904 rpathdirs=
4905 ltrpathdirs=
4906 names_already_handled=
4907 names_next_round='intl '
4908 while test -n "$names_next_round"; do
4909 names_this_round="$names_next_round"
4910 names_next_round=
4911 for name in $names_this_round; do
4912 already_handled=
4913 for n in $names_already_handled; do
4914 if test "$n" = "$name"; then
4915 already_handled=yes
4916 break
4918 done
4919 if test -z "$already_handled"; then
4920 names_already_handled="$names_already_handled $name"
4921 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4922 eval value=\"\$HAVE_LIB$uppername\"
4923 if test -n "$value"; then
4924 if test "$value" = yes; then
4925 eval value=\"\$LIB$uppername\"
4926 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
4927 eval value=\"\$LTLIB$uppername\"
4928 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
4929 else
4932 else
4933 found_dir=
4934 found_la=
4935 found_so=
4936 found_a=
4937 if test $use_additional = yes; then
4938 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
4939 found_dir="$additional_libdir"
4940 found_so="$additional_libdir/lib$name.$shlibext"
4941 if test -f "$additional_libdir/lib$name.la"; then
4942 found_la="$additional_libdir/lib$name.la"
4944 else
4945 if test -f "$additional_libdir/lib$name.$libext"; then
4946 found_dir="$additional_libdir"
4947 found_a="$additional_libdir/lib$name.$libext"
4948 if test -f "$additional_libdir/lib$name.la"; then
4949 found_la="$additional_libdir/lib$name.la"
4954 if test "X$found_dir" = "X"; then
4955 for x in $LDFLAGS $LTLIBINTL; do
4957 acl_save_prefix="$prefix"
4958 prefix="$acl_final_prefix"
4959 acl_save_exec_prefix="$exec_prefix"
4960 exec_prefix="$acl_final_exec_prefix"
4961 eval x=\"$x\"
4962 exec_prefix="$acl_save_exec_prefix"
4963 prefix="$acl_save_prefix"
4965 case "$x" in
4966 -L*)
4967 dir=`echo "X$x" | sed -e 's/^X-L//'`
4968 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
4969 found_dir="$dir"
4970 found_so="$dir/lib$name.$shlibext"
4971 if test -f "$dir/lib$name.la"; then
4972 found_la="$dir/lib$name.la"
4974 else
4975 if test -f "$dir/lib$name.$libext"; then
4976 found_dir="$dir"
4977 found_a="$dir/lib$name.$libext"
4978 if test -f "$dir/lib$name.la"; then
4979 found_la="$dir/lib$name.la"
4984 esac
4985 if test "X$found_dir" != "X"; then
4986 break
4988 done
4990 if test "X$found_dir" != "X"; then
4991 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
4992 if test "X$found_so" != "X"; then
4993 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
4994 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
4995 else
4996 haveit=
4997 for x in $ltrpathdirs; do
4998 if test "X$x" = "X$found_dir"; then
4999 haveit=yes
5000 break
5002 done
5003 if test -z "$haveit"; then
5004 ltrpathdirs="$ltrpathdirs $found_dir"
5006 if test "$hardcode_direct" = yes; then
5007 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5008 else
5009 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5010 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5011 haveit=
5012 for x in $rpathdirs; do
5013 if test "X$x" = "X$found_dir"; then
5014 haveit=yes
5015 break
5017 done
5018 if test -z "$haveit"; then
5019 rpathdirs="$rpathdirs $found_dir"
5021 else
5022 haveit=
5023 for x in $LDFLAGS $LIBINTL; do
5025 acl_save_prefix="$prefix"
5026 prefix="$acl_final_prefix"
5027 acl_save_exec_prefix="$exec_prefix"
5028 exec_prefix="$acl_final_exec_prefix"
5029 eval x=\"$x\"
5030 exec_prefix="$acl_save_exec_prefix"
5031 prefix="$acl_save_prefix"
5033 if test "X$x" = "X-L$found_dir"; then
5034 haveit=yes
5035 break
5037 done
5038 if test -z "$haveit"; then
5039 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
5041 if test "$hardcode_minus_L" != no; then
5042 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5043 else
5044 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5049 else
5050 if test "X$found_a" != "X"; then
5051 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
5052 else
5053 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
5056 additional_includedir=
5057 case "$found_dir" in
5058 */lib | */lib/)
5059 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5060 additional_includedir="$basedir/include"
5062 esac
5063 if test "X$additional_includedir" != "X"; then
5064 if test "X$additional_includedir" != "X/usr/include"; then
5065 haveit=
5066 if test "X$additional_includedir" = "X/usr/local/include"; then
5067 if test -n "$GCC"; then
5068 case $host_os in
5069 linux*) haveit=yes;;
5070 esac
5073 if test -z "$haveit"; then
5074 for x in $CPPFLAGS $INCINTL; do
5076 acl_save_prefix="$prefix"
5077 prefix="$acl_final_prefix"
5078 acl_save_exec_prefix="$exec_prefix"
5079 exec_prefix="$acl_final_exec_prefix"
5080 eval x=\"$x\"
5081 exec_prefix="$acl_save_exec_prefix"
5082 prefix="$acl_save_prefix"
5084 if test "X$x" = "X-I$additional_includedir"; then
5085 haveit=yes
5086 break
5088 done
5089 if test -z "$haveit"; then
5090 if test -d "$additional_includedir"; then
5091 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
5097 if test -n "$found_la"; then
5098 save_libdir="$libdir"
5099 case "$found_la" in
5100 */* | *\\*) . "$found_la" ;;
5101 *) . "./$found_la" ;;
5102 esac
5103 libdir="$save_libdir"
5104 for dep in $dependency_libs; do
5105 case "$dep" in
5106 -L*)
5107 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5108 if test "X$additional_libdir" != "X/usr/lib"; then
5109 haveit=
5110 if test "X$additional_libdir" = "X/usr/local/lib"; then
5111 if test -n "$GCC"; then
5112 case $host_os in
5113 linux*) haveit=yes;;
5114 esac
5117 if test -z "$haveit"; then
5118 haveit=
5119 for x in $LDFLAGS $LIBINTL; do
5121 acl_save_prefix="$prefix"
5122 prefix="$acl_final_prefix"
5123 acl_save_exec_prefix="$exec_prefix"
5124 exec_prefix="$acl_final_exec_prefix"
5125 eval x=\"$x\"
5126 exec_prefix="$acl_save_exec_prefix"
5127 prefix="$acl_save_prefix"
5129 if test "X$x" = "X-L$additional_libdir"; then
5130 haveit=yes
5131 break
5133 done
5134 if test -z "$haveit"; then
5135 if test -d "$additional_libdir"; then
5136 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
5139 haveit=
5140 for x in $LDFLAGS $LTLIBINTL; do
5142 acl_save_prefix="$prefix"
5143 prefix="$acl_final_prefix"
5144 acl_save_exec_prefix="$exec_prefix"
5145 exec_prefix="$acl_final_exec_prefix"
5146 eval x=\"$x\"
5147 exec_prefix="$acl_save_exec_prefix"
5148 prefix="$acl_save_prefix"
5150 if test "X$x" = "X-L$additional_libdir"; then
5151 haveit=yes
5152 break
5154 done
5155 if test -z "$haveit"; then
5156 if test -d "$additional_libdir"; then
5157 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
5163 -R*)
5164 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5165 if test "$enable_rpath" != no; then
5166 haveit=
5167 for x in $rpathdirs; do
5168 if test "X$x" = "X$dir"; then
5169 haveit=yes
5170 break
5172 done
5173 if test -z "$haveit"; then
5174 rpathdirs="$rpathdirs $dir"
5176 haveit=
5177 for x in $ltrpathdirs; do
5178 if test "X$x" = "X$dir"; then
5179 haveit=yes
5180 break
5182 done
5183 if test -z "$haveit"; then
5184 ltrpathdirs="$ltrpathdirs $dir"
5188 -l*)
5189 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5191 *.la)
5192 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5195 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
5196 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
5198 esac
5199 done
5201 else
5202 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5203 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
5207 done
5208 done
5209 if test "X$rpathdirs" != "X"; then
5210 if test -n "$hardcode_libdir_separator"; then
5211 alldirs=
5212 for found_dir in $rpathdirs; do
5213 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5214 done
5215 acl_save_libdir="$libdir"
5216 libdir="$alldirs"
5217 eval flag=\"$hardcode_libdir_flag_spec\"
5218 libdir="$acl_save_libdir"
5219 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5220 else
5221 for found_dir in $rpathdirs; do
5222 acl_save_libdir="$libdir"
5223 libdir="$found_dir"
5224 eval flag=\"$hardcode_libdir_flag_spec\"
5225 libdir="$acl_save_libdir"
5226 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5227 done
5230 if test "X$ltrpathdirs" != "X"; then
5231 for found_dir in $ltrpathdirs; do
5232 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
5233 done
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
5237 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
5238 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
5239 $as_echo_n "(cached) " >&6
5240 else
5241 gt_save_CPPFLAGS="$CPPFLAGS"
5242 CPPFLAGS="$CPPFLAGS $INCINTL"
5243 gt_save_LIBS="$LIBS"
5244 LIBS="$LIBS $LIBINTL"
5245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5246 /* end confdefs.h. */
5247 #include <libintl.h>
5248 extern int _nl_msg_cat_cntr;
5249 extern
5250 #ifdef __cplusplus
5252 #endif
5253 const char *_nl_expand_alias ();
5255 main ()
5257 bindtextdomain ("", "");
5258 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
5260 return 0;
5262 _ACEOF
5263 if ac_fn_c_try_link "$LINENO"; then :
5264 gt_cv_func_gnugettext1_libintl=yes
5265 else
5266 gt_cv_func_gnugettext1_libintl=no
5268 rm -f core conftest.err conftest.$ac_objext \
5269 conftest$ac_exeext conftest.$ac_ext
5270 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
5271 LIBS="$LIBS $LIBICONV"
5272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273 /* end confdefs.h. */
5274 #include <libintl.h>
5275 extern int _nl_msg_cat_cntr;
5276 extern
5277 #ifdef __cplusplus
5279 #endif
5280 const char *_nl_expand_alias ();
5282 main ()
5284 bindtextdomain ("", "");
5285 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
5287 return 0;
5289 _ACEOF
5290 if ac_fn_c_try_link "$LINENO"; then :
5291 LIBINTL="$LIBINTL $LIBICONV"
5292 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
5293 gt_cv_func_gnugettext1_libintl=yes
5296 rm -f core conftest.err conftest.$ac_objext \
5297 conftest$ac_exeext conftest.$ac_ext
5299 CPPFLAGS="$gt_save_CPPFLAGS"
5300 LIBS="$gt_save_LIBS"
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
5303 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
5306 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
5307 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
5308 && test "$PACKAGE" != gettext-runtime \
5309 && test "$PACKAGE" != gettext-tools; }; then
5310 gt_use_preinstalled_gnugettext=yes
5311 else
5312 LIBINTL=
5313 LTLIBINTL=
5314 INCINTL=
5319 if test "$gt_use_preinstalled_gnugettext" = "yes" \
5320 || test "$nls_cv_use_gnu_gettext" = "yes"; then
5322 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
5324 else
5325 USE_NLS=no
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
5330 $as_echo_n "checking whether to use NLS... " >&6; }
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5332 $as_echo "$USE_NLS" >&6; }
5333 if test "$USE_NLS" = "yes"; then
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
5335 $as_echo_n "checking where the gettext function comes from... " >&6; }
5336 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5337 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
5338 gt_source="external libintl"
5339 else
5340 gt_source="libc"
5342 else
5343 gt_source="included intl directory"
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
5346 $as_echo "$gt_source" >&6; }
5349 if test "$USE_NLS" = "yes"; then
5351 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5352 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
5354 $as_echo_n "checking how to link with libintl... " >&6; }
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
5356 $as_echo "$LIBINTL" >&6; }
5358 for element in $INCINTL; do
5359 haveit=
5360 for x in $CPPFLAGS; do
5362 acl_save_prefix="$prefix"
5363 prefix="$acl_final_prefix"
5364 acl_save_exec_prefix="$exec_prefix"
5365 exec_prefix="$acl_final_exec_prefix"
5366 eval x=\"$x\"
5367 exec_prefix="$acl_save_exec_prefix"
5368 prefix="$acl_save_prefix"
5370 if test "X$x" = "X$element"; then
5371 haveit=yes
5372 break
5374 done
5375 if test -z "$haveit"; then
5376 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5378 done
5383 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
5386 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
5390 POSUB=po
5395 INTLLIBS="$LIBINTL"
5403 for ac_prog in 'bison -y' byacc
5405 # Extract the first word of "$ac_prog", so it can be a program name with args.
5406 set dummy $ac_prog; ac_word=$2
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5408 $as_echo_n "checking for $ac_word... " >&6; }
5409 if test "${ac_cv_prog_YACC+set}" = set; then :
5410 $as_echo_n "(cached) " >&6
5411 else
5412 if test -n "$YACC"; then
5413 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5414 else
5415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416 for as_dir in $PATH
5418 IFS=$as_save_IFS
5419 test -z "$as_dir" && as_dir=.
5420 for ac_exec_ext in '' $ac_executable_extensions; do
5421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5422 ac_cv_prog_YACC="$ac_prog"
5423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5424 break 2
5426 done
5427 done
5428 IFS=$as_save_IFS
5432 YACC=$ac_cv_prog_YACC
5433 if test -n "$YACC"; then
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5435 $as_echo "$YACC" >&6; }
5436 else
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5438 $as_echo "no" >&6; }
5442 test -n "$YACC" && break
5443 done
5444 test -n "$YACC" || YACC="yacc"
5446 for ac_prog in flex lex
5448 # Extract the first word of "$ac_prog", so it can be a program name with args.
5449 set dummy $ac_prog; ac_word=$2
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5451 $as_echo_n "checking for $ac_word... " >&6; }
5452 if test "${ac_cv_prog_LEX+set}" = set; then :
5453 $as_echo_n "(cached) " >&6
5454 else
5455 if test -n "$LEX"; then
5456 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5457 else
5458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459 for as_dir in $PATH
5461 IFS=$as_save_IFS
5462 test -z "$as_dir" && as_dir=.
5463 for ac_exec_ext in '' $ac_executable_extensions; do
5464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5465 ac_cv_prog_LEX="$ac_prog"
5466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5467 break 2
5469 done
5470 done
5471 IFS=$as_save_IFS
5475 LEX=$ac_cv_prog_LEX
5476 if test -n "$LEX"; then
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5478 $as_echo "$LEX" >&6; }
5479 else
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5481 $as_echo "no" >&6; }
5485 test -n "$LEX" && break
5486 done
5487 test -n "$LEX" || LEX=":"
5489 if test "x$LEX" != "x:"; then
5490 cat >conftest.l <<_ACEOF
5492 a { ECHO; }
5493 b { REJECT; }
5494 c { yymore (); }
5495 d { yyless (1); }
5496 e { yyless (input () != 0); }
5497 f { unput (yytext[0]); }
5498 . { BEGIN INITIAL; }
5500 #ifdef YYTEXT_POINTER
5501 extern char *yytext;
5502 #endif
5504 main (void)
5506 return ! yylex () + ! yywrap ();
5508 _ACEOF
5509 { { ac_try="$LEX conftest.l"
5510 case "(($ac_try" in
5511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5512 *) ac_try_echo=$ac_try;;
5513 esac
5514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5515 $as_echo "$ac_try_echo"; } >&5
5516 (eval "$LEX conftest.l") 2>&5
5517 ac_status=$?
5518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5519 test $ac_status = 0; }
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5521 $as_echo_n "checking lex output file root... " >&6; }
5522 if test "${ac_cv_prog_lex_root+set}" = set; then :
5523 $as_echo_n "(cached) " >&6
5524 else
5526 if test -f lex.yy.c; then
5527 ac_cv_prog_lex_root=lex.yy
5528 elif test -f lexyy.c; then
5529 ac_cv_prog_lex_root=lexyy
5530 else
5531 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5535 $as_echo "$ac_cv_prog_lex_root" >&6; }
5536 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5538 if test -z "${LEXLIB+set}"; then
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
5540 $as_echo_n "checking lex library... " >&6; }
5541 if test "${ac_cv_lib_lex+set}" = set; then :
5542 $as_echo_n "(cached) " >&6
5543 else
5545 ac_save_LIBS=$LIBS
5546 ac_cv_lib_lex='none needed'
5547 for ac_lib in '' -lfl -ll; do
5548 LIBS="$ac_lib $ac_save_LIBS"
5549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5550 /* end confdefs.h. */
5551 `cat $LEX_OUTPUT_ROOT.c`
5552 _ACEOF
5553 if ac_fn_c_try_link "$LINENO"; then :
5554 ac_cv_lib_lex=$ac_lib
5556 rm -f core conftest.err conftest.$ac_objext \
5557 conftest$ac_exeext conftest.$ac_ext
5558 test "$ac_cv_lib_lex" != 'none needed' && break
5559 done
5560 LIBS=$ac_save_LIBS
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5564 $as_echo "$ac_cv_lib_lex" >&6; }
5565 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5570 $as_echo_n "checking whether yytext is a pointer... " >&6; }
5571 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
5572 $as_echo_n "(cached) " >&6
5573 else
5574 # POSIX says lex can declare yytext either as a pointer or an array; the
5575 # default is implementation-dependent. Figure out which it is, since
5576 # not all implementations provide the %pointer and %array declarations.
5577 ac_cv_prog_lex_yytext_pointer=no
5578 ac_save_LIBS=$LIBS
5579 LIBS="$LEXLIB $ac_save_LIBS"
5580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5581 /* end confdefs.h. */
5582 #define YYTEXT_POINTER 1
5583 `cat $LEX_OUTPUT_ROOT.c`
5584 _ACEOF
5585 if ac_fn_c_try_link "$LINENO"; then :
5586 ac_cv_prog_lex_yytext_pointer=yes
5588 rm -f core conftest.err conftest.$ac_objext \
5589 conftest$ac_exeext conftest.$ac_ext
5590 LIBS=$ac_save_LIBS
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5594 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5595 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5597 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
5600 rm -f conftest.l $LEX_OUTPUT_ROOT.c
5603 if test "$LEX" = :; then
5604 LEX=${am_missing_run}flex
5606 ac_ext=c
5607 ac_cpp='$CPP $CPPFLAGS'
5608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5611 if test -n "$ac_tool_prefix"; then
5612 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5613 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5615 $as_echo_n "checking for $ac_word... " >&6; }
5616 if test "${ac_cv_prog_CC+set}" = set; then :
5617 $as_echo_n "(cached) " >&6
5618 else
5619 if test -n "$CC"; then
5620 ac_cv_prog_CC="$CC" # Let the user override the test.
5621 else
5622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5623 for as_dir in $PATH
5625 IFS=$as_save_IFS
5626 test -z "$as_dir" && as_dir=.
5627 for ac_exec_ext in '' $ac_executable_extensions; do
5628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5629 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5631 break 2
5633 done
5634 done
5635 IFS=$as_save_IFS
5639 CC=$ac_cv_prog_CC
5640 if test -n "$CC"; then
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5642 $as_echo "$CC" >&6; }
5643 else
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5645 $as_echo "no" >&6; }
5650 if test -z "$ac_cv_prog_CC"; then
5651 ac_ct_CC=$CC
5652 # Extract the first word of "gcc", so it can be a program name with args.
5653 set dummy gcc; ac_word=$2
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5655 $as_echo_n "checking for $ac_word... " >&6; }
5656 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5657 $as_echo_n "(cached) " >&6
5658 else
5659 if test -n "$ac_ct_CC"; then
5660 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5661 else
5662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5663 for as_dir in $PATH
5665 IFS=$as_save_IFS
5666 test -z "$as_dir" && as_dir=.
5667 for ac_exec_ext in '' $ac_executable_extensions; do
5668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5669 ac_cv_prog_ac_ct_CC="gcc"
5670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5671 break 2
5673 done
5674 done
5675 IFS=$as_save_IFS
5679 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5680 if test -n "$ac_ct_CC"; then
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5682 $as_echo "$ac_ct_CC" >&6; }
5683 else
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5685 $as_echo "no" >&6; }
5688 if test "x$ac_ct_CC" = x; then
5689 CC=""
5690 else
5691 case $cross_compiling:$ac_tool_warned in
5692 yes:)
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5695 ac_tool_warned=yes ;;
5696 esac
5697 CC=$ac_ct_CC
5699 else
5700 CC="$ac_cv_prog_CC"
5703 if test -z "$CC"; then
5704 if test -n "$ac_tool_prefix"; then
5705 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5706 set dummy ${ac_tool_prefix}cc; ac_word=$2
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5708 $as_echo_n "checking for $ac_word... " >&6; }
5709 if test "${ac_cv_prog_CC+set}" = set; then :
5710 $as_echo_n "(cached) " >&6
5711 else
5712 if test -n "$CC"; then
5713 ac_cv_prog_CC="$CC" # Let the user override the test.
5714 else
5715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5716 for as_dir in $PATH
5718 IFS=$as_save_IFS
5719 test -z "$as_dir" && as_dir=.
5720 for ac_exec_ext in '' $ac_executable_extensions; do
5721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5722 ac_cv_prog_CC="${ac_tool_prefix}cc"
5723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5724 break 2
5726 done
5727 done
5728 IFS=$as_save_IFS
5732 CC=$ac_cv_prog_CC
5733 if test -n "$CC"; then
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5735 $as_echo "$CC" >&6; }
5736 else
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738 $as_echo "no" >&6; }
5744 if test -z "$CC"; then
5745 # Extract the first word of "cc", so it can be a program name with args.
5746 set dummy cc; ac_word=$2
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5748 $as_echo_n "checking for $ac_word... " >&6; }
5749 if test "${ac_cv_prog_CC+set}" = set; then :
5750 $as_echo_n "(cached) " >&6
5751 else
5752 if test -n "$CC"; then
5753 ac_cv_prog_CC="$CC" # Let the user override the test.
5754 else
5755 ac_prog_rejected=no
5756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757 for as_dir in $PATH
5759 IFS=$as_save_IFS
5760 test -z "$as_dir" && as_dir=.
5761 for ac_exec_ext in '' $ac_executable_extensions; do
5762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5763 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5764 ac_prog_rejected=yes
5765 continue
5767 ac_cv_prog_CC="cc"
5768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5769 break 2
5771 done
5772 done
5773 IFS=$as_save_IFS
5775 if test $ac_prog_rejected = yes; then
5776 # We found a bogon in the path, so make sure we never use it.
5777 set dummy $ac_cv_prog_CC
5778 shift
5779 if test $# != 0; then
5780 # We chose a different compiler from the bogus one.
5781 # However, it has the same basename, so the bogon will be chosen
5782 # first if we set CC to just the basename; use the full file name.
5783 shift
5784 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5789 CC=$ac_cv_prog_CC
5790 if test -n "$CC"; then
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5792 $as_echo "$CC" >&6; }
5793 else
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5795 $as_echo "no" >&6; }
5800 if test -z "$CC"; then
5801 if test -n "$ac_tool_prefix"; then
5802 for ac_prog in cl.exe
5804 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5805 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5807 $as_echo_n "checking for $ac_word... " >&6; }
5808 if test "${ac_cv_prog_CC+set}" = set; then :
5809 $as_echo_n "(cached) " >&6
5810 else
5811 if test -n "$CC"; then
5812 ac_cv_prog_CC="$CC" # Let the user override the test.
5813 else
5814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815 for as_dir in $PATH
5817 IFS=$as_save_IFS
5818 test -z "$as_dir" && as_dir=.
5819 for ac_exec_ext in '' $ac_executable_extensions; do
5820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5821 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5823 break 2
5825 done
5826 done
5827 IFS=$as_save_IFS
5831 CC=$ac_cv_prog_CC
5832 if test -n "$CC"; then
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5834 $as_echo "$CC" >&6; }
5835 else
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5837 $as_echo "no" >&6; }
5841 test -n "$CC" && break
5842 done
5844 if test -z "$CC"; then
5845 ac_ct_CC=$CC
5846 for ac_prog in cl.exe
5848 # Extract the first word of "$ac_prog", so it can be a program name with args.
5849 set dummy $ac_prog; ac_word=$2
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5851 $as_echo_n "checking for $ac_word... " >&6; }
5852 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5853 $as_echo_n "(cached) " >&6
5854 else
5855 if test -n "$ac_ct_CC"; then
5856 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5857 else
5858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 for as_dir in $PATH
5861 IFS=$as_save_IFS
5862 test -z "$as_dir" && as_dir=.
5863 for ac_exec_ext in '' $ac_executable_extensions; do
5864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5865 ac_cv_prog_ac_ct_CC="$ac_prog"
5866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5867 break 2
5869 done
5870 done
5871 IFS=$as_save_IFS
5875 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5876 if test -n "$ac_ct_CC"; then
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5878 $as_echo "$ac_ct_CC" >&6; }
5879 else
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5881 $as_echo "no" >&6; }
5885 test -n "$ac_ct_CC" && break
5886 done
5888 if test "x$ac_ct_CC" = x; then
5889 CC=""
5890 else
5891 case $cross_compiling:$ac_tool_warned in
5892 yes:)
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5895 ac_tool_warned=yes ;;
5896 esac
5897 CC=$ac_ct_CC
5904 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5906 as_fn_error "no acceptable C compiler found in \$PATH
5907 See \`config.log' for more details." "$LINENO" 5; }
5909 # Provide some information about the compiler.
5910 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5911 set X $ac_compile
5912 ac_compiler=$2
5913 for ac_option in --version -v -V -qversion; do
5914 { { ac_try="$ac_compiler $ac_option >&5"
5915 case "(($ac_try" in
5916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5917 *) ac_try_echo=$ac_try;;
5918 esac
5919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5920 $as_echo "$ac_try_echo"; } >&5
5921 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5922 ac_status=$?
5923 if test -s conftest.err; then
5924 sed '10a\
5925 ... rest of stderr output deleted ...
5926 10q' conftest.err >conftest.er1
5927 cat conftest.er1 >&5
5929 rm -f conftest.er1 conftest.err
5930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5931 test $ac_status = 0; }
5932 done
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5935 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5936 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5937 $as_echo_n "(cached) " >&6
5938 else
5939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5940 /* end confdefs.h. */
5943 main ()
5945 #ifndef __GNUC__
5946 choke me
5947 #endif
5950 return 0;
5952 _ACEOF
5953 if ac_fn_c_try_compile "$LINENO"; then :
5954 ac_compiler_gnu=yes
5955 else
5956 ac_compiler_gnu=no
5958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5959 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5963 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5964 if test $ac_compiler_gnu = yes; then
5965 GCC=yes
5966 else
5967 GCC=
5969 ac_test_CFLAGS=${CFLAGS+set}
5970 ac_save_CFLAGS=$CFLAGS
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5972 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5973 if test "${ac_cv_prog_cc_g+set}" = set; then :
5974 $as_echo_n "(cached) " >&6
5975 else
5976 ac_save_c_werror_flag=$ac_c_werror_flag
5977 ac_c_werror_flag=yes
5978 ac_cv_prog_cc_g=no
5979 CFLAGS="-g"
5980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5981 /* end confdefs.h. */
5984 main ()
5988 return 0;
5990 _ACEOF
5991 if ac_fn_c_try_compile "$LINENO"; then :
5992 ac_cv_prog_cc_g=yes
5993 else
5994 CFLAGS=""
5995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5996 /* end confdefs.h. */
5999 main ()
6003 return 0;
6005 _ACEOF
6006 if ac_fn_c_try_compile "$LINENO"; then :
6008 else
6009 ac_c_werror_flag=$ac_save_c_werror_flag
6010 CFLAGS="-g"
6011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6012 /* end confdefs.h. */
6015 main ()
6019 return 0;
6021 _ACEOF
6022 if ac_fn_c_try_compile "$LINENO"; then :
6023 ac_cv_prog_cc_g=yes
6025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6030 ac_c_werror_flag=$ac_save_c_werror_flag
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6033 $as_echo "$ac_cv_prog_cc_g" >&6; }
6034 if test "$ac_test_CFLAGS" = set; then
6035 CFLAGS=$ac_save_CFLAGS
6036 elif test $ac_cv_prog_cc_g = yes; then
6037 if test "$GCC" = yes; then
6038 CFLAGS="-g -O2"
6039 else
6040 CFLAGS="-g"
6042 else
6043 if test "$GCC" = yes; then
6044 CFLAGS="-O2"
6045 else
6046 CFLAGS=
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6050 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6051 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6052 $as_echo_n "(cached) " >&6
6053 else
6054 ac_cv_prog_cc_c89=no
6055 ac_save_CC=$CC
6056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6057 /* end confdefs.h. */
6058 #include <stdarg.h>
6059 #include <stdio.h>
6060 #include <sys/types.h>
6061 #include <sys/stat.h>
6062 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6063 struct buf { int x; };
6064 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6065 static char *e (p, i)
6066 char **p;
6067 int i;
6069 return p[i];
6071 static char *f (char * (*g) (char **, int), char **p, ...)
6073 char *s;
6074 va_list v;
6075 va_start (v,p);
6076 s = g (p, va_arg (v,int));
6077 va_end (v);
6078 return s;
6081 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6082 function prototypes and stuff, but not '\xHH' hex character constants.
6083 These don't provoke an error unfortunately, instead are silently treated
6084 as 'x'. The following induces an error, until -std is added to get
6085 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6086 array size at least. It's necessary to write '\x00'==0 to get something
6087 that's true only with -std. */
6088 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6090 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6091 inside strings and character constants. */
6092 #define FOO(x) 'x'
6093 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6095 int test (int i, double x);
6096 struct s1 {int (*f) (int a);};
6097 struct s2 {int (*f) (double a);};
6098 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6099 int argc;
6100 char **argv;
6102 main ()
6104 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6106 return 0;
6108 _ACEOF
6109 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6110 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6112 CC="$ac_save_CC $ac_arg"
6113 if ac_fn_c_try_compile "$LINENO"; then :
6114 ac_cv_prog_cc_c89=$ac_arg
6116 rm -f core conftest.err conftest.$ac_objext
6117 test "x$ac_cv_prog_cc_c89" != "xno" && break
6118 done
6119 rm -f conftest.$ac_ext
6120 CC=$ac_save_CC
6123 # AC_CACHE_VAL
6124 case "x$ac_cv_prog_cc_c89" in
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6127 $as_echo "none needed" >&6; } ;;
6128 xno)
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6130 $as_echo "unsupported" >&6; } ;;
6132 CC="$CC $ac_cv_prog_cc_c89"
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6134 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6135 esac
6136 if test "x$ac_cv_prog_cc_c89" != xno; then :
6140 ac_ext=c
6141 ac_cpp='$CPP $CPPFLAGS'
6142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6146 depcc="$CC" am_compiler_list=
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6149 $as_echo_n "checking dependency style of $depcc... " >&6; }
6150 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
6151 $as_echo_n "(cached) " >&6
6152 else
6153 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6154 # We make a subdir and do the tests there. Otherwise we can end up
6155 # making bogus files that we don't know about and never remove. For
6156 # instance it was reported that on HP-UX the gcc test will end up
6157 # making a dummy file named `D' -- because `-MD' means `put the output
6158 # in D'.
6159 mkdir conftest.dir
6160 # Copy depcomp to subdir because otherwise we won't find it if we're
6161 # using a relative directory.
6162 cp "$am_depcomp" conftest.dir
6163 cd conftest.dir
6164 # We will build objects and dependencies in a subdirectory because
6165 # it helps to detect inapplicable dependency modes. For instance
6166 # both Tru64's cc and ICC support -MD to output dependencies as a
6167 # side effect of compilation, but ICC will put the dependencies in
6168 # the current directory while Tru64 will put them in the object
6169 # directory.
6170 mkdir sub
6172 am_cv_CC_dependencies_compiler_type=none
6173 if test "$am_compiler_list" = ""; then
6174 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6176 am__universal=false
6177 case " $depcc " in #(
6178 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6179 esac
6181 for depmode in $am_compiler_list; do
6182 # Setup a source with many dependencies, because some compilers
6183 # like to wrap large dependency lists on column 80 (with \), and
6184 # we should not choose a depcomp mode which is confused by this.
6186 # We need to recreate these files for each test, as the compiler may
6187 # overwrite some of them when testing with obscure command lines.
6188 # This happens at least with the AIX C compiler.
6189 : > sub/conftest.c
6190 for i in 1 2 3 4 5 6; do
6191 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6192 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6193 # Solaris 8's {/usr,}/bin/sh.
6194 touch sub/conftst$i.h
6195 done
6196 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6198 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6199 # mode. It turns out that the SunPro C++ compiler does not properly
6200 # handle `-M -o', and we need to detect this. Also, some Intel
6201 # versions had trouble with output in subdirs
6202 am__obj=sub/conftest.${OBJEXT-o}
6203 am__minus_obj="-o $am__obj"
6204 case $depmode in
6205 gcc)
6206 # This depmode causes a compiler race in universal mode.
6207 test "$am__universal" = false || continue
6209 nosideeffect)
6210 # after this tag, mechanisms are not by side-effect, so they'll
6211 # only be used when explicitly requested
6212 if test "x$enable_dependency_tracking" = xyes; then
6213 continue
6214 else
6215 break
6218 msvisualcpp | msvcmsys)
6219 # This compiler won't grok `-c -o', but also, the minuso test has
6220 # not run yet. These depmodes are late enough in the game, and
6221 # so weak that their functioning should not be impacted.
6222 am__obj=conftest.${OBJEXT-o}
6223 am__minus_obj=
6225 none) break ;;
6226 esac
6227 if depmode=$depmode \
6228 source=sub/conftest.c object=$am__obj \
6229 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6230 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6231 >/dev/null 2>conftest.err &&
6232 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6233 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6234 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6235 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6236 # icc doesn't choke on unknown options, it will just issue warnings
6237 # or remarks (even with -Werror). So we grep stderr for any message
6238 # that says an option was ignored or not supported.
6239 # When given -MP, icc 7.0 and 7.1 complain thusly:
6240 # icc: Command line warning: ignoring option '-M'; no argument required
6241 # The diagnosis changed in icc 8.0:
6242 # icc: Command line remark: option '-MP' not supported
6243 if (grep 'ignoring option' conftest.err ||
6244 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6245 am_cv_CC_dependencies_compiler_type=$depmode
6246 break
6249 done
6251 cd ..
6252 rm -rf conftest.dir
6253 else
6254 am_cv_CC_dependencies_compiler_type=none
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6259 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6260 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6263 test "x$enable_dependency_tracking" != xno \
6264 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6265 am__fastdepCC_TRUE=
6266 am__fastdepCC_FALSE='#'
6267 else
6268 am__fastdepCC_TRUE='#'
6269 am__fastdepCC_FALSE=
6273 ac_ext=cpp
6274 ac_cpp='$CXXCPP $CPPFLAGS'
6275 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6276 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6277 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6278 if test -z "$CXX"; then
6279 if test -n "$CCC"; then
6280 CXX=$CCC
6281 else
6282 if test -n "$ac_tool_prefix"; then
6283 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6285 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6286 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6288 $as_echo_n "checking for $ac_word... " >&6; }
6289 if test "${ac_cv_prog_CXX+set}" = set; then :
6290 $as_echo_n "(cached) " >&6
6291 else
6292 if test -n "$CXX"; then
6293 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6294 else
6295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296 for as_dir in $PATH
6298 IFS=$as_save_IFS
6299 test -z "$as_dir" && as_dir=.
6300 for ac_exec_ext in '' $ac_executable_extensions; do
6301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6302 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6304 break 2
6306 done
6307 done
6308 IFS=$as_save_IFS
6312 CXX=$ac_cv_prog_CXX
6313 if test -n "$CXX"; then
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6315 $as_echo "$CXX" >&6; }
6316 else
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6318 $as_echo "no" >&6; }
6322 test -n "$CXX" && break
6323 done
6325 if test -z "$CXX"; then
6326 ac_ct_CXX=$CXX
6327 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6329 # Extract the first word of "$ac_prog", so it can be a program name with args.
6330 set dummy $ac_prog; ac_word=$2
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6332 $as_echo_n "checking for $ac_word... " >&6; }
6333 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6334 $as_echo_n "(cached) " >&6
6335 else
6336 if test -n "$ac_ct_CXX"; then
6337 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6338 else
6339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340 for as_dir in $PATH
6342 IFS=$as_save_IFS
6343 test -z "$as_dir" && as_dir=.
6344 for ac_exec_ext in '' $ac_executable_extensions; do
6345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6346 ac_cv_prog_ac_ct_CXX="$ac_prog"
6347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6348 break 2
6350 done
6351 done
6352 IFS=$as_save_IFS
6356 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6357 if test -n "$ac_ct_CXX"; then
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6359 $as_echo "$ac_ct_CXX" >&6; }
6360 else
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6362 $as_echo "no" >&6; }
6366 test -n "$ac_ct_CXX" && break
6367 done
6369 if test "x$ac_ct_CXX" = x; then
6370 CXX="g++"
6371 else
6372 case $cross_compiling:$ac_tool_warned in
6373 yes:)
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6376 ac_tool_warned=yes ;;
6377 esac
6378 CXX=$ac_ct_CXX
6384 # Provide some information about the compiler.
6385 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6386 set X $ac_compile
6387 ac_compiler=$2
6388 for ac_option in --version -v -V -qversion; do
6389 { { ac_try="$ac_compiler $ac_option >&5"
6390 case "(($ac_try" in
6391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6392 *) ac_try_echo=$ac_try;;
6393 esac
6394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6395 $as_echo "$ac_try_echo"; } >&5
6396 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6397 ac_status=$?
6398 if test -s conftest.err; then
6399 sed '10a\
6400 ... rest of stderr output deleted ...
6401 10q' conftest.err >conftest.er1
6402 cat conftest.er1 >&5
6404 rm -f conftest.er1 conftest.err
6405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6406 test $ac_status = 0; }
6407 done
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6410 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6411 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6412 $as_echo_n "(cached) " >&6
6413 else
6414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6415 /* end confdefs.h. */
6418 main ()
6420 #ifndef __GNUC__
6421 choke me
6422 #endif
6425 return 0;
6427 _ACEOF
6428 if ac_fn_cxx_try_compile "$LINENO"; then :
6429 ac_compiler_gnu=yes
6430 else
6431 ac_compiler_gnu=no
6433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6434 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6438 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6439 if test $ac_compiler_gnu = yes; then
6440 GXX=yes
6441 else
6442 GXX=
6444 ac_test_CXXFLAGS=${CXXFLAGS+set}
6445 ac_save_CXXFLAGS=$CXXFLAGS
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6447 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6448 if test "${ac_cv_prog_cxx_g+set}" = set; then :
6449 $as_echo_n "(cached) " >&6
6450 else
6451 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6452 ac_cxx_werror_flag=yes
6453 ac_cv_prog_cxx_g=no
6454 CXXFLAGS="-g"
6455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6456 /* end confdefs.h. */
6459 main ()
6463 return 0;
6465 _ACEOF
6466 if ac_fn_cxx_try_compile "$LINENO"; then :
6467 ac_cv_prog_cxx_g=yes
6468 else
6469 CXXFLAGS=""
6470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6471 /* end confdefs.h. */
6474 main ()
6478 return 0;
6480 _ACEOF
6481 if ac_fn_cxx_try_compile "$LINENO"; then :
6483 else
6484 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6485 CXXFLAGS="-g"
6486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6487 /* end confdefs.h. */
6490 main ()
6494 return 0;
6496 _ACEOF
6497 if ac_fn_cxx_try_compile "$LINENO"; then :
6498 ac_cv_prog_cxx_g=yes
6500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6505 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6508 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6509 if test "$ac_test_CXXFLAGS" = set; then
6510 CXXFLAGS=$ac_save_CXXFLAGS
6511 elif test $ac_cv_prog_cxx_g = yes; then
6512 if test "$GXX" = yes; then
6513 CXXFLAGS="-g -O2"
6514 else
6515 CXXFLAGS="-g"
6517 else
6518 if test "$GXX" = yes; then
6519 CXXFLAGS="-O2"
6520 else
6521 CXXFLAGS=
6524 ac_ext=c
6525 ac_cpp='$CPP $CPPFLAGS'
6526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6530 depcc="$CXX" am_compiler_list=
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6533 $as_echo_n "checking dependency style of $depcc... " >&6; }
6534 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6535 $as_echo_n "(cached) " >&6
6536 else
6537 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6538 # We make a subdir and do the tests there. Otherwise we can end up
6539 # making bogus files that we don't know about and never remove. For
6540 # instance it was reported that on HP-UX the gcc test will end up
6541 # making a dummy file named `D' -- because `-MD' means `put the output
6542 # in D'.
6543 mkdir conftest.dir
6544 # Copy depcomp to subdir because otherwise we won't find it if we're
6545 # using a relative directory.
6546 cp "$am_depcomp" conftest.dir
6547 cd conftest.dir
6548 # We will build objects and dependencies in a subdirectory because
6549 # it helps to detect inapplicable dependency modes. For instance
6550 # both Tru64's cc and ICC support -MD to output dependencies as a
6551 # side effect of compilation, but ICC will put the dependencies in
6552 # the current directory while Tru64 will put them in the object
6553 # directory.
6554 mkdir sub
6556 am_cv_CXX_dependencies_compiler_type=none
6557 if test "$am_compiler_list" = ""; then
6558 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6560 am__universal=false
6561 case " $depcc " in #(
6562 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6563 esac
6565 for depmode in $am_compiler_list; do
6566 # Setup a source with many dependencies, because some compilers
6567 # like to wrap large dependency lists on column 80 (with \), and
6568 # we should not choose a depcomp mode which is confused by this.
6570 # We need to recreate these files for each test, as the compiler may
6571 # overwrite some of them when testing with obscure command lines.
6572 # This happens at least with the AIX C compiler.
6573 : > sub/conftest.c
6574 for i in 1 2 3 4 5 6; do
6575 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6576 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6577 # Solaris 8's {/usr,}/bin/sh.
6578 touch sub/conftst$i.h
6579 done
6580 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6582 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6583 # mode. It turns out that the SunPro C++ compiler does not properly
6584 # handle `-M -o', and we need to detect this. Also, some Intel
6585 # versions had trouble with output in subdirs
6586 am__obj=sub/conftest.${OBJEXT-o}
6587 am__minus_obj="-o $am__obj"
6588 case $depmode in
6589 gcc)
6590 # This depmode causes a compiler race in universal mode.
6591 test "$am__universal" = false || continue
6593 nosideeffect)
6594 # after this tag, mechanisms are not by side-effect, so they'll
6595 # only be used when explicitly requested
6596 if test "x$enable_dependency_tracking" = xyes; then
6597 continue
6598 else
6599 break
6602 msvisualcpp | msvcmsys)
6603 # This compiler won't grok `-c -o', but also, the minuso test has
6604 # not run yet. These depmodes are late enough in the game, and
6605 # so weak that their functioning should not be impacted.
6606 am__obj=conftest.${OBJEXT-o}
6607 am__minus_obj=
6609 none) break ;;
6610 esac
6611 if depmode=$depmode \
6612 source=sub/conftest.c object=$am__obj \
6613 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6614 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6615 >/dev/null 2>conftest.err &&
6616 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6617 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6618 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6619 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6620 # icc doesn't choke on unknown options, it will just issue warnings
6621 # or remarks (even with -Werror). So we grep stderr for any message
6622 # that says an option was ignored or not supported.
6623 # When given -MP, icc 7.0 and 7.1 complain thusly:
6624 # icc: Command line warning: ignoring option '-M'; no argument required
6625 # The diagnosis changed in icc 8.0:
6626 # icc: Command line remark: option '-MP' not supported
6627 if (grep 'ignoring option' conftest.err ||
6628 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6629 am_cv_CXX_dependencies_compiler_type=$depmode
6630 break
6633 done
6635 cd ..
6636 rm -rf conftest.dir
6637 else
6638 am_cv_CXX_dependencies_compiler_type=none
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6643 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6644 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6647 test "x$enable_dependency_tracking" != xno \
6648 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6649 am__fastdepCXX_TRUE=
6650 am__fastdepCXX_FALSE='#'
6651 else
6652 am__fastdepCXX_TRUE='#'
6653 am__fastdepCXX_FALSE=
6657 if test "x$CC" != xcc; then
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
6659 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
6660 else
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
6662 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
6664 set dummy $CC; ac_cc=`$as_echo "$2" |
6665 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6666 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
6667 $as_echo_n "(cached) " >&6
6668 else
6669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6670 /* end confdefs.h. */
6673 main ()
6677 return 0;
6679 _ACEOF
6680 # Make sure it works both with $CC and with simple cc.
6681 # We do the test twice because some compilers refuse to overwrite an
6682 # existing .o file with -o, though they will create one.
6683 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6684 rm -f conftest2.*
6685 if { { case "(($ac_try" in
6686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6687 *) ac_try_echo=$ac_try;;
6688 esac
6689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6690 $as_echo "$ac_try_echo"; } >&5
6691 (eval "$ac_try") 2>&5
6692 ac_status=$?
6693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6694 test $ac_status = 0; } &&
6695 test -f conftest2.$ac_objext && { { case "(($ac_try" in
6696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6697 *) ac_try_echo=$ac_try;;
6698 esac
6699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6700 $as_echo "$ac_try_echo"; } >&5
6701 (eval "$ac_try") 2>&5
6702 ac_status=$?
6703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6704 test $ac_status = 0; };
6705 then
6706 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6707 if test "x$CC" != xcc; then
6708 # Test first that cc exists at all.
6709 if { ac_try='cc -c conftest.$ac_ext >&5'
6710 { { case "(($ac_try" in
6711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6712 *) ac_try_echo=$ac_try;;
6713 esac
6714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6715 $as_echo "$ac_try_echo"; } >&5
6716 (eval "$ac_try") 2>&5
6717 ac_status=$?
6718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6719 test $ac_status = 0; }; }; then
6720 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6721 rm -f conftest2.*
6722 if { { case "(($ac_try" in
6723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6724 *) ac_try_echo=$ac_try;;
6725 esac
6726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6727 $as_echo "$ac_try_echo"; } >&5
6728 (eval "$ac_try") 2>&5
6729 ac_status=$?
6730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6731 test $ac_status = 0; } &&
6732 test -f conftest2.$ac_objext && { { case "(($ac_try" in
6733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6734 *) ac_try_echo=$ac_try;;
6735 esac
6736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6737 $as_echo "$ac_try_echo"; } >&5
6738 (eval "$ac_try") 2>&5
6739 ac_status=$?
6740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6741 test $ac_status = 0; };
6742 then
6743 # cc works too.
6745 else
6746 # cc exists but doesn't like -o.
6747 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6751 else
6752 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6754 rm -f core conftest*
6757 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6759 $as_echo "yes" >&6; }
6760 else
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6762 $as_echo "no" >&6; }
6764 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
6768 # FIXME: we rely on the cache variable name because
6769 # there is no other way.
6770 set dummy $CC
6771 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6772 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
6773 if test "$am_t" != yes; then
6774 # Losing compiler, so override with the script.
6775 # FIXME: It is wrong to rewrite CC.
6776 # But if we don't then we get into trouble of one sort or another.
6777 # A longer-term fix would be to have automake use am__CC in this case,
6778 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6779 CC="$am_aux_dir/compile $CC"
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6784 $as_echo_n "checking whether ln -s works... " >&6; }
6785 LN_S=$as_ln_s
6786 if test "$LN_S" = "ln -s"; then
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6788 $as_echo "yes" >&6; }
6789 else
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6791 $as_echo "no, using $LN_S" >&6; }
6794 if test -n "$ac_tool_prefix"; then
6795 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6796 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6798 $as_echo_n "checking for $ac_word... " >&6; }
6799 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6800 $as_echo_n "(cached) " >&6
6801 else
6802 if test -n "$RANLIB"; then
6803 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6804 else
6805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6806 for as_dir in $PATH
6808 IFS=$as_save_IFS
6809 test -z "$as_dir" && as_dir=.
6810 for ac_exec_ext in '' $ac_executable_extensions; do
6811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6812 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6814 break 2
6816 done
6817 done
6818 IFS=$as_save_IFS
6822 RANLIB=$ac_cv_prog_RANLIB
6823 if test -n "$RANLIB"; then
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6825 $as_echo "$RANLIB" >&6; }
6826 else
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6828 $as_echo "no" >&6; }
6833 if test -z "$ac_cv_prog_RANLIB"; then
6834 ac_ct_RANLIB=$RANLIB
6835 # Extract the first word of "ranlib", so it can be a program name with args.
6836 set dummy ranlib; ac_word=$2
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6838 $as_echo_n "checking for $ac_word... " >&6; }
6839 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6840 $as_echo_n "(cached) " >&6
6841 else
6842 if test -n "$ac_ct_RANLIB"; then
6843 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6844 else
6845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6846 for as_dir in $PATH
6848 IFS=$as_save_IFS
6849 test -z "$as_dir" && as_dir=.
6850 for ac_exec_ext in '' $ac_executable_extensions; do
6851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6852 ac_cv_prog_ac_ct_RANLIB="ranlib"
6853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6854 break 2
6856 done
6857 done
6858 IFS=$as_save_IFS
6862 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6863 if test -n "$ac_ct_RANLIB"; then
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6865 $as_echo "$ac_ct_RANLIB" >&6; }
6866 else
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6868 $as_echo "no" >&6; }
6871 if test "x$ac_ct_RANLIB" = x; then
6872 RANLIB=":"
6873 else
6874 case $cross_compiling:$ac_tool_warned in
6875 yes:)
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6878 ac_tool_warned=yes ;;
6879 esac
6880 RANLIB=$ac_ct_RANLIB
6882 else
6883 RANLIB="$ac_cv_prog_RANLIB"
6886 for ac_prog in gawk mawk nawk awk
6888 # Extract the first word of "$ac_prog", so it can be a program name with args.
6889 set dummy $ac_prog; ac_word=$2
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6891 $as_echo_n "checking for $ac_word... " >&6; }
6892 if test "${ac_cv_prog_AWK+set}" = set; then :
6893 $as_echo_n "(cached) " >&6
6894 else
6895 if test -n "$AWK"; then
6896 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6897 else
6898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899 for as_dir in $PATH
6901 IFS=$as_save_IFS
6902 test -z "$as_dir" && as_dir=.
6903 for ac_exec_ext in '' $ac_executable_extensions; do
6904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6905 ac_cv_prog_AWK="$ac_prog"
6906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6907 break 2
6909 done
6910 done
6911 IFS=$as_save_IFS
6915 AWK=$ac_cv_prog_AWK
6916 if test -n "$AWK"; then
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6918 $as_echo "$AWK" >&6; }
6919 else
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6921 $as_echo "no" >&6; }
6925 test -n "$AWK" && break
6926 done
6930 # Extract the first word of "bison", so it can be a program name with args.
6931 set dummy bison; ac_word=$2
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6933 $as_echo_n "checking for $ac_word... " >&6; }
6934 if test "${ac_cv_path_BISON+set}" = set; then :
6935 $as_echo_n "(cached) " >&6
6936 else
6937 case $BISON in
6938 [\\/]* | ?:[\\/]*)
6939 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
6942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943 for as_dir in $PATH
6945 IFS=$as_save_IFS
6946 test -z "$as_dir" && as_dir=.
6947 for ac_exec_ext in '' $ac_executable_extensions; do
6948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6949 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
6950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6951 break 2
6953 done
6954 done
6955 IFS=$as_save_IFS
6957 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="bison"
6959 esac
6961 BISON=$ac_cv_path_BISON
6962 if test -n "$BISON"; then
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
6964 $as_echo "$BISON" >&6; }
6965 else
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6967 $as_echo "no" >&6; }
6971 # Extract the first word of "help2man", so it can be a program name with args.
6972 set dummy help2man; ac_word=$2
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6974 $as_echo_n "checking for $ac_word... " >&6; }
6975 if test "${ac_cv_path_HELP2MAN+set}" = set; then :
6976 $as_echo_n "(cached) " >&6
6977 else
6978 case $HELP2MAN in
6979 [\\/]* | ?:[\\/]*)
6980 ac_cv_path_HELP2MAN="$HELP2MAN" # Let the user override the test with a path.
6983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984 for as_dir in $PATH
6986 IFS=$as_save_IFS
6987 test -z "$as_dir" && as_dir=.
6988 for ac_exec_ext in '' $ac_executable_extensions; do
6989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6990 ac_cv_path_HELP2MAN="$as_dir/$ac_word$ac_exec_ext"
6991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6992 break 2
6994 done
6995 done
6996 IFS=$as_save_IFS
6998 test -z "$ac_cv_path_HELP2MAN" && ac_cv_path_HELP2MAN="help2man"
7000 esac
7002 HELP2MAN=$ac_cv_path_HELP2MAN
7003 if test -n "$HELP2MAN"; then
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5
7005 $as_echo "$HELP2MAN" >&6; }
7006 else
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7008 $as_echo "no" >&6; }
7013 # Check for a m4 that supports -P
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 that supports -P" >&5
7016 $as_echo_n "checking for m4 that supports -P... " >&6; }
7017 if test "${ac_cv_path_M4+set}" = set; then :
7018 $as_echo_n "(cached) " >&6
7019 else
7020 if test -z "$M4"; then
7021 ac_path_M4_found=false
7022 # Loop through the user's path and test for each of PROGNAME-LIST
7023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024 for as_dir in $PATH
7026 IFS=$as_save_IFS
7027 test -z "$as_dir" && as_dir=.
7028 for ac_prog in gm4 gnum4 m4; do
7029 for ac_exec_ext in '' $ac_executable_extensions; do
7030 ac_path_M4="$as_dir/$ac_prog$ac_exec_ext"
7031 { test -f "$ac_path_M4" && $as_test_x "$ac_path_M4"; } || continue
7032 m4out=`echo 'm''4_divnum' | $ac_path_M4 -P`
7033 test "x$m4out" = x0 \
7034 && ac_cv_path_M4=$ac_path_M4 ac_path_M4_found=:
7035 $ac_path_M4_found && break 3
7036 done
7037 done
7038 done
7039 IFS=$as_save_IFS
7040 if test -z "$ac_cv_path_M4"; then
7041 as_fn_error "could not find m4 that supports -P" "$LINENO" 5
7043 else
7044 ac_cv_path_M4=$M4
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_M4" >&5
7049 $as_echo "$ac_cv_path_M4" >&6; }
7050 M4=$ac_cv_path_M4
7053 cat >>confdefs.h <<_ACEOF
7054 #define M4 "$M4"
7055 _ACEOF
7058 # Extract the first word of "indent", so it can be a program name with args.
7059 set dummy indent; ac_word=$2
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7061 $as_echo_n "checking for $ac_word... " >&6; }
7062 if test "${ac_cv_path_INDENT+set}" = set; then :
7063 $as_echo_n "(cached) " >&6
7064 else
7065 case $INDENT in
7066 [\\/]* | ?:[\\/]*)
7067 ac_cv_path_INDENT="$INDENT" # Let the user override the test with a path.
7070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071 for as_dir in $PATH
7073 IFS=$as_save_IFS
7074 test -z "$as_dir" && as_dir=.
7075 for ac_exec_ext in '' $ac_executable_extensions; do
7076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7077 ac_cv_path_INDENT="$as_dir/$ac_word$ac_exec_ext"
7078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7079 break 2
7081 done
7082 done
7083 IFS=$as_save_IFS
7085 test -z "$ac_cv_path_INDENT" && ac_cv_path_INDENT="indent"
7087 esac
7089 INDENT=$ac_cv_path_INDENT
7090 if test -n "$INDENT"; then
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INDENT" >&5
7092 $as_echo "$INDENT" >&6; }
7093 else
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7095 $as_echo "no" >&6; }
7099 # if INDENT is set to 'indent' then we didn't find indent
7100 if test "$INDENT" != indent ; then
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $INDENT is GNU indent" >&5
7102 $as_echo_n "checking if $INDENT is GNU indent... " >&6; }
7103 if $INDENT --version 2>/dev/null | head -n 1|grep "GNU indent" > /dev/null ; then
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7105 $as_echo "yes" >&6; }
7106 else
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7108 $as_echo "no" >&6; }
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $INDENT does not appear to be GNU indent." >&5
7110 $as_echo "$as_me: WARNING: $INDENT does not appear to be GNU indent." >&2;}
7112 else
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no indent program found: make indent target will not function" >&5
7114 $as_echo "$as_me: WARNING: no indent program found: make indent target will not function" >&2;}
7117 # checks for headers
7119 ac_ext=c
7120 ac_cpp='$CPP $CPPFLAGS'
7121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7125 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7126 # On Suns, sometimes $CPP names a directory.
7127 if test -n "$CPP" && test -d "$CPP"; then
7128 CPP=
7130 if test -z "$CPP"; then
7131 if test "${ac_cv_prog_CPP+set}" = set; then :
7132 $as_echo_n "(cached) " >&6
7133 else
7134 # Double quotes because CPP needs to be expanded
7135 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7137 ac_preproc_ok=false
7138 for ac_c_preproc_warn_flag in '' yes
7140 # Use a header file that comes with gcc, so configuring glibc
7141 # with a fresh cross-compiler works.
7142 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7143 # <limits.h> exists even on freestanding compilers.
7144 # On the NeXT, cc -E runs the code through the compiler's parser,
7145 # not just through cpp. "Syntax error" is here to catch this case.
7146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7147 /* end confdefs.h. */
7148 #ifdef __STDC__
7149 # include <limits.h>
7150 #else
7151 # include <assert.h>
7152 #endif
7153 Syntax error
7154 _ACEOF
7155 if ac_fn_c_try_cpp "$LINENO"; then :
7157 else
7158 # Broken: fails on valid input.
7159 continue
7161 rm -f conftest.err conftest.$ac_ext
7163 # OK, works on sane cases. Now check whether nonexistent headers
7164 # can be detected and how.
7165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7166 /* end confdefs.h. */
7167 #include <ac_nonexistent.h>
7168 _ACEOF
7169 if ac_fn_c_try_cpp "$LINENO"; then :
7170 # Broken: success on invalid input.
7171 continue
7172 else
7173 # Passes both tests.
7174 ac_preproc_ok=:
7175 break
7177 rm -f conftest.err conftest.$ac_ext
7179 done
7180 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7181 rm -f conftest.err conftest.$ac_ext
7182 if $ac_preproc_ok; then :
7183 break
7186 done
7187 ac_cv_prog_CPP=$CPP
7190 CPP=$ac_cv_prog_CPP
7191 else
7192 ac_cv_prog_CPP=$CPP
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7195 $as_echo "$CPP" >&6; }
7196 ac_preproc_ok=false
7197 for ac_c_preproc_warn_flag in '' yes
7199 # Use a header file that comes with gcc, so configuring glibc
7200 # with a fresh cross-compiler works.
7201 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7202 # <limits.h> exists even on freestanding compilers.
7203 # On the NeXT, cc -E runs the code through the compiler's parser,
7204 # not just through cpp. "Syntax error" is here to catch this case.
7205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7206 /* end confdefs.h. */
7207 #ifdef __STDC__
7208 # include <limits.h>
7209 #else
7210 # include <assert.h>
7211 #endif
7212 Syntax error
7213 _ACEOF
7214 if ac_fn_c_try_cpp "$LINENO"; then :
7216 else
7217 # Broken: fails on valid input.
7218 continue
7220 rm -f conftest.err conftest.$ac_ext
7222 # OK, works on sane cases. Now check whether nonexistent headers
7223 # can be detected and how.
7224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7225 /* end confdefs.h. */
7226 #include <ac_nonexistent.h>
7227 _ACEOF
7228 if ac_fn_c_try_cpp "$LINENO"; then :
7229 # Broken: success on invalid input.
7230 continue
7231 else
7232 # Passes both tests.
7233 ac_preproc_ok=:
7234 break
7236 rm -f conftest.err conftest.$ac_ext
7238 done
7239 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7240 rm -f conftest.err conftest.$ac_ext
7241 if $ac_preproc_ok; then :
7243 else
7244 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7246 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7247 See \`config.log' for more details." "$LINENO" 5; }
7250 ac_ext=c
7251 ac_cpp='$CPP $CPPFLAGS'
7252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7258 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7259 if test "${ac_cv_path_GREP+set}" = set; then :
7260 $as_echo_n "(cached) " >&6
7261 else
7262 if test -z "$GREP"; then
7263 ac_path_GREP_found=false
7264 # Loop through the user's path and test for each of PROGNAME-LIST
7265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7268 IFS=$as_save_IFS
7269 test -z "$as_dir" && as_dir=.
7270 for ac_prog in grep ggrep; do
7271 for ac_exec_ext in '' $ac_executable_extensions; do
7272 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7273 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7274 # Check for GNU ac_path_GREP and select it if it is found.
7275 # Check for GNU $ac_path_GREP
7276 case `"$ac_path_GREP" --version 2>&1` in
7277 *GNU*)
7278 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7280 ac_count=0
7281 $as_echo_n 0123456789 >"conftest.in"
7282 while :
7284 cat "conftest.in" "conftest.in" >"conftest.tmp"
7285 mv "conftest.tmp" "conftest.in"
7286 cp "conftest.in" "conftest.nl"
7287 $as_echo 'GREP' >> "conftest.nl"
7288 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7289 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7290 as_fn_arith $ac_count + 1 && ac_count=$as_val
7291 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7292 # Best one so far, save it but keep looking for a better one
7293 ac_cv_path_GREP="$ac_path_GREP"
7294 ac_path_GREP_max=$ac_count
7296 # 10*(2^10) chars as input seems more than enough
7297 test $ac_count -gt 10 && break
7298 done
7299 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7300 esac
7302 $ac_path_GREP_found && break 3
7303 done
7304 done
7305 done
7306 IFS=$as_save_IFS
7307 if test -z "$ac_cv_path_GREP"; then
7308 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7310 else
7311 ac_cv_path_GREP=$GREP
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7316 $as_echo "$ac_cv_path_GREP" >&6; }
7317 GREP="$ac_cv_path_GREP"
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7321 $as_echo_n "checking for egrep... " >&6; }
7322 if test "${ac_cv_path_EGREP+set}" = set; then :
7323 $as_echo_n "(cached) " >&6
7324 else
7325 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7326 then ac_cv_path_EGREP="$GREP -E"
7327 else
7328 if test -z "$EGREP"; then
7329 ac_path_EGREP_found=false
7330 # Loop through the user's path and test for each of PROGNAME-LIST
7331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7334 IFS=$as_save_IFS
7335 test -z "$as_dir" && as_dir=.
7336 for ac_prog in egrep; do
7337 for ac_exec_ext in '' $ac_executable_extensions; do
7338 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7339 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7340 # Check for GNU ac_path_EGREP and select it if it is found.
7341 # Check for GNU $ac_path_EGREP
7342 case `"$ac_path_EGREP" --version 2>&1` in
7343 *GNU*)
7344 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7346 ac_count=0
7347 $as_echo_n 0123456789 >"conftest.in"
7348 while :
7350 cat "conftest.in" "conftest.in" >"conftest.tmp"
7351 mv "conftest.tmp" "conftest.in"
7352 cp "conftest.in" "conftest.nl"
7353 $as_echo 'EGREP' >> "conftest.nl"
7354 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7355 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7356 as_fn_arith $ac_count + 1 && ac_count=$as_val
7357 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7358 # Best one so far, save it but keep looking for a better one
7359 ac_cv_path_EGREP="$ac_path_EGREP"
7360 ac_path_EGREP_max=$ac_count
7362 # 10*(2^10) chars as input seems more than enough
7363 test $ac_count -gt 10 && break
7364 done
7365 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7366 esac
7368 $ac_path_EGREP_found && break 3
7369 done
7370 done
7371 done
7372 IFS=$as_save_IFS
7373 if test -z "$ac_cv_path_EGREP"; then
7374 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7376 else
7377 ac_cv_path_EGREP=$EGREP
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7383 $as_echo "$ac_cv_path_EGREP" >&6; }
7384 EGREP="$ac_cv_path_EGREP"
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7388 $as_echo_n "checking for ANSI C header files... " >&6; }
7389 if test "${ac_cv_header_stdc+set}" = set; then :
7390 $as_echo_n "(cached) " >&6
7391 else
7392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7393 /* end confdefs.h. */
7394 #include <stdlib.h>
7395 #include <stdarg.h>
7396 #include <string.h>
7397 #include <float.h>
7400 main ()
7404 return 0;
7406 _ACEOF
7407 if ac_fn_c_try_compile "$LINENO"; then :
7408 ac_cv_header_stdc=yes
7409 else
7410 ac_cv_header_stdc=no
7412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7414 if test $ac_cv_header_stdc = yes; then
7415 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7417 /* end confdefs.h. */
7418 #include <string.h>
7420 _ACEOF
7421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7422 $EGREP "memchr" >/dev/null 2>&1; then :
7424 else
7425 ac_cv_header_stdc=no
7427 rm -f conftest*
7431 if test $ac_cv_header_stdc = yes; then
7432 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7434 /* end confdefs.h. */
7435 #include <stdlib.h>
7437 _ACEOF
7438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7439 $EGREP "free" >/dev/null 2>&1; then :
7441 else
7442 ac_cv_header_stdc=no
7444 rm -f conftest*
7448 if test $ac_cv_header_stdc = yes; then
7449 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7450 if test "$cross_compiling" = yes; then :
7452 else
7453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7454 /* end confdefs.h. */
7455 #include <ctype.h>
7456 #include <stdlib.h>
7457 #if ((' ' & 0x0FF) == 0x020)
7458 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7459 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7460 #else
7461 # define ISLOWER(c) \
7462 (('a' <= (c) && (c) <= 'i') \
7463 || ('j' <= (c) && (c) <= 'r') \
7464 || ('s' <= (c) && (c) <= 'z'))
7465 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7466 #endif
7468 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7470 main ()
7472 int i;
7473 for (i = 0; i < 256; i++)
7474 if (XOR (islower (i), ISLOWER (i))
7475 || toupper (i) != TOUPPER (i))
7476 return 2;
7477 return 0;
7479 _ACEOF
7480 if ac_fn_c_try_run "$LINENO"; then :
7482 else
7483 ac_cv_header_stdc=no
7485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7486 conftest.$ac_objext conftest.beam conftest.$ac_ext
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7492 $as_echo "$ac_cv_header_stdc" >&6; }
7493 if test $ac_cv_header_stdc = yes; then
7495 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7500 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7501 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7502 $as_echo_n "(cached) " >&6
7503 else
7504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7505 /* end confdefs.h. */
7506 #include <sys/types.h>
7507 #include <sys/wait.h>
7508 #ifndef WEXITSTATUS
7509 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7510 #endif
7511 #ifndef WIFEXITED
7512 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7513 #endif
7516 main ()
7518 int s;
7519 wait (&s);
7520 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7522 return 0;
7524 _ACEOF
7525 if ac_fn_c_try_compile "$LINENO"; then :
7526 ac_cv_header_sys_wait_h=yes
7527 else
7528 ac_cv_header_sys_wait_h=no
7530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7533 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7534 if test $ac_cv_header_sys_wait_h = yes; then
7536 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7540 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7541 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7542 inttypes.h stdint.h unistd.h
7543 do :
7544 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7545 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7547 eval as_val=\$$as_ac_Header
7548 if test "x$as_val" = x""yes; then :
7549 cat >>confdefs.h <<_ACEOF
7550 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7551 _ACEOF
7555 done
7558 for ac_header in inttypes.h libintl.h limits.h locale.h malloc.h netinet/in.h regex.h stddef.h stdlib.h string.h strings.h unistd.h
7559 do :
7560 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7561 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7562 eval as_val=\$$as_ac_Header
7563 if test "x$as_val" = x""yes; then :
7564 cat >>confdefs.h <<_ACEOF
7565 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7566 _ACEOF
7570 done
7573 # checks for libraries
7575 # The test test-pthread uses libpthread, so we check for it here, but
7576 # all we need is the preprocessor symbol defined since we don't need
7577 # LIBS to include libpthread for building flex.
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
7580 $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
7581 if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then :
7582 $as_echo_n "(cached) " >&6
7583 else
7584 ac_check_lib_save_LIBS=$LIBS
7585 LIBS="-lpthread $LIBS"
7586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7587 /* end confdefs.h. */
7589 /* Override any GCC internal prototype to avoid an error.
7590 Use char because int might match the return type of a GCC
7591 builtin and then its argument prototype would still apply. */
7592 #ifdef __cplusplus
7593 extern "C"
7594 #endif
7595 char pthread_mutex_lock ();
7597 main ()
7599 return pthread_mutex_lock ();
7601 return 0;
7603 _ACEOF
7604 if ac_fn_c_try_link "$LINENO"; then :
7605 ac_cv_lib_pthread_pthread_mutex_lock=yes
7606 else
7607 ac_cv_lib_pthread_pthread_mutex_lock=no
7609 rm -f core conftest.err conftest.$ac_objext \
7610 conftest$ac_exeext conftest.$ac_ext
7611 LIBS=$ac_check_lib_save_LIBS
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
7614 $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
7615 if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then :
7617 $as_echo "#define HAVE_LIBPTHREAD 1" >>confdefs.h
7619 else
7621 $as_echo "#define HAVE_LIBPTHREAD 0" >>confdefs.h
7626 for ac_header in pthread.h
7627 do :
7628 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7629 if test "x$ac_cv_header_pthread_h" = x""yes; then :
7630 cat >>confdefs.h <<_ACEOF
7631 #define HAVE_PTHREAD_H 1
7632 _ACEOF
7636 done
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10 in -lm" >&5
7640 $as_echo_n "checking for log10 in -lm... " >&6; }
7641 if test "${ac_cv_lib_m_log10+set}" = set; then :
7642 $as_echo_n "(cached) " >&6
7643 else
7644 ac_check_lib_save_LIBS=$LIBS
7645 LIBS="-lm $LIBS"
7646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7647 /* end confdefs.h. */
7649 /* Override any GCC internal prototype to avoid an error.
7650 Use char because int might match the return type of a GCC
7651 builtin and then its argument prototype would still apply. */
7652 #ifdef __cplusplus
7653 extern "C"
7654 #endif
7655 char log10 ();
7657 main ()
7659 return log10 ();
7661 return 0;
7663 _ACEOF
7664 if ac_fn_c_try_link "$LINENO"; then :
7665 ac_cv_lib_m_log10=yes
7666 else
7667 ac_cv_lib_m_log10=no
7669 rm -f core conftest.err conftest.$ac_objext \
7670 conftest$ac_exeext conftest.$ac_ext
7671 LIBS=$ac_check_lib_save_LIBS
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log10" >&5
7674 $as_echo "$ac_cv_lib_m_log10" >&6; }
7675 if test "x$ac_cv_lib_m_log10" = x""yes; then :
7676 cat >>confdefs.h <<_ACEOF
7677 #define HAVE_LIBM 1
7678 _ACEOF
7680 LIBS="-lm $LIBS"
7685 # Checks for typedefs, structures, and compiler characteristics.
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
7688 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
7689 if test "${ac_cv_header_stdbool_h+set}" = set; then :
7690 $as_echo_n "(cached) " >&6
7691 else
7692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7693 /* end confdefs.h. */
7695 #include <stdbool.h>
7696 #ifndef bool
7697 "error: bool is not defined"
7698 #endif
7699 #ifndef false
7700 "error: false is not defined"
7701 #endif
7702 #if false
7703 "error: false is not 0"
7704 #endif
7705 #ifndef true
7706 "error: true is not defined"
7707 #endif
7708 #if true != 1
7709 "error: true is not 1"
7710 #endif
7711 #ifndef __bool_true_false_are_defined
7712 "error: __bool_true_false_are_defined is not defined"
7713 #endif
7715 struct s { _Bool s: 1; _Bool t; } s;
7717 char a[true == 1 ? 1 : -1];
7718 char b[false == 0 ? 1 : -1];
7719 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7720 char d[(bool) 0.5 == true ? 1 : -1];
7721 bool e = &s;
7722 char f[(_Bool) 0.0 == false ? 1 : -1];
7723 char g[true];
7724 char h[sizeof (_Bool)];
7725 char i[sizeof s.t];
7726 enum { j = false, k = true, l = false * true, m = true * 256 };
7727 /* The following fails for
7728 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
7729 _Bool n[m];
7730 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7731 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7732 # if defined __xlc__ || defined __GNUC__
7733 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
7734 reported by James Lemley on 2005-10-05; see
7735 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
7736 This test is not quite right, since xlc is allowed to
7737 reject this program, as the initializer for xlcbug is
7738 not one of the forms that C requires support for.
7739 However, doing the test right would require a runtime
7740 test, and that would make cross-compilation harder.
7741 Let us hope that IBM fixes the xlc bug, and also adds
7742 support for this kind of constant expression. In the
7743 meantime, this test will reject xlc, which is OK, since
7744 our stdbool.h substitute should suffice. We also test
7745 this with GCC, where it should work, to detect more
7746 quickly whether someone messes up the test in the
7747 future. */
7748 char digs[] = "0123456789";
7749 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
7750 # endif
7751 /* Catch a bug in an HP-UX C compiler. See
7752 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7753 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
7755 _Bool q = true;
7756 _Bool *pq = &q;
7759 main ()
7762 *pq |= q;
7763 *pq |= ! q;
7764 /* Refer to every declared value, to avoid compiler optimizations. */
7765 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
7766 + !m + !n + !o + !p + !q + !pq);
7769 return 0;
7771 _ACEOF
7772 if ac_fn_c_try_compile "$LINENO"; then :
7773 ac_cv_header_stdbool_h=yes
7774 else
7775 ac_cv_header_stdbool_h=no
7777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
7780 $as_echo "$ac_cv_header_stdbool_h" >&6; }
7781 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
7782 if test "x$ac_cv_type__Bool" = x""yes; then :
7784 cat >>confdefs.h <<_ACEOF
7785 #define HAVE__BOOL 1
7786 _ACEOF
7791 if test $ac_cv_header_stdbool_h = yes; then
7793 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7798 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7799 if test "${ac_cv_c_const+set}" = set; then :
7800 $as_echo_n "(cached) " >&6
7801 else
7802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7803 /* end confdefs.h. */
7806 main ()
7808 /* FIXME: Include the comments suggested by Paul. */
7809 #ifndef __cplusplus
7810 /* Ultrix mips cc rejects this. */
7811 typedef int charset[2];
7812 const charset cs;
7813 /* SunOS 4.1.1 cc rejects this. */
7814 char const *const *pcpcc;
7815 char **ppc;
7816 /* NEC SVR4.0.2 mips cc rejects this. */
7817 struct point {int x, y;};
7818 static struct point const zero = {0,0};
7819 /* AIX XL C 1.02.0.0 rejects this.
7820 It does not let you subtract one const X* pointer from another in
7821 an arm of an if-expression whose if-part is not a constant
7822 expression */
7823 const char *g = "string";
7824 pcpcc = &g + (g ? g-g : 0);
7825 /* HPUX 7.0 cc rejects these. */
7826 ++pcpcc;
7827 ppc = (char**) pcpcc;
7828 pcpcc = (char const *const *) ppc;
7829 { /* SCO 3.2v4 cc rejects this. */
7830 char *t;
7831 char const *s = 0 ? (char *) 0 : (char const *) 0;
7833 *t++ = 0;
7834 if (s) return 0;
7836 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7837 int x[] = {25, 17};
7838 const int *foo = &x[0];
7839 ++foo;
7841 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7842 typedef const int *iptr;
7843 iptr p = 0;
7844 ++p;
7846 { /* AIX XL C 1.02.0.0 rejects this saying
7847 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7848 struct s { int j; const int *ap[3]; };
7849 struct s *b; b->j = 5;
7851 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7852 const int foo = 10;
7853 if (!foo) return 0;
7855 return !cs[0] && !zero.x;
7856 #endif
7859 return 0;
7861 _ACEOF
7862 if ac_fn_c_try_compile "$LINENO"; then :
7863 ac_cv_c_const=yes
7864 else
7865 ac_cv_c_const=no
7867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7870 $as_echo "$ac_cv_c_const" >&6; }
7871 if test $ac_cv_c_const = no; then
7873 $as_echo "#define const /**/" >>confdefs.h
7877 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7878 if test "x$ac_cv_type_size_t" = x""yes; then :
7880 else
7882 cat >>confdefs.h <<_ACEOF
7883 #define size_t unsigned int
7884 _ACEOF
7889 # Checks for library functions.
7891 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7892 # for constant arguments. Useless!
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7894 $as_echo_n "checking for working alloca.h... " >&6; }
7895 if test "${ac_cv_working_alloca_h+set}" = set; then :
7896 $as_echo_n "(cached) " >&6
7897 else
7898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899 /* end confdefs.h. */
7900 #include <alloca.h>
7902 main ()
7904 char *p = (char *) alloca (2 * sizeof (int));
7905 if (p) return 0;
7907 return 0;
7909 _ACEOF
7910 if ac_fn_c_try_link "$LINENO"; then :
7911 ac_cv_working_alloca_h=yes
7912 else
7913 ac_cv_working_alloca_h=no
7915 rm -f core conftest.err conftest.$ac_objext \
7916 conftest$ac_exeext conftest.$ac_ext
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7919 $as_echo "$ac_cv_working_alloca_h" >&6; }
7920 if test $ac_cv_working_alloca_h = yes; then
7922 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7927 $as_echo_n "checking for alloca... " >&6; }
7928 if test "${ac_cv_func_alloca_works+set}" = set; then :
7929 $as_echo_n "(cached) " >&6
7930 else
7931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7932 /* end confdefs.h. */
7933 #ifdef __GNUC__
7934 # define alloca __builtin_alloca
7935 #else
7936 # ifdef _MSC_VER
7937 # include <malloc.h>
7938 # define alloca _alloca
7939 # else
7940 # ifdef HAVE_ALLOCA_H
7941 # include <alloca.h>
7942 # else
7943 # ifdef _AIX
7944 #pragma alloca
7945 # else
7946 # ifndef alloca /* predefined by HP cc +Olibcalls */
7947 char *alloca ();
7948 # endif
7949 # endif
7950 # endif
7951 # endif
7952 #endif
7955 main ()
7957 char *p = (char *) alloca (1);
7958 if (p) return 0;
7960 return 0;
7962 _ACEOF
7963 if ac_fn_c_try_link "$LINENO"; then :
7964 ac_cv_func_alloca_works=yes
7965 else
7966 ac_cv_func_alloca_works=no
7968 rm -f core conftest.err conftest.$ac_objext \
7969 conftest$ac_exeext conftest.$ac_ext
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7972 $as_echo "$ac_cv_func_alloca_works" >&6; }
7974 if test $ac_cv_func_alloca_works = yes; then
7976 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7978 else
7979 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7980 # that cause trouble. Some versions do not even contain alloca or
7981 # contain a buggy version. If you still want to use their alloca,
7982 # use ar to extract alloca.o from them instead of compiling alloca.c.
7984 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7986 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7990 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7991 if test "${ac_cv_os_cray+set}" = set; then :
7992 $as_echo_n "(cached) " >&6
7993 else
7994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7995 /* end confdefs.h. */
7996 #if defined CRAY && ! defined CRAY2
7997 webecray
7998 #else
7999 wenotbecray
8000 #endif
8002 _ACEOF
8003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8004 $EGREP "webecray" >/dev/null 2>&1; then :
8005 ac_cv_os_cray=yes
8006 else
8007 ac_cv_os_cray=no
8009 rm -f conftest*
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
8013 $as_echo "$ac_cv_os_cray" >&6; }
8014 if test $ac_cv_os_cray = yes; then
8015 for ac_func in _getb67 GETB67 getb67; do
8016 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8017 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8018 eval as_val=\$$as_ac_var
8019 if test "x$as_val" = x""yes; then :
8021 cat >>confdefs.h <<_ACEOF
8022 #define CRAY_STACKSEG_END $ac_func
8023 _ACEOF
8025 break
8028 done
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
8032 $as_echo_n "checking stack direction for C alloca... " >&6; }
8033 if test "${ac_cv_c_stack_direction+set}" = set; then :
8034 $as_echo_n "(cached) " >&6
8035 else
8036 if test "$cross_compiling" = yes; then :
8037 ac_cv_c_stack_direction=0
8038 else
8039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8040 /* end confdefs.h. */
8041 $ac_includes_default
8043 find_stack_direction ()
8045 static char *addr = 0;
8046 auto char dummy;
8047 if (addr == 0)
8049 addr = &dummy;
8050 return find_stack_direction ();
8052 else
8053 return (&dummy > addr) ? 1 : -1;
8057 main ()
8059 return find_stack_direction () < 0;
8061 _ACEOF
8062 if ac_fn_c_try_run "$LINENO"; then :
8063 ac_cv_c_stack_direction=1
8064 else
8065 ac_cv_c_stack_direction=-1
8067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8068 conftest.$ac_objext conftest.beam conftest.$ac_ext
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
8073 $as_echo "$ac_cv_c_stack_direction" >&6; }
8074 cat >>confdefs.h <<_ACEOF
8075 #define STACK_DIRECTION $ac_cv_c_stack_direction
8076 _ACEOF
8081 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8082 if test "x$ac_cv_type_pid_t" = x""yes; then :
8084 else
8086 cat >>confdefs.h <<_ACEOF
8087 #define pid_t int
8088 _ACEOF
8092 for ac_header in vfork.h
8093 do :
8094 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
8095 if test "x$ac_cv_header_vfork_h" = x""yes; then :
8096 cat >>confdefs.h <<_ACEOF
8097 #define HAVE_VFORK_H 1
8098 _ACEOF
8102 done
8104 for ac_func in fork vfork
8105 do :
8106 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8107 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8108 eval as_val=\$$as_ac_var
8109 if test "x$as_val" = x""yes; then :
8110 cat >>confdefs.h <<_ACEOF
8111 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8112 _ACEOF
8115 done
8117 if test "x$ac_cv_func_fork" = xyes; then
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8119 $as_echo_n "checking for working fork... " >&6; }
8120 if test "${ac_cv_func_fork_works+set}" = set; then :
8121 $as_echo_n "(cached) " >&6
8122 else
8123 if test "$cross_compiling" = yes; then :
8124 ac_cv_func_fork_works=cross
8125 else
8126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8127 /* end confdefs.h. */
8128 $ac_includes_default
8130 main ()
8133 /* By Ruediger Kuhlmann. */
8134 return fork () < 0;
8137 return 0;
8139 _ACEOF
8140 if ac_fn_c_try_run "$LINENO"; then :
8141 ac_cv_func_fork_works=yes
8142 else
8143 ac_cv_func_fork_works=no
8145 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8146 conftest.$ac_objext conftest.beam conftest.$ac_ext
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8151 $as_echo "$ac_cv_func_fork_works" >&6; }
8153 else
8154 ac_cv_func_fork_works=$ac_cv_func_fork
8156 if test "x$ac_cv_func_fork_works" = xcross; then
8157 case $host in
8158 *-*-amigaos* | *-*-msdosdjgpp*)
8159 # Override, as these systems have only a dummy fork() stub
8160 ac_cv_func_fork_works=no
8163 ac_cv_func_fork_works=yes
8165 esac
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8167 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8169 ac_cv_func_vfork_works=$ac_cv_func_vfork
8170 if test "x$ac_cv_func_vfork" = xyes; then
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8172 $as_echo_n "checking for working vfork... " >&6; }
8173 if test "${ac_cv_func_vfork_works+set}" = set; then :
8174 $as_echo_n "(cached) " >&6
8175 else
8176 if test "$cross_compiling" = yes; then :
8177 ac_cv_func_vfork_works=cross
8178 else
8179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8180 /* end confdefs.h. */
8181 /* Thanks to Paul Eggert for this test. */
8182 $ac_includes_default
8183 #include <sys/wait.h>
8184 #ifdef HAVE_VFORK_H
8185 # include <vfork.h>
8186 #endif
8187 /* On some sparc systems, changes by the child to local and incoming
8188 argument registers are propagated back to the parent. The compiler
8189 is told about this with #include <vfork.h>, but some compilers
8190 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8191 static variable whose address is put into a register that is
8192 clobbered by the vfork. */
8193 static void
8194 #ifdef __cplusplus
8195 sparc_address_test (int arg)
8196 # else
8197 sparc_address_test (arg) int arg;
8198 #endif
8200 static pid_t child;
8201 if (!child) {
8202 child = vfork ();
8203 if (child < 0) {
8204 perror ("vfork");
8205 _exit(2);
8207 if (!child) {
8208 arg = getpid();
8209 write(-1, "", 0);
8210 _exit (arg);
8216 main ()
8218 pid_t parent = getpid ();
8219 pid_t child;
8221 sparc_address_test (0);
8223 child = vfork ();
8225 if (child == 0) {
8226 /* Here is another test for sparc vfork register problems. This
8227 test uses lots of local variables, at least as many local
8228 variables as main has allocated so far including compiler
8229 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8230 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8231 reuse the register of parent for one of the local variables,
8232 since it will think that parent can't possibly be used any more
8233 in this routine. Assigning to the local variable will thus
8234 munge parent in the parent process. */
8235 pid_t
8236 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8237 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8238 /* Convince the compiler that p..p7 are live; otherwise, it might
8239 use the same hardware register for all 8 local variables. */
8240 if (p != p1 || p != p2 || p != p3 || p != p4
8241 || p != p5 || p != p6 || p != p7)
8242 _exit(1);
8244 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8245 from child file descriptors. If the child closes a descriptor
8246 before it execs or exits, this munges the parent's descriptor
8247 as well. Test for this by closing stdout in the child. */
8248 _exit(close(fileno(stdout)) != 0);
8249 } else {
8250 int status;
8251 struct stat st;
8253 while (wait(&status) != child)
8255 return (
8256 /* Was there some problem with vforking? */
8257 child < 0
8259 /* Did the child fail? (This shouldn't happen.) */
8260 || status
8262 /* Did the vfork/compiler bug occur? */
8263 || parent != getpid()
8265 /* Did the file descriptor bug occur? */
8266 || fstat(fileno(stdout), &st) != 0
8270 _ACEOF
8271 if ac_fn_c_try_run "$LINENO"; then :
8272 ac_cv_func_vfork_works=yes
8273 else
8274 ac_cv_func_vfork_works=no
8276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8277 conftest.$ac_objext conftest.beam conftest.$ac_ext
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8282 $as_echo "$ac_cv_func_vfork_works" >&6; }
8285 if test "x$ac_cv_func_fork_works" = xcross; then
8286 ac_cv_func_vfork_works=$ac_cv_func_vfork
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8288 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8291 if test "x$ac_cv_func_vfork_works" = xyes; then
8293 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8295 else
8297 $as_echo "#define vfork fork" >>confdefs.h
8300 if test "x$ac_cv_func_fork_works" = xyes; then
8302 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8306 for ac_header in stdlib.h
8307 do :
8308 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
8309 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
8310 cat >>confdefs.h <<_ACEOF
8311 #define HAVE_STDLIB_H 1
8312 _ACEOF
8316 done
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
8319 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
8320 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
8321 $as_echo_n "(cached) " >&6
8322 else
8323 if test "$cross_compiling" = yes; then :
8324 ac_cv_func_malloc_0_nonnull=no
8325 else
8326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327 /* end confdefs.h. */
8328 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
8329 # include <stdlib.h>
8330 #else
8331 char *malloc ();
8332 #endif
8335 main ()
8337 return ! malloc (0);
8339 return 0;
8341 _ACEOF
8342 if ac_fn_c_try_run "$LINENO"; then :
8343 ac_cv_func_malloc_0_nonnull=yes
8344 else
8345 ac_cv_func_malloc_0_nonnull=no
8347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8348 conftest.$ac_objext conftest.beam conftest.$ac_ext
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
8353 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
8354 if test $ac_cv_func_malloc_0_nonnull = yes; then :
8356 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
8358 else
8359 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
8361 case " $LIBOBJS " in
8362 *" malloc.$ac_objext "* ) ;;
8363 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
8365 esac
8368 $as_echo "#define malloc rpl_malloc" >>confdefs.h
8373 for ac_header in stdlib.h
8374 do :
8375 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
8376 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
8377 cat >>confdefs.h <<_ACEOF
8378 #define HAVE_STDLIB_H 1
8379 _ACEOF
8383 done
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
8386 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
8387 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
8388 $as_echo_n "(cached) " >&6
8389 else
8390 if test "$cross_compiling" = yes; then :
8391 ac_cv_func_realloc_0_nonnull=no
8392 else
8393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8394 /* end confdefs.h. */
8395 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
8396 # include <stdlib.h>
8397 #else
8398 char *realloc ();
8399 #endif
8402 main ()
8404 return ! realloc (0, 0);
8406 return 0;
8408 _ACEOF
8409 if ac_fn_c_try_run "$LINENO"; then :
8410 ac_cv_func_realloc_0_nonnull=yes
8411 else
8412 ac_cv_func_realloc_0_nonnull=no
8414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8415 conftest.$ac_objext conftest.beam conftest.$ac_ext
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
8420 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
8421 if test $ac_cv_func_realloc_0_nonnull = yes; then :
8423 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
8425 else
8426 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
8428 case " $LIBOBJS " in
8429 *" realloc.$ac_objext "* ) ;;
8430 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
8432 esac
8435 $as_echo "#define realloc rpl_realloc" >>confdefs.h
8440 for ac_func in dup2 isascii memset pow regcomp setlocale strchr strtol
8441 do :
8442 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8443 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8444 eval as_val=\$$as_ac_var
8445 if test "x$as_val" = x""yes; then :
8446 cat >>confdefs.h <<_ACEOF
8447 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8448 _ACEOF
8451 done
8454 ac_config_files="$ac_config_files Makefile doc/Makefile examples/Makefile examples/fastwc/Makefile examples/manual/Makefile lib/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-alloc-extra/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 tests/test-quotes/Makefile tests/test-ccl/Makefile tests/test-extended/Makefile tests/test-c++-yywrap/Makefile tests/test-concatenated-options/Makefile"
8457 cat >confcache <<\_ACEOF
8458 # This file is a shell script that caches the results of configure
8459 # tests run on this system so they can be shared between configure
8460 # scripts and configure runs, see configure's option --config-cache.
8461 # It is not useful on other systems. If it contains results you don't
8462 # want to keep, you may remove or edit it.
8464 # config.status only pays attention to the cache file if you give it
8465 # the --recheck option to rerun configure.
8467 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8468 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8469 # following values.
8471 _ACEOF
8473 # The following way of writing the cache mishandles newlines in values,
8474 # but we know of no workaround that is simple, portable, and efficient.
8475 # So, we kill variables containing newlines.
8476 # Ultrix sh set writes to stderr and can't be redirected directly,
8477 # and sets the high bit in the cache file unless we assign to the vars.
8479 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8480 eval ac_val=\$$ac_var
8481 case $ac_val in #(
8482 *${as_nl}*)
8483 case $ac_var in #(
8484 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8485 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8486 esac
8487 case $ac_var in #(
8488 _ | IFS | as_nl) ;; #(
8489 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8490 *) { eval $ac_var=; unset $ac_var;} ;;
8491 esac ;;
8492 esac
8493 done
8495 (set) 2>&1 |
8496 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8497 *${as_nl}ac_space=\ *)
8498 # `set' does not quote correctly, so add quotes: double-quote
8499 # substitution turns \\\\ into \\, and sed turns \\ into \.
8500 sed -n \
8501 "s/'/'\\\\''/g;
8502 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8503 ;; #(
8505 # `set' quotes correctly as required by POSIX, so do not add quotes.
8506 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8508 esac |
8509 sort
8511 sed '
8512 /^ac_cv_env_/b end
8513 t clear
8514 :clear
8515 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8516 t end
8517 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8518 :end' >>confcache
8519 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8520 if test -w "$cache_file"; then
8521 test "x$cache_file" != "x/dev/null" &&
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8523 $as_echo "$as_me: updating cache $cache_file" >&6;}
8524 cat confcache >$cache_file
8525 else
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8527 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8530 rm -f confcache
8532 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8533 # Let make expand exec_prefix.
8534 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8536 DEFS=-DHAVE_CONFIG_H
8538 ac_libobjs=
8539 ac_ltlibobjs=
8540 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8541 # 1. Remove the extension, and $U if already installed.
8542 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8543 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8544 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8545 # will be set to the directory where LIBOBJS objects are built.
8546 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8547 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8548 done
8549 LIBOBJS=$ac_libobjs
8551 LTLIBOBJS=$ac_ltlibobjs
8554 if test -n "$EXEEXT"; then
8555 am__EXEEXT_TRUE=
8556 am__EXEEXT_FALSE='#'
8557 else
8558 am__EXEEXT_TRUE='#'
8559 am__EXEEXT_FALSE=
8562 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8563 as_fn_error "conditional \"AMDEP\" was never defined.
8564 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8566 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8567 as_fn_error "conditional \"am__fastdepCC\" was never defined.
8568 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8570 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8571 as_fn_error "conditional \"am__fastdepCC\" was never defined.
8572 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8574 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
8575 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
8576 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8579 : ${CONFIG_STATUS=./config.status}
8580 ac_write_fail=0
8581 ac_clean_files_save=$ac_clean_files
8582 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8584 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8585 as_write_fail=0
8586 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8587 #! $SHELL
8588 # Generated by $as_me.
8589 # Run this file to recreate the current configuration.
8590 # Compiler output produced by configure, useful for debugging
8591 # configure, is in config.log if it exists.
8593 debug=false
8594 ac_cs_recheck=false
8595 ac_cs_silent=false
8597 SHELL=\${CONFIG_SHELL-$SHELL}
8598 export SHELL
8599 _ASEOF
8600 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8601 ## -------------------- ##
8602 ## M4sh Initialization. ##
8603 ## -------------------- ##
8605 # Be more Bourne compatible
8606 DUALCASE=1; export DUALCASE # for MKS sh
8607 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8608 emulate sh
8609 NULLCMD=:
8610 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8611 # is contrary to our usage. Disable this feature.
8612 alias -g '${1+"$@"}'='"$@"'
8613 setopt NO_GLOB_SUBST
8614 else
8615 case `(set -o) 2>/dev/null` in #(
8616 *posix*) :
8617 set -o posix ;; #(
8618 *) :
8620 esac
8624 as_nl='
8626 export as_nl
8627 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8628 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8629 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8630 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8631 # Prefer a ksh shell builtin over an external printf program on Solaris,
8632 # but without wasting forks for bash or zsh.
8633 if test -z "$BASH_VERSION$ZSH_VERSION" \
8634 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8635 as_echo='print -r --'
8636 as_echo_n='print -rn --'
8637 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8638 as_echo='printf %s\n'
8639 as_echo_n='printf %s'
8640 else
8641 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8642 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8643 as_echo_n='/usr/ucb/echo -n'
8644 else
8645 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8646 as_echo_n_body='eval
8647 arg=$1;
8648 case $arg in #(
8649 *"$as_nl"*)
8650 expr "X$arg" : "X\\(.*\\)$as_nl";
8651 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8652 esac;
8653 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8655 export as_echo_n_body
8656 as_echo_n='sh -c $as_echo_n_body as_echo'
8658 export as_echo_body
8659 as_echo='sh -c $as_echo_body as_echo'
8662 # The user is always right.
8663 if test "${PATH_SEPARATOR+set}" != set; then
8664 PATH_SEPARATOR=:
8665 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8666 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8667 PATH_SEPARATOR=';'
8672 # IFS
8673 # We need space, tab and new line, in precisely that order. Quoting is
8674 # there to prevent editors from complaining about space-tab.
8675 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8676 # splitting by setting IFS to empty value.)
8677 IFS=" "" $as_nl"
8679 # Find who we are. Look in the path if we contain no directory separator.
8680 case $0 in #((
8681 *[\\/]* ) as_myself=$0 ;;
8682 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8683 for as_dir in $PATH
8685 IFS=$as_save_IFS
8686 test -z "$as_dir" && as_dir=.
8687 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8688 done
8689 IFS=$as_save_IFS
8692 esac
8693 # We did not find ourselves, most probably we were run as `sh COMMAND'
8694 # in which case we are not to be found in the path.
8695 if test "x$as_myself" = x; then
8696 as_myself=$0
8698 if test ! -f "$as_myself"; then
8699 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8700 exit 1
8703 # Unset variables that we do not need and which cause bugs (e.g. in
8704 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8705 # suppresses any "Segmentation fault" message there. '((' could
8706 # trigger a bug in pdksh 5.2.14.
8707 for as_var in BASH_ENV ENV MAIL MAILPATH
8708 do eval test x\${$as_var+set} = xset \
8709 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8710 done
8711 PS1='$ '
8712 PS2='> '
8713 PS4='+ '
8715 # NLS nuisances.
8716 LC_ALL=C
8717 export LC_ALL
8718 LANGUAGE=C
8719 export LANGUAGE
8721 # CDPATH.
8722 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8725 # as_fn_error ERROR [LINENO LOG_FD]
8726 # ---------------------------------
8727 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8728 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8729 # script with status $?, using 1 if that was 0.
8730 as_fn_error ()
8732 as_status=$?; test $as_status -eq 0 && as_status=1
8733 if test "$3"; then
8734 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8735 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
8737 $as_echo "$as_me: error: $1" >&2
8738 as_fn_exit $as_status
8739 } # as_fn_error
8742 # as_fn_set_status STATUS
8743 # -----------------------
8744 # Set $? to STATUS, without forking.
8745 as_fn_set_status ()
8747 return $1
8748 } # as_fn_set_status
8750 # as_fn_exit STATUS
8751 # -----------------
8752 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8753 as_fn_exit ()
8755 set +e
8756 as_fn_set_status $1
8757 exit $1
8758 } # as_fn_exit
8760 # as_fn_unset VAR
8761 # ---------------
8762 # Portably unset VAR.
8763 as_fn_unset ()
8765 { eval $1=; unset $1;}
8767 as_unset=as_fn_unset
8768 # as_fn_append VAR VALUE
8769 # ----------------------
8770 # Append the text in VALUE to the end of the definition contained in VAR. Take
8771 # advantage of any shell optimizations that allow amortized linear growth over
8772 # repeated appends, instead of the typical quadratic growth present in naive
8773 # implementations.
8774 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8775 eval 'as_fn_append ()
8777 eval $1+=\$2
8779 else
8780 as_fn_append ()
8782 eval $1=\$$1\$2
8784 fi # as_fn_append
8786 # as_fn_arith ARG...
8787 # ------------------
8788 # Perform arithmetic evaluation on the ARGs, and store the result in the
8789 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8790 # must be portable across $(()) and expr.
8791 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8792 eval 'as_fn_arith ()
8794 as_val=$(( $* ))
8796 else
8797 as_fn_arith ()
8799 as_val=`expr "$@" || test $? -eq 1`
8801 fi # as_fn_arith
8804 if expr a : '\(a\)' >/dev/null 2>&1 &&
8805 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8806 as_expr=expr
8807 else
8808 as_expr=false
8811 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8812 as_basename=basename
8813 else
8814 as_basename=false
8817 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8818 as_dirname=dirname
8819 else
8820 as_dirname=false
8823 as_me=`$as_basename -- "$0" ||
8824 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8825 X"$0" : 'X\(//\)$' \| \
8826 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8827 $as_echo X/"$0" |
8828 sed '/^.*\/\([^/][^/]*\)\/*$/{
8829 s//\1/
8832 /^X\/\(\/\/\)$/{
8833 s//\1/
8836 /^X\/\(\/\).*/{
8837 s//\1/
8840 s/.*/./; q'`
8842 # Avoid depending upon Character Ranges.
8843 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8844 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8845 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8846 as_cr_digits='0123456789'
8847 as_cr_alnum=$as_cr_Letters$as_cr_digits
8849 ECHO_C= ECHO_N= ECHO_T=
8850 case `echo -n x` in #(((((
8851 -n*)
8852 case `echo 'xy\c'` in
8853 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8854 xy) ECHO_C='\c';;
8855 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8856 ECHO_T=' ';;
8857 esac;;
8859 ECHO_N='-n';;
8860 esac
8862 rm -f conf$$ conf$$.exe conf$$.file
8863 if test -d conf$$.dir; then
8864 rm -f conf$$.dir/conf$$.file
8865 else
8866 rm -f conf$$.dir
8867 mkdir conf$$.dir 2>/dev/null
8869 if (echo >conf$$.file) 2>/dev/null; then
8870 if ln -s conf$$.file conf$$ 2>/dev/null; then
8871 as_ln_s='ln -s'
8872 # ... but there are two gotchas:
8873 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8874 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8875 # In both cases, we have to default to `cp -p'.
8876 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8877 as_ln_s='cp -p'
8878 elif ln conf$$.file conf$$ 2>/dev/null; then
8879 as_ln_s=ln
8880 else
8881 as_ln_s='cp -p'
8883 else
8884 as_ln_s='cp -p'
8886 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8887 rmdir conf$$.dir 2>/dev/null
8890 # as_fn_mkdir_p
8891 # -------------
8892 # Create "$as_dir" as a directory, including parents if necessary.
8893 as_fn_mkdir_p ()
8896 case $as_dir in #(
8897 -*) as_dir=./$as_dir;;
8898 esac
8899 test -d "$as_dir" || eval $as_mkdir_p || {
8900 as_dirs=
8901 while :; do
8902 case $as_dir in #(
8903 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8904 *) as_qdir=$as_dir;;
8905 esac
8906 as_dirs="'$as_qdir' $as_dirs"
8907 as_dir=`$as_dirname -- "$as_dir" ||
8908 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8909 X"$as_dir" : 'X\(//\)[^/]' \| \
8910 X"$as_dir" : 'X\(//\)$' \| \
8911 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8912 $as_echo X"$as_dir" |
8913 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8914 s//\1/
8917 /^X\(\/\/\)[^/].*/{
8918 s//\1/
8921 /^X\(\/\/\)$/{
8922 s//\1/
8925 /^X\(\/\).*/{
8926 s//\1/
8929 s/.*/./; q'`
8930 test -d "$as_dir" && break
8931 done
8932 test -z "$as_dirs" || eval "mkdir $as_dirs"
8933 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
8936 } # as_fn_mkdir_p
8937 if mkdir -p . 2>/dev/null; then
8938 as_mkdir_p='mkdir -p "$as_dir"'
8939 else
8940 test -d ./-p && rmdir ./-p
8941 as_mkdir_p=false
8944 if test -x / >/dev/null 2>&1; then
8945 as_test_x='test -x'
8946 else
8947 if ls -dL / >/dev/null 2>&1; then
8948 as_ls_L_option=L
8949 else
8950 as_ls_L_option=
8952 as_test_x='
8953 eval sh -c '\''
8954 if test -d "$1"; then
8955 test -d "$1/.";
8956 else
8957 case $1 in #(
8958 -*)set "./$1";;
8959 esac;
8960 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8961 ???[sx]*):;;*)false;;esac;fi
8962 '\'' sh
8965 as_executable_p=$as_test_x
8967 # Sed expression to map a string onto a valid CPP name.
8968 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8970 # Sed expression to map a string onto a valid variable name.
8971 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8974 exec 6>&1
8975 ## ----------------------------------- ##
8976 ## Main body of $CONFIG_STATUS script. ##
8977 ## ----------------------------------- ##
8978 _ASEOF
8979 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8981 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8982 # Save the log message, to keep $0 and so on meaningful, and to
8983 # report actual input values of CONFIG_FILES etc. instead of their
8984 # values after options handling.
8985 ac_log="
8986 This file was extended by the fast lexical analyser generator $as_me 2.5.37, which was
8987 generated by GNU Autoconf 2.65. Invocation command line was
8989 CONFIG_FILES = $CONFIG_FILES
8990 CONFIG_HEADERS = $CONFIG_HEADERS
8991 CONFIG_LINKS = $CONFIG_LINKS
8992 CONFIG_COMMANDS = $CONFIG_COMMANDS
8993 $ $0 $@
8995 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8998 _ACEOF
9000 case $ac_config_files in *"
9001 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9002 esac
9004 case $ac_config_headers in *"
9005 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9006 esac
9009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9010 # Files that config.status was made for.
9011 config_files="$ac_config_files"
9012 config_headers="$ac_config_headers"
9013 config_commands="$ac_config_commands"
9015 _ACEOF
9017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9018 ac_cs_usage="\
9019 \`$as_me' instantiates files and other configuration actions
9020 from templates according to the current configuration. Unless the files
9021 and actions are specified as TAGs, all are instantiated by default.
9023 Usage: $0 [OPTION]... [TAG]...
9025 -h, --help print this help, then exit
9026 -V, --version print version number and configuration settings, then exit
9027 --config print configuration, then exit
9028 -q, --quiet, --silent
9029 do not print progress messages
9030 -d, --debug don't remove temporary files
9031 --recheck update $as_me by reconfiguring in the same conditions
9032 --file=FILE[:TEMPLATE]
9033 instantiate the configuration file FILE
9034 --header=FILE[:TEMPLATE]
9035 instantiate the configuration header FILE
9037 Configuration files:
9038 $config_files
9040 Configuration headers:
9041 $config_headers
9043 Configuration commands:
9044 $config_commands
9046 Report bugs to <flex-help@lists.sourceforge.net>."
9048 _ACEOF
9049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9050 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9051 ac_cs_version="\\
9052 the fast lexical analyser generator config.status 2.5.37
9053 configured by $0, generated by GNU Autoconf 2.65,
9054 with options \\"\$ac_cs_config\\"
9056 Copyright (C) 2009 Free Software Foundation, Inc.
9057 This config.status script is free software; the Free Software Foundation
9058 gives unlimited permission to copy, distribute and modify it."
9060 ac_pwd='$ac_pwd'
9061 srcdir='$srcdir'
9062 INSTALL='$INSTALL'
9063 MKDIR_P='$MKDIR_P'
9064 AWK='$AWK'
9065 test -n "\$AWK" || AWK=awk
9066 _ACEOF
9068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9069 # The default lists apply if the user does not specify any file.
9070 ac_need_defaults=:
9071 while test $# != 0
9073 case $1 in
9074 --*=*)
9075 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9076 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9077 ac_shift=:
9080 ac_option=$1
9081 ac_optarg=$2
9082 ac_shift=shift
9084 esac
9086 case $ac_option in
9087 # Handling of the options.
9088 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9089 ac_cs_recheck=: ;;
9090 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9091 $as_echo "$ac_cs_version"; exit ;;
9092 --config | --confi | --conf | --con | --co | --c )
9093 $as_echo "$ac_cs_config"; exit ;;
9094 --debug | --debu | --deb | --de | --d | -d )
9095 debug=: ;;
9096 --file | --fil | --fi | --f )
9097 $ac_shift
9098 case $ac_optarg in
9099 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9100 esac
9101 as_fn_append CONFIG_FILES " '$ac_optarg'"
9102 ac_need_defaults=false;;
9103 --header | --heade | --head | --hea )
9104 $ac_shift
9105 case $ac_optarg in
9106 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9107 esac
9108 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9109 ac_need_defaults=false;;
9110 --he | --h)
9111 # Conflict between --help and --header
9112 as_fn_error "ambiguous option: \`$1'
9113 Try \`$0 --help' for more information.";;
9114 --help | --hel | -h )
9115 $as_echo "$ac_cs_usage"; exit ;;
9116 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9117 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9118 ac_cs_silent=: ;;
9120 # This is an error.
9121 -*) as_fn_error "unrecognized option: \`$1'
9122 Try \`$0 --help' for more information." ;;
9124 *) as_fn_append ac_config_targets " $1"
9125 ac_need_defaults=false ;;
9127 esac
9128 shift
9129 done
9131 ac_configure_extra_args=
9133 if $ac_cs_silent; then
9134 exec 6>/dev/null
9135 ac_configure_extra_args="$ac_configure_extra_args --silent"
9138 _ACEOF
9139 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9140 if \$ac_cs_recheck; then
9141 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9142 shift
9143 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9144 CONFIG_SHELL='$SHELL'
9145 export CONFIG_SHELL
9146 exec "\$@"
9149 _ACEOF
9150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9151 exec 5>>config.log
9153 echo
9154 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9155 ## Running $as_me. ##
9156 _ASBOX
9157 $as_echo "$ac_log"
9158 } >&5
9160 _ACEOF
9161 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9163 # INIT-COMMANDS
9165 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
9166 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
9167 # from automake.
9168 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
9169 # Capture the value of LINGUAS because we need it to compute CATALOGS.
9170 LINGUAS="${LINGUAS-%UNSET%}"
9172 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9174 _ACEOF
9176 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9178 # Handling of arguments.
9179 for ac_config_target in $ac_config_targets
9181 case $ac_config_target in
9182 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:conf.in" ;;
9183 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
9184 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9185 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9186 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9187 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
9188 "examples/fastwc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/fastwc/Makefile" ;;
9189 "examples/manual/Makefile") CONFIG_FILES="$CONFIG_FILES examples/manual/Makefile" ;;
9190 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
9191 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
9192 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
9193 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
9194 "tests/TEMPLATE/Makefile") CONFIG_FILES="$CONFIG_FILES tests/TEMPLATE/Makefile" ;;
9195 "tests/test-array-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-array-nr/Makefile" ;;
9196 "tests/test-array-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-array-r/Makefile" ;;
9197 "tests/test-basic-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-basic-nr/Makefile" ;;
9198 "tests/test-basic-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-basic-r/Makefile" ;;
9199 "tests/test-bison-yylloc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-bison-yylloc/Makefile" ;;
9200 "tests/test-bison-yylval/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-bison-yylval/Makefile" ;;
9201 "tests/test-c-cpp-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-c-cpp-nr/Makefile" ;;
9202 "tests/test-c-cpp-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-c-cpp-r/Makefile" ;;
9203 "tests/test-header-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-header-nr/Makefile" ;;
9204 "tests/test-header-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-header-r/Makefile" ;;
9205 "tests/test-include-by-buffer/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-include-by-buffer/Makefile" ;;
9206 "tests/test-include-by-push/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-include-by-push/Makefile" ;;
9207 "tests/test-include-by-reentrant/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-include-by-reentrant/Makefile" ;;
9208 "tests/test-multiple-scanners-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-multiple-scanners-nr/Makefile" ;;
9209 "tests/test-multiple-scanners-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-multiple-scanners-r/Makefile" ;;
9210 "tests/test-noansi-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-noansi-nr/Makefile" ;;
9211 "tests/test-noansi-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-noansi-r/Makefile" ;;
9212 "tests/test-prefix-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-prefix-nr/Makefile" ;;
9213 "tests/test-prefix-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-prefix-r/Makefile" ;;
9214 "tests/test-pthread/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-pthread/Makefile" ;;
9215 "tests/test-string-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-string-nr/Makefile" ;;
9216 "tests/test-string-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-string-r/Makefile" ;;
9217 "tests/test-yyextra/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-yyextra/Makefile" ;;
9218 "tests/test-alloc-extra/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-alloc-extra/Makefile" ;;
9219 "tests/test-lineno-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-lineno-nr/Makefile" ;;
9220 "tests/test-lineno-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-lineno-r/Makefile" ;;
9221 "tests/test-linedir-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-linedir-r/Makefile" ;;
9222 "tests/test-debug-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-debug-r/Makefile" ;;
9223 "tests/test-debug-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-debug-nr/Makefile" ;;
9224 "tests/test-mem-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-mem-nr/Makefile" ;;
9225 "tests/test-mem-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-mem-r/Makefile" ;;
9226 "tests/test-posix/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-posix/Makefile" ;;
9227 "tests/test-posixly-correct/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-posixly-correct/Makefile" ;;
9228 "tests/test-table-opts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-table-opts/Makefile" ;;
9229 "tests/test-c++-basic/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-c++-basic/Makefile" ;;
9230 "tests/test-bison-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-bison-nr/Makefile" ;;
9231 "tests/test-reject/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-reject/Makefile" ;;
9232 "tests/test-c++-multiple-scanners/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-c++-multiple-scanners/Makefile" ;;
9233 "tests/test-top/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-top/Makefile" ;;
9234 "tests/test-rescan-nr/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-rescan-nr/Makefile" ;;
9235 "tests/test-rescan-r/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-rescan-r/Makefile" ;;
9236 "tests/test-quotes/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-quotes/Makefile" ;;
9237 "tests/test-ccl/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-ccl/Makefile" ;;
9238 "tests/test-extended/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-extended/Makefile" ;;
9239 "tests/test-c++-yywrap/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-c++-yywrap/Makefile" ;;
9240 "tests/test-concatenated-options/Makefile") CONFIG_FILES="$CONFIG_FILES tests/test-concatenated-options/Makefile" ;;
9242 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9243 esac
9244 done
9247 # If the user did not use the arguments to specify the items to instantiate,
9248 # then the envvar interface is used. Set only those that are not.
9249 # We use the long form for the default assignment because of an extremely
9250 # bizarre bug on SunOS 4.1.3.
9251 if $ac_need_defaults; then
9252 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9253 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9254 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9257 # Have a temporary directory for convenience. Make it in the build tree
9258 # simply because there is no reason against having it here, and in addition,
9259 # creating and moving files from /tmp can sometimes cause problems.
9260 # Hook for its removal unless debugging.
9261 # Note that there is a small window in which the directory will not be cleaned:
9262 # after its creation but before its name has been assigned to `$tmp'.
9263 $debug ||
9265 tmp=
9266 trap 'exit_status=$?
9267 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9269 trap 'as_fn_exit 1' 1 2 13 15
9271 # Create a (secure) tmp directory for tmp files.
9274 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9275 test -n "$tmp" && test -d "$tmp"
9276 } ||
9278 tmp=./conf$$-$RANDOM
9279 (umask 077 && mkdir "$tmp")
9280 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
9282 # Set up the scripts for CONFIG_FILES section.
9283 # No need to generate them if there are no CONFIG_FILES.
9284 # This happens for instance with `./config.status config.h'.
9285 if test -n "$CONFIG_FILES"; then
9288 ac_cr=`echo X | tr X '\015'`
9289 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9290 # But we know of no other shell where ac_cr would be empty at this
9291 # point, so we can use a bashism as a fallback.
9292 if test "x$ac_cr" = x; then
9293 eval ac_cr=\$\'\\r\'
9295 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9296 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9297 ac_cs_awk_cr='\r'
9298 else
9299 ac_cs_awk_cr=$ac_cr
9302 echo 'BEGIN {' >"$tmp/subs1.awk" &&
9303 _ACEOF
9307 echo "cat >conf$$subs.awk <<_ACEOF" &&
9308 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9309 echo "_ACEOF"
9310 } >conf$$subs.sh ||
9311 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
9312 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
9313 ac_delim='%!_!# '
9314 for ac_last_try in false false false false false :; do
9315 . ./conf$$subs.sh ||
9316 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
9318 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9319 if test $ac_delim_n = $ac_delim_num; then
9320 break
9321 elif $ac_last_try; then
9322 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
9323 else
9324 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9326 done
9327 rm -f conf$$subs.sh
9329 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9330 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
9331 _ACEOF
9332 sed -n '
9334 s/^/S["/; s/!.*/"]=/
9337 s/^[^!]*!//
9338 :repl
9339 t repl
9340 s/'"$ac_delim"'$//
9341 t delim
9344 s/\(.\{148\}\)..*/\1/
9345 t more1
9346 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9349 b repl
9350 :more1
9351 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9354 s/.\{148\}//
9355 t nl
9356 :delim
9358 s/\(.\{148\}\)..*/\1/
9359 t more2
9360 s/["\\]/\\&/g; s/^/"/; s/$/"/
9363 :more2
9364 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9367 s/.\{148\}//
9368 t delim
9369 ' <conf$$subs.awk | sed '
9370 /^[^""]/{
9372 s/\n//
9374 ' >>$CONFIG_STATUS || ac_write_fail=1
9375 rm -f conf$$subs.awk
9376 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9377 _ACAWK
9378 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
9379 for (key in S) S_is_set[key] = 1
9380 FS = "\a"
9384 line = $ 0
9385 nfields = split(line, field, "@")
9386 substed = 0
9387 len = length(field[1])
9388 for (i = 2; i < nfields; i++) {
9389 key = field[i]
9390 keylen = length(key)
9391 if (S_is_set[key]) {
9392 value = S[key]
9393 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9394 len += length(value) + length(field[++i])
9395 substed = 1
9396 } else
9397 len += 1 + keylen
9400 print line
9403 _ACAWK
9404 _ACEOF
9405 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9406 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9407 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9408 else
9410 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
9411 || as_fn_error "could not setup config files machinery" "$LINENO" 5
9412 _ACEOF
9414 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9415 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9416 # trailing colons and then remove the whole line if VPATH becomes empty
9417 # (actually we leave an empty line to preserve line numbers).
9418 if test "x$srcdir" = x.; then
9419 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9420 s/:*\$(srcdir):*/:/
9421 s/:*\${srcdir}:*/:/
9422 s/:*@srcdir@:*/:/
9423 s/^\([^=]*=[ ]*\):*/\1/
9424 s/:*$//
9425 s/^[^=]*=[ ]*$//
9429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9430 fi # test -n "$CONFIG_FILES"
9432 # Set up the scripts for CONFIG_HEADERS section.
9433 # No need to generate them if there are no CONFIG_HEADERS.
9434 # This happens for instance with `./config.status Makefile'.
9435 if test -n "$CONFIG_HEADERS"; then
9436 cat >"$tmp/defines.awk" <<\_ACAWK ||
9437 BEGIN {
9438 _ACEOF
9440 # Transform confdefs.h into an awk script `defines.awk', embedded as
9441 # here-document in config.status, that substitutes the proper values into
9442 # config.h.in to produce config.h.
9444 # Create a delimiter string that does not exist in confdefs.h, to ease
9445 # handling of long lines.
9446 ac_delim='%!_!# '
9447 for ac_last_try in false false :; do
9448 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
9449 if test -z "$ac_t"; then
9450 break
9451 elif $ac_last_try; then
9452 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
9453 else
9454 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9456 done
9458 # For the awk script, D is an array of macro values keyed by name,
9459 # likewise P contains macro parameters if any. Preserve backslash
9460 # newline sequences.
9462 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9463 sed -n '
9464 s/.\{148\}/&'"$ac_delim"'/g
9465 t rset
9466 :rset
9467 s/^[ ]*#[ ]*define[ ][ ]*/ /
9468 t def
9470 :def
9471 s/\\$//
9472 t bsnl
9473 s/["\\]/\\&/g
9474 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9475 D["\1"]=" \3"/p
9476 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9478 :bsnl
9479 s/["\\]/\\&/g
9480 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9481 D["\1"]=" \3\\\\\\n"\\/p
9482 t cont
9483 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9484 t cont
9486 :cont
9488 s/.\{148\}/&'"$ac_delim"'/g
9489 t clear
9490 :clear
9491 s/\\$//
9492 t bsnlc
9493 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9495 :bsnlc
9496 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9497 b cont
9498 ' <confdefs.h | sed '
9499 s/'"$ac_delim"'/"\\\
9500 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9502 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9503 for (key in D) D_is_set[key] = 1
9504 FS = "\a"
9506 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9507 line = \$ 0
9508 split(line, arg, " ")
9509 if (arg[1] == "#") {
9510 defundef = arg[2]
9511 mac1 = arg[3]
9512 } else {
9513 defundef = substr(arg[1], 2)
9514 mac1 = arg[2]
9516 split(mac1, mac2, "(") #)
9517 macro = mac2[1]
9518 prefix = substr(line, 1, index(line, defundef) - 1)
9519 if (D_is_set[macro]) {
9520 # Preserve the white space surrounding the "#".
9521 print prefix "define", macro P[macro] D[macro]
9522 next
9523 } else {
9524 # Replace #undef with comments. This is necessary, for example,
9525 # in the case of _POSIX_SOURCE, which is predefined and required
9526 # on some systems where configure will not decide to define it.
9527 if (defundef == "undef") {
9528 print "/*", prefix defundef, macro, "*/"
9529 next
9533 { print }
9534 _ACAWK
9535 _ACEOF
9536 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9537 as_fn_error "could not setup config headers machinery" "$LINENO" 5
9538 fi # test -n "$CONFIG_HEADERS"
9541 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9542 shift
9543 for ac_tag
9545 case $ac_tag in
9546 :[FHLC]) ac_mode=$ac_tag; continue;;
9547 esac
9548 case $ac_mode$ac_tag in
9549 :[FHL]*:*);;
9550 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
9551 :[FH]-) ac_tag=-:-;;
9552 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9553 esac
9554 ac_save_IFS=$IFS
9555 IFS=:
9556 set x $ac_tag
9557 IFS=$ac_save_IFS
9558 shift
9559 ac_file=$1
9560 shift
9562 case $ac_mode in
9563 :L) ac_source=$1;;
9564 :[FH])
9565 ac_file_inputs=
9566 for ac_f
9568 case $ac_f in
9569 -) ac_f="$tmp/stdin";;
9570 *) # Look for the file first in the build tree, then in the source tree
9571 # (if the path is not absolute). The absolute path cannot be DOS-style,
9572 # because $ac_f cannot contain `:'.
9573 test -f "$ac_f" ||
9574 case $ac_f in
9575 [\\/$]*) false;;
9576 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9577 esac ||
9578 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9579 esac
9580 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9581 as_fn_append ac_file_inputs " '$ac_f'"
9582 done
9584 # Let's still pretend it is `configure' which instantiates (i.e., don't
9585 # use $as_me), people would be surprised to read:
9586 # /* config.h. Generated by config.status. */
9587 configure_input='Generated from '`
9588 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9589 `' by configure.'
9590 if test x"$ac_file" != x-; then
9591 configure_input="$ac_file. $configure_input"
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9593 $as_echo "$as_me: creating $ac_file" >&6;}
9595 # Neutralize special characters interpreted by sed in replacement strings.
9596 case $configure_input in #(
9597 *\&* | *\|* | *\\* )
9598 ac_sed_conf_input=`$as_echo "$configure_input" |
9599 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9600 *) ac_sed_conf_input=$configure_input;;
9601 esac
9603 case $ac_tag in
9604 *:-:* | *:-) cat >"$tmp/stdin" \
9605 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
9606 esac
9608 esac
9610 ac_dir=`$as_dirname -- "$ac_file" ||
9611 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9612 X"$ac_file" : 'X\(//\)[^/]' \| \
9613 X"$ac_file" : 'X\(//\)$' \| \
9614 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9615 $as_echo X"$ac_file" |
9616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9617 s//\1/
9620 /^X\(\/\/\)[^/].*/{
9621 s//\1/
9624 /^X\(\/\/\)$/{
9625 s//\1/
9628 /^X\(\/\).*/{
9629 s//\1/
9632 s/.*/./; q'`
9633 as_dir="$ac_dir"; as_fn_mkdir_p
9634 ac_builddir=.
9636 case "$ac_dir" in
9637 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9639 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9640 # A ".." for each directory in $ac_dir_suffix.
9641 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9642 case $ac_top_builddir_sub in
9643 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9644 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9645 esac ;;
9646 esac
9647 ac_abs_top_builddir=$ac_pwd
9648 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9649 # for backward compatibility:
9650 ac_top_builddir=$ac_top_build_prefix
9652 case $srcdir in
9653 .) # We are building in place.
9654 ac_srcdir=.
9655 ac_top_srcdir=$ac_top_builddir_sub
9656 ac_abs_top_srcdir=$ac_pwd ;;
9657 [\\/]* | ?:[\\/]* ) # Absolute name.
9658 ac_srcdir=$srcdir$ac_dir_suffix;
9659 ac_top_srcdir=$srcdir
9660 ac_abs_top_srcdir=$srcdir ;;
9661 *) # Relative name.
9662 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9663 ac_top_srcdir=$ac_top_build_prefix$srcdir
9664 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9665 esac
9666 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9669 case $ac_mode in
9672 # CONFIG_FILE
9675 case $INSTALL in
9676 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9677 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9678 esac
9679 ac_MKDIR_P=$MKDIR_P
9680 case $MKDIR_P in
9681 [\\/$]* | ?:[\\/]* ) ;;
9682 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9683 esac
9684 _ACEOF
9686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9687 # If the template does not know about datarootdir, expand it.
9688 # FIXME: This hack should be removed a few years after 2.60.
9689 ac_datarootdir_hack=; ac_datarootdir_seen=
9690 ac_sed_dataroot='
9691 /datarootdir/ {
9695 /@datadir@/p
9696 /@docdir@/p
9697 /@infodir@/p
9698 /@localedir@/p
9699 /@mandir@/p'
9700 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9701 *datarootdir*) ac_datarootdir_seen=yes;;
9702 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9704 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9705 _ACEOF
9706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9707 ac_datarootdir_hack='
9708 s&@datadir@&$datadir&g
9709 s&@docdir@&$docdir&g
9710 s&@infodir@&$infodir&g
9711 s&@localedir@&$localedir&g
9712 s&@mandir@&$mandir&g
9713 s&\\\${datarootdir}&$datarootdir&g' ;;
9714 esac
9715 _ACEOF
9717 # Neutralize VPATH when `$srcdir' = `.'.
9718 # Shell code in configure.ac might set extrasub.
9719 # FIXME: do we really want to maintain this feature?
9720 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9721 ac_sed_extra="$ac_vpsub
9722 $extrasub
9723 _ACEOF
9724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9726 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9727 s|@configure_input@|$ac_sed_conf_input|;t t
9728 s&@top_builddir@&$ac_top_builddir_sub&;t t
9729 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9730 s&@srcdir@&$ac_srcdir&;t t
9731 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9732 s&@top_srcdir@&$ac_top_srcdir&;t t
9733 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9734 s&@builddir@&$ac_builddir&;t t
9735 s&@abs_builddir@&$ac_abs_builddir&;t t
9736 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9737 s&@INSTALL@&$ac_INSTALL&;t t
9738 s&@MKDIR_P@&$ac_MKDIR_P&;t t
9739 $ac_datarootdir_hack
9741 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
9742 || as_fn_error "could not create $ac_file" "$LINENO" 5
9744 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9745 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9746 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9748 which seems to be undefined. Please make sure it is defined." >&5
9749 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9750 which seems to be undefined. Please make sure it is defined." >&2;}
9752 rm -f "$tmp/stdin"
9753 case $ac_file in
9754 -) cat "$tmp/out" && rm -f "$tmp/out";;
9755 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
9756 esac \
9757 || as_fn_error "could not create $ac_file" "$LINENO" 5
9761 # CONFIG_HEADER
9763 if test x"$ac_file" != x-; then
9765 $as_echo "/* $configure_input */" \
9766 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
9767 } >"$tmp/config.h" \
9768 || as_fn_error "could not create $ac_file" "$LINENO" 5
9769 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9771 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9772 else
9773 rm -f "$ac_file"
9774 mv "$tmp/config.h" "$ac_file" \
9775 || as_fn_error "could not create $ac_file" "$LINENO" 5
9777 else
9778 $as_echo "/* $configure_input */" \
9779 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
9780 || as_fn_error "could not create -" "$LINENO" 5
9782 # Compute "$ac_file"'s index in $config_headers.
9783 _am_arg="$ac_file"
9784 _am_stamp_count=1
9785 for _am_header in $config_headers :; do
9786 case $_am_header in
9787 $_am_arg | $_am_arg:* )
9788 break ;;
9790 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9791 esac
9792 done
9793 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9794 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9795 X"$_am_arg" : 'X\(//\)[^/]' \| \
9796 X"$_am_arg" : 'X\(//\)$' \| \
9797 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9798 $as_echo X"$_am_arg" |
9799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9800 s//\1/
9803 /^X\(\/\/\)[^/].*/{
9804 s//\1/
9807 /^X\(\/\/\)$/{
9808 s//\1/
9811 /^X\(\/\).*/{
9812 s//\1/
9815 s/.*/./; q'`/stamp-h$_am_stamp_count
9818 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9819 $as_echo "$as_me: executing $ac_file commands" >&6;}
9821 esac
9824 case $ac_file$ac_mode in
9825 "default-1":C)
9826 for ac_file in $CONFIG_FILES; do
9827 # Support "outfile[:infile[:infile...]]"
9828 case "$ac_file" in
9829 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9830 esac
9831 # PO directories have a Makefile.in generated from Makefile.in.in.
9832 case "$ac_file" in */Makefile.in)
9833 # Adjust a relative srcdir.
9834 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9835 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9836 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9837 # In autoconf-2.13 it is called $ac_given_srcdir.
9838 # In autoconf-2.50 it is called $srcdir.
9839 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9840 case "$ac_given_srcdir" in
9841 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9842 /*) top_srcdir="$ac_given_srcdir" ;;
9843 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9844 esac
9845 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9846 rm -f "$ac_dir/POTFILES"
9847 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9848 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
9849 POMAKEFILEDEPS="POTFILES.in"
9850 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
9851 # on $ac_dir but don't depend on user-specified configuration
9852 # parameters.
9853 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
9854 # The LINGUAS file contains the set of available languages.
9855 if test -n "$OBSOLETE_ALL_LINGUAS"; then
9856 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
9858 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
9859 # Hide the ALL_LINGUAS assigment from automake.
9860 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
9861 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
9862 else
9863 # The set of available languages was given in configure.in.
9864 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
9866 case "$ac_given_srcdir" in
9867 .) srcdirpre= ;;
9868 *) srcdirpre='$(srcdir)/' ;;
9869 esac
9870 POFILES=
9871 GMOFILES=
9872 UPDATEPOFILES=
9873 DUMMYPOFILES=
9874 for lang in $ALL_LINGUAS; do
9875 POFILES="$POFILES $srcdirpre$lang.po"
9876 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
9877 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
9878 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
9879 done
9880 # CATALOGS depends on both $ac_dir and the user's LINGUAS
9881 # environment variable.
9882 INST_LINGUAS=
9883 if test -n "$ALL_LINGUAS"; then
9884 for presentlang in $ALL_LINGUAS; do
9885 useit=no
9886 if test "%UNSET%" != "$LINGUAS"; then
9887 desiredlanguages="$LINGUAS"
9888 else
9889 desiredlanguages="$ALL_LINGUAS"
9891 for desiredlang in $desiredlanguages; do
9892 # Use the presentlang catalog if desiredlang is
9893 # a. equal to presentlang, or
9894 # b. a variant of presentlang (because in this case,
9895 # presentlang can be used as a fallback for messages
9896 # which are not translated in the desiredlang catalog).
9897 case "$desiredlang" in
9898 "$presentlang"*) useit=yes;;
9899 esac
9900 done
9901 if test $useit = yes; then
9902 INST_LINGUAS="$INST_LINGUAS $presentlang"
9904 done
9906 CATALOGS=
9907 if test -n "$INST_LINGUAS"; then
9908 for lang in $INST_LINGUAS; do
9909 CATALOGS="$CATALOGS $lang.gmo"
9910 done
9912 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9913 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"
9914 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
9915 if test -f "$f"; then
9916 case "$f" in
9917 *.orig | *.bak | *~) ;;
9918 *) cat "$f" >> "$ac_dir/Makefile" ;;
9919 esac
9921 done
9924 esac
9925 done ;;
9926 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
9927 # Autoconf 2.62 quotes --file arguments for eval, but not when files
9928 # are listed without --file. Let's play safe and only enable the eval
9929 # if we detect the quoting.
9930 case $CONFIG_FILES in
9931 *\'*) eval set x "$CONFIG_FILES" ;;
9932 *) set x $CONFIG_FILES ;;
9933 esac
9934 shift
9935 for mf
9937 # Strip MF so we end up with the name of the file.
9938 mf=`echo "$mf" | sed -e 's/:.*$//'`
9939 # Check whether this is an Automake generated Makefile or not.
9940 # We used to match only the files named `Makefile.in', but
9941 # some people rename them; so instead we look at the file content.
9942 # Grep'ing the first line is not enough: some people post-process
9943 # each Makefile.in and add a new line on top of each file to say so.
9944 # Grep'ing the whole file is not good either: AIX grep has a line
9945 # limit of 2048, but all sed's we know have understand at least 4000.
9946 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9947 dirpart=`$as_dirname -- "$mf" ||
9948 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9949 X"$mf" : 'X\(//\)[^/]' \| \
9950 X"$mf" : 'X\(//\)$' \| \
9951 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9952 $as_echo X"$mf" |
9953 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9954 s//\1/
9957 /^X\(\/\/\)[^/].*/{
9958 s//\1/
9961 /^X\(\/\/\)$/{
9962 s//\1/
9965 /^X\(\/\).*/{
9966 s//\1/
9969 s/.*/./; q'`
9970 else
9971 continue
9973 # Extract the definition of DEPDIR, am__include, and am__quote
9974 # from the Makefile without running `make'.
9975 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9976 test -z "$DEPDIR" && continue
9977 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9978 test -z "am__include" && continue
9979 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9980 # When using ansi2knr, U may be empty or an underscore; expand it
9981 U=`sed -n 's/^U = //p' < "$mf"`
9982 # Find all dependency output files, they are included files with
9983 # $(DEPDIR) in their names. We invoke sed twice because it is the
9984 # simplest approach to changing $(DEPDIR) to its actual value in the
9985 # expansion.
9986 for file in `sed -n "
9987 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9988 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9989 # Make sure the directory exists.
9990 test -f "$dirpart/$file" && continue
9991 fdir=`$as_dirname -- "$file" ||
9992 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9993 X"$file" : 'X\(//\)[^/]' \| \
9994 X"$file" : 'X\(//\)$' \| \
9995 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9996 $as_echo X"$file" |
9997 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9998 s//\1/
10001 /^X\(\/\/\)[^/].*/{
10002 s//\1/
10005 /^X\(\/\/\)$/{
10006 s//\1/
10009 /^X\(\/\).*/{
10010 s//\1/
10013 s/.*/./; q'`
10014 as_dir=$dirpart/$fdir; as_fn_mkdir_p
10015 # echo "creating $dirpart/$file"
10016 echo '# dummy' > "$dirpart/$file"
10017 done
10018 done
10022 esac
10023 done # for ac_tag
10026 as_fn_exit 0
10027 _ACEOF
10028 ac_clean_files=$ac_clean_files_save
10030 test $ac_write_fail = 0 ||
10031 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
10034 # configure is writing to config.log, and then calls config.status.
10035 # config.status does its own redirection, appending to config.log.
10036 # Unfortunately, on DOS this fails, as config.log is still kept open
10037 # by configure, so config.status won't be able to write to it; its
10038 # output is simply discarded. So we exec the FD to /dev/null,
10039 # effectively closing config.log, so it can be properly (re)opened and
10040 # appended to by config.status. When coming back to configure, we
10041 # need to make the FD available again.
10042 if test "$no_create" != yes; then
10043 ac_cs_success=:
10044 ac_config_status_args=
10045 test "$silent" = yes &&
10046 ac_config_status_args="$ac_config_status_args --quiet"
10047 exec 5>/dev/null
10048 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10049 exec 5>>config.log
10050 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10051 # would make configure fail if this is the last instruction.
10052 $ac_cs_success || as_fn_exit $?
10054 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10056 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}