]> git.saurik.com Git - cycript.git/blob - configure
Progress on autoconf doom!
[cycript.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for Cycript 0.9.
4 #
5 # Report bugs to <saurik@saurik.com>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # Foundation, Inc.
10 #
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 ## -------------------- ##
16
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 :
20 emulate sh
21 NULLCMD=:
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+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
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
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
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'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
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.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
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
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
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 || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
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 :
138 emulate sh
139 NULLCMD=:
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+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
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; }
158
159 exitcode=0
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 :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
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 :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
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 :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
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
209 fi; }
210 IFS=$as_save_IFS
211
212
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.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
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."
230 else
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
235 $0: have one."
236 fi
237 exit 1
238 fi
239 fi
240 fi
241 SHELL=${CONFIG_SHELL-/bin/sh}
242 export SHELL
243 # Unset more variables known to interfere with behavior of common tools.
244 CLICOLOR_FORCE= GREP_OPTIONS=
245 unset CLICOLOR_FORCE GREP_OPTIONS
246
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
250 # as_fn_unset VAR
251 # ---------------
252 # Portably unset VAR.
253 as_fn_unset ()
254 {
255 { eval $1=; unset $1;}
256 }
257 as_unset=as_fn_unset
258
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
262 as_fn_set_status ()
263 {
264 return $1
265 } # as_fn_set_status
266
267 # as_fn_exit STATUS
268 # -----------------
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
270 as_fn_exit ()
271 {
272 set +e
273 as_fn_set_status $1
274 exit $1
275 } # as_fn_exit
276
277 # as_fn_mkdir_p
278 # -------------
279 # Create "$as_dir" as a directory, including parents if necessary.
280 as_fn_mkdir_p ()
281 {
282
283 case $as_dir in #(
284 -*) as_dir=./$as_dir;;
285 esac
286 test -d "$as_dir" || eval $as_mkdir_p || {
287 as_dirs=
288 while :; do
289 case $as_dir in #(
290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
291 *) as_qdir=$as_dir;;
292 esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
301 s//\1/
302 q
303 }
304 /^X\(\/\/\)[^/].*/{
305 s//\1/
306 q
307 }
308 /^X\(\/\/\)$/{
309 s//\1/
310 q
311 }
312 /^X\(\/\).*/{
313 s//\1/
314 q
315 }
316 s/.*/./; q'`
317 test -d "$as_dir" && break
318 done
319 test -z "$as_dirs" || eval "mkdir $as_dirs"
320 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321
322
323 } # as_fn_mkdir_p
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
329 # implementations.
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331 eval 'as_fn_append ()
332 {
333 eval $1+=\$2
334 }'
335 else
336 as_fn_append ()
337 {
338 eval $1=\$$1\$2
339 }
340 fi # as_fn_append
341
342 # as_fn_arith ARG...
343 # ------------------
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 :
348 eval 'as_fn_arith ()
349 {
350 as_val=$(( $* ))
351 }'
352 else
353 as_fn_arith ()
354 {
355 as_val=`expr "$@" || test $? -eq 1`
356 }
357 fi # as_fn_arith
358
359
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.
365 as_fn_error ()
366 {
367 as_status=$?; test $as_status -eq 0 && as_status=1
368 if test "$3"; then
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
371 fi
372 $as_echo "$as_me: error: $1" >&2
373 as_fn_exit $as_status
374 } # as_fn_error
375
376 if expr a : '\(a\)' >/dev/null 2>&1 &&
377 test "X`expr 00001 : '.*\(...\)'`" = X001; then
378 as_expr=expr
379 else
380 as_expr=false
381 fi
382
383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
384 as_basename=basename
385 else
386 as_basename=false
387 fi
388
389 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
390 as_dirname=dirname
391 else
392 as_dirname=false
393 fi
394
395 as_me=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397 X"$0" : 'X\(//\)$' \| \
398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 $as_echo X/"$0" |
400 sed '/^.*\/\([^/][^/]*\)\/*$/{
401 s//\1/
402 q
403 }
404 /^X\/\(\/\/\)$/{
405 s//\1/
406 q
407 }
408 /^X\/\(\/\).*/{
409 s//\1/
410 q
411 }
412 s/.*/./; q'`
413
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
420
421
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. :-)
427 sed -n '
428 p
429 /[$]LINENO/=
430 ' <$as_myself |
431 sed '
432 s/[$]LINENO.*/&-/
433 t lineno
434 b
435 :lineno
436 N
437 :loop
438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 t loop
440 s/-\n.*//
441 ' >$as_me.lineno &&
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; }
444
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).
448 . "./$as_me.lineno"
449 # Exit status is that of the last command.
450 exit
451 }
452
453 ECHO_C= ECHO_N= ECHO_T=
454 case `echo -n x` in #(((((
455 -n*)
456 case `echo 'xy\c'` in
457 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
458 xy) ECHO_C='\c';;
459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
460 ECHO_T=' ';;
461 esac;;
462 *)
463 ECHO_N='-n';;
464 esac
465
466 rm -f conf$$ conf$$.exe conf$$.file
467 if test -d conf$$.dir; then
468 rm -f conf$$.dir/conf$$.file
469 else
470 rm -f conf$$.dir
471 mkdir conf$$.dir 2>/dev/null
472 fi
473 if (echo >conf$$.file) 2>/dev/null; then
474 if ln -s conf$$.file conf$$ 2>/dev/null; then
475 as_ln_s='ln -s'
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 ||
481 as_ln_s='cp -p'
482 elif ln conf$$.file conf$$ 2>/dev/null; then
483 as_ln_s=ln
484 else
485 as_ln_s='cp -p'
486 fi
487 else
488 as_ln_s='cp -p'
489 fi
490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491 rmdir conf$$.dir 2>/dev/null
492
493 if mkdir -p . 2>/dev/null; then
494 as_mkdir_p='mkdir -p "$as_dir"'
495 else
496 test -d ./-p && rmdir ./-p
497 as_mkdir_p=false
498 fi
499
500 if test -x / >/dev/null 2>&1; then
501 as_test_x='test -x'
502 else
503 if ls -dL / >/dev/null 2>&1; then
504 as_ls_L_option=L
505 else
506 as_ls_L_option=
507 fi
508 as_test_x='
509 eval sh -c '\''
510 if test -d "$1"; then
511 test -d "$1/.";
512 else
513 case $1 in #(
514 -*)set "./$1";;
515 esac;
516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517 ???[sx]*):;;*)false;;esac;fi
518 '\'' sh
519 '
520 fi
521 as_executable_p=$as_test_x
522
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'"
525
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'"
528
529
530 exec 7<&0 </dev/null 6>&1
531
532 # Name of the host.
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`
536
537 #
538 # Initializations.
539 #
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
548
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/'
556
557 ac_unique_file="Console.cpp"
558 ac_subst_vars='LIBFFI_LIBS
559 LIBFFI_CFLAGS
560 WEBKIT_LIBS
561 WEBKIT_CFLAGS
562 PKG_CONFIG
563 LTLIBICONV
564 LIBICONV
565 host_os
566 host_vendor
567 host_cpu
568 host
569 build_os
570 build_vendor
571 build_cpu
572 build
573 INSTALL_DATA
574 INSTALL_SCRIPT
575 INSTALL_PROGRAM
576 ac_ct_CXX
577 CXXFLAGS
578 CXX
579 FLEX
580 LEXLIB
581 OBJEXT
582 EXEEXT
583 ac_ct_CC
584 CPPFLAGS
585 LDFLAGS
586 CFLAGS
587 CC
588 LEX_OUTPUT_ROOT
589 LEX
590 BISON
591 AWK
592 SED
593 YFLAGS
594 YACC
595 target_alias
596 host_alias
597 build_alias
598 LIBS
599 ECHO_T
600 ECHO_N
601 ECHO_C
602 DEFS
603 mandir
604 localedir
605 libdir
606 psdir
607 pdfdir
608 dvidir
609 htmldir
610 infodir
611 docdir
612 oldincludedir
613 includedir
614 localstatedir
615 sharedstatedir
616 sysconfdir
617 datadir
618 datarootdir
619 libexecdir
620 sbindir
621 bindir
622 program_transform_name
623 prefix
624 exec_prefix
625 PACKAGE_URL
626 PACKAGE_BUGREPORT
627 PACKAGE_STRING
628 PACKAGE_VERSION
629 PACKAGE_TARNAME
630 PACKAGE_NAME
631 PATH_SEPARATOR
632 SHELL'
633 ac_subst_files=''
634 ac_user_opts='
635 enable_option_checking
636 with_gnu_ld
637 enable_rpath
638 with_libiconv_prefix
639 '
640 ac_precious_vars='build_alias
641 host_alias
642 target_alias
643 YACC
644 YFLAGS
645 CC
646 CFLAGS
647 LDFLAGS
648 LIBS
649 CPPFLAGS
650 CXX
651 CXXFLAGS
652 CCC
653 PKG_CONFIG
654 WEBKIT_CFLAGS
655 WEBKIT_LIBS
656 LIBFFI_CFLAGS
657 LIBFFI_LIBS'
658
659
660 # Initialize some variables set by options.
661 ac_init_help=
662 ac_init_version=false
663 ac_unrecognized_opts=
664 ac_unrecognized_sep=
665 # The variables have the same names as the options, with
666 # dashes changed to underlines.
667 cache_file=/dev/null
668 exec_prefix=NONE
669 no_create=
670 no_recursion=
671 prefix=NONE
672 program_prefix=NONE
673 program_suffix=NONE
674 program_transform_name=s,x,x,
675 silent=
676 site=
677 srcdir=
678 verbose=
679 x_includes=NONE
680 x_libraries=NONE
681
682 # Installation directory options.
683 # These are left unexpanded so users can "make install exec_prefix=/foo"
684 # and all the variables that are supposed to be based on exec_prefix
685 # by default will actually change.
686 # Use braces instead of parens because sh, perl, etc. also accept them.
687 # (The list follows the same order as the GNU Coding Standards.)
688 bindir='${exec_prefix}/bin'
689 sbindir='${exec_prefix}/sbin'
690 libexecdir='${exec_prefix}/libexec'
691 datarootdir='${prefix}/share'
692 datadir='${datarootdir}'
693 sysconfdir='${prefix}/etc'
694 sharedstatedir='${prefix}/com'
695 localstatedir='${prefix}/var'
696 includedir='${prefix}/include'
697 oldincludedir='/usr/include'
698 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
699 infodir='${datarootdir}/info'
700 htmldir='${docdir}'
701 dvidir='${docdir}'
702 pdfdir='${docdir}'
703 psdir='${docdir}'
704 libdir='${exec_prefix}/lib'
705 localedir='${datarootdir}/locale'
706 mandir='${datarootdir}/man'
707
708 ac_prev=
709 ac_dashdash=
710 for ac_option
711 do
712 # If the previous option needs an argument, assign it.
713 if test -n "$ac_prev"; then
714 eval $ac_prev=\$ac_option
715 ac_prev=
716 continue
717 fi
718
719 case $ac_option in
720 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
721 *) ac_optarg=yes ;;
722 esac
723
724 # Accept the important Cygnus configure options, so we can diagnose typos.
725
726 case $ac_dashdash$ac_option in
727 --)
728 ac_dashdash=yes ;;
729
730 -bindir | --bindir | --bindi | --bind | --bin | --bi)
731 ac_prev=bindir ;;
732 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
733 bindir=$ac_optarg ;;
734
735 -build | --build | --buil | --bui | --bu)
736 ac_prev=build_alias ;;
737 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
738 build_alias=$ac_optarg ;;
739
740 -cache-file | --cache-file | --cache-fil | --cache-fi \
741 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
742 ac_prev=cache_file ;;
743 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
744 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
745 cache_file=$ac_optarg ;;
746
747 --config-cache | -C)
748 cache_file=config.cache ;;
749
750 -datadir | --datadir | --datadi | --datad)
751 ac_prev=datadir ;;
752 -datadir=* | --datadir=* | --datadi=* | --datad=*)
753 datadir=$ac_optarg ;;
754
755 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
756 | --dataroo | --dataro | --datar)
757 ac_prev=datarootdir ;;
758 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
759 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
760 datarootdir=$ac_optarg ;;
761
762 -disable-* | --disable-*)
763 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
764 # Reject names that are not valid shell variable names.
765 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
766 as_fn_error "invalid feature name: $ac_useropt"
767 ac_useropt_orig=$ac_useropt
768 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
769 case $ac_user_opts in
770 *"
771 "enable_$ac_useropt"
772 "*) ;;
773 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
774 ac_unrecognized_sep=', ';;
775 esac
776 eval enable_$ac_useropt=no ;;
777
778 -docdir | --docdir | --docdi | --doc | --do)
779 ac_prev=docdir ;;
780 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
781 docdir=$ac_optarg ;;
782
783 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
784 ac_prev=dvidir ;;
785 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
786 dvidir=$ac_optarg ;;
787
788 -enable-* | --enable-*)
789 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
790 # Reject names that are not valid shell variable names.
791 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
792 as_fn_error "invalid feature name: $ac_useropt"
793 ac_useropt_orig=$ac_useropt
794 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
795 case $ac_user_opts in
796 *"
797 "enable_$ac_useropt"
798 "*) ;;
799 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
800 ac_unrecognized_sep=', ';;
801 esac
802 eval enable_$ac_useropt=\$ac_optarg ;;
803
804 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
805 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
806 | --exec | --exe | --ex)
807 ac_prev=exec_prefix ;;
808 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
809 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
810 | --exec=* | --exe=* | --ex=*)
811 exec_prefix=$ac_optarg ;;
812
813 -gas | --gas | --ga | --g)
814 # Obsolete; use --with-gas.
815 with_gas=yes ;;
816
817 -help | --help | --hel | --he | -h)
818 ac_init_help=long ;;
819 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
820 ac_init_help=recursive ;;
821 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
822 ac_init_help=short ;;
823
824 -host | --host | --hos | --ho)
825 ac_prev=host_alias ;;
826 -host=* | --host=* | --hos=* | --ho=*)
827 host_alias=$ac_optarg ;;
828
829 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
830 ac_prev=htmldir ;;
831 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
832 | --ht=*)
833 htmldir=$ac_optarg ;;
834
835 -includedir | --includedir | --includedi | --included | --include \
836 | --includ | --inclu | --incl | --inc)
837 ac_prev=includedir ;;
838 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
839 | --includ=* | --inclu=* | --incl=* | --inc=*)
840 includedir=$ac_optarg ;;
841
842 -infodir | --infodir | --infodi | --infod | --info | --inf)
843 ac_prev=infodir ;;
844 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
845 infodir=$ac_optarg ;;
846
847 -libdir | --libdir | --libdi | --libd)
848 ac_prev=libdir ;;
849 -libdir=* | --libdir=* | --libdi=* | --libd=*)
850 libdir=$ac_optarg ;;
851
852 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
853 | --libexe | --libex | --libe)
854 ac_prev=libexecdir ;;
855 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
856 | --libexe=* | --libex=* | --libe=*)
857 libexecdir=$ac_optarg ;;
858
859 -localedir | --localedir | --localedi | --localed | --locale)
860 ac_prev=localedir ;;
861 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
862 localedir=$ac_optarg ;;
863
864 -localstatedir | --localstatedir | --localstatedi | --localstated \
865 | --localstate | --localstat | --localsta | --localst | --locals)
866 ac_prev=localstatedir ;;
867 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
868 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
869 localstatedir=$ac_optarg ;;
870
871 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
872 ac_prev=mandir ;;
873 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
874 mandir=$ac_optarg ;;
875
876 -nfp | --nfp | --nf)
877 # Obsolete; use --without-fp.
878 with_fp=no ;;
879
880 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
881 | --no-cr | --no-c | -n)
882 no_create=yes ;;
883
884 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
885 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
886 no_recursion=yes ;;
887
888 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
889 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
890 | --oldin | --oldi | --old | --ol | --o)
891 ac_prev=oldincludedir ;;
892 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
893 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
894 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
895 oldincludedir=$ac_optarg ;;
896
897 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
898 ac_prev=prefix ;;
899 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
900 prefix=$ac_optarg ;;
901
902 -program-prefix | --program-prefix | --program-prefi | --program-pref \
903 | --program-pre | --program-pr | --program-p)
904 ac_prev=program_prefix ;;
905 -program-prefix=* | --program-prefix=* | --program-prefi=* \
906 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
907 program_prefix=$ac_optarg ;;
908
909 -program-suffix | --program-suffix | --program-suffi | --program-suff \
910 | --program-suf | --program-su | --program-s)
911 ac_prev=program_suffix ;;
912 -program-suffix=* | --program-suffix=* | --program-suffi=* \
913 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
914 program_suffix=$ac_optarg ;;
915
916 -program-transform-name | --program-transform-name \
917 | --program-transform-nam | --program-transform-na \
918 | --program-transform-n | --program-transform- \
919 | --program-transform | --program-transfor \
920 | --program-transfo | --program-transf \
921 | --program-trans | --program-tran \
922 | --progr-tra | --program-tr | --program-t)
923 ac_prev=program_transform_name ;;
924 -program-transform-name=* | --program-transform-name=* \
925 | --program-transform-nam=* | --program-transform-na=* \
926 | --program-transform-n=* | --program-transform-=* \
927 | --program-transform=* | --program-transfor=* \
928 | --program-transfo=* | --program-transf=* \
929 | --program-trans=* | --program-tran=* \
930 | --progr-tra=* | --program-tr=* | --program-t=*)
931 program_transform_name=$ac_optarg ;;
932
933 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
934 ac_prev=pdfdir ;;
935 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
936 pdfdir=$ac_optarg ;;
937
938 -psdir | --psdir | --psdi | --psd | --ps)
939 ac_prev=psdir ;;
940 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
941 psdir=$ac_optarg ;;
942
943 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
944 | -silent | --silent | --silen | --sile | --sil)
945 silent=yes ;;
946
947 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
948 ac_prev=sbindir ;;
949 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
950 | --sbi=* | --sb=*)
951 sbindir=$ac_optarg ;;
952
953 -sharedstatedir | --sharedstatedir | --sharedstatedi \
954 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
955 | --sharedst | --shareds | --shared | --share | --shar \
956 | --sha | --sh)
957 ac_prev=sharedstatedir ;;
958 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
959 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
960 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
961 | --sha=* | --sh=*)
962 sharedstatedir=$ac_optarg ;;
963
964 -site | --site | --sit)
965 ac_prev=site ;;
966 -site=* | --site=* | --sit=*)
967 site=$ac_optarg ;;
968
969 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
970 ac_prev=srcdir ;;
971 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
972 srcdir=$ac_optarg ;;
973
974 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
975 | --syscon | --sysco | --sysc | --sys | --sy)
976 ac_prev=sysconfdir ;;
977 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
978 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
979 sysconfdir=$ac_optarg ;;
980
981 -target | --target | --targe | --targ | --tar | --ta | --t)
982 ac_prev=target_alias ;;
983 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
984 target_alias=$ac_optarg ;;
985
986 -v | -verbose | --verbose | --verbos | --verbo | --verb)
987 verbose=yes ;;
988
989 -version | --version | --versio | --versi | --vers | -V)
990 ac_init_version=: ;;
991
992 -with-* | --with-*)
993 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
994 # Reject names that are not valid shell variable names.
995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996 as_fn_error "invalid package name: $ac_useropt"
997 ac_useropt_orig=$ac_useropt
998 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
999 case $ac_user_opts in
1000 *"
1001 "with_$ac_useropt"
1002 "*) ;;
1003 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1004 ac_unrecognized_sep=', ';;
1005 esac
1006 eval with_$ac_useropt=\$ac_optarg ;;
1007
1008 -without-* | --without-*)
1009 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1010 # Reject names that are not valid shell variable names.
1011 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1012 as_fn_error "invalid package name: $ac_useropt"
1013 ac_useropt_orig=$ac_useropt
1014 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015 case $ac_user_opts in
1016 *"
1017 "with_$ac_useropt"
1018 "*) ;;
1019 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1020 ac_unrecognized_sep=', ';;
1021 esac
1022 eval with_$ac_useropt=no ;;
1023
1024 --x)
1025 # Obsolete; use --with-x.
1026 with_x=yes ;;
1027
1028 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1029 | --x-incl | --x-inc | --x-in | --x-i)
1030 ac_prev=x_includes ;;
1031 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1032 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1033 x_includes=$ac_optarg ;;
1034
1035 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1036 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1037 ac_prev=x_libraries ;;
1038 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1039 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1040 x_libraries=$ac_optarg ;;
1041
1042 -*) as_fn_error "unrecognized option: \`$ac_option'
1043 Try \`$0 --help' for more information."
1044 ;;
1045
1046 *=*)
1047 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1048 # Reject names that are not valid shell variable names.
1049 case $ac_envvar in #(
1050 '' | [0-9]* | *[!_$as_cr_alnum]* )
1051 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1052 esac
1053 eval $ac_envvar=\$ac_optarg
1054 export $ac_envvar ;;
1055
1056 *)
1057 # FIXME: should be removed in autoconf 3.0.
1058 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1059 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1060 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1061 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1062 ;;
1063
1064 esac
1065 done
1066
1067 if test -n "$ac_prev"; then
1068 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1069 as_fn_error "missing argument to $ac_option"
1070 fi
1071
1072 if test -n "$ac_unrecognized_opts"; then
1073 case $enable_option_checking in
1074 no) ;;
1075 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1076 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1077 esac
1078 fi
1079
1080 # Check all directory arguments for consistency.
1081 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1082 datadir sysconfdir sharedstatedir localstatedir includedir \
1083 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1084 libdir localedir mandir
1085 do
1086 eval ac_val=\$$ac_var
1087 # Remove trailing slashes.
1088 case $ac_val in
1089 */ )
1090 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1091 eval $ac_var=\$ac_val;;
1092 esac
1093 # Be sure to have absolute directory names.
1094 case $ac_val in
1095 [\\/$]* | ?:[\\/]* ) continue;;
1096 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1097 esac
1098 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1099 done
1100
1101 # There might be people who depend on the old broken behavior: `$host'
1102 # used to hold the argument of --host etc.
1103 # FIXME: To remove some day.
1104 build=$build_alias
1105 host=$host_alias
1106 target=$target_alias
1107
1108 # FIXME: To remove some day.
1109 if test "x$host_alias" != x; then
1110 if test "x$build_alias" = x; then
1111 cross_compiling=maybe
1112 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1113 If a cross compiler is detected then cross compile mode will be used." >&2
1114 elif test "x$build_alias" != "x$host_alias"; then
1115 cross_compiling=yes
1116 fi
1117 fi
1118
1119 ac_tool_prefix=
1120 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1121
1122 test "$silent" = yes && exec 6>/dev/null
1123
1124
1125 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1126 ac_ls_di=`ls -di .` &&
1127 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1128 as_fn_error "working directory cannot be determined"
1129 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1130 as_fn_error "pwd does not report name of working directory"
1131
1132
1133 # Find the source files, if location was not specified.
1134 if test -z "$srcdir"; then
1135 ac_srcdir_defaulted=yes
1136 # Try the directory containing this script, then the parent directory.
1137 ac_confdir=`$as_dirname -- "$as_myself" ||
1138 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1139 X"$as_myself" : 'X\(//\)[^/]' \| \
1140 X"$as_myself" : 'X\(//\)$' \| \
1141 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1142 $as_echo X"$as_myself" |
1143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1144 s//\1/
1145 q
1146 }
1147 /^X\(\/\/\)[^/].*/{
1148 s//\1/
1149 q
1150 }
1151 /^X\(\/\/\)$/{
1152 s//\1/
1153 q
1154 }
1155 /^X\(\/\).*/{
1156 s//\1/
1157 q
1158 }
1159 s/.*/./; q'`
1160 srcdir=$ac_confdir
1161 if test ! -r "$srcdir/$ac_unique_file"; then
1162 srcdir=..
1163 fi
1164 else
1165 ac_srcdir_defaulted=no
1166 fi
1167 if test ! -r "$srcdir/$ac_unique_file"; then
1168 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1169 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1170 fi
1171 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1172 ac_abs_confdir=`(
1173 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1174 pwd)`
1175 # When building in place, set srcdir=.
1176 if test "$ac_abs_confdir" = "$ac_pwd"; then
1177 srcdir=.
1178 fi
1179 # Remove unnecessary trailing slashes from srcdir.
1180 # Double slashes in file names in object file debugging info
1181 # mess up M-x gdb in Emacs.
1182 case $srcdir in
1183 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1184 esac
1185 for ac_var in $ac_precious_vars; do
1186 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1187 eval ac_env_${ac_var}_value=\$${ac_var}
1188 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1189 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1190 done
1191
1192 #
1193 # Report the --help message.
1194 #
1195 if test "$ac_init_help" = "long"; then
1196 # Omit some internal or obsolete options to make the list less imposing.
1197 # This message is too long to be a string in the A/UX 3.1 sh.
1198 cat <<_ACEOF
1199 \`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1200
1201 Usage: $0 [OPTION]... [VAR=VALUE]...
1202
1203 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1204 VAR=VALUE. See below for descriptions of some of the useful variables.
1205
1206 Defaults for the options are specified in brackets.
1207
1208 Configuration:
1209 -h, --help display this help and exit
1210 --help=short display options specific to this package
1211 --help=recursive display the short help of all the included packages
1212 -V, --version display version information and exit
1213 -q, --quiet, --silent do not print \`checking...' messages
1214 --cache-file=FILE cache test results in FILE [disabled]
1215 -C, --config-cache alias for \`--cache-file=config.cache'
1216 -n, --no-create do not create output files
1217 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1218
1219 Installation directories:
1220 --prefix=PREFIX install architecture-independent files in PREFIX
1221 [$ac_default_prefix]
1222 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1223 [PREFIX]
1224
1225 By default, \`make install' will install all the files in
1226 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1227 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1228 for instance \`--prefix=\$HOME'.
1229
1230 For better control, use the options below.
1231
1232 Fine tuning of the installation directories:
1233 --bindir=DIR user executables [EPREFIX/bin]
1234 --sbindir=DIR system admin executables [EPREFIX/sbin]
1235 --libexecdir=DIR program executables [EPREFIX/libexec]
1236 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1237 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1238 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1239 --libdir=DIR object code libraries [EPREFIX/lib]
1240 --includedir=DIR C header files [PREFIX/include]
1241 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1242 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1243 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1244 --infodir=DIR info documentation [DATAROOTDIR/info]
1245 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1246 --mandir=DIR man documentation [DATAROOTDIR/man]
1247 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1248 --htmldir=DIR html documentation [DOCDIR]
1249 --dvidir=DIR dvi documentation [DOCDIR]
1250 --pdfdir=DIR pdf documentation [DOCDIR]
1251 --psdir=DIR ps documentation [DOCDIR]
1252 _ACEOF
1253
1254 cat <<\_ACEOF
1255
1256 System types:
1257 --build=BUILD configure for building on BUILD [guessed]
1258 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1259 _ACEOF
1260 fi
1261
1262 if test -n "$ac_init_help"; then
1263 case $ac_init_help in
1264 short | recursive ) echo "Configuration of Cycript 0.9:";;
1265 esac
1266 cat <<\_ACEOF
1267
1268 Optional Features:
1269 --disable-option-checking ignore unrecognized --enable/--with options
1270 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1271 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1272 --disable-rpath do not hardcode runtime library paths
1273
1274 Optional Packages:
1275 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1276 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1277 --with-gnu-ld assume the C compiler uses GNU ld default=no
1278 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1279 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1280
1281 Some influential environment variables:
1282 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1283 the first program found out of: `bison -y', `byacc', `yacc'.
1284 YFLAGS The list of arguments that will be passed by default to $YACC.
1285 This script will default YFLAGS to the empty string to avoid a
1286 default value of `-d' given by some make applications.
1287 CC C compiler command
1288 CFLAGS C compiler flags
1289 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1290 nonstandard directory <lib dir>
1291 LIBS libraries to pass to the linker, e.g. -l<library>
1292 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1293 you have headers in a nonstandard directory <include dir>
1294 CXX C++ compiler command
1295 CXXFLAGS C++ compiler flags
1296 PKG_CONFIG path to pkg-config utility
1297 WEBKIT_CFLAGS
1298 C compiler flags for WEBKIT, overriding pkg-config
1299 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
1300 LIBFFI_CFLAGS
1301 C compiler flags for LIBFFI, overriding pkg-config
1302 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
1303
1304 Use these variables to override the choices made by `configure' or to help
1305 it to find libraries and programs with nonstandard names/locations.
1306
1307 Report bugs to <saurik@saurik.com>.
1308 Cycript home page: <http://www.cycript.org/>.
1309 _ACEOF
1310 ac_status=$?
1311 fi
1312
1313 if test "$ac_init_help" = "recursive"; then
1314 # If there are subdirs, report their specific --help.
1315 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1316 test -d "$ac_dir" ||
1317 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1318 continue
1319 ac_builddir=.
1320
1321 case "$ac_dir" in
1322 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1323 *)
1324 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1325 # A ".." for each directory in $ac_dir_suffix.
1326 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1327 case $ac_top_builddir_sub in
1328 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1329 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1330 esac ;;
1331 esac
1332 ac_abs_top_builddir=$ac_pwd
1333 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1334 # for backward compatibility:
1335 ac_top_builddir=$ac_top_build_prefix
1336
1337 case $srcdir in
1338 .) # We are building in place.
1339 ac_srcdir=.
1340 ac_top_srcdir=$ac_top_builddir_sub
1341 ac_abs_top_srcdir=$ac_pwd ;;
1342 [\\/]* | ?:[\\/]* ) # Absolute name.
1343 ac_srcdir=$srcdir$ac_dir_suffix;
1344 ac_top_srcdir=$srcdir
1345 ac_abs_top_srcdir=$srcdir ;;
1346 *) # Relative name.
1347 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1348 ac_top_srcdir=$ac_top_build_prefix$srcdir
1349 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1350 esac
1351 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1352
1353 cd "$ac_dir" || { ac_status=$?; continue; }
1354 # Check for guested configure.
1355 if test -f "$ac_srcdir/configure.gnu"; then
1356 echo &&
1357 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1358 elif test -f "$ac_srcdir/configure"; then
1359 echo &&
1360 $SHELL "$ac_srcdir/configure" --help=recursive
1361 else
1362 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1363 fi || ac_status=$?
1364 cd "$ac_pwd" || { ac_status=$?; break; }
1365 done
1366 fi
1367
1368 test -n "$ac_init_help" && exit $ac_status
1369 if $ac_init_version; then
1370 cat <<\_ACEOF
1371 Cycript configure 0.9
1372 generated by GNU Autoconf 2.64
1373
1374 Copyright (C) 2009 Free Software Foundation, Inc.
1375 This configure script is free software; the Free Software Foundation
1376 gives unlimited permission to copy, distribute and modify it.
1377 _ACEOF
1378 exit
1379 fi
1380
1381 ## ------------------------ ##
1382 ## Autoconf initialization. ##
1383 ## ------------------------ ##
1384
1385 # ac_fn_c_try_compile LINENO
1386 # --------------------------
1387 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1388 ac_fn_c_try_compile ()
1389 {
1390 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1391 rm -f conftest.$ac_objext
1392 if { { ac_try="$ac_compile"
1393 case "(($ac_try" in
1394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1395 *) ac_try_echo=$ac_try;;
1396 esac
1397 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1398 $as_echo "$ac_try_echo"; } >&5
1399 (eval "$ac_compile") 2>conftest.err
1400 ac_status=$?
1401 if test -s conftest.err; then
1402 grep -v '^ *+' conftest.err >conftest.er1
1403 cat conftest.er1 >&5
1404 mv -f conftest.er1 conftest.err
1405 fi
1406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1407 test $ac_status = 0; } && {
1408 test -z "$ac_c_werror_flag" ||
1409 test ! -s conftest.err
1410 } && test -s conftest.$ac_objext; then :
1411 ac_retval=0
1412 else
1413 $as_echo "$as_me: failed program was:" >&5
1414 sed 's/^/| /' conftest.$ac_ext >&5
1415
1416 ac_retval=1
1417 fi
1418 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1419 return $ac_retval
1420
1421 } # ac_fn_c_try_compile
1422
1423 # ac_fn_c_try_link LINENO
1424 # -----------------------
1425 # Try to link conftest.$ac_ext, and return whether this succeeded.
1426 ac_fn_c_try_link ()
1427 {
1428 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1429 rm -f conftest.$ac_objext conftest$ac_exeext
1430 if { { ac_try="$ac_link"
1431 case "(($ac_try" in
1432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1433 *) ac_try_echo=$ac_try;;
1434 esac
1435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1436 $as_echo "$ac_try_echo"; } >&5
1437 (eval "$ac_link") 2>conftest.err
1438 ac_status=$?
1439 if test -s conftest.err; then
1440 grep -v '^ *+' conftest.err >conftest.er1
1441 cat conftest.er1 >&5
1442 mv -f conftest.er1 conftest.err
1443 fi
1444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1445 test $ac_status = 0; } && {
1446 test -z "$ac_c_werror_flag" ||
1447 test ! -s conftest.err
1448 } && test -s conftest$ac_exeext && {
1449 test "$cross_compiling" = yes ||
1450 $as_test_x conftest$ac_exeext
1451 }; then :
1452 ac_retval=0
1453 else
1454 $as_echo "$as_me: failed program was:" >&5
1455 sed 's/^/| /' conftest.$ac_ext >&5
1456
1457 ac_retval=1
1458 fi
1459 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1460 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1461 # interfere with the next link command; also delete a directory that is
1462 # left behind by Apple's compiler. We do this before executing the actions.
1463 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1464 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1465 return $ac_retval
1466
1467 } # ac_fn_c_try_link
1468
1469 # ac_fn_cxx_try_compile LINENO
1470 # ----------------------------
1471 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1472 ac_fn_cxx_try_compile ()
1473 {
1474 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1475 rm -f conftest.$ac_objext
1476 if { { ac_try="$ac_compile"
1477 case "(($ac_try" in
1478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1479 *) ac_try_echo=$ac_try;;
1480 esac
1481 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1482 $as_echo "$ac_try_echo"; } >&5
1483 (eval "$ac_compile") 2>conftest.err
1484 ac_status=$?
1485 if test -s conftest.err; then
1486 grep -v '^ *+' conftest.err >conftest.er1
1487 cat conftest.er1 >&5
1488 mv -f conftest.er1 conftest.err
1489 fi
1490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1491 test $ac_status = 0; } && {
1492 test -z "$ac_cxx_werror_flag" ||
1493 test ! -s conftest.err
1494 } && test -s conftest.$ac_objext; then :
1495 ac_retval=0
1496 else
1497 $as_echo "$as_me: failed program was:" >&5
1498 sed 's/^/| /' conftest.$ac_ext >&5
1499
1500 ac_retval=1
1501 fi
1502 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1503 return $ac_retval
1504
1505 } # ac_fn_cxx_try_compile
1506
1507 # ac_fn_c_try_run LINENO
1508 # ----------------------
1509 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1510 # that executables *can* be run.
1511 ac_fn_c_try_run ()
1512 {
1513 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1514 if { { ac_try="$ac_link"
1515 case "(($ac_try" in
1516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1517 *) ac_try_echo=$ac_try;;
1518 esac
1519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1520 $as_echo "$ac_try_echo"; } >&5
1521 (eval "$ac_link") 2>&5
1522 ac_status=$?
1523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1524 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1525 { { case "(($ac_try" in
1526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1527 *) ac_try_echo=$ac_try;;
1528 esac
1529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1530 $as_echo "$ac_try_echo"; } >&5
1531 (eval "$ac_try") 2>&5
1532 ac_status=$?
1533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1534 test $ac_status = 0; }; }; then :
1535 ac_retval=0
1536 else
1537 $as_echo "$as_me: program exited with status $ac_status" >&5
1538 $as_echo "$as_me: failed program was:" >&5
1539 sed 's/^/| /' conftest.$ac_ext >&5
1540
1541 ac_retval=$ac_status
1542 fi
1543 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1544 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1545 return $ac_retval
1546
1547 } # ac_fn_c_try_run
1548 cat >config.log <<_ACEOF
1549 This file contains any messages produced by compilers while
1550 running configure, to aid debugging if configure makes a mistake.
1551
1552 It was created by Cycript $as_me 0.9, which was
1553 generated by GNU Autoconf 2.64. Invocation command line was
1554
1555 $ $0 $@
1556
1557 _ACEOF
1558 exec 5>>config.log
1559 {
1560 cat <<_ASUNAME
1561 ## --------- ##
1562 ## Platform. ##
1563 ## --------- ##
1564
1565 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1566 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1567 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1568 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1569 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1570
1571 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1572 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1573
1574 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1575 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1576 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1577 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1578 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1579 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1580 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1581
1582 _ASUNAME
1583
1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585 for as_dir in $PATH
1586 do
1587 IFS=$as_save_IFS
1588 test -z "$as_dir" && as_dir=.
1589 $as_echo "PATH: $as_dir"
1590 done
1591 IFS=$as_save_IFS
1592
1593 } >&5
1594
1595 cat >&5 <<_ACEOF
1596
1597
1598 ## ----------- ##
1599 ## Core tests. ##
1600 ## ----------- ##
1601
1602 _ACEOF
1603
1604
1605 # Keep a trace of the command line.
1606 # Strip out --no-create and --no-recursion so they do not pile up.
1607 # Strip out --silent because we don't want to record it for future runs.
1608 # Also quote any args containing shell meta-characters.
1609 # Make two passes to allow for proper duplicate-argument suppression.
1610 ac_configure_args=
1611 ac_configure_args0=
1612 ac_configure_args1=
1613 ac_must_keep_next=false
1614 for ac_pass in 1 2
1615 do
1616 for ac_arg
1617 do
1618 case $ac_arg in
1619 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1620 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1621 | -silent | --silent | --silen | --sile | --sil)
1622 continue ;;
1623 *\'*)
1624 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1625 esac
1626 case $ac_pass in
1627 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1628 2)
1629 as_fn_append ac_configure_args1 " '$ac_arg'"
1630 if test $ac_must_keep_next = true; then
1631 ac_must_keep_next=false # Got value, back to normal.
1632 else
1633 case $ac_arg in
1634 *=* | --config-cache | -C | -disable-* | --disable-* \
1635 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1636 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1637 | -with-* | --with-* | -without-* | --without-* | --x)
1638 case "$ac_configure_args0 " in
1639 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1640 esac
1641 ;;
1642 -* ) ac_must_keep_next=true ;;
1643 esac
1644 fi
1645 as_fn_append ac_configure_args " '$ac_arg'"
1646 ;;
1647 esac
1648 done
1649 done
1650 { ac_configure_args0=; unset ac_configure_args0;}
1651 { ac_configure_args1=; unset ac_configure_args1;}
1652
1653 # When interrupted or exit'd, cleanup temporary files, and complete
1654 # config.log. We remove comments because anyway the quotes in there
1655 # would cause problems or look ugly.
1656 # WARNING: Use '\'' to represent an apostrophe within the trap.
1657 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1658 trap 'exit_status=$?
1659 # Save into config.log some information that might help in debugging.
1660 {
1661 echo
1662
1663 cat <<\_ASBOX
1664 ## ---------------- ##
1665 ## Cache variables. ##
1666 ## ---------------- ##
1667 _ASBOX
1668 echo
1669 # The following way of writing the cache mishandles newlines in values,
1670 (
1671 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1672 eval ac_val=\$$ac_var
1673 case $ac_val in #(
1674 *${as_nl}*)
1675 case $ac_var in #(
1676 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1677 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1678 esac
1679 case $ac_var in #(
1680 _ | IFS | as_nl) ;; #(
1681 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1682 *) { eval $ac_var=; unset $ac_var;} ;;
1683 esac ;;
1684 esac
1685 done
1686 (set) 2>&1 |
1687 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1688 *${as_nl}ac_space=\ *)
1689 sed -n \
1690 "s/'\''/'\''\\\\'\'''\''/g;
1691 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1692 ;; #(
1693 *)
1694 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1695 ;;
1696 esac |
1697 sort
1698 )
1699 echo
1700
1701 cat <<\_ASBOX
1702 ## ----------------- ##
1703 ## Output variables. ##
1704 ## ----------------- ##
1705 _ASBOX
1706 echo
1707 for ac_var in $ac_subst_vars
1708 do
1709 eval ac_val=\$$ac_var
1710 case $ac_val in
1711 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1712 esac
1713 $as_echo "$ac_var='\''$ac_val'\''"
1714 done | sort
1715 echo
1716
1717 if test -n "$ac_subst_files"; then
1718 cat <<\_ASBOX
1719 ## ------------------- ##
1720 ## File substitutions. ##
1721 ## ------------------- ##
1722 _ASBOX
1723 echo
1724 for ac_var in $ac_subst_files
1725 do
1726 eval ac_val=\$$ac_var
1727 case $ac_val in
1728 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1729 esac
1730 $as_echo "$ac_var='\''$ac_val'\''"
1731 done | sort
1732 echo
1733 fi
1734
1735 if test -s confdefs.h; then
1736 cat <<\_ASBOX
1737 ## ----------- ##
1738 ## confdefs.h. ##
1739 ## ----------- ##
1740 _ASBOX
1741 echo
1742 cat confdefs.h
1743 echo
1744 fi
1745 test "$ac_signal" != 0 &&
1746 $as_echo "$as_me: caught signal $ac_signal"
1747 $as_echo "$as_me: exit $exit_status"
1748 } >&5
1749 rm -f core *.core core.conftest.* &&
1750 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1751 exit $exit_status
1752 ' 0
1753 for ac_signal in 1 2 13 15; do
1754 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1755 done
1756 ac_signal=0
1757
1758 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1759 rm -f -r conftest* confdefs.h
1760
1761 $as_echo "/* confdefs.h */" > confdefs.h
1762
1763 # Predefined preprocessor variables.
1764
1765 cat >>confdefs.h <<_ACEOF
1766 #define PACKAGE_NAME "$PACKAGE_NAME"
1767 _ACEOF
1768
1769 cat >>confdefs.h <<_ACEOF
1770 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1771 _ACEOF
1772
1773 cat >>confdefs.h <<_ACEOF
1774 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1775 _ACEOF
1776
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_STRING "$PACKAGE_STRING"
1779 _ACEOF
1780
1781 cat >>confdefs.h <<_ACEOF
1782 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1783 _ACEOF
1784
1785 cat >>confdefs.h <<_ACEOF
1786 #define PACKAGE_URL "$PACKAGE_URL"
1787 _ACEOF
1788
1789
1790 # Let the site file select an alternate cache file if it wants to.
1791 # Prefer an explicitly selected file to automatically selected ones.
1792 ac_site_file1=NONE
1793 ac_site_file2=NONE
1794 if test -n "$CONFIG_SITE"; then
1795 ac_site_file1=$CONFIG_SITE
1796 elif test "x$prefix" != xNONE; then
1797 ac_site_file1=$prefix/share/config.site
1798 ac_site_file2=$prefix/etc/config.site
1799 else
1800 ac_site_file1=$ac_default_prefix/share/config.site
1801 ac_site_file2=$ac_default_prefix/etc/config.site
1802 fi
1803 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1804 do
1805 test "x$ac_site_file" = xNONE && continue
1806 if test -r "$ac_site_file"; then
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1808 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1809 sed 's/^/| /' "$ac_site_file" >&5
1810 . "$ac_site_file"
1811 fi
1812 done
1813
1814 if test -r "$cache_file"; then
1815 # Some versions of bash will fail to source /dev/null (special
1816 # files actually), so we avoid doing that.
1817 if test -f "$cache_file"; then
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1819 $as_echo "$as_me: loading cache $cache_file" >&6;}
1820 case $cache_file in
1821 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1822 *) . "./$cache_file";;
1823 esac
1824 fi
1825 else
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1827 $as_echo "$as_me: creating cache $cache_file" >&6;}
1828 >$cache_file
1829 fi
1830
1831 # Check that the precious variables saved in the cache have kept the same
1832 # value.
1833 ac_cache_corrupted=false
1834 for ac_var in $ac_precious_vars; do
1835 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1836 eval ac_new_set=\$ac_env_${ac_var}_set
1837 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1838 eval ac_new_val=\$ac_env_${ac_var}_value
1839 case $ac_old_set,$ac_new_set in
1840 set,)
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1842 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1843 ac_cache_corrupted=: ;;
1844 ,set)
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1846 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1847 ac_cache_corrupted=: ;;
1848 ,);;
1849 *)
1850 if test "x$ac_old_val" != "x$ac_new_val"; then
1851 # differences in whitespace do not lead to failure.
1852 ac_old_val_w=`echo x $ac_old_val`
1853 ac_new_val_w=`echo x $ac_new_val`
1854 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1856 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1857 ac_cache_corrupted=:
1858 else
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1860 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1861 eval $ac_var=\$ac_old_val
1862 fi
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1864 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1866 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1867 fi;;
1868 esac
1869 # Pass precious variables to config.status.
1870 if test "$ac_new_set" = set; then
1871 case $ac_new_val in
1872 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1873 *) ac_arg=$ac_var=$ac_new_val ;;
1874 esac
1875 case " $ac_configure_args " in
1876 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1877 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1878 esac
1879 fi
1880 done
1881 if $ac_cache_corrupted; then
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1885 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1886 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1887 fi
1888 ## -------------------- ##
1889 ## Main body of script. ##
1890 ## -------------------- ##
1891
1892 ac_ext=c
1893 ac_cpp='$CPP $CPPFLAGS'
1894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1897
1898
1899
1900 for ac_prog in 'bison -y' byacc
1901 do
1902 # Extract the first word of "$ac_prog", so it can be a program name with args.
1903 set dummy $ac_prog; ac_word=$2
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1905 $as_echo_n "checking for $ac_word... " >&6; }
1906 if test "${ac_cv_prog_YACC+set}" = set; then :
1907 $as_echo_n "(cached) " >&6
1908 else
1909 if test -n "$YACC"; then
1910 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1911 else
1912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913 for as_dir in $PATH
1914 do
1915 IFS=$as_save_IFS
1916 test -z "$as_dir" && as_dir=.
1917 for ac_exec_ext in '' $ac_executable_extensions; do
1918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1919 ac_cv_prog_YACC="$ac_prog"
1920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1921 break 2
1922 fi
1923 done
1924 done
1925 IFS=$as_save_IFS
1926
1927 fi
1928 fi
1929 YACC=$ac_cv_prog_YACC
1930 if test -n "$YACC"; then
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
1932 $as_echo "$YACC" >&6; }
1933 else
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1935 $as_echo "no" >&6; }
1936 fi
1937
1938
1939 test -n "$YACC" && break
1940 done
1941 test -n "$YACC" || YACC="yacc"
1942
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
1944 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
1945 if test "${ac_cv_path_SED+set}" = set; then :
1946 $as_echo_n "(cached) " >&6
1947 else
1948 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
1949 for ac_i in 1 2 3 4 5 6 7; do
1950 ac_script="$ac_script$as_nl$ac_script"
1951 done
1952 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
1953 { ac_script=; unset ac_script;}
1954 if test -z "$SED"; then
1955 ac_path_SED_found=false
1956 # Loop through the user's path and test for each of PROGNAME-LIST
1957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1958 for as_dir in $PATH
1959 do
1960 IFS=$as_save_IFS
1961 test -z "$as_dir" && as_dir=.
1962 for ac_prog in sed gsed; do
1963 for ac_exec_ext in '' $ac_executable_extensions; do
1964 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
1965 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
1966 # Check for GNU ac_path_SED and select it if it is found.
1967 # Check for GNU $ac_path_SED
1968 case `"$ac_path_SED" --version 2>&1` in
1969 *GNU*)
1970 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
1971 *)
1972 ac_count=0
1973 $as_echo_n 0123456789 >"conftest.in"
1974 while :
1975 do
1976 cat "conftest.in" "conftest.in" >"conftest.tmp"
1977 mv "conftest.tmp" "conftest.in"
1978 cp "conftest.in" "conftest.nl"
1979 $as_echo '' >> "conftest.nl"
1980 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
1981 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
1982 as_fn_arith $ac_count + 1 && ac_count=$as_val
1983 if test $ac_count -gt ${ac_path_SED_max-0}; then
1984 # Best one so far, save it but keep looking for a better one
1985 ac_cv_path_SED="$ac_path_SED"
1986 ac_path_SED_max=$ac_count
1987 fi
1988 # 10*(2^10) chars as input seems more than enough
1989 test $ac_count -gt 10 && break
1990 done
1991 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
1992 esac
1993
1994 $ac_path_SED_found && break 3
1995 done
1996 done
1997 done
1998 IFS=$as_save_IFS
1999 if test -z "$ac_cv_path_SED"; then
2000 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2001 fi
2002 else
2003 ac_cv_path_SED=$SED
2004 fi
2005
2006 fi
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2008 $as_echo "$ac_cv_path_SED" >&6; }
2009 SED="$ac_cv_path_SED"
2010 rm -f conftest.sed
2011
2012
2013
2014
2015
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bison is the parser generator" >&5
2017 $as_echo_n "checking if bison is the parser generator... " >&6; }
2018 if test "${ax_cv_prog_bison+set}" = set; then :
2019 $as_echo_n "(cached) " >&6
2020 else
2021
2022 if test "`echo \"$YACC\" | $SED 's,^.*\(bison\).*$,\1,'`" = "bison" ; then :
2023
2024 ax_cv_prog_bison=yes
2025
2026 else
2027
2028 ax_cv_prog_bison=no
2029
2030 fi
2031
2032 fi
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_prog_bison" >&5
2034 $as_echo "$ax_cv_prog_bison" >&6; }
2035 if test "$ax_cv_prog_bison" = yes; then :
2036
2037 :
2038
2039 BISON=`echo $YACC | $SED -e 's/ -y//'`
2040 BISON_VERSION=`$BISON -V | $SED -e 's/^bison (GNU Bison) \(.*\)$/\1/p;d'`
2041
2042
2043 else
2044
2045 :
2046 as_fn_error "You need bison 2.4 or greater" "$LINENO" 5
2047
2048 fi
2049
2050 for ac_prog in gawk mawk nawk awk
2051 do
2052 # Extract the first word of "$ac_prog", so it can be a program name with args.
2053 set dummy $ac_prog; ac_word=$2
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2055 $as_echo_n "checking for $ac_word... " >&6; }
2056 if test "${ac_cv_prog_AWK+set}" = set; then :
2057 $as_echo_n "(cached) " >&6
2058 else
2059 if test -n "$AWK"; then
2060 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2061 else
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 for as_dir in $PATH
2064 do
2065 IFS=$as_save_IFS
2066 test -z "$as_dir" && as_dir=.
2067 for ac_exec_ext in '' $ac_executable_extensions; do
2068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2069 ac_cv_prog_AWK="$ac_prog"
2070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2071 break 2
2072 fi
2073 done
2074 done
2075 IFS=$as_save_IFS
2076
2077 fi
2078 fi
2079 AWK=$ac_cv_prog_AWK
2080 if test -n "$AWK"; then
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2082 $as_echo "$AWK" >&6; }
2083 else
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2085 $as_echo "no" >&6; }
2086 fi
2087
2088
2089 test -n "$AWK" && break
2090 done
2091
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bison is >= 2.4" >&5
2093 $as_echo_n "checking if bison is >= 2.4... " >&6; }
2094
2095
2096 # Used to indicate true or false condition
2097 ax_compare_version=false
2098
2099 # Convert the two version strings to be compared into a format that
2100 # allows a simple string comparison. The end result is that a version
2101 # string of the form 1.12.5-r617 will be converted to the form
2102 # 0001001200050617. In other words, each number is zero padded to four
2103 # digits, and non digits are removed.
2104
2105 ax_compare_version_A=`echo "$BISON_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
2106 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
2107 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
2108 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
2109 -e 's/[^0-9]//g'`
2110
2111
2112 ax_compare_version_B=`echo "2.4" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
2113 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
2114 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
2115 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
2116 -e 's/[^0-9]//g'`
2117
2118
2119 ax_compare_version=`echo "x$ax_compare_version_A
2120 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"`
2121
2122
2123
2124 if test "$ax_compare_version" = "true" ; then
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2126 $as_echo "yes" >&6; }
2127 else
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2129 $as_echo "no" >&6; }
2130 as_fn_error "You need bison 2.4 or greater" "$LINENO" 5
2131
2132 fi
2133
2134
2135 ac_ext=c
2136 ac_cpp='$CPP $CPPFLAGS'
2137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2140 if test -n "$ac_tool_prefix"; then
2141 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2142 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2144 $as_echo_n "checking for $ac_word... " >&6; }
2145 if test "${ac_cv_prog_CC+set}" = set; then :
2146 $as_echo_n "(cached) " >&6
2147 else
2148 if test -n "$CC"; then
2149 ac_cv_prog_CC="$CC" # Let the user override the test.
2150 else
2151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152 for as_dir in $PATH
2153 do
2154 IFS=$as_save_IFS
2155 test -z "$as_dir" && as_dir=.
2156 for ac_exec_ext in '' $ac_executable_extensions; do
2157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2158 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2160 break 2
2161 fi
2162 done
2163 done
2164 IFS=$as_save_IFS
2165
2166 fi
2167 fi
2168 CC=$ac_cv_prog_CC
2169 if test -n "$CC"; then
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2171 $as_echo "$CC" >&6; }
2172 else
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2174 $as_echo "no" >&6; }
2175 fi
2176
2177
2178 fi
2179 if test -z "$ac_cv_prog_CC"; then
2180 ac_ct_CC=$CC
2181 # Extract the first word of "gcc", so it can be a program name with args.
2182 set dummy gcc; ac_word=$2
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2184 $as_echo_n "checking for $ac_word... " >&6; }
2185 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2186 $as_echo_n "(cached) " >&6
2187 else
2188 if test -n "$ac_ct_CC"; then
2189 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2190 else
2191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2192 for as_dir in $PATH
2193 do
2194 IFS=$as_save_IFS
2195 test -z "$as_dir" && as_dir=.
2196 for ac_exec_ext in '' $ac_executable_extensions; do
2197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2198 ac_cv_prog_ac_ct_CC="gcc"
2199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2200 break 2
2201 fi
2202 done
2203 done
2204 IFS=$as_save_IFS
2205
2206 fi
2207 fi
2208 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2209 if test -n "$ac_ct_CC"; then
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2211 $as_echo "$ac_ct_CC" >&6; }
2212 else
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2214 $as_echo "no" >&6; }
2215 fi
2216
2217 if test "x$ac_ct_CC" = x; then
2218 CC=""
2219 else
2220 case $cross_compiling:$ac_tool_warned in
2221 yes:)
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2224 ac_tool_warned=yes ;;
2225 esac
2226 CC=$ac_ct_CC
2227 fi
2228 else
2229 CC="$ac_cv_prog_CC"
2230 fi
2231
2232 if test -z "$CC"; then
2233 if test -n "$ac_tool_prefix"; then
2234 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2235 set dummy ${ac_tool_prefix}cc; ac_word=$2
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2237 $as_echo_n "checking for $ac_word... " >&6; }
2238 if test "${ac_cv_prog_CC+set}" = set; then :
2239 $as_echo_n "(cached) " >&6
2240 else
2241 if test -n "$CC"; then
2242 ac_cv_prog_CC="$CC" # Let the user override the test.
2243 else
2244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245 for as_dir in $PATH
2246 do
2247 IFS=$as_save_IFS
2248 test -z "$as_dir" && as_dir=.
2249 for ac_exec_ext in '' $ac_executable_extensions; do
2250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2251 ac_cv_prog_CC="${ac_tool_prefix}cc"
2252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2253 break 2
2254 fi
2255 done
2256 done
2257 IFS=$as_save_IFS
2258
2259 fi
2260 fi
2261 CC=$ac_cv_prog_CC
2262 if test -n "$CC"; then
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2264 $as_echo "$CC" >&6; }
2265 else
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2267 $as_echo "no" >&6; }
2268 fi
2269
2270
2271 fi
2272 fi
2273 if test -z "$CC"; then
2274 # Extract the first word of "cc", so it can be a program name with args.
2275 set dummy cc; ac_word=$2
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2277 $as_echo_n "checking for $ac_word... " >&6; }
2278 if test "${ac_cv_prog_CC+set}" = set; then :
2279 $as_echo_n "(cached) " >&6
2280 else
2281 if test -n "$CC"; then
2282 ac_cv_prog_CC="$CC" # Let the user override the test.
2283 else
2284 ac_prog_rejected=no
2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286 for as_dir in $PATH
2287 do
2288 IFS=$as_save_IFS
2289 test -z "$as_dir" && as_dir=.
2290 for ac_exec_ext in '' $ac_executable_extensions; do
2291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2292 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2293 ac_prog_rejected=yes
2294 continue
2295 fi
2296 ac_cv_prog_CC="cc"
2297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2298 break 2
2299 fi
2300 done
2301 done
2302 IFS=$as_save_IFS
2303
2304 if test $ac_prog_rejected = yes; then
2305 # We found a bogon in the path, so make sure we never use it.
2306 set dummy $ac_cv_prog_CC
2307 shift
2308 if test $# != 0; then
2309 # We chose a different compiler from the bogus one.
2310 # However, it has the same basename, so the bogon will be chosen
2311 # first if we set CC to just the basename; use the full file name.
2312 shift
2313 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2314 fi
2315 fi
2316 fi
2317 fi
2318 CC=$ac_cv_prog_CC
2319 if test -n "$CC"; then
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2321 $as_echo "$CC" >&6; }
2322 else
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2324 $as_echo "no" >&6; }
2325 fi
2326
2327
2328 fi
2329 if test -z "$CC"; then
2330 if test -n "$ac_tool_prefix"; then
2331 for ac_prog in cl.exe
2332 do
2333 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2334 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2336 $as_echo_n "checking for $ac_word... " >&6; }
2337 if test "${ac_cv_prog_CC+set}" = set; then :
2338 $as_echo_n "(cached) " >&6
2339 else
2340 if test -n "$CC"; then
2341 ac_cv_prog_CC="$CC" # Let the user override the test.
2342 else
2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344 for as_dir in $PATH
2345 do
2346 IFS=$as_save_IFS
2347 test -z "$as_dir" && as_dir=.
2348 for ac_exec_ext in '' $ac_executable_extensions; do
2349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2350 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2352 break 2
2353 fi
2354 done
2355 done
2356 IFS=$as_save_IFS
2357
2358 fi
2359 fi
2360 CC=$ac_cv_prog_CC
2361 if test -n "$CC"; then
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2363 $as_echo "$CC" >&6; }
2364 else
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2366 $as_echo "no" >&6; }
2367 fi
2368
2369
2370 test -n "$CC" && break
2371 done
2372 fi
2373 if test -z "$CC"; then
2374 ac_ct_CC=$CC
2375 for ac_prog in cl.exe
2376 do
2377 # Extract the first word of "$ac_prog", so it can be a program name with args.
2378 set dummy $ac_prog; ac_word=$2
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2380 $as_echo_n "checking for $ac_word... " >&6; }
2381 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2382 $as_echo_n "(cached) " >&6
2383 else
2384 if test -n "$ac_ct_CC"; then
2385 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2386 else
2387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388 for as_dir in $PATH
2389 do
2390 IFS=$as_save_IFS
2391 test -z "$as_dir" && as_dir=.
2392 for ac_exec_ext in '' $ac_executable_extensions; do
2393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2394 ac_cv_prog_ac_ct_CC="$ac_prog"
2395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2396 break 2
2397 fi
2398 done
2399 done
2400 IFS=$as_save_IFS
2401
2402 fi
2403 fi
2404 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2405 if test -n "$ac_ct_CC"; then
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2407 $as_echo "$ac_ct_CC" >&6; }
2408 else
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2410 $as_echo "no" >&6; }
2411 fi
2412
2413
2414 test -n "$ac_ct_CC" && break
2415 done
2416
2417 if test "x$ac_ct_CC" = x; then
2418 CC=""
2419 else
2420 case $cross_compiling:$ac_tool_warned in
2421 yes:)
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2424 ac_tool_warned=yes ;;
2425 esac
2426 CC=$ac_ct_CC
2427 fi
2428 fi
2429
2430 fi
2431
2432
2433 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2435 as_fn_error "no acceptable C compiler found in \$PATH
2436 See \`config.log' for more details." "$LINENO" 5; }
2437
2438 # Provide some information about the compiler.
2439 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2440 set X $ac_compile
2441 ac_compiler=$2
2442 for ac_option in --version -v -V -qversion; do
2443 { { ac_try="$ac_compiler $ac_option >&5"
2444 case "(($ac_try" in
2445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2446 *) ac_try_echo=$ac_try;;
2447 esac
2448 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2449 $as_echo "$ac_try_echo"; } >&5
2450 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2451 ac_status=$?
2452 if test -s conftest.err; then
2453 sed '10a\
2454 ... rest of stderr output deleted ...
2455 10q' conftest.err >conftest.er1
2456 cat conftest.er1 >&5
2457 rm -f conftest.er1 conftest.err
2458 fi
2459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2460 test $ac_status = 0; }
2461 done
2462
2463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2464 /* end confdefs.h. */
2465 #include <stdio.h>
2466 int
2467 main ()
2468 {
2469 FILE *f = fopen ("conftest.out", "w");
2470 return ferror (f) || fclose (f) != 0;
2471
2472 ;
2473 return 0;
2474 }
2475 _ACEOF
2476 ac_clean_files_save=$ac_clean_files
2477 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2478 # Try to create an executable without -o first, disregard a.out.
2479 # It will help us diagnose broken compilers, and finding out an intuition
2480 # of exeext.
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2482 $as_echo_n "checking for C compiler default output file name... " >&6; }
2483 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2484
2485 # The possible output files:
2486 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2487
2488 ac_rmfiles=
2489 for ac_file in $ac_files
2490 do
2491 case $ac_file in
2492 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2493 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2494 esac
2495 done
2496 rm -f $ac_rmfiles
2497
2498 if { { ac_try="$ac_link_default"
2499 case "(($ac_try" in
2500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2501 *) ac_try_echo=$ac_try;;
2502 esac
2503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2504 $as_echo "$ac_try_echo"; } >&5
2505 (eval "$ac_link_default") 2>&5
2506 ac_status=$?
2507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2508 test $ac_status = 0; }; then :
2509 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2510 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2511 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2512 # so that the user can short-circuit this test for compilers unknown to
2513 # Autoconf.
2514 for ac_file in $ac_files ''
2515 do
2516 test -f "$ac_file" || continue
2517 case $ac_file in
2518 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2519 ;;
2520 [ab].out )
2521 # We found the default executable, but exeext='' is most
2522 # certainly right.
2523 break;;
2524 *.* )
2525 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2526 then :; else
2527 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2528 fi
2529 # We set ac_cv_exeext here because the later test for it is not
2530 # safe: cross compilers may not add the suffix if given an `-o'
2531 # argument, so we may need to know it at that point already.
2532 # Even if this section looks crufty: it has the advantage of
2533 # actually working.
2534 break;;
2535 * )
2536 break;;
2537 esac
2538 done
2539 test "$ac_cv_exeext" = no && ac_cv_exeext=
2540
2541 else
2542 ac_file=''
2543 fi
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2545 $as_echo "$ac_file" >&6; }
2546 if test -z "$ac_file"; then :
2547 $as_echo "$as_me: failed program was:" >&5
2548 sed 's/^/| /' conftest.$ac_ext >&5
2549
2550 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2552 { as_fn_set_status 77
2553 as_fn_error "C compiler cannot create executables
2554 See \`config.log' for more details." "$LINENO" 5; }; }
2555 fi
2556 ac_exeext=$ac_cv_exeext
2557
2558 # Check that the compiler produces executables we can run. If not, either
2559 # the compiler is broken, or we cross compile.
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2561 $as_echo_n "checking whether the C compiler works... " >&6; }
2562 # If not cross compiling, check that we can run a simple program.
2563 if test "$cross_compiling" != yes; then
2564 if { ac_try='./$ac_file'
2565 { { case "(($ac_try" in
2566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2567 *) ac_try_echo=$ac_try;;
2568 esac
2569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2570 $as_echo "$ac_try_echo"; } >&5
2571 (eval "$ac_try") 2>&5
2572 ac_status=$?
2573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2574 test $ac_status = 0; }; }; then
2575 cross_compiling=no
2576 else
2577 if test "$cross_compiling" = maybe; then
2578 cross_compiling=yes
2579 else
2580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2582 as_fn_error "cannot run C compiled programs.
2583 If you meant to cross compile, use \`--host'.
2584 See \`config.log' for more details." "$LINENO" 5; }
2585 fi
2586 fi
2587 fi
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2589 $as_echo "yes" >&6; }
2590
2591 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2592 ac_clean_files=$ac_clean_files_save
2593 # Check that the compiler produces executables we can run. If not, either
2594 # the compiler is broken, or we cross compile.
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2596 $as_echo_n "checking whether we are cross compiling... " >&6; }
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2598 $as_echo "$cross_compiling" >&6; }
2599
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2601 $as_echo_n "checking for suffix of executables... " >&6; }
2602 if { { ac_try="$ac_link"
2603 case "(($ac_try" in
2604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2605 *) ac_try_echo=$ac_try;;
2606 esac
2607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2608 $as_echo "$ac_try_echo"; } >&5
2609 (eval "$ac_link") 2>&5
2610 ac_status=$?
2611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2612 test $ac_status = 0; }; then :
2613 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2614 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2615 # work properly (i.e., refer to `conftest.exe'), while it won't with
2616 # `rm'.
2617 for ac_file in conftest.exe conftest conftest.*; do
2618 test -f "$ac_file" || continue
2619 case $ac_file in
2620 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2621 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2622 break;;
2623 * ) break;;
2624 esac
2625 done
2626 else
2627 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2629 as_fn_error "cannot compute suffix of executables: cannot compile and link
2630 See \`config.log' for more details." "$LINENO" 5; }
2631 fi
2632 rm -f conftest$ac_cv_exeext
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2634 $as_echo "$ac_cv_exeext" >&6; }
2635
2636 rm -f conftest.$ac_ext
2637 EXEEXT=$ac_cv_exeext
2638 ac_exeext=$EXEEXT
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2640 $as_echo_n "checking for suffix of object files... " >&6; }
2641 if test "${ac_cv_objext+set}" = set; then :
2642 $as_echo_n "(cached) " >&6
2643 else
2644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2645 /* end confdefs.h. */
2646
2647 int
2648 main ()
2649 {
2650
2651 ;
2652 return 0;
2653 }
2654 _ACEOF
2655 rm -f conftest.o conftest.obj
2656 if { { ac_try="$ac_compile"
2657 case "(($ac_try" in
2658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2659 *) ac_try_echo=$ac_try;;
2660 esac
2661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2662 $as_echo "$ac_try_echo"; } >&5
2663 (eval "$ac_compile") 2>&5
2664 ac_status=$?
2665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2666 test $ac_status = 0; }; then :
2667 for ac_file in conftest.o conftest.obj conftest.*; do
2668 test -f "$ac_file" || continue;
2669 case $ac_file in
2670 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2671 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2672 break;;
2673 esac
2674 done
2675 else
2676 $as_echo "$as_me: failed program was:" >&5
2677 sed 's/^/| /' conftest.$ac_ext >&5
2678
2679 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2681 as_fn_error "cannot compute suffix of object files: cannot compile
2682 See \`config.log' for more details." "$LINENO" 5; }
2683 fi
2684 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2685 fi
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2687 $as_echo "$ac_cv_objext" >&6; }
2688 OBJEXT=$ac_cv_objext
2689 ac_objext=$OBJEXT
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2691 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2692 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2693 $as_echo_n "(cached) " >&6
2694 else
2695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2696 /* end confdefs.h. */
2697
2698 int
2699 main ()
2700 {
2701 #ifndef __GNUC__
2702 choke me
2703 #endif
2704
2705 ;
2706 return 0;
2707 }
2708 _ACEOF
2709 if ac_fn_c_try_compile "$LINENO"; then :
2710 ac_compiler_gnu=yes
2711 else
2712 ac_compiler_gnu=no
2713 fi
2714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2715 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2716
2717 fi
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2719 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2720 if test $ac_compiler_gnu = yes; then
2721 GCC=yes
2722 else
2723 GCC=
2724 fi
2725 ac_test_CFLAGS=${CFLAGS+set}
2726 ac_save_CFLAGS=$CFLAGS
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2728 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2729 if test "${ac_cv_prog_cc_g+set}" = set; then :
2730 $as_echo_n "(cached) " >&6
2731 else
2732 ac_save_c_werror_flag=$ac_c_werror_flag
2733 ac_c_werror_flag=yes
2734 ac_cv_prog_cc_g=no
2735 CFLAGS="-g"
2736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2737 /* end confdefs.h. */
2738
2739 int
2740 main ()
2741 {
2742
2743 ;
2744 return 0;
2745 }
2746 _ACEOF
2747 if ac_fn_c_try_compile "$LINENO"; then :
2748 ac_cv_prog_cc_g=yes
2749 else
2750 CFLAGS=""
2751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2752 /* end confdefs.h. */
2753
2754 int
2755 main ()
2756 {
2757
2758 ;
2759 return 0;
2760 }
2761 _ACEOF
2762 if ac_fn_c_try_compile "$LINENO"; then :
2763
2764 else
2765 ac_c_werror_flag=$ac_save_c_werror_flag
2766 CFLAGS="-g"
2767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2768 /* end confdefs.h. */
2769
2770 int
2771 main ()
2772 {
2773
2774 ;
2775 return 0;
2776 }
2777 _ACEOF
2778 if ac_fn_c_try_compile "$LINENO"; then :
2779 ac_cv_prog_cc_g=yes
2780 fi
2781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2782 fi
2783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2784 fi
2785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2786 ac_c_werror_flag=$ac_save_c_werror_flag
2787 fi
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2789 $as_echo "$ac_cv_prog_cc_g" >&6; }
2790 if test "$ac_test_CFLAGS" = set; then
2791 CFLAGS=$ac_save_CFLAGS
2792 elif test $ac_cv_prog_cc_g = yes; then
2793 if test "$GCC" = yes; then
2794 CFLAGS="-g -O2"
2795 else
2796 CFLAGS="-g"
2797 fi
2798 else
2799 if test "$GCC" = yes; then
2800 CFLAGS="-O2"
2801 else
2802 CFLAGS=
2803 fi
2804 fi
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2806 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2807 if test "${ac_cv_prog_cc_c89+set}" = set; then :
2808 $as_echo_n "(cached) " >&6
2809 else
2810 ac_cv_prog_cc_c89=no
2811 ac_save_CC=$CC
2812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2813 /* end confdefs.h. */
2814 #include <stdarg.h>
2815 #include <stdio.h>
2816 #include <sys/types.h>
2817 #include <sys/stat.h>
2818 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2819 struct buf { int x; };
2820 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2821 static char *e (p, i)
2822 char **p;
2823 int i;
2824 {
2825 return p[i];
2826 }
2827 static char *f (char * (*g) (char **, int), char **p, ...)
2828 {
2829 char *s;
2830 va_list v;
2831 va_start (v,p);
2832 s = g (p, va_arg (v,int));
2833 va_end (v);
2834 return s;
2835 }
2836
2837 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2838 function prototypes and stuff, but not '\xHH' hex character constants.
2839 These don't provoke an error unfortunately, instead are silently treated
2840 as 'x'. The following induces an error, until -std is added to get
2841 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2842 array size at least. It's necessary to write '\x00'==0 to get something
2843 that's true only with -std. */
2844 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2845
2846 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2847 inside strings and character constants. */
2848 #define FOO(x) 'x'
2849 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2850
2851 int test (int i, double x);
2852 struct s1 {int (*f) (int a);};
2853 struct s2 {int (*f) (double a);};
2854 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2855 int argc;
2856 char **argv;
2857 int
2858 main ()
2859 {
2860 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2861 ;
2862 return 0;
2863 }
2864 _ACEOF
2865 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2866 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2867 do
2868 CC="$ac_save_CC $ac_arg"
2869 if ac_fn_c_try_compile "$LINENO"; then :
2870 ac_cv_prog_cc_c89=$ac_arg
2871 fi
2872 rm -f core conftest.err conftest.$ac_objext
2873 test "x$ac_cv_prog_cc_c89" != "xno" && break
2874 done
2875 rm -f conftest.$ac_ext
2876 CC=$ac_save_CC
2877
2878 fi
2879 # AC_CACHE_VAL
2880 case "x$ac_cv_prog_cc_c89" in
2881 x)
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2883 $as_echo "none needed" >&6; } ;;
2884 xno)
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2886 $as_echo "unsupported" >&6; } ;;
2887 *)
2888 CC="$CC $ac_cv_prog_cc_c89"
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2890 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2891 esac
2892 if test "x$ac_cv_prog_cc_c89" != xno; then :
2893
2894 fi
2895
2896 ac_ext=c
2897 ac_cpp='$CPP $CPPFLAGS'
2898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2901
2902
2903 for ac_prog in flex lex
2904 do
2905 # Extract the first word of "$ac_prog", so it can be a program name with args.
2906 set dummy $ac_prog; ac_word=$2
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2908 $as_echo_n "checking for $ac_word... " >&6; }
2909 if test "${ac_cv_prog_LEX+set}" = set; then :
2910 $as_echo_n "(cached) " >&6
2911 else
2912 if test -n "$LEX"; then
2913 ac_cv_prog_LEX="$LEX" # Let the user override the test.
2914 else
2915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916 for as_dir in $PATH
2917 do
2918 IFS=$as_save_IFS
2919 test -z "$as_dir" && as_dir=.
2920 for ac_exec_ext in '' $ac_executable_extensions; do
2921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2922 ac_cv_prog_LEX="$ac_prog"
2923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2924 break 2
2925 fi
2926 done
2927 done
2928 IFS=$as_save_IFS
2929
2930 fi
2931 fi
2932 LEX=$ac_cv_prog_LEX
2933 if test -n "$LEX"; then
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
2935 $as_echo "$LEX" >&6; }
2936 else
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2938 $as_echo "no" >&6; }
2939 fi
2940
2941
2942 test -n "$LEX" && break
2943 done
2944 test -n "$LEX" || LEX=":"
2945
2946 if test "x$LEX" != "x:"; then
2947 cat >conftest.l <<_ACEOF
2948 %%
2949 a { ECHO; }
2950 b { REJECT; }
2951 c { yymore (); }
2952 d { yyless (1); }
2953 e { yyless (input () != 0); }
2954 f { unput (yytext[0]); }
2955 . { BEGIN INITIAL; }
2956 %%
2957 #ifdef YYTEXT_POINTER
2958 extern char *yytext;
2959 #endif
2960 int
2961 main (void)
2962 {
2963 return ! yylex () + ! yywrap ();
2964 }
2965 _ACEOF
2966 { { ac_try="$LEX conftest.l"
2967 case "(($ac_try" in
2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969 *) ac_try_echo=$ac_try;;
2970 esac
2971 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2972 $as_echo "$ac_try_echo"; } >&5
2973 (eval "$LEX conftest.l") 2>&5
2974 ac_status=$?
2975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2976 test $ac_status = 0; }
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
2978 $as_echo_n "checking lex output file root... " >&6; }
2979 if test "${ac_cv_prog_lex_root+set}" = set; then :
2980 $as_echo_n "(cached) " >&6
2981 else
2982
2983 if test -f lex.yy.c; then
2984 ac_cv_prog_lex_root=lex.yy
2985 elif test -f lexyy.c; then
2986 ac_cv_prog_lex_root=lexyy
2987 else
2988 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
2989 fi
2990 fi
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
2992 $as_echo "$ac_cv_prog_lex_root" >&6; }
2993 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2994
2995 if test -z "${LEXLIB+set}"; then
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
2997 $as_echo_n "checking lex library... " >&6; }
2998 if test "${ac_cv_lib_lex+set}" = set; then :
2999 $as_echo_n "(cached) " >&6
3000 else
3001
3002 ac_save_LIBS=$LIBS
3003 ac_cv_lib_lex='none needed'
3004 for ac_lib in '' -lfl -ll; do
3005 LIBS="$ac_lib $ac_save_LIBS"
3006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3007 /* end confdefs.h. */
3008 `cat $LEX_OUTPUT_ROOT.c`
3009 _ACEOF
3010 if ac_fn_c_try_link "$LINENO"; then :
3011 ac_cv_lib_lex=$ac_lib
3012 fi
3013 rm -f core conftest.err conftest.$ac_objext \
3014 conftest$ac_exeext conftest.$ac_ext
3015 test "$ac_cv_lib_lex" != 'none needed' && break
3016 done
3017 LIBS=$ac_save_LIBS
3018
3019 fi
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
3021 $as_echo "$ac_cv_lib_lex" >&6; }
3022 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
3023 fi
3024
3025
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
3027 $as_echo_n "checking whether yytext is a pointer... " >&6; }
3028 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
3029 $as_echo_n "(cached) " >&6
3030 else
3031 # POSIX says lex can declare yytext either as a pointer or an array; the
3032 # default is implementation-dependent. Figure out which it is, since
3033 # not all implementations provide the %pointer and %array declarations.
3034 ac_cv_prog_lex_yytext_pointer=no
3035 ac_save_LIBS=$LIBS
3036 LIBS="$LEXLIB $ac_save_LIBS"
3037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3038 /* end confdefs.h. */
3039 #define YYTEXT_POINTER 1
3040 `cat $LEX_OUTPUT_ROOT.c`
3041 _ACEOF
3042 if ac_fn_c_try_link "$LINENO"; then :
3043 ac_cv_prog_lex_yytext_pointer=yes
3044 fi
3045 rm -f core conftest.err conftest.$ac_objext \
3046 conftest$ac_exeext conftest.$ac_ext
3047 LIBS=$ac_save_LIBS
3048
3049 fi
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
3051 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
3052 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3053
3054 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
3055
3056 fi
3057 rm -f conftest.l $LEX_OUTPUT_ROOT.c
3058
3059 fi
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex" >&5
3061 $as_echo_n "checking for flex... " >&6; }
3062 if test "`echo \"$LEX\" | $SED 's/^.*\(flex\).*$/\1/'`" = "flex"; then :
3063
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3065 $as_echo "yes" >&6; }
3066 FLEX=$LEX
3067
3068 else
3069
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3071 $as_echo "no" >&6; }
3072 as_fn_error "You need flex" "$LINENO" 5
3073
3074 fi
3075
3076 ac_ext=cpp
3077 ac_cpp='$CXXCPP $CPPFLAGS'
3078 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3079 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3080 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3081 if test -z "$CXX"; then
3082 if test -n "$CCC"; then
3083 CXX=$CCC
3084 else
3085 if test -n "$ac_tool_prefix"; then
3086 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3087 do
3088 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3089 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3091 $as_echo_n "checking for $ac_word... " >&6; }
3092 if test "${ac_cv_prog_CXX+set}" = set; then :
3093 $as_echo_n "(cached) " >&6
3094 else
3095 if test -n "$CXX"; then
3096 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3097 else
3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099 for as_dir in $PATH
3100 do
3101 IFS=$as_save_IFS
3102 test -z "$as_dir" && as_dir=.
3103 for ac_exec_ext in '' $ac_executable_extensions; do
3104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3105 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3107 break 2
3108 fi
3109 done
3110 done
3111 IFS=$as_save_IFS
3112
3113 fi
3114 fi
3115 CXX=$ac_cv_prog_CXX
3116 if test -n "$CXX"; then
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3118 $as_echo "$CXX" >&6; }
3119 else
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121 $as_echo "no" >&6; }
3122 fi
3123
3124
3125 test -n "$CXX" && break
3126 done
3127 fi
3128 if test -z "$CXX"; then
3129 ac_ct_CXX=$CXX
3130 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3131 do
3132 # Extract the first word of "$ac_prog", so it can be a program name with args.
3133 set dummy $ac_prog; ac_word=$2
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3135 $as_echo_n "checking for $ac_word... " >&6; }
3136 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3137 $as_echo_n "(cached) " >&6
3138 else
3139 if test -n "$ac_ct_CXX"; then
3140 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3141 else
3142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3143 for as_dir in $PATH
3144 do
3145 IFS=$as_save_IFS
3146 test -z "$as_dir" && as_dir=.
3147 for ac_exec_ext in '' $ac_executable_extensions; do
3148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3149 ac_cv_prog_ac_ct_CXX="$ac_prog"
3150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3151 break 2
3152 fi
3153 done
3154 done
3155 IFS=$as_save_IFS
3156
3157 fi
3158 fi
3159 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3160 if test -n "$ac_ct_CXX"; then
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3162 $as_echo "$ac_ct_CXX" >&6; }
3163 else
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165 $as_echo "no" >&6; }
3166 fi
3167
3168
3169 test -n "$ac_ct_CXX" && break
3170 done
3171
3172 if test "x$ac_ct_CXX" = x; then
3173 CXX="g++"
3174 else
3175 case $cross_compiling:$ac_tool_warned in
3176 yes:)
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3178 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3179 ac_tool_warned=yes ;;
3180 esac
3181 CXX=$ac_ct_CXX
3182 fi
3183 fi
3184
3185 fi
3186 fi
3187 # Provide some information about the compiler.
3188 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3189 set X $ac_compile
3190 ac_compiler=$2
3191 for ac_option in --version -v -V -qversion; do
3192 { { ac_try="$ac_compiler $ac_option >&5"
3193 case "(($ac_try" in
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3196 esac
3197 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3198 $as_echo "$ac_try_echo"; } >&5
3199 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3200 ac_status=$?
3201 if test -s conftest.err; then
3202 sed '10a\
3203 ... rest of stderr output deleted ...
3204 10q' conftest.err >conftest.er1
3205 cat conftest.er1 >&5
3206 rm -f conftest.er1 conftest.err
3207 fi
3208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3209 test $ac_status = 0; }
3210 done
3211
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3213 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3214 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3215 $as_echo_n "(cached) " >&6
3216 else
3217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3218 /* end confdefs.h. */
3219
3220 int
3221 main ()
3222 {
3223 #ifndef __GNUC__
3224 choke me
3225 #endif
3226
3227 ;
3228 return 0;
3229 }
3230 _ACEOF
3231 if ac_fn_cxx_try_compile "$LINENO"; then :
3232 ac_compiler_gnu=yes
3233 else
3234 ac_compiler_gnu=no
3235 fi
3236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3237 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3238
3239 fi
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3241 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3242 if test $ac_compiler_gnu = yes; then
3243 GXX=yes
3244 else
3245 GXX=
3246 fi
3247 ac_test_CXXFLAGS=${CXXFLAGS+set}
3248 ac_save_CXXFLAGS=$CXXFLAGS
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3250 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3251 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3252 $as_echo_n "(cached) " >&6
3253 else
3254 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3255 ac_cxx_werror_flag=yes
3256 ac_cv_prog_cxx_g=no
3257 CXXFLAGS="-g"
3258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3259 /* end confdefs.h. */
3260
3261 int
3262 main ()
3263 {
3264
3265 ;
3266 return 0;
3267 }
3268 _ACEOF
3269 if ac_fn_cxx_try_compile "$LINENO"; then :
3270 ac_cv_prog_cxx_g=yes
3271 else
3272 CXXFLAGS=""
3273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3274 /* end confdefs.h. */
3275
3276 int
3277 main ()
3278 {
3279
3280 ;
3281 return 0;
3282 }
3283 _ACEOF
3284 if ac_fn_cxx_try_compile "$LINENO"; then :
3285
3286 else
3287 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3288 CXXFLAGS="-g"
3289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3290 /* end confdefs.h. */
3291
3292 int
3293 main ()
3294 {
3295
3296 ;
3297 return 0;
3298 }
3299 _ACEOF
3300 if ac_fn_cxx_try_compile "$LINENO"; then :
3301 ac_cv_prog_cxx_g=yes
3302 fi
3303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3304 fi
3305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3306 fi
3307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3308 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3309 fi
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3311 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3312 if test "$ac_test_CXXFLAGS" = set; then
3313 CXXFLAGS=$ac_save_CXXFLAGS
3314 elif test $ac_cv_prog_cxx_g = yes; then
3315 if test "$GXX" = yes; then
3316 CXXFLAGS="-g -O2"
3317 else
3318 CXXFLAGS="-g"
3319 fi
3320 else
3321 if test "$GXX" = yes; then
3322 CXXFLAGS="-O2"
3323 else
3324 CXXFLAGS=
3325 fi
3326 fi
3327 ac_ext=c
3328 ac_cpp='$CPP $CPPFLAGS'
3329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3332
3333 ac_aux_dir=
3334 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3335 for ac_t in install-sh install.sh shtool; do
3336 if test -f "$ac_dir/$ac_t"; then
3337 ac_aux_dir=$ac_dir
3338 ac_install_sh="$ac_aux_dir/$ac_t -c"
3339 break 2
3340 fi
3341 done
3342 done
3343 if test -z "$ac_aux_dir"; then
3344 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3345 fi
3346
3347 # These three variables are undocumented and unsupported,
3348 # and are intended to be withdrawn in a future Autoconf release.
3349 # They can cause serious problems if a builder's source tree is in a directory
3350 # whose full name contains unusual characters.
3351 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3352 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3353 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3354
3355
3356 # Find a good install program. We prefer a C program (faster),
3357 # so one script is as good as another. But avoid the broken or
3358 # incompatible versions:
3359 # SysV /etc/install, /usr/sbin/install
3360 # SunOS /usr/etc/install
3361 # IRIX /sbin/install
3362 # AIX /bin/install
3363 # AmigaOS /C/install, which installs bootblocks on floppy discs
3364 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3365 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3366 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3367 # OS/2's system install, which has a completely different semantic
3368 # ./install, which can be erroneously created by make from ./install.sh.
3369 # Reject install programs that cannot install multiple files.
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3371 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3372 if test -z "$INSTALL"; then
3373 if test "${ac_cv_path_install+set}" = set; then :
3374 $as_echo_n "(cached) " >&6
3375 else
3376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3377 for as_dir in $PATH
3378 do
3379 IFS=$as_save_IFS
3380 test -z "$as_dir" && as_dir=.
3381 # Account for people who put trailing slashes in PATH elements.
3382 case $as_dir/ in #((
3383 ./ | .// | /[cC]/* | \
3384 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3385 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3386 /usr/ucb/* ) ;;
3387 *)
3388 # OSF1 and SCO ODT 3.0 have their own names for install.
3389 # Don't use installbsd from OSF since it installs stuff as root
3390 # by default.
3391 for ac_prog in ginstall scoinst install; do
3392 for ac_exec_ext in '' $ac_executable_extensions; do
3393 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3394 if test $ac_prog = install &&
3395 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3396 # AIX install. It has an incompatible calling convention.
3397 :
3398 elif test $ac_prog = install &&
3399 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3400 # program-specific install script used by HP pwplus--don't use.
3401 :
3402 else
3403 rm -rf conftest.one conftest.two conftest.dir
3404 echo one > conftest.one
3405 echo two > conftest.two
3406 mkdir conftest.dir
3407 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3408 test -s conftest.one && test -s conftest.two &&
3409 test -s conftest.dir/conftest.one &&
3410 test -s conftest.dir/conftest.two
3411 then
3412 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3413 break 3
3414 fi
3415 fi
3416 fi
3417 done
3418 done
3419 ;;
3420 esac
3421
3422 done
3423 IFS=$as_save_IFS
3424
3425 rm -rf conftest.one conftest.two conftest.dir
3426
3427 fi
3428 if test "${ac_cv_path_install+set}" = set; then
3429 INSTALL=$ac_cv_path_install
3430 else
3431 # As a last resort, use the slow shell script. Don't cache a
3432 # value for INSTALL within a source directory, because that will
3433 # break other packages using the cache if that directory is
3434 # removed, or if the value is a relative name.
3435 INSTALL=$ac_install_sh
3436 fi
3437 fi
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3439 $as_echo "$INSTALL" >&6; }
3440
3441 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3442 # It thinks the first close brace ends the variable substitution.
3443 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3444
3445 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3446
3447 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3448
3449 # Make sure we can run config.sub.
3450 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3451 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3452
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3454 $as_echo_n "checking build system type... " >&6; }
3455 if test "${ac_cv_build+set}" = set; then :
3456 $as_echo_n "(cached) " >&6
3457 else
3458 ac_build_alias=$build_alias
3459 test "x$ac_build_alias" = x &&
3460 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3461 test "x$ac_build_alias" = x &&
3462 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3463 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3464 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3465
3466 fi
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3468 $as_echo "$ac_cv_build" >&6; }
3469 case $ac_cv_build in
3470 *-*-*) ;;
3471 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3472 esac
3473 build=$ac_cv_build
3474 ac_save_IFS=$IFS; IFS='-'
3475 set x $ac_cv_build
3476 shift
3477 build_cpu=$1
3478 build_vendor=$2
3479 shift; shift
3480 # Remember, the first character of IFS is used to create $*,
3481 # except with old shells:
3482 build_os=$*
3483 IFS=$ac_save_IFS
3484 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3485
3486
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3488 $as_echo_n "checking host system type... " >&6; }
3489 if test "${ac_cv_host+set}" = set; then :
3490 $as_echo_n "(cached) " >&6
3491 else
3492 if test "x$host_alias" = x; then
3493 ac_cv_host=$ac_cv_build
3494 else
3495 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3496 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3497 fi
3498
3499 fi
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3501 $as_echo "$ac_cv_host" >&6; }
3502 case $ac_cv_host in
3503 *-*-*) ;;
3504 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3505 esac
3506 host=$ac_cv_host
3507 ac_save_IFS=$IFS; IFS='-'
3508 set x $ac_cv_host
3509 shift
3510 host_cpu=$1
3511 host_vendor=$2
3512 shift; shift
3513 # Remember, the first character of IFS is used to create $*,
3514 # except with old shells:
3515 host_os=$*
3516 IFS=$ac_save_IFS
3517 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3518
3519
3520
3521 if test "X$prefix" = "XNONE"; then
3522 acl_final_prefix="$ac_default_prefix"
3523 else
3524 acl_final_prefix="$prefix"
3525 fi
3526 if test "X$exec_prefix" = "XNONE"; then
3527 acl_final_exec_prefix='${prefix}'
3528 else
3529 acl_final_exec_prefix="$exec_prefix"
3530 fi
3531 acl_save_prefix="$prefix"
3532 prefix="$acl_final_prefix"
3533 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
3534 prefix="$acl_save_prefix"
3535
3536
3537 # Check whether --with-gnu-ld was given.
3538 if test "${with_gnu_ld+set}" = set; then :
3539 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3540 else
3541 with_gnu_ld=no
3542 fi
3543
3544 # Prepare PATH_SEPARATOR.
3545 # The user is always right.
3546 if test "${PATH_SEPARATOR+set}" != set; then
3547 echo "#! /bin/sh" >conf$$.sh
3548 echo "exit 0" >>conf$$.sh
3549 chmod +x conf$$.sh
3550 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3551 PATH_SEPARATOR=';'
3552 else
3553 PATH_SEPARATOR=:
3554 fi
3555 rm -f conf$$.sh
3556 fi
3557 ac_prog=ld
3558 if test "$GCC" = yes; then
3559 # Check if gcc -print-prog-name=ld gives a path.
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
3561 $as_echo_n "checking for ld used by GCC... " >&6; }
3562 case $host in
3563 *-*-mingw*)
3564 # gcc leaves a trailing carriage return which upsets mingw
3565 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3566 *)
3567 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3568 esac
3569 case $ac_prog in
3570 # Accept absolute paths.
3571 [\\/]* | [A-Za-z]:[\\/]*)
3572 re_direlt='/[^/][^/]*/\.\./'
3573 # Canonicalize the path of ld
3574 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3575 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3576 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3577 done
3578 test -z "$LD" && LD="$ac_prog"
3579 ;;
3580 "")
3581 # If it fails, then pretend we aren't using GCC.
3582 ac_prog=ld
3583 ;;
3584 *)
3585 # If it is relative, then search for the first ld in PATH.
3586 with_gnu_ld=unknown
3587 ;;
3588 esac
3589 elif test "$with_gnu_ld" = yes; then
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3591 $as_echo_n "checking for GNU ld... " >&6; }
3592 else
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3594 $as_echo_n "checking for non-GNU ld... " >&6; }
3595 fi
3596 if test "${acl_cv_path_LD+set}" = set; then :
3597 $as_echo_n "(cached) " >&6
3598 else
3599 if test -z "$LD"; then
3600 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3601 for ac_dir in $PATH; do
3602 test -z "$ac_dir" && ac_dir=.
3603 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3604 acl_cv_path_LD="$ac_dir/$ac_prog"
3605 # Check to see if the program is GNU ld. I'd rather use --version,
3606 # but apparently some GNU ld's only accept -v.
3607 # Break only if it was the GNU/non-GNU ld that we prefer.
3608 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
3609 *GNU* | *'with BFD'*)
3610 test "$with_gnu_ld" != no && break ;;
3611 *)
3612 test "$with_gnu_ld" != yes && break ;;
3613 esac
3614 fi
3615 done
3616 IFS="$ac_save_ifs"
3617 else
3618 acl_cv_path_LD="$LD" # Let the user override the test with a path.
3619 fi
3620 fi
3621
3622 LD="$acl_cv_path_LD"
3623 if test -n "$LD"; then
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3625 $as_echo "$LD" >&6; }
3626 else
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3628 $as_echo "no" >&6; }
3629 fi
3630 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3632 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3633 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
3634 $as_echo_n "(cached) " >&6
3635 else
3636 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3637 case `$LD -v 2>&1 </dev/null` in
3638 *GNU* | *'with BFD'*)
3639 acl_cv_prog_gnu_ld=yes ;;
3640 *)
3641 acl_cv_prog_gnu_ld=no ;;
3642 esac
3643 fi
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
3645 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
3646 with_gnu_ld=$acl_cv_prog_gnu_ld
3647
3648
3649
3650
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
3652 $as_echo_n "checking for shared library run path origin... " >&6; }
3653 if test "${acl_cv_rpath+set}" = set; then :
3654 $as_echo_n "(cached) " >&6
3655 else
3656
3657 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
3658 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
3659 . ./conftest.sh
3660 rm -f ./conftest.sh
3661 acl_cv_rpath=done
3662
3663 fi
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
3665 $as_echo "$acl_cv_rpath" >&6; }
3666 wl="$acl_cv_wl"
3667 acl_libext="$acl_cv_libext"
3668 acl_shlibext="$acl_cv_shlibext"
3669 acl_libname_spec="$acl_cv_libname_spec"
3670 acl_library_names_spec="$acl_cv_library_names_spec"
3671 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
3672 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
3673 acl_hardcode_direct="$acl_cv_hardcode_direct"
3674 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
3675 # Check whether --enable-rpath was given.
3676 if test "${enable_rpath+set}" = set; then :
3677 enableval=$enable_rpath; :
3678 else
3679 enable_rpath=yes
3680 fi
3681
3682
3683
3684 acl_libdirstem=lib
3685 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
3686 if test -n "$searchpath"; then
3687 acl_save_IFS="${IFS= }"; IFS=":"
3688 for searchdir in $searchpath; do
3689 if test -d "$searchdir"; then
3690 case "$searchdir" in
3691 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
3692 *) searchdir=`cd "$searchdir" && pwd`
3693 case "$searchdir" in
3694 */lib64 ) acl_libdirstem=lib64 ;;
3695 esac ;;
3696 esac
3697 fi
3698 done
3699 IFS="$acl_save_IFS"
3700 fi
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710 use_additional=yes
3711
3712 acl_save_prefix="$prefix"
3713 prefix="$acl_final_prefix"
3714 acl_save_exec_prefix="$exec_prefix"
3715 exec_prefix="$acl_final_exec_prefix"
3716
3717 eval additional_includedir=\"$includedir\"
3718 eval additional_libdir=\"$libdir\"
3719
3720 exec_prefix="$acl_save_exec_prefix"
3721 prefix="$acl_save_prefix"
3722
3723
3724 # Check whether --with-libiconv-prefix was given.
3725 if test "${with_libiconv_prefix+set}" = set; then :
3726 withval=$with_libiconv_prefix;
3727 if test "X$withval" = "Xno"; then
3728 use_additional=no
3729 else
3730 if test "X$withval" = "X"; then
3731
3732 acl_save_prefix="$prefix"
3733 prefix="$acl_final_prefix"
3734 acl_save_exec_prefix="$exec_prefix"
3735 exec_prefix="$acl_final_exec_prefix"
3736
3737 eval additional_includedir=\"$includedir\"
3738 eval additional_libdir=\"$libdir\"
3739
3740 exec_prefix="$acl_save_exec_prefix"
3741 prefix="$acl_save_prefix"
3742
3743 else
3744 additional_includedir="$withval/include"
3745 additional_libdir="$withval/$acl_libdirstem"
3746 fi
3747 fi
3748
3749 fi
3750
3751 LIBICONV=
3752 LTLIBICONV=
3753 INCICONV=
3754 LIBICONV_PREFIX=
3755 rpathdirs=
3756 ltrpathdirs=
3757 names_already_handled=
3758 names_next_round='iconv '
3759 while test -n "$names_next_round"; do
3760 names_this_round="$names_next_round"
3761 names_next_round=
3762 for name in $names_this_round; do
3763 already_handled=
3764 for n in $names_already_handled; do
3765 if test "$n" = "$name"; then
3766 already_handled=yes
3767 break
3768 fi
3769 done
3770 if test -z "$already_handled"; then
3771 names_already_handled="$names_already_handled $name"
3772 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
3773 eval value=\"\$HAVE_LIB$uppername\"
3774 if test -n "$value"; then
3775 if test "$value" = yes; then
3776 eval value=\"\$LIB$uppername\"
3777 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
3778 eval value=\"\$LTLIB$uppername\"
3779 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
3780 else
3781 :
3782 fi
3783 else
3784 found_dir=
3785 found_la=
3786 found_so=
3787 found_a=
3788 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
3789 if test -n "$acl_shlibext"; then
3790 shrext=".$acl_shlibext" # typically: shrext=.so
3791 else
3792 shrext=
3793 fi
3794 if test $use_additional = yes; then
3795 dir="$additional_libdir"
3796 if test -n "$acl_shlibext"; then
3797 if test -f "$dir/$libname$shrext"; then
3798 found_dir="$dir"
3799 found_so="$dir/$libname$shrext"
3800 else
3801 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
3802 ver=`(cd "$dir" && \
3803 for f in "$libname$shrext".*; do echo "$f"; done \
3804 | sed -e "s,^$libname$shrext\\\\.,," \
3805 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
3806 | sed 1q ) 2>/dev/null`
3807 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
3808 found_dir="$dir"
3809 found_so="$dir/$libname$shrext.$ver"
3810 fi
3811 else
3812 eval library_names=\"$acl_library_names_spec\"
3813 for f in $library_names; do
3814 if test -f "$dir/$f"; then
3815 found_dir="$dir"
3816 found_so="$dir/$f"
3817 break
3818 fi
3819 done
3820 fi
3821 fi
3822 fi
3823 if test "X$found_dir" = "X"; then
3824 if test -f "$dir/$libname.$acl_libext"; then
3825 found_dir="$dir"
3826 found_a="$dir/$libname.$acl_libext"
3827 fi
3828 fi
3829 if test "X$found_dir" != "X"; then
3830 if test -f "$dir/$libname.la"; then
3831 found_la="$dir/$libname.la"
3832 fi
3833 fi
3834 fi
3835 if test "X$found_dir" = "X"; then
3836 for x in $LDFLAGS $LTLIBICONV; do
3837
3838 acl_save_prefix="$prefix"
3839 prefix="$acl_final_prefix"
3840 acl_save_exec_prefix="$exec_prefix"
3841 exec_prefix="$acl_final_exec_prefix"
3842 eval x=\"$x\"
3843 exec_prefix="$acl_save_exec_prefix"
3844 prefix="$acl_save_prefix"
3845
3846 case "$x" in
3847 -L*)
3848 dir=`echo "X$x" | sed -e 's/^X-L//'`
3849 if test -n "$acl_shlibext"; then
3850 if test -f "$dir/$libname$shrext"; then
3851 found_dir="$dir"
3852 found_so="$dir/$libname$shrext"
3853 else
3854 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
3855 ver=`(cd "$dir" && \
3856 for f in "$libname$shrext".*; do echo "$f"; done \
3857 | sed -e "s,^$libname$shrext\\\\.,," \
3858 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
3859 | sed 1q ) 2>/dev/null`
3860 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
3861 found_dir="$dir"
3862 found_so="$dir/$libname$shrext.$ver"
3863 fi
3864 else
3865 eval library_names=\"$acl_library_names_spec\"
3866 for f in $library_names; do
3867 if test -f "$dir/$f"; then
3868 found_dir="$dir"
3869 found_so="$dir/$f"
3870 break
3871 fi
3872 done
3873 fi
3874 fi
3875 fi
3876 if test "X$found_dir" = "X"; then
3877 if test -f "$dir/$libname.$acl_libext"; then
3878 found_dir="$dir"
3879 found_a="$dir/$libname.$acl_libext"
3880 fi
3881 fi
3882 if test "X$found_dir" != "X"; then
3883 if test -f "$dir/$libname.la"; then
3884 found_la="$dir/$libname.la"
3885 fi
3886 fi
3887 ;;
3888 esac
3889 if test "X$found_dir" != "X"; then
3890 break
3891 fi
3892 done
3893 fi
3894 if test "X$found_dir" != "X"; then
3895 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
3896 if test "X$found_so" != "X"; then
3897 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
3898 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3899 else
3900 haveit=
3901 for x in $ltrpathdirs; do
3902 if test "X$x" = "X$found_dir"; then
3903 haveit=yes
3904 break
3905 fi
3906 done
3907 if test -z "$haveit"; then
3908 ltrpathdirs="$ltrpathdirs $found_dir"
3909 fi
3910 if test "$acl_hardcode_direct" = yes; then
3911 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3912 else
3913 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
3914 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3915 haveit=
3916 for x in $rpathdirs; do
3917 if test "X$x" = "X$found_dir"; then
3918 haveit=yes
3919 break
3920 fi
3921 done
3922 if test -z "$haveit"; then
3923 rpathdirs="$rpathdirs $found_dir"
3924 fi
3925 else
3926 haveit=
3927 for x in $LDFLAGS $LIBICONV; do
3928
3929 acl_save_prefix="$prefix"
3930 prefix="$acl_final_prefix"
3931 acl_save_exec_prefix="$exec_prefix"
3932 exec_prefix="$acl_final_exec_prefix"
3933 eval x=\"$x\"
3934 exec_prefix="$acl_save_exec_prefix"
3935 prefix="$acl_save_prefix"
3936
3937 if test "X$x" = "X-L$found_dir"; then
3938 haveit=yes
3939 break
3940 fi
3941 done
3942 if test -z "$haveit"; then
3943 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
3944 fi
3945 if test "$acl_hardcode_minus_L" != no; then
3946 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
3947 else
3948 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
3949 fi
3950 fi
3951 fi
3952 fi
3953 else
3954 if test "X$found_a" != "X"; then
3955 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
3956 else
3957 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
3958 fi
3959 fi
3960 additional_includedir=
3961 case "$found_dir" in
3962 */$acl_libdirstem | */$acl_libdirstem/)
3963 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
3964 LIBICONV_PREFIX="$basedir"
3965 additional_includedir="$basedir/include"
3966 ;;
3967 esac
3968 if test "X$additional_includedir" != "X"; then
3969 if test "X$additional_includedir" != "X/usr/include"; then
3970 haveit=
3971 if test "X$additional_includedir" = "X/usr/local/include"; then
3972 if test -n "$GCC"; then
3973 case $host_os in
3974 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
3975 esac
3976 fi
3977 fi
3978 if test -z "$haveit"; then
3979 for x in $CPPFLAGS $INCICONV; do
3980
3981 acl_save_prefix="$prefix"
3982 prefix="$acl_final_prefix"
3983 acl_save_exec_prefix="$exec_prefix"
3984 exec_prefix="$acl_final_exec_prefix"
3985 eval x=\"$x\"
3986 exec_prefix="$acl_save_exec_prefix"
3987 prefix="$acl_save_prefix"
3988
3989 if test "X$x" = "X-I$additional_includedir"; then
3990 haveit=yes
3991 break
3992 fi
3993 done
3994 if test -z "$haveit"; then
3995 if test -d "$additional_includedir"; then
3996 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
3997 fi
3998 fi
3999 fi
4000 fi
4001 fi
4002 if test -n "$found_la"; then
4003 save_libdir="$libdir"
4004 case "$found_la" in
4005 */* | *\\*) . "$found_la" ;;
4006 *) . "./$found_la" ;;
4007 esac
4008 libdir="$save_libdir"
4009 for dep in $dependency_libs; do
4010 case "$dep" in
4011 -L*)
4012 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4013 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
4014 haveit=
4015 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
4016 if test -n "$GCC"; then
4017 case $host_os in
4018 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4019 esac
4020 fi
4021 fi
4022 if test -z "$haveit"; then
4023 haveit=
4024 for x in $LDFLAGS $LIBICONV; do
4025
4026 acl_save_prefix="$prefix"
4027 prefix="$acl_final_prefix"
4028 acl_save_exec_prefix="$exec_prefix"
4029 exec_prefix="$acl_final_exec_prefix"
4030 eval x=\"$x\"
4031 exec_prefix="$acl_save_exec_prefix"
4032 prefix="$acl_save_prefix"
4033
4034 if test "X$x" = "X-L$additional_libdir"; then
4035 haveit=yes
4036 break
4037 fi
4038 done
4039 if test -z "$haveit"; then
4040 if test -d "$additional_libdir"; then
4041 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
4042 fi
4043 fi
4044 haveit=
4045 for x in $LDFLAGS $LTLIBICONV; do
4046
4047 acl_save_prefix="$prefix"
4048 prefix="$acl_final_prefix"
4049 acl_save_exec_prefix="$exec_prefix"
4050 exec_prefix="$acl_final_exec_prefix"
4051 eval x=\"$x\"
4052 exec_prefix="$acl_save_exec_prefix"
4053 prefix="$acl_save_prefix"
4054
4055 if test "X$x" = "X-L$additional_libdir"; then
4056 haveit=yes
4057 break
4058 fi
4059 done
4060 if test -z "$haveit"; then
4061 if test -d "$additional_libdir"; then
4062 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
4063 fi
4064 fi
4065 fi
4066 fi
4067 ;;
4068 -R*)
4069 dir=`echo "X$dep" | sed -e 's/^X-R//'`
4070 if test "$enable_rpath" != no; then
4071 haveit=
4072 for x in $rpathdirs; do
4073 if test "X$x" = "X$dir"; then
4074 haveit=yes
4075 break
4076 fi
4077 done
4078 if test -z "$haveit"; then
4079 rpathdirs="$rpathdirs $dir"
4080 fi
4081 haveit=
4082 for x in $ltrpathdirs; do
4083 if test "X$x" = "X$dir"; then
4084 haveit=yes
4085 break
4086 fi
4087 done
4088 if test -z "$haveit"; then
4089 ltrpathdirs="$ltrpathdirs $dir"
4090 fi
4091 fi
4092 ;;
4093 -l*)
4094 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
4095 ;;
4096 *.la)
4097 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
4098 ;;
4099 *)
4100 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
4101 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
4102 ;;
4103 esac
4104 done
4105 fi
4106 else
4107 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4108 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
4109 fi
4110 fi
4111 fi
4112 done
4113 done
4114 if test "X$rpathdirs" != "X"; then
4115 if test -n "$acl_hardcode_libdir_separator"; then
4116 alldirs=
4117 for found_dir in $rpathdirs; do
4118 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
4119 done
4120 acl_save_libdir="$libdir"
4121 libdir="$alldirs"
4122 eval flag=\"$acl_hardcode_libdir_flag_spec\"
4123 libdir="$acl_save_libdir"
4124 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4125 else
4126 for found_dir in $rpathdirs; do
4127 acl_save_libdir="$libdir"
4128 libdir="$found_dir"
4129 eval flag=\"$acl_hardcode_libdir_flag_spec\"
4130 libdir="$acl_save_libdir"
4131 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
4132 done
4133 fi
4134 fi
4135 if test "X$ltrpathdirs" != "X"; then
4136 for found_dir in $ltrpathdirs; do
4137 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
4138 done
4139 fi
4140
4141
4142
4143
4144
4145
4146
4147 am_save_CPPFLAGS="$CPPFLAGS"
4148
4149 for element in $INCICONV; do
4150 haveit=
4151 for x in $CPPFLAGS; do
4152
4153 acl_save_prefix="$prefix"
4154 prefix="$acl_final_prefix"
4155 acl_save_exec_prefix="$exec_prefix"
4156 exec_prefix="$acl_final_exec_prefix"
4157 eval x=\"$x\"
4158 exec_prefix="$acl_save_exec_prefix"
4159 prefix="$acl_save_prefix"
4160
4161 if test "X$x" = "X$element"; then
4162 haveit=yes
4163 break
4164 fi
4165 done
4166 if test -z "$haveit"; then
4167 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
4168 fi
4169 done
4170
4171
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
4173 $as_echo_n "checking for iconv... " >&6; }
4174 if test "${am_cv_func_iconv+set}" = set; then :
4175 $as_echo_n "(cached) " >&6
4176 else
4177
4178 am_cv_func_iconv="no, consider installing GNU libiconv"
4179 am_cv_lib_iconv=no
4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181 /* end confdefs.h. */
4182 #include <stdlib.h>
4183 #include <iconv.h>
4184 int
4185 main ()
4186 {
4187 iconv_t cd = iconv_open("","");
4188 iconv(cd,NULL,NULL,NULL,NULL);
4189 iconv_close(cd);
4190 ;
4191 return 0;
4192 }
4193 _ACEOF
4194 if ac_fn_c_try_link "$LINENO"; then :
4195 am_cv_func_iconv=yes
4196 fi
4197 rm -f core conftest.err conftest.$ac_objext \
4198 conftest$ac_exeext conftest.$ac_ext
4199 if test "$am_cv_func_iconv" != yes; then
4200 am_save_LIBS="$LIBS"
4201 LIBS="$LIBS $LIBICONV"
4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h. */
4204 #include <stdlib.h>
4205 #include <iconv.h>
4206 int
4207 main ()
4208 {
4209 iconv_t cd = iconv_open("","");
4210 iconv(cd,NULL,NULL,NULL,NULL);
4211 iconv_close(cd);
4212 ;
4213 return 0;
4214 }
4215 _ACEOF
4216 if ac_fn_c_try_link "$LINENO"; then :
4217 am_cv_lib_iconv=yes
4218 am_cv_func_iconv=yes
4219 fi
4220 rm -f core conftest.err conftest.$ac_objext \
4221 conftest$ac_exeext conftest.$ac_ext
4222 LIBS="$am_save_LIBS"
4223 fi
4224
4225 fi
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
4227 $as_echo "$am_cv_func_iconv" >&6; }
4228 if test "$am_cv_func_iconv" = yes; then
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
4230 $as_echo_n "checking for working iconv... " >&6; }
4231 if test "${am_cv_func_iconv_works+set}" = set; then :
4232 $as_echo_n "(cached) " >&6
4233 else
4234
4235 am_save_LIBS="$LIBS"
4236 if test $am_cv_lib_iconv = yes; then
4237 LIBS="$LIBS $LIBICONV"
4238 fi
4239 if test "$cross_compiling" = yes; then :
4240 case "$host_os" in
4241 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
4242 *) am_cv_func_iconv_works="guessing yes" ;;
4243 esac
4244 else
4245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4246 /* end confdefs.h. */
4247
4248 #include <iconv.h>
4249 #include <string.h>
4250 int main ()
4251 {
4252 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
4253 returns. */
4254 {
4255 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
4256 if (cd_utf8_to_88591 != (iconv_t)(-1))
4257 {
4258 static const char input[] = "\342\202\254"; /* EURO SIGN */
4259 char buf[10];
4260 const char *inptr = input;
4261 size_t inbytesleft = strlen (input);
4262 char *outptr = buf;
4263 size_t outbytesleft = sizeof (buf);
4264 size_t res = iconv (cd_utf8_to_88591,
4265 (char **) &inptr, &inbytesleft,
4266 &outptr, &outbytesleft);
4267 if (res == 0)
4268 return 1;
4269 }
4270 }
4271 #if 0 /* This bug could be worked around by the caller. */
4272 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
4273 {
4274 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
4275 if (cd_88591_to_utf8 != (iconv_t)(-1))
4276 {
4277 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
4278 char buf[50];
4279 const char *inptr = input;
4280 size_t inbytesleft = strlen (input);
4281 char *outptr = buf;
4282 size_t outbytesleft = sizeof (buf);
4283 size_t res = iconv (cd_88591_to_utf8,
4284 (char **) &inptr, &inbytesleft,
4285 &outptr, &outbytesleft);
4286 if ((int)res > 0)
4287 return 1;
4288 }
4289 }
4290 #endif
4291 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
4292 provided. */
4293 if (/* Try standardized names. */
4294 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
4295 /* Try IRIX, OSF/1 names. */
4296 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
4297 /* Try AIX names. */
4298 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
4299 /* Try HP-UX names. */
4300 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
4301 return 1;
4302 return 0;
4303 }
4304 _ACEOF
4305 if ac_fn_c_try_run "$LINENO"; then :
4306 am_cv_func_iconv_works=yes
4307 else
4308 am_cv_func_iconv_works=no
4309 fi
4310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4311 conftest.$ac_objext conftest.beam conftest.$ac_ext
4312 fi
4313
4314 LIBS="$am_save_LIBS"
4315
4316 fi
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
4318 $as_echo "$am_cv_func_iconv_works" >&6; }
4319 case "$am_cv_func_iconv_works" in
4320 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
4321 *) am_func_iconv=yes ;;
4322 esac
4323 else
4324 am_func_iconv=no am_cv_lib_iconv=no
4325 fi
4326 if test "$am_func_iconv" = yes; then
4327
4328 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
4329
4330 fi
4331 if test "$am_cv_lib_iconv" = yes; then
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
4333 $as_echo_n "checking how to link with libiconv... " >&6; }
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
4335 $as_echo "$LIBICONV" >&6; }
4336 else
4337 CPPFLAGS="$am_save_CPPFLAGS"
4338 LIBICONV=
4339 LTLIBICONV=
4340 fi
4341
4342
4343
4344 if test "$am_cv_func_iconv" = yes; then
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
4346 $as_echo_n "checking for iconv declaration... " >&6; }
4347 if test "${am_cv_proto_iconv+set}" = set; then :
4348 $as_echo_n "(cached) " >&6
4349 else
4350
4351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352 /* end confdefs.h. */
4353
4354 #include <stdlib.h>
4355 #include <iconv.h>
4356 extern
4357 #ifdef __cplusplus
4358 "C"
4359 #endif
4360 #if defined(__STDC__) || defined(__cplusplus)
4361 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
4362 #else
4363 size_t iconv();
4364 #endif
4365
4366 int
4367 main ()
4368 {
4369
4370 ;
4371 return 0;
4372 }
4373 _ACEOF
4374 if ac_fn_c_try_compile "$LINENO"; then :
4375 am_cv_proto_iconv_arg1=""
4376 else
4377 am_cv_proto_iconv_arg1="const"
4378 fi
4379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4380 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);"
4381 fi
4382
4383 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
4385 }$am_cv_proto_iconv" >&5
4386 $as_echo "${ac_t:-
4387 }$am_cv_proto_iconv" >&6; }
4388
4389 cat >>confdefs.h <<_ACEOF
4390 #define ICONV_CONST $am_cv_proto_iconv_arg1
4391 _ACEOF
4392
4393 fi
4394
4395 case $am_cv_func_iconv in #(
4396 yes) :
4397 ;; #(
4398 *) :
4399 as_fn_error "You need iconv" "$LINENO" 5 ;;
4400 esac
4401
4402
4403 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4404 if test -n "$ac_tool_prefix"; then
4405 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4406 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4408 $as_echo_n "checking for $ac_word... " >&6; }
4409 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4410 $as_echo_n "(cached) " >&6
4411 else
4412 case $PKG_CONFIG in
4413 [\\/]* | ?:[\\/]*)
4414 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4415 ;;
4416 *)
4417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 for as_dir in $PATH
4419 do
4420 IFS=$as_save_IFS
4421 test -z "$as_dir" && as_dir=.
4422 for ac_exec_ext in '' $ac_executable_extensions; do
4423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4424 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4426 break 2
4427 fi
4428 done
4429 done
4430 IFS=$as_save_IFS
4431
4432 ;;
4433 esac
4434 fi
4435 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4436 if test -n "$PKG_CONFIG"; then
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4438 $as_echo "$PKG_CONFIG" >&6; }
4439 else
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4441 $as_echo "no" >&6; }
4442 fi
4443
4444
4445 fi
4446 if test -z "$ac_cv_path_PKG_CONFIG"; then
4447 ac_pt_PKG_CONFIG=$PKG_CONFIG
4448 # Extract the first word of "pkg-config", so it can be a program name with args.
4449 set dummy pkg-config; ac_word=$2
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4451 $as_echo_n "checking for $ac_word... " >&6; }
4452 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4453 $as_echo_n "(cached) " >&6
4454 else
4455 case $ac_pt_PKG_CONFIG in
4456 [\\/]* | ?:[\\/]*)
4457 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4458 ;;
4459 *)
4460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 for as_dir in $PATH
4462 do
4463 IFS=$as_save_IFS
4464 test -z "$as_dir" && as_dir=.
4465 for ac_exec_ext in '' $ac_executable_extensions; do
4466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4467 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4469 break 2
4470 fi
4471 done
4472 done
4473 IFS=$as_save_IFS
4474
4475 ;;
4476 esac
4477 fi
4478 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4479 if test -n "$ac_pt_PKG_CONFIG"; then
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4481 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4482 else
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4484 $as_echo "no" >&6; }
4485 fi
4486
4487 if test "x$ac_pt_PKG_CONFIG" = x; then
4488 PKG_CONFIG=""
4489 else
4490 case $cross_compiling:$ac_tool_warned in
4491 yes:)
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4494 ac_tool_warned=yes ;;
4495 esac
4496 PKG_CONFIG=$ac_pt_PKG_CONFIG
4497 fi
4498 else
4499 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4500 fi
4501
4502 fi
4503 if test -n "$PKG_CONFIG"; then
4504 _pkg_min_version=0.9.0
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4506 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4507 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4509 $as_echo "yes" >&6; }
4510 else
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4512 $as_echo "no" >&6; }
4513 PKG_CONFIG=""
4514 fi
4515
4516 fi
4517
4518 pkg_failed=no
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
4520 $as_echo_n "checking for WEBKIT... " >&6; }
4521
4522 if test -n "$PKG_CONFIG"; then
4523 if test -n "$WEBKIT_CFLAGS"; then
4524 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
4525 else
4526 if test -n "$PKG_CONFIG" && \
4527 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
4528 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
4529 ac_status=$?
4530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4531 test $ac_status = 0; }; then
4532 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "webkit-1.0" 2>/dev/null`
4533 else
4534 pkg_failed=yes
4535 fi
4536 fi
4537 else
4538 pkg_failed=untried
4539 fi
4540 if test -n "$PKG_CONFIG"; then
4541 if test -n "$WEBKIT_LIBS"; then
4542 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
4543 else
4544 if test -n "$PKG_CONFIG" && \
4545 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"webkit-1.0\""; } >&5
4546 ($PKG_CONFIG --exists --print-errors "webkit-1.0") 2>&5
4547 ac_status=$?
4548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4549 test $ac_status = 0; }; then
4550 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "webkit-1.0" 2>/dev/null`
4551 else
4552 pkg_failed=yes
4553 fi
4554 fi
4555 else
4556 pkg_failed=untried
4557 fi
4558
4559
4560
4561 if test $pkg_failed = yes; then
4562
4563 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4564 _pkg_short_errors_supported=yes
4565 else
4566 _pkg_short_errors_supported=no
4567 fi
4568 if test $_pkg_short_errors_supported = yes; then
4569 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "webkit-1.0"`
4570 else
4571 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "webkit-1.0"`
4572 fi
4573 # Put the nasty error message in config.log where it belongs
4574 echo "$WEBKIT_PKG_ERRORS" >&5
4575
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577 $as_echo "no" >&6; }
4578
4579
4580 pkg_failed=no
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
4582 $as_echo_n "checking for WEBKIT... " >&6; }
4583
4584 if test -n "$PKG_CONFIG"; then
4585 if test -n "$WEBKIT_CFLAGS"; then
4586 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
4587 else
4588 if test -n "$PKG_CONFIG" && \
4589 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
4590 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
4591 ac_status=$?
4592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4593 test $ac_status = 0; }; then
4594 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
4595 else
4596 pkg_failed=yes
4597 fi
4598 fi
4599 else
4600 pkg_failed=untried
4601 fi
4602 if test -n "$PKG_CONFIG"; then
4603 if test -n "$WEBKIT_LIBS"; then
4604 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
4605 else
4606 if test -n "$PKG_CONFIG" && \
4607 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
4608 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
4609 ac_status=$?
4610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4611 test $ac_status = 0; }; then
4612 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
4613 else
4614 pkg_failed=yes
4615 fi
4616 fi
4617 else
4618 pkg_failed=untried
4619 fi
4620
4621
4622
4623 if test $pkg_failed = yes; then
4624
4625 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4626 _pkg_short_errors_supported=yes
4627 else
4628 _pkg_short_errors_supported=no
4629 fi
4630 if test $_pkg_short_errors_supported = yes; then
4631 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
4632 else
4633 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
4634 fi
4635 # Put the nasty error message in config.log where it belongs
4636 echo "$WEBKIT_PKG_ERRORS" >&5
4637
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4639 $as_echo "no" >&6; }
4640 WEBKIT=no
4641 elif test $pkg_failed = untried; then
4642 WEBKIT=no
4643 else
4644 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
4645 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4647 $as_echo "yes" >&6; }
4648 WEBKIT=yes
4649 fi
4650
4651 elif test $pkg_failed = untried; then
4652
4653
4654 pkg_failed=no
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
4656 $as_echo_n "checking for WEBKIT... " >&6; }
4657
4658 if test -n "$PKG_CONFIG"; then
4659 if test -n "$WEBKIT_CFLAGS"; then
4660 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
4661 else
4662 if test -n "$PKG_CONFIG" && \
4663 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
4664 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
4665 ac_status=$?
4666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4667 test $ac_status = 0; }; then
4668 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "WebKitGtk" 2>/dev/null`
4669 else
4670 pkg_failed=yes
4671 fi
4672 fi
4673 else
4674 pkg_failed=untried
4675 fi
4676 if test -n "$PKG_CONFIG"; then
4677 if test -n "$WEBKIT_LIBS"; then
4678 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
4679 else
4680 if test -n "$PKG_CONFIG" && \
4681 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"WebKitGtk\""; } >&5
4682 ($PKG_CONFIG --exists --print-errors "WebKitGtk") 2>&5
4683 ac_status=$?
4684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4685 test $ac_status = 0; }; then
4686 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "WebKitGtk" 2>/dev/null`
4687 else
4688 pkg_failed=yes
4689 fi
4690 fi
4691 else
4692 pkg_failed=untried
4693 fi
4694
4695
4696
4697 if test $pkg_failed = yes; then
4698
4699 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4700 _pkg_short_errors_supported=yes
4701 else
4702 _pkg_short_errors_supported=no
4703 fi
4704 if test $_pkg_short_errors_supported = yes; then
4705 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "WebKitGtk"`
4706 else
4707 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "WebKitGtk"`
4708 fi
4709 # Put the nasty error message in config.log where it belongs
4710 echo "$WEBKIT_PKG_ERRORS" >&5
4711
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4713 $as_echo "no" >&6; }
4714 WEBKIT=no
4715 elif test $pkg_failed = untried; then
4716 WEBKIT=no
4717 else
4718 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
4719 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4721 $as_echo "yes" >&6; }
4722 WEBKIT=yes
4723 fi
4724
4725 else
4726 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
4727 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4729 $as_echo "yes" >&6; }
4730 WEBKIT=yes
4731 fi
4732 case $WEBKIT in #(
4733 yes) :
4734
4735
4736 pkg_failed=no
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
4738 $as_echo_n "checking for LIBFFI... " >&6; }
4739
4740 if test -n "$PKG_CONFIG"; then
4741 if test -n "$LIBFFI_CFLAGS"; then
4742 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
4743 else
4744 if test -n "$PKG_CONFIG" && \
4745 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
4746 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
4747 ac_status=$?
4748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4749 test $ac_status = 0; }; then
4750 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
4751 else
4752 pkg_failed=yes
4753 fi
4754 fi
4755 else
4756 pkg_failed=untried
4757 fi
4758 if test -n "$PKG_CONFIG"; then
4759 if test -n "$LIBFFI_LIBS"; then
4760 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
4761 else
4762 if test -n "$PKG_CONFIG" && \
4763 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
4764 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
4765 ac_status=$?
4766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4767 test $ac_status = 0; }; then
4768 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
4769 else
4770 pkg_failed=yes
4771 fi
4772 fi
4773 else
4774 pkg_failed=untried
4775 fi
4776
4777
4778
4779 if test $pkg_failed = yes; then
4780
4781 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4782 _pkg_short_errors_supported=yes
4783 else
4784 _pkg_short_errors_supported=no
4785 fi
4786 if test $_pkg_short_errors_supported = yes; then
4787 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libffi"`
4788 else
4789 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libffi"`
4790 fi
4791 # Put the nasty error message in config.log where it belongs
4792 echo "$LIBFFI_PKG_ERRORS" >&5
4793
4794 as_fn_error "Package requirements (libffi) were not met:
4795
4796 $LIBFFI_PKG_ERRORS
4797
4798 Consider adjusting the PKG_CONFIG_PATH environment variable if you
4799 installed software in a non-standard prefix.
4800
4801 Alternatively, you may set the environment variables LIBFFI_CFLAGS
4802 and LIBFFI_LIBS to avoid the need to call pkg-config.
4803 See the pkg-config man page for more details.
4804 " "$LINENO" 5
4805 elif test $pkg_failed = untried; then
4806 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4808 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
4809 is in your PATH or set the PKG_CONFIG environment variable to the full
4810 path to pkg-config.
4811
4812 Alternatively, you may set the environment variables LIBFFI_CFLAGS
4813 and LIBFFI_LIBS to avoid the need to call pkg-config.
4814 See the pkg-config man page for more details.
4815
4816 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
4817 See \`config.log' for more details." "$LINENO" 5; }
4818 else
4819 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
4820 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4822 $as_echo "yes" >&6; }
4823 :
4824 fi
4825 ;; #(
4826 *) :
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No JavaScript engine!" >&5
4828 $as_echo "$as_me: WARNING: No JavaScript engine!" >&2;} ;;
4829 esac
4830 # XXX: gnustep
4831 #AC_PROG_OBJCXX()