cherry pick r216077 r216079 from upstream to workaround cortex-a53 errata
[official-gcc.git] / gcc-4_6_3-mobile / libjava / classpath / configure
blobd95a4df9c3cfd307a1033849cc61fbfb305d1939
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU Classpath 0.99-pre.
5 # Report bugs to <classpath@gnu.org>.
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.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
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 *) :
32 esac
36 as_nl='
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"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
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=';'
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"
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
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
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
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
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='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
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 *) :
150 esac
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; }
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 :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1
176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 PATH=/empty FPATH=/empty; export PATH FPATH
181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
183 if (eval "$as_required") 2>/dev/null; then :
184 as_have_required=yes
185 else
186 as_have_required=no
188 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190 else
191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
192 as_found=false
193 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195 IFS=$as_save_IFS
196 test -z "$as_dir" && as_dir=.
197 as_found=:
198 case $as_dir in #(
200 for as_base in sh bash ksh sh5; do
201 # Try only shells that exist, to save several forks.
202 as_shell=$as_dir/$as_base
203 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
204 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 CONFIG_SHELL=$as_shell as_have_required=yes
206 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 break 2
210 done;;
211 esac
212 as_found=false
213 done
214 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
215 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
216 CONFIG_SHELL=$SHELL as_have_required=yes
217 fi; }
218 IFS=$as_save_IFS
221 if test "x$CONFIG_SHELL" != x; then :
222 # We cannot yet assume a decent shell, so we have to provide a
223 # neutralization value for shells without unset; and this also
224 # works around shells that cannot unset nonexistent variables.
225 BASH_ENV=/dev/null
226 ENV=/dev/null
227 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
228 export CONFIG_SHELL
229 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org and classpath@gnu.org
240 $0: about your system, including any error possibly output
241 $0: before this message. Then install a modern shell, or
242 $0: manually run the script under such a shell if you do
243 $0: have one."
245 exit 1
249 SHELL=${CONFIG_SHELL-/bin/sh}
250 export SHELL
251 # Unset more variables known to interfere with behavior of common tools.
252 CLICOLOR_FORCE= GREP_OPTIONS=
253 unset CLICOLOR_FORCE GREP_OPTIONS
255 ## --------------------- ##
256 ## M4sh Shell Functions. ##
257 ## --------------------- ##
258 # as_fn_unset VAR
259 # ---------------
260 # Portably unset VAR.
261 as_fn_unset ()
263 { eval $1=; unset $1;}
265 as_unset=as_fn_unset
267 # as_fn_set_status STATUS
268 # -----------------------
269 # Set $? to STATUS, without forking.
270 as_fn_set_status ()
272 return $1
273 } # as_fn_set_status
275 # as_fn_exit STATUS
276 # -----------------
277 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 as_fn_exit ()
280 set +e
281 as_fn_set_status $1
282 exit $1
283 } # as_fn_exit
285 # as_fn_mkdir_p
286 # -------------
287 # Create "$as_dir" as a directory, including parents if necessary.
288 as_fn_mkdir_p ()
291 case $as_dir in #(
292 -*) as_dir=./$as_dir;;
293 esac
294 test -d "$as_dir" || eval $as_mkdir_p || {
295 as_dirs=
296 while :; do
297 case $as_dir in #(
298 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
299 *) as_qdir=$as_dir;;
300 esac
301 as_dirs="'$as_qdir' $as_dirs"
302 as_dir=`$as_dirname -- "$as_dir" ||
303 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
304 X"$as_dir" : 'X\(//\)[^/]' \| \
305 X"$as_dir" : 'X\(//\)$' \| \
306 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
307 $as_echo X"$as_dir" |
308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
309 s//\1/
312 /^X\(\/\/\)[^/].*/{
313 s//\1/
316 /^X\(\/\/\)$/{
317 s//\1/
320 /^X\(\/\).*/{
321 s//\1/
324 s/.*/./; q'`
325 test -d "$as_dir" && break
326 done
327 test -z "$as_dirs" || eval "mkdir $as_dirs"
328 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
331 } # as_fn_mkdir_p
332 # as_fn_append VAR VALUE
333 # ----------------------
334 # Append the text in VALUE to the end of the definition contained in VAR. Take
335 # advantage of any shell optimizations that allow amortized linear growth over
336 # repeated appends, instead of the typical quadratic growth present in naive
337 # implementations.
338 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
339 eval 'as_fn_append ()
341 eval $1+=\$2
343 else
344 as_fn_append ()
346 eval $1=\$$1\$2
348 fi # as_fn_append
350 # as_fn_arith ARG...
351 # ------------------
352 # Perform arithmetic evaluation on the ARGs, and store the result in the
353 # global $as_val. Take advantage of shells that can avoid forks. The arguments
354 # must be portable across $(()) and expr.
355 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
356 eval 'as_fn_arith ()
358 as_val=$(( $* ))
360 else
361 as_fn_arith ()
363 as_val=`expr "$@" || test $? -eq 1`
365 fi # as_fn_arith
368 # as_fn_error ERROR [LINENO LOG_FD]
369 # ---------------------------------
370 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
371 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
372 # script with status $?, using 1 if that was 0.
373 as_fn_error ()
375 as_status=$?; test $as_status -eq 0 && as_status=1
376 if test "$3"; then
377 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
378 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
380 $as_echo "$as_me: error: $1" >&2
381 as_fn_exit $as_status
382 } # as_fn_error
384 if expr a : '\(a\)' >/dev/null 2>&1 &&
385 test "X`expr 00001 : '.*\(...\)'`" = X001; then
386 as_expr=expr
387 else
388 as_expr=false
391 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
392 as_basename=basename
393 else
394 as_basename=false
397 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
398 as_dirname=dirname
399 else
400 as_dirname=false
403 as_me=`$as_basename -- "$0" ||
404 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
405 X"$0" : 'X\(//\)$' \| \
406 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407 $as_echo X/"$0" |
408 sed '/^.*\/\([^/][^/]*\)\/*$/{
409 s//\1/
412 /^X\/\(\/\/\)$/{
413 s//\1/
416 /^X\/\(\/\).*/{
417 s//\1/
420 s/.*/./; q'`
422 # Avoid depending upon Character Ranges.
423 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
424 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
425 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
426 as_cr_digits='0123456789'
427 as_cr_alnum=$as_cr_Letters$as_cr_digits
430 as_lineno_1=$LINENO as_lineno_1a=$LINENO
431 as_lineno_2=$LINENO as_lineno_2a=$LINENO
432 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
433 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
434 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 sed -n '
437 /[$]LINENO/=
438 ' <$as_myself |
439 sed '
440 s/[$]LINENO.*/&-/
441 t lineno
443 :lineno
445 :loop
446 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 t loop
448 s/-\n.*//
449 ' >$as_me.lineno &&
450 chmod +x "$as_me.lineno" ||
451 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
455 # original and so on. Autoconf is especially sensitive to this).
456 . "./$as_me.lineno"
457 # Exit status is that of the last command.
458 exit
461 ECHO_C= ECHO_N= ECHO_T=
462 case `echo -n x` in #(((((
463 -n*)
464 case `echo 'xy\c'` in
465 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
466 xy) ECHO_C='\c';;
467 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468 ECHO_T=' ';;
469 esac;;
471 ECHO_N='-n';;
472 esac
474 rm -f conf$$ conf$$.exe conf$$.file
475 if test -d conf$$.dir; then
476 rm -f conf$$.dir/conf$$.file
477 else
478 rm -f conf$$.dir
479 mkdir conf$$.dir 2>/dev/null
481 if (echo >conf$$.file) 2>/dev/null; then
482 if ln -s conf$$.file conf$$ 2>/dev/null; then
483 as_ln_s='ln -s'
484 # ... but there are two gotchas:
485 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
486 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
487 # In both cases, we have to default to `cp -p'.
488 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
489 as_ln_s='cp -p'
490 elif ln conf$$.file conf$$ 2>/dev/null; then
491 as_ln_s=ln
492 else
493 as_ln_s='cp -p'
495 else
496 as_ln_s='cp -p'
498 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
499 rmdir conf$$.dir 2>/dev/null
501 if mkdir -p . 2>/dev/null; then
502 as_mkdir_p='mkdir -p "$as_dir"'
503 else
504 test -d ./-p && rmdir ./-p
505 as_mkdir_p=false
508 if test -x / >/dev/null 2>&1; then
509 as_test_x='test -x'
510 else
511 if ls -dL / >/dev/null 2>&1; then
512 as_ls_L_option=L
513 else
514 as_ls_L_option=
516 as_test_x='
517 eval sh -c '\''
518 if test -d "$1"; then
519 test -d "$1/.";
520 else
521 case $1 in #(
522 -*)set "./$1";;
523 esac;
524 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
525 ???[sx]*):;;*)false;;esac;fi
526 '\'' sh
529 as_executable_p=$as_test_x
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 SHELL=${CONFIG_SHELL-/bin/sh}
540 exec 7<&0 </dev/null 6>&1
542 # Name of the host.
543 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544 # so uname gets run too.
545 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548 # Initializations.
550 ac_default_prefix=/usr/local
551 ac_clean_files=
552 ac_config_libobj_dir=.
553 LIBOBJS=
554 cross_compiling=no
555 subdirs=
556 MFLAGS=
557 MAKEFLAGS=
559 # Identity of this package.
560 PACKAGE_NAME='GNU Classpath'
561 PACKAGE_TARNAME='classpath'
562 PACKAGE_VERSION='0.99-pre'
563 PACKAGE_STRING='GNU Classpath 0.99-pre'
564 PACKAGE_BUGREPORT='classpath@gnu.org'
565 PACKAGE_URL='http://www.gnu.org/software/classpath/'
567 ac_unique_file="java/lang/System.java"
568 ac_default_prefix=/usr/local/classpath
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #ifdef STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # ifdef HAVE_STDLIB_H
583 # include <stdlib.h>
584 # endif
585 #endif
586 #ifdef HAVE_STRING_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 # include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #ifdef HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #ifdef HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
605 ac_subst_vars='am__EXEEXT_FALSE
606 am__EXEEXT_TRUE
607 LTLIBOBJS
608 LIBOBJS
609 CREATE_GMPBI_LIBRARY_FALSE
610 CREATE_GMPBI_LIBRARY_TRUE
611 WANT_NATIVE_BIG_INTEGER
612 DEFAULT_PREFS_PEER
613 ENABLE_LOCAL_SOCKETS_FALSE
614 ENABLE_LOCAL_SOCKETS_TRUE
615 PATH_TO_ESCHER
616 USE_ESCHER_FALSE
617 USE_ESCHER_TRUE
618 JAVAC_MEM_OPT
619 ac_ct_ANTLR
620 ANTLR
621 ANTLR_JAR
622 GCJ_JAVAC_FALSE
623 GCJ_JAVAC_TRUE
624 JAVAC_IS_GCJ
625 JAVAC
626 uudecode
627 JAVA
628 PATH_TO_GLIBJ_ZIP
629 USE_PREBUILT_GLIBJ_ZIP_FALSE
630 USE_PREBUILT_GLIBJ_ZIP_TRUE
631 REGEN_PARSERS_FALSE
632 REGEN_PARSERS_TRUE
633 JAY_SKELETON
635 CREATE_API_DOCS_FALSE
636 CREATE_API_DOCS_TRUE
637 GJDOC
638 TOOLSDIR
639 EXAMPLESDIR
640 BUILD_CLASS_FILES_FALSE
641 BUILD_CLASS_FILES_TRUE
642 INSTALL_CLASS_FILES_FALSE
643 INSTALL_CLASS_FILES_TRUE
644 INSTALL_GLIBJ_ZIP_FALSE
645 INSTALL_GLIBJ_ZIP_TRUE
646 WITH_JAR_FALSE
647 WITH_JAR_TRUE
650 FIND
651 DATE
653 MKDIR
654 REMOVE
655 JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION
656 ECJ_JAR
657 INIT_LOAD_LIBRARY
658 LIBDEBUG
659 MAINT
660 MAINTAINER_MODE_FALSE
661 MAINTAINER_MODE_TRUE
662 vm_classes
663 CLASSPATH_INCLUDES
664 USER_JAVAH
665 GMP_LIBS
666 GMP_CFLAGS
667 PLUGIN_DIR
668 GLIB_LIBS
669 GLIB_CFLAGS
670 MOZILLA_LIBS
671 MOZILLA_CFLAGS
673 QT_LIBS
674 QT_CFLAGS
675 GSTREAMER_MIXER_PROVIDER
676 GSTREAMER_FILE_READER
677 GST_PLUGIN_LDFLAGS
678 GSTREAMER_PLUGINS_BASE_LIBS
679 GSTREAMER_PLUGINS_BASE_CFLAGS
680 GSTREAMER_BASE_LIBS
681 GSTREAMER_BASE_CFLAGS
682 GSTREAMER_LIBS
683 GSTREAMER_CFLAGS
684 GDK_LIBS
685 GDK_CFLAGS
686 GCONF_LIBS
687 GCONF_CFLAGS
688 XTEST_LIBS
689 CAIRO_LIBS
690 CAIRO_CFLAGS
691 PANGOFT2_LIBS
692 PANGOFT2_CFLAGS
693 FREETYPE2_LIBS
694 FREETYPE2_CFLAGS
695 GTK_LIBS
696 GTK_CFLAGS
697 X_EXTRA_LIBS
698 X_LIBS
699 X_PRE_LIBS
700 X_CFLAGS
701 XMKMF
702 XSLT_LIBS
703 XSLT_CFLAGS
704 XML_LIBS
705 XML_CFLAGS
706 PKG_CONFIG
707 ERROR_CFLAGS
708 STRICT_WARNING_CFLAGS
709 EXTRA_CFLAGS
710 WARNING_CFLAGS
711 LTLIBICONV
712 LIBICONV
713 LIBMAGIC
714 COLLECTIONS_PREFIX
715 PERL
716 CXXCPP
717 am__fastdepCXX_FALSE
718 am__fastdepCXX_TRUE
719 CXXDEPMODE
720 ac_ct_CXX
721 CXXFLAGS
723 OTOOL64
724 OTOOL
725 LIPO
726 NMEDIT
727 DSYMUTIL
728 RANLIB
730 OBJDUMP
732 ac_ct_DUMPBIN
733 DUMPBIN
735 FGREP
737 LIBTOOL
738 LN_S
739 CREATE_WRAPPERS_FALSE
740 CREATE_WRAPPERS_TRUE
741 CREATE_GJDOC_PARSER_FALSE
742 CREATE_GJDOC_PARSER_TRUE
743 CREATE_JNI_HEADERS_FALSE
744 CREATE_JNI_HEADERS_TRUE
745 glibjdir
746 nativeexeclibdir
747 toolexeclibdir
748 CREATE_GJDOC_FALSE
749 CREATE_GJDOC_TRUE
750 CREATE_PLUGIN_FALSE
751 CREATE_PLUGIN_TRUE
752 CREATE_QT_PEER_LIBRARIES_FALSE
753 CREATE_QT_PEER_LIBRARIES_TRUE
754 CREATE_GTK_PEER_LIBRARIES_FALSE
755 CREATE_GTK_PEER_LIBRARIES_TRUE
756 CREATE_DSSI_LIBRARIES_FALSE
757 CREATE_DSSI_LIBRARIES_TRUE
758 CREATE_ALSA_LIBRARIES_FALSE
759 CREATE_ALSA_LIBRARIES_TRUE
760 EGREP
761 GREP
763 am__fastdepCC_FALSE
764 am__fastdepCC_TRUE
765 CCDEPMODE
766 AMDEPBACKSLASH
767 AMDEP_FALSE
768 AMDEP_TRUE
769 am__quote
770 am__include
771 DEPDIR
772 OBJEXT
773 EXEEXT
774 ac_ct_CC
775 CPPFLAGS
776 LDFLAGS
777 CFLAGS
779 CREATE_XMLJ_LIBRARY_FALSE
780 CREATE_XMLJ_LIBRARY_TRUE
781 default_toolkit
782 CREATE_GSTREAMER_PEER_LIBRARIES_FALSE
783 CREATE_GSTREAMER_PEER_LIBRARIES_TRUE
784 CREATE_GCONF_PEER_LIBRARIES_FALSE
785 CREATE_GCONF_PEER_LIBRARIES_TRUE
786 CREATE_CORE_JNI_LIBRARIES_FALSE
787 CREATE_CORE_JNI_LIBRARIES_TRUE
788 CREATE_JNI_LIBRARIES_FALSE
789 CREATE_JNI_LIBRARIES_TRUE
790 CREATE_COLLECTIONS_FALSE
791 CREATE_COLLECTIONS_TRUE
792 am__untar
793 am__tar
794 AMTAR
795 am__leading_dot
796 SET_MAKE
798 mkdir_p
799 MKDIR_P
800 INSTALL_STRIP_PROGRAM
801 STRIP
802 install_sh
803 MAKEINFO
804 AUTOHEADER
805 AUTOMAKE
806 AUTOCONF
807 ACLOCAL
808 VERSION
809 PACKAGE
810 CYGPATH_W
811 am__isrc
812 INSTALL_DATA
813 INSTALL_SCRIPT
814 INSTALL_PROGRAM
815 CLASSPATH_CONVENIENCE
816 CLASSPATH_MODULE
817 LIBVERSION
818 INSTALL_BINARIES_FALSE
819 INSTALL_BINARIES_TRUE
820 multi_basedir
821 GENINSRC_FALSE
822 GENINSRC_TRUE
823 JAVA_MAINTAINER_MODE_FALSE
824 JAVA_MAINTAINER_MODE_TRUE
825 target_os
826 target_vendor
827 target_cpu
828 target
829 host_os
830 host_vendor
831 host_cpu
832 host
833 build_os
834 build_vendor
835 build_cpu
836 build
837 target_alias
838 host_alias
839 build_alias
840 LIBS
841 ECHO_T
842 ECHO_N
843 ECHO_C
844 DEFS
845 mandir
846 localedir
847 libdir
848 psdir
849 pdfdir
850 dvidir
851 htmldir
852 infodir
853 docdir
854 oldincludedir
855 includedir
856 localstatedir
857 sharedstatedir
858 sysconfdir
859 datadir
860 datarootdir
861 libexecdir
862 sbindir
863 bindir
864 program_transform_name
865 prefix
866 exec_prefix
867 PACKAGE_URL
868 PACKAGE_BUGREPORT
869 PACKAGE_STRING
870 PACKAGE_VERSION
871 PACKAGE_TARNAME
872 PACKAGE_NAME
873 PATH_SEPARATOR
874 SHELL'
875 ac_subst_files=''
876 ac_user_opts='
877 enable_option_checking
878 enable_java_maintainer_mode
879 enable_generated_files_in_srcdir
880 enable_multilib
881 enable_collections
882 enable_jni
883 enable_core_jni
884 enable_default_preferences_peer
885 enable_gconf_peer
886 enable_gconf_peers
887 enable_gstreamer_peer
888 enable_gstreamer_peers
889 enable_Werror
890 enable_default_toolkit
891 enable_xmlj
892 enable_alsa
893 enable_dependency_tracking
894 enable_dssi
895 enable_gtk_peer
896 enable_gtk_peers
897 enable_qt_peer
898 enable_plugin
899 enable_gmp
900 enable_gjdoc
901 with_native_libdir
902 with_glibj_dir
903 with_antlr_jar
904 enable_regen_headers
905 enable_regen_gjdoc_parser
906 enable_tool_wrappers
907 enable_static
908 enable_shared
909 with_pic
910 enable_fast_install
911 with_gnu_ld
912 enable_libtool_lock
913 enable_rpath
914 with_libiconv_prefix
915 with_x
916 with_qt4dir
917 with_gmp
918 with_gmp_include
919 with_gmp_lib
920 with_javah
921 with_vm_classes
922 enable_maintainer_mode
923 enable_debug
924 enable_load_library
925 with_ecj_jar
926 enable_java_lang_system_explicit_initialization
927 with_jar
928 with_glibj
929 enable_examples
930 enable_tools
931 with_gjdoc
932 with_jay
933 enable_portable_native_sync
934 with_glibj_zip
935 with_escher
936 enable_local_sockets
938 ac_precious_vars='build_alias
939 host_alias
940 target_alias
942 CFLAGS
943 LDFLAGS
944 LIBS
945 CPPFLAGS
948 CXXFLAGS
950 CXXCPP
951 XMKMF'
954 # Initialize some variables set by options.
955 ac_init_help=
956 ac_init_version=false
957 ac_unrecognized_opts=
958 ac_unrecognized_sep=
959 # The variables have the same names as the options, with
960 # dashes changed to underlines.
961 cache_file=/dev/null
962 exec_prefix=NONE
963 no_create=
964 no_recursion=
965 prefix=NONE
966 program_prefix=NONE
967 program_suffix=NONE
968 program_transform_name=s,x,x,
969 silent=
970 site=
971 srcdir=
972 verbose=
973 x_includes=NONE
974 x_libraries=NONE
976 # Installation directory options.
977 # These are left unexpanded so users can "make install exec_prefix=/foo"
978 # and all the variables that are supposed to be based on exec_prefix
979 # by default will actually change.
980 # Use braces instead of parens because sh, perl, etc. also accept them.
981 # (The list follows the same order as the GNU Coding Standards.)
982 bindir='${exec_prefix}/bin'
983 sbindir='${exec_prefix}/sbin'
984 libexecdir='${exec_prefix}/libexec'
985 datarootdir='${prefix}/share'
986 datadir='${datarootdir}'
987 sysconfdir='${prefix}/etc'
988 sharedstatedir='${prefix}/com'
989 localstatedir='${prefix}/var'
990 includedir='${prefix}/include'
991 oldincludedir='/usr/include'
992 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
993 infodir='${datarootdir}/info'
994 htmldir='${docdir}'
995 dvidir='${docdir}'
996 pdfdir='${docdir}'
997 psdir='${docdir}'
998 libdir='${exec_prefix}/lib'
999 localedir='${datarootdir}/locale'
1000 mandir='${datarootdir}/man'
1002 ac_prev=
1003 ac_dashdash=
1004 for ac_option
1006 # If the previous option needs an argument, assign it.
1007 if test -n "$ac_prev"; then
1008 eval $ac_prev=\$ac_option
1009 ac_prev=
1010 continue
1013 case $ac_option in
1014 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1015 *) ac_optarg=yes ;;
1016 esac
1018 # Accept the important Cygnus configure options, so we can diagnose typos.
1020 case $ac_dashdash$ac_option in
1022 ac_dashdash=yes ;;
1024 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1025 ac_prev=bindir ;;
1026 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1027 bindir=$ac_optarg ;;
1029 -build | --build | --buil | --bui | --bu)
1030 ac_prev=build_alias ;;
1031 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1032 build_alias=$ac_optarg ;;
1034 -cache-file | --cache-file | --cache-fil | --cache-fi \
1035 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1036 ac_prev=cache_file ;;
1037 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1038 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1039 cache_file=$ac_optarg ;;
1041 --config-cache | -C)
1042 cache_file=config.cache ;;
1044 -datadir | --datadir | --datadi | --datad)
1045 ac_prev=datadir ;;
1046 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1047 datadir=$ac_optarg ;;
1049 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1050 | --dataroo | --dataro | --datar)
1051 ac_prev=datarootdir ;;
1052 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1053 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1054 datarootdir=$ac_optarg ;;
1056 -disable-* | --disable-*)
1057 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1058 # Reject names that are not valid shell variable names.
1059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1060 as_fn_error "invalid feature name: $ac_useropt"
1061 ac_useropt_orig=$ac_useropt
1062 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1063 case $ac_user_opts in
1065 "enable_$ac_useropt"
1066 "*) ;;
1067 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1068 ac_unrecognized_sep=', ';;
1069 esac
1070 eval enable_$ac_useropt=no ;;
1072 -docdir | --docdir | --docdi | --doc | --do)
1073 ac_prev=docdir ;;
1074 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1075 docdir=$ac_optarg ;;
1077 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1078 ac_prev=dvidir ;;
1079 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1080 dvidir=$ac_optarg ;;
1082 -enable-* | --enable-*)
1083 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1084 # Reject names that are not valid shell variable names.
1085 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1086 as_fn_error "invalid feature name: $ac_useropt"
1087 ac_useropt_orig=$ac_useropt
1088 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1089 case $ac_user_opts in
1091 "enable_$ac_useropt"
1092 "*) ;;
1093 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1094 ac_unrecognized_sep=', ';;
1095 esac
1096 eval enable_$ac_useropt=\$ac_optarg ;;
1098 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1099 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1100 | --exec | --exe | --ex)
1101 ac_prev=exec_prefix ;;
1102 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1103 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1104 | --exec=* | --exe=* | --ex=*)
1105 exec_prefix=$ac_optarg ;;
1107 -gas | --gas | --ga | --g)
1108 # Obsolete; use --with-gas.
1109 with_gas=yes ;;
1111 -help | --help | --hel | --he | -h)
1112 ac_init_help=long ;;
1113 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1114 ac_init_help=recursive ;;
1115 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1116 ac_init_help=short ;;
1118 -host | --host | --hos | --ho)
1119 ac_prev=host_alias ;;
1120 -host=* | --host=* | --hos=* | --ho=*)
1121 host_alias=$ac_optarg ;;
1123 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1124 ac_prev=htmldir ;;
1125 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1126 | --ht=*)
1127 htmldir=$ac_optarg ;;
1129 -includedir | --includedir | --includedi | --included | --include \
1130 | --includ | --inclu | --incl | --inc)
1131 ac_prev=includedir ;;
1132 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1133 | --includ=* | --inclu=* | --incl=* | --inc=*)
1134 includedir=$ac_optarg ;;
1136 -infodir | --infodir | --infodi | --infod | --info | --inf)
1137 ac_prev=infodir ;;
1138 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1139 infodir=$ac_optarg ;;
1141 -libdir | --libdir | --libdi | --libd)
1142 ac_prev=libdir ;;
1143 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1144 libdir=$ac_optarg ;;
1146 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1147 | --libexe | --libex | --libe)
1148 ac_prev=libexecdir ;;
1149 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1150 | --libexe=* | --libex=* | --libe=*)
1151 libexecdir=$ac_optarg ;;
1153 -localedir | --localedir | --localedi | --localed | --locale)
1154 ac_prev=localedir ;;
1155 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1156 localedir=$ac_optarg ;;
1158 -localstatedir | --localstatedir | --localstatedi | --localstated \
1159 | --localstate | --localstat | --localsta | --localst | --locals)
1160 ac_prev=localstatedir ;;
1161 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1162 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1163 localstatedir=$ac_optarg ;;
1165 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1166 ac_prev=mandir ;;
1167 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1168 mandir=$ac_optarg ;;
1170 -nfp | --nfp | --nf)
1171 # Obsolete; use --without-fp.
1172 with_fp=no ;;
1174 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1175 | --no-cr | --no-c | -n)
1176 no_create=yes ;;
1178 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1179 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1180 no_recursion=yes ;;
1182 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1183 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1184 | --oldin | --oldi | --old | --ol | --o)
1185 ac_prev=oldincludedir ;;
1186 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1187 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1188 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1189 oldincludedir=$ac_optarg ;;
1191 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1192 ac_prev=prefix ;;
1193 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1194 prefix=$ac_optarg ;;
1196 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1197 | --program-pre | --program-pr | --program-p)
1198 ac_prev=program_prefix ;;
1199 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1200 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1201 program_prefix=$ac_optarg ;;
1203 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1204 | --program-suf | --program-su | --program-s)
1205 ac_prev=program_suffix ;;
1206 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1207 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1208 program_suffix=$ac_optarg ;;
1210 -program-transform-name | --program-transform-name \
1211 | --program-transform-nam | --program-transform-na \
1212 | --program-transform-n | --program-transform- \
1213 | --program-transform | --program-transfor \
1214 | --program-transfo | --program-transf \
1215 | --program-trans | --program-tran \
1216 | --progr-tra | --program-tr | --program-t)
1217 ac_prev=program_transform_name ;;
1218 -program-transform-name=* | --program-transform-name=* \
1219 | --program-transform-nam=* | --program-transform-na=* \
1220 | --program-transform-n=* | --program-transform-=* \
1221 | --program-transform=* | --program-transfor=* \
1222 | --program-transfo=* | --program-transf=* \
1223 | --program-trans=* | --program-tran=* \
1224 | --progr-tra=* | --program-tr=* | --program-t=*)
1225 program_transform_name=$ac_optarg ;;
1227 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1228 ac_prev=pdfdir ;;
1229 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1230 pdfdir=$ac_optarg ;;
1232 -psdir | --psdir | --psdi | --psd | --ps)
1233 ac_prev=psdir ;;
1234 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1235 psdir=$ac_optarg ;;
1237 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1238 | -silent | --silent | --silen | --sile | --sil)
1239 silent=yes ;;
1241 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1242 ac_prev=sbindir ;;
1243 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1244 | --sbi=* | --sb=*)
1245 sbindir=$ac_optarg ;;
1247 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1248 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1249 | --sharedst | --shareds | --shared | --share | --shar \
1250 | --sha | --sh)
1251 ac_prev=sharedstatedir ;;
1252 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1253 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1254 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1255 | --sha=* | --sh=*)
1256 sharedstatedir=$ac_optarg ;;
1258 -site | --site | --sit)
1259 ac_prev=site ;;
1260 -site=* | --site=* | --sit=*)
1261 site=$ac_optarg ;;
1263 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1264 ac_prev=srcdir ;;
1265 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1266 srcdir=$ac_optarg ;;
1268 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1269 | --syscon | --sysco | --sysc | --sys | --sy)
1270 ac_prev=sysconfdir ;;
1271 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1272 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1273 sysconfdir=$ac_optarg ;;
1275 -target | --target | --targe | --targ | --tar | --ta | --t)
1276 ac_prev=target_alias ;;
1277 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1278 target_alias=$ac_optarg ;;
1280 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1281 verbose=yes ;;
1283 -version | --version | --versio | --versi | --vers | -V)
1284 ac_init_version=: ;;
1286 -with-* | --with-*)
1287 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1288 # Reject names that are not valid shell variable names.
1289 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1290 as_fn_error "invalid package name: $ac_useropt"
1291 ac_useropt_orig=$ac_useropt
1292 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1293 case $ac_user_opts in
1295 "with_$ac_useropt"
1296 "*) ;;
1297 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1298 ac_unrecognized_sep=', ';;
1299 esac
1300 eval with_$ac_useropt=\$ac_optarg ;;
1302 -without-* | --without-*)
1303 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1304 # Reject names that are not valid shell variable names.
1305 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1306 as_fn_error "invalid package name: $ac_useropt"
1307 ac_useropt_orig=$ac_useropt
1308 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1309 case $ac_user_opts in
1311 "with_$ac_useropt"
1312 "*) ;;
1313 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1314 ac_unrecognized_sep=', ';;
1315 esac
1316 eval with_$ac_useropt=no ;;
1318 --x)
1319 # Obsolete; use --with-x.
1320 with_x=yes ;;
1322 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1323 | --x-incl | --x-inc | --x-in | --x-i)
1324 ac_prev=x_includes ;;
1325 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1326 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1327 x_includes=$ac_optarg ;;
1329 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1330 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1331 ac_prev=x_libraries ;;
1332 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1333 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1334 x_libraries=$ac_optarg ;;
1336 -*) as_fn_error "unrecognized option: \`$ac_option'
1337 Try \`$0 --help' for more information."
1340 *=*)
1341 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1342 # Reject names that are not valid shell variable names.
1343 case $ac_envvar in #(
1344 '' | [0-9]* | *[!_$as_cr_alnum]* )
1345 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1346 esac
1347 eval $ac_envvar=\$ac_optarg
1348 export $ac_envvar ;;
1351 # FIXME: should be removed in autoconf 3.0.
1352 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1353 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1354 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1355 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1358 esac
1359 done
1361 if test -n "$ac_prev"; then
1362 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1363 as_fn_error "missing argument to $ac_option"
1366 if test -n "$ac_unrecognized_opts"; then
1367 case $enable_option_checking in
1368 no) ;;
1369 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1370 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1371 esac
1374 # Check all directory arguments for consistency.
1375 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1376 datadir sysconfdir sharedstatedir localstatedir includedir \
1377 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1378 libdir localedir mandir
1380 eval ac_val=\$$ac_var
1381 # Remove trailing slashes.
1382 case $ac_val in
1383 */ )
1384 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1385 eval $ac_var=\$ac_val;;
1386 esac
1387 # Be sure to have absolute directory names.
1388 case $ac_val in
1389 [\\/$]* | ?:[\\/]* ) continue;;
1390 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1391 esac
1392 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1393 done
1395 # There might be people who depend on the old broken behavior: `$host'
1396 # used to hold the argument of --host etc.
1397 # FIXME: To remove some day.
1398 build=$build_alias
1399 host=$host_alias
1400 target=$target_alias
1402 # FIXME: To remove some day.
1403 if test "x$host_alias" != x; then
1404 if test "x$build_alias" = x; then
1405 cross_compiling=maybe
1406 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1407 If a cross compiler is detected then cross compile mode will be used." >&2
1408 elif test "x$build_alias" != "x$host_alias"; then
1409 cross_compiling=yes
1413 ac_tool_prefix=
1414 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1416 test "$silent" = yes && exec 6>/dev/null
1419 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1420 ac_ls_di=`ls -di .` &&
1421 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1422 as_fn_error "working directory cannot be determined"
1423 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1424 as_fn_error "pwd does not report name of working directory"
1427 # Find the source files, if location was not specified.
1428 if test -z "$srcdir"; then
1429 ac_srcdir_defaulted=yes
1430 # Try the directory containing this script, then the parent directory.
1431 ac_confdir=`$as_dirname -- "$as_myself" ||
1432 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1433 X"$as_myself" : 'X\(//\)[^/]' \| \
1434 X"$as_myself" : 'X\(//\)$' \| \
1435 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1436 $as_echo X"$as_myself" |
1437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1438 s//\1/
1441 /^X\(\/\/\)[^/].*/{
1442 s//\1/
1445 /^X\(\/\/\)$/{
1446 s//\1/
1449 /^X\(\/\).*/{
1450 s//\1/
1453 s/.*/./; q'`
1454 srcdir=$ac_confdir
1455 if test ! -r "$srcdir/$ac_unique_file"; then
1456 srcdir=..
1458 else
1459 ac_srcdir_defaulted=no
1461 if test ! -r "$srcdir/$ac_unique_file"; then
1462 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1463 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1465 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1466 ac_abs_confdir=`(
1467 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1468 pwd)`
1469 # When building in place, set srcdir=.
1470 if test "$ac_abs_confdir" = "$ac_pwd"; then
1471 srcdir=.
1473 # Remove unnecessary trailing slashes from srcdir.
1474 # Double slashes in file names in object file debugging info
1475 # mess up M-x gdb in Emacs.
1476 case $srcdir in
1477 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1478 esac
1479 for ac_var in $ac_precious_vars; do
1480 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1481 eval ac_env_${ac_var}_value=\$${ac_var}
1482 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1483 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1484 done
1487 # Report the --help message.
1489 if test "$ac_init_help" = "long"; then
1490 # Omit some internal or obsolete options to make the list less imposing.
1491 # This message is too long to be a string in the A/UX 3.1 sh.
1492 cat <<_ACEOF
1493 \`configure' configures GNU Classpath 0.99-pre to adapt to many kinds of systems.
1495 Usage: $0 [OPTION]... [VAR=VALUE]...
1497 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1498 VAR=VALUE. See below for descriptions of some of the useful variables.
1500 Defaults for the options are specified in brackets.
1502 Configuration:
1503 -h, --help display this help and exit
1504 --help=short display options specific to this package
1505 --help=recursive display the short help of all the included packages
1506 -V, --version display version information and exit
1507 -q, --quiet, --silent do not print \`checking...' messages
1508 --cache-file=FILE cache test results in FILE [disabled]
1509 -C, --config-cache alias for \`--cache-file=config.cache'
1510 -n, --no-create do not create output files
1511 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1513 Installation directories:
1514 --prefix=PREFIX install architecture-independent files in PREFIX
1515 [$ac_default_prefix]
1516 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1517 [PREFIX]
1519 By default, \`make install' will install all the files in
1520 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1521 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1522 for instance \`--prefix=\$HOME'.
1524 For better control, use the options below.
1526 Fine tuning of the installation directories:
1527 --bindir=DIR user executables [EPREFIX/bin]
1528 --sbindir=DIR system admin executables [EPREFIX/sbin]
1529 --libexecdir=DIR program executables [EPREFIX/libexec]
1530 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1531 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1532 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1533 --libdir=DIR object code libraries [EPREFIX/lib]
1534 --includedir=DIR C header files [PREFIX/include]
1535 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1536 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1537 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1538 --infodir=DIR info documentation [DATAROOTDIR/info]
1539 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1540 --mandir=DIR man documentation [DATAROOTDIR/man]
1541 --docdir=DIR documentation root [DATAROOTDIR/doc/classpath]
1542 --htmldir=DIR html documentation [DOCDIR]
1543 --dvidir=DIR dvi documentation [DOCDIR]
1544 --pdfdir=DIR pdf documentation [DOCDIR]
1545 --psdir=DIR ps documentation [DOCDIR]
1546 _ACEOF
1548 cat <<\_ACEOF
1550 Program names:
1551 --program-prefix=PREFIX prepend PREFIX to installed program names
1552 --program-suffix=SUFFIX append SUFFIX to installed program names
1553 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1555 X features:
1556 --x-includes=DIR X include files are in DIR
1557 --x-libraries=DIR X library files are in DIR
1559 System types:
1560 --build=BUILD configure for building on BUILD [guessed]
1561 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1562 --target=TARGET configure for building compilers for TARGET [HOST]
1563 _ACEOF
1566 if test -n "$ac_init_help"; then
1567 case $ac_init_help in
1568 short | recursive ) echo "Configuration of GNU Classpath 0.99-pre:";;
1569 esac
1570 cat <<\_ACEOF
1572 Optional Features:
1573 --disable-option-checking ignore unrecognized --enable/--with options
1574 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1575 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1576 --enable-java-maintainer-mode
1577 allow rebuilding of .class and .h files
1578 --enable-generated-files-in-srcdir
1579 put copies of generated files in source dir
1580 intended for creating source tarballs for users
1581 without texinfo, perl, bison or flex.
1582 --enable-multilib build many library versions (default)
1583 --enable-collections create collections.jar default=no
1584 --enable-jni compile JNI source default=yes
1585 --enable-core-jni compile JNI sources for core default=yes
1586 --enable-default-preferences-peer[=peer type or class name]
1587 specify one of: "gconf" [default] for a GConf based
1588 backend, "file" for a file based one, "memory" for a
1589 transient one, or a fully qualified class name
1590 implementing java.util.prefs.PreferencesFactory
1591 --disable-gconf-peer compile GConf native peers (disabled by
1592 --disable-jni) default=yes
1594 --enable-gstreamer-peer compile GStreamer native peers (disabled by
1595 --disable-jni) default=no
1596 --enable-Werror whether to compile C code with -Werror which turns
1597 any compiler warning into a compilation failure
1598 default=no
1599 --enable-default-toolkit
1600 fully qualified class name of default AWT toolkit
1601 --enable-xmlj compile native libxml/xslt library default=no
1602 --disable-alsa compile ALSA providers (enable by --enable-alsa)
1603 default=yes
1604 --disable-dependency-tracking speeds up one-time build
1605 --enable-dependency-tracking do not reject slow dependency extractors
1606 --disable-dssi compile DSSI providers (enable by --enable-dssi)
1607 default=yes
1608 --disable-gtk-peer compile GTK native peers (disabled by --disable-jni)
1609 default=yes
1610 --enable-qt-peer compile Qt4 native peers (disabled by --disable-jni)
1611 default=no
1612 --disable-plugin compile gcjwebplugin (disabled by --disable-plugin)
1613 default=yes
1614 --enable-gmp compile native java.math.BigInteger library
1615 (disabled by --disable-gmp) default=yes
1616 --disable-gjdoc compile GJDoc (disabled by --disable-gjdoc)
1617 default=yes
1618 --enable-regen-headers automatically regenerate JNI headers default=yes if
1619 headers don't exist
1620 --enable-regen-gjdoc-parser
1621 automatically regenerate the GJDoc parser
1622 default=yes if generated source doesn't exist
1623 --enable-tool-wrappers create tool wrapper binaries default=no
1624 --enable-static[=PKGS] build static libraries [default=no]
1625 --enable-shared[=PKGS] build shared libraries [default=yes]
1626 --enable-fast-install[=PKGS]
1627 optimize for fast installation [default=yes]
1628 --disable-libtool-lock avoid locking (might break parallel builds)
1629 --disable-rpath do not hardcode runtime library paths
1630 --enable-maintainer-mode enable make rules and dependencies not useful
1631 (and sometimes confusing) to the casual installer
1632 --enable-debug enable runtime debugging code
1633 --enable-load-library enable to use JNI native methods default=yes
1634 --enable-java-lang-system-explicit-initialization
1635 will the VM explicitly invoke java.lang.System's
1636 static initialization methods default=no
1637 --enable-examples enable build of the examples default=yes
1638 --enable-tools enable build of the tools default=yes
1639 --enable-portable-native-sync
1640 synchronize VM threads portably
1641 --enable-local-sockets enables local (AF_LOCAL) socket API default: no
1643 Optional Packages:
1644 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1645 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1646 --with-native-libdir sets the installation directory for native libraries
1647 default='${libdir}/${PACKAGE}'
1648 --with-glibj-dir sets the installation directory for glibj.zip
1649 default='${libdir}/${PACKAGE}'
1650 --with-antlr-jar=file Use ANTLR from the specified jar file
1651 --with-pic try to use only PIC/non-PIC objects [default=use
1652 both]
1653 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1654 --with-gnu-ld assume the C compiler uses GNU ld default=no
1655 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1656 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1657 --with-x use the X Window System
1658 --with-qt4dir=DIR Qt4 installation directory used for OS-X. For other
1659 systems use pkg-config.
1660 --with-gmp=PATH specify prefix directory for the installed GMP package.
1661 Equivalent to --with-gmp-include=PATH/include
1662 plus --with-gmp-lib=PATH/lib
1663 --with-gmp-include=PATH specify directory for installed GMP include files
1664 --with-gmp-lib=PATH specify directory for the installed GMP library
1665 --with-javah specify path or name of a javah-like program
1666 --with-vm-classes specify path to VM override source files
1667 --with-ecj-jar=ABS.PATH specify jar file containing the Eclipse Java
1668 Compiler
1669 --with-jar=PATH define to use a jar style tool
1670 --with-glibj define what to install (zip|flat|both|none|build)
1671 [default=zip]
1672 --with-gjdoc generate documentation using gjdoc (default is NO)
1673 --with-jay=DIR|PATH Regenerate the parsers with jay
1674 --with-glibj-zip=ABS.PATH
1675 use prebuilt glibj.zip class library
1676 --with-escher=ABS.PATH specify path to escher dir or JAR for X peers
1678 Some influential environment variables:
1679 CC C compiler command
1680 CFLAGS C compiler flags
1681 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1682 nonstandard directory <lib dir>
1683 LIBS libraries to pass to the linker, e.g. -l<library>
1684 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1685 you have headers in a nonstandard directory <include dir>
1686 CPP C preprocessor
1687 CXX C++ compiler command
1688 CXXFLAGS C++ compiler flags
1689 CXXCPP C++ preprocessor
1690 XMKMF Path to xmkmf, Makefile generator for X Window System
1692 Use these variables to override the choices made by `configure' or to help
1693 it to find libraries and programs with nonstandard names/locations.
1695 Report bugs to <classpath@gnu.org>.
1696 GNU Classpath home page: <http://www.gnu.org/software/classpath/>.
1697 General help using GNU software: <http://www.gnu.org/gethelp/>.
1698 _ACEOF
1699 ac_status=$?
1702 if test "$ac_init_help" = "recursive"; then
1703 # If there are subdirs, report their specific --help.
1704 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1705 test -d "$ac_dir" ||
1706 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1707 continue
1708 ac_builddir=.
1710 case "$ac_dir" in
1711 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1713 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1714 # A ".." for each directory in $ac_dir_suffix.
1715 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1716 case $ac_top_builddir_sub in
1717 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1718 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1719 esac ;;
1720 esac
1721 ac_abs_top_builddir=$ac_pwd
1722 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1723 # for backward compatibility:
1724 ac_top_builddir=$ac_top_build_prefix
1726 case $srcdir in
1727 .) # We are building in place.
1728 ac_srcdir=.
1729 ac_top_srcdir=$ac_top_builddir_sub
1730 ac_abs_top_srcdir=$ac_pwd ;;
1731 [\\/]* | ?:[\\/]* ) # Absolute name.
1732 ac_srcdir=$srcdir$ac_dir_suffix;
1733 ac_top_srcdir=$srcdir
1734 ac_abs_top_srcdir=$srcdir ;;
1735 *) # Relative name.
1736 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1737 ac_top_srcdir=$ac_top_build_prefix$srcdir
1738 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1739 esac
1740 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1742 cd "$ac_dir" || { ac_status=$?; continue; }
1743 # Check for guested configure.
1744 if test -f "$ac_srcdir/configure.gnu"; then
1745 echo &&
1746 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1747 elif test -f "$ac_srcdir/configure"; then
1748 echo &&
1749 $SHELL "$ac_srcdir/configure" --help=recursive
1750 else
1751 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1752 fi || ac_status=$?
1753 cd "$ac_pwd" || { ac_status=$?; break; }
1754 done
1757 test -n "$ac_init_help" && exit $ac_status
1758 if $ac_init_version; then
1759 cat <<\_ACEOF
1760 GNU Classpath configure 0.99-pre
1761 generated by GNU Autoconf 2.64
1763 Copyright (C) 2009 Free Software Foundation, Inc.
1764 This configure script is free software; the Free Software Foundation
1765 gives unlimited permission to copy, distribute and modify it.
1766 _ACEOF
1767 exit
1770 ## ------------------------ ##
1771 ## Autoconf initialization. ##
1772 ## ------------------------ ##
1774 # ac_fn_c_try_compile LINENO
1775 # --------------------------
1776 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1777 ac_fn_c_try_compile ()
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 rm -f conftest.$ac_objext
1781 if { { ac_try="$ac_compile"
1782 case "(($ac_try" in
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1785 esac
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_compile") 2>conftest.err
1789 ac_status=$?
1790 if test -s conftest.err; then
1791 grep -v '^ *+' conftest.err >conftest.er1
1792 cat conftest.er1 >&5
1793 mv -f conftest.er1 conftest.err
1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; } && {
1797 test -z "$ac_c_werror_flag" ||
1798 test ! -s conftest.err
1799 } && test -s conftest.$ac_objext; then :
1800 ac_retval=0
1801 else
1802 $as_echo "$as_me: failed program was:" >&5
1803 sed 's/^/| /' conftest.$ac_ext >&5
1805 ac_retval=1
1807 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1808 return $ac_retval
1810 } # ac_fn_c_try_compile
1812 # ac_fn_c_try_cpp LINENO
1813 # ----------------------
1814 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1815 ac_fn_c_try_cpp ()
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 if { { ac_try="$ac_cpp conftest.$ac_ext"
1819 case "(($ac_try" in
1820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821 *) ac_try_echo=$ac_try;;
1822 esac
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1826 ac_status=$?
1827 if test -s conftest.err; then
1828 grep -v '^ *+' conftest.err >conftest.er1
1829 cat conftest.er1 >&5
1830 mv -f conftest.er1 conftest.err
1832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833 test $ac_status = 0; } >/dev/null && {
1834 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1835 test ! -s conftest.err
1836 }; then :
1837 ac_retval=0
1838 else
1839 $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1842 ac_retval=1
1844 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1845 return $ac_retval
1847 } # ac_fn_c_try_cpp
1849 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1850 # -------------------------------------------------------
1851 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1852 # the include files in INCLUDES and setting the cache variable VAR
1853 # accordingly.
1854 ac_fn_c_check_header_mongrel ()
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859 $as_echo_n "checking for $2... " >&6; }
1860 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1861 $as_echo_n "(cached) " >&6
1863 eval ac_res=\$$3
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1865 $as_echo "$ac_res" >&6; }
1866 else
1867 # Is the header compilable?
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1869 $as_echo_n "checking $2 usability... " >&6; }
1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871 /* end confdefs.h. */
1873 #include <$2>
1874 _ACEOF
1875 if ac_fn_c_try_compile "$LINENO"; then :
1876 ac_header_compiler=yes
1877 else
1878 ac_header_compiler=no
1880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1882 $as_echo "$ac_header_compiler" >&6; }
1884 # Is the header present?
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1886 $as_echo_n "checking $2 presence... " >&6; }
1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888 /* end confdefs.h. */
1889 #include <$2>
1890 _ACEOF
1891 if ac_fn_c_try_cpp "$LINENO"; then :
1892 ac_header_preproc=yes
1893 else
1894 ac_header_preproc=no
1896 rm -f conftest.err conftest.$ac_ext
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1898 $as_echo "$ac_header_preproc" >&6; }
1900 # So? What about this header?
1901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1902 yes:no: )
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1904 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1906 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1908 no:yes:* )
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1910 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1912 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1914 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1916 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1918 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1919 ( cat <<\_ASBOX
1920 ## -------------------------------- ##
1921 ## Report this to classpath@gnu.org ##
1922 ## -------------------------------- ##
1923 _ASBOX
1924 ) | sed "s/^/$as_me: WARNING: /" >&2
1926 esac
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1928 $as_echo_n "checking for $2... " >&6; }
1929 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1930 $as_echo_n "(cached) " >&6
1931 else
1932 eval "$3=\$ac_header_compiler"
1934 eval ac_res=\$$3
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936 $as_echo "$ac_res" >&6; }
1938 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1940 } # ac_fn_c_check_header_mongrel
1942 # ac_fn_c_try_run LINENO
1943 # ----------------------
1944 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1945 # that executables *can* be run.
1946 ac_fn_c_try_run ()
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 if { { ac_try="$ac_link"
1950 case "(($ac_try" in
1951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1952 *) ac_try_echo=$ac_try;;
1953 esac
1954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1955 $as_echo "$ac_try_echo"; } >&5
1956 (eval "$ac_link") 2>&5
1957 ac_status=$?
1958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1959 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1960 { { case "(($ac_try" in
1961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1962 *) ac_try_echo=$ac_try;;
1963 esac
1964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1965 $as_echo "$ac_try_echo"; } >&5
1966 (eval "$ac_try") 2>&5
1967 ac_status=$?
1968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1969 test $ac_status = 0; }; }; then :
1970 ac_retval=0
1971 else
1972 $as_echo "$as_me: program exited with status $ac_status" >&5
1973 $as_echo "$as_me: failed program was:" >&5
1974 sed 's/^/| /' conftest.$ac_ext >&5
1976 ac_retval=$ac_status
1978 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1979 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1980 return $ac_retval
1982 } # ac_fn_c_try_run
1984 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1985 # -------------------------------------------------------
1986 # Tests whether HEADER exists and can be compiled using the include files in
1987 # INCLUDES, setting the cache variable VAR accordingly.
1988 ac_fn_c_check_header_compile ()
1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1992 $as_echo_n "checking for $2... " >&6; }
1993 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1994 $as_echo_n "(cached) " >&6
1995 else
1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997 /* end confdefs.h. */
1999 #include <$2>
2000 _ACEOF
2001 if ac_fn_c_try_compile "$LINENO"; then :
2002 eval "$3=yes"
2003 else
2004 eval "$3=no"
2006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008 eval ac_res=\$$3
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010 $as_echo "$ac_res" >&6; }
2011 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2013 } # ac_fn_c_check_header_compile
2015 # ac_fn_c_try_link LINENO
2016 # -----------------------
2017 # Try to link conftest.$ac_ext, and return whether this succeeded.
2018 ac_fn_c_try_link ()
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021 rm -f conftest.$ac_objext conftest$ac_exeext
2022 if { { ac_try="$ac_link"
2023 case "(($ac_try" in
2024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2025 *) ac_try_echo=$ac_try;;
2026 esac
2027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2028 $as_echo "$ac_try_echo"; } >&5
2029 (eval "$ac_link") 2>conftest.err
2030 ac_status=$?
2031 if test -s conftest.err; then
2032 grep -v '^ *+' conftest.err >conftest.er1
2033 cat conftest.er1 >&5
2034 mv -f conftest.er1 conftest.err
2036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2037 test $ac_status = 0; } && {
2038 test -z "$ac_c_werror_flag" ||
2039 test ! -s conftest.err
2040 } && test -s conftest$ac_exeext && {
2041 test "$cross_compiling" = yes ||
2042 $as_test_x conftest$ac_exeext
2043 }; then :
2044 ac_retval=0
2045 else
2046 $as_echo "$as_me: failed program was:" >&5
2047 sed 's/^/| /' conftest.$ac_ext >&5
2049 ac_retval=1
2051 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2052 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2053 # interfere with the next link command; also delete a directory that is
2054 # left behind by Apple's compiler. We do this before executing the actions.
2055 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2056 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2057 return $ac_retval
2059 } # ac_fn_c_try_link
2061 # ac_fn_c_check_func LINENO FUNC VAR
2062 # ----------------------------------
2063 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2064 ac_fn_c_check_func ()
2066 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2068 $as_echo_n "checking for $2... " >&6; }
2069 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2070 $as_echo_n "(cached) " >&6
2071 else
2072 if test x$gcc_no_link = xyes; then
2073 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076 /* end confdefs.h. */
2077 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2079 #define $2 innocuous_$2
2081 /* System header to define __stub macros and hopefully few prototypes,
2082 which can conflict with char $2 (); below.
2083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2084 <limits.h> exists even on freestanding compilers. */
2086 #ifdef __STDC__
2087 # include <limits.h>
2088 #else
2089 # include <assert.h>
2090 #endif
2092 #undef $2
2094 /* Override any GCC internal prototype to avoid an error.
2095 Use char because int might match the return type of a GCC
2096 builtin and then its argument prototype would still apply. */
2097 #ifdef __cplusplus
2098 extern "C"
2099 #endif
2100 char $2 ();
2101 /* The GNU C library defines this for functions which it implements
2102 to always fail with ENOSYS. Some functions are actually named
2103 something starting with __ and the normal name is an alias. */
2104 #if defined __stub_$2 || defined __stub___$2
2105 choke me
2106 #endif
2109 main ()
2111 return $2 ();
2113 return 0;
2115 _ACEOF
2116 if ac_fn_c_try_link "$LINENO"; then :
2117 eval "$3=yes"
2118 else
2119 eval "$3=no"
2121 rm -f core conftest.err conftest.$ac_objext \
2122 conftest$ac_exeext conftest.$ac_ext
2124 eval ac_res=\$$3
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2126 $as_echo "$ac_res" >&6; }
2127 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2129 } # ac_fn_c_check_func
2131 # ac_fn_cxx_try_compile LINENO
2132 # ----------------------------
2133 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2134 ac_fn_cxx_try_compile ()
2136 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137 rm -f conftest.$ac_objext
2138 if { { ac_try="$ac_compile"
2139 case "(($ac_try" in
2140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2141 *) ac_try_echo=$ac_try;;
2142 esac
2143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2144 $as_echo "$ac_try_echo"; } >&5
2145 (eval "$ac_compile") 2>conftest.err
2146 ac_status=$?
2147 if test -s conftest.err; then
2148 grep -v '^ *+' conftest.err >conftest.er1
2149 cat conftest.er1 >&5
2150 mv -f conftest.er1 conftest.err
2152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2153 test $ac_status = 0; } && {
2154 test -z "$ac_cxx_werror_flag" ||
2155 test ! -s conftest.err
2156 } && test -s conftest.$ac_objext; then :
2157 ac_retval=0
2158 else
2159 $as_echo "$as_me: failed program was:" >&5
2160 sed 's/^/| /' conftest.$ac_ext >&5
2162 ac_retval=1
2164 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2165 return $ac_retval
2167 } # ac_fn_cxx_try_compile
2169 # ac_fn_cxx_try_cpp LINENO
2170 # ------------------------
2171 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2172 ac_fn_cxx_try_cpp ()
2174 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2175 if { { ac_try="$ac_cpp conftest.$ac_ext"
2176 case "(($ac_try" in
2177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2178 *) ac_try_echo=$ac_try;;
2179 esac
2180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2181 $as_echo "$ac_try_echo"; } >&5
2182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2183 ac_status=$?
2184 if test -s conftest.err; then
2185 grep -v '^ *+' conftest.err >conftest.er1
2186 cat conftest.er1 >&5
2187 mv -f conftest.er1 conftest.err
2189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2190 test $ac_status = 0; } >/dev/null && {
2191 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2192 test ! -s conftest.err
2193 }; then :
2194 ac_retval=0
2195 else
2196 $as_echo "$as_me: failed program was:" >&5
2197 sed 's/^/| /' conftest.$ac_ext >&5
2199 ac_retval=1
2201 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2202 return $ac_retval
2204 } # ac_fn_cxx_try_cpp
2206 # ac_fn_cxx_try_link LINENO
2207 # -------------------------
2208 # Try to link conftest.$ac_ext, and return whether this succeeded.
2209 ac_fn_cxx_try_link ()
2211 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2212 rm -f conftest.$ac_objext conftest$ac_exeext
2213 if { { ac_try="$ac_link"
2214 case "(($ac_try" in
2215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2216 *) ac_try_echo=$ac_try;;
2217 esac
2218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2219 $as_echo "$ac_try_echo"; } >&5
2220 (eval "$ac_link") 2>conftest.err
2221 ac_status=$?
2222 if test -s conftest.err; then
2223 grep -v '^ *+' conftest.err >conftest.er1
2224 cat conftest.er1 >&5
2225 mv -f conftest.er1 conftest.err
2227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2228 test $ac_status = 0; } && {
2229 test -z "$ac_cxx_werror_flag" ||
2230 test ! -s conftest.err
2231 } && test -s conftest$ac_exeext && {
2232 test "$cross_compiling" = yes ||
2233 $as_test_x conftest$ac_exeext
2234 }; then :
2235 ac_retval=0
2236 else
2237 $as_echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.$ac_ext >&5
2240 ac_retval=1
2242 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2243 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2244 # interfere with the next link command; also delete a directory that is
2245 # left behind by Apple's compiler. We do this before executing the actions.
2246 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2247 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2248 return $ac_retval
2250 } # ac_fn_cxx_try_link
2252 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2253 # ----------------------------------------------------
2254 # Tries to find if the field MEMBER exists in type AGGR, after including
2255 # INCLUDES, setting cache variable VAR accordingly.
2256 ac_fn_c_check_member ()
2258 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2260 $as_echo_n "checking for $2.$3... " >&6; }
2261 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2262 $as_echo_n "(cached) " >&6
2263 else
2264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2265 /* end confdefs.h. */
2268 main ()
2270 static $2 ac_aggr;
2271 if (ac_aggr.$3)
2272 return 0;
2274 return 0;
2276 _ACEOF
2277 if ac_fn_c_try_compile "$LINENO"; then :
2278 eval "$4=yes"
2279 else
2280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281 /* end confdefs.h. */
2284 main ()
2286 static $2 ac_aggr;
2287 if (sizeof ac_aggr.$3)
2288 return 0;
2290 return 0;
2292 _ACEOF
2293 if ac_fn_c_try_compile "$LINENO"; then :
2294 eval "$4=yes"
2295 else
2296 eval "$4=no"
2298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2302 eval ac_res=\$$4
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2304 $as_echo "$ac_res" >&6; }
2305 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2307 } # ac_fn_c_check_member
2309 # ac_fn_c_check_decl LINENO SYMBOL VAR
2310 # ------------------------------------
2311 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2312 ac_fn_c_check_decl ()
2314 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2315 as_decl_name=`echo $2|sed 's/ *(.*//'`
2316 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2318 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2319 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2320 $as_echo_n "(cached) " >&6
2321 else
2322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2323 /* end confdefs.h. */
2326 main ()
2328 #ifndef $as_decl_name
2329 #ifdef __cplusplus
2330 (void) $as_decl_use;
2331 #else
2332 (void) $as_decl_name;
2333 #endif
2334 #endif
2337 return 0;
2339 _ACEOF
2340 if ac_fn_c_try_compile "$LINENO"; then :
2341 eval "$3=yes"
2342 else
2343 eval "$3=no"
2345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2347 eval ac_res=\$$3
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2349 $as_echo "$ac_res" >&6; }
2350 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2352 } # ac_fn_c_check_decl
2354 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2355 # -------------------------------------------
2356 # Tests whether TYPE exists after having included INCLUDES, setting cache
2357 # variable VAR accordingly.
2358 ac_fn_c_check_type ()
2360 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2362 $as_echo_n "checking for $2... " >&6; }
2363 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2364 $as_echo_n "(cached) " >&6
2365 else
2366 eval "$3=no"
2367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2368 /* end confdefs.h. */
2371 main ()
2373 if (sizeof ($2))
2374 return 0;
2376 return 0;
2378 _ACEOF
2379 if ac_fn_c_try_compile "$LINENO"; then :
2380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2381 /* end confdefs.h. */
2384 main ()
2386 if (sizeof (($2)))
2387 return 0;
2389 return 0;
2391 _ACEOF
2392 if ac_fn_c_try_compile "$LINENO"; then :
2394 else
2395 eval "$3=yes"
2397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2401 eval ac_res=\$$3
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2403 $as_echo "$ac_res" >&6; }
2404 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2406 } # ac_fn_c_check_type
2408 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2409 # --------------------------------------------
2410 # Tries to find the compile-time value of EXPR in a program that includes
2411 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2412 # computed
2413 ac_fn_c_compute_int ()
2415 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2416 if test "$cross_compiling" = yes; then
2417 # Depending upon the size, compute the lo and hi bounds.
2418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2419 /* end confdefs.h. */
2422 main ()
2424 static int test_array [1 - 2 * !(($2) >= 0)];
2425 test_array [0] = 0
2428 return 0;
2430 _ACEOF
2431 if ac_fn_c_try_compile "$LINENO"; then :
2432 ac_lo=0 ac_mid=0
2433 while :; do
2434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2435 /* end confdefs.h. */
2438 main ()
2440 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2441 test_array [0] = 0
2444 return 0;
2446 _ACEOF
2447 if ac_fn_c_try_compile "$LINENO"; then :
2448 ac_hi=$ac_mid; break
2449 else
2450 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2451 if test $ac_lo -le $ac_mid; then
2452 ac_lo= ac_hi=
2453 break
2455 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2458 done
2459 else
2460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2461 /* end confdefs.h. */
2464 main ()
2466 static int test_array [1 - 2 * !(($2) < 0)];
2467 test_array [0] = 0
2470 return 0;
2472 _ACEOF
2473 if ac_fn_c_try_compile "$LINENO"; then :
2474 ac_hi=-1 ac_mid=-1
2475 while :; do
2476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2477 /* end confdefs.h. */
2480 main ()
2482 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2483 test_array [0] = 0
2486 return 0;
2488 _ACEOF
2489 if ac_fn_c_try_compile "$LINENO"; then :
2490 ac_lo=$ac_mid; break
2491 else
2492 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2493 if test $ac_mid -le $ac_hi; then
2494 ac_lo= ac_hi=
2495 break
2497 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2500 done
2501 else
2502 ac_lo= ac_hi=
2504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2507 # Binary search between lo and hi bounds.
2508 while test "x$ac_lo" != "x$ac_hi"; do
2509 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2511 /* end confdefs.h. */
2514 main ()
2516 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2517 test_array [0] = 0
2520 return 0;
2522 _ACEOF
2523 if ac_fn_c_try_compile "$LINENO"; then :
2524 ac_hi=$ac_mid
2525 else
2526 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2529 done
2530 case $ac_lo in #((
2531 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2532 '') ac_retval=1 ;;
2533 esac
2534 else
2535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2536 /* end confdefs.h. */
2538 static long int longval () { return $2; }
2539 static unsigned long int ulongval () { return $2; }
2540 #include <stdio.h>
2541 #include <stdlib.h>
2543 main ()
2546 FILE *f = fopen ("conftest.val", "w");
2547 if (! f)
2548 return 1;
2549 if (($2) < 0)
2551 long int i = longval ();
2552 if (i != ($2))
2553 return 1;
2554 fprintf (f, "%ld", i);
2556 else
2558 unsigned long int i = ulongval ();
2559 if (i != ($2))
2560 return 1;
2561 fprintf (f, "%lu", i);
2563 /* Do not output a trailing newline, as this causes \r\n confusion
2564 on some platforms. */
2565 return ferror (f) || fclose (f) != 0;
2568 return 0;
2570 _ACEOF
2571 if ac_fn_c_try_run "$LINENO"; then :
2572 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2573 else
2574 ac_retval=1
2576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2577 conftest.$ac_objext conftest.beam conftest.$ac_ext
2578 rm -f conftest.val
2581 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2582 return $ac_retval
2584 } # ac_fn_c_compute_int
2585 cat >config.log <<_ACEOF
2586 This file contains any messages produced by compilers while
2587 running configure, to aid debugging if configure makes a mistake.
2589 It was created by GNU Classpath $as_me 0.99-pre, which was
2590 generated by GNU Autoconf 2.64. Invocation command line was
2592 $ $0 $@
2594 _ACEOF
2595 exec 5>>config.log
2597 cat <<_ASUNAME
2598 ## --------- ##
2599 ## Platform. ##
2600 ## --------- ##
2602 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2603 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2604 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2605 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2606 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2608 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2609 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2611 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2612 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2613 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2614 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2615 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2616 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2617 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2619 _ASUNAME
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 for as_dir in $PATH
2624 IFS=$as_save_IFS
2625 test -z "$as_dir" && as_dir=.
2626 $as_echo "PATH: $as_dir"
2627 done
2628 IFS=$as_save_IFS
2630 } >&5
2632 cat >&5 <<_ACEOF
2635 ## ----------- ##
2636 ## Core tests. ##
2637 ## ----------- ##
2639 _ACEOF
2642 # Keep a trace of the command line.
2643 # Strip out --no-create and --no-recursion so they do not pile up.
2644 # Strip out --silent because we don't want to record it for future runs.
2645 # Also quote any args containing shell meta-characters.
2646 # Make two passes to allow for proper duplicate-argument suppression.
2647 ac_configure_args=
2648 ac_configure_args0=
2649 ac_configure_args1=
2650 ac_must_keep_next=false
2651 for ac_pass in 1 2
2653 for ac_arg
2655 case $ac_arg in
2656 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2657 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2658 | -silent | --silent | --silen | --sile | --sil)
2659 continue ;;
2660 *\'*)
2661 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2662 esac
2663 case $ac_pass in
2664 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2666 as_fn_append ac_configure_args1 " '$ac_arg'"
2667 if test $ac_must_keep_next = true; then
2668 ac_must_keep_next=false # Got value, back to normal.
2669 else
2670 case $ac_arg in
2671 *=* | --config-cache | -C | -disable-* | --disable-* \
2672 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2673 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2674 | -with-* | --with-* | -without-* | --without-* | --x)
2675 case "$ac_configure_args0 " in
2676 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2677 esac
2679 -* ) ac_must_keep_next=true ;;
2680 esac
2682 as_fn_append ac_configure_args " '$ac_arg'"
2684 esac
2685 done
2686 done
2687 { ac_configure_args0=; unset ac_configure_args0;}
2688 { ac_configure_args1=; unset ac_configure_args1;}
2690 # When interrupted or exit'd, cleanup temporary files, and complete
2691 # config.log. We remove comments because anyway the quotes in there
2692 # would cause problems or look ugly.
2693 # WARNING: Use '\'' to represent an apostrophe within the trap.
2694 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2695 trap 'exit_status=$?
2696 # Save into config.log some information that might help in debugging.
2698 echo
2700 cat <<\_ASBOX
2701 ## ---------------- ##
2702 ## Cache variables. ##
2703 ## ---------------- ##
2704 _ASBOX
2705 echo
2706 # The following way of writing the cache mishandles newlines in values,
2708 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2709 eval ac_val=\$$ac_var
2710 case $ac_val in #(
2711 *${as_nl}*)
2712 case $ac_var in #(
2713 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2714 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2715 esac
2716 case $ac_var in #(
2717 _ | IFS | as_nl) ;; #(
2718 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2719 *) { eval $ac_var=; unset $ac_var;} ;;
2720 esac ;;
2721 esac
2722 done
2723 (set) 2>&1 |
2724 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2725 *${as_nl}ac_space=\ *)
2726 sed -n \
2727 "s/'\''/'\''\\\\'\'''\''/g;
2728 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2729 ;; #(
2731 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2733 esac |
2734 sort
2736 echo
2738 cat <<\_ASBOX
2739 ## ----------------- ##
2740 ## Output variables. ##
2741 ## ----------------- ##
2742 _ASBOX
2743 echo
2744 for ac_var in $ac_subst_vars
2746 eval ac_val=\$$ac_var
2747 case $ac_val in
2748 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2749 esac
2750 $as_echo "$ac_var='\''$ac_val'\''"
2751 done | sort
2752 echo
2754 if test -n "$ac_subst_files"; then
2755 cat <<\_ASBOX
2756 ## ------------------- ##
2757 ## File substitutions. ##
2758 ## ------------------- ##
2759 _ASBOX
2760 echo
2761 for ac_var in $ac_subst_files
2763 eval ac_val=\$$ac_var
2764 case $ac_val in
2765 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2766 esac
2767 $as_echo "$ac_var='\''$ac_val'\''"
2768 done | sort
2769 echo
2772 if test -s confdefs.h; then
2773 cat <<\_ASBOX
2774 ## ----------- ##
2775 ## confdefs.h. ##
2776 ## ----------- ##
2777 _ASBOX
2778 echo
2779 cat confdefs.h
2780 echo
2782 test "$ac_signal" != 0 &&
2783 $as_echo "$as_me: caught signal $ac_signal"
2784 $as_echo "$as_me: exit $exit_status"
2785 } >&5
2786 rm -f core *.core core.conftest.* &&
2787 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2788 exit $exit_status
2790 for ac_signal in 1 2 13 15; do
2791 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2792 done
2793 ac_signal=0
2795 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2796 rm -f -r conftest* confdefs.h
2798 $as_echo "/* confdefs.h */" > confdefs.h
2800 # Predefined preprocessor variables.
2802 cat >>confdefs.h <<_ACEOF
2803 #define PACKAGE_NAME "$PACKAGE_NAME"
2804 _ACEOF
2806 cat >>confdefs.h <<_ACEOF
2807 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2808 _ACEOF
2810 cat >>confdefs.h <<_ACEOF
2811 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2812 _ACEOF
2814 cat >>confdefs.h <<_ACEOF
2815 #define PACKAGE_STRING "$PACKAGE_STRING"
2816 _ACEOF
2818 cat >>confdefs.h <<_ACEOF
2819 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2820 _ACEOF
2822 cat >>confdefs.h <<_ACEOF
2823 #define PACKAGE_URL "$PACKAGE_URL"
2824 _ACEOF
2827 # Let the site file select an alternate cache file if it wants to.
2828 # Prefer an explicitly selected file to automatically selected ones.
2829 ac_site_file1=NONE
2830 ac_site_file2=NONE
2831 if test -n "$CONFIG_SITE"; then
2832 ac_site_file1=$CONFIG_SITE
2833 elif test "x$prefix" != xNONE; then
2834 ac_site_file1=$prefix/share/config.site
2835 ac_site_file2=$prefix/etc/config.site
2836 else
2837 ac_site_file1=$ac_default_prefix/share/config.site
2838 ac_site_file2=$ac_default_prefix/etc/config.site
2840 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2842 test "x$ac_site_file" = xNONE && continue
2843 if test -r "$ac_site_file"; then
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2845 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2846 sed 's/^/| /' "$ac_site_file" >&5
2847 . "$ac_site_file"
2849 done
2851 if test -r "$cache_file"; then
2852 # Some versions of bash will fail to source /dev/null (special
2853 # files actually), so we avoid doing that.
2854 if test -f "$cache_file"; then
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2856 $as_echo "$as_me: loading cache $cache_file" >&6;}
2857 case $cache_file in
2858 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2859 *) . "./$cache_file";;
2860 esac
2862 else
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2864 $as_echo "$as_me: creating cache $cache_file" >&6;}
2865 >$cache_file
2868 # Check that the precious variables saved in the cache have kept the same
2869 # value.
2870 ac_cache_corrupted=false
2871 for ac_var in $ac_precious_vars; do
2872 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2873 eval ac_new_set=\$ac_env_${ac_var}_set
2874 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2875 eval ac_new_val=\$ac_env_${ac_var}_value
2876 case $ac_old_set,$ac_new_set in
2877 set,)
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2879 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2880 ac_cache_corrupted=: ;;
2881 ,set)
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2883 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2884 ac_cache_corrupted=: ;;
2885 ,);;
2887 if test "x$ac_old_val" != "x$ac_new_val"; then
2888 # differences in whitespace do not lead to failure.
2889 ac_old_val_w=`echo x $ac_old_val`
2890 ac_new_val_w=`echo x $ac_new_val`
2891 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2893 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2894 ac_cache_corrupted=:
2895 else
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2897 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2898 eval $ac_var=\$ac_old_val
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2901 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2903 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2904 fi;;
2905 esac
2906 # Pass precious variables to config.status.
2907 if test "$ac_new_set" = set; then
2908 case $ac_new_val in
2909 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2910 *) ac_arg=$ac_var=$ac_new_val ;;
2911 esac
2912 case " $ac_configure_args " in
2913 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2914 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2915 esac
2917 done
2918 if $ac_cache_corrupted; then
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2922 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2923 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2925 ## -------------------- ##
2926 ## Main body of script. ##
2927 ## -------------------- ##
2929 ac_ext=c
2930 ac_cpp='$CPP $CPPFLAGS'
2931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2942 ac_aux_dir=
2943 for ac_dir in ../.. "$srcdir"/../..; do
2944 for ac_t in install-sh install.sh shtool; do
2945 if test -f "$ac_dir/$ac_t"; then
2946 ac_aux_dir=$ac_dir
2947 ac_install_sh="$ac_aux_dir/$ac_t -c"
2948 break 2
2950 done
2951 done
2952 if test -z "$ac_aux_dir"; then
2953 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
2956 # These three variables are undocumented and unsupported,
2957 # and are intended to be withdrawn in a future Autoconf release.
2958 # They can cause serious problems if a builder's source tree is in a directory
2959 # whose full name contains unusual characters.
2960 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2961 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2962 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2966 # Make sure we can run config.sub.
2967 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2968 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2971 $as_echo_n "checking build system type... " >&6; }
2972 if test "${ac_cv_build+set}" = set; then :
2973 $as_echo_n "(cached) " >&6
2974 else
2975 ac_build_alias=$build_alias
2976 test "x$ac_build_alias" = x &&
2977 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2978 test "x$ac_build_alias" = x &&
2979 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2980 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2981 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2985 $as_echo "$ac_cv_build" >&6; }
2986 case $ac_cv_build in
2987 *-*-*) ;;
2988 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2989 esac
2990 build=$ac_cv_build
2991 ac_save_IFS=$IFS; IFS='-'
2992 set x $ac_cv_build
2993 shift
2994 build_cpu=$1
2995 build_vendor=$2
2996 shift; shift
2997 # Remember, the first character of IFS is used to create $*,
2998 # except with old shells:
2999 build_os=$*
3000 IFS=$ac_save_IFS
3001 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3005 $as_echo_n "checking host system type... " >&6; }
3006 if test "${ac_cv_host+set}" = set; then :
3007 $as_echo_n "(cached) " >&6
3008 else
3009 if test "x$host_alias" = x; then
3010 ac_cv_host=$ac_cv_build
3011 else
3012 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3013 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3018 $as_echo "$ac_cv_host" >&6; }
3019 case $ac_cv_host in
3020 *-*-*) ;;
3021 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3022 esac
3023 host=$ac_cv_host
3024 ac_save_IFS=$IFS; IFS='-'
3025 set x $ac_cv_host
3026 shift
3027 host_cpu=$1
3028 host_vendor=$2
3029 shift; shift
3030 # Remember, the first character of IFS is used to create $*,
3031 # except with old shells:
3032 host_os=$*
3033 IFS=$ac_save_IFS
3034 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3038 $as_echo_n "checking target system type... " >&6; }
3039 if test "${ac_cv_target+set}" = set; then :
3040 $as_echo_n "(cached) " >&6
3041 else
3042 if test "x$target_alias" = x; then
3043 ac_cv_target=$ac_cv_host
3044 else
3045 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3046 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3051 $as_echo "$ac_cv_target" >&6; }
3052 case $ac_cv_target in
3053 *-*-*) ;;
3054 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3055 esac
3056 target=$ac_cv_target
3057 ac_save_IFS=$IFS; IFS='-'
3058 set x $ac_cv_target
3059 shift
3060 target_cpu=$1
3061 target_vendor=$2
3062 shift; shift
3063 # Remember, the first character of IFS is used to create $*,
3064 # except with old shells:
3065 target_os=$*
3066 IFS=$ac_save_IFS
3067 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3070 # The aliases save the names the user supplied, while $host etc.
3071 # will get canonicalized.
3072 test -n "$target_alias" &&
3073 test "$program_prefix$program_suffix$program_transform_name" = \
3074 NONENONEs,x,x, &&
3075 program_prefix=${target_alias}-
3077 # Check whether --enable-java-maintainer-mode was given.
3078 if test "${enable_java_maintainer_mode+set}" = set; then :
3079 enableval=$enable_java_maintainer_mode;
3082 if test "$enable_java_maintainer_mode" = yes; then
3083 JAVA_MAINTAINER_MODE_TRUE=
3084 JAVA_MAINTAINER_MODE_FALSE='#'
3085 else
3086 JAVA_MAINTAINER_MODE_TRUE='#'
3087 JAVA_MAINTAINER_MODE_FALSE=
3091 # We would like to our source tree to be readonly. However when releases or
3092 # pre-releases are generated, the man pages need to be included as they are
3093 # converted from the texi files via perl which we don't require end users to
3094 # have installed.
3095 # Therefore we have --enable-generated-files-in-srcdir to do just that.
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3098 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3099 # Check whether --enable-generated-files-in-srcdir was given.
3100 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3101 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3102 else
3103 generated_files_in_srcdir=no
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3108 $as_echo "$generated_files_in_srcdir" >&6; }
3109 if test x$generated_files_in_srcdir = xyes; then
3110 GENINSRC_TRUE=
3111 GENINSRC_FALSE='#'
3112 else
3113 GENINSRC_TRUE='#'
3114 GENINSRC_FALSE=
3118 # Find the rest of the source tree framework.
3119 # Default to --enable-multilib
3120 # Check whether --enable-multilib was given.
3121 if test "${enable_multilib+set}" = set; then :
3122 enableval=$enable_multilib; case "$enableval" in
3123 yes) multilib=yes ;;
3124 no) multilib=no ;;
3125 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3126 esac
3127 else
3128 multilib=yes
3132 # We may get other options which we leave undocumented:
3133 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3134 # See config-ml.in if you want the gory details.
3136 if test "$srcdir" = "."; then
3137 if test "$with_target_subdir" != "."; then
3138 multi_basedir="$srcdir/$with_multisrctop../../.."
3139 else
3140 multi_basedir="$srcdir/$with_multisrctop../.."
3142 else
3143 multi_basedir="$srcdir/../.."
3147 # Even if the default multilib is not a cross compilation,
3148 # it may be that some of the other multilibs are.
3149 if test $cross_compiling = no && test $multilib = yes \
3150 && test "x${with_multisubdir}" != x ; then
3151 cross_compiling=maybe
3154 ac_config_commands="$ac_config_commands default-1"
3157 if test -z "${with_multisubdir}"; then
3158 INSTALL_BINARIES_TRUE=
3159 INSTALL_BINARIES_FALSE='#'
3160 else
3161 INSTALL_BINARIES_TRUE='#'
3162 INSTALL_BINARIES_FALSE=
3166 if expr ${target_cpu} : '.*86' > /dev/null; then target_cpu=x86; fi
3168 LIBVERSION="0:0:0"
3170 case "$host_os" in
3171 darwin*)
3172 cp_module=""
3175 cp_module="-module"
3177 esac
3179 CLASSPATH_MODULE="${cp_module} -version-info ${LIBVERSION} -no-undefined"
3182 CLASSPATH_CONVENIENCE="-no-undefined"
3186 am__api_version='1.11'
3188 # Find a good install program. We prefer a C program (faster),
3189 # so one script is as good as another. But avoid the broken or
3190 # incompatible versions:
3191 # SysV /etc/install, /usr/sbin/install
3192 # SunOS /usr/etc/install
3193 # IRIX /sbin/install
3194 # AIX /bin/install
3195 # AmigaOS /C/install, which installs bootblocks on floppy discs
3196 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3197 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3198 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3199 # OS/2's system install, which has a completely different semantic
3200 # ./install, which can be erroneously created by make from ./install.sh.
3201 # Reject install programs that cannot install multiple files.
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3203 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3204 if test -z "$INSTALL"; then
3205 if test "${ac_cv_path_install+set}" = set; then :
3206 $as_echo_n "(cached) " >&6
3207 else
3208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209 for as_dir in $PATH
3211 IFS=$as_save_IFS
3212 test -z "$as_dir" && as_dir=.
3213 # Account for people who put trailing slashes in PATH elements.
3214 case $as_dir/ in #((
3215 ./ | .// | /[cC]/* | \
3216 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3217 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3218 /usr/ucb/* ) ;;
3220 # OSF1 and SCO ODT 3.0 have their own names for install.
3221 # Don't use installbsd from OSF since it installs stuff as root
3222 # by default.
3223 for ac_prog in ginstall scoinst install; do
3224 for ac_exec_ext in '' $ac_executable_extensions; do
3225 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3226 if test $ac_prog = install &&
3227 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3228 # AIX install. It has an incompatible calling convention.
3230 elif test $ac_prog = install &&
3231 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3232 # program-specific install script used by HP pwplus--don't use.
3234 else
3235 rm -rf conftest.one conftest.two conftest.dir
3236 echo one > conftest.one
3237 echo two > conftest.two
3238 mkdir conftest.dir
3239 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3240 test -s conftest.one && test -s conftest.two &&
3241 test -s conftest.dir/conftest.one &&
3242 test -s conftest.dir/conftest.two
3243 then
3244 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3245 break 3
3249 done
3250 done
3252 esac
3254 done
3255 IFS=$as_save_IFS
3257 rm -rf conftest.one conftest.two conftest.dir
3260 if test "${ac_cv_path_install+set}" = set; then
3261 INSTALL=$ac_cv_path_install
3262 else
3263 # As a last resort, use the slow shell script. Don't cache a
3264 # value for INSTALL within a source directory, because that will
3265 # break other packages using the cache if that directory is
3266 # removed, or if the value is a relative name.
3267 INSTALL=$ac_install_sh
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3271 $as_echo "$INSTALL" >&6; }
3273 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3274 # It thinks the first close brace ends the variable substitution.
3275 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3277 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3279 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3282 $as_echo_n "checking whether build environment is sane... " >&6; }
3283 # Just in case
3284 sleep 1
3285 echo timestamp > conftest.file
3286 # Reject unsafe characters in $srcdir or the absolute working directory
3287 # name. Accept space and tab only in the latter.
3288 am_lf='
3290 case `pwd` in
3291 *[\\\"\#\$\&\'\`$am_lf]*)
3292 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3293 esac
3294 case $srcdir in
3295 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3296 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3297 esac
3299 # Do `set' in a subshell so we don't clobber the current shell's
3300 # arguments. Must try -L first in case configure is actually a
3301 # symlink; some systems play weird games with the mod time of symlinks
3302 # (eg FreeBSD returns the mod time of the symlink's containing
3303 # directory).
3304 if (
3305 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3306 if test "$*" = "X"; then
3307 # -L didn't work.
3308 set X `ls -t "$srcdir/configure" conftest.file`
3310 rm -f conftest.file
3311 if test "$*" != "X $srcdir/configure conftest.file" \
3312 && test "$*" != "X conftest.file $srcdir/configure"; then
3314 # If neither matched, then we have a broken ls. This can happen
3315 # if, for instance, CONFIG_SHELL is bash and it inherits a
3316 # broken ls alias from the environment. This has actually
3317 # happened. Such a system could not be considered "sane".
3318 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3319 alias in your environment" "$LINENO" 5
3322 test "$2" = conftest.file
3324 then
3325 # Ok.
3327 else
3328 as_fn_error "newly created file is older than distributed files!
3329 Check your system clock" "$LINENO" 5
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3332 $as_echo "yes" >&6; }
3333 test "$program_prefix" != NONE &&
3334 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3335 # Use a double $ so make ignores it.
3336 test "$program_suffix" != NONE &&
3337 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3338 # Double any \ or $.
3339 # By default was `s,x,x', remove it if useless.
3340 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3341 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3343 # expand $ac_aux_dir to an absolute path
3344 am_aux_dir=`cd $ac_aux_dir && pwd`
3346 if test x"${MISSING+set}" != xset; then
3347 case $am_aux_dir in
3348 *\ * | *\ *)
3349 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3351 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3352 esac
3354 # Use eval to expand $SHELL
3355 if eval "$MISSING --run true"; then
3356 am_missing_run="$MISSING --run "
3357 else
3358 am_missing_run=
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3360 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3363 if test x"${install_sh}" != xset; then
3364 case $am_aux_dir in
3365 *\ * | *\ *)
3366 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3368 install_sh="\${SHELL} $am_aux_dir/install-sh"
3369 esac
3372 # Installed binaries are usually stripped using `strip' when the user
3373 # run `make install-strip'. However `strip' might not be the right
3374 # tool to use in cross-compilation environments, therefore Automake
3375 # will honor the `STRIP' environment variable to overrule this program.
3376 if test "$cross_compiling" != no; then
3377 if test -n "$ac_tool_prefix"; then
3378 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3379 set dummy ${ac_tool_prefix}strip; ac_word=$2
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3381 $as_echo_n "checking for $ac_word... " >&6; }
3382 if test "${ac_cv_prog_STRIP+set}" = set; then :
3383 $as_echo_n "(cached) " >&6
3384 else
3385 if test -n "$STRIP"; then
3386 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3387 else
3388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389 for as_dir in $PATH
3391 IFS=$as_save_IFS
3392 test -z "$as_dir" && as_dir=.
3393 for ac_exec_ext in '' $ac_executable_extensions; do
3394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3395 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3397 break 2
3399 done
3400 done
3401 IFS=$as_save_IFS
3405 STRIP=$ac_cv_prog_STRIP
3406 if test -n "$STRIP"; then
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3408 $as_echo "$STRIP" >&6; }
3409 else
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3411 $as_echo "no" >&6; }
3416 if test -z "$ac_cv_prog_STRIP"; then
3417 ac_ct_STRIP=$STRIP
3418 # Extract the first word of "strip", so it can be a program name with args.
3419 set dummy strip; ac_word=$2
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3421 $as_echo_n "checking for $ac_word... " >&6; }
3422 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3423 $as_echo_n "(cached) " >&6
3424 else
3425 if test -n "$ac_ct_STRIP"; then
3426 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3427 else
3428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3429 for as_dir in $PATH
3431 IFS=$as_save_IFS
3432 test -z "$as_dir" && as_dir=.
3433 for ac_exec_ext in '' $ac_executable_extensions; do
3434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3435 ac_cv_prog_ac_ct_STRIP="strip"
3436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3437 break 2
3439 done
3440 done
3441 IFS=$as_save_IFS
3445 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3446 if test -n "$ac_ct_STRIP"; then
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3448 $as_echo "$ac_ct_STRIP" >&6; }
3449 else
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3451 $as_echo "no" >&6; }
3454 if test "x$ac_ct_STRIP" = x; then
3455 STRIP=":"
3456 else
3457 case $cross_compiling:$ac_tool_warned in
3458 yes:)
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3461 ac_tool_warned=yes ;;
3462 esac
3463 STRIP=$ac_ct_STRIP
3465 else
3466 STRIP="$ac_cv_prog_STRIP"
3470 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3473 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3474 if test -z "$MKDIR_P"; then
3475 if test "${ac_cv_path_mkdir+set}" = set; then :
3476 $as_echo_n "(cached) " >&6
3477 else
3478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3481 IFS=$as_save_IFS
3482 test -z "$as_dir" && as_dir=.
3483 for ac_prog in mkdir gmkdir; do
3484 for ac_exec_ext in '' $ac_executable_extensions; do
3485 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3486 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3487 'mkdir (GNU coreutils) '* | \
3488 'mkdir (coreutils) '* | \
3489 'mkdir (fileutils) '4.1*)
3490 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3491 break 3;;
3492 esac
3493 done
3494 done
3495 done
3496 IFS=$as_save_IFS
3500 if test "${ac_cv_path_mkdir+set}" = set; then
3501 MKDIR_P="$ac_cv_path_mkdir -p"
3502 else
3503 # As a last resort, use the slow shell script. Don't cache a
3504 # value for MKDIR_P within a source directory, because that will
3505 # break other packages using the cache if that directory is
3506 # removed, or if the value is a relative name.
3507 test -d ./--version && rmdir ./--version
3508 MKDIR_P="$ac_install_sh -d"
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3512 $as_echo "$MKDIR_P" >&6; }
3514 mkdir_p="$MKDIR_P"
3515 case $mkdir_p in
3516 [\\/$]* | ?:[\\/]*) ;;
3517 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3518 esac
3520 for ac_prog in gawk mawk nawk awk
3522 # Extract the first word of "$ac_prog", so it can be a program name with args.
3523 set dummy $ac_prog; ac_word=$2
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3525 $as_echo_n "checking for $ac_word... " >&6; }
3526 if test "${ac_cv_prog_AWK+set}" = set; then :
3527 $as_echo_n "(cached) " >&6
3528 else
3529 if test -n "$AWK"; then
3530 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3531 else
3532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533 for as_dir in $PATH
3535 IFS=$as_save_IFS
3536 test -z "$as_dir" && as_dir=.
3537 for ac_exec_ext in '' $ac_executable_extensions; do
3538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3539 ac_cv_prog_AWK="$ac_prog"
3540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3541 break 2
3543 done
3544 done
3545 IFS=$as_save_IFS
3549 AWK=$ac_cv_prog_AWK
3550 if test -n "$AWK"; then
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3552 $as_echo "$AWK" >&6; }
3553 else
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3555 $as_echo "no" >&6; }
3559 test -n "$AWK" && break
3560 done
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3563 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3564 set x ${MAKE-make}
3565 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3566 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3567 $as_echo_n "(cached) " >&6
3568 else
3569 cat >conftest.make <<\_ACEOF
3570 SHELL = /bin/sh
3571 all:
3572 @echo '@@@%%%=$(MAKE)=@@@%%%'
3573 _ACEOF
3574 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3575 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3576 *@@@%%%=?*=@@@%%%*)
3577 eval ac_cv_prog_make_${ac_make}_set=yes;;
3579 eval ac_cv_prog_make_${ac_make}_set=no;;
3580 esac
3581 rm -f conftest.make
3583 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3585 $as_echo "yes" >&6; }
3586 SET_MAKE=
3587 else
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3589 $as_echo "no" >&6; }
3590 SET_MAKE="MAKE=${MAKE-make}"
3593 rm -rf .tst 2>/dev/null
3594 mkdir .tst 2>/dev/null
3595 if test -d .tst; then
3596 am__leading_dot=.
3597 else
3598 am__leading_dot=_
3600 rmdir .tst 2>/dev/null
3602 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3603 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3604 # is not polluted with repeated "-I."
3605 am__isrc=' -I$(srcdir)'
3606 # test to see if srcdir already configured
3607 if test -f $srcdir/config.status; then
3608 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3612 # test whether we have cygpath
3613 if test -z "$CYGPATH_W"; then
3614 if (cygpath --version) >/dev/null 2>/dev/null; then
3615 CYGPATH_W='cygpath -w'
3616 else
3617 CYGPATH_W=echo
3622 # Define the identity of the package.
3623 PACKAGE='classpath'
3624 VERSION='0.99-pre'
3627 cat >>confdefs.h <<_ACEOF
3628 #define PACKAGE "$PACKAGE"
3629 _ACEOF
3632 cat >>confdefs.h <<_ACEOF
3633 #define VERSION "$VERSION"
3634 _ACEOF
3636 # Some tools Automake needs.
3638 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3641 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3644 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3647 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3650 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3652 # We need awk for the "check" target. The system "awk" is bad on
3653 # some platforms.
3654 # Always define AMTAR for backward compatibility.
3656 AMTAR=${AMTAR-"${am_missing_run}tar"}
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3660 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3661 # Loop over all known methods to create a tar archive until one works.
3662 _am_tools='gnutar plaintar pax cpio none'
3663 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3664 # Do not fold the above two line into one, because Tru64 sh and
3665 # Solaris sh will not grok spaces in the rhs of `-'.
3666 for _am_tool in $_am_tools
3668 case $_am_tool in
3669 gnutar)
3670 for _am_tar in tar gnutar gtar;
3672 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3673 ($_am_tar --version) >&5 2>&5
3674 ac_status=$?
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); } && break
3677 done
3678 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3679 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3680 am__untar="$_am_tar -xf -"
3682 plaintar)
3683 # Must skip GNU tar: if it does not support --format= it doesn't create
3684 # ustar tarball either.
3685 (tar --version) >/dev/null 2>&1 && continue
3686 am__tar='tar chf - "$$tardir"'
3687 am__tar_='tar chf - "$tardir"'
3688 am__untar='tar xf -'
3690 pax)
3691 am__tar='pax -L -x ustar -w "$$tardir"'
3692 am__tar_='pax -L -x ustar -w "$tardir"'
3693 am__untar='pax -r'
3695 cpio)
3696 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3697 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3698 am__untar='cpio -i -H ustar -d'
3700 none)
3701 am__tar=false
3702 am__tar_=false
3703 am__untar=false
3705 esac
3707 # If the value was cached, stop now. We just wanted to have am__tar
3708 # and am__untar set.
3709 test -n "${am_cv_prog_tar_ustar}" && break
3711 # tar/untar a dummy directory, and stop if the command works
3712 rm -rf conftest.dir
3713 mkdir conftest.dir
3714 echo GrepMe > conftest.dir/file
3715 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3716 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3717 ac_status=$?
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); }
3720 rm -rf conftest.dir
3721 if test -s conftest.tar; then
3722 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3723 ($am__untar <conftest.tar) >&5 2>&5
3724 ac_status=$?
3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); }
3727 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3729 done
3730 rm -rf conftest.dir
3732 if test "${am_cv_prog_tar_ustar+set}" = set; then :
3733 $as_echo_n "(cached) " >&6
3734 else
3735 am_cv_prog_tar_ustar=$_am_tool
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3739 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3745 ac_config_headers="$ac_config_headers include/config.h"
3751 # Check whether --enable-collections was given.
3752 if test "${enable_collections+set}" = set; then :
3753 enableval=$enable_collections; case x"${enableval}" in
3754 xyes) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
3755 xno) COMPILE_COLLECTIONS=no ;;
3756 x) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
3757 *) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"${enableval}\"" ;;
3758 esac
3759 else
3760 COMPILE_COLLECTIONS=no
3763 if test "x${COMPILE_COLLECTIONS}" = xyes; then
3764 CREATE_COLLECTIONS_TRUE=
3765 CREATE_COLLECTIONS_FALSE='#'
3766 else
3767 CREATE_COLLECTIONS_TRUE='#'
3768 CREATE_COLLECTIONS_FALSE=
3772 # Check whether --enable-jni was given.
3773 if test "${enable_jni+set}" = set; then :
3774 enableval=$enable_jni; case "${enableval}" in
3775 yes) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
3776 no) COMPILE_JNI=no ;;
3777 *) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
3778 esac
3779 else
3780 COMPILE_JNI=yes
3783 if test "x${COMPILE_JNI}" = xyes; then
3784 CREATE_JNI_LIBRARIES_TRUE=
3785 CREATE_JNI_LIBRARIES_FALSE='#'
3786 else
3787 CREATE_JNI_LIBRARIES_TRUE='#'
3788 CREATE_JNI_LIBRARIES_FALSE=
3792 # Check whether --enable-core-jni was given.
3793 if test "${enable_core_jni+set}" = set; then :
3794 enableval=$enable_core_jni; case "${enableval}" in
3795 yes) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
3796 no) COMPILE_CORE_JNI=no ;;
3797 *) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
3798 esac
3799 else
3800 COMPILE_CORE_JNI=yes
3803 if test "x${COMPILE_CORE_JNI}" = xyes; then
3804 CREATE_CORE_JNI_LIBRARIES_TRUE=
3805 CREATE_CORE_JNI_LIBRARIES_FALSE='#'
3806 else
3807 CREATE_CORE_JNI_LIBRARIES_TRUE='#'
3808 CREATE_CORE_JNI_LIBRARIES_FALSE=
3812 # Check whether --enable-default-preferences-peer was given.
3813 if test "${enable_default_preferences_peer+set}" = set; then :
3814 enableval=$enable_default_preferences_peer; case "${enableval}" in
3815 file) DEFAULT_PREFS_PEER=gnu.java.util.prefs.FileBasedFactory ;;
3816 gconf|yes|true) DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory ;;
3817 memory) DEFAULT_PREFS_PEER=gnu.java.util.prefs.MemoryBasedFactory ;;
3818 no|false) as_fn_error "bad value '${enableval}' for --enable-default-preferences-peer" "$LINENO" 5 ;;
3819 *) DEFAULT_PREFS_PEER=${enableval} ;;
3820 esac
3821 else
3822 DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory
3826 # Check whether --enable-gconf-peer was given.
3827 if test "${enable_gconf_peer+set}" = set; then :
3828 enableval=$enable_gconf_peer; case "${enableval}" in
3829 yes) COMPILE_GCONF_PEER=yes ;;
3830 no) COMPILE_GCONF_PEER=no ;;
3831 *) COMPILE_GCONF_PEER=yes ;;
3832 esac
3833 else
3834 COMPILE_GCONF_PEER=yes
3837 if test "x${COMPILE_GCONF_PEER}" = xyes; then
3838 CREATE_GCONF_PEER_LIBRARIES_TRUE=
3839 CREATE_GCONF_PEER_LIBRARIES_FALSE='#'
3840 else
3841 CREATE_GCONF_PEER_LIBRARIES_TRUE='#'
3842 CREATE_GCONF_PEER_LIBRARIES_FALSE=
3846 # Check whether --enable-gconf-peers was given.
3847 if test "${enable_gconf_peers+set}" = set; then :
3848 enableval=$enable_gconf_peers; as_fn_error "No --enable-gconf-peers (or --disable-gconf-peers) option; you want --enable-gconf-peer" "$LINENO" 5
3852 # Check whether --enable-gstreamer-peer was given.
3853 if test "${enable_gstreamer_peer+set}" = set; then :
3854 enableval=$enable_gstreamer_peer; case "${enableval}" in
3855 yes) COMPILE_GSTREAMER_PEER=yes ;;
3856 no) COMPILE_GSTREAMER_PEER=no ;;
3857 *) COMPILE_GSTREAMER_PEER=default ;;
3858 esac
3859 else
3860 COMPILE_GSTREAMER_PEER=default
3863 if test "x${COMPILE_GSTREAMER_PEER}" = xyes; then
3864 CREATE_GSTREAMER_PEER_LIBRARIES_TRUE=
3865 CREATE_GSTREAMER_PEER_LIBRARIES_FALSE='#'
3866 else
3867 CREATE_GSTREAMER_PEER_LIBRARIES_TRUE='#'
3868 CREATE_GSTREAMER_PEER_LIBRARIES_FALSE=
3872 # Check whether --enable-gstreamer-peers was given.
3873 if test "${enable_gstreamer_peers+set}" = set; then :
3874 enableval=$enable_gstreamer_peers; as_fn_error "No --enable-gstreamer-peers (or --disable-gstreamer-peers) option; you want --enable-gstreamer-peer" "$LINENO" 5
3878 # Check whether --enable-Werror was given.
3879 if test "${enable_Werror+set}" = set; then :
3880 enableval=$enable_Werror; case "${enableval}" in
3881 yes) ENABLE_WERROR=yes ;;
3882 no) ENABLE_WERROR=no ;;
3883 *) ENABLE_WERROR=default ;;
3884 esac
3885 else
3886 ENABLE_WERROR=default
3890 # Check whether --enable-default-toolkit was given.
3891 if test "${enable_default_toolkit+set}" = set; then :
3892 enableval=$enable_default_toolkit;
3895 default_toolkit=$enable_default_toolkit
3896 if test "$default_toolkit" = ""; then
3897 default_toolkit=gnu.java.awt.peer.gtk.GtkToolkit
3901 # Check whether --enable-xmlj was given.
3902 if test "${enable_xmlj+set}" = set; then :
3903 enableval=$enable_xmlj; case "${enableval}" in
3904 yes) COMPILE_XMLJ=yes ;;
3905 no) COMPILE_XMLJ=no ;;
3906 *) COMPILE_XMLJ=no ;;
3907 esac
3908 else
3909 COMPILE_XMLJ=no
3912 if test "x${COMPILE_XMLJ}" = xyes; then
3913 CREATE_XMLJ_LIBRARY_TRUE=
3914 CREATE_XMLJ_LIBRARY_FALSE='#'
3915 else
3916 CREATE_XMLJ_LIBRARY_TRUE='#'
3917 CREATE_XMLJ_LIBRARY_FALSE=
3921 DEPDIR="${am__leading_dot}deps"
3923 ac_config_commands="$ac_config_commands depfiles"
3926 am_make=${MAKE-make}
3927 cat > confinc << 'END'
3928 am__doit:
3929 @echo this is the am__doit target
3930 .PHONY: am__doit
3932 # If we don't find an include directive, just comment out the code.
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3934 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3935 am__include="#"
3936 am__quote=
3937 _am_result=none
3938 # First try GNU make style include.
3939 echo "include confinc" > confmf
3940 # Ignore all kinds of additional output from `make'.
3941 case `$am_make -s -f confmf 2> /dev/null` in #(
3942 *the\ am__doit\ target*)
3943 am__include=include
3944 am__quote=
3945 _am_result=GNU
3947 esac
3948 # Now try BSD make style include.
3949 if test "$am__include" = "#"; then
3950 echo '.include "confinc"' > confmf
3951 case `$am_make -s -f confmf 2> /dev/null` in #(
3952 *the\ am__doit\ target*)
3953 am__include=.include
3954 am__quote="\""
3955 _am_result=BSD
3957 esac
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3962 $as_echo "$_am_result" >&6; }
3963 rm -f confinc confmf
3965 # Check whether --enable-dependency-tracking was given.
3966 if test "${enable_dependency_tracking+set}" = set; then :
3967 enableval=$enable_dependency_tracking;
3970 if test "x$enable_dependency_tracking" != xno; then
3971 am_depcomp="$ac_aux_dir/depcomp"
3972 AMDEPBACKSLASH='\'
3974 if test "x$enable_dependency_tracking" != xno; then
3975 AMDEP_TRUE=
3976 AMDEP_FALSE='#'
3977 else
3978 AMDEP_TRUE='#'
3979 AMDEP_FALSE=
3983 ac_ext=c
3984 ac_cpp='$CPP $CPPFLAGS'
3985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3988 if test -n "$ac_tool_prefix"; then
3989 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3990 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3992 $as_echo_n "checking for $ac_word... " >&6; }
3993 if test "${ac_cv_prog_CC+set}" = set; then :
3994 $as_echo_n "(cached) " >&6
3995 else
3996 if test -n "$CC"; then
3997 ac_cv_prog_CC="$CC" # Let the user override the test.
3998 else
3999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000 for as_dir in $PATH
4002 IFS=$as_save_IFS
4003 test -z "$as_dir" && as_dir=.
4004 for ac_exec_ext in '' $ac_executable_extensions; do
4005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4006 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4008 break 2
4010 done
4011 done
4012 IFS=$as_save_IFS
4016 CC=$ac_cv_prog_CC
4017 if test -n "$CC"; then
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4019 $as_echo "$CC" >&6; }
4020 else
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4022 $as_echo "no" >&6; }
4027 if test -z "$ac_cv_prog_CC"; then
4028 ac_ct_CC=$CC
4029 # Extract the first word of "gcc", so it can be a program name with args.
4030 set dummy gcc; ac_word=$2
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4032 $as_echo_n "checking for $ac_word... " >&6; }
4033 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4034 $as_echo_n "(cached) " >&6
4035 else
4036 if test -n "$ac_ct_CC"; then
4037 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4038 else
4039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040 for as_dir in $PATH
4042 IFS=$as_save_IFS
4043 test -z "$as_dir" && as_dir=.
4044 for ac_exec_ext in '' $ac_executable_extensions; do
4045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4046 ac_cv_prog_ac_ct_CC="gcc"
4047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4048 break 2
4050 done
4051 done
4052 IFS=$as_save_IFS
4056 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4057 if test -n "$ac_ct_CC"; then
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4059 $as_echo "$ac_ct_CC" >&6; }
4060 else
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4062 $as_echo "no" >&6; }
4065 if test "x$ac_ct_CC" = x; then
4066 CC=""
4067 else
4068 case $cross_compiling:$ac_tool_warned in
4069 yes:)
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4072 ac_tool_warned=yes ;;
4073 esac
4074 CC=$ac_ct_CC
4076 else
4077 CC="$ac_cv_prog_CC"
4080 if test -z "$CC"; then
4081 if test -n "$ac_tool_prefix"; then
4082 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4083 set dummy ${ac_tool_prefix}cc; ac_word=$2
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4085 $as_echo_n "checking for $ac_word... " >&6; }
4086 if test "${ac_cv_prog_CC+set}" = set; then :
4087 $as_echo_n "(cached) " >&6
4088 else
4089 if test -n "$CC"; then
4090 ac_cv_prog_CC="$CC" # Let the user override the test.
4091 else
4092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4093 for as_dir in $PATH
4095 IFS=$as_save_IFS
4096 test -z "$as_dir" && as_dir=.
4097 for ac_exec_ext in '' $ac_executable_extensions; do
4098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4099 ac_cv_prog_CC="${ac_tool_prefix}cc"
4100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4101 break 2
4103 done
4104 done
4105 IFS=$as_save_IFS
4109 CC=$ac_cv_prog_CC
4110 if test -n "$CC"; then
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4112 $as_echo "$CC" >&6; }
4113 else
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4115 $as_echo "no" >&6; }
4121 if test -z "$CC"; then
4122 # Extract the first word of "cc", so it can be a program name with args.
4123 set dummy cc; ac_word=$2
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4125 $as_echo_n "checking for $ac_word... " >&6; }
4126 if test "${ac_cv_prog_CC+set}" = set; then :
4127 $as_echo_n "(cached) " >&6
4128 else
4129 if test -n "$CC"; then
4130 ac_cv_prog_CC="$CC" # Let the user override the test.
4131 else
4132 ac_prog_rejected=no
4133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134 for as_dir in $PATH
4136 IFS=$as_save_IFS
4137 test -z "$as_dir" && as_dir=.
4138 for ac_exec_ext in '' $ac_executable_extensions; do
4139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4140 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4141 ac_prog_rejected=yes
4142 continue
4144 ac_cv_prog_CC="cc"
4145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4146 break 2
4148 done
4149 done
4150 IFS=$as_save_IFS
4152 if test $ac_prog_rejected = yes; then
4153 # We found a bogon in the path, so make sure we never use it.
4154 set dummy $ac_cv_prog_CC
4155 shift
4156 if test $# != 0; then
4157 # We chose a different compiler from the bogus one.
4158 # However, it has the same basename, so the bogon will be chosen
4159 # first if we set CC to just the basename; use the full file name.
4160 shift
4161 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4166 CC=$ac_cv_prog_CC
4167 if test -n "$CC"; then
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4169 $as_echo "$CC" >&6; }
4170 else
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4172 $as_echo "no" >&6; }
4177 if test -z "$CC"; then
4178 if test -n "$ac_tool_prefix"; then
4179 for ac_prog in cl.exe
4181 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4182 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4184 $as_echo_n "checking for $ac_word... " >&6; }
4185 if test "${ac_cv_prog_CC+set}" = set; then :
4186 $as_echo_n "(cached) " >&6
4187 else
4188 if test -n "$CC"; then
4189 ac_cv_prog_CC="$CC" # Let the user override the test.
4190 else
4191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192 for as_dir in $PATH
4194 IFS=$as_save_IFS
4195 test -z "$as_dir" && as_dir=.
4196 for ac_exec_ext in '' $ac_executable_extensions; do
4197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4198 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4200 break 2
4202 done
4203 done
4204 IFS=$as_save_IFS
4208 CC=$ac_cv_prog_CC
4209 if test -n "$CC"; then
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4211 $as_echo "$CC" >&6; }
4212 else
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4214 $as_echo "no" >&6; }
4218 test -n "$CC" && break
4219 done
4221 if test -z "$CC"; then
4222 ac_ct_CC=$CC
4223 for ac_prog in cl.exe
4225 # Extract the first word of "$ac_prog", so it can be a program name with args.
4226 set dummy $ac_prog; ac_word=$2
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4228 $as_echo_n "checking for $ac_word... " >&6; }
4229 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4230 $as_echo_n "(cached) " >&6
4231 else
4232 if test -n "$ac_ct_CC"; then
4233 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4234 else
4235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236 for as_dir in $PATH
4238 IFS=$as_save_IFS
4239 test -z "$as_dir" && as_dir=.
4240 for ac_exec_ext in '' $ac_executable_extensions; do
4241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4242 ac_cv_prog_ac_ct_CC="$ac_prog"
4243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4244 break 2
4246 done
4247 done
4248 IFS=$as_save_IFS
4252 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4253 if test -n "$ac_ct_CC"; then
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4255 $as_echo "$ac_ct_CC" >&6; }
4256 else
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4258 $as_echo "no" >&6; }
4262 test -n "$ac_ct_CC" && break
4263 done
4265 if test "x$ac_ct_CC" = x; then
4266 CC=""
4267 else
4268 case $cross_compiling:$ac_tool_warned in
4269 yes:)
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4272 ac_tool_warned=yes ;;
4273 esac
4274 CC=$ac_ct_CC
4281 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4282 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4283 as_fn_error "no acceptable C compiler found in \$PATH
4284 See \`config.log' for more details." "$LINENO" 5; }
4286 # Provide some information about the compiler.
4287 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4288 set X $ac_compile
4289 ac_compiler=$2
4290 for ac_option in --version -v -V -qversion; do
4291 { { ac_try="$ac_compiler $ac_option >&5"
4292 case "(($ac_try" in
4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4295 esac
4296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4297 $as_echo "$ac_try_echo"; } >&5
4298 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4299 ac_status=$?
4300 if test -s conftest.err; then
4301 sed '10a\
4302 ... rest of stderr output deleted ...
4303 10q' conftest.err >conftest.er1
4304 cat conftest.er1 >&5
4305 rm -f conftest.er1 conftest.err
4307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4308 test $ac_status = 0; }
4309 done
4311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4312 /* end confdefs.h. */
4315 main ()
4319 return 0;
4321 _ACEOF
4322 # FIXME: Cleanup?
4323 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
4324 (eval $ac_link) 2>&5
4325 ac_status=$?
4326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4327 test $ac_status = 0; }; then :
4328 gcc_no_link=no
4329 else
4330 gcc_no_link=yes
4332 if test x$gcc_no_link = xyes; then
4333 # Setting cross_compile will disable run tests; it will
4334 # also disable AC_CHECK_FILE but that's generally
4335 # correct if we can't link.
4336 cross_compiling=yes
4337 EXEEXT=
4338 else
4339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h. */
4343 main ()
4347 return 0;
4349 _ACEOF
4350 ac_clean_files_save=$ac_clean_files
4351 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4352 # Try to create an executable without -o first, disregard a.out.
4353 # It will help us diagnose broken compilers, and finding out an intuition
4354 # of exeext.
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4356 $as_echo_n "checking for C compiler default output file name... " >&6; }
4357 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4359 # The possible output files:
4360 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4362 ac_rmfiles=
4363 for ac_file in $ac_files
4365 case $ac_file in
4366 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4367 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4368 esac
4369 done
4370 rm -f $ac_rmfiles
4372 if { { ac_try="$ac_link_default"
4373 case "(($ac_try" in
4374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4375 *) ac_try_echo=$ac_try;;
4376 esac
4377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4378 $as_echo "$ac_try_echo"; } >&5
4379 (eval "$ac_link_default") 2>&5
4380 ac_status=$?
4381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4382 test $ac_status = 0; }; then :
4383 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4384 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4385 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4386 # so that the user can short-circuit this test for compilers unknown to
4387 # Autoconf.
4388 for ac_file in $ac_files ''
4390 test -f "$ac_file" || continue
4391 case $ac_file in
4392 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4394 [ab].out )
4395 # We found the default executable, but exeext='' is most
4396 # certainly right.
4397 break;;
4398 *.* )
4399 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4400 then :; else
4401 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4403 # We set ac_cv_exeext here because the later test for it is not
4404 # safe: cross compilers may not add the suffix if given an `-o'
4405 # argument, so we may need to know it at that point already.
4406 # Even if this section looks crufty: it has the advantage of
4407 # actually working.
4408 break;;
4410 break;;
4411 esac
4412 done
4413 test "$ac_cv_exeext" = no && ac_cv_exeext=
4415 else
4416 ac_file=''
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4419 $as_echo "$ac_file" >&6; }
4420 if test -z "$ac_file"; then :
4421 $as_echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.$ac_ext >&5
4424 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4426 { as_fn_set_status 77
4427 as_fn_error "C compiler cannot create executables
4428 See \`config.log' for more details." "$LINENO" 5; }; }
4430 ac_exeext=$ac_cv_exeext
4432 # Check that the compiler produces executables we can run. If not, either
4433 # the compiler is broken, or we cross compile.
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4435 $as_echo_n "checking whether the C compiler works... " >&6; }
4436 # If not cross compiling, check that we can run a simple program.
4437 if test "$cross_compiling" != yes; then
4438 if { ac_try='./$ac_file'
4439 { { case "(($ac_try" in
4440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4441 *) ac_try_echo=$ac_try;;
4442 esac
4443 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4444 $as_echo "$ac_try_echo"; } >&5
4445 (eval "$ac_try") 2>&5
4446 ac_status=$?
4447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4448 test $ac_status = 0; }; }; then
4449 cross_compiling=no
4450 else
4451 if test "$cross_compiling" = maybe; then
4452 cross_compiling=yes
4453 else
4454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4456 as_fn_error "cannot run C compiled programs.
4457 If you meant to cross compile, use \`--host'.
4458 See \`config.log' for more details." "$LINENO" 5; }
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4463 $as_echo "yes" >&6; }
4465 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4466 ac_clean_files=$ac_clean_files_save
4467 # Check that the compiler produces executables we can run. If not, either
4468 # the compiler is broken, or we cross compile.
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4470 $as_echo_n "checking whether we are cross compiling... " >&6; }
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4472 $as_echo "$cross_compiling" >&6; }
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4475 $as_echo_n "checking for suffix of executables... " >&6; }
4476 if { { ac_try="$ac_link"
4477 case "(($ac_try" in
4478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4479 *) ac_try_echo=$ac_try;;
4480 esac
4481 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4482 $as_echo "$ac_try_echo"; } >&5
4483 (eval "$ac_link") 2>&5
4484 ac_status=$?
4485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4486 test $ac_status = 0; }; then :
4487 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4488 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4489 # work properly (i.e., refer to `conftest.exe'), while it won't with
4490 # `rm'.
4491 for ac_file in conftest.exe conftest conftest.*; do
4492 test -f "$ac_file" || continue
4493 case $ac_file in
4494 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4495 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4496 break;;
4497 * ) break;;
4498 esac
4499 done
4500 else
4501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4503 as_fn_error "cannot compute suffix of executables: cannot compile and link
4504 See \`config.log' for more details." "$LINENO" 5; }
4506 rm -f conftest$ac_cv_exeext
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4508 $as_echo "$ac_cv_exeext" >&6; }
4510 rm -f conftest.$ac_ext
4511 EXEEXT=$ac_cv_exeext
4512 ac_exeext=$EXEEXT
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4515 $as_echo_n "checking for suffix of object files... " >&6; }
4516 if test "${ac_cv_objext+set}" = set; then :
4517 $as_echo_n "(cached) " >&6
4518 else
4519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4520 /* end confdefs.h. */
4523 main ()
4527 return 0;
4529 _ACEOF
4530 rm -f conftest.o conftest.obj
4531 if { { ac_try="$ac_compile"
4532 case "(($ac_try" in
4533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4534 *) ac_try_echo=$ac_try;;
4535 esac
4536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4537 $as_echo "$ac_try_echo"; } >&5
4538 (eval "$ac_compile") 2>&5
4539 ac_status=$?
4540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4541 test $ac_status = 0; }; then :
4542 for ac_file in conftest.o conftest.obj conftest.*; do
4543 test -f "$ac_file" || continue;
4544 case $ac_file in
4545 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4546 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4547 break;;
4548 esac
4549 done
4550 else
4551 $as_echo "$as_me: failed program was:" >&5
4552 sed 's/^/| /' conftest.$ac_ext >&5
4554 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4556 as_fn_error "cannot compute suffix of object files: cannot compile
4557 See \`config.log' for more details." "$LINENO" 5; }
4559 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4562 $as_echo "$ac_cv_objext" >&6; }
4563 OBJEXT=$ac_cv_objext
4564 ac_objext=$OBJEXT
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4566 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4567 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4568 $as_echo_n "(cached) " >&6
4569 else
4570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4571 /* end confdefs.h. */
4574 main ()
4576 #ifndef __GNUC__
4577 choke me
4578 #endif
4581 return 0;
4583 _ACEOF
4584 if ac_fn_c_try_compile "$LINENO"; then :
4585 ac_compiler_gnu=yes
4586 else
4587 ac_compiler_gnu=no
4589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4590 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4594 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4595 if test $ac_compiler_gnu = yes; then
4596 GCC=yes
4597 else
4598 GCC=
4600 ac_test_CFLAGS=${CFLAGS+set}
4601 ac_save_CFLAGS=$CFLAGS
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4603 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4604 if test "${ac_cv_prog_cc_g+set}" = set; then :
4605 $as_echo_n "(cached) " >&6
4606 else
4607 ac_save_c_werror_flag=$ac_c_werror_flag
4608 ac_c_werror_flag=yes
4609 ac_cv_prog_cc_g=no
4610 CFLAGS="-g"
4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612 /* end confdefs.h. */
4615 main ()
4619 return 0;
4621 _ACEOF
4622 if ac_fn_c_try_compile "$LINENO"; then :
4623 ac_cv_prog_cc_g=yes
4624 else
4625 CFLAGS=""
4626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4627 /* end confdefs.h. */
4630 main ()
4634 return 0;
4636 _ACEOF
4637 if ac_fn_c_try_compile "$LINENO"; then :
4639 else
4640 ac_c_werror_flag=$ac_save_c_werror_flag
4641 CFLAGS="-g"
4642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4643 /* end confdefs.h. */
4646 main ()
4650 return 0;
4652 _ACEOF
4653 if ac_fn_c_try_compile "$LINENO"; then :
4654 ac_cv_prog_cc_g=yes
4656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4661 ac_c_werror_flag=$ac_save_c_werror_flag
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4664 $as_echo "$ac_cv_prog_cc_g" >&6; }
4665 if test "$ac_test_CFLAGS" = set; then
4666 CFLAGS=$ac_save_CFLAGS
4667 elif test $ac_cv_prog_cc_g = yes; then
4668 if test "$GCC" = yes; then
4669 CFLAGS="-g -O2"
4670 else
4671 CFLAGS="-g"
4673 else
4674 if test "$GCC" = yes; then
4675 CFLAGS="-O2"
4676 else
4677 CFLAGS=
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4681 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4682 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4683 $as_echo_n "(cached) " >&6
4684 else
4685 ac_cv_prog_cc_c89=no
4686 ac_save_CC=$CC
4687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4688 /* end confdefs.h. */
4689 #include <stdarg.h>
4690 #include <stdio.h>
4691 #include <sys/types.h>
4692 #include <sys/stat.h>
4693 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4694 struct buf { int x; };
4695 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4696 static char *e (p, i)
4697 char **p;
4698 int i;
4700 return p[i];
4702 static char *f (char * (*g) (char **, int), char **p, ...)
4704 char *s;
4705 va_list v;
4706 va_start (v,p);
4707 s = g (p, va_arg (v,int));
4708 va_end (v);
4709 return s;
4712 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4713 function prototypes and stuff, but not '\xHH' hex character constants.
4714 These don't provoke an error unfortunately, instead are silently treated
4715 as 'x'. The following induces an error, until -std is added to get
4716 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4717 array size at least. It's necessary to write '\x00'==0 to get something
4718 that's true only with -std. */
4719 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4721 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4722 inside strings and character constants. */
4723 #define FOO(x) 'x'
4724 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4726 int test (int i, double x);
4727 struct s1 {int (*f) (int a);};
4728 struct s2 {int (*f) (double a);};
4729 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4730 int argc;
4731 char **argv;
4733 main ()
4735 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4737 return 0;
4739 _ACEOF
4740 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4741 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4743 CC="$ac_save_CC $ac_arg"
4744 if ac_fn_c_try_compile "$LINENO"; then :
4745 ac_cv_prog_cc_c89=$ac_arg
4747 rm -f core conftest.err conftest.$ac_objext
4748 test "x$ac_cv_prog_cc_c89" != "xno" && break
4749 done
4750 rm -f conftest.$ac_ext
4751 CC=$ac_save_CC
4754 # AC_CACHE_VAL
4755 case "x$ac_cv_prog_cc_c89" in
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4758 $as_echo "none needed" >&6; } ;;
4759 xno)
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4761 $as_echo "unsupported" >&6; } ;;
4763 CC="$CC $ac_cv_prog_cc_c89"
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4765 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4766 esac
4767 if test "x$ac_cv_prog_cc_c89" != xno; then :
4771 ac_ext=c
4772 ac_cpp='$CPP $CPPFLAGS'
4773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4777 depcc="$CC" am_compiler_list=
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4780 $as_echo_n "checking dependency style of $depcc... " >&6; }
4781 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4782 $as_echo_n "(cached) " >&6
4783 else
4784 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4785 # We make a subdir and do the tests there. Otherwise we can end up
4786 # making bogus files that we don't know about and never remove. For
4787 # instance it was reported that on HP-UX the gcc test will end up
4788 # making a dummy file named `D' -- because `-MD' means `put the output
4789 # in D'.
4790 mkdir conftest.dir
4791 # Copy depcomp to subdir because otherwise we won't find it if we're
4792 # using a relative directory.
4793 cp "$am_depcomp" conftest.dir
4794 cd conftest.dir
4795 # We will build objects and dependencies in a subdirectory because
4796 # it helps to detect inapplicable dependency modes. For instance
4797 # both Tru64's cc and ICC support -MD to output dependencies as a
4798 # side effect of compilation, but ICC will put the dependencies in
4799 # the current directory while Tru64 will put them in the object
4800 # directory.
4801 mkdir sub
4803 am_cv_CC_dependencies_compiler_type=none
4804 if test "$am_compiler_list" = ""; then
4805 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4807 am__universal=false
4808 case " $depcc " in #(
4809 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4810 esac
4812 for depmode in $am_compiler_list; do
4813 # Setup a source with many dependencies, because some compilers
4814 # like to wrap large dependency lists on column 80 (with \), and
4815 # we should not choose a depcomp mode which is confused by this.
4817 # We need to recreate these files for each test, as the compiler may
4818 # overwrite some of them when testing with obscure command lines.
4819 # This happens at least with the AIX C compiler.
4820 : > sub/conftest.c
4821 for i in 1 2 3 4 5 6; do
4822 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4823 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4824 # Solaris 8's {/usr,}/bin/sh.
4825 touch sub/conftst$i.h
4826 done
4827 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4829 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4830 # mode. It turns out that the SunPro C++ compiler does not properly
4831 # handle `-M -o', and we need to detect this. Also, some Intel
4832 # versions had trouble with output in subdirs
4833 am__obj=sub/conftest.${OBJEXT-o}
4834 am__minus_obj="-o $am__obj"
4835 case $depmode in
4836 gcc)
4837 # This depmode causes a compiler race in universal mode.
4838 test "$am__universal" = false || continue
4840 nosideeffect)
4841 # after this tag, mechanisms are not by side-effect, so they'll
4842 # only be used when explicitly requested
4843 if test "x$enable_dependency_tracking" = xyes; then
4844 continue
4845 else
4846 break
4849 msvisualcpp | msvcmsys)
4850 # This compiler won't grok `-c -o', but also, the minuso test has
4851 # not run yet. These depmodes are late enough in the game, and
4852 # so weak that their functioning should not be impacted.
4853 am__obj=conftest.${OBJEXT-o}
4854 am__minus_obj=
4856 none) break ;;
4857 esac
4858 if depmode=$depmode \
4859 source=sub/conftest.c object=$am__obj \
4860 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4861 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4862 >/dev/null 2>conftest.err &&
4863 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4864 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4865 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4866 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4867 # icc doesn't choke on unknown options, it will just issue warnings
4868 # or remarks (even with -Werror). So we grep stderr for any message
4869 # that says an option was ignored or not supported.
4870 # When given -MP, icc 7.0 and 7.1 complain thusly:
4871 # icc: Command line warning: ignoring option '-M'; no argument required
4872 # The diagnosis changed in icc 8.0:
4873 # icc: Command line remark: option '-MP' not supported
4874 if (grep 'ignoring option' conftest.err ||
4875 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4876 am_cv_CC_dependencies_compiler_type=$depmode
4877 break
4880 done
4882 cd ..
4883 rm -rf conftest.dir
4884 else
4885 am_cv_CC_dependencies_compiler_type=none
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4890 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4891 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4894 test "x$enable_dependency_tracking" != xno \
4895 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4896 am__fastdepCC_TRUE=
4897 am__fastdepCC_FALSE='#'
4898 else
4899 am__fastdepCC_TRUE='#'
4900 am__fastdepCC_FALSE=
4905 ac_ext=c
4906 ac_cpp='$CPP $CPPFLAGS'
4907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4911 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4912 # On Suns, sometimes $CPP names a directory.
4913 if test -n "$CPP" && test -d "$CPP"; then
4914 CPP=
4916 if test -z "$CPP"; then
4917 if test "${ac_cv_prog_CPP+set}" = set; then :
4918 $as_echo_n "(cached) " >&6
4919 else
4920 # Double quotes because CPP needs to be expanded
4921 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4923 ac_preproc_ok=false
4924 for ac_c_preproc_warn_flag in '' yes
4926 # Use a header file that comes with gcc, so configuring glibc
4927 # with a fresh cross-compiler works.
4928 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4929 # <limits.h> exists even on freestanding compilers.
4930 # On the NeXT, cc -E runs the code through the compiler's parser,
4931 # not just through cpp. "Syntax error" is here to catch this case.
4932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933 /* end confdefs.h. */
4934 #ifdef __STDC__
4935 # include <limits.h>
4936 #else
4937 # include <assert.h>
4938 #endif
4939 Syntax error
4940 _ACEOF
4941 if ac_fn_c_try_cpp "$LINENO"; then :
4943 else
4944 # Broken: fails on valid input.
4945 continue
4947 rm -f conftest.err conftest.$ac_ext
4949 # OK, works on sane cases. Now check whether nonexistent headers
4950 # can be detected and how.
4951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4952 /* end confdefs.h. */
4953 #include <ac_nonexistent.h>
4954 _ACEOF
4955 if ac_fn_c_try_cpp "$LINENO"; then :
4956 # Broken: success on invalid input.
4957 continue
4958 else
4959 # Passes both tests.
4960 ac_preproc_ok=:
4961 break
4963 rm -f conftest.err conftest.$ac_ext
4965 done
4966 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4967 rm -f conftest.err conftest.$ac_ext
4968 if $ac_preproc_ok; then :
4969 break
4972 done
4973 ac_cv_prog_CPP=$CPP
4976 CPP=$ac_cv_prog_CPP
4977 else
4978 ac_cv_prog_CPP=$CPP
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4981 $as_echo "$CPP" >&6; }
4982 ac_preproc_ok=false
4983 for ac_c_preproc_warn_flag in '' yes
4985 # Use a header file that comes with gcc, so configuring glibc
4986 # with a fresh cross-compiler works.
4987 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4988 # <limits.h> exists even on freestanding compilers.
4989 # On the NeXT, cc -E runs the code through the compiler's parser,
4990 # not just through cpp. "Syntax error" is here to catch this case.
4991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992 /* end confdefs.h. */
4993 #ifdef __STDC__
4994 # include <limits.h>
4995 #else
4996 # include <assert.h>
4997 #endif
4998 Syntax error
4999 _ACEOF
5000 if ac_fn_c_try_cpp "$LINENO"; then :
5002 else
5003 # Broken: fails on valid input.
5004 continue
5006 rm -f conftest.err conftest.$ac_ext
5008 # OK, works on sane cases. Now check whether nonexistent headers
5009 # can be detected and how.
5010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5011 /* end confdefs.h. */
5012 #include <ac_nonexistent.h>
5013 _ACEOF
5014 if ac_fn_c_try_cpp "$LINENO"; then :
5015 # Broken: success on invalid input.
5016 continue
5017 else
5018 # Passes both tests.
5019 ac_preproc_ok=:
5020 break
5022 rm -f conftest.err conftest.$ac_ext
5024 done
5025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5026 rm -f conftest.err conftest.$ac_ext
5027 if $ac_preproc_ok; then :
5029 else
5030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5032 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5033 See \`config.log' for more details." "$LINENO" 5; }
5036 ac_ext=c
5037 ac_cpp='$CPP $CPPFLAGS'
5038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5044 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5045 if test "${ac_cv_path_GREP+set}" = set; then :
5046 $as_echo_n "(cached) " >&6
5047 else
5048 if test -z "$GREP"; then
5049 ac_path_GREP_found=false
5050 # Loop through the user's path and test for each of PROGNAME-LIST
5051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5054 IFS=$as_save_IFS
5055 test -z "$as_dir" && as_dir=.
5056 for ac_prog in grep ggrep; do
5057 for ac_exec_ext in '' $ac_executable_extensions; do
5058 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5059 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5060 # Check for GNU ac_path_GREP and select it if it is found.
5061 # Check for GNU $ac_path_GREP
5062 case `"$ac_path_GREP" --version 2>&1` in
5063 *GNU*)
5064 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5066 ac_count=0
5067 $as_echo_n 0123456789 >"conftest.in"
5068 while :
5070 cat "conftest.in" "conftest.in" >"conftest.tmp"
5071 mv "conftest.tmp" "conftest.in"
5072 cp "conftest.in" "conftest.nl"
5073 $as_echo 'GREP' >> "conftest.nl"
5074 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5075 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5076 as_fn_arith $ac_count + 1 && ac_count=$as_val
5077 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5078 # Best one so far, save it but keep looking for a better one
5079 ac_cv_path_GREP="$ac_path_GREP"
5080 ac_path_GREP_max=$ac_count
5082 # 10*(2^10) chars as input seems more than enough
5083 test $ac_count -gt 10 && break
5084 done
5085 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5086 esac
5088 $ac_path_GREP_found && break 3
5089 done
5090 done
5091 done
5092 IFS=$as_save_IFS
5093 if test -z "$ac_cv_path_GREP"; then
5094 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5096 else
5097 ac_cv_path_GREP=$GREP
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5102 $as_echo "$ac_cv_path_GREP" >&6; }
5103 GREP="$ac_cv_path_GREP"
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5107 $as_echo_n "checking for egrep... " >&6; }
5108 if test "${ac_cv_path_EGREP+set}" = set; then :
5109 $as_echo_n "(cached) " >&6
5110 else
5111 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5112 then ac_cv_path_EGREP="$GREP -E"
5113 else
5114 if test -z "$EGREP"; then
5115 ac_path_EGREP_found=false
5116 # Loop through the user's path and test for each of PROGNAME-LIST
5117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5118 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5120 IFS=$as_save_IFS
5121 test -z "$as_dir" && as_dir=.
5122 for ac_prog in egrep; do
5123 for ac_exec_ext in '' $ac_executable_extensions; do
5124 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5125 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5126 # Check for GNU ac_path_EGREP and select it if it is found.
5127 # Check for GNU $ac_path_EGREP
5128 case `"$ac_path_EGREP" --version 2>&1` in
5129 *GNU*)
5130 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5132 ac_count=0
5133 $as_echo_n 0123456789 >"conftest.in"
5134 while :
5136 cat "conftest.in" "conftest.in" >"conftest.tmp"
5137 mv "conftest.tmp" "conftest.in"
5138 cp "conftest.in" "conftest.nl"
5139 $as_echo 'EGREP' >> "conftest.nl"
5140 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5141 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5142 as_fn_arith $ac_count + 1 && ac_count=$as_val
5143 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5144 # Best one so far, save it but keep looking for a better one
5145 ac_cv_path_EGREP="$ac_path_EGREP"
5146 ac_path_EGREP_max=$ac_count
5148 # 10*(2^10) chars as input seems more than enough
5149 test $ac_count -gt 10 && break
5150 done
5151 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5152 esac
5154 $ac_path_EGREP_found && break 3
5155 done
5156 done
5157 done
5158 IFS=$as_save_IFS
5159 if test -z "$ac_cv_path_EGREP"; then
5160 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5162 else
5163 ac_cv_path_EGREP=$EGREP
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5169 $as_echo "$ac_cv_path_EGREP" >&6; }
5170 EGREP="$ac_cv_path_EGREP"
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5174 $as_echo_n "checking for ANSI C header files... " >&6; }
5175 if test "${ac_cv_header_stdc+set}" = set; then :
5176 $as_echo_n "(cached) " >&6
5177 else
5178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5179 /* end confdefs.h. */
5180 #include <stdlib.h>
5181 #include <stdarg.h>
5182 #include <string.h>
5183 #include <float.h>
5186 main ()
5190 return 0;
5192 _ACEOF
5193 if ac_fn_c_try_compile "$LINENO"; then :
5194 ac_cv_header_stdc=yes
5195 else
5196 ac_cv_header_stdc=no
5198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5200 if test $ac_cv_header_stdc = yes; then
5201 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5203 /* end confdefs.h. */
5204 #include <string.h>
5206 _ACEOF
5207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5208 $EGREP "memchr" >/dev/null 2>&1; then :
5210 else
5211 ac_cv_header_stdc=no
5213 rm -f conftest*
5217 if test $ac_cv_header_stdc = yes; then
5218 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5220 /* end confdefs.h. */
5221 #include <stdlib.h>
5223 _ACEOF
5224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5225 $EGREP "free" >/dev/null 2>&1; then :
5227 else
5228 ac_cv_header_stdc=no
5230 rm -f conftest*
5234 if test $ac_cv_header_stdc = yes; then
5235 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5236 if test "$cross_compiling" = yes; then :
5238 else
5239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5240 /* end confdefs.h. */
5241 #include <ctype.h>
5242 #include <stdlib.h>
5243 #if ((' ' & 0x0FF) == 0x020)
5244 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5245 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5246 #else
5247 # define ISLOWER(c) \
5248 (('a' <= (c) && (c) <= 'i') \
5249 || ('j' <= (c) && (c) <= 'r') \
5250 || ('s' <= (c) && (c) <= 'z'))
5251 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5252 #endif
5254 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5256 main ()
5258 int i;
5259 for (i = 0; i < 256; i++)
5260 if (XOR (islower (i), ISLOWER (i))
5261 || toupper (i) != TOUPPER (i))
5262 return 2;
5263 return 0;
5265 _ACEOF
5266 if ac_fn_c_try_run "$LINENO"; then :
5268 else
5269 ac_cv_header_stdc=no
5271 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5272 conftest.$ac_objext conftest.beam conftest.$ac_ext
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5278 $as_echo "$ac_cv_header_stdc" >&6; }
5279 if test $ac_cv_header_stdc = yes; then
5281 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5285 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5286 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5287 inttypes.h stdint.h unistd.h
5288 do :
5289 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5290 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5292 eval as_val=\$$as_ac_Header
5293 if test "x$as_val" = x""yes; then :
5294 cat >>confdefs.h <<_ACEOF
5295 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5296 _ACEOF
5300 done
5303 # Check whether --enable-alsa was given.
5304 if test "${enable_alsa+set}" = set; then :
5305 enableval=$enable_alsa; case "${enableval}" in
5306 yes) COMPILE_ALSA=yes ;;
5307 no) COMPILE_ALSA=no ;;
5308 *) COMPILE_ALSA=yes ;;
5309 esac
5310 else
5311 for ac_header in alsa/asoundlib.h
5312 do :
5313 ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
5314 if test "x$ac_cv_header_alsa_asoundlib_h" = x""yes; then :
5315 cat >>confdefs.h <<_ACEOF
5316 #define HAVE_ALSA_ASOUNDLIB_H 1
5317 _ACEOF
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_seq_open in -lasound" >&5
5319 $as_echo_n "checking for snd_seq_open in -lasound... " >&6; }
5320 if test "${ac_cv_lib_asound_snd_seq_open+set}" = set; then :
5321 $as_echo_n "(cached) " >&6
5322 else
5323 ac_check_lib_save_LIBS=$LIBS
5324 LIBS="-lasound $LIBS"
5325 if test x$gcc_no_link = xyes; then
5326 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5329 /* end confdefs.h. */
5331 /* Override any GCC internal prototype to avoid an error.
5332 Use char because int might match the return type of a GCC
5333 builtin and then its argument prototype would still apply. */
5334 #ifdef __cplusplus
5335 extern "C"
5336 #endif
5337 char snd_seq_open ();
5339 main ()
5341 return snd_seq_open ();
5343 return 0;
5345 _ACEOF
5346 if ac_fn_c_try_link "$LINENO"; then :
5347 ac_cv_lib_asound_snd_seq_open=yes
5348 else
5349 ac_cv_lib_asound_snd_seq_open=no
5351 rm -f core conftest.err conftest.$ac_objext \
5352 conftest$ac_exeext conftest.$ac_ext
5353 LIBS=$ac_check_lib_save_LIBS
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_seq_open" >&5
5356 $as_echo "$ac_cv_lib_asound_snd_seq_open" >&6; }
5357 if test "x$ac_cv_lib_asound_snd_seq_open" = x""yes; then :
5358 COMPILE_ALSA=yes
5359 else
5360 COMPILE_ALSA=no
5363 else
5364 COMPILE_ALSA=no
5367 done
5371 if test "x${COMPILE_ALSA}" = xyes; then
5372 CREATE_ALSA_LIBRARIES_TRUE=
5373 CREATE_ALSA_LIBRARIES_FALSE='#'
5374 else
5375 CREATE_ALSA_LIBRARIES_TRUE='#'
5376 CREATE_ALSA_LIBRARIES_FALSE=
5380 # Check whether --enable-dssi was given.
5381 if test "${enable_dssi+set}" = set; then :
5382 enableval=$enable_dssi; case "${enableval}" in
5383 yes) COMPILE_DSSI=yes ;;
5384 no) COMPILE_DSSI=no ;;
5385 *) COMPILE_DSSI=yes ;;
5386 esac
5387 else
5388 COMPILE_DSSI=no
5389 for ac_header in dssi.h
5390 do :
5391 ac_fn_c_check_header_mongrel "$LINENO" "dssi.h" "ac_cv_header_dssi_h" "$ac_includes_default"
5392 if test "x$ac_cv_header_dssi_h" = x""yes; then :
5393 cat >>confdefs.h <<_ACEOF
5394 #define HAVE_DSSI_H 1
5395 _ACEOF
5397 for ac_header in jack/jack.h
5398 do :
5399 ac_fn_c_check_header_mongrel "$LINENO" "jack/jack.h" "ac_cv_header_jack_jack_h" "$ac_includes_default"
5400 if test "x$ac_cv_header_jack_jack_h" = x""yes; then :
5401 cat >>confdefs.h <<_ACEOF
5402 #define HAVE_JACK_JACK_H 1
5403 _ACEOF
5404 COMPILE_DSSI=yes
5407 done
5411 done
5415 if test "x${COMPILE_DSSI}" = xyes; then
5416 CREATE_DSSI_LIBRARIES_TRUE=
5417 CREATE_DSSI_LIBRARIES_FALSE='#'
5418 else
5419 CREATE_DSSI_LIBRARIES_TRUE='#'
5420 CREATE_DSSI_LIBRARIES_FALSE=
5424 # Check whether --enable-gtk-peer was given.
5425 if test "${enable_gtk_peer+set}" = set; then :
5426 enableval=$enable_gtk_peer; case "${enableval}" in
5427 yes) COMPILE_GTK_PEER=yes ;;
5428 no) COMPILE_GTK_PEER=no ;;
5429 *) COMPILE_GTK_PEER=yes ;;
5430 esac
5431 else
5432 COMPILE_GTK_PEER=yes
5435 if test "x${COMPILE_GTK_PEER}" = xyes; then
5436 CREATE_GTK_PEER_LIBRARIES_TRUE=
5437 CREATE_GTK_PEER_LIBRARIES_FALSE='#'
5438 else
5439 CREATE_GTK_PEER_LIBRARIES_TRUE='#'
5440 CREATE_GTK_PEER_LIBRARIES_FALSE=
5444 # Check whether --enable-gtk-peers was given.
5445 if test "${enable_gtk_peers+set}" = set; then :
5446 enableval=$enable_gtk_peers; as_fn_error "No --enable-gtk-peers (or --disable-gtk-peers) option; you want --enable-gtk-peer" "$LINENO" 5
5450 # Check whether --enable-qt-peer was given.
5451 if test "${enable_qt_peer+set}" = set; then :
5452 enableval=$enable_qt_peer; case "${enableval}" in
5453 yes) COMPILE_QT_PEER=yes ;;
5454 no) COMPILE_QT_PEER=no ;;
5455 *) COMPILE_QT_PEER=yes ;;
5456 esac
5457 else
5458 COMPILE_QT_PEER=no
5461 if test "x${COMPILE_QT_PEER}" = xyes; then
5462 CREATE_QT_PEER_LIBRARIES_TRUE=
5463 CREATE_QT_PEER_LIBRARIES_FALSE='#'
5464 else
5465 CREATE_QT_PEER_LIBRARIES_TRUE='#'
5466 CREATE_QT_PEER_LIBRARIES_FALSE=
5470 # Check whether --enable-plugin was given.
5471 if test "${enable_plugin+set}" = set; then :
5472 enableval=$enable_plugin; case "${enableval}" in
5473 yes) COMPILE_PLUGIN=yes ;;
5474 no) COMPILE_PLUGIN=no ;;
5475 *) COMPILE_PLUGIN=yes ;;
5476 esac
5477 else
5478 COMPILE_PLUGIN=no
5481 if test "x${COMPILE_PLUGIN}" = xyes; then
5482 CREATE_PLUGIN_TRUE=
5483 CREATE_PLUGIN_FALSE='#'
5484 else
5485 CREATE_PLUGIN_TRUE='#'
5486 CREATE_PLUGIN_FALSE=
5490 # Check whether --enable-gmp was given.
5491 if test "${enable_gmp+set}" = set; then :
5492 enableval=$enable_gmp; case "${enableval}" in
5493 yes|true) COMPILE_GMP=yes ;;
5494 no|false) COMPILE_GMP=no ;;
5495 *) COMPILE_GMP=yes ;;
5496 esac
5497 else
5498 COMPILE_GMP=yes
5502 # Check whether --enable-gjdoc was given.
5503 if test "${enable_gjdoc+set}" = set; then :
5504 enableval=$enable_gjdoc; case "${enableval}" in
5505 yes) COMPILE_GJDOC=yes ;;
5506 no) COMPILE_GJDOC=no ;;
5507 *) COMPILE_GJDOC=yes ;;
5508 esac
5509 else
5510 COMPILE_GJDOC=yes
5513 if test "x${COMPILE_GJDOC}" = xyes; then
5514 CREATE_GJDOC_TRUE=
5515 CREATE_GJDOC_FALSE='#'
5516 else
5517 CREATE_GJDOC_TRUE='#'
5518 CREATE_GJDOC_FALSE=
5523 multi_os_directory=`$CC -print-multi-os-directory`
5524 case $multi_os_directory in
5525 .) toolexeclibdir=${libdir} ;; # Avoid trailing /.
5526 *) toolexeclibdir=${libdir}/${multi_os_directory} ;;
5527 esac
5532 # Check whether --with-native-libdir was given.
5533 if test "${with_native_libdir+set}" = set; then :
5534 withval=$with_native_libdir;
5535 nativeexeclibdir=${withval}
5537 else
5539 nativeexeclibdir='${toolexeclibdir}/gcj-'`cat ${srcdir}/../../gcc/BASE-VER`-`awk -F: '/^[^#].*:/ { print $1 }' ${srcdir}/../libtool-version`
5547 # Check whether --with-glibj-dir was given.
5548 if test "${with_glibj_dir+set}" = set; then :
5549 withval=$with_glibj_dir;
5550 glibjdir=${withval}
5552 else
5554 glibjdir='${datadir}/${PACKAGE}'
5562 # Check whether --with-antlr-jar was given.
5563 if test "${with_antlr_jar+set}" = set; then :
5564 withval=$with_antlr_jar;
5565 ANTLR_JAR=$withval
5567 else
5569 ANTLR_JAR="$ANTLR_JAR"
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to regenerate the headers" >&5
5575 $as_echo_n "checking whether to regenerate the headers... " >&6; }
5576 # Check whether --enable-regen-headers was given.
5577 if test "${enable_regen_headers+set}" = set; then :
5578 enableval=$enable_regen_headers; case "${enableval}" in
5579 yes) REGENERATE_JNI_HEADERS=yes ;;
5580 no) REGENERATE_JNI_HEADERS=no ;;
5581 *) REGENERATE_JNI_HEADERS=yes ;;
5582 esac
5583 else
5584 if test -e ${srcdir}/include/java_lang_VMSystem.h; then
5585 REGENERATE_JNI_HEADERS=no ;
5586 else
5587 REGENERATE_JNI_HEADERS=yes ;
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${REGENERATE_JNI_HEADERS}" >&5
5592 $as_echo "${REGENERATE_JNI_HEADERS}" >&6; }
5593 if test "x${REGENERATE_JNI_HEADERS}" = xyes; then
5594 CREATE_JNI_HEADERS_TRUE=
5595 CREATE_JNI_HEADERS_FALSE='#'
5596 else
5597 CREATE_JNI_HEADERS_TRUE='#'
5598 CREATE_JNI_HEADERS_FALSE=
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to regenerate the GJDoc parser" >&5
5603 $as_echo_n "checking whether to regenerate the GJDoc parser... " >&6; }
5604 # Check whether --enable-regen-gjdoc-parser was given.
5605 if test "${enable_regen_gjdoc_parser+set}" = set; then :
5606 enableval=$enable_regen_gjdoc_parser; case "${enableval}" in
5607 yes) REGENERATE_GJDOC_PARSER=yes ;;
5608 no) REGENERATE_GJDOC_PARSER=no ;;
5609 *) REGENERATE_GJDOC_PARSER=yes ;;
5610 esac
5611 else
5612 if test -e ${srcdir}/tools/generated/gnu/classpath/tools/gjdoc/expr/JavaLexer.java; then
5613 REGENERATE_GJDOC_PARSER=no ;
5614 else
5615 REGENERATE_GJDOC_PARSER=yes ;
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${REGENERATE_GJDOC_PARSER}" >&5
5620 $as_echo "${REGENERATE_GJDOC_PARSER}" >&6; }
5621 if test "x${REGENERATE_GJDOC_PARSER}" = xyes; then
5622 CREATE_GJDOC_PARSER_TRUE=
5623 CREATE_GJDOC_PARSER_FALSE='#'
5624 else
5625 CREATE_GJDOC_PARSER_TRUE='#'
5626 CREATE_GJDOC_PARSER_FALSE=
5630 # Check whether --enable-tool-wrappers was given.
5631 if test "${enable_tool_wrappers+set}" = set; then :
5632 enableval=$enable_tool_wrappers; case x"${enableval}" in
5633 xyes)
5634 COMPILE_WRAPPERS=yes;
5635 for ac_header in ltdl.h
5636 do :
5637 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
5638 if test "x$ac_cv_header_ltdl_h" = x""yes; then :
5639 cat >>confdefs.h <<_ACEOF
5640 #define HAVE_LTDL_H 1
5641 _ACEOF
5643 else
5644 as_fn_error "cannot find ltdl.h" "$LINENO" 5
5647 done
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlopen in -lltdl" >&5
5650 $as_echo_n "checking for lt_dlopen in -lltdl... " >&6; }
5651 if test "${ac_cv_lib_ltdl_lt_dlopen+set}" = set; then :
5652 $as_echo_n "(cached) " >&6
5653 else
5654 ac_check_lib_save_LIBS=$LIBS
5655 LIBS="-lltdl $LIBS"
5656 if test x$gcc_no_link = xyes; then
5657 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660 /* end confdefs.h. */
5662 /* Override any GCC internal prototype to avoid an error.
5663 Use char because int might match the return type of a GCC
5664 builtin and then its argument prototype would still apply. */
5665 #ifdef __cplusplus
5666 extern "C"
5667 #endif
5668 char lt_dlopen ();
5670 main ()
5672 return lt_dlopen ();
5674 return 0;
5676 _ACEOF
5677 if ac_fn_c_try_link "$LINENO"; then :
5678 ac_cv_lib_ltdl_lt_dlopen=yes
5679 else
5680 ac_cv_lib_ltdl_lt_dlopen=no
5682 rm -f core conftest.err conftest.$ac_objext \
5683 conftest$ac_exeext conftest.$ac_ext
5684 LIBS=$ac_check_lib_save_LIBS
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlopen" >&5
5687 $as_echo "$ac_cv_lib_ltdl_lt_dlopen" >&6; }
5688 if test "x$ac_cv_lib_ltdl_lt_dlopen" = x""yes; then :
5689 cat >>confdefs.h <<_ACEOF
5690 #define HAVE_LIBLTDL 1
5691 _ACEOF
5693 LIBS="-lltdl $LIBS"
5695 else
5696 as_fn_error "cannot find libltdl" "$LINENO" 5
5700 xno) COMPILE_WRAPPERS=no ;;
5701 x) COMPILE_WRAPPERS=yes ;;
5702 *) COMPILE_WRAPPERS=yes ;;
5703 esac
5704 else
5705 COMPILE_WRAPPERS=no
5708 if test "x${COMPILE_WRAPPERS}" = xyes; then
5709 CREATE_WRAPPERS_TRUE=
5710 CREATE_WRAPPERS_FALSE='#'
5711 else
5712 CREATE_WRAPPERS_TRUE='#'
5713 CREATE_WRAPPERS_FALSE=
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5718 $as_echo_n "checking whether ln -s works... " >&6; }
5719 LN_S=$as_ln_s
5720 if test "$LN_S" = "ln -s"; then
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5722 $as_echo "yes" >&6; }
5723 else
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5725 $as_echo "no, using $LN_S" >&6; }
5731 # Check whether --enable-static was given.
5732 if test "${enable_static+set}" = set; then :
5733 enableval=$enable_static; p=${PACKAGE-default}
5734 case $enableval in
5735 yes) enable_static=yes ;;
5736 no) enable_static=no ;;
5738 enable_static=no
5739 # Look at the argument we got. We use all the common list separators.
5740 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5741 for pkg in $enableval; do
5742 IFS="$lt_save_ifs"
5743 if test "X$pkg" = "X$p"; then
5744 enable_static=yes
5746 done
5747 IFS="$lt_save_ifs"
5749 esac
5750 else
5751 enable_static=no
5762 case `pwd` in
5763 *\ * | *\ *)
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5765 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5766 esac
5770 macro_version='2.2.7a'
5771 macro_revision='1.3134'
5785 ltmain="$ac_aux_dir/ltmain.sh"
5787 # Backslashify metacharacters that are still active within
5788 # double-quoted strings.
5789 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5791 # Same as above, but do not quote variable references.
5792 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5794 # Sed substitution to delay expansion of an escaped shell variable in a
5795 # double_quote_subst'ed string.
5796 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5798 # Sed substitution to delay expansion of an escaped single quote.
5799 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5801 # Sed substitution to avoid accidental globbing in evaled expressions
5802 no_glob_subst='s/\*/\\\*/g'
5804 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5805 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5806 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5809 $as_echo_n "checking how to print strings... " >&6; }
5810 # Test print first, because it will be a builtin if present.
5811 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5812 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5813 ECHO='print -r --'
5814 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5815 ECHO='printf %s\n'
5816 else
5817 # Use this function as a fallback that always works.
5818 func_fallback_echo ()
5820 eval 'cat <<_LTECHO_EOF
5822 _LTECHO_EOF'
5824 ECHO='func_fallback_echo'
5827 # func_echo_all arg...
5828 # Invoke $ECHO with all args, space-separated.
5829 func_echo_all ()
5831 $ECHO ""
5834 case "$ECHO" in
5835 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5836 $as_echo "printf" >&6; } ;;
5837 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5838 $as_echo "print -r" >&6; } ;;
5839 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5840 $as_echo "cat" >&6; } ;;
5841 esac
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5857 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5858 if test "${ac_cv_path_SED+set}" = set; then :
5859 $as_echo_n "(cached) " >&6
5860 else
5861 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5862 for ac_i in 1 2 3 4 5 6 7; do
5863 ac_script="$ac_script$as_nl$ac_script"
5864 done
5865 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5866 { ac_script=; unset ac_script;}
5867 if test -z "$SED"; then
5868 ac_path_SED_found=false
5869 # Loop through the user's path and test for each of PROGNAME-LIST
5870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871 for as_dir in $PATH
5873 IFS=$as_save_IFS
5874 test -z "$as_dir" && as_dir=.
5875 for ac_prog in sed gsed; do
5876 for ac_exec_ext in '' $ac_executable_extensions; do
5877 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5878 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5879 # Check for GNU ac_path_SED and select it if it is found.
5880 # Check for GNU $ac_path_SED
5881 case `"$ac_path_SED" --version 2>&1` in
5882 *GNU*)
5883 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5885 ac_count=0
5886 $as_echo_n 0123456789 >"conftest.in"
5887 while :
5889 cat "conftest.in" "conftest.in" >"conftest.tmp"
5890 mv "conftest.tmp" "conftest.in"
5891 cp "conftest.in" "conftest.nl"
5892 $as_echo '' >> "conftest.nl"
5893 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5894 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5895 as_fn_arith $ac_count + 1 && ac_count=$as_val
5896 if test $ac_count -gt ${ac_path_SED_max-0}; then
5897 # Best one so far, save it but keep looking for a better one
5898 ac_cv_path_SED="$ac_path_SED"
5899 ac_path_SED_max=$ac_count
5901 # 10*(2^10) chars as input seems more than enough
5902 test $ac_count -gt 10 && break
5903 done
5904 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5905 esac
5907 $ac_path_SED_found && break 3
5908 done
5909 done
5910 done
5911 IFS=$as_save_IFS
5912 if test -z "$ac_cv_path_SED"; then
5913 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5915 else
5916 ac_cv_path_SED=$SED
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5921 $as_echo "$ac_cv_path_SED" >&6; }
5922 SED="$ac_cv_path_SED"
5923 rm -f conftest.sed
5925 test -z "$SED" && SED=sed
5926 Xsed="$SED -e 1s/^X//"
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5939 $as_echo_n "checking for fgrep... " >&6; }
5940 if test "${ac_cv_path_FGREP+set}" = set; then :
5941 $as_echo_n "(cached) " >&6
5942 else
5943 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5944 then ac_cv_path_FGREP="$GREP -F"
5945 else
5946 if test -z "$FGREP"; then
5947 ac_path_FGREP_found=false
5948 # Loop through the user's path and test for each of PROGNAME-LIST
5949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5950 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5952 IFS=$as_save_IFS
5953 test -z "$as_dir" && as_dir=.
5954 for ac_prog in fgrep; do
5955 for ac_exec_ext in '' $ac_executable_extensions; do
5956 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5957 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5958 # Check for GNU ac_path_FGREP and select it if it is found.
5959 # Check for GNU $ac_path_FGREP
5960 case `"$ac_path_FGREP" --version 2>&1` in
5961 *GNU*)
5962 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5964 ac_count=0
5965 $as_echo_n 0123456789 >"conftest.in"
5966 while :
5968 cat "conftest.in" "conftest.in" >"conftest.tmp"
5969 mv "conftest.tmp" "conftest.in"
5970 cp "conftest.in" "conftest.nl"
5971 $as_echo 'FGREP' >> "conftest.nl"
5972 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5973 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5974 as_fn_arith $ac_count + 1 && ac_count=$as_val
5975 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5976 # Best one so far, save it but keep looking for a better one
5977 ac_cv_path_FGREP="$ac_path_FGREP"
5978 ac_path_FGREP_max=$ac_count
5980 # 10*(2^10) chars as input seems more than enough
5981 test $ac_count -gt 10 && break
5982 done
5983 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5984 esac
5986 $ac_path_FGREP_found && break 3
5987 done
5988 done
5989 done
5990 IFS=$as_save_IFS
5991 if test -z "$ac_cv_path_FGREP"; then
5992 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5994 else
5995 ac_cv_path_FGREP=$FGREP
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6001 $as_echo "$ac_cv_path_FGREP" >&6; }
6002 FGREP="$ac_cv_path_FGREP"
6005 test -z "$GREP" && GREP=grep
6025 # Check whether --with-gnu-ld was given.
6026 if test "${with_gnu_ld+set}" = set; then :
6027 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6028 else
6029 with_gnu_ld=no
6032 ac_prog=ld
6033 if test "$GCC" = yes; then
6034 # Check if gcc -print-prog-name=ld gives a path.
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6036 $as_echo_n "checking for ld used by $CC... " >&6; }
6037 case $host in
6038 *-*-mingw*)
6039 # gcc leaves a trailing carriage return which upsets mingw
6040 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6042 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6043 esac
6044 case $ac_prog in
6045 # Accept absolute paths.
6046 [\\/]* | ?:[\\/]*)
6047 re_direlt='/[^/][^/]*/\.\./'
6048 # Canonicalize the pathname of ld
6049 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6050 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6051 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6052 done
6053 test -z "$LD" && LD="$ac_prog"
6056 # If it fails, then pretend we aren't using GCC.
6057 ac_prog=ld
6060 # If it is relative, then search for the first ld in PATH.
6061 with_gnu_ld=unknown
6063 esac
6064 elif test "$with_gnu_ld" = yes; then
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6066 $as_echo_n "checking for GNU ld... " >&6; }
6067 else
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6069 $as_echo_n "checking for non-GNU ld... " >&6; }
6071 if test "${lt_cv_path_LD+set}" = set; then :
6072 $as_echo_n "(cached) " >&6
6073 else
6074 if test -z "$LD"; then
6075 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6076 for ac_dir in $PATH; do
6077 IFS="$lt_save_ifs"
6078 test -z "$ac_dir" && ac_dir=.
6079 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6080 lt_cv_path_LD="$ac_dir/$ac_prog"
6081 # Check to see if the program is GNU ld. I'd rather use --version,
6082 # but apparently some variants of GNU ld only accept -v.
6083 # Break only if it was the GNU/non-GNU ld that we prefer.
6084 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6085 *GNU* | *'with BFD'*)
6086 test "$with_gnu_ld" != no && break
6089 test "$with_gnu_ld" != yes && break
6091 esac
6093 done
6094 IFS="$lt_save_ifs"
6095 else
6096 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6100 LD="$lt_cv_path_LD"
6101 if test -n "$LD"; then
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6103 $as_echo "$LD" >&6; }
6104 else
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6106 $as_echo "no" >&6; }
6108 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6110 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6111 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6112 $as_echo_n "(cached) " >&6
6113 else
6114 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6115 case `$LD -v 2>&1 </dev/null` in
6116 *GNU* | *'with BFD'*)
6117 lt_cv_prog_gnu_ld=yes
6120 lt_cv_prog_gnu_ld=no
6122 esac
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6125 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6126 with_gnu_ld=$lt_cv_prog_gnu_ld
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6137 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6138 if test "${lt_cv_path_NM+set}" = set; then :
6139 $as_echo_n "(cached) " >&6
6140 else
6141 if test -n "$NM"; then
6142 # Let the user override the test.
6143 lt_cv_path_NM="$NM"
6144 else
6145 lt_nm_to_check="${ac_tool_prefix}nm"
6146 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6147 lt_nm_to_check="$lt_nm_to_check nm"
6149 for lt_tmp_nm in $lt_nm_to_check; do
6150 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6151 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6152 IFS="$lt_save_ifs"
6153 test -z "$ac_dir" && ac_dir=.
6154 tmp_nm="$ac_dir/$lt_tmp_nm"
6155 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6156 # Check to see if the nm accepts a BSD-compat flag.
6157 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6158 # nm: unknown option "B" ignored
6159 # Tru64's nm complains that /dev/null is an invalid object file
6160 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6161 */dev/null* | *'Invalid file or object type'*)
6162 lt_cv_path_NM="$tmp_nm -B"
6163 break
6166 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6167 */dev/null*)
6168 lt_cv_path_NM="$tmp_nm -p"
6169 break
6172 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6173 continue # so that we can try to find one that supports BSD flags
6175 esac
6177 esac
6179 done
6180 IFS="$lt_save_ifs"
6181 done
6182 : ${lt_cv_path_NM=no}
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6186 $as_echo "$lt_cv_path_NM" >&6; }
6187 if test "$lt_cv_path_NM" != "no"; then
6188 NM="$lt_cv_path_NM"
6189 else
6190 # Didn't find any BSD compatible name lister, look for dumpbin.
6191 if test -n "$DUMPBIN"; then :
6192 # Let the user override the test.
6193 else
6194 if test -n "$ac_tool_prefix"; then
6195 for ac_prog in dumpbin "link -dump"
6197 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6198 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6200 $as_echo_n "checking for $ac_word... " >&6; }
6201 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6202 $as_echo_n "(cached) " >&6
6203 else
6204 if test -n "$DUMPBIN"; then
6205 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6206 else
6207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6208 for as_dir in $PATH
6210 IFS=$as_save_IFS
6211 test -z "$as_dir" && as_dir=.
6212 for ac_exec_ext in '' $ac_executable_extensions; do
6213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6214 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6216 break 2
6218 done
6219 done
6220 IFS=$as_save_IFS
6224 DUMPBIN=$ac_cv_prog_DUMPBIN
6225 if test -n "$DUMPBIN"; then
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6227 $as_echo "$DUMPBIN" >&6; }
6228 else
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6230 $as_echo "no" >&6; }
6234 test -n "$DUMPBIN" && break
6235 done
6237 if test -z "$DUMPBIN"; then
6238 ac_ct_DUMPBIN=$DUMPBIN
6239 for ac_prog in dumpbin "link -dump"
6241 # Extract the first word of "$ac_prog", so it can be a program name with args.
6242 set dummy $ac_prog; ac_word=$2
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6244 $as_echo_n "checking for $ac_word... " >&6; }
6245 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6246 $as_echo_n "(cached) " >&6
6247 else
6248 if test -n "$ac_ct_DUMPBIN"; then
6249 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6250 else
6251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6252 for as_dir in $PATH
6254 IFS=$as_save_IFS
6255 test -z "$as_dir" && as_dir=.
6256 for ac_exec_ext in '' $ac_executable_extensions; do
6257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6258 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6260 break 2
6262 done
6263 done
6264 IFS=$as_save_IFS
6268 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6269 if test -n "$ac_ct_DUMPBIN"; then
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6271 $as_echo "$ac_ct_DUMPBIN" >&6; }
6272 else
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6274 $as_echo "no" >&6; }
6278 test -n "$ac_ct_DUMPBIN" && break
6279 done
6281 if test "x$ac_ct_DUMPBIN" = x; then
6282 DUMPBIN=":"
6283 else
6284 case $cross_compiling:$ac_tool_warned in
6285 yes:)
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6287 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6288 ac_tool_warned=yes ;;
6289 esac
6290 DUMPBIN=$ac_ct_DUMPBIN
6294 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6295 *COFF*)
6296 DUMPBIN="$DUMPBIN -symbols"
6299 DUMPBIN=:
6301 esac
6304 if test "$DUMPBIN" != ":"; then
6305 NM="$DUMPBIN"
6308 test -z "$NM" && NM=nm
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6316 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6317 if test "${lt_cv_nm_interface+set}" = set; then :
6318 $as_echo_n "(cached) " >&6
6319 else
6320 lt_cv_nm_interface="BSD nm"
6321 echo "int some_variable = 0;" > conftest.$ac_ext
6322 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6323 (eval "$ac_compile" 2>conftest.err)
6324 cat conftest.err >&5
6325 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6326 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6327 cat conftest.err >&5
6328 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6329 cat conftest.out >&5
6330 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6331 lt_cv_nm_interface="MS dumpbin"
6333 rm -f conftest*
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6336 $as_echo "$lt_cv_nm_interface" >&6; }
6338 # find the maximum length of command line arguments
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6340 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6341 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6342 $as_echo_n "(cached) " >&6
6343 else
6345 teststring="ABCD"
6347 case $build_os in
6348 msdosdjgpp*)
6349 # On DJGPP, this test can blow up pretty badly due to problems in libc
6350 # (any single argument exceeding 2000 bytes causes a buffer overrun
6351 # during glob expansion). Even if it were fixed, the result of this
6352 # check would be larger than it should be.
6353 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6356 gnu*)
6357 # Under GNU Hurd, this test is not required because there is
6358 # no limit to the length of command line arguments.
6359 # Libtool will interpret -1 as no limit whatsoever
6360 lt_cv_sys_max_cmd_len=-1;
6363 cygwin* | mingw* | cegcc*)
6364 # On Win9x/ME, this test blows up -- it succeeds, but takes
6365 # about 5 minutes as the teststring grows exponentially.
6366 # Worse, since 9x/ME are not pre-emptively multitasking,
6367 # you end up with a "frozen" computer, even though with patience
6368 # the test eventually succeeds (with a max line length of 256k).
6369 # Instead, let's just punt: use the minimum linelength reported by
6370 # all of the supported platforms: 8192 (on NT/2K/XP).
6371 lt_cv_sys_max_cmd_len=8192;
6374 mint*)
6375 # On MiNT this can take a long time and run out of memory.
6376 lt_cv_sys_max_cmd_len=8192;
6379 amigaos*)
6380 # On AmigaOS with pdksh, this test takes hours, literally.
6381 # So we just punt and use a minimum line length of 8192.
6382 lt_cv_sys_max_cmd_len=8192;
6385 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6386 # This has been around since 386BSD, at least. Likely further.
6387 if test -x /sbin/sysctl; then
6388 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6389 elif test -x /usr/sbin/sysctl; then
6390 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6391 else
6392 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6394 # And add a safety zone
6395 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6396 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6399 interix*)
6400 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6401 lt_cv_sys_max_cmd_len=196608
6404 osf*)
6405 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6406 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6407 # nice to cause kernel panics so lets avoid the loop below.
6408 # First set a reasonable default.
6409 lt_cv_sys_max_cmd_len=16384
6411 if test -x /sbin/sysconfig; then
6412 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6413 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6414 esac
6417 sco3.2v5*)
6418 lt_cv_sys_max_cmd_len=102400
6420 sysv5* | sco5v6* | sysv4.2uw2*)
6421 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6422 if test -n "$kargmax"; then
6423 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6424 else
6425 lt_cv_sys_max_cmd_len=32768
6429 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6430 if test -n "$lt_cv_sys_max_cmd_len"; then
6431 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6432 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6433 else
6434 # Make teststring a little bigger before we do anything with it.
6435 # a 1K string should be a reasonable start.
6436 for i in 1 2 3 4 5 6 7 8 ; do
6437 teststring=$teststring$teststring
6438 done
6439 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6440 # If test is not a shell built-in, we'll probably end up computing a
6441 # maximum length that is only half of the actual maximum length, but
6442 # we can't tell.
6443 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6444 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6445 test $i != 17 # 1/2 MB should be enough
6447 i=`expr $i + 1`
6448 teststring=$teststring$teststring
6449 done
6450 # Only check the string length outside the loop.
6451 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6452 teststring=
6453 # Add a significant safety factor because C++ compilers can tack on
6454 # massive amounts of additional arguments before passing them to the
6455 # linker. It appears as though 1/2 is a usable value.
6456 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6459 esac
6463 if test -n $lt_cv_sys_max_cmd_len ; then
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6465 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6466 else
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6468 $as_echo "none" >&6; }
6470 max_cmd_len=$lt_cv_sys_max_cmd_len
6477 : ${CP="cp -f"}
6478 : ${MV="mv -f"}
6479 : ${RM="rm -f"}
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6482 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6483 # Try some XSI features
6484 xsi_shell=no
6485 ( _lt_dummy="a/b/c"
6486 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6487 = c,a/b,, \
6488 && eval 'test $(( 1 + 1 )) -eq 2 \
6489 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6490 && xsi_shell=yes
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6492 $as_echo "$xsi_shell" >&6; }
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6496 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6497 lt_shell_append=no
6498 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6499 >/dev/null 2>&1 \
6500 && lt_shell_append=yes
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6502 $as_echo "$lt_shell_append" >&6; }
6505 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6506 lt_unset=unset
6507 else
6508 lt_unset=false
6515 # test EBCDIC or ASCII
6516 case `echo X|tr X '\101'` in
6517 A) # ASCII based system
6518 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6519 lt_SP2NL='tr \040 \012'
6520 lt_NL2SP='tr \015\012 \040\040'
6522 *) # EBCDIC based system
6523 lt_SP2NL='tr \100 \n'
6524 lt_NL2SP='tr \r\n \100\100'
6526 esac
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6537 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6538 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6539 $as_echo_n "(cached) " >&6
6540 else
6541 lt_cv_ld_reload_flag='-r'
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6544 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6545 reload_flag=$lt_cv_ld_reload_flag
6546 case $reload_flag in
6547 "" | " "*) ;;
6548 *) reload_flag=" $reload_flag" ;;
6549 esac
6550 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6551 case $host_os in
6552 darwin*)
6553 if test "$GCC" = yes; then
6554 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6555 else
6556 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6559 esac
6569 if test -n "$ac_tool_prefix"; then
6570 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6571 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6573 $as_echo_n "checking for $ac_word... " >&6; }
6574 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6575 $as_echo_n "(cached) " >&6
6576 else
6577 if test -n "$OBJDUMP"; then
6578 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6579 else
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581 for as_dir in $PATH
6583 IFS=$as_save_IFS
6584 test -z "$as_dir" && as_dir=.
6585 for ac_exec_ext in '' $ac_executable_extensions; do
6586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6587 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6589 break 2
6591 done
6592 done
6593 IFS=$as_save_IFS
6597 OBJDUMP=$ac_cv_prog_OBJDUMP
6598 if test -n "$OBJDUMP"; then
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6600 $as_echo "$OBJDUMP" >&6; }
6601 else
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6603 $as_echo "no" >&6; }
6608 if test -z "$ac_cv_prog_OBJDUMP"; then
6609 ac_ct_OBJDUMP=$OBJDUMP
6610 # Extract the first word of "objdump", so it can be a program name with args.
6611 set dummy objdump; ac_word=$2
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6613 $as_echo_n "checking for $ac_word... " >&6; }
6614 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6615 $as_echo_n "(cached) " >&6
6616 else
6617 if test -n "$ac_ct_OBJDUMP"; then
6618 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6619 else
6620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621 for as_dir in $PATH
6623 IFS=$as_save_IFS
6624 test -z "$as_dir" && as_dir=.
6625 for ac_exec_ext in '' $ac_executable_extensions; do
6626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6627 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6629 break 2
6631 done
6632 done
6633 IFS=$as_save_IFS
6637 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6638 if test -n "$ac_ct_OBJDUMP"; then
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6640 $as_echo "$ac_ct_OBJDUMP" >&6; }
6641 else
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6643 $as_echo "no" >&6; }
6646 if test "x$ac_ct_OBJDUMP" = x; then
6647 OBJDUMP="false"
6648 else
6649 case $cross_compiling:$ac_tool_warned in
6650 yes:)
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6653 ac_tool_warned=yes ;;
6654 esac
6655 OBJDUMP=$ac_ct_OBJDUMP
6657 else
6658 OBJDUMP="$ac_cv_prog_OBJDUMP"
6661 test -z "$OBJDUMP" && OBJDUMP=objdump
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6672 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6673 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6674 $as_echo_n "(cached) " >&6
6675 else
6676 lt_cv_file_magic_cmd='$MAGIC_CMD'
6677 lt_cv_file_magic_test_file=
6678 lt_cv_deplibs_check_method='unknown'
6679 # Need to set the preceding variable on all platforms that support
6680 # interlibrary dependencies.
6681 # 'none' -- dependencies not supported.
6682 # `unknown' -- same as none, but documents that we really don't know.
6683 # 'pass_all' -- all dependencies passed with no checks.
6684 # 'test_compile' -- check by making test program.
6685 # 'file_magic [[regex]]' -- check by looking for files in library path
6686 # which responds to the $file_magic_cmd with a given extended regex.
6687 # If you have `file' or equivalent on your system and you're not sure
6688 # whether `pass_all' will *always* work, you probably want this one.
6690 case $host_os in
6691 aix[4-9]*)
6692 lt_cv_deplibs_check_method=pass_all
6695 beos*)
6696 lt_cv_deplibs_check_method=pass_all
6699 bsdi[45]*)
6700 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6701 lt_cv_file_magic_cmd='/usr/bin/file -L'
6702 lt_cv_file_magic_test_file=/shlib/libc.so
6705 cygwin*)
6706 # func_win32_libid is a shell function defined in ltmain.sh
6707 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6708 lt_cv_file_magic_cmd='func_win32_libid'
6711 mingw* | pw32*)
6712 # Base MSYS/MinGW do not provide the 'file' command needed by
6713 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6714 # unless we find 'file', for example because we are cross-compiling.
6715 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6716 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6717 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6718 lt_cv_file_magic_cmd='func_win32_libid'
6719 else
6720 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6721 lt_cv_file_magic_cmd='$OBJDUMP -f'
6725 cegcc*)
6726 # use the weaker test based on 'objdump'. See mingw*.
6727 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6728 lt_cv_file_magic_cmd='$OBJDUMP -f'
6731 darwin* | rhapsody*)
6732 lt_cv_deplibs_check_method=pass_all
6735 freebsd* | dragonfly*)
6736 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6737 case $host_cpu in
6738 i*86 )
6739 # Not sure whether the presence of OpenBSD here was a mistake.
6740 # Let's accept both of them until this is cleared up.
6741 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6742 lt_cv_file_magic_cmd=/usr/bin/file
6743 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6745 esac
6746 else
6747 lt_cv_deplibs_check_method=pass_all
6751 gnu*)
6752 lt_cv_deplibs_check_method=pass_all
6755 haiku*)
6756 lt_cv_deplibs_check_method=pass_all
6759 hpux10.20* | hpux11*)
6760 lt_cv_file_magic_cmd=/usr/bin/file
6761 case $host_cpu in
6762 ia64*)
6763 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6764 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6766 hppa*64*)
6767 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6768 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6771 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6772 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6774 esac
6777 interix[3-9]*)
6778 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6779 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6782 irix5* | irix6* | nonstopux*)
6783 case $LD in
6784 *-32|*"-32 ") libmagic=32-bit;;
6785 *-n32|*"-n32 ") libmagic=N32;;
6786 *-64|*"-64 ") libmagic=64-bit;;
6787 *) libmagic=never-match;;
6788 esac
6789 lt_cv_deplibs_check_method=pass_all
6792 # This must be Linux ELF.
6793 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6794 lt_cv_deplibs_check_method=pass_all
6797 netbsd*)
6798 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6799 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6800 else
6801 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6805 newos6*)
6806 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6807 lt_cv_file_magic_cmd=/usr/bin/file
6808 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6811 *nto* | *qnx*)
6812 lt_cv_deplibs_check_method=pass_all
6815 openbsd*)
6816 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6817 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6818 else
6819 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6823 osf3* | osf4* | osf5*)
6824 lt_cv_deplibs_check_method=pass_all
6827 rdos*)
6828 lt_cv_deplibs_check_method=pass_all
6831 solaris*)
6832 lt_cv_deplibs_check_method=pass_all
6835 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6836 lt_cv_deplibs_check_method=pass_all
6839 sysv4 | sysv4.3*)
6840 case $host_vendor in
6841 motorola)
6842 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6843 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6845 ncr)
6846 lt_cv_deplibs_check_method=pass_all
6848 sequent)
6849 lt_cv_file_magic_cmd='/bin/file'
6850 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6852 sni)
6853 lt_cv_file_magic_cmd='/bin/file'
6854 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6855 lt_cv_file_magic_test_file=/lib/libc.so
6857 siemens)
6858 lt_cv_deplibs_check_method=pass_all
6861 lt_cv_deplibs_check_method=pass_all
6863 esac
6866 tpf*)
6867 lt_cv_deplibs_check_method=pass_all
6869 esac
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6873 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6874 file_magic_cmd=$lt_cv_file_magic_cmd
6875 deplibs_check_method=$lt_cv_deplibs_check_method
6876 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6889 if test -n "$ac_tool_prefix"; then
6890 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6891 set dummy ${ac_tool_prefix}ar; ac_word=$2
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6893 $as_echo_n "checking for $ac_word... " >&6; }
6894 if test "${ac_cv_prog_AR+set}" = set; then :
6895 $as_echo_n "(cached) " >&6
6896 else
6897 if test -n "$AR"; then
6898 ac_cv_prog_AR="$AR" # Let the user override the test.
6899 else
6900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901 for as_dir in $PATH
6903 IFS=$as_save_IFS
6904 test -z "$as_dir" && as_dir=.
6905 for ac_exec_ext in '' $ac_executable_extensions; do
6906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6907 ac_cv_prog_AR="${ac_tool_prefix}ar"
6908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6909 break 2
6911 done
6912 done
6913 IFS=$as_save_IFS
6917 AR=$ac_cv_prog_AR
6918 if test -n "$AR"; then
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6920 $as_echo "$AR" >&6; }
6921 else
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6923 $as_echo "no" >&6; }
6928 if test -z "$ac_cv_prog_AR"; then
6929 ac_ct_AR=$AR
6930 # Extract the first word of "ar", so it can be a program name with args.
6931 set dummy ar; ac_word=$2
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6933 $as_echo_n "checking for $ac_word... " >&6; }
6934 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6935 $as_echo_n "(cached) " >&6
6936 else
6937 if test -n "$ac_ct_AR"; then
6938 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6939 else
6940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941 for as_dir in $PATH
6943 IFS=$as_save_IFS
6944 test -z "$as_dir" && as_dir=.
6945 for ac_exec_ext in '' $ac_executable_extensions; do
6946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6947 ac_cv_prog_ac_ct_AR="ar"
6948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6949 break 2
6951 done
6952 done
6953 IFS=$as_save_IFS
6957 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6958 if test -n "$ac_ct_AR"; then
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6960 $as_echo "$ac_ct_AR" >&6; }
6961 else
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6963 $as_echo "no" >&6; }
6966 if test "x$ac_ct_AR" = x; then
6967 AR="false"
6968 else
6969 case $cross_compiling:$ac_tool_warned in
6970 yes:)
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6973 ac_tool_warned=yes ;;
6974 esac
6975 AR=$ac_ct_AR
6977 else
6978 AR="$ac_cv_prog_AR"
6981 test -z "$AR" && AR=ar
6982 test -z "$AR_FLAGS" && AR_FLAGS=cru
6994 if test -n "$ac_tool_prefix"; then
6995 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6996 set dummy ${ac_tool_prefix}strip; ac_word=$2
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6998 $as_echo_n "checking for $ac_word... " >&6; }
6999 if test "${ac_cv_prog_STRIP+set}" = set; then :
7000 $as_echo_n "(cached) " >&6
7001 else
7002 if test -n "$STRIP"; then
7003 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7004 else
7005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006 for as_dir in $PATH
7008 IFS=$as_save_IFS
7009 test -z "$as_dir" && as_dir=.
7010 for ac_exec_ext in '' $ac_executable_extensions; do
7011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7012 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7014 break 2
7016 done
7017 done
7018 IFS=$as_save_IFS
7022 STRIP=$ac_cv_prog_STRIP
7023 if test -n "$STRIP"; then
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7025 $as_echo "$STRIP" >&6; }
7026 else
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7028 $as_echo "no" >&6; }
7033 if test -z "$ac_cv_prog_STRIP"; then
7034 ac_ct_STRIP=$STRIP
7035 # Extract the first word of "strip", so it can be a program name with args.
7036 set dummy strip; ac_word=$2
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7038 $as_echo_n "checking for $ac_word... " >&6; }
7039 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7040 $as_echo_n "(cached) " >&6
7041 else
7042 if test -n "$ac_ct_STRIP"; then
7043 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7044 else
7045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046 for as_dir in $PATH
7048 IFS=$as_save_IFS
7049 test -z "$as_dir" && as_dir=.
7050 for ac_exec_ext in '' $ac_executable_extensions; do
7051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7052 ac_cv_prog_ac_ct_STRIP="strip"
7053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7054 break 2
7056 done
7057 done
7058 IFS=$as_save_IFS
7062 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7063 if test -n "$ac_ct_STRIP"; then
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7065 $as_echo "$ac_ct_STRIP" >&6; }
7066 else
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7068 $as_echo "no" >&6; }
7071 if test "x$ac_ct_STRIP" = x; then
7072 STRIP=":"
7073 else
7074 case $cross_compiling:$ac_tool_warned in
7075 yes:)
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7078 ac_tool_warned=yes ;;
7079 esac
7080 STRIP=$ac_ct_STRIP
7082 else
7083 STRIP="$ac_cv_prog_STRIP"
7086 test -z "$STRIP" && STRIP=:
7093 if test -n "$ac_tool_prefix"; then
7094 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7095 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7097 $as_echo_n "checking for $ac_word... " >&6; }
7098 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7099 $as_echo_n "(cached) " >&6
7100 else
7101 if test -n "$RANLIB"; then
7102 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7103 else
7104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105 for as_dir in $PATH
7107 IFS=$as_save_IFS
7108 test -z "$as_dir" && as_dir=.
7109 for ac_exec_ext in '' $ac_executable_extensions; do
7110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7111 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7113 break 2
7115 done
7116 done
7117 IFS=$as_save_IFS
7121 RANLIB=$ac_cv_prog_RANLIB
7122 if test -n "$RANLIB"; then
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7124 $as_echo "$RANLIB" >&6; }
7125 else
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7127 $as_echo "no" >&6; }
7132 if test -z "$ac_cv_prog_RANLIB"; then
7133 ac_ct_RANLIB=$RANLIB
7134 # Extract the first word of "ranlib", so it can be a program name with args.
7135 set dummy ranlib; ac_word=$2
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7137 $as_echo_n "checking for $ac_word... " >&6; }
7138 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7139 $as_echo_n "(cached) " >&6
7140 else
7141 if test -n "$ac_ct_RANLIB"; then
7142 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7143 else
7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 for as_dir in $PATH
7147 IFS=$as_save_IFS
7148 test -z "$as_dir" && as_dir=.
7149 for ac_exec_ext in '' $ac_executable_extensions; do
7150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7151 ac_cv_prog_ac_ct_RANLIB="ranlib"
7152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 break 2
7155 done
7156 done
7157 IFS=$as_save_IFS
7161 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7162 if test -n "$ac_ct_RANLIB"; then
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7164 $as_echo "$ac_ct_RANLIB" >&6; }
7165 else
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7167 $as_echo "no" >&6; }
7170 if test "x$ac_ct_RANLIB" = x; then
7171 RANLIB=":"
7172 else
7173 case $cross_compiling:$ac_tool_warned in
7174 yes:)
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7177 ac_tool_warned=yes ;;
7178 esac
7179 RANLIB=$ac_ct_RANLIB
7181 else
7182 RANLIB="$ac_cv_prog_RANLIB"
7185 test -z "$RANLIB" && RANLIB=:
7192 # Determine commands to create old-style static archives.
7193 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7194 old_postinstall_cmds='chmod 644 $oldlib'
7195 old_postuninstall_cmds=
7197 if test -n "$RANLIB"; then
7198 case $host_os in
7199 openbsd*)
7200 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7203 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7205 esac
7206 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7209 case $host_os in
7210 darwin*)
7211 lock_old_archive_extraction=yes ;;
7213 lock_old_archive_extraction=no ;;
7214 esac
7254 # If no C compiler was specified, use CC.
7255 LTCC=${LTCC-"$CC"}
7257 # If no C compiler flags were specified, use CFLAGS.
7258 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7260 # Allow CC to be a program name with arguments.
7261 compiler=$CC
7264 # Check for command to grab the raw symbol name followed by C symbol from nm.
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7266 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7267 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7268 $as_echo_n "(cached) " >&6
7269 else
7271 # These are sane defaults that work on at least a few old systems.
7272 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7274 # Character class describing NM global symbol codes.
7275 symcode='[BCDEGRST]'
7277 # Regexp to match symbols that can be accessed directly from C.
7278 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7280 # Define system-specific variables.
7281 case $host_os in
7282 aix*)
7283 symcode='[BCDT]'
7285 cygwin* | mingw* | pw32* | cegcc*)
7286 symcode='[ABCDGISTW]'
7288 hpux*)
7289 if test "$host_cpu" = ia64; then
7290 symcode='[ABCDEGRST]'
7293 irix* | nonstopux*)
7294 symcode='[BCDEGRST]'
7296 osf*)
7297 symcode='[BCDEGQRST]'
7299 solaris*)
7300 symcode='[BDRT]'
7302 sco3.2v5*)
7303 symcode='[DT]'
7305 sysv4.2uw2*)
7306 symcode='[DT]'
7308 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7309 symcode='[ABDT]'
7311 sysv4)
7312 symcode='[DFNSTU]'
7314 esac
7316 # If we're using GNU nm, then use its standard symbol codes.
7317 case `$NM -V 2>&1` in
7318 *GNU* | *'with BFD'*)
7319 symcode='[ABCDGIRSTW]' ;;
7320 esac
7322 # Transform an extracted symbol line into a proper C declaration.
7323 # Some systems (esp. on ia64) link data and code symbols differently,
7324 # so use this general approach.
7325 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7327 # Transform an extracted symbol line into symbol name and symbol address
7328 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7329 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7331 # Handle CRLF in mingw tool chain
7332 opt_cr=
7333 case $build_os in
7334 mingw*)
7335 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7337 esac
7339 # Try without a prefix underscore, then with it.
7340 for ac_symprfx in "" "_"; do
7342 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7343 symxfrm="\\1 $ac_symprfx\\2 \\2"
7345 # Write the raw and C identifiers.
7346 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7347 # Fake it for dumpbin and say T for any non-static function
7348 # and D for any global variable.
7349 # Also find C++ and __fastcall symbols from MSVC++,
7350 # which start with @ or ?.
7351 lt_cv_sys_global_symbol_pipe="$AWK '"\
7352 " {last_section=section; section=\$ 3};"\
7353 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7354 " \$ 0!~/External *\|/{next};"\
7355 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7356 " {if(hide[section]) next};"\
7357 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7358 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7359 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7360 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7361 " ' prfx=^$ac_symprfx"
7362 else
7363 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7366 # Check to see that the pipe works correctly.
7367 pipe_works=no
7369 rm -f conftest*
7370 cat > conftest.$ac_ext <<_LT_EOF
7371 #ifdef __cplusplus
7372 extern "C" {
7373 #endif
7374 char nm_test_var;
7375 void nm_test_func(void);
7376 void nm_test_func(void){}
7377 #ifdef __cplusplus
7379 #endif
7380 int main(){nm_test_var='a';nm_test_func();return(0);}
7381 _LT_EOF
7383 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7384 (eval $ac_compile) 2>&5
7385 ac_status=$?
7386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7387 test $ac_status = 0; }; then
7388 # Now try to grab the symbols.
7389 nlist=conftest.nm
7390 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7391 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7392 ac_status=$?
7393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7394 test $ac_status = 0; } && test -s "$nlist"; then
7395 # Try sorting and uniquifying the output.
7396 if sort "$nlist" | uniq > "$nlist"T; then
7397 mv -f "$nlist"T "$nlist"
7398 else
7399 rm -f "$nlist"T
7402 # Make sure that we snagged all the symbols we need.
7403 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7404 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7405 cat <<_LT_EOF > conftest.$ac_ext
7406 #ifdef __cplusplus
7407 extern "C" {
7408 #endif
7410 _LT_EOF
7411 # Now generate the symbol file.
7412 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7414 cat <<_LT_EOF >> conftest.$ac_ext
7416 /* The mapping between symbol names and symbols. */
7417 const struct {
7418 const char *name;
7419 void *address;
7421 lt__PROGRAM__LTX_preloaded_symbols[] =
7423 { "@PROGRAM@", (void *) 0 },
7424 _LT_EOF
7425 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7426 cat <<\_LT_EOF >> conftest.$ac_ext
7427 {0, (void *) 0}
7430 /* This works around a problem in FreeBSD linker */
7431 #ifdef FREEBSD_WORKAROUND
7432 static const void *lt_preloaded_setup() {
7433 return lt__PROGRAM__LTX_preloaded_symbols;
7435 #endif
7437 #ifdef __cplusplus
7439 #endif
7440 _LT_EOF
7441 # Now try linking the two files.
7442 mv conftest.$ac_objext conftstm.$ac_objext
7443 lt_save_LIBS="$LIBS"
7444 lt_save_CFLAGS="$CFLAGS"
7445 LIBS="conftstm.$ac_objext"
7446 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7448 (eval $ac_link) 2>&5
7449 ac_status=$?
7450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7451 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7452 pipe_works=yes
7454 LIBS="$lt_save_LIBS"
7455 CFLAGS="$lt_save_CFLAGS"
7456 else
7457 echo "cannot find nm_test_func in $nlist" >&5
7459 else
7460 echo "cannot find nm_test_var in $nlist" >&5
7462 else
7463 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7465 else
7466 echo "$progname: failed program was:" >&5
7467 cat conftest.$ac_ext >&5
7469 rm -rf conftest* conftst*
7471 # Do not use the global_symbol_pipe unless it works.
7472 if test "$pipe_works" = yes; then
7473 break
7474 else
7475 lt_cv_sys_global_symbol_pipe=
7477 done
7481 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7482 lt_cv_sys_global_symbol_to_cdecl=
7484 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7486 $as_echo "failed" >&6; }
7487 else
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7489 $as_echo "ok" >&6; }
7513 # Check whether --enable-libtool-lock was given.
7514 if test "${enable_libtool_lock+set}" = set; then :
7515 enableval=$enable_libtool_lock;
7518 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7520 # Some flags need to be propagated to the compiler or linker for good
7521 # libtool support.
7522 case $host in
7523 ia64-*-hpux*)
7524 # Find out which ABI we are using.
7525 echo 'int i;' > conftest.$ac_ext
7526 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7527 (eval $ac_compile) 2>&5
7528 ac_status=$?
7529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7530 test $ac_status = 0; }; then
7531 case `/usr/bin/file conftest.$ac_objext` in
7532 *ELF-32*)
7533 HPUX_IA64_MODE="32"
7535 *ELF-64*)
7536 HPUX_IA64_MODE="64"
7538 esac
7540 rm -rf conftest*
7542 *-*-irix6*)
7543 # Find out which ABI we are using.
7544 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7545 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7546 (eval $ac_compile) 2>&5
7547 ac_status=$?
7548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7549 test $ac_status = 0; }; then
7550 if test "$lt_cv_prog_gnu_ld" = yes; then
7551 case `/usr/bin/file conftest.$ac_objext` in
7552 *32-bit*)
7553 LD="${LD-ld} -melf32bsmip"
7555 *N32*)
7556 LD="${LD-ld} -melf32bmipn32"
7558 *64-bit*)
7559 LD="${LD-ld} -melf64bmip"
7561 esac
7562 else
7563 case `/usr/bin/file conftest.$ac_objext` in
7564 *32-bit*)
7565 LD="${LD-ld} -32"
7567 *N32*)
7568 LD="${LD-ld} -n32"
7570 *64-bit*)
7571 LD="${LD-ld} -64"
7573 esac
7576 rm -rf conftest*
7579 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7580 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7581 # Find out which ABI we are using.
7582 echo 'int i;' > conftest.$ac_ext
7583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7584 (eval $ac_compile) 2>&5
7585 ac_status=$?
7586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7587 test $ac_status = 0; }; then
7588 case `/usr/bin/file conftest.o` in
7589 *32-bit*)
7590 case $host in
7591 x86_64-*kfreebsd*-gnu)
7592 LD="${LD-ld} -m elf_i386_fbsd"
7594 x86_64-*linux*)
7595 LD="${LD-ld} -m elf_i386"
7597 ppc64-*linux*|powerpc64-*linux*)
7598 LD="${LD-ld} -m elf32ppclinux"
7600 s390x-*linux*)
7601 LD="${LD-ld} -m elf_s390"
7603 sparc64-*linux*)
7604 LD="${LD-ld} -m elf32_sparc"
7606 esac
7608 *64-bit*)
7609 case $host in
7610 x86_64-*kfreebsd*-gnu)
7611 LD="${LD-ld} -m elf_x86_64_fbsd"
7613 x86_64-*linux*)
7614 LD="${LD-ld} -m elf_x86_64"
7616 ppc*-*linux*|powerpc*-*linux*)
7617 LD="${LD-ld} -m elf64ppc"
7619 s390*-*linux*|s390*-*tpf*)
7620 LD="${LD-ld} -m elf64_s390"
7622 sparc*-*linux*)
7623 LD="${LD-ld} -m elf64_sparc"
7625 esac
7627 esac
7629 rm -rf conftest*
7632 *-*-sco3.2v5*)
7633 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7634 SAVE_CFLAGS="$CFLAGS"
7635 CFLAGS="$CFLAGS -belf"
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7637 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7638 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7639 $as_echo_n "(cached) " >&6
7640 else
7641 ac_ext=c
7642 ac_cpp='$CPP $CPPFLAGS'
7643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7647 if test x$gcc_no_link = xyes; then
7648 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
7650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7651 /* end confdefs.h. */
7654 main ()
7658 return 0;
7660 _ACEOF
7661 if ac_fn_c_try_link "$LINENO"; then :
7662 lt_cv_cc_needs_belf=yes
7663 else
7664 lt_cv_cc_needs_belf=no
7666 rm -f core conftest.err conftest.$ac_objext \
7667 conftest$ac_exeext conftest.$ac_ext
7668 ac_ext=c
7669 ac_cpp='$CPP $CPPFLAGS'
7670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7676 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7677 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7678 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7679 CFLAGS="$SAVE_CFLAGS"
7682 sparc*-*solaris*)
7683 # Find out which ABI we are using.
7684 echo 'int i;' > conftest.$ac_ext
7685 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7686 (eval $ac_compile) 2>&5
7687 ac_status=$?
7688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7689 test $ac_status = 0; }; then
7690 case `/usr/bin/file conftest.o` in
7691 *64-bit*)
7692 case $lt_cv_prog_gnu_ld in
7693 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7695 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7696 LD="${LD-ld} -64"
7699 esac
7701 esac
7703 rm -rf conftest*
7705 esac
7707 need_locks="$enable_libtool_lock"
7710 case $host_os in
7711 rhapsody* | darwin*)
7712 if test -n "$ac_tool_prefix"; then
7713 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7714 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7716 $as_echo_n "checking for $ac_word... " >&6; }
7717 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7718 $as_echo_n "(cached) " >&6
7719 else
7720 if test -n "$DSYMUTIL"; then
7721 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7722 else
7723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7724 for as_dir in $PATH
7726 IFS=$as_save_IFS
7727 test -z "$as_dir" && as_dir=.
7728 for ac_exec_ext in '' $ac_executable_extensions; do
7729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7730 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7732 break 2
7734 done
7735 done
7736 IFS=$as_save_IFS
7740 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7741 if test -n "$DSYMUTIL"; then
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7743 $as_echo "$DSYMUTIL" >&6; }
7744 else
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746 $as_echo "no" >&6; }
7751 if test -z "$ac_cv_prog_DSYMUTIL"; then
7752 ac_ct_DSYMUTIL=$DSYMUTIL
7753 # Extract the first word of "dsymutil", so it can be a program name with args.
7754 set dummy dsymutil; ac_word=$2
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7756 $as_echo_n "checking for $ac_word... " >&6; }
7757 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7758 $as_echo_n "(cached) " >&6
7759 else
7760 if test -n "$ac_ct_DSYMUTIL"; then
7761 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7762 else
7763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7764 for as_dir in $PATH
7766 IFS=$as_save_IFS
7767 test -z "$as_dir" && as_dir=.
7768 for ac_exec_ext in '' $ac_executable_extensions; do
7769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7770 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7772 break 2
7774 done
7775 done
7776 IFS=$as_save_IFS
7780 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7781 if test -n "$ac_ct_DSYMUTIL"; then
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7783 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7784 else
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7786 $as_echo "no" >&6; }
7789 if test "x$ac_ct_DSYMUTIL" = x; then
7790 DSYMUTIL=":"
7791 else
7792 case $cross_compiling:$ac_tool_warned in
7793 yes:)
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7796 ac_tool_warned=yes ;;
7797 esac
7798 DSYMUTIL=$ac_ct_DSYMUTIL
7800 else
7801 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7804 if test -n "$ac_tool_prefix"; then
7805 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7806 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7808 $as_echo_n "checking for $ac_word... " >&6; }
7809 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7810 $as_echo_n "(cached) " >&6
7811 else
7812 if test -n "$NMEDIT"; then
7813 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7814 else
7815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816 for as_dir in $PATH
7818 IFS=$as_save_IFS
7819 test -z "$as_dir" && as_dir=.
7820 for ac_exec_ext in '' $ac_executable_extensions; do
7821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7822 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7824 break 2
7826 done
7827 done
7828 IFS=$as_save_IFS
7832 NMEDIT=$ac_cv_prog_NMEDIT
7833 if test -n "$NMEDIT"; then
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7835 $as_echo "$NMEDIT" >&6; }
7836 else
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7838 $as_echo "no" >&6; }
7843 if test -z "$ac_cv_prog_NMEDIT"; then
7844 ac_ct_NMEDIT=$NMEDIT
7845 # Extract the first word of "nmedit", so it can be a program name with args.
7846 set dummy nmedit; ac_word=$2
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7848 $as_echo_n "checking for $ac_word... " >&6; }
7849 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7850 $as_echo_n "(cached) " >&6
7851 else
7852 if test -n "$ac_ct_NMEDIT"; then
7853 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7854 else
7855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7856 for as_dir in $PATH
7858 IFS=$as_save_IFS
7859 test -z "$as_dir" && as_dir=.
7860 for ac_exec_ext in '' $ac_executable_extensions; do
7861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7862 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7864 break 2
7866 done
7867 done
7868 IFS=$as_save_IFS
7872 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7873 if test -n "$ac_ct_NMEDIT"; then
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7875 $as_echo "$ac_ct_NMEDIT" >&6; }
7876 else
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7878 $as_echo "no" >&6; }
7881 if test "x$ac_ct_NMEDIT" = x; then
7882 NMEDIT=":"
7883 else
7884 case $cross_compiling:$ac_tool_warned in
7885 yes:)
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7888 ac_tool_warned=yes ;;
7889 esac
7890 NMEDIT=$ac_ct_NMEDIT
7892 else
7893 NMEDIT="$ac_cv_prog_NMEDIT"
7896 if test -n "$ac_tool_prefix"; then
7897 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7898 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7900 $as_echo_n "checking for $ac_word... " >&6; }
7901 if test "${ac_cv_prog_LIPO+set}" = set; then :
7902 $as_echo_n "(cached) " >&6
7903 else
7904 if test -n "$LIPO"; then
7905 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7906 else
7907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7908 for as_dir in $PATH
7910 IFS=$as_save_IFS
7911 test -z "$as_dir" && as_dir=.
7912 for ac_exec_ext in '' $ac_executable_extensions; do
7913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7914 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7916 break 2
7918 done
7919 done
7920 IFS=$as_save_IFS
7924 LIPO=$ac_cv_prog_LIPO
7925 if test -n "$LIPO"; then
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7927 $as_echo "$LIPO" >&6; }
7928 else
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7930 $as_echo "no" >&6; }
7935 if test -z "$ac_cv_prog_LIPO"; then
7936 ac_ct_LIPO=$LIPO
7937 # Extract the first word of "lipo", so it can be a program name with args.
7938 set dummy lipo; ac_word=$2
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7940 $as_echo_n "checking for $ac_word... " >&6; }
7941 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7942 $as_echo_n "(cached) " >&6
7943 else
7944 if test -n "$ac_ct_LIPO"; then
7945 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7946 else
7947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7948 for as_dir in $PATH
7950 IFS=$as_save_IFS
7951 test -z "$as_dir" && as_dir=.
7952 for ac_exec_ext in '' $ac_executable_extensions; do
7953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7954 ac_cv_prog_ac_ct_LIPO="lipo"
7955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7956 break 2
7958 done
7959 done
7960 IFS=$as_save_IFS
7964 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7965 if test -n "$ac_ct_LIPO"; then
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7967 $as_echo "$ac_ct_LIPO" >&6; }
7968 else
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970 $as_echo "no" >&6; }
7973 if test "x$ac_ct_LIPO" = x; then
7974 LIPO=":"
7975 else
7976 case $cross_compiling:$ac_tool_warned in
7977 yes:)
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7980 ac_tool_warned=yes ;;
7981 esac
7982 LIPO=$ac_ct_LIPO
7984 else
7985 LIPO="$ac_cv_prog_LIPO"
7988 if test -n "$ac_tool_prefix"; then
7989 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7990 set dummy ${ac_tool_prefix}otool; ac_word=$2
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7992 $as_echo_n "checking for $ac_word... " >&6; }
7993 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7994 $as_echo_n "(cached) " >&6
7995 else
7996 if test -n "$OTOOL"; then
7997 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7998 else
7999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8000 for as_dir in $PATH
8002 IFS=$as_save_IFS
8003 test -z "$as_dir" && as_dir=.
8004 for ac_exec_ext in '' $ac_executable_extensions; do
8005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8006 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8008 break 2
8010 done
8011 done
8012 IFS=$as_save_IFS
8016 OTOOL=$ac_cv_prog_OTOOL
8017 if test -n "$OTOOL"; then
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8019 $as_echo "$OTOOL" >&6; }
8020 else
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8022 $as_echo "no" >&6; }
8027 if test -z "$ac_cv_prog_OTOOL"; then
8028 ac_ct_OTOOL=$OTOOL
8029 # Extract the first word of "otool", so it can be a program name with args.
8030 set dummy otool; ac_word=$2
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8032 $as_echo_n "checking for $ac_word... " >&6; }
8033 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8034 $as_echo_n "(cached) " >&6
8035 else
8036 if test -n "$ac_ct_OTOOL"; then
8037 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8038 else
8039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8040 for as_dir in $PATH
8042 IFS=$as_save_IFS
8043 test -z "$as_dir" && as_dir=.
8044 for ac_exec_ext in '' $ac_executable_extensions; do
8045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8046 ac_cv_prog_ac_ct_OTOOL="otool"
8047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8048 break 2
8050 done
8051 done
8052 IFS=$as_save_IFS
8056 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8057 if test -n "$ac_ct_OTOOL"; then
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8059 $as_echo "$ac_ct_OTOOL" >&6; }
8060 else
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8062 $as_echo "no" >&6; }
8065 if test "x$ac_ct_OTOOL" = x; then
8066 OTOOL=":"
8067 else
8068 case $cross_compiling:$ac_tool_warned in
8069 yes:)
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8072 ac_tool_warned=yes ;;
8073 esac
8074 OTOOL=$ac_ct_OTOOL
8076 else
8077 OTOOL="$ac_cv_prog_OTOOL"
8080 if test -n "$ac_tool_prefix"; then
8081 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8082 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8084 $as_echo_n "checking for $ac_word... " >&6; }
8085 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8086 $as_echo_n "(cached) " >&6
8087 else
8088 if test -n "$OTOOL64"; then
8089 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8090 else
8091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8092 for as_dir in $PATH
8094 IFS=$as_save_IFS
8095 test -z "$as_dir" && as_dir=.
8096 for ac_exec_ext in '' $ac_executable_extensions; do
8097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8098 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8100 break 2
8102 done
8103 done
8104 IFS=$as_save_IFS
8108 OTOOL64=$ac_cv_prog_OTOOL64
8109 if test -n "$OTOOL64"; then
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8111 $as_echo "$OTOOL64" >&6; }
8112 else
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8114 $as_echo "no" >&6; }
8119 if test -z "$ac_cv_prog_OTOOL64"; then
8120 ac_ct_OTOOL64=$OTOOL64
8121 # Extract the first word of "otool64", so it can be a program name with args.
8122 set dummy otool64; ac_word=$2
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8124 $as_echo_n "checking for $ac_word... " >&6; }
8125 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8126 $as_echo_n "(cached) " >&6
8127 else
8128 if test -n "$ac_ct_OTOOL64"; then
8129 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8130 else
8131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8132 for as_dir in $PATH
8134 IFS=$as_save_IFS
8135 test -z "$as_dir" && as_dir=.
8136 for ac_exec_ext in '' $ac_executable_extensions; do
8137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8138 ac_cv_prog_ac_ct_OTOOL64="otool64"
8139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8140 break 2
8142 done
8143 done
8144 IFS=$as_save_IFS
8148 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8149 if test -n "$ac_ct_OTOOL64"; then
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8151 $as_echo "$ac_ct_OTOOL64" >&6; }
8152 else
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8154 $as_echo "no" >&6; }
8157 if test "x$ac_ct_OTOOL64" = x; then
8158 OTOOL64=":"
8159 else
8160 case $cross_compiling:$ac_tool_warned in
8161 yes:)
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8164 ac_tool_warned=yes ;;
8165 esac
8166 OTOOL64=$ac_ct_OTOOL64
8168 else
8169 OTOOL64="$ac_cv_prog_OTOOL64"
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8199 $as_echo_n "checking for -single_module linker flag... " >&6; }
8200 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8201 $as_echo_n "(cached) " >&6
8202 else
8203 lt_cv_apple_cc_single_mod=no
8204 if test -z "${LT_MULTI_MODULE}"; then
8205 # By default we will add the -single_module flag. You can override
8206 # by either setting the environment variable LT_MULTI_MODULE
8207 # non-empty at configure time, or by adding -multi_module to the
8208 # link flags.
8209 rm -rf libconftest.dylib*
8210 echo "int foo(void){return 1;}" > conftest.c
8211 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8212 -dynamiclib -Wl,-single_module conftest.c" >&5
8213 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8214 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8215 _lt_result=$?
8216 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8217 lt_cv_apple_cc_single_mod=yes
8218 else
8219 cat conftest.err >&5
8221 rm -rf libconftest.dylib*
8222 rm -f conftest.*
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8226 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8228 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8229 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8230 $as_echo_n "(cached) " >&6
8231 else
8232 lt_cv_ld_exported_symbols_list=no
8233 save_LDFLAGS=$LDFLAGS
8234 echo "_main" > conftest.sym
8235 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8236 if test x$gcc_no_link = xyes; then
8237 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8240 /* end confdefs.h. */
8243 main ()
8247 return 0;
8249 _ACEOF
8250 if ac_fn_c_try_link "$LINENO"; then :
8251 lt_cv_ld_exported_symbols_list=yes
8252 else
8253 lt_cv_ld_exported_symbols_list=no
8255 rm -f core conftest.err conftest.$ac_objext \
8256 conftest$ac_exeext conftest.$ac_ext
8257 LDFLAGS="$save_LDFLAGS"
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8261 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8263 $as_echo_n "checking for -force_load linker flag... " >&6; }
8264 if test "${lt_cv_ld_force_load+set}" = set; then :
8265 $as_echo_n "(cached) " >&6
8266 else
8267 lt_cv_ld_force_load=no
8268 cat > conftest.c << _LT_EOF
8269 int forced_loaded() { return 2;}
8270 _LT_EOF
8271 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8272 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8273 echo "$AR cru libconftest.a conftest.o" >&5
8274 $AR cru libconftest.a conftest.o 2>&5
8275 cat > conftest.c << _LT_EOF
8276 int main() { return 0;}
8277 _LT_EOF
8278 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8279 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8280 _lt_result=$?
8281 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8282 lt_cv_ld_force_load=yes
8283 else
8284 cat conftest.err >&5
8286 rm -f conftest.err libconftest.a conftest conftest.c
8287 rm -rf conftest.dSYM
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8291 $as_echo "$lt_cv_ld_force_load" >&6; }
8292 case $host_os in
8293 rhapsody* | darwin1.[012])
8294 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8295 darwin1.*)
8296 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8297 darwin*) # darwin 5.x on
8298 # if running on 10.5 or later, the deployment target defaults
8299 # to the OS version, if on x86, and 10.4, the deployment
8300 # target defaults to 10.4. Don't you love it?
8301 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8302 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8303 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8304 10.[012]*)
8305 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8306 10.*)
8307 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8308 esac
8310 esac
8311 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8312 _lt_dar_single_mod='$single_module'
8314 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8315 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8316 else
8317 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8319 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8320 _lt_dsymutil='~$DSYMUTIL $lib || :'
8321 else
8322 _lt_dsymutil=
8325 esac
8327 for ac_header in dlfcn.h
8328 do :
8329 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8331 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8332 cat >>confdefs.h <<_ACEOF
8333 #define HAVE_DLFCN_H 1
8334 _ACEOF
8338 done
8344 # Set options
8348 enable_dlopen=no
8351 enable_win32_dll=no
8354 # Check whether --enable-shared was given.
8355 if test "${enable_shared+set}" = set; then :
8356 enableval=$enable_shared; p=${PACKAGE-default}
8357 case $enableval in
8358 yes) enable_shared=yes ;;
8359 no) enable_shared=no ;;
8361 enable_shared=no
8362 # Look at the argument we got. We use all the common list separators.
8363 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8364 for pkg in $enableval; do
8365 IFS="$lt_save_ifs"
8366 if test "X$pkg" = "X$p"; then
8367 enable_shared=yes
8369 done
8370 IFS="$lt_save_ifs"
8372 esac
8373 else
8374 enable_shared=yes
8387 # Check whether --with-pic was given.
8388 if test "${with_pic+set}" = set; then :
8389 withval=$with_pic; p=${PACKAGE-default}
8390 case "$withval" in
8391 yes|no) pic_mode="$withval" ;;
8393 pic_mode=default
8394 # Look at the argument we got. We use all the common list separators.
8395 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8396 for pkg in $withval; do
8397 IFS="$lt_save_ifs"
8398 if test "X$pkg" = "X$p"; then
8399 pic_mode=yes
8401 done
8402 IFS="$lt_save_ifs"
8404 esac
8405 else
8406 pic_mode=default
8410 test -z "$pic_mode" && pic_mode=default
8418 # Check whether --enable-fast-install was given.
8419 if test "${enable_fast_install+set}" = set; then :
8420 enableval=$enable_fast_install; p=${PACKAGE-default}
8421 case $enableval in
8422 yes) enable_fast_install=yes ;;
8423 no) enable_fast_install=no ;;
8425 enable_fast_install=no
8426 # Look at the argument we got. We use all the common list separators.
8427 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8428 for pkg in $enableval; do
8429 IFS="$lt_save_ifs"
8430 if test "X$pkg" = "X$p"; then
8431 enable_fast_install=yes
8433 done
8434 IFS="$lt_save_ifs"
8436 esac
8437 else
8438 enable_fast_install=yes
8451 # This can be used to rebuild libtool when needed
8452 LIBTOOL_DEPS="$ltmain"
8454 # Always use our own libtool.
8455 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8482 test -z "$LN_S" && LN_S="ln -s"
8497 if test -n "${ZSH_VERSION+set}" ; then
8498 setopt NO_GLOB_SUBST
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8502 $as_echo_n "checking for objdir... " >&6; }
8503 if test "${lt_cv_objdir+set}" = set; then :
8504 $as_echo_n "(cached) " >&6
8505 else
8506 rm -f .libs 2>/dev/null
8507 mkdir .libs 2>/dev/null
8508 if test -d .libs; then
8509 lt_cv_objdir=.libs
8510 else
8511 # MS-DOS does not allow filenames that begin with a dot.
8512 lt_cv_objdir=_libs
8514 rmdir .libs 2>/dev/null
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8517 $as_echo "$lt_cv_objdir" >&6; }
8518 objdir=$lt_cv_objdir
8524 cat >>confdefs.h <<_ACEOF
8525 #define LT_OBJDIR "$lt_cv_objdir/"
8526 _ACEOF
8531 case $host_os in
8532 aix3*)
8533 # AIX sometimes has problems with the GCC collect2 program. For some
8534 # reason, if we set the COLLECT_NAMES environment variable, the problems
8535 # vanish in a puff of smoke.
8536 if test "X${COLLECT_NAMES+set}" != Xset; then
8537 COLLECT_NAMES=
8538 export COLLECT_NAMES
8541 esac
8543 # Global variables:
8544 ofile=libtool
8545 can_build_shared=yes
8547 # All known linkers require a `.a' archive for static linking (except MSVC,
8548 # which needs '.lib').
8549 libext=a
8551 with_gnu_ld="$lt_cv_prog_gnu_ld"
8553 old_CC="$CC"
8554 old_CFLAGS="$CFLAGS"
8556 # Set sane defaults for various variables
8557 test -z "$CC" && CC=cc
8558 test -z "$LTCC" && LTCC=$CC
8559 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8560 test -z "$LD" && LD=ld
8561 test -z "$ac_objext" && ac_objext=o
8563 for cc_temp in $compiler""; do
8564 case $cc_temp in
8565 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8566 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8567 \-*) ;;
8568 *) break;;
8569 esac
8570 done
8571 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8574 # Only perform the check for file, if the check method requires it
8575 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8576 case $deplibs_check_method in
8577 file_magic*)
8578 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8580 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8581 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8582 $as_echo_n "(cached) " >&6
8583 else
8584 case $MAGIC_CMD in
8585 [\\/*] | ?:[\\/]*)
8586 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8589 lt_save_MAGIC_CMD="$MAGIC_CMD"
8590 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8591 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8592 for ac_dir in $ac_dummy; do
8593 IFS="$lt_save_ifs"
8594 test -z "$ac_dir" && ac_dir=.
8595 if test -f $ac_dir/${ac_tool_prefix}file; then
8596 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8597 if test -n "$file_magic_test_file"; then
8598 case $deplibs_check_method in
8599 "file_magic "*)
8600 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8601 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8602 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8603 $EGREP "$file_magic_regex" > /dev/null; then
8605 else
8606 cat <<_LT_EOF 1>&2
8608 *** Warning: the command libtool uses to detect shared libraries,
8609 *** $file_magic_cmd, produces output that libtool cannot recognize.
8610 *** The result is that libtool may fail to recognize shared libraries
8611 *** as such. This will affect the creation of libtool libraries that
8612 *** depend on shared libraries, but programs linked with such libtool
8613 *** libraries will work regardless of this problem. Nevertheless, you
8614 *** may want to report the problem to your system manager and/or to
8615 *** bug-libtool@gnu.org
8617 _LT_EOF
8618 fi ;;
8619 esac
8621 break
8623 done
8624 IFS="$lt_save_ifs"
8625 MAGIC_CMD="$lt_save_MAGIC_CMD"
8627 esac
8630 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8631 if test -n "$MAGIC_CMD"; then
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8633 $as_echo "$MAGIC_CMD" >&6; }
8634 else
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8636 $as_echo "no" >&6; }
8643 if test -z "$lt_cv_path_MAGIC_CMD"; then
8644 if test -n "$ac_tool_prefix"; then
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8646 $as_echo_n "checking for file... " >&6; }
8647 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8648 $as_echo_n "(cached) " >&6
8649 else
8650 case $MAGIC_CMD in
8651 [\\/*] | ?:[\\/]*)
8652 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8655 lt_save_MAGIC_CMD="$MAGIC_CMD"
8656 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8657 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8658 for ac_dir in $ac_dummy; do
8659 IFS="$lt_save_ifs"
8660 test -z "$ac_dir" && ac_dir=.
8661 if test -f $ac_dir/file; then
8662 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8663 if test -n "$file_magic_test_file"; then
8664 case $deplibs_check_method in
8665 "file_magic "*)
8666 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8667 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8668 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8669 $EGREP "$file_magic_regex" > /dev/null; then
8671 else
8672 cat <<_LT_EOF 1>&2
8674 *** Warning: the command libtool uses to detect shared libraries,
8675 *** $file_magic_cmd, produces output that libtool cannot recognize.
8676 *** The result is that libtool may fail to recognize shared libraries
8677 *** as such. This will affect the creation of libtool libraries that
8678 *** depend on shared libraries, but programs linked with such libtool
8679 *** libraries will work regardless of this problem. Nevertheless, you
8680 *** may want to report the problem to your system manager and/or to
8681 *** bug-libtool@gnu.org
8683 _LT_EOF
8684 fi ;;
8685 esac
8687 break
8689 done
8690 IFS="$lt_save_ifs"
8691 MAGIC_CMD="$lt_save_MAGIC_CMD"
8693 esac
8696 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8697 if test -n "$MAGIC_CMD"; then
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8699 $as_echo "$MAGIC_CMD" >&6; }
8700 else
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8702 $as_echo "no" >&6; }
8706 else
8707 MAGIC_CMD=:
8713 esac
8715 # Use C for the default configuration in the libtool script
8717 lt_save_CC="$CC"
8718 ac_ext=c
8719 ac_cpp='$CPP $CPPFLAGS'
8720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8725 # Source file extension for C test sources.
8726 ac_ext=c
8728 # Object file extension for compiled C test sources.
8729 objext=o
8730 objext=$objext
8732 # Code to be used in simple compile tests
8733 lt_simple_compile_test_code="int some_variable = 0;"
8735 # Code to be used in simple link tests
8736 lt_simple_link_test_code='int main(){return(0);}'
8744 # If no C compiler was specified, use CC.
8745 LTCC=${LTCC-"$CC"}
8747 # If no C compiler flags were specified, use CFLAGS.
8748 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8750 # Allow CC to be a program name with arguments.
8751 compiler=$CC
8753 # Save the default compiler, since it gets overwritten when the other
8754 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8755 compiler_DEFAULT=$CC
8757 # save warnings/boilerplate of simple test code
8758 ac_outfile=conftest.$ac_objext
8759 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8760 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8761 _lt_compiler_boilerplate=`cat conftest.err`
8762 $RM conftest*
8764 ac_outfile=conftest.$ac_objext
8765 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8766 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8767 _lt_linker_boilerplate=`cat conftest.err`
8768 $RM -r conftest*
8771 ## CAVEAT EMPTOR:
8772 ## There is no encapsulation within the following macros, do not change
8773 ## the running order or otherwise move them around unless you know exactly
8774 ## what you are doing...
8775 if test -n "$compiler"; then
8777 lt_prog_compiler_no_builtin_flag=
8779 if test "$GCC" = yes; then
8780 case $cc_basename in
8781 nvcc*)
8782 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8784 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8785 esac
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8788 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8789 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8790 $as_echo_n "(cached) " >&6
8791 else
8792 lt_cv_prog_compiler_rtti_exceptions=no
8793 ac_outfile=conftest.$ac_objext
8794 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8795 lt_compiler_flag="-fno-rtti -fno-exceptions"
8796 # Insert the option either (1) after the last *FLAGS variable, or
8797 # (2) before a word containing "conftest.", or (3) at the end.
8798 # Note that $ac_compile itself does not contain backslashes and begins
8799 # with a dollar sign (not a hyphen), so the echo should work correctly.
8800 # The option is referenced via a variable to avoid confusing sed.
8801 lt_compile=`echo "$ac_compile" | $SED \
8802 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8803 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8804 -e 's:$: $lt_compiler_flag:'`
8805 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8806 (eval "$lt_compile" 2>conftest.err)
8807 ac_status=$?
8808 cat conftest.err >&5
8809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 if (exit $ac_status) && test -s "$ac_outfile"; then
8811 # The compiler can only warn and ignore the option if not recognized
8812 # So say no if there are warnings other than the usual output.
8813 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8814 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8815 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8816 lt_cv_prog_compiler_rtti_exceptions=yes
8819 $RM conftest*
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8823 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8825 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8826 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8827 else
8838 lt_prog_compiler_wl=
8839 lt_prog_compiler_pic=
8840 lt_prog_compiler_static=
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8843 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8845 if test "$GCC" = yes; then
8846 lt_prog_compiler_wl='-Wl,'
8847 lt_prog_compiler_static='-static'
8849 case $host_os in
8850 aix*)
8851 # All AIX code is PIC.
8852 if test "$host_cpu" = ia64; then
8853 # AIX 5 now supports IA64 processor
8854 lt_prog_compiler_static='-Bstatic'
8858 amigaos*)
8859 case $host_cpu in
8860 powerpc)
8861 # see comment about AmigaOS4 .so support
8862 lt_prog_compiler_pic='-fPIC'
8864 m68k)
8865 # FIXME: we need at least 68020 code to build shared libraries, but
8866 # adding the `-m68020' flag to GCC prevents building anything better,
8867 # like `-m68040'.
8868 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8870 esac
8873 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8874 # PIC is the default for these OSes.
8877 mingw* | cygwin* | pw32* | os2* | cegcc*)
8878 # This hack is so that the source file can tell whether it is being
8879 # built for inclusion in a dll (and should export symbols for example).
8880 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8881 # (--disable-auto-import) libraries
8882 lt_prog_compiler_pic='-DDLL_EXPORT'
8885 darwin* | rhapsody*)
8886 # PIC is the default on this platform
8887 # Common symbols not allowed in MH_DYLIB files
8888 lt_prog_compiler_pic='-fno-common'
8891 haiku*)
8892 # PIC is the default for Haiku.
8893 # The "-static" flag exists, but is broken.
8894 lt_prog_compiler_static=
8897 hpux*)
8898 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8899 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8900 # sets the default TLS model and affects inlining.
8901 case $host_cpu in
8902 hppa*64*)
8903 # +Z the default
8906 lt_prog_compiler_pic='-fPIC'
8908 esac
8911 interix[3-9]*)
8912 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8913 # Instead, we relocate shared libraries at runtime.
8916 msdosdjgpp*)
8917 # Just because we use GCC doesn't mean we suddenly get shared libraries
8918 # on systems that don't support them.
8919 lt_prog_compiler_can_build_shared=no
8920 enable_shared=no
8923 *nto* | *qnx*)
8924 # QNX uses GNU C++, but need to define -shared option too, otherwise
8925 # it will coredump.
8926 lt_prog_compiler_pic='-fPIC -shared'
8929 sysv4*MP*)
8930 if test -d /usr/nec; then
8931 lt_prog_compiler_pic=-Kconform_pic
8936 lt_prog_compiler_pic='-fPIC'
8938 esac
8940 case $cc_basename in
8941 nvcc*) # Cuda Compiler Driver 2.2
8942 lt_prog_compiler_wl='-Xlinker '
8943 lt_prog_compiler_pic='-Xcompiler -fPIC'
8945 esac
8946 else
8947 # PORTME Check for flag to pass linker flags through the system compiler.
8948 case $host_os in
8949 aix*)
8950 lt_prog_compiler_wl='-Wl,'
8951 if test "$host_cpu" = ia64; then
8952 # AIX 5 now supports IA64 processor
8953 lt_prog_compiler_static='-Bstatic'
8954 else
8955 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8959 mingw* | cygwin* | pw32* | os2* | cegcc*)
8960 # This hack is so that the source file can tell whether it is being
8961 # built for inclusion in a dll (and should export symbols for example).
8962 lt_prog_compiler_pic='-DDLL_EXPORT'
8965 hpux9* | hpux10* | hpux11*)
8966 lt_prog_compiler_wl='-Wl,'
8967 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8968 # not for PA HP-UX.
8969 case $host_cpu in
8970 hppa*64*|ia64*)
8971 # +Z the default
8974 lt_prog_compiler_pic='+Z'
8976 esac
8977 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8978 lt_prog_compiler_static='${wl}-a ${wl}archive'
8981 irix5* | irix6* | nonstopux*)
8982 lt_prog_compiler_wl='-Wl,'
8983 # PIC (with -KPIC) is the default.
8984 lt_prog_compiler_static='-non_shared'
8987 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8988 case $cc_basename in
8989 # old Intel for x86_64 which still supported -KPIC.
8990 ecc*)
8991 lt_prog_compiler_wl='-Wl,'
8992 lt_prog_compiler_pic='-KPIC'
8993 lt_prog_compiler_static='-static'
8995 # icc used to be incompatible with GCC.
8996 # ICC 10 doesn't accept -KPIC any more.
8997 icc* | ifort*)
8998 lt_prog_compiler_wl='-Wl,'
8999 lt_prog_compiler_pic='-fPIC'
9000 lt_prog_compiler_static='-static'
9002 # Lahey Fortran 8.1.
9003 lf95*)
9004 lt_prog_compiler_wl='-Wl,'
9005 lt_prog_compiler_pic='--shared'
9006 lt_prog_compiler_static='--static'
9008 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9009 # Portland Group compilers (*not* the Pentium gcc compiler,
9010 # which looks to be a dead project)
9011 lt_prog_compiler_wl='-Wl,'
9012 lt_prog_compiler_pic='-fpic'
9013 lt_prog_compiler_static='-Bstatic'
9015 ccc*)
9016 lt_prog_compiler_wl='-Wl,'
9017 # All Alpha code is PIC.
9018 lt_prog_compiler_static='-non_shared'
9020 xl* | bgxl* | bgf* | mpixl*)
9021 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9022 lt_prog_compiler_wl='-Wl,'
9023 lt_prog_compiler_pic='-qpic'
9024 lt_prog_compiler_static='-qstaticlink'
9027 case `$CC -V 2>&1 | sed 5q` in
9028 *Sun\ F* | *Sun*Fortran*)
9029 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9030 lt_prog_compiler_pic='-KPIC'
9031 lt_prog_compiler_static='-Bstatic'
9032 lt_prog_compiler_wl=''
9034 *Sun\ C*)
9035 # Sun C 5.9
9036 lt_prog_compiler_pic='-KPIC'
9037 lt_prog_compiler_static='-Bstatic'
9038 lt_prog_compiler_wl='-Wl,'
9040 esac
9042 esac
9045 newsos6)
9046 lt_prog_compiler_pic='-KPIC'
9047 lt_prog_compiler_static='-Bstatic'
9050 *nto* | *qnx*)
9051 # QNX uses GNU C++, but need to define -shared option too, otherwise
9052 # it will coredump.
9053 lt_prog_compiler_pic='-fPIC -shared'
9056 osf3* | osf4* | osf5*)
9057 lt_prog_compiler_wl='-Wl,'
9058 # All OSF/1 code is PIC.
9059 lt_prog_compiler_static='-non_shared'
9062 rdos*)
9063 lt_prog_compiler_static='-non_shared'
9066 solaris*)
9067 lt_prog_compiler_pic='-KPIC'
9068 lt_prog_compiler_static='-Bstatic'
9069 case $cc_basename in
9070 f77* | f90* | f95*)
9071 lt_prog_compiler_wl='-Qoption ld ';;
9073 lt_prog_compiler_wl='-Wl,';;
9074 esac
9077 sunos4*)
9078 lt_prog_compiler_wl='-Qoption ld '
9079 lt_prog_compiler_pic='-PIC'
9080 lt_prog_compiler_static='-Bstatic'
9083 sysv4 | sysv4.2uw2* | sysv4.3*)
9084 lt_prog_compiler_wl='-Wl,'
9085 lt_prog_compiler_pic='-KPIC'
9086 lt_prog_compiler_static='-Bstatic'
9089 sysv4*MP*)
9090 if test -d /usr/nec ;then
9091 lt_prog_compiler_pic='-Kconform_pic'
9092 lt_prog_compiler_static='-Bstatic'
9096 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9097 lt_prog_compiler_wl='-Wl,'
9098 lt_prog_compiler_pic='-KPIC'
9099 lt_prog_compiler_static='-Bstatic'
9102 unicos*)
9103 lt_prog_compiler_wl='-Wl,'
9104 lt_prog_compiler_can_build_shared=no
9107 uts4*)
9108 lt_prog_compiler_pic='-pic'
9109 lt_prog_compiler_static='-Bstatic'
9113 lt_prog_compiler_can_build_shared=no
9115 esac
9118 case $host_os in
9119 # For platforms which do not support PIC, -DPIC is meaningless:
9120 *djgpp*)
9121 lt_prog_compiler_pic=
9124 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9126 esac
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9128 $as_echo "$lt_prog_compiler_pic" >&6; }
9136 # Check to make sure the PIC flag actually works.
9138 if test -n "$lt_prog_compiler_pic"; then
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9140 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9141 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9142 $as_echo_n "(cached) " >&6
9143 else
9144 lt_cv_prog_compiler_pic_works=no
9145 ac_outfile=conftest.$ac_objext
9146 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9147 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9148 # Insert the option either (1) after the last *FLAGS variable, or
9149 # (2) before a word containing "conftest.", or (3) at the end.
9150 # Note that $ac_compile itself does not contain backslashes and begins
9151 # with a dollar sign (not a hyphen), so the echo should work correctly.
9152 # The option is referenced via a variable to avoid confusing sed.
9153 lt_compile=`echo "$ac_compile" | $SED \
9154 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9155 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9156 -e 's:$: $lt_compiler_flag:'`
9157 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9158 (eval "$lt_compile" 2>conftest.err)
9159 ac_status=$?
9160 cat conftest.err >&5
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 if (exit $ac_status) && test -s "$ac_outfile"; then
9163 # The compiler can only warn and ignore the option if not recognized
9164 # So say no if there are warnings other than the usual output.
9165 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9166 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9167 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9168 lt_cv_prog_compiler_pic_works=yes
9171 $RM conftest*
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9175 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9177 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9178 case $lt_prog_compiler_pic in
9179 "" | " "*) ;;
9180 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9181 esac
9182 else
9183 lt_prog_compiler_pic=
9184 lt_prog_compiler_can_build_shared=no
9195 # Check to make sure the static flag actually works.
9197 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9199 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9200 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9201 $as_echo_n "(cached) " >&6
9202 else
9203 lt_cv_prog_compiler_static_works=no
9204 save_LDFLAGS="$LDFLAGS"
9205 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9206 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9207 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9208 # The linker can only warn and ignore the option if not recognized
9209 # So say no if there are warnings
9210 if test -s conftest.err; then
9211 # Append any errors to the config.log.
9212 cat conftest.err 1>&5
9213 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9214 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9215 if diff conftest.exp conftest.er2 >/dev/null; then
9216 lt_cv_prog_compiler_static_works=yes
9218 else
9219 lt_cv_prog_compiler_static_works=yes
9222 $RM -r conftest*
9223 LDFLAGS="$save_LDFLAGS"
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9227 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9229 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9231 else
9232 lt_prog_compiler_static=
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9242 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9243 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9244 $as_echo_n "(cached) " >&6
9245 else
9246 lt_cv_prog_compiler_c_o=no
9247 $RM -r conftest 2>/dev/null
9248 mkdir conftest
9249 cd conftest
9250 mkdir out
9251 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9253 lt_compiler_flag="-o out/conftest2.$ac_objext"
9254 # Insert the option either (1) after the last *FLAGS variable, or
9255 # (2) before a word containing "conftest.", or (3) at the end.
9256 # Note that $ac_compile itself does not contain backslashes and begins
9257 # with a dollar sign (not a hyphen), so the echo should work correctly.
9258 lt_compile=`echo "$ac_compile" | $SED \
9259 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9260 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9261 -e 's:$: $lt_compiler_flag:'`
9262 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9263 (eval "$lt_compile" 2>out/conftest.err)
9264 ac_status=$?
9265 cat out/conftest.err >&5
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9268 then
9269 # The compiler can only warn and ignore the option if not recognized
9270 # So say no if there are warnings
9271 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9272 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9273 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9274 lt_cv_prog_compiler_c_o=yes
9277 chmod u+w . 2>&5
9278 $RM conftest*
9279 # SGI C++ compiler will create directory out/ii_files/ for
9280 # template instantiation
9281 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9282 $RM out/* && rmdir out
9283 cd ..
9284 $RM -r conftest
9285 $RM conftest*
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9289 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9297 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9298 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9299 $as_echo_n "(cached) " >&6
9300 else
9301 lt_cv_prog_compiler_c_o=no
9302 $RM -r conftest 2>/dev/null
9303 mkdir conftest
9304 cd conftest
9305 mkdir out
9306 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9308 lt_compiler_flag="-o out/conftest2.$ac_objext"
9309 # Insert the option either (1) after the last *FLAGS variable, or
9310 # (2) before a word containing "conftest.", or (3) at the end.
9311 # Note that $ac_compile itself does not contain backslashes and begins
9312 # with a dollar sign (not a hyphen), so the echo should work correctly.
9313 lt_compile=`echo "$ac_compile" | $SED \
9314 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9315 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9316 -e 's:$: $lt_compiler_flag:'`
9317 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9318 (eval "$lt_compile" 2>out/conftest.err)
9319 ac_status=$?
9320 cat out/conftest.err >&5
9321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9323 then
9324 # The compiler can only warn and ignore the option if not recognized
9325 # So say no if there are warnings
9326 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9327 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9328 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9329 lt_cv_prog_compiler_c_o=yes
9332 chmod u+w . 2>&5
9333 $RM conftest*
9334 # SGI C++ compiler will create directory out/ii_files/ for
9335 # template instantiation
9336 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9337 $RM out/* && rmdir out
9338 cd ..
9339 $RM -r conftest
9340 $RM conftest*
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9344 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9349 hard_links="nottested"
9350 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9351 # do not overwrite the value of need_locks provided by the user
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9353 $as_echo_n "checking if we can lock with hard links... " >&6; }
9354 hard_links=yes
9355 $RM conftest*
9356 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9357 touch conftest.a
9358 ln conftest.a conftest.b 2>&5 || hard_links=no
9359 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9361 $as_echo "$hard_links" >&6; }
9362 if test "$hard_links" = no; then
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9364 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9365 need_locks=warn
9367 else
9368 need_locks=no
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9377 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9379 runpath_var=
9380 allow_undefined_flag=
9381 always_export_symbols=no
9382 archive_cmds=
9383 archive_expsym_cmds=
9384 compiler_needs_object=no
9385 enable_shared_with_static_runtimes=no
9386 export_dynamic_flag_spec=
9387 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9388 hardcode_automatic=no
9389 hardcode_direct=no
9390 hardcode_direct_absolute=no
9391 hardcode_libdir_flag_spec=
9392 hardcode_libdir_flag_spec_ld=
9393 hardcode_libdir_separator=
9394 hardcode_minus_L=no
9395 hardcode_shlibpath_var=unsupported
9396 inherit_rpath=no
9397 link_all_deplibs=unknown
9398 module_cmds=
9399 module_expsym_cmds=
9400 old_archive_from_new_cmds=
9401 old_archive_from_expsyms_cmds=
9402 thread_safe_flag_spec=
9403 whole_archive_flag_spec=
9404 # include_expsyms should be a list of space-separated symbols to be *always*
9405 # included in the symbol list
9406 include_expsyms=
9407 # exclude_expsyms can be an extended regexp of symbols to exclude
9408 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9409 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9410 # as well as any symbol that contains `d'.
9411 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9412 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9413 # platforms (ab)use it in PIC code, but their linkers get confused if
9414 # the symbol is explicitly referenced. Since portable code cannot
9415 # rely on this symbol name, it's probably fine to never include it in
9416 # preloaded symbol tables.
9417 # Exclude shared library initialization/finalization symbols.
9418 extract_expsyms_cmds=
9420 case $host_os in
9421 cygwin* | mingw* | pw32* | cegcc*)
9422 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9423 # When not using gcc, we currently assume that we are using
9424 # Microsoft Visual C++.
9425 if test "$GCC" != yes; then
9426 with_gnu_ld=no
9429 interix*)
9430 # we just hope/assume this is gcc and not c89 (= MSVC++)
9431 with_gnu_ld=yes
9433 openbsd*)
9434 with_gnu_ld=no
9436 esac
9438 ld_shlibs=yes
9440 # On some targets, GNU ld is compatible enough with the native linker
9441 # that we're better off using the native interface for both.
9442 lt_use_gnu_ld_interface=no
9443 if test "$with_gnu_ld" = yes; then
9444 case $host_os in
9445 aix*)
9446 # The AIX port of GNU ld has always aspired to compatibility
9447 # with the native linker. However, as the warning in the GNU ld
9448 # block says, versions before 2.19.5* couldn't really create working
9449 # shared libraries, regardless of the interface used.
9450 case `$LD -v 2>&1` in
9451 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9452 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9453 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9455 lt_use_gnu_ld_interface=yes
9457 esac
9460 lt_use_gnu_ld_interface=yes
9462 esac
9465 if test "$lt_use_gnu_ld_interface" = yes; then
9466 # If archive_cmds runs LD, not CC, wlarc should be empty
9467 wlarc='${wl}'
9469 # Set some defaults for GNU ld with shared library support. These
9470 # are reset later if shared libraries are not supported. Putting them
9471 # here allows them to be overridden if necessary.
9472 runpath_var=LD_RUN_PATH
9473 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9474 export_dynamic_flag_spec='${wl}--export-dynamic'
9475 # ancient GNU ld didn't support --whole-archive et. al.
9476 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9477 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9478 else
9479 whole_archive_flag_spec=
9481 supports_anon_versioning=no
9482 case `$LD -v 2>&1` in
9483 *GNU\ gold*) supports_anon_versioning=yes ;;
9484 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9485 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9486 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9487 *\ 2.11.*) ;; # other 2.11 versions
9488 *) supports_anon_versioning=yes ;;
9489 esac
9491 # See if GNU ld supports shared libraries.
9492 case $host_os in
9493 aix[3-9]*)
9494 # On AIX/PPC, the GNU linker is very broken
9495 if test "$host_cpu" != ia64; then
9496 ld_shlibs=no
9497 cat <<_LT_EOF 1>&2
9499 *** Warning: the GNU linker, at least up to release 2.19, is reported
9500 *** to be unable to reliably create shared libraries on AIX.
9501 *** Therefore, libtool is disabling shared libraries support. If you
9502 *** really care for shared libraries, you may want to install binutils
9503 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9504 *** You will then need to restart the configuration process.
9506 _LT_EOF
9510 amigaos*)
9511 case $host_cpu in
9512 powerpc)
9513 # see comment about AmigaOS4 .so support
9514 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9515 archive_expsym_cmds=''
9517 m68k)
9518 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9519 hardcode_libdir_flag_spec='-L$libdir'
9520 hardcode_minus_L=yes
9522 esac
9525 beos*)
9526 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9527 allow_undefined_flag=unsupported
9528 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9529 # support --undefined. This deserves some investigation. FIXME
9530 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9531 else
9532 ld_shlibs=no
9536 cygwin* | mingw* | pw32* | cegcc*)
9537 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9538 # as there is no search path for DLLs.
9539 hardcode_libdir_flag_spec='-L$libdir'
9540 export_dynamic_flag_spec='${wl}--export-all-symbols'
9541 allow_undefined_flag=unsupported
9542 always_export_symbols=no
9543 enable_shared_with_static_runtimes=yes
9544 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9546 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9547 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9548 # If the export-symbols file already is a .def file (1st line
9549 # is EXPORTS), use it as is; otherwise, prepend...
9550 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9551 cp $export_symbols $output_objdir/$soname.def;
9552 else
9553 echo EXPORTS > $output_objdir/$soname.def;
9554 cat $export_symbols >> $output_objdir/$soname.def;
9556 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9557 else
9558 ld_shlibs=no
9562 haiku*)
9563 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9564 link_all_deplibs=yes
9567 interix[3-9]*)
9568 hardcode_direct=no
9569 hardcode_shlibpath_var=no
9570 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9571 export_dynamic_flag_spec='${wl}-E'
9572 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9573 # Instead, shared libraries are loaded at an image base (0x10000000 by
9574 # default) and relocated if they conflict, which is a slow very memory
9575 # consuming and fragmenting process. To avoid this, we pick a random,
9576 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9577 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9578 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9579 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9582 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9583 tmp_diet=no
9584 if test "$host_os" = linux-dietlibc; then
9585 case $cc_basename in
9586 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9587 esac
9589 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9590 && test "$tmp_diet" = no
9591 then
9592 tmp_addflag=
9593 tmp_sharedflag='-shared'
9594 case $cc_basename,$host_cpu in
9595 pgcc*) # Portland Group C compiler
9596 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9597 tmp_addflag=' $pic_flag'
9599 pgf77* | pgf90* | pgf95* | pgfortran*)
9600 # Portland Group f77 and f90 compilers
9601 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9602 tmp_addflag=' $pic_flag -Mnomain' ;;
9603 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9604 tmp_addflag=' -i_dynamic' ;;
9605 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9606 tmp_addflag=' -i_dynamic -nofor_main' ;;
9607 ifc* | ifort*) # Intel Fortran compiler
9608 tmp_addflag=' -nofor_main' ;;
9609 lf95*) # Lahey Fortran 8.1
9610 whole_archive_flag_spec=
9611 tmp_sharedflag='--shared' ;;
9612 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9613 tmp_sharedflag='-qmkshrobj'
9614 tmp_addflag= ;;
9615 nvcc*) # Cuda Compiler Driver 2.2
9616 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9617 compiler_needs_object=yes
9619 esac
9620 case `$CC -V 2>&1 | sed 5q` in
9621 *Sun\ C*) # Sun C 5.9
9622 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9623 compiler_needs_object=yes
9624 tmp_sharedflag='-G' ;;
9625 *Sun\ F*) # Sun Fortran 8.3
9626 tmp_sharedflag='-G' ;;
9627 esac
9628 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9630 if test "x$supports_anon_versioning" = xyes; then
9631 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9632 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9633 echo "local: *; };" >> $output_objdir/$libname.ver~
9634 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9637 case $cc_basename in
9638 xlf* | bgf* | bgxlf* | mpixlf*)
9639 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9640 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9641 hardcode_libdir_flag_spec=
9642 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9643 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9644 if test "x$supports_anon_versioning" = xyes; then
9645 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9646 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9647 echo "local: *; };" >> $output_objdir/$libname.ver~
9648 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9651 esac
9652 else
9653 ld_shlibs=no
9657 netbsd*)
9658 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9659 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9660 wlarc=
9661 else
9662 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9663 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9667 solaris*)
9668 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9669 ld_shlibs=no
9670 cat <<_LT_EOF 1>&2
9672 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9673 *** create shared libraries on Solaris systems. Therefore, libtool
9674 *** is disabling shared libraries support. We urge you to upgrade GNU
9675 *** binutils to release 2.9.1 or newer. Another option is to modify
9676 *** your PATH or compiler configuration so that the native linker is
9677 *** used, and then restart.
9679 _LT_EOF
9680 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9681 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9682 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9683 else
9684 ld_shlibs=no
9688 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9689 case `$LD -v 2>&1` in
9690 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9691 ld_shlibs=no
9692 cat <<_LT_EOF 1>&2
9694 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9695 *** reliably create shared libraries on SCO systems. Therefore, libtool
9696 *** is disabling shared libraries support. We urge you to upgrade GNU
9697 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9698 *** your PATH or compiler configuration so that the native linker is
9699 *** used, and then restart.
9701 _LT_EOF
9704 # For security reasons, it is highly recommended that you always
9705 # use absolute paths for naming shared libraries, and exclude the
9706 # DT_RUNPATH tag from executables and libraries. But doing so
9707 # requires that you compile everything twice, which is a pain.
9708 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9709 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9710 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9711 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9712 else
9713 ld_shlibs=no
9716 esac
9719 sunos4*)
9720 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9721 wlarc=
9722 hardcode_direct=yes
9723 hardcode_shlibpath_var=no
9727 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9728 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9729 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9730 else
9731 ld_shlibs=no
9734 esac
9736 if test "$ld_shlibs" = no; then
9737 runpath_var=
9738 hardcode_libdir_flag_spec=
9739 export_dynamic_flag_spec=
9740 whole_archive_flag_spec=
9742 else
9743 # PORTME fill in a description of your system's linker (not GNU ld)
9744 case $host_os in
9745 aix3*)
9746 allow_undefined_flag=unsupported
9747 always_export_symbols=yes
9748 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9749 # Note: this linker hardcodes the directories in LIBPATH if there
9750 # are no directories specified by -L.
9751 hardcode_minus_L=yes
9752 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9753 # Neither direct hardcoding nor static linking is supported with a
9754 # broken collect2.
9755 hardcode_direct=unsupported
9759 aix[4-9]*)
9760 if test "$host_cpu" = ia64; then
9761 # On IA64, the linker does run time linking by default, so we don't
9762 # have to do anything special.
9763 aix_use_runtimelinking=no
9764 exp_sym_flag='-Bexport'
9765 no_entry_flag=""
9766 else
9767 # If we're using GNU nm, then we don't want the "-C" option.
9768 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9769 # Also, AIX nm treats weak defined symbols like other global
9770 # defined symbols, whereas GNU nm marks them as "W".
9771 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9772 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9773 else
9774 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9776 aix_use_runtimelinking=no
9778 # Test if we are trying to use run time linking or normal
9779 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9780 # need to do runtime linking.
9781 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9782 for ld_flag in $LDFLAGS; do
9783 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9784 aix_use_runtimelinking=yes
9785 break
9787 done
9789 esac
9791 exp_sym_flag='-bexport'
9792 no_entry_flag='-bnoentry'
9795 # When large executables or shared objects are built, AIX ld can
9796 # have problems creating the table of contents. If linking a library
9797 # or program results in "error TOC overflow" add -mminimal-toc to
9798 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9799 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9801 archive_cmds=''
9802 hardcode_direct=yes
9803 hardcode_direct_absolute=yes
9804 hardcode_libdir_separator=':'
9805 link_all_deplibs=yes
9806 file_list_spec='${wl}-f,'
9808 if test "$GCC" = yes; then
9809 case $host_os in aix4.[012]|aix4.[012].*)
9810 # We only want to do this on AIX 4.2 and lower, the check
9811 # below for broken collect2 doesn't work under 4.3+
9812 collect2name=`${CC} -print-prog-name=collect2`
9813 if test -f "$collect2name" &&
9814 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9815 then
9816 # We have reworked collect2
9818 else
9819 # We have old collect2
9820 hardcode_direct=unsupported
9821 # It fails to find uninstalled libraries when the uninstalled
9822 # path is not listed in the libpath. Setting hardcode_minus_L
9823 # to unsupported forces relinking
9824 hardcode_minus_L=yes
9825 hardcode_libdir_flag_spec='-L$libdir'
9826 hardcode_libdir_separator=
9829 esac
9830 shared_flag='-shared'
9831 if test "$aix_use_runtimelinking" = yes; then
9832 shared_flag="$shared_flag "'${wl}-G'
9834 else
9835 # not using gcc
9836 if test "$host_cpu" = ia64; then
9837 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9838 # chokes on -Wl,-G. The following line is correct:
9839 shared_flag='-G'
9840 else
9841 if test "$aix_use_runtimelinking" = yes; then
9842 shared_flag='${wl}-G'
9843 else
9844 shared_flag='${wl}-bM:SRE'
9849 export_dynamic_flag_spec='${wl}-bexpall'
9850 # It seems that -bexpall does not export symbols beginning with
9851 # underscore (_), so it is better to generate a list of symbols to export.
9852 always_export_symbols=yes
9853 if test "$aix_use_runtimelinking" = yes; then
9854 # Warning - without using the other runtime loading flags (-brtl),
9855 # -berok will link without error, but may produce a broken library.
9856 allow_undefined_flag='-berok'
9857 # Determine the default libpath from the value encoded in an
9858 # empty executable.
9859 if test x$gcc_no_link = xyes; then
9860 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9863 /* end confdefs.h. */
9866 main ()
9870 return 0;
9872 _ACEOF
9873 if ac_fn_c_try_link "$LINENO"; then :
9875 lt_aix_libpath_sed='
9876 /Import File Strings/,/^$/ {
9877 /^0/ {
9878 s/^0 *\(.*\)$/\1/
9882 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9883 # Check for a 64-bit object if we didn't find anything.
9884 if test -z "$aix_libpath"; then
9885 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9888 rm -f core conftest.err conftest.$ac_objext \
9889 conftest$ac_exeext conftest.$ac_ext
9890 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9892 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9893 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9894 else
9895 if test "$host_cpu" = ia64; then
9896 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9897 allow_undefined_flag="-z nodefs"
9898 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9899 else
9900 # Determine the default libpath from the value encoded in an
9901 # empty executable.
9902 if test x$gcc_no_link = xyes; then
9903 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9906 /* end confdefs.h. */
9909 main ()
9913 return 0;
9915 _ACEOF
9916 if ac_fn_c_try_link "$LINENO"; then :
9918 lt_aix_libpath_sed='
9919 /Import File Strings/,/^$/ {
9920 /^0/ {
9921 s/^0 *\(.*\)$/\1/
9925 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9926 # Check for a 64-bit object if we didn't find anything.
9927 if test -z "$aix_libpath"; then
9928 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9931 rm -f core conftest.err conftest.$ac_objext \
9932 conftest$ac_exeext conftest.$ac_ext
9933 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9935 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9936 # Warning - without using the other run time loading flags,
9937 # -berok will link without error, but may produce a broken library.
9938 no_undefined_flag=' ${wl}-bernotok'
9939 allow_undefined_flag=' ${wl}-berok'
9940 if test "$with_gnu_ld" = yes; then
9941 # We only use this code for GNU lds that support --whole-archive.
9942 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9943 else
9944 # Exported symbols can be pulled into shared objects from archives
9945 whole_archive_flag_spec='$convenience'
9947 archive_cmds_need_lc=yes
9948 # This is similar to how AIX traditionally builds its shared libraries.
9949 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9954 amigaos*)
9955 case $host_cpu in
9956 powerpc)
9957 # see comment about AmigaOS4 .so support
9958 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9959 archive_expsym_cmds=''
9961 m68k)
9962 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9963 hardcode_libdir_flag_spec='-L$libdir'
9964 hardcode_minus_L=yes
9966 esac
9969 bsdi[45]*)
9970 export_dynamic_flag_spec=-rdynamic
9973 cygwin* | mingw* | pw32* | cegcc*)
9974 # When not using gcc, we currently assume that we are using
9975 # Microsoft Visual C++.
9976 # hardcode_libdir_flag_spec is actually meaningless, as there is
9977 # no search path for DLLs.
9978 hardcode_libdir_flag_spec=' '
9979 allow_undefined_flag=unsupported
9980 # Tell ltmain to make .lib files, not .a files.
9981 libext=lib
9982 # Tell ltmain to make .dll files, not .so files.
9983 shrext_cmds=".dll"
9984 # FIXME: Setting linknames here is a bad hack.
9985 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9986 # The linker will automatically build a .lib file if we build a DLL.
9987 old_archive_from_new_cmds='true'
9988 # FIXME: Should let the user specify the lib program.
9989 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9990 fix_srcfile_path='`cygpath -w "$srcfile"`'
9991 enable_shared_with_static_runtimes=yes
9994 darwin* | rhapsody*)
9997 archive_cmds_need_lc=no
9998 hardcode_direct=no
9999 hardcode_automatic=yes
10000 hardcode_shlibpath_var=unsupported
10001 if test "$lt_cv_ld_force_load" = "yes"; then
10002 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10003 else
10004 whole_archive_flag_spec=''
10006 link_all_deplibs=yes
10007 allow_undefined_flag="$_lt_dar_allow_undefined"
10008 case $cc_basename in
10009 ifort*) _lt_dar_can_shared=yes ;;
10010 *) _lt_dar_can_shared=$GCC ;;
10011 esac
10012 if test "$_lt_dar_can_shared" = "yes"; then
10013 output_verbose_link_cmd=func_echo_all
10014 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10015 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10016 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10017 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10019 else
10020 ld_shlibs=no
10025 dgux*)
10026 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10027 hardcode_libdir_flag_spec='-L$libdir'
10028 hardcode_shlibpath_var=no
10031 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10032 # support. Future versions do this automatically, but an explicit c++rt0.o
10033 # does not break anything, and helps significantly (at the cost of a little
10034 # extra space).
10035 freebsd2.2*)
10036 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10037 hardcode_libdir_flag_spec='-R$libdir'
10038 hardcode_direct=yes
10039 hardcode_shlibpath_var=no
10042 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10043 freebsd2.*)
10044 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10045 hardcode_direct=yes
10046 hardcode_minus_L=yes
10047 hardcode_shlibpath_var=no
10050 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10051 freebsd* | dragonfly*)
10052 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10053 hardcode_libdir_flag_spec='-R$libdir'
10054 hardcode_direct=yes
10055 hardcode_shlibpath_var=no
10058 hpux9*)
10059 if test "$GCC" = yes; then
10060 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10061 else
10062 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10064 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10065 hardcode_libdir_separator=:
10066 hardcode_direct=yes
10068 # hardcode_minus_L: Not really in the search PATH,
10069 # but as the default location of the library.
10070 hardcode_minus_L=yes
10071 export_dynamic_flag_spec='${wl}-E'
10074 hpux10*)
10075 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10076 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10077 else
10078 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10080 if test "$with_gnu_ld" = no; then
10081 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10082 hardcode_libdir_flag_spec_ld='+b $libdir'
10083 hardcode_libdir_separator=:
10084 hardcode_direct=yes
10085 hardcode_direct_absolute=yes
10086 export_dynamic_flag_spec='${wl}-E'
10087 # hardcode_minus_L: Not really in the search PATH,
10088 # but as the default location of the library.
10089 hardcode_minus_L=yes
10093 hpux11*)
10094 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10095 case $host_cpu in
10096 hppa*64*)
10097 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10099 ia64*)
10100 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10103 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10105 esac
10106 else
10107 case $host_cpu in
10108 hppa*64*)
10109 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10111 ia64*)
10112 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10116 # Older versions of the 11.00 compiler do not understand -b yet
10117 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10119 $as_echo_n "checking if $CC understands -b... " >&6; }
10120 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10121 $as_echo_n "(cached) " >&6
10122 else
10123 lt_cv_prog_compiler__b=no
10124 save_LDFLAGS="$LDFLAGS"
10125 LDFLAGS="$LDFLAGS -b"
10126 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10127 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10128 # The linker can only warn and ignore the option if not recognized
10129 # So say no if there are warnings
10130 if test -s conftest.err; then
10131 # Append any errors to the config.log.
10132 cat conftest.err 1>&5
10133 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10134 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10135 if diff conftest.exp conftest.er2 >/dev/null; then
10136 lt_cv_prog_compiler__b=yes
10138 else
10139 lt_cv_prog_compiler__b=yes
10142 $RM -r conftest*
10143 LDFLAGS="$save_LDFLAGS"
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10147 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10149 if test x"$lt_cv_prog_compiler__b" = xyes; then
10150 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10151 else
10152 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10156 esac
10158 if test "$with_gnu_ld" = no; then
10159 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10160 hardcode_libdir_separator=:
10162 case $host_cpu in
10163 hppa*64*|ia64*)
10164 hardcode_direct=no
10165 hardcode_shlibpath_var=no
10168 hardcode_direct=yes
10169 hardcode_direct_absolute=yes
10170 export_dynamic_flag_spec='${wl}-E'
10172 # hardcode_minus_L: Not really in the search PATH,
10173 # but as the default location of the library.
10174 hardcode_minus_L=yes
10176 esac
10180 irix5* | irix6* | nonstopux*)
10181 if test "$GCC" = yes; then
10182 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10183 # Try to use the -exported_symbol ld option, if it does not
10184 # work, assume that -exports_file does not work either and
10185 # implicitly export all symbols.
10186 save_LDFLAGS="$LDFLAGS"
10187 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10188 if test x$gcc_no_link = xyes; then
10189 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10192 /* end confdefs.h. */
10193 int foo(void) {}
10194 _ACEOF
10195 if ac_fn_c_try_link "$LINENO"; then :
10196 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10199 rm -f core conftest.err conftest.$ac_objext \
10200 conftest$ac_exeext conftest.$ac_ext
10201 LDFLAGS="$save_LDFLAGS"
10202 else
10203 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10204 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10206 archive_cmds_need_lc='no'
10207 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10208 hardcode_libdir_separator=:
10209 inherit_rpath=yes
10210 link_all_deplibs=yes
10213 netbsd*)
10214 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10215 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10216 else
10217 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10219 hardcode_libdir_flag_spec='-R$libdir'
10220 hardcode_direct=yes
10221 hardcode_shlibpath_var=no
10224 newsos6)
10225 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10226 hardcode_direct=yes
10227 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10228 hardcode_libdir_separator=:
10229 hardcode_shlibpath_var=no
10232 *nto* | *qnx*)
10235 openbsd*)
10236 if test -f /usr/libexec/ld.so; then
10237 hardcode_direct=yes
10238 hardcode_shlibpath_var=no
10239 hardcode_direct_absolute=yes
10240 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10241 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10242 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10243 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10244 export_dynamic_flag_spec='${wl}-E'
10245 else
10246 case $host_os in
10247 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10248 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10249 hardcode_libdir_flag_spec='-R$libdir'
10252 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10253 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10255 esac
10257 else
10258 ld_shlibs=no
10262 os2*)
10263 hardcode_libdir_flag_spec='-L$libdir'
10264 hardcode_minus_L=yes
10265 allow_undefined_flag=unsupported
10266 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10267 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10270 osf3*)
10271 if test "$GCC" = yes; then
10272 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10273 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10274 else
10275 allow_undefined_flag=' -expect_unresolved \*'
10276 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10278 archive_cmds_need_lc='no'
10279 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10280 hardcode_libdir_separator=:
10283 osf4* | osf5*) # as osf3* with the addition of -msym flag
10284 if test "$GCC" = yes; then
10285 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10286 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10287 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10288 else
10289 allow_undefined_flag=' -expect_unresolved \*'
10290 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10291 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10292 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10294 # Both c and cxx compiler support -rpath directly
10295 hardcode_libdir_flag_spec='-rpath $libdir'
10297 archive_cmds_need_lc='no'
10298 hardcode_libdir_separator=:
10301 solaris*)
10302 no_undefined_flag=' -z defs'
10303 if test "$GCC" = yes; then
10304 wlarc='${wl}'
10305 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10306 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10307 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10308 else
10309 case `$CC -V 2>&1` in
10310 *"Compilers 5.0"*)
10311 wlarc=''
10312 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10313 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10314 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10317 wlarc='${wl}'
10318 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10319 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10320 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10322 esac
10324 hardcode_libdir_flag_spec='-R$libdir'
10325 hardcode_shlibpath_var=no
10326 case $host_os in
10327 solaris2.[0-5] | solaris2.[0-5].*) ;;
10329 # The compiler driver will combine and reorder linker options,
10330 # but understands `-z linker_flag'. GCC discards it without `$wl',
10331 # but is careful enough not to reorder.
10332 # Supported since Solaris 2.6 (maybe 2.5.1?)
10333 if test "$GCC" = yes; then
10334 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10335 else
10336 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10339 esac
10340 link_all_deplibs=yes
10343 sunos4*)
10344 if test "x$host_vendor" = xsequent; then
10345 # Use $CC to link under sequent, because it throws in some extra .o
10346 # files that make .init and .fini sections work.
10347 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10348 else
10349 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10351 hardcode_libdir_flag_spec='-L$libdir'
10352 hardcode_direct=yes
10353 hardcode_minus_L=yes
10354 hardcode_shlibpath_var=no
10357 sysv4)
10358 case $host_vendor in
10359 sni)
10360 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10361 hardcode_direct=yes # is this really true???
10363 siemens)
10364 ## LD is ld it makes a PLAMLIB
10365 ## CC just makes a GrossModule.
10366 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10367 reload_cmds='$CC -r -o $output$reload_objs'
10368 hardcode_direct=no
10370 motorola)
10371 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10372 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10374 esac
10375 runpath_var='LD_RUN_PATH'
10376 hardcode_shlibpath_var=no
10379 sysv4.3*)
10380 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10381 hardcode_shlibpath_var=no
10382 export_dynamic_flag_spec='-Bexport'
10385 sysv4*MP*)
10386 if test -d /usr/nec; then
10387 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10388 hardcode_shlibpath_var=no
10389 runpath_var=LD_RUN_PATH
10390 hardcode_runpath_var=yes
10391 ld_shlibs=yes
10395 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10396 no_undefined_flag='${wl}-z,text'
10397 archive_cmds_need_lc=no
10398 hardcode_shlibpath_var=no
10399 runpath_var='LD_RUN_PATH'
10401 if test "$GCC" = yes; then
10402 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10403 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10404 else
10405 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10406 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10410 sysv5* | sco3.2v5* | sco5v6*)
10411 # Note: We can NOT use -z defs as we might desire, because we do not
10412 # link with -lc, and that would cause any symbols used from libc to
10413 # always be unresolved, which means just about no library would
10414 # ever link correctly. If we're not using GNU ld we use -z text
10415 # though, which does catch some bad symbols but isn't as heavy-handed
10416 # as -z defs.
10417 no_undefined_flag='${wl}-z,text'
10418 allow_undefined_flag='${wl}-z,nodefs'
10419 archive_cmds_need_lc=no
10420 hardcode_shlibpath_var=no
10421 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10422 hardcode_libdir_separator=':'
10423 link_all_deplibs=yes
10424 export_dynamic_flag_spec='${wl}-Bexport'
10425 runpath_var='LD_RUN_PATH'
10427 if test "$GCC" = yes; then
10428 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10429 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10430 else
10431 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10432 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10436 uts4*)
10437 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10438 hardcode_libdir_flag_spec='-L$libdir'
10439 hardcode_shlibpath_var=no
10443 ld_shlibs=no
10445 esac
10447 if test x$host_vendor = xsni; then
10448 case $host in
10449 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10450 export_dynamic_flag_spec='${wl}-Blargedynsym'
10452 esac
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10457 $as_echo "$ld_shlibs" >&6; }
10458 test "$ld_shlibs" = no && can_build_shared=no
10460 with_gnu_ld=$with_gnu_ld
10477 # Do we need to explicitly link libc?
10479 case "x$archive_cmds_need_lc" in
10480 x|xyes)
10481 # Assume -lc should be added
10482 archive_cmds_need_lc=yes
10484 if test "$enable_shared" = yes && test "$GCC" = yes; then
10485 case $archive_cmds in
10486 *'~'*)
10487 # FIXME: we may have to deal with multi-command sequences.
10489 '$CC '*)
10490 # Test whether the compiler implicitly links with -lc since on some
10491 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10492 # to ld, don't add -lc before -lgcc.
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10494 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10495 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10496 $as_echo_n "(cached) " >&6
10497 else
10498 $RM conftest*
10499 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10502 (eval $ac_compile) 2>&5
10503 ac_status=$?
10504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10505 test $ac_status = 0; } 2>conftest.err; then
10506 soname=conftest
10507 lib=conftest
10508 libobjs=conftest.$ac_objext
10509 deplibs=
10510 wl=$lt_prog_compiler_wl
10511 pic_flag=$lt_prog_compiler_pic
10512 compiler_flags=-v
10513 linker_flags=-v
10514 verstring=
10515 output_objdir=.
10516 libname=conftest
10517 lt_save_allow_undefined_flag=$allow_undefined_flag
10518 allow_undefined_flag=
10519 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10520 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10521 ac_status=$?
10522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10523 test $ac_status = 0; }
10524 then
10525 lt_cv_archive_cmds_need_lc=no
10526 else
10527 lt_cv_archive_cmds_need_lc=yes
10529 allow_undefined_flag=$lt_save_allow_undefined_flag
10530 else
10531 cat conftest.err 1>&5
10533 $RM conftest*
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10537 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10538 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10540 esac
10543 esac
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10702 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10704 if test "$GCC" = yes; then
10705 case $host_os in
10706 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10707 *) lt_awk_arg="/^libraries:/" ;;
10708 esac
10709 case $host_os in
10710 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10711 *) lt_sed_strip_eq="s,=/,/,g" ;;
10712 esac
10713 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10714 case $lt_search_path_spec in
10715 *\;*)
10716 # if the path contains ";" then we assume it to be the separator
10717 # otherwise default to the standard path separator (i.e. ":") - it is
10718 # assumed that no part of a normal pathname contains ";" but that should
10719 # okay in the real world where ";" in dirpaths is itself problematic.
10720 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10723 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10725 esac
10726 # Ok, now we have the path, separated by spaces, we can step through it
10727 # and add multilib dir if necessary.
10728 lt_tmp_lt_search_path_spec=
10729 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10730 for lt_sys_path in $lt_search_path_spec; do
10731 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10732 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10733 else
10734 test -d "$lt_sys_path" && \
10735 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10737 done
10738 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10739 BEGIN {RS=" "; FS="/|\n";} {
10740 lt_foo="";
10741 lt_count=0;
10742 for (lt_i = NF; lt_i > 0; lt_i--) {
10743 if ($lt_i != "" && $lt_i != ".") {
10744 if ($lt_i == "..") {
10745 lt_count++;
10746 } else {
10747 if (lt_count == 0) {
10748 lt_foo="/" $lt_i lt_foo;
10749 } else {
10750 lt_count--;
10755 if (lt_foo != "") { lt_freq[lt_foo]++; }
10756 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10758 # AWK program above erroneously prepends '/' to C:/dos/paths
10759 # for these hosts.
10760 case $host_os in
10761 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10762 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10763 esac
10764 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10765 else
10766 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10768 library_names_spec=
10769 libname_spec='lib$name'
10770 soname_spec=
10771 shrext_cmds=".so"
10772 postinstall_cmds=
10773 postuninstall_cmds=
10774 finish_cmds=
10775 finish_eval=
10776 shlibpath_var=
10777 shlibpath_overrides_runpath=unknown
10778 version_type=none
10779 dynamic_linker="$host_os ld.so"
10780 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10781 need_lib_prefix=unknown
10782 hardcode_into_libs=no
10784 # when you set need_version to no, make sure it does not cause -set_version
10785 # flags to be left without arguments
10786 need_version=unknown
10788 case $host_os in
10789 aix3*)
10790 version_type=linux
10791 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10792 shlibpath_var=LIBPATH
10794 # AIX 3 has no versioning support, so we append a major version to the name.
10795 soname_spec='${libname}${release}${shared_ext}$major'
10798 aix[4-9]*)
10799 version_type=linux
10800 need_lib_prefix=no
10801 need_version=no
10802 hardcode_into_libs=yes
10803 if test "$host_cpu" = ia64; then
10804 # AIX 5 supports IA64
10805 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10806 shlibpath_var=LD_LIBRARY_PATH
10807 else
10808 # With GCC up to 2.95.x, collect2 would create an import file
10809 # for dependence libraries. The import file would start with
10810 # the line `#! .'. This would cause the generated library to
10811 # depend on `.', always an invalid library. This was fixed in
10812 # development snapshots of GCC prior to 3.0.
10813 case $host_os in
10814 aix4 | aix4.[01] | aix4.[01].*)
10815 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10816 echo ' yes '
10817 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10819 else
10820 can_build_shared=no
10823 esac
10824 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10825 # soname into executable. Probably we can add versioning support to
10826 # collect2, so additional links can be useful in future.
10827 if test "$aix_use_runtimelinking" = yes; then
10828 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10829 # instead of lib<name>.a to let people know that these are not
10830 # typical AIX shared libraries.
10831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10832 else
10833 # We preserve .a as extension for shared libraries through AIX4.2
10834 # and later when we are not doing run time linking.
10835 library_names_spec='${libname}${release}.a $libname.a'
10836 soname_spec='${libname}${release}${shared_ext}$major'
10838 shlibpath_var=LIBPATH
10842 amigaos*)
10843 case $host_cpu in
10844 powerpc)
10845 # Since July 2007 AmigaOS4 officially supports .so libraries.
10846 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10849 m68k)
10850 library_names_spec='$libname.ixlibrary $libname.a'
10851 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10852 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10854 esac
10857 beos*)
10858 library_names_spec='${libname}${shared_ext}'
10859 dynamic_linker="$host_os ld.so"
10860 shlibpath_var=LIBRARY_PATH
10863 bsdi[45]*)
10864 version_type=linux
10865 need_version=no
10866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10867 soname_spec='${libname}${release}${shared_ext}$major'
10868 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10869 shlibpath_var=LD_LIBRARY_PATH
10870 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10871 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10872 # the default ld.so.conf also contains /usr/contrib/lib and
10873 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10874 # libtool to hard-code these into programs
10877 cygwin* | mingw* | pw32* | cegcc*)
10878 version_type=windows
10879 shrext_cmds=".dll"
10880 need_version=no
10881 need_lib_prefix=no
10883 case $GCC,$host_os in
10884 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10885 library_names_spec='$libname.dll.a'
10886 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10887 postinstall_cmds='base_file=`basename \${file}`~
10888 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10889 dldir=$destdir/`dirname \$dlpath`~
10890 test -d \$dldir || mkdir -p \$dldir~
10891 $install_prog $dir/$dlname \$dldir/$dlname~
10892 chmod a+x \$dldir/$dlname~
10893 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10894 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10896 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10897 dlpath=$dir/\$dldll~
10898 $RM \$dlpath'
10899 shlibpath_overrides_runpath=yes
10901 case $host_os in
10902 cygwin*)
10903 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10904 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10906 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10908 mingw* | cegcc*)
10909 # MinGW DLLs use traditional 'lib' prefix
10910 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10912 pw32*)
10913 # pw32 DLLs use 'pw' prefix rather than 'lib'
10914 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10916 esac
10920 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10922 esac
10923 dynamic_linker='Win32 ld.exe'
10924 # FIXME: first we should search . and the directory the executable is in
10925 shlibpath_var=PATH
10928 darwin* | rhapsody*)
10929 dynamic_linker="$host_os dyld"
10930 version_type=darwin
10931 need_lib_prefix=no
10932 need_version=no
10933 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10934 soname_spec='${libname}${release}${major}$shared_ext'
10935 shlibpath_overrides_runpath=yes
10936 shlibpath_var=DYLD_LIBRARY_PATH
10937 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10939 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10940 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10943 dgux*)
10944 version_type=linux
10945 need_lib_prefix=no
10946 need_version=no
10947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10948 soname_spec='${libname}${release}${shared_ext}$major'
10949 shlibpath_var=LD_LIBRARY_PATH
10952 freebsd* | dragonfly*)
10953 # DragonFly does not have aout. When/if they implement a new
10954 # versioning mechanism, adjust this.
10955 if test -x /usr/bin/objformat; then
10956 objformat=`/usr/bin/objformat`
10957 else
10958 case $host_os in
10959 freebsd[23].*) objformat=aout ;;
10960 *) objformat=elf ;;
10961 esac
10963 version_type=freebsd-$objformat
10964 case $version_type in
10965 freebsd-elf*)
10966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10967 need_version=no
10968 need_lib_prefix=no
10970 freebsd-*)
10971 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10972 need_version=yes
10974 esac
10975 shlibpath_var=LD_LIBRARY_PATH
10976 case $host_os in
10977 freebsd2.*)
10978 shlibpath_overrides_runpath=yes
10980 freebsd3.[01]* | freebsdelf3.[01]*)
10981 shlibpath_overrides_runpath=yes
10982 hardcode_into_libs=yes
10984 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10985 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10986 shlibpath_overrides_runpath=no
10987 hardcode_into_libs=yes
10989 *) # from 4.6 on, and DragonFly
10990 shlibpath_overrides_runpath=yes
10991 hardcode_into_libs=yes
10993 esac
10996 gnu*)
10997 version_type=linux
10998 need_lib_prefix=no
10999 need_version=no
11000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11001 soname_spec='${libname}${release}${shared_ext}$major'
11002 shlibpath_var=LD_LIBRARY_PATH
11003 hardcode_into_libs=yes
11006 haiku*)
11007 version_type=linux
11008 need_lib_prefix=no
11009 need_version=no
11010 dynamic_linker="$host_os runtime_loader"
11011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11012 soname_spec='${libname}${release}${shared_ext}$major'
11013 shlibpath_var=LIBRARY_PATH
11014 shlibpath_overrides_runpath=yes
11015 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11016 hardcode_into_libs=yes
11019 hpux9* | hpux10* | hpux11*)
11020 # Give a soname corresponding to the major version so that dld.sl refuses to
11021 # link against other versions.
11022 version_type=sunos
11023 need_lib_prefix=no
11024 need_version=no
11025 case $host_cpu in
11026 ia64*)
11027 shrext_cmds='.so'
11028 hardcode_into_libs=yes
11029 dynamic_linker="$host_os dld.so"
11030 shlibpath_var=LD_LIBRARY_PATH
11031 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11033 soname_spec='${libname}${release}${shared_ext}$major'
11034 if test "X$HPUX_IA64_MODE" = X32; then
11035 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11036 else
11037 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11039 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11041 hppa*64*)
11042 shrext_cmds='.sl'
11043 hardcode_into_libs=yes
11044 dynamic_linker="$host_os dld.sl"
11045 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11046 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11048 soname_spec='${libname}${release}${shared_ext}$major'
11049 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11050 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11053 shrext_cmds='.sl'
11054 dynamic_linker="$host_os dld.sl"
11055 shlibpath_var=SHLIB_PATH
11056 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11058 soname_spec='${libname}${release}${shared_ext}$major'
11060 esac
11061 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11062 postinstall_cmds='chmod 555 $lib'
11063 # or fails outright, so override atomically:
11064 install_override_mode=555
11067 interix[3-9]*)
11068 version_type=linux
11069 need_lib_prefix=no
11070 need_version=no
11071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11072 soname_spec='${libname}${release}${shared_ext}$major'
11073 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11074 shlibpath_var=LD_LIBRARY_PATH
11075 shlibpath_overrides_runpath=no
11076 hardcode_into_libs=yes
11079 irix5* | irix6* | nonstopux*)
11080 case $host_os in
11081 nonstopux*) version_type=nonstopux ;;
11083 if test "$lt_cv_prog_gnu_ld" = yes; then
11084 version_type=linux
11085 else
11086 version_type=irix
11087 fi ;;
11088 esac
11089 need_lib_prefix=no
11090 need_version=no
11091 soname_spec='${libname}${release}${shared_ext}$major'
11092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11093 case $host_os in
11094 irix5* | nonstopux*)
11095 libsuff= shlibsuff=
11098 case $LD in # libtool.m4 will add one of these switches to LD
11099 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11100 libsuff= shlibsuff= libmagic=32-bit;;
11101 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11102 libsuff=32 shlibsuff=N32 libmagic=N32;;
11103 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11104 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11105 *) libsuff= shlibsuff= libmagic=never-match;;
11106 esac
11108 esac
11109 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11110 shlibpath_overrides_runpath=no
11111 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11112 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11113 hardcode_into_libs=yes
11116 # No shared lib support for Linux oldld, aout, or coff.
11117 linux*oldld* | linux*aout* | linux*coff*)
11118 dynamic_linker=no
11121 # This must be Linux ELF.
11122 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11123 version_type=linux
11124 need_lib_prefix=no
11125 need_version=no
11126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11127 soname_spec='${libname}${release}${shared_ext}$major'
11128 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11129 shlibpath_var=LD_LIBRARY_PATH
11130 shlibpath_overrides_runpath=no
11132 # Some binutils ld are patched to set DT_RUNPATH
11133 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11134 $as_echo_n "(cached) " >&6
11135 else
11136 lt_cv_shlibpath_overrides_runpath=no
11137 save_LDFLAGS=$LDFLAGS
11138 save_libdir=$libdir
11139 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11140 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11141 if test x$gcc_no_link = xyes; then
11142 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11145 /* end confdefs.h. */
11148 main ()
11152 return 0;
11154 _ACEOF
11155 if ac_fn_c_try_link "$LINENO"; then :
11156 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11157 lt_cv_shlibpath_overrides_runpath=yes
11160 rm -f core conftest.err conftest.$ac_objext \
11161 conftest$ac_exeext conftest.$ac_ext
11162 LDFLAGS=$save_LDFLAGS
11163 libdir=$save_libdir
11167 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11169 # This implies no fast_install, which is unacceptable.
11170 # Some rework will be needed to allow for fast_install
11171 # before this can be enabled.
11172 hardcode_into_libs=yes
11174 # Append ld.so.conf contents to the search path
11175 if test -f /etc/ld.so.conf; then
11176 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11177 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11180 # We used to test for /lib/ld.so.1 and disable shared libraries on
11181 # powerpc, because MkLinux only supported shared libraries with the
11182 # GNU dynamic linker. Since this was broken with cross compilers,
11183 # most powerpc-linux boxes support dynamic linking these days and
11184 # people can always --disable-shared, the test was removed, and we
11185 # assume the GNU/Linux dynamic linker is in use.
11186 dynamic_linker='GNU/Linux ld.so'
11189 netbsd*)
11190 version_type=sunos
11191 need_lib_prefix=no
11192 need_version=no
11193 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11195 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11196 dynamic_linker='NetBSD (a.out) ld.so'
11197 else
11198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11199 soname_spec='${libname}${release}${shared_ext}$major'
11200 dynamic_linker='NetBSD ld.elf_so'
11202 shlibpath_var=LD_LIBRARY_PATH
11203 shlibpath_overrides_runpath=yes
11204 hardcode_into_libs=yes
11207 newsos6)
11208 version_type=linux
11209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11210 shlibpath_var=LD_LIBRARY_PATH
11211 shlibpath_overrides_runpath=yes
11214 *nto* | *qnx*)
11215 version_type=qnx
11216 need_lib_prefix=no
11217 need_version=no
11218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11219 soname_spec='${libname}${release}${shared_ext}$major'
11220 shlibpath_var=LD_LIBRARY_PATH
11221 shlibpath_overrides_runpath=no
11222 hardcode_into_libs=yes
11223 dynamic_linker='ldqnx.so'
11226 openbsd*)
11227 version_type=sunos
11228 sys_lib_dlsearch_path_spec="/usr/lib"
11229 need_lib_prefix=no
11230 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11231 case $host_os in
11232 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11233 *) need_version=no ;;
11234 esac
11235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11236 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11237 shlibpath_var=LD_LIBRARY_PATH
11238 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11239 case $host_os in
11240 openbsd2.[89] | openbsd2.[89].*)
11241 shlibpath_overrides_runpath=no
11244 shlibpath_overrides_runpath=yes
11246 esac
11247 else
11248 shlibpath_overrides_runpath=yes
11252 os2*)
11253 libname_spec='$name'
11254 shrext_cmds=".dll"
11255 need_lib_prefix=no
11256 library_names_spec='$libname${shared_ext} $libname.a'
11257 dynamic_linker='OS/2 ld.exe'
11258 shlibpath_var=LIBPATH
11261 osf3* | osf4* | osf5*)
11262 version_type=osf
11263 need_lib_prefix=no
11264 need_version=no
11265 soname_spec='${libname}${release}${shared_ext}$major'
11266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11267 shlibpath_var=LD_LIBRARY_PATH
11268 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11269 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11272 rdos*)
11273 dynamic_linker=no
11276 solaris*)
11277 version_type=linux
11278 need_lib_prefix=no
11279 need_version=no
11280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11281 soname_spec='${libname}${release}${shared_ext}$major'
11282 shlibpath_var=LD_LIBRARY_PATH
11283 shlibpath_overrides_runpath=yes
11284 hardcode_into_libs=yes
11285 # ldd complains unless libraries are executable
11286 postinstall_cmds='chmod +x $lib'
11289 sunos4*)
11290 version_type=sunos
11291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11292 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11293 shlibpath_var=LD_LIBRARY_PATH
11294 shlibpath_overrides_runpath=yes
11295 if test "$with_gnu_ld" = yes; then
11296 need_lib_prefix=no
11298 need_version=yes
11301 sysv4 | sysv4.3*)
11302 version_type=linux
11303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11304 soname_spec='${libname}${release}${shared_ext}$major'
11305 shlibpath_var=LD_LIBRARY_PATH
11306 case $host_vendor in
11307 sni)
11308 shlibpath_overrides_runpath=no
11309 need_lib_prefix=no
11310 runpath_var=LD_RUN_PATH
11312 siemens)
11313 need_lib_prefix=no
11315 motorola)
11316 need_lib_prefix=no
11317 need_version=no
11318 shlibpath_overrides_runpath=no
11319 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11321 esac
11324 sysv4*MP*)
11325 if test -d /usr/nec ;then
11326 version_type=linux
11327 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11328 soname_spec='$libname${shared_ext}.$major'
11329 shlibpath_var=LD_LIBRARY_PATH
11333 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11334 version_type=freebsd-elf
11335 need_lib_prefix=no
11336 need_version=no
11337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11338 soname_spec='${libname}${release}${shared_ext}$major'
11339 shlibpath_var=LD_LIBRARY_PATH
11340 shlibpath_overrides_runpath=yes
11341 hardcode_into_libs=yes
11342 if test "$with_gnu_ld" = yes; then
11343 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11344 else
11345 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11346 case $host_os in
11347 sco3.2v5*)
11348 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11350 esac
11352 sys_lib_dlsearch_path_spec='/usr/lib'
11355 tpf*)
11356 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11357 version_type=linux
11358 need_lib_prefix=no
11359 need_version=no
11360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11361 shlibpath_var=LD_LIBRARY_PATH
11362 shlibpath_overrides_runpath=no
11363 hardcode_into_libs=yes
11366 uts4*)
11367 version_type=linux
11368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11369 soname_spec='${libname}${release}${shared_ext}$major'
11370 shlibpath_var=LD_LIBRARY_PATH
11374 dynamic_linker=no
11376 esac
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11378 $as_echo "$dynamic_linker" >&6; }
11379 test "$dynamic_linker" = no && can_build_shared=no
11381 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11382 if test "$GCC" = yes; then
11383 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11386 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11387 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11389 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11390 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11485 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11486 hardcode_action=
11487 if test -n "$hardcode_libdir_flag_spec" ||
11488 test -n "$runpath_var" ||
11489 test "X$hardcode_automatic" = "Xyes" ; then
11491 # We can hardcode non-existent directories.
11492 if test "$hardcode_direct" != no &&
11493 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11494 # have to relink, otherwise we might link with an installed library
11495 # when we should be linking with a yet-to-be-installed one
11496 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11497 test "$hardcode_minus_L" != no; then
11498 # Linking always hardcodes the temporary library directory.
11499 hardcode_action=relink
11500 else
11501 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11502 hardcode_action=immediate
11504 else
11505 # We cannot hardcode anything, or else we can only hardcode existing
11506 # directories.
11507 hardcode_action=unsupported
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11510 $as_echo "$hardcode_action" >&6; }
11512 if test "$hardcode_action" = relink ||
11513 test "$inherit_rpath" = yes; then
11514 # Fast installation is not supported
11515 enable_fast_install=no
11516 elif test "$shlibpath_overrides_runpath" = yes ||
11517 test "$enable_shared" = no; then
11518 # Fast installation is not necessary
11519 enable_fast_install=needless
11527 if test "x$enable_dlopen" != xyes; then
11528 enable_dlopen=unknown
11529 enable_dlopen_self=unknown
11530 enable_dlopen_self_static=unknown
11531 else
11532 lt_cv_dlopen=no
11533 lt_cv_dlopen_libs=
11535 case $host_os in
11536 beos*)
11537 lt_cv_dlopen="load_add_on"
11538 lt_cv_dlopen_libs=
11539 lt_cv_dlopen_self=yes
11542 mingw* | pw32* | cegcc*)
11543 lt_cv_dlopen="LoadLibrary"
11544 lt_cv_dlopen_libs=
11547 cygwin*)
11548 lt_cv_dlopen="dlopen"
11549 lt_cv_dlopen_libs=
11552 darwin*)
11553 # if libdl is installed we need to link against it
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11555 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11556 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11557 $as_echo_n "(cached) " >&6
11558 else
11559 ac_check_lib_save_LIBS=$LIBS
11560 LIBS="-ldl $LIBS"
11561 if test x$gcc_no_link = xyes; then
11562 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11565 /* end confdefs.h. */
11567 /* Override any GCC internal prototype to avoid an error.
11568 Use char because int might match the return type of a GCC
11569 builtin and then its argument prototype would still apply. */
11570 #ifdef __cplusplus
11571 extern "C"
11572 #endif
11573 char dlopen ();
11575 main ()
11577 return dlopen ();
11579 return 0;
11581 _ACEOF
11582 if ac_fn_c_try_link "$LINENO"; then :
11583 ac_cv_lib_dl_dlopen=yes
11584 else
11585 ac_cv_lib_dl_dlopen=no
11587 rm -f core conftest.err conftest.$ac_objext \
11588 conftest$ac_exeext conftest.$ac_ext
11589 LIBS=$ac_check_lib_save_LIBS
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11592 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11593 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11594 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11595 else
11597 lt_cv_dlopen="dyld"
11598 lt_cv_dlopen_libs=
11599 lt_cv_dlopen_self=yes
11606 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11607 if test "x$ac_cv_func_shl_load" = x""yes; then :
11608 lt_cv_dlopen="shl_load"
11609 else
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11611 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11612 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11613 $as_echo_n "(cached) " >&6
11614 else
11615 ac_check_lib_save_LIBS=$LIBS
11616 LIBS="-ldld $LIBS"
11617 if test x$gcc_no_link = xyes; then
11618 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11621 /* end confdefs.h. */
11623 /* Override any GCC internal prototype to avoid an error.
11624 Use char because int might match the return type of a GCC
11625 builtin and then its argument prototype would still apply. */
11626 #ifdef __cplusplus
11627 extern "C"
11628 #endif
11629 char shl_load ();
11631 main ()
11633 return shl_load ();
11635 return 0;
11637 _ACEOF
11638 if ac_fn_c_try_link "$LINENO"; then :
11639 ac_cv_lib_dld_shl_load=yes
11640 else
11641 ac_cv_lib_dld_shl_load=no
11643 rm -f core conftest.err conftest.$ac_objext \
11644 conftest$ac_exeext conftest.$ac_ext
11645 LIBS=$ac_check_lib_save_LIBS
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11648 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11649 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11650 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11651 else
11652 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11653 if test "x$ac_cv_func_dlopen" = x""yes; then :
11654 lt_cv_dlopen="dlopen"
11655 else
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11657 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11658 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11659 $as_echo_n "(cached) " >&6
11660 else
11661 ac_check_lib_save_LIBS=$LIBS
11662 LIBS="-ldl $LIBS"
11663 if test x$gcc_no_link = xyes; then
11664 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11667 /* end confdefs.h. */
11669 /* Override any GCC internal prototype to avoid an error.
11670 Use char because int might match the return type of a GCC
11671 builtin and then its argument prototype would still apply. */
11672 #ifdef __cplusplus
11673 extern "C"
11674 #endif
11675 char dlopen ();
11677 main ()
11679 return dlopen ();
11681 return 0;
11683 _ACEOF
11684 if ac_fn_c_try_link "$LINENO"; then :
11685 ac_cv_lib_dl_dlopen=yes
11686 else
11687 ac_cv_lib_dl_dlopen=no
11689 rm -f core conftest.err conftest.$ac_objext \
11690 conftest$ac_exeext conftest.$ac_ext
11691 LIBS=$ac_check_lib_save_LIBS
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11694 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11695 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11696 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11697 else
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11699 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11700 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11701 $as_echo_n "(cached) " >&6
11702 else
11703 ac_check_lib_save_LIBS=$LIBS
11704 LIBS="-lsvld $LIBS"
11705 if test x$gcc_no_link = xyes; then
11706 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11709 /* end confdefs.h. */
11711 /* Override any GCC internal prototype to avoid an error.
11712 Use char because int might match the return type of a GCC
11713 builtin and then its argument prototype would still apply. */
11714 #ifdef __cplusplus
11715 extern "C"
11716 #endif
11717 char dlopen ();
11719 main ()
11721 return dlopen ();
11723 return 0;
11725 _ACEOF
11726 if ac_fn_c_try_link "$LINENO"; then :
11727 ac_cv_lib_svld_dlopen=yes
11728 else
11729 ac_cv_lib_svld_dlopen=no
11731 rm -f core conftest.err conftest.$ac_objext \
11732 conftest$ac_exeext conftest.$ac_ext
11733 LIBS=$ac_check_lib_save_LIBS
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11736 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11737 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11738 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11739 else
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11741 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11742 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11743 $as_echo_n "(cached) " >&6
11744 else
11745 ac_check_lib_save_LIBS=$LIBS
11746 LIBS="-ldld $LIBS"
11747 if test x$gcc_no_link = xyes; then
11748 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11751 /* end confdefs.h. */
11753 /* Override any GCC internal prototype to avoid an error.
11754 Use char because int might match the return type of a GCC
11755 builtin and then its argument prototype would still apply. */
11756 #ifdef __cplusplus
11757 extern "C"
11758 #endif
11759 char dld_link ();
11761 main ()
11763 return dld_link ();
11765 return 0;
11767 _ACEOF
11768 if ac_fn_c_try_link "$LINENO"; then :
11769 ac_cv_lib_dld_dld_link=yes
11770 else
11771 ac_cv_lib_dld_dld_link=no
11773 rm -f core conftest.err conftest.$ac_objext \
11774 conftest$ac_exeext conftest.$ac_ext
11775 LIBS=$ac_check_lib_save_LIBS
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11778 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11779 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11780 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11799 esac
11801 if test "x$lt_cv_dlopen" != xno; then
11802 enable_dlopen=yes
11803 else
11804 enable_dlopen=no
11807 case $lt_cv_dlopen in
11808 dlopen)
11809 save_CPPFLAGS="$CPPFLAGS"
11810 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11812 save_LDFLAGS="$LDFLAGS"
11813 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11815 save_LIBS="$LIBS"
11816 LIBS="$lt_cv_dlopen_libs $LIBS"
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11819 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11820 if test "${lt_cv_dlopen_self+set}" = set; then :
11821 $as_echo_n "(cached) " >&6
11822 else
11823 if test "$cross_compiling" = yes; then :
11824 lt_cv_dlopen_self=cross
11825 else
11826 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11827 lt_status=$lt_dlunknown
11828 cat > conftest.$ac_ext <<_LT_EOF
11829 #line 11829 "configure"
11830 #include "confdefs.h"
11832 #if HAVE_DLFCN_H
11833 #include <dlfcn.h>
11834 #endif
11836 #include <stdio.h>
11838 #ifdef RTLD_GLOBAL
11839 # define LT_DLGLOBAL RTLD_GLOBAL
11840 #else
11841 # ifdef DL_GLOBAL
11842 # define LT_DLGLOBAL DL_GLOBAL
11843 # else
11844 # define LT_DLGLOBAL 0
11845 # endif
11846 #endif
11848 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11849 find out it does not work in some platform. */
11850 #ifndef LT_DLLAZY_OR_NOW
11851 # ifdef RTLD_LAZY
11852 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11853 # else
11854 # ifdef DL_LAZY
11855 # define LT_DLLAZY_OR_NOW DL_LAZY
11856 # else
11857 # ifdef RTLD_NOW
11858 # define LT_DLLAZY_OR_NOW RTLD_NOW
11859 # else
11860 # ifdef DL_NOW
11861 # define LT_DLLAZY_OR_NOW DL_NOW
11862 # else
11863 # define LT_DLLAZY_OR_NOW 0
11864 # endif
11865 # endif
11866 # endif
11867 # endif
11868 #endif
11870 /* When -fvisbility=hidden is used, assume the code has been annotated
11871 correspondingly for the symbols needed. */
11872 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11873 void fnord () __attribute__((visibility("default")));
11874 #endif
11876 void fnord () { int i=42; }
11877 int main ()
11879 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11880 int status = $lt_dlunknown;
11882 if (self)
11884 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11885 else
11887 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11888 else puts (dlerror ());
11890 /* dlclose (self); */
11892 else
11893 puts (dlerror ());
11895 return status;
11897 _LT_EOF
11898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11899 (eval $ac_link) 2>&5
11900 ac_status=$?
11901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11902 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11903 (./conftest; exit; ) >&5 2>/dev/null
11904 lt_status=$?
11905 case x$lt_status in
11906 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11907 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11908 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11909 esac
11910 else :
11911 # compilation failed
11912 lt_cv_dlopen_self=no
11915 rm -fr conftest*
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11920 $as_echo "$lt_cv_dlopen_self" >&6; }
11922 if test "x$lt_cv_dlopen_self" = xyes; then
11923 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11925 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11926 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11927 $as_echo_n "(cached) " >&6
11928 else
11929 if test "$cross_compiling" = yes; then :
11930 lt_cv_dlopen_self_static=cross
11931 else
11932 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11933 lt_status=$lt_dlunknown
11934 cat > conftest.$ac_ext <<_LT_EOF
11935 #line 11935 "configure"
11936 #include "confdefs.h"
11938 #if HAVE_DLFCN_H
11939 #include <dlfcn.h>
11940 #endif
11942 #include <stdio.h>
11944 #ifdef RTLD_GLOBAL
11945 # define LT_DLGLOBAL RTLD_GLOBAL
11946 #else
11947 # ifdef DL_GLOBAL
11948 # define LT_DLGLOBAL DL_GLOBAL
11949 # else
11950 # define LT_DLGLOBAL 0
11951 # endif
11952 #endif
11954 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11955 find out it does not work in some platform. */
11956 #ifndef LT_DLLAZY_OR_NOW
11957 # ifdef RTLD_LAZY
11958 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11959 # else
11960 # ifdef DL_LAZY
11961 # define LT_DLLAZY_OR_NOW DL_LAZY
11962 # else
11963 # ifdef RTLD_NOW
11964 # define LT_DLLAZY_OR_NOW RTLD_NOW
11965 # else
11966 # ifdef DL_NOW
11967 # define LT_DLLAZY_OR_NOW DL_NOW
11968 # else
11969 # define LT_DLLAZY_OR_NOW 0
11970 # endif
11971 # endif
11972 # endif
11973 # endif
11974 #endif
11976 /* When -fvisbility=hidden is used, assume the code has been annotated
11977 correspondingly for the symbols needed. */
11978 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11979 void fnord () __attribute__((visibility("default")));
11980 #endif
11982 void fnord () { int i=42; }
11983 int main ()
11985 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11986 int status = $lt_dlunknown;
11988 if (self)
11990 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11991 else
11993 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11994 else puts (dlerror ());
11996 /* dlclose (self); */
11998 else
11999 puts (dlerror ());
12001 return status;
12003 _LT_EOF
12004 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12005 (eval $ac_link) 2>&5
12006 ac_status=$?
12007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12008 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12009 (./conftest; exit; ) >&5 2>/dev/null
12010 lt_status=$?
12011 case x$lt_status in
12012 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12013 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12014 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12015 esac
12016 else :
12017 # compilation failed
12018 lt_cv_dlopen_self_static=no
12021 rm -fr conftest*
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12026 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12029 CPPFLAGS="$save_CPPFLAGS"
12030 LDFLAGS="$save_LDFLAGS"
12031 LIBS="$save_LIBS"
12033 esac
12035 case $lt_cv_dlopen_self in
12036 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12037 *) enable_dlopen_self=unknown ;;
12038 esac
12040 case $lt_cv_dlopen_self_static in
12041 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12042 *) enable_dlopen_self_static=unknown ;;
12043 esac
12062 striplib=
12063 old_striplib=
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12065 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12066 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12067 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12068 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12070 $as_echo "yes" >&6; }
12071 else
12072 # FIXME - insert some real tests, host_os isn't really good enough
12073 case $host_os in
12074 darwin*)
12075 if test -n "$STRIP" ; then
12076 striplib="$STRIP -x"
12077 old_striplib="$STRIP -S"
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12079 $as_echo "yes" >&6; }
12080 else
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12082 $as_echo "no" >&6; }
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12087 $as_echo "no" >&6; }
12089 esac
12103 # Report which library types will actually be built
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12105 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12107 $as_echo "$can_build_shared" >&6; }
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12110 $as_echo_n "checking whether to build shared libraries... " >&6; }
12111 test "$can_build_shared" = "no" && enable_shared=no
12113 # On AIX, shared libraries and static libraries use the same namespace, and
12114 # are all built from PIC.
12115 case $host_os in
12116 aix3*)
12117 test "$enable_shared" = yes && enable_static=no
12118 if test -n "$RANLIB"; then
12119 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12120 postinstall_cmds='$RANLIB $lib'
12124 aix[4-9]*)
12125 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12126 test "$enable_shared" = yes && enable_static=no
12129 esac
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12131 $as_echo "$enable_shared" >&6; }
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12134 $as_echo_n "checking whether to build static libraries... " >&6; }
12135 # Make sure either enable_shared or enable_static is yes.
12136 test "$enable_shared" = yes || enable_static=yes
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12138 $as_echo "$enable_static" >&6; }
12144 ac_ext=c
12145 ac_cpp='$CPP $CPPFLAGS'
12146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12150 CC="$lt_save_CC"
12164 ac_config_commands="$ac_config_commands libtool"
12169 # Only expand once:
12172 for ac_prog in gawk mawk nawk awk
12174 # Extract the first word of "$ac_prog", so it can be a program name with args.
12175 set dummy $ac_prog; ac_word=$2
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12177 $as_echo_n "checking for $ac_word... " >&6; }
12178 if test "${ac_cv_prog_AWK+set}" = set; then :
12179 $as_echo_n "(cached) " >&6
12180 else
12181 if test -n "$AWK"; then
12182 ac_cv_prog_AWK="$AWK" # Let the user override the test.
12183 else
12184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12185 for as_dir in $PATH
12187 IFS=$as_save_IFS
12188 test -z "$as_dir" && as_dir=.
12189 for ac_exec_ext in '' $ac_executable_extensions; do
12190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12191 ac_cv_prog_AWK="$ac_prog"
12192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12193 break 2
12195 done
12196 done
12197 IFS=$as_save_IFS
12201 AWK=$ac_cv_prog_AWK
12202 if test -n "$AWK"; then
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12204 $as_echo "$AWK" >&6; }
12205 else
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12207 $as_echo "no" >&6; }
12211 test -n "$AWK" && break
12212 done
12214 ac_ext=c
12215 ac_cpp='$CPP $CPPFLAGS'
12216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12219 if test -n "$ac_tool_prefix"; then
12220 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12221 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12223 $as_echo_n "checking for $ac_word... " >&6; }
12224 if test "${ac_cv_prog_CC+set}" = set; then :
12225 $as_echo_n "(cached) " >&6
12226 else
12227 if test -n "$CC"; then
12228 ac_cv_prog_CC="$CC" # Let the user override the test.
12229 else
12230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12231 for as_dir in $PATH
12233 IFS=$as_save_IFS
12234 test -z "$as_dir" && as_dir=.
12235 for ac_exec_ext in '' $ac_executable_extensions; do
12236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12237 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12239 break 2
12241 done
12242 done
12243 IFS=$as_save_IFS
12247 CC=$ac_cv_prog_CC
12248 if test -n "$CC"; then
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12250 $as_echo "$CC" >&6; }
12251 else
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12253 $as_echo "no" >&6; }
12258 if test -z "$ac_cv_prog_CC"; then
12259 ac_ct_CC=$CC
12260 # Extract the first word of "gcc", so it can be a program name with args.
12261 set dummy gcc; ac_word=$2
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12263 $as_echo_n "checking for $ac_word... " >&6; }
12264 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
12265 $as_echo_n "(cached) " >&6
12266 else
12267 if test -n "$ac_ct_CC"; then
12268 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12269 else
12270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12271 for as_dir in $PATH
12273 IFS=$as_save_IFS
12274 test -z "$as_dir" && as_dir=.
12275 for ac_exec_ext in '' $ac_executable_extensions; do
12276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12277 ac_cv_prog_ac_ct_CC="gcc"
12278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12279 break 2
12281 done
12282 done
12283 IFS=$as_save_IFS
12287 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12288 if test -n "$ac_ct_CC"; then
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12290 $as_echo "$ac_ct_CC" >&6; }
12291 else
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12293 $as_echo "no" >&6; }
12296 if test "x$ac_ct_CC" = x; then
12297 CC=""
12298 else
12299 case $cross_compiling:$ac_tool_warned in
12300 yes:)
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12302 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12303 ac_tool_warned=yes ;;
12304 esac
12305 CC=$ac_ct_CC
12307 else
12308 CC="$ac_cv_prog_CC"
12311 if test -z "$CC"; then
12312 if test -n "$ac_tool_prefix"; then
12313 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12314 set dummy ${ac_tool_prefix}cc; ac_word=$2
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12316 $as_echo_n "checking for $ac_word... " >&6; }
12317 if test "${ac_cv_prog_CC+set}" = set; then :
12318 $as_echo_n "(cached) " >&6
12319 else
12320 if test -n "$CC"; then
12321 ac_cv_prog_CC="$CC" # Let the user override the test.
12322 else
12323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12324 for as_dir in $PATH
12326 IFS=$as_save_IFS
12327 test -z "$as_dir" && as_dir=.
12328 for ac_exec_ext in '' $ac_executable_extensions; do
12329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12330 ac_cv_prog_CC="${ac_tool_prefix}cc"
12331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12332 break 2
12334 done
12335 done
12336 IFS=$as_save_IFS
12340 CC=$ac_cv_prog_CC
12341 if test -n "$CC"; then
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12343 $as_echo "$CC" >&6; }
12344 else
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12346 $as_echo "no" >&6; }
12352 if test -z "$CC"; then
12353 # Extract the first word of "cc", so it can be a program name with args.
12354 set dummy cc; ac_word=$2
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12356 $as_echo_n "checking for $ac_word... " >&6; }
12357 if test "${ac_cv_prog_CC+set}" = set; then :
12358 $as_echo_n "(cached) " >&6
12359 else
12360 if test -n "$CC"; then
12361 ac_cv_prog_CC="$CC" # Let the user override the test.
12362 else
12363 ac_prog_rejected=no
12364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12365 for as_dir in $PATH
12367 IFS=$as_save_IFS
12368 test -z "$as_dir" && as_dir=.
12369 for ac_exec_ext in '' $ac_executable_extensions; do
12370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12371 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12372 ac_prog_rejected=yes
12373 continue
12375 ac_cv_prog_CC="cc"
12376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12377 break 2
12379 done
12380 done
12381 IFS=$as_save_IFS
12383 if test $ac_prog_rejected = yes; then
12384 # We found a bogon in the path, so make sure we never use it.
12385 set dummy $ac_cv_prog_CC
12386 shift
12387 if test $# != 0; then
12388 # We chose a different compiler from the bogus one.
12389 # However, it has the same basename, so the bogon will be chosen
12390 # first if we set CC to just the basename; use the full file name.
12391 shift
12392 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12397 CC=$ac_cv_prog_CC
12398 if test -n "$CC"; then
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12400 $as_echo "$CC" >&6; }
12401 else
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12403 $as_echo "no" >&6; }
12408 if test -z "$CC"; then
12409 if test -n "$ac_tool_prefix"; then
12410 for ac_prog in cl.exe
12412 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12413 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12415 $as_echo_n "checking for $ac_word... " >&6; }
12416 if test "${ac_cv_prog_CC+set}" = set; then :
12417 $as_echo_n "(cached) " >&6
12418 else
12419 if test -n "$CC"; then
12420 ac_cv_prog_CC="$CC" # Let the user override the test.
12421 else
12422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12423 for as_dir in $PATH
12425 IFS=$as_save_IFS
12426 test -z "$as_dir" && as_dir=.
12427 for ac_exec_ext in '' $ac_executable_extensions; do
12428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12429 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12431 break 2
12433 done
12434 done
12435 IFS=$as_save_IFS
12439 CC=$ac_cv_prog_CC
12440 if test -n "$CC"; then
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12442 $as_echo "$CC" >&6; }
12443 else
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12445 $as_echo "no" >&6; }
12449 test -n "$CC" && break
12450 done
12452 if test -z "$CC"; then
12453 ac_ct_CC=$CC
12454 for ac_prog in cl.exe
12456 # Extract the first word of "$ac_prog", so it can be a program name with args.
12457 set dummy $ac_prog; ac_word=$2
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12459 $as_echo_n "checking for $ac_word... " >&6; }
12460 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
12461 $as_echo_n "(cached) " >&6
12462 else
12463 if test -n "$ac_ct_CC"; then
12464 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12465 else
12466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12467 for as_dir in $PATH
12469 IFS=$as_save_IFS
12470 test -z "$as_dir" && as_dir=.
12471 for ac_exec_ext in '' $ac_executable_extensions; do
12472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12473 ac_cv_prog_ac_ct_CC="$ac_prog"
12474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12475 break 2
12477 done
12478 done
12479 IFS=$as_save_IFS
12483 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12484 if test -n "$ac_ct_CC"; then
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12486 $as_echo "$ac_ct_CC" >&6; }
12487 else
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12489 $as_echo "no" >&6; }
12493 test -n "$ac_ct_CC" && break
12494 done
12496 if test "x$ac_ct_CC" = x; then
12497 CC=""
12498 else
12499 case $cross_compiling:$ac_tool_warned in
12500 yes:)
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12503 ac_tool_warned=yes ;;
12504 esac
12505 CC=$ac_ct_CC
12512 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12514 as_fn_error "no acceptable C compiler found in \$PATH
12515 See \`config.log' for more details." "$LINENO" 5; }
12517 # Provide some information about the compiler.
12518 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12519 set X $ac_compile
12520 ac_compiler=$2
12521 for ac_option in --version -v -V -qversion; do
12522 { { ac_try="$ac_compiler $ac_option >&5"
12523 case "(($ac_try" in
12524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12525 *) ac_try_echo=$ac_try;;
12526 esac
12527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12528 $as_echo "$ac_try_echo"; } >&5
12529 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12530 ac_status=$?
12531 if test -s conftest.err; then
12532 sed '10a\
12533 ... rest of stderr output deleted ...
12534 10q' conftest.err >conftest.er1
12535 cat conftest.er1 >&5
12536 rm -f conftest.er1 conftest.err
12538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12539 test $ac_status = 0; }
12540 done
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12543 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12544 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
12545 $as_echo_n "(cached) " >&6
12546 else
12547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12548 /* end confdefs.h. */
12551 main ()
12553 #ifndef __GNUC__
12554 choke me
12555 #endif
12558 return 0;
12560 _ACEOF
12561 if ac_fn_c_try_compile "$LINENO"; then :
12562 ac_compiler_gnu=yes
12563 else
12564 ac_compiler_gnu=no
12566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12567 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12571 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12572 if test $ac_compiler_gnu = yes; then
12573 GCC=yes
12574 else
12575 GCC=
12577 ac_test_CFLAGS=${CFLAGS+set}
12578 ac_save_CFLAGS=$CFLAGS
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12580 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12581 if test "${ac_cv_prog_cc_g+set}" = set; then :
12582 $as_echo_n "(cached) " >&6
12583 else
12584 ac_save_c_werror_flag=$ac_c_werror_flag
12585 ac_c_werror_flag=yes
12586 ac_cv_prog_cc_g=no
12587 CFLAGS="-g"
12588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12589 /* end confdefs.h. */
12592 main ()
12596 return 0;
12598 _ACEOF
12599 if ac_fn_c_try_compile "$LINENO"; then :
12600 ac_cv_prog_cc_g=yes
12601 else
12602 CFLAGS=""
12603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12604 /* end confdefs.h. */
12607 main ()
12611 return 0;
12613 _ACEOF
12614 if ac_fn_c_try_compile "$LINENO"; then :
12616 else
12617 ac_c_werror_flag=$ac_save_c_werror_flag
12618 CFLAGS="-g"
12619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12620 /* end confdefs.h. */
12623 main ()
12627 return 0;
12629 _ACEOF
12630 if ac_fn_c_try_compile "$LINENO"; then :
12631 ac_cv_prog_cc_g=yes
12633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12638 ac_c_werror_flag=$ac_save_c_werror_flag
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12641 $as_echo "$ac_cv_prog_cc_g" >&6; }
12642 if test "$ac_test_CFLAGS" = set; then
12643 CFLAGS=$ac_save_CFLAGS
12644 elif test $ac_cv_prog_cc_g = yes; then
12645 if test "$GCC" = yes; then
12646 CFLAGS="-g -O2"
12647 else
12648 CFLAGS="-g"
12650 else
12651 if test "$GCC" = yes; then
12652 CFLAGS="-O2"
12653 else
12654 CFLAGS=
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12658 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12659 if test "${ac_cv_prog_cc_c89+set}" = set; then :
12660 $as_echo_n "(cached) " >&6
12661 else
12662 ac_cv_prog_cc_c89=no
12663 ac_save_CC=$CC
12664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12665 /* end confdefs.h. */
12666 #include <stdarg.h>
12667 #include <stdio.h>
12668 #include <sys/types.h>
12669 #include <sys/stat.h>
12670 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12671 struct buf { int x; };
12672 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12673 static char *e (p, i)
12674 char **p;
12675 int i;
12677 return p[i];
12679 static char *f (char * (*g) (char **, int), char **p, ...)
12681 char *s;
12682 va_list v;
12683 va_start (v,p);
12684 s = g (p, va_arg (v,int));
12685 va_end (v);
12686 return s;
12689 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12690 function prototypes and stuff, but not '\xHH' hex character constants.
12691 These don't provoke an error unfortunately, instead are silently treated
12692 as 'x'. The following induces an error, until -std is added to get
12693 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12694 array size at least. It's necessary to write '\x00'==0 to get something
12695 that's true only with -std. */
12696 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12698 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12699 inside strings and character constants. */
12700 #define FOO(x) 'x'
12701 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12703 int test (int i, double x);
12704 struct s1 {int (*f) (int a);};
12705 struct s2 {int (*f) (double a);};
12706 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12707 int argc;
12708 char **argv;
12710 main ()
12712 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12714 return 0;
12716 _ACEOF
12717 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12718 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12720 CC="$ac_save_CC $ac_arg"
12721 if ac_fn_c_try_compile "$LINENO"; then :
12722 ac_cv_prog_cc_c89=$ac_arg
12724 rm -f core conftest.err conftest.$ac_objext
12725 test "x$ac_cv_prog_cc_c89" != "xno" && break
12726 done
12727 rm -f conftest.$ac_ext
12728 CC=$ac_save_CC
12731 # AC_CACHE_VAL
12732 case "x$ac_cv_prog_cc_c89" in
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12735 $as_echo "none needed" >&6; } ;;
12736 xno)
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12738 $as_echo "unsupported" >&6; } ;;
12740 CC="$CC $ac_cv_prog_cc_c89"
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12742 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12743 esac
12744 if test "x$ac_cv_prog_cc_c89" != xno; then :
12748 ac_ext=c
12749 ac_cpp='$CPP $CPPFLAGS'
12750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12754 depcc="$CC" am_compiler_list=
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12757 $as_echo_n "checking dependency style of $depcc... " >&6; }
12758 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
12759 $as_echo_n "(cached) " >&6
12760 else
12761 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12762 # We make a subdir and do the tests there. Otherwise we can end up
12763 # making bogus files that we don't know about and never remove. For
12764 # instance it was reported that on HP-UX the gcc test will end up
12765 # making a dummy file named `D' -- because `-MD' means `put the output
12766 # in D'.
12767 mkdir conftest.dir
12768 # Copy depcomp to subdir because otherwise we won't find it if we're
12769 # using a relative directory.
12770 cp "$am_depcomp" conftest.dir
12771 cd conftest.dir
12772 # We will build objects and dependencies in a subdirectory because
12773 # it helps to detect inapplicable dependency modes. For instance
12774 # both Tru64's cc and ICC support -MD to output dependencies as a
12775 # side effect of compilation, but ICC will put the dependencies in
12776 # the current directory while Tru64 will put them in the object
12777 # directory.
12778 mkdir sub
12780 am_cv_CC_dependencies_compiler_type=none
12781 if test "$am_compiler_list" = ""; then
12782 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12784 am__universal=false
12785 case " $depcc " in #(
12786 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12787 esac
12789 for depmode in $am_compiler_list; do
12790 # Setup a source with many dependencies, because some compilers
12791 # like to wrap large dependency lists on column 80 (with \), and
12792 # we should not choose a depcomp mode which is confused by this.
12794 # We need to recreate these files for each test, as the compiler may
12795 # overwrite some of them when testing with obscure command lines.
12796 # This happens at least with the AIX C compiler.
12797 : > sub/conftest.c
12798 for i in 1 2 3 4 5 6; do
12799 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12800 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12801 # Solaris 8's {/usr,}/bin/sh.
12802 touch sub/conftst$i.h
12803 done
12804 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12806 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12807 # mode. It turns out that the SunPro C++ compiler does not properly
12808 # handle `-M -o', and we need to detect this. Also, some Intel
12809 # versions had trouble with output in subdirs
12810 am__obj=sub/conftest.${OBJEXT-o}
12811 am__minus_obj="-o $am__obj"
12812 case $depmode in
12813 gcc)
12814 # This depmode causes a compiler race in universal mode.
12815 test "$am__universal" = false || continue
12817 nosideeffect)
12818 # after this tag, mechanisms are not by side-effect, so they'll
12819 # only be used when explicitly requested
12820 if test "x$enable_dependency_tracking" = xyes; then
12821 continue
12822 else
12823 break
12826 msvisualcpp | msvcmsys)
12827 # This compiler won't grok `-c -o', but also, the minuso test has
12828 # not run yet. These depmodes are late enough in the game, and
12829 # so weak that their functioning should not be impacted.
12830 am__obj=conftest.${OBJEXT-o}
12831 am__minus_obj=
12833 none) break ;;
12834 esac
12835 if depmode=$depmode \
12836 source=sub/conftest.c object=$am__obj \
12837 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12838 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12839 >/dev/null 2>conftest.err &&
12840 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12841 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12842 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12843 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12844 # icc doesn't choke on unknown options, it will just issue warnings
12845 # or remarks (even with -Werror). So we grep stderr for any message
12846 # that says an option was ignored or not supported.
12847 # When given -MP, icc 7.0 and 7.1 complain thusly:
12848 # icc: Command line warning: ignoring option '-M'; no argument required
12849 # The diagnosis changed in icc 8.0:
12850 # icc: Command line remark: option '-MP' not supported
12851 if (grep 'ignoring option' conftest.err ||
12852 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12853 am_cv_CC_dependencies_compiler_type=$depmode
12854 break
12857 done
12859 cd ..
12860 rm -rf conftest.dir
12861 else
12862 am_cv_CC_dependencies_compiler_type=none
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12867 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12868 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12871 test "x$enable_dependency_tracking" != xno \
12872 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12873 am__fastdepCC_TRUE=
12874 am__fastdepCC_FALSE='#'
12875 else
12876 am__fastdepCC_TRUE='#'
12877 am__fastdepCC_FALSE=
12881 if test "x$CC" != xcc; then
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
12883 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12884 else
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
12886 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12888 set dummy $CC; ac_cc=`$as_echo "$2" |
12889 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12890 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
12891 $as_echo_n "(cached) " >&6
12892 else
12893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12894 /* end confdefs.h. */
12897 main ()
12901 return 0;
12903 _ACEOF
12904 # Make sure it works both with $CC and with simple cc.
12905 # We do the test twice because some compilers refuse to overwrite an
12906 # existing .o file with -o, though they will create one.
12907 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12908 rm -f conftest2.*
12909 if { { case "(($ac_try" in
12910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12911 *) ac_try_echo=$ac_try;;
12912 esac
12913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12914 $as_echo "$ac_try_echo"; } >&5
12915 (eval "$ac_try") 2>&5
12916 ac_status=$?
12917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12918 test $ac_status = 0; } &&
12919 test -f conftest2.$ac_objext && { { case "(($ac_try" in
12920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12921 *) ac_try_echo=$ac_try;;
12922 esac
12923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12924 $as_echo "$ac_try_echo"; } >&5
12925 (eval "$ac_try") 2>&5
12926 ac_status=$?
12927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12928 test $ac_status = 0; };
12929 then
12930 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12931 if test "x$CC" != xcc; then
12932 # Test first that cc exists at all.
12933 if { ac_try='cc -c conftest.$ac_ext >&5'
12934 { { case "(($ac_try" in
12935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12936 *) ac_try_echo=$ac_try;;
12937 esac
12938 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12939 $as_echo "$ac_try_echo"; } >&5
12940 (eval "$ac_try") 2>&5
12941 ac_status=$?
12942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12943 test $ac_status = 0; }; }; then
12944 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12945 rm -f conftest2.*
12946 if { { case "(($ac_try" in
12947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12948 *) ac_try_echo=$ac_try;;
12949 esac
12950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12951 $as_echo "$ac_try_echo"; } >&5
12952 (eval "$ac_try") 2>&5
12953 ac_status=$?
12954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12955 test $ac_status = 0; } &&
12956 test -f conftest2.$ac_objext && { { case "(($ac_try" in
12957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12958 *) ac_try_echo=$ac_try;;
12959 esac
12960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12961 $as_echo "$ac_try_echo"; } >&5
12962 (eval "$ac_try") 2>&5
12963 ac_status=$?
12964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12965 test $ac_status = 0; };
12966 then
12967 # cc works too.
12969 else
12970 # cc exists but doesn't like -o.
12971 eval ac_cv_prog_cc_${ac_cc}_c_o=no
12975 else
12976 eval ac_cv_prog_cc_${ac_cc}_c_o=no
12978 rm -f core conftest*
12981 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12983 $as_echo "yes" >&6; }
12984 else
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12986 $as_echo "no" >&6; }
12988 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
12992 # FIXME: we rely on the cache variable name because
12993 # there is no other way.
12994 set dummy $CC
12995 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12996 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12997 if test "$am_t" != yes; then
12998 # Losing compiler, so override with the script.
12999 # FIXME: It is wrong to rewrite CC.
13000 # But if we don't then we get into trouble of one sort or another.
13001 # A longer-term fix would be to have automake use am__CC in this case,
13002 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13003 CC="$am_aux_dir/compile $CC"
13007 ac_ext=c
13008 ac_cpp='$CPP $CPPFLAGS'
13009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
13013 $as_echo_n "checking how to run the C preprocessor... " >&6; }
13014 # On Suns, sometimes $CPP names a directory.
13015 if test -n "$CPP" && test -d "$CPP"; then
13016 CPP=
13018 if test -z "$CPP"; then
13019 if test "${ac_cv_prog_CPP+set}" = set; then :
13020 $as_echo_n "(cached) " >&6
13021 else
13022 # Double quotes because CPP needs to be expanded
13023 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13025 ac_preproc_ok=false
13026 for ac_c_preproc_warn_flag in '' yes
13028 # Use a header file that comes with gcc, so configuring glibc
13029 # with a fresh cross-compiler works.
13030 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13031 # <limits.h> exists even on freestanding compilers.
13032 # On the NeXT, cc -E runs the code through the compiler's parser,
13033 # not just through cpp. "Syntax error" is here to catch this case.
13034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13035 /* end confdefs.h. */
13036 #ifdef __STDC__
13037 # include <limits.h>
13038 #else
13039 # include <assert.h>
13040 #endif
13041 Syntax error
13042 _ACEOF
13043 if ac_fn_c_try_cpp "$LINENO"; then :
13045 else
13046 # Broken: fails on valid input.
13047 continue
13049 rm -f conftest.err conftest.$ac_ext
13051 # OK, works on sane cases. Now check whether nonexistent headers
13052 # can be detected and how.
13053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13054 /* end confdefs.h. */
13055 #include <ac_nonexistent.h>
13056 _ACEOF
13057 if ac_fn_c_try_cpp "$LINENO"; then :
13058 # Broken: success on invalid input.
13059 continue
13060 else
13061 # Passes both tests.
13062 ac_preproc_ok=:
13063 break
13065 rm -f conftest.err conftest.$ac_ext
13067 done
13068 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13069 rm -f conftest.err conftest.$ac_ext
13070 if $ac_preproc_ok; then :
13071 break
13074 done
13075 ac_cv_prog_CPP=$CPP
13078 CPP=$ac_cv_prog_CPP
13079 else
13080 ac_cv_prog_CPP=$CPP
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
13083 $as_echo "$CPP" >&6; }
13084 ac_preproc_ok=false
13085 for ac_c_preproc_warn_flag in '' yes
13087 # Use a header file that comes with gcc, so configuring glibc
13088 # with a fresh cross-compiler works.
13089 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13090 # <limits.h> exists even on freestanding compilers.
13091 # On the NeXT, cc -E runs the code through the compiler's parser,
13092 # not just through cpp. "Syntax error" is here to catch this case.
13093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13094 /* end confdefs.h. */
13095 #ifdef __STDC__
13096 # include <limits.h>
13097 #else
13098 # include <assert.h>
13099 #endif
13100 Syntax error
13101 _ACEOF
13102 if ac_fn_c_try_cpp "$LINENO"; then :
13104 else
13105 # Broken: fails on valid input.
13106 continue
13108 rm -f conftest.err conftest.$ac_ext
13110 # OK, works on sane cases. Now check whether nonexistent headers
13111 # can be detected and how.
13112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13113 /* end confdefs.h. */
13114 #include <ac_nonexistent.h>
13115 _ACEOF
13116 if ac_fn_c_try_cpp "$LINENO"; then :
13117 # Broken: success on invalid input.
13118 continue
13119 else
13120 # Passes both tests.
13121 ac_preproc_ok=:
13122 break
13124 rm -f conftest.err conftest.$ac_ext
13126 done
13127 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13128 rm -f conftest.err conftest.$ac_ext
13129 if $ac_preproc_ok; then :
13131 else
13132 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13133 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13134 as_fn_error "C preprocessor \"$CPP\" fails sanity check
13135 See \`config.log' for more details." "$LINENO" 5; }
13138 ac_ext=c
13139 ac_cpp='$CPP $CPPFLAGS'
13140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13144 ac_ext=cpp
13145 ac_cpp='$CXXCPP $CPPFLAGS'
13146 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13147 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13148 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13149 if test -z "$CXX"; then
13150 if test -n "$CCC"; then
13151 CXX=$CCC
13152 else
13153 if test -n "$ac_tool_prefix"; then
13154 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13156 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13157 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13159 $as_echo_n "checking for $ac_word... " >&6; }
13160 if test "${ac_cv_prog_CXX+set}" = set; then :
13161 $as_echo_n "(cached) " >&6
13162 else
13163 if test -n "$CXX"; then
13164 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13165 else
13166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13167 for as_dir in $PATH
13169 IFS=$as_save_IFS
13170 test -z "$as_dir" && as_dir=.
13171 for ac_exec_ext in '' $ac_executable_extensions; do
13172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13173 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13175 break 2
13177 done
13178 done
13179 IFS=$as_save_IFS
13183 CXX=$ac_cv_prog_CXX
13184 if test -n "$CXX"; then
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13186 $as_echo "$CXX" >&6; }
13187 else
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13189 $as_echo "no" >&6; }
13193 test -n "$CXX" && break
13194 done
13196 if test -z "$CXX"; then
13197 ac_ct_CXX=$CXX
13198 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13200 # Extract the first word of "$ac_prog", so it can be a program name with args.
13201 set dummy $ac_prog; ac_word=$2
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13203 $as_echo_n "checking for $ac_word... " >&6; }
13204 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
13205 $as_echo_n "(cached) " >&6
13206 else
13207 if test -n "$ac_ct_CXX"; then
13208 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13209 else
13210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13211 for as_dir in $PATH
13213 IFS=$as_save_IFS
13214 test -z "$as_dir" && as_dir=.
13215 for ac_exec_ext in '' $ac_executable_extensions; do
13216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13217 ac_cv_prog_ac_ct_CXX="$ac_prog"
13218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13219 break 2
13221 done
13222 done
13223 IFS=$as_save_IFS
13227 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13228 if test -n "$ac_ct_CXX"; then
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13230 $as_echo "$ac_ct_CXX" >&6; }
13231 else
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13233 $as_echo "no" >&6; }
13237 test -n "$ac_ct_CXX" && break
13238 done
13240 if test "x$ac_ct_CXX" = x; then
13241 CXX="g++"
13242 else
13243 case $cross_compiling:$ac_tool_warned in
13244 yes:)
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13247 ac_tool_warned=yes ;;
13248 esac
13249 CXX=$ac_ct_CXX
13255 # Provide some information about the compiler.
13256 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13257 set X $ac_compile
13258 ac_compiler=$2
13259 for ac_option in --version -v -V -qversion; do
13260 { { ac_try="$ac_compiler $ac_option >&5"
13261 case "(($ac_try" in
13262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13263 *) ac_try_echo=$ac_try;;
13264 esac
13265 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13266 $as_echo "$ac_try_echo"; } >&5
13267 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13268 ac_status=$?
13269 if test -s conftest.err; then
13270 sed '10a\
13271 ... rest of stderr output deleted ...
13272 10q' conftest.err >conftest.er1
13273 cat conftest.er1 >&5
13274 rm -f conftest.er1 conftest.err
13276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13277 test $ac_status = 0; }
13278 done
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13281 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13282 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
13283 $as_echo_n "(cached) " >&6
13284 else
13285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13286 /* end confdefs.h. */
13289 main ()
13291 #ifndef __GNUC__
13292 choke me
13293 #endif
13296 return 0;
13298 _ACEOF
13299 if ac_fn_cxx_try_compile "$LINENO"; then :
13300 ac_compiler_gnu=yes
13301 else
13302 ac_compiler_gnu=no
13304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13305 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13309 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13310 if test $ac_compiler_gnu = yes; then
13311 GXX=yes
13312 else
13313 GXX=
13315 ac_test_CXXFLAGS=${CXXFLAGS+set}
13316 ac_save_CXXFLAGS=$CXXFLAGS
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13318 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
13319 if test "${ac_cv_prog_cxx_g+set}" = set; then :
13320 $as_echo_n "(cached) " >&6
13321 else
13322 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13323 ac_cxx_werror_flag=yes
13324 ac_cv_prog_cxx_g=no
13325 CXXFLAGS="-g"
13326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13327 /* end confdefs.h. */
13330 main ()
13334 return 0;
13336 _ACEOF
13337 if ac_fn_cxx_try_compile "$LINENO"; then :
13338 ac_cv_prog_cxx_g=yes
13339 else
13340 CXXFLAGS=""
13341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13342 /* end confdefs.h. */
13345 main ()
13349 return 0;
13351 _ACEOF
13352 if ac_fn_cxx_try_compile "$LINENO"; then :
13354 else
13355 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13356 CXXFLAGS="-g"
13357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13358 /* end confdefs.h. */
13361 main ()
13365 return 0;
13367 _ACEOF
13368 if ac_fn_cxx_try_compile "$LINENO"; then :
13369 ac_cv_prog_cxx_g=yes
13371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13376 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13379 $as_echo "$ac_cv_prog_cxx_g" >&6; }
13380 if test "$ac_test_CXXFLAGS" = set; then
13381 CXXFLAGS=$ac_save_CXXFLAGS
13382 elif test $ac_cv_prog_cxx_g = yes; then
13383 if test "$GXX" = yes; then
13384 CXXFLAGS="-g -O2"
13385 else
13386 CXXFLAGS="-g"
13388 else
13389 if test "$GXX" = yes; then
13390 CXXFLAGS="-O2"
13391 else
13392 CXXFLAGS=
13395 ac_ext=c
13396 ac_cpp='$CPP $CPPFLAGS'
13397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13401 depcc="$CXX" am_compiler_list=
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13404 $as_echo_n "checking dependency style of $depcc... " >&6; }
13405 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
13406 $as_echo_n "(cached) " >&6
13407 else
13408 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13409 # We make a subdir and do the tests there. Otherwise we can end up
13410 # making bogus files that we don't know about and never remove. For
13411 # instance it was reported that on HP-UX the gcc test will end up
13412 # making a dummy file named `D' -- because `-MD' means `put the output
13413 # in D'.
13414 mkdir conftest.dir
13415 # Copy depcomp to subdir because otherwise we won't find it if we're
13416 # using a relative directory.
13417 cp "$am_depcomp" conftest.dir
13418 cd conftest.dir
13419 # We will build objects and dependencies in a subdirectory because
13420 # it helps to detect inapplicable dependency modes. For instance
13421 # both Tru64's cc and ICC support -MD to output dependencies as a
13422 # side effect of compilation, but ICC will put the dependencies in
13423 # the current directory while Tru64 will put them in the object
13424 # directory.
13425 mkdir sub
13427 am_cv_CXX_dependencies_compiler_type=none
13428 if test "$am_compiler_list" = ""; then
13429 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13431 am__universal=false
13432 case " $depcc " in #(
13433 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13434 esac
13436 for depmode in $am_compiler_list; do
13437 # Setup a source with many dependencies, because some compilers
13438 # like to wrap large dependency lists on column 80 (with \), and
13439 # we should not choose a depcomp mode which is confused by this.
13441 # We need to recreate these files for each test, as the compiler may
13442 # overwrite some of them when testing with obscure command lines.
13443 # This happens at least with the AIX C compiler.
13444 : > sub/conftest.c
13445 for i in 1 2 3 4 5 6; do
13446 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13447 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13448 # Solaris 8's {/usr,}/bin/sh.
13449 touch sub/conftst$i.h
13450 done
13451 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13453 # We check with `-c' and `-o' for the sake of the "dashmstdout"
13454 # mode. It turns out that the SunPro C++ compiler does not properly
13455 # handle `-M -o', and we need to detect this. Also, some Intel
13456 # versions had trouble with output in subdirs
13457 am__obj=sub/conftest.${OBJEXT-o}
13458 am__minus_obj="-o $am__obj"
13459 case $depmode in
13460 gcc)
13461 # This depmode causes a compiler race in universal mode.
13462 test "$am__universal" = false || continue
13464 nosideeffect)
13465 # after this tag, mechanisms are not by side-effect, so they'll
13466 # only be used when explicitly requested
13467 if test "x$enable_dependency_tracking" = xyes; then
13468 continue
13469 else
13470 break
13473 msvisualcpp | msvcmsys)
13474 # This compiler won't grok `-c -o', but also, the minuso test has
13475 # not run yet. These depmodes are late enough in the game, and
13476 # so weak that their functioning should not be impacted.
13477 am__obj=conftest.${OBJEXT-o}
13478 am__minus_obj=
13480 none) break ;;
13481 esac
13482 if depmode=$depmode \
13483 source=sub/conftest.c object=$am__obj \
13484 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13485 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13486 >/dev/null 2>conftest.err &&
13487 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13488 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13489 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13490 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13491 # icc doesn't choke on unknown options, it will just issue warnings
13492 # or remarks (even with -Werror). So we grep stderr for any message
13493 # that says an option was ignored or not supported.
13494 # When given -MP, icc 7.0 and 7.1 complain thusly:
13495 # icc: Command line warning: ignoring option '-M'; no argument required
13496 # The diagnosis changed in icc 8.0:
13497 # icc: Command line remark: option '-MP' not supported
13498 if (grep 'ignoring option' conftest.err ||
13499 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13500 am_cv_CXX_dependencies_compiler_type=$depmode
13501 break
13504 done
13506 cd ..
13507 rm -rf conftest.dir
13508 else
13509 am_cv_CXX_dependencies_compiler_type=none
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13514 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13515 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13518 test "x$enable_dependency_tracking" != xno \
13519 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13520 am__fastdepCXX_TRUE=
13521 am__fastdepCXX_FALSE='#'
13522 else
13523 am__fastdepCXX_TRUE='#'
13524 am__fastdepCXX_FALSE=
13528 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13529 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13530 (test "X$CXX" != "Xg++"))) ; then
13531 ac_ext=cpp
13532 ac_cpp='$CXXCPP $CPPFLAGS'
13533 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13534 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13535 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13537 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13538 if test -z "$CXXCPP"; then
13539 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13540 $as_echo_n "(cached) " >&6
13541 else
13542 # Double quotes because CXXCPP needs to be expanded
13543 for CXXCPP in "$CXX -E" "/lib/cpp"
13545 ac_preproc_ok=false
13546 for ac_cxx_preproc_warn_flag in '' yes
13548 # Use a header file that comes with gcc, so configuring glibc
13549 # with a fresh cross-compiler works.
13550 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13551 # <limits.h> exists even on freestanding compilers.
13552 # On the NeXT, cc -E runs the code through the compiler's parser,
13553 # not just through cpp. "Syntax error" is here to catch this case.
13554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13555 /* end confdefs.h. */
13556 #ifdef __STDC__
13557 # include <limits.h>
13558 #else
13559 # include <assert.h>
13560 #endif
13561 Syntax error
13562 _ACEOF
13563 if ac_fn_cxx_try_cpp "$LINENO"; then :
13565 else
13566 # Broken: fails on valid input.
13567 continue
13569 rm -f conftest.err conftest.$ac_ext
13571 # OK, works on sane cases. Now check whether nonexistent headers
13572 # can be detected and how.
13573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13574 /* end confdefs.h. */
13575 #include <ac_nonexistent.h>
13576 _ACEOF
13577 if ac_fn_cxx_try_cpp "$LINENO"; then :
13578 # Broken: success on invalid input.
13579 continue
13580 else
13581 # Passes both tests.
13582 ac_preproc_ok=:
13583 break
13585 rm -f conftest.err conftest.$ac_ext
13587 done
13588 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13589 rm -f conftest.err conftest.$ac_ext
13590 if $ac_preproc_ok; then :
13591 break
13594 done
13595 ac_cv_prog_CXXCPP=$CXXCPP
13598 CXXCPP=$ac_cv_prog_CXXCPP
13599 else
13600 ac_cv_prog_CXXCPP=$CXXCPP
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13603 $as_echo "$CXXCPP" >&6; }
13604 ac_preproc_ok=false
13605 for ac_cxx_preproc_warn_flag in '' yes
13607 # Use a header file that comes with gcc, so configuring glibc
13608 # with a fresh cross-compiler works.
13609 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13610 # <limits.h> exists even on freestanding compilers.
13611 # On the NeXT, cc -E runs the code through the compiler's parser,
13612 # not just through cpp. "Syntax error" is here to catch this case.
13613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13614 /* end confdefs.h. */
13615 #ifdef __STDC__
13616 # include <limits.h>
13617 #else
13618 # include <assert.h>
13619 #endif
13620 Syntax error
13621 _ACEOF
13622 if ac_fn_cxx_try_cpp "$LINENO"; then :
13624 else
13625 # Broken: fails on valid input.
13626 continue
13628 rm -f conftest.err conftest.$ac_ext
13630 # OK, works on sane cases. Now check whether nonexistent headers
13631 # can be detected and how.
13632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13633 /* end confdefs.h. */
13634 #include <ac_nonexistent.h>
13635 _ACEOF
13636 if ac_fn_cxx_try_cpp "$LINENO"; then :
13637 # Broken: success on invalid input.
13638 continue
13639 else
13640 # Passes both tests.
13641 ac_preproc_ok=:
13642 break
13644 rm -f conftest.err conftest.$ac_ext
13646 done
13647 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13648 rm -f conftest.err conftest.$ac_ext
13649 if $ac_preproc_ok; then :
13651 else
13652 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13654 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
13655 See \`config.log' for more details." "$LINENO" 5; }
13658 ac_ext=c
13659 ac_cpp='$CPP $CPPFLAGS'
13660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13664 else
13665 _lt_caught_CXX_error=yes
13668 ac_ext=cpp
13669 ac_cpp='$CXXCPP $CPPFLAGS'
13670 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13671 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13672 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13674 archive_cmds_need_lc_CXX=no
13675 allow_undefined_flag_CXX=
13676 always_export_symbols_CXX=no
13677 archive_expsym_cmds_CXX=
13678 compiler_needs_object_CXX=no
13679 export_dynamic_flag_spec_CXX=
13680 hardcode_direct_CXX=no
13681 hardcode_direct_absolute_CXX=no
13682 hardcode_libdir_flag_spec_CXX=
13683 hardcode_libdir_flag_spec_ld_CXX=
13684 hardcode_libdir_separator_CXX=
13685 hardcode_minus_L_CXX=no
13686 hardcode_shlibpath_var_CXX=unsupported
13687 hardcode_automatic_CXX=no
13688 inherit_rpath_CXX=no
13689 module_cmds_CXX=
13690 module_expsym_cmds_CXX=
13691 link_all_deplibs_CXX=unknown
13692 old_archive_cmds_CXX=$old_archive_cmds
13693 reload_flag_CXX=$reload_flag
13694 reload_cmds_CXX=$reload_cmds
13695 no_undefined_flag_CXX=
13696 whole_archive_flag_spec_CXX=
13697 enable_shared_with_static_runtimes_CXX=no
13699 # Source file extension for C++ test sources.
13700 ac_ext=cpp
13702 # Object file extension for compiled C++ test sources.
13703 objext=o
13704 objext_CXX=$objext
13706 # No sense in running all these tests if we already determined that
13707 # the CXX compiler isn't working. Some variables (like enable_shared)
13708 # are currently assumed to apply to all compilers on this platform,
13709 # and will be corrupted by setting them based on a non-working compiler.
13710 if test "$_lt_caught_CXX_error" != yes; then
13711 # Code to be used in simple compile tests
13712 lt_simple_compile_test_code="int some_variable = 0;"
13714 # Code to be used in simple link tests
13715 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13717 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13724 # If no C compiler was specified, use CC.
13725 LTCC=${LTCC-"$CC"}
13727 # If no C compiler flags were specified, use CFLAGS.
13728 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13730 # Allow CC to be a program name with arguments.
13731 compiler=$CC
13734 # save warnings/boilerplate of simple test code
13735 ac_outfile=conftest.$ac_objext
13736 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13737 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13738 _lt_compiler_boilerplate=`cat conftest.err`
13739 $RM conftest*
13741 ac_outfile=conftest.$ac_objext
13742 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13743 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13744 _lt_linker_boilerplate=`cat conftest.err`
13745 $RM -r conftest*
13748 # Allow CC to be a program name with arguments.
13749 lt_save_CC=$CC
13750 lt_save_LD=$LD
13751 lt_save_GCC=$GCC
13752 GCC=$GXX
13753 lt_save_with_gnu_ld=$with_gnu_ld
13754 lt_save_path_LD=$lt_cv_path_LD
13755 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13756 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13757 else
13758 $as_unset lt_cv_prog_gnu_ld
13760 if test -n "${lt_cv_path_LDCXX+set}"; then
13761 lt_cv_path_LD=$lt_cv_path_LDCXX
13762 else
13763 $as_unset lt_cv_path_LD
13765 test -z "${LDCXX+set}" || LD=$LDCXX
13766 CC=${CXX-"c++"}
13767 compiler=$CC
13768 compiler_CXX=$CC
13769 for cc_temp in $compiler""; do
13770 case $cc_temp in
13771 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13772 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13773 \-*) ;;
13774 *) break;;
13775 esac
13776 done
13777 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13780 if test -n "$compiler"; then
13781 # We don't want -fno-exception when compiling C++ code, so set the
13782 # no_builtin_flag separately
13783 if test "$GXX" = yes; then
13784 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13785 else
13786 lt_prog_compiler_no_builtin_flag_CXX=
13789 if test "$GXX" = yes; then
13790 # Set up default GNU C++ configuration
13794 # Check whether --with-gnu-ld was given.
13795 if test "${with_gnu_ld+set}" = set; then :
13796 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13797 else
13798 with_gnu_ld=no
13801 ac_prog=ld
13802 if test "$GCC" = yes; then
13803 # Check if gcc -print-prog-name=ld gives a path.
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13805 $as_echo_n "checking for ld used by $CC... " >&6; }
13806 case $host in
13807 *-*-mingw*)
13808 # gcc leaves a trailing carriage return which upsets mingw
13809 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13811 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13812 esac
13813 case $ac_prog in
13814 # Accept absolute paths.
13815 [\\/]* | ?:[\\/]*)
13816 re_direlt='/[^/][^/]*/\.\./'
13817 # Canonicalize the pathname of ld
13818 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13819 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13820 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13821 done
13822 test -z "$LD" && LD="$ac_prog"
13825 # If it fails, then pretend we aren't using GCC.
13826 ac_prog=ld
13829 # If it is relative, then search for the first ld in PATH.
13830 with_gnu_ld=unknown
13832 esac
13833 elif test "$with_gnu_ld" = yes; then
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13835 $as_echo_n "checking for GNU ld... " >&6; }
13836 else
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13838 $as_echo_n "checking for non-GNU ld... " >&6; }
13840 if test "${lt_cv_path_LD+set}" = set; then :
13841 $as_echo_n "(cached) " >&6
13842 else
13843 if test -z "$LD"; then
13844 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13845 for ac_dir in $PATH; do
13846 IFS="$lt_save_ifs"
13847 test -z "$ac_dir" && ac_dir=.
13848 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13849 lt_cv_path_LD="$ac_dir/$ac_prog"
13850 # Check to see if the program is GNU ld. I'd rather use --version,
13851 # but apparently some variants of GNU ld only accept -v.
13852 # Break only if it was the GNU/non-GNU ld that we prefer.
13853 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13854 *GNU* | *'with BFD'*)
13855 test "$with_gnu_ld" != no && break
13858 test "$with_gnu_ld" != yes && break
13860 esac
13862 done
13863 IFS="$lt_save_ifs"
13864 else
13865 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13869 LD="$lt_cv_path_LD"
13870 if test -n "$LD"; then
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13872 $as_echo "$LD" >&6; }
13873 else
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13875 $as_echo "no" >&6; }
13877 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13879 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13880 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
13881 $as_echo_n "(cached) " >&6
13882 else
13883 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13884 case `$LD -v 2>&1 </dev/null` in
13885 *GNU* | *'with BFD'*)
13886 lt_cv_prog_gnu_ld=yes
13889 lt_cv_prog_gnu_ld=no
13891 esac
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13894 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13895 with_gnu_ld=$lt_cv_prog_gnu_ld
13903 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13904 # archiving commands below assume that GNU ld is being used.
13905 if test "$with_gnu_ld" = yes; then
13906 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13907 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13909 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13910 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13912 # If archive_cmds runs LD, not CC, wlarc should be empty
13913 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13914 # investigate it a little bit more. (MM)
13915 wlarc='${wl}'
13917 # ancient GNU ld didn't support --whole-archive et. al.
13918 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13919 $GREP 'no-whole-archive' > /dev/null; then
13920 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13921 else
13922 whole_archive_flag_spec_CXX=
13924 else
13925 with_gnu_ld=no
13926 wlarc=
13928 # A generic and very simple default shared library creation
13929 # command for GNU C++ for the case where it uses the native
13930 # linker, instead of GNU ld. If possible, this setting should
13931 # overridden to take advantage of the native linker features on
13932 # the platform it is being used on.
13933 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13936 # Commands to make compiler produce verbose output that lists
13937 # what "hidden" libraries, object files and flags are used when
13938 # linking a shared library.
13939 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13941 else
13942 GXX=no
13943 with_gnu_ld=no
13944 wlarc=
13947 # PORTME: fill in a description of your system's C++ link characteristics
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13949 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13950 ld_shlibs_CXX=yes
13951 case $host_os in
13952 aix3*)
13953 # FIXME: insert proper C++ library support
13954 ld_shlibs_CXX=no
13956 aix[4-9]*)
13957 if test "$host_cpu" = ia64; then
13958 # On IA64, the linker does run time linking by default, so we don't
13959 # have to do anything special.
13960 aix_use_runtimelinking=no
13961 exp_sym_flag='-Bexport'
13962 no_entry_flag=""
13963 else
13964 aix_use_runtimelinking=no
13966 # Test if we are trying to use run time linking or normal
13967 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13968 # need to do runtime linking.
13969 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13970 for ld_flag in $LDFLAGS; do
13971 case $ld_flag in
13972 *-brtl*)
13973 aix_use_runtimelinking=yes
13974 break
13976 esac
13977 done
13979 esac
13981 exp_sym_flag='-bexport'
13982 no_entry_flag='-bnoentry'
13985 # When large executables or shared objects are built, AIX ld can
13986 # have problems creating the table of contents. If linking a library
13987 # or program results in "error TOC overflow" add -mminimal-toc to
13988 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13989 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13991 archive_cmds_CXX=''
13992 hardcode_direct_CXX=yes
13993 hardcode_direct_absolute_CXX=yes
13994 hardcode_libdir_separator_CXX=':'
13995 link_all_deplibs_CXX=yes
13996 file_list_spec_CXX='${wl}-f,'
13998 if test "$GXX" = yes; then
13999 case $host_os in aix4.[012]|aix4.[012].*)
14000 # We only want to do this on AIX 4.2 and lower, the check
14001 # below for broken collect2 doesn't work under 4.3+
14002 collect2name=`${CC} -print-prog-name=collect2`
14003 if test -f "$collect2name" &&
14004 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14005 then
14006 # We have reworked collect2
14008 else
14009 # We have old collect2
14010 hardcode_direct_CXX=unsupported
14011 # It fails to find uninstalled libraries when the uninstalled
14012 # path is not listed in the libpath. Setting hardcode_minus_L
14013 # to unsupported forces relinking
14014 hardcode_minus_L_CXX=yes
14015 hardcode_libdir_flag_spec_CXX='-L$libdir'
14016 hardcode_libdir_separator_CXX=
14018 esac
14019 shared_flag='-shared'
14020 if test "$aix_use_runtimelinking" = yes; then
14021 shared_flag="$shared_flag "'${wl}-G'
14023 else
14024 # not using gcc
14025 if test "$host_cpu" = ia64; then
14026 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14027 # chokes on -Wl,-G. The following line is correct:
14028 shared_flag='-G'
14029 else
14030 if test "$aix_use_runtimelinking" = yes; then
14031 shared_flag='${wl}-G'
14032 else
14033 shared_flag='${wl}-bM:SRE'
14038 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14039 # It seems that -bexpall does not export symbols beginning with
14040 # underscore (_), so it is better to generate a list of symbols to
14041 # export.
14042 always_export_symbols_CXX=yes
14043 if test "$aix_use_runtimelinking" = yes; then
14044 # Warning - without using the other runtime loading flags (-brtl),
14045 # -berok will link without error, but may produce a broken library.
14046 allow_undefined_flag_CXX='-berok'
14047 # Determine the default libpath from the value encoded in an empty
14048 # executable.
14049 if test x$gcc_no_link = xyes; then
14050 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14053 /* end confdefs.h. */
14056 main ()
14060 return 0;
14062 _ACEOF
14063 if ac_fn_cxx_try_link "$LINENO"; then :
14065 lt_aix_libpath_sed='
14066 /Import File Strings/,/^$/ {
14067 /^0/ {
14068 s/^0 *\(.*\)$/\1/
14072 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14073 # Check for a 64-bit object if we didn't find anything.
14074 if test -z "$aix_libpath"; then
14075 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14078 rm -f core conftest.err conftest.$ac_objext \
14079 conftest$ac_exeext conftest.$ac_ext
14080 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14082 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14084 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14085 else
14086 if test "$host_cpu" = ia64; then
14087 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14088 allow_undefined_flag_CXX="-z nodefs"
14089 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14090 else
14091 # Determine the default libpath from the value encoded in an
14092 # empty executable.
14093 if test x$gcc_no_link = xyes; then
14094 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14097 /* end confdefs.h. */
14100 main ()
14104 return 0;
14106 _ACEOF
14107 if ac_fn_cxx_try_link "$LINENO"; then :
14109 lt_aix_libpath_sed='
14110 /Import File Strings/,/^$/ {
14111 /^0/ {
14112 s/^0 *\(.*\)$/\1/
14116 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14117 # Check for a 64-bit object if we didn't find anything.
14118 if test -z "$aix_libpath"; then
14119 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14122 rm -f core conftest.err conftest.$ac_objext \
14123 conftest$ac_exeext conftest.$ac_ext
14124 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14126 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14127 # Warning - without using the other run time loading flags,
14128 # -berok will link without error, but may produce a broken library.
14129 no_undefined_flag_CXX=' ${wl}-bernotok'
14130 allow_undefined_flag_CXX=' ${wl}-berok'
14131 if test "$with_gnu_ld" = yes; then
14132 # We only use this code for GNU lds that support --whole-archive.
14133 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14134 else
14135 # Exported symbols can be pulled into shared objects from archives
14136 whole_archive_flag_spec_CXX='$convenience'
14138 archive_cmds_need_lc_CXX=yes
14139 # This is similar to how AIX traditionally builds its shared
14140 # libraries.
14141 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14146 beos*)
14147 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14148 allow_undefined_flag_CXX=unsupported
14149 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14150 # support --undefined. This deserves some investigation. FIXME
14151 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14152 else
14153 ld_shlibs_CXX=no
14157 chorus*)
14158 case $cc_basename in
14160 # FIXME: insert proper C++ library support
14161 ld_shlibs_CXX=no
14163 esac
14166 cygwin* | mingw* | pw32* | cegcc*)
14167 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14168 # as there is no search path for DLLs.
14169 hardcode_libdir_flag_spec_CXX='-L$libdir'
14170 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14171 allow_undefined_flag_CXX=unsupported
14172 always_export_symbols_CXX=no
14173 enable_shared_with_static_runtimes_CXX=yes
14175 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14176 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14177 # If the export-symbols file already is a .def file (1st line
14178 # is EXPORTS), use it as is; otherwise, prepend...
14179 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14180 cp $export_symbols $output_objdir/$soname.def;
14181 else
14182 echo EXPORTS > $output_objdir/$soname.def;
14183 cat $export_symbols >> $output_objdir/$soname.def;
14185 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14186 else
14187 ld_shlibs_CXX=no
14190 darwin* | rhapsody*)
14193 archive_cmds_need_lc_CXX=no
14194 hardcode_direct_CXX=no
14195 hardcode_automatic_CXX=yes
14196 hardcode_shlibpath_var_CXX=unsupported
14197 if test "$lt_cv_ld_force_load" = "yes"; then
14198 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14199 else
14200 whole_archive_flag_spec_CXX=''
14202 link_all_deplibs_CXX=yes
14203 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14204 case $cc_basename in
14205 ifort*) _lt_dar_can_shared=yes ;;
14206 *) _lt_dar_can_shared=$GCC ;;
14207 esac
14208 if test "$_lt_dar_can_shared" = "yes"; then
14209 output_verbose_link_cmd=func_echo_all
14210 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14211 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14212 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
14213 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
14214 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14215 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
14216 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
14219 else
14220 ld_shlibs_CXX=no
14225 dgux*)
14226 case $cc_basename in
14227 ec++*)
14228 # FIXME: insert proper C++ library support
14229 ld_shlibs_CXX=no
14231 ghcx*)
14232 # Green Hills C++ Compiler
14233 # FIXME: insert proper C++ library support
14234 ld_shlibs_CXX=no
14237 # FIXME: insert proper C++ library support
14238 ld_shlibs_CXX=no
14240 esac
14243 freebsd2.*)
14244 # C++ shared libraries reported to be fairly broken before
14245 # switch to ELF
14246 ld_shlibs_CXX=no
14249 freebsd-elf*)
14250 archive_cmds_need_lc_CXX=no
14253 freebsd* | dragonfly*)
14254 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14255 # conventions
14256 ld_shlibs_CXX=yes
14259 gnu*)
14262 haiku*)
14263 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14264 link_all_deplibs_CXX=yes
14267 hpux9*)
14268 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14269 hardcode_libdir_separator_CXX=:
14270 export_dynamic_flag_spec_CXX='${wl}-E'
14271 hardcode_direct_CXX=yes
14272 hardcode_minus_L_CXX=yes # Not in the search PATH,
14273 # but as the default
14274 # location of the library.
14276 case $cc_basename in
14277 CC*)
14278 # FIXME: insert proper C++ library support
14279 ld_shlibs_CXX=no
14281 aCC*)
14282 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14283 # Commands to make compiler produce verbose output that lists
14284 # what "hidden" libraries, object files and flags are used when
14285 # linking a shared library.
14287 # There doesn't appear to be a way to prevent this compiler from
14288 # explicitly linking system object files so we need to strip them
14289 # from the output so that they don't get included in the library
14290 # dependencies.
14291 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14294 if test "$GXX" = yes; then
14295 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14296 else
14297 # FIXME: insert proper C++ library support
14298 ld_shlibs_CXX=no
14301 esac
14304 hpux10*|hpux11*)
14305 if test $with_gnu_ld = no; then
14306 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14307 hardcode_libdir_separator_CXX=:
14309 case $host_cpu in
14310 hppa*64*|ia64*)
14313 export_dynamic_flag_spec_CXX='${wl}-E'
14315 esac
14317 case $host_cpu in
14318 hppa*64*|ia64*)
14319 hardcode_direct_CXX=no
14320 hardcode_shlibpath_var_CXX=no
14323 hardcode_direct_CXX=yes
14324 hardcode_direct_absolute_CXX=yes
14325 hardcode_minus_L_CXX=yes # Not in the search PATH,
14326 # but as the default
14327 # location of the library.
14329 esac
14331 case $cc_basename in
14332 CC*)
14333 # FIXME: insert proper C++ library support
14334 ld_shlibs_CXX=no
14336 aCC*)
14337 case $host_cpu in
14338 hppa*64*)
14339 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14341 ia64*)
14342 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14345 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14347 esac
14348 # Commands to make compiler produce verbose output that lists
14349 # what "hidden" libraries, object files and flags are used when
14350 # linking a shared library.
14352 # There doesn't appear to be a way to prevent this compiler from
14353 # explicitly linking system object files so we need to strip them
14354 # from the output so that they don't get included in the library
14355 # dependencies.
14356 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14359 if test "$GXX" = yes; then
14360 if test $with_gnu_ld = no; then
14361 case $host_cpu in
14362 hppa*64*)
14363 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14365 ia64*)
14366 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14369 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14371 esac
14373 else
14374 # FIXME: insert proper C++ library support
14375 ld_shlibs_CXX=no
14378 esac
14381 interix[3-9]*)
14382 hardcode_direct_CXX=no
14383 hardcode_shlibpath_var_CXX=no
14384 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14385 export_dynamic_flag_spec_CXX='${wl}-E'
14386 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14387 # Instead, shared libraries are loaded at an image base (0x10000000 by
14388 # default) and relocated if they conflict, which is a slow very memory
14389 # consuming and fragmenting process. To avoid this, we pick a random,
14390 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14391 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14392 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14393 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14395 irix5* | irix6*)
14396 case $cc_basename in
14397 CC*)
14398 # SGI C++
14399 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14401 # Archives containing C++ object files must be created using
14402 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14403 # necessary to make sure instantiated templates are included
14404 # in the archive.
14405 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14408 if test "$GXX" = yes; then
14409 if test "$with_gnu_ld" = no; then
14410 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14411 else
14412 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
14415 link_all_deplibs_CXX=yes
14417 esac
14418 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14419 hardcode_libdir_separator_CXX=:
14420 inherit_rpath_CXX=yes
14423 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14424 case $cc_basename in
14425 KCC*)
14426 # Kuck and Associates, Inc. (KAI) C++ Compiler
14428 # KCC will only create a shared library if the output file
14429 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14430 # to its proper name (with version) after linking.
14431 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14432 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
14433 # Commands to make compiler produce verbose output that lists
14434 # what "hidden" libraries, object files and flags are used when
14435 # linking a shared library.
14437 # There doesn't appear to be a way to prevent this compiler from
14438 # explicitly linking system object files so we need to strip them
14439 # from the output so that they don't get included in the library
14440 # dependencies.
14441 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14443 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14444 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14446 # Archives containing C++ object files must be created using
14447 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14448 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14450 icpc* | ecpc* )
14451 # Intel C++
14452 with_gnu_ld=yes
14453 # version 8.0 and above of icpc choke on multiply defined symbols
14454 # if we add $predep_objects and $postdep_objects, however 7.1 and
14455 # earlier do not add the objects themselves.
14456 case `$CC -V 2>&1` in
14457 *"Version 7."*)
14458 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14459 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14461 *) # Version 8.0 or newer
14462 tmp_idyn=
14463 case $host_cpu in
14464 ia64*) tmp_idyn=' -i_dynamic';;
14465 esac
14466 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14467 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14469 esac
14470 archive_cmds_need_lc_CXX=no
14471 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14472 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14473 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14475 pgCC* | pgcpp*)
14476 # Portland Group C++ compiler
14477 case `$CC -V` in
14478 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14479 prelink_cmds_CXX='tpldir=Template.dir~
14480 rm -rf $tpldir~
14481 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14482 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14483 old_archive_cmds_CXX='tpldir=Template.dir~
14484 rm -rf $tpldir~
14485 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14486 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14487 $RANLIB $oldlib'
14488 archive_cmds_CXX='tpldir=Template.dir~
14489 rm -rf $tpldir~
14490 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14491 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14492 archive_expsym_cmds_CXX='tpldir=Template.dir~
14493 rm -rf $tpldir~
14494 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14495 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14497 *) # Version 6 and above use weak symbols
14498 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14499 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14501 esac
14503 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14504 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14505 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14507 cxx*)
14508 # Compaq C++
14509 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14510 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
14512 runpath_var=LD_RUN_PATH
14513 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14514 hardcode_libdir_separator_CXX=:
14516 # Commands to make compiler produce verbose output that lists
14517 # what "hidden" libraries, object files and flags are used when
14518 # linking a shared library.
14520 # There doesn't appear to be a way to prevent this compiler from
14521 # explicitly linking system object files so we need to strip them
14522 # from the output so that they don't get included in the library
14523 # dependencies.
14524 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14526 xl* | mpixl* | bgxl*)
14527 # IBM XL 8.0 on PPC, with GNU ld
14528 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14529 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14530 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14531 if test "x$supports_anon_versioning" = xyes; then
14532 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14533 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14534 echo "local: *; };" >> $output_objdir/$libname.ver~
14535 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14539 case `$CC -V 2>&1 | sed 5q` in
14540 *Sun\ C*)
14541 # Sun C++ 5.9
14542 no_undefined_flag_CXX=' -zdefs'
14543 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14544 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
14545 hardcode_libdir_flag_spec_CXX='-R$libdir'
14546 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14547 compiler_needs_object_CXX=yes
14549 # Not sure whether something based on
14550 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14551 # would be better.
14552 output_verbose_link_cmd='func_echo_all'
14554 # Archives containing C++ object files must be created using
14555 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14556 # necessary to make sure instantiated templates are included
14557 # in the archive.
14558 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14560 esac
14562 esac
14565 lynxos*)
14566 # FIXME: insert proper C++ library support
14567 ld_shlibs_CXX=no
14570 m88k*)
14571 # FIXME: insert proper C++ library support
14572 ld_shlibs_CXX=no
14575 mvs*)
14576 case $cc_basename in
14577 cxx*)
14578 # FIXME: insert proper C++ library support
14579 ld_shlibs_CXX=no
14582 # FIXME: insert proper C++ library support
14583 ld_shlibs_CXX=no
14585 esac
14588 netbsd*)
14589 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14590 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14591 wlarc=
14592 hardcode_libdir_flag_spec_CXX='-R$libdir'
14593 hardcode_direct_CXX=yes
14594 hardcode_shlibpath_var_CXX=no
14596 # Workaround some broken pre-1.5 toolchains
14597 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14600 *nto* | *qnx*)
14601 ld_shlibs_CXX=yes
14604 openbsd2*)
14605 # C++ shared libraries are fairly broken
14606 ld_shlibs_CXX=no
14609 openbsd*)
14610 if test -f /usr/libexec/ld.so; then
14611 hardcode_direct_CXX=yes
14612 hardcode_shlibpath_var_CXX=no
14613 hardcode_direct_absolute_CXX=yes
14614 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14615 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14616 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14617 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14618 export_dynamic_flag_spec_CXX='${wl}-E'
14619 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14621 output_verbose_link_cmd=func_echo_all
14622 else
14623 ld_shlibs_CXX=no
14627 osf3* | osf4* | osf5*)
14628 case $cc_basename in
14629 KCC*)
14630 # Kuck and Associates, Inc. (KAI) C++ Compiler
14632 # KCC will only create a shared library if the output file
14633 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14634 # to its proper name (with version) after linking.
14635 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14637 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14638 hardcode_libdir_separator_CXX=:
14640 # Archives containing C++ object files must be created using
14641 # the KAI C++ compiler.
14642 case $host in
14643 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14644 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14645 esac
14647 RCC*)
14648 # Rational C++ 2.4.1
14649 # FIXME: insert proper C++ library support
14650 ld_shlibs_CXX=no
14652 cxx*)
14653 case $host in
14654 osf3*)
14655 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14656 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14657 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14660 allow_undefined_flag_CXX=' -expect_unresolved \*'
14661 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14662 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14663 echo "-hidden">> $lib.exp~
14664 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
14665 $RM $lib.exp'
14666 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14668 esac
14670 hardcode_libdir_separator_CXX=:
14672 # Commands to make compiler produce verbose output that lists
14673 # what "hidden" libraries, object files and flags are used when
14674 # linking a shared library.
14676 # There doesn't appear to be a way to prevent this compiler from
14677 # explicitly linking system object files so we need to strip them
14678 # from the output so that they don't get included in the library
14679 # dependencies.
14680 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14683 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14684 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14685 case $host in
14686 osf3*)
14687 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14690 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14692 esac
14694 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14695 hardcode_libdir_separator_CXX=:
14697 # Commands to make compiler produce verbose output that lists
14698 # what "hidden" libraries, object files and flags are used when
14699 # linking a shared library.
14700 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14702 else
14703 # FIXME: insert proper C++ library support
14704 ld_shlibs_CXX=no
14707 esac
14710 psos*)
14711 # FIXME: insert proper C++ library support
14712 ld_shlibs_CXX=no
14715 sunos4*)
14716 case $cc_basename in
14717 CC*)
14718 # Sun C++ 4.x
14719 # FIXME: insert proper C++ library support
14720 ld_shlibs_CXX=no
14722 lcc*)
14723 # Lucid
14724 # FIXME: insert proper C++ library support
14725 ld_shlibs_CXX=no
14728 # FIXME: insert proper C++ library support
14729 ld_shlibs_CXX=no
14731 esac
14734 solaris*)
14735 case $cc_basename in
14736 CC*)
14737 # Sun C++ 4.2, 5.x and Centerline C++
14738 archive_cmds_need_lc_CXX=yes
14739 no_undefined_flag_CXX=' -zdefs'
14740 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14741 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14742 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14744 hardcode_libdir_flag_spec_CXX='-R$libdir'
14745 hardcode_shlibpath_var_CXX=no
14746 case $host_os in
14747 solaris2.[0-5] | solaris2.[0-5].*) ;;
14749 # The compiler driver will combine and reorder linker options,
14750 # but understands `-z linker_flag'.
14751 # Supported since Solaris 2.6 (maybe 2.5.1?)
14752 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14754 esac
14755 link_all_deplibs_CXX=yes
14757 output_verbose_link_cmd='func_echo_all'
14759 # Archives containing C++ object files must be created using
14760 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14761 # necessary to make sure instantiated templates are included
14762 # in the archive.
14763 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14765 gcx*)
14766 # Green Hills C++ Compiler
14767 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14769 # The C++ compiler must be used to create the archive.
14770 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14773 # GNU C++ compiler with Solaris linker
14774 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14775 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14776 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14777 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14778 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14779 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14781 # Commands to make compiler produce verbose output that lists
14782 # what "hidden" libraries, object files and flags are used when
14783 # linking a shared library.
14784 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14785 else
14786 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14787 # platform.
14788 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14789 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14790 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14792 # Commands to make compiler produce verbose output that lists
14793 # what "hidden" libraries, object files and flags are used when
14794 # linking a shared library.
14795 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14798 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14799 case $host_os in
14800 solaris2.[0-5] | solaris2.[0-5].*) ;;
14802 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14804 esac
14807 esac
14810 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14811 no_undefined_flag_CXX='${wl}-z,text'
14812 archive_cmds_need_lc_CXX=no
14813 hardcode_shlibpath_var_CXX=no
14814 runpath_var='LD_RUN_PATH'
14816 case $cc_basename in
14817 CC*)
14818 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14819 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14822 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14823 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14825 esac
14828 sysv5* | sco3.2v5* | sco5v6*)
14829 # Note: We can NOT use -z defs as we might desire, because we do not
14830 # link with -lc, and that would cause any symbols used from libc to
14831 # always be unresolved, which means just about no library would
14832 # ever link correctly. If we're not using GNU ld we use -z text
14833 # though, which does catch some bad symbols but isn't as heavy-handed
14834 # as -z defs.
14835 no_undefined_flag_CXX='${wl}-z,text'
14836 allow_undefined_flag_CXX='${wl}-z,nodefs'
14837 archive_cmds_need_lc_CXX=no
14838 hardcode_shlibpath_var_CXX=no
14839 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14840 hardcode_libdir_separator_CXX=':'
14841 link_all_deplibs_CXX=yes
14842 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14843 runpath_var='LD_RUN_PATH'
14845 case $cc_basename in
14846 CC*)
14847 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14848 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14849 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14850 '"$old_archive_cmds_CXX"
14851 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14852 '"$reload_cmds_CXX"
14855 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14856 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14858 esac
14861 tandem*)
14862 case $cc_basename in
14863 NCC*)
14864 # NonStop-UX NCC 3.20
14865 # FIXME: insert proper C++ library support
14866 ld_shlibs_CXX=no
14869 # FIXME: insert proper C++ library support
14870 ld_shlibs_CXX=no
14872 esac
14875 vxworks*)
14876 # FIXME: insert proper C++ library support
14877 ld_shlibs_CXX=no
14881 # FIXME: insert proper C++ library support
14882 ld_shlibs_CXX=no
14884 esac
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14887 $as_echo "$ld_shlibs_CXX" >&6; }
14888 test "$ld_shlibs_CXX" = no && can_build_shared=no
14890 GCC_CXX="$GXX"
14891 LD_CXX="$LD"
14893 ## CAVEAT EMPTOR:
14894 ## There is no encapsulation within the following macros, do not change
14895 ## the running order or otherwise move them around unless you know exactly
14896 ## what you are doing...
14897 # Dependencies to place before and after the object being linked:
14898 predep_objects_CXX=
14899 postdep_objects_CXX=
14900 predeps_CXX=
14901 postdeps_CXX=
14902 compiler_lib_search_path_CXX=
14904 cat > conftest.$ac_ext <<_LT_EOF
14905 class Foo
14907 public:
14908 Foo (void) { a = 0; }
14909 private:
14910 int a;
14912 _LT_EOF
14914 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14915 (eval $ac_compile) 2>&5
14916 ac_status=$?
14917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14918 test $ac_status = 0; }; then
14919 # Parse the compiler output and extract the necessary
14920 # objects, libraries and library flags.
14922 # Sentinel used to keep track of whether or not we are before
14923 # the conftest object file.
14924 pre_test_object_deps_done=no
14926 for p in `eval "$output_verbose_link_cmd"`; do
14927 case $p in
14929 -L* | -R* | -l*)
14930 # Some compilers place space between "-{L,R}" and the path.
14931 # Remove the space.
14932 if test $p = "-L" ||
14933 test $p = "-R"; then
14934 prev=$p
14935 continue
14936 else
14937 prev=
14940 if test "$pre_test_object_deps_done" = no; then
14941 case $p in
14942 -L* | -R*)
14943 # Internal compiler library paths should come after those
14944 # provided the user. The postdeps already come after the
14945 # user supplied libs so there is no need to process them.
14946 if test -z "$compiler_lib_search_path_CXX"; then
14947 compiler_lib_search_path_CXX="${prev}${p}"
14948 else
14949 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14952 # The "-l" case would never come before the object being
14953 # linked, so don't bother handling this case.
14954 esac
14955 else
14956 if test -z "$postdeps_CXX"; then
14957 postdeps_CXX="${prev}${p}"
14958 else
14959 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14964 *.$objext)
14965 # This assumes that the test object file only shows up
14966 # once in the compiler output.
14967 if test "$p" = "conftest.$objext"; then
14968 pre_test_object_deps_done=yes
14969 continue
14972 if test "$pre_test_object_deps_done" = no; then
14973 if test -z "$predep_objects_CXX"; then
14974 predep_objects_CXX="$p"
14975 else
14976 predep_objects_CXX="$predep_objects_CXX $p"
14978 else
14979 if test -z "$postdep_objects_CXX"; then
14980 postdep_objects_CXX="$p"
14981 else
14982 postdep_objects_CXX="$postdep_objects_CXX $p"
14987 *) ;; # Ignore the rest.
14989 esac
14990 done
14992 # Clean up.
14993 rm -f a.out a.exe
14994 else
14995 echo "libtool.m4: error: problem compiling CXX test program"
14998 $RM -f confest.$objext
15000 # PORTME: override above test on systems where it is broken
15001 case $host_os in
15002 interix[3-9]*)
15003 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15004 # hack all around it, let's just trust "g++" to DTRT.
15005 predep_objects_CXX=
15006 postdep_objects_CXX=
15007 postdeps_CXX=
15010 linux*)
15011 case `$CC -V 2>&1 | sed 5q` in
15012 *Sun\ C*)
15013 # Sun C++ 5.9
15015 # The more standards-conforming stlport4 library is
15016 # incompatible with the Cstd library. Avoid specifying
15017 # it if it's in CXXFLAGS. Ignore libCrun as
15018 # -library=stlport4 depends on it.
15019 case " $CXX $CXXFLAGS " in
15020 *" -library=stlport4 "*)
15021 solaris_use_stlport4=yes
15023 esac
15025 if test "$solaris_use_stlport4" != yes; then
15026 postdeps_CXX='-library=Cstd -library=Crun'
15029 esac
15032 solaris*)
15033 case $cc_basename in
15034 CC*)
15035 # The more standards-conforming stlport4 library is
15036 # incompatible with the Cstd library. Avoid specifying
15037 # it if it's in CXXFLAGS. Ignore libCrun as
15038 # -library=stlport4 depends on it.
15039 case " $CXX $CXXFLAGS " in
15040 *" -library=stlport4 "*)
15041 solaris_use_stlport4=yes
15043 esac
15045 # Adding this requires a known-good setup of shared libraries for
15046 # Sun compiler versions before 5.6, else PIC objects from an old
15047 # archive will be linked into the output, leading to subtle bugs.
15048 if test "$solaris_use_stlport4" != yes; then
15049 postdeps_CXX='-library=Cstd -library=Crun'
15052 esac
15054 esac
15057 case " $postdeps_CXX " in
15058 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15059 esac
15060 compiler_lib_search_dirs_CXX=
15061 if test -n "${compiler_lib_search_path_CXX}"; then
15062 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15095 lt_prog_compiler_wl_CXX=
15096 lt_prog_compiler_pic_CXX=
15097 lt_prog_compiler_static_CXX=
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15100 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15102 # C++ specific cases for pic, static, wl, etc.
15103 if test "$GXX" = yes; then
15104 lt_prog_compiler_wl_CXX='-Wl,'
15105 lt_prog_compiler_static_CXX='-static'
15107 case $host_os in
15108 aix*)
15109 # All AIX code is PIC.
15110 if test "$host_cpu" = ia64; then
15111 # AIX 5 now supports IA64 processor
15112 lt_prog_compiler_static_CXX='-Bstatic'
15116 amigaos*)
15117 case $host_cpu in
15118 powerpc)
15119 # see comment about AmigaOS4 .so support
15120 lt_prog_compiler_pic_CXX='-fPIC'
15122 m68k)
15123 # FIXME: we need at least 68020 code to build shared libraries, but
15124 # adding the `-m68020' flag to GCC prevents building anything better,
15125 # like `-m68040'.
15126 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15128 esac
15131 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15132 # PIC is the default for these OSes.
15134 mingw* | cygwin* | os2* | pw32* | cegcc*)
15135 # This hack is so that the source file can tell whether it is being
15136 # built for inclusion in a dll (and should export symbols for example).
15137 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15138 # (--disable-auto-import) libraries
15139 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15141 darwin* | rhapsody*)
15142 # PIC is the default on this platform
15143 # Common symbols not allowed in MH_DYLIB files
15144 lt_prog_compiler_pic_CXX='-fno-common'
15146 *djgpp*)
15147 # DJGPP does not support shared libraries at all
15148 lt_prog_compiler_pic_CXX=
15150 haiku*)
15151 # PIC is the default for Haiku.
15152 # The "-static" flag exists, but is broken.
15153 lt_prog_compiler_static_CXX=
15155 interix[3-9]*)
15156 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15157 # Instead, we relocate shared libraries at runtime.
15159 sysv4*MP*)
15160 if test -d /usr/nec; then
15161 lt_prog_compiler_pic_CXX=-Kconform_pic
15164 hpux*)
15165 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15166 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15167 # sets the default TLS model and affects inlining.
15168 case $host_cpu in
15169 hppa*64*)
15172 lt_prog_compiler_pic_CXX='-fPIC'
15174 esac
15176 *qnx* | *nto*)
15177 # QNX uses GNU C++, but need to define -shared option too, otherwise
15178 # it will coredump.
15179 lt_prog_compiler_pic_CXX='-fPIC -shared'
15182 lt_prog_compiler_pic_CXX='-fPIC'
15184 esac
15185 else
15186 case $host_os in
15187 aix[4-9]*)
15188 # All AIX code is PIC.
15189 if test "$host_cpu" = ia64; then
15190 # AIX 5 now supports IA64 processor
15191 lt_prog_compiler_static_CXX='-Bstatic'
15192 else
15193 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15196 chorus*)
15197 case $cc_basename in
15198 cxch68*)
15199 # Green Hills C++ Compiler
15200 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
15202 esac
15204 dgux*)
15205 case $cc_basename in
15206 ec++*)
15207 lt_prog_compiler_pic_CXX='-KPIC'
15209 ghcx*)
15210 # Green Hills C++ Compiler
15211 lt_prog_compiler_pic_CXX='-pic'
15215 esac
15217 freebsd* | dragonfly*)
15218 # FreeBSD uses GNU C++
15220 hpux9* | hpux10* | hpux11*)
15221 case $cc_basename in
15222 CC*)
15223 lt_prog_compiler_wl_CXX='-Wl,'
15224 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15225 if test "$host_cpu" != ia64; then
15226 lt_prog_compiler_pic_CXX='+Z'
15229 aCC*)
15230 lt_prog_compiler_wl_CXX='-Wl,'
15231 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15232 case $host_cpu in
15233 hppa*64*|ia64*)
15234 # +Z the default
15237 lt_prog_compiler_pic_CXX='+Z'
15239 esac
15243 esac
15245 interix*)
15246 # This is c89, which is MS Visual C++ (no shared libs)
15247 # Anyone wants to do a port?
15249 irix5* | irix6* | nonstopux*)
15250 case $cc_basename in
15251 CC*)
15252 lt_prog_compiler_wl_CXX='-Wl,'
15253 lt_prog_compiler_static_CXX='-non_shared'
15254 # CC pic flag -KPIC is the default.
15258 esac
15260 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15261 case $cc_basename in
15262 KCC*)
15263 # KAI C++ Compiler
15264 lt_prog_compiler_wl_CXX='--backend -Wl,'
15265 lt_prog_compiler_pic_CXX='-fPIC'
15267 ecpc* )
15268 # old Intel C++ for x86_64 which still supported -KPIC.
15269 lt_prog_compiler_wl_CXX='-Wl,'
15270 lt_prog_compiler_pic_CXX='-KPIC'
15271 lt_prog_compiler_static_CXX='-static'
15273 icpc* )
15274 # Intel C++, used to be incompatible with GCC.
15275 # ICC 10 doesn't accept -KPIC any more.
15276 lt_prog_compiler_wl_CXX='-Wl,'
15277 lt_prog_compiler_pic_CXX='-fPIC'
15278 lt_prog_compiler_static_CXX='-static'
15280 pgCC* | pgcpp*)
15281 # Portland Group C++ compiler
15282 lt_prog_compiler_wl_CXX='-Wl,'
15283 lt_prog_compiler_pic_CXX='-fpic'
15284 lt_prog_compiler_static_CXX='-Bstatic'
15286 cxx*)
15287 # Compaq C++
15288 # Make sure the PIC flag is empty. It appears that all Alpha
15289 # Linux and Compaq Tru64 Unix objects are PIC.
15290 lt_prog_compiler_pic_CXX=
15291 lt_prog_compiler_static_CXX='-non_shared'
15293 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15294 # IBM XL 8.0, 9.0 on PPC and BlueGene
15295 lt_prog_compiler_wl_CXX='-Wl,'
15296 lt_prog_compiler_pic_CXX='-qpic'
15297 lt_prog_compiler_static_CXX='-qstaticlink'
15300 case `$CC -V 2>&1 | sed 5q` in
15301 *Sun\ C*)
15302 # Sun C++ 5.9
15303 lt_prog_compiler_pic_CXX='-KPIC'
15304 lt_prog_compiler_static_CXX='-Bstatic'
15305 lt_prog_compiler_wl_CXX='-Qoption ld '
15307 esac
15309 esac
15311 lynxos*)
15313 m88k*)
15315 mvs*)
15316 case $cc_basename in
15317 cxx*)
15318 lt_prog_compiler_pic_CXX='-W c,exportall'
15322 esac
15324 netbsd*)
15326 *qnx* | *nto*)
15327 # QNX uses GNU C++, but need to define -shared option too, otherwise
15328 # it will coredump.
15329 lt_prog_compiler_pic_CXX='-fPIC -shared'
15331 osf3* | osf4* | osf5*)
15332 case $cc_basename in
15333 KCC*)
15334 lt_prog_compiler_wl_CXX='--backend -Wl,'
15336 RCC*)
15337 # Rational C++ 2.4.1
15338 lt_prog_compiler_pic_CXX='-pic'
15340 cxx*)
15341 # Digital/Compaq C++
15342 lt_prog_compiler_wl_CXX='-Wl,'
15343 # Make sure the PIC flag is empty. It appears that all Alpha
15344 # Linux and Compaq Tru64 Unix objects are PIC.
15345 lt_prog_compiler_pic_CXX=
15346 lt_prog_compiler_static_CXX='-non_shared'
15350 esac
15352 psos*)
15354 solaris*)
15355 case $cc_basename in
15356 CC*)
15357 # Sun C++ 4.2, 5.x and Centerline C++
15358 lt_prog_compiler_pic_CXX='-KPIC'
15359 lt_prog_compiler_static_CXX='-Bstatic'
15360 lt_prog_compiler_wl_CXX='-Qoption ld '
15362 gcx*)
15363 # Green Hills C++ Compiler
15364 lt_prog_compiler_pic_CXX='-PIC'
15368 esac
15370 sunos4*)
15371 case $cc_basename in
15372 CC*)
15373 # Sun C++ 4.x
15374 lt_prog_compiler_pic_CXX='-pic'
15375 lt_prog_compiler_static_CXX='-Bstatic'
15377 lcc*)
15378 # Lucid
15379 lt_prog_compiler_pic_CXX='-pic'
15383 esac
15385 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15386 case $cc_basename in
15387 CC*)
15388 lt_prog_compiler_wl_CXX='-Wl,'
15389 lt_prog_compiler_pic_CXX='-KPIC'
15390 lt_prog_compiler_static_CXX='-Bstatic'
15392 esac
15394 tandem*)
15395 case $cc_basename in
15396 NCC*)
15397 # NonStop-UX NCC 3.20
15398 lt_prog_compiler_pic_CXX='-KPIC'
15402 esac
15404 vxworks*)
15407 lt_prog_compiler_can_build_shared_CXX=no
15409 esac
15412 case $host_os in
15413 # For platforms which do not support PIC, -DPIC is meaningless:
15414 *djgpp*)
15415 lt_prog_compiler_pic_CXX=
15418 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15420 esac
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15422 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15427 # Check to make sure the PIC flag actually works.
15429 if test -n "$lt_prog_compiler_pic_CXX"; then
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15431 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15432 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15433 $as_echo_n "(cached) " >&6
15434 else
15435 lt_cv_prog_compiler_pic_works_CXX=no
15436 ac_outfile=conftest.$ac_objext
15437 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15438 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15439 # Insert the option either (1) after the last *FLAGS variable, or
15440 # (2) before a word containing "conftest.", or (3) at the end.
15441 # Note that $ac_compile itself does not contain backslashes and begins
15442 # with a dollar sign (not a hyphen), so the echo should work correctly.
15443 # The option is referenced via a variable to avoid confusing sed.
15444 lt_compile=`echo "$ac_compile" | $SED \
15445 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15446 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15447 -e 's:$: $lt_compiler_flag:'`
15448 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15449 (eval "$lt_compile" 2>conftest.err)
15450 ac_status=$?
15451 cat conftest.err >&5
15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 if (exit $ac_status) && test -s "$ac_outfile"; then
15454 # The compiler can only warn and ignore the option if not recognized
15455 # So say no if there are warnings other than the usual output.
15456 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15457 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15458 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15459 lt_cv_prog_compiler_pic_works_CXX=yes
15462 $RM conftest*
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15466 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15468 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15469 case $lt_prog_compiler_pic_CXX in
15470 "" | " "*) ;;
15471 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15472 esac
15473 else
15474 lt_prog_compiler_pic_CXX=
15475 lt_prog_compiler_can_build_shared_CXX=no
15483 # Check to make sure the static flag actually works.
15485 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15487 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15488 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15489 $as_echo_n "(cached) " >&6
15490 else
15491 lt_cv_prog_compiler_static_works_CXX=no
15492 save_LDFLAGS="$LDFLAGS"
15493 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15494 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15495 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15496 # The linker can only warn and ignore the option if not recognized
15497 # So say no if there are warnings
15498 if test -s conftest.err; then
15499 # Append any errors to the config.log.
15500 cat conftest.err 1>&5
15501 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15502 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15503 if diff conftest.exp conftest.er2 >/dev/null; then
15504 lt_cv_prog_compiler_static_works_CXX=yes
15506 else
15507 lt_cv_prog_compiler_static_works_CXX=yes
15510 $RM -r conftest*
15511 LDFLAGS="$save_LDFLAGS"
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15515 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15517 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15519 else
15520 lt_prog_compiler_static_CXX=
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15527 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15528 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15529 $as_echo_n "(cached) " >&6
15530 else
15531 lt_cv_prog_compiler_c_o_CXX=no
15532 $RM -r conftest 2>/dev/null
15533 mkdir conftest
15534 cd conftest
15535 mkdir out
15536 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15538 lt_compiler_flag="-o out/conftest2.$ac_objext"
15539 # Insert the option either (1) after the last *FLAGS variable, or
15540 # (2) before a word containing "conftest.", or (3) at the end.
15541 # Note that $ac_compile itself does not contain backslashes and begins
15542 # with a dollar sign (not a hyphen), so the echo should work correctly.
15543 lt_compile=`echo "$ac_compile" | $SED \
15544 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15545 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15546 -e 's:$: $lt_compiler_flag:'`
15547 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15548 (eval "$lt_compile" 2>out/conftest.err)
15549 ac_status=$?
15550 cat out/conftest.err >&5
15551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15553 then
15554 # The compiler can only warn and ignore the option if not recognized
15555 # So say no if there are warnings
15556 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15557 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15558 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15559 lt_cv_prog_compiler_c_o_CXX=yes
15562 chmod u+w . 2>&5
15563 $RM conftest*
15564 # SGI C++ compiler will create directory out/ii_files/ for
15565 # template instantiation
15566 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15567 $RM out/* && rmdir out
15568 cd ..
15569 $RM -r conftest
15570 $RM conftest*
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15574 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15579 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15580 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15581 $as_echo_n "(cached) " >&6
15582 else
15583 lt_cv_prog_compiler_c_o_CXX=no
15584 $RM -r conftest 2>/dev/null
15585 mkdir conftest
15586 cd conftest
15587 mkdir out
15588 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15590 lt_compiler_flag="-o out/conftest2.$ac_objext"
15591 # Insert the option either (1) after the last *FLAGS variable, or
15592 # (2) before a word containing "conftest.", or (3) at the end.
15593 # Note that $ac_compile itself does not contain backslashes and begins
15594 # with a dollar sign (not a hyphen), so the echo should work correctly.
15595 lt_compile=`echo "$ac_compile" | $SED \
15596 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15597 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15598 -e 's:$: $lt_compiler_flag:'`
15599 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15600 (eval "$lt_compile" 2>out/conftest.err)
15601 ac_status=$?
15602 cat out/conftest.err >&5
15603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15605 then
15606 # The compiler can only warn and ignore the option if not recognized
15607 # So say no if there are warnings
15608 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15609 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15610 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15611 lt_cv_prog_compiler_c_o_CXX=yes
15614 chmod u+w . 2>&5
15615 $RM conftest*
15616 # SGI C++ compiler will create directory out/ii_files/ for
15617 # template instantiation
15618 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15619 $RM out/* && rmdir out
15620 cd ..
15621 $RM -r conftest
15622 $RM conftest*
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15626 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15631 hard_links="nottested"
15632 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15633 # do not overwrite the value of need_locks provided by the user
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15635 $as_echo_n "checking if we can lock with hard links... " >&6; }
15636 hard_links=yes
15637 $RM conftest*
15638 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15639 touch conftest.a
15640 ln conftest.a conftest.b 2>&5 || hard_links=no
15641 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15643 $as_echo "$hard_links" >&6; }
15644 if test "$hard_links" = no; then
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15646 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15647 need_locks=warn
15649 else
15650 need_locks=no
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15656 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15658 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15659 case $host_os in
15660 aix[4-9]*)
15661 # If we're using GNU nm, then we don't want the "-C" option.
15662 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15663 # Also, AIX nm treats weak defined symbols like other global defined
15664 # symbols, whereas GNU nm marks them as "W".
15665 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15666 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15667 else
15668 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15671 pw32*)
15672 export_symbols_cmds_CXX="$ltdll_cmds"
15674 cygwin* | mingw* | cegcc*)
15675 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15678 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15680 esac
15681 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15684 $as_echo "$ld_shlibs_CXX" >&6; }
15685 test "$ld_shlibs_CXX" = no && can_build_shared=no
15687 with_gnu_ld_CXX=$with_gnu_ld
15695 # Do we need to explicitly link libc?
15697 case "x$archive_cmds_need_lc_CXX" in
15698 x|xyes)
15699 # Assume -lc should be added
15700 archive_cmds_need_lc_CXX=yes
15702 if test "$enable_shared" = yes && test "$GCC" = yes; then
15703 case $archive_cmds_CXX in
15704 *'~'*)
15705 # FIXME: we may have to deal with multi-command sequences.
15707 '$CC '*)
15708 # Test whether the compiler implicitly links with -lc since on some
15709 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15710 # to ld, don't add -lc before -lgcc.
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15712 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15713 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
15714 $as_echo_n "(cached) " >&6
15715 else
15716 $RM conftest*
15717 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15720 (eval $ac_compile) 2>&5
15721 ac_status=$?
15722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15723 test $ac_status = 0; } 2>conftest.err; then
15724 soname=conftest
15725 lib=conftest
15726 libobjs=conftest.$ac_objext
15727 deplibs=
15728 wl=$lt_prog_compiler_wl_CXX
15729 pic_flag=$lt_prog_compiler_pic_CXX
15730 compiler_flags=-v
15731 linker_flags=-v
15732 verstring=
15733 output_objdir=.
15734 libname=conftest
15735 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15736 allow_undefined_flag_CXX=
15737 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15738 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15739 ac_status=$?
15740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15741 test $ac_status = 0; }
15742 then
15743 lt_cv_archive_cmds_need_lc_CXX=no
15744 else
15745 lt_cv_archive_cmds_need_lc_CXX=yes
15747 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15748 else
15749 cat conftest.err 1>&5
15751 $RM conftest*
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15755 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15756 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15758 esac
15761 esac
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15827 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15829 library_names_spec=
15830 libname_spec='lib$name'
15831 soname_spec=
15832 shrext_cmds=".so"
15833 postinstall_cmds=
15834 postuninstall_cmds=
15835 finish_cmds=
15836 finish_eval=
15837 shlibpath_var=
15838 shlibpath_overrides_runpath=unknown
15839 version_type=none
15840 dynamic_linker="$host_os ld.so"
15841 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15842 need_lib_prefix=unknown
15843 hardcode_into_libs=no
15845 # when you set need_version to no, make sure it does not cause -set_version
15846 # flags to be left without arguments
15847 need_version=unknown
15849 case $host_os in
15850 aix3*)
15851 version_type=linux
15852 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15853 shlibpath_var=LIBPATH
15855 # AIX 3 has no versioning support, so we append a major version to the name.
15856 soname_spec='${libname}${release}${shared_ext}$major'
15859 aix[4-9]*)
15860 version_type=linux
15861 need_lib_prefix=no
15862 need_version=no
15863 hardcode_into_libs=yes
15864 if test "$host_cpu" = ia64; then
15865 # AIX 5 supports IA64
15866 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15867 shlibpath_var=LD_LIBRARY_PATH
15868 else
15869 # With GCC up to 2.95.x, collect2 would create an import file
15870 # for dependence libraries. The import file would start with
15871 # the line `#! .'. This would cause the generated library to
15872 # depend on `.', always an invalid library. This was fixed in
15873 # development snapshots of GCC prior to 3.0.
15874 case $host_os in
15875 aix4 | aix4.[01] | aix4.[01].*)
15876 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15877 echo ' yes '
15878 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15880 else
15881 can_build_shared=no
15884 esac
15885 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15886 # soname into executable. Probably we can add versioning support to
15887 # collect2, so additional links can be useful in future.
15888 if test "$aix_use_runtimelinking" = yes; then
15889 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15890 # instead of lib<name>.a to let people know that these are not
15891 # typical AIX shared libraries.
15892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15893 else
15894 # We preserve .a as extension for shared libraries through AIX4.2
15895 # and later when we are not doing run time linking.
15896 library_names_spec='${libname}${release}.a $libname.a'
15897 soname_spec='${libname}${release}${shared_ext}$major'
15899 shlibpath_var=LIBPATH
15903 amigaos*)
15904 case $host_cpu in
15905 powerpc)
15906 # Since July 2007 AmigaOS4 officially supports .so libraries.
15907 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15910 m68k)
15911 library_names_spec='$libname.ixlibrary $libname.a'
15912 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15913 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15915 esac
15918 beos*)
15919 library_names_spec='${libname}${shared_ext}'
15920 dynamic_linker="$host_os ld.so"
15921 shlibpath_var=LIBRARY_PATH
15924 bsdi[45]*)
15925 version_type=linux
15926 need_version=no
15927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15928 soname_spec='${libname}${release}${shared_ext}$major'
15929 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15930 shlibpath_var=LD_LIBRARY_PATH
15931 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15932 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15933 # the default ld.so.conf also contains /usr/contrib/lib and
15934 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15935 # libtool to hard-code these into programs
15938 cygwin* | mingw* | pw32* | cegcc*)
15939 version_type=windows
15940 shrext_cmds=".dll"
15941 need_version=no
15942 need_lib_prefix=no
15944 case $GCC,$host_os in
15945 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15946 library_names_spec='$libname.dll.a'
15947 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15948 postinstall_cmds='base_file=`basename \${file}`~
15949 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15950 dldir=$destdir/`dirname \$dlpath`~
15951 test -d \$dldir || mkdir -p \$dldir~
15952 $install_prog $dir/$dlname \$dldir/$dlname~
15953 chmod a+x \$dldir/$dlname~
15954 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15955 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15957 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15958 dlpath=$dir/\$dldll~
15959 $RM \$dlpath'
15960 shlibpath_overrides_runpath=yes
15962 case $host_os in
15963 cygwin*)
15964 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15965 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15968 mingw* | cegcc*)
15969 # MinGW DLLs use traditional 'lib' prefix
15970 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15972 pw32*)
15973 # pw32 DLLs use 'pw' prefix rather than 'lib'
15974 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15976 esac
15980 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15982 esac
15983 dynamic_linker='Win32 ld.exe'
15984 # FIXME: first we should search . and the directory the executable is in
15985 shlibpath_var=PATH
15988 darwin* | rhapsody*)
15989 dynamic_linker="$host_os dyld"
15990 version_type=darwin
15991 need_lib_prefix=no
15992 need_version=no
15993 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15994 soname_spec='${libname}${release}${major}$shared_ext'
15995 shlibpath_overrides_runpath=yes
15996 shlibpath_var=DYLD_LIBRARY_PATH
15997 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15999 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16002 dgux*)
16003 version_type=linux
16004 need_lib_prefix=no
16005 need_version=no
16006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16007 soname_spec='${libname}${release}${shared_ext}$major'
16008 shlibpath_var=LD_LIBRARY_PATH
16011 freebsd* | dragonfly*)
16012 # DragonFly does not have aout. When/if they implement a new
16013 # versioning mechanism, adjust this.
16014 if test -x /usr/bin/objformat; then
16015 objformat=`/usr/bin/objformat`
16016 else
16017 case $host_os in
16018 freebsd[23].*) objformat=aout ;;
16019 *) objformat=elf ;;
16020 esac
16022 version_type=freebsd-$objformat
16023 case $version_type in
16024 freebsd-elf*)
16025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16026 need_version=no
16027 need_lib_prefix=no
16029 freebsd-*)
16030 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16031 need_version=yes
16033 esac
16034 shlibpath_var=LD_LIBRARY_PATH
16035 case $host_os in
16036 freebsd2.*)
16037 shlibpath_overrides_runpath=yes
16039 freebsd3.[01]* | freebsdelf3.[01]*)
16040 shlibpath_overrides_runpath=yes
16041 hardcode_into_libs=yes
16043 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16044 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16045 shlibpath_overrides_runpath=no
16046 hardcode_into_libs=yes
16048 *) # from 4.6 on, and DragonFly
16049 shlibpath_overrides_runpath=yes
16050 hardcode_into_libs=yes
16052 esac
16055 gnu*)
16056 version_type=linux
16057 need_lib_prefix=no
16058 need_version=no
16059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16060 soname_spec='${libname}${release}${shared_ext}$major'
16061 shlibpath_var=LD_LIBRARY_PATH
16062 hardcode_into_libs=yes
16065 haiku*)
16066 version_type=linux
16067 need_lib_prefix=no
16068 need_version=no
16069 dynamic_linker="$host_os runtime_loader"
16070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16071 soname_spec='${libname}${release}${shared_ext}$major'
16072 shlibpath_var=LIBRARY_PATH
16073 shlibpath_overrides_runpath=yes
16074 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16075 hardcode_into_libs=yes
16078 hpux9* | hpux10* | hpux11*)
16079 # Give a soname corresponding to the major version so that dld.sl refuses to
16080 # link against other versions.
16081 version_type=sunos
16082 need_lib_prefix=no
16083 need_version=no
16084 case $host_cpu in
16085 ia64*)
16086 shrext_cmds='.so'
16087 hardcode_into_libs=yes
16088 dynamic_linker="$host_os dld.so"
16089 shlibpath_var=LD_LIBRARY_PATH
16090 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16092 soname_spec='${libname}${release}${shared_ext}$major'
16093 if test "X$HPUX_IA64_MODE" = X32; then
16094 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16095 else
16096 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16098 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16100 hppa*64*)
16101 shrext_cmds='.sl'
16102 hardcode_into_libs=yes
16103 dynamic_linker="$host_os dld.sl"
16104 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16105 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16107 soname_spec='${libname}${release}${shared_ext}$major'
16108 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16109 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16112 shrext_cmds='.sl'
16113 dynamic_linker="$host_os dld.sl"
16114 shlibpath_var=SHLIB_PATH
16115 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16117 soname_spec='${libname}${release}${shared_ext}$major'
16119 esac
16120 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16121 postinstall_cmds='chmod 555 $lib'
16122 # or fails outright, so override atomically:
16123 install_override_mode=555
16126 interix[3-9]*)
16127 version_type=linux
16128 need_lib_prefix=no
16129 need_version=no
16130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16131 soname_spec='${libname}${release}${shared_ext}$major'
16132 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16133 shlibpath_var=LD_LIBRARY_PATH
16134 shlibpath_overrides_runpath=no
16135 hardcode_into_libs=yes
16138 irix5* | irix6* | nonstopux*)
16139 case $host_os in
16140 nonstopux*) version_type=nonstopux ;;
16142 if test "$lt_cv_prog_gnu_ld" = yes; then
16143 version_type=linux
16144 else
16145 version_type=irix
16146 fi ;;
16147 esac
16148 need_lib_prefix=no
16149 need_version=no
16150 soname_spec='${libname}${release}${shared_ext}$major'
16151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16152 case $host_os in
16153 irix5* | nonstopux*)
16154 libsuff= shlibsuff=
16157 case $LD in # libtool.m4 will add one of these switches to LD
16158 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16159 libsuff= shlibsuff= libmagic=32-bit;;
16160 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16161 libsuff=32 shlibsuff=N32 libmagic=N32;;
16162 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16163 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16164 *) libsuff= shlibsuff= libmagic=never-match;;
16165 esac
16167 esac
16168 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16169 shlibpath_overrides_runpath=no
16170 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16171 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16172 hardcode_into_libs=yes
16175 # No shared lib support for Linux oldld, aout, or coff.
16176 linux*oldld* | linux*aout* | linux*coff*)
16177 dynamic_linker=no
16180 # This must be Linux ELF.
16181 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16182 version_type=linux
16183 need_lib_prefix=no
16184 need_version=no
16185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16186 soname_spec='${libname}${release}${shared_ext}$major'
16187 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16188 shlibpath_var=LD_LIBRARY_PATH
16189 shlibpath_overrides_runpath=no
16191 # Some binutils ld are patched to set DT_RUNPATH
16192 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16193 $as_echo_n "(cached) " >&6
16194 else
16195 lt_cv_shlibpath_overrides_runpath=no
16196 save_LDFLAGS=$LDFLAGS
16197 save_libdir=$libdir
16198 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16199 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16200 if test x$gcc_no_link = xyes; then
16201 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16204 /* end confdefs.h. */
16207 main ()
16211 return 0;
16213 _ACEOF
16214 if ac_fn_cxx_try_link "$LINENO"; then :
16215 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16216 lt_cv_shlibpath_overrides_runpath=yes
16219 rm -f core conftest.err conftest.$ac_objext \
16220 conftest$ac_exeext conftest.$ac_ext
16221 LDFLAGS=$save_LDFLAGS
16222 libdir=$save_libdir
16226 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16228 # This implies no fast_install, which is unacceptable.
16229 # Some rework will be needed to allow for fast_install
16230 # before this can be enabled.
16231 hardcode_into_libs=yes
16233 # Append ld.so.conf contents to the search path
16234 if test -f /etc/ld.so.conf; then
16235 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
16236 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16239 # We used to test for /lib/ld.so.1 and disable shared libraries on
16240 # powerpc, because MkLinux only supported shared libraries with the
16241 # GNU dynamic linker. Since this was broken with cross compilers,
16242 # most powerpc-linux boxes support dynamic linking these days and
16243 # people can always --disable-shared, the test was removed, and we
16244 # assume the GNU/Linux dynamic linker is in use.
16245 dynamic_linker='GNU/Linux ld.so'
16248 netbsd*)
16249 version_type=sunos
16250 need_lib_prefix=no
16251 need_version=no
16252 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16254 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16255 dynamic_linker='NetBSD (a.out) ld.so'
16256 else
16257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16258 soname_spec='${libname}${release}${shared_ext}$major'
16259 dynamic_linker='NetBSD ld.elf_so'
16261 shlibpath_var=LD_LIBRARY_PATH
16262 shlibpath_overrides_runpath=yes
16263 hardcode_into_libs=yes
16266 newsos6)
16267 version_type=linux
16268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16269 shlibpath_var=LD_LIBRARY_PATH
16270 shlibpath_overrides_runpath=yes
16273 *nto* | *qnx*)
16274 version_type=qnx
16275 need_lib_prefix=no
16276 need_version=no
16277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16278 soname_spec='${libname}${release}${shared_ext}$major'
16279 shlibpath_var=LD_LIBRARY_PATH
16280 shlibpath_overrides_runpath=no
16281 hardcode_into_libs=yes
16282 dynamic_linker='ldqnx.so'
16285 openbsd*)
16286 version_type=sunos
16287 sys_lib_dlsearch_path_spec="/usr/lib"
16288 need_lib_prefix=no
16289 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16290 case $host_os in
16291 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16292 *) need_version=no ;;
16293 esac
16294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16295 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16296 shlibpath_var=LD_LIBRARY_PATH
16297 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16298 case $host_os in
16299 openbsd2.[89] | openbsd2.[89].*)
16300 shlibpath_overrides_runpath=no
16303 shlibpath_overrides_runpath=yes
16305 esac
16306 else
16307 shlibpath_overrides_runpath=yes
16311 os2*)
16312 libname_spec='$name'
16313 shrext_cmds=".dll"
16314 need_lib_prefix=no
16315 library_names_spec='$libname${shared_ext} $libname.a'
16316 dynamic_linker='OS/2 ld.exe'
16317 shlibpath_var=LIBPATH
16320 osf3* | osf4* | osf5*)
16321 version_type=osf
16322 need_lib_prefix=no
16323 need_version=no
16324 soname_spec='${libname}${release}${shared_ext}$major'
16325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16326 shlibpath_var=LD_LIBRARY_PATH
16327 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16328 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16331 rdos*)
16332 dynamic_linker=no
16335 solaris*)
16336 version_type=linux
16337 need_lib_prefix=no
16338 need_version=no
16339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16340 soname_spec='${libname}${release}${shared_ext}$major'
16341 shlibpath_var=LD_LIBRARY_PATH
16342 shlibpath_overrides_runpath=yes
16343 hardcode_into_libs=yes
16344 # ldd complains unless libraries are executable
16345 postinstall_cmds='chmod +x $lib'
16348 sunos4*)
16349 version_type=sunos
16350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16351 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16352 shlibpath_var=LD_LIBRARY_PATH
16353 shlibpath_overrides_runpath=yes
16354 if test "$with_gnu_ld" = yes; then
16355 need_lib_prefix=no
16357 need_version=yes
16360 sysv4 | sysv4.3*)
16361 version_type=linux
16362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16363 soname_spec='${libname}${release}${shared_ext}$major'
16364 shlibpath_var=LD_LIBRARY_PATH
16365 case $host_vendor in
16366 sni)
16367 shlibpath_overrides_runpath=no
16368 need_lib_prefix=no
16369 runpath_var=LD_RUN_PATH
16371 siemens)
16372 need_lib_prefix=no
16374 motorola)
16375 need_lib_prefix=no
16376 need_version=no
16377 shlibpath_overrides_runpath=no
16378 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16380 esac
16383 sysv4*MP*)
16384 if test -d /usr/nec ;then
16385 version_type=linux
16386 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16387 soname_spec='$libname${shared_ext}.$major'
16388 shlibpath_var=LD_LIBRARY_PATH
16392 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16393 version_type=freebsd-elf
16394 need_lib_prefix=no
16395 need_version=no
16396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16397 soname_spec='${libname}${release}${shared_ext}$major'
16398 shlibpath_var=LD_LIBRARY_PATH
16399 shlibpath_overrides_runpath=yes
16400 hardcode_into_libs=yes
16401 if test "$with_gnu_ld" = yes; then
16402 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16403 else
16404 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16405 case $host_os in
16406 sco3.2v5*)
16407 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16409 esac
16411 sys_lib_dlsearch_path_spec='/usr/lib'
16414 tpf*)
16415 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16416 version_type=linux
16417 need_lib_prefix=no
16418 need_version=no
16419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16420 shlibpath_var=LD_LIBRARY_PATH
16421 shlibpath_overrides_runpath=no
16422 hardcode_into_libs=yes
16425 uts4*)
16426 version_type=linux
16427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16428 soname_spec='${libname}${release}${shared_ext}$major'
16429 shlibpath_var=LD_LIBRARY_PATH
16433 dynamic_linker=no
16435 esac
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16437 $as_echo "$dynamic_linker" >&6; }
16438 test "$dynamic_linker" = no && can_build_shared=no
16440 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16441 if test "$GCC" = yes; then
16442 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16445 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16446 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16448 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16449 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16490 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16491 hardcode_action_CXX=
16492 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16493 test -n "$runpath_var_CXX" ||
16494 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16496 # We can hardcode non-existent directories.
16497 if test "$hardcode_direct_CXX" != no &&
16498 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16499 # have to relink, otherwise we might link with an installed library
16500 # when we should be linking with a yet-to-be-installed one
16501 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16502 test "$hardcode_minus_L_CXX" != no; then
16503 # Linking always hardcodes the temporary library directory.
16504 hardcode_action_CXX=relink
16505 else
16506 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16507 hardcode_action_CXX=immediate
16509 else
16510 # We cannot hardcode anything, or else we can only hardcode existing
16511 # directories.
16512 hardcode_action_CXX=unsupported
16514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16515 $as_echo "$hardcode_action_CXX" >&6; }
16517 if test "$hardcode_action_CXX" = relink ||
16518 test "$inherit_rpath_CXX" = yes; then
16519 # Fast installation is not supported
16520 enable_fast_install=no
16521 elif test "$shlibpath_overrides_runpath" = yes ||
16522 test "$enable_shared" = no; then
16523 # Fast installation is not necessary
16524 enable_fast_install=needless
16533 fi # test -n "$compiler"
16535 CC=$lt_save_CC
16536 LDCXX=$LD
16537 LD=$lt_save_LD
16538 GCC=$lt_save_GCC
16539 with_gnu_ld=$lt_save_with_gnu_ld
16540 lt_cv_path_LDCXX=$lt_cv_path_LD
16541 lt_cv_path_LD=$lt_save_path_LD
16542 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16543 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16544 fi # test "$_lt_caught_CXX_error" != yes
16546 ac_ext=c
16547 ac_cpp='$CPP $CPPFLAGS'
16548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16554 # Handle -Werror default case.
16555 if test "$ENABLE_WERROR" = default; then
16556 case "$host_os" in
16557 *linux*)
16558 if test "$GCC" = yes; then
16559 ENABLE_WERROR=yes
16562 esac
16565 if test "x${COMPILE_COLLECTIONS}" = xyes; then
16566 # Extract the first word of "perl", so it can be a program name with args.
16567 set dummy perl; ac_word=$2
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16569 $as_echo_n "checking for $ac_word... " >&6; }
16570 if test "${ac_cv_path_PERL+set}" = set; then :
16571 $as_echo_n "(cached) " >&6
16572 else
16573 case $PERL in
16574 [\\/]* | ?:[\\/]*)
16575 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
16578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16579 for as_dir in $PATH
16581 IFS=$as_save_IFS
16582 test -z "$as_dir" && as_dir=.
16583 for ac_exec_ext in '' $ac_executable_extensions; do
16584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16585 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
16586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16587 break 2
16589 done
16590 done
16591 IFS=$as_save_IFS
16594 esac
16596 PERL=$ac_cv_path_PERL
16597 if test -n "$PERL"; then
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
16599 $as_echo "$PERL" >&6; }
16600 else
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16602 $as_echo "no" >&6; }
16608 ac_config_files="$ac_config_files lib/mkcollections.pl"
16610 ac_config_commands="$ac_config_commands mkcollections.pl"
16614 if test "x${COMPILE_JNI}" = xyes; then
16618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __attribute__((,,))" >&5
16619 $as_echo_n "checking __attribute__((,,))... " >&6; }
16620 if test "${gcc_cv_c_gcc_attribute_supported+set}" = set; then :
16621 $as_echo_n "(cached) " >&6
16622 else
16624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16625 /* end confdefs.h. */
16628 main ()
16630 extern int testfunction(int x) __attribute__((,,))
16632 return 0;
16634 _ACEOF
16635 if ac_fn_c_try_compile "$LINENO"; then :
16636 gcc_cv_c_gcc_attribute_supported=yes
16637 else
16638 gcc_cv_c_gcc_attribute_supported=no
16640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16644 if test "x$gcc_cv_c_gcc_attribute_supported" = xyes; then
16645 true
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16647 $as_echo "yes" >&6; }
16649 $as_echo "#define HAVE_GNUC25_ATTRIB /**/" >>confdefs.h
16652 else
16653 true
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16655 $as_echo "no" >&6; }
16667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __attribute__((unused))" >&5
16668 $as_echo_n "checking __attribute__((unused))... " >&6; }
16669 if test "${gcc_cv_c_gcc_attribute_unused+set}" = set; then :
16670 $as_echo_n "(cached) " >&6
16671 else
16673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16674 /* end confdefs.h. */
16677 main ()
16679 extern int testfunction(int x) __attribute__((unused))
16681 return 0;
16683 _ACEOF
16684 if ac_fn_c_try_compile "$LINENO"; then :
16685 gcc_cv_c_gcc_attribute_unused=yes
16686 else
16687 gcc_cv_c_gcc_attribute_unused=no
16689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16693 if test "x$gcc_cv_c_gcc_attribute_unused" = xyes; then
16694 true
16695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16696 $as_echo "yes" >&6; }
16698 $as_echo "#define HAVE_GNUC25_UNUSED /**/" >>confdefs.h
16701 else
16702 true
16703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16704 $as_echo "no" >&6; }
16712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16713 $as_echo_n "checking for ANSI C header files... " >&6; }
16714 if test "${ac_cv_header_stdc+set}" = set; then :
16715 $as_echo_n "(cached) " >&6
16716 else
16717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16718 /* end confdefs.h. */
16719 #include <stdlib.h>
16720 #include <stdarg.h>
16721 #include <string.h>
16722 #include <float.h>
16725 main ()
16729 return 0;
16731 _ACEOF
16732 if ac_fn_c_try_compile "$LINENO"; then :
16733 ac_cv_header_stdc=yes
16734 else
16735 ac_cv_header_stdc=no
16737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16739 if test $ac_cv_header_stdc = yes; then
16740 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16742 /* end confdefs.h. */
16743 #include <string.h>
16745 _ACEOF
16746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16747 $EGREP "memchr" >/dev/null 2>&1; then :
16749 else
16750 ac_cv_header_stdc=no
16752 rm -f conftest*
16756 if test $ac_cv_header_stdc = yes; then
16757 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16759 /* end confdefs.h. */
16760 #include <stdlib.h>
16762 _ACEOF
16763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16764 $EGREP "free" >/dev/null 2>&1; then :
16766 else
16767 ac_cv_header_stdc=no
16769 rm -f conftest*
16773 if test $ac_cv_header_stdc = yes; then
16774 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16775 if test "$cross_compiling" = yes; then :
16777 else
16778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16779 /* end confdefs.h. */
16780 #include <ctype.h>
16781 #include <stdlib.h>
16782 #if ((' ' & 0x0FF) == 0x020)
16783 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16784 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16785 #else
16786 # define ISLOWER(c) \
16787 (('a' <= (c) && (c) <= 'i') \
16788 || ('j' <= (c) && (c) <= 'r') \
16789 || ('s' <= (c) && (c) <= 'z'))
16790 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16791 #endif
16793 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16795 main ()
16797 int i;
16798 for (i = 0; i < 256; i++)
16799 if (XOR (islower (i), ISLOWER (i))
16800 || toupper (i) != TOUPPER (i))
16801 return 2;
16802 return 0;
16804 _ACEOF
16805 if ac_fn_c_try_run "$LINENO"; then :
16807 else
16808 ac_cv_header_stdc=no
16810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16811 conftest.$ac_objext conftest.beam conftest.$ac_ext
16816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16817 $as_echo "$ac_cv_header_stdc" >&6; }
16818 if test $ac_cv_header_stdc = yes; then
16820 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16826 $as_echo_n "checking size of void *... " >&6; }
16827 if test "${ac_cv_sizeof_void_p+set}" = set; then :
16828 $as_echo_n "(cached) " >&6
16829 else
16830 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
16831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16832 /* end confdefs.h. */
16833 #include "confdefs.h"
16834 #include <sys/types.h>
16838 main ()
16840 switch (0) case 0: case (sizeof (void *) == $ac_size):;
16842 return 0;
16844 _ACEOF
16845 if ac_fn_c_try_compile "$LINENO"; then :
16846 ac_cv_sizeof_void_p=$ac_size
16848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16849 if test x$ac_cv_sizeof_void_p != x ; then break; fi
16850 done
16854 if test x$ac_cv_sizeof_void_p = x ; then
16855 as_fn_error "cannot determine a size for void *" "$LINENO" 5
16857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16858 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16860 cat >>confdefs.h <<_ACEOF
16861 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16862 _ACEOF
16866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16867 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16868 if test "${ac_cv_c_bigendian+set}" = set; then :
16869 $as_echo_n "(cached) " >&6
16870 else
16871 ac_cv_c_bigendian=unknown
16872 # See if sys/param.h defines the BYTE_ORDER macro.
16873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16874 /* end confdefs.h. */
16875 #include <sys/types.h>
16876 #include <sys/param.h>
16878 main ()
16881 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16882 bogus endian macros
16883 #endif
16885 return 0;
16887 _ACEOF
16888 if ac_fn_c_try_compile "$LINENO"; then :
16889 # It does; now see whether it defined to BIG_ENDIAN or not.
16890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16891 /* end confdefs.h. */
16892 #include <sys/types.h>
16893 #include <sys/param.h>
16895 main ()
16898 #if BYTE_ORDER != BIG_ENDIAN
16899 not big endian
16900 #endif
16902 return 0;
16904 _ACEOF
16905 if ac_fn_c_try_compile "$LINENO"; then :
16906 ac_cv_c_bigendian=yes
16907 else
16908 ac_cv_c_bigendian=no
16910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16913 if test $ac_cv_c_bigendian = unknown; then
16914 if test "$cross_compiling" = yes; then :
16915 echo $ac_n "cross-compiling... " 2>&6
16916 else
16917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16918 /* end confdefs.h. */
16919 main () {
16920 /* Are we little or big endian? From Harbison&Steele. */
16921 union
16923 long l;
16924 char c[sizeof (long)];
16925 } u;
16926 u.l = 1;
16927 exit (u.c[sizeof (long) - 1] == 1);
16929 _ACEOF
16930 if ac_fn_c_try_run "$LINENO"; then :
16931 ac_cv_c_bigendian=no
16932 else
16933 ac_cv_c_bigendian=yes
16935 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16936 conftest.$ac_objext conftest.beam conftest.$ac_ext
16941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16942 $as_echo "$ac_cv_c_bigendian" >&6; }
16943 if test $ac_cv_c_bigendian = unknown; then
16944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to probe for byte ordering" >&5
16945 $as_echo_n "checking to probe for byte ordering... " >&6; }
16947 cat >conftest.c <<EOF
16948 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16949 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16950 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
16951 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16952 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16953 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
16954 int main() { _ascii (); _ebcdic (); return 0; }
16956 if test -f conftest.c ; then
16957 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
16958 if test `grep -l BIGenDianSyS conftest.o` ; then
16959 echo $ac_n ' big endian probe OK, ' 1>&6
16960 ac_cv_c_bigendian=yes
16962 if test `grep -l LiTTleEnDian conftest.o` ; then
16963 echo $ac_n ' little endian probe OK, ' 1>&6
16964 if test $ac_cv_c_bigendian = yes ; then
16965 ac_cv_c_bigendian=unknown;
16966 else
16967 ac_cv_c_bigendian=no
16970 echo $ac_n 'guessing bigendian ... ' >&6
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16974 $as_echo "$ac_cv_c_bigendian" >&6; }
16976 if test $ac_cv_c_bigendian = yes; then
16978 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16981 $as_echo "#define HOST_WORDS_BIG_ENDIAN 1" >>confdefs.h
16983 BYTEORDER=4321
16984 else
16985 BYTEORDER=1234
16988 cat >>confdefs.h <<_ACEOF
16989 #define BYTEORDER $BYTEORDER
16990 _ACEOF
16992 if test $ac_cv_c_bigendian = unknown; then
16993 as_fn_error "unknown endianess - sorry, please pre-set ac_cv_c_bigendian" "$LINENO" 5
16997 for ac_header in unistd.h sys/types.h sys/config.h sys/ioctl.h \
16998 asm/ioctls.h \
16999 inttypes.h stdint.h utime.h sys/utime.h sys/filio.h \
17000 sys/time.h \
17001 sys/select.h \
17002 crt_externs.h \
17003 fcntl.h \
17004 sys/mman.h \
17005 magic.h \
17006 sys/event.h sys/epoll.h \
17007 ifaddrs.h \
17008 netinet/in_systm.h netinet/ip.h net/if.h \
17009 sys/loadavg.h sys/sockio.h
17010 do :
17011 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17012 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17013 eval as_val=\$$as_ac_Header
17014 if test "x$as_val" = x""yes; then :
17015 cat >>confdefs.h <<_ACEOF
17016 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17017 _ACEOF
17021 done
17024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17025 /* end confdefs.h. */
17026 #include <stdint.h>
17028 _ACEOF
17029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17030 $EGREP "uint32_t" >/dev/null 2>&1; then :
17032 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
17035 rm -f conftest*
17037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17038 /* end confdefs.h. */
17039 #include <inttypes.h>
17041 _ACEOF
17042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17043 $EGREP "uint32_t" >/dev/null 2>&1; then :
17045 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
17048 rm -f conftest*
17050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17051 /* end confdefs.h. */
17052 #include <sys/types.h>
17054 _ACEOF
17055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17056 $EGREP "u_int32_t" >/dev/null 2>&1; then :
17058 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
17061 rm -f conftest*
17063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17064 /* end confdefs.h. */
17065 #include <sys/config.h>
17067 _ACEOF
17068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17069 $EGREP "u_int32_t" >/dev/null 2>&1; then :
17071 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
17074 rm -f conftest*
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
17078 $as_echo_n "checking for library containing inet_pton... " >&6; }
17079 if test "${ac_cv_search_inet_pton+set}" = set; then :
17080 $as_echo_n "(cached) " >&6
17081 else
17082 ac_func_search_save_LIBS=$LIBS
17083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17084 /* end confdefs.h. */
17086 /* Override any GCC internal prototype to avoid an error.
17087 Use char because int might match the return type of a GCC
17088 builtin and then its argument prototype would still apply. */
17089 #ifdef __cplusplus
17090 extern "C"
17091 #endif
17092 char inet_pton ();
17094 main ()
17096 return inet_pton ();
17098 return 0;
17100 _ACEOF
17101 for ac_lib in '' nsl; do
17102 if test -z "$ac_lib"; then
17103 ac_res="none required"
17104 else
17105 ac_res=-l$ac_lib
17106 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17108 if test x$gcc_no_link = xyes; then
17109 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17111 if ac_fn_c_try_link "$LINENO"; then :
17112 ac_cv_search_inet_pton=$ac_res
17114 rm -f core conftest.err conftest.$ac_objext \
17115 conftest$ac_exeext
17116 if test "${ac_cv_search_inet_pton+set}" = set; then :
17117 break
17119 done
17120 if test "${ac_cv_search_inet_pton+set}" = set; then :
17122 else
17123 ac_cv_search_inet_pton=no
17125 rm conftest.$ac_ext
17126 LIBS=$ac_func_search_save_LIBS
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
17129 $as_echo "$ac_cv_search_inet_pton" >&6; }
17130 ac_res=$ac_cv_search_inet_pton
17131 if test "$ac_res" != no; then :
17132 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lsocket" >&5
17137 $as_echo_n "checking for gethostname in -lsocket... " >&6; }
17138 if test "${ac_cv_lib_socket_gethostname+set}" = set; then :
17139 $as_echo_n "(cached) " >&6
17140 else
17141 ac_check_lib_save_LIBS=$LIBS
17142 LIBS="-lsocket $LIBS"
17143 if test x$gcc_no_link = xyes; then
17144 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17147 /* end confdefs.h. */
17149 /* Override any GCC internal prototype to avoid an error.
17150 Use char because int might match the return type of a GCC
17151 builtin and then its argument prototype would still apply. */
17152 #ifdef __cplusplus
17153 extern "C"
17154 #endif
17155 char gethostname ();
17157 main ()
17159 return gethostname ();
17161 return 0;
17163 _ACEOF
17164 if ac_fn_c_try_link "$LINENO"; then :
17165 ac_cv_lib_socket_gethostname=yes
17166 else
17167 ac_cv_lib_socket_gethostname=no
17169 rm -f core conftest.err conftest.$ac_objext \
17170 conftest$ac_exeext conftest.$ac_ext
17171 LIBS=$ac_check_lib_save_LIBS
17173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostname" >&5
17174 $as_echo "$ac_cv_lib_socket_gethostname" >&6; }
17175 if test "x$ac_cv_lib_socket_gethostname" = x""yes; then :
17176 cat >>confdefs.h <<_ACEOF
17177 #define HAVE_LIBSOCKET 1
17178 _ACEOF
17180 LIBS="-lsocket $LIBS"
17184 for ac_func in ftruncate fsync select \
17185 gethostname socket strerror fork pipe execve open close \
17186 lseek fstat read readv write writev htonl memset htons connect \
17187 getsockname getpeername bind listen accept \
17188 recvfrom send sendto setsockopt getsockopt time mktime \
17189 gethostbyname_r localtime_r \
17190 strerror_r \
17191 fcntl \
17192 statvfs \
17193 mmap munmap mincore msync madvise getpagesize sysconf \
17194 lstat readlink \
17195 inet_aton inet_addr inet_pton \
17196 getifaddrs kqueue kevent epoll_create \
17197 getloadavg
17198 do :
17199 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17200 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17201 eval as_val=\$$as_ac_var
17202 if test "x$as_val" = x""yes; then :
17203 cat >>confdefs.h <<_ACEOF
17204 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17205 _ACEOF
17208 done
17211 LIBMAGIC=
17212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
17213 $as_echo_n "checking for magic_open in -lmagic... " >&6; }
17214 if test "${ac_cv_lib_magic_magic_open+set}" = set; then :
17215 $as_echo_n "(cached) " >&6
17216 else
17217 ac_check_lib_save_LIBS=$LIBS
17218 LIBS="-lmagic $LIBS"
17219 if test x$gcc_no_link = xyes; then
17220 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17223 /* end confdefs.h. */
17225 /* Override any GCC internal prototype to avoid an error.
17226 Use char because int might match the return type of a GCC
17227 builtin and then its argument prototype would still apply. */
17228 #ifdef __cplusplus
17229 extern "C"
17230 #endif
17231 char magic_open ();
17233 main ()
17235 return magic_open ();
17237 return 0;
17239 _ACEOF
17240 if ac_fn_c_try_link "$LINENO"; then :
17241 ac_cv_lib_magic_magic_open=yes
17242 else
17243 ac_cv_lib_magic_magic_open=no
17245 rm -f core conftest.err conftest.$ac_objext \
17246 conftest$ac_exeext conftest.$ac_ext
17247 LIBS=$ac_check_lib_save_LIBS
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
17250 $as_echo "$ac_cv_lib_magic_magic_open" >&6; }
17251 if test "x$ac_cv_lib_magic_magic_open" = x""yes; then :
17252 LIBMAGIC=-lmagic
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
17258 $as_echo_n "checking whether struct sockaddr_in6 is in netinet/in.h... " >&6; }
17259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17260 /* end confdefs.h. */
17261 #include <netinet/in.h>
17263 main ()
17265 struct sockaddr_in6 addr6;
17267 return 0;
17269 _ACEOF
17270 if ac_fn_c_try_compile "$LINENO"; then :
17272 $as_echo "#define HAVE_INET6 1" >>confdefs.h
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17275 $as_echo "yes" >&6; }
17276 else
17277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17278 $as_echo "no" >&6; }
17280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
17283 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
17284 if test "${ac_cv_header_time+set}" = set; then :
17285 $as_echo_n "(cached) " >&6
17286 else
17287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17288 /* end confdefs.h. */
17289 #include <sys/types.h>
17290 #include <sys/time.h>
17291 #include <time.h>
17294 main ()
17296 if ((struct tm *) 0)
17297 return 0;
17299 return 0;
17301 _ACEOF
17302 if ac_fn_c_try_compile "$LINENO"; then :
17303 ac_cv_header_time=yes
17304 else
17305 ac_cv_header_time=no
17307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
17310 $as_echo "$ac_cv_header_time" >&6; }
17311 if test $ac_cv_header_time = yes; then
17313 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
17318 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
17319 if test "${ac_cv_struct_tm+set}" = set; then :
17320 $as_echo_n "(cached) " >&6
17321 else
17322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17323 /* end confdefs.h. */
17324 #include <sys/types.h>
17325 #include <time.h>
17328 main ()
17330 struct tm tm;
17331 int *p = &tm.tm_sec;
17332 return !p;
17334 return 0;
17336 _ACEOF
17337 if ac_fn_c_try_compile "$LINENO"; then :
17338 ac_cv_struct_tm=time.h
17339 else
17340 ac_cv_struct_tm=sys/time.h
17342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
17345 $as_echo "$ac_cv_struct_tm" >&6; }
17346 if test $ac_cv_struct_tm = sys/time.h; then
17348 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
17352 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
17353 #include <$ac_cv_struct_tm>
17356 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
17358 cat >>confdefs.h <<_ACEOF
17359 #define HAVE_STRUCT_TM_TM_ZONE 1
17360 _ACEOF
17365 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
17367 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
17369 else
17370 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
17372 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
17373 ac_have_decl=1
17374 else
17375 ac_have_decl=0
17378 cat >>confdefs.h <<_ACEOF
17379 #define HAVE_DECL_TZNAME $ac_have_decl
17380 _ACEOF
17382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
17383 $as_echo_n "checking for tzname... " >&6; }
17384 if test "${ac_cv_var_tzname+set}" = set; then :
17385 $as_echo_n "(cached) " >&6
17386 else
17387 if test x$gcc_no_link = xyes; then
17388 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17391 /* end confdefs.h. */
17392 #include <time.h>
17393 #if !HAVE_DECL_TZNAME
17394 extern char *tzname[];
17395 #endif
17398 main ()
17400 return tzname[0][0];
17402 return 0;
17404 _ACEOF
17405 if ac_fn_c_try_link "$LINENO"; then :
17406 ac_cv_var_tzname=yes
17407 else
17408 ac_cv_var_tzname=no
17410 rm -f core conftest.err conftest.$ac_objext \
17411 conftest$ac_exeext conftest.$ac_ext
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
17414 $as_echo "$ac_cv_var_tzname" >&6; }
17415 if test $ac_cv_var_tzname = yes; then
17417 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
17423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
17424 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
17425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17426 /* end confdefs.h. */
17427 #include <time.h>
17429 main ()
17431 struct tm tim; tim.tm_gmtoff = 0;
17433 return 0;
17435 _ACEOF
17436 if ac_fn_c_try_compile "$LINENO"; then :
17438 $as_echo "#define STRUCT_TM_HAS_GMTOFF 1" >>confdefs.h
17440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17441 $as_echo "yes" >&6; }
17442 else
17443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17444 $as_echo "no" >&6; }
17445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global timezone variable" >&5
17446 $as_echo_n "checking for global timezone variable... " >&6; }
17447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17448 /* end confdefs.h. */
17449 #include <time.h>
17451 main ()
17453 void i(){long z2 = 2*timezone;}
17455 return 0;
17457 _ACEOF
17458 if ac_fn_c_try_compile "$LINENO"; then :
17460 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
17462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17463 $as_echo "yes" >&6; }
17464 else
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17466 $as_echo "no" >&6; }
17467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global _timezone variable" >&5
17468 $as_echo_n "checking for global _timezone variable... " >&6; }
17469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17470 /* end confdefs.h. */
17471 #include <time.h>
17473 main ()
17475 long z2 = _timezone;
17477 return 0;
17479 _ACEOF
17480 if ac_fn_c_try_compile "$LINENO"; then :
17482 $as_echo "#define HAVE_UNDERSCORE_TIMEZONE 1" >>confdefs.h
17484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17485 $as_echo "yes" >&6; }
17486 else
17487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17488 $as_echo "no" >&6; }
17490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17497 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17498 if test "${ac_cv_c_const+set}" = set; then :
17499 $as_echo_n "(cached) " >&6
17500 else
17501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17502 /* end confdefs.h. */
17505 main ()
17507 /* FIXME: Include the comments suggested by Paul. */
17508 #ifndef __cplusplus
17509 /* Ultrix mips cc rejects this. */
17510 typedef int charset[2];
17511 const charset cs;
17512 /* SunOS 4.1.1 cc rejects this. */
17513 char const *const *pcpcc;
17514 char **ppc;
17515 /* NEC SVR4.0.2 mips cc rejects this. */
17516 struct point {int x, y;};
17517 static struct point const zero = {0,0};
17518 /* AIX XL C 1.02.0.0 rejects this.
17519 It does not let you subtract one const X* pointer from another in
17520 an arm of an if-expression whose if-part is not a constant
17521 expression */
17522 const char *g = "string";
17523 pcpcc = &g + (g ? g-g : 0);
17524 /* HPUX 7.0 cc rejects these. */
17525 ++pcpcc;
17526 ppc = (char**) pcpcc;
17527 pcpcc = (char const *const *) ppc;
17528 { /* SCO 3.2v4 cc rejects this. */
17529 char *t;
17530 char const *s = 0 ? (char *) 0 : (char const *) 0;
17532 *t++ = 0;
17533 if (s) return 0;
17535 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17536 int x[] = {25, 17};
17537 const int *foo = &x[0];
17538 ++foo;
17540 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17541 typedef const int *iptr;
17542 iptr p = 0;
17543 ++p;
17545 { /* AIX XL C 1.02.0.0 rejects this saying
17546 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17547 struct s { int j; const int *ap[3]; };
17548 struct s *b; b->j = 5;
17550 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17551 const int foo = 10;
17552 if (!foo) return 0;
17554 return !cs[0] && !zero.x;
17555 #endif
17558 return 0;
17560 _ACEOF
17561 if ac_fn_c_try_compile "$LINENO"; then :
17562 ac_cv_c_const=yes
17563 else
17564 ac_cv_c_const=no
17566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17569 $as_echo "$ac_cv_c_const" >&6; }
17570 if test $ac_cv_c_const = no; then
17572 $as_echo "#define const /**/" >>confdefs.h
17576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17577 $as_echo_n "checking for inline... " >&6; }
17578 if test "${ac_cv_c_inline+set}" = set; then :
17579 $as_echo_n "(cached) " >&6
17580 else
17581 ac_cv_c_inline=no
17582 for ac_kw in inline __inline__ __inline; do
17583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17584 /* end confdefs.h. */
17585 #ifndef __cplusplus
17586 typedef int foo_t;
17587 static $ac_kw foo_t static_foo () {return 0; }
17588 $ac_kw foo_t foo () {return 0; }
17589 #endif
17591 _ACEOF
17592 if ac_fn_c_try_compile "$LINENO"; then :
17593 ac_cv_c_inline=$ac_kw
17595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17596 test "$ac_cv_c_inline" != no && break
17597 done
17600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17601 $as_echo "$ac_cv_c_inline" >&6; }
17603 case $ac_cv_c_inline in
17604 inline | yes) ;;
17606 case $ac_cv_c_inline in
17607 no) ac_val=;;
17608 *) ac_val=$ac_cv_c_inline;;
17609 esac
17610 cat >>confdefs.h <<_ACEOF
17611 #ifndef __cplusplus
17612 #define inline $ac_val
17613 #endif
17614 _ACEOF
17616 esac
17618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
17619 $as_echo_n "checking for __attribute__... " >&6; }
17620 if test "${ac_cv_c_attribute+set}" = set; then :
17621 $as_echo_n "(cached) " >&6
17622 else
17624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17625 /* end confdefs.h. */
17626 void foo(void) __attribute__ ((__noreturn__));
17628 _ACEOF
17629 if ac_fn_c_try_compile "$LINENO"; then :
17630 ac_cv_c_attribute=yes
17631 else
17632 ac_cv_c_attribute=no
17635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_attribute" >&5
17639 $as_echo "$ac_cv_c_attribute" >&6; }
17641 case $ac_cv_c_attribute in
17642 yes) ;;
17644 cat >>confdefs.h <<_ACEOF
17645 #define __attribute__(x) /* nothing */
17646 _ACEOF
17648 esac
17652 ac_ext=c
17653 ac_cpp='$CPP $CPPFLAGS'
17654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() takes" >&5
17659 $as_echo_n "checking how many arguments gethostbyname_r() takes... " >&6; }
17661 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then :
17662 $as_echo_n "(cached) " >&6
17663 else
17666 ################################################################
17668 ac_cv_func_which_gethostbyname_r=unknown
17671 # ONE ARGUMENT (sanity check)
17674 # This should fail, as there is no variant of gethostbyname_r() that takes
17675 # a single argument. If it actually compiles, then we can assume that
17676 # netdb.h is not declaring the function, and the compiler is thereby
17677 # assuming an implicit prototype. In which case, we're out of luck.
17679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17680 /* end confdefs.h. */
17681 #include <netdb.h>
17683 main ()
17686 char *name = "www.gnu.org";
17687 (void)gethostbyname_r(name) /* ; */
17690 return 0;
17692 _ACEOF
17693 if ac_fn_c_try_compile "$LINENO"; then :
17694 ac_cv_func_which_gethostbyname_r=no
17696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17699 # SIX ARGUMENTS
17700 # (e.g. Linux)
17703 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
17705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17706 /* end confdefs.h. */
17707 #include <netdb.h>
17709 main ()
17712 char *name = "www.gnu.org";
17713 struct hostent ret, *retp;
17714 char buf[1024];
17715 int buflen = 1024;
17716 int my_h_errno;
17717 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
17720 return 0;
17722 _ACEOF
17723 if ac_fn_c_try_compile "$LINENO"; then :
17724 ac_cv_func_which_gethostbyname_r=six
17726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17731 # FIVE ARGUMENTS
17732 # (e.g. Solaris)
17735 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
17737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17738 /* end confdefs.h. */
17739 #include <netdb.h>
17741 main ()
17744 char *name = "www.gnu.org";
17745 struct hostent ret;
17746 char buf[1024];
17747 int buflen = 1024;
17748 int my_h_errno;
17749 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
17752 return 0;
17754 _ACEOF
17755 if ac_fn_c_try_compile "$LINENO"; then :
17756 ac_cv_func_which_gethostbyname_r=five
17758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17763 # THREE ARGUMENTS
17764 # (e.g. AIX, HP-UX, Tru64)
17767 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
17769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17770 /* end confdefs.h. */
17771 #include <netdb.h>
17773 main ()
17776 char *name = "www.gnu.org";
17777 struct hostent ret;
17778 struct hostent_data data;
17779 (void)gethostbyname_r(name, &ret, &data) /* ; */
17782 return 0;
17784 _ACEOF
17785 if ac_fn_c_try_compile "$LINENO"; then :
17786 ac_cv_func_which_gethostbyname_r=three
17788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17792 ################################################################
17797 case "$ac_cv_func_which_gethostbyname_r" in
17798 three)
17799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: three" >&5
17800 $as_echo "three" >&6; }
17802 $as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_3 1" >>confdefs.h
17806 five)
17807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: five" >&5
17808 $as_echo "five" >&6; }
17810 $as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_5 1" >>confdefs.h
17814 six)
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: six" >&5
17816 $as_echo "six" >&6; }
17818 $as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_6 1" >>confdefs.h
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find function declaration in netdb.h" >&5
17824 $as_echo "cannot find function declaration in netdb.h" >&6; }
17827 unknown)
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't tell" >&5
17829 $as_echo "can't tell" >&6; }
17833 as_fn_error "internal error" "$LINENO" 5
17835 esac
17837 ac_ext=c
17838 ac_cpp='$CPP $CPPFLAGS'
17839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17847 if test "X$prefix" = "XNONE"; then
17848 acl_final_prefix="$ac_default_prefix"
17849 else
17850 acl_final_prefix="$prefix"
17852 if test "X$exec_prefix" = "XNONE"; then
17853 acl_final_exec_prefix='${prefix}'
17854 else
17855 acl_final_exec_prefix="$exec_prefix"
17857 acl_save_prefix="$prefix"
17858 prefix="$acl_final_prefix"
17859 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17860 prefix="$acl_save_prefix"
17863 # Check whether --with-gnu-ld was given.
17864 if test "${with_gnu_ld+set}" = set; then :
17865 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17866 else
17867 with_gnu_ld=no
17870 # Prepare PATH_SEPARATOR.
17871 # The user is always right.
17872 if test "${PATH_SEPARATOR+set}" != set; then
17873 echo "#! /bin/sh" >conf$$.sh
17874 echo "exit 0" >>conf$$.sh
17875 chmod +x conf$$.sh
17876 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17877 PATH_SEPARATOR=';'
17878 else
17879 PATH_SEPARATOR=:
17881 rm -f conf$$.sh
17883 ac_prog=ld
17884 if test "$GCC" = yes; then
17885 # Check if gcc -print-prog-name=ld gives a path.
17886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17887 $as_echo_n "checking for ld used by GCC... " >&6; }
17888 case $host in
17889 *-*-mingw*)
17890 # gcc leaves a trailing carriage return which upsets mingw
17891 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17893 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17894 esac
17895 case $ac_prog in
17896 # Accept absolute paths.
17897 [\\/]* | [A-Za-z]:[\\/]*)
17898 re_direlt='/[^/][^/]*/\.\./'
17899 # Canonicalize the path of ld
17900 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17901 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17902 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17903 done
17904 test -z "$LD" && LD="$ac_prog"
17907 # If it fails, then pretend we aren't using GCC.
17908 ac_prog=ld
17911 # If it is relative, then search for the first ld in PATH.
17912 with_gnu_ld=unknown
17914 esac
17915 elif test "$with_gnu_ld" = yes; then
17916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17917 $as_echo_n "checking for GNU ld... " >&6; }
17918 else
17919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17920 $as_echo_n "checking for non-GNU ld... " >&6; }
17922 if test "${acl_cv_path_LD+set}" = set; then :
17923 $as_echo_n "(cached) " >&6
17924 else
17925 if test -z "$LD"; then
17926 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17927 for ac_dir in $PATH; do
17928 test -z "$ac_dir" && ac_dir=.
17929 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17930 acl_cv_path_LD="$ac_dir/$ac_prog"
17931 # Check to see if the program is GNU ld. I'd rather use --version,
17932 # but apparently some GNU ld's only accept -v.
17933 # Break only if it was the GNU/non-GNU ld that we prefer.
17934 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
17935 test "$with_gnu_ld" != no && break
17936 else
17937 test "$with_gnu_ld" != yes && break
17940 done
17941 IFS="$ac_save_ifs"
17942 else
17943 acl_cv_path_LD="$LD" # Let the user override the test with a path.
17947 LD="$acl_cv_path_LD"
17948 if test -n "$LD"; then
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17950 $as_echo "$LD" >&6; }
17951 else
17952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17953 $as_echo "no" >&6; }
17955 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
17956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17957 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17958 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
17959 $as_echo_n "(cached) " >&6
17960 else
17961 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17962 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
17963 acl_cv_prog_gnu_ld=yes
17964 else
17965 acl_cv_prog_gnu_ld=no
17968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17969 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17970 with_gnu_ld=$acl_cv_prog_gnu_ld
17974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17975 $as_echo_n "checking for shared library run path origin... " >&6; }
17976 if test "${acl_cv_rpath+set}" = set; then :
17977 $as_echo_n "(cached) " >&6
17978 else
17980 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17981 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17982 . ./conftest.sh
17983 rm -f ./conftest.sh
17984 acl_cv_rpath=done
17987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17988 $as_echo "$acl_cv_rpath" >&6; }
17989 wl="$acl_cv_wl"
17990 libext="$acl_cv_libext"
17991 shlibext="$acl_cv_shlibext"
17992 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17993 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17994 hardcode_direct="$acl_cv_hardcode_direct"
17995 hardcode_minus_L="$acl_cv_hardcode_minus_L"
17996 # Check whether --enable-rpath was given.
17997 if test "${enable_rpath+set}" = set; then :
17998 enableval=$enable_rpath; :
17999 else
18000 enable_rpath=yes
18010 use_additional=yes
18012 acl_save_prefix="$prefix"
18013 prefix="$acl_final_prefix"
18014 acl_save_exec_prefix="$exec_prefix"
18015 exec_prefix="$acl_final_exec_prefix"
18017 eval additional_includedir=\"$includedir\"
18018 eval additional_libdir=\"$libdir\"
18020 exec_prefix="$acl_save_exec_prefix"
18021 prefix="$acl_save_prefix"
18024 # Check whether --with-libiconv-prefix was given.
18025 if test "${with_libiconv_prefix+set}" = set; then :
18026 withval=$with_libiconv_prefix;
18027 if test "X$withval" = "Xno"; then
18028 use_additional=no
18029 else
18030 if test "X$withval" = "X"; then
18032 acl_save_prefix="$prefix"
18033 prefix="$acl_final_prefix"
18034 acl_save_exec_prefix="$exec_prefix"
18035 exec_prefix="$acl_final_exec_prefix"
18037 eval additional_includedir=\"$includedir\"
18038 eval additional_libdir=\"$libdir\"
18040 exec_prefix="$acl_save_exec_prefix"
18041 prefix="$acl_save_prefix"
18043 else
18044 additional_includedir="$withval/include"
18045 additional_libdir="$withval/lib"
18051 LIBICONV=
18052 LTLIBICONV=
18053 INCICONV=
18054 rpathdirs=
18055 ltrpathdirs=
18056 names_already_handled=
18057 names_next_round='iconv '
18058 while test -n "$names_next_round"; do
18059 names_this_round="$names_next_round"
18060 names_next_round=
18061 for name in $names_this_round; do
18062 already_handled=
18063 for n in $names_already_handled; do
18064 if test "$n" = "$name"; then
18065 already_handled=yes
18066 break
18068 done
18069 if test -z "$already_handled"; then
18070 names_already_handled="$names_already_handled $name"
18071 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18072 eval value=\"\$HAVE_LIB$uppername\"
18073 if test -n "$value"; then
18074 if test "$value" = yes; then
18075 eval value=\"\$LIB$uppername\"
18076 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
18077 eval value=\"\$LTLIB$uppername\"
18078 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
18079 else
18082 else
18083 found_dir=
18084 found_la=
18085 found_so=
18086 found_a=
18087 if test $use_additional = yes; then
18088 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18089 found_dir="$additional_libdir"
18090 found_so="$additional_libdir/lib$name.$shlibext"
18091 if test -f "$additional_libdir/lib$name.la"; then
18092 found_la="$additional_libdir/lib$name.la"
18094 else
18095 if test -f "$additional_libdir/lib$name.$libext"; then
18096 found_dir="$additional_libdir"
18097 found_a="$additional_libdir/lib$name.$libext"
18098 if test -f "$additional_libdir/lib$name.la"; then
18099 found_la="$additional_libdir/lib$name.la"
18104 if test "X$found_dir" = "X"; then
18105 for x in $LDFLAGS $LTLIBICONV; do
18107 acl_save_prefix="$prefix"
18108 prefix="$acl_final_prefix"
18109 acl_save_exec_prefix="$exec_prefix"
18110 exec_prefix="$acl_final_exec_prefix"
18111 eval x=\"$x\"
18112 exec_prefix="$acl_save_exec_prefix"
18113 prefix="$acl_save_prefix"
18115 case "$x" in
18116 -L*)
18117 dir=`echo "X$x" | sed -e 's/^X-L//'`
18118 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18119 found_dir="$dir"
18120 found_so="$dir/lib$name.$shlibext"
18121 if test -f "$dir/lib$name.la"; then
18122 found_la="$dir/lib$name.la"
18124 else
18125 if test -f "$dir/lib$name.$libext"; then
18126 found_dir="$dir"
18127 found_a="$dir/lib$name.$libext"
18128 if test -f "$dir/lib$name.la"; then
18129 found_la="$dir/lib$name.la"
18134 esac
18135 if test "X$found_dir" != "X"; then
18136 break
18138 done
18140 if test "X$found_dir" != "X"; then
18141 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
18142 if test "X$found_so" != "X"; then
18143 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18144 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18145 else
18146 haveit=
18147 for x in $ltrpathdirs; do
18148 if test "X$x" = "X$found_dir"; then
18149 haveit=yes
18150 break
18152 done
18153 if test -z "$haveit"; then
18154 ltrpathdirs="$ltrpathdirs $found_dir"
18156 if test "$hardcode_direct" = yes; then
18157 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18158 else
18159 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18160 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18161 haveit=
18162 for x in $rpathdirs; do
18163 if test "X$x" = "X$found_dir"; then
18164 haveit=yes
18165 break
18167 done
18168 if test -z "$haveit"; then
18169 rpathdirs="$rpathdirs $found_dir"
18171 else
18172 haveit=
18173 for x in $LDFLAGS $LIBICONV; do
18175 acl_save_prefix="$prefix"
18176 prefix="$acl_final_prefix"
18177 acl_save_exec_prefix="$exec_prefix"
18178 exec_prefix="$acl_final_exec_prefix"
18179 eval x=\"$x\"
18180 exec_prefix="$acl_save_exec_prefix"
18181 prefix="$acl_save_prefix"
18183 if test "X$x" = "X-L$found_dir"; then
18184 haveit=yes
18185 break
18187 done
18188 if test -z "$haveit"; then
18189 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
18191 if test "$hardcode_minus_L" != no; then
18192 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18193 else
18194 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18199 else
18200 if test "X$found_a" != "X"; then
18201 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
18202 else
18203 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
18206 additional_includedir=
18207 case "$found_dir" in
18208 */lib | */lib/)
18209 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18210 additional_includedir="$basedir/include"
18212 esac
18213 if test "X$additional_includedir" != "X"; then
18214 if test "X$additional_includedir" != "X/usr/include"; then
18215 haveit=
18216 if test "X$additional_includedir" = "X/usr/local/include"; then
18217 if test -n "$GCC"; then
18218 case $host_os in
18219 linux*) haveit=yes;;
18220 esac
18223 if test -z "$haveit"; then
18224 for x in $CPPFLAGS $INCICONV; do
18226 acl_save_prefix="$prefix"
18227 prefix="$acl_final_prefix"
18228 acl_save_exec_prefix="$exec_prefix"
18229 exec_prefix="$acl_final_exec_prefix"
18230 eval x=\"$x\"
18231 exec_prefix="$acl_save_exec_prefix"
18232 prefix="$acl_save_prefix"
18234 if test "X$x" = "X-I$additional_includedir"; then
18235 haveit=yes
18236 break
18238 done
18239 if test -z "$haveit"; then
18240 if test -d "$additional_includedir"; then
18241 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
18247 if test -n "$found_la"; then
18248 save_libdir="$libdir"
18249 case "$found_la" in
18250 */* | *\\*) . "$found_la" ;;
18251 *) . "./$found_la" ;;
18252 esac
18253 libdir="$save_libdir"
18254 for dep in $dependency_libs; do
18255 case "$dep" in
18256 -L*)
18257 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18258 if test "X$additional_libdir" != "X/usr/lib"; then
18259 haveit=
18260 if test "X$additional_libdir" = "X/usr/local/lib"; then
18261 if test -n "$GCC"; then
18262 case $host_os in
18263 linux*) haveit=yes;;
18264 esac
18267 if test -z "$haveit"; then
18268 haveit=
18269 for x in $LDFLAGS $LIBICONV; do
18271 acl_save_prefix="$prefix"
18272 prefix="$acl_final_prefix"
18273 acl_save_exec_prefix="$exec_prefix"
18274 exec_prefix="$acl_final_exec_prefix"
18275 eval x=\"$x\"
18276 exec_prefix="$acl_save_exec_prefix"
18277 prefix="$acl_save_prefix"
18279 if test "X$x" = "X-L$additional_libdir"; then
18280 haveit=yes
18281 break
18283 done
18284 if test -z "$haveit"; then
18285 if test -d "$additional_libdir"; then
18286 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
18289 haveit=
18290 for x in $LDFLAGS $LTLIBICONV; do
18292 acl_save_prefix="$prefix"
18293 prefix="$acl_final_prefix"
18294 acl_save_exec_prefix="$exec_prefix"
18295 exec_prefix="$acl_final_exec_prefix"
18296 eval x=\"$x\"
18297 exec_prefix="$acl_save_exec_prefix"
18298 prefix="$acl_save_prefix"
18300 if test "X$x" = "X-L$additional_libdir"; then
18301 haveit=yes
18302 break
18304 done
18305 if test -z "$haveit"; then
18306 if test -d "$additional_libdir"; then
18307 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
18313 -R*)
18314 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18315 if test "$enable_rpath" != no; then
18316 haveit=
18317 for x in $rpathdirs; do
18318 if test "X$x" = "X$dir"; then
18319 haveit=yes
18320 break
18322 done
18323 if test -z "$haveit"; then
18324 rpathdirs="$rpathdirs $dir"
18326 haveit=
18327 for x in $ltrpathdirs; do
18328 if test "X$x" = "X$dir"; then
18329 haveit=yes
18330 break
18332 done
18333 if test -z "$haveit"; then
18334 ltrpathdirs="$ltrpathdirs $dir"
18338 -l*)
18339 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18341 *.la)
18342 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18345 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18346 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18348 esac
18349 done
18351 else
18352 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18353 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18357 done
18358 done
18359 if test "X$rpathdirs" != "X"; then
18360 if test -n "$hardcode_libdir_separator"; then
18361 alldirs=
18362 for found_dir in $rpathdirs; do
18363 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18364 done
18365 acl_save_libdir="$libdir"
18366 libdir="$alldirs"
18367 eval flag=\"$hardcode_libdir_flag_spec\"
18368 libdir="$acl_save_libdir"
18369 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18370 else
18371 for found_dir in $rpathdirs; do
18372 acl_save_libdir="$libdir"
18373 libdir="$found_dir"
18374 eval flag=\"$hardcode_libdir_flag_spec\"
18375 libdir="$acl_save_libdir"
18376 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18377 done
18380 if test "X$ltrpathdirs" != "X"; then
18381 for found_dir in $ltrpathdirs; do
18382 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18383 done
18392 am_save_CPPFLAGS="$CPPFLAGS"
18394 for element in $INCICONV; do
18395 haveit=
18396 for x in $CPPFLAGS; do
18398 acl_save_prefix="$prefix"
18399 prefix="$acl_final_prefix"
18400 acl_save_exec_prefix="$exec_prefix"
18401 exec_prefix="$acl_final_exec_prefix"
18402 eval x=\"$x\"
18403 exec_prefix="$acl_save_exec_prefix"
18404 prefix="$acl_save_prefix"
18406 if test "X$x" = "X$element"; then
18407 haveit=yes
18408 break
18410 done
18411 if test -z "$haveit"; then
18412 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18414 done
18417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18418 $as_echo_n "checking for iconv... " >&6; }
18419 if test "${am_cv_func_iconv+set}" = set; then :
18420 $as_echo_n "(cached) " >&6
18421 else
18423 am_cv_func_iconv="no, consider installing GNU libiconv"
18424 am_cv_lib_iconv=no
18425 if test x$gcc_no_link = xyes; then
18426 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18429 /* end confdefs.h. */
18430 #include <stdlib.h>
18431 #include <iconv.h>
18433 main ()
18435 iconv_t cd = iconv_open("","");
18436 iconv(cd,NULL,NULL,NULL,NULL);
18437 iconv_close(cd);
18439 return 0;
18441 _ACEOF
18442 if ac_fn_c_try_link "$LINENO"; then :
18443 am_cv_func_iconv=yes
18445 rm -f core conftest.err conftest.$ac_objext \
18446 conftest$ac_exeext conftest.$ac_ext
18447 if test "$am_cv_func_iconv" != yes; then
18448 am_save_LIBS="$LIBS"
18449 LIBS="$LIBS $LIBICONV"
18450 if test x$gcc_no_link = xyes; then
18451 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18454 /* end confdefs.h. */
18455 #include <stdlib.h>
18456 #include <iconv.h>
18458 main ()
18460 iconv_t cd = iconv_open("","");
18461 iconv(cd,NULL,NULL,NULL,NULL);
18462 iconv_close(cd);
18464 return 0;
18466 _ACEOF
18467 if ac_fn_c_try_link "$LINENO"; then :
18468 am_cv_lib_iconv=yes
18469 am_cv_func_iconv=yes
18471 rm -f core conftest.err conftest.$ac_objext \
18472 conftest$ac_exeext conftest.$ac_ext
18473 LIBS="$am_save_LIBS"
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18478 $as_echo "$am_cv_func_iconv" >&6; }
18479 if test "$am_cv_func_iconv" = yes; then
18481 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18484 if test "$am_cv_lib_iconv" = yes; then
18485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18486 $as_echo_n "checking how to link with libiconv... " >&6; }
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18488 $as_echo "$LIBICONV" >&6; }
18489 else
18490 CPPFLAGS="$am_save_CPPFLAGS"
18491 LIBICONV=
18492 LTLIBICONV=
18497 if test "$am_cv_func_iconv" = yes; then
18498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
18499 $as_echo_n "checking for iconv declaration... " >&6; }
18500 if test "${am_cv_proto_iconv+set}" = set; then :
18501 $as_echo_n "(cached) " >&6
18502 else
18504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18505 /* end confdefs.h. */
18507 #include <stdlib.h>
18508 #include <iconv.h>
18509 extern
18510 #ifdef __cplusplus
18512 #endif
18513 #if defined(__STDC__) || defined(__cplusplus)
18514 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
18515 #else
18516 size_t iconv();
18517 #endif
18520 main ()
18524 return 0;
18526 _ACEOF
18527 if ac_fn_c_try_compile "$LINENO"; then :
18528 am_cv_proto_iconv_arg1=""
18529 else
18530 am_cv_proto_iconv_arg1="const"
18532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18533 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);"
18536 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
18537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
18538 }$am_cv_proto_iconv" >&5
18539 $as_echo "${ac_t:-
18540 }$am_cv_proto_iconv" >&6; }
18542 cat >>confdefs.h <<_ACEOF
18543 #define ICONV_CONST $am_cv_proto_iconv_arg1
18544 _ACEOF
18549 if test "x${GCC}" = xyes; then
18551 WARNING_CFLAGS='-W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long'
18554 EXTRA_CFLAGS='-fexceptions -fasynchronous-unwind-tables'
18557 STRICT_WARNING_CFLAGS='-Wstrict-prototypes -pedantic'
18560 ERROR_CFLAGS=
18561 if test "x${ENABLE_WERROR}" = xyes; then
18562 ERROR_CFLAGS='-Werror'
18567 if test "x${COMPILE_XMLJ}" = xyes; then
18569 succeeded=no
18571 if test -z "$PKG_CONFIG"; then
18572 # Extract the first word of "pkg-config", so it can be a program name with args.
18573 set dummy pkg-config; ac_word=$2
18574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18575 $as_echo_n "checking for $ac_word... " >&6; }
18576 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
18577 $as_echo_n "(cached) " >&6
18578 else
18579 case $PKG_CONFIG in
18580 [\\/]* | ?:[\\/]*)
18581 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18585 for as_dir in $PATH
18587 IFS=$as_save_IFS
18588 test -z "$as_dir" && as_dir=.
18589 for ac_exec_ext in '' $ac_executable_extensions; do
18590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18591 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18593 break 2
18595 done
18596 done
18597 IFS=$as_save_IFS
18599 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
18601 esac
18603 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18604 if test -n "$PKG_CONFIG"; then
18605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18606 $as_echo "$PKG_CONFIG" >&6; }
18607 else
18608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18609 $as_echo "no" >&6; }
18615 if test "$PKG_CONFIG" = "no" ; then
18616 echo "*** The pkg-config script could not be found. Make sure it is"
18617 echo "*** in your path, or set the PKG_CONFIG environment variable"
18618 echo "*** to the full path to pkg-config."
18619 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
18620 else
18621 PKG_CONFIG_MIN_VERSION=0.9.0
18622 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.8" >&5
18624 $as_echo_n "checking for libxml-2.0 >= 2.6.8... " >&6; }
18626 if $PKG_CONFIG --exists "libxml-2.0 >= 2.6.8" ; then
18627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18628 $as_echo "yes" >&6; }
18629 succeeded=yes
18631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XML_CFLAGS" >&5
18632 $as_echo_n "checking XML_CFLAGS... " >&6; }
18633 XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.8"`
18634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML_CFLAGS" >&5
18635 $as_echo "$XML_CFLAGS" >&6; }
18637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XML_LIBS" >&5
18638 $as_echo_n "checking XML_LIBS... " >&6; }
18639 XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.8"`
18640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML_LIBS" >&5
18641 $as_echo "$XML_LIBS" >&6; }
18642 else
18643 XML_CFLAGS=""
18644 XML_LIBS=""
18645 ## If we have a custom action on failure, don't print errors, but
18646 ## do set a variable so people can do so.
18647 XML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 >= 2.6.8"`
18648 echo $XML_PKG_ERRORS
18653 else
18654 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18655 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18659 if test $succeeded = yes; then
18661 else
18662 as_fn_error "Library requirements (libxml-2.0 >= 2.6.8) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
18666 succeeded=no
18668 if test -z "$PKG_CONFIG"; then
18669 # Extract the first word of "pkg-config", so it can be a program name with args.
18670 set dummy pkg-config; ac_word=$2
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18672 $as_echo_n "checking for $ac_word... " >&6; }
18673 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
18674 $as_echo_n "(cached) " >&6
18675 else
18676 case $PKG_CONFIG in
18677 [\\/]* | ?:[\\/]*)
18678 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18682 for as_dir in $PATH
18684 IFS=$as_save_IFS
18685 test -z "$as_dir" && as_dir=.
18686 for ac_exec_ext in '' $ac_executable_extensions; do
18687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18688 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18690 break 2
18692 done
18693 done
18694 IFS=$as_save_IFS
18696 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
18698 esac
18700 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18701 if test -n "$PKG_CONFIG"; then
18702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18703 $as_echo "$PKG_CONFIG" >&6; }
18704 else
18705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18706 $as_echo "no" >&6; }
18712 if test "$PKG_CONFIG" = "no" ; then
18713 echo "*** The pkg-config script could not be found. Make sure it is"
18714 echo "*** in your path, or set the PKG_CONFIG environment variable"
18715 echo "*** to the full path to pkg-config."
18716 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
18717 else
18718 PKG_CONFIG_MIN_VERSION=0.9.0
18719 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxslt >= 1.1.11" >&5
18721 $as_echo_n "checking for libxslt >= 1.1.11... " >&6; }
18723 if $PKG_CONFIG --exists "libxslt >= 1.1.11" ; then
18724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18725 $as_echo "yes" >&6; }
18726 succeeded=yes
18728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XSLT_CFLAGS" >&5
18729 $as_echo_n "checking XSLT_CFLAGS... " >&6; }
18730 XSLT_CFLAGS=`$PKG_CONFIG --cflags "libxslt >= 1.1.11"`
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLT_CFLAGS" >&5
18732 $as_echo "$XSLT_CFLAGS" >&6; }
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XSLT_LIBS" >&5
18735 $as_echo_n "checking XSLT_LIBS... " >&6; }
18736 XSLT_LIBS=`$PKG_CONFIG --libs "libxslt >= 1.1.11"`
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLT_LIBS" >&5
18738 $as_echo "$XSLT_LIBS" >&6; }
18739 else
18740 XSLT_CFLAGS=""
18741 XSLT_LIBS=""
18742 ## If we have a custom action on failure, don't print errors, but
18743 ## do set a variable so people can do so.
18744 XSLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxslt >= 1.1.11"`
18745 echo $XSLT_PKG_ERRORS
18750 else
18751 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18752 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18756 if test $succeeded = yes; then
18758 else
18759 as_fn_error "Library requirements (libxslt >= 1.1.11) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
18768 if test "x${COMPILE_GTK_PEER}" = xyes; then
18769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
18770 $as_echo_n "checking for X... " >&6; }
18773 # Check whether --with-x was given.
18774 if test "${with_x+set}" = set; then :
18775 withval=$with_x;
18778 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18779 if test "x$with_x" = xno; then
18780 # The user explicitly disabled X.
18781 have_x=disabled
18782 else
18783 case $x_includes,$x_libraries in #(
18784 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
18785 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
18786 $as_echo_n "(cached) " >&6
18787 else
18788 # One or both of the vars are not set, and there is no cached value.
18789 ac_x_includes=no ac_x_libraries=no
18790 rm -f -r conftest.dir
18791 if mkdir conftest.dir; then
18792 cd conftest.dir
18793 cat >Imakefile <<'_ACEOF'
18794 incroot:
18795 @echo incroot='${INCROOT}'
18796 usrlibdir:
18797 @echo usrlibdir='${USRLIBDIR}'
18798 libdir:
18799 @echo libdir='${LIBDIR}'
18800 _ACEOF
18801 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
18802 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18803 for ac_var in incroot usrlibdir libdir; do
18804 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18805 done
18806 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18807 for ac_extension in a so sl dylib la dll; do
18808 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18809 test -f "$ac_im_libdir/libX11.$ac_extension"; then
18810 ac_im_usrlibdir=$ac_im_libdir; break
18812 done
18813 # Screen out bogus values from the imake configuration. They are
18814 # bogus both because they are the default anyway, and because
18815 # using them would break gcc on systems where it needs fixed includes.
18816 case $ac_im_incroot in
18817 /usr/include) ac_x_includes= ;;
18818 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18819 esac
18820 case $ac_im_usrlibdir in
18821 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
18822 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18823 esac
18825 cd ..
18826 rm -f -r conftest.dir
18829 # Standard set of common directories for X headers.
18830 # Check X11 before X11Rn because it is often a symlink to the current release.
18831 ac_x_header_dirs='
18832 /usr/X11/include
18833 /usr/X11R7/include
18834 /usr/X11R6/include
18835 /usr/X11R5/include
18836 /usr/X11R4/include
18838 /usr/include/X11
18839 /usr/include/X11R7
18840 /usr/include/X11R6
18841 /usr/include/X11R5
18842 /usr/include/X11R4
18844 /usr/local/X11/include
18845 /usr/local/X11R7/include
18846 /usr/local/X11R6/include
18847 /usr/local/X11R5/include
18848 /usr/local/X11R4/include
18850 /usr/local/include/X11
18851 /usr/local/include/X11R7
18852 /usr/local/include/X11R6
18853 /usr/local/include/X11R5
18854 /usr/local/include/X11R4
18856 /usr/X386/include
18857 /usr/x386/include
18858 /usr/XFree86/include/X11
18860 /usr/include
18861 /usr/local/include
18862 /usr/unsupported/include
18863 /usr/athena/include
18864 /usr/local/x11r5/include
18865 /usr/lpp/Xamples/include
18867 /usr/openwin/include
18868 /usr/openwin/share/include'
18870 if test "$ac_x_includes" = no; then
18871 # Guess where to find include files, by looking for Xlib.h.
18872 # First, try using that file with no special directory specified.
18873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18874 /* end confdefs.h. */
18875 #include <X11/Xlib.h>
18876 _ACEOF
18877 if ac_fn_c_try_cpp "$LINENO"; then :
18878 # We can compile using X headers with no special include directory.
18879 ac_x_includes=
18880 else
18881 for ac_dir in $ac_x_header_dirs; do
18882 if test -r "$ac_dir/X11/Xlib.h"; then
18883 ac_x_includes=$ac_dir
18884 break
18886 done
18888 rm -f conftest.err conftest.$ac_ext
18889 fi # $ac_x_includes = no
18891 if test "$ac_x_libraries" = no; then
18892 # Check for the libraries.
18893 # See if we find them without any special options.
18894 # Don't add to $LIBS permanently.
18895 ac_save_LIBS=$LIBS
18896 LIBS="-lX11 $LIBS"
18897 if test x$gcc_no_link = xyes; then
18898 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18901 /* end confdefs.h. */
18902 #include <X11/Xlib.h>
18904 main ()
18906 XrmInitialize ()
18908 return 0;
18910 _ACEOF
18911 if ac_fn_c_try_link "$LINENO"; then :
18912 LIBS=$ac_save_LIBS
18913 # We can link X programs with no special library path.
18914 ac_x_libraries=
18915 else
18916 LIBS=$ac_save_LIBS
18917 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18919 # Don't even attempt the hair of trying to link an X program!
18920 for ac_extension in a so sl dylib la dll; do
18921 if test -r "$ac_dir/libX11.$ac_extension"; then
18922 ac_x_libraries=$ac_dir
18923 break 2
18925 done
18926 done
18928 rm -f core conftest.err conftest.$ac_objext \
18929 conftest$ac_exeext conftest.$ac_ext
18930 fi # $ac_x_libraries = no
18932 case $ac_x_includes,$ac_x_libraries in #(
18933 no,* | *,no | *\'*)
18934 # Didn't find X, or a directory has "'" in its name.
18935 ac_cv_have_x="have_x=no";; #(
18937 # Record where we found X for the cache.
18938 ac_cv_have_x="have_x=yes\
18939 ac_x_includes='$ac_x_includes'\
18940 ac_x_libraries='$ac_x_libraries'"
18941 esac
18943 ;; #(
18944 *) have_x=yes;;
18945 esac
18946 eval "$ac_cv_have_x"
18947 fi # $with_x != no
18949 if test "$have_x" != yes; then
18950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
18951 $as_echo "$have_x" >&6; }
18952 no_x=yes
18953 else
18954 # If each of the values was on the command line, it overrides each guess.
18955 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18956 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18957 # Update the cache value to reflect the command line values.
18958 ac_cv_have_x="have_x=yes\
18959 ac_x_includes='$x_includes'\
18960 ac_x_libraries='$x_libraries'"
18961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
18962 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
18965 if test "$no_x" = yes; then
18966 # Not all programs may use this symbol, but it does not hurt to define it.
18968 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
18970 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18971 else
18972 if test -n "$x_includes"; then
18973 X_CFLAGS="$X_CFLAGS -I$x_includes"
18976 # It would also be nice to do this for all -L options, not just this one.
18977 if test -n "$x_libraries"; then
18978 X_LIBS="$X_LIBS -L$x_libraries"
18979 # For Solaris; some versions of Sun CC require a space after -R and
18980 # others require no space. Words are not sufficient . . . .
18981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
18982 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
18983 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18984 ac_xsave_c_werror_flag=$ac_c_werror_flag
18985 ac_c_werror_flag=yes
18986 if test x$gcc_no_link = xyes; then
18987 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18990 /* end confdefs.h. */
18993 main ()
18997 return 0;
18999 _ACEOF
19000 if ac_fn_c_try_link "$LINENO"; then :
19001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19002 $as_echo "no" >&6; }
19003 X_LIBS="$X_LIBS -R$x_libraries"
19004 else
19005 LIBS="$ac_xsave_LIBS -R $x_libraries"
19006 if test x$gcc_no_link = xyes; then
19007 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19010 /* end confdefs.h. */
19013 main ()
19017 return 0;
19019 _ACEOF
19020 if ac_fn_c_try_link "$LINENO"; then :
19021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19022 $as_echo "yes" >&6; }
19023 X_LIBS="$X_LIBS -R $x_libraries"
19024 else
19025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
19026 $as_echo "neither works" >&6; }
19028 rm -f core conftest.err conftest.$ac_objext \
19029 conftest$ac_exeext conftest.$ac_ext
19031 rm -f core conftest.err conftest.$ac_objext \
19032 conftest$ac_exeext conftest.$ac_ext
19033 ac_c_werror_flag=$ac_xsave_c_werror_flag
19034 LIBS=$ac_xsave_LIBS
19037 # Check for system-dependent libraries X programs must link with.
19038 # Do this before checking for the system-independent R6 libraries
19039 # (-lICE), since we may need -lsocket or whatever for X linking.
19041 if test "$ISC" = yes; then
19042 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19043 else
19044 # Martyn Johnson says this is needed for Ultrix, if the X
19045 # libraries were built with DECnet support. And Karl Berry says
19046 # the Alpha needs dnet_stub (dnet does not exist).
19047 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19048 if test x$gcc_no_link = xyes; then
19049 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19052 /* end confdefs.h. */
19054 /* Override any GCC internal prototype to avoid an error.
19055 Use char because int might match the return type of a GCC
19056 builtin and then its argument prototype would still apply. */
19057 #ifdef __cplusplus
19058 extern "C"
19059 #endif
19060 char XOpenDisplay ();
19062 main ()
19064 return XOpenDisplay ();
19066 return 0;
19068 _ACEOF
19069 if ac_fn_c_try_link "$LINENO"; then :
19071 else
19072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
19073 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
19074 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
19075 $as_echo_n "(cached) " >&6
19076 else
19077 ac_check_lib_save_LIBS=$LIBS
19078 LIBS="-ldnet $LIBS"
19079 if test x$gcc_no_link = xyes; then
19080 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19083 /* end confdefs.h. */
19085 /* Override any GCC internal prototype to avoid an error.
19086 Use char because int might match the return type of a GCC
19087 builtin and then its argument prototype would still apply. */
19088 #ifdef __cplusplus
19089 extern "C"
19090 #endif
19091 char dnet_ntoa ();
19093 main ()
19095 return dnet_ntoa ();
19097 return 0;
19099 _ACEOF
19100 if ac_fn_c_try_link "$LINENO"; then :
19101 ac_cv_lib_dnet_dnet_ntoa=yes
19102 else
19103 ac_cv_lib_dnet_dnet_ntoa=no
19105 rm -f core conftest.err conftest.$ac_objext \
19106 conftest$ac_exeext conftest.$ac_ext
19107 LIBS=$ac_check_lib_save_LIBS
19109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19110 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19111 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
19112 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19115 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
19117 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
19118 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
19119 $as_echo_n "(cached) " >&6
19120 else
19121 ac_check_lib_save_LIBS=$LIBS
19122 LIBS="-ldnet_stub $LIBS"
19123 if test x$gcc_no_link = xyes; then
19124 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19127 /* end confdefs.h. */
19129 /* Override any GCC internal prototype to avoid an error.
19130 Use char because int might match the return type of a GCC
19131 builtin and then its argument prototype would still apply. */
19132 #ifdef __cplusplus
19133 extern "C"
19134 #endif
19135 char dnet_ntoa ();
19137 main ()
19139 return dnet_ntoa ();
19141 return 0;
19143 _ACEOF
19144 if ac_fn_c_try_link "$LINENO"; then :
19145 ac_cv_lib_dnet_stub_dnet_ntoa=yes
19146 else
19147 ac_cv_lib_dnet_stub_dnet_ntoa=no
19149 rm -f core conftest.err conftest.$ac_objext \
19150 conftest$ac_exeext conftest.$ac_ext
19151 LIBS=$ac_check_lib_save_LIBS
19153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19154 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
19155 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
19156 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19161 rm -f core conftest.err conftest.$ac_objext \
19162 conftest$ac_exeext conftest.$ac_ext
19163 LIBS="$ac_xsave_LIBS"
19165 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19166 # to get the SysV transport functions.
19167 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19168 # needs -lnsl.
19169 # The nsl library prevents programs from opening the X display
19170 # on Irix 5.2, according to T.E. Dickey.
19171 # The functions gethostbyname, getservbyname, and inet_addr are
19172 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19173 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19174 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
19178 if test $ac_cv_func_gethostbyname = no; then
19179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19180 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19181 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
19182 $as_echo_n "(cached) " >&6
19183 else
19184 ac_check_lib_save_LIBS=$LIBS
19185 LIBS="-lnsl $LIBS"
19186 if test x$gcc_no_link = xyes; then
19187 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19190 /* end confdefs.h. */
19192 /* Override any GCC internal prototype to avoid an error.
19193 Use char because int might match the return type of a GCC
19194 builtin and then its argument prototype would still apply. */
19195 #ifdef __cplusplus
19196 extern "C"
19197 #endif
19198 char gethostbyname ();
19200 main ()
19202 return gethostbyname ();
19204 return 0;
19206 _ACEOF
19207 if ac_fn_c_try_link "$LINENO"; then :
19208 ac_cv_lib_nsl_gethostbyname=yes
19209 else
19210 ac_cv_lib_nsl_gethostbyname=no
19212 rm -f core conftest.err conftest.$ac_objext \
19213 conftest$ac_exeext conftest.$ac_ext
19214 LIBS=$ac_check_lib_save_LIBS
19216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19217 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19218 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
19219 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19222 if test $ac_cv_lib_nsl_gethostbyname = no; then
19223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
19224 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
19225 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
19226 $as_echo_n "(cached) " >&6
19227 else
19228 ac_check_lib_save_LIBS=$LIBS
19229 LIBS="-lbsd $LIBS"
19230 if test x$gcc_no_link = xyes; then
19231 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19234 /* end confdefs.h. */
19236 /* Override any GCC internal prototype to avoid an error.
19237 Use char because int might match the return type of a GCC
19238 builtin and then its argument prototype would still apply. */
19239 #ifdef __cplusplus
19240 extern "C"
19241 #endif
19242 char gethostbyname ();
19244 main ()
19246 return gethostbyname ();
19248 return 0;
19250 _ACEOF
19251 if ac_fn_c_try_link "$LINENO"; then :
19252 ac_cv_lib_bsd_gethostbyname=yes
19253 else
19254 ac_cv_lib_bsd_gethostbyname=no
19256 rm -f core conftest.err conftest.$ac_objext \
19257 conftest$ac_exeext conftest.$ac_ext
19258 LIBS=$ac_check_lib_save_LIBS
19260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
19261 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
19262 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
19263 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19269 # lieder@skyler.mavd.honeywell.com says without -lsocket,
19270 # socket/setsockopt and other routines are undefined under SCO ODT
19271 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
19272 # on later versions), says Simon Leinen: it contains gethostby*
19273 # variants that don't use the name server (or something). -lsocket
19274 # must be given before -lnsl if both are needed. We assume that
19275 # if connect needs -lnsl, so does gethostbyname.
19276 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
19277 if test "x$ac_cv_func_connect" = x""yes; then :
19281 if test $ac_cv_func_connect = no; then
19282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
19283 $as_echo_n "checking for connect in -lsocket... " >&6; }
19284 if test "${ac_cv_lib_socket_connect+set}" = set; then :
19285 $as_echo_n "(cached) " >&6
19286 else
19287 ac_check_lib_save_LIBS=$LIBS
19288 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19289 if test x$gcc_no_link = xyes; then
19290 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19293 /* end confdefs.h. */
19295 /* Override any GCC internal prototype to avoid an error.
19296 Use char because int might match the return type of a GCC
19297 builtin and then its argument prototype would still apply. */
19298 #ifdef __cplusplus
19299 extern "C"
19300 #endif
19301 char connect ();
19303 main ()
19305 return connect ();
19307 return 0;
19309 _ACEOF
19310 if ac_fn_c_try_link "$LINENO"; then :
19311 ac_cv_lib_socket_connect=yes
19312 else
19313 ac_cv_lib_socket_connect=no
19315 rm -f core conftest.err conftest.$ac_objext \
19316 conftest$ac_exeext conftest.$ac_ext
19317 LIBS=$ac_check_lib_save_LIBS
19319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
19320 $as_echo "$ac_cv_lib_socket_connect" >&6; }
19321 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
19322 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19327 # Guillermo Gomez says -lposix is necessary on A/UX.
19328 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
19329 if test "x$ac_cv_func_remove" = x""yes; then :
19333 if test $ac_cv_func_remove = no; then
19334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
19335 $as_echo_n "checking for remove in -lposix... " >&6; }
19336 if test "${ac_cv_lib_posix_remove+set}" = set; then :
19337 $as_echo_n "(cached) " >&6
19338 else
19339 ac_check_lib_save_LIBS=$LIBS
19340 LIBS="-lposix $LIBS"
19341 if test x$gcc_no_link = xyes; then
19342 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19345 /* end confdefs.h. */
19347 /* Override any GCC internal prototype to avoid an error.
19348 Use char because int might match the return type of a GCC
19349 builtin and then its argument prototype would still apply. */
19350 #ifdef __cplusplus
19351 extern "C"
19352 #endif
19353 char remove ();
19355 main ()
19357 return remove ();
19359 return 0;
19361 _ACEOF
19362 if ac_fn_c_try_link "$LINENO"; then :
19363 ac_cv_lib_posix_remove=yes
19364 else
19365 ac_cv_lib_posix_remove=no
19367 rm -f core conftest.err conftest.$ac_objext \
19368 conftest$ac_exeext conftest.$ac_ext
19369 LIBS=$ac_check_lib_save_LIBS
19371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
19372 $as_echo "$ac_cv_lib_posix_remove" >&6; }
19373 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
19374 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19379 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19380 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
19381 if test "x$ac_cv_func_shmat" = x""yes; then :
19385 if test $ac_cv_func_shmat = no; then
19386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
19387 $as_echo_n "checking for shmat in -lipc... " >&6; }
19388 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
19389 $as_echo_n "(cached) " >&6
19390 else
19391 ac_check_lib_save_LIBS=$LIBS
19392 LIBS="-lipc $LIBS"
19393 if test x$gcc_no_link = xyes; then
19394 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19397 /* end confdefs.h. */
19399 /* Override any GCC internal prototype to avoid an error.
19400 Use char because int might match the return type of a GCC
19401 builtin and then its argument prototype would still apply. */
19402 #ifdef __cplusplus
19403 extern "C"
19404 #endif
19405 char shmat ();
19407 main ()
19409 return shmat ();
19411 return 0;
19413 _ACEOF
19414 if ac_fn_c_try_link "$LINENO"; then :
19415 ac_cv_lib_ipc_shmat=yes
19416 else
19417 ac_cv_lib_ipc_shmat=no
19419 rm -f core conftest.err conftest.$ac_objext \
19420 conftest$ac_exeext conftest.$ac_ext
19421 LIBS=$ac_check_lib_save_LIBS
19423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
19424 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
19425 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
19426 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19432 # Check for libraries that X11R6 Xt/Xaw programs need.
19433 ac_save_LDFLAGS=$LDFLAGS
19434 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19435 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19436 # check for ICE first), but we must link in the order -lSM -lICE or
19437 # we get undefined symbols. So assume we have SM if we have ICE.
19438 # These have to be linked with before -lX11, unlike the other
19439 # libraries we check for below, so use a different variable.
19440 # John Interrante, Karl Berry
19441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
19442 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
19443 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
19444 $as_echo_n "(cached) " >&6
19445 else
19446 ac_check_lib_save_LIBS=$LIBS
19447 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19448 if test x$gcc_no_link = xyes; then
19449 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19452 /* end confdefs.h. */
19454 /* Override any GCC internal prototype to avoid an error.
19455 Use char because int might match the return type of a GCC
19456 builtin and then its argument prototype would still apply. */
19457 #ifdef __cplusplus
19458 extern "C"
19459 #endif
19460 char IceConnectionNumber ();
19462 main ()
19464 return IceConnectionNumber ();
19466 return 0;
19468 _ACEOF
19469 if ac_fn_c_try_link "$LINENO"; then :
19470 ac_cv_lib_ICE_IceConnectionNumber=yes
19471 else
19472 ac_cv_lib_ICE_IceConnectionNumber=no
19474 rm -f core conftest.err conftest.$ac_objext \
19475 conftest$ac_exeext conftest.$ac_ext
19476 LIBS=$ac_check_lib_save_LIBS
19478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19479 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
19480 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
19481 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19484 LDFLAGS=$ac_save_LDFLAGS
19488 if test "$no_x" = yes; then
19489 as_fn_error "GTK+ peers requested but no X library available" "$LINENO" 5
19491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestQueryExtension in -lXtst" >&5
19492 $as_echo_n "checking for XTestQueryExtension in -lXtst... " >&6; }
19493 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then :
19494 $as_echo_n "(cached) " >&6
19495 else
19496 ac_check_lib_save_LIBS=$LIBS
19497 LIBS="-lXtst ${X_LIBS} $LIBS"
19498 if test x$gcc_no_link = xyes; then
19499 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19502 /* end confdefs.h. */
19504 /* Override any GCC internal prototype to avoid an error.
19505 Use char because int might match the return type of a GCC
19506 builtin and then its argument prototype would still apply. */
19507 #ifdef __cplusplus
19508 extern "C"
19509 #endif
19510 char XTestQueryExtension ();
19512 main ()
19514 return XTestQueryExtension ();
19516 return 0;
19518 _ACEOF
19519 if ac_fn_c_try_link "$LINENO"; then :
19520 ac_cv_lib_Xtst_XTestQueryExtension=yes
19521 else
19522 ac_cv_lib_Xtst_XTestQueryExtension=no
19524 rm -f core conftest.err conftest.$ac_objext \
19525 conftest$ac_exeext conftest.$ac_ext
19526 LIBS=$ac_check_lib_save_LIBS
19528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
19529 $as_echo "$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
19530 if test "x$ac_cv_lib_Xtst_XTestQueryExtension" = x""yes; then :
19532 $as_echo "#define HAVE_XTEST 1" >>confdefs.h
19533 XTEST_LIBS="$XTEST_LIBS -X11 -lXtst"
19534 else
19535 true
19541 succeeded=no
19543 if test -z "$PKG_CONFIG"; then
19544 # Extract the first word of "pkg-config", so it can be a program name with args.
19545 set dummy pkg-config; ac_word=$2
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19547 $as_echo_n "checking for $ac_word... " >&6; }
19548 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
19549 $as_echo_n "(cached) " >&6
19550 else
19551 case $PKG_CONFIG in
19552 [\\/]* | ?:[\\/]*)
19553 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19557 for as_dir in $PATH
19559 IFS=$as_save_IFS
19560 test -z "$as_dir" && as_dir=.
19561 for ac_exec_ext in '' $ac_executable_extensions; do
19562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19563 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19565 break 2
19567 done
19568 done
19569 IFS=$as_save_IFS
19571 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19573 esac
19575 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19576 if test -n "$PKG_CONFIG"; then
19577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19578 $as_echo "$PKG_CONFIG" >&6; }
19579 else
19580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19581 $as_echo "no" >&6; }
19587 if test "$PKG_CONFIG" = "no" ; then
19588 echo "*** The pkg-config script could not be found. Make sure it is"
19589 echo "*** in your path, or set the PKG_CONFIG environment variable"
19590 echo "*** to the full path to pkg-config."
19591 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19592 else
19593 PKG_CONFIG_MIN_VERSION=0.9.0
19594 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" >&5
19596 $as_echo_n "checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0... " >&6; }
19598 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" ; then
19599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19600 $as_echo "yes" >&6; }
19601 succeeded=yes
19603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
19604 $as_echo_n "checking GTK_CFLAGS... " >&6; }
19605 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
19606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
19607 $as_echo "$GTK_CFLAGS" >&6; }
19609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
19610 $as_echo_n "checking GTK_LIBS... " >&6; }
19611 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
19612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
19613 $as_echo "$GTK_LIBS" >&6; }
19614 else
19615 GTK_CFLAGS=""
19616 GTK_LIBS=""
19617 ## If we have a custom action on failure, don't print errors, but
19618 ## do set a variable so people can do so.
19619 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
19620 echo $GTK_PKG_ERRORS
19625 else
19626 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19627 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19631 if test $succeeded = yes; then
19633 else
19634 as_fn_error "Library requirements (gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
19638 succeeded=no
19640 if test -z "$PKG_CONFIG"; then
19641 # Extract the first word of "pkg-config", so it can be a program name with args.
19642 set dummy pkg-config; ac_word=$2
19643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19644 $as_echo_n "checking for $ac_word... " >&6; }
19645 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
19646 $as_echo_n "(cached) " >&6
19647 else
19648 case $PKG_CONFIG in
19649 [\\/]* | ?:[\\/]*)
19650 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19654 for as_dir in $PATH
19656 IFS=$as_save_IFS
19657 test -z "$as_dir" && as_dir=.
19658 for ac_exec_ext in '' $ac_executable_extensions; do
19659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19660 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19662 break 2
19664 done
19665 done
19666 IFS=$as_save_IFS
19668 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19670 esac
19672 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19673 if test -n "$PKG_CONFIG"; then
19674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19675 $as_echo "$PKG_CONFIG" >&6; }
19676 else
19677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19678 $as_echo "no" >&6; }
19684 if test "$PKG_CONFIG" = "no" ; then
19685 echo "*** The pkg-config script could not be found. Make sure it is"
19686 echo "*** in your path, or set the PKG_CONFIG environment variable"
19687 echo "*** to the full path to pkg-config."
19688 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19689 else
19690 PKG_CONFIG_MIN_VERSION=0.9.0
19691 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
19693 $as_echo_n "checking for freetype2... " >&6; }
19695 if $PKG_CONFIG --exists "freetype2" ; then
19696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19697 $as_echo "yes" >&6; }
19698 succeeded=yes
19700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE2_CFLAGS" >&5
19701 $as_echo_n "checking FREETYPE2_CFLAGS... " >&6; }
19702 FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2"`
19703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE2_CFLAGS" >&5
19704 $as_echo "$FREETYPE2_CFLAGS" >&6; }
19706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE2_LIBS" >&5
19707 $as_echo_n "checking FREETYPE2_LIBS... " >&6; }
19708 FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2"`
19709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE2_LIBS" >&5
19710 $as_echo "$FREETYPE2_LIBS" >&6; }
19711 else
19712 FREETYPE2_CFLAGS=""
19713 FREETYPE2_LIBS=""
19714 ## If we have a custom action on failure, don't print errors, but
19715 ## do set a variable so people can do so.
19716 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
19717 echo $FREETYPE2_PKG_ERRORS
19722 else
19723 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19724 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19728 if test $succeeded = yes; then
19730 else
19731 as_fn_error "Library requirements (freetype2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
19735 succeeded=no
19737 if test -z "$PKG_CONFIG"; then
19738 # Extract the first word of "pkg-config", so it can be a program name with args.
19739 set dummy pkg-config; ac_word=$2
19740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19741 $as_echo_n "checking for $ac_word... " >&6; }
19742 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
19743 $as_echo_n "(cached) " >&6
19744 else
19745 case $PKG_CONFIG in
19746 [\\/]* | ?:[\\/]*)
19747 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19751 for as_dir in $PATH
19753 IFS=$as_save_IFS
19754 test -z "$as_dir" && as_dir=.
19755 for ac_exec_ext in '' $ac_executable_extensions; do
19756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19757 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19759 break 2
19761 done
19762 done
19763 IFS=$as_save_IFS
19765 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19767 esac
19769 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19770 if test -n "$PKG_CONFIG"; then
19771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19772 $as_echo "$PKG_CONFIG" >&6; }
19773 else
19774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19775 $as_echo "no" >&6; }
19781 if test "$PKG_CONFIG" = "no" ; then
19782 echo "*** The pkg-config script could not be found. Make sure it is"
19783 echo "*** in your path, or set the PKG_CONFIG environment variable"
19784 echo "*** to the full path to pkg-config."
19785 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19786 else
19787 PKG_CONFIG_MIN_VERSION=0.9.0
19788 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pangoft2" >&5
19790 $as_echo_n "checking for pangoft2... " >&6; }
19792 if $PKG_CONFIG --exists "pangoft2" ; then
19793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19794 $as_echo "yes" >&6; }
19795 succeeded=yes
19797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PANGOFT2_CFLAGS" >&5
19798 $as_echo_n "checking PANGOFT2_CFLAGS... " >&6; }
19799 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
19800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANGOFT2_CFLAGS" >&5
19801 $as_echo "$PANGOFT2_CFLAGS" >&6; }
19803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PANGOFT2_LIBS" >&5
19804 $as_echo_n "checking PANGOFT2_LIBS... " >&6; }
19805 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
19806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANGOFT2_LIBS" >&5
19807 $as_echo "$PANGOFT2_LIBS" >&6; }
19808 else
19809 PANGOFT2_CFLAGS=""
19810 PANGOFT2_LIBS=""
19811 ## If we have a custom action on failure, don't print errors, but
19812 ## do set a variable so people can do so.
19813 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
19814 echo $PANGOFT2_PKG_ERRORS
19819 else
19820 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19821 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19825 if test $succeeded = yes; then
19827 else
19828 as_fn_error "Library requirements (pangoft2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
19832 succeeded=no
19834 if test -z "$PKG_CONFIG"; then
19835 # Extract the first word of "pkg-config", so it can be a program name with args.
19836 set dummy pkg-config; ac_word=$2
19837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19838 $as_echo_n "checking for $ac_word... " >&6; }
19839 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
19840 $as_echo_n "(cached) " >&6
19841 else
19842 case $PKG_CONFIG in
19843 [\\/]* | ?:[\\/]*)
19844 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19848 for as_dir in $PATH
19850 IFS=$as_save_IFS
19851 test -z "$as_dir" && as_dir=.
19852 for ac_exec_ext in '' $ac_executable_extensions; do
19853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19854 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19856 break 2
19858 done
19859 done
19860 IFS=$as_save_IFS
19862 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19864 esac
19866 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19867 if test -n "$PKG_CONFIG"; then
19868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19869 $as_echo "$PKG_CONFIG" >&6; }
19870 else
19871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19872 $as_echo "no" >&6; }
19878 if test "$PKG_CONFIG" = "no" ; then
19879 echo "*** The pkg-config script could not be found. Make sure it is"
19880 echo "*** in your path, or set the PKG_CONFIG environment variable"
19881 echo "*** to the full path to pkg-config."
19882 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19883 else
19884 PKG_CONFIG_MIN_VERSION=0.9.0
19885 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo >= 1.1.8" >&5
19887 $as_echo_n "checking for cairo >= 1.1.8... " >&6; }
19889 if $PKG_CONFIG --exists "cairo >= 1.1.8" ; then
19890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19891 $as_echo "yes" >&6; }
19892 succeeded=yes
19894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CAIRO_CFLAGS" >&5
19895 $as_echo_n "checking CAIRO_CFLAGS... " >&6; }
19896 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.1.8"`
19897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAIRO_CFLAGS" >&5
19898 $as_echo "$CAIRO_CFLAGS" >&6; }
19900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CAIRO_LIBS" >&5
19901 $as_echo_n "checking CAIRO_LIBS... " >&6; }
19902 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.1.8"`
19903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAIRO_LIBS" >&5
19904 $as_echo "$CAIRO_LIBS" >&6; }
19905 else
19906 CAIRO_CFLAGS=""
19907 CAIRO_LIBS=""
19908 ## If we have a custom action on failure, don't print errors, but
19909 ## do set a variable so people can do so.
19910 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo >= 1.1.8"`
19911 echo $CAIRO_PKG_ERRORS
19916 else
19917 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19918 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19922 if test $succeeded = yes; then
19924 else
19925 as_fn_error "Library requirements (cairo >= 1.1.8) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
19928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
19929 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
19930 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
19931 $as_echo_n "(cached) " >&6
19932 else
19933 ac_check_lib_save_LIBS=$LIBS
19934 LIBS="-lXrender ${X_LIBS} $LIBS"
19935 if test x$gcc_no_link = xyes; then
19936 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19939 /* end confdefs.h. */
19941 /* Override any GCC internal prototype to avoid an error.
19942 Use char because int might match the return type of a GCC
19943 builtin and then its argument prototype would still apply. */
19944 #ifdef __cplusplus
19945 extern "C"
19946 #endif
19947 char XRenderQueryExtension ();
19949 main ()
19951 return XRenderQueryExtension ();
19953 return 0;
19955 _ACEOF
19956 if ac_fn_c_try_link "$LINENO"; then :
19957 ac_cv_lib_Xrender_XRenderQueryExtension=yes
19958 else
19959 ac_cv_lib_Xrender_XRenderQueryExtension=no
19961 rm -f core conftest.err conftest.$ac_objext \
19962 conftest$ac_exeext conftest.$ac_ext
19963 LIBS=$ac_check_lib_save_LIBS
19965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
19966 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
19967 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
19969 $as_echo "#define HAVE_XRENDER 1" >>confdefs.h
19970 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXrender"
19971 else
19972 true
19976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
19977 $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
19978 if test "${ac_cv_lib_Xrandr_XRRQueryExtension+set}" = set; then :
19979 $as_echo_n "(cached) " >&6
19980 else
19981 ac_check_lib_save_LIBS=$LIBS
19982 LIBS="-lXrandr ${X_LIBS} $LIBS"
19983 if test x$gcc_no_link = xyes; then
19984 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19987 /* end confdefs.h. */
19989 /* Override any GCC internal prototype to avoid an error.
19990 Use char because int might match the return type of a GCC
19991 builtin and then its argument prototype would still apply. */
19992 #ifdef __cplusplus
19993 extern "C"
19994 #endif
19995 char XRRQueryExtension ();
19997 main ()
19999 return XRRQueryExtension ();
20001 return 0;
20003 _ACEOF
20004 if ac_fn_c_try_link "$LINENO"; then :
20005 ac_cv_lib_Xrandr_XRRQueryExtension=yes
20006 else
20007 ac_cv_lib_Xrandr_XRRQueryExtension=no
20009 rm -f core conftest.err conftest.$ac_objext \
20010 conftest$ac_exeext conftest.$ac_ext
20011 LIBS=$ac_check_lib_save_LIBS
20013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
20014 $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
20015 if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = x""yes; then :
20017 $as_echo "#define HAVE_XRANDR 1" >>confdefs.h
20018 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXrandr"
20019 else
20020 true
20033 if test "x${COMPILE_GCONF_PEER}" = xyes; then
20035 succeeded=no
20037 if test -z "$PKG_CONFIG"; then
20038 # Extract the first word of "pkg-config", so it can be a program name with args.
20039 set dummy pkg-config; ac_word=$2
20040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20041 $as_echo_n "checking for $ac_word... " >&6; }
20042 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20043 $as_echo_n "(cached) " >&6
20044 else
20045 case $PKG_CONFIG in
20046 [\\/]* | ?:[\\/]*)
20047 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20051 for as_dir in $PATH
20053 IFS=$as_save_IFS
20054 test -z "$as_dir" && as_dir=.
20055 for ac_exec_ext in '' $ac_executable_extensions; do
20056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20057 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20059 break 2
20061 done
20062 done
20063 IFS=$as_save_IFS
20065 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20067 esac
20069 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20070 if test -n "$PKG_CONFIG"; then
20071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20072 $as_echo "$PKG_CONFIG" >&6; }
20073 else
20074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20075 $as_echo "no" >&6; }
20081 if test "$PKG_CONFIG" = "no" ; then
20082 echo "*** The pkg-config script could not be found. Make sure it is"
20083 echo "*** in your path, or set the PKG_CONFIG environment variable"
20084 echo "*** to the full path to pkg-config."
20085 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20086 else
20087 PKG_CONFIG_MIN_VERSION=0.9.0
20088 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.6.0" >&5
20090 $as_echo_n "checking for gconf-2.0 >= 2.6.0... " >&6; }
20092 if $PKG_CONFIG --exists "gconf-2.0 >= 2.6.0" ; then
20093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20094 $as_echo "yes" >&6; }
20095 succeeded=yes
20097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
20098 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
20099 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.6.0"`
20100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
20101 $as_echo "$GCONF_CFLAGS" >&6; }
20103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
20104 $as_echo_n "checking GCONF_LIBS... " >&6; }
20105 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.6.0"`
20106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
20107 $as_echo "$GCONF_LIBS" >&6; }
20108 else
20109 GCONF_CFLAGS=""
20110 GCONF_LIBS=""
20111 ## If we have a custom action on failure, don't print errors, but
20112 ## do set a variable so people can do so.
20113 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.6.0"`
20114 echo $GCONF_PKG_ERRORS
20119 else
20120 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20121 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20125 if test $succeeded = yes; then
20127 else
20128 as_fn_error "Library requirements (gconf-2.0 >= 2.6.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
20134 succeeded=no
20136 if test -z "$PKG_CONFIG"; then
20137 # Extract the first word of "pkg-config", so it can be a program name with args.
20138 set dummy pkg-config; ac_word=$2
20139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20140 $as_echo_n "checking for $ac_word... " >&6; }
20141 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20142 $as_echo_n "(cached) " >&6
20143 else
20144 case $PKG_CONFIG in
20145 [\\/]* | ?:[\\/]*)
20146 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20150 for as_dir in $PATH
20152 IFS=$as_save_IFS
20153 test -z "$as_dir" && as_dir=.
20154 for ac_exec_ext in '' $ac_executable_extensions; do
20155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20156 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20158 break 2
20160 done
20161 done
20162 IFS=$as_save_IFS
20164 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20166 esac
20168 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20169 if test -n "$PKG_CONFIG"; then
20170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20171 $as_echo "$PKG_CONFIG" >&6; }
20172 else
20173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20174 $as_echo "no" >&6; }
20180 if test "$PKG_CONFIG" = "no" ; then
20181 echo "*** The pkg-config script could not be found. Make sure it is"
20182 echo "*** in your path, or set the PKG_CONFIG environment variable"
20183 echo "*** to the full path to pkg-config."
20184 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20185 else
20186 PKG_CONFIG_MIN_VERSION=0.9.0
20187 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-2.0 >= 2.8" >&5
20189 $as_echo_n "checking for gdk-2.0 >= 2.8... " >&6; }
20191 if $PKG_CONFIG --exists "gdk-2.0 >= 2.8" ; then
20192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20193 $as_echo "yes" >&6; }
20194 succeeded=yes
20196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GDK_CFLAGS" >&5
20197 $as_echo_n "checking GDK_CFLAGS... " >&6; }
20198 GDK_CFLAGS=`$PKG_CONFIG --cflags "gdk-2.0 >= 2.8"`
20199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDK_CFLAGS" >&5
20200 $as_echo "$GDK_CFLAGS" >&6; }
20202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GDK_LIBS" >&5
20203 $as_echo_n "checking GDK_LIBS... " >&6; }
20204 GDK_LIBS=`$PKG_CONFIG --libs "gdk-2.0 >= 2.8"`
20205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDK_LIBS" >&5
20206 $as_echo "$GDK_LIBS" >&6; }
20207 else
20208 GDK_CFLAGS=""
20209 GDK_LIBS=""
20210 ## If we have a custom action on failure, don't print errors, but
20211 ## do set a variable so people can do so.
20212 GDK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gdk-2.0 >= 2.8"`
20213 echo $GDK_PKG_ERRORS
20218 else
20219 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20220 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20224 if test $succeeded = yes; then
20226 else
20227 as_fn_error "Library requirements (gdk-2.0 >= 2.8) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
20232 USE_GCONF_PREFS_PEER=$enable_default_preferences_peer
20233 if test "$USE_GCONF_PREFS_PEER" = ""; then
20234 DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory
20238 if test "x${COMPILE_GSTREAMER_PEER}" = xyes; then
20239 GST_MAJORMINOR=0.10
20240 GST_REQUIRED=0.10.10
20243 succeeded=no
20245 if test -z "$PKG_CONFIG"; then
20246 # Extract the first word of "pkg-config", so it can be a program name with args.
20247 set dummy pkg-config; ac_word=$2
20248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20249 $as_echo_n "checking for $ac_word... " >&6; }
20250 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20251 $as_echo_n "(cached) " >&6
20252 else
20253 case $PKG_CONFIG in
20254 [\\/]* | ?:[\\/]*)
20255 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20259 for as_dir in $PATH
20261 IFS=$as_save_IFS
20262 test -z "$as_dir" && as_dir=.
20263 for ac_exec_ext in '' $ac_executable_extensions; do
20264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20265 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20267 break 2
20269 done
20270 done
20271 IFS=$as_save_IFS
20273 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20275 esac
20277 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20278 if test -n "$PKG_CONFIG"; then
20279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20280 $as_echo "$PKG_CONFIG" >&6; }
20281 else
20282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20283 $as_echo "no" >&6; }
20289 if test "$PKG_CONFIG" = "no" ; then
20290 echo "*** The pkg-config script could not be found. Make sure it is"
20291 echo "*** in your path, or set the PKG_CONFIG environment variable"
20292 echo "*** to the full path to pkg-config."
20293 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20294 else
20295 PKG_CONFIG_MIN_VERSION=0.9.0
20296 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
20298 $as_echo_n "checking for gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED... " >&6; }
20300 if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
20301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20302 $as_echo "yes" >&6; }
20303 succeeded=yes
20305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_CFLAGS" >&5
20306 $as_echo_n "checking GSTREAMER_CFLAGS... " >&6; }
20307 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
20308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_CFLAGS" >&5
20309 $as_echo "$GSTREAMER_CFLAGS" >&6; }
20311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_LIBS" >&5
20312 $as_echo_n "checking GSTREAMER_LIBS... " >&6; }
20313 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
20314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_LIBS" >&5
20315 $as_echo "$GSTREAMER_LIBS" >&6; }
20316 else
20317 GSTREAMER_CFLAGS=""
20318 GSTREAMER_LIBS=""
20319 ## If we have a custom action on failure, don't print errors, but
20320 ## do set a variable so people can do so.
20321 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
20322 echo $GSTREAMER_PKG_ERRORS
20327 else
20328 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20329 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20333 if test $succeeded = yes; then
20335 else
20336 as_fn_error "Library requirements (gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
20343 succeeded=no
20345 if test -z "$PKG_CONFIG"; then
20346 # Extract the first word of "pkg-config", so it can be a program name with args.
20347 set dummy pkg-config; ac_word=$2
20348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20349 $as_echo_n "checking for $ac_word... " >&6; }
20350 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20351 $as_echo_n "(cached) " >&6
20352 else
20353 case $PKG_CONFIG in
20354 [\\/]* | ?:[\\/]*)
20355 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20359 for as_dir in $PATH
20361 IFS=$as_save_IFS
20362 test -z "$as_dir" && as_dir=.
20363 for ac_exec_ext in '' $ac_executable_extensions; do
20364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20365 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20367 break 2
20369 done
20370 done
20371 IFS=$as_save_IFS
20373 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20375 esac
20377 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20378 if test -n "$PKG_CONFIG"; then
20379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20380 $as_echo "$PKG_CONFIG" >&6; }
20381 else
20382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20383 $as_echo "no" >&6; }
20389 if test "$PKG_CONFIG" = "no" ; then
20390 echo "*** The pkg-config script could not be found. Make sure it is"
20391 echo "*** in your path, or set the PKG_CONFIG environment variable"
20392 echo "*** to the full path to pkg-config."
20393 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20394 else
20395 PKG_CONFIG_MIN_VERSION=0.9.0
20396 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
20398 $as_echo_n "checking for gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED... " >&6; }
20400 if $PKG_CONFIG --exists "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
20401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20402 $as_echo "yes" >&6; }
20403 succeeded=yes
20405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_BASE_CFLAGS" >&5
20406 $as_echo_n "checking GSTREAMER_BASE_CFLAGS... " >&6; }
20407 GSTREAMER_BASE_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_BASE_CFLAGS" >&5
20409 $as_echo "$GSTREAMER_BASE_CFLAGS" >&6; }
20411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_BASE_LIBS" >&5
20412 $as_echo_n "checking GSTREAMER_BASE_LIBS... " >&6; }
20413 GSTREAMER_BASE_LIBS=`$PKG_CONFIG --libs "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_BASE_LIBS" >&5
20415 $as_echo "$GSTREAMER_BASE_LIBS" >&6; }
20416 else
20417 GSTREAMER_BASE_CFLAGS=""
20418 GSTREAMER_BASE_LIBS=""
20419 ## If we have a custom action on failure, don't print errors, but
20420 ## do set a variable so people can do so.
20421 GSTREAMER_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20422 echo $GSTREAMER_BASE_PKG_ERRORS
20427 else
20428 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20429 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20433 if test $succeeded = yes; then
20435 else
20436 as_fn_error "Library requirements (gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
20443 succeeded=no
20445 if test -z "$PKG_CONFIG"; then
20446 # Extract the first word of "pkg-config", so it can be a program name with args.
20447 set dummy pkg-config; ac_word=$2
20448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20449 $as_echo_n "checking for $ac_word... " >&6; }
20450 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20451 $as_echo_n "(cached) " >&6
20452 else
20453 case $PKG_CONFIG in
20454 [\\/]* | ?:[\\/]*)
20455 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20459 for as_dir in $PATH
20461 IFS=$as_save_IFS
20462 test -z "$as_dir" && as_dir=.
20463 for ac_exec_ext in '' $ac_executable_extensions; do
20464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20465 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20467 break 2
20469 done
20470 done
20471 IFS=$as_save_IFS
20473 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20475 esac
20477 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20478 if test -n "$PKG_CONFIG"; then
20479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20480 $as_echo "$PKG_CONFIG" >&6; }
20481 else
20482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20483 $as_echo "no" >&6; }
20489 if test "$PKG_CONFIG" = "no" ; then
20490 echo "*** The pkg-config script could not be found. Make sure it is"
20491 echo "*** in your path, or set the PKG_CONFIG environment variable"
20492 echo "*** to the full path to pkg-config."
20493 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20494 else
20495 PKG_CONFIG_MIN_VERSION=0.9.0
20496 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
20498 $as_echo_n "checking for gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED... " >&6; }
20500 if $PKG_CONFIG --exists "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
20501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20502 $as_echo "yes" >&6; }
20503 succeeded=yes
20505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_PLUGINS_BASE_CFLAGS" >&5
20506 $as_echo_n "checking GSTREAMER_PLUGINS_BASE_CFLAGS... " >&6; }
20507 GSTREAMER_PLUGINS_BASE_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_PLUGINS_BASE_CFLAGS" >&5
20509 $as_echo "$GSTREAMER_PLUGINS_BASE_CFLAGS" >&6; }
20511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_PLUGINS_BASE_LIBS" >&5
20512 $as_echo_n "checking GSTREAMER_PLUGINS_BASE_LIBS... " >&6; }
20513 GSTREAMER_PLUGINS_BASE_LIBS=`$PKG_CONFIG --libs "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_PLUGINS_BASE_LIBS" >&5
20515 $as_echo "$GSTREAMER_PLUGINS_BASE_LIBS" >&6; }
20516 else
20517 GSTREAMER_PLUGINS_BASE_CFLAGS=""
20518 GSTREAMER_PLUGINS_BASE_LIBS=""
20519 ## If we have a custom action on failure, don't print errors, but
20520 ## do set a variable so people can do so.
20521 GSTREAMER_PLUGINS_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20522 echo $GSTREAMER_PLUGINS_BASE_PKG_ERRORS
20527 else
20528 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20529 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20533 if test $succeeded = yes; then
20535 else
20536 as_fn_error "Library requirements (gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
20542 GST_PLUGIN_LDFLAGS='-module -avoid-version -Wno-unused-parameter -no-undefined'
20546 succeeded=no
20548 if test -z "$PKG_CONFIG"; then
20549 # Extract the first word of "pkg-config", so it can be a program name with args.
20550 set dummy pkg-config; ac_word=$2
20551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20552 $as_echo_n "checking for $ac_word... " >&6; }
20553 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20554 $as_echo_n "(cached) " >&6
20555 else
20556 case $PKG_CONFIG in
20557 [\\/]* | ?:[\\/]*)
20558 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20562 for as_dir in $PATH
20564 IFS=$as_save_IFS
20565 test -z "$as_dir" && as_dir=.
20566 for ac_exec_ext in '' $ac_executable_extensions; do
20567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20568 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20570 break 2
20572 done
20573 done
20574 IFS=$as_save_IFS
20576 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20578 esac
20580 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20581 if test -n "$PKG_CONFIG"; then
20582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20583 $as_echo "$PKG_CONFIG" >&6; }
20584 else
20585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20586 $as_echo "no" >&6; }
20592 if test "$PKG_CONFIG" = "no" ; then
20593 echo "*** The pkg-config script could not be found. Make sure it is"
20594 echo "*** in your path, or set the PKG_CONFIG environment variable"
20595 echo "*** to the full path to pkg-config."
20596 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20597 else
20598 PKG_CONFIG_MIN_VERSION=0.9.0
20599 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-2.0 >= 2.8" >&5
20601 $as_echo_n "checking for gdk-2.0 >= 2.8... " >&6; }
20603 if $PKG_CONFIG --exists "gdk-2.0 >= 2.8" ; then
20604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20605 $as_echo "yes" >&6; }
20606 succeeded=yes
20608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GDK_CFLAGS" >&5
20609 $as_echo_n "checking GDK_CFLAGS... " >&6; }
20610 GDK_CFLAGS=`$PKG_CONFIG --cflags "gdk-2.0 >= 2.8"`
20611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDK_CFLAGS" >&5
20612 $as_echo "$GDK_CFLAGS" >&6; }
20614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GDK_LIBS" >&5
20615 $as_echo_n "checking GDK_LIBS... " >&6; }
20616 GDK_LIBS=`$PKG_CONFIG --libs "gdk-2.0 >= 2.8"`
20617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDK_LIBS" >&5
20618 $as_echo "$GDK_LIBS" >&6; }
20619 else
20620 GDK_CFLAGS=""
20621 GDK_LIBS=""
20622 ## If we have a custom action on failure, don't print errors, but
20623 ## do set a variable so people can do so.
20624 GDK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gdk-2.0 >= 2.8"`
20625 echo $GDK_PKG_ERRORS
20630 else
20631 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20632 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20636 if test $succeeded = yes; then
20638 else
20639 as_fn_error "Library requirements (gdk-2.0 >= 2.8) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
20645 GSTREAMER_FILE_READER=gnu.javax.sound.sampled.gstreamer.io.GstAudioFileReader
20646 GSTREAMER_MIXER_PROVIDER=gnu.javax.sound.sampled.gstreamer.GStreamerMixerProvider
20651 if test "x${COMPILE_QT_PEER}" = xyes; then
20653 succeeded=no
20655 if test -z "$PKG_CONFIG"; then
20656 # Extract the first word of "pkg-config", so it can be a program name with args.
20657 set dummy pkg-config; ac_word=$2
20658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20659 $as_echo_n "checking for $ac_word... " >&6; }
20660 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20661 $as_echo_n "(cached) " >&6
20662 else
20663 case $PKG_CONFIG in
20664 [\\/]* | ?:[\\/]*)
20665 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20669 for as_dir in $PATH
20671 IFS=$as_save_IFS
20672 test -z "$as_dir" && as_dir=.
20673 for ac_exec_ext in '' $ac_executable_extensions; do
20674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20675 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20677 break 2
20679 done
20680 done
20681 IFS=$as_save_IFS
20683 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20685 esac
20687 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20688 if test -n "$PKG_CONFIG"; then
20689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20690 $as_echo "$PKG_CONFIG" >&6; }
20691 else
20692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20693 $as_echo "no" >&6; }
20699 if test "$PKG_CONFIG" = "no" ; then
20700 echo "*** The pkg-config script could not be found. Make sure it is"
20701 echo "*** in your path, or set the PKG_CONFIG environment variable"
20702 echo "*** to the full path to pkg-config."
20703 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20704 else
20705 PKG_CONFIG_MIN_VERSION=0.9.0
20706 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QtCore QtGui >= 4.1.0" >&5
20708 $as_echo_n "checking for QtCore QtGui >= 4.1.0... " >&6; }
20710 if $PKG_CONFIG --exists "QtCore QtGui >= 4.1.0" ; then
20711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20712 $as_echo "yes" >&6; }
20713 succeeded=yes
20715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking QT_CFLAGS" >&5
20716 $as_echo_n "checking QT_CFLAGS... " >&6; }
20717 QT_CFLAGS=`$PKG_CONFIG --cflags "QtCore QtGui >= 4.1.0"`
20718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CFLAGS" >&5
20719 $as_echo "$QT_CFLAGS" >&6; }
20721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking QT_LIBS" >&5
20722 $as_echo_n "checking QT_LIBS... " >&6; }
20723 QT_LIBS=`$PKG_CONFIG --libs "QtCore QtGui >= 4.1.0"`
20724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_LIBS" >&5
20725 $as_echo "$QT_LIBS" >&6; }
20726 else
20727 QT_CFLAGS=""
20728 QT_LIBS=""
20729 ## If we have a custom action on failure, don't print errors, but
20730 ## do set a variable so people can do so.
20731 QT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtCore QtGui >= 4.1.0"`
20737 else
20738 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20739 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20743 if test $succeeded = yes; then
20744 HAVE_QT4="yes"
20745 else
20746 HAVE_QT4="no"
20749 if test "x$HAVE_QT4" = "xyes"; then
20750 QT_INCLUDE_DIR=`$PKG_CONFIG --variable=includedir QtGui`
20751 EXTRA_QT_INCLUDE_DIR="$QT_INCLUDE_DIR/Qt"
20752 as_ac_File=`$as_echo "ac_cv_file_$QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
20753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $QT_INCLUDE_DIR/QWidget" >&5
20754 $as_echo_n "checking for $QT_INCLUDE_DIR/QWidget... " >&6; }
20755 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
20756 $as_echo_n "(cached) " >&6
20757 else
20758 test "$cross_compiling" = yes &&
20759 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
20760 if test -r "$QT_INCLUDE_DIR/QWidget"; then
20761 eval "$as_ac_File=yes"
20762 else
20763 eval "$as_ac_File=no"
20766 eval ac_res=\$$as_ac_File
20767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20768 $as_echo "$ac_res" >&6; }
20769 eval as_val=\$$as_ac_File
20770 if test "x$as_val" = x""yes; then :
20771 { $as_echo "$as_me:${as_lineno-$LINENO}: No extra QT_INCLUDE_DIR needed" >&5
20772 $as_echo "$as_me: No extra QT_INCLUDE_DIR needed" >&6;}
20773 else
20774 as_ac_File=`$as_echo "ac_cv_file_$EXTRA_QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
20775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $EXTRA_QT_INCLUDE_DIR/QWidget" >&5
20776 $as_echo_n "checking for $EXTRA_QT_INCLUDE_DIR/QWidget... " >&6; }
20777 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
20778 $as_echo_n "(cached) " >&6
20779 else
20780 test "$cross_compiling" = yes &&
20781 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
20782 if test -r "$EXTRA_QT_INCLUDE_DIR/QWidget"; then
20783 eval "$as_ac_File=yes"
20784 else
20785 eval "$as_ac_File=no"
20788 eval ac_res=\$$as_ac_File
20789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20790 $as_echo "$ac_res" >&6; }
20791 eval as_val=\$$as_ac_File
20792 if test "x$as_val" = x""yes; then :
20793 QT_CFLAGS="$QT_CFLAGS -I$EXTRA_QT_INCLUDE_DIR"
20794 else
20795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: QWidget not found" >&5
20796 $as_echo "$as_me: WARNING: QWidget not found" >&2;}
20801 # Extract the first word of "moc", so it can be a program name with args.
20802 set dummy moc; ac_word=$2
20803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20804 $as_echo_n "checking for $ac_word... " >&6; }
20805 if test "${ac_cv_prog_MOC+set}" = set; then :
20806 $as_echo_n "(cached) " >&6
20807 else
20808 if test -n "$MOC"; then
20809 ac_cv_prog_MOC="$MOC" # Let the user override the test.
20810 else
20811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20812 for as_dir in $PATH
20814 IFS=$as_save_IFS
20815 test -z "$as_dir" && as_dir=.
20816 for ac_exec_ext in '' $ac_executable_extensions; do
20817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20818 ac_cv_prog_MOC="moc"
20819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20820 break 2
20822 done
20823 done
20824 IFS=$as_save_IFS
20828 MOC=$ac_cv_prog_MOC
20829 if test -n "$MOC"; then
20830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
20831 $as_echo "$MOC" >&6; }
20832 else
20833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20834 $as_echo "no" >&6; }
20838 # Extract the first word of "moc-qt4", so it can be a program name with args.
20839 set dummy moc-qt4; ac_word=$2
20840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20841 $as_echo_n "checking for $ac_word... " >&6; }
20842 if test "${ac_cv_prog_MOC+set}" = set; then :
20843 $as_echo_n "(cached) " >&6
20844 else
20845 if test -n "$MOC"; then
20846 ac_cv_prog_MOC="$MOC" # Let the user override the test.
20847 else
20848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20849 for as_dir in $PATH
20851 IFS=$as_save_IFS
20852 test -z "$as_dir" && as_dir=.
20853 for ac_exec_ext in '' $ac_executable_extensions; do
20854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20855 ac_cv_prog_MOC="moc-qt4"
20856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20857 break 2
20859 done
20860 done
20861 IFS=$as_save_IFS
20865 MOC=$ac_cv_prog_MOC
20866 if test -n "$MOC"; then
20867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
20868 $as_echo "$MOC" >&6; }
20869 else
20870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20871 $as_echo "no" >&6; }
20876 if test "x$HAVE_QT4" = "xno"; then
20877 { $as_echo "$as_me:${as_lineno-$LINENO}: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&5
20878 $as_echo "$as_me: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&6;}
20879 case "$host_os" in
20880 darwin*)
20882 # Check whether --with-qt4dir was given.
20883 if test "${with_qt4dir+set}" = set; then :
20884 withval=$with_qt4dir; QT4DIR=$withval
20888 if test x"$QT4DIR" = x ; then
20889 as_fn_error "*** No path for Qt4 --with-qt4dir option given" "$LINENO" 5
20891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: QT4DIR... $QT4DIR" >&5
20892 $as_echo "QT4DIR... $QT4DIR" >&6; }
20893 # Extract the first word of "moc", so it can be a program name with args.
20894 set dummy moc; ac_word=$2
20895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20896 $as_echo_n "checking for $ac_word... " >&6; }
20897 if test "${ac_cv_prog_MOC+set}" = set; then :
20898 $as_echo_n "(cached) " >&6
20899 else
20900 if test -n "$MOC"; then
20901 ac_cv_prog_MOC="$MOC" # Let the user override the test.
20902 else
20903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20904 for as_dir in $QT4DIR/bin
20906 IFS=$as_save_IFS
20907 test -z "$as_dir" && as_dir=.
20908 for ac_exec_ext in '' $ac_executable_extensions; do
20909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20910 ac_cv_prog_MOC="$QT4DIR/bin/moc"
20911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20912 break 2
20914 done
20915 done
20916 IFS=$as_save_IFS
20920 MOC=$ac_cv_prog_MOC
20921 if test -n "$MOC"; then
20922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
20923 $as_echo "$MOC" >&6; }
20924 else
20925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20926 $as_echo "no" >&6; }
20930 if test x"$MOC" = x; then
20931 as_fn_error "*** This is not the right Qt installation" "$LINENO" 5
20933 QT_CFLAGS="-F$QT4DIR/lib -I$QT4DIR/lib/QtCore.framework/Headers"
20934 QT_CFLAGS="$QT_CFLAGS -I$QT4DIR/lib/QtGui.framework/Headers"
20935 QT_LIBS="-Xlinker -F$QT4DIR/lib -Xlinker -framework -Xlinker QtCore"
20936 QT_LIBS="$QT_LIBS -Xlinker -framework -Xlinker QtGui"
20939 as_fn_error "*** Please check PKG_CONFIG_PATH or the version
20940 of your installed Qt4 installation." "$LINENO" 5
20942 esac
20944 { $as_echo "$as_me:${as_lineno-$LINENO}: Set QT_CFLAGS... $QT_CFLAGS" >&5
20945 $as_echo "$as_me: Set QT_CFLAGS... $QT_CFLAGS" >&6;}
20949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
20950 $as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
20951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20952 /* end confdefs.h. */
20953 #include <sys/socket.h>
20955 main ()
20957 int f = MSG_NOSIGNAL;
20959 return 0;
20961 _ACEOF
20962 if ac_fn_c_try_compile "$LINENO"; then :
20963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20964 $as_echo "yes" >&6; }
20966 $as_echo "#define HAVE_MSG_NOSIGNAL 1" >>confdefs.h
20968 else
20969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20970 $as_echo "no" >&6; }
20973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_NOSIGPIPE " >&5
20975 $as_echo_n "checking for SO_NOSIGPIPE ... " >&6; }
20976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20977 /* end confdefs.h. */
20978 #include <sys/socket.h>
20980 main ()
20982 int f = SO_NOSIGPIPE;
20984 return 0;
20986 _ACEOF
20987 if ac_fn_c_try_compile "$LINENO"; then :
20988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20989 $as_echo "yes" >&6; }
20991 $as_echo "#define HAVE_SO_NOSIGPIPE 1" >>confdefs.h
20993 else
20994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20995 $as_echo "no" >&6; }
20998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_WAITALL" >&5
21000 $as_echo_n "checking for MSG_WAITALL... " >&6; }
21001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21002 /* end confdefs.h. */
21003 #include <sys/socket.h>
21005 main ()
21007 int f = MSG_WAITALL;
21009 return 0;
21011 _ACEOF
21012 if ac_fn_c_try_compile "$LINENO"; then :
21013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21014 $as_echo "yes" >&6; }
21016 $as_echo "#define HAVE_MSG_WAITALL 1" >>confdefs.h
21018 else
21019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21020 $as_echo "no" >&6; }
21023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21025 if test "x${COMPILE_PLUGIN}" = xyes; then
21027 succeeded=no
21029 if test -z "$PKG_CONFIG"; then
21030 # Extract the first word of "pkg-config", so it can be a program name with args.
21031 set dummy pkg-config; ac_word=$2
21032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21033 $as_echo_n "checking for $ac_word... " >&6; }
21034 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21035 $as_echo_n "(cached) " >&6
21036 else
21037 case $PKG_CONFIG in
21038 [\\/]* | ?:[\\/]*)
21039 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21043 for as_dir in $PATH
21045 IFS=$as_save_IFS
21046 test -z "$as_dir" && as_dir=.
21047 for ac_exec_ext in '' $ac_executable_extensions; do
21048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21049 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21051 break 2
21053 done
21054 done
21055 IFS=$as_save_IFS
21057 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21059 esac
21061 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21062 if test -n "$PKG_CONFIG"; then
21063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21064 $as_echo "$PKG_CONFIG" >&6; }
21065 else
21066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21067 $as_echo "no" >&6; }
21073 if test "$PKG_CONFIG" = "no" ; then
21074 echo "*** The pkg-config script could not be found. Make sure it is"
21075 echo "*** in your path, or set the PKG_CONFIG environment variable"
21076 echo "*** to the full path to pkg-config."
21077 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21078 else
21079 PKG_CONFIG_MIN_VERSION=0.9.0
21080 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mozilla-plugin libxul-unstable" >&5
21082 $as_echo_n "checking for mozilla-plugin libxul-unstable... " >&6; }
21084 if $PKG_CONFIG --exists "mozilla-plugin libxul-unstable" ; then
21085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21086 $as_echo "yes" >&6; }
21087 succeeded=yes
21089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21090 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21091 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-plugin libxul-unstable"`
21092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21093 $as_echo "$MOZILLA_CFLAGS" >&6; }
21095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21096 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21097 MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-plugin libxul-unstable"`
21098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21099 $as_echo "$MOZILLA_LIBS" >&6; }
21100 else
21101 MOZILLA_CFLAGS=""
21102 MOZILLA_LIBS=""
21103 ## If we have a custom action on failure, don't print errors, but
21104 ## do set a variable so people can do so.
21105 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-plugin libxul-unstable"`
21111 else
21112 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21113 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21117 if test $succeeded = yes; then
21118 MOZILLA_FOUND=yes
21119 else
21120 MOZILLA_FOUND=no
21123 if test "x${MOZILLA_FOUND}" = xno; then
21125 succeeded=no
21127 if test -z "$PKG_CONFIG"; then
21128 # Extract the first word of "pkg-config", so it can be a program name with args.
21129 set dummy pkg-config; ac_word=$2
21130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21131 $as_echo_n "checking for $ac_word... " >&6; }
21132 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21133 $as_echo_n "(cached) " >&6
21134 else
21135 case $PKG_CONFIG in
21136 [\\/]* | ?:[\\/]*)
21137 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21141 for as_dir in $PATH
21143 IFS=$as_save_IFS
21144 test -z "$as_dir" && as_dir=.
21145 for ac_exec_ext in '' $ac_executable_extensions; do
21146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21147 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21149 break 2
21151 done
21152 done
21153 IFS=$as_save_IFS
21155 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21157 esac
21159 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21160 if test -n "$PKG_CONFIG"; then
21161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21162 $as_echo "$PKG_CONFIG" >&6; }
21163 else
21164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21165 $as_echo "no" >&6; }
21171 if test "$PKG_CONFIG" = "no" ; then
21172 echo "*** The pkg-config script could not be found. Make sure it is"
21173 echo "*** in your path, or set the PKG_CONFIG environment variable"
21174 echo "*** to the full path to pkg-config."
21175 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21176 else
21177 PKG_CONFIG_MIN_VERSION=0.9.0
21178 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mozilla-plugin" >&5
21180 $as_echo_n "checking for mozilla-plugin... " >&6; }
21182 if $PKG_CONFIG --exists "mozilla-plugin" ; then
21183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21184 $as_echo "yes" >&6; }
21185 succeeded=yes
21187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21188 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21189 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-plugin"`
21190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21191 $as_echo "$MOZILLA_CFLAGS" >&6; }
21193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21194 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21195 MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-plugin"`
21196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21197 $as_echo "$MOZILLA_LIBS" >&6; }
21198 else
21199 MOZILLA_CFLAGS=""
21200 MOZILLA_LIBS=""
21201 ## If we have a custom action on failure, don't print errors, but
21202 ## do set a variable so people can do so.
21203 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-plugin"`
21209 else
21210 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21211 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21215 if test $succeeded = yes; then
21216 MOZILLA_FOUND=yes
21217 else
21218 MOZILLA_FOUND=no
21222 if test "x${MOZILLA_FOUND}" = xno; then
21224 succeeded=no
21226 if test -z "$PKG_CONFIG"; then
21227 # Extract the first word of "pkg-config", so it can be a program name with args.
21228 set dummy pkg-config; ac_word=$2
21229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21230 $as_echo_n "checking for $ac_word... " >&6; }
21231 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21232 $as_echo_n "(cached) " >&6
21233 else
21234 case $PKG_CONFIG in
21235 [\\/]* | ?:[\\/]*)
21236 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21240 for as_dir in $PATH
21242 IFS=$as_save_IFS
21243 test -z "$as_dir" && as_dir=.
21244 for ac_exec_ext in '' $ac_executable_extensions; do
21245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21246 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21248 break 2
21250 done
21251 done
21252 IFS=$as_save_IFS
21254 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21256 esac
21258 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21259 if test -n "$PKG_CONFIG"; then
21260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21261 $as_echo "$PKG_CONFIG" >&6; }
21262 else
21263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21264 $as_echo "no" >&6; }
21270 if test "$PKG_CONFIG" = "no" ; then
21271 echo "*** The pkg-config script could not be found. Make sure it is"
21272 echo "*** in your path, or set the PKG_CONFIG environment variable"
21273 echo "*** to the full path to pkg-config."
21274 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21275 else
21276 PKG_CONFIG_MIN_VERSION=0.9.0
21277 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for firefox-plugin firefox-xpcom" >&5
21279 $as_echo_n "checking for firefox-plugin firefox-xpcom... " >&6; }
21281 if $PKG_CONFIG --exists "firefox-plugin firefox-xpcom" ; then
21282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21283 $as_echo "yes" >&6; }
21284 succeeded=yes
21286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21287 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21288 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "firefox-plugin firefox-xpcom"`
21289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21290 $as_echo "$MOZILLA_CFLAGS" >&6; }
21292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21293 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21294 MOZILLA_LIBS=`$PKG_CONFIG --libs "firefox-plugin firefox-xpcom"`
21295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21296 $as_echo "$MOZILLA_LIBS" >&6; }
21297 else
21298 MOZILLA_CFLAGS=""
21299 MOZILLA_LIBS=""
21300 ## If we have a custom action on failure, don't print errors, but
21301 ## do set a variable so people can do so.
21302 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "firefox-plugin firefox-xpcom"`
21308 else
21309 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21310 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21314 if test $succeeded = yes; then
21315 MOZILLA_FOUND=yes
21316 else
21317 MOZILLA_FOUND=no
21321 if test "x${MOZILLA_FOUND}" = xno; then
21323 succeeded=no
21325 if test -z "$PKG_CONFIG"; then
21326 # Extract the first word of "pkg-config", so it can be a program name with args.
21327 set dummy pkg-config; ac_word=$2
21328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21329 $as_echo_n "checking for $ac_word... " >&6; }
21330 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21331 $as_echo_n "(cached) " >&6
21332 else
21333 case $PKG_CONFIG in
21334 [\\/]* | ?:[\\/]*)
21335 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21339 for as_dir in $PATH
21341 IFS=$as_save_IFS
21342 test -z "$as_dir" && as_dir=.
21343 for ac_exec_ext in '' $ac_executable_extensions; do
21344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21345 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21347 break 2
21349 done
21350 done
21351 IFS=$as_save_IFS
21353 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21355 esac
21357 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21358 if test -n "$PKG_CONFIG"; then
21359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21360 $as_echo "$PKG_CONFIG" >&6; }
21361 else
21362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21363 $as_echo "no" >&6; }
21369 if test "$PKG_CONFIG" = "no" ; then
21370 echo "*** The pkg-config script could not be found. Make sure it is"
21371 echo "*** in your path, or set the PKG_CONFIG environment variable"
21372 echo "*** to the full path to pkg-config."
21373 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21374 else
21375 PKG_CONFIG_MIN_VERSION=0.9.0
21376 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xulrunner-plugin xulrunner-xpcom" >&5
21378 $as_echo_n "checking for xulrunner-plugin xulrunner-xpcom... " >&6; }
21380 if $PKG_CONFIG --exists "xulrunner-plugin xulrunner-xpcom" ; then
21381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21382 $as_echo "yes" >&6; }
21383 succeeded=yes
21385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21386 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21387 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "xulrunner-plugin xulrunner-xpcom"`
21388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21389 $as_echo "$MOZILLA_CFLAGS" >&6; }
21391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21392 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21393 MOZILLA_LIBS=`$PKG_CONFIG --libs "xulrunner-plugin xulrunner-xpcom"`
21394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21395 $as_echo "$MOZILLA_LIBS" >&6; }
21396 else
21397 MOZILLA_CFLAGS=""
21398 MOZILLA_LIBS=""
21399 ## If we have a custom action on failure, don't print errors, but
21400 ## do set a variable so people can do so.
21401 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xulrunner-plugin xulrunner-xpcom"`
21407 else
21408 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21409 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21413 if test $succeeded = yes; then
21414 MOZILLA_FOUND=yes
21415 else
21416 MOZILLA_FOUND=no
21420 if test "x${MOZILLA_FOUND}" = xno; then
21422 succeeded=no
21424 if test -z "$PKG_CONFIG"; then
21425 # Extract the first word of "pkg-config", so it can be a program name with args.
21426 set dummy pkg-config; ac_word=$2
21427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21428 $as_echo_n "checking for $ac_word... " >&6; }
21429 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21430 $as_echo_n "(cached) " >&6
21431 else
21432 case $PKG_CONFIG in
21433 [\\/]* | ?:[\\/]*)
21434 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21438 for as_dir in $PATH
21440 IFS=$as_save_IFS
21441 test -z "$as_dir" && as_dir=.
21442 for ac_exec_ext in '' $ac_executable_extensions; do
21443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21444 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21446 break 2
21448 done
21449 done
21450 IFS=$as_save_IFS
21452 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21454 esac
21456 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21457 if test -n "$PKG_CONFIG"; then
21458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21459 $as_echo "$PKG_CONFIG" >&6; }
21460 else
21461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21462 $as_echo "no" >&6; }
21468 if test "$PKG_CONFIG" = "no" ; then
21469 echo "*** The pkg-config script could not be found. Make sure it is"
21470 echo "*** in your path, or set the PKG_CONFIG environment variable"
21471 echo "*** to the full path to pkg-config."
21472 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21473 else
21474 PKG_CONFIG_MIN_VERSION=0.9.0
21475 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mozilla-firefox-plugin mozilla-firefox-xpcom" >&5
21477 $as_echo_n "checking for mozilla-firefox-plugin mozilla-firefox-xpcom... " >&6; }
21479 if $PKG_CONFIG --exists "mozilla-firefox-plugin mozilla-firefox-xpcom" ; then
21480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21481 $as_echo "yes" >&6; }
21482 succeeded=yes
21484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21485 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21486 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-firefox-plugin mozilla-firefox-xpcom"`
21487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21488 $as_echo "$MOZILLA_CFLAGS" >&6; }
21490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21491 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21492 MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-firefox-plugin mozilla-firefox-xpcom"`
21493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21494 $as_echo "$MOZILLA_LIBS" >&6; }
21495 else
21496 MOZILLA_CFLAGS=""
21497 MOZILLA_LIBS=""
21498 ## If we have a custom action on failure, don't print errors, but
21499 ## do set a variable so people can do so.
21500 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-firefox-plugin mozilla-firefox-xpcom"`
21506 else
21507 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21508 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21512 if test $succeeded = yes; then
21513 MOZILLA_FOUND=yes
21514 else
21515 MOZILLA_FOUND=no
21519 if test "x${MOZILLA_FOUND}" = xno; then
21521 succeeded=no
21523 if test -z "$PKG_CONFIG"; then
21524 # Extract the first word of "pkg-config", so it can be a program name with args.
21525 set dummy pkg-config; ac_word=$2
21526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21527 $as_echo_n "checking for $ac_word... " >&6; }
21528 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21529 $as_echo_n "(cached) " >&6
21530 else
21531 case $PKG_CONFIG in
21532 [\\/]* | ?:[\\/]*)
21533 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21537 for as_dir in $PATH
21539 IFS=$as_save_IFS
21540 test -z "$as_dir" && as_dir=.
21541 for ac_exec_ext in '' $ac_executable_extensions; do
21542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21543 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21545 break 2
21547 done
21548 done
21549 IFS=$as_save_IFS
21551 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21553 esac
21555 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21556 if test -n "$PKG_CONFIG"; then
21557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21558 $as_echo "$PKG_CONFIG" >&6; }
21559 else
21560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21561 $as_echo "no" >&6; }
21567 if test "$PKG_CONFIG" = "no" ; then
21568 echo "*** The pkg-config script could not be found. Make sure it is"
21569 echo "*** in your path, or set the PKG_CONFIG environment variable"
21570 echo "*** to the full path to pkg-config."
21571 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21572 else
21573 PKG_CONFIG_MIN_VERSION=0.9.0
21574 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seamonkey-plugin seamonkey-xpcom" >&5
21576 $as_echo_n "checking for seamonkey-plugin seamonkey-xpcom... " >&6; }
21578 if $PKG_CONFIG --exists "seamonkey-plugin seamonkey-xpcom" ; then
21579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21580 $as_echo "yes" >&6; }
21581 succeeded=yes
21583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21584 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21585 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "seamonkey-plugin seamonkey-xpcom"`
21586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21587 $as_echo "$MOZILLA_CFLAGS" >&6; }
21589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21590 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21591 MOZILLA_LIBS=`$PKG_CONFIG --libs "seamonkey-plugin seamonkey-xpcom"`
21592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21593 $as_echo "$MOZILLA_LIBS" >&6; }
21594 else
21595 MOZILLA_CFLAGS=""
21596 MOZILLA_LIBS=""
21597 ## If we have a custom action on failure, don't print errors, but
21598 ## do set a variable so people can do so.
21599 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "seamonkey-plugin seamonkey-xpcom"`
21605 else
21606 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21607 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21611 if test $succeeded = yes; then
21612 MOZILLA_FOUND=yes
21613 else
21614 MOZILLA_FOUND=no
21618 if test "x${MOZILLA_FOUND}" = xno; then
21620 succeeded=no
21622 if test -z "$PKG_CONFIG"; then
21623 # Extract the first word of "pkg-config", so it can be a program name with args.
21624 set dummy pkg-config; ac_word=$2
21625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21626 $as_echo_n "checking for $ac_word... " >&6; }
21627 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21628 $as_echo_n "(cached) " >&6
21629 else
21630 case $PKG_CONFIG in
21631 [\\/]* | ?:[\\/]*)
21632 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21636 for as_dir in $PATH
21638 IFS=$as_save_IFS
21639 test -z "$as_dir" && as_dir=.
21640 for ac_exec_ext in '' $ac_executable_extensions; do
21641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21642 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21644 break 2
21646 done
21647 done
21648 IFS=$as_save_IFS
21650 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21652 esac
21654 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21655 if test -n "$PKG_CONFIG"; then
21656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21657 $as_echo "$PKG_CONFIG" >&6; }
21658 else
21659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21660 $as_echo "no" >&6; }
21666 if test "$PKG_CONFIG" = "no" ; then
21667 echo "*** The pkg-config script could not be found. Make sure it is"
21668 echo "*** in your path, or set the PKG_CONFIG environment variable"
21669 echo "*** to the full path to pkg-config."
21670 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21671 else
21672 PKG_CONFIG_MIN_VERSION=0.9.0
21673 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iceape-plugin iceape-xpcom" >&5
21675 $as_echo_n "checking for iceape-plugin iceape-xpcom... " >&6; }
21677 if $PKG_CONFIG --exists "iceape-plugin iceape-xpcom" ; then
21678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21679 $as_echo "yes" >&6; }
21680 succeeded=yes
21682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21683 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21684 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "iceape-plugin iceape-xpcom"`
21685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21686 $as_echo "$MOZILLA_CFLAGS" >&6; }
21688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21689 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21690 MOZILLA_LIBS=`$PKG_CONFIG --libs "iceape-plugin iceape-xpcom"`
21691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21692 $as_echo "$MOZILLA_LIBS" >&6; }
21693 else
21694 MOZILLA_CFLAGS=""
21695 MOZILLA_LIBS=""
21696 ## If we have a custom action on failure, don't print errors, but
21697 ## do set a variable so people can do so.
21698 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "iceape-plugin iceape-xpcom"`
21704 else
21705 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21706 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21710 if test $succeeded = yes; then
21711 MOZILLA_FOUND=yes
21712 else
21713 MOZILLA_FOUND=no
21717 if test "x${MOZILLA_FOUND}" = xno; then
21718 as_fn_error "Couldn't find plugin support headers and libraries, try --disable-plugin" "$LINENO" 5
21722 succeeded=no
21724 if test -z "$PKG_CONFIG"; then
21725 # Extract the first word of "pkg-config", so it can be a program name with args.
21726 set dummy pkg-config; ac_word=$2
21727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21728 $as_echo_n "checking for $ac_word... " >&6; }
21729 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21730 $as_echo_n "(cached) " >&6
21731 else
21732 case $PKG_CONFIG in
21733 [\\/]* | ?:[\\/]*)
21734 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21738 for as_dir in $PATH
21740 IFS=$as_save_IFS
21741 test -z "$as_dir" && as_dir=.
21742 for ac_exec_ext in '' $ac_executable_extensions; do
21743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21744 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21746 break 2
21748 done
21749 done
21750 IFS=$as_save_IFS
21752 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21754 esac
21756 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21757 if test -n "$PKG_CONFIG"; then
21758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21759 $as_echo "$PKG_CONFIG" >&6; }
21760 else
21761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21762 $as_echo "no" >&6; }
21768 if test "$PKG_CONFIG" = "no" ; then
21769 echo "*** The pkg-config script could not be found. Make sure it is"
21770 echo "*** in your path, or set the PKG_CONFIG environment variable"
21771 echo "*** to the full path to pkg-config."
21772 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21773 else
21774 PKG_CONFIG_MIN_VERSION=0.9.0
21775 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0" >&5
21777 $as_echo_n "checking for glib-2.0... " >&6; }
21779 if $PKG_CONFIG --exists "glib-2.0" ; then
21780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21781 $as_echo "yes" >&6; }
21782 succeeded=yes
21784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_CFLAGS" >&5
21785 $as_echo_n "checking GLIB_CFLAGS... " >&6; }
21786 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0"`
21787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_CFLAGS" >&5
21788 $as_echo "$GLIB_CFLAGS" >&6; }
21790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_LIBS" >&5
21791 $as_echo_n "checking GLIB_LIBS... " >&6; }
21792 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0"`
21793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_LIBS" >&5
21794 $as_echo "$GLIB_LIBS" >&6; }
21795 else
21796 GLIB_CFLAGS=""
21797 GLIB_LIBS=""
21798 ## If we have a custom action on failure, don't print errors, but
21799 ## do set a variable so people can do so.
21800 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
21801 echo $GLIB_PKG_ERRORS
21806 else
21807 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21808 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21812 if test $succeeded = yes; then
21814 else
21815 as_fn_error "Library requirements (glib-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
21819 succeeded=no
21821 if test -z "$PKG_CONFIG"; then
21822 # Extract the first word of "pkg-config", so it can be a program name with args.
21823 set dummy pkg-config; ac_word=$2
21824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21825 $as_echo_n "checking for $ac_word... " >&6; }
21826 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21827 $as_echo_n "(cached) " >&6
21828 else
21829 case $PKG_CONFIG in
21830 [\\/]* | ?:[\\/]*)
21831 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21835 for as_dir in $PATH
21837 IFS=$as_save_IFS
21838 test -z "$as_dir" && as_dir=.
21839 for ac_exec_ext in '' $ac_executable_extensions; do
21840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21841 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21843 break 2
21845 done
21846 done
21847 IFS=$as_save_IFS
21849 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21851 esac
21853 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21854 if test -n "$PKG_CONFIG"; then
21855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21856 $as_echo "$PKG_CONFIG" >&6; }
21857 else
21858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21859 $as_echo "no" >&6; }
21865 if test "$PKG_CONFIG" = "no" ; then
21866 echo "*** The pkg-config script could not be found. Make sure it is"
21867 echo "*** in your path, or set the PKG_CONFIG environment variable"
21868 echo "*** to the full path to pkg-config."
21869 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21870 else
21871 PKG_CONFIG_MIN_VERSION=0.9.0
21872 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" >&5
21874 $as_echo_n "checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0... " >&6; }
21876 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" ; then
21877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21878 $as_echo "yes" >&6; }
21879 succeeded=yes
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
21882 $as_echo_n "checking GTK_CFLAGS... " >&6; }
21883 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
21884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
21885 $as_echo "$GTK_CFLAGS" >&6; }
21887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
21888 $as_echo_n "checking GTK_LIBS... " >&6; }
21889 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
21890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
21891 $as_echo "$GTK_LIBS" >&6; }
21892 else
21893 GTK_CFLAGS=""
21894 GTK_LIBS=""
21895 ## If we have a custom action on failure, don't print errors, but
21896 ## do set a variable so people can do so.
21897 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
21898 echo $GTK_PKG_ERRORS
21903 else
21904 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21905 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21909 if test $succeeded = yes; then
21911 else
21912 as_fn_error "Library requirements (gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
21923 PLUGIN_DIR=$HOME/.mozilla/plugins/
21928 # Check whether --with-gmp was given.
21929 if test "${with_gmp+set}" = set; then :
21930 withval=$with_gmp;
21934 # Check whether --with-gmp_include was given.
21935 if test "${with_gmp_include+set}" = set; then :
21936 withval=$with_gmp_include;
21940 # Check whether --with-gmp_lib was given.
21941 if test "${with_gmp_lib+set}" = set; then :
21942 withval=$with_gmp_lib;
21946 if test "x$with_gmp" != x; then
21947 gmplibs=-lgmp
21948 gmpinc=
21949 gmplibs="-L$with_gmp/lib $gmplibs"
21950 gmpinc="-I$with_gmp/include $gmpinc"
21951 if test "x$with_gmp_include" != x; then
21952 gmpinc="-I$with_gmp_include $gmpinc"
21954 if test "x$with_gmp_lib" != x; then
21955 gmplibs="-L$with_gmp_lib $gmplibs"
21957 else
21958 gmplibs="-lgmp"
21959 gmpinc="-I/usr/include"
21962 if test "x${COMPILE_GMP}" = xyes; then
21963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GMP directories" >&5
21964 $as_echo_n "checking for GMP directories... " >&6; }
21965 if test "x$with_gmp" != x; then
21966 gmplibs="-L$with_gmp/lib -lgmp"
21967 gmpinc="-I$with_gmp/include"
21968 if test "x$with_gmp_include" != x; then
21969 gmpinc="-I$with_gmp_include $gmpinc"
21971 if test "x$with_gmp_lib" != x; then
21972 gmplibs="-L$with_gmp_lib $gmplibs"
21974 else
21975 with_gmp="/usr"
21976 gmplibs="-lgmp"
21977 gmpinc="-I/usr/include"
21979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: prefix=$with_gmp, libs=$gmplibs, inc=$gmpinc" >&5
21980 $as_echo "prefix=$with_gmp, libs=$gmplibs, inc=$gmpinc" >&6; }
21981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_mul_si in -lgmp" >&5
21982 $as_echo_n "checking for __gmpz_mul_si in -lgmp... " >&6; }
21983 if test "${ac_cv_lib_gmp___gmpz_mul_si+set}" = set; then :
21984 $as_echo_n "(cached) " >&6
21985 else
21986 ac_check_lib_save_LIBS=$LIBS
21987 LIBS="-lgmp $LIBS"
21988 if test x$gcc_no_link = xyes; then
21989 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21992 /* end confdefs.h. */
21994 /* Override any GCC internal prototype to avoid an error.
21995 Use char because int might match the return type of a GCC
21996 builtin and then its argument prototype would still apply. */
21997 #ifdef __cplusplus
21998 extern "C"
21999 #endif
22000 char __gmpz_mul_si ();
22002 main ()
22004 return __gmpz_mul_si ();
22006 return 0;
22008 _ACEOF
22009 if ac_fn_c_try_link "$LINENO"; then :
22010 ac_cv_lib_gmp___gmpz_mul_si=yes
22011 else
22012 ac_cv_lib_gmp___gmpz_mul_si=no
22014 rm -f core conftest.err conftest.$ac_objext \
22015 conftest$ac_exeext conftest.$ac_ext
22016 LIBS=$ac_check_lib_save_LIBS
22018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_mul_si" >&5
22019 $as_echo "$ac_cv_lib_gmp___gmpz_mul_si" >&6; }
22020 if test "x$ac_cv_lib_gmp___gmpz_mul_si" = x""yes; then :
22021 GMP_CFLAGS="$gmpinc"
22022 GMP_LIBS="$gmplibs"
22023 else
22024 GMP_CFLAGS=
22025 GMP_LIBS=
22031 for ac_header in gmp.h
22032 do :
22033 ac_fn_c_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
22034 if test "x$ac_cv_header_gmp_h" = x""yes; then :
22035 cat >>confdefs.h <<_ACEOF
22036 #define HAVE_GMP_H 1
22037 _ACEOF
22041 done
22045 else
22046 COMPILE_GMP=no
22049 if test "x${REGENERATE_JNI_HEADERS}" = xyes; then
22052 # Check whether --with-javah was given.
22053 if test "${with_javah+set}" = set; then :
22054 withval=$with_javah;
22055 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
22057 if test "x${withval}" != x; then
22058 if test -f "${withval}"; then
22059 USER_JAVAH="${withval}"
22060 else
22061 # Extract the first word of ""${withval}"", so it can be a program name with args.
22062 set dummy "${withval}"; ac_word=$2
22063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22064 $as_echo_n "checking for $ac_word... " >&6; }
22065 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
22066 $as_echo_n "(cached) " >&6
22067 else
22068 case $USER_JAVAH in
22069 [\\/]* | ?:[\\/]*)
22070 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22074 for as_dir in $PATH
22076 IFS=$as_save_IFS
22077 test -z "$as_dir" && as_dir=.
22078 for ac_exec_ext in '' $ac_executable_extensions; do
22079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22080 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22082 break 2
22084 done
22085 done
22086 IFS=$as_save_IFS
22089 esac
22091 USER_JAVAH=$ac_cv_path_USER_JAVAH
22092 if test -n "$USER_JAVAH"; then
22093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
22094 $as_echo "$USER_JAVAH" >&6; }
22095 else
22096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22097 $as_echo "no" >&6; }
22102 else
22103 for ac_prog in gjavah gjavah-4.3 gjavah-4.2 gjavah-4.1 gcjh-wrapper-4.1 gcjh-4.1 javah
22105 # Extract the first word of "$ac_prog", so it can be a program name with args.
22106 set dummy $ac_prog; ac_word=$2
22107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22108 $as_echo_n "checking for $ac_word... " >&6; }
22109 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
22110 $as_echo_n "(cached) " >&6
22111 else
22112 case $USER_JAVAH in
22113 [\\/]* | ?:[\\/]*)
22114 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22118 for as_dir in $PATH
22120 IFS=$as_save_IFS
22121 test -z "$as_dir" && as_dir=.
22122 for ac_exec_ext in '' $ac_executable_extensions; do
22123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22124 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22126 break 2
22128 done
22129 done
22130 IFS=$as_save_IFS
22133 esac
22135 USER_JAVAH=$ac_cv_path_USER_JAVAH
22136 if test -n "$USER_JAVAH"; then
22137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
22138 $as_echo "$USER_JAVAH" >&6; }
22139 else
22140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22141 $as_echo "no" >&6; }
22145 test -n "$USER_JAVAH" && break
22146 done
22150 if test "x${USER_JAVAH}" = x; then
22151 as_fn_error "can not find javah" "$LINENO" 5
22154 else
22156 if test "x" != x; then
22157 if test -f ""; then
22158 USER_JAVAH=""
22159 else
22160 # Extract the first word of """", so it can be a program name with args.
22161 set dummy ""; ac_word=$2
22162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22163 $as_echo_n "checking for $ac_word... " >&6; }
22164 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
22165 $as_echo_n "(cached) " >&6
22166 else
22167 case $USER_JAVAH in
22168 [\\/]* | ?:[\\/]*)
22169 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22173 for as_dir in $PATH
22175 IFS=$as_save_IFS
22176 test -z "$as_dir" && as_dir=.
22177 for ac_exec_ext in '' $ac_executable_extensions; do
22178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22179 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22181 break 2
22183 done
22184 done
22185 IFS=$as_save_IFS
22188 esac
22190 USER_JAVAH=$ac_cv_path_USER_JAVAH
22191 if test -n "$USER_JAVAH"; then
22192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
22193 $as_echo "$USER_JAVAH" >&6; }
22194 else
22195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22196 $as_echo "no" >&6; }
22201 else
22202 for ac_prog in gjavah gjavah-4.3 gjavah-4.2 gjavah-4.1 gcjh-wrapper-4.1 gcjh-4.1 javah
22204 # Extract the first word of "$ac_prog", so it can be a program name with args.
22205 set dummy $ac_prog; ac_word=$2
22206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22207 $as_echo_n "checking for $ac_word... " >&6; }
22208 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
22209 $as_echo_n "(cached) " >&6
22210 else
22211 case $USER_JAVAH in
22212 [\\/]* | ?:[\\/]*)
22213 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22217 for as_dir in $PATH
22219 IFS=$as_save_IFS
22220 test -z "$as_dir" && as_dir=.
22221 for ac_exec_ext in '' $ac_executable_extensions; do
22222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22223 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22225 break 2
22227 done
22228 done
22229 IFS=$as_save_IFS
22232 esac
22234 USER_JAVAH=$ac_cv_path_USER_JAVAH
22235 if test -n "$USER_JAVAH"; then
22236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
22237 $as_echo "$USER_JAVAH" >&6; }
22238 else
22239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22240 $as_echo "no" >&6; }
22244 test -n "$USER_JAVAH" && break
22245 done
22249 if test "x${USER_JAVAH}" = x; then
22250 as_fn_error "can not find javah" "$LINENO" 5
22255 else
22258 if test "x" != x; then
22259 if test -f ""; then
22260 USER_JAVAH=""
22261 else
22262 # Extract the first word of """", so it can be a program name with args.
22263 set dummy ""; ac_word=$2
22264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22265 $as_echo_n "checking for $ac_word... " >&6; }
22266 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
22267 $as_echo_n "(cached) " >&6
22268 else
22269 case $USER_JAVAH in
22270 [\\/]* | ?:[\\/]*)
22271 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22275 for as_dir in $PATH
22277 IFS=$as_save_IFS
22278 test -z "$as_dir" && as_dir=.
22279 for ac_exec_ext in '' $ac_executable_extensions; do
22280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22281 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22283 break 2
22285 done
22286 done
22287 IFS=$as_save_IFS
22290 esac
22292 USER_JAVAH=$ac_cv_path_USER_JAVAH
22293 if test -n "$USER_JAVAH"; then
22294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
22295 $as_echo "$USER_JAVAH" >&6; }
22296 else
22297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22298 $as_echo "no" >&6; }
22303 else
22304 for ac_prog in gjavah gjavah-4.3 gjavah-4.2 gjavah-4.1 gcjh-wrapper-4.1 gcjh-4.1 javah
22306 # Extract the first word of "$ac_prog", so it can be a program name with args.
22307 set dummy $ac_prog; ac_word=$2
22308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22309 $as_echo_n "checking for $ac_word... " >&6; }
22310 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
22311 $as_echo_n "(cached) " >&6
22312 else
22313 case $USER_JAVAH in
22314 [\\/]* | ?:[\\/]*)
22315 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22319 for as_dir in $PATH
22321 IFS=$as_save_IFS
22322 test -z "$as_dir" && as_dir=.
22323 for ac_exec_ext in '' $ac_executable_extensions; do
22324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22325 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22327 break 2
22329 done
22330 done
22331 IFS=$as_save_IFS
22334 esac
22336 USER_JAVAH=$ac_cv_path_USER_JAVAH
22337 if test -n "$USER_JAVAH"; then
22338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
22339 $as_echo "$USER_JAVAH" >&6; }
22340 else
22341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22342 $as_echo "no" >&6; }
22346 test -n "$USER_JAVAH" && break
22347 done
22351 if test "x${USER_JAVAH}" = x; then
22352 as_fn_error "can not find javah" "$LINENO" 5
22362 CLASSPATH_INCLUDES="-I\$(top_srcdir)/include -I\$(top_srcdir)/native/jni/classpath -I\$(top_srcdir)/native/jni/native-lib"
22365 if test "x${COMPILE_JNI}" = xyes; then
22366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking jni_md.h support" >&5
22367 $as_echo_n "checking jni_md.h support... " >&6; }
22368 if test -f ${srcdir}/include/jni_md-${target_cpu}-${target_os}.h; then
22369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22370 $as_echo "yes" >&6; }
22371 else
22372 target_cpu=x86
22373 target_os=linux-gnu
22374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no" >&5
22375 $as_echo "$as_me: WARNING: no" >&2;}
22377 ac_sources="include/jni_md-${target_cpu}-${target_os}.h"
22378 ac_dests="include/jni_md.h"
22379 while test -n "$ac_sources"; do
22380 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
22381 set $ac_sources; ac_source=$1; shift; ac_sources=$*
22382 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
22383 done
22384 ac_config_links="$ac_config_links $ac_config_links_1"
22390 # Check whether --with-vm-classes was given.
22391 if test "${with_vm_classes+set}" = set; then :
22392 withval=$with_vm_classes; vm_classes="$with_vm_classes"
22393 else
22394 vm_classes='${top_srcdir}/vm/reference'
22401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
22402 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
22403 # Check whether --enable-maintainer-mode was given.
22404 if test "${enable_maintainer_mode+set}" = set; then :
22405 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
22406 else
22407 USE_MAINTAINER_MODE=no
22410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
22411 $as_echo "$USE_MAINTAINER_MODE" >&6; }
22412 if test $USE_MAINTAINER_MODE = yes; then
22413 MAINTAINER_MODE_TRUE=
22414 MAINTAINER_MODE_FALSE='#'
22415 else
22416 MAINTAINER_MODE_TRUE='#'
22417 MAINTAINER_MODE_FALSE=
22420 MAINT=$MAINTAINER_MODE_TRUE
22424 # Check whether --enable-debug was given.
22425 if test "${enable_debug+set}" = set; then :
22426 enableval=$enable_debug; case "${enableval}" in
22427 yes)
22428 LIBDEBUG="true"
22430 $as_echo "#define DEBUG 1" >>confdefs.h
22433 no) LIBDEBUG="false" ;;
22434 *) as_fn_error "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
22435 esac
22436 else
22437 LIBDEBUG="false"
22442 # Check whether --enable-load-library was given.
22443 if test "${enable_load_library+set}" = set; then :
22444 enableval=$enable_load_library; case "${enableval}" in
22445 yes) INIT_LOAD_LIBRARY="true" ;;
22446 no) INIT_LOAD_LIBRARY="false" ;;
22447 *) as_fn_error "bad value ${enableval} for --enable-load-library" "$LINENO" 5 ;;
22448 esac
22449 else
22450 INIT_LOAD_LIBRARY="true"
22457 # Check whether --with-ecj-jar was given.
22458 if test "${with_ecj_jar+set}" = set; then :
22459 withval=$with_ecj_jar; ECJ_JAR=$withval
22460 else
22461 if test -f $multi_basedir/ecj.jar; then
22462 ECJ_JAR='$(jardir)/ecj.jar'
22468 # Check whether --enable-java-lang-system-explicit-initialization was given.
22469 if test "${enable_java_lang_system_explicit_initialization+set}" = set; then :
22470 enableval=$enable_java_lang_system_explicit_initialization; case "${enableval}" in
22471 yes|true) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="true" ;;
22472 no|false) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false" ;;
22473 *) as_fn_error "bad value ${enableval} for --enable-java-lang-system-explicit-initialization" "$LINENO" 5 ;;
22474 esac
22475 else
22476 JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false"
22482 REMOVE=""
22485 # Extract the first word of "mkdir", so it can be a program name with args.
22486 set dummy mkdir; ac_word=$2
22487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22488 $as_echo_n "checking for $ac_word... " >&6; }
22489 if test "${ac_cv_path_MKDIR+set}" = set; then :
22490 $as_echo_n "(cached) " >&6
22491 else
22492 case $MKDIR in
22493 [\\/]* | ?:[\\/]*)
22494 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
22497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22498 for as_dir in $PATH
22500 IFS=$as_save_IFS
22501 test -z "$as_dir" && as_dir=.
22502 for ac_exec_ext in '' $ac_executable_extensions; do
22503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22504 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
22505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22506 break 2
22508 done
22509 done
22510 IFS=$as_save_IFS
22513 esac
22515 MKDIR=$ac_cv_path_MKDIR
22516 if test -n "$MKDIR"; then
22517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
22518 $as_echo "$MKDIR" >&6; }
22519 else
22520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22521 $as_echo "no" >&6; }
22525 # Extract the first word of "cp", so it can be a program name with args.
22526 set dummy cp; ac_word=$2
22527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22528 $as_echo_n "checking for $ac_word... " >&6; }
22529 if test "${ac_cv_path_CP+set}" = set; then :
22530 $as_echo_n "(cached) " >&6
22531 else
22532 case $CP in
22533 [\\/]* | ?:[\\/]*)
22534 ac_cv_path_CP="$CP" # Let the user override the test with a path.
22537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22538 for as_dir in $PATH
22540 IFS=$as_save_IFS
22541 test -z "$as_dir" && as_dir=.
22542 for ac_exec_ext in '' $ac_executable_extensions; do
22543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22544 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
22545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22546 break 2
22548 done
22549 done
22550 IFS=$as_save_IFS
22553 esac
22555 CP=$ac_cv_path_CP
22556 if test -n "$CP"; then
22557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
22558 $as_echo "$CP" >&6; }
22559 else
22560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22561 $as_echo "no" >&6; }
22565 # Extract the first word of "date", so it can be a program name with args.
22566 set dummy date; ac_word=$2
22567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22568 $as_echo_n "checking for $ac_word... " >&6; }
22569 if test "${ac_cv_path_DATE+set}" = set; then :
22570 $as_echo_n "(cached) " >&6
22571 else
22572 case $DATE in
22573 [\\/]* | ?:[\\/]*)
22574 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
22577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22578 for as_dir in $PATH
22580 IFS=$as_save_IFS
22581 test -z "$as_dir" && as_dir=.
22582 for ac_exec_ext in '' $ac_executable_extensions; do
22583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22584 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
22585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22586 break 2
22588 done
22589 done
22590 IFS=$as_save_IFS
22593 esac
22595 DATE=$ac_cv_path_DATE
22596 if test -n "$DATE"; then
22597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
22598 $as_echo "$DATE" >&6; }
22599 else
22600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22601 $as_echo "no" >&6; }
22606 # Extract the first word of "find", so it can be a program name with args.
22607 set dummy find; ac_word=$2
22608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22609 $as_echo_n "checking for $ac_word... " >&6; }
22610 if test "${ac_cv_path_FIND+set}" = set; then :
22611 $as_echo_n "(cached) " >&6
22612 else
22613 case $FIND in
22614 [\\/]* | ?:[\\/]*)
22615 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
22618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22619 for as_dir in $PATH
22621 IFS=$as_save_IFS
22622 test -z "$as_dir" && as_dir=.
22623 for ac_exec_ext in '' $ac_executable_extensions; do
22624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22625 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
22626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22627 break 2
22629 done
22630 done
22631 IFS=$as_save_IFS
22634 esac
22636 FIND=$ac_cv_path_FIND
22637 if test -n "$FIND"; then
22638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
22639 $as_echo "$FIND" >&6; }
22640 else
22641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22642 $as_echo "no" >&6; }
22648 # Extract the first word of "zip", so it can be a program name with args.
22649 set dummy zip; ac_word=$2
22650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22651 $as_echo_n "checking for $ac_word... " >&6; }
22652 if test "${ac_cv_path_ZIP+set}" = set; then :
22653 $as_echo_n "(cached) " >&6
22654 else
22655 case $ZIP in
22656 [\\/]* | ?:[\\/]*)
22657 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
22660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22661 for as_dir in $PATH
22663 IFS=$as_save_IFS
22664 test -z "$as_dir" && as_dir=.
22665 for ac_exec_ext in '' $ac_executable_extensions; do
22666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22667 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
22668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22669 break 2
22671 done
22672 done
22673 IFS=$as_save_IFS
22676 esac
22678 ZIP=$ac_cv_path_ZIP
22679 if test -n "$ZIP"; then
22680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
22681 $as_echo "$ZIP" >&6; }
22682 else
22683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22684 $as_echo "no" >&6; }
22689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a jar-like tool" >&5
22690 $as_echo_n "checking for a jar-like tool... " >&6; }
22692 # Check whether --with-jar was given.
22693 if test "${with_jar+set}" = set; then :
22694 withval=$with_jar;
22695 case "${withval}" in
22696 yes)
22697 JAR=yes
22700 JAR=no
22701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${JAR}" >&5
22702 $as_echo "${JAR}" >&6; }
22705 if test -f "${withval}"; then
22706 JAR="${withval}"
22707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${JAR}" >&5
22708 $as_echo "${JAR}" >&6; }
22709 else
22710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22711 $as_echo "not found" >&6; }
22712 as_fn_error "The jar tool ${withval} was not found." "$LINENO" 5
22715 esac
22717 else
22719 JAR=yes
22723 if test x"${JAR}" = "xyes"; then
22724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: trying fastjar, gjar and jar" >&5
22725 $as_echo "trying fastjar, gjar and jar" >&6; }
22726 for ac_prog in fastjar gjar jar
22728 # Extract the first word of "$ac_prog", so it can be a program name with args.
22729 set dummy $ac_prog; ac_word=$2
22730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22731 $as_echo_n "checking for $ac_word... " >&6; }
22732 if test "${ac_cv_path_JAR+set}" = set; then :
22733 $as_echo_n "(cached) " >&6
22734 else
22735 case $JAR in
22736 [\\/]* | ?:[\\/]*)
22737 ac_cv_path_JAR="$JAR" # Let the user override the test with a path.
22740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22741 for as_dir in $PATH
22743 IFS=$as_save_IFS
22744 test -z "$as_dir" && as_dir=.
22745 for ac_exec_ext in '' $ac_executable_extensions; do
22746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22747 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext"
22748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22749 break 2
22751 done
22752 done
22753 IFS=$as_save_IFS
22756 esac
22758 JAR=$ac_cv_path_JAR
22759 if test -n "$JAR"; then
22760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
22761 $as_echo "$JAR" >&6; }
22762 else
22763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22764 $as_echo "no" >&6; }
22768 test -n "$JAR" && break
22769 done
22771 if test x"${RHINO_JAR}" = "xyes"; then
22772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22773 $as_echo "not found" >&6; }
22776 if test x"${JAR}" = "xno" && test x"${ZIP}" = ""; then
22777 as_fn_error "No zip or jar tool found." "$LINENO" 5
22779 if test x"${JAR}" != "xno" && test x"${JAR}" != "xyes"; then
22780 WITH_JAR_TRUE=
22781 WITH_JAR_FALSE='#'
22782 else
22783 WITH_JAR_TRUE='#'
22784 WITH_JAR_FALSE=
22790 # Check whether --with-glibj was given.
22791 if test "${with_glibj+set}" = set; then :
22792 withval=$with_glibj;
22793 if test "x${withval}" = xyes || test "x${withval}" = xzip; then
22794 install_class_files=no
22795 build_class_files=yes
22796 use_zip=yes
22797 elif test "x${withval}" = xboth; then
22798 install_class_files=yes
22799 build_class_files=yes
22800 use_zip=yes
22801 elif test "x${withval}" = xflat; then
22802 install_class_files=yes
22803 build_class_files=yes
22804 use_zip=no
22805 elif test "x${withval}" = xno || test "x${withval}" = xnone; then
22806 install_class_files=no
22807 build_class_files=no
22808 use_zip=no
22809 elif test "x${withval}" = xbuild; then
22810 install_class_files=no
22811 build_class_files=yes
22812 use_zip=no
22813 else
22814 as_fn_error "unknown value given to --with-glibj" "$LINENO" 5
22817 else
22819 install_class_files=no
22820 use_zip=yes
22824 if test "x${use_zip}" = xyes; then
22825 INSTALL_GLIBJ_ZIP_TRUE=
22826 INSTALL_GLIBJ_ZIP_FALSE='#'
22827 else
22828 INSTALL_GLIBJ_ZIP_TRUE='#'
22829 INSTALL_GLIBJ_ZIP_FALSE=
22832 if test "x${install_class_files}" = xyes; then
22833 INSTALL_CLASS_FILES_TRUE=
22834 INSTALL_CLASS_FILES_FALSE='#'
22835 else
22836 INSTALL_CLASS_FILES_TRUE='#'
22837 INSTALL_CLASS_FILES_FALSE=
22840 if test "x${build_class_files}" = xyes; then
22841 BUILD_CLASS_FILES_TRUE=
22842 BUILD_CLASS_FILES_FALSE='#'
22843 else
22844 BUILD_CLASS_FILES_TRUE='#'
22845 BUILD_CLASS_FILES_FALSE=
22849 # Check whether --enable-examples was given.
22850 if test "${enable_examples+set}" = set; then :
22851 enableval=$enable_examples; case "${enableval}" in
22852 yes) EXAMPLESDIR="examples" ;;
22853 no) EXAMPLESDIR="" ;;
22854 *) as_fn_error "bad value ${enableval} for --enable-examples" "$LINENO" 5 ;;
22855 esac
22856 else
22857 EXAMPLESDIR="examples"
22860 if test "x${build_class_files}" = xno; then
22861 EXAMPLESDIR=""
22865 # Check whether --enable-tools was given.
22866 if test "${enable_tools+set}" = set; then :
22867 enableval=$enable_tools; case "${enableval}" in
22868 yes) TOOLSDIR="tools" ;;
22869 no) TOOLSDIR="" ;;
22870 *) as_fn_error "bad value ${enableval} for --enable-tools" "$LINENO" 5 ;;
22871 esac
22872 else
22873 TOOLSDIR="tools"
22876 if test "x${build_class_files}" = xno; then
22877 TOOLSDIR=""
22884 # Check whether --with-gjdoc was given.
22885 if test "${with_gjdoc+set}" = set; then :
22886 withval=$with_gjdoc; if test "x${withval}" = xno; then
22887 WITH_GJDOC=no;
22888 elif test "x${withval}" = xyes -o "x{withval}" = x; then
22889 WITH_GJDOC=yes;
22890 # Extract the first word of "gjdoc", so it can be a program name with args.
22891 set dummy gjdoc; ac_word=$2
22892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22893 $as_echo_n "checking for $ac_word... " >&6; }
22894 if test "${ac_cv_path_GJDOC+set}" = set; then :
22895 $as_echo_n "(cached) " >&6
22896 else
22897 case $GJDOC in
22898 [\\/]* | ?:[\\/]*)
22899 ac_cv_path_GJDOC="$GJDOC" # Let the user override the test with a path.
22902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22903 for as_dir in $PATH
22905 IFS=$as_save_IFS
22906 test -z "$as_dir" && as_dir=.
22907 for ac_exec_ext in '' $ac_executable_extensions; do
22908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22909 ac_cv_path_GJDOC="$as_dir/$ac_word$ac_exec_ext"
22910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22911 break 2
22913 done
22914 done
22915 IFS=$as_save_IFS
22917 test -z "$ac_cv_path_GJDOC" && ac_cv_path_GJDOC=""no""
22919 esac
22921 GJDOC=$ac_cv_path_GJDOC
22922 if test -n "$GJDOC"; then
22923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GJDOC" >&5
22924 $as_echo "$GJDOC" >&6; }
22925 else
22926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22927 $as_echo "no" >&6; }
22931 if test "x${GJDOC}" = xno; then
22932 as_fn_error "\"gjdoc executable not found\"" "$LINENO" 5;
22934 else
22935 WITH_GJDOC=yes
22936 GJDOC="${withval}"
22937 as_ac_File=`$as_echo "ac_cv_file_${GJDOC}" | $as_tr_sh`
22938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${GJDOC}" >&5
22939 $as_echo_n "checking for ${GJDOC}... " >&6; }
22940 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
22941 $as_echo_n "(cached) " >&6
22942 else
22943 test "$cross_compiling" = yes &&
22944 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
22945 if test -r "${GJDOC}"; then
22946 eval "$as_ac_File=yes"
22947 else
22948 eval "$as_ac_File=no"
22951 eval ac_res=\$$as_ac_File
22952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22953 $as_echo "$ac_res" >&6; }
22954 eval as_val=\$$as_ac_File
22955 if test "x$as_val" = x""yes; then :
22957 else
22958 as_fn_error "\"Cannot use ${withval} as gjdoc executable since it doesn't exist\"" "$LINENO" 5
22962 else
22963 WITH_GJDOC=no
22966 if test "x${WITH_GJDOC}" = xyes; then
22967 CREATE_API_DOCS_TRUE=
22968 CREATE_API_DOCS_FALSE='#'
22969 else
22970 CREATE_API_DOCS_TRUE='#'
22971 CREATE_API_DOCS_FALSE=
22974 if test "x${WITH_GJDOC}" = xyes; then
22975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of GJDoc" >&5
22976 $as_echo_n "checking version of GJDoc... " >&6; }
22977 gjdoc_version=$(${GJDOC} --version|cut -d ' ' -f2)
22978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gjdoc_version}" >&5
22979 $as_echo "${gjdoc_version}" >&6; }
22980 case ${gjdoc_version} in
22981 0.7.9) ;;
22982 0.8*) ;;
22983 *) as_fn_error "Building documentation requires GJDoc >= 0.7.9, ${gjdoc_version} found." "$LINENO" 5 ;;
22984 esac
22990 # Check whether --with-jay was given.
22991 if test "${with_jay+set}" = set; then :
22992 withval=$with_jay;
22993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to regenerate parsers with jay" >&5
22994 $as_echo_n "checking whether to regenerate parsers with jay... " >&6; }
22995 JAY_FOUND=no
22996 JAY_DIR_PATH=
22997 if test "x${withval}" = xno; then
22998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22999 $as_echo "no" >&6; }
23000 elif test "x${withval}" = xyes; then
23001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23002 $as_echo "yes" >&6; }
23003 JAY_DIR_PATH="/usr/share/jay"
23004 elif test -d "${withval}"; then
23005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23006 $as_echo "yes" >&6; }
23007 JAY_DIR_PATH="${withval}"
23008 elif test -f "${withval}"; then
23009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23010 $as_echo "yes" >&6; }
23011 JAY_DIR_PATH=`dirname "${withval}"`
23012 JAY="${withval}"
23013 else
23014 as_fn_error "jay not found at ${withval}" "$LINENO" 5
23017 if test "x${JAY_DIR_PATH}" != x; then
23018 # Extract the first word of "jay", so it can be a program name with args.
23019 set dummy jay; ac_word=$2
23020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23021 $as_echo_n "checking for $ac_word... " >&6; }
23022 if test "${ac_cv_path_JAY+set}" = set; then :
23023 $as_echo_n "(cached) " >&6
23024 else
23025 case $JAY in
23026 [\\/]* | ?:[\\/]*)
23027 ac_cv_path_JAY="$JAY" # Let the user override the test with a path.
23030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23031 as_dummy="${JAY_DIR_PATH}:${PATH}"
23032 for as_dir in $as_dummy
23034 IFS=$as_save_IFS
23035 test -z "$as_dir" && as_dir=.
23036 for ac_exec_ext in '' $ac_executable_extensions; do
23037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23038 ac_cv_path_JAY="$as_dir/$ac_word$ac_exec_ext"
23039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23040 break 2
23042 done
23043 done
23044 IFS=$as_save_IFS
23046 test -z "$ac_cv_path_JAY" && ac_cv_path_JAY=""no""
23048 esac
23050 JAY=$ac_cv_path_JAY
23051 if test -n "$JAY"; then
23052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAY" >&5
23053 $as_echo "$JAY" >&6; }
23054 else
23055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23056 $as_echo "no" >&6; }
23060 if test "x${JAY}" = xno; then
23061 as_fn_error "jay executable not found" "$LINENO" 5;
23063 JAY_SKELETON="${JAY_DIR_PATH}/skeleton"
23064 as_ac_File=`$as_echo "ac_cv_file_${JAY_SKELETON}" | $as_tr_sh`
23065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${JAY_SKELETON}" >&5
23066 $as_echo_n "checking for ${JAY_SKELETON}... " >&6; }
23067 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
23068 $as_echo_n "(cached) " >&6
23069 else
23070 test "$cross_compiling" = yes &&
23071 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
23072 if test -r "${JAY_SKELETON}"; then
23073 eval "$as_ac_File=yes"
23074 else
23075 eval "$as_ac_File=no"
23078 eval ac_res=\$$as_ac_File
23079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23080 $as_echo "$ac_res" >&6; }
23081 eval as_val=\$$as_ac_File
23082 if test "x$as_val" = x""yes; then :
23084 else
23085 as_fn_error "Expected skeleton file in ${JAY_DIR_PATH}" "$LINENO" 5
23088 JAY_FOUND=yes
23091 else
23093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to regenerate parsers with jay" >&5
23094 $as_echo_n "checking whether to regenerate parsers with jay... " >&6; }
23095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23096 $as_echo "no" >&6; }
23097 JAY_FOUND=no
23101 if test "x${JAY_FOUND}" = xyes; then
23102 REGEN_PARSERS_TRUE=
23103 REGEN_PARSERS_FALSE='#'
23104 else
23105 REGEN_PARSERS_TRUE='#'
23106 REGEN_PARSERS_FALSE=
23111 # Check whether --enable-portable-native-sync was given.
23112 if test "${enable_portable_native_sync+set}" = set; then :
23113 enableval=$enable_portable_native_sync; case "${enableval}" in
23114 yes)
23116 $as_echo "#define PORTABLE_NATIVE_SYNC 1" >>confdefs.h
23119 no) ;;
23121 as_fn_error "bad value ${enableval} for --enable-portable-native-sync" "$LINENO" 5
23123 esac
23127 # ------ AX CREATE STDINT H -------------------------------------
23128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
23129 $as_echo_n "checking for stdint types... " >&6; }
23130 ac_stdint_h=`echo include/config-int.h`
23131 # try to shortcircuit - if the default include path of the compiler
23132 # can find a "stdint.h" header then we assume that all compilers can.
23133 if test "${ac_cv_header_stdint_t+set}" = set; then :
23134 $as_echo_n "(cached) " >&6
23135 else
23137 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
23138 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
23139 old_CFLAGS="$CFLAGS" ; CFLAGS=""
23140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23141 /* end confdefs.h. */
23142 #include <stdint.h>
23144 main ()
23146 int_least32_t v = 0;
23148 return 0;
23150 _ACEOF
23151 if ac_fn_c_try_compile "$LINENO"; then :
23152 ac_cv_stdint_result="(assuming C99 compatible system)"
23153 ac_cv_header_stdint_t="stdint.h";
23154 else
23155 ac_cv_header_stdint_t=""
23157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23158 CXXFLAGS="$old_CXXFLAGS"
23159 CPPFLAGS="$old_CPPFLAGS"
23160 CFLAGS="$old_CFLAGS"
23164 v="... $ac_cv_header_stdint_h"
23165 if test "$ac_stdint_h" = "stdint.h" ; then
23166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
23167 $as_echo "(are you sure you want them in ./stdint.h?)" >&6; }
23168 elif test "$ac_stdint_h" = "inttypes.h" ; then
23169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
23170 $as_echo "(are you sure you want them in ./inttypes.h?)" >&6; }
23171 elif test "_$ac_cv_header_stdint_t" = "_" ; then
23172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
23173 $as_echo "(putting them into $ac_stdint_h)$v" >&6; }
23174 else
23175 ac_cv_header_stdint="$ac_cv_header_stdint_t"
23176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
23177 $as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; }
23180 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
23183 inttype_headers=`echo | sed -e 's/,/ /g'`
23185 ac_cv_stdint_result="(no helpful system typedefs seen)"
23187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
23188 $as_echo_n "checking for stdint uintptr_t... " >&6; }
23189 if test "${ac_cv_header_stdint_x+set}" = set; then :
23190 $as_echo_n "(cached) " >&6
23191 else
23193 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
23194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
23195 $as_echo "(..)" >&6; }
23196 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do
23197 unset ac_cv_type_uintptr_t
23198 unset ac_cv_type_uint64_t
23199 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
23201 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
23202 ac_cv_header_stdint_x=$i
23203 else
23204 continue
23207 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
23209 if test "x$ac_cv_type_uint64_t" = x""yes; then :
23210 and64="/uint64_t"
23211 else
23212 and64=""
23215 stdint.h inttypes.h sys/inttypes.h $inttype_headers
23216 break
23217 done
23218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
23219 $as_echo_n "checking for stdint uintptr_t... " >&6; }
23222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
23223 $as_echo "$ac_cv_header_stdint_x" >&6; }
23226 if test "_$ac_cv_header_stdint_x" = "_" ; then
23228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
23229 $as_echo_n "checking for stdint uint32_t... " >&6; }
23230 if test "${ac_cv_header_stdint_o+set}" = set; then :
23231 $as_echo_n "(cached) " >&6
23232 else
23234 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
23235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
23236 $as_echo "(..)" >&6; }
23237 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do
23238 unset ac_cv_type_uint32_t
23239 unset ac_cv_type_uint64_t
23240 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
23242 if test "x$ac_cv_type_uint32_t" = x""yes; then :
23243 ac_cv_header_stdint_o=$i
23244 else
23245 continue
23248 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
23250 if test "x$ac_cv_type_uint64_t" = x""yes; then :
23251 and64="/uint64_t"
23252 else
23253 and64=""
23256 inttypes.h sys/inttypes.h stdint.h $inttype_headers
23257 break
23258 break;
23259 done
23260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
23261 $as_echo_n "checking for stdint uint32_t... " >&6; }
23264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
23265 $as_echo "$ac_cv_header_stdint_o" >&6; }
23269 if test "_$ac_cv_header_stdint_x" = "_" ; then
23270 if test "_$ac_cv_header_stdint_o" = "_" ; then
23272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
23273 $as_echo_n "checking for stdint u_int32_t... " >&6; }
23274 if test "${ac_cv_header_stdint_u+set}" = set; then :
23275 $as_echo_n "(cached) " >&6
23276 else
23278 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
23279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
23280 $as_echo "(..)" >&6; }
23281 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
23282 unset ac_cv_type_u_int32_t
23283 unset ac_cv_type_u_int64_t
23284 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
23286 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
23287 ac_cv_header_stdint_u=$i
23288 else
23289 continue
23292 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
23294 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
23295 and64="/u_int64_t"
23296 else
23297 and64=""
23300 sys/types.h inttypes.h sys/inttypes.h $inttype_headers
23301 break
23302 break;
23303 done
23304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
23305 $as_echo_n "checking for stdint u_int32_t... " >&6; }
23308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
23309 $as_echo "$ac_cv_header_stdint_u" >&6; }
23311 fi fi
23313 if test "_$ac_cv_header_stdint_x" = "_" ; then
23314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
23315 $as_echo_n "checking for stdint datatype model... " >&6; }
23316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
23317 $as_echo "(..)" >&6; }
23319 # The cast to long int works around a bug in the HP C Compiler
23320 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23321 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23322 # This bug is HP SR number 8606223364.
23323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
23324 $as_echo_n "checking size of char... " >&6; }
23325 if test "${ac_cv_sizeof_char+set}" = set; then :
23326 $as_echo_n "(cached) " >&6
23327 else
23328 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
23330 else
23331 if test "$ac_cv_type_char" = yes; then
23332 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23334 { as_fn_set_status 77
23335 as_fn_error "cannot compute sizeof (char)
23336 See \`config.log' for more details." "$LINENO" 5; }; }
23337 else
23338 ac_cv_sizeof_char=0
23343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
23344 $as_echo "$ac_cv_sizeof_char" >&6; }
23348 cat >>confdefs.h <<_ACEOF
23349 #define SIZEOF_CHAR $ac_cv_sizeof_char
23350 _ACEOF
23353 # The cast to long int works around a bug in the HP C Compiler
23354 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23355 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23356 # This bug is HP SR number 8606223364.
23357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
23358 $as_echo_n "checking size of short... " >&6; }
23359 if test "${ac_cv_sizeof_short+set}" = set; then :
23360 $as_echo_n "(cached) " >&6
23361 else
23362 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
23364 else
23365 if test "$ac_cv_type_short" = yes; then
23366 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23368 { as_fn_set_status 77
23369 as_fn_error "cannot compute sizeof (short)
23370 See \`config.log' for more details." "$LINENO" 5; }; }
23371 else
23372 ac_cv_sizeof_short=0
23377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
23378 $as_echo "$ac_cv_sizeof_short" >&6; }
23382 cat >>confdefs.h <<_ACEOF
23383 #define SIZEOF_SHORT $ac_cv_sizeof_short
23384 _ACEOF
23387 # The cast to long int works around a bug in the HP C Compiler
23388 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23389 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23390 # This bug is HP SR number 8606223364.
23391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
23392 $as_echo_n "checking size of int... " >&6; }
23393 if test "${ac_cv_sizeof_int+set}" = set; then :
23394 $as_echo_n "(cached) " >&6
23395 else
23396 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
23398 else
23399 if test "$ac_cv_type_int" = yes; then
23400 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23402 { as_fn_set_status 77
23403 as_fn_error "cannot compute sizeof (int)
23404 See \`config.log' for more details." "$LINENO" 5; }; }
23405 else
23406 ac_cv_sizeof_int=0
23411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
23412 $as_echo "$ac_cv_sizeof_int" >&6; }
23416 cat >>confdefs.h <<_ACEOF
23417 #define SIZEOF_INT $ac_cv_sizeof_int
23418 _ACEOF
23421 # The cast to long int works around a bug in the HP C Compiler
23422 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23423 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23424 # This bug is HP SR number 8606223364.
23425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
23426 $as_echo_n "checking size of long... " >&6; }
23427 if test "${ac_cv_sizeof_long+set}" = set; then :
23428 $as_echo_n "(cached) " >&6
23429 else
23430 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
23432 else
23433 if test "$ac_cv_type_long" = yes; then
23434 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23436 { as_fn_set_status 77
23437 as_fn_error "cannot compute sizeof (long)
23438 See \`config.log' for more details." "$LINENO" 5; }; }
23439 else
23440 ac_cv_sizeof_long=0
23445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
23446 $as_echo "$ac_cv_sizeof_long" >&6; }
23450 cat >>confdefs.h <<_ACEOF
23451 #define SIZEOF_LONG $ac_cv_sizeof_long
23452 _ACEOF
23455 # The cast to long int works around a bug in the HP C Compiler
23456 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23457 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23458 # This bug is HP SR number 8606223364.
23459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
23460 $as_echo_n "checking size of void*... " >&6; }
23461 if test "${ac_cv_sizeof_voidp+set}" = set; then :
23462 $as_echo_n "(cached) " >&6
23463 else
23464 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
23466 else
23467 if test "$ac_cv_type_voidp" = yes; then
23468 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23470 { as_fn_set_status 77
23471 as_fn_error "cannot compute sizeof (void*)
23472 See \`config.log' for more details." "$LINENO" 5; }; }
23473 else
23474 ac_cv_sizeof_voidp=0
23479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
23480 $as_echo "$ac_cv_sizeof_voidp" >&6; }
23484 cat >>confdefs.h <<_ACEOF
23485 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
23486 _ACEOF
23489 ac_cv_char_data_model=""
23490 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
23491 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
23492 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
23493 ac_cv_long_data_model=""
23494 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
23495 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
23496 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
23497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking data model" >&5
23498 $as_echo_n "checking data model... " >&6; }
23499 case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
23500 122/242) ac_cv_data_model="IP16" ; n="standard 16bit machine" ;;
23501 122/244) ac_cv_data_model="LP32" ; n="standard 32bit machine" ;;
23502 122/*) ac_cv_data_model="i16" ; n="unusual int16 model" ;;
23503 124/444) ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
23504 124/488) ac_cv_data_model="LP64" ; n="standard 64bit unixish" ;;
23505 124/448) ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
23506 124/*) ac_cv_data_model="i32" ; n="unusual int32 model" ;;
23507 128/888) ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
23508 128/*) ac_cv_data_model="i64" ; n="unusual int64 model" ;;
23509 222/*2) ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
23510 333/*3) ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
23511 444/*4) ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
23512 666/*6) ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
23513 888/*8) ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
23514 222/*|333/*|444/*|666/*|888/*) :
23515 ac_cv_data_model="iDSP" ; n="unusual dsptype" ;;
23516 *) ac_cv_data_model="none" ; n="very unusual model" ;;
23517 esac
23518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
23519 $as_echo "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; }
23523 if test "_$ac_cv_header_stdint_x" != "_" ; then
23524 ac_cv_header_stdint="$ac_cv_header_stdint_x"
23525 elif test "_$ac_cv_header_stdint_o" != "_" ; then
23526 ac_cv_header_stdint="$ac_cv_header_stdint_o"
23527 elif test "_$ac_cv_header_stdint_u" != "_" ; then
23528 ac_cv_header_stdint="$ac_cv_header_stdint_u"
23529 else
23530 ac_cv_header_stdint="stddef.h"
23533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
23534 $as_echo_n "checking for extra inttypes in chosen header... " >&6; }
23535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
23536 $as_echo "($ac_cv_header_stdint)" >&6; }
23537 unset ac_cv_type_int_least32_t
23538 unset ac_cv_type_int_fast32_t
23539 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
23541 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
23545 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
23547 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
23551 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
23553 if test "x$ac_cv_type_intmax_t" = x""yes; then :
23558 fi # shortcircut to system "stdint.h"
23559 # ------------------ PREPARE VARIABLES ------------------------------
23560 if test "$GCC" = "yes" ; then
23561 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
23562 else
23563 ac_cv_stdint_message="using $CC"
23566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
23567 $as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
23569 # ----------------- DONE inttypes.h checks START header -------------
23570 ac_config_commands="$ac_config_commands $ac_stdint_h"
23575 # Check whether --with-glibj_zip was given.
23576 if test "${with_glibj_zip+set}" = set; then :
23577 withval=$with_glibj_zip;
23581 case "$with_glibj_zip" in
23583 use_glibj_zip=false
23585 "no" )
23586 use_glibj_zip=false
23588 "yes")
23589 as_fn_error "Please suply an absolute path to a prebuilt glibj.zip" "$LINENO" 5
23592 use_glibj_zip=true
23593 PATH_TO_GLIBJ_ZIP=$with_glibj_zip
23595 esac;
23597 if test x$use_glibj_zip = xtrue; then
23598 USE_PREBUILT_GLIBJ_ZIP_TRUE=
23599 USE_PREBUILT_GLIBJ_ZIP_FALSE='#'
23600 else
23601 USE_PREBUILT_GLIBJ_ZIP_TRUE='#'
23602 USE_PREBUILT_GLIBJ_ZIP_FALSE=
23607 if test "x${TOOLSDIR}" != x; then
23608 if test "x${COMPILE_WRAPPERS}" = xno && test "x${enable_java_maintainer_mode}" = xyes; then
23611 if test "x$JAVAPREFIX" = x; then
23612 test "x$JAVA" = x && for ac_prog in cacao$EXEEXT jamvm$EXEEXT kaffe$EXEEXT gij$EXEEXT java$EXEEXT
23614 # Extract the first word of "$ac_prog", so it can be a program name with args.
23615 set dummy $ac_prog; ac_word=$2
23616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23617 $as_echo_n "checking for $ac_word... " >&6; }
23618 if test "${ac_cv_prog_JAVA+set}" = set; then :
23619 $as_echo_n "(cached) " >&6
23620 else
23621 if test -n "$JAVA"; then
23622 ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
23623 else
23624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23625 for as_dir in $PATH
23627 IFS=$as_save_IFS
23628 test -z "$as_dir" && as_dir=.
23629 for ac_exec_ext in '' $ac_executable_extensions; do
23630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23631 ac_cv_prog_JAVA="$ac_prog"
23632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23633 break 2
23635 done
23636 done
23637 IFS=$as_save_IFS
23641 JAVA=$ac_cv_prog_JAVA
23642 if test -n "$JAVA"; then
23643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
23644 $as_echo "$JAVA" >&6; }
23645 else
23646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23647 $as_echo "no" >&6; }
23651 test -n "$JAVA" && break
23652 done
23654 else
23655 test "x$JAVA" = x && for ac_prog in cacao$EXEEXT jamvm$EXEEXT kaffe$EXEEXT gij$EXEEXT java$EXEEXT
23657 # Extract the first word of "$ac_prog", so it can be a program name with args.
23658 set dummy $ac_prog; ac_word=$2
23659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23660 $as_echo_n "checking for $ac_word... " >&6; }
23661 if test "${ac_cv_prog_JAVA+set}" = set; then :
23662 $as_echo_n "(cached) " >&6
23663 else
23664 if test -n "$JAVA"; then
23665 ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
23666 else
23667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23668 for as_dir in $PATH
23670 IFS=$as_save_IFS
23671 test -z "$as_dir" && as_dir=.
23672 for ac_exec_ext in '' $ac_executable_extensions; do
23673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23674 ac_cv_prog_JAVA="$ac_prog"
23675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23676 break 2
23678 done
23679 done
23680 IFS=$as_save_IFS
23684 JAVA=$ac_cv_prog_JAVA
23685 if test -n "$JAVA"; then
23686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
23687 $as_echo "$JAVA" >&6; }
23688 else
23689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23690 $as_echo "no" >&6; }
23694 test -n "$JAVA" && break
23695 done
23696 test -n "$JAVA" || JAVA="$JAVAPREFIX"
23699 test "x$JAVA" = x && as_fn_error "no acceptable Java virtual machine found in \$PATH" "$LINENO" 5
23702 ECJ_OPTS="-warn:-deprecation,serial,unusedImport"
23703 JAVAC_OPTS="-Xlint:unchecked,cast,divzero,empty,finally,overrides"
23704 GCJ_OPTS="-g"
23705 if test "x$JAVAPREFIX" = x; then
23706 test "x$JAVAC" = x && for ac_prog in "ecj$EXEEXT $ECJ_OPTS" "ecj-3.3$EXEEXT $ECJ_OPTS" "ecj-3.2$EXEEXT $ECJ_OPTS" "javac$EXEEXT $JAVAC_OPTS" "gcj$EXEEXT -C"
23708 # Extract the first word of "$ac_prog", so it can be a program name with args.
23709 set dummy $ac_prog; ac_word=$2
23710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23711 $as_echo_n "checking for $ac_word... " >&6; }
23712 if test "${ac_cv_prog_JAVAC+set}" = set; then :
23713 $as_echo_n "(cached) " >&6
23714 else
23715 if test -n "$JAVAC"; then
23716 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
23717 else
23718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23719 for as_dir in $PATH
23721 IFS=$as_save_IFS
23722 test -z "$as_dir" && as_dir=.
23723 for ac_exec_ext in '' $ac_executable_extensions; do
23724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23725 ac_cv_prog_JAVAC="$ac_prog"
23726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23727 break 2
23729 done
23730 done
23731 IFS=$as_save_IFS
23735 JAVAC=$ac_cv_prog_JAVAC
23736 if test -n "$JAVAC"; then
23737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
23738 $as_echo "$JAVAC" >&6; }
23739 else
23740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23741 $as_echo "no" >&6; }
23745 test -n "$JAVAC" && break
23746 done
23748 else
23749 test "x$JAVAC" = x && for ac_prog in "ecj$EXEEXT $ECJ_OPTS" "ecj-3.3$EXEEXT $ECJ_OPTS" "ecj-3.2$EXEEXT $ECJ_OPTS" "javac$EXEEXT $JAVAC_OPTS" "gcj$EXEEXT -C"
23751 # Extract the first word of "$ac_prog", so it can be a program name with args.
23752 set dummy $ac_prog; ac_word=$2
23753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23754 $as_echo_n "checking for $ac_word... " >&6; }
23755 if test "${ac_cv_prog_JAVAC+set}" = set; then :
23756 $as_echo_n "(cached) " >&6
23757 else
23758 if test -n "$JAVAC"; then
23759 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
23760 else
23761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23762 for as_dir in $PATH
23764 IFS=$as_save_IFS
23765 test -z "$as_dir" && as_dir=.
23766 for ac_exec_ext in '' $ac_executable_extensions; do
23767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23768 ac_cv_prog_JAVAC="$ac_prog"
23769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23770 break 2
23772 done
23773 done
23774 IFS=$as_save_IFS
23778 JAVAC=$ac_cv_prog_JAVAC
23779 if test -n "$JAVAC"; then
23780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
23781 $as_echo "$JAVAC" >&6; }
23782 else
23783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23784 $as_echo "no" >&6; }
23788 test -n "$JAVAC" && break
23789 done
23790 test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
23793 test "x$JAVAC" = x && as_fn_error "no acceptable Java compiler found in \$PATH" "$LINENO" 5
23794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC is a version of gcj" >&5
23795 $as_echo_n "checking if $JAVAC is a version of gcj... " >&6; }
23796 if test "${ac_cv_prog_javac_is_gcj+set}" = set; then :
23797 $as_echo_n "(cached) " >&6
23798 else
23800 if $JAVAC --version 2>&1 | grep gcj >&5 ; then
23801 ac_cv_prog_javac_is_gcj=yes;
23802 JAVAC="$JAVAC $GCJ_OPTS";
23803 else
23804 ac_cv_prog_javac_is_gcj=no;
23808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_is_gcj" >&5
23809 $as_echo "$ac_cv_prog_javac_is_gcj" >&6; }
23810 JAVAC_IS_GCJ=$ac_cv_prog_javac_is_gcj
23812 if test x"${JAVAC_IS_GCJ}" = xyes; then
23813 GCJ_JAVAC_TRUE=
23814 GCJ_JAVAC_FALSE='#'
23815 else
23816 GCJ_JAVAC_TRUE='#'
23817 GCJ_JAVAC_FALSE=
23823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
23824 $as_echo_n "checking if $JAVAC works... " >&6; }
23825 if test "${ac_cv_prog_javac_works+set}" = set; then :
23826 $as_echo_n "(cached) " >&6
23827 else
23829 JAVA_TEST=Object.java
23830 CLASS_TEST=Object.class
23831 cat << \EOF > $JAVA_TEST
23832 /* #line 23832 "configure" */
23833 package java.lang;
23835 public class Object
23837 static <T> void doStuff()
23842 if test x$JAVAC_IS_GCJ = xyes; then
23843 CMD="$JAVAC $JAVACFLAGS -fsource=1.5 -ftarget=1.5 $JAVA_TEST"
23844 else
23845 CMD="$JAVAC $JAVACFLAGS -source 1.5 -target 1.5 $JAVA_TEST"
23847 if { ac_try='$CMD'
23848 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23849 (eval $ac_try) 2>&5
23850 ac_status=$?
23851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23852 test $ac_status = 0; }; } >/dev/null 2>&1; then
23853 ac_cv_prog_javac_works=yes
23854 else
23855 as_fn_error "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
23856 echo "configure: failed program was:" >&5
23857 cat $JAVA_TEST >&5
23859 rm -f $JAVA_TEST $CLASS_TEST
23862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
23863 $as_echo "$ac_cv_prog_javac_works" >&6; }
23867 # Extract the first word of "uudecode$EXEEXT", so it can be a program name with args.
23868 set dummy uudecode$EXEEXT; ac_word=$2
23869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23870 $as_echo_n "checking for $ac_word... " >&6; }
23871 if test "${ac_cv_prog_uudecode+set}" = set; then :
23872 $as_echo_n "(cached) " >&6
23873 else
23874 if test -n "$uudecode"; then
23875 ac_cv_prog_uudecode="$uudecode" # Let the user override the test.
23876 else
23877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23878 for as_dir in $PATH
23880 IFS=$as_save_IFS
23881 test -z "$as_dir" && as_dir=.
23882 for ac_exec_ext in '' $ac_executable_extensions; do
23883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23884 ac_cv_prog_uudecode="yes"
23885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23886 break 2
23888 done
23889 done
23890 IFS=$as_save_IFS
23894 uudecode=$ac_cv_prog_uudecode
23895 if test -n "$uudecode"; then
23896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $uudecode" >&5
23897 $as_echo "$uudecode" >&6; }
23898 else
23899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23900 $as_echo "no" >&6; }
23904 if test x$uudecode = xyes; then
23905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if uudecode can decode base 64 file" >&5
23906 $as_echo_n "checking if uudecode can decode base 64 file... " >&6; }
23907 if test "${ac_cv_prog_uudecode_base64+set}" = set; then :
23908 $as_echo_n "(cached) " >&6
23909 else
23911 cat << \EOF > Test.uue
23912 begin-base64 644 Test.class
23913 yv66vgADAC0AFQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAE
23914 bWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51
23915 bWJlclRhYmxlDAAKAAsBAARleGl0AQAEKEkpVgoADQAJBwAOAQAQamF2YS9s
23916 YW5nL1N5c3RlbQEABjxpbml0PgEAAygpVgwADwAQCgADABEBAApTb3VyY2VG
23917 aWxlAQAJVGVzdC5qYXZhACEAAQADAAAAAAACAAkABQAGAAEABwAAACEAAQAB
23918 AAAABQO4AAyxAAAAAQAIAAAACgACAAAACgAEAAsAAQAPABAAAQAHAAAAIQAB
23919 AAEAAAAFKrcAErEAAAABAAgAAAAKAAIAAAAEAAQABAABABMAAAACABQ=
23920 ====
23922 if uudecode$EXEEXT Test.uue; then
23923 ac_cv_prog_uudecode_base64=yes
23924 else
23925 echo "configure: 23925: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
23926 echo "configure: failed file was:" >&5
23927 cat Test.uue >&5
23928 ac_cv_prog_uudecode_base64=no
23930 rm -f Test.uue
23932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_uudecode_base64" >&5
23933 $as_echo "$ac_cv_prog_uudecode_base64" >&6; }
23935 if test x$ac_cv_prog_uudecode_base64 != xyes; then
23936 rm -f Test.class
23937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I have to compile Test.class from scratch" >&5
23938 $as_echo "$as_me: WARNING: I have to compile Test.class from scratch" >&2;}
23939 if test x$ac_cv_prog_javac_works = xno; then
23940 as_fn_error "Cannot compile java source. $JAVAC does not work properly" "$LINENO" 5
23943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVA works" >&5
23944 $as_echo_n "checking if $JAVA works... " >&6; }
23945 if test "${ac_cv_prog_java_works+set}" = set; then :
23946 $as_echo_n "(cached) " >&6
23947 else
23949 JAVA_TEST=Test.java
23950 CLASS_TEST=Test.class
23951 TEST=Test
23952 cat << \EOF > $JAVA_TEST
23953 /* [#]line 23953 "configure" */
23954 public class Test {
23955 public static void main (String args[]) {
23956 System.exit (0);
23959 if test x$ac_cv_prog_uudecode_base64 != xyes; then
23961 if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
23962 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23963 (eval $ac_try) 2>&5
23964 ac_status=$?
23965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23966 test $ac_status = 0; }; } && test -s $CLASS_TEST; then
23968 else
23969 echo "configure: failed program was:" >&5
23970 cat $JAVA_TEST >&5
23971 as_fn_error "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
23974 if { ac_try='CLASSPATH=.:$CLASSPATH $JAVA $JAVAFLAGS $TEST'
23975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23976 (eval $ac_try) 2>&5
23977 ac_status=$?
23978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23979 test $ac_status = 0; }; } >/dev/null 2>&1; then
23980 ac_cv_prog_java_works=yes
23981 else
23982 echo "configure: failed program was:" >&5
23983 cat $JAVA_TEST >&5
23984 as_fn_error "The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
23986 rm -fr $JAVA_TEST $CLASS_TEST Test.uue
23989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_java_works" >&5
23990 $as_echo "$ac_cv_prog_java_works" >&6; }
23994 if test "x${COMPILE_GJDOC}" = xyes; then
23996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ANTLR parser generator JAR file" >&5
23997 $as_echo_n "checking for the ANTLR parser generator JAR file... " >&6; }
23998 if test -z "$ANTLR_JAR"; then
23999 for antlr_lib_home in `ls -d /usr/local/share/antlr* 2> /dev/null` \
24000 /usr/share/antlr/lib /usr/share/java /usr/lib;
24002 if test -f "$antlr_lib_home/antlr.jar"; then
24003 ANTLR_JAR="$antlr_lib_home/antlr.jar"
24004 break
24006 done
24008 test -f $ANTLR_JAR || as_fn_error "specified ANTLR jar file $ANTLR_JAR not found." "$LINENO" 5 \
24009 && { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
24010 $as_echo "$ANTLR_JAR" >&6; }
24013 if test "x${REGENERATE_GJDOC_PARSER}" = xyes && test "x${enable_java_maintainer_mode}" = xyes; then
24015 if test -n "$ac_tool_prefix"; then
24016 for ac_prog in cantlr runantlr antlr
24018 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24019 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
24020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24021 $as_echo_n "checking for $ac_word... " >&6; }
24022 if test "${ac_cv_prog_ANTLR+set}" = set; then :
24023 $as_echo_n "(cached) " >&6
24024 else
24025 if test -n "$ANTLR"; then
24026 ac_cv_prog_ANTLR="$ANTLR" # Let the user override the test.
24027 else
24028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24029 for as_dir in $PATH
24031 IFS=$as_save_IFS
24032 test -z "$as_dir" && as_dir=.
24033 for ac_exec_ext in '' $ac_executable_extensions; do
24034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24035 ac_cv_prog_ANTLR="$ac_tool_prefix$ac_prog"
24036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24037 break 2
24039 done
24040 done
24041 IFS=$as_save_IFS
24045 ANTLR=$ac_cv_prog_ANTLR
24046 if test -n "$ANTLR"; then
24047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR" >&5
24048 $as_echo "$ANTLR" >&6; }
24049 else
24050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24051 $as_echo "no" >&6; }
24055 test -n "$ANTLR" && break
24056 done
24058 if test -z "$ANTLR"; then
24059 ac_ct_ANTLR=$ANTLR
24060 for ac_prog in cantlr runantlr antlr
24062 # Extract the first word of "$ac_prog", so it can be a program name with args.
24063 set dummy $ac_prog; ac_word=$2
24064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24065 $as_echo_n "checking for $ac_word... " >&6; }
24066 if test "${ac_cv_prog_ac_ct_ANTLR+set}" = set; then :
24067 $as_echo_n "(cached) " >&6
24068 else
24069 if test -n "$ac_ct_ANTLR"; then
24070 ac_cv_prog_ac_ct_ANTLR="$ac_ct_ANTLR" # Let the user override the test.
24071 else
24072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24073 for as_dir in $PATH
24075 IFS=$as_save_IFS
24076 test -z "$as_dir" && as_dir=.
24077 for ac_exec_ext in '' $ac_executable_extensions; do
24078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24079 ac_cv_prog_ac_ct_ANTLR="$ac_prog"
24080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24081 break 2
24083 done
24084 done
24085 IFS=$as_save_IFS
24089 ac_ct_ANTLR=$ac_cv_prog_ac_ct_ANTLR
24090 if test -n "$ac_ct_ANTLR"; then
24091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_ANTLR" >&5
24092 $as_echo "$ac_ct_ANTLR" >&6; }
24093 else
24094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24095 $as_echo "no" >&6; }
24099 test -n "$ac_ct_ANTLR" && break
24100 done
24102 if test "x$ac_ct_ANTLR" = x; then
24103 ANTLR=""
24104 else
24105 case $cross_compiling:$ac_tool_warned in
24106 yes:)
24107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24109 ac_tool_warned=yes ;;
24110 esac
24111 ANTLR=$ac_ct_ANTLR
24115 if test "x$ANTLR" = x; then
24116 if test -z "$JAVA"; then
24117 as_fn_error "Failed to find either an antlr binary or a suitable Java runtime for ANTLR." "$LINENO" 5
24118 else
24119 if test -z "$ANTLR_JAR"; then
24120 as_fn_error "Failed to find either an antlr binary or a suitable antlr jar file." "$LINENO" 5
24121 else
24122 ANTLR="$JAVA -classpath $ANTLR_JAR antlr.Tool"
24127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for antlr 2.7.1 or better" >&5
24128 $as_echo_n "checking for antlr 2.7.1 or better... " >&6; }
24129 antlr_version_str=`$ANTLR 2>&1 | head -n 1 | sed '/.*Version */!d; s///;q'`
24130 if test "$antlr_version_str"; then
24131 antlr_version_regex='s/\([[:digit:]]\+\)\.\([[:digit:]]\+\)\.\([[:digit:]]\+\).*$/'
24132 antlr_version_major=`echo $antlr_version_str | sed "$antlr_version_regex\\1/"`
24133 antlr_version_minor=`echo $antlr_version_str | sed "$antlr_version_regex\\2/"`
24134 antlr_version_micro=`echo $antlr_version_str | sed "$antlr_version_regex\\3/"`
24135 (test $antlr_version_major -gt 2 || \
24136 (test $antlr_version_major -eq 2 && \
24137 test $antlr_version_minor -gt 7) || \
24138 (test $antlr_version_major -eq 2 && \
24139 test $antlr_version_minor -eq 7 && \
24140 test $antlr_version_micro -ge 1))
24142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $antlr_version_major.$antlr_version_minor.$antlr_version_micro" >&5
24143 $as_echo "$antlr_version_major.$antlr_version_minor.$antlr_version_micro" >&6; }
24150 # Check for javac if we need to build either the class library,
24151 # the examples or the tools
24152 if test "x${use_glibj_zip}" = xfalse || \
24153 test "x${EXAMPLESDIR}" != x || \
24154 test "x${TOOLSDIR}" != x && \
24155 test "x${build_class_files}" != xno && \
24156 test "${enable_java_maintainer_mode}" = yes; then
24158 JAVA_TEST=Test.java
24159 CLASS_TEST=Test.class
24160 cat << \EOF > $JAVA_TEST
24161 /* #line 24161 "configure" */
24162 public class Test
24164 public static void main(String args)
24166 System.out.println("Hello World");
24170 if test x$JAVAC_IS_GCJ != xyes; then
24171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether javac supports -J" >&5
24172 $as_echo_n "checking whether javac supports -J... " >&6; }
24173 $JAVAC $JAVACFLAGS -J-Xmx768M -sourcepath '' $JAVA_TEST
24174 javac_result=$?
24175 if test "x$javac_result" = "x0"; then
24176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24177 $as_echo "yes" >&6; }
24178 JAVAC_MEM_OPT="-J-Xmx768M"
24179 else
24180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24181 $as_echo "no" >&6; }
24184 rm -f $JAVA_TEST $CLASS_TEST
24187 else
24188 if false; then
24189 GCJ_JAVAC_TRUE=
24190 GCJ_JAVAC_FALSE='#'
24191 else
24192 GCJ_JAVAC_TRUE='#'
24193 GCJ_JAVAC_FALSE=
24199 # Check whether --with-escher was given.
24200 if test "${with_escher+set}" = set; then :
24201 withval=$with_escher;
24204 case "$with_escher" in
24206 use_escher=false
24208 "no")
24209 use_escher=false
24211 "yes")
24212 as_fn_error "Please supply an absolute path to Escher library" "$LINENO" 5
24215 use_escher=true
24216 PATH_TO_ESCHER=$with_escher
24218 esac
24220 if test x$use_escher = xtrue; then
24221 USE_ESCHER_TRUE=
24222 USE_ESCHER_FALSE='#'
24223 else
24224 USE_ESCHER_TRUE='#'
24225 USE_ESCHER_FALSE=
24230 # Check whether --enable-local-sockets was given.
24231 if test "${enable_local_sockets+set}" = set; then :
24232 enableval=$enable_local_sockets; case "${enableval}" in
24233 yes)
24234 ENABLE_LOCAL_SOCKETS=yes
24237 ENABLE_LOCAL_SOCKETS=no
24239 esac
24242 if test "x$ENABLE_LOCAL_SOCKETS" = "xyes"
24243 then
24244 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
24245 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
24250 for ac_func in read write bind listen accept shutdown
24251 do :
24252 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24253 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24254 eval as_val=\$$as_ac_var
24255 if test "x$as_val" = x""yes; then :
24256 cat >>confdefs.h <<_ACEOF
24257 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24258 _ACEOF
24260 else
24261 as_fn_error "networking support not available" "$LINENO" 5
24263 done
24266 $as_echo "#define ENABLE_LOCAL_SOCKETS 1" >>confdefs.h
24269 if test "x$ENABLE_LOCAL_SOCKETS" = "xyes"; then
24270 ENABLE_LOCAL_SOCKETS_TRUE=
24271 ENABLE_LOCAL_SOCKETS_FALSE='#'
24272 else
24273 ENABLE_LOCAL_SOCKETS_TRUE='#'
24274 ENABLE_LOCAL_SOCKETS_FALSE=
24280 WANT_NATIVE_BIG_INTEGER=false
24281 if test "x${COMPILE_GMP}" = xyes; then
24282 if test "x${ac_cv_lib_gmp___gmpz_mul_si}" = xyes; then
24283 if test "x${ac_cv_header_gmp_h}" = xyes; then
24284 WANT_NATIVE_BIG_INTEGER=true
24286 $as_echo "#define WITH_GNU_MP 1" >>confdefs.h
24288 else
24289 COMPILE_GMP=no
24291 else
24292 COMPILE_GMP=no
24296 if test "x${COMPILE_GMP}" = xyes; then
24297 CREATE_GMPBI_LIBRARY_TRUE=
24298 CREATE_GMPBI_LIBRARY_FALSE='#'
24299 else
24300 CREATE_GMPBI_LIBRARY_TRUE='#'
24301 CREATE_GMPBI_LIBRARY_FALSE=
24305 ac_config_files="$ac_config_files Makefile doc/Makefile doc/api/Makefile external/Makefile external/sax/Makefile external/w3c_dom/Makefile external/relaxngDatatype/Makefile external/jsr166/Makefile gnu/classpath/Configuration.java gnu/java/security/Configuration.java include/Makefile native/Makefile native/fdlibm/Makefile native/jawt/Makefile native/jni/Makefile native/jni/classpath/Makefile native/jni/java-io/Makefile native/jni/java-lang/Makefile native/jni/java-math/Makefile native/jni/java-net/Makefile native/jni/java-nio/Makefile native/jni/java-util/Makefile native/jni/gtk-peer/Makefile native/jni/gconf-peer/Makefile native/jni/gstreamer-peer/Makefile native/jni/qt-peer/Makefile native/jni/xmlj/Makefile native/jni/midi-alsa/Makefile native/jni/midi-dssi/Makefile native/jni/native-lib/Makefile native/plugin/Makefile resource/Makefile resource/META-INF/services/java.util.prefs.PreferencesFactory resource/META-INF/services/javax.sound.sampled.spi.AudioFileReader resource/META-INF/services/javax.sound.sampled.spi.MixerProvider scripts/Makefile scripts/classpath.spec lib/Makefile lib/gen-classlist.sh lib/copy-vmresources.sh scripts/check_jni_methods.sh tools/Makefile examples/Makefile examples/Makefile.jawt examples/Makefile.java2d"
24308 if test "x${COMPILE_WRAPPERS}" = xyes; then
24310 else
24311 ac_config_files="$ac_config_files tools/gappletviewer tools/gjarsigner tools/gkeytool tools/gjar tools/gnative2ascii tools/gserialver tools/grmiregistry tools/gtnameserv tools/gorbd tools/grmid tools/grmic tools/gjavah"
24314 ac_config_commands="$ac_config_commands gappletviewer"
24316 ac_config_commands="$ac_config_commands gjarsigner"
24318 ac_config_commands="$ac_config_commands gkeytool"
24320 ac_config_commands="$ac_config_commands gjar"
24322 ac_config_commands="$ac_config_commands gnative2ascii"
24324 ac_config_commands="$ac_config_commands gserialver"
24326 ac_config_commands="$ac_config_commands grmiregistry"
24328 ac_config_commands="$ac_config_commands gtnameserv"
24330 ac_config_commands="$ac_config_commands gorbd"
24332 ac_config_commands="$ac_config_commands grmid"
24334 ac_config_commands="$ac_config_commands grmic"
24336 ac_config_commands="$ac_config_commands gjavah"
24341 if test "x${COMPILE_GJDOC}" = xyes
24342 then
24343 ac_config_files="$ac_config_files tools/gjdoc"
24345 ac_config_commands="$ac_config_commands gjdoc"
24349 ac_config_commands="$ac_config_commands gen-classlist"
24351 ac_config_commands="$ac_config_commands copy-vmresources"
24353 cat >confcache <<\_ACEOF
24354 # This file is a shell script that caches the results of configure
24355 # tests run on this system so they can be shared between configure
24356 # scripts and configure runs, see configure's option --config-cache.
24357 # It is not useful on other systems. If it contains results you don't
24358 # want to keep, you may remove or edit it.
24360 # config.status only pays attention to the cache file if you give it
24361 # the --recheck option to rerun configure.
24363 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24364 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24365 # following values.
24367 _ACEOF
24369 # The following way of writing the cache mishandles newlines in values,
24370 # but we know of no workaround that is simple, portable, and efficient.
24371 # So, we kill variables containing newlines.
24372 # Ultrix sh set writes to stderr and can't be redirected directly,
24373 # and sets the high bit in the cache file unless we assign to the vars.
24375 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24376 eval ac_val=\$$ac_var
24377 case $ac_val in #(
24378 *${as_nl}*)
24379 case $ac_var in #(
24380 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24381 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24382 esac
24383 case $ac_var in #(
24384 _ | IFS | as_nl) ;; #(
24385 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24386 *) { eval $ac_var=; unset $ac_var;} ;;
24387 esac ;;
24388 esac
24389 done
24391 (set) 2>&1 |
24392 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24393 *${as_nl}ac_space=\ *)
24394 # `set' does not quote correctly, so add quotes: double-quote
24395 # substitution turns \\\\ into \\, and sed turns \\ into \.
24396 sed -n \
24397 "s/'/'\\\\''/g;
24398 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24399 ;; #(
24401 # `set' quotes correctly as required by POSIX, so do not add quotes.
24402 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24404 esac |
24405 sort
24407 sed '
24408 /^ac_cv_env_/b end
24409 t clear
24410 :clear
24411 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24412 t end
24413 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24414 :end' >>confcache
24415 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24416 if test -w "$cache_file"; then
24417 test "x$cache_file" != "x/dev/null" &&
24418 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24419 $as_echo "$as_me: updating cache $cache_file" >&6;}
24420 cat confcache >$cache_file
24421 else
24422 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24423 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24426 rm -f confcache
24428 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24429 # Let make expand exec_prefix.
24430 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24432 DEFS=-DHAVE_CONFIG_H
24434 ac_libobjs=
24435 ac_ltlibobjs=
24436 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24437 # 1. Remove the extension, and $U if already installed.
24438 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24439 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24440 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24441 # will be set to the directory where LIBOBJS objects are built.
24442 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24443 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24444 done
24445 LIBOBJS=$ac_libobjs
24447 LTLIBOBJS=$ac_ltlibobjs
24450 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
24451 as_fn_error "conditional \"JAVA_MAINTAINER_MODE\" was never defined.
24452 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24454 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
24455 as_fn_error "conditional \"GENINSRC\" was never defined.
24456 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24458 if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
24459 as_fn_error "conditional \"INSTALL_BINARIES\" was never defined.
24460 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24462 if test -n "$EXEEXT"; then
24463 am__EXEEXT_TRUE=
24464 am__EXEEXT_FALSE='#'
24465 else
24466 am__EXEEXT_TRUE='#'
24467 am__EXEEXT_FALSE=
24470 if test -z "${CREATE_COLLECTIONS_TRUE}" && test -z "${CREATE_COLLECTIONS_FALSE}"; then
24471 as_fn_error "conditional \"CREATE_COLLECTIONS\" was never defined.
24472 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24474 if test -z "${CREATE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_JNI_LIBRARIES_FALSE}"; then
24475 as_fn_error "conditional \"CREATE_JNI_LIBRARIES\" was never defined.
24476 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24478 if test -z "${CREATE_CORE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_CORE_JNI_LIBRARIES_FALSE}"; then
24479 as_fn_error "conditional \"CREATE_CORE_JNI_LIBRARIES\" was never defined.
24480 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24482 if test -z "${CREATE_GCONF_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GCONF_PEER_LIBRARIES_FALSE}"; then
24483 as_fn_error "conditional \"CREATE_GCONF_PEER_LIBRARIES\" was never defined.
24484 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24486 if test -z "${CREATE_GSTREAMER_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GSTREAMER_PEER_LIBRARIES_FALSE}"; then
24487 as_fn_error "conditional \"CREATE_GSTREAMER_PEER_LIBRARIES\" was never defined.
24488 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24490 if test -z "${CREATE_XMLJ_LIBRARY_TRUE}" && test -z "${CREATE_XMLJ_LIBRARY_FALSE}"; then
24491 as_fn_error "conditional \"CREATE_XMLJ_LIBRARY\" was never defined.
24492 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24494 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24495 as_fn_error "conditional \"AMDEP\" was never defined.
24496 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24498 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24499 as_fn_error "conditional \"am__fastdepCC\" was never defined.
24500 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24502 if test -z "${CREATE_ALSA_LIBRARIES_TRUE}" && test -z "${CREATE_ALSA_LIBRARIES_FALSE}"; then
24503 as_fn_error "conditional \"CREATE_ALSA_LIBRARIES\" was never defined.
24504 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24506 if test -z "${CREATE_DSSI_LIBRARIES_TRUE}" && test -z "${CREATE_DSSI_LIBRARIES_FALSE}"; then
24507 as_fn_error "conditional \"CREATE_DSSI_LIBRARIES\" was never defined.
24508 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24510 if test -z "${CREATE_GTK_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GTK_PEER_LIBRARIES_FALSE}"; then
24511 as_fn_error "conditional \"CREATE_GTK_PEER_LIBRARIES\" was never defined.
24512 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24514 if test -z "${CREATE_QT_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_QT_PEER_LIBRARIES_FALSE}"; then
24515 as_fn_error "conditional \"CREATE_QT_PEER_LIBRARIES\" was never defined.
24516 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24518 if test -z "${CREATE_PLUGIN_TRUE}" && test -z "${CREATE_PLUGIN_FALSE}"; then
24519 as_fn_error "conditional \"CREATE_PLUGIN\" was never defined.
24520 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24522 if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
24523 as_fn_error "conditional \"CREATE_GJDOC\" was never defined.
24524 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24526 if test -z "${CREATE_JNI_HEADERS_TRUE}" && test -z "${CREATE_JNI_HEADERS_FALSE}"; then
24527 as_fn_error "conditional \"CREATE_JNI_HEADERS\" was never defined.
24528 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24530 if test -z "${CREATE_GJDOC_PARSER_TRUE}" && test -z "${CREATE_GJDOC_PARSER_FALSE}"; then
24531 as_fn_error "conditional \"CREATE_GJDOC_PARSER\" was never defined.
24532 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24534 if test -z "${CREATE_WRAPPERS_TRUE}" && test -z "${CREATE_WRAPPERS_FALSE}"; then
24535 as_fn_error "conditional \"CREATE_WRAPPERS\" was never defined.
24536 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24538 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24539 as_fn_error "conditional \"am__fastdepCC\" was never defined.
24540 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24542 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24543 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
24544 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24546 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24547 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
24548 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24550 if test -z "${WITH_JAR_TRUE}" && test -z "${WITH_JAR_FALSE}"; then
24551 as_fn_error "conditional \"WITH_JAR\" was never defined.
24552 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24554 if test -z "${INSTALL_GLIBJ_ZIP_TRUE}" && test -z "${INSTALL_GLIBJ_ZIP_FALSE}"; then
24555 as_fn_error "conditional \"INSTALL_GLIBJ_ZIP\" was never defined.
24556 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24558 if test -z "${INSTALL_CLASS_FILES_TRUE}" && test -z "${INSTALL_CLASS_FILES_FALSE}"; then
24559 as_fn_error "conditional \"INSTALL_CLASS_FILES\" was never defined.
24560 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24562 if test -z "${BUILD_CLASS_FILES_TRUE}" && test -z "${BUILD_CLASS_FILES_FALSE}"; then
24563 as_fn_error "conditional \"BUILD_CLASS_FILES\" was never defined.
24564 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24566 if test -z "${CREATE_API_DOCS_TRUE}" && test -z "${CREATE_API_DOCS_FALSE}"; then
24567 as_fn_error "conditional \"CREATE_API_DOCS\" was never defined.
24568 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24570 if test -z "${REGEN_PARSERS_TRUE}" && test -z "${REGEN_PARSERS_FALSE}"; then
24571 as_fn_error "conditional \"REGEN_PARSERS\" was never defined.
24572 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24574 if test -z "${USE_PREBUILT_GLIBJ_ZIP_TRUE}" && test -z "${USE_PREBUILT_GLIBJ_ZIP_FALSE}"; then
24575 as_fn_error "conditional \"USE_PREBUILT_GLIBJ_ZIP\" was never defined.
24576 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24578 if test -z "${GCJ_JAVAC_TRUE}" && test -z "${GCJ_JAVAC_FALSE}"; then
24579 as_fn_error "conditional \"GCJ_JAVAC\" was never defined.
24580 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24582 if test -z "${GCJ_JAVAC_TRUE}" && test -z "${GCJ_JAVAC_FALSE}"; then
24583 as_fn_error "conditional \"GCJ_JAVAC\" was never defined.
24584 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24586 if test -z "${USE_ESCHER_TRUE}" && test -z "${USE_ESCHER_FALSE}"; then
24587 as_fn_error "conditional \"USE_ESCHER\" was never defined.
24588 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24590 if test -z "${ENABLE_LOCAL_SOCKETS_TRUE}" && test -z "${ENABLE_LOCAL_SOCKETS_FALSE}"; then
24591 as_fn_error "conditional \"ENABLE_LOCAL_SOCKETS\" was never defined.
24592 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24594 if test -z "${CREATE_GMPBI_LIBRARY_TRUE}" && test -z "${CREATE_GMPBI_LIBRARY_FALSE}"; then
24595 as_fn_error "conditional \"CREATE_GMPBI_LIBRARY\" was never defined.
24596 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24599 : ${CONFIG_STATUS=./config.status}
24600 ac_write_fail=0
24601 ac_clean_files_save=$ac_clean_files
24602 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24603 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24604 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24605 as_write_fail=0
24606 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24607 #! $SHELL
24608 # Generated by $as_me.
24609 # Run this file to recreate the current configuration.
24610 # Compiler output produced by configure, useful for debugging
24611 # configure, is in config.log if it exists.
24613 debug=false
24614 ac_cs_recheck=false
24615 ac_cs_silent=false
24617 SHELL=\${CONFIG_SHELL-$SHELL}
24618 export SHELL
24619 _ASEOF
24620 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24621 ## -------------------- ##
24622 ## M4sh Initialization. ##
24623 ## -------------------- ##
24625 # Be more Bourne compatible
24626 DUALCASE=1; export DUALCASE # for MKS sh
24627 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24628 emulate sh
24629 NULLCMD=:
24630 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24631 # is contrary to our usage. Disable this feature.
24632 alias -g '${1+"$@"}'='"$@"'
24633 setopt NO_GLOB_SUBST
24634 else
24635 case `(set -o) 2>/dev/null` in #(
24636 *posix*) :
24637 set -o posix ;; #(
24638 *) :
24640 esac
24644 as_nl='
24646 export as_nl
24647 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24648 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24649 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24650 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24651 # Prefer a ksh shell builtin over an external printf program on Solaris,
24652 # but without wasting forks for bash or zsh.
24653 if test -z "$BASH_VERSION$ZSH_VERSION" \
24654 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24655 as_echo='print -r --'
24656 as_echo_n='print -rn --'
24657 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24658 as_echo='printf %s\n'
24659 as_echo_n='printf %s'
24660 else
24661 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24662 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24663 as_echo_n='/usr/ucb/echo -n'
24664 else
24665 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24666 as_echo_n_body='eval
24667 arg=$1;
24668 case $arg in #(
24669 *"$as_nl"*)
24670 expr "X$arg" : "X\\(.*\\)$as_nl";
24671 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24672 esac;
24673 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24675 export as_echo_n_body
24676 as_echo_n='sh -c $as_echo_n_body as_echo'
24678 export as_echo_body
24679 as_echo='sh -c $as_echo_body as_echo'
24682 # The user is always right.
24683 if test "${PATH_SEPARATOR+set}" != set; then
24684 PATH_SEPARATOR=:
24685 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24686 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24687 PATH_SEPARATOR=';'
24692 # IFS
24693 # We need space, tab and new line, in precisely that order. Quoting is
24694 # there to prevent editors from complaining about space-tab.
24695 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24696 # splitting by setting IFS to empty value.)
24697 IFS=" "" $as_nl"
24699 # Find who we are. Look in the path if we contain no directory separator.
24700 case $0 in #((
24701 *[\\/]* ) as_myself=$0 ;;
24702 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24703 for as_dir in $PATH
24705 IFS=$as_save_IFS
24706 test -z "$as_dir" && as_dir=.
24707 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24708 done
24709 IFS=$as_save_IFS
24712 esac
24713 # We did not find ourselves, most probably we were run as `sh COMMAND'
24714 # in which case we are not to be found in the path.
24715 if test "x$as_myself" = x; then
24716 as_myself=$0
24718 if test ! -f "$as_myself"; then
24719 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24720 exit 1
24723 # Unset variables that we do not need and which cause bugs (e.g. in
24724 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24725 # suppresses any "Segmentation fault" message there. '((' could
24726 # trigger a bug in pdksh 5.2.14.
24727 for as_var in BASH_ENV ENV MAIL MAILPATH
24728 do eval test x\${$as_var+set} = xset \
24729 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24730 done
24731 PS1='$ '
24732 PS2='> '
24733 PS4='+ '
24735 # NLS nuisances.
24736 LC_ALL=C
24737 export LC_ALL
24738 LANGUAGE=C
24739 export LANGUAGE
24741 # CDPATH.
24742 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24745 # as_fn_error ERROR [LINENO LOG_FD]
24746 # ---------------------------------
24747 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24748 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24749 # script with status $?, using 1 if that was 0.
24750 as_fn_error ()
24752 as_status=$?; test $as_status -eq 0 && as_status=1
24753 if test "$3"; then
24754 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24755 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
24757 $as_echo "$as_me: error: $1" >&2
24758 as_fn_exit $as_status
24759 } # as_fn_error
24762 # as_fn_set_status STATUS
24763 # -----------------------
24764 # Set $? to STATUS, without forking.
24765 as_fn_set_status ()
24767 return $1
24768 } # as_fn_set_status
24770 # as_fn_exit STATUS
24771 # -----------------
24772 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24773 as_fn_exit ()
24775 set +e
24776 as_fn_set_status $1
24777 exit $1
24778 } # as_fn_exit
24780 # as_fn_unset VAR
24781 # ---------------
24782 # Portably unset VAR.
24783 as_fn_unset ()
24785 { eval $1=; unset $1;}
24787 as_unset=as_fn_unset
24788 # as_fn_append VAR VALUE
24789 # ----------------------
24790 # Append the text in VALUE to the end of the definition contained in VAR. Take
24791 # advantage of any shell optimizations that allow amortized linear growth over
24792 # repeated appends, instead of the typical quadratic growth present in naive
24793 # implementations.
24794 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24795 eval 'as_fn_append ()
24797 eval $1+=\$2
24799 else
24800 as_fn_append ()
24802 eval $1=\$$1\$2
24804 fi # as_fn_append
24806 # as_fn_arith ARG...
24807 # ------------------
24808 # Perform arithmetic evaluation on the ARGs, and store the result in the
24809 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24810 # must be portable across $(()) and expr.
24811 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24812 eval 'as_fn_arith ()
24814 as_val=$(( $* ))
24816 else
24817 as_fn_arith ()
24819 as_val=`expr "$@" || test $? -eq 1`
24821 fi # as_fn_arith
24824 if expr a : '\(a\)' >/dev/null 2>&1 &&
24825 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24826 as_expr=expr
24827 else
24828 as_expr=false
24831 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24832 as_basename=basename
24833 else
24834 as_basename=false
24837 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24838 as_dirname=dirname
24839 else
24840 as_dirname=false
24843 as_me=`$as_basename -- "$0" ||
24844 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24845 X"$0" : 'X\(//\)$' \| \
24846 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24847 $as_echo X/"$0" |
24848 sed '/^.*\/\([^/][^/]*\)\/*$/{
24849 s//\1/
24852 /^X\/\(\/\/\)$/{
24853 s//\1/
24856 /^X\/\(\/\).*/{
24857 s//\1/
24860 s/.*/./; q'`
24862 # Avoid depending upon Character Ranges.
24863 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24864 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24865 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24866 as_cr_digits='0123456789'
24867 as_cr_alnum=$as_cr_Letters$as_cr_digits
24869 ECHO_C= ECHO_N= ECHO_T=
24870 case `echo -n x` in #(((((
24871 -n*)
24872 case `echo 'xy\c'` in
24873 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24874 xy) ECHO_C='\c';;
24875 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
24876 ECHO_T=' ';;
24877 esac;;
24879 ECHO_N='-n';;
24880 esac
24882 rm -f conf$$ conf$$.exe conf$$.file
24883 if test -d conf$$.dir; then
24884 rm -f conf$$.dir/conf$$.file
24885 else
24886 rm -f conf$$.dir
24887 mkdir conf$$.dir 2>/dev/null
24889 if (echo >conf$$.file) 2>/dev/null; then
24890 if ln -s conf$$.file conf$$ 2>/dev/null; then
24891 as_ln_s='ln -s'
24892 # ... but there are two gotchas:
24893 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24894 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24895 # In both cases, we have to default to `cp -p'.
24896 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24897 as_ln_s='cp -p'
24898 elif ln conf$$.file conf$$ 2>/dev/null; then
24899 as_ln_s=ln
24900 else
24901 as_ln_s='cp -p'
24903 else
24904 as_ln_s='cp -p'
24906 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24907 rmdir conf$$.dir 2>/dev/null
24910 # as_fn_mkdir_p
24911 # -------------
24912 # Create "$as_dir" as a directory, including parents if necessary.
24913 as_fn_mkdir_p ()
24916 case $as_dir in #(
24917 -*) as_dir=./$as_dir;;
24918 esac
24919 test -d "$as_dir" || eval $as_mkdir_p || {
24920 as_dirs=
24921 while :; do
24922 case $as_dir in #(
24923 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24924 *) as_qdir=$as_dir;;
24925 esac
24926 as_dirs="'$as_qdir' $as_dirs"
24927 as_dir=`$as_dirname -- "$as_dir" ||
24928 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24929 X"$as_dir" : 'X\(//\)[^/]' \| \
24930 X"$as_dir" : 'X\(//\)$' \| \
24931 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24932 $as_echo X"$as_dir" |
24933 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24934 s//\1/
24937 /^X\(\/\/\)[^/].*/{
24938 s//\1/
24941 /^X\(\/\/\)$/{
24942 s//\1/
24945 /^X\(\/\).*/{
24946 s//\1/
24949 s/.*/./; q'`
24950 test -d "$as_dir" && break
24951 done
24952 test -z "$as_dirs" || eval "mkdir $as_dirs"
24953 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
24956 } # as_fn_mkdir_p
24957 if mkdir -p . 2>/dev/null; then
24958 as_mkdir_p='mkdir -p "$as_dir"'
24959 else
24960 test -d ./-p && rmdir ./-p
24961 as_mkdir_p=false
24964 if test -x / >/dev/null 2>&1; then
24965 as_test_x='test -x'
24966 else
24967 if ls -dL / >/dev/null 2>&1; then
24968 as_ls_L_option=L
24969 else
24970 as_ls_L_option=
24972 as_test_x='
24973 eval sh -c '\''
24974 if test -d "$1"; then
24975 test -d "$1/.";
24976 else
24977 case $1 in #(
24978 -*)set "./$1";;
24979 esac;
24980 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
24981 ???[sx]*):;;*)false;;esac;fi
24982 '\'' sh
24985 as_executable_p=$as_test_x
24987 # Sed expression to map a string onto a valid CPP name.
24988 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24990 # Sed expression to map a string onto a valid variable name.
24991 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24994 exec 6>&1
24995 ## ----------------------------------- ##
24996 ## Main body of $CONFIG_STATUS script. ##
24997 ## ----------------------------------- ##
24998 _ASEOF
24999 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25001 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25002 # Save the log message, to keep $0 and so on meaningful, and to
25003 # report actual input values of CONFIG_FILES etc. instead of their
25004 # values after options handling.
25005 ac_log="
25006 This file was extended by GNU Classpath $as_me 0.99-pre, which was
25007 generated by GNU Autoconf 2.64. Invocation command line was
25009 CONFIG_FILES = $CONFIG_FILES
25010 CONFIG_HEADERS = $CONFIG_HEADERS
25011 CONFIG_LINKS = $CONFIG_LINKS
25012 CONFIG_COMMANDS = $CONFIG_COMMANDS
25013 $ $0 $@
25015 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25018 _ACEOF
25020 case $ac_config_files in *"
25021 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25022 esac
25024 case $ac_config_headers in *"
25025 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25026 esac
25029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25030 # Files that config.status was made for.
25031 config_files="$ac_config_files"
25032 config_headers="$ac_config_headers"
25033 config_links="$ac_config_links"
25034 config_commands="$ac_config_commands"
25036 _ACEOF
25038 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25039 ac_cs_usage="\
25040 \`$as_me' instantiates files and other configuration actions
25041 from templates according to the current configuration. Unless the files
25042 and actions are specified as TAGs, all are instantiated by default.
25044 Usage: $0 [OPTION]... [TAG]...
25046 -h, --help print this help, then exit
25047 -V, --version print version number and configuration settings, then exit
25048 -q, --quiet, --silent
25049 do not print progress messages
25050 -d, --debug don't remove temporary files
25051 --recheck update $as_me by reconfiguring in the same conditions
25052 --file=FILE[:TEMPLATE]
25053 instantiate the configuration file FILE
25054 --header=FILE[:TEMPLATE]
25055 instantiate the configuration header FILE
25057 Configuration files:
25058 $config_files
25060 Configuration headers:
25061 $config_headers
25063 Configuration links:
25064 $config_links
25066 Configuration commands:
25067 $config_commands
25069 Report bugs to <classpath@gnu.org>.
25070 GNU Classpath home page: <http://www.gnu.org/software/classpath/>.
25071 General help using GNU software: <http://www.gnu.org/gethelp/>."
25073 _ACEOF
25074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25075 ac_cs_version="\\
25076 GNU Classpath config.status 0.99-pre
25077 configured by $0, generated by GNU Autoconf 2.64,
25078 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25080 Copyright (C) 2009 Free Software Foundation, Inc.
25081 This config.status script is free software; the Free Software Foundation
25082 gives unlimited permission to copy, distribute and modify it."
25084 ac_pwd='$ac_pwd'
25085 srcdir='$srcdir'
25086 INSTALL='$INSTALL'
25087 MKDIR_P='$MKDIR_P'
25088 AWK='$AWK'
25089 test -n "\$AWK" || AWK=awk
25090 _ACEOF
25092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25093 # The default lists apply if the user does not specify any file.
25094 ac_need_defaults=:
25095 while test $# != 0
25097 case $1 in
25098 --*=*)
25099 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25100 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25101 ac_shift=:
25104 ac_option=$1
25105 ac_optarg=$2
25106 ac_shift=shift
25108 esac
25110 case $ac_option in
25111 # Handling of the options.
25112 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25113 ac_cs_recheck=: ;;
25114 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25115 $as_echo "$ac_cs_version"; exit ;;
25116 --debug | --debu | --deb | --de | --d | -d )
25117 debug=: ;;
25118 --file | --fil | --fi | --f )
25119 $ac_shift
25120 case $ac_optarg in
25121 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25122 esac
25123 as_fn_append CONFIG_FILES " '$ac_optarg'"
25124 ac_need_defaults=false;;
25125 --header | --heade | --head | --hea )
25126 $ac_shift
25127 case $ac_optarg in
25128 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25129 esac
25130 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25131 ac_need_defaults=false;;
25132 --he | --h)
25133 # Conflict between --help and --header
25134 as_fn_error "ambiguous option: \`$1'
25135 Try \`$0 --help' for more information.";;
25136 --help | --hel | -h )
25137 $as_echo "$ac_cs_usage"; exit ;;
25138 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25139 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25140 ac_cs_silent=: ;;
25142 # This is an error.
25143 -*) as_fn_error "unrecognized option: \`$1'
25144 Try \`$0 --help' for more information." ;;
25146 *) as_fn_append ac_config_targets " $1"
25147 ac_need_defaults=false ;;
25149 esac
25150 shift
25151 done
25153 ac_configure_extra_args=
25155 if $ac_cs_silent; then
25156 exec 6>/dev/null
25157 ac_configure_extra_args="$ac_configure_extra_args --silent"
25160 _ACEOF
25161 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25162 if \$ac_cs_recheck; then
25163 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25164 shift
25165 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25166 CONFIG_SHELL='$SHELL'
25167 export CONFIG_SHELL
25168 exec "\$@"
25171 _ACEOF
25172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25173 exec 5>>config.log
25175 echo
25176 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25177 ## Running $as_me. ##
25178 _ASBOX
25179 $as_echo "$ac_log"
25180 } >&5
25182 _ACEOF
25183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25185 # INIT-COMMANDS
25188 srcdir="$srcdir"
25189 host="$host"
25190 target="$target"
25191 with_multisubdir="$with_multisubdir"
25192 with_multisrctop="$with_multisrctop"
25193 with_target_subdir="$with_target_subdir"
25194 ac_configure_args="${multilib_arg} ${ac_configure_args}"
25195 multi_basedir="$multi_basedir"
25196 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
25197 CC="$CC"
25198 CXX="$CXX"
25199 GFORTRAN="$GFORTRAN"
25200 GCJ="$GCJ"
25201 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25204 # The HP-UX ksh and POSIX shell print the target directory to stdout
25205 # if CDPATH is set.
25206 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25208 sed_quote_subst='$sed_quote_subst'
25209 double_quote_subst='$double_quote_subst'
25210 delay_variable_subst='$delay_variable_subst'
25211 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25212 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25213 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25214 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25215 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25216 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25217 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25218 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25219 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25220 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25221 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25222 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25223 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25224 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25225 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25226 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25227 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25228 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25229 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25230 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25231 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25232 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25233 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25234 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25235 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25236 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25237 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25238 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25239 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25240 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25241 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25242 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25243 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25244 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25245 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25246 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25247 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25248 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25249 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25250 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25251 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25252 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25253 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25254 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25255 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25256 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25257 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25258 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25259 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
25260 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25261 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25262 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25263 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25264 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25265 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25266 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25267 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25268 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25269 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25270 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25271 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25272 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25273 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25274 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25275 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25276 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25277 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25278 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25279 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25280 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25281 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25282 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25283 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25284 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25285 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25286 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25287 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25288 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25289 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25290 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25291 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
25292 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25293 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25294 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25295 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25296 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25297 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25298 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25299 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25300 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
25301 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25302 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25303 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25304 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25305 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25306 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25307 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25308 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25309 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25310 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25311 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25312 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25313 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25314 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25315 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25316 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25317 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25318 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25319 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25320 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25321 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25322 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25323 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25324 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
25325 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25326 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25327 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25328 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25329 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25330 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25331 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25332 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25333 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25334 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
25335 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
25336 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
25337 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
25338 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
25339 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25340 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25341 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
25342 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
25343 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
25344 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
25345 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
25346 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
25347 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
25348 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
25349 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
25350 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25351 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25352 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
25353 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25354 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25355 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25356 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25357 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25358 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25359 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
25360 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25361 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25362 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25363 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
25364 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
25365 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
25366 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
25367 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
25368 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
25369 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
25370 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
25371 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
25372 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
25373 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
25374 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25375 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25376 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25377 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25378 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
25379 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
25380 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
25381 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25382 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25383 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
25384 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
25385 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
25387 LTCC='$LTCC'
25388 LTCFLAGS='$LTCFLAGS'
25389 compiler='$compiler_DEFAULT'
25391 # A function that is used when there is no print builtin or printf.
25392 func_fallback_echo ()
25394 eval 'cat <<_LTECHO_EOF
25396 _LTECHO_EOF'
25399 # Quote evaled strings.
25400 for var in SHELL \
25401 ECHO \
25402 SED \
25403 GREP \
25404 EGREP \
25405 FGREP \
25406 LD \
25407 NM \
25408 LN_S \
25409 lt_SP2NL \
25410 lt_NL2SP \
25411 reload_flag \
25412 OBJDUMP \
25413 deplibs_check_method \
25414 file_magic_cmd \
25415 AR \
25416 AR_FLAGS \
25417 STRIP \
25418 RANLIB \
25419 CC \
25420 CFLAGS \
25421 compiler \
25422 lt_cv_sys_global_symbol_pipe \
25423 lt_cv_sys_global_symbol_to_cdecl \
25424 lt_cv_sys_global_symbol_to_c_name_address \
25425 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
25426 lt_prog_compiler_no_builtin_flag \
25427 lt_prog_compiler_wl \
25428 lt_prog_compiler_pic \
25429 lt_prog_compiler_static \
25430 lt_cv_prog_compiler_c_o \
25431 need_locks \
25432 DSYMUTIL \
25433 NMEDIT \
25434 LIPO \
25435 OTOOL \
25436 OTOOL64 \
25437 shrext_cmds \
25438 export_dynamic_flag_spec \
25439 whole_archive_flag_spec \
25440 compiler_needs_object \
25441 with_gnu_ld \
25442 allow_undefined_flag \
25443 no_undefined_flag \
25444 hardcode_libdir_flag_spec \
25445 hardcode_libdir_flag_spec_ld \
25446 hardcode_libdir_separator \
25447 fix_srcfile_path \
25448 exclude_expsyms \
25449 include_expsyms \
25450 file_list_spec \
25451 variables_saved_for_relink \
25452 libname_spec \
25453 library_names_spec \
25454 soname_spec \
25455 install_override_mode \
25456 finish_eval \
25457 old_striplib \
25458 striplib \
25459 compiler_lib_search_dirs \
25460 predep_objects \
25461 postdep_objects \
25462 predeps \
25463 postdeps \
25464 compiler_lib_search_path \
25465 LD_CXX \
25466 reload_flag_CXX \
25467 compiler_CXX \
25468 lt_prog_compiler_no_builtin_flag_CXX \
25469 lt_prog_compiler_wl_CXX \
25470 lt_prog_compiler_pic_CXX \
25471 lt_prog_compiler_static_CXX \
25472 lt_cv_prog_compiler_c_o_CXX \
25473 export_dynamic_flag_spec_CXX \
25474 whole_archive_flag_spec_CXX \
25475 compiler_needs_object_CXX \
25476 with_gnu_ld_CXX \
25477 allow_undefined_flag_CXX \
25478 no_undefined_flag_CXX \
25479 hardcode_libdir_flag_spec_CXX \
25480 hardcode_libdir_flag_spec_ld_CXX \
25481 hardcode_libdir_separator_CXX \
25482 fix_srcfile_path_CXX \
25483 exclude_expsyms_CXX \
25484 include_expsyms_CXX \
25485 file_list_spec_CXX \
25486 compiler_lib_search_dirs_CXX \
25487 predep_objects_CXX \
25488 postdep_objects_CXX \
25489 predeps_CXX \
25490 postdeps_CXX \
25491 compiler_lib_search_path_CXX; do
25492 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25493 *[\\\\\\\`\\"\\\$]*)
25494 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
25497 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25499 esac
25500 done
25502 # Double-quote double-evaled strings.
25503 for var in reload_cmds \
25504 old_postinstall_cmds \
25505 old_postuninstall_cmds \
25506 old_archive_cmds \
25507 extract_expsyms_cmds \
25508 old_archive_from_new_cmds \
25509 old_archive_from_expsyms_cmds \
25510 archive_cmds \
25511 archive_expsym_cmds \
25512 module_cmds \
25513 module_expsym_cmds \
25514 export_symbols_cmds \
25515 prelink_cmds \
25516 postinstall_cmds \
25517 postuninstall_cmds \
25518 finish_cmds \
25519 sys_lib_search_path_spec \
25520 sys_lib_dlsearch_path_spec \
25521 reload_cmds_CXX \
25522 old_archive_cmds_CXX \
25523 old_archive_from_new_cmds_CXX \
25524 old_archive_from_expsyms_cmds_CXX \
25525 archive_cmds_CXX \
25526 archive_expsym_cmds_CXX \
25527 module_cmds_CXX \
25528 module_expsym_cmds_CXX \
25529 export_symbols_cmds_CXX \
25530 prelink_cmds_CXX; do
25531 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25532 *[\\\\\\\`\\"\\\$]*)
25533 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
25536 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25538 esac
25539 done
25541 ac_aux_dir='$ac_aux_dir'
25542 xsi_shell='$xsi_shell'
25543 lt_shell_append='$lt_shell_append'
25545 # See if we are running on zsh, and set the options which allow our
25546 # commands through without removal of \ escapes INIT.
25547 if test -n "\${ZSH_VERSION+set}" ; then
25548 setopt NO_GLOB_SUBST
25552 PACKAGE='$PACKAGE'
25553 VERSION='$VERSION'
25554 TIMESTAMP='$TIMESTAMP'
25555 RM='$RM'
25556 ofile='$ofile'
25562 # variables for create stdint.h replacement
25563 PACKAGE="$PACKAGE"
25564 VERSION="$VERSION"
25565 ac_stdint_h="$ac_stdint_h"
25566 _ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
25567 ac_cv_stdint_message="$ac_cv_stdint_message"
25568 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
25569 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
25570 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
25571 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
25572 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
25573 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
25574 ac_cv_char_data_model="$ac_cv_char_data_model"
25575 ac_cv_long_data_model="$ac_cv_long_data_model"
25576 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
25577 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
25578 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
25581 _ACEOF
25583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25585 # Handling of arguments.
25586 for ac_config_target in $ac_config_targets
25588 case $ac_config_target in
25589 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
25590 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
25591 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25592 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
25593 "lib/mkcollections.pl") CONFIG_FILES="$CONFIG_FILES lib/mkcollections.pl" ;;
25594 "mkcollections.pl") CONFIG_COMMANDS="$CONFIG_COMMANDS mkcollections.pl" ;;
25595 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
25596 "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
25597 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25598 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
25599 "doc/api/Makefile") CONFIG_FILES="$CONFIG_FILES doc/api/Makefile" ;;
25600 "external/Makefile") CONFIG_FILES="$CONFIG_FILES external/Makefile" ;;
25601 "external/sax/Makefile") CONFIG_FILES="$CONFIG_FILES external/sax/Makefile" ;;
25602 "external/w3c_dom/Makefile") CONFIG_FILES="$CONFIG_FILES external/w3c_dom/Makefile" ;;
25603 "external/relaxngDatatype/Makefile") CONFIG_FILES="$CONFIG_FILES external/relaxngDatatype/Makefile" ;;
25604 "external/jsr166/Makefile") CONFIG_FILES="$CONFIG_FILES external/jsr166/Makefile" ;;
25605 "gnu/classpath/Configuration.java") CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
25606 "gnu/java/security/Configuration.java") CONFIG_FILES="$CONFIG_FILES gnu/java/security/Configuration.java" ;;
25607 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
25608 "native/Makefile") CONFIG_FILES="$CONFIG_FILES native/Makefile" ;;
25609 "native/fdlibm/Makefile") CONFIG_FILES="$CONFIG_FILES native/fdlibm/Makefile" ;;
25610 "native/jawt/Makefile") CONFIG_FILES="$CONFIG_FILES native/jawt/Makefile" ;;
25611 "native/jni/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/Makefile" ;;
25612 "native/jni/classpath/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/classpath/Makefile" ;;
25613 "native/jni/java-io/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-io/Makefile" ;;
25614 "native/jni/java-lang/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-lang/Makefile" ;;
25615 "native/jni/java-math/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-math/Makefile" ;;
25616 "native/jni/java-net/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-net/Makefile" ;;
25617 "native/jni/java-nio/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-nio/Makefile" ;;
25618 "native/jni/java-util/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-util/Makefile" ;;
25619 "native/jni/gtk-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/gtk-peer/Makefile" ;;
25620 "native/jni/gconf-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/gconf-peer/Makefile" ;;
25621 "native/jni/gstreamer-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/gstreamer-peer/Makefile" ;;
25622 "native/jni/qt-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/qt-peer/Makefile" ;;
25623 "native/jni/xmlj/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/xmlj/Makefile" ;;
25624 "native/jni/midi-alsa/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/midi-alsa/Makefile" ;;
25625 "native/jni/midi-dssi/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/midi-dssi/Makefile" ;;
25626 "native/jni/native-lib/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/native-lib/Makefile" ;;
25627 "native/plugin/Makefile") CONFIG_FILES="$CONFIG_FILES native/plugin/Makefile" ;;
25628 "resource/Makefile") CONFIG_FILES="$CONFIG_FILES resource/Makefile" ;;
25629 "resource/META-INF/services/java.util.prefs.PreferencesFactory") CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/java.util.prefs.PreferencesFactory" ;;
25630 "resource/META-INF/services/javax.sound.sampled.spi.AudioFileReader") CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/javax.sound.sampled.spi.AudioFileReader" ;;
25631 "resource/META-INF/services/javax.sound.sampled.spi.MixerProvider") CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/javax.sound.sampled.spi.MixerProvider" ;;
25632 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
25633 "scripts/classpath.spec") CONFIG_FILES="$CONFIG_FILES scripts/classpath.spec" ;;
25634 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
25635 "lib/gen-classlist.sh") CONFIG_FILES="$CONFIG_FILES lib/gen-classlist.sh" ;;
25636 "lib/copy-vmresources.sh") CONFIG_FILES="$CONFIG_FILES lib/copy-vmresources.sh" ;;
25637 "scripts/check_jni_methods.sh") CONFIG_FILES="$CONFIG_FILES scripts/check_jni_methods.sh" ;;
25638 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
25639 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
25640 "examples/Makefile.jawt") CONFIG_FILES="$CONFIG_FILES examples/Makefile.jawt" ;;
25641 "examples/Makefile.java2d") CONFIG_FILES="$CONFIG_FILES examples/Makefile.java2d" ;;
25642 "tools/gappletviewer") CONFIG_FILES="$CONFIG_FILES tools/gappletviewer" ;;
25643 "tools/gjarsigner") CONFIG_FILES="$CONFIG_FILES tools/gjarsigner" ;;
25644 "tools/gkeytool") CONFIG_FILES="$CONFIG_FILES tools/gkeytool" ;;
25645 "tools/gjar") CONFIG_FILES="$CONFIG_FILES tools/gjar" ;;
25646 "tools/gnative2ascii") CONFIG_FILES="$CONFIG_FILES tools/gnative2ascii" ;;
25647 "tools/gserialver") CONFIG_FILES="$CONFIG_FILES tools/gserialver" ;;
25648 "tools/grmiregistry") CONFIG_FILES="$CONFIG_FILES tools/grmiregistry" ;;
25649 "tools/gtnameserv") CONFIG_FILES="$CONFIG_FILES tools/gtnameserv" ;;
25650 "tools/gorbd") CONFIG_FILES="$CONFIG_FILES tools/gorbd" ;;
25651 "tools/grmid") CONFIG_FILES="$CONFIG_FILES tools/grmid" ;;
25652 "tools/grmic") CONFIG_FILES="$CONFIG_FILES tools/grmic" ;;
25653 "tools/gjavah") CONFIG_FILES="$CONFIG_FILES tools/gjavah" ;;
25654 "gappletviewer") CONFIG_COMMANDS="$CONFIG_COMMANDS gappletviewer" ;;
25655 "gjarsigner") CONFIG_COMMANDS="$CONFIG_COMMANDS gjarsigner" ;;
25656 "gkeytool") CONFIG_COMMANDS="$CONFIG_COMMANDS gkeytool" ;;
25657 "gjar") CONFIG_COMMANDS="$CONFIG_COMMANDS gjar" ;;
25658 "gnative2ascii") CONFIG_COMMANDS="$CONFIG_COMMANDS gnative2ascii" ;;
25659 "gserialver") CONFIG_COMMANDS="$CONFIG_COMMANDS gserialver" ;;
25660 "grmiregistry") CONFIG_COMMANDS="$CONFIG_COMMANDS grmiregistry" ;;
25661 "gtnameserv") CONFIG_COMMANDS="$CONFIG_COMMANDS gtnameserv" ;;
25662 "gorbd") CONFIG_COMMANDS="$CONFIG_COMMANDS gorbd" ;;
25663 "grmid") CONFIG_COMMANDS="$CONFIG_COMMANDS grmid" ;;
25664 "grmic") CONFIG_COMMANDS="$CONFIG_COMMANDS grmic" ;;
25665 "gjavah") CONFIG_COMMANDS="$CONFIG_COMMANDS gjavah" ;;
25666 "tools/gjdoc") CONFIG_FILES="$CONFIG_FILES tools/gjdoc" ;;
25667 "gjdoc") CONFIG_COMMANDS="$CONFIG_COMMANDS gjdoc" ;;
25668 "gen-classlist") CONFIG_COMMANDS="$CONFIG_COMMANDS gen-classlist" ;;
25669 "copy-vmresources") CONFIG_COMMANDS="$CONFIG_COMMANDS copy-vmresources" ;;
25671 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25672 esac
25673 done
25676 # If the user did not use the arguments to specify the items to instantiate,
25677 # then the envvar interface is used. Set only those that are not.
25678 # We use the long form for the default assignment because of an extremely
25679 # bizarre bug on SunOS 4.1.3.
25680 if $ac_need_defaults; then
25681 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25682 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25683 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
25684 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25687 # Have a temporary directory for convenience. Make it in the build tree
25688 # simply because there is no reason against having it here, and in addition,
25689 # creating and moving files from /tmp can sometimes cause problems.
25690 # Hook for its removal unless debugging.
25691 # Note that there is a small window in which the directory will not be cleaned:
25692 # after its creation but before its name has been assigned to `$tmp'.
25693 $debug ||
25695 tmp=
25696 trap 'exit_status=$?
25697 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25699 trap 'as_fn_exit 1' 1 2 13 15
25701 # Create a (secure) tmp directory for tmp files.
25704 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25705 test -n "$tmp" && test -d "$tmp"
25706 } ||
25708 tmp=./conf$$-$RANDOM
25709 (umask 077 && mkdir "$tmp")
25710 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
25712 # Set up the scripts for CONFIG_FILES section.
25713 # No need to generate them if there are no CONFIG_FILES.
25714 # This happens for instance with `./config.status config.h'.
25715 if test -n "$CONFIG_FILES"; then
25718 ac_cr=`echo X | tr X '\015'`
25719 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25720 # But we know of no other shell where ac_cr would be empty at this
25721 # point, so we can use a bashism as a fallback.
25722 if test "x$ac_cr" = x; then
25723 eval ac_cr=\$\'\\r\'
25725 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25726 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25727 ac_cs_awk_cr='\r'
25728 else
25729 ac_cs_awk_cr=$ac_cr
25732 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25733 _ACEOF
25737 echo "cat >conf$$subs.awk <<_ACEOF" &&
25738 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25739 echo "_ACEOF"
25740 } >conf$$subs.sh ||
25741 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25742 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25743 ac_delim='%!_!# '
25744 for ac_last_try in false false false false false :; do
25745 . ./conf$$subs.sh ||
25746 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25748 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25749 if test $ac_delim_n = $ac_delim_num; then
25750 break
25751 elif $ac_last_try; then
25752 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25753 else
25754 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25756 done
25757 rm -f conf$$subs.sh
25759 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25760 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25761 _ACEOF
25762 sed -n '
25764 s/^/S["/; s/!.*/"]=/
25767 s/^[^!]*!//
25768 :repl
25769 t repl
25770 s/'"$ac_delim"'$//
25771 t delim
25774 s/\(.\{148\}\).*/\1/
25775 t more1
25776 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25779 b repl
25780 :more1
25781 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25784 s/.\{148\}//
25785 t nl
25786 :delim
25788 s/\(.\{148\}\).*/\1/
25789 t more2
25790 s/["\\]/\\&/g; s/^/"/; s/$/"/
25793 :more2
25794 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25797 s/.\{148\}//
25798 t delim
25799 ' <conf$$subs.awk | sed '
25800 /^[^""]/{
25802 s/\n//
25804 ' >>$CONFIG_STATUS || ac_write_fail=1
25805 rm -f conf$$subs.awk
25806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25807 _ACAWK
25808 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
25809 for (key in S) S_is_set[key] = 1
25810 FS = "\a"
25814 line = $ 0
25815 nfields = split(line, field, "@")
25816 substed = 0
25817 len = length(field[1])
25818 for (i = 2; i < nfields; i++) {
25819 key = field[i]
25820 keylen = length(key)
25821 if (S_is_set[key]) {
25822 value = S[key]
25823 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25824 len += length(value) + length(field[++i])
25825 substed = 1
25826 } else
25827 len += 1 + keylen
25830 print line
25833 _ACAWK
25834 _ACEOF
25835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25836 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25837 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25838 else
25840 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
25841 || as_fn_error "could not setup config files machinery" "$LINENO" 5
25842 _ACEOF
25844 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25845 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25846 # trailing colons and then remove the whole line if VPATH becomes empty
25847 # (actually we leave an empty line to preserve line numbers).
25848 if test "x$srcdir" = x.; then
25849 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25850 s/:*\$(srcdir):*/:/
25851 s/:*\${srcdir}:*/:/
25852 s/:*@srcdir@:*/:/
25853 s/^\([^=]*=[ ]*\):*/\1/
25854 s/:*$//
25855 s/^[^=]*=[ ]*$//
25859 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25860 fi # test -n "$CONFIG_FILES"
25862 # Set up the scripts for CONFIG_HEADERS section.
25863 # No need to generate them if there are no CONFIG_HEADERS.
25864 # This happens for instance with `./config.status Makefile'.
25865 if test -n "$CONFIG_HEADERS"; then
25866 cat >"$tmp/defines.awk" <<\_ACAWK ||
25867 BEGIN {
25868 _ACEOF
25870 # Transform confdefs.h into an awk script `defines.awk', embedded as
25871 # here-document in config.status, that substitutes the proper values into
25872 # config.h.in to produce config.h.
25874 # Create a delimiter string that does not exist in confdefs.h, to ease
25875 # handling of long lines.
25876 ac_delim='%!_!# '
25877 for ac_last_try in false false :; do
25878 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
25879 if test -z "$ac_t"; then
25880 break
25881 elif $ac_last_try; then
25882 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
25883 else
25884 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25886 done
25888 # For the awk script, D is an array of macro values keyed by name,
25889 # likewise P contains macro parameters if any. Preserve backslash
25890 # newline sequences.
25892 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25893 sed -n '
25894 s/.\{148\}/&'"$ac_delim"'/g
25895 t rset
25896 :rset
25897 s/^[ ]*#[ ]*define[ ][ ]*/ /
25898 t def
25900 :def
25901 s/\\$//
25902 t bsnl
25903 s/["\\]/\\&/g
25904 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25905 D["\1"]=" \3"/p
25906 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25908 :bsnl
25909 s/["\\]/\\&/g
25910 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25911 D["\1"]=" \3\\\\\\n"\\/p
25912 t cont
25913 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25914 t cont
25916 :cont
25918 s/.\{148\}/&'"$ac_delim"'/g
25919 t clear
25920 :clear
25921 s/\\$//
25922 t bsnlc
25923 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25925 :bsnlc
25926 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25927 b cont
25928 ' <confdefs.h | sed '
25929 s/'"$ac_delim"'/"\\\
25930 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25933 for (key in D) D_is_set[key] = 1
25934 FS = "\a"
25936 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25937 line = \$ 0
25938 split(line, arg, " ")
25939 if (arg[1] == "#") {
25940 defundef = arg[2]
25941 mac1 = arg[3]
25942 } else {
25943 defundef = substr(arg[1], 2)
25944 mac1 = arg[2]
25946 split(mac1, mac2, "(") #)
25947 macro = mac2[1]
25948 prefix = substr(line, 1, index(line, defundef) - 1)
25949 if (D_is_set[macro]) {
25950 # Preserve the white space surrounding the "#".
25951 print prefix "define", macro P[macro] D[macro]
25952 next
25953 } else {
25954 # Replace #undef with comments. This is necessary, for example,
25955 # in the case of _POSIX_SOURCE, which is predefined and required
25956 # on some systems where configure will not decide to define it.
25957 if (defundef == "undef") {
25958 print "/*", prefix defundef, macro, "*/"
25959 next
25963 { print }
25964 _ACAWK
25965 _ACEOF
25966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25967 as_fn_error "could not setup config headers machinery" "$LINENO" 5
25968 fi # test -n "$CONFIG_HEADERS"
25971 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
25972 shift
25973 for ac_tag
25975 case $ac_tag in
25976 :[FHLC]) ac_mode=$ac_tag; continue;;
25977 esac
25978 case $ac_mode$ac_tag in
25979 :[FHL]*:*);;
25980 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
25981 :[FH]-) ac_tag=-:-;;
25982 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25983 esac
25984 ac_save_IFS=$IFS
25985 IFS=:
25986 set x $ac_tag
25987 IFS=$ac_save_IFS
25988 shift
25989 ac_file=$1
25990 shift
25992 case $ac_mode in
25993 :L) ac_source=$1;;
25994 :[FH])
25995 ac_file_inputs=
25996 for ac_f
25998 case $ac_f in
25999 -) ac_f="$tmp/stdin";;
26000 *) # Look for the file first in the build tree, then in the source tree
26001 # (if the path is not absolute). The absolute path cannot be DOS-style,
26002 # because $ac_f cannot contain `:'.
26003 test -f "$ac_f" ||
26004 case $ac_f in
26005 [\\/$]*) false;;
26006 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26007 esac ||
26008 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26009 esac
26010 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26011 as_fn_append ac_file_inputs " '$ac_f'"
26012 done
26014 # Let's still pretend it is `configure' which instantiates (i.e., don't
26015 # use $as_me), people would be surprised to read:
26016 # /* config.h. Generated by config.status. */
26017 configure_input='Generated from '`
26018 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26019 `' by configure.'
26020 if test x"$ac_file" != x-; then
26021 configure_input="$ac_file. $configure_input"
26022 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26023 $as_echo "$as_me: creating $ac_file" >&6;}
26025 # Neutralize special characters interpreted by sed in replacement strings.
26026 case $configure_input in #(
26027 *\&* | *\|* | *\\* )
26028 ac_sed_conf_input=`$as_echo "$configure_input" |
26029 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26030 *) ac_sed_conf_input=$configure_input;;
26031 esac
26033 case $ac_tag in
26034 *:-:* | *:-) cat >"$tmp/stdin" \
26035 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26036 esac
26038 esac
26040 ac_dir=`$as_dirname -- "$ac_file" ||
26041 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26042 X"$ac_file" : 'X\(//\)[^/]' \| \
26043 X"$ac_file" : 'X\(//\)$' \| \
26044 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26045 $as_echo X"$ac_file" |
26046 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26047 s//\1/
26050 /^X\(\/\/\)[^/].*/{
26051 s//\1/
26054 /^X\(\/\/\)$/{
26055 s//\1/
26058 /^X\(\/\).*/{
26059 s//\1/
26062 s/.*/./; q'`
26063 as_dir="$ac_dir"; as_fn_mkdir_p
26064 ac_builddir=.
26066 case "$ac_dir" in
26067 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26069 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26070 # A ".." for each directory in $ac_dir_suffix.
26071 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26072 case $ac_top_builddir_sub in
26073 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26074 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26075 esac ;;
26076 esac
26077 ac_abs_top_builddir=$ac_pwd
26078 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26079 # for backward compatibility:
26080 ac_top_builddir=$ac_top_build_prefix
26082 case $srcdir in
26083 .) # We are building in place.
26084 ac_srcdir=.
26085 ac_top_srcdir=$ac_top_builddir_sub
26086 ac_abs_top_srcdir=$ac_pwd ;;
26087 [\\/]* | ?:[\\/]* ) # Absolute name.
26088 ac_srcdir=$srcdir$ac_dir_suffix;
26089 ac_top_srcdir=$srcdir
26090 ac_abs_top_srcdir=$srcdir ;;
26091 *) # Relative name.
26092 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26093 ac_top_srcdir=$ac_top_build_prefix$srcdir
26094 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26095 esac
26096 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26099 case $ac_mode in
26102 # CONFIG_FILE
26105 case $INSTALL in
26106 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26107 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26108 esac
26109 ac_MKDIR_P=$MKDIR_P
26110 case $MKDIR_P in
26111 [\\/$]* | ?:[\\/]* ) ;;
26112 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26113 esac
26114 _ACEOF
26116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26117 # If the template does not know about datarootdir, expand it.
26118 # FIXME: This hack should be removed a few years after 2.60.
26119 ac_datarootdir_hack=; ac_datarootdir_seen=
26120 ac_sed_dataroot='
26121 /datarootdir/ {
26125 /@datadir@/p
26126 /@docdir@/p
26127 /@infodir@/p
26128 /@localedir@/p
26129 /@mandir@/p'
26130 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26131 *datarootdir*) ac_datarootdir_seen=yes;;
26132 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26134 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26135 _ACEOF
26136 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26137 ac_datarootdir_hack='
26138 s&@datadir@&$datadir&g
26139 s&@docdir@&$docdir&g
26140 s&@infodir@&$infodir&g
26141 s&@localedir@&$localedir&g
26142 s&@mandir@&$mandir&g
26143 s&\\\${datarootdir}&$datarootdir&g' ;;
26144 esac
26145 _ACEOF
26147 # Neutralize VPATH when `$srcdir' = `.'.
26148 # Shell code in configure.ac might set extrasub.
26149 # FIXME: do we really want to maintain this feature?
26150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26151 ac_sed_extra="$ac_vpsub
26152 $extrasub
26153 _ACEOF
26154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26156 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26157 s|@configure_input@|$ac_sed_conf_input|;t t
26158 s&@top_builddir@&$ac_top_builddir_sub&;t t
26159 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26160 s&@srcdir@&$ac_srcdir&;t t
26161 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26162 s&@top_srcdir@&$ac_top_srcdir&;t t
26163 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26164 s&@builddir@&$ac_builddir&;t t
26165 s&@abs_builddir@&$ac_abs_builddir&;t t
26166 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26167 s&@INSTALL@&$ac_INSTALL&;t t
26168 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26169 $ac_datarootdir_hack
26171 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26172 || as_fn_error "could not create $ac_file" "$LINENO" 5
26174 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26175 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26176 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26178 which seems to be undefined. Please make sure it is defined." >&5
26179 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26180 which seems to be undefined. Please make sure it is defined." >&2;}
26182 rm -f "$tmp/stdin"
26183 case $ac_file in
26184 -) cat "$tmp/out" && rm -f "$tmp/out";;
26185 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26186 esac \
26187 || as_fn_error "could not create $ac_file" "$LINENO" 5
26191 # CONFIG_HEADER
26193 if test x"$ac_file" != x-; then
26195 $as_echo "/* $configure_input */" \
26196 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26197 } >"$tmp/config.h" \
26198 || as_fn_error "could not create $ac_file" "$LINENO" 5
26199 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26200 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26201 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26202 else
26203 rm -f "$ac_file"
26204 mv "$tmp/config.h" "$ac_file" \
26205 || as_fn_error "could not create $ac_file" "$LINENO" 5
26207 else
26208 $as_echo "/* $configure_input */" \
26209 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26210 || as_fn_error "could not create -" "$LINENO" 5
26212 # Compute "$ac_file"'s index in $config_headers.
26213 _am_arg="$ac_file"
26214 _am_stamp_count=1
26215 for _am_header in $config_headers :; do
26216 case $_am_header in
26217 $_am_arg | $_am_arg:* )
26218 break ;;
26220 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26221 esac
26222 done
26223 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26224 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26225 X"$_am_arg" : 'X\(//\)[^/]' \| \
26226 X"$_am_arg" : 'X\(//\)$' \| \
26227 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26228 $as_echo X"$_am_arg" |
26229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26230 s//\1/
26233 /^X\(\/\/\)[^/].*/{
26234 s//\1/
26237 /^X\(\/\/\)$/{
26238 s//\1/
26241 /^X\(\/\).*/{
26242 s//\1/
26245 s/.*/./; q'`/stamp-h$_am_stamp_count
26249 # CONFIG_LINK
26252 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
26254 else
26255 # Prefer the file from the source tree if names are identical.
26256 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
26257 ac_source=$srcdir/$ac_source
26260 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
26261 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
26263 if test ! -r "$ac_source"; then
26264 as_fn_error "$ac_source: file not found" "$LINENO" 5
26266 rm -f "$ac_file"
26268 # Try a relative symlink, then a hard link, then a copy.
26269 case $srcdir in
26270 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
26271 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
26272 esac
26273 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
26274 ln "$ac_source" "$ac_file" 2>/dev/null ||
26275 cp -p "$ac_source" "$ac_file" ||
26276 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
26279 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26280 $as_echo "$as_me: executing $ac_file commands" >&6;}
26282 esac
26285 case $ac_file$ac_mode in
26286 "default-1":C)
26287 # Only add multilib support code if we just rebuilt the top-level
26288 # Makefile.
26289 case " $CONFIG_FILES " in
26290 *" Makefile "*)
26291 ac_file=Makefile . ${multi_basedir}/config-ml.in
26293 esac ;;
26294 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26295 # Autoconf 2.62 quotes --file arguments for eval, but not when files
26296 # are listed without --file. Let's play safe and only enable the eval
26297 # if we detect the quoting.
26298 case $CONFIG_FILES in
26299 *\'*) eval set x "$CONFIG_FILES" ;;
26300 *) set x $CONFIG_FILES ;;
26301 esac
26302 shift
26303 for mf
26305 # Strip MF so we end up with the name of the file.
26306 mf=`echo "$mf" | sed -e 's/:.*$//'`
26307 # Check whether this is an Automake generated Makefile or not.
26308 # We used to match only the files named `Makefile.in', but
26309 # some people rename them; so instead we look at the file content.
26310 # Grep'ing the first line is not enough: some people post-process
26311 # each Makefile.in and add a new line on top of each file to say so.
26312 # Grep'ing the whole file is not good either: AIX grep has a line
26313 # limit of 2048, but all sed's we know have understand at least 4000.
26314 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26315 dirpart=`$as_dirname -- "$mf" ||
26316 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26317 X"$mf" : 'X\(//\)[^/]' \| \
26318 X"$mf" : 'X\(//\)$' \| \
26319 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26320 $as_echo X"$mf" |
26321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26322 s//\1/
26325 /^X\(\/\/\)[^/].*/{
26326 s//\1/
26329 /^X\(\/\/\)$/{
26330 s//\1/
26333 /^X\(\/\).*/{
26334 s//\1/
26337 s/.*/./; q'`
26338 else
26339 continue
26341 # Extract the definition of DEPDIR, am__include, and am__quote
26342 # from the Makefile without running `make'.
26343 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26344 test -z "$DEPDIR" && continue
26345 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26346 test -z "am__include" && continue
26347 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26348 # When using ansi2knr, U may be empty or an underscore; expand it
26349 U=`sed -n 's/^U = //p' < "$mf"`
26350 # Find all dependency output files, they are included files with
26351 # $(DEPDIR) in their names. We invoke sed twice because it is the
26352 # simplest approach to changing $(DEPDIR) to its actual value in the
26353 # expansion.
26354 for file in `sed -n "
26355 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26356 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26357 # Make sure the directory exists.
26358 test -f "$dirpart/$file" && continue
26359 fdir=`$as_dirname -- "$file" ||
26360 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26361 X"$file" : 'X\(//\)[^/]' \| \
26362 X"$file" : 'X\(//\)$' \| \
26363 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26364 $as_echo X"$file" |
26365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26366 s//\1/
26369 /^X\(\/\/\)[^/].*/{
26370 s//\1/
26373 /^X\(\/\/\)$/{
26374 s//\1/
26377 /^X\(\/\).*/{
26378 s//\1/
26381 s/.*/./; q'`
26382 as_dir=$dirpart/$fdir; as_fn_mkdir_p
26383 # echo "creating $dirpart/$file"
26384 echo '# dummy' > "$dirpart/$file"
26385 done
26386 done
26389 "libtool":C)
26391 # See if we are running on zsh, and set the options which allow our
26392 # commands through without removal of \ escapes.
26393 if test -n "${ZSH_VERSION+set}" ; then
26394 setopt NO_GLOB_SUBST
26397 cfgfile="${ofile}T"
26398 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26399 $RM "$cfgfile"
26401 cat <<_LT_EOF >> "$cfgfile"
26402 #! $SHELL
26404 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26405 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26406 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26407 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26409 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26410 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
26411 # Written by Gordon Matzigkeit, 1996
26413 # This file is part of GNU Libtool.
26415 # GNU Libtool is free software; you can redistribute it and/or
26416 # modify it under the terms of the GNU General Public License as
26417 # published by the Free Software Foundation; either version 2 of
26418 # the License, or (at your option) any later version.
26420 # As a special exception to the GNU General Public License,
26421 # if you distribute this file as part of a program or library that
26422 # is built using GNU Libtool, you may include this file under the
26423 # same distribution terms that you use for the rest of that program.
26425 # GNU Libtool is distributed in the hope that it will be useful,
26426 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26427 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26428 # GNU General Public License for more details.
26430 # You should have received a copy of the GNU General Public License
26431 # along with GNU Libtool; see the file COPYING. If not, a copy
26432 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
26433 # obtained by writing to the Free Software Foundation, Inc.,
26434 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26437 # The names of the tagged configurations supported by this script.
26438 available_tags="CXX "
26440 # ### BEGIN LIBTOOL CONFIG
26442 # Whether or not to build static libraries.
26443 build_old_libs=$enable_static
26445 # Which release of libtool.m4 was used?
26446 macro_version=$macro_version
26447 macro_revision=$macro_revision
26449 # Whether or not to build shared libraries.
26450 build_libtool_libs=$enable_shared
26452 # What type of objects to build.
26453 pic_mode=$pic_mode
26455 # Whether or not to optimize for fast installation.
26456 fast_install=$enable_fast_install
26458 # Shell to use when invoking shell scripts.
26459 SHELL=$lt_SHELL
26461 # An echo program that protects backslashes.
26462 ECHO=$lt_ECHO
26464 # The host system.
26465 host_alias=$host_alias
26466 host=$host
26467 host_os=$host_os
26469 # The build system.
26470 build_alias=$build_alias
26471 build=$build
26472 build_os=$build_os
26474 # A sed program that does not truncate output.
26475 SED=$lt_SED
26477 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
26478 Xsed="\$SED -e 1s/^X//"
26480 # A grep program that handles long lines.
26481 GREP=$lt_GREP
26483 # An ERE matcher.
26484 EGREP=$lt_EGREP
26486 # A literal string matcher.
26487 FGREP=$lt_FGREP
26489 # A BSD- or MS-compatible name lister.
26490 NM=$lt_NM
26492 # Whether we need soft or hard links.
26493 LN_S=$lt_LN_S
26495 # What is the maximum length of a command?
26496 max_cmd_len=$max_cmd_len
26498 # Object file suffix (normally "o").
26499 objext=$ac_objext
26501 # Executable file suffix (normally "").
26502 exeext=$exeext
26504 # whether the shell understands "unset".
26505 lt_unset=$lt_unset
26507 # turn spaces into newlines.
26508 SP2NL=$lt_lt_SP2NL
26510 # turn newlines into spaces.
26511 NL2SP=$lt_lt_NL2SP
26513 # An object symbol dumper.
26514 OBJDUMP=$lt_OBJDUMP
26516 # Method to check whether dependent libraries are shared objects.
26517 deplibs_check_method=$lt_deplibs_check_method
26519 # Command to use when deplibs_check_method == "file_magic".
26520 file_magic_cmd=$lt_file_magic_cmd
26522 # The archiver.
26523 AR=$lt_AR
26524 AR_FLAGS=$lt_AR_FLAGS
26526 # A symbol stripping program.
26527 STRIP=$lt_STRIP
26529 # Commands used to install an old-style archive.
26530 RANLIB=$lt_RANLIB
26531 old_postinstall_cmds=$lt_old_postinstall_cmds
26532 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26534 # Whether to use a lock for old archive extraction.
26535 lock_old_archive_extraction=$lock_old_archive_extraction
26537 # A C compiler.
26538 LTCC=$lt_CC
26540 # LTCC compiler flags.
26541 LTCFLAGS=$lt_CFLAGS
26543 # Take the output of nm and produce a listing of raw symbols and C names.
26544 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26546 # Transform the output of nm in a proper C declaration.
26547 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26549 # Transform the output of nm in a C name address pair.
26550 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26552 # Transform the output of nm in a C name address pair when lib prefix is needed.
26553 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
26555 # The name of the directory that contains temporary libtool files.
26556 objdir=$objdir
26558 # Used to examine libraries when file_magic_cmd begins with "file".
26559 MAGIC_CMD=$MAGIC_CMD
26561 # Must we lock files when doing compilation?
26562 need_locks=$lt_need_locks
26564 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
26565 DSYMUTIL=$lt_DSYMUTIL
26567 # Tool to change global to local symbols on Mac OS X.
26568 NMEDIT=$lt_NMEDIT
26570 # Tool to manipulate fat objects and archives on Mac OS X.
26571 LIPO=$lt_LIPO
26573 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
26574 OTOOL=$lt_OTOOL
26576 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
26577 OTOOL64=$lt_OTOOL64
26579 # Old archive suffix (normally "a").
26580 libext=$libext
26582 # Shared library suffix (normally ".so").
26583 shrext_cmds=$lt_shrext_cmds
26585 # The commands to extract the exported symbol list from a shared archive.
26586 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26588 # Variables whose values should be saved in libtool wrapper scripts and
26589 # restored at link time.
26590 variables_saved_for_relink=$lt_variables_saved_for_relink
26592 # Do we need the "lib" prefix for modules?
26593 need_lib_prefix=$need_lib_prefix
26595 # Do we need a version for libraries?
26596 need_version=$need_version
26598 # Library versioning type.
26599 version_type=$version_type
26601 # Shared library runtime path variable.
26602 runpath_var=$runpath_var
26604 # Shared library path variable.
26605 shlibpath_var=$shlibpath_var
26607 # Is shlibpath searched before the hard-coded library search path?
26608 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26610 # Format of library name prefix.
26611 libname_spec=$lt_libname_spec
26613 # List of archive names. First name is the real one, the rest are links.
26614 # The last name is the one that the linker finds with -lNAME
26615 library_names_spec=$lt_library_names_spec
26617 # The coded name of the library, if different from the real name.
26618 soname_spec=$lt_soname_spec
26620 # Permission mode override for installation of shared libraries.
26621 install_override_mode=$lt_install_override_mode
26623 # Command to use after installation of a shared archive.
26624 postinstall_cmds=$lt_postinstall_cmds
26626 # Command to use after uninstallation of a shared archive.
26627 postuninstall_cmds=$lt_postuninstall_cmds
26629 # Commands used to finish a libtool library installation in a directory.
26630 finish_cmds=$lt_finish_cmds
26632 # As "finish_cmds", except a single script fragment to be evaled but
26633 # not shown.
26634 finish_eval=$lt_finish_eval
26636 # Whether we should hardcode library paths into libraries.
26637 hardcode_into_libs=$hardcode_into_libs
26639 # Compile-time system search path for libraries.
26640 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26642 # Run-time system search path for libraries.
26643 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26645 # Whether dlopen is supported.
26646 dlopen_support=$enable_dlopen
26648 # Whether dlopen of programs is supported.
26649 dlopen_self=$enable_dlopen_self
26651 # Whether dlopen of statically linked programs is supported.
26652 dlopen_self_static=$enable_dlopen_self_static
26654 # Commands to strip libraries.
26655 old_striplib=$lt_old_striplib
26656 striplib=$lt_striplib
26659 # The linker used to build libraries.
26660 LD=$lt_LD
26662 # How to create reloadable object files.
26663 reload_flag=$lt_reload_flag
26664 reload_cmds=$lt_reload_cmds
26666 # Commands used to build an old-style archive.
26667 old_archive_cmds=$lt_old_archive_cmds
26669 # A language specific compiler.
26670 CC=$lt_compiler
26672 # Is the compiler the GNU compiler?
26673 with_gcc=$GCC
26675 # Compiler flag to turn off builtin functions.
26676 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
26678 # How to pass a linker flag through the compiler.
26679 wl=$lt_lt_prog_compiler_wl
26681 # Additional compiler flags for building library objects.
26682 pic_flag=$lt_lt_prog_compiler_pic
26684 # Compiler flag to prevent dynamic linking.
26685 link_static_flag=$lt_lt_prog_compiler_static
26687 # Does compiler simultaneously support -c and -o options?
26688 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
26690 # Whether or not to add -lc for building shared libraries.
26691 build_libtool_need_lc=$archive_cmds_need_lc
26693 # Whether or not to disallow shared libs when runtime libs are static.
26694 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
26696 # Compiler flag to allow reflexive dlopens.
26697 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
26699 # Compiler flag to generate shared objects directly from archives.
26700 whole_archive_flag_spec=$lt_whole_archive_flag_spec
26702 # Whether the compiler copes with passing no objects directly.
26703 compiler_needs_object=$lt_compiler_needs_object
26705 # Create an old-style archive from a shared archive.
26706 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
26708 # Create a temporary old-style archive to link instead of a shared archive.
26709 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
26711 # Commands used to build a shared archive.
26712 archive_cmds=$lt_archive_cmds
26713 archive_expsym_cmds=$lt_archive_expsym_cmds
26715 # Commands used to build a loadable module if different from building
26716 # a shared archive.
26717 module_cmds=$lt_module_cmds
26718 module_expsym_cmds=$lt_module_expsym_cmds
26720 # Whether we are building with GNU ld or not.
26721 with_gnu_ld=$lt_with_gnu_ld
26723 # Flag that allows shared libraries with undefined symbols to be built.
26724 allow_undefined_flag=$lt_allow_undefined_flag
26726 # Flag that enforces no undefined symbols.
26727 no_undefined_flag=$lt_no_undefined_flag
26729 # Flag to hardcode \$libdir into a binary during linking.
26730 # This must work even if \$libdir does not exist
26731 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
26733 # If ld is used when linking, flag to hardcode \$libdir into a binary
26734 # during linking. This must work even if \$libdir does not exist.
26735 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
26737 # Whether we need a single "-rpath" flag with a separated argument.
26738 hardcode_libdir_separator=$lt_hardcode_libdir_separator
26740 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26741 # DIR into the resulting binary.
26742 hardcode_direct=$hardcode_direct
26744 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26745 # DIR into the resulting binary and the resulting library dependency is
26746 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
26747 # library is relocated.
26748 hardcode_direct_absolute=$hardcode_direct_absolute
26750 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26751 # into the resulting binary.
26752 hardcode_minus_L=$hardcode_minus_L
26754 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26755 # into the resulting binary.
26756 hardcode_shlibpath_var=$hardcode_shlibpath_var
26758 # Set to "yes" if building a shared library automatically hardcodes DIR
26759 # into the library and all subsequent libraries and executables linked
26760 # against it.
26761 hardcode_automatic=$hardcode_automatic
26763 # Set to yes if linker adds runtime paths of dependent libraries
26764 # to runtime path list.
26765 inherit_rpath=$inherit_rpath
26767 # Whether libtool must link a program against all its dependency libraries.
26768 link_all_deplibs=$link_all_deplibs
26770 # Fix the shell variable \$srcfile for the compiler.
26771 fix_srcfile_path=$lt_fix_srcfile_path
26773 # Set to "yes" if exported symbols are required.
26774 always_export_symbols=$always_export_symbols
26776 # The commands to list exported symbols.
26777 export_symbols_cmds=$lt_export_symbols_cmds
26779 # Symbols that should not be listed in the preloaded symbols.
26780 exclude_expsyms=$lt_exclude_expsyms
26782 # Symbols that must always be exported.
26783 include_expsyms=$lt_include_expsyms
26785 # Commands necessary for linking programs (against libraries) with templates.
26786 prelink_cmds=$lt_prelink_cmds
26788 # Specify filename containing input files.
26789 file_list_spec=$lt_file_list_spec
26791 # How to hardcode a shared library path into an executable.
26792 hardcode_action=$hardcode_action
26794 # The directories searched by this compiler when creating a shared library.
26795 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
26797 # Dependencies to place before and after the objects being linked to
26798 # create a shared library.
26799 predep_objects=$lt_predep_objects
26800 postdep_objects=$lt_postdep_objects
26801 predeps=$lt_predeps
26802 postdeps=$lt_postdeps
26804 # The library search path used internally by the compiler when linking
26805 # a shared library.
26806 compiler_lib_search_path=$lt_compiler_lib_search_path
26808 # ### END LIBTOOL CONFIG
26810 _LT_EOF
26812 case $host_os in
26813 aix3*)
26814 cat <<\_LT_EOF >> "$cfgfile"
26815 # AIX sometimes has problems with the GCC collect2 program. For some
26816 # reason, if we set the COLLECT_NAMES environment variable, the problems
26817 # vanish in a puff of smoke.
26818 if test "X${COLLECT_NAMES+set}" != Xset; then
26819 COLLECT_NAMES=
26820 export COLLECT_NAMES
26822 _LT_EOF
26824 esac
26827 ltmain="$ac_aux_dir/ltmain.sh"
26830 # We use sed instead of cat because bash on DJGPP gets confused if
26831 # if finds mixed CR/LF and LF-only lines. Since sed operates in
26832 # text mode, it properly converts lines to CR/LF. This bash problem
26833 # is reportedly fixed, but why not run on old versions too?
26834 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
26835 || (rm -f "$cfgfile"; exit 1)
26837 case $xsi_shell in
26838 yes)
26839 cat << \_LT_EOF >> "$cfgfile"
26841 # func_dirname file append nondir_replacement
26842 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
26843 # otherwise set result to NONDIR_REPLACEMENT.
26844 func_dirname ()
26846 case ${1} in
26847 */*) func_dirname_result="${1%/*}${2}" ;;
26848 * ) func_dirname_result="${3}" ;;
26849 esac
26852 # func_basename file
26853 func_basename ()
26855 func_basename_result="${1##*/}"
26858 # func_dirname_and_basename file append nondir_replacement
26859 # perform func_basename and func_dirname in a single function
26860 # call:
26861 # dirname: Compute the dirname of FILE. If nonempty,
26862 # add APPEND to the result, otherwise set result
26863 # to NONDIR_REPLACEMENT.
26864 # value returned in "$func_dirname_result"
26865 # basename: Compute filename of FILE.
26866 # value retuned in "$func_basename_result"
26867 # Implementation must be kept synchronized with func_dirname
26868 # and func_basename. For efficiency, we do not delegate to
26869 # those functions but instead duplicate the functionality here.
26870 func_dirname_and_basename ()
26872 case ${1} in
26873 */*) func_dirname_result="${1%/*}${2}" ;;
26874 * ) func_dirname_result="${3}" ;;
26875 esac
26876 func_basename_result="${1##*/}"
26879 # func_stripname prefix suffix name
26880 # strip PREFIX and SUFFIX off of NAME.
26881 # PREFIX and SUFFIX must not contain globbing or regex special
26882 # characters, hashes, percent signs, but SUFFIX may contain a leading
26883 # dot (in which case that matches only a dot).
26884 func_stripname ()
26886 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
26887 # positional parameters, so assign one to ordinary parameter first.
26888 func_stripname_result=${3}
26889 func_stripname_result=${func_stripname_result#"${1}"}
26890 func_stripname_result=${func_stripname_result%"${2}"}
26893 # func_opt_split
26894 func_opt_split ()
26896 func_opt_split_opt=${1%%=*}
26897 func_opt_split_arg=${1#*=}
26900 # func_lo2o object
26901 func_lo2o ()
26903 case ${1} in
26904 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
26905 *) func_lo2o_result=${1} ;;
26906 esac
26909 # func_xform libobj-or-source
26910 func_xform ()
26912 func_xform_result=${1%.*}.lo
26915 # func_arith arithmetic-term...
26916 func_arith ()
26918 func_arith_result=$(( $* ))
26921 # func_len string
26922 # STRING may not start with a hyphen.
26923 func_len ()
26925 func_len_result=${#1}
26928 _LT_EOF
26930 *) # Bourne compatible functions.
26931 cat << \_LT_EOF >> "$cfgfile"
26933 # func_dirname file append nondir_replacement
26934 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
26935 # otherwise set result to NONDIR_REPLACEMENT.
26936 func_dirname ()
26938 # Extract subdirectory from the argument.
26939 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
26940 if test "X$func_dirname_result" = "X${1}"; then
26941 func_dirname_result="${3}"
26942 else
26943 func_dirname_result="$func_dirname_result${2}"
26947 # func_basename file
26948 func_basename ()
26950 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
26954 # func_stripname prefix suffix name
26955 # strip PREFIX and SUFFIX off of NAME.
26956 # PREFIX and SUFFIX must not contain globbing or regex special
26957 # characters, hashes, percent signs, but SUFFIX may contain a leading
26958 # dot (in which case that matches only a dot).
26959 # func_strip_suffix prefix name
26960 func_stripname ()
26962 case ${2} in
26963 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
26964 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
26965 esac
26968 # sed scripts:
26969 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
26970 my_sed_long_arg='1s/^-[^=]*=//'
26972 # func_opt_split
26973 func_opt_split ()
26975 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
26976 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
26979 # func_lo2o object
26980 func_lo2o ()
26982 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
26985 # func_xform libobj-or-source
26986 func_xform ()
26988 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
26991 # func_arith arithmetic-term...
26992 func_arith ()
26994 func_arith_result=`expr "$@"`
26997 # func_len string
26998 # STRING may not start with a hyphen.
26999 func_len ()
27001 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
27004 _LT_EOF
27005 esac
27007 case $lt_shell_append in
27008 yes)
27009 cat << \_LT_EOF >> "$cfgfile"
27011 # func_append var value
27012 # Append VALUE to the end of shell variable VAR.
27013 func_append ()
27015 eval "$1+=\$2"
27017 _LT_EOF
27020 cat << \_LT_EOF >> "$cfgfile"
27022 # func_append var value
27023 # Append VALUE to the end of shell variable VAR.
27024 func_append ()
27026 eval "$1=\$$1\$2"
27029 _LT_EOF
27031 esac
27034 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27035 || (rm -f "$cfgfile"; exit 1)
27037 mv -f "$cfgfile" "$ofile" ||
27038 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27039 chmod +x "$ofile"
27042 cat <<_LT_EOF >> "$ofile"
27044 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27046 # The linker used to build libraries.
27047 LD=$lt_LD_CXX
27049 # How to create reloadable object files.
27050 reload_flag=$lt_reload_flag_CXX
27051 reload_cmds=$lt_reload_cmds_CXX
27053 # Commands used to build an old-style archive.
27054 old_archive_cmds=$lt_old_archive_cmds_CXX
27056 # A language specific compiler.
27057 CC=$lt_compiler_CXX
27059 # Is the compiler the GNU compiler?
27060 with_gcc=$GCC_CXX
27062 # Compiler flag to turn off builtin functions.
27063 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27065 # How to pass a linker flag through the compiler.
27066 wl=$lt_lt_prog_compiler_wl_CXX
27068 # Additional compiler flags for building library objects.
27069 pic_flag=$lt_lt_prog_compiler_pic_CXX
27071 # Compiler flag to prevent dynamic linking.
27072 link_static_flag=$lt_lt_prog_compiler_static_CXX
27074 # Does compiler simultaneously support -c and -o options?
27075 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27077 # Whether or not to add -lc for building shared libraries.
27078 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27080 # Whether or not to disallow shared libs when runtime libs are static.
27081 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27083 # Compiler flag to allow reflexive dlopens.
27084 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27086 # Compiler flag to generate shared objects directly from archives.
27087 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27089 # Whether the compiler copes with passing no objects directly.
27090 compiler_needs_object=$lt_compiler_needs_object_CXX
27092 # Create an old-style archive from a shared archive.
27093 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27095 # Create a temporary old-style archive to link instead of a shared archive.
27096 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27098 # Commands used to build a shared archive.
27099 archive_cmds=$lt_archive_cmds_CXX
27100 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27102 # Commands used to build a loadable module if different from building
27103 # a shared archive.
27104 module_cmds=$lt_module_cmds_CXX
27105 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27107 # Whether we are building with GNU ld or not.
27108 with_gnu_ld=$lt_with_gnu_ld_CXX
27110 # Flag that allows shared libraries with undefined symbols to be built.
27111 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27113 # Flag that enforces no undefined symbols.
27114 no_undefined_flag=$lt_no_undefined_flag_CXX
27116 # Flag to hardcode \$libdir into a binary during linking.
27117 # This must work even if \$libdir does not exist
27118 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27120 # If ld is used when linking, flag to hardcode \$libdir into a binary
27121 # during linking. This must work even if \$libdir does not exist.
27122 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
27124 # Whether we need a single "-rpath" flag with a separated argument.
27125 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27127 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27128 # DIR into the resulting binary.
27129 hardcode_direct=$hardcode_direct_CXX
27131 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27132 # DIR into the resulting binary and the resulting library dependency is
27133 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27134 # library is relocated.
27135 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27137 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27138 # into the resulting binary.
27139 hardcode_minus_L=$hardcode_minus_L_CXX
27141 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27142 # into the resulting binary.
27143 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27145 # Set to "yes" if building a shared library automatically hardcodes DIR
27146 # into the library and all subsequent libraries and executables linked
27147 # against it.
27148 hardcode_automatic=$hardcode_automatic_CXX
27150 # Set to yes if linker adds runtime paths of dependent libraries
27151 # to runtime path list.
27152 inherit_rpath=$inherit_rpath_CXX
27154 # Whether libtool must link a program against all its dependency libraries.
27155 link_all_deplibs=$link_all_deplibs_CXX
27157 # Fix the shell variable \$srcfile for the compiler.
27158 fix_srcfile_path=$lt_fix_srcfile_path_CXX
27160 # Set to "yes" if exported symbols are required.
27161 always_export_symbols=$always_export_symbols_CXX
27163 # The commands to list exported symbols.
27164 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27166 # Symbols that should not be listed in the preloaded symbols.
27167 exclude_expsyms=$lt_exclude_expsyms_CXX
27169 # Symbols that must always be exported.
27170 include_expsyms=$lt_include_expsyms_CXX
27172 # Commands necessary for linking programs (against libraries) with templates.
27173 prelink_cmds=$lt_prelink_cmds_CXX
27175 # Specify filename containing input files.
27176 file_list_spec=$lt_file_list_spec_CXX
27178 # How to hardcode a shared library path into an executable.
27179 hardcode_action=$hardcode_action_CXX
27181 # The directories searched by this compiler when creating a shared library.
27182 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27184 # Dependencies to place before and after the objects being linked to
27185 # create a shared library.
27186 predep_objects=$lt_predep_objects_CXX
27187 postdep_objects=$lt_postdep_objects_CXX
27188 predeps=$lt_predeps_CXX
27189 postdeps=$lt_postdeps_CXX
27191 # The library search path used internally by the compiler when linking
27192 # a shared library.
27193 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27195 # ### END LIBTOOL TAG CONFIG: CXX
27196 _LT_EOF
27199 "mkcollections.pl":C) chmod 755 lib/mkcollections.pl ;;
27200 "$ac_stdint_h":C)
27201 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
27202 $as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
27203 ac_stdint=$tmp/_stdint.h
27205 echo "#ifndef" $_ac_stdint_h >$ac_stdint
27206 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
27207 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
27208 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
27209 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
27210 if test "_$ac_cv_header_stdint_t" != "_" ; then
27211 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
27212 echo "#include <stdint.h>" >>$ac_stdint
27213 echo "#endif" >>$ac_stdint
27214 echo "#endif" >>$ac_stdint
27215 else
27217 cat >>$ac_stdint <<STDINT_EOF
27219 /* ................... shortcircuit part ........................... */
27221 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
27222 #include <stdint.h>
27223 #else
27224 #include <stddef.h>
27226 /* .................... configured part ............................ */
27228 STDINT_EOF
27230 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
27231 if test "_$ac_cv_header_stdint_x" != "_" ; then
27232 ac_header="$ac_cv_header_stdint_x"
27233 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
27234 else
27235 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
27238 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
27239 if test "_$ac_cv_header_stdint_o" != "_" ; then
27240 ac_header="$ac_cv_header_stdint_o"
27241 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
27242 else
27243 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
27246 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
27247 if test "_$ac_cv_header_stdint_u" != "_" ; then
27248 ac_header="$ac_cv_header_stdint_u"
27249 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
27250 else
27251 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
27254 echo "" >>$ac_stdint
27256 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
27257 echo "#include <$ac_header>" >>$ac_stdint
27258 echo "" >>$ac_stdint
27259 fi fi
27261 echo "/* which 64bit typedef has been found */" >>$ac_stdint
27262 if test "$ac_cv_type_uint64_t" = "yes" ; then
27263 echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint
27264 else
27265 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
27267 if test "$ac_cv_type_u_int64_t" = "yes" ; then
27268 echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint
27269 else
27270 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
27272 echo "" >>$ac_stdint
27274 echo "/* which type model has been detected */" >>$ac_stdint
27275 if test "_$ac_cv_char_data_model" != "_" ; then
27276 echo "#define _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
27277 echo "#define _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
27278 else
27279 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
27280 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
27282 echo "" >>$ac_stdint
27284 echo "/* whether int_least types were detected */" >>$ac_stdint
27285 if test "$ac_cv_type_int_least32_t" = "yes"; then
27286 echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint
27287 else
27288 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
27290 echo "/* whether int_fast types were detected */" >>$ac_stdint
27291 if test "$ac_cv_type_int_fast32_t" = "yes"; then
27292 echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
27293 else
27294 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
27296 echo "/* whether intmax_t type was detected */" >>$ac_stdint
27297 if test "$ac_cv_type_intmax_t" = "yes"; then
27298 echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
27299 else
27300 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
27302 echo "" >>$ac_stdint
27304 cat >>$ac_stdint <<STDINT_EOF
27305 /* .................... detections part ............................ */
27307 /* whether we need to define bitspecific types from compiler base types */
27308 #ifndef _STDINT_HEADER_INTPTR
27309 #ifndef _STDINT_HEADER_UINT32
27310 #ifndef _STDINT_HEADER_U_INT32
27311 #define _STDINT_NEED_INT_MODEL_T
27312 #else
27313 #define _STDINT_HAVE_U_INT_TYPES
27314 #endif
27315 #endif
27316 #endif
27318 #ifdef _STDINT_HAVE_U_INT_TYPES
27319 #undef _STDINT_NEED_INT_MODEL_T
27320 #endif
27322 #ifdef _STDINT_CHAR_MODEL
27323 #if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
27324 #ifndef _STDINT_BYTE_MODEL
27325 #define _STDINT_BYTE_MODEL 12
27326 #endif
27327 #endif
27328 #endif
27330 #ifndef _STDINT_HAVE_INT_LEAST32_T
27331 #define _STDINT_NEED_INT_LEAST_T
27332 #endif
27334 #ifndef _STDINT_HAVE_INT_FAST32_T
27335 #define _STDINT_NEED_INT_FAST_T
27336 #endif
27338 #ifndef _STDINT_HEADER_INTPTR
27339 #define _STDINT_NEED_INTPTR_T
27340 #ifndef _STDINT_HAVE_INTMAX_T
27341 #define _STDINT_NEED_INTMAX_T
27342 #endif
27343 #endif
27346 /* .................... definition part ............................ */
27348 /* some system headers have good uint64_t */
27349 #ifndef _HAVE_UINT64_T
27350 #if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T
27351 #define _HAVE_UINT64_T
27352 #elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
27353 #define _HAVE_UINT64_T
27354 typedef u_int64_t uint64_t;
27355 #endif
27356 #endif
27358 #ifndef _HAVE_UINT64_T
27359 /* .. here are some common heuristics using compiler runtime specifics */
27360 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
27361 #define _HAVE_UINT64_T
27362 #define _HAVE_LONGLONG_UINT64_T
27363 typedef long long int64_t;
27364 typedef unsigned long long uint64_t;
27366 #elif !defined __STRICT_ANSI__
27367 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
27368 #define _HAVE_UINT64_T
27369 typedef __int64 int64_t;
27370 typedef unsigned __int64 uint64_t;
27372 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
27373 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
27374 #if !defined _NO_LONGLONG
27375 #define _HAVE_UINT64_T
27376 #define _HAVE_LONGLONG_UINT64_T
27377 typedef long long int64_t;
27378 typedef unsigned long long uint64_t;
27379 #endif
27381 #elif defined __alpha || (defined __mips && defined _ABIN32)
27382 #if !defined _NO_LONGLONG
27383 typedef long int64_t;
27384 typedef unsigned long uint64_t;
27385 #endif
27386 /* compiler/cpu type to define int64_t */
27387 #endif
27388 #endif
27389 #endif
27391 #if defined _STDINT_HAVE_U_INT_TYPES
27392 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
27393 typedef u_int8_t uint8_t;
27394 typedef u_int16_t uint16_t;
27395 typedef u_int32_t uint32_t;
27397 /* glibc compatibility */
27398 #ifndef __int8_t_defined
27399 #define __int8_t_defined
27400 #endif
27401 #endif
27403 #ifdef _STDINT_NEED_INT_MODEL_T
27404 /* we must guess all the basic types. Apart from byte-adressable system, */
27405 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
27406 /* (btw, those nibble-addressable systems are way off, or so we assume) */
27409 #if defined _STDINT_BYTE_MODEL
27410 #if _STDINT_LONG_MODEL+0 == 242
27411 /* 2:4:2 = IP16 = a normal 16-bit system */
27412 typedef unsigned char uint8_t;
27413 typedef unsigned short uint16_t;
27414 typedef unsigned long uint32_t;
27415 #ifndef __int8_t_defined
27416 #define __int8_t_defined
27417 typedef char int8_t;
27418 typedef short int16_t;
27419 typedef long int32_t;
27420 #endif
27421 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
27422 /* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */
27423 /* 4:4:4 = ILP32 = a normal 32-bit system */
27424 typedef unsigned char uint8_t;
27425 typedef unsigned short uint16_t;
27426 typedef unsigned int uint32_t;
27427 #ifndef __int8_t_defined
27428 #define __int8_t_defined
27429 typedef char int8_t;
27430 typedef short int16_t;
27431 typedef int int32_t;
27432 #endif
27433 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
27434 /* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */
27435 /* 4:8:8 = LP64 = a normal 64-bit system */
27436 typedef unsigned char uint8_t;
27437 typedef unsigned short uint16_t;
27438 typedef unsigned int uint32_t;
27439 #ifndef __int8_t_defined
27440 #define __int8_t_defined
27441 typedef char int8_t;
27442 typedef short int16_t;
27443 typedef int int32_t;
27444 #endif
27445 /* this system has a "long" of 64bit */
27446 #ifndef _HAVE_UINT64_T
27447 #define _HAVE_UINT64_T
27448 typedef unsigned long uint64_t;
27449 typedef long int64_t;
27450 #endif
27451 #elif _STDINT_LONG_MODEL+0 == 448
27452 /* LLP64 a 64-bit system derived from a 32-bit system */
27453 typedef unsigned char uint8_t;
27454 typedef unsigned short uint16_t;
27455 typedef unsigned int uint32_t;
27456 #ifndef __int8_t_defined
27457 #define __int8_t_defined
27458 typedef char int8_t;
27459 typedef short int16_t;
27460 typedef int int32_t;
27461 #endif
27462 /* assuming the system has a "long long" */
27463 #ifndef _HAVE_UINT64_T
27464 #define _HAVE_UINT64_T
27465 #define _HAVE_LONGLONG_UINT64_T
27466 typedef unsigned long long uint64_t;
27467 typedef long long int64_t;
27468 #endif
27469 #else
27470 #define _STDINT_NO_INT32_T
27471 #endif
27472 #else
27473 #define _STDINT_NO_INT8_T
27474 #define _STDINT_NO_INT32_T
27475 #endif
27476 #endif
27479 * quote from SunOS-5.8 sys/inttypes.h:
27480 * Use at your own risk. As of February 1996, the committee is squarely
27481 * behind the fixed sized types; the "least" and "fast" types are still being
27482 * discussed. The probability that the "fast" types may be removed before
27483 * the standard is finalized is high enough that they are not currently
27484 * implemented.
27487 #if defined _STDINT_NEED_INT_LEAST_T
27488 typedef int8_t int_least8_t;
27489 typedef int16_t int_least16_t;
27490 typedef int32_t int_least32_t;
27491 #ifdef _HAVE_UINT64_T
27492 typedef int64_t int_least64_t;
27493 #endif
27495 typedef uint8_t uint_least8_t;
27496 typedef uint16_t uint_least16_t;
27497 typedef uint32_t uint_least32_t;
27498 #ifdef _HAVE_UINT64_T
27499 typedef uint64_t uint_least64_t;
27500 #endif
27501 /* least types */
27502 #endif
27504 #if defined _STDINT_NEED_INT_FAST_T
27505 typedef int8_t int_fast8_t;
27506 typedef int int_fast16_t;
27507 typedef int32_t int_fast32_t;
27508 #ifdef _HAVE_UINT64_T
27509 typedef int64_t int_fast64_t;
27510 #endif
27512 typedef uint8_t uint_fast8_t;
27513 typedef unsigned uint_fast16_t;
27514 typedef uint32_t uint_fast32_t;
27515 #ifdef _HAVE_UINT64_T
27516 typedef uint64_t uint_fast64_t;
27517 #endif
27518 /* fast types */
27519 #endif
27521 #ifdef _STDINT_NEED_INTMAX_T
27522 #ifdef _HAVE_UINT64_T
27523 typedef int64_t intmax_t;
27524 typedef uint64_t uintmax_t;
27525 #else
27526 typedef long intmax_t;
27527 typedef unsigned long uintmax_t;
27528 #endif
27529 #endif
27531 #ifdef _STDINT_NEED_INTPTR_T
27532 #ifndef __intptr_t_defined
27533 #define __intptr_t_defined
27534 /* we encourage using "long" to store pointer values, never use "int" ! */
27535 #if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
27536 typedef unsigned int uintptr_t;
27537 typedef int intptr_t;
27538 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
27539 typedef unsigned long uintptr_t;
27540 typedef long intptr_t;
27541 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
27542 typedef uint64_t uintptr_t;
27543 typedef int64_t intptr_t;
27544 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
27545 typedef unsigned long uintptr_t;
27546 typedef long intptr_t;
27547 #endif
27548 #endif
27549 #endif
27551 /* The ISO C99 standard specifies that in C++ implementations these
27552 should only be defined if explicitly requested. */
27553 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
27554 #ifndef UINT32_C
27556 /* Signed. */
27557 # define INT8_C(c) c
27558 # define INT16_C(c) c
27559 # define INT32_C(c) c
27560 # ifdef _HAVE_LONGLONG_UINT64_T
27561 # define INT64_C(c) c ## L
27562 # else
27563 # define INT64_C(c) c ## LL
27564 # endif
27566 /* Unsigned. */
27567 # define UINT8_C(c) c ## U
27568 # define UINT16_C(c) c ## U
27569 # define UINT32_C(c) c ## U
27570 # ifdef _HAVE_LONGLONG_UINT64_T
27571 # define UINT64_C(c) c ## UL
27572 # else
27573 # define UINT64_C(c) c ## ULL
27574 # endif
27576 /* Maximal type. */
27577 # ifdef _HAVE_LONGLONG_UINT64_T
27578 # define INTMAX_C(c) c ## L
27579 # define UINTMAX_C(c) c ## UL
27580 # else
27581 # define INTMAX_C(c) c ## LL
27582 # define UINTMAX_C(c) c ## ULL
27583 # endif
27585 /* literalnumbers */
27586 #endif
27587 #endif
27589 /* These limits are merily those of a two complement byte-oriented system */
27591 /* Minimum of signed integral types. */
27592 #ifndef INT8_MIN
27593 # define INT8_MIN (-128)
27594 #endif
27595 #ifndef INT16_MIN
27596 # define INT16_MIN (-32767-1)
27597 #endif
27598 #ifndef INT32_MIN
27599 # define INT32_MIN (-2147483647-1)
27600 #endif
27601 #ifndef INT64_MIN
27602 # define INT64_MIN (-__INT64_C(9223372036854775807)-1)
27603 #endif
27605 /* Maximum of signed integral types. */
27606 #ifndef INT8_MAX
27607 # define INT8_MAX (127)
27608 #endif
27609 #ifndef INT16_MAX
27610 # define INT16_MAX (32767)
27611 #endif
27612 #ifndef INT32_MAX
27613 # define INT32_MAX (2147483647)
27614 #endif
27615 #ifndef INT64_MAX
27616 # define INT64_MAX (__INT64_C(9223372036854775807))
27617 #endif
27619 /* Maximum of unsigned integral types. */
27620 #ifndef UINT8_MAX
27621 # define UINT8_MAX (255)
27622 #endif
27623 #ifndef UINT16_MAX
27624 # define UINT16_MAX (65535)
27625 #endif
27626 #ifndef UINT32_MAX
27627 # define UINT32_MAX (4294967295U)
27628 #endif
27629 #ifndef UINT64_MAX
27630 # define UINT64_MAX (__UINT64_C(18446744073709551615))
27631 #endif
27633 /* Minimum of signed integral types having a minimum size. */
27634 # define INT_LEAST8_MIN INT8_MIN
27635 # define INT_LEAST16_MIN INT16_MIN
27636 # define INT_LEAST32_MIN INT32_MIN
27637 # define INT_LEAST64_MIN INT64_MIN
27638 /* Maximum of signed integral types having a minimum size. */
27639 # define INT_LEAST8_MAX INT8_MAX
27640 # define INT_LEAST16_MAX INT16_MAX
27641 # define INT_LEAST32_MAX INT32_MAX
27642 # define INT_LEAST64_MAX INT64_MAX
27644 /* Maximum of unsigned integral types having a minimum size. */
27645 # define UINT_LEAST8_MAX UINT8_MAX
27646 # define UINT_LEAST16_MAX UINT16_MAX
27647 # define UINT_LEAST32_MAX UINT32_MAX
27648 # define UINT_LEAST64_MAX UINT64_MAX
27650 /* shortcircuit*/
27651 #endif
27652 /* once */
27653 #endif
27654 #endif
27655 STDINT_EOF
27657 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
27658 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
27659 $as_echo "$as_me: $ac_stdint_h is unchanged" >&6;}
27660 else
27661 ac_dir=`$as_dirname -- "$ac_stdint_h" ||
27662 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27663 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
27664 X"$ac_stdint_h" : 'X\(//\)$' \| \
27665 X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
27666 $as_echo X"$ac_stdint_h" |
27667 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27668 s//\1/
27671 /^X\(\/\/\)[^/].*/{
27672 s//\1/
27675 /^X\(\/\/\)$/{
27676 s//\1/
27679 /^X\(\/\).*/{
27680 s//\1/
27683 s/.*/./; q'`
27684 as_dir="$ac_dir"; as_fn_mkdir_p
27685 rm -f $ac_stdint_h
27686 mv $ac_stdint $ac_stdint_h
27689 "gappletviewer":C) chmod 755 tools/gappletviewer ;;
27690 "gjarsigner":C) chmod 755 tools/gjarsigner ;;
27691 "gkeytool":C) chmod 755 tools/gkeytool ;;
27692 "gjar":C) chmod 755 tools/gjar ;;
27693 "gnative2ascii":C) chmod 755 tools/gnative2ascii ;;
27694 "gserialver":C) chmod 755 tools/gserialver ;;
27695 "grmiregistry":C) chmod 755 tools/grmiregistry ;;
27696 "gtnameserv":C) chmod 755 tools/gtnameserv ;;
27697 "gorbd":C) chmod 755 tools/gorbd ;;
27698 "grmid":C) chmod 755 tools/grmid ;;
27699 "grmic":C) chmod 755 tools/grmic ;;
27700 "gjavah":C) chmod 755 tools/gjavah ;;
27701 "gjdoc":C) chmod 755 tools/gjdoc ;;
27702 "gen-classlist":C) chmod 755 lib/gen-classlist.sh ;;
27703 "copy-vmresources":C) chmod 755 lib/copy-vmresources.sh ;;
27705 esac
27706 done # for ac_tag
27709 as_fn_exit 0
27710 _ACEOF
27711 ac_clean_files=$ac_clean_files_save
27713 test $ac_write_fail = 0 ||
27714 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27717 # configure is writing to config.log, and then calls config.status.
27718 # config.status does its own redirection, appending to config.log.
27719 # Unfortunately, on DOS this fails, as config.log is still kept open
27720 # by configure, so config.status won't be able to write to it; its
27721 # output is simply discarded. So we exec the FD to /dev/null,
27722 # effectively closing config.log, so it can be properly (re)opened and
27723 # appended to by config.status. When coming back to configure, we
27724 # need to make the FD available again.
27725 if test "$no_create" != yes; then
27726 ac_cs_success=:
27727 ac_config_status_args=
27728 test "$silent" = yes &&
27729 ac_config_status_args="$ac_config_status_args --quiet"
27730 exec 5>/dev/null
27731 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27732 exec 5>>config.log
27733 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27734 # would make configure fail if this is the last instruction.
27735 $ac_cs_success || as_fn_exit $?
27737 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27739 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27743 # Create standard.omit based on decisions we just made.
27744 cat ${srcdir}/lib/standard.omit.in > lib/standard.omit
27745 if test x$use_escher != xtrue; then
27746 echo gnu/java/awt/peer/x/.*java$ >> lib/standard.omit
27749 if test "x${COMPILE_PLUGIN}" = "xyes" ; then
27750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have enabled the browser plugin. Please note that this is no longer maintained as part of GNU Classpath; development has moved to the IcedTea project." >&5
27751 $as_echo "$as_me: WARNING: You have enabled the browser plugin. Please note that this is no longer maintained as part of GNU Classpath; development has moved to the IcedTea project." >&2;}