2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for Cycript 0.9.
5 # Report bugs to <saurik@saurik.com>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev
/null
2>&1 && unset $as_var || :
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev
/null
; then :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
192 for as_base
in sh bash ksh sh5
; do
193 # Try only shells that exist, to save several forks.
194 as_shell
=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
197 CONFIG_SHELL
=$as_shell as_have_required
=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$SHELL as_have_required
=yes
213 if test "x$CONFIG_SHELL" != x
; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x
$as_have_required = xno
; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x
${ZSH_VERSION+set} = xset
; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org and saurik@saurik.com
232 $0: about your system, including any error possibly output
233 $0: before this message. Then install a modern shell, or
234 $0: manually run the script under such a shell if you do
241 SHELL
=${CONFIG_SHELL-/bin/sh}
243 # Unset more variables known to interfere with behavior of common tools.
244 CLICOLOR_FORCE
= GREP_OPTIONS
=
245 unset CLICOLOR_FORCE GREP_OPTIONS
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
252 # Portably unset VAR.
255 { eval $1=; unset $1;}
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
279 # Create "$as_dir" as a directory, including parents if necessary.
284 -*) as_dir
=.
/$as_dir;;
286 test -d "$as_dir" || eval $as_mkdir_p || {
290 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 as_dirs
="'$as_qdir' $as_dirs"
294 as_dir
=`$as_dirname -- "$as_dir" ||
295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296 X"$as_dir" : 'X\(//\)[^/]' \| \
297 X"$as_dir" : 'X\(//\)$' \| \
298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299 $as_echo X"$as_dir" |
300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
317 test -d "$as_dir" && break
319 test -z "$as_dirs" || eval "mkdir $as_dirs"
320 } || test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
324 # as_fn_append VAR VALUE
325 # ----------------------
326 # Append the text in VALUE to the end of the definition contained in VAR. Take
327 # advantage of any shell optimizations that allow amortized linear growth over
328 # repeated appends, instead of the typical quadratic growth present in naive
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
331 eval 'as_fn_append ()
344 # Perform arithmetic evaluation on the ARGs, and store the result in the
345 # global $as_val. Take advantage of shells that can avoid forks. The arguments
346 # must be portable across $(()) and expr.
347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
355 as_val
=`expr "$@" || test $? -eq 1`
360 # as_fn_error ERROR [LINENO LOG_FD]
361 # ---------------------------------
362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364 # script with status $?, using 1 if that was 0.
367 as_status
=$?
; test $as_status -eq 0 && as_status
=1
369 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
372 $as_echo "$as_me: error: $1" >&2
373 as_fn_exit
$as_status
376 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
377 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
383 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
395 as_me
=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397 X"$0" : 'X\(//\)$' \| \
398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
400 sed '/^.*\/\([^/][^/]*\)\/*$/{
414 # Avoid depending upon Character Ranges.
415 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
416 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
418 as_cr_digits
='0123456789'
419 as_cr_alnum
=$as_cr_Letters$as_cr_digits
422 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
423 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442 chmod +x
"$as_me.lineno" ||
443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
445 # Don't try to exec as it changes $[0], causing all sort of problems
446 # (the dirname of $[0] is not the place where we might find the
447 # original and so on. Autoconf is especially sensitive to this).
449 # Exit status is that of the last command.
453 ECHO_C
= ECHO_N
= ECHO_T
=
454 case `echo -n x` in #(((((
456 case `echo 'xy\c'` in
457 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
459 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
466 rm -f conf$$ conf$$.exe conf$$.
file
467 if test -d conf$$.dir
; then
468 rm -f conf$$.dir
/conf$$.
file
471 mkdir conf$$.dir
2>/dev
/null
473 if (echo >conf$$.
file) 2>/dev
/null
; then
474 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
476 # ... but there are two gotchas:
477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479 # In both cases, we have to default to `cp -p'.
480 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
482 elif ln conf$$.
file conf$$
2>/dev
/null
; then
490 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
491 rmdir conf$$.dir
2>/dev
/null
493 if mkdir -p .
2>/dev
/null
; then
494 as_mkdir_p
='mkdir -p "$as_dir"'
496 test -d .
/-p && rmdir .
/-p
500 if test -x / >/dev
/null
2>&1; then
503 if ls -dL / >/dev
/null
2>&1; then
510 if test -d "$1"; then
516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517 ???[sx]*):;;*)false;;esac;fi
521 as_executable_p
=$as_test_x
523 # Sed expression to map a string onto a valid CPP name.
524 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
526 # Sed expression to map a string onto a valid variable name.
527 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530 exec 7<&0 </dev
/null
6>&1
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix
=/usr
/local
542 ac_config_libobj_dir
=.
549 # Identity of this package.
550 PACKAGE_NAME
='Cycript'
551 PACKAGE_TARNAME
='cycript'
552 PACKAGE_VERSION
='0.9'
553 PACKAGE_STRING
='Cycript 0.9'
554 PACKAGE_BUGREPORT
='saurik@saurik.com'
555 PACKAGE_URL
='http://www.cycript.org/'
557 ac_unique_file
="Console.cpp"
558 ac_subst_vars
='ifGNUmake
624 program_transform_name
637 enable_option_checking
643 ac_precious_vars
='build_alias
663 # Initialize some variables set by options.
665 ac_init_version
=false
666 ac_unrecognized_opts
=
668 # The variables have the same names as the options, with
669 # dashes changed to underlines.
677 program_transform_name
=s
,x
,x
,
685 # Installation directory options.
686 # These are left unexpanded so users can "make install exec_prefix=/foo"
687 # and all the variables that are supposed to be based on exec_prefix
688 # by default will actually change.
689 # Use braces instead of parens because sh, perl, etc. also accept them.
690 # (The list follows the same order as the GNU Coding Standards.)
691 bindir
='${exec_prefix}/bin'
692 sbindir
='${exec_prefix}/sbin'
693 libexecdir
='${exec_prefix}/libexec'
694 datarootdir
='${prefix}/share'
695 datadir
='${datarootdir}'
696 sysconfdir
='${prefix}/etc'
697 sharedstatedir
='${prefix}/com'
698 localstatedir
='${prefix}/var'
699 includedir
='${prefix}/include'
700 oldincludedir
='/usr/include'
701 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
702 infodir
='${datarootdir}/info'
707 libdir
='${exec_prefix}/lib'
708 localedir
='${datarootdir}/locale'
709 mandir
='${datarootdir}/man'
715 # If the previous option needs an argument, assign it.
716 if test -n "$ac_prev"; then
717 eval $ac_prev=\
$ac_option
723 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
727 # Accept the important Cygnus configure options, so we can diagnose typos.
729 case $ac_dashdash$ac_option in
733 -bindir | --bindir | --bindi | --bind | --bin | --bi)
735 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
738 -build | --build | --buil | --bui | --bu)
739 ac_prev
=build_alias
;;
740 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
741 build_alias
=$ac_optarg ;;
743 -cache-file | --cache-file | --cache-fil | --cache-fi \
744 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
745 ac_prev
=cache_file
;;
746 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
747 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
748 cache_file
=$ac_optarg ;;
751 cache_file
=config.cache
;;
753 -datadir | --datadir | --datadi | --datad)
755 -datadir=* | --datadir=* | --datadi=* | --datad=*)
756 datadir
=$ac_optarg ;;
758 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
759 | --dataroo | --dataro | --datar)
760 ac_prev
=datarootdir
;;
761 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
762 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
763 datarootdir
=$ac_optarg ;;
765 -disable-* | --disable-*)
766 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
767 # Reject names that are not valid shell variable names.
768 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
769 as_fn_error
"invalid feature name: $ac_useropt"
770 ac_useropt_orig
=$ac_useropt
771 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
772 case $ac_user_opts in
776 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
777 ac_unrecognized_sep
=', ';;
779 eval enable_
$ac_useropt=no
;;
781 -docdir | --docdir | --docdi | --doc | --do)
783 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
786 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
788 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
791 -enable-* | --enable-*)
792 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
793 # Reject names that are not valid shell variable names.
794 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
795 as_fn_error
"invalid feature name: $ac_useropt"
796 ac_useropt_orig
=$ac_useropt
797 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
798 case $ac_user_opts in
802 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
803 ac_unrecognized_sep
=', ';;
805 eval enable_
$ac_useropt=\
$ac_optarg ;;
807 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
808 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
809 | --exec | --exe | --ex)
810 ac_prev
=exec_prefix
;;
811 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
812 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
813 | --exec=* | --exe=* | --ex=*)
814 exec_prefix
=$ac_optarg ;;
816 -gas | --gas | --ga | --g)
817 # Obsolete; use --with-gas.
820 -help | --help | --hel | --he | -h)
822 -help=r
* | --help=r
* | --hel=r
* | --he=r
* | -hr*)
823 ac_init_help
=recursive
;;
824 -help=s
* | --help=s
* | --hel=s
* | --he=s
* | -hs*)
825 ac_init_help
=short
;;
827 -host | --host | --hos | --ho)
828 ac_prev
=host_alias
;;
829 -host=* | --host=* | --hos=* | --ho=*)
830 host_alias
=$ac_optarg ;;
832 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
834 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
836 htmldir
=$ac_optarg ;;
838 -includedir | --includedir | --includedi | --included | --include \
839 | --includ | --inclu | --incl | --inc)
840 ac_prev
=includedir
;;
841 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
842 | --includ=* | --inclu=* | --incl=* | --inc=*)
843 includedir
=$ac_optarg ;;
845 -infodir | --infodir | --infodi | --infod | --info | --inf)
847 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
848 infodir
=$ac_optarg ;;
850 -libdir | --libdir | --libdi | --libd)
852 -libdir=* | --libdir=* | --libdi=* | --libd=*)
855 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
856 | --libexe | --libex | --libe)
857 ac_prev
=libexecdir
;;
858 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
859 | --libexe=* | --libex=* | --libe=*)
860 libexecdir
=$ac_optarg ;;
862 -localedir | --localedir | --localedi | --localed | --locale)
864 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
865 localedir
=$ac_optarg ;;
867 -localstatedir | --localstatedir | --localstatedi | --localstated \
868 | --localstate | --localstat | --localsta | --localst | --locals)
869 ac_prev
=localstatedir
;;
870 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
871 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
872 localstatedir
=$ac_optarg ;;
874 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
876 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
880 # Obsolete; use --without-fp.
883 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
884 | --no-cr | --no-c | -n)
887 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
888 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
891 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
892 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
893 | --oldin | --oldi | --old | --ol | --o)
894 ac_prev
=oldincludedir
;;
895 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
896 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
897 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
898 oldincludedir
=$ac_optarg ;;
900 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
902 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
905 -program-prefix | --program-prefix | --program-prefi | --program-pref \
906 | --program-pre | --program-pr | --program-p)
907 ac_prev
=program_prefix
;;
908 -program-prefix=* | --program-prefix=* | --program-prefi=* \
909 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
910 program_prefix
=$ac_optarg ;;
912 -program-suffix | --program-suffix | --program-suffi | --program-suff \
913 | --program-suf | --program-su | --program-s)
914 ac_prev
=program_suffix
;;
915 -program-suffix=* | --program-suffix=* | --program-suffi=* \
916 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
917 program_suffix
=$ac_optarg ;;
919 -program-transform-name | --program-transform-name \
920 | --program-transform-nam | --program-transform-na \
921 | --program-transform-n | --program-transform- \
922 | --program-transform | --program-transfor \
923 | --program-transfo | --program-transf \
924 | --program-trans | --program-tran \
925 | --progr-tra | --program-tr | --program-t)
926 ac_prev
=program_transform_name
;;
927 -program-transform-name=* | --program-transform-name=* \
928 | --program-transform-nam=* | --program-transform-na=* \
929 | --program-transform-n=* | --program-transform-=* \
930 | --program-transform=* | --program-transfor=* \
931 | --program-transfo=* | --program-transf=* \
932 | --program-trans=* | --program-tran=* \
933 | --progr-tra=* | --program-tr=* | --program-t=*)
934 program_transform_name
=$ac_optarg ;;
936 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
938 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
941 -psdir | --psdir | --psdi | --psd | --ps)
943 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
946 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
947 | -silent | --silent | --silen | --sile | --sil)
950 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
952 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
954 sbindir
=$ac_optarg ;;
956 -sharedstatedir | --sharedstatedir | --sharedstatedi \
957 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
958 | --sharedst | --shareds | --shared | --share | --shar \
960 ac_prev
=sharedstatedir
;;
961 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
962 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
963 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
965 sharedstatedir
=$ac_optarg ;;
967 -site | --site | --sit)
969 -site=* | --site=* | --sit=*)
972 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
974 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
977 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
978 | --syscon | --sysco | --sysc | --sys | --sy)
979 ac_prev
=sysconfdir
;;
980 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
981 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
982 sysconfdir
=$ac_optarg ;;
984 -target | --target | --targe | --targ | --tar | --ta | --t)
985 ac_prev
=target_alias
;;
986 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
987 target_alias
=$ac_optarg ;;
989 -v | -verbose | --verbose | --verbos | --verbo | --verb)
992 -version | --version | --versio | --versi | --vers | -V)
996 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
997 # Reject names that are not valid shell variable names.
998 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
999 as_fn_error
"invalid package name: $ac_useropt"
1000 ac_useropt_orig
=$ac_useropt
1001 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002 case $ac_user_opts in
1006 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1007 ac_unrecognized_sep
=', ';;
1009 eval with_
$ac_useropt=\
$ac_optarg ;;
1011 -without-* | --without-*)
1012 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1013 # Reject names that are not valid shell variable names.
1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1015 as_fn_error
"invalid package name: $ac_useropt"
1016 ac_useropt_orig
=$ac_useropt
1017 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1018 case $ac_user_opts in
1022 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1023 ac_unrecognized_sep
=', ';;
1025 eval with_
$ac_useropt=no
;;
1028 # Obsolete; use --with-x.
1031 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1032 | --x-incl | --x-inc | --x-in | --x-i)
1033 ac_prev
=x_includes
;;
1034 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1035 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1036 x_includes
=$ac_optarg ;;
1038 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1039 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1040 ac_prev
=x_libraries
;;
1041 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1042 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1043 x_libraries
=$ac_optarg ;;
1045 -*) as_fn_error
"unrecognized option: \`$ac_option'
1046 Try \`$0 --help' for more information."
1050 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1051 # Reject names that are not valid shell variable names.
1052 case $ac_envvar in #(
1053 '' | [0-9]* | *[!_$as_cr_alnum]* )
1054 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1056 eval $ac_envvar=\
$ac_optarg
1057 export $ac_envvar ;;
1060 # FIXME: should be removed in autoconf 3.0.
1061 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1062 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1063 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1064 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1070 if test -n "$ac_prev"; then
1071 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1072 as_fn_error
"missing argument to $ac_option"
1075 if test -n "$ac_unrecognized_opts"; then
1076 case $enable_option_checking in
1078 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1079 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1083 # Check all directory arguments for consistency.
1084 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1085 datadir sysconfdir sharedstatedir localstatedir includedir \
1086 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1087 libdir localedir mandir
1089 eval ac_val
=\$
$ac_var
1090 # Remove trailing slashes.
1093 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1094 eval $ac_var=\
$ac_val;;
1096 # Be sure to have absolute directory names.
1098 [\\/$
]* | ?
:[\\/]* ) continue;;
1099 NONE
| '' ) case $ac_var in *prefix
) continue;; esac;;
1101 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1104 # There might be people who depend on the old broken behavior: `$host'
1105 # used to hold the argument of --host etc.
1106 # FIXME: To remove some day.
1109 target
=$target_alias
1111 # FIXME: To remove some day.
1112 if test "x$host_alias" != x
; then
1113 if test "x$build_alias" = x
; then
1114 cross_compiling
=maybe
1115 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1116 If a cross compiler is detected then cross compile mode will be used." >&2
1117 elif test "x$build_alias" != "x$host_alias"; then
1123 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1125 test "$silent" = yes && exec 6>/dev
/null
1128 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1129 ac_ls_di
=`ls -di .` &&
1130 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1131 as_fn_error
"working directory cannot be determined"
1132 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1133 as_fn_error
"pwd does not report name of working directory"
1136 # Find the source files, if location was not specified.
1137 if test -z "$srcdir"; then
1138 ac_srcdir_defaulted
=yes
1139 # Try the directory containing this script, then the parent directory.
1140 ac_confdir
=`$as_dirname -- "$as_myself" ||
1141 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1142 X"$as_myself" : 'X\(//\)[^/]' \| \
1143 X"$as_myself" : 'X\(//\)$' \| \
1144 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1145 $as_echo X"$as_myself" |
1146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1164 if test ! -r "$srcdir/$ac_unique_file"; then
1168 ac_srcdir_defaulted
=no
1170 if test ! -r "$srcdir/$ac_unique_file"; then
1171 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1172 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1174 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1176 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1178 # When building in place, set srcdir=.
1179 if test "$ac_abs_confdir" = "$ac_pwd"; then
1182 # Remove unnecessary trailing slashes from srcdir.
1183 # Double slashes in file names in object file debugging info
1184 # mess up M-x gdb in Emacs.
1186 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1188 for ac_var
in $ac_precious_vars; do
1189 eval ac_env_
${ac_var}_set
=\
${${ac_var}+set}
1190 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1191 eval ac_cv_env_
${ac_var}_set
=\
${${ac_var}+set}
1192 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1196 # Report the --help message.
1198 if test "$ac_init_help" = "long"; then
1199 # Omit some internal or obsolete options to make the list less imposing.
1200 # This message is too long to be a string in the A/UX 3.1 sh.
1202 \`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1204 Usage: $0 [OPTION]... [VAR=VALUE]...
1206 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1207 VAR=VALUE. See below for descriptions of some of the useful variables.
1209 Defaults for the options are specified in brackets.
1212 -h, --help display this help and exit
1213 --help=short display options specific to this package
1214 --help=recursive display the short help of all the included packages
1215 -V, --version display version information and exit
1216 -q, --quiet, --silent do not print \`checking...' messages
1217 --cache-file=FILE cache test results in FILE [disabled]
1218 -C, --config-cache alias for \`--cache-file=config.cache'
1219 -n, --no-create do not create output files
1220 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1222 Installation directories:
1223 --prefix=PREFIX install architecture-independent files in PREFIX
1224 [$ac_default_prefix]
1225 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1228 By default, \`make install' will install all the files in
1229 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1230 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1231 for instance \`--prefix=\$HOME'.
1233 For better control, use the options below.
1235 Fine tuning of the installation directories:
1236 --bindir=DIR user executables [EPREFIX/bin]
1237 --sbindir=DIR system admin executables [EPREFIX/sbin]
1238 --libexecdir=DIR program executables [EPREFIX/libexec]
1239 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1240 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1241 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1242 --libdir=DIR object code libraries [EPREFIX/lib]
1243 --includedir=DIR C header files [PREFIX/include]
1244 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1245 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1246 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1247 --infodir=DIR info documentation [DATAROOTDIR/info]
1248 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1249 --mandir=DIR man documentation [DATAROOTDIR/man]
1250 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1251 --htmldir=DIR html documentation [DOCDIR]
1252 --dvidir=DIR dvi documentation [DOCDIR]
1253 --pdfdir=DIR pdf documentation [DOCDIR]
1254 --psdir=DIR ps documentation [DOCDIR]
1260 --build=BUILD configure
for building on BUILD
[guessed
]
1261 --host=HOST cross
-compile to build programs to run on HOST
[BUILD
]
1265 if test -n "$ac_init_help"; then
1266 case $ac_init_help in
1267 short
| recursive
) echo "Configuration of Cycript 0.9:";;
1272 --disable-option-checking ignore unrecognized
--enable/--with options
1273 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1274 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1275 --disable-rpath do not hardcode runtime library paths
1278 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1279 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1280 --with-apr=PATH prefix
for installed APR or the full path to
1282 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1283 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1284 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1286 Some influential environment variables:
1287 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1288 the first program found out of
: `bison -y', `byacc
', `yacc'.
1289 YFLAGS The list of arguments that will be passed by default to
$YACC.
1290 This
script will default YFLAGS to the empty string to avoid a
1291 default value of
`-d' given by some make applications.
1292 CC C compiler command
1293 CFLAGS C compiler flags
1294 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1295 nonstandard directory <lib dir>
1296 LIBS libraries to pass to the linker, e.g. -l<library>
1297 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1298 you have headers in a nonstandard directory <include dir>
1299 CXX C++ compiler command
1300 CXXFLAGS C++ compiler flags
1301 PKG_CONFIG path to pkg-config utility
1303 C compiler flags for WEBKIT, overriding pkg-config
1304 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
1306 C compiler flags for LIBFFI, overriding pkg-config
1307 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
1309 Use these variables to override the choices made by `configure
' or to help
1310 it to find libraries and programs with nonstandard names/locations.
1312 Report bugs to <saurik@saurik.com>.
1313 Cycript home page: <http://www.cycript.org/>.
1318 if test "$ac_init_help" = "recursive"; then
1319 # If there are subdirs, report their specific --help.
1320 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1321 test -d "$ac_dir" ||
1322 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1327 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1329 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's
|^\.
[\\/]||'`
1330 # A ".." for each directory in $ac_dir_suffix.
1331 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's
|/[^
\\/]*|/..
|g
;s
|/||'`
1332 case $ac_top_builddir_sub in
1333 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1334 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1337 ac_abs_top_builddir=$ac_pwd
1338 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1339 # for backward compatibility:
1340 ac_top_builddir=$ac_top_build_prefix
1343 .) # We are building in place.
1345 ac_top_srcdir=$ac_top_builddir_sub
1346 ac_abs_top_srcdir=$ac_pwd ;;
1347 [\\/]* | ?:[\\/]* ) # Absolute name.
1348 ac_srcdir=$srcdir$ac_dir_suffix;
1349 ac_top_srcdir=$srcdir
1350 ac_abs_top_srcdir=$srcdir ;;
1352 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1353 ac_top_srcdir=$ac_top_build_prefix$srcdir
1354 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1356 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1358 cd "$ac_dir" || { ac_status=$?; continue; }
1359 # Check for guested configure.
1360 if test -f "$ac_srcdir/configure.gnu"; then
1362 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1363 elif test -f "$ac_srcdir/configure"; then
1365 $SHELL "$ac_srcdir/configure" --help=recursive
1367 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1369 cd "$ac_pwd" || { ac_status=$?; break; }
1373 test -n "$ac_init_help" && exit $ac_status
1374 if $ac_init_version; then
1376 Cycript configure 0.9
1377 generated by GNU Autoconf 2.64
1379 Copyright (C) 2009 Free Software Foundation, Inc.
1380 This configure script is free software; the Free Software Foundation
1381 gives unlimited permission to copy, distribute and modify it.
1386 ## ------------------------ ##
1387 ## Autoconf initialization. ##
1388 ## ------------------------ ##
1390 # ac_fn_c_try_compile LINENO
1391 # --------------------------
1392 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1393 ac_fn_c_try_compile ()
1395 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1396 rm -f conftest.$ac_objext
1397 if { { ac_try="$ac_compile"
1399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1400 *) ac_try_echo=$ac_try;;
1402 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1403 $as_echo "$ac_try_echo"; } >&5
1404 (eval "$ac_compile") 2>conftest.err
1406 if test -s conftest.err; then
1407 grep -v '^
*+' conftest.err >conftest.er1
1408 cat conftest.er1 >&5
1409 mv -f conftest.er1 conftest.err
1411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1412 test $ac_status = 0; } && {
1413 test -z "$ac_c_werror_flag" ||
1414 test ! -s conftest.err
1415 } && test -s conftest.$ac_objext; then :
1418 $as_echo "$as_me: failed program was:" >&5
1419 sed 's
/^
/| /' conftest.$ac_ext >&5
1423 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1426 } # ac_fn_c_try_compile
1428 # ac_fn_c_try_link LINENO
1429 # -----------------------
1430 # Try to link conftest.$ac_ext, and return whether this succeeded.
1433 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1434 rm -f conftest.$ac_objext conftest$ac_exeext
1435 if { { ac_try="$ac_link"
1437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1438 *) ac_try_echo=$ac_try;;
1440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1441 $as_echo "$ac_try_echo"; } >&5
1442 (eval "$ac_link") 2>conftest.err
1444 if test -s conftest.err; then
1445 grep -v '^
*+' conftest.err >conftest.er1
1446 cat conftest.er1 >&5
1447 mv -f conftest.er1 conftest.err
1449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1450 test $ac_status = 0; } && {
1451 test -z "$ac_c_werror_flag" ||
1452 test ! -s conftest.err
1453 } && test -s conftest$ac_exeext && {
1454 test "$cross_compiling" = yes ||
1455 $as_test_x conftest$ac_exeext
1459 $as_echo "$as_me: failed program was:" >&5
1460 sed 's
/^
/| /' conftest.$ac_ext >&5
1464 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1465 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1466 # interfere with the next link command; also delete a directory that is
1467 # left behind by Apple's compiler. We
do this before executing the actions.
1468 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1469 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1472 } # ac_fn_c_try_link
1474 # ac_fn_cxx_try_compile LINENO
1475 # ----------------------------
1476 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1477 ac_fn_cxx_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"
1483 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1484 *) ac_try_echo=$ac_try;;
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
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_cxx_werror_flag" ||
1498 test ! -s conftest.err
1499 } && test -s conftest.$ac_objext; then :
1502 $as_echo "$as_me: failed program was:" >&5
1503 sed 's/^/| /' conftest.$ac_ext >&5
1507 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1510 } # ac_fn_cxx_try_compile
1512 # ac_fn_c_try_run LINENO
1513 # ----------------------
1514 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1515 # that executables *can* be run.
1518 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1519 if { { ac_try="$ac_link"
1521 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1522 *) ac_try_echo
=$ac_try;;
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>&5
1528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1529 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1530 { { case "(($ac_try" in
1531 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1532 *) ac_try_echo=$ac_try;;
1534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1535 $as_echo "$ac_try_echo"; } >&5
1536 (eval "$ac_try") 2>&5
1538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1539 test $ac_status = 0; }; }; then :
1542 $as_echo "$as_me: program exited with status $ac_status" >&5
1543 $as_echo "$as_me: failed program was:" >&5
1544 sed 's/^/| /' conftest.$ac_ext >&5
1546 ac_retval=$ac_status
1548 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1549 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1553 cat >config.log <<_ACEOF
1554 This file contains any messages produced by compilers while
1555 running configure, to aid debugging if configure makes a mistake.
1557 It was created by Cycript $as_me 0.9, which was
1558 generated by GNU Autoconf 2.64. Invocation command line was
1570 hostname = `(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`
1571 uname -m = `(uname
-m) 2>/dev
/null
|| echo unknown
`
1572 uname -r = `(uname
-r) 2>/dev
/null
|| echo unknown
`
1573 uname -s = `(uname
-s) 2>/dev
/null
|| echo unknown
`
1574 uname -v = `(uname
-v) 2>/dev
/null
|| echo unknown
`
1576 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null
|| echo unknown
`
1577 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null
|| echo unknown
`
1579 /bin/arch = `(/bin
/arch
) 2>/dev
/null
|| echo unknown
`
1580 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null
|| echo unknown
`
1581 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null
|| echo unknown
`
1582 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null
|| echo unknown
`
1583 /bin/machine = `(/bin
/machine
) 2>/dev
/null
|| echo unknown
`
1584 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null
|| echo unknown
`
1585 /bin/universe = `(/bin
/universe
) 2>/dev
/null
|| echo unknown
`
1589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1593 test -z "$as_dir" && as_dir=.
1594 $as_echo "PATH: $as_dir"
1610 # Keep a trace of the command line.
1611 # Strip out --no-create and --no-recursion so they do not pile up.
1612 # Strip out --silent because we don't want to record it for future runs.
1613 # Also quote any args containing shell meta-characters.
1614 # Make two passes to allow for proper duplicate-argument suppression.
1618 ac_must_keep_next=false
1624 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1625 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1626 | -silent | --silent | --silen | --sile | --sil)
1629 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1632 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1634 as_fn_append ac_configure_args1 " '$ac_arg'"
1635 if test $ac_must_keep_next = true; then
1636 ac_must_keep_next=false # Got value, back to normal.
1639 *=* | --config-cache | -C | -disable-* | --disable-* \
1640 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1641 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1642 | -with-* | --with-* | -without-* | --without-* | --x)
1643 case "$ac_configure_args0 " in
1644 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1647 -* ) ac_must_keep_next=true ;;
1650 as_fn_append ac_configure_args " '$ac_arg'"
1655 { ac_configure_args0=; unset ac_configure_args0;}
1656 { ac_configure_args1=; unset ac_configure_args1;}
1658 # When interrupted or exit'd, cleanup temporary files, and complete
1659 # config.log. We remove comments because anyway the quotes in there
1660 # would cause problems or look ugly.
1661 # WARNING: Use '\'' to represent an apostrophe within the trap.
1662 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1663 trap 'exit_status=$?
1664 # Save into config.log some information that might help in debugging.
1669 ## ---------------- ##
1670 ## Cache variables. ##
1671 ## ---------------- ##
1674 # The following way of writing the cache mishandles newlines in values,
1676 for ac_var in `(set) 2>&1 | sed -n '\''s
/^\
([a
-zA-Z_][a
-zA-Z0-9_]*\
)=.
*/\
1/p
'\''`; do
1677 eval ac_val=\$$ac_var
1681 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1682 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1685 _ | IFS | as_nl) ;; #(
1686 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1687 *) { eval $ac_var=; unset $ac_var;} ;;
1692 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1693 *${as_nl}ac_space=\ *)
1695 "s/'\''/'\''\\\\'\'''\''/g;
1696 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1699 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1707 ## ----------------- ##
1708 ## Output variables. ##
1709 ## ----------------- ##
1712 for ac_var in $ac_subst_vars
1714 eval ac_val=\$$ac_var
1716 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1718 $as_echo "$ac_var='\''$ac_val'\''"
1722 if test -n "$ac_subst_files"; then
1724 ## ------------------- ##
1725 ## File substitutions. ##
1726 ## ------------------- ##
1729 for ac_var in $ac_subst_files
1731 eval ac_val=\$$ac_var
1733 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1735 $as_echo "$ac_var='\''$ac_val'\''"
1740 if test -s confdefs.h; then
1750 test "$ac_signal" != 0 &&
1751 $as_echo "$as_me: caught signal $ac_signal"
1752 $as_echo "$as_me: exit $exit_status"
1754 rm -f core *.core core.conftest.* &&
1755 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1758 for ac_signal in 1 2 13 15; do
1759 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1763 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1764 rm -f -r conftest* confdefs.h
1766 $as_echo "/* confdefs.h */" > confdefs.h
1768 # Predefined preprocessor variables.
1770 cat >>confdefs.h <<_ACEOF
1771 #define PACKAGE_NAME "$PACKAGE_NAME"
1774 cat >>confdefs.h <<_ACEOF
1775 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_STRING "$PACKAGE_STRING"
1786 cat >>confdefs.h <<_ACEOF
1787 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_URL "$PACKAGE_URL"
1795 # Let the site file select an alternate cache file if it wants to.
1796 # Prefer an explicitly selected file to automatically selected ones.
1799 if test -n "$CONFIG_SITE"; then
1800 ac_site_file1=$CONFIG_SITE
1801 elif test "x$prefix" != xNONE; then
1802 ac_site_file1=$prefix/share/config.site
1803 ac_site_file2=$prefix/etc/config.site
1805 ac_site_file1=$ac_default_prefix/share/config.site
1806 ac_site_file2=$ac_default_prefix/etc/config.site
1808 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1810 test "x$ac_site_file" = xNONE && continue
1811 if test -r "$ac_site_file"; then
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1813 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1814 sed 's/^/| /' "$ac_site_file" >&5
1819 if test -r "$cache_file"; then
1820 # Some versions of bash will fail to source /dev/null (special
1821 # files actually), so we avoid doing that.
1822 if test -f "$cache_file"; then
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1824 $as_echo "$as_me: loading cache $cache_file" >&6;}
1826 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1827 *) . "./$cache_file";;
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1832 $as_echo "$as_me: creating cache $cache_file" >&6;}
1836 # Check that the precious variables saved in the cache have kept the same
1838 ac_cache_corrupted=false
1839 for ac_var in $ac_precious_vars; do
1840 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1841 eval ac_new_set=\$ac_env_${ac_var}_set
1842 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1843 eval ac_new_val=\$ac_env_${ac_var}_value
1844 case $ac_old_set,$ac_new_set in
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1847 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1848 ac_cache_corrupted=: ;;
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
1851 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1852 ac_cache_corrupted=: ;;
1855 if test "x$ac_old_val" != "x$ac_new_val"; then
1856 # differences in whitespace do not lead to failure.
1857 ac_old_val_w=`echo x
$ac_old_val`
1858 ac_new_val_w=`echo x
$ac_new_val`
1859 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1861 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1862 ac_cache_corrupted=:
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
1865 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1866 eval $ac_var=\$ac_old_val
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1869 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1871 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1874 # Pass precious variables to config.status.
1875 if test "$ac_new_set" = set; then
1877 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1878 *) ac_arg=$ac_var=$ac_new_val ;;
1880 case " $ac_configure_args " in
1881 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1882 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1886 if $ac_cache_corrupted; then
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
1888 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1890 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1891 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
1893 ## -------------------- ##
1894 ## Main body of script. ##
1895 ## -------------------- ##
1898 ac_cpp='$CPP $CPPFLAGS'
1899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1905 for ac_prog in 'bison -y' byacc
1907 # Extract the first word of "$ac_prog", so it can be a program name with args.
1908 set dummy $ac_prog; ac_word=$2
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1910 $as_echo_n "checking for $ac_word... " >&6; }
1911 if test "${ac_cv_prog_YACC+set}" = set; then :
1912 $as_echo_n "(cached) " >&6
1914 if test -n "$YACC"; then
1915 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1921 test -z "$as_dir" && as_dir=.
1922 for ac_exec_ext in '' $ac_executable_extensions; do
1923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1924 ac_cv_prog_YACC="$ac_prog"
1925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1934 YACC=$ac_cv_prog_YACC
1935 if test -n "$YACC"; then
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
1937 $as_echo "$YACC" >&6; }
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1940 $as_echo "no" >&6; }
1944 test -n "$YACC" && break
1946 test -n "$YACC" || YACC="yacc"
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
1949 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
1950 if test "${ac_cv_path_SED+set}" = set; then :
1951 $as_echo_n "(cached) " >&6
1953 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
1954 for ac_i in 1 2 3 4 5 6 7; do
1955 ac_script="$ac_script$as_nl$ac_script"
1957 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
1958 { ac_script=; unset ac_script;}
1959 if test -z "$SED"; then
1960 ac_path_SED_found=false
1961 # Loop through the user's path and test for each of PROGNAME-LIST
1962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1966 test -z "$as_dir" && as_dir=.
1967 for ac_prog in sed gsed; do
1968 for ac_exec_ext in '' $ac_executable_extensions; do
1969 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
1970 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
1971 # Check for GNU ac_path_SED and select it if it is found.
1972 # Check for GNU $ac_path_SED
1973 case `"$ac_path_SED" --version 2>&1` in
1975 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
1978 $as_echo_n 0123456789 >"conftest.in"
1981 cat "conftest.in" "conftest.in" >"conftest.tmp"
1982 mv "conftest.tmp" "conftest.in"
1983 cp "conftest.in" "conftest.nl"
1984 $as_echo '' >> "conftest.nl"
1985 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
1986 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
1987 as_fn_arith $ac_count + 1 && ac_count=$as_val
1988 if test $ac_count -gt ${ac_path_SED_max-0}; then
1989 # Best one so far, save it but keep looking for a better one
1990 ac_cv_path_SED="$ac_path_SED"
1991 ac_path_SED_max=$ac_count
1993 # 10*(2^10) chars as input seems more than enough
1994 test $ac_count -gt 10 && break
1996 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
1999 $ac_path_SED_found && break 3
2004 if test -z "$ac_cv_path_SED"; then
2005 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2013 $as_echo "$ac_cv_path_SED" >&6; }
2014 SED="$ac_cv_path_SED"
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bison is the parser generator" >&5
2022 $as_echo_n "checking if bison is the parser generator... " >&6; }
2023 if test "${ax_cv_prog_bison+set}" = set; then :
2024 $as_echo_n "(cached) " >&6
2027 if test "`echo \"$YACC\" | $SED 's,^.*\(bison\).*$,\1,'`" = "bison" ; then :
2029 ax_cv_prog_bison=yes
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_bison" >&5
2039 $as_echo "$ax_cv_prog_bison" >&6; }
2040 if test "$ax_cv_prog_bison" = yes; then :
2044 BISON=`echo $YACC | $SED -e 's/ -y//'`
2045 BISON_VERSION=`$BISON -V | $SED -e 's/^bison (GNU Bison) \(.*\)$/\1/p;d'`
2051 as_fn_error "You need bison 2.4 or greater" "$LINENO" 5
2055 for ac_prog in gawk mawk nawk awk
2057 # Extract the first word of "$ac_prog", so it can be a program name with args.
2058 set dummy $ac_prog; ac_word=$2
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2060 $as_echo_n "checking for $ac_word... " >&6; }
2061 if test "${ac_cv_prog_AWK+set}" = set; then :
2062 $as_echo_n "(cached) " >&6
2064 if test -n "$AWK"; then
2065 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2071 test -z "$as_dir" && as_dir=.
2072 for ac_exec_ext in '' $ac_executable_extensions; do
2073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2074 ac_cv_prog_AWK="$ac_prog"
2075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2085 if test -n "$AWK"; then
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2087 $as_echo "$AWK" >&6; }
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2090 $as_echo "no" >&6; }
2094 test -n "$AWK" && break
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bison is >= 2.4" >&5
2098 $as_echo_n "checking if bison is >= 2.4... " >&6; }
2101 # Used to indicate true or false condition
2102 ax_compare_version=false
2104 # Convert the two version strings to be compared into a format that
2105 # allows a simple string comparison. The end result is that a version
2106 # string of the form 1.12.5-r617 will be converted to the form
2107 # 0001001200050617. In other words, each number is zero padded to four
2108 # digits, and non digits are removed.
2110 ax_compare_version_A=`echo "$BISON_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
2111 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
2112 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
2113 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
2117 ax_compare_version_B=`echo "2.4" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
2118 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
2119 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
2120 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
2124 ax_compare_version=`echo "x$ax_compare_version_A
2125 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
2129 if test "$ax_compare_version" = "true" ; then
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2131 $as_echo "yes" >&6; }
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2134 $as_echo "no" >&6; }
2135 as_fn_error "You need bison 2.4 or greater" "$LINENO" 5
2141 ac_cpp='$CPP $CPPFLAGS'
2142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2145 if test -n "$ac_tool_prefix"; then
2146 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2147 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2149 $as_echo_n "checking for $ac_word... " >&6; }
2150 if test "${ac_cv_prog_CC+set}" = set; then :
2151 $as_echo_n "(cached) " >&6
2153 if test -n "$CC"; then
2154 ac_cv_prog_CC="$CC" # Let the user override the test.
2156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2160 test -z "$as_dir" && as_dir=.
2161 for ac_exec_ext in '' $ac_executable_extensions; do
2162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2163 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2174 if test -n "$CC"; then
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2176 $as_echo "$CC" >&6; }
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2179 $as_echo "no" >&6; }
2184 if test -z "$ac_cv_prog_CC"; then
2186 # Extract the first word of "gcc", so it can be a program name with args.
2187 set dummy gcc; ac_word=$2
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2189 $as_echo_n "checking for $ac_word... " >&6; }
2190 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2191 $as_echo_n "(cached) " >&6
2193 if test -n "$ac_ct_CC"; then
2194 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200 test -z "$as_dir" && as_dir=.
2201 for ac_exec_ext in '' $ac_executable_extensions; do
2202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2203 ac_cv_prog_ac_ct_CC="gcc"
2204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2213 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2214 if test -n "$ac_ct_CC"; then
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2216 $as_echo "$ac_ct_CC" >&6; }
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2219 $as_echo "no" >&6; }
2222 if test "x$ac_ct_CC" = x; then
2225 case $cross_compiling:$ac_tool_warned in
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2228 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2229 ac_tool_warned=yes ;;
2237 if test -z "$CC"; then
2238 if test -n "$ac_tool_prefix"; then
2239 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2240 set dummy ${ac_tool_prefix}cc; ac_word=$2
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2242 $as_echo_n "checking for $ac_word... " >&6; }
2243 if test "${ac_cv_prog_CC+set}" = set; then :
2244 $as_echo_n "(cached) " >&6
2246 if test -n "$CC"; then
2247 ac_cv_prog_CC="$CC" # Let the user override the test.
2249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2253 test -z "$as_dir" && as_dir=.
2254 for ac_exec_ext in '' $ac_executable_extensions; do
2255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2256 ac_cv_prog_CC="${ac_tool_prefix}cc"
2257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2267 if test -n "$CC"; then
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2269 $as_echo "$CC" >&6; }
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2272 $as_echo "no" >&6; }
2278 if test -z "$CC"; then
2279 # Extract the first word of "cc", so it can be a program name with args.
2280 set dummy cc; ac_word=$2
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2282 $as_echo_n "checking for $ac_word... " >&6; }
2283 if test "${ac_cv_prog_CC+set}" = set; then :
2284 $as_echo_n "(cached) " >&6
2286 if test -n "$CC"; then
2287 ac_cv_prog_CC="$CC" # Let the user override the test.
2290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 test -z "$as_dir" && as_dir=.
2295 for ac_exec_ext in '' $ac_executable_extensions; do
2296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2297 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2298 ac_prog_rejected=yes
2302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2309 if test $ac_prog_rejected = yes; then
2310 # We found a bogon in the path, so make sure we never use it.
2311 set dummy $ac_cv_prog_CC
2313 if test $# != 0; then
2314 # We chose a different compiler from the bogus one.
2315 # However, it has the same basename, so the bogon will be chosen
2316 # first if we set CC to just the basename; use the full file name.
2318 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2324 if test -n "$CC"; then
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2326 $as_echo "$CC" >&6; }
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2329 $as_echo "no" >&6; }
2334 if test -z "$CC"; then
2335 if test -n "$ac_tool_prefix"; then
2336 for ac_prog in cl.exe
2338 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2339 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2341 $as_echo_n "checking for $ac_word... " >&6; }
2342 if test "${ac_cv_prog_CC+set}" = set; then :
2343 $as_echo_n "(cached) " >&6
2345 if test -n "$CC"; then
2346 ac_cv_prog_CC="$CC" # Let the user override the test.
2348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352 test -z "$as_dir" && as_dir=.
2353 for ac_exec_ext in '' $ac_executable_extensions; do
2354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2355 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2366 if test -n "$CC"; then
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2368 $as_echo "$CC" >&6; }
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2371 $as_echo "no" >&6; }
2375 test -n "$CC" && break
2378 if test -z "$CC"; then
2380 for ac_prog in cl.exe
2382 # Extract the first word of "$ac_prog", so it can be a program name with args.
2383 set dummy $ac_prog; ac_word=$2
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2385 $as_echo_n "checking for $ac_word... " >&6; }
2386 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2387 $as_echo_n "(cached) " >&6
2389 if test -n "$ac_ct_CC"; then
2390 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396 test -z "$as_dir" && as_dir=.
2397 for ac_exec_ext in '' $ac_executable_extensions; do
2398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2399 ac_cv_prog_ac_ct_CC="$ac_prog"
2400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2409 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2410 if test -n "$ac_ct_CC"; then
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2412 $as_echo "$ac_ct_CC" >&6; }
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2415 $as_echo "no" >&6; }
2419 test -n "$ac_ct_CC" && break
2422 if test "x$ac_ct_CC" = x; then
2425 case $cross_compiling:$ac_tool_warned in
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2429 ac_tool_warned=yes ;;
2438 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2440 as_fn_error "no acceptable C compiler found
in \
$PATH
2441 See \
`config.log' for more details." "$LINENO" 5; }
2443 # Provide some information about the compiler.
2444 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2447 for ac_option in --version -v -V -qversion; do
2448 { { ac_try="$ac_compiler $ac_option >&5"
2450 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
2451 *) ac_try_echo
=$ac_try;;
2453 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2454 $as_echo "$ac_try_echo"; } >&5
2455 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2457 if test -s conftest.err
; then
2459 ... rest of stderr output deleted ...
2460 10q' conftest.err
>conftest.er1
2461 cat conftest.er1
>&5
2462 rm -f conftest.er1 conftest.err
2464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2465 test $ac_status = 0; }
2468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2469 /* end confdefs.h. */
2474 FILE *f = fopen ("conftest.out", "w");
2475 return ferror (f) || fclose (f) != 0;
2481 ac_clean_files_save
=$ac_clean_files
2482 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2483 # Try to create an executable without -o first, disregard a.out.
2484 # It will help us diagnose broken compilers, and finding out an intuition
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2487 $as_echo_n "checking for C compiler default output file name... " >&6; }
2488 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2490 # The possible output files:
2491 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2494 for ac_file
in $ac_files
2497 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.dSYM
| *.o
| *.obj
) ;;
2498 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2503 if { { ac_try
="$ac_link_default"
2505 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2506 *) ac_try_echo=$ac_try;;
2508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2509 $as_echo "$ac_try_echo"; } >&5
2510 (eval "$ac_link_default") 2>&5
2512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2513 test $ac_status = 0; }; then :
2514 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2515 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2516 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2517 # so that the user can short-circuit this test for compilers unknown to
2519 for ac_file in $ac_files ''
2521 test -f "$ac_file" || continue
2523 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2526 # We found the default executable, but exeext='' is most
2530 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2532 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2534 # We set ac_cv_exeext here because the later test for it is not
2535 # safe: cross compilers may not add the suffix if given an `-o'
2536 # argument, so we may need to know it at that point already.
2537 # Even if this section looks crufty: it has the advantage of
2544 test "$ac_cv_exeext" = no && ac_cv_exeext=
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2550 $as_echo "$ac_file" >&6; }
2551 if test -z "$ac_file"; then :
2552 $as_echo "$as_me: failed program was:" >&5
2553 sed 's
/^
/| /' conftest.$ac_ext >&5
2555 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2556 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2557 { as_fn_set_status 77
2558 as_fn_error "C compiler cannot create executables
2559 See \`config.log
' for more details." "$LINENO" 5; }; }
2561 ac_exeext=$ac_cv_exeext
2563 # Check that the compiler produces executables we can run. If not, either
2564 # the compiler is broken, or we cross compile.
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2566 $as_echo_n "checking whether the C compiler works... " >&6; }
2567 # If not cross compiling, check that we can run a simple program.
2568 if test "$cross_compiling" != yes; then
2569 if { ac_try='.
/$ac_file'
2570 { { case "(($ac_try" in
2571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572 *) ac_try_echo=$ac_try;;
2574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2575 $as_echo "$ac_try_echo"; } >&5
2576 (eval "$ac_try") 2>&5
2578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2579 test $ac_status = 0; }; }; then
2582 if test "$cross_compiling" = maybe; then
2585 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2586 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2587 as_fn_error "cannot run C compiled programs.
2588 If you meant to cross compile, use \`--host'.
2589 See \`config.log' for more details.
" "$LINENO" 5; }
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
2594 $as_echo "yes" >&6; }
2596 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2597 ac_clean_files=$ac_clean_files_save
2598 # Check that the compiler produces executables we can run. If not, either
2599 # the compiler is broken, or we cross compile.
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling
" >&5
2601 $as_echo_n "checking whether we are cross compiling...
" >&6; }
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $cross_compiling" >&5
2603 $as_echo "$cross_compiling" >&6; }
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of executables
" >&5
2606 $as_echo_n "checking
for suffix of executables...
" >&6; }
2607 if { { ac_try="$ac_link"
2609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2610 *) ac_try_echo=$ac_try;;
2612 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2613 $as_echo "$ac_try_echo"; } >&5
2614 (eval "$ac_link") 2>&5
2616 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
2617 test $ac_status = 0; }; then :
2618 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2619 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2620 # work properly (i.e., refer to `conftest.exe'), while it won't with
2622 for ac_file in conftest.exe conftest conftest.*; do
2623 test -f "$ac_file" || continue
2625 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2626 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2634 as_fn_error "cannot compute suffix of executables: cannot compile and link
2635 See \`config.log' for more details.
" "$LINENO" 5; }
2637 rm -f conftest$ac_cv_exeext
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_exeext" >&5
2639 $as_echo "$ac_cv_exeext" >&6; }
2641 rm -f conftest.$ac_ext
2642 EXEEXT=$ac_cv_exeext
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of object files
" >&5
2645 $as_echo_n "checking
for suffix of object files...
" >&6; }
2646 if test "${ac_cv_objext+set}" = set; then :
2647 $as_echo_n "(cached
) " >&6
2649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2650 /* end confdefs.h. */
2660 rm -f conftest.o conftest.obj
2661 if { { ac_try="$ac_compile"
2663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2664 *) ac_try_echo=$ac_try;;
2666 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2667 $as_echo "$ac_try_echo"; } >&5
2668 (eval "$ac_compile") 2>&5
2670 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
2671 test $ac_status = 0; }; then :
2672 for ac_file in conftest.o conftest.obj conftest.*; do
2673 test -f "$ac_file" || continue;
2675 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2676 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2681 $as_echo "$as_me: failed program was
:" >&5
2682 sed 's/^/| /' conftest.$ac_ext >&5
2684 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2686 as_fn_error "cannot compute suffix of object files: cannot compile
2687 See \`config.log' for more details.
" "$LINENO" 5; }
2689 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_objext" >&5
2692 $as_echo "$ac_cv_objext" >&6; }
2693 OBJEXT=$ac_cv_objext
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler
" >&5
2696 $as_echo_n "checking whether we are using the GNU C compiler...
" >&6; }
2697 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2698 $as_echo_n "(cached
) " >&6
2700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2701 /* end confdefs.h. */
2714 if ac_fn_c_try_compile "$LINENO"; then :
2719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2720 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_c_compiler_gnu" >&5
2724 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2725 if test $ac_compiler_gnu = yes; then
2730 ac_test_CFLAGS=${CFLAGS+set}
2731 ac_save_CFLAGS=$CFLAGS
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CC accepts
-g" >&5
2733 $as_echo_n "checking whether
$CC accepts
-g...
" >&6; }
2734 if test "${ac_cv_prog_cc_g+set}" = set; then :
2735 $as_echo_n "(cached
) " >&6
2737 ac_save_c_werror_flag=$ac_c_werror_flag
2738 ac_c_werror_flag=yes
2741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2742 /* end confdefs.h. */
2752 if ac_fn_c_try_compile "$LINENO"; then :
2756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2757 /* end confdefs.h. */
2767 if ac_fn_c_try_compile "$LINENO"; then :
2770 ac_c_werror_flag=$ac_save_c_werror_flag
2772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2773 /* end confdefs.h. */
2783 if ac_fn_c_try_compile "$LINENO"; then :
2786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2791 ac_c_werror_flag=$ac_save_c_werror_flag
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_g" >&5
2794 $as_echo "$ac_cv_prog_cc_g" >&6; }
2795 if test "$ac_test_CFLAGS" = set; then
2796 CFLAGS=$ac_save_CFLAGS
2797 elif test $ac_cv_prog_cc_g = yes; then
2798 if test "$GCC" = yes; then
2804 if test "$GCC" = yes; then
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $CC option to accept ISO C89
" >&5
2811 $as_echo_n "checking
for $CC option to accept ISO C89...
" >&6; }
2812 if test "${ac_cv_prog_cc_c89+set}" = set; then :
2813 $as_echo_n "(cached
) " >&6
2815 ac_cv_prog_cc_c89=no
2817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2818 /* end confdefs.h. */
2821 #include <sys/types.h>
2822 #include <sys/stat.h>
2823 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2824 struct buf { int x; };
2825 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2826 static char *e (p, i)
2832 static char *f (char * (*g) (char **, int), char **p, ...)
2837 s = g (p, va_arg (v,int));
2842 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2843 function prototypes and stuff, but not '\xHH' hex character constants.
2844 These don't provoke an error unfortunately, instead are silently treated
2845 as 'x'. The following induces an error, until -std is added to get
2846 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2847 array size at least. It's necessary to write '\x00'==0 to get something
2848 that's true only with -std. */
2849 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2851 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2852 inside strings and character constants. */
2854 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2856 int test (int i, double x);
2857 struct s1 {int (*f) (int a);};
2858 struct s2 {int (*f) (double a);};
2859 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2865 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2870 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2871 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2873 CC="$ac_save_CC $ac_arg"
2874 if ac_fn_c_try_compile "$LINENO"; then :
2875 ac_cv_prog_cc_c89=$ac_arg
2877 rm -f core conftest.err conftest.$ac_objext
2878 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
2880 rm -f conftest.$ac_ext
2885 case "x
$ac_cv_prog_cc_c89" in
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none needed
" >&5
2888 $as_echo "none needed
" >&6; } ;;
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: unsupported
" >&5
2891 $as_echo "unsupported
" >&6; } ;;
2893 CC="$CC $ac_cv_prog_cc_c89"
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_cc_c89" >&5
2895 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2897 if test "x
$ac_cv_prog_cc_c89" != xno; then :
2902 ac_cpp='$CPP $CPPFLAGS'
2903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2908 for ac_prog in flex lex
2910 # Extract the first word of "$ac_prog", so it can be a program name with args.
2911 set dummy $ac_prog; ac_word=$2
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
2913 $as_echo_n "checking
for $ac_word...
" >&6; }
2914 if test "${ac_cv_prog_LEX+set}" = set; then :
2915 $as_echo_n "(cached
) " >&6
2917 if test -n "$LEX"; then
2918 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924 test -z "$as_dir" && as_dir=.
2925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2927 ac_cv_prog_LEX="$ac_prog"
2928 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
2938 if test -n "$LEX"; then
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LEX" >&5
2940 $as_echo "$LEX" >&6; }
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
2943 $as_echo "no
" >&6; }
2947 test -n "$LEX" && break
2949 test -n "$LEX" || LEX=":"
2951 if test "x
$LEX" != "x
:"; then
2952 cat >conftest.l <<_ACEOF
2958 e { yyless (input () != 0); }
2959 f { unput (yytext[0]); }
2960 . { BEGIN INITIAL; }
2962 #ifdef YYTEXT_POINTER
2963 extern char *yytext;
2968 return ! yylex () + ! yywrap ();
2971 { { ac_try="$LEX conftest.l
"
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2976 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2977 $as_echo "$ac_try_echo"; } >&5
2978 (eval "$LEX conftest.l
") 2>&5
2980 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
2981 test $ac_status = 0; }
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
lex output
file root
" >&5
2983 $as_echo_n "checking
lex output
file root...
" >&6; }
2984 if test "${ac_cv_prog_lex_root+set}" = set; then :
2985 $as_echo_n "(cached
) " >&6
2988 if test -f lex.yy.c; then
2989 ac_cv_prog_lex_root=lex.yy
2990 elif test -f lexyy.c; then
2991 ac_cv_prog_lex_root=lexyy
2993 as_fn_error "cannot
find output from
$LEX; giving up
" "$LINENO" 5
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_lex_root" >&5
2997 $as_echo "$ac_cv_prog_lex_root" >&6; }
2998 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3000 if test -z "${LEXLIB+set}"; then
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
lex library
" >&5
3002 $as_echo_n "checking
lex library...
" >&6; }
3003 if test "${ac_cv_lib_lex+set}" = set; then :
3004 $as_echo_n "(cached
) " >&6
3008 ac_cv_lib_lex='none needed'
3009 for ac_lib in '' -lfl -ll; do
3010 LIBS="$ac_lib $ac_save_LIBS"
3011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3012 /* end confdefs.h. */
3013 `cat $LEX_OUTPUT_ROOT.c`
3015 if ac_fn_c_try_link "$LINENO"; then :
3016 ac_cv_lib_lex=$ac_lib
3018 rm -f core conftest.err conftest.$ac_objext \
3019 conftest$ac_exeext conftest.$ac_ext
3020 test "$ac_cv_lib_lex" != 'none needed' && break
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_lib_lex" >&5
3026 $as_echo "$ac_cv_lib_lex" >&6; }
3027 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer
" >&5
3032 $as_echo_n "checking whether yytext is a pointer...
" >&6; }
3033 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
3034 $as_echo_n "(cached
) " >&6
3036 # POSIX says lex can declare yytext either as a pointer or an array; the
3037 # default is implementation-dependent. Figure out which it is, since
3038 # not all implementations provide the %pointer and %array declarations.
3039 ac_cv_prog_lex_yytext_pointer=no
3041 LIBS="$LEXLIB $ac_save_LIBS"
3042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3043 /* end confdefs.h. */
3044 #define YYTEXT_POINTER 1
3045 `cat $LEX_OUTPUT_ROOT.c`
3047 if ac_fn_c_try_link "$LINENO"; then :
3048 ac_cv_prog_lex_yytext_pointer=yes
3050 rm -f core conftest.err conftest.$ac_objext \
3051 conftest$ac_exeext conftest.$ac_ext
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_prog_lex_yytext_pointer" >&5
3056 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
3057 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3059 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
3062 rm -f conftest.l
$LEX_OUTPUT_ROOT.c
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex" >&5
3066 $as_echo_n "checking for flex... " >&6; }
3067 if test "`echo \"$LEX\" | $SED 's/^.*\(flex\).*$/\1/'`" = "flex"; then :
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3070 $as_echo "yes" >&6; }
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077 $as_echo "no" >&6; }
3078 as_fn_error
"You need flex" "$LINENO" 5
3084 if test "$target_os" = "os2-emx"; then
3085 # Scripts don't pass test -x on OS/2
3091 acceptable_majors
="1"
3093 apr_temp_acceptable_apr_config
=""
3094 for apr_temp_major
in $acceptable_majors
3096 case $apr_temp_major in
3098 apr_temp_acceptable_apr_config
="$apr_temp_acceptable_apr_config apr-config"
3101 apr_temp_acceptable_apr_config
="$apr_temp_acceptable_apr_config apr-$apr_temp_major-config"
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APR" >&5
3107 $as_echo_n "checking for APR... " >&6; }
3109 # Check whether --with-apr was given.
3110 if test "${with_apr+set}" = set; then :
3112 if test "$withval" = "no" || test "$withval" = "yes"; then
3113 as_fn_error
"--with-apr requires a directory or file to be provided" "$LINENO" 5
3116 for apr_temp_apr_config_file
in $apr_temp_acceptable_apr_config
3118 for lookdir
in "$withval/bin" "$withval"
3120 if $TEST_X "$lookdir/$apr_temp_apr_config_file"; then
3121 apr_config
="$lookdir/$apr_temp_apr_config_file"
3129 if test "$apr_found" != "yes" && $TEST_X "$withval" && $withval --help > /dev
/null
2>&1 ; then
3130 apr_config
="$withval"
3134 if test "$apr_found" != "yes"; then
3135 as_fn_error
"the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file." "$LINENO" 5
3140 if test -n "1" && test "1" = "1"; then
3141 for apr_temp_apr_config_file
in $apr_temp_acceptable_apr_config
3143 if $apr_temp_apr_config_file --help > /dev
/null
2>&1 ; then
3144 apr_config
="$apr_temp_apr_config_file"
3149 for lookdir
in /usr
/usr
/local /usr
/local
/apr
/opt
/apr
; do
3150 if $TEST_X "$lookdir/bin/$apr_temp_apr_config_file"; then
3151 apr_config
="$lookdir/bin/$apr_temp_apr_config_file"
3160 if test "$apr_found" = "no" && test -d ""; then
3161 apr_temp_abs_srcdir
="`cd && pwd`"
3162 apr_found
="reconfig"
3163 apr_bundled_major
="`sed -n '/#define.*APR_MAJOR_VERSION/s/^[^0-9]*\([0-9]*\).*$/\1/p' \"/include/apr_version.h\"`"
3164 case $apr_bundled_major in
3166 as_fn_error
"failed to find major version of bundled APR" "$LINENO" 5
3169 apr_temp_apr_config_file
="apr-config"
3172 apr_temp_apr_config_file
="apr-$apr_bundled_major-config"
3176 apr_config
="/$apr_temp_apr_config_file"
3178 apr_config
="/$apr_temp_apr_config_file"
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apr_found" >&5
3186 $as_echo "$apr_found" >&6; }
3188 case $apr_found in #(
3192 for element
in `$apr_config --includes`; do
3194 for x
in $CPPFLAGS; do
3196 acl_save_prefix
="$prefix"
3197 prefix
="$acl_final_prefix"
3198 acl_save_exec_prefix
="$exec_prefix"
3199 exec_prefix
="$acl_final_exec_prefix"
3201 exec_prefix
="$acl_save_exec_prefix"
3202 prefix
="$acl_save_prefix"
3204 if test "X$x" = "X$element"; then
3209 if test -z "$haveit"; then
3210 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
3214 APR
=`$apr_config --link-ld`
3218 as_fn_error
"You need apr" "$LINENO" 5 ;;
3221 ac_cpp
='$CXXCPP $CPPFLAGS'
3222 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3223 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3224 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3225 if test -z "$CXX"; then
3226 if test -n "$CCC"; then
3229 if test -n "$ac_tool_prefix"; then
3230 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
3232 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3233 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3235 $as_echo_n "checking for $ac_word... " >&6; }
3236 if test "${ac_cv_prog_CXX+set}" = set; then :
3237 $as_echo_n "(cached) " >&6
3239 if test -n "$CXX"; then
3240 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3242 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3246 test -z "$as_dir" && as_dir
=.
3247 for ac_exec_ext
in '' $ac_executable_extensions; do
3248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3249 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
3250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3260 if test -n "$CXX"; then
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3262 $as_echo "$CXX" >&6; }
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265 $as_echo "no" >&6; }
3269 test -n "$CXX" && break
3272 if test -z "$CXX"; then
3274 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
3276 # Extract the first word of "$ac_prog", so it can be a program name with args.
3277 set dummy
$ac_prog; ac_word
=$2
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3279 $as_echo_n "checking for $ac_word... " >&6; }
3280 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3281 $as_echo_n "(cached) " >&6
3283 if test -n "$ac_ct_CXX"; then
3284 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
3286 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3290 test -z "$as_dir" && as_dir
=.
3291 for ac_exec_ext
in '' $ac_executable_extensions; do
3292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3293 ac_cv_prog_ac_ct_CXX
="$ac_prog"
3294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3303 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
3304 if test -n "$ac_ct_CXX"; then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3306 $as_echo "$ac_ct_CXX" >&6; }
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309 $as_echo "no" >&6; }
3313 test -n "$ac_ct_CXX" && break
3316 if test "x$ac_ct_CXX" = x
; then
3319 case $cross_compiling:$ac_tool_warned in
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3323 ac_tool_warned
=yes ;;
3331 # Provide some information about the compiler.
3332 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3335 for ac_option
in --version -v -V -qversion; do
3336 { { ac_try
="$ac_compiler $ac_option >&5"
3338 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3339 *) ac_try_echo=$ac_try;;
3341 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3342 $as_echo "$ac_try_echo"; } >&5
3343 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3345 if test -s conftest.err; then
3347 ... rest of stderr output deleted ...
3348 10q' conftest.err >conftest.er1
3349 cat conftest.er1 >&5
3350 rm -f conftest.er1 conftest.err
3352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3353 test $ac_status = 0; }
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3357 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3358 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3359 $as_echo_n "(cached) " >&6
3361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3362 /* end confdefs.h. */
3375 if ac_fn_cxx_try_compile "$LINENO"; then :
3380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3381 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3385 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3386 if test $ac_compiler_gnu = yes; then
3391 ac_test_CXXFLAGS=${CXXFLAGS+set}
3392 ac_save_CXXFLAGS=$CXXFLAGS
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3394 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3395 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3396 $as_echo_n "(cached) " >&6
3398 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3399 ac_cxx_werror_flag=yes
3402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3403 /* end confdefs.h. */
3413 if ac_fn_cxx_try_compile "$LINENO"; then :
3414 ac_cv_prog_cxx_g=yes
3417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3418 /* end confdefs.h. */
3428 if ac_fn_cxx_try_compile "$LINENO"; then :
3431 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3434 /* end confdefs.h. */
3444 if ac_fn_cxx_try_compile "$LINENO"; then :
3445 ac_cv_prog_cxx_g=yes
3447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3452 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3455 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3456 if test "$ac_test_CXXFLAGS" = set; then
3457 CXXFLAGS=$ac_save_CXXFLAGS
3458 elif test $ac_cv_prog_cxx_g = yes; then
3459 if test "$GXX" = yes; then
3465 if test "$GXX" = yes; then
3472 ac_cpp='$CPP $CPPFLAGS'
3473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3478 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3479 for ac_t in install-sh install.sh shtool; do
3480 if test -f "$ac_dir/$ac_t"; then
3482 ac_install_sh="$ac_aux_dir/$ac_t -c"
3487 if test -z "$ac_aux_dir"; then
3488 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3491 # These three variables are undocumented and unsupported,
3492 # and are intended to be withdrawn in a future Autoconf release.
3493 # They can cause serious problems if a builder's source tree is in a directory
3494 # whose full name contains unusual characters.
3495 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3496 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3497 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3500 # Find a good install program. We prefer a C program (faster),
3501 # so one script is as good as another. But avoid the broken or
3502 # incompatible versions:
3503 # SysV /etc/install, /usr/sbin/install
3504 # SunOS /usr/etc/install
3505 # IRIX /sbin/install
3507 # AmigaOS /C/install, which installs bootblocks on floppy discs
3508 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3509 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3510 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3511 # OS/2's system install, which has a completely different semantic
3512 # ./install, which can be erroneously created by make from ./install.sh.
3513 # Reject install programs that cannot install multiple files.
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3515 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3516 if test -z "$INSTALL"; then
3517 if test "${ac_cv_path_install+set}" = set; then :
3518 $as_echo_n "(cached) " >&6
3520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524 test -z "$as_dir" && as_dir=.
3525 # Account for people who put trailing slashes in PATH elements.
3526 case $as_dir/ in #((
3527 ./ | .// | /[cC]/* | \
3528 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3529 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3532 # OSF1 and SCO ODT 3.0 have their own names for install.
3533 # Don't use installbsd from OSF since it installs stuff as root
3535 for ac_prog in ginstall scoinst install; do
3536 for ac_exec_ext in '' $ac_executable_extensions; do
3537 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3538 if test $ac_prog = install &&
3539 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3540 # AIX install. It has an incompatible calling convention.
3542 elif test $ac_prog = install &&
3543 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3544 # program-specific install script used by HP pwplus--don't use.
3547 rm -rf conftest.one conftest.two conftest.dir
3548 echo one > conftest.one
3549 echo two > conftest.two
3551 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3552 test -s conftest.one && test -s conftest.two &&
3553 test -s conftest.dir/conftest.one &&
3554 test -s conftest.dir/conftest.two
3556 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3569 rm -rf conftest.one conftest.two conftest.dir
3572 if test "${ac_cv_path_install+set}" = set; then
3573 INSTALL=$ac_cv_path_install
3575 # As a last resort, use the slow shell script. Don't cache a
3576 # value for INSTALL within a source directory, because that will
3577 # break other packages using the cache if that directory is
3578 # removed, or if the value is a relative name.
3579 INSTALL=$ac_install_sh
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3583 $as_echo "$INSTALL" >&6; }
3585 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3586 # It thinks the first close brace ends the variable substitution.
3587 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3589 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3591 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3593 # Make sure we can run config.sub.
3594 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3595 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3598 $as_echo_n "checking build system type... " >&6; }
3599 if test "${ac_cv_build+set}" = set; then :
3600 $as_echo_n "(cached) " >&6
3602 ac_build_alias=$build_alias
3603 test "x$ac_build_alias" = x &&
3604 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3605 test "x$ac_build_alias" = x &&
3606 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3607 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3608 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3612 $as_echo "$ac_cv_build" >&6; }
3613 case $ac_cv_build in
3615 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3618 ac_save_IFS=$IFS; IFS='-'
3624 # Remember, the first character of IFS is used to create $*,
3625 # except with old shells:
3628 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3632 $as_echo_n "checking host system type... " >&6; }
3633 if test "${ac_cv_host+set}" = set; then :
3634 $as_echo_n "(cached) " >&6
3636 if test "x$host_alias" = x; then
3637 ac_cv_host=$ac_cv_build
3639 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3640 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3645 $as_echo "$ac_cv_host" >&6; }
3648 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3651 ac_save_IFS=$IFS; IFS='-'
3657 # Remember, the first character of IFS is used to create $*,
3658 # except with old shells:
3661 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3665 if test "X$prefix" = "XNONE"; then
3666 acl_final_prefix="$ac_default_prefix"
3668 acl_final_prefix="$prefix"
3670 if test "X$exec_prefix" = "XNONE"; then
3671 acl_final_exec_prefix='${prefix}'
3673 acl_final_exec_prefix="$exec_prefix"
3675 acl_save_prefix="$prefix"
3676 prefix="$acl_final_prefix"
3677 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
3678 prefix="$acl_save_prefix"
3681 # Check whether --with-gnu-ld was given.
3682 if test "${with_gnu_ld+set}" = set; then :
3683 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3688 # Prepare PATH_SEPARATOR.
3689 # The user is always right.
3690 if test "${PATH_SEPARATOR+set}" != set; then
3691 echo "#! /bin/sh" >conf$$.sh
3692 echo "exit 0" >>conf$$.sh
3694 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3702 if test "$GCC" = yes; then
3703 # Check if gcc -print-prog-name=ld gives a path.
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
3705 $as_echo_n "checking for ld used by GCC... " >&6; }
3708 # gcc leaves a trailing carriage return which upsets mingw
3709 ac_prog=`($CC -print-prog-name=ld
) 2>&5 | tr -d '\015'` ;;
3711 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
3714 # Accept absolute paths.
3715 [\\/]* | [A-Za-z]:[\\/]*)
3716 re_direlt='/[^/][^/]*/\.\./'
3717 # Canonicalize the path of ld
3718 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3719 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3720 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3722 test -z "$LD" && LD="$ac_prog"
3725 # If it fails, then pretend we aren't using GCC.
3729 # If it is relative, then search for the first ld in PATH.
3733 elif test "$with_gnu_ld" = yes; then
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3735 $as_echo_n "checking for GNU ld... " >&6; }
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3738 $as_echo_n "checking for non-GNU ld... " >&6; }
3740 if test "${acl_cv_path_LD+set}" = set; then :
3741 $as_echo_n "(cached) " >&6
3743 if test -z "$LD"; then
3744 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3745 for ac_dir in $PATH; do
3746 test -z "$ac_dir" && ac_dir=.
3747 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3748 acl_cv_path_LD="$ac_dir/$ac_prog"
3749 # Check to see if the program is GNU ld. I'd rather use --version,
3750 # but apparently some GNU ld's only accept -v.
3751 # Break only if it was the GNU/non-GNU ld that we prefer.
3752 case `"$acl_cv_path_LD" -v 2>&1 < /dev
/null
` in
3753 *GNU* | *'with BFD'*)
3754 test "$with_gnu_ld" != no && break ;;
3756 test "$with_gnu_ld" != yes && break ;;
3762 acl_cv_path_LD="$LD" # Let the user override the test with a path.
3766 LD="$acl_cv_path_LD"
3767 if test -n "$LD"; then
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3769 $as_echo "$LD" >&6; }
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3772 $as_echo "no" >&6; }
3774 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3776 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3777 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
3778 $as_echo_n "(cached) " >&6
3780 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3781 case `$LD -v 2>&1 </dev
/null
` in
3782 *GNU* | *'with BFD'*)
3783 acl_cv_prog_gnu_ld=yes ;;
3785 acl_cv_prog_gnu_ld=no ;;
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
3789 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
3790 with_gnu_ld=$acl_cv_prog_gnu_ld
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
3796 $as_echo_n "checking for shared library run path origin... " >&6; }
3797 if test "${acl_cv_rpath+set}" = set; then :
3798 $as_echo_n "(cached) " >&6
3801 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
3802 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
3809 $as_echo "$acl_cv_rpath" >&6; }
3811 acl_libext="$acl_cv_libext"
3812 acl_shlibext="$acl_cv_shlibext"
3813 acl_libname_spec="$acl_cv_libname_spec"
3814 acl_library_names_spec="$acl_cv_library_names_spec"
3815 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
3816 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
3817 acl_hardcode_direct="$acl_cv_hardcode_direct"
3818 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
3819 # Check whether --enable-rpath was given.
3820 if test "${enable_rpath+set}" = set; then :
3821 enableval=$enable_rpath; :
3829 searchpath=`(LC_ALL
=C
$CC -print-search-dirs) 2>/dev
/null
| sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
3830 if test -n "$searchpath"; then
3831 acl_save_IFS="${IFS= }"; IFS=":"
3832 for searchdir in $searchpath; do
3833 if test -d "$searchdir"; then
3834 case "$searchdir" in
3835 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
3836 *) searchdir=`cd "$searchdir" && pwd`
3837 case "$searchdir" in
3838 */lib64 ) acl_libdirstem=lib64 ;;
3856 acl_save_prefix="$prefix"
3857 prefix="$acl_final_prefix"
3858 acl_save_exec_prefix="$exec_prefix"
3859 exec_prefix="$acl_final_exec_prefix"
3861 eval additional_includedir=\"$includedir\"
3862 eval additional_libdir=\"$libdir\"
3864 exec_prefix="$acl_save_exec_prefix"
3865 prefix="$acl_save_prefix"
3868 # Check whether --with-libiconv-prefix was given.
3869 if test "${with_libiconv_prefix+set}" = set; then :
3870 withval=$with_libiconv_prefix;
3871 if test "X$withval" = "Xno"; then
3874 if test "X$withval" = "X"; then
3876 acl_save_prefix="$prefix"
3877 prefix="$acl_final_prefix"
3878 acl_save_exec_prefix="$exec_prefix"
3879 exec_prefix="$acl_final_exec_prefix"
3881 eval additional_includedir=\"$includedir\"
3882 eval additional_libdir=\"$libdir\"
3884 exec_prefix="$acl_save_exec_prefix"
3885 prefix="$acl_save_prefix"
3888 additional_includedir="$withval/include"
3889 additional_libdir="$withval/$acl_libdirstem"
3901 names_already_handled=
3902 names_next_round='iconv '
3903 while test -n "$names_next_round"; do
3904 names_this_round="$names_next_round"
3906 for name in $names_this_round; do
3908 for n in $names_already_handled; do
3909 if test "$n" = "$name"; then
3914 if test -z "$already_handled"; then
3915 names_already_handled="$names_already_handled $name"
3916 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
3917 eval value=\"\$HAVE_LIB$uppername\"
3918 if test -n "$value"; then
3919 if test "$value" = yes; then
3920 eval value=\"\$LIB$uppername\"
3921 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
3922 eval value=\"\$LTLIB$uppername\"
3923 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
3932 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
3933 if test -n "$acl_shlibext"; then
3934 shrext=".$acl_shlibext" # typically: shrext=.so
3938 if test $use_additional = yes; then
3939 dir="$additional_libdir"
3940 if test -n "$acl_shlibext"; then
3941 if test -f "$dir/$libname$shrext"; then
3943 found_so="$dir/$libname$shrext"
3945 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
3946 ver=`(cd "$dir" && \
3947 for f
in "$libname$shrext".
*; do echo "$f"; done \
3948 | sed -e "s,^$libname$shrext\\\\.,," \
3949 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
3950 | sed 1q
) 2>/dev
/null
`
3951 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
3953 found_so="$dir/$libname$shrext.$ver"
3956 eval library_names=\"$acl_library_names_spec\"
3957 for f in $library_names; do
3958 if test -f "$dir/$f"; then
3967 if test "X$found_dir" = "X"; then
3968 if test -f "$dir/$libname.$acl_libext"; then
3970 found_a="$dir/$libname.$acl_libext"
3973 if test "X$found_dir" != "X"; then
3974 if test -f "$dir/$libname.la"; then
3975 found_la="$dir/$libname.la"
3979 if test "X$found_dir" = "X"; then
3980 for x in $LDFLAGS $LTLIBICONV; do
3982 acl_save_prefix="$prefix"
3983 prefix="$acl_final_prefix"
3984 acl_save_exec_prefix="$exec_prefix"
3985 exec_prefix="$acl_final_exec_prefix"
3987 exec_prefix="$acl_save_exec_prefix"
3988 prefix="$acl_save_prefix"
3992 dir=`echo "X$x" | sed -e 's/^X-L//'`
3993 if test -n "$acl_shlibext"; then
3994 if test -f "$dir/$libname$shrext"; then
3996 found_so="$dir/$libname$shrext"
3998 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
3999 ver=`(cd "$dir" && \
4000 for f
in "$libname$shrext".
*; do echo "$f"; done \
4001 | sed -e "s,^$libname$shrext\\\\.,," \
4002 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
4003 | sed 1q
) 2>/dev
/null
`
4004 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
4006 found_so="$dir/$libname$shrext.$ver"
4009 eval library_names=\"$acl_library_names_spec\"
4010 for f in $library_names; do
4011 if test -f "$dir/$f"; then
4020 if test "X$found_dir" = "X"; then
4021 if test -f "$dir/$libname.$acl_libext"; then
4023 found_a="$dir/$libname.$acl_libext"
4026 if test "X$found_dir" != "X"; then
4027 if test -f "$dir/$libname.la"; then
4028 found_la="$dir/$libname.la"
4033 if test "X$found_dir" != "X"; then
4038 if test "X$found_dir" != "X"; then
4039 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
4040 if test "X$found_so" != "X"; then
4041 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
4042 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4045 for x in $ltrpathdirs; do
4046 if test "X$x" = "X$found_dir"; then
4051 if test -z "$haveit"; then
4052 ltrpathdirs="$ltrpathdirs $found_dir"
4054 if test "$acl_hardcode_direct" = yes; then
4055 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4057 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
4058 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4060 for x in $rpathdirs; do
4061 if test "X$x" = "X$found_dir"; then
4066 if test -z "$haveit"; then
4067 rpathdirs="$rpathdirs $found_dir"
4071 for x in $LDFLAGS $LIBICONV; do
4073 acl_save_prefix="$prefix"
4074 prefix="$acl_final_prefix"
4075 acl_save_exec_prefix="$exec_prefix"
4076 exec_prefix="$acl_final_exec_prefix"
4078 exec_prefix="$acl_save_exec_prefix"
4079 prefix="$acl_save_prefix"
4081 if test "X$x" = "X-L$found_dir"; then
4086 if test -z "$haveit"; then
4087 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
4089 if test "$acl_hardcode_minus_L" != no; then
4090 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4092 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4098 if test "X$found_a" != "X"; then
4099 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
4101 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
4104 additional_includedir=
4105 case "$found_dir" in
4106 */$acl_libdirstem | */$acl_libdirstem/)
4107 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
4108 LIBICONV_PREFIX="$basedir"
4109 additional_includedir="$basedir/include"
4112 if test "X$additional_includedir" != "X"; then
4113 if test "X$additional_includedir" != "X/usr/include"; then
4115 if test "X$additional_includedir" = "X/usr/local/include"; then
4116 if test -n "$GCC"; then
4118 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4122 if test -z "$haveit"; then
4123 for x in $CPPFLAGS $INCICONV; do
4125 acl_save_prefix="$prefix"
4126 prefix="$acl_final_prefix"
4127 acl_save_exec_prefix="$exec_prefix"
4128 exec_prefix="$acl_final_exec_prefix"
4130 exec_prefix="$acl_save_exec_prefix"
4131 prefix="$acl_save_prefix"
4133 if test "X$x" = "X-I$additional_includedir"; then
4138 if test -z "$haveit"; then
4139 if test -d "$additional_includedir"; then
4140 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
4146 if test -n "$found_la"; then
4147 save_libdir="$libdir"
4149 */* | *\\*) . "$found_la" ;;
4150 *) . "./$found_la" ;;
4152 libdir="$save_libdir"
4153 for dep in $dependency_libs; do
4156 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4157 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
4159 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
4160 if test -n "$GCC"; then
4162 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4166 if test -z "$haveit"; then
4168 for x in $LDFLAGS $LIBICONV; do
4170 acl_save_prefix="$prefix"
4171 prefix="$acl_final_prefix"
4172 acl_save_exec_prefix="$exec_prefix"
4173 exec_prefix="$acl_final_exec_prefix"
4175 exec_prefix="$acl_save_exec_prefix"
4176 prefix="$acl_save_prefix"
4178 if test "X$x" = "X-L$additional_libdir"; then
4183 if test -z "$haveit"; then
4184 if test -d "$additional_libdir"; then
4185 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
4189 for x in $LDFLAGS $LTLIBICONV; do
4191 acl_save_prefix="$prefix"
4192 prefix="$acl_final_prefix"
4193 acl_save_exec_prefix="$exec_prefix"
4194 exec_prefix="$acl_final_exec_prefix"
4196 exec_prefix="$acl_save_exec_prefix"
4197 prefix="$acl_save_prefix"
4199 if test "X$x" = "X-L$additional_libdir"; then
4204 if test -z "$haveit"; then
4205 if test -d "$additional_libdir"; then
4206 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
4213 dir=`echo "X$dep" | sed -e 's/^X-R//'`
4214 if test "$enable_rpath" != no; then
4216 for x in $rpathdirs; do
4217 if test "X$x" = "X$dir"; then
4222 if test -z "$haveit"; then
4223 rpathdirs="$rpathdirs $dir"
4226 for x in $ltrpathdirs; do
4227 if test "X$x" = "X$dir"; then
4232 if test -z "$haveit"; then
4233 ltrpathdirs="$ltrpathdirs $dir"
4238 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4241 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4244 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
4245 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
4251 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4252 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
4258 if test "X$rpathdirs" != "X"; then
4259 if test -n "$acl_hardcode_libdir_separator"; then
4261 for found_dir in $rpathdirs; do
4262 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
4264 acl_save_libdir="$libdir"
4266 eval flag=\"$acl_hardcode_libdir_flag_spec\"
4267 libdir="$acl_save_libdir"
4268 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4270 for found_dir in $rpathdirs; do
4271 acl_save_libdir="$libdir"
4273 eval flag=\"$acl_hardcode_libdir_flag_spec\"
4274 libdir="$acl_save_libdir"
4275 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4279 if test "X$ltrpathdirs" != "X"; then
4280 for found_dir in $ltrpathdirs; do
4281 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
4291 am_save_CPPFLAGS="$CPPFLAGS"
4293 for element in $INCICONV; do
4295 for x in $CPPFLAGS; do
4297 acl_save_prefix="$prefix"
4298 prefix="$acl_final_prefix"
4299 acl_save_exec_prefix="$exec_prefix"
4300 exec_prefix="$acl_final_exec_prefix"
4302 exec_prefix="$acl_save_exec_prefix"
4303 prefix="$acl_save_prefix"
4305 if test "X$x" = "X$element"; then
4310 if test -z "$haveit"; then
4311 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
4317 $as_echo_n "checking for iconv... " >&6; }
4318 if test "${am_cv_func_iconv+set}" = set; then :
4319 $as_echo_n "(cached) " >&6
4322 am_cv_func_iconv="no, consider installing GNU libiconv"
4324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h. */
4331 iconv_t cd = iconv_open("","");
4332 iconv(cd,NULL,NULL,NULL,NULL);
4338 if ac_fn_c_try_link "$LINENO"; then :
4339 am_cv_func_iconv=yes
4341 rm -f core conftest.err conftest.$ac_objext \
4342 conftest$ac_exeext conftest.$ac_ext
4343 if test "$am_cv_func_iconv" != yes; then
4344 am_save_LIBS="$LIBS"
4345 LIBS="$LIBS $LIBICONV"
4346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347 /* end confdefs.h. */
4353 iconv_t cd = iconv_open("","");
4354 iconv(cd,NULL,NULL,NULL,NULL);
4360 if ac_fn_c_try_link "$LINENO"; then :
4362 am_cv_func_iconv=yes
4364 rm -f core conftest.err conftest.$ac_objext \
4365 conftest$ac_exeext conftest.$ac_ext
4366 LIBS="$am_save_LIBS"
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
4371 $as_echo "$am_cv_func_iconv" >&6; }
4372 if test "$am_cv_func_iconv" = yes; then
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
4374 $as_echo_n "checking for working iconv... " >&6; }
4375 if test "${am_cv_func_iconv_works+set}" = set; then :
4376 $as_echo_n "(cached) " >&6
4379 am_save_LIBS="$LIBS"
4380 if test $am_cv_lib_iconv = yes; then
4381 LIBS="$LIBS $LIBICONV"
4383 if test "$cross_compiling" = yes; then :
4385 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
4386 *) am_cv_func_iconv_works="guessing yes" ;;
4389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4390 /* end confdefs.h. */
4396 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
4399 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
4400 if (cd_utf8_to_88591 != (iconv_t)(-1))
4402 static const char input[] = "\342\202\254"; /* EURO SIGN */
4404 const char *inptr = input;
4405 size_t inbytesleft = strlen (input);
4407 size_t outbytesleft = sizeof (buf);
4408 size_t res = iconv (cd_utf8_to_88591,
4409 (char **) &inptr, &inbytesleft,
4410 &outptr, &outbytesleft);
4415 #if 0 /* This bug could be worked around by the caller. */
4416 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
4418 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
4419 if (cd_88591_to_utf8 != (iconv_t)(-1))
4421 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
4423 const char *inptr = input;
4424 size_t inbytesleft = strlen (input);
4426 size_t outbytesleft = sizeof (buf);
4427 size_t res = iconv (cd_88591_to_utf8,
4428 (char **) &inptr, &inbytesleft,
4429 &outptr, &outbytesleft);
4435 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
4437 if (/* Try standardized names. */
4438 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
4439 /* Try IRIX, OSF/1 names. */
4440 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
4441 /* Try AIX names. */
4442 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
4443 /* Try HP-UX names. */
4444 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
4449 if ac_fn_c_try_run "$LINENO"; then :
4450 am_cv_func_iconv_works=yes
4452 am_cv_func_iconv_works=no
4454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4455 conftest.$ac_objext conftest.beam conftest.$ac_ext
4458 LIBS="$am_save_LIBS"
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
4462 $as_echo "$am_cv_func_iconv_works" >&6; }
4463 case "$am_cv_func_iconv_works" in
4464 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
4465 *) am_func_iconv=yes ;;
4468 am_func_iconv=no am_cv_lib_iconv=no
4470 if test "$am_func_iconv" = yes; then
4472 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
4475 if test "$am_cv_lib_iconv" = yes; then
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
4477 $as_echo_n "checking how to link with libiconv... " >&6; }
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
4479 $as_echo "$LIBICONV" >&6; }
4481 CPPFLAGS="$am_save_CPPFLAGS"
4488 if test "$am_cv_func_iconv" = yes; then
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
4490 $as_echo_n "checking for iconv declaration... " >&6; }
4491 if test "${am_cv_proto_iconv+set}" = set; then :
4492 $as_echo_n "(cached) " >&6
4495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h. */
4504 #if defined(__STDC__) || defined(__cplusplus)
4505 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
4518 if ac_fn_c_try_compile "$LINENO"; then :
4519 am_cv_proto_iconv_arg1=""
4521 am_cv_proto_iconv_arg1="const"
4523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4524 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
4527 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
4529 }$am_cv_proto_iconv" >&5
4531 }$am_cv_proto_iconv" >&6; }
4533 cat >>confdefs.h <<_ACEOF
4534 #define ICONV_CONST $am_cv_proto_iconv_arg1
4539 case $am_cv_func_iconv in #(
4543 as_fn_error "You need iconv" "$LINENO" 5 ;;
4547 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4548 if test -n "$ac_tool_prefix"; then
4549 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4550 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4552 $as_echo_n "checking for $ac_word... " >&6; }
4553 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4554 $as_echo_n "(cached) " >&6
4558 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 test -z "$as_dir" && as_dir=.
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4568 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4579 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4580 if test -n "$PKG_CONFIG"; then
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4582 $as_echo "$PKG_CONFIG" >&6; }
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4585 $as_echo "no" >&6; }
4590 if test -z "$ac_cv_path_PKG_CONFIG"; then
4591 ac_pt_PKG_CONFIG=$PKG_CONFIG
4592 # Extract the first word of "pkg-config", so it can be a program name with args.
4593 set dummy pkg-config; ac_word=$2
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4595 $as_echo_n "checking for $ac_word... " >&6; }
4596 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4597 $as_echo_n "(cached) " >&6
4599 case $ac_pt_PKG_CONFIG in
4601 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 test -z "$as_dir" && as_dir=.
4609 for ac_exec_ext in '' $ac_executable_extensions; do
4610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4611 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4622 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4623 if test -n "$ac_pt_PKG_CONFIG"; then
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4625 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4628 $as_echo "no" >&6; }
4631 if test "x$ac_pt_PKG_CONFIG" = x; then
4634 case $cross_compiling:$ac_tool_warned in
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4637 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4638 ac_tool_warned=yes ;;
4640 PKG_CONFIG=$ac_pt_PKG_CONFIG
4643 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4647 if test -n "$PKG_CONFIG"; then
4648 _pkg_min_version=0.9.0
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4650 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4651 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4653 $as_echo "yes" >&6; }
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4656 $as_echo "no" >&6; }
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
4664 $as_echo_n "checking for WEBKIT... " >&6; }
4666 if test -n "$PKG_CONFIG"; then
4667 if test -n "$WEBKIT_CFLAGS"; then
4668 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
4670 if test -n "$PKG_CONFIG" && \
4671 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
4672 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
4674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4675 test $ac_status = 0; }; then
4676 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev
/null
`
4684 if test -n "$PKG_CONFIG"; then
4685 if test -n "$WEBKIT_LIBS"; then
4686 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
4688 if test -n "$PKG_CONFIG" && \
4689 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
4690 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
4692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4693 test $ac_status = 0; }; then
4694 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev
/null
`
4705 if test $pkg_failed = yes; then
4707 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4708 _pkg_short_errors_supported=yes
4710 _pkg_short_errors_supported=no
4712 if test $_pkg_short_errors_supported = yes; then
4713 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "webkit-1.0"`
4715 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "webkit-1.0"`
4717 # Put the nasty error message in config.log where it belongs
4718 echo "$WEBKIT_PKG_ERRORS" >&5
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4721 $as_echo "no" >&6; }
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
4726 $as_echo_n "checking for WEBKIT... " >&6; }
4728 if test -n "$PKG_CONFIG"; then
4729 if test -n "$WEBKIT_CFLAGS"; then
4730 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
4732 if test -n "$PKG_CONFIG" && \
4733 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
4734 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
4736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4737 test $ac_status = 0; }; then
4738 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev
/null
`
4746 if test -n "$PKG_CONFIG"; then
4747 if test -n "$WEBKIT_LIBS"; then
4748 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
4750 if test -n "$PKG_CONFIG" && \
4751 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
4752 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
4754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4755 test $ac_status = 0; }; then
4756 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev
/null
`
4767 if test $pkg_failed = yes; then
4769 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4770 _pkg_short_errors_supported=yes
4772 _pkg_short_errors_supported=no
4774 if test $_pkg_short_errors_supported = yes; then
4775 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
4777 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
4779 # Put the nasty error message in config.log where it belongs
4780 echo "$WEBKIT_PKG_ERRORS" >&5
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4783 $as_echo "no" >&6; }
4785 elif test $pkg_failed = untried; then
4788 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
4789 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4791 $as_echo "yes" >&6; }
4795 elif test $pkg_failed = untried; then
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
4800 $as_echo_n "checking for WEBKIT... " >&6; }
4802 if test -n "$PKG_CONFIG"; then
4803 if test -n "$WEBKIT_CFLAGS"; then
4804 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
4806 if test -n "$PKG_CONFIG" && \
4807 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
4808 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
4810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4811 test $ac_status = 0; }; then
4812 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev
/null
`
4820 if test -n "$PKG_CONFIG"; then
4821 if test -n "$WEBKIT_LIBS"; then
4822 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
4824 if test -n "$PKG_CONFIG" && \
4825 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
4826 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
4828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4829 test $ac_status = 0; }; then
4830 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev
/null
`
4841 if test $pkg_failed = yes; then
4843 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4844 _pkg_short_errors_supported=yes
4846 _pkg_short_errors_supported=no
4848 if test $_pkg_short_errors_supported = yes; then
4849 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
4851 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
4853 # Put the nasty error message in config.log where it belongs
4854 echo "$WEBKIT_PKG_ERRORS" >&5
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4857 $as_echo "no" >&6; }
4859 elif test $pkg_failed = untried; then
4862 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
4863 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4865 $as_echo "yes" >&6; }
4870 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
4871 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4873 $as_echo "yes" >&6; }
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
4882 $as_echo_n "checking for LIBFFI... " >&6; }
4884 if test -n "$PKG_CONFIG"; then
4885 if test -n "$LIBFFI_CFLAGS"; then
4886 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
4888 if test -n "$PKG_CONFIG" && \
4889 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
4890 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
4892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4893 test $ac_status = 0; }; then
4894 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev
/null
`
4902 if test -n "$PKG_CONFIG"; then
4903 if test -n "$LIBFFI_LIBS"; then
4904 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
4906 if test -n "$PKG_CONFIG" && \
4907 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
4908 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
4910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4911 test $ac_status = 0; }; then
4912 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev
/null
`
4923 if test $pkg_failed = yes; then
4925 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4926 _pkg_short_errors_supported=yes
4928 _pkg_short_errors_supported=no
4930 if test $_pkg_short_errors_supported = yes; then
4931 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libffi"`
4933 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libffi"`
4935 # Put the nasty error message in config.log where it belongs
4936 echo "$LIBFFI_PKG_ERRORS" >&5
4938 as_fn_error "Package requirements (libffi) were not met:
4942 Consider adjusting the PKG_CONFIG_PATH environment variable if you
4943 installed software in a non-standard prefix.
4945 Alternatively, you may set the environment variables LIBFFI_CFLAGS
4946 and LIBFFI_LIBS to avoid the need to call pkg-config.
4947 See the pkg-config man page for more details.
4949 elif test $pkg_failed = untried; then
4950 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4951 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4952 as_fn_error "The pkg
-config script could not be found or is too old. Make sure it
4953 is
in your PATH or
set the PKG_CONFIG environment variable to the full
4956 Alternatively
, you may
set the environment variables LIBFFI_CFLAGS
4957 and LIBFFI_LIBS to avoid the need to call pkg
-config.
4958 See the pkg
-config man page
for more details.
4960 To get pkg
-config, see
<http
://pkg
-config.freedesktop.org
/>.
4961 See \
`config.log' for more details." "$LINENO" 5; }
4963 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
4964 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4966 $as_echo "yes" >&6; }
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No JavaScript engine!" >&5
4972 $as_echo "$as_me: WARNING: No JavaScript engine!" >&2;} ;;
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
4975 $as_echo_n "checking for GNU make... " >&6; }
4976 if test "${_cv_gnu_make_command+set}" = set; then :
4977 $as_echo_n "(cached) " >&6
4979 _cv_gnu_make_command='' ;
4980 for a in "$MAKE" make gmake gnumake ; do
4981 if test -z "$a" ; then continue ; fi ;
4982 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
4983 _cv_gnu_make_command=$a ;
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
4990 $as_echo "$_cv_gnu_make_command" >&6; } ;
4991 if test "x$_cv_gnu_make_command" != "x" ; then
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
4996 $as_echo "\"Not found\"" >&6; };
5000 if test x$_cv_gnu_make_command = x; then :
5001 as_fn_error "You need GNU make" "$LINENO" 5