]> git.ipfire.org Git - thirdparty/gcc.git/blob - libjava/classpath/configure
configure.ac: Add multilib support for gmp.
[thirdparty/gcc.git] / libjava / classpath / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU Classpath 0.98.
4 #
5 # Report bugs to <classpath@gnu.org>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # Foundation, Inc.
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1
175
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
187 fi
188 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189
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
194 do
195 IFS=$as_save_IFS
196 test -z "$as_dir" && as_dir=.
197 as_found=:
198 case $as_dir in #(
199 /*)
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
208 fi
209 fi
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
219
220
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+"$@"}
230 fi
231
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."
244 fi
245 exit 1
246 fi
247 fi
248 fi
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
254
255 ## --------------------- ##
256 ## M4sh Shell Functions. ##
257 ## --------------------- ##
258 # as_fn_unset VAR
259 # ---------------
260 # Portably unset VAR.
261 as_fn_unset ()
262 {
263 { eval $1=; unset $1;}
264 }
265 as_unset=as_fn_unset
266
267 # as_fn_set_status STATUS
268 # -----------------------
269 # Set $? to STATUS, without forking.
270 as_fn_set_status ()
271 {
272 return $1
273 } # as_fn_set_status
274
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 ()
279 {
280 set +e
281 as_fn_set_status $1
282 exit $1
283 } # as_fn_exit
284
285 # as_fn_mkdir_p
286 # -------------
287 # Create "$as_dir" as a directory, including parents if necessary.
288 as_fn_mkdir_p ()
289 {
290
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/
310 q
311 }
312 /^X\(\/\/\)[^/].*/{
313 s//\1/
314 q
315 }
316 /^X\(\/\/\)$/{
317 s//\1/
318 q
319 }
320 /^X\(\/\).*/{
321 s//\1/
322 q
323 }
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"
329
330
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 ()
340 {
341 eval $1+=\$2
342 }'
343 else
344 as_fn_append ()
345 {
346 eval $1=\$$1\$2
347 }
348 fi # as_fn_append
349
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 ()
357 {
358 as_val=$(( $* ))
359 }'
360 else
361 as_fn_arith ()
362 {
363 as_val=`expr "$@" || test $? -eq 1`
364 }
365 fi # as_fn_arith
366
367
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 ()
374 {
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
379 fi
380 $as_echo "$as_me: error: $1" >&2
381 as_fn_exit $as_status
382 } # as_fn_error
383
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
389 fi
390
391 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
392 as_basename=basename
393 else
394 as_basename=false
395 fi
396
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
401 fi
402
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/
410 q
411 }
412 /^X\/\(\/\/\)$/{
413 s//\1/
414 q
415 }
416 /^X\/\(\/\).*/{
417 s//\1/
418 q
419 }
420 s/.*/./; q'`
421
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
428
429
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 '
436 p
437 /[$]LINENO/=
438 ' <$as_myself |
439 sed '
440 s/[$]LINENO.*/&-/
441 t lineno
442 b
443 :lineno
444 N
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; }
452
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
459 }
460
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;;
470 *)
471 ECHO_N='-n';;
472 esac
473
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
480 fi
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'
494 fi
495 else
496 as_ln_s='cp -p'
497 fi
498 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
499 rmdir conf$$.dir 2>/dev/null
500
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
506 fi
507
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=
515 fi
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
527 '
528 fi
529 as_executable_p=$as_test_x
530
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'"
533
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'"
536
537 SHELL=${CONFIG_SHELL-/bin/sh}
538
539
540 exec 7<&0 </dev/null 6>&1
541
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`
546
547 #
548 # Initializations.
549 #
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=
558
559 # Identity of this package.
560 PACKAGE_NAME='GNU Classpath'
561 PACKAGE_TARNAME='classpath'
562 PACKAGE_VERSION='0.98'
563 PACKAGE_STRING='GNU Classpath 0.98'
564 PACKAGE_BUGREPORT='classpath@gnu.org'
565 PACKAGE_URL='http://www.gnu.org/software/classpath/'
566
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"
604
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
634 JAY
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
648 JAR
649 ZIP
650 FIND
651 DATE
652 CP
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
672 MOC
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
722 CXX
723 OTOOL64
724 OTOOL
725 LIPO
726 NMEDIT
727 DSYMUTIL
728 RANLIB
729 AR
730 OBJDUMP
731 NM
732 ac_ct_DUMPBIN
733 DUMPBIN
734 LD
735 FGREP
736 SED
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
762 CPP
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
778 CC
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
797 AWK
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
937 '
938 ac_precious_vars='build_alias
939 host_alias
940 target_alias
941 CC
942 CFLAGS
943 LDFLAGS
944 LIBS
945 CPPFLAGS
946 CPP
947 CXX
948 CXXFLAGS
949 CCC
950 CXXCPP
951 XMKMF'
952
953
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
975
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'
1001
1002 ac_prev=
1003 ac_dashdash=
1004 for ac_option
1005 do
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
1011 fi
1012
1013 case $ac_option in
1014 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1015 *) ac_optarg=yes ;;
1016 esac
1017
1018 # Accept the important Cygnus configure options, so we can diagnose typos.
1019
1020 case $ac_dashdash$ac_option in
1021 --)
1022 ac_dashdash=yes ;;
1023
1024 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1025 ac_prev=bindir ;;
1026 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1027 bindir=$ac_optarg ;;
1028
1029 -build | --build | --buil | --bui | --bu)
1030 ac_prev=build_alias ;;
1031 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1032 build_alias=$ac_optarg ;;
1033
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 ;;
1040
1041 --config-cache | -C)
1042 cache_file=config.cache ;;
1043
1044 -datadir | --datadir | --datadi | --datad)
1045 ac_prev=datadir ;;
1046 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1047 datadir=$ac_optarg ;;
1048
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 ;;
1055
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
1064 *"
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 ;;
1071
1072 -docdir | --docdir | --docdi | --doc | --do)
1073 ac_prev=docdir ;;
1074 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1075 docdir=$ac_optarg ;;
1076
1077 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1078 ac_prev=dvidir ;;
1079 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1080 dvidir=$ac_optarg ;;
1081
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
1090 *"
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 ;;
1097
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 ;;
1106
1107 -gas | --gas | --ga | --g)
1108 # Obsolete; use --with-gas.
1109 with_gas=yes ;;
1110
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 ;;
1117
1118 -host | --host | --hos | --ho)
1119 ac_prev=host_alias ;;
1120 -host=* | --host=* | --hos=* | --ho=*)
1121 host_alias=$ac_optarg ;;
1122
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 ;;
1128
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 ;;
1135
1136 -infodir | --infodir | --infodi | --infod | --info | --inf)
1137 ac_prev=infodir ;;
1138 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1139 infodir=$ac_optarg ;;
1140
1141 -libdir | --libdir | --libdi | --libd)
1142 ac_prev=libdir ;;
1143 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1144 libdir=$ac_optarg ;;
1145
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 ;;
1152
1153 -localedir | --localedir | --localedi | --localed | --locale)
1154 ac_prev=localedir ;;
1155 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1156 localedir=$ac_optarg ;;
1157
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 ;;
1164
1165 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1166 ac_prev=mandir ;;
1167 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1168 mandir=$ac_optarg ;;
1169
1170 -nfp | --nfp | --nf)
1171 # Obsolete; use --without-fp.
1172 with_fp=no ;;
1173
1174 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1175 | --no-cr | --no-c | -n)
1176 no_create=yes ;;
1177
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 ;;
1181
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 ;;
1190
1191 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1192 ac_prev=prefix ;;
1193 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1194 prefix=$ac_optarg ;;
1195
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 ;;
1202
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 ;;
1209
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 ;;
1226
1227 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1228 ac_prev=pdfdir ;;
1229 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1230 pdfdir=$ac_optarg ;;
1231
1232 -psdir | --psdir | --psdi | --psd | --ps)
1233 ac_prev=psdir ;;
1234 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1235 psdir=$ac_optarg ;;
1236
1237 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1238 | -silent | --silent | --silen | --sile | --sil)
1239 silent=yes ;;
1240
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 ;;
1246
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 ;;
1257
1258 -site | --site | --sit)
1259 ac_prev=site ;;
1260 -site=* | --site=* | --sit=*)
1261 site=$ac_optarg ;;
1262
1263 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1264 ac_prev=srcdir ;;
1265 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1266 srcdir=$ac_optarg ;;
1267
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 ;;
1274
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 ;;
1279
1280 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1281 verbose=yes ;;
1282
1283 -version | --version | --versio | --versi | --vers | -V)
1284 ac_init_version=: ;;
1285
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
1294 *"
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 ;;
1301
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
1310 *"
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 ;;
1317
1318 --x)
1319 # Obsolete; use --with-x.
1320 with_x=yes ;;
1321
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 ;;
1328
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 ;;
1335
1336 -*) as_fn_error "unrecognized option: \`$ac_option'
1337 Try \`$0 --help' for more information."
1338 ;;
1339
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 ;;
1349
1350 *)
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}
1356 ;;
1357
1358 esac
1359 done
1360
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"
1364 fi
1365
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
1372 fi
1373
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
1379 do
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
1394
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
1401
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
1410 fi
1411 fi
1412
1413 ac_tool_prefix=
1414 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1415
1416 test "$silent" = yes && exec 6>/dev/null
1417
1418
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"
1425
1426
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/
1439 q
1440 }
1441 /^X\(\/\/\)[^/].*/{
1442 s//\1/
1443 q
1444 }
1445 /^X\(\/\/\)$/{
1446 s//\1/
1447 q
1448 }
1449 /^X\(\/\).*/{
1450 s//\1/
1451 q
1452 }
1453 s/.*/./; q'`
1454 srcdir=$ac_confdir
1455 if test ! -r "$srcdir/$ac_unique_file"; then
1456 srcdir=..
1457 fi
1458 else
1459 ac_srcdir_defaulted=no
1460 fi
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"
1464 fi
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=.
1472 fi
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
1485
1486 #
1487 # Report the --help message.
1488 #
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.98 to adapt to many kinds of systems.
1494
1495 Usage: $0 [OPTION]... [VAR=VALUE]...
1496
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.
1499
1500 Defaults for the options are specified in brackets.
1501
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 \`..']
1512
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]
1518
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'.
1523
1524 For better control, use the options below.
1525
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
1547
1548 cat <<\_ACEOF
1549
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
1554
1555 X features:
1556 --x-includes=DIR X include files are in DIR
1557 --x-libraries=DIR X library files are in DIR
1558
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
1564 fi
1565
1566 if test -n "$ac_init_help"; then
1567 case $ac_init_help in
1568 short | recursive ) echo "Configuration of GNU Classpath 0.98:";;
1569 esac
1570 cat <<\_ACEOF
1571
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
1593
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
1642
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
1677
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
1691
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.
1694
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=$?
1700 fi
1701
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=.
1709
1710 case "$ac_dir" in
1711 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1712 *)
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
1725
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
1741
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
1755 fi
1756
1757 test -n "$ac_init_help" && exit $ac_status
1758 if $ac_init_version; then
1759 cat <<\_ACEOF
1760 GNU Classpath configure 0.98
1761 generated by GNU Autoconf 2.64
1762
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
1768 fi
1769
1770 ## ------------------------ ##
1771 ## Autoconf initialization. ##
1772 ## ------------------------ ##
1773
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 ()
1778 {
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
1794 fi
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
1804
1805 ac_retval=1
1806 fi
1807 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1808 return $ac_retval
1809
1810 } # ac_fn_c_try_compile
1811
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 ()
1816 {
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
1831 fi
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
1841
1842 ac_retval=1
1843 fi
1844 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1845 return $ac_retval
1846
1847 } # ac_fn_c_try_cpp
1848
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 ()
1855 {
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
1862 fi
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. */
1872 $4
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
1879 fi
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; }
1883
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
1895 fi
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; }
1899
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;}
1907 ;;
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
1925 ;;
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"
1933 fi
1934 eval ac_res=\$$3
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936 $as_echo "$ac_res" >&6; }
1937 fi
1938 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1939
1940 } # ac_fn_c_check_header_mongrel
1941
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 ()
1947 {
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
1975
1976 ac_retval=$ac_status
1977 fi
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
1981
1982 } # ac_fn_c_try_run
1983
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 ()
1989 {
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. */
1998 $4
1999 #include <$2>
2000 _ACEOF
2001 if ac_fn_c_try_compile "$LINENO"; then :
2002 eval "$3=yes"
2003 else
2004 eval "$3=no"
2005 fi
2006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007 fi
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;}
2012
2013 } # ac_fn_c_check_header_compile
2014
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 ()
2019 {
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
2035 fi
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
2048
2049 ac_retval=1
2050 fi
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
2058
2059 } # ac_fn_c_try_link
2060
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 ()
2065 {
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
2074 fi
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
2080
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. */
2085
2086 #ifdef __STDC__
2087 # include <limits.h>
2088 #else
2089 # include <assert.h>
2090 #endif
2091
2092 #undef $2
2093
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
2107
2108 int
2109 main ()
2110 {
2111 return $2 ();
2112 ;
2113 return 0;
2114 }
2115 _ACEOF
2116 if ac_fn_c_try_link "$LINENO"; then :
2117 eval "$3=yes"
2118 else
2119 eval "$3=no"
2120 fi
2121 rm -f core conftest.err conftest.$ac_objext \
2122 conftest$ac_exeext conftest.$ac_ext
2123 fi
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;}
2128
2129 } # ac_fn_c_check_func
2130
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 ()
2135 {
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
2151 fi
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
2161
2162 ac_retval=1
2163 fi
2164 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2165 return $ac_retval
2166
2167 } # ac_fn_cxx_try_compile
2168
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 ()
2173 {
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
2188 fi
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
2198
2199 ac_retval=1
2200 fi
2201 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2202 return $ac_retval
2203
2204 } # ac_fn_cxx_try_cpp
2205
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 ()
2210 {
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
2226 fi
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
2239
2240 ac_retval=1
2241 fi
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
2249
2250 } # ac_fn_cxx_try_link
2251
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 ()
2257 {
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. */
2266 $5
2267 int
2268 main ()
2269 {
2270 static $2 ac_aggr;
2271 if (ac_aggr.$3)
2272 return 0;
2273 ;
2274 return 0;
2275 }
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. */
2282 $5
2283 int
2284 main ()
2285 {
2286 static $2 ac_aggr;
2287 if (sizeof ac_aggr.$3)
2288 return 0;
2289 ;
2290 return 0;
2291 }
2292 _ACEOF
2293 if ac_fn_c_try_compile "$LINENO"; then :
2294 eval "$4=yes"
2295 else
2296 eval "$4=no"
2297 fi
2298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299 fi
2300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2301 fi
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;}
2306
2307 } # ac_fn_c_check_member
2308
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 ()
2313 {
2314 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2316 $as_echo_n "checking whether $2 is declared... " >&6; }
2317 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2318 $as_echo_n "(cached) " >&6
2319 else
2320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2321 /* end confdefs.h. */
2322 $4
2323 int
2324 main ()
2325 {
2326 #ifndef $2
2327 (void) $2;
2328 #endif
2329
2330 ;
2331 return 0;
2332 }
2333 _ACEOF
2334 if ac_fn_c_try_compile "$LINENO"; then :
2335 eval "$3=yes"
2336 else
2337 eval "$3=no"
2338 fi
2339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2340 fi
2341 eval ac_res=\$$3
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2343 $as_echo "$ac_res" >&6; }
2344 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2345
2346 } # ac_fn_c_check_decl
2347
2348 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2349 # -------------------------------------------
2350 # Tests whether TYPE exists after having included INCLUDES, setting cache
2351 # variable VAR accordingly.
2352 ac_fn_c_check_type ()
2353 {
2354 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2356 $as_echo_n "checking for $2... " >&6; }
2357 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2358 $as_echo_n "(cached) " >&6
2359 else
2360 eval "$3=no"
2361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2362 /* end confdefs.h. */
2363 $4
2364 int
2365 main ()
2366 {
2367 if (sizeof ($2))
2368 return 0;
2369 ;
2370 return 0;
2371 }
2372 _ACEOF
2373 if ac_fn_c_try_compile "$LINENO"; then :
2374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2375 /* end confdefs.h. */
2376 $4
2377 int
2378 main ()
2379 {
2380 if (sizeof (($2)))
2381 return 0;
2382 ;
2383 return 0;
2384 }
2385 _ACEOF
2386 if ac_fn_c_try_compile "$LINENO"; then :
2387
2388 else
2389 eval "$3=yes"
2390 fi
2391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2392 fi
2393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2394 fi
2395 eval ac_res=\$$3
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2397 $as_echo "$ac_res" >&6; }
2398 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2399
2400 } # ac_fn_c_check_type
2401
2402 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2403 # --------------------------------------------
2404 # Tries to find the compile-time value of EXPR in a program that includes
2405 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2406 # computed
2407 ac_fn_c_compute_int ()
2408 {
2409 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2410 if test "$cross_compiling" = yes; then
2411 # Depending upon the size, compute the lo and hi bounds.
2412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2413 /* end confdefs.h. */
2414 $4
2415 int
2416 main ()
2417 {
2418 static int test_array [1 - 2 * !(($2) >= 0)];
2419 test_array [0] = 0
2420
2421 ;
2422 return 0;
2423 }
2424 _ACEOF
2425 if ac_fn_c_try_compile "$LINENO"; then :
2426 ac_lo=0 ac_mid=0
2427 while :; do
2428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2429 /* end confdefs.h. */
2430 $4
2431 int
2432 main ()
2433 {
2434 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2435 test_array [0] = 0
2436
2437 ;
2438 return 0;
2439 }
2440 _ACEOF
2441 if ac_fn_c_try_compile "$LINENO"; then :
2442 ac_hi=$ac_mid; break
2443 else
2444 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2445 if test $ac_lo -le $ac_mid; then
2446 ac_lo= ac_hi=
2447 break
2448 fi
2449 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2450 fi
2451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2452 done
2453 else
2454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2455 /* end confdefs.h. */
2456 $4
2457 int
2458 main ()
2459 {
2460 static int test_array [1 - 2 * !(($2) < 0)];
2461 test_array [0] = 0
2462
2463 ;
2464 return 0;
2465 }
2466 _ACEOF
2467 if ac_fn_c_try_compile "$LINENO"; then :
2468 ac_hi=-1 ac_mid=-1
2469 while :; do
2470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2471 /* end confdefs.h. */
2472 $4
2473 int
2474 main ()
2475 {
2476 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2477 test_array [0] = 0
2478
2479 ;
2480 return 0;
2481 }
2482 _ACEOF
2483 if ac_fn_c_try_compile "$LINENO"; then :
2484 ac_lo=$ac_mid; break
2485 else
2486 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2487 if test $ac_mid -le $ac_hi; then
2488 ac_lo= ac_hi=
2489 break
2490 fi
2491 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2492 fi
2493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2494 done
2495 else
2496 ac_lo= ac_hi=
2497 fi
2498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2499 fi
2500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2501 # Binary search between lo and hi bounds.
2502 while test "x$ac_lo" != "x$ac_hi"; do
2503 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2505 /* end confdefs.h. */
2506 $4
2507 int
2508 main ()
2509 {
2510 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2511 test_array [0] = 0
2512
2513 ;
2514 return 0;
2515 }
2516 _ACEOF
2517 if ac_fn_c_try_compile "$LINENO"; then :
2518 ac_hi=$ac_mid
2519 else
2520 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2521 fi
2522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2523 done
2524 case $ac_lo in #((
2525 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2526 '') ac_retval=1 ;;
2527 esac
2528 else
2529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2530 /* end confdefs.h. */
2531 $4
2532 static long int longval () { return $2; }
2533 static unsigned long int ulongval () { return $2; }
2534 #include <stdio.h>
2535 #include <stdlib.h>
2536 int
2537 main ()
2538 {
2539
2540 FILE *f = fopen ("conftest.val", "w");
2541 if (! f)
2542 return 1;
2543 if (($2) < 0)
2544 {
2545 long int i = longval ();
2546 if (i != ($2))
2547 return 1;
2548 fprintf (f, "%ld", i);
2549 }
2550 else
2551 {
2552 unsigned long int i = ulongval ();
2553 if (i != ($2))
2554 return 1;
2555 fprintf (f, "%lu", i);
2556 }
2557 /* Do not output a trailing newline, as this causes \r\n confusion
2558 on some platforms. */
2559 return ferror (f) || fclose (f) != 0;
2560
2561 ;
2562 return 0;
2563 }
2564 _ACEOF
2565 if ac_fn_c_try_run "$LINENO"; then :
2566 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2567 else
2568 ac_retval=1
2569 fi
2570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2571 conftest.$ac_objext conftest.beam conftest.$ac_ext
2572 rm -f conftest.val
2573
2574 fi
2575 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2576 return $ac_retval
2577
2578 } # ac_fn_c_compute_int
2579 cat >config.log <<_ACEOF
2580 This file contains any messages produced by compilers while
2581 running configure, to aid debugging if configure makes a mistake.
2582
2583 It was created by GNU Classpath $as_me 0.98, which was
2584 generated by GNU Autoconf 2.64. Invocation command line was
2585
2586 $ $0 $@
2587
2588 _ACEOF
2589 exec 5>>config.log
2590 {
2591 cat <<_ASUNAME
2592 ## --------- ##
2593 ## Platform. ##
2594 ## --------- ##
2595
2596 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2597 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2598 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2599 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2600 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2601
2602 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2603 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2604
2605 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2606 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2607 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2608 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2609 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2610 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2611 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2612
2613 _ASUNAME
2614
2615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 for as_dir in $PATH
2617 do
2618 IFS=$as_save_IFS
2619 test -z "$as_dir" && as_dir=.
2620 $as_echo "PATH: $as_dir"
2621 done
2622 IFS=$as_save_IFS
2623
2624 } >&5
2625
2626 cat >&5 <<_ACEOF
2627
2628
2629 ## ----------- ##
2630 ## Core tests. ##
2631 ## ----------- ##
2632
2633 _ACEOF
2634
2635
2636 # Keep a trace of the command line.
2637 # Strip out --no-create and --no-recursion so they do not pile up.
2638 # Strip out --silent because we don't want to record it for future runs.
2639 # Also quote any args containing shell meta-characters.
2640 # Make two passes to allow for proper duplicate-argument suppression.
2641 ac_configure_args=
2642 ac_configure_args0=
2643 ac_configure_args1=
2644 ac_must_keep_next=false
2645 for ac_pass in 1 2
2646 do
2647 for ac_arg
2648 do
2649 case $ac_arg in
2650 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2651 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2652 | -silent | --silent | --silen | --sile | --sil)
2653 continue ;;
2654 *\'*)
2655 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2656 esac
2657 case $ac_pass in
2658 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2659 2)
2660 as_fn_append ac_configure_args1 " '$ac_arg'"
2661 if test $ac_must_keep_next = true; then
2662 ac_must_keep_next=false # Got value, back to normal.
2663 else
2664 case $ac_arg in
2665 *=* | --config-cache | -C | -disable-* | --disable-* \
2666 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2667 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2668 | -with-* | --with-* | -without-* | --without-* | --x)
2669 case "$ac_configure_args0 " in
2670 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2671 esac
2672 ;;
2673 -* ) ac_must_keep_next=true ;;
2674 esac
2675 fi
2676 as_fn_append ac_configure_args " '$ac_arg'"
2677 ;;
2678 esac
2679 done
2680 done
2681 { ac_configure_args0=; unset ac_configure_args0;}
2682 { ac_configure_args1=; unset ac_configure_args1;}
2683
2684 # When interrupted or exit'd, cleanup temporary files, and complete
2685 # config.log. We remove comments because anyway the quotes in there
2686 # would cause problems or look ugly.
2687 # WARNING: Use '\'' to represent an apostrophe within the trap.
2688 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2689 trap 'exit_status=$?
2690 # Save into config.log some information that might help in debugging.
2691 {
2692 echo
2693
2694 cat <<\_ASBOX
2695 ## ---------------- ##
2696 ## Cache variables. ##
2697 ## ---------------- ##
2698 _ASBOX
2699 echo
2700 # The following way of writing the cache mishandles newlines in values,
2701 (
2702 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2703 eval ac_val=\$$ac_var
2704 case $ac_val in #(
2705 *${as_nl}*)
2706 case $ac_var in #(
2707 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2708 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2709 esac
2710 case $ac_var in #(
2711 _ | IFS | as_nl) ;; #(
2712 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2713 *) { eval $ac_var=; unset $ac_var;} ;;
2714 esac ;;
2715 esac
2716 done
2717 (set) 2>&1 |
2718 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2719 *${as_nl}ac_space=\ *)
2720 sed -n \
2721 "s/'\''/'\''\\\\'\'''\''/g;
2722 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2723 ;; #(
2724 *)
2725 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2726 ;;
2727 esac |
2728 sort
2729 )
2730 echo
2731
2732 cat <<\_ASBOX
2733 ## ----------------- ##
2734 ## Output variables. ##
2735 ## ----------------- ##
2736 _ASBOX
2737 echo
2738 for ac_var in $ac_subst_vars
2739 do
2740 eval ac_val=\$$ac_var
2741 case $ac_val in
2742 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2743 esac
2744 $as_echo "$ac_var='\''$ac_val'\''"
2745 done | sort
2746 echo
2747
2748 if test -n "$ac_subst_files"; then
2749 cat <<\_ASBOX
2750 ## ------------------- ##
2751 ## File substitutions. ##
2752 ## ------------------- ##
2753 _ASBOX
2754 echo
2755 for ac_var in $ac_subst_files
2756 do
2757 eval ac_val=\$$ac_var
2758 case $ac_val in
2759 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2760 esac
2761 $as_echo "$ac_var='\''$ac_val'\''"
2762 done | sort
2763 echo
2764 fi
2765
2766 if test -s confdefs.h; then
2767 cat <<\_ASBOX
2768 ## ----------- ##
2769 ## confdefs.h. ##
2770 ## ----------- ##
2771 _ASBOX
2772 echo
2773 cat confdefs.h
2774 echo
2775 fi
2776 test "$ac_signal" != 0 &&
2777 $as_echo "$as_me: caught signal $ac_signal"
2778 $as_echo "$as_me: exit $exit_status"
2779 } >&5
2780 rm -f core *.core core.conftest.* &&
2781 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2782 exit $exit_status
2783 ' 0
2784 for ac_signal in 1 2 13 15; do
2785 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2786 done
2787 ac_signal=0
2788
2789 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2790 rm -f -r conftest* confdefs.h
2791
2792 $as_echo "/* confdefs.h */" > confdefs.h
2793
2794 # Predefined preprocessor variables.
2795
2796 cat >>confdefs.h <<_ACEOF
2797 #define PACKAGE_NAME "$PACKAGE_NAME"
2798 _ACEOF
2799
2800 cat >>confdefs.h <<_ACEOF
2801 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2802 _ACEOF
2803
2804 cat >>confdefs.h <<_ACEOF
2805 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2806 _ACEOF
2807
2808 cat >>confdefs.h <<_ACEOF
2809 #define PACKAGE_STRING "$PACKAGE_STRING"
2810 _ACEOF
2811
2812 cat >>confdefs.h <<_ACEOF
2813 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2814 _ACEOF
2815
2816 cat >>confdefs.h <<_ACEOF
2817 #define PACKAGE_URL "$PACKAGE_URL"
2818 _ACEOF
2819
2820
2821 # Let the site file select an alternate cache file if it wants to.
2822 # Prefer an explicitly selected file to automatically selected ones.
2823 ac_site_file1=NONE
2824 ac_site_file2=NONE
2825 if test -n "$CONFIG_SITE"; then
2826 ac_site_file1=$CONFIG_SITE
2827 elif test "x$prefix" != xNONE; then
2828 ac_site_file1=$prefix/share/config.site
2829 ac_site_file2=$prefix/etc/config.site
2830 else
2831 ac_site_file1=$ac_default_prefix/share/config.site
2832 ac_site_file2=$ac_default_prefix/etc/config.site
2833 fi
2834 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2835 do
2836 test "x$ac_site_file" = xNONE && continue
2837 if test -r "$ac_site_file"; then
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2839 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2840 sed 's/^/| /' "$ac_site_file" >&5
2841 . "$ac_site_file"
2842 fi
2843 done
2844
2845 if test -r "$cache_file"; then
2846 # Some versions of bash will fail to source /dev/null (special
2847 # files actually), so we avoid doing that.
2848 if test -f "$cache_file"; then
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2850 $as_echo "$as_me: loading cache $cache_file" >&6;}
2851 case $cache_file in
2852 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2853 *) . "./$cache_file";;
2854 esac
2855 fi
2856 else
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2858 $as_echo "$as_me: creating cache $cache_file" >&6;}
2859 >$cache_file
2860 fi
2861
2862 # Check that the precious variables saved in the cache have kept the same
2863 # value.
2864 ac_cache_corrupted=false
2865 for ac_var in $ac_precious_vars; do
2866 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2867 eval ac_new_set=\$ac_env_${ac_var}_set
2868 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2869 eval ac_new_val=\$ac_env_${ac_var}_value
2870 case $ac_old_set,$ac_new_set in
2871 set,)
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2873 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2874 ac_cache_corrupted=: ;;
2875 ,set)
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2877 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2878 ac_cache_corrupted=: ;;
2879 ,);;
2880 *)
2881 if test "x$ac_old_val" != "x$ac_new_val"; then
2882 # differences in whitespace do not lead to failure.
2883 ac_old_val_w=`echo x $ac_old_val`
2884 ac_new_val_w=`echo x $ac_new_val`
2885 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2887 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2888 ac_cache_corrupted=:
2889 else
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2891 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2892 eval $ac_var=\$ac_old_val
2893 fi
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2895 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2897 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2898 fi;;
2899 esac
2900 # Pass precious variables to config.status.
2901 if test "$ac_new_set" = set; then
2902 case $ac_new_val in
2903 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2904 *) ac_arg=$ac_var=$ac_new_val ;;
2905 esac
2906 case " $ac_configure_args " in
2907 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2908 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2909 esac
2910 fi
2911 done
2912 if $ac_cache_corrupted; then
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2914 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2916 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2917 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2918 fi
2919 ## -------------------- ##
2920 ## Main body of script. ##
2921 ## -------------------- ##
2922
2923 ac_ext=c
2924 ac_cpp='$CPP $CPPFLAGS'
2925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2928
2929
2930
2931
2932
2933
2934
2935 ac_aux_dir=
2936 for ac_dir in ../.. "$srcdir"/../..; do
2937 for ac_t in install-sh install.sh shtool; do
2938 if test -f "$ac_dir/$ac_t"; then
2939 ac_aux_dir=$ac_dir
2940 ac_install_sh="$ac_aux_dir/$ac_t -c"
2941 break 2
2942 fi
2943 done
2944 done
2945 if test -z "$ac_aux_dir"; then
2946 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
2947 fi
2948
2949 # These three variables are undocumented and unsupported,
2950 # and are intended to be withdrawn in a future Autoconf release.
2951 # They can cause serious problems if a builder's source tree is in a directory
2952 # whose full name contains unusual characters.
2953 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2954 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2955 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2956
2957
2958
2959 # Make sure we can run config.sub.
2960 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2961 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2962
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2964 $as_echo_n "checking build system type... " >&6; }
2965 if test "${ac_cv_build+set}" = set; then :
2966 $as_echo_n "(cached) " >&6
2967 else
2968 ac_build_alias=$build_alias
2969 test "x$ac_build_alias" = x &&
2970 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2971 test "x$ac_build_alias" = x &&
2972 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2973 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2974 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2975
2976 fi
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2978 $as_echo "$ac_cv_build" >&6; }
2979 case $ac_cv_build in
2980 *-*-*) ;;
2981 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2982 esac
2983 build=$ac_cv_build
2984 ac_save_IFS=$IFS; IFS='-'
2985 set x $ac_cv_build
2986 shift
2987 build_cpu=$1
2988 build_vendor=$2
2989 shift; shift
2990 # Remember, the first character of IFS is used to create $*,
2991 # except with old shells:
2992 build_os=$*
2993 IFS=$ac_save_IFS
2994 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2995
2996
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2998 $as_echo_n "checking host system type... " >&6; }
2999 if test "${ac_cv_host+set}" = set; then :
3000 $as_echo_n "(cached) " >&6
3001 else
3002 if test "x$host_alias" = x; then
3003 ac_cv_host=$ac_cv_build
3004 else
3005 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3006 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3007 fi
3008
3009 fi
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3011 $as_echo "$ac_cv_host" >&6; }
3012 case $ac_cv_host in
3013 *-*-*) ;;
3014 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3015 esac
3016 host=$ac_cv_host
3017 ac_save_IFS=$IFS; IFS='-'
3018 set x $ac_cv_host
3019 shift
3020 host_cpu=$1
3021 host_vendor=$2
3022 shift; shift
3023 # Remember, the first character of IFS is used to create $*,
3024 # except with old shells:
3025 host_os=$*
3026 IFS=$ac_save_IFS
3027 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3028
3029
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3031 $as_echo_n "checking target system type... " >&6; }
3032 if test "${ac_cv_target+set}" = set; then :
3033 $as_echo_n "(cached) " >&6
3034 else
3035 if test "x$target_alias" = x; then
3036 ac_cv_target=$ac_cv_host
3037 else
3038 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3039 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3040 fi
3041
3042 fi
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3044 $as_echo "$ac_cv_target" >&6; }
3045 case $ac_cv_target in
3046 *-*-*) ;;
3047 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3048 esac
3049 target=$ac_cv_target
3050 ac_save_IFS=$IFS; IFS='-'
3051 set x $ac_cv_target
3052 shift
3053 target_cpu=$1
3054 target_vendor=$2
3055 shift; shift
3056 # Remember, the first character of IFS is used to create $*,
3057 # except with old shells:
3058 target_os=$*
3059 IFS=$ac_save_IFS
3060 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3061
3062
3063 # The aliases save the names the user supplied, while $host etc.
3064 # will get canonicalized.
3065 test -n "$target_alias" &&
3066 test "$program_prefix$program_suffix$program_transform_name" = \
3067 NONENONEs,x,x, &&
3068 program_prefix=${target_alias}-
3069
3070 # Check whether --enable-java-maintainer-mode was given.
3071 if test "${enable_java_maintainer_mode+set}" = set; then :
3072 enableval=$enable_java_maintainer_mode;
3073 fi
3074
3075 if test "$enable_java_maintainer_mode" = yes; then
3076 JAVA_MAINTAINER_MODE_TRUE=
3077 JAVA_MAINTAINER_MODE_FALSE='#'
3078 else
3079 JAVA_MAINTAINER_MODE_TRUE='#'
3080 JAVA_MAINTAINER_MODE_FALSE=
3081 fi
3082
3083
3084 # We would like to our source tree to be readonly. However when releases or
3085 # pre-releases are generated, the man pages need to be included as they are
3086 # converted from the texi files via perl which we don't require end users to
3087 # have installed.
3088 # Therefore we have --enable-generated-files-in-srcdir to do just that.
3089
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3091 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3092 # Check whether --enable-generated-files-in-srcdir was given.
3093 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3094 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3095 else
3096 generated_files_in_srcdir=no
3097 fi
3098
3099
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3101 $as_echo "$generated_files_in_srcdir" >&6; }
3102 if test x$generated_files_in_srcdir = xyes; then
3103 GENINSRC_TRUE=
3104 GENINSRC_FALSE='#'
3105 else
3106 GENINSRC_TRUE='#'
3107 GENINSRC_FALSE=
3108 fi
3109
3110
3111 # Find the rest of the source tree framework.
3112 # Default to --enable-multilib
3113 # Check whether --enable-multilib was given.
3114 if test "${enable_multilib+set}" = set; then :
3115 enableval=$enable_multilib; case "$enableval" in
3116 yes) multilib=yes ;;
3117 no) multilib=no ;;
3118 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3119 esac
3120 else
3121 multilib=yes
3122 fi
3123
3124
3125 # We may get other options which we leave undocumented:
3126 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3127 # See config-ml.in if you want the gory details.
3128
3129 if test "$srcdir" = "."; then
3130 if test "$with_target_subdir" != "."; then
3131 multi_basedir="$srcdir/$with_multisrctop../../.."
3132 else
3133 multi_basedir="$srcdir/$with_multisrctop../.."
3134 fi
3135 else
3136 multi_basedir="$srcdir/../.."
3137 fi
3138
3139
3140 # Even if the default multilib is not a cross compilation,
3141 # it may be that some of the other multilibs are.
3142 if test $cross_compiling = no && test $multilib = yes \
3143 && test "x${with_multisubdir}" != x ; then
3144 cross_compiling=maybe
3145 fi
3146
3147 ac_config_commands="$ac_config_commands default-1"
3148
3149
3150 if test -z "${with_multisubdir}"; then
3151 INSTALL_BINARIES_TRUE=
3152 INSTALL_BINARIES_FALSE='#'
3153 else
3154 INSTALL_BINARIES_TRUE='#'
3155 INSTALL_BINARIES_FALSE=
3156 fi
3157
3158
3159 if expr ${target_cpu} : '.*86' > /dev/null; then target_cpu=x86; fi
3160
3161 LIBVERSION="0:0:0"
3162
3163 case "$host_os" in
3164 darwin*)
3165 cp_module=""
3166 ;;
3167 *)
3168 cp_module="-module"
3169 ;;
3170 esac
3171
3172 CLASSPATH_MODULE="${cp_module} -version-info ${LIBVERSION} -no-undefined"
3173
3174
3175 CLASSPATH_CONVENIENCE="-no-undefined"
3176
3177
3178
3179 am__api_version='1.11'
3180
3181 # Find a good install program. We prefer a C program (faster),
3182 # so one script is as good as another. But avoid the broken or
3183 # incompatible versions:
3184 # SysV /etc/install, /usr/sbin/install
3185 # SunOS /usr/etc/install
3186 # IRIX /sbin/install
3187 # AIX /bin/install
3188 # AmigaOS /C/install, which installs bootblocks on floppy discs
3189 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3190 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3191 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3192 # OS/2's system install, which has a completely different semantic
3193 # ./install, which can be erroneously created by make from ./install.sh.
3194 # Reject install programs that cannot install multiple files.
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3196 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3197 if test -z "$INSTALL"; then
3198 if test "${ac_cv_path_install+set}" = set; then :
3199 $as_echo_n "(cached) " >&6
3200 else
3201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202 for as_dir in $PATH
3203 do
3204 IFS=$as_save_IFS
3205 test -z "$as_dir" && as_dir=.
3206 # Account for people who put trailing slashes in PATH elements.
3207 case $as_dir/ in #((
3208 ./ | .// | /[cC]/* | \
3209 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3210 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3211 /usr/ucb/* ) ;;
3212 *)
3213 # OSF1 and SCO ODT 3.0 have their own names for install.
3214 # Don't use installbsd from OSF since it installs stuff as root
3215 # by default.
3216 for ac_prog in ginstall scoinst install; do
3217 for ac_exec_ext in '' $ac_executable_extensions; do
3218 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3219 if test $ac_prog = install &&
3220 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3221 # AIX install. It has an incompatible calling convention.
3222 :
3223 elif test $ac_prog = install &&
3224 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3225 # program-specific install script used by HP pwplus--don't use.
3226 :
3227 else
3228 rm -rf conftest.one conftest.two conftest.dir
3229 echo one > conftest.one
3230 echo two > conftest.two
3231 mkdir conftest.dir
3232 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3233 test -s conftest.one && test -s conftest.two &&
3234 test -s conftest.dir/conftest.one &&
3235 test -s conftest.dir/conftest.two
3236 then
3237 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3238 break 3
3239 fi
3240 fi
3241 fi
3242 done
3243 done
3244 ;;
3245 esac
3246
3247 done
3248 IFS=$as_save_IFS
3249
3250 rm -rf conftest.one conftest.two conftest.dir
3251
3252 fi
3253 if test "${ac_cv_path_install+set}" = set; then
3254 INSTALL=$ac_cv_path_install
3255 else
3256 # As a last resort, use the slow shell script. Don't cache a
3257 # value for INSTALL within a source directory, because that will
3258 # break other packages using the cache if that directory is
3259 # removed, or if the value is a relative name.
3260 INSTALL=$ac_install_sh
3261 fi
3262 fi
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3264 $as_echo "$INSTALL" >&6; }
3265
3266 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3267 # It thinks the first close brace ends the variable substitution.
3268 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3269
3270 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3271
3272 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3273
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3275 $as_echo_n "checking whether build environment is sane... " >&6; }
3276 # Just in case
3277 sleep 1
3278 echo timestamp > conftest.file
3279 # Reject unsafe characters in $srcdir or the absolute working directory
3280 # name. Accept space and tab only in the latter.
3281 am_lf='
3282 '
3283 case `pwd` in
3284 *[\\\"\#\$\&\'\`$am_lf]*)
3285 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3286 esac
3287 case $srcdir in
3288 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3289 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3290 esac
3291
3292 # Do `set' in a subshell so we don't clobber the current shell's
3293 # arguments. Must try -L first in case configure is actually a
3294 # symlink; some systems play weird games with the mod time of symlinks
3295 # (eg FreeBSD returns the mod time of the symlink's containing
3296 # directory).
3297 if (
3298 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3299 if test "$*" = "X"; then
3300 # -L didn't work.
3301 set X `ls -t "$srcdir/configure" conftest.file`
3302 fi
3303 rm -f conftest.file
3304 if test "$*" != "X $srcdir/configure conftest.file" \
3305 && test "$*" != "X conftest.file $srcdir/configure"; then
3306
3307 # If neither matched, then we have a broken ls. This can happen
3308 # if, for instance, CONFIG_SHELL is bash and it inherits a
3309 # broken ls alias from the environment. This has actually
3310 # happened. Such a system could not be considered "sane".
3311 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3312 alias in your environment" "$LINENO" 5
3313 fi
3314
3315 test "$2" = conftest.file
3316 )
3317 then
3318 # Ok.
3319 :
3320 else
3321 as_fn_error "newly created file is older than distributed files!
3322 Check your system clock" "$LINENO" 5
3323 fi
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3325 $as_echo "yes" >&6; }
3326 test "$program_prefix" != NONE &&
3327 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3328 # Use a double $ so make ignores it.
3329 test "$program_suffix" != NONE &&
3330 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3331 # Double any \ or $.
3332 # By default was `s,x,x', remove it if useless.
3333 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3334 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3335
3336 # expand $ac_aux_dir to an absolute path
3337 am_aux_dir=`cd $ac_aux_dir && pwd`
3338
3339 if test x"${MISSING+set}" != xset; then
3340 case $am_aux_dir in
3341 *\ * | *\ *)
3342 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3343 *)
3344 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3345 esac
3346 fi
3347 # Use eval to expand $SHELL
3348 if eval "$MISSING --run true"; then
3349 am_missing_run="$MISSING --run "
3350 else
3351 am_missing_run=
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3353 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3354 fi
3355
3356 if test x"${install_sh}" != xset; then
3357 case $am_aux_dir in
3358 *\ * | *\ *)
3359 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3360 *)
3361 install_sh="\${SHELL} $am_aux_dir/install-sh"
3362 esac
3363 fi
3364
3365 # Installed binaries are usually stripped using `strip' when the user
3366 # run `make install-strip'. However `strip' might not be the right
3367 # tool to use in cross-compilation environments, therefore Automake
3368 # will honor the `STRIP' environment variable to overrule this program.
3369 if test "$cross_compiling" != no; then
3370 if test -n "$ac_tool_prefix"; then
3371 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3372 set dummy ${ac_tool_prefix}strip; ac_word=$2
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3374 $as_echo_n "checking for $ac_word... " >&6; }
3375 if test "${ac_cv_prog_STRIP+set}" = set; then :
3376 $as_echo_n "(cached) " >&6
3377 else
3378 if test -n "$STRIP"; then
3379 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3380 else
3381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382 for as_dir in $PATH
3383 do
3384 IFS=$as_save_IFS
3385 test -z "$as_dir" && as_dir=.
3386 for ac_exec_ext in '' $ac_executable_extensions; do
3387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3388 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3390 break 2
3391 fi
3392 done
3393 done
3394 IFS=$as_save_IFS
3395
3396 fi
3397 fi
3398 STRIP=$ac_cv_prog_STRIP
3399 if test -n "$STRIP"; then
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3401 $as_echo "$STRIP" >&6; }
3402 else
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3404 $as_echo "no" >&6; }
3405 fi
3406
3407
3408 fi
3409 if test -z "$ac_cv_prog_STRIP"; then
3410 ac_ct_STRIP=$STRIP
3411 # Extract the first word of "strip", so it can be a program name with args.
3412 set dummy strip; ac_word=$2
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3414 $as_echo_n "checking for $ac_word... " >&6; }
3415 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3416 $as_echo_n "(cached) " >&6
3417 else
3418 if test -n "$ac_ct_STRIP"; then
3419 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3420 else
3421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422 for as_dir in $PATH
3423 do
3424 IFS=$as_save_IFS
3425 test -z "$as_dir" && as_dir=.
3426 for ac_exec_ext in '' $ac_executable_extensions; do
3427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3428 ac_cv_prog_ac_ct_STRIP="strip"
3429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3430 break 2
3431 fi
3432 done
3433 done
3434 IFS=$as_save_IFS
3435
3436 fi
3437 fi
3438 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3439 if test -n "$ac_ct_STRIP"; then
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3441 $as_echo "$ac_ct_STRIP" >&6; }
3442 else
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444 $as_echo "no" >&6; }
3445 fi
3446
3447 if test "x$ac_ct_STRIP" = x; then
3448 STRIP=":"
3449 else
3450 case $cross_compiling:$ac_tool_warned in
3451 yes:)
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3453 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3454 ac_tool_warned=yes ;;
3455 esac
3456 STRIP=$ac_ct_STRIP
3457 fi
3458 else
3459 STRIP="$ac_cv_prog_STRIP"
3460 fi
3461
3462 fi
3463 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3464
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3466 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3467 if test -z "$MKDIR_P"; then
3468 if test "${ac_cv_path_mkdir+set}" = set; then :
3469 $as_echo_n "(cached) " >&6
3470 else
3471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3473 do
3474 IFS=$as_save_IFS
3475 test -z "$as_dir" && as_dir=.
3476 for ac_prog in mkdir gmkdir; do
3477 for ac_exec_ext in '' $ac_executable_extensions; do
3478 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3479 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3480 'mkdir (GNU coreutils) '* | \
3481 'mkdir (coreutils) '* | \
3482 'mkdir (fileutils) '4.1*)
3483 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3484 break 3;;
3485 esac
3486 done
3487 done
3488 done
3489 IFS=$as_save_IFS
3490
3491 fi
3492
3493 if test "${ac_cv_path_mkdir+set}" = set; then
3494 MKDIR_P="$ac_cv_path_mkdir -p"
3495 else
3496 # As a last resort, use the slow shell script. Don't cache a
3497 # value for MKDIR_P within a source directory, because that will
3498 # break other packages using the cache if that directory is
3499 # removed, or if the value is a relative name.
3500 test -d ./--version && rmdir ./--version
3501 MKDIR_P="$ac_install_sh -d"
3502 fi
3503 fi
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3505 $as_echo "$MKDIR_P" >&6; }
3506
3507 mkdir_p="$MKDIR_P"
3508 case $mkdir_p in
3509 [\\/$]* | ?:[\\/]*) ;;
3510 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3511 esac
3512
3513 for ac_prog in gawk mawk nawk awk
3514 do
3515 # Extract the first word of "$ac_prog", so it can be a program name with args.
3516 set dummy $ac_prog; ac_word=$2
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3518 $as_echo_n "checking for $ac_word... " >&6; }
3519 if test "${ac_cv_prog_AWK+set}" = set; then :
3520 $as_echo_n "(cached) " >&6
3521 else
3522 if test -n "$AWK"; then
3523 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3524 else
3525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 for as_dir in $PATH
3527 do
3528 IFS=$as_save_IFS
3529 test -z "$as_dir" && as_dir=.
3530 for ac_exec_ext in '' $ac_executable_extensions; do
3531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3532 ac_cv_prog_AWK="$ac_prog"
3533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3534 break 2
3535 fi
3536 done
3537 done
3538 IFS=$as_save_IFS
3539
3540 fi
3541 fi
3542 AWK=$ac_cv_prog_AWK
3543 if test -n "$AWK"; then
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3545 $as_echo "$AWK" >&6; }
3546 else
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3548 $as_echo "no" >&6; }
3549 fi
3550
3551
3552 test -n "$AWK" && break
3553 done
3554
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3556 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3557 set x ${MAKE-make}
3558 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3559 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3560 $as_echo_n "(cached) " >&6
3561 else
3562 cat >conftest.make <<\_ACEOF
3563 SHELL = /bin/sh
3564 all:
3565 @echo '@@@%%%=$(MAKE)=@@@%%%'
3566 _ACEOF
3567 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3568 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3569 *@@@%%%=?*=@@@%%%*)
3570 eval ac_cv_prog_make_${ac_make}_set=yes;;
3571 *)
3572 eval ac_cv_prog_make_${ac_make}_set=no;;
3573 esac
3574 rm -f conftest.make
3575 fi
3576 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3578 $as_echo "yes" >&6; }
3579 SET_MAKE=
3580 else
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3582 $as_echo "no" >&6; }
3583 SET_MAKE="MAKE=${MAKE-make}"
3584 fi
3585
3586 rm -rf .tst 2>/dev/null
3587 mkdir .tst 2>/dev/null
3588 if test -d .tst; then
3589 am__leading_dot=.
3590 else
3591 am__leading_dot=_
3592 fi
3593 rmdir .tst 2>/dev/null
3594
3595 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3596 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3597 # is not polluted with repeated "-I."
3598 am__isrc=' -I$(srcdir)'
3599 # test to see if srcdir already configured
3600 if test -f $srcdir/config.status; then
3601 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3602 fi
3603 fi
3604
3605 # test whether we have cygpath
3606 if test -z "$CYGPATH_W"; then
3607 if (cygpath --version) >/dev/null 2>/dev/null; then
3608 CYGPATH_W='cygpath -w'
3609 else
3610 CYGPATH_W=echo
3611 fi
3612 fi
3613
3614
3615 # Define the identity of the package.
3616 PACKAGE='classpath'
3617 VERSION='0.98'
3618
3619
3620 cat >>confdefs.h <<_ACEOF
3621 #define PACKAGE "$PACKAGE"
3622 _ACEOF
3623
3624
3625 cat >>confdefs.h <<_ACEOF
3626 #define VERSION "$VERSION"
3627 _ACEOF
3628
3629 # Some tools Automake needs.
3630
3631 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3632
3633
3634 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3635
3636
3637 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3638
3639
3640 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3641
3642
3643 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3644
3645 # We need awk for the "check" target. The system "awk" is bad on
3646 # some platforms.
3647 # Always define AMTAR for backward compatibility.
3648
3649 AMTAR=${AMTAR-"${am_missing_run}tar"}
3650
3651
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3653 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3654 # Loop over all known methods to create a tar archive until one works.
3655 _am_tools='gnutar plaintar pax cpio none'
3656 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3657 # Do not fold the above two line into one, because Tru64 sh and
3658 # Solaris sh will not grok spaces in the rhs of `-'.
3659 for _am_tool in $_am_tools
3660 do
3661 case $_am_tool in
3662 gnutar)
3663 for _am_tar in tar gnutar gtar;
3664 do
3665 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3666 ($_am_tar --version) >&5 2>&5
3667 ac_status=$?
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); } && break
3670 done
3671 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3672 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3673 am__untar="$_am_tar -xf -"
3674 ;;
3675 plaintar)
3676 # Must skip GNU tar: if it does not support --format= it doesn't create
3677 # ustar tarball either.
3678 (tar --version) >/dev/null 2>&1 && continue
3679 am__tar='tar chf - "$$tardir"'
3680 am__tar_='tar chf - "$tardir"'
3681 am__untar='tar xf -'
3682 ;;
3683 pax)
3684 am__tar='pax -L -x ustar -w "$$tardir"'
3685 am__tar_='pax -L -x ustar -w "$tardir"'
3686 am__untar='pax -r'
3687 ;;
3688 cpio)
3689 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3690 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3691 am__untar='cpio -i -H ustar -d'
3692 ;;
3693 none)
3694 am__tar=false
3695 am__tar_=false
3696 am__untar=false
3697 ;;
3698 esac
3699
3700 # If the value was cached, stop now. We just wanted to have am__tar
3701 # and am__untar set.
3702 test -n "${am_cv_prog_tar_ustar}" && break
3703
3704 # tar/untar a dummy directory, and stop if the command works
3705 rm -rf conftest.dir
3706 mkdir conftest.dir
3707 echo GrepMe > conftest.dir/file
3708 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3709 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3710 ac_status=$?
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); }
3713 rm -rf conftest.dir
3714 if test -s conftest.tar; then
3715 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3716 ($am__untar <conftest.tar) >&5 2>&5
3717 ac_status=$?
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); }
3720 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3721 fi
3722 done
3723 rm -rf conftest.dir
3724
3725 if test "${am_cv_prog_tar_ustar+set}" = set; then :
3726 $as_echo_n "(cached) " >&6
3727 else
3728 am_cv_prog_tar_ustar=$_am_tool
3729 fi
3730
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3732 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3733
3734
3735
3736
3737
3738 ac_config_headers="$ac_config_headers include/config.h"
3739
3740
3741
3742
3743
3744 # Check whether --enable-collections was given.
3745 if test "${enable_collections+set}" = set; then :
3746 enableval=$enable_collections; case x"${enableval}" in
3747 xyes) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
3748 xno) COMPILE_COLLECTIONS=no ;;
3749 x) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
3750 *) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"${enableval}\"" ;;
3751 esac
3752 else
3753 COMPILE_COLLECTIONS=no
3754 fi
3755
3756 if test "x${COMPILE_COLLECTIONS}" = xyes; then
3757 CREATE_COLLECTIONS_TRUE=
3758 CREATE_COLLECTIONS_FALSE='#'
3759 else
3760 CREATE_COLLECTIONS_TRUE='#'
3761 CREATE_COLLECTIONS_FALSE=
3762 fi
3763
3764
3765 # Check whether --enable-jni was given.
3766 if test "${enable_jni+set}" = set; then :
3767 enableval=$enable_jni; case "${enableval}" in
3768 yes) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
3769 no) COMPILE_JNI=no ;;
3770 *) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
3771 esac
3772 else
3773 COMPILE_JNI=yes
3774 fi
3775
3776 if test "x${COMPILE_JNI}" = xyes; then
3777 CREATE_JNI_LIBRARIES_TRUE=
3778 CREATE_JNI_LIBRARIES_FALSE='#'
3779 else
3780 CREATE_JNI_LIBRARIES_TRUE='#'
3781 CREATE_JNI_LIBRARIES_FALSE=
3782 fi
3783
3784
3785 # Check whether --enable-core-jni was given.
3786 if test "${enable_core_jni+set}" = set; then :
3787 enableval=$enable_core_jni; case "${enableval}" in
3788 yes) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
3789 no) COMPILE_CORE_JNI=no ;;
3790 *) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
3791 esac
3792 else
3793 COMPILE_CORE_JNI=yes
3794 fi
3795
3796 if test "x${COMPILE_CORE_JNI}" = xyes; then
3797 CREATE_CORE_JNI_LIBRARIES_TRUE=
3798 CREATE_CORE_JNI_LIBRARIES_FALSE='#'
3799 else
3800 CREATE_CORE_JNI_LIBRARIES_TRUE='#'
3801 CREATE_CORE_JNI_LIBRARIES_FALSE=
3802 fi
3803
3804
3805 # Check whether --enable-default-preferences-peer was given.
3806 if test "${enable_default_preferences_peer+set}" = set; then :
3807 enableval=$enable_default_preferences_peer; case "${enableval}" in
3808 file) DEFAULT_PREFS_PEER=gnu.java.util.prefs.FileBasedFactory ;;
3809 gconf|yes|true) DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory ;;
3810 memory) DEFAULT_PREFS_PEER=gnu.java.util.prefs.MemoryBasedFactory ;;
3811 no|false) as_fn_error "bad value '${enableval}' for --enable-default-preferences-peer" "$LINENO" 5 ;;
3812 *) DEFAULT_PREFS_PEER=${enableval} ;;
3813 esac
3814 else
3815 DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory
3816 fi
3817
3818
3819 # Check whether --enable-gconf-peer was given.
3820 if test "${enable_gconf_peer+set}" = set; then :
3821 enableval=$enable_gconf_peer; case "${enableval}" in
3822 yes) COMPILE_GCONF_PEER=yes ;;
3823 no) COMPILE_GCONF_PEER=no ;;
3824 *) COMPILE_GCONF_PEER=yes ;;
3825 esac
3826 else
3827 COMPILE_GCONF_PEER=yes
3828 fi
3829
3830 if test "x${COMPILE_GCONF_PEER}" = xyes; then
3831 CREATE_GCONF_PEER_LIBRARIES_TRUE=
3832 CREATE_GCONF_PEER_LIBRARIES_FALSE='#'
3833 else
3834 CREATE_GCONF_PEER_LIBRARIES_TRUE='#'
3835 CREATE_GCONF_PEER_LIBRARIES_FALSE=
3836 fi
3837
3838
3839 # Check whether --enable-gconf-peers was given.
3840 if test "${enable_gconf_peers+set}" = set; then :
3841 enableval=$enable_gconf_peers; as_fn_error "No --enable-gconf-peers (or --disable-gconf-peers) option; you want --enable-gconf-peer" "$LINENO" 5
3842 fi
3843
3844
3845 # Check whether --enable-gstreamer-peer was given.
3846 if test "${enable_gstreamer_peer+set}" = set; then :
3847 enableval=$enable_gstreamer_peer; case "${enableval}" in
3848 yes) COMPILE_GSTREAMER_PEER=yes ;;
3849 no) COMPILE_GSTREAMER_PEER=no ;;
3850 *) COMPILE_GSTREAMER_PEER=default ;;
3851 esac
3852 else
3853 COMPILE_GSTREAMER_PEER=default
3854 fi
3855
3856 if test "x${COMPILE_GSTREAMER_PEER}" = xyes; then
3857 CREATE_GSTREAMER_PEER_LIBRARIES_TRUE=
3858 CREATE_GSTREAMER_PEER_LIBRARIES_FALSE='#'
3859 else
3860 CREATE_GSTREAMER_PEER_LIBRARIES_TRUE='#'
3861 CREATE_GSTREAMER_PEER_LIBRARIES_FALSE=
3862 fi
3863
3864
3865 # Check whether --enable-gstreamer-peers was given.
3866 if test "${enable_gstreamer_peers+set}" = set; then :
3867 enableval=$enable_gstreamer_peers; as_fn_error "No --enable-gstreamer-peers (or --disable-gstreamer-peers) option; you want --enable-gstreamer-peer" "$LINENO" 5
3868 fi
3869
3870
3871 # Check whether --enable-Werror was given.
3872 if test "${enable_Werror+set}" = set; then :
3873 enableval=$enable_Werror; case "${enableval}" in
3874 yes) ENABLE_WERROR=yes ;;
3875 no) ENABLE_WERROR=no ;;
3876 *) ENABLE_WERROR=default ;;
3877 esac
3878 else
3879 ENABLE_WERROR=default
3880 fi
3881
3882
3883 # Check whether --enable-default-toolkit was given.
3884 if test "${enable_default_toolkit+set}" = set; then :
3885 enableval=$enable_default_toolkit;
3886 fi
3887
3888 default_toolkit=$enable_default_toolkit
3889 if test "$default_toolkit" = ""; then
3890 default_toolkit=gnu.java.awt.peer.gtk.GtkToolkit
3891 fi
3892
3893
3894 # Check whether --enable-xmlj was given.
3895 if test "${enable_xmlj+set}" = set; then :
3896 enableval=$enable_xmlj; case "${enableval}" in
3897 yes) COMPILE_XMLJ=yes ;;
3898 no) COMPILE_XMLJ=no ;;
3899 *) COMPILE_XMLJ=no ;;
3900 esac
3901 else
3902 COMPILE_XMLJ=no
3903 fi
3904
3905 if test "x${COMPILE_XMLJ}" = xyes; then
3906 CREATE_XMLJ_LIBRARY_TRUE=
3907 CREATE_XMLJ_LIBRARY_FALSE='#'
3908 else
3909 CREATE_XMLJ_LIBRARY_TRUE='#'
3910 CREATE_XMLJ_LIBRARY_FALSE=
3911 fi
3912
3913
3914 DEPDIR="${am__leading_dot}deps"
3915
3916 ac_config_commands="$ac_config_commands depfiles"
3917
3918
3919 am_make=${MAKE-make}
3920 cat > confinc << 'END'
3921 am__doit:
3922 @echo this is the am__doit target
3923 .PHONY: am__doit
3924 END
3925 # If we don't find an include directive, just comment out the code.
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3927 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3928 am__include="#"
3929 am__quote=
3930 _am_result=none
3931 # First try GNU make style include.
3932 echo "include confinc" > confmf
3933 # Ignore all kinds of additional output from `make'.
3934 case `$am_make -s -f confmf 2> /dev/null` in #(
3935 *the\ am__doit\ target*)
3936 am__include=include
3937 am__quote=
3938 _am_result=GNU
3939 ;;
3940 esac
3941 # Now try BSD make style include.
3942 if test "$am__include" = "#"; then
3943 echo '.include "confinc"' > confmf
3944 case `$am_make -s -f confmf 2> /dev/null` in #(
3945 *the\ am__doit\ target*)
3946 am__include=.include
3947 am__quote="\""
3948 _am_result=BSD
3949 ;;
3950 esac
3951 fi
3952
3953
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3955 $as_echo "$_am_result" >&6; }
3956 rm -f confinc confmf
3957
3958 # Check whether --enable-dependency-tracking was given.
3959 if test "${enable_dependency_tracking+set}" = set; then :
3960 enableval=$enable_dependency_tracking;
3961 fi
3962
3963 if test "x$enable_dependency_tracking" != xno; then
3964 am_depcomp="$ac_aux_dir/depcomp"
3965 AMDEPBACKSLASH='\'
3966 fi
3967 if test "x$enable_dependency_tracking" != xno; then
3968 AMDEP_TRUE=
3969 AMDEP_FALSE='#'
3970 else
3971 AMDEP_TRUE='#'
3972 AMDEP_FALSE=
3973 fi
3974
3975
3976 ac_ext=c
3977 ac_cpp='$CPP $CPPFLAGS'
3978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3981 if test -n "$ac_tool_prefix"; then
3982 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3983 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3985 $as_echo_n "checking for $ac_word... " >&6; }
3986 if test "${ac_cv_prog_CC+set}" = set; then :
3987 $as_echo_n "(cached) " >&6
3988 else
3989 if test -n "$CC"; then
3990 ac_cv_prog_CC="$CC" # Let the user override the test.
3991 else
3992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993 for as_dir in $PATH
3994 do
3995 IFS=$as_save_IFS
3996 test -z "$as_dir" && as_dir=.
3997 for ac_exec_ext in '' $ac_executable_extensions; do
3998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3999 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4001 break 2
4002 fi
4003 done
4004 done
4005 IFS=$as_save_IFS
4006
4007 fi
4008 fi
4009 CC=$ac_cv_prog_CC
4010 if test -n "$CC"; then
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4012 $as_echo "$CC" >&6; }
4013 else
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4015 $as_echo "no" >&6; }
4016 fi
4017
4018
4019 fi
4020 if test -z "$ac_cv_prog_CC"; then
4021 ac_ct_CC=$CC
4022 # Extract the first word of "gcc", so it can be a program name with args.
4023 set dummy gcc; ac_word=$2
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4025 $as_echo_n "checking for $ac_word... " >&6; }
4026 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4027 $as_echo_n "(cached) " >&6
4028 else
4029 if test -n "$ac_ct_CC"; then
4030 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4031 else
4032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033 for as_dir in $PATH
4034 do
4035 IFS=$as_save_IFS
4036 test -z "$as_dir" && as_dir=.
4037 for ac_exec_ext in '' $ac_executable_extensions; do
4038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4039 ac_cv_prog_ac_ct_CC="gcc"
4040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4041 break 2
4042 fi
4043 done
4044 done
4045 IFS=$as_save_IFS
4046
4047 fi
4048 fi
4049 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4050 if test -n "$ac_ct_CC"; then
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4052 $as_echo "$ac_ct_CC" >&6; }
4053 else
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4055 $as_echo "no" >&6; }
4056 fi
4057
4058 if test "x$ac_ct_CC" = x; then
4059 CC=""
4060 else
4061 case $cross_compiling:$ac_tool_warned in
4062 yes:)
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4065 ac_tool_warned=yes ;;
4066 esac
4067 CC=$ac_ct_CC
4068 fi
4069 else
4070 CC="$ac_cv_prog_CC"
4071 fi
4072
4073 if test -z "$CC"; then
4074 if test -n "$ac_tool_prefix"; then
4075 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4076 set dummy ${ac_tool_prefix}cc; ac_word=$2
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4078 $as_echo_n "checking for $ac_word... " >&6; }
4079 if test "${ac_cv_prog_CC+set}" = set; then :
4080 $as_echo_n "(cached) " >&6
4081 else
4082 if test -n "$CC"; then
4083 ac_cv_prog_CC="$CC" # Let the user override the test.
4084 else
4085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086 for as_dir in $PATH
4087 do
4088 IFS=$as_save_IFS
4089 test -z "$as_dir" && as_dir=.
4090 for ac_exec_ext in '' $ac_executable_extensions; do
4091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4092 ac_cv_prog_CC="${ac_tool_prefix}cc"
4093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4094 break 2
4095 fi
4096 done
4097 done
4098 IFS=$as_save_IFS
4099
4100 fi
4101 fi
4102 CC=$ac_cv_prog_CC
4103 if test -n "$CC"; then
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4105 $as_echo "$CC" >&6; }
4106 else
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4108 $as_echo "no" >&6; }
4109 fi
4110
4111
4112 fi
4113 fi
4114 if test -z "$CC"; then
4115 # Extract the first word of "cc", so it can be a program name with args.
4116 set dummy cc; ac_word=$2
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4118 $as_echo_n "checking for $ac_word... " >&6; }
4119 if test "${ac_cv_prog_CC+set}" = set; then :
4120 $as_echo_n "(cached) " >&6
4121 else
4122 if test -n "$CC"; then
4123 ac_cv_prog_CC="$CC" # Let the user override the test.
4124 else
4125 ac_prog_rejected=no
4126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127 for as_dir in $PATH
4128 do
4129 IFS=$as_save_IFS
4130 test -z "$as_dir" && as_dir=.
4131 for ac_exec_ext in '' $ac_executable_extensions; do
4132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4133 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4134 ac_prog_rejected=yes
4135 continue
4136 fi
4137 ac_cv_prog_CC="cc"
4138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4139 break 2
4140 fi
4141 done
4142 done
4143 IFS=$as_save_IFS
4144
4145 if test $ac_prog_rejected = yes; then
4146 # We found a bogon in the path, so make sure we never use it.
4147 set dummy $ac_cv_prog_CC
4148 shift
4149 if test $# != 0; then
4150 # We chose a different compiler from the bogus one.
4151 # However, it has the same basename, so the bogon will be chosen
4152 # first if we set CC to just the basename; use the full file name.
4153 shift
4154 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4155 fi
4156 fi
4157 fi
4158 fi
4159 CC=$ac_cv_prog_CC
4160 if test -n "$CC"; then
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4162 $as_echo "$CC" >&6; }
4163 else
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4165 $as_echo "no" >&6; }
4166 fi
4167
4168
4169 fi
4170 if test -z "$CC"; then
4171 if test -n "$ac_tool_prefix"; then
4172 for ac_prog in cl.exe
4173 do
4174 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4175 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4177 $as_echo_n "checking for $ac_word... " >&6; }
4178 if test "${ac_cv_prog_CC+set}" = set; then :
4179 $as_echo_n "(cached) " >&6
4180 else
4181 if test -n "$CC"; then
4182 ac_cv_prog_CC="$CC" # Let the user override the test.
4183 else
4184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185 for as_dir in $PATH
4186 do
4187 IFS=$as_save_IFS
4188 test -z "$as_dir" && as_dir=.
4189 for ac_exec_ext in '' $ac_executable_extensions; do
4190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4191 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4193 break 2
4194 fi
4195 done
4196 done
4197 IFS=$as_save_IFS
4198
4199 fi
4200 fi
4201 CC=$ac_cv_prog_CC
4202 if test -n "$CC"; then
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4204 $as_echo "$CC" >&6; }
4205 else
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4207 $as_echo "no" >&6; }
4208 fi
4209
4210
4211 test -n "$CC" && break
4212 done
4213 fi
4214 if test -z "$CC"; then
4215 ac_ct_CC=$CC
4216 for ac_prog in cl.exe
4217 do
4218 # Extract the first word of "$ac_prog", so it can be a program name with args.
4219 set dummy $ac_prog; ac_word=$2
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4221 $as_echo_n "checking for $ac_word... " >&6; }
4222 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4223 $as_echo_n "(cached) " >&6
4224 else
4225 if test -n "$ac_ct_CC"; then
4226 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4227 else
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229 for as_dir in $PATH
4230 do
4231 IFS=$as_save_IFS
4232 test -z "$as_dir" && as_dir=.
4233 for ac_exec_ext in '' $ac_executable_extensions; do
4234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4235 ac_cv_prog_ac_ct_CC="$ac_prog"
4236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4237 break 2
4238 fi
4239 done
4240 done
4241 IFS=$as_save_IFS
4242
4243 fi
4244 fi
4245 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4246 if test -n "$ac_ct_CC"; then
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4248 $as_echo "$ac_ct_CC" >&6; }
4249 else
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4251 $as_echo "no" >&6; }
4252 fi
4253
4254
4255 test -n "$ac_ct_CC" && break
4256 done
4257
4258 if test "x$ac_ct_CC" = x; then
4259 CC=""
4260 else
4261 case $cross_compiling:$ac_tool_warned in
4262 yes:)
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4265 ac_tool_warned=yes ;;
4266 esac
4267 CC=$ac_ct_CC
4268 fi
4269 fi
4270
4271 fi
4272
4273
4274 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4276 as_fn_error "no acceptable C compiler found in \$PATH
4277 See \`config.log' for more details." "$LINENO" 5; }
4278
4279 # Provide some information about the compiler.
4280 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4281 set X $ac_compile
4282 ac_compiler=$2
4283 for ac_option in --version -v -V -qversion; do
4284 { { ac_try="$ac_compiler $ac_option >&5"
4285 case "(($ac_try" in
4286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287 *) ac_try_echo=$ac_try;;
4288 esac
4289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4290 $as_echo "$ac_try_echo"; } >&5
4291 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4292 ac_status=$?
4293 if test -s conftest.err; then
4294 sed '10a\
4295 ... rest of stderr output deleted ...
4296 10q' conftest.err >conftest.er1
4297 cat conftest.er1 >&5
4298 rm -f conftest.er1 conftest.err
4299 fi
4300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4301 test $ac_status = 0; }
4302 done
4303
4304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4305 /* end confdefs.h. */
4306
4307 int
4308 main ()
4309 {
4310
4311 ;
4312 return 0;
4313 }
4314 _ACEOF
4315 # FIXME: Cleanup?
4316 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
4317 (eval $ac_link) 2>&5
4318 ac_status=$?
4319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4320 test $ac_status = 0; }; then :
4321 gcc_no_link=no
4322 else
4323 gcc_no_link=yes
4324 fi
4325 if test x$gcc_no_link = xyes; then
4326 # Setting cross_compile will disable run tests; it will
4327 # also disable AC_CHECK_FILE but that's generally
4328 # correct if we can't link.
4329 cross_compiling=yes
4330 EXEEXT=
4331 else
4332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4333 /* end confdefs.h. */
4334
4335 int
4336 main ()
4337 {
4338
4339 ;
4340 return 0;
4341 }
4342 _ACEOF
4343 ac_clean_files_save=$ac_clean_files
4344 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4345 # Try to create an executable without -o first, disregard a.out.
4346 # It will help us diagnose broken compilers, and finding out an intuition
4347 # of exeext.
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4349 $as_echo_n "checking for C compiler default output file name... " >&6; }
4350 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4351
4352 # The possible output files:
4353 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4354
4355 ac_rmfiles=
4356 for ac_file in $ac_files
4357 do
4358 case $ac_file in
4359 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4360 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4361 esac
4362 done
4363 rm -f $ac_rmfiles
4364
4365 if { { ac_try="$ac_link_default"
4366 case "(($ac_try" in
4367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368 *) ac_try_echo=$ac_try;;
4369 esac
4370 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4371 $as_echo "$ac_try_echo"; } >&5
4372 (eval "$ac_link_default") 2>&5
4373 ac_status=$?
4374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4375 test $ac_status = 0; }; then :
4376 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4377 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4378 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4379 # so that the user can short-circuit this test for compilers unknown to
4380 # Autoconf.
4381 for ac_file in $ac_files ''
4382 do
4383 test -f "$ac_file" || continue
4384 case $ac_file in
4385 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4386 ;;
4387 [ab].out )
4388 # We found the default executable, but exeext='' is most
4389 # certainly right.
4390 break;;
4391 *.* )
4392 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4393 then :; else
4394 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4395 fi
4396 # We set ac_cv_exeext here because the later test for it is not
4397 # safe: cross compilers may not add the suffix if given an `-o'
4398 # argument, so we may need to know it at that point already.
4399 # Even if this section looks crufty: it has the advantage of
4400 # actually working.
4401 break;;
4402 * )
4403 break;;
4404 esac
4405 done
4406 test "$ac_cv_exeext" = no && ac_cv_exeext=
4407
4408 else
4409 ac_file=''
4410 fi
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4412 $as_echo "$ac_file" >&6; }
4413 if test -z "$ac_file"; then :
4414 $as_echo "$as_me: failed program was:" >&5
4415 sed 's/^/| /' conftest.$ac_ext >&5
4416
4417 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4419 { as_fn_set_status 77
4420 as_fn_error "C compiler cannot create executables
4421 See \`config.log' for more details." "$LINENO" 5; }; }
4422 fi
4423 ac_exeext=$ac_cv_exeext
4424
4425 # Check that the compiler produces executables we can run. If not, either
4426 # the compiler is broken, or we cross compile.
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4428 $as_echo_n "checking whether the C compiler works... " >&6; }
4429 # If not cross compiling, check that we can run a simple program.
4430 if test "$cross_compiling" != yes; then
4431 if { ac_try='./$ac_file'
4432 { { case "(($ac_try" in
4433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4434 *) ac_try_echo=$ac_try;;
4435 esac
4436 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4437 $as_echo "$ac_try_echo"; } >&5
4438 (eval "$ac_try") 2>&5
4439 ac_status=$?
4440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4441 test $ac_status = 0; }; }; then
4442 cross_compiling=no
4443 else
4444 if test "$cross_compiling" = maybe; then
4445 cross_compiling=yes
4446 else
4447 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4449 as_fn_error "cannot run C compiled programs.
4450 If you meant to cross compile, use \`--host'.
4451 See \`config.log' for more details." "$LINENO" 5; }
4452 fi
4453 fi
4454 fi
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4456 $as_echo "yes" >&6; }
4457
4458 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4459 ac_clean_files=$ac_clean_files_save
4460 # Check that the compiler produces executables we can run. If not, either
4461 # the compiler is broken, or we cross compile.
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4463 $as_echo_n "checking whether we are cross compiling... " >&6; }
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4465 $as_echo "$cross_compiling" >&6; }
4466
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4468 $as_echo_n "checking for suffix of executables... " >&6; }
4469 if { { ac_try="$ac_link"
4470 case "(($ac_try" in
4471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472 *) ac_try_echo=$ac_try;;
4473 esac
4474 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4475 $as_echo "$ac_try_echo"; } >&5
4476 (eval "$ac_link") 2>&5
4477 ac_status=$?
4478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4479 test $ac_status = 0; }; then :
4480 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4481 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4482 # work properly (i.e., refer to `conftest.exe'), while it won't with
4483 # `rm'.
4484 for ac_file in conftest.exe conftest conftest.*; do
4485 test -f "$ac_file" || continue
4486 case $ac_file in
4487 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4488 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4489 break;;
4490 * ) break;;
4491 esac
4492 done
4493 else
4494 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4496 as_fn_error "cannot compute suffix of executables: cannot compile and link
4497 See \`config.log' for more details." "$LINENO" 5; }
4498 fi
4499 rm -f conftest$ac_cv_exeext
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4501 $as_echo "$ac_cv_exeext" >&6; }
4502
4503 rm -f conftest.$ac_ext
4504 EXEEXT=$ac_cv_exeext
4505 ac_exeext=$EXEEXT
4506 fi
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4508 $as_echo_n "checking for suffix of object files... " >&6; }
4509 if test "${ac_cv_objext+set}" = set; then :
4510 $as_echo_n "(cached) " >&6
4511 else
4512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4513 /* end confdefs.h. */
4514
4515 int
4516 main ()
4517 {
4518
4519 ;
4520 return 0;
4521 }
4522 _ACEOF
4523 rm -f conftest.o conftest.obj
4524 if { { ac_try="$ac_compile"
4525 case "(($ac_try" in
4526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527 *) ac_try_echo=$ac_try;;
4528 esac
4529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4530 $as_echo "$ac_try_echo"; } >&5
4531 (eval "$ac_compile") 2>&5
4532 ac_status=$?
4533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4534 test $ac_status = 0; }; then :
4535 for ac_file in conftest.o conftest.obj conftest.*; do
4536 test -f "$ac_file" || continue;
4537 case $ac_file in
4538 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4539 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4540 break;;
4541 esac
4542 done
4543 else
4544 $as_echo "$as_me: failed program was:" >&5
4545 sed 's/^/| /' conftest.$ac_ext >&5
4546
4547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4549 as_fn_error "cannot compute suffix of object files: cannot compile
4550 See \`config.log' for more details." "$LINENO" 5; }
4551 fi
4552 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4553 fi
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4555 $as_echo "$ac_cv_objext" >&6; }
4556 OBJEXT=$ac_cv_objext
4557 ac_objext=$OBJEXT
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4559 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4560 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4561 $as_echo_n "(cached) " >&6
4562 else
4563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564 /* end confdefs.h. */
4565
4566 int
4567 main ()
4568 {
4569 #ifndef __GNUC__
4570 choke me
4571 #endif
4572
4573 ;
4574 return 0;
4575 }
4576 _ACEOF
4577 if ac_fn_c_try_compile "$LINENO"; then :
4578 ac_compiler_gnu=yes
4579 else
4580 ac_compiler_gnu=no
4581 fi
4582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4583 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4584
4585 fi
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4587 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4588 if test $ac_compiler_gnu = yes; then
4589 GCC=yes
4590 else
4591 GCC=
4592 fi
4593 ac_test_CFLAGS=${CFLAGS+set}
4594 ac_save_CFLAGS=$CFLAGS
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4596 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4597 if test "${ac_cv_prog_cc_g+set}" = set; then :
4598 $as_echo_n "(cached) " >&6
4599 else
4600 ac_save_c_werror_flag=$ac_c_werror_flag
4601 ac_c_werror_flag=yes
4602 ac_cv_prog_cc_g=no
4603 CFLAGS="-g"
4604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605 /* end confdefs.h. */
4606
4607 int
4608 main ()
4609 {
4610
4611 ;
4612 return 0;
4613 }
4614 _ACEOF
4615 if ac_fn_c_try_compile "$LINENO"; then :
4616 ac_cv_prog_cc_g=yes
4617 else
4618 CFLAGS=""
4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h. */
4621
4622 int
4623 main ()
4624 {
4625
4626 ;
4627 return 0;
4628 }
4629 _ACEOF
4630 if ac_fn_c_try_compile "$LINENO"; then :
4631
4632 else
4633 ac_c_werror_flag=$ac_save_c_werror_flag
4634 CFLAGS="-g"
4635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4636 /* end confdefs.h. */
4637
4638 int
4639 main ()
4640 {
4641
4642 ;
4643 return 0;
4644 }
4645 _ACEOF
4646 if ac_fn_c_try_compile "$LINENO"; then :
4647 ac_cv_prog_cc_g=yes
4648 fi
4649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4650 fi
4651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4652 fi
4653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4654 ac_c_werror_flag=$ac_save_c_werror_flag
4655 fi
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4657 $as_echo "$ac_cv_prog_cc_g" >&6; }
4658 if test "$ac_test_CFLAGS" = set; then
4659 CFLAGS=$ac_save_CFLAGS
4660 elif test $ac_cv_prog_cc_g = yes; then
4661 if test "$GCC" = yes; then
4662 CFLAGS="-g -O2"
4663 else
4664 CFLAGS="-g"
4665 fi
4666 else
4667 if test "$GCC" = yes; then
4668 CFLAGS="-O2"
4669 else
4670 CFLAGS=
4671 fi
4672 fi
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4674 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4675 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4676 $as_echo_n "(cached) " >&6
4677 else
4678 ac_cv_prog_cc_c89=no
4679 ac_save_CC=$CC
4680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681 /* end confdefs.h. */
4682 #include <stdarg.h>
4683 #include <stdio.h>
4684 #include <sys/types.h>
4685 #include <sys/stat.h>
4686 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4687 struct buf { int x; };
4688 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4689 static char *e (p, i)
4690 char **p;
4691 int i;
4692 {
4693 return p[i];
4694 }
4695 static char *f (char * (*g) (char **, int), char **p, ...)
4696 {
4697 char *s;
4698 va_list v;
4699 va_start (v,p);
4700 s = g (p, va_arg (v,int));
4701 va_end (v);
4702 return s;
4703 }
4704
4705 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4706 function prototypes and stuff, but not '\xHH' hex character constants.
4707 These don't provoke an error unfortunately, instead are silently treated
4708 as 'x'. The following induces an error, until -std is added to get
4709 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4710 array size at least. It's necessary to write '\x00'==0 to get something
4711 that's true only with -std. */
4712 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4713
4714 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4715 inside strings and character constants. */
4716 #define FOO(x) 'x'
4717 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4718
4719 int test (int i, double x);
4720 struct s1 {int (*f) (int a);};
4721 struct s2 {int (*f) (double a);};
4722 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4723 int argc;
4724 char **argv;
4725 int
4726 main ()
4727 {
4728 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4729 ;
4730 return 0;
4731 }
4732 _ACEOF
4733 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4734 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4735 do
4736 CC="$ac_save_CC $ac_arg"
4737 if ac_fn_c_try_compile "$LINENO"; then :
4738 ac_cv_prog_cc_c89=$ac_arg
4739 fi
4740 rm -f core conftest.err conftest.$ac_objext
4741 test "x$ac_cv_prog_cc_c89" != "xno" && break
4742 done
4743 rm -f conftest.$ac_ext
4744 CC=$ac_save_CC
4745
4746 fi
4747 # AC_CACHE_VAL
4748 case "x$ac_cv_prog_cc_c89" in
4749 x)
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4751 $as_echo "none needed" >&6; } ;;
4752 xno)
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4754 $as_echo "unsupported" >&6; } ;;
4755 *)
4756 CC="$CC $ac_cv_prog_cc_c89"
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4758 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4759 esac
4760 if test "x$ac_cv_prog_cc_c89" != xno; then :
4761
4762 fi
4763
4764 ac_ext=c
4765 ac_cpp='$CPP $CPPFLAGS'
4766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4769
4770 depcc="$CC" am_compiler_list=
4771
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4773 $as_echo_n "checking dependency style of $depcc... " >&6; }
4774 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4775 $as_echo_n "(cached) " >&6
4776 else
4777 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4778 # We make a subdir and do the tests there. Otherwise we can end up
4779 # making bogus files that we don't know about and never remove. For
4780 # instance it was reported that on HP-UX the gcc test will end up
4781 # making a dummy file named `D' -- because `-MD' means `put the output
4782 # in D'.
4783 mkdir conftest.dir
4784 # Copy depcomp to subdir because otherwise we won't find it if we're
4785 # using a relative directory.
4786 cp "$am_depcomp" conftest.dir
4787 cd conftest.dir
4788 # We will build objects and dependencies in a subdirectory because
4789 # it helps to detect inapplicable dependency modes. For instance
4790 # both Tru64's cc and ICC support -MD to output dependencies as a
4791 # side effect of compilation, but ICC will put the dependencies in
4792 # the current directory while Tru64 will put them in the object
4793 # directory.
4794 mkdir sub
4795
4796 am_cv_CC_dependencies_compiler_type=none
4797 if test "$am_compiler_list" = ""; then
4798 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4799 fi
4800 am__universal=false
4801 case " $depcc " in #(
4802 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4803 esac
4804
4805 for depmode in $am_compiler_list; do
4806 # Setup a source with many dependencies, because some compilers
4807 # like to wrap large dependency lists on column 80 (with \), and
4808 # we should not choose a depcomp mode which is confused by this.
4809 #
4810 # We need to recreate these files for each test, as the compiler may
4811 # overwrite some of them when testing with obscure command lines.
4812 # This happens at least with the AIX C compiler.
4813 : > sub/conftest.c
4814 for i in 1 2 3 4 5 6; do
4815 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4816 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4817 # Solaris 8's {/usr,}/bin/sh.
4818 touch sub/conftst$i.h
4819 done
4820 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4821
4822 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4823 # mode. It turns out that the SunPro C++ compiler does not properly
4824 # handle `-M -o', and we need to detect this. Also, some Intel
4825 # versions had trouble with output in subdirs
4826 am__obj=sub/conftest.${OBJEXT-o}
4827 am__minus_obj="-o $am__obj"
4828 case $depmode in
4829 gcc)
4830 # This depmode causes a compiler race in universal mode.
4831 test "$am__universal" = false || continue
4832 ;;
4833 nosideeffect)
4834 # after this tag, mechanisms are not by side-effect, so they'll
4835 # only be used when explicitly requested
4836 if test "x$enable_dependency_tracking" = xyes; then
4837 continue
4838 else
4839 break
4840 fi
4841 ;;
4842 msvisualcpp | msvcmsys)
4843 # This compiler won't grok `-c -o', but also, the minuso test has
4844 # not run yet. These depmodes are late enough in the game, and
4845 # so weak that their functioning should not be impacted.
4846 am__obj=conftest.${OBJEXT-o}
4847 am__minus_obj=
4848 ;;
4849 none) break ;;
4850 esac
4851 if depmode=$depmode \
4852 source=sub/conftest.c object=$am__obj \
4853 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4854 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4855 >/dev/null 2>conftest.err &&
4856 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4857 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4858 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4859 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4860 # icc doesn't choke on unknown options, it will just issue warnings
4861 # or remarks (even with -Werror). So we grep stderr for any message
4862 # that says an option was ignored or not supported.
4863 # When given -MP, icc 7.0 and 7.1 complain thusly:
4864 # icc: Command line warning: ignoring option '-M'; no argument required
4865 # The diagnosis changed in icc 8.0:
4866 # icc: Command line remark: option '-MP' not supported
4867 if (grep 'ignoring option' conftest.err ||
4868 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4869 am_cv_CC_dependencies_compiler_type=$depmode
4870 break
4871 fi
4872 fi
4873 done
4874
4875 cd ..
4876 rm -rf conftest.dir
4877 else
4878 am_cv_CC_dependencies_compiler_type=none
4879 fi
4880
4881 fi
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4883 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4884 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4885
4886 if
4887 test "x$enable_dependency_tracking" != xno \
4888 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4889 am__fastdepCC_TRUE=
4890 am__fastdepCC_FALSE='#'
4891 else
4892 am__fastdepCC_TRUE='#'
4893 am__fastdepCC_FALSE=
4894 fi
4895
4896
4897
4898 ac_ext=c
4899 ac_cpp='$CPP $CPPFLAGS'
4900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4904 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4905 # On Suns, sometimes $CPP names a directory.
4906 if test -n "$CPP" && test -d "$CPP"; then
4907 CPP=
4908 fi
4909 if test -z "$CPP"; then
4910 if test "${ac_cv_prog_CPP+set}" = set; then :
4911 $as_echo_n "(cached) " >&6
4912 else
4913 # Double quotes because CPP needs to be expanded
4914 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4915 do
4916 ac_preproc_ok=false
4917 for ac_c_preproc_warn_flag in '' yes
4918 do
4919 # Use a header file that comes with gcc, so configuring glibc
4920 # with a fresh cross-compiler works.
4921 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4922 # <limits.h> exists even on freestanding compilers.
4923 # On the NeXT, cc -E runs the code through the compiler's parser,
4924 # not just through cpp. "Syntax error" is here to catch this case.
4925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4926 /* end confdefs.h. */
4927 #ifdef __STDC__
4928 # include <limits.h>
4929 #else
4930 # include <assert.h>
4931 #endif
4932 Syntax error
4933 _ACEOF
4934 if ac_fn_c_try_cpp "$LINENO"; then :
4935
4936 else
4937 # Broken: fails on valid input.
4938 continue
4939 fi
4940 rm -f conftest.err conftest.$ac_ext
4941
4942 # OK, works on sane cases. Now check whether nonexistent headers
4943 # can be detected and how.
4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945 /* end confdefs.h. */
4946 #include <ac_nonexistent.h>
4947 _ACEOF
4948 if ac_fn_c_try_cpp "$LINENO"; then :
4949 # Broken: success on invalid input.
4950 continue
4951 else
4952 # Passes both tests.
4953 ac_preproc_ok=:
4954 break
4955 fi
4956 rm -f conftest.err conftest.$ac_ext
4957
4958 done
4959 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4960 rm -f conftest.err conftest.$ac_ext
4961 if $ac_preproc_ok; then :
4962 break
4963 fi
4964
4965 done
4966 ac_cv_prog_CPP=$CPP
4967
4968 fi
4969 CPP=$ac_cv_prog_CPP
4970 else
4971 ac_cv_prog_CPP=$CPP
4972 fi
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4974 $as_echo "$CPP" >&6; }
4975 ac_preproc_ok=false
4976 for ac_c_preproc_warn_flag in '' yes
4977 do
4978 # Use a header file that comes with gcc, so configuring glibc
4979 # with a fresh cross-compiler works.
4980 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4981 # <limits.h> exists even on freestanding compilers.
4982 # On the NeXT, cc -E runs the code through the compiler's parser,
4983 # not just through cpp. "Syntax error" is here to catch this case.
4984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4985 /* end confdefs.h. */
4986 #ifdef __STDC__
4987 # include <limits.h>
4988 #else
4989 # include <assert.h>
4990 #endif
4991 Syntax error
4992 _ACEOF
4993 if ac_fn_c_try_cpp "$LINENO"; then :
4994
4995 else
4996 # Broken: fails on valid input.
4997 continue
4998 fi
4999 rm -f conftest.err conftest.$ac_ext
5000
5001 # OK, works on sane cases. Now check whether nonexistent headers
5002 # can be detected and how.
5003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5004 /* end confdefs.h. */
5005 #include <ac_nonexistent.h>
5006 _ACEOF
5007 if ac_fn_c_try_cpp "$LINENO"; then :
5008 # Broken: success on invalid input.
5009 continue
5010 else
5011 # Passes both tests.
5012 ac_preproc_ok=:
5013 break
5014 fi
5015 rm -f conftest.err conftest.$ac_ext
5016
5017 done
5018 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5019 rm -f conftest.err conftest.$ac_ext
5020 if $ac_preproc_ok; then :
5021
5022 else
5023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5025 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5026 See \`config.log' for more details." "$LINENO" 5; }
5027 fi
5028
5029 ac_ext=c
5030 ac_cpp='$CPP $CPPFLAGS'
5031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5034
5035
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5037 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5038 if test "${ac_cv_path_GREP+set}" = set; then :
5039 $as_echo_n "(cached) " >&6
5040 else
5041 if test -z "$GREP"; then
5042 ac_path_GREP_found=false
5043 # Loop through the user's path and test for each of PROGNAME-LIST
5044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5046 do
5047 IFS=$as_save_IFS
5048 test -z "$as_dir" && as_dir=.
5049 for ac_prog in grep ggrep; do
5050 for ac_exec_ext in '' $ac_executable_extensions; do
5051 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5052 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5053 # Check for GNU ac_path_GREP and select it if it is found.
5054 # Check for GNU $ac_path_GREP
5055 case `"$ac_path_GREP" --version 2>&1` in
5056 *GNU*)
5057 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5058 *)
5059 ac_count=0
5060 $as_echo_n 0123456789 >"conftest.in"
5061 while :
5062 do
5063 cat "conftest.in" "conftest.in" >"conftest.tmp"
5064 mv "conftest.tmp" "conftest.in"
5065 cp "conftest.in" "conftest.nl"
5066 $as_echo 'GREP' >> "conftest.nl"
5067 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5068 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5069 as_fn_arith $ac_count + 1 && ac_count=$as_val
5070 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5071 # Best one so far, save it but keep looking for a better one
5072 ac_cv_path_GREP="$ac_path_GREP"
5073 ac_path_GREP_max=$ac_count
5074 fi
5075 # 10*(2^10) chars as input seems more than enough
5076 test $ac_count -gt 10 && break
5077 done
5078 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5079 esac
5080
5081 $ac_path_GREP_found && break 3
5082 done
5083 done
5084 done
5085 IFS=$as_save_IFS
5086 if test -z "$ac_cv_path_GREP"; then
5087 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5088 fi
5089 else
5090 ac_cv_path_GREP=$GREP
5091 fi
5092
5093 fi
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5095 $as_echo "$ac_cv_path_GREP" >&6; }
5096 GREP="$ac_cv_path_GREP"
5097
5098
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5100 $as_echo_n "checking for egrep... " >&6; }
5101 if test "${ac_cv_path_EGREP+set}" = set; then :
5102 $as_echo_n "(cached) " >&6
5103 else
5104 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5105 then ac_cv_path_EGREP="$GREP -E"
5106 else
5107 if test -z "$EGREP"; then
5108 ac_path_EGREP_found=false
5109 # Loop through the user's path and test for each of PROGNAME-LIST
5110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5111 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5112 do
5113 IFS=$as_save_IFS
5114 test -z "$as_dir" && as_dir=.
5115 for ac_prog in egrep; do
5116 for ac_exec_ext in '' $ac_executable_extensions; do
5117 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5118 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5119 # Check for GNU ac_path_EGREP and select it if it is found.
5120 # Check for GNU $ac_path_EGREP
5121 case `"$ac_path_EGREP" --version 2>&1` in
5122 *GNU*)
5123 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5124 *)
5125 ac_count=0
5126 $as_echo_n 0123456789 >"conftest.in"
5127 while :
5128 do
5129 cat "conftest.in" "conftest.in" >"conftest.tmp"
5130 mv "conftest.tmp" "conftest.in"
5131 cp "conftest.in" "conftest.nl"
5132 $as_echo 'EGREP' >> "conftest.nl"
5133 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5134 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5135 as_fn_arith $ac_count + 1 && ac_count=$as_val
5136 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5137 # Best one so far, save it but keep looking for a better one
5138 ac_cv_path_EGREP="$ac_path_EGREP"
5139 ac_path_EGREP_max=$ac_count
5140 fi
5141 # 10*(2^10) chars as input seems more than enough
5142 test $ac_count -gt 10 && break
5143 done
5144 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5145 esac
5146
5147 $ac_path_EGREP_found && break 3
5148 done
5149 done
5150 done
5151 IFS=$as_save_IFS
5152 if test -z "$ac_cv_path_EGREP"; then
5153 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5154 fi
5155 else
5156 ac_cv_path_EGREP=$EGREP
5157 fi
5158
5159 fi
5160 fi
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5162 $as_echo "$ac_cv_path_EGREP" >&6; }
5163 EGREP="$ac_cv_path_EGREP"
5164
5165
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5167 $as_echo_n "checking for ANSI C header files... " >&6; }
5168 if test "${ac_cv_header_stdc+set}" = set; then :
5169 $as_echo_n "(cached) " >&6
5170 else
5171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5172 /* end confdefs.h. */
5173 #include <stdlib.h>
5174 #include <stdarg.h>
5175 #include <string.h>
5176 #include <float.h>
5177
5178 int
5179 main ()
5180 {
5181
5182 ;
5183 return 0;
5184 }
5185 _ACEOF
5186 if ac_fn_c_try_compile "$LINENO"; then :
5187 ac_cv_header_stdc=yes
5188 else
5189 ac_cv_header_stdc=no
5190 fi
5191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5192
5193 if test $ac_cv_header_stdc = yes; then
5194 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5196 /* end confdefs.h. */
5197 #include <string.h>
5198
5199 _ACEOF
5200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5201 $EGREP "memchr" >/dev/null 2>&1; then :
5202
5203 else
5204 ac_cv_header_stdc=no
5205 fi
5206 rm -f conftest*
5207
5208 fi
5209
5210 if test $ac_cv_header_stdc = yes; then
5211 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213 /* end confdefs.h. */
5214 #include <stdlib.h>
5215
5216 _ACEOF
5217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5218 $EGREP "free" >/dev/null 2>&1; then :
5219
5220 else
5221 ac_cv_header_stdc=no
5222 fi
5223 rm -f conftest*
5224
5225 fi
5226
5227 if test $ac_cv_header_stdc = yes; then
5228 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5229 if test "$cross_compiling" = yes; then :
5230 :
5231 else
5232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5233 /* end confdefs.h. */
5234 #include <ctype.h>
5235 #include <stdlib.h>
5236 #if ((' ' & 0x0FF) == 0x020)
5237 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5238 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5239 #else
5240 # define ISLOWER(c) \
5241 (('a' <= (c) && (c) <= 'i') \
5242 || ('j' <= (c) && (c) <= 'r') \
5243 || ('s' <= (c) && (c) <= 'z'))
5244 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5245 #endif
5246
5247 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5248 int
5249 main ()
5250 {
5251 int i;
5252 for (i = 0; i < 256; i++)
5253 if (XOR (islower (i), ISLOWER (i))
5254 || toupper (i) != TOUPPER (i))
5255 return 2;
5256 return 0;
5257 }
5258 _ACEOF
5259 if ac_fn_c_try_run "$LINENO"; then :
5260
5261 else
5262 ac_cv_header_stdc=no
5263 fi
5264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5265 conftest.$ac_objext conftest.beam conftest.$ac_ext
5266 fi
5267
5268 fi
5269 fi
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5271 $as_echo "$ac_cv_header_stdc" >&6; }
5272 if test $ac_cv_header_stdc = yes; then
5273
5274 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5275
5276 fi
5277
5278 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5279 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5280 inttypes.h stdint.h unistd.h
5281 do :
5282 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5283 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5284 "
5285 eval as_val=\$$as_ac_Header
5286 if test "x$as_val" = x""yes; then :
5287 cat >>confdefs.h <<_ACEOF
5288 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5289 _ACEOF
5290
5291 fi
5292
5293 done
5294
5295
5296 # Check whether --enable-alsa was given.
5297 if test "${enable_alsa+set}" = set; then :
5298 enableval=$enable_alsa; case "${enableval}" in
5299 yes) COMPILE_ALSA=yes ;;
5300 no) COMPILE_ALSA=no ;;
5301 *) COMPILE_ALSA=yes ;;
5302 esac
5303 else
5304 for ac_header in alsa/asoundlib.h
5305 do :
5306 ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
5307 if test "x$ac_cv_header_alsa_asoundlib_h" = x""yes; then :
5308 cat >>confdefs.h <<_ACEOF
5309 #define HAVE_ALSA_ASOUNDLIB_H 1
5310 _ACEOF
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_seq_open in -lasound" >&5
5312 $as_echo_n "checking for snd_seq_open in -lasound... " >&6; }
5313 if test "${ac_cv_lib_asound_snd_seq_open+set}" = set; then :
5314 $as_echo_n "(cached) " >&6
5315 else
5316 ac_check_lib_save_LIBS=$LIBS
5317 LIBS="-lasound $LIBS"
5318 if test x$gcc_no_link = xyes; then
5319 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5320 fi
5321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5322 /* end confdefs.h. */
5323
5324 /* Override any GCC internal prototype to avoid an error.
5325 Use char because int might match the return type of a GCC
5326 builtin and then its argument prototype would still apply. */
5327 #ifdef __cplusplus
5328 extern "C"
5329 #endif
5330 char snd_seq_open ();
5331 int
5332 main ()
5333 {
5334 return snd_seq_open ();
5335 ;
5336 return 0;
5337 }
5338 _ACEOF
5339 if ac_fn_c_try_link "$LINENO"; then :
5340 ac_cv_lib_asound_snd_seq_open=yes
5341 else
5342 ac_cv_lib_asound_snd_seq_open=no
5343 fi
5344 rm -f core conftest.err conftest.$ac_objext \
5345 conftest$ac_exeext conftest.$ac_ext
5346 LIBS=$ac_check_lib_save_LIBS
5347 fi
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_seq_open" >&5
5349 $as_echo "$ac_cv_lib_asound_snd_seq_open" >&6; }
5350 if test "x$ac_cv_lib_asound_snd_seq_open" = x""yes; then :
5351 COMPILE_ALSA=yes
5352 else
5353 COMPILE_ALSA=no
5354 fi
5355
5356 else
5357 COMPILE_ALSA=no
5358 fi
5359
5360 done
5361
5362 fi
5363
5364 if test "x${COMPILE_ALSA}" = xyes; then
5365 CREATE_ALSA_LIBRARIES_TRUE=
5366 CREATE_ALSA_LIBRARIES_FALSE='#'
5367 else
5368 CREATE_ALSA_LIBRARIES_TRUE='#'
5369 CREATE_ALSA_LIBRARIES_FALSE=
5370 fi
5371
5372
5373 # Check whether --enable-dssi was given.
5374 if test "${enable_dssi+set}" = set; then :
5375 enableval=$enable_dssi; case "${enableval}" in
5376 yes) COMPILE_DSSI=yes ;;
5377 no) COMPILE_DSSI=no ;;
5378 *) COMPILE_DSSI=yes ;;
5379 esac
5380 else
5381 COMPILE_DSSI=no
5382 for ac_header in dssi.h
5383 do :
5384 ac_fn_c_check_header_mongrel "$LINENO" "dssi.h" "ac_cv_header_dssi_h" "$ac_includes_default"
5385 if test "x$ac_cv_header_dssi_h" = x""yes; then :
5386 cat >>confdefs.h <<_ACEOF
5387 #define HAVE_DSSI_H 1
5388 _ACEOF
5389
5390 for ac_header in jack/jack.h
5391 do :
5392 ac_fn_c_check_header_mongrel "$LINENO" "jack/jack.h" "ac_cv_header_jack_jack_h" "$ac_includes_default"
5393 if test "x$ac_cv_header_jack_jack_h" = x""yes; then :
5394 cat >>confdefs.h <<_ACEOF
5395 #define HAVE_JACK_JACK_H 1
5396 _ACEOF
5397 COMPILE_DSSI=yes
5398 fi
5399
5400 done
5401
5402 fi
5403
5404 done
5405
5406 fi
5407
5408 if test "x${COMPILE_DSSI}" = xyes; then
5409 CREATE_DSSI_LIBRARIES_TRUE=
5410 CREATE_DSSI_LIBRARIES_FALSE='#'
5411 else
5412 CREATE_DSSI_LIBRARIES_TRUE='#'
5413 CREATE_DSSI_LIBRARIES_FALSE=
5414 fi
5415
5416
5417 # Check whether --enable-gtk-peer was given.
5418 if test "${enable_gtk_peer+set}" = set; then :
5419 enableval=$enable_gtk_peer; case "${enableval}" in
5420 yes) COMPILE_GTK_PEER=yes ;;
5421 no) COMPILE_GTK_PEER=no ;;
5422 *) COMPILE_GTK_PEER=yes ;;
5423 esac
5424 else
5425 COMPILE_GTK_PEER=yes
5426 fi
5427
5428 if test "x${COMPILE_GTK_PEER}" = xyes; then
5429 CREATE_GTK_PEER_LIBRARIES_TRUE=
5430 CREATE_GTK_PEER_LIBRARIES_FALSE='#'
5431 else
5432 CREATE_GTK_PEER_LIBRARIES_TRUE='#'
5433 CREATE_GTK_PEER_LIBRARIES_FALSE=
5434 fi
5435
5436
5437 # Check whether --enable-gtk-peers was given.
5438 if test "${enable_gtk_peers+set}" = set; then :
5439 enableval=$enable_gtk_peers; as_fn_error "No --enable-gtk-peers (or --disable-gtk-peers) option; you want --enable-gtk-peer" "$LINENO" 5
5440 fi
5441
5442
5443 # Check whether --enable-qt-peer was given.
5444 if test "${enable_qt_peer+set}" = set; then :
5445 enableval=$enable_qt_peer; case "${enableval}" in
5446 yes) COMPILE_QT_PEER=yes ;;
5447 no) COMPILE_QT_PEER=no ;;
5448 *) COMPILE_QT_PEER=yes ;;
5449 esac
5450 else
5451 COMPILE_QT_PEER=no
5452 fi
5453
5454 if test "x${COMPILE_QT_PEER}" = xyes; then
5455 CREATE_QT_PEER_LIBRARIES_TRUE=
5456 CREATE_QT_PEER_LIBRARIES_FALSE='#'
5457 else
5458 CREATE_QT_PEER_LIBRARIES_TRUE='#'
5459 CREATE_QT_PEER_LIBRARIES_FALSE=
5460 fi
5461
5462
5463 # Check whether --enable-plugin was given.
5464 if test "${enable_plugin+set}" = set; then :
5465 enableval=$enable_plugin; case "${enableval}" in
5466 yes) COMPILE_PLUGIN=yes ;;
5467 no) COMPILE_PLUGIN=no ;;
5468 *) COMPILE_PLUGIN=yes ;;
5469 esac
5470 else
5471 COMPILE_PLUGIN=yes
5472 fi
5473
5474 if test "x${COMPILE_PLUGIN}" = xyes; then
5475 CREATE_PLUGIN_TRUE=
5476 CREATE_PLUGIN_FALSE='#'
5477 else
5478 CREATE_PLUGIN_TRUE='#'
5479 CREATE_PLUGIN_FALSE=
5480 fi
5481
5482
5483 # Check whether --enable-gmp was given.
5484 if test "${enable_gmp+set}" = set; then :
5485 enableval=$enable_gmp; case "${enableval}" in
5486 yes|true) COMPILE_GMP=yes ;;
5487 no|false) COMPILE_GMP=no ;;
5488 *) COMPILE_GMP=yes ;;
5489 esac
5490 else
5491 COMPILE_GMP=yes
5492 fi
5493
5494
5495 # Check whether --enable-gjdoc was given.
5496 if test "${enable_gjdoc+set}" = set; then :
5497 enableval=$enable_gjdoc; case "${enableval}" in
5498 yes) COMPILE_GJDOC=yes ;;
5499 no) COMPILE_GJDOC=no ;;
5500 *) COMPILE_GJDOC=yes ;;
5501 esac
5502 else
5503 COMPILE_GJDOC=yes
5504 fi
5505
5506 if test "x${COMPILE_GJDOC}" = xyes; then
5507 CREATE_GJDOC_TRUE=
5508 CREATE_GJDOC_FALSE='#'
5509 else
5510 CREATE_GJDOC_TRUE='#'
5511 CREATE_GJDOC_FALSE=
5512 fi
5513
5514
5515
5516 multi_os_directory=`$CC -print-multi-os-directory`
5517 case $multi_os_directory in
5518 .) toolexeclibdir=${libdir} ;; # Avoid trailing /.
5519 *) toolexeclibdir=${libdir}/${multi_os_directory} ;;
5520 esac
5521
5522
5523
5524
5525 # Check whether --with-native-libdir was given.
5526 if test "${with_native_libdir+set}" = set; then :
5527 withval=$with_native_libdir;
5528 nativeexeclibdir=${withval}
5529
5530 else
5531
5532 nativeexeclibdir='${toolexeclibdir}/gcj-'`cat ${srcdir}/../../gcc/BASE-VER`-`awk -F: '/^[^#].*:/ { print $1 }' ${srcdir}/../libtool-version`
5533
5534 fi
5535
5536
5537
5538
5539
5540 # Check whether --with-glibj-dir was given.
5541 if test "${with_glibj_dir+set}" = set; then :
5542 withval=$with_glibj_dir;
5543 glibjdir=${withval}
5544
5545 else
5546
5547 glibjdir='${datadir}/${PACKAGE}'
5548
5549 fi
5550
5551
5552
5553
5554
5555 # Check whether --with-antlr-jar was given.
5556 if test "${with_antlr_jar+set}" = set; then :
5557 withval=$with_antlr_jar;
5558 ANTLR_JAR=$withval
5559
5560 else
5561
5562 ANTLR_JAR="$ANTLR_JAR"
5563
5564 fi
5565
5566
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to regenerate the headers" >&5
5568 $as_echo_n "checking whether to regenerate the headers... " >&6; }
5569 # Check whether --enable-regen-headers was given.
5570 if test "${enable_regen_headers+set}" = set; then :
5571 enableval=$enable_regen_headers; case "${enableval}" in
5572 yes) REGENERATE_JNI_HEADERS=yes ;;
5573 no) REGENERATE_JNI_HEADERS=no ;;
5574 *) REGENERATE_JNI_HEADERS=yes ;;
5575 esac
5576 else
5577 if test -e ${srcdir}/include/java_lang_VMSystem.h; then
5578 REGENERATE_JNI_HEADERS=no ;
5579 else
5580 REGENERATE_JNI_HEADERS=yes ;
5581 fi
5582 fi
5583
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${REGENERATE_JNI_HEADERS}" >&5
5585 $as_echo "${REGENERATE_JNI_HEADERS}" >&6; }
5586 if test "x${REGENERATE_JNI_HEADERS}" = xyes; then
5587 CREATE_JNI_HEADERS_TRUE=
5588 CREATE_JNI_HEADERS_FALSE='#'
5589 else
5590 CREATE_JNI_HEADERS_TRUE='#'
5591 CREATE_JNI_HEADERS_FALSE=
5592 fi
5593
5594
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to regenerate the GJDoc parser" >&5
5596 $as_echo_n "checking whether to regenerate the GJDoc parser... " >&6; }
5597 # Check whether --enable-regen-gjdoc-parser was given.
5598 if test "${enable_regen_gjdoc_parser+set}" = set; then :
5599 enableval=$enable_regen_gjdoc_parser; case "${enableval}" in
5600 yes) REGENERATE_GJDOC_PARSER=yes ;;
5601 no) REGENERATE_GJDOC_PARSER=no ;;
5602 *) REGENERATE_GJDOC_PARSER=yes ;;
5603 esac
5604 else
5605 if test -e ${srcdir}/tools/generated/gnu/classpath/tools/gjdoc/expr/JavaLexer.java; then
5606 REGENERATE_GJDOC_PARSER=no ;
5607 else
5608 REGENERATE_GJDOC_PARSER=yes ;
5609 fi
5610 fi
5611
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${REGENERATE_GJDOC_PARSER}" >&5
5613 $as_echo "${REGENERATE_GJDOC_PARSER}" >&6; }
5614 if test "x${REGENERATE_GJDOC_PARSER}" = xyes; then
5615 CREATE_GJDOC_PARSER_TRUE=
5616 CREATE_GJDOC_PARSER_FALSE='#'
5617 else
5618 CREATE_GJDOC_PARSER_TRUE='#'
5619 CREATE_GJDOC_PARSER_FALSE=
5620 fi
5621
5622
5623 # Check whether --enable-tool-wrappers was given.
5624 if test "${enable_tool_wrappers+set}" = set; then :
5625 enableval=$enable_tool_wrappers; case x"${enableval}" in
5626 xyes)
5627 COMPILE_WRAPPERS=yes;
5628 for ac_header in ltdl.h
5629 do :
5630 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
5631 if test "x$ac_cv_header_ltdl_h" = x""yes; then :
5632 cat >>confdefs.h <<_ACEOF
5633 #define HAVE_LTDL_H 1
5634 _ACEOF
5635
5636 else
5637 as_fn_error "cannot find ltdl.h" "$LINENO" 5
5638 fi
5639
5640 done
5641
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlopen in -lltdl" >&5
5643 $as_echo_n "checking for lt_dlopen in -lltdl... " >&6; }
5644 if test "${ac_cv_lib_ltdl_lt_dlopen+set}" = set; then :
5645 $as_echo_n "(cached) " >&6
5646 else
5647 ac_check_lib_save_LIBS=$LIBS
5648 LIBS="-lltdl $LIBS"
5649 if test x$gcc_no_link = xyes; then
5650 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5651 fi
5652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653 /* end confdefs.h. */
5654
5655 /* Override any GCC internal prototype to avoid an error.
5656 Use char because int might match the return type of a GCC
5657 builtin and then its argument prototype would still apply. */
5658 #ifdef __cplusplus
5659 extern "C"
5660 #endif
5661 char lt_dlopen ();
5662 int
5663 main ()
5664 {
5665 return lt_dlopen ();
5666 ;
5667 return 0;
5668 }
5669 _ACEOF
5670 if ac_fn_c_try_link "$LINENO"; then :
5671 ac_cv_lib_ltdl_lt_dlopen=yes
5672 else
5673 ac_cv_lib_ltdl_lt_dlopen=no
5674 fi
5675 rm -f core conftest.err conftest.$ac_objext \
5676 conftest$ac_exeext conftest.$ac_ext
5677 LIBS=$ac_check_lib_save_LIBS
5678 fi
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlopen" >&5
5680 $as_echo "$ac_cv_lib_ltdl_lt_dlopen" >&6; }
5681 if test "x$ac_cv_lib_ltdl_lt_dlopen" = x""yes; then :
5682 cat >>confdefs.h <<_ACEOF
5683 #define HAVE_LIBLTDL 1
5684 _ACEOF
5685
5686 LIBS="-lltdl $LIBS"
5687
5688 else
5689 as_fn_error "cannot find libltdl" "$LINENO" 5
5690 fi
5691
5692 ;;
5693 xno) COMPILE_WRAPPERS=no ;;
5694 x) COMPILE_WRAPPERS=yes ;;
5695 *) COMPILE_WRAPPERS=yes ;;
5696 esac
5697 else
5698 COMPILE_WRAPPERS=no
5699 fi
5700
5701 if test "x${COMPILE_WRAPPERS}" = xyes; then
5702 CREATE_WRAPPERS_TRUE=
5703 CREATE_WRAPPERS_FALSE='#'
5704 else
5705 CREATE_WRAPPERS_TRUE='#'
5706 CREATE_WRAPPERS_FALSE=
5707 fi
5708
5709
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5711 $as_echo_n "checking whether ln -s works... " >&6; }
5712 LN_S=$as_ln_s
5713 if test "$LN_S" = "ln -s"; then
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5715 $as_echo "yes" >&6; }
5716 else
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5718 $as_echo "no, using $LN_S" >&6; }
5719 fi
5720
5721
5722
5723
5724 # Check whether --enable-static was given.
5725 if test "${enable_static+set}" = set; then :
5726 enableval=$enable_static; p=${PACKAGE-default}
5727 case $enableval in
5728 yes) enable_static=yes ;;
5729 no) enable_static=no ;;
5730 *)
5731 enable_static=no
5732 # Look at the argument we got. We use all the common list separators.
5733 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5734 for pkg in $enableval; do
5735 IFS="$lt_save_ifs"
5736 if test "X$pkg" = "X$p"; then
5737 enable_static=yes
5738 fi
5739 done
5740 IFS="$lt_save_ifs"
5741 ;;
5742 esac
5743 else
5744 enable_static=no
5745 fi
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755 case `pwd` in
5756 *\ * | *\ *)
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5758 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5759 esac
5760
5761
5762
5763 macro_version='2.2.7a'
5764 macro_revision='1.3134'
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778 ltmain="$ac_aux_dir/ltmain.sh"
5779
5780 # Backslashify metacharacters that are still active within
5781 # double-quoted strings.
5782 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5783
5784 # Same as above, but do not quote variable references.
5785 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5786
5787 # Sed substitution to delay expansion of an escaped shell variable in a
5788 # double_quote_subst'ed string.
5789 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5790
5791 # Sed substitution to delay expansion of an escaped single quote.
5792 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5793
5794 # Sed substitution to avoid accidental globbing in evaled expressions
5795 no_glob_subst='s/\*/\\\*/g'
5796
5797 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5798 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5799 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5800
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5802 $as_echo_n "checking how to print strings... " >&6; }
5803 # Test print first, because it will be a builtin if present.
5804 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5805 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5806 ECHO='print -r --'
5807 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5808 ECHO='printf %s\n'
5809 else
5810 # Use this function as a fallback that always works.
5811 func_fallback_echo ()
5812 {
5813 eval 'cat <<_LTECHO_EOF
5814 $1
5815 _LTECHO_EOF'
5816 }
5817 ECHO='func_fallback_echo'
5818 fi
5819
5820 # func_echo_all arg...
5821 # Invoke $ECHO with all args, space-separated.
5822 func_echo_all ()
5823 {
5824 $ECHO ""
5825 }
5826
5827 case "$ECHO" in
5828 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5829 $as_echo "printf" >&6; } ;;
5830 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5831 $as_echo "print -r" >&6; } ;;
5832 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5833 $as_echo "cat" >&6; } ;;
5834 esac
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5850 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5851 if test "${ac_cv_path_SED+set}" = set; then :
5852 $as_echo_n "(cached) " >&6
5853 else
5854 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5855 for ac_i in 1 2 3 4 5 6 7; do
5856 ac_script="$ac_script$as_nl$ac_script"
5857 done
5858 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5859 { ac_script=; unset ac_script;}
5860 if test -z "$SED"; then
5861 ac_path_SED_found=false
5862 # Loop through the user's path and test for each of PROGNAME-LIST
5863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864 for as_dir in $PATH
5865 do
5866 IFS=$as_save_IFS
5867 test -z "$as_dir" && as_dir=.
5868 for ac_prog in sed gsed; do
5869 for ac_exec_ext in '' $ac_executable_extensions; do
5870 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5871 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5872 # Check for GNU ac_path_SED and select it if it is found.
5873 # Check for GNU $ac_path_SED
5874 case `"$ac_path_SED" --version 2>&1` in
5875 *GNU*)
5876 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5877 *)
5878 ac_count=0
5879 $as_echo_n 0123456789 >"conftest.in"
5880 while :
5881 do
5882 cat "conftest.in" "conftest.in" >"conftest.tmp"
5883 mv "conftest.tmp" "conftest.in"
5884 cp "conftest.in" "conftest.nl"
5885 $as_echo '' >> "conftest.nl"
5886 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5887 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5888 as_fn_arith $ac_count + 1 && ac_count=$as_val
5889 if test $ac_count -gt ${ac_path_SED_max-0}; then
5890 # Best one so far, save it but keep looking for a better one
5891 ac_cv_path_SED="$ac_path_SED"
5892 ac_path_SED_max=$ac_count
5893 fi
5894 # 10*(2^10) chars as input seems more than enough
5895 test $ac_count -gt 10 && break
5896 done
5897 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5898 esac
5899
5900 $ac_path_SED_found && break 3
5901 done
5902 done
5903 done
5904 IFS=$as_save_IFS
5905 if test -z "$ac_cv_path_SED"; then
5906 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5907 fi
5908 else
5909 ac_cv_path_SED=$SED
5910 fi
5911
5912 fi
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5914 $as_echo "$ac_cv_path_SED" >&6; }
5915 SED="$ac_cv_path_SED"
5916 rm -f conftest.sed
5917
5918 test -z "$SED" && SED=sed
5919 Xsed="$SED -e 1s/^X//"
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5932 $as_echo_n "checking for fgrep... " >&6; }
5933 if test "${ac_cv_path_FGREP+set}" = set; then :
5934 $as_echo_n "(cached) " >&6
5935 else
5936 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5937 then ac_cv_path_FGREP="$GREP -F"
5938 else
5939 if test -z "$FGREP"; then
5940 ac_path_FGREP_found=false
5941 # Loop through the user's path and test for each of PROGNAME-LIST
5942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5944 do
5945 IFS=$as_save_IFS
5946 test -z "$as_dir" && as_dir=.
5947 for ac_prog in fgrep; do
5948 for ac_exec_ext in '' $ac_executable_extensions; do
5949 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5950 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5951 # Check for GNU ac_path_FGREP and select it if it is found.
5952 # Check for GNU $ac_path_FGREP
5953 case `"$ac_path_FGREP" --version 2>&1` in
5954 *GNU*)
5955 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5956 *)
5957 ac_count=0
5958 $as_echo_n 0123456789 >"conftest.in"
5959 while :
5960 do
5961 cat "conftest.in" "conftest.in" >"conftest.tmp"
5962 mv "conftest.tmp" "conftest.in"
5963 cp "conftest.in" "conftest.nl"
5964 $as_echo 'FGREP' >> "conftest.nl"
5965 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5966 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5967 as_fn_arith $ac_count + 1 && ac_count=$as_val
5968 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5969 # Best one so far, save it but keep looking for a better one
5970 ac_cv_path_FGREP="$ac_path_FGREP"
5971 ac_path_FGREP_max=$ac_count
5972 fi
5973 # 10*(2^10) chars as input seems more than enough
5974 test $ac_count -gt 10 && break
5975 done
5976 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5977 esac
5978
5979 $ac_path_FGREP_found && break 3
5980 done
5981 done
5982 done
5983 IFS=$as_save_IFS
5984 if test -z "$ac_cv_path_FGREP"; then
5985 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5986 fi
5987 else
5988 ac_cv_path_FGREP=$FGREP
5989 fi
5990
5991 fi
5992 fi
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5994 $as_echo "$ac_cv_path_FGREP" >&6; }
5995 FGREP="$ac_cv_path_FGREP"
5996
5997
5998 test -z "$GREP" && GREP=grep
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018 # Check whether --with-gnu-ld was given.
6019 if test "${with_gnu_ld+set}" = set; then :
6020 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6021 else
6022 with_gnu_ld=no
6023 fi
6024
6025 ac_prog=ld
6026 if test "$GCC" = yes; then
6027 # Check if gcc -print-prog-name=ld gives a path.
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6029 $as_echo_n "checking for ld used by $CC... " >&6; }
6030 case $host in
6031 *-*-mingw*)
6032 # gcc leaves a trailing carriage return which upsets mingw
6033 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6034 *)
6035 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6036 esac
6037 case $ac_prog in
6038 # Accept absolute paths.
6039 [\\/]* | ?:[\\/]*)
6040 re_direlt='/[^/][^/]*/\.\./'
6041 # Canonicalize the pathname of ld
6042 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6043 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6044 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6045 done
6046 test -z "$LD" && LD="$ac_prog"
6047 ;;
6048 "")
6049 # If it fails, then pretend we aren't using GCC.
6050 ac_prog=ld
6051 ;;
6052 *)
6053 # If it is relative, then search for the first ld in PATH.
6054 with_gnu_ld=unknown
6055 ;;
6056 esac
6057 elif test "$with_gnu_ld" = yes; then
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6059 $as_echo_n "checking for GNU ld... " >&6; }
6060 else
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6062 $as_echo_n "checking for non-GNU ld... " >&6; }
6063 fi
6064 if test "${lt_cv_path_LD+set}" = set; then :
6065 $as_echo_n "(cached) " >&6
6066 else
6067 if test -z "$LD"; then
6068 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6069 for ac_dir in $PATH; do
6070 IFS="$lt_save_ifs"
6071 test -z "$ac_dir" && ac_dir=.
6072 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6073 lt_cv_path_LD="$ac_dir/$ac_prog"
6074 # Check to see if the program is GNU ld. I'd rather use --version,
6075 # but apparently some variants of GNU ld only accept -v.
6076 # Break only if it was the GNU/non-GNU ld that we prefer.
6077 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6078 *GNU* | *'with BFD'*)
6079 test "$with_gnu_ld" != no && break
6080 ;;
6081 *)
6082 test "$with_gnu_ld" != yes && break
6083 ;;
6084 esac
6085 fi
6086 done
6087 IFS="$lt_save_ifs"
6088 else
6089 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6090 fi
6091 fi
6092
6093 LD="$lt_cv_path_LD"
6094 if test -n "$LD"; then
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6096 $as_echo "$LD" >&6; }
6097 else
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6099 $as_echo "no" >&6; }
6100 fi
6101 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6103 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6104 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6105 $as_echo_n "(cached) " >&6
6106 else
6107 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6108 case `$LD -v 2>&1 </dev/null` in
6109 *GNU* | *'with BFD'*)
6110 lt_cv_prog_gnu_ld=yes
6111 ;;
6112 *)
6113 lt_cv_prog_gnu_ld=no
6114 ;;
6115 esac
6116 fi
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6118 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6119 with_gnu_ld=$lt_cv_prog_gnu_ld
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6130 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6131 if test "${lt_cv_path_NM+set}" = set; then :
6132 $as_echo_n "(cached) " >&6
6133 else
6134 if test -n "$NM"; then
6135 # Let the user override the test.
6136 lt_cv_path_NM="$NM"
6137 else
6138 lt_nm_to_check="${ac_tool_prefix}nm"
6139 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6140 lt_nm_to_check="$lt_nm_to_check nm"
6141 fi
6142 for lt_tmp_nm in $lt_nm_to_check; do
6143 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6144 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6145 IFS="$lt_save_ifs"
6146 test -z "$ac_dir" && ac_dir=.
6147 tmp_nm="$ac_dir/$lt_tmp_nm"
6148 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6149 # Check to see if the nm accepts a BSD-compat flag.
6150 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6151 # nm: unknown option "B" ignored
6152 # Tru64's nm complains that /dev/null is an invalid object file
6153 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6154 */dev/null* | *'Invalid file or object type'*)
6155 lt_cv_path_NM="$tmp_nm -B"
6156 break
6157 ;;
6158 *)
6159 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6160 */dev/null*)
6161 lt_cv_path_NM="$tmp_nm -p"
6162 break
6163 ;;
6164 *)
6165 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6166 continue # so that we can try to find one that supports BSD flags
6167 ;;
6168 esac
6169 ;;
6170 esac
6171 fi
6172 done
6173 IFS="$lt_save_ifs"
6174 done
6175 : ${lt_cv_path_NM=no}
6176 fi
6177 fi
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6179 $as_echo "$lt_cv_path_NM" >&6; }
6180 if test "$lt_cv_path_NM" != "no"; then
6181 NM="$lt_cv_path_NM"
6182 else
6183 # Didn't find any BSD compatible name lister, look for dumpbin.
6184 if test -n "$DUMPBIN"; then :
6185 # Let the user override the test.
6186 else
6187 if test -n "$ac_tool_prefix"; then
6188 for ac_prog in dumpbin "link -dump"
6189 do
6190 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6191 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6193 $as_echo_n "checking for $ac_word... " >&6; }
6194 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6195 $as_echo_n "(cached) " >&6
6196 else
6197 if test -n "$DUMPBIN"; then
6198 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6199 else
6200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201 for as_dir in $PATH
6202 do
6203 IFS=$as_save_IFS
6204 test -z "$as_dir" && as_dir=.
6205 for ac_exec_ext in '' $ac_executable_extensions; do
6206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6207 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6209 break 2
6210 fi
6211 done
6212 done
6213 IFS=$as_save_IFS
6214
6215 fi
6216 fi
6217 DUMPBIN=$ac_cv_prog_DUMPBIN
6218 if test -n "$DUMPBIN"; then
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6220 $as_echo "$DUMPBIN" >&6; }
6221 else
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6223 $as_echo "no" >&6; }
6224 fi
6225
6226
6227 test -n "$DUMPBIN" && break
6228 done
6229 fi
6230 if test -z "$DUMPBIN"; then
6231 ac_ct_DUMPBIN=$DUMPBIN
6232 for ac_prog in dumpbin "link -dump"
6233 do
6234 # Extract the first word of "$ac_prog", so it can be a program name with args.
6235 set dummy $ac_prog; ac_word=$2
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6237 $as_echo_n "checking for $ac_word... " >&6; }
6238 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6239 $as_echo_n "(cached) " >&6
6240 else
6241 if test -n "$ac_ct_DUMPBIN"; then
6242 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6243 else
6244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245 for as_dir in $PATH
6246 do
6247 IFS=$as_save_IFS
6248 test -z "$as_dir" && as_dir=.
6249 for ac_exec_ext in '' $ac_executable_extensions; do
6250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6251 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6253 break 2
6254 fi
6255 done
6256 done
6257 IFS=$as_save_IFS
6258
6259 fi
6260 fi
6261 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6262 if test -n "$ac_ct_DUMPBIN"; then
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6264 $as_echo "$ac_ct_DUMPBIN" >&6; }
6265 else
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6267 $as_echo "no" >&6; }
6268 fi
6269
6270
6271 test -n "$ac_ct_DUMPBIN" && break
6272 done
6273
6274 if test "x$ac_ct_DUMPBIN" = x; then
6275 DUMPBIN=":"
6276 else
6277 case $cross_compiling:$ac_tool_warned in
6278 yes:)
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6281 ac_tool_warned=yes ;;
6282 esac
6283 DUMPBIN=$ac_ct_DUMPBIN
6284 fi
6285 fi
6286
6287 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6288 *COFF*)
6289 DUMPBIN="$DUMPBIN -symbols"
6290 ;;
6291 *)
6292 DUMPBIN=:
6293 ;;
6294 esac
6295 fi
6296
6297 if test "$DUMPBIN" != ":"; then
6298 NM="$DUMPBIN"
6299 fi
6300 fi
6301 test -z "$NM" && NM=nm
6302
6303
6304
6305
6306
6307
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6309 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6310 if test "${lt_cv_nm_interface+set}" = set; then :
6311 $as_echo_n "(cached) " >&6
6312 else
6313 lt_cv_nm_interface="BSD nm"
6314 echo "int some_variable = 0;" > conftest.$ac_ext
6315 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6316 (eval "$ac_compile" 2>conftest.err)
6317 cat conftest.err >&5
6318 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6319 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6320 cat conftest.err >&5
6321 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6322 cat conftest.out >&5
6323 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6324 lt_cv_nm_interface="MS dumpbin"
6325 fi
6326 rm -f conftest*
6327 fi
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6329 $as_echo "$lt_cv_nm_interface" >&6; }
6330
6331 # find the maximum length of command line arguments
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6333 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6334 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6335 $as_echo_n "(cached) " >&6
6336 else
6337 i=0
6338 teststring="ABCD"
6339
6340 case $build_os in
6341 msdosdjgpp*)
6342 # On DJGPP, this test can blow up pretty badly due to problems in libc
6343 # (any single argument exceeding 2000 bytes causes a buffer overrun
6344 # during glob expansion). Even if it were fixed, the result of this
6345 # check would be larger than it should be.
6346 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6347 ;;
6348
6349 gnu*)
6350 # Under GNU Hurd, this test is not required because there is
6351 # no limit to the length of command line arguments.
6352 # Libtool will interpret -1 as no limit whatsoever
6353 lt_cv_sys_max_cmd_len=-1;
6354 ;;
6355
6356 cygwin* | mingw* | cegcc*)
6357 # On Win9x/ME, this test blows up -- it succeeds, but takes
6358 # about 5 minutes as the teststring grows exponentially.
6359 # Worse, since 9x/ME are not pre-emptively multitasking,
6360 # you end up with a "frozen" computer, even though with patience
6361 # the test eventually succeeds (with a max line length of 256k).
6362 # Instead, let's just punt: use the minimum linelength reported by
6363 # all of the supported platforms: 8192 (on NT/2K/XP).
6364 lt_cv_sys_max_cmd_len=8192;
6365 ;;
6366
6367 mint*)
6368 # On MiNT this can take a long time and run out of memory.
6369 lt_cv_sys_max_cmd_len=8192;
6370 ;;
6371
6372 amigaos*)
6373 # On AmigaOS with pdksh, this test takes hours, literally.
6374 # So we just punt and use a minimum line length of 8192.
6375 lt_cv_sys_max_cmd_len=8192;
6376 ;;
6377
6378 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6379 # This has been around since 386BSD, at least. Likely further.
6380 if test -x /sbin/sysctl; then
6381 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6382 elif test -x /usr/sbin/sysctl; then
6383 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6384 else
6385 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6386 fi
6387 # And add a safety zone
6388 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6389 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6390 ;;
6391
6392 interix*)
6393 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6394 lt_cv_sys_max_cmd_len=196608
6395 ;;
6396
6397 osf*)
6398 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6399 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6400 # nice to cause kernel panics so lets avoid the loop below.
6401 # First set a reasonable default.
6402 lt_cv_sys_max_cmd_len=16384
6403 #
6404 if test -x /sbin/sysconfig; then
6405 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6406 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6407 esac
6408 fi
6409 ;;
6410 sco3.2v5*)
6411 lt_cv_sys_max_cmd_len=102400
6412 ;;
6413 sysv5* | sco5v6* | sysv4.2uw2*)
6414 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6415 if test -n "$kargmax"; then
6416 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6417 else
6418 lt_cv_sys_max_cmd_len=32768
6419 fi
6420 ;;
6421 *)
6422 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6423 if test -n "$lt_cv_sys_max_cmd_len"; then
6424 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6425 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6426 else
6427 # Make teststring a little bigger before we do anything with it.
6428 # a 1K string should be a reasonable start.
6429 for i in 1 2 3 4 5 6 7 8 ; do
6430 teststring=$teststring$teststring
6431 done
6432 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6433 # If test is not a shell built-in, we'll probably end up computing a
6434 # maximum length that is only half of the actual maximum length, but
6435 # we can't tell.
6436 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6437 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6438 test $i != 17 # 1/2 MB should be enough
6439 do
6440 i=`expr $i + 1`
6441 teststring=$teststring$teststring
6442 done
6443 # Only check the string length outside the loop.
6444 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6445 teststring=
6446 # Add a significant safety factor because C++ compilers can tack on
6447 # massive amounts of additional arguments before passing them to the
6448 # linker. It appears as though 1/2 is a usable value.
6449 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6450 fi
6451 ;;
6452 esac
6453
6454 fi
6455
6456 if test -n $lt_cv_sys_max_cmd_len ; then
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6458 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6459 else
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6461 $as_echo "none" >&6; }
6462 fi
6463 max_cmd_len=$lt_cv_sys_max_cmd_len
6464
6465
6466
6467
6468
6469
6470 : ${CP="cp -f"}
6471 : ${MV="mv -f"}
6472 : ${RM="rm -f"}
6473
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6475 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6476 # Try some XSI features
6477 xsi_shell=no
6478 ( _lt_dummy="a/b/c"
6479 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6480 = c,a/b,, \
6481 && eval 'test $(( 1 + 1 )) -eq 2 \
6482 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6483 && xsi_shell=yes
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6485 $as_echo "$xsi_shell" >&6; }
6486
6487
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6489 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6490 lt_shell_append=no
6491 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6492 >/dev/null 2>&1 \
6493 && lt_shell_append=yes
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6495 $as_echo "$lt_shell_append" >&6; }
6496
6497
6498 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6499 lt_unset=unset
6500 else
6501 lt_unset=false
6502 fi
6503
6504
6505
6506
6507
6508 # test EBCDIC or ASCII
6509 case `echo X|tr X '\101'` in
6510 A) # ASCII based system
6511 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6512 lt_SP2NL='tr \040 \012'
6513 lt_NL2SP='tr \015\012 \040\040'
6514 ;;
6515 *) # EBCDIC based system
6516 lt_SP2NL='tr \100 \n'
6517 lt_NL2SP='tr \r\n \100\100'
6518 ;;
6519 esac
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6530 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6531 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6532 $as_echo_n "(cached) " >&6
6533 else
6534 lt_cv_ld_reload_flag='-r'
6535 fi
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6537 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6538 reload_flag=$lt_cv_ld_reload_flag
6539 case $reload_flag in
6540 "" | " "*) ;;
6541 *) reload_flag=" $reload_flag" ;;
6542 esac
6543 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6544 case $host_os in
6545 darwin*)
6546 if test "$GCC" = yes; then
6547 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6548 else
6549 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6550 fi
6551 ;;
6552 esac
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562 if test -n "$ac_tool_prefix"; then
6563 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6564 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6566 $as_echo_n "checking for $ac_word... " >&6; }
6567 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6568 $as_echo_n "(cached) " >&6
6569 else
6570 if test -n "$OBJDUMP"; then
6571 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6572 else
6573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6574 for as_dir in $PATH
6575 do
6576 IFS=$as_save_IFS
6577 test -z "$as_dir" && as_dir=.
6578 for ac_exec_ext in '' $ac_executable_extensions; do
6579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6580 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6582 break 2
6583 fi
6584 done
6585 done
6586 IFS=$as_save_IFS
6587
6588 fi
6589 fi
6590 OBJDUMP=$ac_cv_prog_OBJDUMP
6591 if test -n "$OBJDUMP"; then
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6593 $as_echo "$OBJDUMP" >&6; }
6594 else
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6596 $as_echo "no" >&6; }
6597 fi
6598
6599
6600 fi
6601 if test -z "$ac_cv_prog_OBJDUMP"; then
6602 ac_ct_OBJDUMP=$OBJDUMP
6603 # Extract the first word of "objdump", so it can be a program name with args.
6604 set dummy objdump; ac_word=$2
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6606 $as_echo_n "checking for $ac_word... " >&6; }
6607 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6608 $as_echo_n "(cached) " >&6
6609 else
6610 if test -n "$ac_ct_OBJDUMP"; then
6611 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6612 else
6613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6614 for as_dir in $PATH
6615 do
6616 IFS=$as_save_IFS
6617 test -z "$as_dir" && as_dir=.
6618 for ac_exec_ext in '' $ac_executable_extensions; do
6619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6620 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6622 break 2
6623 fi
6624 done
6625 done
6626 IFS=$as_save_IFS
6627
6628 fi
6629 fi
6630 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6631 if test -n "$ac_ct_OBJDUMP"; then
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6633 $as_echo "$ac_ct_OBJDUMP" >&6; }
6634 else
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6636 $as_echo "no" >&6; }
6637 fi
6638
6639 if test "x$ac_ct_OBJDUMP" = x; then
6640 OBJDUMP="false"
6641 else
6642 case $cross_compiling:$ac_tool_warned in
6643 yes:)
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6646 ac_tool_warned=yes ;;
6647 esac
6648 OBJDUMP=$ac_ct_OBJDUMP
6649 fi
6650 else
6651 OBJDUMP="$ac_cv_prog_OBJDUMP"
6652 fi
6653
6654 test -z "$OBJDUMP" && OBJDUMP=objdump
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6665 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6666 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6667 $as_echo_n "(cached) " >&6
6668 else
6669 lt_cv_file_magic_cmd='$MAGIC_CMD'
6670 lt_cv_file_magic_test_file=
6671 lt_cv_deplibs_check_method='unknown'
6672 # Need to set the preceding variable on all platforms that support
6673 # interlibrary dependencies.
6674 # 'none' -- dependencies not supported.
6675 # `unknown' -- same as none, but documents that we really don't know.
6676 # 'pass_all' -- all dependencies passed with no checks.
6677 # 'test_compile' -- check by making test program.
6678 # 'file_magic [[regex]]' -- check by looking for files in library path
6679 # which responds to the $file_magic_cmd with a given extended regex.
6680 # If you have `file' or equivalent on your system and you're not sure
6681 # whether `pass_all' will *always* work, you probably want this one.
6682
6683 case $host_os in
6684 aix[4-9]*)
6685 lt_cv_deplibs_check_method=pass_all
6686 ;;
6687
6688 beos*)
6689 lt_cv_deplibs_check_method=pass_all
6690 ;;
6691
6692 bsdi[45]*)
6693 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6694 lt_cv_file_magic_cmd='/usr/bin/file -L'
6695 lt_cv_file_magic_test_file=/shlib/libc.so
6696 ;;
6697
6698 cygwin*)
6699 # func_win32_libid is a shell function defined in ltmain.sh
6700 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6701 lt_cv_file_magic_cmd='func_win32_libid'
6702 ;;
6703
6704 mingw* | pw32*)
6705 # Base MSYS/MinGW do not provide the 'file' command needed by
6706 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6707 # unless we find 'file', for example because we are cross-compiling.
6708 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6709 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6710 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6711 lt_cv_file_magic_cmd='func_win32_libid'
6712 else
6713 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6714 lt_cv_file_magic_cmd='$OBJDUMP -f'
6715 fi
6716 ;;
6717
6718 cegcc*)
6719 # use the weaker test based on 'objdump'. See mingw*.
6720 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6721 lt_cv_file_magic_cmd='$OBJDUMP -f'
6722 ;;
6723
6724 darwin* | rhapsody*)
6725 lt_cv_deplibs_check_method=pass_all
6726 ;;
6727
6728 freebsd* | dragonfly*)
6729 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6730 case $host_cpu in
6731 i*86 )
6732 # Not sure whether the presence of OpenBSD here was a mistake.
6733 # Let's accept both of them until this is cleared up.
6734 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6735 lt_cv_file_magic_cmd=/usr/bin/file
6736 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6737 ;;
6738 esac
6739 else
6740 lt_cv_deplibs_check_method=pass_all
6741 fi
6742 ;;
6743
6744 gnu*)
6745 lt_cv_deplibs_check_method=pass_all
6746 ;;
6747
6748 haiku*)
6749 lt_cv_deplibs_check_method=pass_all
6750 ;;
6751
6752 hpux10.20* | hpux11*)
6753 lt_cv_file_magic_cmd=/usr/bin/file
6754 case $host_cpu in
6755 ia64*)
6756 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6757 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6758 ;;
6759 hppa*64*)
6760 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]'
6761 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6762 ;;
6763 *)
6764 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6765 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6766 ;;
6767 esac
6768 ;;
6769
6770 interix[3-9]*)
6771 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6772 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6773 ;;
6774
6775 irix5* | irix6* | nonstopux*)
6776 case $LD in
6777 *-32|*"-32 ") libmagic=32-bit;;
6778 *-n32|*"-n32 ") libmagic=N32;;
6779 *-64|*"-64 ") libmagic=64-bit;;
6780 *) libmagic=never-match;;
6781 esac
6782 lt_cv_deplibs_check_method=pass_all
6783 ;;
6784
6785 # This must be Linux ELF.
6786 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6787 lt_cv_deplibs_check_method=pass_all
6788 ;;
6789
6790 netbsd*)
6791 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6792 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6793 else
6794 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6795 fi
6796 ;;
6797
6798 newos6*)
6799 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6800 lt_cv_file_magic_cmd=/usr/bin/file
6801 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6802 ;;
6803
6804 *nto* | *qnx*)
6805 lt_cv_deplibs_check_method=pass_all
6806 ;;
6807
6808 openbsd*)
6809 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6810 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6811 else
6812 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6813 fi
6814 ;;
6815
6816 osf3* | osf4* | osf5*)
6817 lt_cv_deplibs_check_method=pass_all
6818 ;;
6819
6820 rdos*)
6821 lt_cv_deplibs_check_method=pass_all
6822 ;;
6823
6824 solaris*)
6825 lt_cv_deplibs_check_method=pass_all
6826 ;;
6827
6828 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6829 lt_cv_deplibs_check_method=pass_all
6830 ;;
6831
6832 sysv4 | sysv4.3*)
6833 case $host_vendor in
6834 motorola)
6835 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]'
6836 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6837 ;;
6838 ncr)
6839 lt_cv_deplibs_check_method=pass_all
6840 ;;
6841 sequent)
6842 lt_cv_file_magic_cmd='/bin/file'
6843 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6844 ;;
6845 sni)
6846 lt_cv_file_magic_cmd='/bin/file'
6847 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6848 lt_cv_file_magic_test_file=/lib/libc.so
6849 ;;
6850 siemens)
6851 lt_cv_deplibs_check_method=pass_all
6852 ;;
6853 pc)
6854 lt_cv_deplibs_check_method=pass_all
6855 ;;
6856 esac
6857 ;;
6858
6859 tpf*)
6860 lt_cv_deplibs_check_method=pass_all
6861 ;;
6862 esac
6863
6864 fi
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6866 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6867 file_magic_cmd=$lt_cv_file_magic_cmd
6868 deplibs_check_method=$lt_cv_deplibs_check_method
6869 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882 if test -n "$ac_tool_prefix"; then
6883 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6884 set dummy ${ac_tool_prefix}ar; ac_word=$2
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6886 $as_echo_n "checking for $ac_word... " >&6; }
6887 if test "${ac_cv_prog_AR+set}" = set; then :
6888 $as_echo_n "(cached) " >&6
6889 else
6890 if test -n "$AR"; then
6891 ac_cv_prog_AR="$AR" # Let the user override the test.
6892 else
6893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6894 for as_dir in $PATH
6895 do
6896 IFS=$as_save_IFS
6897 test -z "$as_dir" && as_dir=.
6898 for ac_exec_ext in '' $ac_executable_extensions; do
6899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6900 ac_cv_prog_AR="${ac_tool_prefix}ar"
6901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6902 break 2
6903 fi
6904 done
6905 done
6906 IFS=$as_save_IFS
6907
6908 fi
6909 fi
6910 AR=$ac_cv_prog_AR
6911 if test -n "$AR"; then
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6913 $as_echo "$AR" >&6; }
6914 else
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6916 $as_echo "no" >&6; }
6917 fi
6918
6919
6920 fi
6921 if test -z "$ac_cv_prog_AR"; then
6922 ac_ct_AR=$AR
6923 # Extract the first word of "ar", so it can be a program name with args.
6924 set dummy ar; ac_word=$2
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6926 $as_echo_n "checking for $ac_word... " >&6; }
6927 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6928 $as_echo_n "(cached) " >&6
6929 else
6930 if test -n "$ac_ct_AR"; then
6931 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6932 else
6933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934 for as_dir in $PATH
6935 do
6936 IFS=$as_save_IFS
6937 test -z "$as_dir" && as_dir=.
6938 for ac_exec_ext in '' $ac_executable_extensions; do
6939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6940 ac_cv_prog_ac_ct_AR="ar"
6941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6942 break 2
6943 fi
6944 done
6945 done
6946 IFS=$as_save_IFS
6947
6948 fi
6949 fi
6950 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6951 if test -n "$ac_ct_AR"; then
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6953 $as_echo "$ac_ct_AR" >&6; }
6954 else
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6956 $as_echo "no" >&6; }
6957 fi
6958
6959 if test "x$ac_ct_AR" = x; then
6960 AR="false"
6961 else
6962 case $cross_compiling:$ac_tool_warned in
6963 yes:)
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6966 ac_tool_warned=yes ;;
6967 esac
6968 AR=$ac_ct_AR
6969 fi
6970 else
6971 AR="$ac_cv_prog_AR"
6972 fi
6973
6974 test -z "$AR" && AR=ar
6975 test -z "$AR_FLAGS" && AR_FLAGS=cru
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987 if test -n "$ac_tool_prefix"; then
6988 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6989 set dummy ${ac_tool_prefix}strip; ac_word=$2
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6991 $as_echo_n "checking for $ac_word... " >&6; }
6992 if test "${ac_cv_prog_STRIP+set}" = set; then :
6993 $as_echo_n "(cached) " >&6
6994 else
6995 if test -n "$STRIP"; then
6996 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6997 else
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 for as_dir in $PATH
7000 do
7001 IFS=$as_save_IFS
7002 test -z "$as_dir" && as_dir=.
7003 for ac_exec_ext in '' $ac_executable_extensions; do
7004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7005 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7007 break 2
7008 fi
7009 done
7010 done
7011 IFS=$as_save_IFS
7012
7013 fi
7014 fi
7015 STRIP=$ac_cv_prog_STRIP
7016 if test -n "$STRIP"; then
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7018 $as_echo "$STRIP" >&6; }
7019 else
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7021 $as_echo "no" >&6; }
7022 fi
7023
7024
7025 fi
7026 if test -z "$ac_cv_prog_STRIP"; then
7027 ac_ct_STRIP=$STRIP
7028 # Extract the first word of "strip", so it can be a program name with args.
7029 set dummy strip; ac_word=$2
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7031 $as_echo_n "checking for $ac_word... " >&6; }
7032 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7033 $as_echo_n "(cached) " >&6
7034 else
7035 if test -n "$ac_ct_STRIP"; then
7036 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7037 else
7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039 for as_dir in $PATH
7040 do
7041 IFS=$as_save_IFS
7042 test -z "$as_dir" && as_dir=.
7043 for ac_exec_ext in '' $ac_executable_extensions; do
7044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7045 ac_cv_prog_ac_ct_STRIP="strip"
7046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7047 break 2
7048 fi
7049 done
7050 done
7051 IFS=$as_save_IFS
7052
7053 fi
7054 fi
7055 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7056 if test -n "$ac_ct_STRIP"; then
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7058 $as_echo "$ac_ct_STRIP" >&6; }
7059 else
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7061 $as_echo "no" >&6; }
7062 fi
7063
7064 if test "x$ac_ct_STRIP" = x; then
7065 STRIP=":"
7066 else
7067 case $cross_compiling:$ac_tool_warned in
7068 yes:)
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7071 ac_tool_warned=yes ;;
7072 esac
7073 STRIP=$ac_ct_STRIP
7074 fi
7075 else
7076 STRIP="$ac_cv_prog_STRIP"
7077 fi
7078
7079 test -z "$STRIP" && STRIP=:
7080
7081
7082
7083
7084
7085
7086 if test -n "$ac_tool_prefix"; then
7087 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7088 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7090 $as_echo_n "checking for $ac_word... " >&6; }
7091 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7092 $as_echo_n "(cached) " >&6
7093 else
7094 if test -n "$RANLIB"; then
7095 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7096 else
7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098 for as_dir in $PATH
7099 do
7100 IFS=$as_save_IFS
7101 test -z "$as_dir" && as_dir=.
7102 for ac_exec_ext in '' $ac_executable_extensions; do
7103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7104 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7106 break 2
7107 fi
7108 done
7109 done
7110 IFS=$as_save_IFS
7111
7112 fi
7113 fi
7114 RANLIB=$ac_cv_prog_RANLIB
7115 if test -n "$RANLIB"; then
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7117 $as_echo "$RANLIB" >&6; }
7118 else
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7120 $as_echo "no" >&6; }
7121 fi
7122
7123
7124 fi
7125 if test -z "$ac_cv_prog_RANLIB"; then
7126 ac_ct_RANLIB=$RANLIB
7127 # Extract the first word of "ranlib", so it can be a program name with args.
7128 set dummy ranlib; ac_word=$2
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7130 $as_echo_n "checking for $ac_word... " >&6; }
7131 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7132 $as_echo_n "(cached) " >&6
7133 else
7134 if test -n "$ac_ct_RANLIB"; then
7135 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7136 else
7137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138 for as_dir in $PATH
7139 do
7140 IFS=$as_save_IFS
7141 test -z "$as_dir" && as_dir=.
7142 for ac_exec_ext in '' $ac_executable_extensions; do
7143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7144 ac_cv_prog_ac_ct_RANLIB="ranlib"
7145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 break 2
7147 fi
7148 done
7149 done
7150 IFS=$as_save_IFS
7151
7152 fi
7153 fi
7154 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7155 if test -n "$ac_ct_RANLIB"; then
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7157 $as_echo "$ac_ct_RANLIB" >&6; }
7158 else
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7160 $as_echo "no" >&6; }
7161 fi
7162
7163 if test "x$ac_ct_RANLIB" = x; then
7164 RANLIB=":"
7165 else
7166 case $cross_compiling:$ac_tool_warned in
7167 yes:)
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7170 ac_tool_warned=yes ;;
7171 esac
7172 RANLIB=$ac_ct_RANLIB
7173 fi
7174 else
7175 RANLIB="$ac_cv_prog_RANLIB"
7176 fi
7177
7178 test -z "$RANLIB" && RANLIB=:
7179
7180
7181
7182
7183
7184
7185 # Determine commands to create old-style static archives.
7186 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7187 old_postinstall_cmds='chmod 644 $oldlib'
7188 old_postuninstall_cmds=
7189
7190 if test -n "$RANLIB"; then
7191 case $host_os in
7192 openbsd*)
7193 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7194 ;;
7195 *)
7196 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7197 ;;
7198 esac
7199 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7200 fi
7201
7202 case $host_os in
7203 darwin*)
7204 lock_old_archive_extraction=yes ;;
7205 *)
7206 lock_old_archive_extraction=no ;;
7207 esac
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247 # If no C compiler was specified, use CC.
7248 LTCC=${LTCC-"$CC"}
7249
7250 # If no C compiler flags were specified, use CFLAGS.
7251 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7252
7253 # Allow CC to be a program name with arguments.
7254 compiler=$CC
7255
7256
7257 # Check for command to grab the raw symbol name followed by C symbol from nm.
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7259 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7260 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7261 $as_echo_n "(cached) " >&6
7262 else
7263
7264 # These are sane defaults that work on at least a few old systems.
7265 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7266
7267 # Character class describing NM global symbol codes.
7268 symcode='[BCDEGRST]'
7269
7270 # Regexp to match symbols that can be accessed directly from C.
7271 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7272
7273 # Define system-specific variables.
7274 case $host_os in
7275 aix*)
7276 symcode='[BCDT]'
7277 ;;
7278 cygwin* | mingw* | pw32* | cegcc*)
7279 symcode='[ABCDGISTW]'
7280 ;;
7281 hpux*)
7282 if test "$host_cpu" = ia64; then
7283 symcode='[ABCDEGRST]'
7284 fi
7285 ;;
7286 irix* | nonstopux*)
7287 symcode='[BCDEGRST]'
7288 ;;
7289 osf*)
7290 symcode='[BCDEGQRST]'
7291 ;;
7292 solaris*)
7293 symcode='[BDRT]'
7294 ;;
7295 sco3.2v5*)
7296 symcode='[DT]'
7297 ;;
7298 sysv4.2uw2*)
7299 symcode='[DT]'
7300 ;;
7301 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7302 symcode='[ABDT]'
7303 ;;
7304 sysv4)
7305 symcode='[DFNSTU]'
7306 ;;
7307 esac
7308
7309 # If we're using GNU nm, then use its standard symbol codes.
7310 case `$NM -V 2>&1` in
7311 *GNU* | *'with BFD'*)
7312 symcode='[ABCDGIRSTW]' ;;
7313 esac
7314
7315 # Transform an extracted symbol line into a proper C declaration.
7316 # Some systems (esp. on ia64) link data and code symbols differently,
7317 # so use this general approach.
7318 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7319
7320 # Transform an extracted symbol line into symbol name and symbol address
7321 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7322 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'"
7323
7324 # Handle CRLF in mingw tool chain
7325 opt_cr=
7326 case $build_os in
7327 mingw*)
7328 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7329 ;;
7330 esac
7331
7332 # Try without a prefix underscore, then with it.
7333 for ac_symprfx in "" "_"; do
7334
7335 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7336 symxfrm="\\1 $ac_symprfx\\2 \\2"
7337
7338 # Write the raw and C identifiers.
7339 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7340 # Fake it for dumpbin and say T for any non-static function
7341 # and D for any global variable.
7342 # Also find C++ and __fastcall symbols from MSVC++,
7343 # which start with @ or ?.
7344 lt_cv_sys_global_symbol_pipe="$AWK '"\
7345 " {last_section=section; section=\$ 3};"\
7346 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7347 " \$ 0!~/External *\|/{next};"\
7348 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7349 " {if(hide[section]) next};"\
7350 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7351 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7352 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7353 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7354 " ' prfx=^$ac_symprfx"
7355 else
7356 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7357 fi
7358
7359 # Check to see that the pipe works correctly.
7360 pipe_works=no
7361
7362 rm -f conftest*
7363 cat > conftest.$ac_ext <<_LT_EOF
7364 #ifdef __cplusplus
7365 extern "C" {
7366 #endif
7367 char nm_test_var;
7368 void nm_test_func(void);
7369 void nm_test_func(void){}
7370 #ifdef __cplusplus
7371 }
7372 #endif
7373 int main(){nm_test_var='a';nm_test_func();return(0);}
7374 _LT_EOF
7375
7376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7377 (eval $ac_compile) 2>&5
7378 ac_status=$?
7379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7380 test $ac_status = 0; }; then
7381 # Now try to grab the symbols.
7382 nlist=conftest.nm
7383 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7384 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7385 ac_status=$?
7386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7387 test $ac_status = 0; } && test -s "$nlist"; then
7388 # Try sorting and uniquifying the output.
7389 if sort "$nlist" | uniq > "$nlist"T; then
7390 mv -f "$nlist"T "$nlist"
7391 else
7392 rm -f "$nlist"T
7393 fi
7394
7395 # Make sure that we snagged all the symbols we need.
7396 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7397 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7398 cat <<_LT_EOF > conftest.$ac_ext
7399 #ifdef __cplusplus
7400 extern "C" {
7401 #endif
7402
7403 _LT_EOF
7404 # Now generate the symbol file.
7405 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7406
7407 cat <<_LT_EOF >> conftest.$ac_ext
7408
7409 /* The mapping between symbol names and symbols. */
7410 const struct {
7411 const char *name;
7412 void *address;
7413 }
7414 lt__PROGRAM__LTX_preloaded_symbols[] =
7415 {
7416 { "@PROGRAM@", (void *) 0 },
7417 _LT_EOF
7418 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7419 cat <<\_LT_EOF >> conftest.$ac_ext
7420 {0, (void *) 0}
7421 };
7422
7423 /* This works around a problem in FreeBSD linker */
7424 #ifdef FREEBSD_WORKAROUND
7425 static const void *lt_preloaded_setup() {
7426 return lt__PROGRAM__LTX_preloaded_symbols;
7427 }
7428 #endif
7429
7430 #ifdef __cplusplus
7431 }
7432 #endif
7433 _LT_EOF
7434 # Now try linking the two files.
7435 mv conftest.$ac_objext conftstm.$ac_objext
7436 lt_save_LIBS="$LIBS"
7437 lt_save_CFLAGS="$CFLAGS"
7438 LIBS="conftstm.$ac_objext"
7439 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7440 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7441 (eval $ac_link) 2>&5
7442 ac_status=$?
7443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7444 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7445 pipe_works=yes
7446 fi
7447 LIBS="$lt_save_LIBS"
7448 CFLAGS="$lt_save_CFLAGS"
7449 else
7450 echo "cannot find nm_test_func in $nlist" >&5
7451 fi
7452 else
7453 echo "cannot find nm_test_var in $nlist" >&5
7454 fi
7455 else
7456 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7457 fi
7458 else
7459 echo "$progname: failed program was:" >&5
7460 cat conftest.$ac_ext >&5
7461 fi
7462 rm -rf conftest* conftst*
7463
7464 # Do not use the global_symbol_pipe unless it works.
7465 if test "$pipe_works" = yes; then
7466 break
7467 else
7468 lt_cv_sys_global_symbol_pipe=
7469 fi
7470 done
7471
7472 fi
7473
7474 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7475 lt_cv_sys_global_symbol_to_cdecl=
7476 fi
7477 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7479 $as_echo "failed" >&6; }
7480 else
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7482 $as_echo "ok" >&6; }
7483 fi
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506 # Check whether --enable-libtool-lock was given.
7507 if test "${enable_libtool_lock+set}" = set; then :
7508 enableval=$enable_libtool_lock;
7509 fi
7510
7511 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7512
7513 # Some flags need to be propagated to the compiler or linker for good
7514 # libtool support.
7515 case $host in
7516 ia64-*-hpux*)
7517 # Find out which ABI we are using.
7518 echo 'int i;' > conftest.$ac_ext
7519 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7520 (eval $ac_compile) 2>&5
7521 ac_status=$?
7522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7523 test $ac_status = 0; }; then
7524 case `/usr/bin/file conftest.$ac_objext` in
7525 *ELF-32*)
7526 HPUX_IA64_MODE="32"
7527 ;;
7528 *ELF-64*)
7529 HPUX_IA64_MODE="64"
7530 ;;
7531 esac
7532 fi
7533 rm -rf conftest*
7534 ;;
7535 *-*-irix6*)
7536 # Find out which ABI we are using.
7537 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7538 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7539 (eval $ac_compile) 2>&5
7540 ac_status=$?
7541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7542 test $ac_status = 0; }; then
7543 if test "$lt_cv_prog_gnu_ld" = yes; then
7544 case `/usr/bin/file conftest.$ac_objext` in
7545 *32-bit*)
7546 LD="${LD-ld} -melf32bsmip"
7547 ;;
7548 *N32*)
7549 LD="${LD-ld} -melf32bmipn32"
7550 ;;
7551 *64-bit*)
7552 LD="${LD-ld} -melf64bmip"
7553 ;;
7554 esac
7555 else
7556 case `/usr/bin/file conftest.$ac_objext` in
7557 *32-bit*)
7558 LD="${LD-ld} -32"
7559 ;;
7560 *N32*)
7561 LD="${LD-ld} -n32"
7562 ;;
7563 *64-bit*)
7564 LD="${LD-ld} -64"
7565 ;;
7566 esac
7567 fi
7568 fi
7569 rm -rf conftest*
7570 ;;
7571
7572 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7573 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7574 # Find out which ABI we are using.
7575 echo 'int i;' > conftest.$ac_ext
7576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7577 (eval $ac_compile) 2>&5
7578 ac_status=$?
7579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7580 test $ac_status = 0; }; then
7581 case `/usr/bin/file conftest.o` in
7582 *32-bit*)
7583 case $host in
7584 x86_64-*kfreebsd*-gnu)
7585 LD="${LD-ld} -m elf_i386_fbsd"
7586 ;;
7587 x86_64-*linux*)
7588 LD="${LD-ld} -m elf_i386"
7589 ;;
7590 ppc64-*linux*|powerpc64-*linux*)
7591 LD="${LD-ld} -m elf32ppclinux"
7592 ;;
7593 s390x-*linux*)
7594 LD="${LD-ld} -m elf_s390"
7595 ;;
7596 sparc64-*linux*)
7597 LD="${LD-ld} -m elf32_sparc"
7598 ;;
7599 esac
7600 ;;
7601 *64-bit*)
7602 case $host in
7603 x86_64-*kfreebsd*-gnu)
7604 LD="${LD-ld} -m elf_x86_64_fbsd"
7605 ;;
7606 x86_64-*linux*)
7607 LD="${LD-ld} -m elf_x86_64"
7608 ;;
7609 ppc*-*linux*|powerpc*-*linux*)
7610 LD="${LD-ld} -m elf64ppc"
7611 ;;
7612 s390*-*linux*|s390*-*tpf*)
7613 LD="${LD-ld} -m elf64_s390"
7614 ;;
7615 sparc*-*linux*)
7616 LD="${LD-ld} -m elf64_sparc"
7617 ;;
7618 esac
7619 ;;
7620 esac
7621 fi
7622 rm -rf conftest*
7623 ;;
7624
7625 *-*-sco3.2v5*)
7626 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7627 SAVE_CFLAGS="$CFLAGS"
7628 CFLAGS="$CFLAGS -belf"
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7630 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7631 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7632 $as_echo_n "(cached) " >&6
7633 else
7634 ac_ext=c
7635 ac_cpp='$CPP $CPPFLAGS'
7636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7639
7640 if test x$gcc_no_link = xyes; then
7641 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
7642 fi
7643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7644 /* end confdefs.h. */
7645
7646 int
7647 main ()
7648 {
7649
7650 ;
7651 return 0;
7652 }
7653 _ACEOF
7654 if ac_fn_c_try_link "$LINENO"; then :
7655 lt_cv_cc_needs_belf=yes
7656 else
7657 lt_cv_cc_needs_belf=no
7658 fi
7659 rm -f core conftest.err conftest.$ac_objext \
7660 conftest$ac_exeext conftest.$ac_ext
7661 ac_ext=c
7662 ac_cpp='$CPP $CPPFLAGS'
7663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7666
7667 fi
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7669 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7670 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7671 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7672 CFLAGS="$SAVE_CFLAGS"
7673 fi
7674 ;;
7675 sparc*-*solaris*)
7676 # Find out which ABI we are using.
7677 echo 'int i;' > conftest.$ac_ext
7678 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7679 (eval $ac_compile) 2>&5
7680 ac_status=$?
7681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7682 test $ac_status = 0; }; then
7683 case `/usr/bin/file conftest.o` in
7684 *64-bit*)
7685 case $lt_cv_prog_gnu_ld in
7686 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7687 *)
7688 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7689 LD="${LD-ld} -64"
7690 fi
7691 ;;
7692 esac
7693 ;;
7694 esac
7695 fi
7696 rm -rf conftest*
7697 ;;
7698 esac
7699
7700 need_locks="$enable_libtool_lock"
7701
7702
7703 case $host_os in
7704 rhapsody* | darwin*)
7705 if test -n "$ac_tool_prefix"; then
7706 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7707 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7709 $as_echo_n "checking for $ac_word... " >&6; }
7710 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7711 $as_echo_n "(cached) " >&6
7712 else
7713 if test -n "$DSYMUTIL"; then
7714 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7715 else
7716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7717 for as_dir in $PATH
7718 do
7719 IFS=$as_save_IFS
7720 test -z "$as_dir" && as_dir=.
7721 for ac_exec_ext in '' $ac_executable_extensions; do
7722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7723 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7725 break 2
7726 fi
7727 done
7728 done
7729 IFS=$as_save_IFS
7730
7731 fi
7732 fi
7733 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7734 if test -n "$DSYMUTIL"; then
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7736 $as_echo "$DSYMUTIL" >&6; }
7737 else
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7739 $as_echo "no" >&6; }
7740 fi
7741
7742
7743 fi
7744 if test -z "$ac_cv_prog_DSYMUTIL"; then
7745 ac_ct_DSYMUTIL=$DSYMUTIL
7746 # Extract the first word of "dsymutil", so it can be a program name with args.
7747 set dummy dsymutil; ac_word=$2
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7749 $as_echo_n "checking for $ac_word... " >&6; }
7750 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7751 $as_echo_n "(cached) " >&6
7752 else
7753 if test -n "$ac_ct_DSYMUTIL"; then
7754 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7755 else
7756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7757 for as_dir in $PATH
7758 do
7759 IFS=$as_save_IFS
7760 test -z "$as_dir" && as_dir=.
7761 for ac_exec_ext in '' $ac_executable_extensions; do
7762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7763 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7765 break 2
7766 fi
7767 done
7768 done
7769 IFS=$as_save_IFS
7770
7771 fi
7772 fi
7773 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7774 if test -n "$ac_ct_DSYMUTIL"; then
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7776 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7777 else
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7779 $as_echo "no" >&6; }
7780 fi
7781
7782 if test "x$ac_ct_DSYMUTIL" = x; then
7783 DSYMUTIL=":"
7784 else
7785 case $cross_compiling:$ac_tool_warned in
7786 yes:)
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7789 ac_tool_warned=yes ;;
7790 esac
7791 DSYMUTIL=$ac_ct_DSYMUTIL
7792 fi
7793 else
7794 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7795 fi
7796
7797 if test -n "$ac_tool_prefix"; then
7798 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7799 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7801 $as_echo_n "checking for $ac_word... " >&6; }
7802 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7803 $as_echo_n "(cached) " >&6
7804 else
7805 if test -n "$NMEDIT"; then
7806 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7807 else
7808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7809 for as_dir in $PATH
7810 do
7811 IFS=$as_save_IFS
7812 test -z "$as_dir" && as_dir=.
7813 for ac_exec_ext in '' $ac_executable_extensions; do
7814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7815 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7817 break 2
7818 fi
7819 done
7820 done
7821 IFS=$as_save_IFS
7822
7823 fi
7824 fi
7825 NMEDIT=$ac_cv_prog_NMEDIT
7826 if test -n "$NMEDIT"; then
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7828 $as_echo "$NMEDIT" >&6; }
7829 else
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7831 $as_echo "no" >&6; }
7832 fi
7833
7834
7835 fi
7836 if test -z "$ac_cv_prog_NMEDIT"; then
7837 ac_ct_NMEDIT=$NMEDIT
7838 # Extract the first word of "nmedit", so it can be a program name with args.
7839 set dummy nmedit; ac_word=$2
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7841 $as_echo_n "checking for $ac_word... " >&6; }
7842 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7843 $as_echo_n "(cached) " >&6
7844 else
7845 if test -n "$ac_ct_NMEDIT"; then
7846 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7847 else
7848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849 for as_dir in $PATH
7850 do
7851 IFS=$as_save_IFS
7852 test -z "$as_dir" && as_dir=.
7853 for ac_exec_ext in '' $ac_executable_extensions; do
7854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7855 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7857 break 2
7858 fi
7859 done
7860 done
7861 IFS=$as_save_IFS
7862
7863 fi
7864 fi
7865 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7866 if test -n "$ac_ct_NMEDIT"; then
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7868 $as_echo "$ac_ct_NMEDIT" >&6; }
7869 else
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7871 $as_echo "no" >&6; }
7872 fi
7873
7874 if test "x$ac_ct_NMEDIT" = x; then
7875 NMEDIT=":"
7876 else
7877 case $cross_compiling:$ac_tool_warned in
7878 yes:)
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7881 ac_tool_warned=yes ;;
7882 esac
7883 NMEDIT=$ac_ct_NMEDIT
7884 fi
7885 else
7886 NMEDIT="$ac_cv_prog_NMEDIT"
7887 fi
7888
7889 if test -n "$ac_tool_prefix"; then
7890 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7891 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7893 $as_echo_n "checking for $ac_word... " >&6; }
7894 if test "${ac_cv_prog_LIPO+set}" = set; then :
7895 $as_echo_n "(cached) " >&6
7896 else
7897 if test -n "$LIPO"; then
7898 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7899 else
7900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7901 for as_dir in $PATH
7902 do
7903 IFS=$as_save_IFS
7904 test -z "$as_dir" && as_dir=.
7905 for ac_exec_ext in '' $ac_executable_extensions; do
7906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7907 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7909 break 2
7910 fi
7911 done
7912 done
7913 IFS=$as_save_IFS
7914
7915 fi
7916 fi
7917 LIPO=$ac_cv_prog_LIPO
7918 if test -n "$LIPO"; then
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7920 $as_echo "$LIPO" >&6; }
7921 else
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7923 $as_echo "no" >&6; }
7924 fi
7925
7926
7927 fi
7928 if test -z "$ac_cv_prog_LIPO"; then
7929 ac_ct_LIPO=$LIPO
7930 # Extract the first word of "lipo", so it can be a program name with args.
7931 set dummy lipo; ac_word=$2
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7933 $as_echo_n "checking for $ac_word... " >&6; }
7934 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7935 $as_echo_n "(cached) " >&6
7936 else
7937 if test -n "$ac_ct_LIPO"; then
7938 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7939 else
7940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7941 for as_dir in $PATH
7942 do
7943 IFS=$as_save_IFS
7944 test -z "$as_dir" && as_dir=.
7945 for ac_exec_ext in '' $ac_executable_extensions; do
7946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7947 ac_cv_prog_ac_ct_LIPO="lipo"
7948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7949 break 2
7950 fi
7951 done
7952 done
7953 IFS=$as_save_IFS
7954
7955 fi
7956 fi
7957 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7958 if test -n "$ac_ct_LIPO"; then
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7960 $as_echo "$ac_ct_LIPO" >&6; }
7961 else
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7963 $as_echo "no" >&6; }
7964 fi
7965
7966 if test "x$ac_ct_LIPO" = x; then
7967 LIPO=":"
7968 else
7969 case $cross_compiling:$ac_tool_warned in
7970 yes:)
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7973 ac_tool_warned=yes ;;
7974 esac
7975 LIPO=$ac_ct_LIPO
7976 fi
7977 else
7978 LIPO="$ac_cv_prog_LIPO"
7979 fi
7980
7981 if test -n "$ac_tool_prefix"; then
7982 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7983 set dummy ${ac_tool_prefix}otool; ac_word=$2
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7985 $as_echo_n "checking for $ac_word... " >&6; }
7986 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7987 $as_echo_n "(cached) " >&6
7988 else
7989 if test -n "$OTOOL"; then
7990 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7991 else
7992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7993 for as_dir in $PATH
7994 do
7995 IFS=$as_save_IFS
7996 test -z "$as_dir" && as_dir=.
7997 for ac_exec_ext in '' $ac_executable_extensions; do
7998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7999 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8001 break 2
8002 fi
8003 done
8004 done
8005 IFS=$as_save_IFS
8006
8007 fi
8008 fi
8009 OTOOL=$ac_cv_prog_OTOOL
8010 if test -n "$OTOOL"; then
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8012 $as_echo "$OTOOL" >&6; }
8013 else
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8015 $as_echo "no" >&6; }
8016 fi
8017
8018
8019 fi
8020 if test -z "$ac_cv_prog_OTOOL"; then
8021 ac_ct_OTOOL=$OTOOL
8022 # Extract the first word of "otool", so it can be a program name with args.
8023 set dummy otool; ac_word=$2
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8025 $as_echo_n "checking for $ac_word... " >&6; }
8026 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8027 $as_echo_n "(cached) " >&6
8028 else
8029 if test -n "$ac_ct_OTOOL"; then
8030 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8031 else
8032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8033 for as_dir in $PATH
8034 do
8035 IFS=$as_save_IFS
8036 test -z "$as_dir" && as_dir=.
8037 for ac_exec_ext in '' $ac_executable_extensions; do
8038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8039 ac_cv_prog_ac_ct_OTOOL="otool"
8040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8041 break 2
8042 fi
8043 done
8044 done
8045 IFS=$as_save_IFS
8046
8047 fi
8048 fi
8049 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8050 if test -n "$ac_ct_OTOOL"; then
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8052 $as_echo "$ac_ct_OTOOL" >&6; }
8053 else
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8055 $as_echo "no" >&6; }
8056 fi
8057
8058 if test "x$ac_ct_OTOOL" = x; then
8059 OTOOL=":"
8060 else
8061 case $cross_compiling:$ac_tool_warned in
8062 yes:)
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8065 ac_tool_warned=yes ;;
8066 esac
8067 OTOOL=$ac_ct_OTOOL
8068 fi
8069 else
8070 OTOOL="$ac_cv_prog_OTOOL"
8071 fi
8072
8073 if test -n "$ac_tool_prefix"; then
8074 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8075 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8077 $as_echo_n "checking for $ac_word... " >&6; }
8078 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8079 $as_echo_n "(cached) " >&6
8080 else
8081 if test -n "$OTOOL64"; then
8082 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8083 else
8084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8085 for as_dir in $PATH
8086 do
8087 IFS=$as_save_IFS
8088 test -z "$as_dir" && as_dir=.
8089 for ac_exec_ext in '' $ac_executable_extensions; do
8090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8091 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8093 break 2
8094 fi
8095 done
8096 done
8097 IFS=$as_save_IFS
8098
8099 fi
8100 fi
8101 OTOOL64=$ac_cv_prog_OTOOL64
8102 if test -n "$OTOOL64"; then
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8104 $as_echo "$OTOOL64" >&6; }
8105 else
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8107 $as_echo "no" >&6; }
8108 fi
8109
8110
8111 fi
8112 if test -z "$ac_cv_prog_OTOOL64"; then
8113 ac_ct_OTOOL64=$OTOOL64
8114 # Extract the first word of "otool64", so it can be a program name with args.
8115 set dummy otool64; ac_word=$2
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8117 $as_echo_n "checking for $ac_word... " >&6; }
8118 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8119 $as_echo_n "(cached) " >&6
8120 else
8121 if test -n "$ac_ct_OTOOL64"; then
8122 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8123 else
8124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8125 for as_dir in $PATH
8126 do
8127 IFS=$as_save_IFS
8128 test -z "$as_dir" && as_dir=.
8129 for ac_exec_ext in '' $ac_executable_extensions; do
8130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8131 ac_cv_prog_ac_ct_OTOOL64="otool64"
8132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8133 break 2
8134 fi
8135 done
8136 done
8137 IFS=$as_save_IFS
8138
8139 fi
8140 fi
8141 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8142 if test -n "$ac_ct_OTOOL64"; then
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8144 $as_echo "$ac_ct_OTOOL64" >&6; }
8145 else
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8147 $as_echo "no" >&6; }
8148 fi
8149
8150 if test "x$ac_ct_OTOOL64" = x; then
8151 OTOOL64=":"
8152 else
8153 case $cross_compiling:$ac_tool_warned in
8154 yes:)
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8157 ac_tool_warned=yes ;;
8158 esac
8159 OTOOL64=$ac_ct_OTOOL64
8160 fi
8161 else
8162 OTOOL64="$ac_cv_prog_OTOOL64"
8163 fi
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8192 $as_echo_n "checking for -single_module linker flag... " >&6; }
8193 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8194 $as_echo_n "(cached) " >&6
8195 else
8196 lt_cv_apple_cc_single_mod=no
8197 if test -z "${LT_MULTI_MODULE}"; then
8198 # By default we will add the -single_module flag. You can override
8199 # by either setting the environment variable LT_MULTI_MODULE
8200 # non-empty at configure time, or by adding -multi_module to the
8201 # link flags.
8202 rm -rf libconftest.dylib*
8203 echo "int foo(void){return 1;}" > conftest.c
8204 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8205 -dynamiclib -Wl,-single_module conftest.c" >&5
8206 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8207 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8208 _lt_result=$?
8209 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8210 lt_cv_apple_cc_single_mod=yes
8211 else
8212 cat conftest.err >&5
8213 fi
8214 rm -rf libconftest.dylib*
8215 rm -f conftest.*
8216 fi
8217 fi
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8219 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8221 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8222 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8223 $as_echo_n "(cached) " >&6
8224 else
8225 lt_cv_ld_exported_symbols_list=no
8226 save_LDFLAGS=$LDFLAGS
8227 echo "_main" > conftest.sym
8228 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8229 if test x$gcc_no_link = xyes; then
8230 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8231 fi
8232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8233 /* end confdefs.h. */
8234
8235 int
8236 main ()
8237 {
8238
8239 ;
8240 return 0;
8241 }
8242 _ACEOF
8243 if ac_fn_c_try_link "$LINENO"; then :
8244 lt_cv_ld_exported_symbols_list=yes
8245 else
8246 lt_cv_ld_exported_symbols_list=no
8247 fi
8248 rm -f core conftest.err conftest.$ac_objext \
8249 conftest$ac_exeext conftest.$ac_ext
8250 LDFLAGS="$save_LDFLAGS"
8251
8252 fi
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8254 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8256 $as_echo_n "checking for -force_load linker flag... " >&6; }
8257 if test "${lt_cv_ld_force_load+set}" = set; then :
8258 $as_echo_n "(cached) " >&6
8259 else
8260 lt_cv_ld_force_load=no
8261 cat > conftest.c << _LT_EOF
8262 int forced_loaded() { return 2;}
8263 _LT_EOF
8264 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8265 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8266 echo "$AR cru libconftest.a conftest.o" >&5
8267 $AR cru libconftest.a conftest.o 2>&5
8268 cat > conftest.c << _LT_EOF
8269 int main() { return 0;}
8270 _LT_EOF
8271 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8272 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8273 _lt_result=$?
8274 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8275 lt_cv_ld_force_load=yes
8276 else
8277 cat conftest.err >&5
8278 fi
8279 rm -f conftest.err libconftest.a conftest conftest.c
8280 rm -rf conftest.dSYM
8281
8282 fi
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8284 $as_echo "$lt_cv_ld_force_load" >&6; }
8285 case $host_os in
8286 rhapsody* | darwin1.[012])
8287 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8288 darwin1.*)
8289 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8290 darwin*) # darwin 5.x on
8291 # if running on 10.5 or later, the deployment target defaults
8292 # to the OS version, if on x86, and 10.4, the deployment
8293 # target defaults to 10.4. Don't you love it?
8294 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8295 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8296 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8297 10.[012]*)
8298 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8299 10.*)
8300 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8301 esac
8302 ;;
8303 esac
8304 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8305 _lt_dar_single_mod='$single_module'
8306 fi
8307 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8308 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8309 else
8310 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8311 fi
8312 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8313 _lt_dsymutil='~$DSYMUTIL $lib || :'
8314 else
8315 _lt_dsymutil=
8316 fi
8317 ;;
8318 esac
8319
8320 for ac_header in dlfcn.h
8321 do :
8322 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8323 "
8324 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8325 cat >>confdefs.h <<_ACEOF
8326 #define HAVE_DLFCN_H 1
8327 _ACEOF
8328
8329 fi
8330
8331 done
8332
8333
8334
8335
8336
8337 # Set options
8338
8339
8340
8341 enable_dlopen=no
8342
8343
8344 enable_win32_dll=no
8345
8346
8347 # Check whether --enable-shared was given.
8348 if test "${enable_shared+set}" = set; then :
8349 enableval=$enable_shared; p=${PACKAGE-default}
8350 case $enableval in
8351 yes) enable_shared=yes ;;
8352 no) enable_shared=no ;;
8353 *)
8354 enable_shared=no
8355 # Look at the argument we got. We use all the common list separators.
8356 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8357 for pkg in $enableval; do
8358 IFS="$lt_save_ifs"
8359 if test "X$pkg" = "X$p"; then
8360 enable_shared=yes
8361 fi
8362 done
8363 IFS="$lt_save_ifs"
8364 ;;
8365 esac
8366 else
8367 enable_shared=yes
8368 fi
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380 # Check whether --with-pic was given.
8381 if test "${with_pic+set}" = set; then :
8382 withval=$with_pic; pic_mode="$withval"
8383 else
8384 pic_mode=default
8385 fi
8386
8387
8388 test -z "$pic_mode" && pic_mode=default
8389
8390
8391
8392
8393
8394
8395
8396 # Check whether --enable-fast-install was given.
8397 if test "${enable_fast_install+set}" = set; then :
8398 enableval=$enable_fast_install; p=${PACKAGE-default}
8399 case $enableval in
8400 yes) enable_fast_install=yes ;;
8401 no) enable_fast_install=no ;;
8402 *)
8403 enable_fast_install=no
8404 # Look at the argument we got. We use all the common list separators.
8405 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8406 for pkg in $enableval; do
8407 IFS="$lt_save_ifs"
8408 if test "X$pkg" = "X$p"; then
8409 enable_fast_install=yes
8410 fi
8411 done
8412 IFS="$lt_save_ifs"
8413 ;;
8414 esac
8415 else
8416 enable_fast_install=yes
8417 fi
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429 # This can be used to rebuild libtool when needed
8430 LIBTOOL_DEPS="$ltmain"
8431
8432 # Always use our own libtool.
8433 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460 test -z "$LN_S" && LN_S="ln -s"
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475 if test -n "${ZSH_VERSION+set}" ; then
8476 setopt NO_GLOB_SUBST
8477 fi
8478
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8480 $as_echo_n "checking for objdir... " >&6; }
8481 if test "${lt_cv_objdir+set}" = set; then :
8482 $as_echo_n "(cached) " >&6
8483 else
8484 rm -f .libs 2>/dev/null
8485 mkdir .libs 2>/dev/null
8486 if test -d .libs; then
8487 lt_cv_objdir=.libs
8488 else
8489 # MS-DOS does not allow filenames that begin with a dot.
8490 lt_cv_objdir=_libs
8491 fi
8492 rmdir .libs 2>/dev/null
8493 fi
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8495 $as_echo "$lt_cv_objdir" >&6; }
8496 objdir=$lt_cv_objdir
8497
8498
8499
8500
8501
8502 cat >>confdefs.h <<_ACEOF
8503 #define LT_OBJDIR "$lt_cv_objdir/"
8504 _ACEOF
8505
8506
8507
8508
8509 case $host_os in
8510 aix3*)
8511 # AIX sometimes has problems with the GCC collect2 program. For some
8512 # reason, if we set the COLLECT_NAMES environment variable, the problems
8513 # vanish in a puff of smoke.
8514 if test "X${COLLECT_NAMES+set}" != Xset; then
8515 COLLECT_NAMES=
8516 export COLLECT_NAMES
8517 fi
8518 ;;
8519 esac
8520
8521 # Global variables:
8522 ofile=libtool
8523 can_build_shared=yes
8524
8525 # All known linkers require a `.a' archive for static linking (except MSVC,
8526 # which needs '.lib').
8527 libext=a
8528
8529 with_gnu_ld="$lt_cv_prog_gnu_ld"
8530
8531 old_CC="$CC"
8532 old_CFLAGS="$CFLAGS"
8533
8534 # Set sane defaults for various variables
8535 test -z "$CC" && CC=cc
8536 test -z "$LTCC" && LTCC=$CC
8537 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8538 test -z "$LD" && LD=ld
8539 test -z "$ac_objext" && ac_objext=o
8540
8541 for cc_temp in $compiler""; do
8542 case $cc_temp in
8543 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8544 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8545 \-*) ;;
8546 *) break;;
8547 esac
8548 done
8549 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8550
8551
8552 # Only perform the check for file, if the check method requires it
8553 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8554 case $deplibs_check_method in
8555 file_magic*)
8556 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8558 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8559 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8560 $as_echo_n "(cached) " >&6
8561 else
8562 case $MAGIC_CMD in
8563 [\\/*] | ?:[\\/]*)
8564 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8565 ;;
8566 *)
8567 lt_save_MAGIC_CMD="$MAGIC_CMD"
8568 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8569 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8570 for ac_dir in $ac_dummy; do
8571 IFS="$lt_save_ifs"
8572 test -z "$ac_dir" && ac_dir=.
8573 if test -f $ac_dir/${ac_tool_prefix}file; then
8574 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8575 if test -n "$file_magic_test_file"; then
8576 case $deplibs_check_method in
8577 "file_magic "*)
8578 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8579 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8580 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8581 $EGREP "$file_magic_regex" > /dev/null; then
8582 :
8583 else
8584 cat <<_LT_EOF 1>&2
8585
8586 *** Warning: the command libtool uses to detect shared libraries,
8587 *** $file_magic_cmd, produces output that libtool cannot recognize.
8588 *** The result is that libtool may fail to recognize shared libraries
8589 *** as such. This will affect the creation of libtool libraries that
8590 *** depend on shared libraries, but programs linked with such libtool
8591 *** libraries will work regardless of this problem. Nevertheless, you
8592 *** may want to report the problem to your system manager and/or to
8593 *** bug-libtool@gnu.org
8594
8595 _LT_EOF
8596 fi ;;
8597 esac
8598 fi
8599 break
8600 fi
8601 done
8602 IFS="$lt_save_ifs"
8603 MAGIC_CMD="$lt_save_MAGIC_CMD"
8604 ;;
8605 esac
8606 fi
8607
8608 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8609 if test -n "$MAGIC_CMD"; then
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8611 $as_echo "$MAGIC_CMD" >&6; }
8612 else
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8614 $as_echo "no" >&6; }
8615 fi
8616
8617
8618
8619
8620
8621 if test -z "$lt_cv_path_MAGIC_CMD"; then
8622 if test -n "$ac_tool_prefix"; then
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8624 $as_echo_n "checking for file... " >&6; }
8625 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8626 $as_echo_n "(cached) " >&6
8627 else
8628 case $MAGIC_CMD in
8629 [\\/*] | ?:[\\/]*)
8630 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8631 ;;
8632 *)
8633 lt_save_MAGIC_CMD="$MAGIC_CMD"
8634 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8635 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8636 for ac_dir in $ac_dummy; do
8637 IFS="$lt_save_ifs"
8638 test -z "$ac_dir" && ac_dir=.
8639 if test -f $ac_dir/file; then
8640 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8641 if test -n "$file_magic_test_file"; then
8642 case $deplibs_check_method in
8643 "file_magic "*)
8644 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8645 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8646 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8647 $EGREP "$file_magic_regex" > /dev/null; then
8648 :
8649 else
8650 cat <<_LT_EOF 1>&2
8651
8652 *** Warning: the command libtool uses to detect shared libraries,
8653 *** $file_magic_cmd, produces output that libtool cannot recognize.
8654 *** The result is that libtool may fail to recognize shared libraries
8655 *** as such. This will affect the creation of libtool libraries that
8656 *** depend on shared libraries, but programs linked with such libtool
8657 *** libraries will work regardless of this problem. Nevertheless, you
8658 *** may want to report the problem to your system manager and/or to
8659 *** bug-libtool@gnu.org
8660
8661 _LT_EOF
8662 fi ;;
8663 esac
8664 fi
8665 break
8666 fi
8667 done
8668 IFS="$lt_save_ifs"
8669 MAGIC_CMD="$lt_save_MAGIC_CMD"
8670 ;;
8671 esac
8672 fi
8673
8674 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8675 if test -n "$MAGIC_CMD"; then
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8677 $as_echo "$MAGIC_CMD" >&6; }
8678 else
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8680 $as_echo "no" >&6; }
8681 fi
8682
8683
8684 else
8685 MAGIC_CMD=:
8686 fi
8687 fi
8688
8689 fi
8690 ;;
8691 esac
8692
8693 # Use C for the default configuration in the libtool script
8694
8695 lt_save_CC="$CC"
8696 ac_ext=c
8697 ac_cpp='$CPP $CPPFLAGS'
8698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8701
8702
8703 # Source file extension for C test sources.
8704 ac_ext=c
8705
8706 # Object file extension for compiled C test sources.
8707 objext=o
8708 objext=$objext
8709
8710 # Code to be used in simple compile tests
8711 lt_simple_compile_test_code="int some_variable = 0;"
8712
8713 # Code to be used in simple link tests
8714 lt_simple_link_test_code='int main(){return(0);}'
8715
8716
8717
8718
8719
8720
8721
8722 # If no C compiler was specified, use CC.
8723 LTCC=${LTCC-"$CC"}
8724
8725 # If no C compiler flags were specified, use CFLAGS.
8726 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8727
8728 # Allow CC to be a program name with arguments.
8729 compiler=$CC
8730
8731 # Save the default compiler, since it gets overwritten when the other
8732 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8733 compiler_DEFAULT=$CC
8734
8735 # save warnings/boilerplate of simple test code
8736 ac_outfile=conftest.$ac_objext
8737 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8738 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8739 _lt_compiler_boilerplate=`cat conftest.err`
8740 $RM conftest*
8741
8742 ac_outfile=conftest.$ac_objext
8743 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8744 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8745 _lt_linker_boilerplate=`cat conftest.err`
8746 $RM -r conftest*
8747
8748
8749 ## CAVEAT EMPTOR:
8750 ## There is no encapsulation within the following macros, do not change
8751 ## the running order or otherwise move them around unless you know exactly
8752 ## what you are doing...
8753 if test -n "$compiler"; then
8754
8755 lt_prog_compiler_no_builtin_flag=
8756
8757 if test "$GCC" = yes; then
8758 case $cc_basename in
8759 nvcc*)
8760 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8761 *)
8762 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8763 esac
8764
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8766 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8767 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8768 $as_echo_n "(cached) " >&6
8769 else
8770 lt_cv_prog_compiler_rtti_exceptions=no
8771 ac_outfile=conftest.$ac_objext
8772 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8773 lt_compiler_flag="-fno-rtti -fno-exceptions"
8774 # Insert the option either (1) after the last *FLAGS variable, or
8775 # (2) before a word containing "conftest.", or (3) at the end.
8776 # Note that $ac_compile itself does not contain backslashes and begins
8777 # with a dollar sign (not a hyphen), so the echo should work correctly.
8778 # The option is referenced via a variable to avoid confusing sed.
8779 lt_compile=`echo "$ac_compile" | $SED \
8780 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8781 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8782 -e 's:$: $lt_compiler_flag:'`
8783 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8784 (eval "$lt_compile" 2>conftest.err)
8785 ac_status=$?
8786 cat conftest.err >&5
8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 if (exit $ac_status) && test -s "$ac_outfile"; then
8789 # The compiler can only warn and ignore the option if not recognized
8790 # So say no if there are warnings other than the usual output.
8791 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8792 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8793 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8794 lt_cv_prog_compiler_rtti_exceptions=yes
8795 fi
8796 fi
8797 $RM conftest*
8798
8799 fi
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8801 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8802
8803 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8804 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8805 else
8806 :
8807 fi
8808
8809 fi
8810
8811
8812
8813
8814
8815
8816 lt_prog_compiler_wl=
8817 lt_prog_compiler_pic=
8818 lt_prog_compiler_static=
8819
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8821 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8822
8823 if test "$GCC" = yes; then
8824 lt_prog_compiler_wl='-Wl,'
8825 lt_prog_compiler_static='-static'
8826
8827 case $host_os in
8828 aix*)
8829 # All AIX code is PIC.
8830 if test "$host_cpu" = ia64; then
8831 # AIX 5 now supports IA64 processor
8832 lt_prog_compiler_static='-Bstatic'
8833 fi
8834 ;;
8835
8836 amigaos*)
8837 case $host_cpu in
8838 powerpc)
8839 # see comment about AmigaOS4 .so support
8840 lt_prog_compiler_pic='-fPIC'
8841 ;;
8842 m68k)
8843 # FIXME: we need at least 68020 code to build shared libraries, but
8844 # adding the `-m68020' flag to GCC prevents building anything better,
8845 # like `-m68040'.
8846 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8847 ;;
8848 esac
8849 ;;
8850
8851 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8852 # PIC is the default for these OSes.
8853 ;;
8854
8855 mingw* | cygwin* | pw32* | os2* | cegcc*)
8856 # This hack is so that the source file can tell whether it is being
8857 # built for inclusion in a dll (and should export symbols for example).
8858 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8859 # (--disable-auto-import) libraries
8860 lt_prog_compiler_pic='-DDLL_EXPORT'
8861 ;;
8862
8863 darwin* | rhapsody*)
8864 # PIC is the default on this platform
8865 # Common symbols not allowed in MH_DYLIB files
8866 lt_prog_compiler_pic='-fno-common'
8867 ;;
8868
8869 haiku*)
8870 # PIC is the default for Haiku.
8871 # The "-static" flag exists, but is broken.
8872 lt_prog_compiler_static=
8873 ;;
8874
8875 hpux*)
8876 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8877 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8878 # sets the default TLS model and affects inlining.
8879 case $host_cpu in
8880 hppa*64*)
8881 # +Z the default
8882 ;;
8883 *)
8884 lt_prog_compiler_pic='-fPIC'
8885 ;;
8886 esac
8887 ;;
8888
8889 interix[3-9]*)
8890 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8891 # Instead, we relocate shared libraries at runtime.
8892 ;;
8893
8894 msdosdjgpp*)
8895 # Just because we use GCC doesn't mean we suddenly get shared libraries
8896 # on systems that don't support them.
8897 lt_prog_compiler_can_build_shared=no
8898 enable_shared=no
8899 ;;
8900
8901 *nto* | *qnx*)
8902 # QNX uses GNU C++, but need to define -shared option too, otherwise
8903 # it will coredump.
8904 lt_prog_compiler_pic='-fPIC -shared'
8905 ;;
8906
8907 sysv4*MP*)
8908 if test -d /usr/nec; then
8909 lt_prog_compiler_pic=-Kconform_pic
8910 fi
8911 ;;
8912
8913 *)
8914 lt_prog_compiler_pic='-fPIC'
8915 ;;
8916 esac
8917
8918 case $cc_basename in
8919 nvcc*) # Cuda Compiler Driver 2.2
8920 lt_prog_compiler_wl='-Xlinker '
8921 lt_prog_compiler_pic='-Xcompiler -fPIC'
8922 ;;
8923 esac
8924 else
8925 # PORTME Check for flag to pass linker flags through the system compiler.
8926 case $host_os in
8927 aix*)
8928 lt_prog_compiler_wl='-Wl,'
8929 if test "$host_cpu" = ia64; then
8930 # AIX 5 now supports IA64 processor
8931 lt_prog_compiler_static='-Bstatic'
8932 else
8933 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8934 fi
8935 ;;
8936
8937 mingw* | cygwin* | pw32* | os2* | cegcc*)
8938 # This hack is so that the source file can tell whether it is being
8939 # built for inclusion in a dll (and should export symbols for example).
8940 lt_prog_compiler_pic='-DDLL_EXPORT'
8941 ;;
8942
8943 hpux9* | hpux10* | hpux11*)
8944 lt_prog_compiler_wl='-Wl,'
8945 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8946 # not for PA HP-UX.
8947 case $host_cpu in
8948 hppa*64*|ia64*)
8949 # +Z the default
8950 ;;
8951 *)
8952 lt_prog_compiler_pic='+Z'
8953 ;;
8954 esac
8955 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8956 lt_prog_compiler_static='${wl}-a ${wl}archive'
8957 ;;
8958
8959 irix5* | irix6* | nonstopux*)
8960 lt_prog_compiler_wl='-Wl,'
8961 # PIC (with -KPIC) is the default.
8962 lt_prog_compiler_static='-non_shared'
8963 ;;
8964
8965 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8966 case $cc_basename in
8967 # old Intel for x86_64 which still supported -KPIC.
8968 ecc*)
8969 lt_prog_compiler_wl='-Wl,'
8970 lt_prog_compiler_pic='-KPIC'
8971 lt_prog_compiler_static='-static'
8972 ;;
8973 # icc used to be incompatible with GCC.
8974 # ICC 10 doesn't accept -KPIC any more.
8975 icc* | ifort*)
8976 lt_prog_compiler_wl='-Wl,'
8977 lt_prog_compiler_pic='-fPIC'
8978 lt_prog_compiler_static='-static'
8979 ;;
8980 # Lahey Fortran 8.1.
8981 lf95*)
8982 lt_prog_compiler_wl='-Wl,'
8983 lt_prog_compiler_pic='--shared'
8984 lt_prog_compiler_static='--static'
8985 ;;
8986 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8987 # Portland Group compilers (*not* the Pentium gcc compiler,
8988 # which looks to be a dead project)
8989 lt_prog_compiler_wl='-Wl,'
8990 lt_prog_compiler_pic='-fpic'
8991 lt_prog_compiler_static='-Bstatic'
8992 ;;
8993 ccc*)
8994 lt_prog_compiler_wl='-Wl,'
8995 # All Alpha code is PIC.
8996 lt_prog_compiler_static='-non_shared'
8997 ;;
8998 xl* | bgxl* | bgf* | mpixl*)
8999 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9000 lt_prog_compiler_wl='-Wl,'
9001 lt_prog_compiler_pic='-qpic'
9002 lt_prog_compiler_static='-qstaticlink'
9003 ;;
9004 *)
9005 case `$CC -V 2>&1 | sed 5q` in
9006 *Sun\ F* | *Sun*Fortran*)
9007 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9008 lt_prog_compiler_pic='-KPIC'
9009 lt_prog_compiler_static='-Bstatic'
9010 lt_prog_compiler_wl=''
9011 ;;
9012 *Sun\ C*)
9013 # Sun C 5.9
9014 lt_prog_compiler_pic='-KPIC'
9015 lt_prog_compiler_static='-Bstatic'
9016 lt_prog_compiler_wl='-Wl,'
9017 ;;
9018 esac
9019 ;;
9020 esac
9021 ;;
9022
9023 newsos6)
9024 lt_prog_compiler_pic='-KPIC'
9025 lt_prog_compiler_static='-Bstatic'
9026 ;;
9027
9028 *nto* | *qnx*)
9029 # QNX uses GNU C++, but need to define -shared option too, otherwise
9030 # it will coredump.
9031 lt_prog_compiler_pic='-fPIC -shared'
9032 ;;
9033
9034 osf3* | osf4* | osf5*)
9035 lt_prog_compiler_wl='-Wl,'
9036 # All OSF/1 code is PIC.
9037 lt_prog_compiler_static='-non_shared'
9038 ;;
9039
9040 rdos*)
9041 lt_prog_compiler_static='-non_shared'
9042 ;;
9043
9044 solaris*)
9045 lt_prog_compiler_pic='-KPIC'
9046 lt_prog_compiler_static='-Bstatic'
9047 case $cc_basename in
9048 f77* | f90* | f95*)
9049 lt_prog_compiler_wl='-Qoption ld ';;
9050 *)
9051 lt_prog_compiler_wl='-Wl,';;
9052 esac
9053 ;;
9054
9055 sunos4*)
9056 lt_prog_compiler_wl='-Qoption ld '
9057 lt_prog_compiler_pic='-PIC'
9058 lt_prog_compiler_static='-Bstatic'
9059 ;;
9060
9061 sysv4 | sysv4.2uw2* | sysv4.3*)
9062 lt_prog_compiler_wl='-Wl,'
9063 lt_prog_compiler_pic='-KPIC'
9064 lt_prog_compiler_static='-Bstatic'
9065 ;;
9066
9067 sysv4*MP*)
9068 if test -d /usr/nec ;then
9069 lt_prog_compiler_pic='-Kconform_pic'
9070 lt_prog_compiler_static='-Bstatic'
9071 fi
9072 ;;
9073
9074 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9075 lt_prog_compiler_wl='-Wl,'
9076 lt_prog_compiler_pic='-KPIC'
9077 lt_prog_compiler_static='-Bstatic'
9078 ;;
9079
9080 unicos*)
9081 lt_prog_compiler_wl='-Wl,'
9082 lt_prog_compiler_can_build_shared=no
9083 ;;
9084
9085 uts4*)
9086 lt_prog_compiler_pic='-pic'
9087 lt_prog_compiler_static='-Bstatic'
9088 ;;
9089
9090 *)
9091 lt_prog_compiler_can_build_shared=no
9092 ;;
9093 esac
9094 fi
9095
9096 case $host_os in
9097 # For platforms which do not support PIC, -DPIC is meaningless:
9098 *djgpp*)
9099 lt_prog_compiler_pic=
9100 ;;
9101 *)
9102 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9103 ;;
9104 esac
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9106 $as_echo "$lt_prog_compiler_pic" >&6; }
9107
9108
9109
9110
9111
9112
9113 #
9114 # Check to make sure the PIC flag actually works.
9115 #
9116 if test -n "$lt_prog_compiler_pic"; then
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9118 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9119 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9120 $as_echo_n "(cached) " >&6
9121 else
9122 lt_cv_prog_compiler_pic_works=no
9123 ac_outfile=conftest.$ac_objext
9124 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9125 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9126 # Insert the option either (1) after the last *FLAGS variable, or
9127 # (2) before a word containing "conftest.", or (3) at the end.
9128 # Note that $ac_compile itself does not contain backslashes and begins
9129 # with a dollar sign (not a hyphen), so the echo should work correctly.
9130 # The option is referenced via a variable to avoid confusing sed.
9131 lt_compile=`echo "$ac_compile" | $SED \
9132 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9133 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9134 -e 's:$: $lt_compiler_flag:'`
9135 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9136 (eval "$lt_compile" 2>conftest.err)
9137 ac_status=$?
9138 cat conftest.err >&5
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 if (exit $ac_status) && test -s "$ac_outfile"; then
9141 # The compiler can only warn and ignore the option if not recognized
9142 # So say no if there are warnings other than the usual output.
9143 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9144 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9145 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9146 lt_cv_prog_compiler_pic_works=yes
9147 fi
9148 fi
9149 $RM conftest*
9150
9151 fi
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9153 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9154
9155 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9156 case $lt_prog_compiler_pic in
9157 "" | " "*) ;;
9158 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9159 esac
9160 else
9161 lt_prog_compiler_pic=
9162 lt_prog_compiler_can_build_shared=no
9163 fi
9164
9165 fi
9166
9167
9168
9169
9170
9171
9172 #
9173 # Check to make sure the static flag actually works.
9174 #
9175 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9177 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9178 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9179 $as_echo_n "(cached) " >&6
9180 else
9181 lt_cv_prog_compiler_static_works=no
9182 save_LDFLAGS="$LDFLAGS"
9183 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9184 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9185 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9186 # The linker can only warn and ignore the option if not recognized
9187 # So say no if there are warnings
9188 if test -s conftest.err; then
9189 # Append any errors to the config.log.
9190 cat conftest.err 1>&5
9191 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9192 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9193 if diff conftest.exp conftest.er2 >/dev/null; then
9194 lt_cv_prog_compiler_static_works=yes
9195 fi
9196 else
9197 lt_cv_prog_compiler_static_works=yes
9198 fi
9199 fi
9200 $RM -r conftest*
9201 LDFLAGS="$save_LDFLAGS"
9202
9203 fi
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9205 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9206
9207 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9208 :
9209 else
9210 lt_prog_compiler_static=
9211 fi
9212
9213
9214
9215
9216
9217
9218
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9220 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9221 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9222 $as_echo_n "(cached) " >&6
9223 else
9224 lt_cv_prog_compiler_c_o=no
9225 $RM -r conftest 2>/dev/null
9226 mkdir conftest
9227 cd conftest
9228 mkdir out
9229 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9230
9231 lt_compiler_flag="-o out/conftest2.$ac_objext"
9232 # Insert the option either (1) after the last *FLAGS variable, or
9233 # (2) before a word containing "conftest.", or (3) at the end.
9234 # Note that $ac_compile itself does not contain backslashes and begins
9235 # with a dollar sign (not a hyphen), so the echo should work correctly.
9236 lt_compile=`echo "$ac_compile" | $SED \
9237 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9238 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9239 -e 's:$: $lt_compiler_flag:'`
9240 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9241 (eval "$lt_compile" 2>out/conftest.err)
9242 ac_status=$?
9243 cat out/conftest.err >&5
9244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9246 then
9247 # The compiler can only warn and ignore the option if not recognized
9248 # So say no if there are warnings
9249 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9250 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9251 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9252 lt_cv_prog_compiler_c_o=yes
9253 fi
9254 fi
9255 chmod u+w . 2>&5
9256 $RM conftest*
9257 # SGI C++ compiler will create directory out/ii_files/ for
9258 # template instantiation
9259 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9260 $RM out/* && rmdir out
9261 cd ..
9262 $RM -r conftest
9263 $RM conftest*
9264
9265 fi
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9267 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9268
9269
9270
9271
9272
9273
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9275 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9276 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9277 $as_echo_n "(cached) " >&6
9278 else
9279 lt_cv_prog_compiler_c_o=no
9280 $RM -r conftest 2>/dev/null
9281 mkdir conftest
9282 cd conftest
9283 mkdir out
9284 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9285
9286 lt_compiler_flag="-o out/conftest2.$ac_objext"
9287 # Insert the option either (1) after the last *FLAGS variable, or
9288 # (2) before a word containing "conftest.", or (3) at the end.
9289 # Note that $ac_compile itself does not contain backslashes and begins
9290 # with a dollar sign (not a hyphen), so the echo should work correctly.
9291 lt_compile=`echo "$ac_compile" | $SED \
9292 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9293 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9294 -e 's:$: $lt_compiler_flag:'`
9295 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9296 (eval "$lt_compile" 2>out/conftest.err)
9297 ac_status=$?
9298 cat out/conftest.err >&5
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9301 then
9302 # The compiler can only warn and ignore the option if not recognized
9303 # So say no if there are warnings
9304 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9305 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9306 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9307 lt_cv_prog_compiler_c_o=yes
9308 fi
9309 fi
9310 chmod u+w . 2>&5
9311 $RM conftest*
9312 # SGI C++ compiler will create directory out/ii_files/ for
9313 # template instantiation
9314 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9315 $RM out/* && rmdir out
9316 cd ..
9317 $RM -r conftest
9318 $RM conftest*
9319
9320 fi
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9322 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9323
9324
9325
9326
9327 hard_links="nottested"
9328 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9329 # do not overwrite the value of need_locks provided by the user
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9331 $as_echo_n "checking if we can lock with hard links... " >&6; }
9332 hard_links=yes
9333 $RM conftest*
9334 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9335 touch conftest.a
9336 ln conftest.a conftest.b 2>&5 || hard_links=no
9337 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9339 $as_echo "$hard_links" >&6; }
9340 if test "$hard_links" = no; then
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9342 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9343 need_locks=warn
9344 fi
9345 else
9346 need_locks=no
9347 fi
9348
9349
9350
9351
9352
9353
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9355 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9356
9357 runpath_var=
9358 allow_undefined_flag=
9359 always_export_symbols=no
9360 archive_cmds=
9361 archive_expsym_cmds=
9362 compiler_needs_object=no
9363 enable_shared_with_static_runtimes=no
9364 export_dynamic_flag_spec=
9365 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9366 hardcode_automatic=no
9367 hardcode_direct=no
9368 hardcode_direct_absolute=no
9369 hardcode_libdir_flag_spec=
9370 hardcode_libdir_flag_spec_ld=
9371 hardcode_libdir_separator=
9372 hardcode_minus_L=no
9373 hardcode_shlibpath_var=unsupported
9374 inherit_rpath=no
9375 link_all_deplibs=unknown
9376 module_cmds=
9377 module_expsym_cmds=
9378 old_archive_from_new_cmds=
9379 old_archive_from_expsyms_cmds=
9380 thread_safe_flag_spec=
9381 whole_archive_flag_spec=
9382 # include_expsyms should be a list of space-separated symbols to be *always*
9383 # included in the symbol list
9384 include_expsyms=
9385 # exclude_expsyms can be an extended regexp of symbols to exclude
9386 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9387 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9388 # as well as any symbol that contains `d'.
9389 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9390 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9391 # platforms (ab)use it in PIC code, but their linkers get confused if
9392 # the symbol is explicitly referenced. Since portable code cannot
9393 # rely on this symbol name, it's probably fine to never include it in
9394 # preloaded symbol tables.
9395 # Exclude shared library initialization/finalization symbols.
9396 extract_expsyms_cmds=
9397
9398 case $host_os in
9399 cygwin* | mingw* | pw32* | cegcc*)
9400 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9401 # When not using gcc, we currently assume that we are using
9402 # Microsoft Visual C++.
9403 if test "$GCC" != yes; then
9404 with_gnu_ld=no
9405 fi
9406 ;;
9407 interix*)
9408 # we just hope/assume this is gcc and not c89 (= MSVC++)
9409 with_gnu_ld=yes
9410 ;;
9411 openbsd*)
9412 with_gnu_ld=no
9413 ;;
9414 esac
9415
9416 ld_shlibs=yes
9417
9418 # On some targets, GNU ld is compatible enough with the native linker
9419 # that we're better off using the native interface for both.
9420 lt_use_gnu_ld_interface=no
9421 if test "$with_gnu_ld" = yes; then
9422 case $host_os in
9423 aix*)
9424 # The AIX port of GNU ld has always aspired to compatibility
9425 # with the native linker. However, as the warning in the GNU ld
9426 # block says, versions before 2.19.5* couldn't really create working
9427 # shared libraries, regardless of the interface used.
9428 case `$LD -v 2>&1` in
9429 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9430 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9431 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9432 *)
9433 lt_use_gnu_ld_interface=yes
9434 ;;
9435 esac
9436 ;;
9437 *)
9438 lt_use_gnu_ld_interface=yes
9439 ;;
9440 esac
9441 fi
9442
9443 if test "$lt_use_gnu_ld_interface" = yes; then
9444 # If archive_cmds runs LD, not CC, wlarc should be empty
9445 wlarc='${wl}'
9446
9447 # Set some defaults for GNU ld with shared library support. These
9448 # are reset later if shared libraries are not supported. Putting them
9449 # here allows them to be overridden if necessary.
9450 runpath_var=LD_RUN_PATH
9451 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9452 export_dynamic_flag_spec='${wl}--export-dynamic'
9453 # ancient GNU ld didn't support --whole-archive et. al.
9454 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9455 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9456 else
9457 whole_archive_flag_spec=
9458 fi
9459 supports_anon_versioning=no
9460 case `$LD -v 2>&1` in
9461 *GNU\ gold*) supports_anon_versioning=yes ;;
9462 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9463 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9464 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9465 *\ 2.11.*) ;; # other 2.11 versions
9466 *) supports_anon_versioning=yes ;;
9467 esac
9468
9469 # See if GNU ld supports shared libraries.
9470 case $host_os in
9471 aix[3-9]*)
9472 # On AIX/PPC, the GNU linker is very broken
9473 if test "$host_cpu" != ia64; then
9474 ld_shlibs=no
9475 cat <<_LT_EOF 1>&2
9476
9477 *** Warning: the GNU linker, at least up to release 2.19, is reported
9478 *** to be unable to reliably create shared libraries on AIX.
9479 *** Therefore, libtool is disabling shared libraries support. If you
9480 *** really care for shared libraries, you may want to install binutils
9481 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9482 *** You will then need to restart the configuration process.
9483
9484 _LT_EOF
9485 fi
9486 ;;
9487
9488 amigaos*)
9489 case $host_cpu in
9490 powerpc)
9491 # see comment about AmigaOS4 .so support
9492 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9493 archive_expsym_cmds=''
9494 ;;
9495 m68k)
9496 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)'
9497 hardcode_libdir_flag_spec='-L$libdir'
9498 hardcode_minus_L=yes
9499 ;;
9500 esac
9501 ;;
9502
9503 beos*)
9504 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9505 allow_undefined_flag=unsupported
9506 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9507 # support --undefined. This deserves some investigation. FIXME
9508 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9509 else
9510 ld_shlibs=no
9511 fi
9512 ;;
9513
9514 cygwin* | mingw* | pw32* | cegcc*)
9515 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9516 # as there is no search path for DLLs.
9517 hardcode_libdir_flag_spec='-L$libdir'
9518 export_dynamic_flag_spec='${wl}--export-all-symbols'
9519 allow_undefined_flag=unsupported
9520 always_export_symbols=no
9521 enable_shared_with_static_runtimes=yes
9522 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9523
9524 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9525 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9526 # If the export-symbols file already is a .def file (1st line
9527 # is EXPORTS), use it as is; otherwise, prepend...
9528 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9529 cp $export_symbols $output_objdir/$soname.def;
9530 else
9531 echo EXPORTS > $output_objdir/$soname.def;
9532 cat $export_symbols >> $output_objdir/$soname.def;
9533 fi~
9534 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9535 else
9536 ld_shlibs=no
9537 fi
9538 ;;
9539
9540 haiku*)
9541 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9542 link_all_deplibs=yes
9543 ;;
9544
9545 interix[3-9]*)
9546 hardcode_direct=no
9547 hardcode_shlibpath_var=no
9548 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9549 export_dynamic_flag_spec='${wl}-E'
9550 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9551 # Instead, shared libraries are loaded at an image base (0x10000000 by
9552 # default) and relocated if they conflict, which is a slow very memory
9553 # consuming and fragmenting process. To avoid this, we pick a random,
9554 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9555 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9556 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9557 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'
9558 ;;
9559
9560 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9561 tmp_diet=no
9562 if test "$host_os" = linux-dietlibc; then
9563 case $cc_basename in
9564 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9565 esac
9566 fi
9567 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9568 && test "$tmp_diet" = no
9569 then
9570 tmp_addflag=
9571 tmp_sharedflag='-shared'
9572 case $cc_basename,$host_cpu in
9573 pgcc*) # Portland Group C compiler
9574 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'
9575 tmp_addflag=' $pic_flag'
9576 ;;
9577 pgf77* | pgf90* | pgf95* | pgfortran*)
9578 # Portland Group f77 and f90 compilers
9579 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'
9580 tmp_addflag=' $pic_flag -Mnomain' ;;
9581 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9582 tmp_addflag=' -i_dynamic' ;;
9583 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9584 tmp_addflag=' -i_dynamic -nofor_main' ;;
9585 ifc* | ifort*) # Intel Fortran compiler
9586 tmp_addflag=' -nofor_main' ;;
9587 lf95*) # Lahey Fortran 8.1
9588 whole_archive_flag_spec=
9589 tmp_sharedflag='--shared' ;;
9590 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9591 tmp_sharedflag='-qmkshrobj'
9592 tmp_addflag= ;;
9593 nvcc*) # Cuda Compiler Driver 2.2
9594 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'
9595 compiler_needs_object=yes
9596 ;;
9597 esac
9598 case `$CC -V 2>&1 | sed 5q` in
9599 *Sun\ C*) # Sun C 5.9
9600 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'
9601 compiler_needs_object=yes
9602 tmp_sharedflag='-G' ;;
9603 *Sun\ F*) # Sun Fortran 8.3
9604 tmp_sharedflag='-G' ;;
9605 esac
9606 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9607
9608 if test "x$supports_anon_versioning" = xyes; then
9609 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9610 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9611 echo "local: *; };" >> $output_objdir/$libname.ver~
9612 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9613 fi
9614
9615 case $cc_basename in
9616 xlf* | bgf* | bgxlf* | mpixlf*)
9617 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9618 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9619 hardcode_libdir_flag_spec=
9620 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9621 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9622 if test "x$supports_anon_versioning" = xyes; then
9623 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9624 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9625 echo "local: *; };" >> $output_objdir/$libname.ver~
9626 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9627 fi
9628 ;;
9629 esac
9630 else
9631 ld_shlibs=no
9632 fi
9633 ;;
9634
9635 netbsd*)
9636 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9637 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9638 wlarc=
9639 else
9640 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9641 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9642 fi
9643 ;;
9644
9645 solaris*)
9646 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9647 ld_shlibs=no
9648 cat <<_LT_EOF 1>&2
9649
9650 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9651 *** create shared libraries on Solaris systems. Therefore, libtool
9652 *** is disabling shared libraries support. We urge you to upgrade GNU
9653 *** binutils to release 2.9.1 or newer. Another option is to modify
9654 *** your PATH or compiler configuration so that the native linker is
9655 *** used, and then restart.
9656
9657 _LT_EOF
9658 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9659 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9660 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9661 else
9662 ld_shlibs=no
9663 fi
9664 ;;
9665
9666 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9667 case `$LD -v 2>&1` in
9668 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9669 ld_shlibs=no
9670 cat <<_LT_EOF 1>&2
9671
9672 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9673 *** reliably create shared libraries on SCO systems. Therefore, libtool
9674 *** is disabling shared libraries support. We urge you to upgrade GNU
9675 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9676 *** your PATH or compiler configuration so that the native linker is
9677 *** used, and then restart.
9678
9679 _LT_EOF
9680 ;;
9681 *)
9682 # For security reasons, it is highly recommended that you always
9683 # use absolute paths for naming shared libraries, and exclude the
9684 # DT_RUNPATH tag from executables and libraries. But doing so
9685 # requires that you compile everything twice, which is a pain.
9686 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9687 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9688 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9689 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9690 else
9691 ld_shlibs=no
9692 fi
9693 ;;
9694 esac
9695 ;;
9696
9697 sunos4*)
9698 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9699 wlarc=
9700 hardcode_direct=yes
9701 hardcode_shlibpath_var=no
9702 ;;
9703
9704 *)
9705 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9706 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9707 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9708 else
9709 ld_shlibs=no
9710 fi
9711 ;;
9712 esac
9713
9714 if test "$ld_shlibs" = no; then
9715 runpath_var=
9716 hardcode_libdir_flag_spec=
9717 export_dynamic_flag_spec=
9718 whole_archive_flag_spec=
9719 fi
9720 else
9721 # PORTME fill in a description of your system's linker (not GNU ld)
9722 case $host_os in
9723 aix3*)
9724 allow_undefined_flag=unsupported
9725 always_export_symbols=yes
9726 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'
9727 # Note: this linker hardcodes the directories in LIBPATH if there
9728 # are no directories specified by -L.
9729 hardcode_minus_L=yes
9730 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9731 # Neither direct hardcoding nor static linking is supported with a
9732 # broken collect2.
9733 hardcode_direct=unsupported
9734 fi
9735 ;;
9736
9737 aix[4-9]*)
9738 if test "$host_cpu" = ia64; then
9739 # On IA64, the linker does run time linking by default, so we don't
9740 # have to do anything special.
9741 aix_use_runtimelinking=no
9742 exp_sym_flag='-Bexport'
9743 no_entry_flag=""
9744 else
9745 # If we're using GNU nm, then we don't want the "-C" option.
9746 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9747 # Also, AIX nm treats weak defined symbols like other global
9748 # defined symbols, whereas GNU nm marks them as "W".
9749 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9750 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'
9751 else
9752 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'
9753 fi
9754 aix_use_runtimelinking=no
9755
9756 # Test if we are trying to use run time linking or normal
9757 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9758 # need to do runtime linking.
9759 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9760 for ld_flag in $LDFLAGS; do
9761 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9762 aix_use_runtimelinking=yes
9763 break
9764 fi
9765 done
9766 ;;
9767 esac
9768
9769 exp_sym_flag='-bexport'
9770 no_entry_flag='-bnoentry'
9771 fi
9772
9773 # When large executables or shared objects are built, AIX ld can
9774 # have problems creating the table of contents. If linking a library
9775 # or program results in "error TOC overflow" add -mminimal-toc to
9776 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9777 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9778
9779 archive_cmds=''
9780 hardcode_direct=yes
9781 hardcode_direct_absolute=yes
9782 hardcode_libdir_separator=':'
9783 link_all_deplibs=yes
9784 file_list_spec='${wl}-f,'
9785
9786 if test "$GCC" = yes; then
9787 case $host_os in aix4.[012]|aix4.[012].*)
9788 # We only want to do this on AIX 4.2 and lower, the check
9789 # below for broken collect2 doesn't work under 4.3+
9790 collect2name=`${CC} -print-prog-name=collect2`
9791 if test -f "$collect2name" &&
9792 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9793 then
9794 # We have reworked collect2
9795 :
9796 else
9797 # We have old collect2
9798 hardcode_direct=unsupported
9799 # It fails to find uninstalled libraries when the uninstalled
9800 # path is not listed in the libpath. Setting hardcode_minus_L
9801 # to unsupported forces relinking
9802 hardcode_minus_L=yes
9803 hardcode_libdir_flag_spec='-L$libdir'
9804 hardcode_libdir_separator=
9805 fi
9806 ;;
9807 esac
9808 shared_flag='-shared'
9809 if test "$aix_use_runtimelinking" = yes; then
9810 shared_flag="$shared_flag "'${wl}-G'
9811 fi
9812 else
9813 # not using gcc
9814 if test "$host_cpu" = ia64; then
9815 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9816 # chokes on -Wl,-G. The following line is correct:
9817 shared_flag='-G'
9818 else
9819 if test "$aix_use_runtimelinking" = yes; then
9820 shared_flag='${wl}-G'
9821 else
9822 shared_flag='${wl}-bM:SRE'
9823 fi
9824 fi
9825 fi
9826
9827 export_dynamic_flag_spec='${wl}-bexpall'
9828 # It seems that -bexpall does not export symbols beginning with
9829 # underscore (_), so it is better to generate a list of symbols to export.
9830 always_export_symbols=yes
9831 if test "$aix_use_runtimelinking" = yes; then
9832 # Warning - without using the other runtime loading flags (-brtl),
9833 # -berok will link without error, but may produce a broken library.
9834 allow_undefined_flag='-berok'
9835 # Determine the default libpath from the value encoded in an
9836 # empty executable.
9837 if test x$gcc_no_link = xyes; then
9838 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9839 fi
9840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9841 /* end confdefs.h. */
9842
9843 int
9844 main ()
9845 {
9846
9847 ;
9848 return 0;
9849 }
9850 _ACEOF
9851 if ac_fn_c_try_link "$LINENO"; then :
9852
9853 lt_aix_libpath_sed='
9854 /Import File Strings/,/^$/ {
9855 /^0/ {
9856 s/^0 *\(.*\)$/\1/
9857 p
9858 }
9859 }'
9860 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9861 # Check for a 64-bit object if we didn't find anything.
9862 if test -z "$aix_libpath"; then
9863 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9864 fi
9865 fi
9866 rm -f core conftest.err conftest.$ac_objext \
9867 conftest$ac_exeext conftest.$ac_ext
9868 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9869
9870 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9871 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"
9872 else
9873 if test "$host_cpu" = ia64; then
9874 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9875 allow_undefined_flag="-z nodefs"
9876 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"
9877 else
9878 # Determine the default libpath from the value encoded in an
9879 # empty executable.
9880 if test x$gcc_no_link = xyes; then
9881 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9882 fi
9883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9884 /* end confdefs.h. */
9885
9886 int
9887 main ()
9888 {
9889
9890 ;
9891 return 0;
9892 }
9893 _ACEOF
9894 if ac_fn_c_try_link "$LINENO"; then :
9895
9896 lt_aix_libpath_sed='
9897 /Import File Strings/,/^$/ {
9898 /^0/ {
9899 s/^0 *\(.*\)$/\1/
9900 p
9901 }
9902 }'
9903 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9904 # Check for a 64-bit object if we didn't find anything.
9905 if test -z "$aix_libpath"; then
9906 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9907 fi
9908 fi
9909 rm -f core conftest.err conftest.$ac_objext \
9910 conftest$ac_exeext conftest.$ac_ext
9911 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9912
9913 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9914 # Warning - without using the other run time loading flags,
9915 # -berok will link without error, but may produce a broken library.
9916 no_undefined_flag=' ${wl}-bernotok'
9917 allow_undefined_flag=' ${wl}-berok'
9918 if test "$with_gnu_ld" = yes; then
9919 # We only use this code for GNU lds that support --whole-archive.
9920 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9921 else
9922 # Exported symbols can be pulled into shared objects from archives
9923 whole_archive_flag_spec='$convenience'
9924 fi
9925 archive_cmds_need_lc=yes
9926 # This is similar to how AIX traditionally builds its shared libraries.
9927 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'
9928 fi
9929 fi
9930 ;;
9931
9932 amigaos*)
9933 case $host_cpu in
9934 powerpc)
9935 # see comment about AmigaOS4 .so support
9936 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9937 archive_expsym_cmds=''
9938 ;;
9939 m68k)
9940 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)'
9941 hardcode_libdir_flag_spec='-L$libdir'
9942 hardcode_minus_L=yes
9943 ;;
9944 esac
9945 ;;
9946
9947 bsdi[45]*)
9948 export_dynamic_flag_spec=-rdynamic
9949 ;;
9950
9951 cygwin* | mingw* | pw32* | cegcc*)
9952 # When not using gcc, we currently assume that we are using
9953 # Microsoft Visual C++.
9954 # hardcode_libdir_flag_spec is actually meaningless, as there is
9955 # no search path for DLLs.
9956 hardcode_libdir_flag_spec=' '
9957 allow_undefined_flag=unsupported
9958 # Tell ltmain to make .lib files, not .a files.
9959 libext=lib
9960 # Tell ltmain to make .dll files, not .so files.
9961 shrext_cmds=".dll"
9962 # FIXME: Setting linknames here is a bad hack.
9963 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9964 # The linker will automatically build a .lib file if we build a DLL.
9965 old_archive_from_new_cmds='true'
9966 # FIXME: Should let the user specify the lib program.
9967 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9968 fix_srcfile_path='`cygpath -w "$srcfile"`'
9969 enable_shared_with_static_runtimes=yes
9970 ;;
9971
9972 darwin* | rhapsody*)
9973
9974
9975 archive_cmds_need_lc=no
9976 hardcode_direct=no
9977 hardcode_automatic=yes
9978 hardcode_shlibpath_var=unsupported
9979 if test "$lt_cv_ld_force_load" = "yes"; then
9980 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\"`'
9981 else
9982 whole_archive_flag_spec=''
9983 fi
9984 link_all_deplibs=yes
9985 allow_undefined_flag="$_lt_dar_allow_undefined"
9986 case $cc_basename in
9987 ifort*) _lt_dar_can_shared=yes ;;
9988 *) _lt_dar_can_shared=$GCC ;;
9989 esac
9990 if test "$_lt_dar_can_shared" = "yes"; then
9991 output_verbose_link_cmd=func_echo_all
9992 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9993 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9994 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}"
9995 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}"
9996
9997 else
9998 ld_shlibs=no
9999 fi
10000
10001 ;;
10002
10003 dgux*)
10004 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10005 hardcode_libdir_flag_spec='-L$libdir'
10006 hardcode_shlibpath_var=no
10007 ;;
10008
10009 freebsd1*)
10010 ld_shlibs=no
10011 ;;
10012
10013 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10014 # support. Future versions do this automatically, but an explicit c++rt0.o
10015 # does not break anything, and helps significantly (at the cost of a little
10016 # extra space).
10017 freebsd2.2*)
10018 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10019 hardcode_libdir_flag_spec='-R$libdir'
10020 hardcode_direct=yes
10021 hardcode_shlibpath_var=no
10022 ;;
10023
10024 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10025 freebsd2*)
10026 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10027 hardcode_direct=yes
10028 hardcode_minus_L=yes
10029 hardcode_shlibpath_var=no
10030 ;;
10031
10032 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10033 freebsd* | dragonfly*)
10034 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10035 hardcode_libdir_flag_spec='-R$libdir'
10036 hardcode_direct=yes
10037 hardcode_shlibpath_var=no
10038 ;;
10039
10040 hpux9*)
10041 if test "$GCC" = yes; then
10042 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'
10043 else
10044 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'
10045 fi
10046 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10047 hardcode_libdir_separator=:
10048 hardcode_direct=yes
10049
10050 # hardcode_minus_L: Not really in the search PATH,
10051 # but as the default location of the library.
10052 hardcode_minus_L=yes
10053 export_dynamic_flag_spec='${wl}-E'
10054 ;;
10055
10056 hpux10*)
10057 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10058 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10059 else
10060 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10061 fi
10062 if test "$with_gnu_ld" = no; then
10063 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10064 hardcode_libdir_flag_spec_ld='+b $libdir'
10065 hardcode_libdir_separator=:
10066 hardcode_direct=yes
10067 hardcode_direct_absolute=yes
10068 export_dynamic_flag_spec='${wl}-E'
10069 # hardcode_minus_L: Not really in the search PATH,
10070 # but as the default location of the library.
10071 hardcode_minus_L=yes
10072 fi
10073 ;;
10074
10075 hpux11*)
10076 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10077 case $host_cpu in
10078 hppa*64*)
10079 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10080 ;;
10081 ia64*)
10082 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10083 ;;
10084 *)
10085 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10086 ;;
10087 esac
10088 else
10089 case $host_cpu in
10090 hppa*64*)
10091 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10092 ;;
10093 ia64*)
10094 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10095 ;;
10096 *)
10097
10098 # Older versions of the 11.00 compiler do not understand -b yet
10099 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10101 $as_echo_n "checking if $CC understands -b... " >&6; }
10102 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10103 $as_echo_n "(cached) " >&6
10104 else
10105 lt_cv_prog_compiler__b=no
10106 save_LDFLAGS="$LDFLAGS"
10107 LDFLAGS="$LDFLAGS -b"
10108 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10109 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10110 # The linker can only warn and ignore the option if not recognized
10111 # So say no if there are warnings
10112 if test -s conftest.err; then
10113 # Append any errors to the config.log.
10114 cat conftest.err 1>&5
10115 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10116 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10117 if diff conftest.exp conftest.er2 >/dev/null; then
10118 lt_cv_prog_compiler__b=yes
10119 fi
10120 else
10121 lt_cv_prog_compiler__b=yes
10122 fi
10123 fi
10124 $RM -r conftest*
10125 LDFLAGS="$save_LDFLAGS"
10126
10127 fi
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10129 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10130
10131 if test x"$lt_cv_prog_compiler__b" = xyes; then
10132 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10133 else
10134 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10135 fi
10136
10137 ;;
10138 esac
10139 fi
10140 if test "$with_gnu_ld" = no; then
10141 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10142 hardcode_libdir_separator=:
10143
10144 case $host_cpu in
10145 hppa*64*|ia64*)
10146 hardcode_direct=no
10147 hardcode_shlibpath_var=no
10148 ;;
10149 *)
10150 hardcode_direct=yes
10151 hardcode_direct_absolute=yes
10152 export_dynamic_flag_spec='${wl}-E'
10153
10154 # hardcode_minus_L: Not really in the search PATH,
10155 # but as the default location of the library.
10156 hardcode_minus_L=yes
10157 ;;
10158 esac
10159 fi
10160 ;;
10161
10162 irix5* | irix6* | nonstopux*)
10163 if test "$GCC" = yes; then
10164 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'
10165 # Try to use the -exported_symbol ld option, if it does not
10166 # work, assume that -exports_file does not work either and
10167 # implicitly export all symbols.
10168 save_LDFLAGS="$LDFLAGS"
10169 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10170 if test x$gcc_no_link = xyes; then
10171 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10172 fi
10173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10174 /* end confdefs.h. */
10175 int foo(void) {}
10176 _ACEOF
10177 if ac_fn_c_try_link "$LINENO"; then :
10178 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'
10179
10180 fi
10181 rm -f core conftest.err conftest.$ac_objext \
10182 conftest$ac_exeext conftest.$ac_ext
10183 LDFLAGS="$save_LDFLAGS"
10184 else
10185 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'
10186 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'
10187 fi
10188 archive_cmds_need_lc='no'
10189 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10190 hardcode_libdir_separator=:
10191 inherit_rpath=yes
10192 link_all_deplibs=yes
10193 ;;
10194
10195 netbsd*)
10196 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10197 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10198 else
10199 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10200 fi
10201 hardcode_libdir_flag_spec='-R$libdir'
10202 hardcode_direct=yes
10203 hardcode_shlibpath_var=no
10204 ;;
10205
10206 newsos6)
10207 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10208 hardcode_direct=yes
10209 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10210 hardcode_libdir_separator=:
10211 hardcode_shlibpath_var=no
10212 ;;
10213
10214 *nto* | *qnx*)
10215 ;;
10216
10217 openbsd*)
10218 if test -f /usr/libexec/ld.so; then
10219 hardcode_direct=yes
10220 hardcode_shlibpath_var=no
10221 hardcode_direct_absolute=yes
10222 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10223 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10224 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10225 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10226 export_dynamic_flag_spec='${wl}-E'
10227 else
10228 case $host_os in
10229 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10230 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10231 hardcode_libdir_flag_spec='-R$libdir'
10232 ;;
10233 *)
10234 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10235 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10236 ;;
10237 esac
10238 fi
10239 else
10240 ld_shlibs=no
10241 fi
10242 ;;
10243
10244 os2*)
10245 hardcode_libdir_flag_spec='-L$libdir'
10246 hardcode_minus_L=yes
10247 allow_undefined_flag=unsupported
10248 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'
10249 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10250 ;;
10251
10252 osf3*)
10253 if test "$GCC" = yes; then
10254 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10255 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'
10256 else
10257 allow_undefined_flag=' -expect_unresolved \*'
10258 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'
10259 fi
10260 archive_cmds_need_lc='no'
10261 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10262 hardcode_libdir_separator=:
10263 ;;
10264
10265 osf4* | osf5*) # as osf3* with the addition of -msym flag
10266 if test "$GCC" = yes; then
10267 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10268 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'
10269 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10270 else
10271 allow_undefined_flag=' -expect_unresolved \*'
10272 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'
10273 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~
10274 $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'
10275
10276 # Both c and cxx compiler support -rpath directly
10277 hardcode_libdir_flag_spec='-rpath $libdir'
10278 fi
10279 archive_cmds_need_lc='no'
10280 hardcode_libdir_separator=:
10281 ;;
10282
10283 solaris*)
10284 no_undefined_flag=' -z defs'
10285 if test "$GCC" = yes; then
10286 wlarc='${wl}'
10287 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10288 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10289 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10290 else
10291 case `$CC -V 2>&1` in
10292 *"Compilers 5.0"*)
10293 wlarc=''
10294 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10295 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10296 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10297 ;;
10298 *)
10299 wlarc='${wl}'
10300 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10301 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10302 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10303 ;;
10304 esac
10305 fi
10306 hardcode_libdir_flag_spec='-R$libdir'
10307 hardcode_shlibpath_var=no
10308 case $host_os in
10309 solaris2.[0-5] | solaris2.[0-5].*) ;;
10310 *)
10311 # The compiler driver will combine and reorder linker options,
10312 # but understands `-z linker_flag'. GCC discards it without `$wl',
10313 # but is careful enough not to reorder.
10314 # Supported since Solaris 2.6 (maybe 2.5.1?)
10315 if test "$GCC" = yes; then
10316 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10317 else
10318 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10319 fi
10320 ;;
10321 esac
10322 link_all_deplibs=yes
10323 ;;
10324
10325 sunos4*)
10326 if test "x$host_vendor" = xsequent; then
10327 # Use $CC to link under sequent, because it throws in some extra .o
10328 # files that make .init and .fini sections work.
10329 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10330 else
10331 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10332 fi
10333 hardcode_libdir_flag_spec='-L$libdir'
10334 hardcode_direct=yes
10335 hardcode_minus_L=yes
10336 hardcode_shlibpath_var=no
10337 ;;
10338
10339 sysv4)
10340 case $host_vendor in
10341 sni)
10342 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10343 hardcode_direct=yes # is this really true???
10344 ;;
10345 siemens)
10346 ## LD is ld it makes a PLAMLIB
10347 ## CC just makes a GrossModule.
10348 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10349 reload_cmds='$CC -r -o $output$reload_objs'
10350 hardcode_direct=no
10351 ;;
10352 motorola)
10353 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10354 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10355 ;;
10356 esac
10357 runpath_var='LD_RUN_PATH'
10358 hardcode_shlibpath_var=no
10359 ;;
10360
10361 sysv4.3*)
10362 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10363 hardcode_shlibpath_var=no
10364 export_dynamic_flag_spec='-Bexport'
10365 ;;
10366
10367 sysv4*MP*)
10368 if test -d /usr/nec; then
10369 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10370 hardcode_shlibpath_var=no
10371 runpath_var=LD_RUN_PATH
10372 hardcode_runpath_var=yes
10373 ld_shlibs=yes
10374 fi
10375 ;;
10376
10377 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10378 no_undefined_flag='${wl}-z,text'
10379 archive_cmds_need_lc=no
10380 hardcode_shlibpath_var=no
10381 runpath_var='LD_RUN_PATH'
10382
10383 if test "$GCC" = yes; then
10384 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10385 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10386 else
10387 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10388 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10389 fi
10390 ;;
10391
10392 sysv5* | sco3.2v5* | sco5v6*)
10393 # Note: We can NOT use -z defs as we might desire, because we do not
10394 # link with -lc, and that would cause any symbols used from libc to
10395 # always be unresolved, which means just about no library would
10396 # ever link correctly. If we're not using GNU ld we use -z text
10397 # though, which does catch some bad symbols but isn't as heavy-handed
10398 # as -z defs.
10399 no_undefined_flag='${wl}-z,text'
10400 allow_undefined_flag='${wl}-z,nodefs'
10401 archive_cmds_need_lc=no
10402 hardcode_shlibpath_var=no
10403 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10404 hardcode_libdir_separator=':'
10405 link_all_deplibs=yes
10406 export_dynamic_flag_spec='${wl}-Bexport'
10407 runpath_var='LD_RUN_PATH'
10408
10409 if test "$GCC" = yes; then
10410 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10411 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10412 else
10413 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10414 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10415 fi
10416 ;;
10417
10418 uts4*)
10419 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10420 hardcode_libdir_flag_spec='-L$libdir'
10421 hardcode_shlibpath_var=no
10422 ;;
10423
10424 *)
10425 ld_shlibs=no
10426 ;;
10427 esac
10428
10429 if test x$host_vendor = xsni; then
10430 case $host in
10431 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10432 export_dynamic_flag_spec='${wl}-Blargedynsym'
10433 ;;
10434 esac
10435 fi
10436 fi
10437
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10439 $as_echo "$ld_shlibs" >&6; }
10440 test "$ld_shlibs" = no && can_build_shared=no
10441
10442 with_gnu_ld=$with_gnu_ld
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458 #
10459 # Do we need to explicitly link libc?
10460 #
10461 case "x$archive_cmds_need_lc" in
10462 x|xyes)
10463 # Assume -lc should be added
10464 archive_cmds_need_lc=yes
10465
10466 if test "$enable_shared" = yes && test "$GCC" = yes; then
10467 case $archive_cmds in
10468 *'~'*)
10469 # FIXME: we may have to deal with multi-command sequences.
10470 ;;
10471 '$CC '*)
10472 # Test whether the compiler implicitly links with -lc since on some
10473 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10474 # to ld, don't add -lc before -lgcc.
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10476 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10477 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10478 $as_echo_n "(cached) " >&6
10479 else
10480 $RM conftest*
10481 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10482
10483 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10484 (eval $ac_compile) 2>&5
10485 ac_status=$?
10486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10487 test $ac_status = 0; } 2>conftest.err; then
10488 soname=conftest
10489 lib=conftest
10490 libobjs=conftest.$ac_objext
10491 deplibs=
10492 wl=$lt_prog_compiler_wl
10493 pic_flag=$lt_prog_compiler_pic
10494 compiler_flags=-v
10495 linker_flags=-v
10496 verstring=
10497 output_objdir=.
10498 libname=conftest
10499 lt_save_allow_undefined_flag=$allow_undefined_flag
10500 allow_undefined_flag=
10501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10502 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10503 ac_status=$?
10504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10505 test $ac_status = 0; }
10506 then
10507 lt_cv_archive_cmds_need_lc=no
10508 else
10509 lt_cv_archive_cmds_need_lc=yes
10510 fi
10511 allow_undefined_flag=$lt_save_allow_undefined_flag
10512 else
10513 cat conftest.err 1>&5
10514 fi
10515 $RM conftest*
10516
10517 fi
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10519 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10520 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10521 ;;
10522 esac
10523 fi
10524 ;;
10525 esac
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10684 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10685
10686 if test "$GCC" = yes; then
10687 case $host_os in
10688 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10689 *) lt_awk_arg="/^libraries:/" ;;
10690 esac
10691 case $host_os in
10692 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10693 *) lt_sed_strip_eq="s,=/,/,g" ;;
10694 esac
10695 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10696 case $lt_search_path_spec in
10697 *\;*)
10698 # if the path contains ";" then we assume it to be the separator
10699 # otherwise default to the standard path separator (i.e. ":") - it is
10700 # assumed that no part of a normal pathname contains ";" but that should
10701 # okay in the real world where ";" in dirpaths is itself problematic.
10702 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10703 ;;
10704 *)
10705 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10706 ;;
10707 esac
10708 # Ok, now we have the path, separated by spaces, we can step through it
10709 # and add multilib dir if necessary.
10710 lt_tmp_lt_search_path_spec=
10711 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10712 for lt_sys_path in $lt_search_path_spec; do
10713 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10714 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10715 else
10716 test -d "$lt_sys_path" && \
10717 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10718 fi
10719 done
10720 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10721 BEGIN {RS=" "; FS="/|\n";} {
10722 lt_foo="";
10723 lt_count=0;
10724 for (lt_i = NF; lt_i > 0; lt_i--) {
10725 if ($lt_i != "" && $lt_i != ".") {
10726 if ($lt_i == "..") {
10727 lt_count++;
10728 } else {
10729 if (lt_count == 0) {
10730 lt_foo="/" $lt_i lt_foo;
10731 } else {
10732 lt_count--;
10733 }
10734 }
10735 }
10736 }
10737 if (lt_foo != "") { lt_freq[lt_foo]++; }
10738 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10739 }'`
10740 # AWK program above erroneously prepends '/' to C:/dos/paths
10741 # for these hosts.
10742 case $host_os in
10743 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10744 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10745 esac
10746 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10747 else
10748 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10749 fi
10750 library_names_spec=
10751 libname_spec='lib$name'
10752 soname_spec=
10753 shrext_cmds=".so"
10754 postinstall_cmds=
10755 postuninstall_cmds=
10756 finish_cmds=
10757 finish_eval=
10758 shlibpath_var=
10759 shlibpath_overrides_runpath=unknown
10760 version_type=none
10761 dynamic_linker="$host_os ld.so"
10762 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10763 need_lib_prefix=unknown
10764 hardcode_into_libs=no
10765
10766 # when you set need_version to no, make sure it does not cause -set_version
10767 # flags to be left without arguments
10768 need_version=unknown
10769
10770 case $host_os in
10771 aix3*)
10772 version_type=linux
10773 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10774 shlibpath_var=LIBPATH
10775
10776 # AIX 3 has no versioning support, so we append a major version to the name.
10777 soname_spec='${libname}${release}${shared_ext}$major'
10778 ;;
10779
10780 aix[4-9]*)
10781 version_type=linux
10782 need_lib_prefix=no
10783 need_version=no
10784 hardcode_into_libs=yes
10785 if test "$host_cpu" = ia64; then
10786 # AIX 5 supports IA64
10787 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10788 shlibpath_var=LD_LIBRARY_PATH
10789 else
10790 # With GCC up to 2.95.x, collect2 would create an import file
10791 # for dependence libraries. The import file would start with
10792 # the line `#! .'. This would cause the generated library to
10793 # depend on `.', always an invalid library. This was fixed in
10794 # development snapshots of GCC prior to 3.0.
10795 case $host_os in
10796 aix4 | aix4.[01] | aix4.[01].*)
10797 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10798 echo ' yes '
10799 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10800 :
10801 else
10802 can_build_shared=no
10803 fi
10804 ;;
10805 esac
10806 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10807 # soname into executable. Probably we can add versioning support to
10808 # collect2, so additional links can be useful in future.
10809 if test "$aix_use_runtimelinking" = yes; then
10810 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10811 # instead of lib<name>.a to let people know that these are not
10812 # typical AIX shared libraries.
10813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10814 else
10815 # We preserve .a as extension for shared libraries through AIX4.2
10816 # and later when we are not doing run time linking.
10817 library_names_spec='${libname}${release}.a $libname.a'
10818 soname_spec='${libname}${release}${shared_ext}$major'
10819 fi
10820 shlibpath_var=LIBPATH
10821 fi
10822 ;;
10823
10824 amigaos*)
10825 case $host_cpu in
10826 powerpc)
10827 # Since July 2007 AmigaOS4 officially supports .so libraries.
10828 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10830 ;;
10831 m68k)
10832 library_names_spec='$libname.ixlibrary $libname.a'
10833 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10834 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'
10835 ;;
10836 esac
10837 ;;
10838
10839 beos*)
10840 library_names_spec='${libname}${shared_ext}'
10841 dynamic_linker="$host_os ld.so"
10842 shlibpath_var=LIBRARY_PATH
10843 ;;
10844
10845 bsdi[45]*)
10846 version_type=linux
10847 need_version=no
10848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10849 soname_spec='${libname}${release}${shared_ext}$major'
10850 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10851 shlibpath_var=LD_LIBRARY_PATH
10852 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10853 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10854 # the default ld.so.conf also contains /usr/contrib/lib and
10855 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10856 # libtool to hard-code these into programs
10857 ;;
10858
10859 cygwin* | mingw* | pw32* | cegcc*)
10860 version_type=windows
10861 shrext_cmds=".dll"
10862 need_version=no
10863 need_lib_prefix=no
10864
10865 case $GCC,$host_os in
10866 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10867 library_names_spec='$libname.dll.a'
10868 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10869 postinstall_cmds='base_file=`basename \${file}`~
10870 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10871 dldir=$destdir/`dirname \$dlpath`~
10872 test -d \$dldir || mkdir -p \$dldir~
10873 $install_prog $dir/$dlname \$dldir/$dlname~
10874 chmod a+x \$dldir/$dlname~
10875 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10876 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10877 fi'
10878 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10879 dlpath=$dir/\$dldll~
10880 $RM \$dlpath'
10881 shlibpath_overrides_runpath=yes
10882
10883 case $host_os in
10884 cygwin*)
10885 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10886 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10887
10888 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10889 ;;
10890 mingw* | cegcc*)
10891 # MinGW DLLs use traditional 'lib' prefix
10892 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10893 ;;
10894 pw32*)
10895 # pw32 DLLs use 'pw' prefix rather than 'lib'
10896 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10897 ;;
10898 esac
10899 ;;
10900
10901 *)
10902 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10903 ;;
10904 esac
10905 dynamic_linker='Win32 ld.exe'
10906 # FIXME: first we should search . and the directory the executable is in
10907 shlibpath_var=PATH
10908 ;;
10909
10910 darwin* | rhapsody*)
10911 dynamic_linker="$host_os dyld"
10912 version_type=darwin
10913 need_lib_prefix=no
10914 need_version=no
10915 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10916 soname_spec='${libname}${release}${major}$shared_ext'
10917 shlibpath_overrides_runpath=yes
10918 shlibpath_var=DYLD_LIBRARY_PATH
10919 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10920
10921 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10922 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10923 ;;
10924
10925 dgux*)
10926 version_type=linux
10927 need_lib_prefix=no
10928 need_version=no
10929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10930 soname_spec='${libname}${release}${shared_ext}$major'
10931 shlibpath_var=LD_LIBRARY_PATH
10932 ;;
10933
10934 freebsd1*)
10935 dynamic_linker=no
10936 ;;
10937
10938 freebsd* | dragonfly*)
10939 # DragonFly does not have aout. When/if they implement a new
10940 # versioning mechanism, adjust this.
10941 if test -x /usr/bin/objformat; then
10942 objformat=`/usr/bin/objformat`
10943 else
10944 case $host_os in
10945 freebsd[123]*) objformat=aout ;;
10946 *) objformat=elf ;;
10947 esac
10948 fi
10949 version_type=freebsd-$objformat
10950 case $version_type in
10951 freebsd-elf*)
10952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10953 need_version=no
10954 need_lib_prefix=no
10955 ;;
10956 freebsd-*)
10957 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10958 need_version=yes
10959 ;;
10960 esac
10961 shlibpath_var=LD_LIBRARY_PATH
10962 case $host_os in
10963 freebsd2*)
10964 shlibpath_overrides_runpath=yes
10965 ;;
10966 freebsd3.[01]* | freebsdelf3.[01]*)
10967 shlibpath_overrides_runpath=yes
10968 hardcode_into_libs=yes
10969 ;;
10970 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10971 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10972 shlibpath_overrides_runpath=no
10973 hardcode_into_libs=yes
10974 ;;
10975 *) # from 4.6 on, and DragonFly
10976 shlibpath_overrides_runpath=yes
10977 hardcode_into_libs=yes
10978 ;;
10979 esac
10980 ;;
10981
10982 gnu*)
10983 version_type=linux
10984 need_lib_prefix=no
10985 need_version=no
10986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10987 soname_spec='${libname}${release}${shared_ext}$major'
10988 shlibpath_var=LD_LIBRARY_PATH
10989 hardcode_into_libs=yes
10990 ;;
10991
10992 haiku*)
10993 version_type=linux
10994 need_lib_prefix=no
10995 need_version=no
10996 dynamic_linker="$host_os runtime_loader"
10997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10998 soname_spec='${libname}${release}${shared_ext}$major'
10999 shlibpath_var=LIBRARY_PATH
11000 shlibpath_overrides_runpath=yes
11001 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11002 hardcode_into_libs=yes
11003 ;;
11004
11005 hpux9* | hpux10* | hpux11*)
11006 # Give a soname corresponding to the major version so that dld.sl refuses to
11007 # link against other versions.
11008 version_type=sunos
11009 need_lib_prefix=no
11010 need_version=no
11011 case $host_cpu in
11012 ia64*)
11013 shrext_cmds='.so'
11014 hardcode_into_libs=yes
11015 dynamic_linker="$host_os dld.so"
11016 shlibpath_var=LD_LIBRARY_PATH
11017 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11019 soname_spec='${libname}${release}${shared_ext}$major'
11020 if test "X$HPUX_IA64_MODE" = X32; then
11021 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11022 else
11023 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11024 fi
11025 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11026 ;;
11027 hppa*64*)
11028 shrext_cmds='.sl'
11029 hardcode_into_libs=yes
11030 dynamic_linker="$host_os dld.sl"
11031 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11032 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11034 soname_spec='${libname}${release}${shared_ext}$major'
11035 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11036 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11037 ;;
11038 *)
11039 shrext_cmds='.sl'
11040 dynamic_linker="$host_os dld.sl"
11041 shlibpath_var=SHLIB_PATH
11042 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11044 soname_spec='${libname}${release}${shared_ext}$major'
11045 ;;
11046 esac
11047 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11048 postinstall_cmds='chmod 555 $lib'
11049 # or fails outright, so override atomically:
11050 install_override_mode=555
11051 ;;
11052
11053 interix[3-9]*)
11054 version_type=linux
11055 need_lib_prefix=no
11056 need_version=no
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'
11059 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11060 shlibpath_var=LD_LIBRARY_PATH
11061 shlibpath_overrides_runpath=no
11062 hardcode_into_libs=yes
11063 ;;
11064
11065 irix5* | irix6* | nonstopux*)
11066 case $host_os in
11067 nonstopux*) version_type=nonstopux ;;
11068 *)
11069 if test "$lt_cv_prog_gnu_ld" = yes; then
11070 version_type=linux
11071 else
11072 version_type=irix
11073 fi ;;
11074 esac
11075 need_lib_prefix=no
11076 need_version=no
11077 soname_spec='${libname}${release}${shared_ext}$major'
11078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11079 case $host_os in
11080 irix5* | nonstopux*)
11081 libsuff= shlibsuff=
11082 ;;
11083 *)
11084 case $LD in # libtool.m4 will add one of these switches to LD
11085 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11086 libsuff= shlibsuff= libmagic=32-bit;;
11087 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11088 libsuff=32 shlibsuff=N32 libmagic=N32;;
11089 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11090 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11091 *) libsuff= shlibsuff= libmagic=never-match;;
11092 esac
11093 ;;
11094 esac
11095 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11096 shlibpath_overrides_runpath=no
11097 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11098 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11099 hardcode_into_libs=yes
11100 ;;
11101
11102 # No shared lib support for Linux oldld, aout, or coff.
11103 linux*oldld* | linux*aout* | linux*coff*)
11104 dynamic_linker=no
11105 ;;
11106
11107 # This must be Linux ELF.
11108 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11109 version_type=linux
11110 need_lib_prefix=no
11111 need_version=no
11112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11113 soname_spec='${libname}${release}${shared_ext}$major'
11114 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11115 shlibpath_var=LD_LIBRARY_PATH
11116 shlibpath_overrides_runpath=no
11117
11118 # Some binutils ld are patched to set DT_RUNPATH
11119 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11120 $as_echo_n "(cached) " >&6
11121 else
11122 lt_cv_shlibpath_overrides_runpath=no
11123 save_LDFLAGS=$LDFLAGS
11124 save_libdir=$libdir
11125 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11126 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11127 if test x$gcc_no_link = xyes; then
11128 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11129 fi
11130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11131 /* end confdefs.h. */
11132
11133 int
11134 main ()
11135 {
11136
11137 ;
11138 return 0;
11139 }
11140 _ACEOF
11141 if ac_fn_c_try_link "$LINENO"; then :
11142 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11143 lt_cv_shlibpath_overrides_runpath=yes
11144 fi
11145 fi
11146 rm -f core conftest.err conftest.$ac_objext \
11147 conftest$ac_exeext conftest.$ac_ext
11148 LDFLAGS=$save_LDFLAGS
11149 libdir=$save_libdir
11150
11151 fi
11152
11153 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11154
11155 # This implies no fast_install, which is unacceptable.
11156 # Some rework will be needed to allow for fast_install
11157 # before this can be enabled.
11158 hardcode_into_libs=yes
11159
11160 # Append ld.so.conf contents to the search path
11161 if test -f /etc/ld.so.conf; then
11162 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' ' '`
11163 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11164 fi
11165
11166 # We used to test for /lib/ld.so.1 and disable shared libraries on
11167 # powerpc, because MkLinux only supported shared libraries with the
11168 # GNU dynamic linker. Since this was broken with cross compilers,
11169 # most powerpc-linux boxes support dynamic linking these days and
11170 # people can always --disable-shared, the test was removed, and we
11171 # assume the GNU/Linux dynamic linker is in use.
11172 dynamic_linker='GNU/Linux ld.so'
11173 ;;
11174
11175 netbsd*)
11176 version_type=sunos
11177 need_lib_prefix=no
11178 need_version=no
11179 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11181 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11182 dynamic_linker='NetBSD (a.out) ld.so'
11183 else
11184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11185 soname_spec='${libname}${release}${shared_ext}$major'
11186 dynamic_linker='NetBSD ld.elf_so'
11187 fi
11188 shlibpath_var=LD_LIBRARY_PATH
11189 shlibpath_overrides_runpath=yes
11190 hardcode_into_libs=yes
11191 ;;
11192
11193 newsos6)
11194 version_type=linux
11195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11196 shlibpath_var=LD_LIBRARY_PATH
11197 shlibpath_overrides_runpath=yes
11198 ;;
11199
11200 *nto* | *qnx*)
11201 version_type=qnx
11202 need_lib_prefix=no
11203 need_version=no
11204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11205 soname_spec='${libname}${release}${shared_ext}$major'
11206 shlibpath_var=LD_LIBRARY_PATH
11207 shlibpath_overrides_runpath=no
11208 hardcode_into_libs=yes
11209 dynamic_linker='ldqnx.so'
11210 ;;
11211
11212 openbsd*)
11213 version_type=sunos
11214 sys_lib_dlsearch_path_spec="/usr/lib"
11215 need_lib_prefix=no
11216 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11217 case $host_os in
11218 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11219 *) need_version=no ;;
11220 esac
11221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11222 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11223 shlibpath_var=LD_LIBRARY_PATH
11224 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11225 case $host_os in
11226 openbsd2.[89] | openbsd2.[89].*)
11227 shlibpath_overrides_runpath=no
11228 ;;
11229 *)
11230 shlibpath_overrides_runpath=yes
11231 ;;
11232 esac
11233 else
11234 shlibpath_overrides_runpath=yes
11235 fi
11236 ;;
11237
11238 os2*)
11239 libname_spec='$name'
11240 shrext_cmds=".dll"
11241 need_lib_prefix=no
11242 library_names_spec='$libname${shared_ext} $libname.a'
11243 dynamic_linker='OS/2 ld.exe'
11244 shlibpath_var=LIBPATH
11245 ;;
11246
11247 osf3* | osf4* | osf5*)
11248 version_type=osf
11249 need_lib_prefix=no
11250 need_version=no
11251 soname_spec='${libname}${release}${shared_ext}$major'
11252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11253 shlibpath_var=LD_LIBRARY_PATH
11254 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11255 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11256 ;;
11257
11258 rdos*)
11259 dynamic_linker=no
11260 ;;
11261
11262 solaris*)
11263 version_type=linux
11264 need_lib_prefix=no
11265 need_version=no
11266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11267 soname_spec='${libname}${release}${shared_ext}$major'
11268 shlibpath_var=LD_LIBRARY_PATH
11269 shlibpath_overrides_runpath=yes
11270 hardcode_into_libs=yes
11271 # ldd complains unless libraries are executable
11272 postinstall_cmds='chmod +x $lib'
11273 ;;
11274
11275 sunos4*)
11276 version_type=sunos
11277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11278 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11279 shlibpath_var=LD_LIBRARY_PATH
11280 shlibpath_overrides_runpath=yes
11281 if test "$with_gnu_ld" = yes; then
11282 need_lib_prefix=no
11283 fi
11284 need_version=yes
11285 ;;
11286
11287 sysv4 | sysv4.3*)
11288 version_type=linux
11289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11290 soname_spec='${libname}${release}${shared_ext}$major'
11291 shlibpath_var=LD_LIBRARY_PATH
11292 case $host_vendor in
11293 sni)
11294 shlibpath_overrides_runpath=no
11295 need_lib_prefix=no
11296 runpath_var=LD_RUN_PATH
11297 ;;
11298 siemens)
11299 need_lib_prefix=no
11300 ;;
11301 motorola)
11302 need_lib_prefix=no
11303 need_version=no
11304 shlibpath_overrides_runpath=no
11305 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11306 ;;
11307 esac
11308 ;;
11309
11310 sysv4*MP*)
11311 if test -d /usr/nec ;then
11312 version_type=linux
11313 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11314 soname_spec='$libname${shared_ext}.$major'
11315 shlibpath_var=LD_LIBRARY_PATH
11316 fi
11317 ;;
11318
11319 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11320 version_type=freebsd-elf
11321 need_lib_prefix=no
11322 need_version=no
11323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11324 soname_spec='${libname}${release}${shared_ext}$major'
11325 shlibpath_var=LD_LIBRARY_PATH
11326 shlibpath_overrides_runpath=yes
11327 hardcode_into_libs=yes
11328 if test "$with_gnu_ld" = yes; then
11329 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11330 else
11331 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11332 case $host_os in
11333 sco3.2v5*)
11334 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11335 ;;
11336 esac
11337 fi
11338 sys_lib_dlsearch_path_spec='/usr/lib'
11339 ;;
11340
11341 tpf*)
11342 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11343 version_type=linux
11344 need_lib_prefix=no
11345 need_version=no
11346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11347 shlibpath_var=LD_LIBRARY_PATH
11348 shlibpath_overrides_runpath=no
11349 hardcode_into_libs=yes
11350 ;;
11351
11352 uts4*)
11353 version_type=linux
11354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11355 soname_spec='${libname}${release}${shared_ext}$major'
11356 shlibpath_var=LD_LIBRARY_PATH
11357 ;;
11358
11359 *)
11360 dynamic_linker=no
11361 ;;
11362 esac
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11364 $as_echo "$dynamic_linker" >&6; }
11365 test "$dynamic_linker" = no && can_build_shared=no
11366
11367 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11368 if test "$GCC" = yes; then
11369 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11370 fi
11371
11372 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11373 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11374 fi
11375 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11376 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11377 fi
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11471 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11472 hardcode_action=
11473 if test -n "$hardcode_libdir_flag_spec" ||
11474 test -n "$runpath_var" ||
11475 test "X$hardcode_automatic" = "Xyes" ; then
11476
11477 # We can hardcode non-existent directories.
11478 if test "$hardcode_direct" != no &&
11479 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11480 # have to relink, otherwise we might link with an installed library
11481 # when we should be linking with a yet-to-be-installed one
11482 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11483 test "$hardcode_minus_L" != no; then
11484 # Linking always hardcodes the temporary library directory.
11485 hardcode_action=relink
11486 else
11487 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11488 hardcode_action=immediate
11489 fi
11490 else
11491 # We cannot hardcode anything, or else we can only hardcode existing
11492 # directories.
11493 hardcode_action=unsupported
11494 fi
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11496 $as_echo "$hardcode_action" >&6; }
11497
11498 if test "$hardcode_action" = relink ||
11499 test "$inherit_rpath" = yes; then
11500 # Fast installation is not supported
11501 enable_fast_install=no
11502 elif test "$shlibpath_overrides_runpath" = yes ||
11503 test "$enable_shared" = no; then
11504 # Fast installation is not necessary
11505 enable_fast_install=needless
11506 fi
11507
11508
11509
11510
11511
11512
11513 if test "x$enable_dlopen" != xyes; then
11514 enable_dlopen=unknown
11515 enable_dlopen_self=unknown
11516 enable_dlopen_self_static=unknown
11517 else
11518 lt_cv_dlopen=no
11519 lt_cv_dlopen_libs=
11520
11521 case $host_os in
11522 beos*)
11523 lt_cv_dlopen="load_add_on"
11524 lt_cv_dlopen_libs=
11525 lt_cv_dlopen_self=yes
11526 ;;
11527
11528 mingw* | pw32* | cegcc*)
11529 lt_cv_dlopen="LoadLibrary"
11530 lt_cv_dlopen_libs=
11531 ;;
11532
11533 cygwin*)
11534 lt_cv_dlopen="dlopen"
11535 lt_cv_dlopen_libs=
11536 ;;
11537
11538 darwin*)
11539 # if libdl is installed we need to link against it
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11541 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11542 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11543 $as_echo_n "(cached) " >&6
11544 else
11545 ac_check_lib_save_LIBS=$LIBS
11546 LIBS="-ldl $LIBS"
11547 if test x$gcc_no_link = xyes; then
11548 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11549 fi
11550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11551 /* end confdefs.h. */
11552
11553 /* Override any GCC internal prototype to avoid an error.
11554 Use char because int might match the return type of a GCC
11555 builtin and then its argument prototype would still apply. */
11556 #ifdef __cplusplus
11557 extern "C"
11558 #endif
11559 char dlopen ();
11560 int
11561 main ()
11562 {
11563 return dlopen ();
11564 ;
11565 return 0;
11566 }
11567 _ACEOF
11568 if ac_fn_c_try_link "$LINENO"; then :
11569 ac_cv_lib_dl_dlopen=yes
11570 else
11571 ac_cv_lib_dl_dlopen=no
11572 fi
11573 rm -f core conftest.err conftest.$ac_objext \
11574 conftest$ac_exeext conftest.$ac_ext
11575 LIBS=$ac_check_lib_save_LIBS
11576 fi
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11578 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11579 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11580 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11581 else
11582
11583 lt_cv_dlopen="dyld"
11584 lt_cv_dlopen_libs=
11585 lt_cv_dlopen_self=yes
11586
11587 fi
11588
11589 ;;
11590
11591 *)
11592 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11593 if test "x$ac_cv_func_shl_load" = x""yes; then :
11594 lt_cv_dlopen="shl_load"
11595 else
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11597 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11598 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11599 $as_echo_n "(cached) " >&6
11600 else
11601 ac_check_lib_save_LIBS=$LIBS
11602 LIBS="-ldld $LIBS"
11603 if test x$gcc_no_link = xyes; then
11604 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11605 fi
11606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11607 /* end confdefs.h. */
11608
11609 /* Override any GCC internal prototype to avoid an error.
11610 Use char because int might match the return type of a GCC
11611 builtin and then its argument prototype would still apply. */
11612 #ifdef __cplusplus
11613 extern "C"
11614 #endif
11615 char shl_load ();
11616 int
11617 main ()
11618 {
11619 return shl_load ();
11620 ;
11621 return 0;
11622 }
11623 _ACEOF
11624 if ac_fn_c_try_link "$LINENO"; then :
11625 ac_cv_lib_dld_shl_load=yes
11626 else
11627 ac_cv_lib_dld_shl_load=no
11628 fi
11629 rm -f core conftest.err conftest.$ac_objext \
11630 conftest$ac_exeext conftest.$ac_ext
11631 LIBS=$ac_check_lib_save_LIBS
11632 fi
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11634 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11635 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11636 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11637 else
11638 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11639 if test "x$ac_cv_func_dlopen" = x""yes; then :
11640 lt_cv_dlopen="dlopen"
11641 else
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11643 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11644 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11645 $as_echo_n "(cached) " >&6
11646 else
11647 ac_check_lib_save_LIBS=$LIBS
11648 LIBS="-ldl $LIBS"
11649 if test x$gcc_no_link = xyes; then
11650 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11651 fi
11652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11653 /* end confdefs.h. */
11654
11655 /* Override any GCC internal prototype to avoid an error.
11656 Use char because int might match the return type of a GCC
11657 builtin and then its argument prototype would still apply. */
11658 #ifdef __cplusplus
11659 extern "C"
11660 #endif
11661 char dlopen ();
11662 int
11663 main ()
11664 {
11665 return dlopen ();
11666 ;
11667 return 0;
11668 }
11669 _ACEOF
11670 if ac_fn_c_try_link "$LINENO"; then :
11671 ac_cv_lib_dl_dlopen=yes
11672 else
11673 ac_cv_lib_dl_dlopen=no
11674 fi
11675 rm -f core conftest.err conftest.$ac_objext \
11676 conftest$ac_exeext conftest.$ac_ext
11677 LIBS=$ac_check_lib_save_LIBS
11678 fi
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11680 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11681 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11682 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11683 else
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11685 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11686 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11687 $as_echo_n "(cached) " >&6
11688 else
11689 ac_check_lib_save_LIBS=$LIBS
11690 LIBS="-lsvld $LIBS"
11691 if test x$gcc_no_link = xyes; then
11692 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11693 fi
11694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11695 /* end confdefs.h. */
11696
11697 /* Override any GCC internal prototype to avoid an error.
11698 Use char because int might match the return type of a GCC
11699 builtin and then its argument prototype would still apply. */
11700 #ifdef __cplusplus
11701 extern "C"
11702 #endif
11703 char dlopen ();
11704 int
11705 main ()
11706 {
11707 return dlopen ();
11708 ;
11709 return 0;
11710 }
11711 _ACEOF
11712 if ac_fn_c_try_link "$LINENO"; then :
11713 ac_cv_lib_svld_dlopen=yes
11714 else
11715 ac_cv_lib_svld_dlopen=no
11716 fi
11717 rm -f core conftest.err conftest.$ac_objext \
11718 conftest$ac_exeext conftest.$ac_ext
11719 LIBS=$ac_check_lib_save_LIBS
11720 fi
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11722 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11723 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11724 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11725 else
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11727 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11728 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11729 $as_echo_n "(cached) " >&6
11730 else
11731 ac_check_lib_save_LIBS=$LIBS
11732 LIBS="-ldld $LIBS"
11733 if test x$gcc_no_link = xyes; then
11734 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11735 fi
11736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11737 /* end confdefs.h. */
11738
11739 /* Override any GCC internal prototype to avoid an error.
11740 Use char because int might match the return type of a GCC
11741 builtin and then its argument prototype would still apply. */
11742 #ifdef __cplusplus
11743 extern "C"
11744 #endif
11745 char dld_link ();
11746 int
11747 main ()
11748 {
11749 return dld_link ();
11750 ;
11751 return 0;
11752 }
11753 _ACEOF
11754 if ac_fn_c_try_link "$LINENO"; then :
11755 ac_cv_lib_dld_dld_link=yes
11756 else
11757 ac_cv_lib_dld_dld_link=no
11758 fi
11759 rm -f core conftest.err conftest.$ac_objext \
11760 conftest$ac_exeext conftest.$ac_ext
11761 LIBS=$ac_check_lib_save_LIBS
11762 fi
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11764 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11765 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11766 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11767 fi
11768
11769
11770 fi
11771
11772
11773 fi
11774
11775
11776 fi
11777
11778
11779 fi
11780
11781
11782 fi
11783
11784 ;;
11785 esac
11786
11787 if test "x$lt_cv_dlopen" != xno; then
11788 enable_dlopen=yes
11789 else
11790 enable_dlopen=no
11791 fi
11792
11793 case $lt_cv_dlopen in
11794 dlopen)
11795 save_CPPFLAGS="$CPPFLAGS"
11796 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11797
11798 save_LDFLAGS="$LDFLAGS"
11799 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11800
11801 save_LIBS="$LIBS"
11802 LIBS="$lt_cv_dlopen_libs $LIBS"
11803
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11805 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11806 if test "${lt_cv_dlopen_self+set}" = set; then :
11807 $as_echo_n "(cached) " >&6
11808 else
11809 if test "$cross_compiling" = yes; then :
11810 lt_cv_dlopen_self=cross
11811 else
11812 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11813 lt_status=$lt_dlunknown
11814 cat > conftest.$ac_ext <<_LT_EOF
11815 #line 11815 "configure"
11816 #include "confdefs.h"
11817
11818 #if HAVE_DLFCN_H
11819 #include <dlfcn.h>
11820 #endif
11821
11822 #include <stdio.h>
11823
11824 #ifdef RTLD_GLOBAL
11825 # define LT_DLGLOBAL RTLD_GLOBAL
11826 #else
11827 # ifdef DL_GLOBAL
11828 # define LT_DLGLOBAL DL_GLOBAL
11829 # else
11830 # define LT_DLGLOBAL 0
11831 # endif
11832 #endif
11833
11834 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11835 find out it does not work in some platform. */
11836 #ifndef LT_DLLAZY_OR_NOW
11837 # ifdef RTLD_LAZY
11838 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11839 # else
11840 # ifdef DL_LAZY
11841 # define LT_DLLAZY_OR_NOW DL_LAZY
11842 # else
11843 # ifdef RTLD_NOW
11844 # define LT_DLLAZY_OR_NOW RTLD_NOW
11845 # else
11846 # ifdef DL_NOW
11847 # define LT_DLLAZY_OR_NOW DL_NOW
11848 # else
11849 # define LT_DLLAZY_OR_NOW 0
11850 # endif
11851 # endif
11852 # endif
11853 # endif
11854 #endif
11855
11856 /* When -fvisbility=hidden is used, assume the code has been annotated
11857 correspondingly for the symbols needed. */
11858 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11859 void fnord () __attribute__((visibility("default")));
11860 #endif
11861
11862 void fnord () { int i=42; }
11863 int main ()
11864 {
11865 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11866 int status = $lt_dlunknown;
11867
11868 if (self)
11869 {
11870 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11871 else
11872 {
11873 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11874 else puts (dlerror ());
11875 }
11876 /* dlclose (self); */
11877 }
11878 else
11879 puts (dlerror ());
11880
11881 return status;
11882 }
11883 _LT_EOF
11884 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11885 (eval $ac_link) 2>&5
11886 ac_status=$?
11887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11888 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11889 (./conftest; exit; ) >&5 2>/dev/null
11890 lt_status=$?
11891 case x$lt_status in
11892 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11893 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11894 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11895 esac
11896 else :
11897 # compilation failed
11898 lt_cv_dlopen_self=no
11899 fi
11900 fi
11901 rm -fr conftest*
11902
11903
11904 fi
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11906 $as_echo "$lt_cv_dlopen_self" >&6; }
11907
11908 if test "x$lt_cv_dlopen_self" = xyes; then
11909 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11911 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11912 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11913 $as_echo_n "(cached) " >&6
11914 else
11915 if test "$cross_compiling" = yes; then :
11916 lt_cv_dlopen_self_static=cross
11917 else
11918 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11919 lt_status=$lt_dlunknown
11920 cat > conftest.$ac_ext <<_LT_EOF
11921 #line 11921 "configure"
11922 #include "confdefs.h"
11923
11924 #if HAVE_DLFCN_H
11925 #include <dlfcn.h>
11926 #endif
11927
11928 #include <stdio.h>
11929
11930 #ifdef RTLD_GLOBAL
11931 # define LT_DLGLOBAL RTLD_GLOBAL
11932 #else
11933 # ifdef DL_GLOBAL
11934 # define LT_DLGLOBAL DL_GLOBAL
11935 # else
11936 # define LT_DLGLOBAL 0
11937 # endif
11938 #endif
11939
11940 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11941 find out it does not work in some platform. */
11942 #ifndef LT_DLLAZY_OR_NOW
11943 # ifdef RTLD_LAZY
11944 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11945 # else
11946 # ifdef DL_LAZY
11947 # define LT_DLLAZY_OR_NOW DL_LAZY
11948 # else
11949 # ifdef RTLD_NOW
11950 # define LT_DLLAZY_OR_NOW RTLD_NOW
11951 # else
11952 # ifdef DL_NOW
11953 # define LT_DLLAZY_OR_NOW DL_NOW
11954 # else
11955 # define LT_DLLAZY_OR_NOW 0
11956 # endif
11957 # endif
11958 # endif
11959 # endif
11960 #endif
11961
11962 /* When -fvisbility=hidden is used, assume the code has been annotated
11963 correspondingly for the symbols needed. */
11964 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11965 void fnord () __attribute__((visibility("default")));
11966 #endif
11967
11968 void fnord () { int i=42; }
11969 int main ()
11970 {
11971 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11972 int status = $lt_dlunknown;
11973
11974 if (self)
11975 {
11976 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11977 else
11978 {
11979 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11980 else puts (dlerror ());
11981 }
11982 /* dlclose (self); */
11983 }
11984 else
11985 puts (dlerror ());
11986
11987 return status;
11988 }
11989 _LT_EOF
11990 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11991 (eval $ac_link) 2>&5
11992 ac_status=$?
11993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11994 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11995 (./conftest; exit; ) >&5 2>/dev/null
11996 lt_status=$?
11997 case x$lt_status in
11998 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11999 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12000 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12001 esac
12002 else :
12003 # compilation failed
12004 lt_cv_dlopen_self_static=no
12005 fi
12006 fi
12007 rm -fr conftest*
12008
12009
12010 fi
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12012 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12013 fi
12014
12015 CPPFLAGS="$save_CPPFLAGS"
12016 LDFLAGS="$save_LDFLAGS"
12017 LIBS="$save_LIBS"
12018 ;;
12019 esac
12020
12021 case $lt_cv_dlopen_self in
12022 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12023 *) enable_dlopen_self=unknown ;;
12024 esac
12025
12026 case $lt_cv_dlopen_self_static in
12027 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12028 *) enable_dlopen_self_static=unknown ;;
12029 esac
12030 fi
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048 striplib=
12049 old_striplib=
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12051 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12052 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12053 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12054 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12056 $as_echo "yes" >&6; }
12057 else
12058 # FIXME - insert some real tests, host_os isn't really good enough
12059 case $host_os in
12060 darwin*)
12061 if test -n "$STRIP" ; then
12062 striplib="$STRIP -x"
12063 old_striplib="$STRIP -S"
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12065 $as_echo "yes" >&6; }
12066 else
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12068 $as_echo "no" >&6; }
12069 fi
12070 ;;
12071 *)
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12073 $as_echo "no" >&6; }
12074 ;;
12075 esac
12076 fi
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089 # Report which library types will actually be built
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12091 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12093 $as_echo "$can_build_shared" >&6; }
12094
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12096 $as_echo_n "checking whether to build shared libraries... " >&6; }
12097 test "$can_build_shared" = "no" && enable_shared=no
12098
12099 # On AIX, shared libraries and static libraries use the same namespace, and
12100 # are all built from PIC.
12101 case $host_os in
12102 aix3*)
12103 test "$enable_shared" = yes && enable_static=no
12104 if test -n "$RANLIB"; then
12105 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12106 postinstall_cmds='$RANLIB $lib'
12107 fi
12108 ;;
12109
12110 aix[4-9]*)
12111 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12112 test "$enable_shared" = yes && enable_static=no
12113 fi
12114 ;;
12115 esac
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12117 $as_echo "$enable_shared" >&6; }
12118
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12120 $as_echo_n "checking whether to build static libraries... " >&6; }
12121 # Make sure either enable_shared or enable_static is yes.
12122 test "$enable_shared" = yes || enable_static=yes
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12124 $as_echo "$enable_static" >&6; }
12125
12126
12127
12128
12129 fi
12130 ac_ext=c
12131 ac_cpp='$CPP $CPPFLAGS'
12132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12135
12136 CC="$lt_save_CC"
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150 ac_config_commands="$ac_config_commands libtool"
12151
12152
12153
12154
12155 # Only expand once:
12156
12157
12158 for ac_prog in gawk mawk nawk awk
12159 do
12160 # Extract the first word of "$ac_prog", so it can be a program name with args.
12161 set dummy $ac_prog; ac_word=$2
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12163 $as_echo_n "checking for $ac_word... " >&6; }
12164 if test "${ac_cv_prog_AWK+set}" = set; then :
12165 $as_echo_n "(cached) " >&6
12166 else
12167 if test -n "$AWK"; then
12168 ac_cv_prog_AWK="$AWK" # Let the user override the test.
12169 else
12170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12171 for as_dir in $PATH
12172 do
12173 IFS=$as_save_IFS
12174 test -z "$as_dir" && as_dir=.
12175 for ac_exec_ext in '' $ac_executable_extensions; do
12176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12177 ac_cv_prog_AWK="$ac_prog"
12178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12179 break 2
12180 fi
12181 done
12182 done
12183 IFS=$as_save_IFS
12184
12185 fi
12186 fi
12187 AWK=$ac_cv_prog_AWK
12188 if test -n "$AWK"; then
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12190 $as_echo "$AWK" >&6; }
12191 else
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12193 $as_echo "no" >&6; }
12194 fi
12195
12196
12197 test -n "$AWK" && break
12198 done
12199
12200 ac_ext=c
12201 ac_cpp='$CPP $CPPFLAGS'
12202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12205 if test -n "$ac_tool_prefix"; then
12206 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12207 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12209 $as_echo_n "checking for $ac_word... " >&6; }
12210 if test "${ac_cv_prog_CC+set}" = set; then :
12211 $as_echo_n "(cached) " >&6
12212 else
12213 if test -n "$CC"; then
12214 ac_cv_prog_CC="$CC" # Let the user override the test.
12215 else
12216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12217 for as_dir in $PATH
12218 do
12219 IFS=$as_save_IFS
12220 test -z "$as_dir" && as_dir=.
12221 for ac_exec_ext in '' $ac_executable_extensions; do
12222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12223 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12225 break 2
12226 fi
12227 done
12228 done
12229 IFS=$as_save_IFS
12230
12231 fi
12232 fi
12233 CC=$ac_cv_prog_CC
12234 if test -n "$CC"; then
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12236 $as_echo "$CC" >&6; }
12237 else
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12239 $as_echo "no" >&6; }
12240 fi
12241
12242
12243 fi
12244 if test -z "$ac_cv_prog_CC"; then
12245 ac_ct_CC=$CC
12246 # Extract the first word of "gcc", so it can be a program name with args.
12247 set dummy gcc; ac_word=$2
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12249 $as_echo_n "checking for $ac_word... " >&6; }
12250 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
12251 $as_echo_n "(cached) " >&6
12252 else
12253 if test -n "$ac_ct_CC"; then
12254 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12255 else
12256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12257 for as_dir in $PATH
12258 do
12259 IFS=$as_save_IFS
12260 test -z "$as_dir" && as_dir=.
12261 for ac_exec_ext in '' $ac_executable_extensions; do
12262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12263 ac_cv_prog_ac_ct_CC="gcc"
12264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12265 break 2
12266 fi
12267 done
12268 done
12269 IFS=$as_save_IFS
12270
12271 fi
12272 fi
12273 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12274 if test -n "$ac_ct_CC"; then
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12276 $as_echo "$ac_ct_CC" >&6; }
12277 else
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12279 $as_echo "no" >&6; }
12280 fi
12281
12282 if test "x$ac_ct_CC" = x; then
12283 CC=""
12284 else
12285 case $cross_compiling:$ac_tool_warned in
12286 yes:)
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12289 ac_tool_warned=yes ;;
12290 esac
12291 CC=$ac_ct_CC
12292 fi
12293 else
12294 CC="$ac_cv_prog_CC"
12295 fi
12296
12297 if test -z "$CC"; then
12298 if test -n "$ac_tool_prefix"; then
12299 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12300 set dummy ${ac_tool_prefix}cc; ac_word=$2
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12302 $as_echo_n "checking for $ac_word... " >&6; }
12303 if test "${ac_cv_prog_CC+set}" = set; then :
12304 $as_echo_n "(cached) " >&6
12305 else
12306 if test -n "$CC"; then
12307 ac_cv_prog_CC="$CC" # Let the user override the test.
12308 else
12309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12310 for as_dir in $PATH
12311 do
12312 IFS=$as_save_IFS
12313 test -z "$as_dir" && as_dir=.
12314 for ac_exec_ext in '' $ac_executable_extensions; do
12315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12316 ac_cv_prog_CC="${ac_tool_prefix}cc"
12317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12318 break 2
12319 fi
12320 done
12321 done
12322 IFS=$as_save_IFS
12323
12324 fi
12325 fi
12326 CC=$ac_cv_prog_CC
12327 if test -n "$CC"; then
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12329 $as_echo "$CC" >&6; }
12330 else
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12332 $as_echo "no" >&6; }
12333 fi
12334
12335
12336 fi
12337 fi
12338 if test -z "$CC"; then
12339 # Extract the first word of "cc", so it can be a program name with args.
12340 set dummy cc; ac_word=$2
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12342 $as_echo_n "checking for $ac_word... " >&6; }
12343 if test "${ac_cv_prog_CC+set}" = set; then :
12344 $as_echo_n "(cached) " >&6
12345 else
12346 if test -n "$CC"; then
12347 ac_cv_prog_CC="$CC" # Let the user override the test.
12348 else
12349 ac_prog_rejected=no
12350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12351 for as_dir in $PATH
12352 do
12353 IFS=$as_save_IFS
12354 test -z "$as_dir" && as_dir=.
12355 for ac_exec_ext in '' $ac_executable_extensions; do
12356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12357 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12358 ac_prog_rejected=yes
12359 continue
12360 fi
12361 ac_cv_prog_CC="cc"
12362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12363 break 2
12364 fi
12365 done
12366 done
12367 IFS=$as_save_IFS
12368
12369 if test $ac_prog_rejected = yes; then
12370 # We found a bogon in the path, so make sure we never use it.
12371 set dummy $ac_cv_prog_CC
12372 shift
12373 if test $# != 0; then
12374 # We chose a different compiler from the bogus one.
12375 # However, it has the same basename, so the bogon will be chosen
12376 # first if we set CC to just the basename; use the full file name.
12377 shift
12378 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12379 fi
12380 fi
12381 fi
12382 fi
12383 CC=$ac_cv_prog_CC
12384 if test -n "$CC"; then
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12386 $as_echo "$CC" >&6; }
12387 else
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12389 $as_echo "no" >&6; }
12390 fi
12391
12392
12393 fi
12394 if test -z "$CC"; then
12395 if test -n "$ac_tool_prefix"; then
12396 for ac_prog in cl.exe
12397 do
12398 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12399 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12401 $as_echo_n "checking for $ac_word... " >&6; }
12402 if test "${ac_cv_prog_CC+set}" = set; then :
12403 $as_echo_n "(cached) " >&6
12404 else
12405 if test -n "$CC"; then
12406 ac_cv_prog_CC="$CC" # Let the user override the test.
12407 else
12408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12409 for as_dir in $PATH
12410 do
12411 IFS=$as_save_IFS
12412 test -z "$as_dir" && as_dir=.
12413 for ac_exec_ext in '' $ac_executable_extensions; do
12414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12415 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12417 break 2
12418 fi
12419 done
12420 done
12421 IFS=$as_save_IFS
12422
12423 fi
12424 fi
12425 CC=$ac_cv_prog_CC
12426 if test -n "$CC"; then
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12428 $as_echo "$CC" >&6; }
12429 else
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12431 $as_echo "no" >&6; }
12432 fi
12433
12434
12435 test -n "$CC" && break
12436 done
12437 fi
12438 if test -z "$CC"; then
12439 ac_ct_CC=$CC
12440 for ac_prog in cl.exe
12441 do
12442 # Extract the first word of "$ac_prog", so it can be a program name with args.
12443 set dummy $ac_prog; ac_word=$2
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12445 $as_echo_n "checking for $ac_word... " >&6; }
12446 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
12447 $as_echo_n "(cached) " >&6
12448 else
12449 if test -n "$ac_ct_CC"; then
12450 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12451 else
12452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12453 for as_dir in $PATH
12454 do
12455 IFS=$as_save_IFS
12456 test -z "$as_dir" && as_dir=.
12457 for ac_exec_ext in '' $ac_executable_extensions; do
12458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12459 ac_cv_prog_ac_ct_CC="$ac_prog"
12460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12461 break 2
12462 fi
12463 done
12464 done
12465 IFS=$as_save_IFS
12466
12467 fi
12468 fi
12469 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12470 if test -n "$ac_ct_CC"; then
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12472 $as_echo "$ac_ct_CC" >&6; }
12473 else
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12475 $as_echo "no" >&6; }
12476 fi
12477
12478
12479 test -n "$ac_ct_CC" && break
12480 done
12481
12482 if test "x$ac_ct_CC" = x; then
12483 CC=""
12484 else
12485 case $cross_compiling:$ac_tool_warned in
12486 yes:)
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12489 ac_tool_warned=yes ;;
12490 esac
12491 CC=$ac_ct_CC
12492 fi
12493 fi
12494
12495 fi
12496
12497
12498 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12500 as_fn_error "no acceptable C compiler found in \$PATH
12501 See \`config.log' for more details." "$LINENO" 5; }
12502
12503 # Provide some information about the compiler.
12504 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12505 set X $ac_compile
12506 ac_compiler=$2
12507 for ac_option in --version -v -V -qversion; do
12508 { { ac_try="$ac_compiler $ac_option >&5"
12509 case "(($ac_try" in
12510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12511 *) ac_try_echo=$ac_try;;
12512 esac
12513 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12514 $as_echo "$ac_try_echo"; } >&5
12515 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12516 ac_status=$?
12517 if test -s conftest.err; then
12518 sed '10a\
12519 ... rest of stderr output deleted ...
12520 10q' conftest.err >conftest.er1
12521 cat conftest.er1 >&5
12522 rm -f conftest.er1 conftest.err
12523 fi
12524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12525 test $ac_status = 0; }
12526 done
12527
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12529 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12530 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
12531 $as_echo_n "(cached) " >&6
12532 else
12533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12534 /* end confdefs.h. */
12535
12536 int
12537 main ()
12538 {
12539 #ifndef __GNUC__
12540 choke me
12541 #endif
12542
12543 ;
12544 return 0;
12545 }
12546 _ACEOF
12547 if ac_fn_c_try_compile "$LINENO"; then :
12548 ac_compiler_gnu=yes
12549 else
12550 ac_compiler_gnu=no
12551 fi
12552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12553 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12554
12555 fi
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12557 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12558 if test $ac_compiler_gnu = yes; then
12559 GCC=yes
12560 else
12561 GCC=
12562 fi
12563 ac_test_CFLAGS=${CFLAGS+set}
12564 ac_save_CFLAGS=$CFLAGS
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12566 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12567 if test "${ac_cv_prog_cc_g+set}" = set; then :
12568 $as_echo_n "(cached) " >&6
12569 else
12570 ac_save_c_werror_flag=$ac_c_werror_flag
12571 ac_c_werror_flag=yes
12572 ac_cv_prog_cc_g=no
12573 CFLAGS="-g"
12574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12575 /* end confdefs.h. */
12576
12577 int
12578 main ()
12579 {
12580
12581 ;
12582 return 0;
12583 }
12584 _ACEOF
12585 if ac_fn_c_try_compile "$LINENO"; then :
12586 ac_cv_prog_cc_g=yes
12587 else
12588 CFLAGS=""
12589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12590 /* end confdefs.h. */
12591
12592 int
12593 main ()
12594 {
12595
12596 ;
12597 return 0;
12598 }
12599 _ACEOF
12600 if ac_fn_c_try_compile "$LINENO"; then :
12601
12602 else
12603 ac_c_werror_flag=$ac_save_c_werror_flag
12604 CFLAGS="-g"
12605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12606 /* end confdefs.h. */
12607
12608 int
12609 main ()
12610 {
12611
12612 ;
12613 return 0;
12614 }
12615 _ACEOF
12616 if ac_fn_c_try_compile "$LINENO"; then :
12617 ac_cv_prog_cc_g=yes
12618 fi
12619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12620 fi
12621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12622 fi
12623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12624 ac_c_werror_flag=$ac_save_c_werror_flag
12625 fi
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12627 $as_echo "$ac_cv_prog_cc_g" >&6; }
12628 if test "$ac_test_CFLAGS" = set; then
12629 CFLAGS=$ac_save_CFLAGS
12630 elif test $ac_cv_prog_cc_g = yes; then
12631 if test "$GCC" = yes; then
12632 CFLAGS="-g -O2"
12633 else
12634 CFLAGS="-g"
12635 fi
12636 else
12637 if test "$GCC" = yes; then
12638 CFLAGS="-O2"
12639 else
12640 CFLAGS=
12641 fi
12642 fi
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12644 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12645 if test "${ac_cv_prog_cc_c89+set}" = set; then :
12646 $as_echo_n "(cached) " >&6
12647 else
12648 ac_cv_prog_cc_c89=no
12649 ac_save_CC=$CC
12650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12651 /* end confdefs.h. */
12652 #include <stdarg.h>
12653 #include <stdio.h>
12654 #include <sys/types.h>
12655 #include <sys/stat.h>
12656 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12657 struct buf { int x; };
12658 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12659 static char *e (p, i)
12660 char **p;
12661 int i;
12662 {
12663 return p[i];
12664 }
12665 static char *f (char * (*g) (char **, int), char **p, ...)
12666 {
12667 char *s;
12668 va_list v;
12669 va_start (v,p);
12670 s = g (p, va_arg (v,int));
12671 va_end (v);
12672 return s;
12673 }
12674
12675 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12676 function prototypes and stuff, but not '\xHH' hex character constants.
12677 These don't provoke an error unfortunately, instead are silently treated
12678 as 'x'. The following induces an error, until -std is added to get
12679 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12680 array size at least. It's necessary to write '\x00'==0 to get something
12681 that's true only with -std. */
12682 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12683
12684 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12685 inside strings and character constants. */
12686 #define FOO(x) 'x'
12687 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12688
12689 int test (int i, double x);
12690 struct s1 {int (*f) (int a);};
12691 struct s2 {int (*f) (double a);};
12692 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12693 int argc;
12694 char **argv;
12695 int
12696 main ()
12697 {
12698 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12699 ;
12700 return 0;
12701 }
12702 _ACEOF
12703 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12704 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12705 do
12706 CC="$ac_save_CC $ac_arg"
12707 if ac_fn_c_try_compile "$LINENO"; then :
12708 ac_cv_prog_cc_c89=$ac_arg
12709 fi
12710 rm -f core conftest.err conftest.$ac_objext
12711 test "x$ac_cv_prog_cc_c89" != "xno" && break
12712 done
12713 rm -f conftest.$ac_ext
12714 CC=$ac_save_CC
12715
12716 fi
12717 # AC_CACHE_VAL
12718 case "x$ac_cv_prog_cc_c89" in
12719 x)
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12721 $as_echo "none needed" >&6; } ;;
12722 xno)
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12724 $as_echo "unsupported" >&6; } ;;
12725 *)
12726 CC="$CC $ac_cv_prog_cc_c89"
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12728 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12729 esac
12730 if test "x$ac_cv_prog_cc_c89" != xno; then :
12731
12732 fi
12733
12734 ac_ext=c
12735 ac_cpp='$CPP $CPPFLAGS'
12736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12739
12740 depcc="$CC" am_compiler_list=
12741
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12743 $as_echo_n "checking dependency style of $depcc... " >&6; }
12744 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
12745 $as_echo_n "(cached) " >&6
12746 else
12747 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12748 # We make a subdir and do the tests there. Otherwise we can end up
12749 # making bogus files that we don't know about and never remove. For
12750 # instance it was reported that on HP-UX the gcc test will end up
12751 # making a dummy file named `D' -- because `-MD' means `put the output
12752 # in D'.
12753 mkdir conftest.dir
12754 # Copy depcomp to subdir because otherwise we won't find it if we're
12755 # using a relative directory.
12756 cp "$am_depcomp" conftest.dir
12757 cd conftest.dir
12758 # We will build objects and dependencies in a subdirectory because
12759 # it helps to detect inapplicable dependency modes. For instance
12760 # both Tru64's cc and ICC support -MD to output dependencies as a
12761 # side effect of compilation, but ICC will put the dependencies in
12762 # the current directory while Tru64 will put them in the object
12763 # directory.
12764 mkdir sub
12765
12766 am_cv_CC_dependencies_compiler_type=none
12767 if test "$am_compiler_list" = ""; then
12768 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12769 fi
12770 am__universal=false
12771 case " $depcc " in #(
12772 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12773 esac
12774
12775 for depmode in $am_compiler_list; do
12776 # Setup a source with many dependencies, because some compilers
12777 # like to wrap large dependency lists on column 80 (with \), and
12778 # we should not choose a depcomp mode which is confused by this.
12779 #
12780 # We need to recreate these files for each test, as the compiler may
12781 # overwrite some of them when testing with obscure command lines.
12782 # This happens at least with the AIX C compiler.
12783 : > sub/conftest.c
12784 for i in 1 2 3 4 5 6; do
12785 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12786 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12787 # Solaris 8's {/usr,}/bin/sh.
12788 touch sub/conftst$i.h
12789 done
12790 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12791
12792 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12793 # mode. It turns out that the SunPro C++ compiler does not properly
12794 # handle `-M -o', and we need to detect this. Also, some Intel
12795 # versions had trouble with output in subdirs
12796 am__obj=sub/conftest.${OBJEXT-o}
12797 am__minus_obj="-o $am__obj"
12798 case $depmode in
12799 gcc)
12800 # This depmode causes a compiler race in universal mode.
12801 test "$am__universal" = false || continue
12802 ;;
12803 nosideeffect)
12804 # after this tag, mechanisms are not by side-effect, so they'll
12805 # only be used when explicitly requested
12806 if test "x$enable_dependency_tracking" = xyes; then
12807 continue
12808 else
12809 break
12810 fi
12811 ;;
12812 msvisualcpp | msvcmsys)
12813 # This compiler won't grok `-c -o', but also, the minuso test has
12814 # not run yet. These depmodes are late enough in the game, and
12815 # so weak that their functioning should not be impacted.
12816 am__obj=conftest.${OBJEXT-o}
12817 am__minus_obj=
12818 ;;
12819 none) break ;;
12820 esac
12821 if depmode=$depmode \
12822 source=sub/conftest.c object=$am__obj \
12823 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12824 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12825 >/dev/null 2>conftest.err &&
12826 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12827 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12828 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12829 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12830 # icc doesn't choke on unknown options, it will just issue warnings
12831 # or remarks (even with -Werror). So we grep stderr for any message
12832 # that says an option was ignored or not supported.
12833 # When given -MP, icc 7.0 and 7.1 complain thusly:
12834 # icc: Command line warning: ignoring option '-M'; no argument required
12835 # The diagnosis changed in icc 8.0:
12836 # icc: Command line remark: option '-MP' not supported
12837 if (grep 'ignoring option' conftest.err ||
12838 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12839 am_cv_CC_dependencies_compiler_type=$depmode
12840 break
12841 fi
12842 fi
12843 done
12844
12845 cd ..
12846 rm -rf conftest.dir
12847 else
12848 am_cv_CC_dependencies_compiler_type=none
12849 fi
12850
12851 fi
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12853 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12854 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12855
12856 if
12857 test "x$enable_dependency_tracking" != xno \
12858 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12859 am__fastdepCC_TRUE=
12860 am__fastdepCC_FALSE='#'
12861 else
12862 am__fastdepCC_TRUE='#'
12863 am__fastdepCC_FALSE=
12864 fi
12865
12866
12867 if test "x$CC" != xcc; then
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
12869 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12870 else
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
12872 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12873 fi
12874 set dummy $CC; ac_cc=`$as_echo "$2" |
12875 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12876 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
12877 $as_echo_n "(cached) " >&6
12878 else
12879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12880 /* end confdefs.h. */
12881
12882 int
12883 main ()
12884 {
12885
12886 ;
12887 return 0;
12888 }
12889 _ACEOF
12890 # Make sure it works both with $CC and with simple cc.
12891 # We do the test twice because some compilers refuse to overwrite an
12892 # existing .o file with -o, though they will create one.
12893 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12894 rm -f conftest2.*
12895 if { { case "(($ac_try" in
12896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12897 *) ac_try_echo=$ac_try;;
12898 esac
12899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12900 $as_echo "$ac_try_echo"; } >&5
12901 (eval "$ac_try") 2>&5
12902 ac_status=$?
12903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12904 test $ac_status = 0; } &&
12905 test -f conftest2.$ac_objext && { { case "(($ac_try" in
12906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12907 *) ac_try_echo=$ac_try;;
12908 esac
12909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12910 $as_echo "$ac_try_echo"; } >&5
12911 (eval "$ac_try") 2>&5
12912 ac_status=$?
12913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12914 test $ac_status = 0; };
12915 then
12916 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12917 if test "x$CC" != xcc; then
12918 # Test first that cc exists at all.
12919 if { ac_try='cc -c conftest.$ac_ext >&5'
12920 { { case "(($ac_try" in
12921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12922 *) ac_try_echo=$ac_try;;
12923 esac
12924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12925 $as_echo "$ac_try_echo"; } >&5
12926 (eval "$ac_try") 2>&5
12927 ac_status=$?
12928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12929 test $ac_status = 0; }; }; then
12930 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12931 rm -f conftest2.*
12932 if { { case "(($ac_try" in
12933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12934 *) ac_try_echo=$ac_try;;
12935 esac
12936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12937 $as_echo "$ac_try_echo"; } >&5
12938 (eval "$ac_try") 2>&5
12939 ac_status=$?
12940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12941 test $ac_status = 0; } &&
12942 test -f conftest2.$ac_objext && { { case "(($ac_try" in
12943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12944 *) ac_try_echo=$ac_try;;
12945 esac
12946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12947 $as_echo "$ac_try_echo"; } >&5
12948 (eval "$ac_try") 2>&5
12949 ac_status=$?
12950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12951 test $ac_status = 0; };
12952 then
12953 # cc works too.
12954 :
12955 else
12956 # cc exists but doesn't like -o.
12957 eval ac_cv_prog_cc_${ac_cc}_c_o=no
12958 fi
12959 fi
12960 fi
12961 else
12962 eval ac_cv_prog_cc_${ac_cc}_c_o=no
12963 fi
12964 rm -f core conftest*
12965
12966 fi
12967 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12969 $as_echo "yes" >&6; }
12970 else
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12972 $as_echo "no" >&6; }
12973
12974 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
12975
12976 fi
12977
12978 # FIXME: we rely on the cache variable name because
12979 # there is no other way.
12980 set dummy $CC
12981 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12982 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12983 if test "$am_t" != yes; then
12984 # Losing compiler, so override with the script.
12985 # FIXME: It is wrong to rewrite CC.
12986 # But if we don't then we get into trouble of one sort or another.
12987 # A longer-term fix would be to have automake use am__CC in this case,
12988 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12989 CC="$am_aux_dir/compile $CC"
12990 fi
12991
12992
12993 ac_ext=c
12994 ac_cpp='$CPP $CPPFLAGS'
12995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
12999 $as_echo_n "checking how to run the C preprocessor... " >&6; }
13000 # On Suns, sometimes $CPP names a directory.
13001 if test -n "$CPP" && test -d "$CPP"; then
13002 CPP=
13003 fi
13004 if test -z "$CPP"; then
13005 if test "${ac_cv_prog_CPP+set}" = set; then :
13006 $as_echo_n "(cached) " >&6
13007 else
13008 # Double quotes because CPP needs to be expanded
13009 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13010 do
13011 ac_preproc_ok=false
13012 for ac_c_preproc_warn_flag in '' yes
13013 do
13014 # Use a header file that comes with gcc, so configuring glibc
13015 # with a fresh cross-compiler works.
13016 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13017 # <limits.h> exists even on freestanding compilers.
13018 # On the NeXT, cc -E runs the code through the compiler's parser,
13019 # not just through cpp. "Syntax error" is here to catch this case.
13020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13021 /* end confdefs.h. */
13022 #ifdef __STDC__
13023 # include <limits.h>
13024 #else
13025 # include <assert.h>
13026 #endif
13027 Syntax error
13028 _ACEOF
13029 if ac_fn_c_try_cpp "$LINENO"; then :
13030
13031 else
13032 # Broken: fails on valid input.
13033 continue
13034 fi
13035 rm -f conftest.err conftest.$ac_ext
13036
13037 # OK, works on sane cases. Now check whether nonexistent headers
13038 # can be detected and how.
13039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13040 /* end confdefs.h. */
13041 #include <ac_nonexistent.h>
13042 _ACEOF
13043 if ac_fn_c_try_cpp "$LINENO"; then :
13044 # Broken: success on invalid input.
13045 continue
13046 else
13047 # Passes both tests.
13048 ac_preproc_ok=:
13049 break
13050 fi
13051 rm -f conftest.err conftest.$ac_ext
13052
13053 done
13054 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13055 rm -f conftest.err conftest.$ac_ext
13056 if $ac_preproc_ok; then :
13057 break
13058 fi
13059
13060 done
13061 ac_cv_prog_CPP=$CPP
13062
13063 fi
13064 CPP=$ac_cv_prog_CPP
13065 else
13066 ac_cv_prog_CPP=$CPP
13067 fi
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
13069 $as_echo "$CPP" >&6; }
13070 ac_preproc_ok=false
13071 for ac_c_preproc_warn_flag in '' yes
13072 do
13073 # Use a header file that comes with gcc, so configuring glibc
13074 # with a fresh cross-compiler works.
13075 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13076 # <limits.h> exists even on freestanding compilers.
13077 # On the NeXT, cc -E runs the code through the compiler's parser,
13078 # not just through cpp. "Syntax error" is here to catch this case.
13079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13080 /* end confdefs.h. */
13081 #ifdef __STDC__
13082 # include <limits.h>
13083 #else
13084 # include <assert.h>
13085 #endif
13086 Syntax error
13087 _ACEOF
13088 if ac_fn_c_try_cpp "$LINENO"; then :
13089
13090 else
13091 # Broken: fails on valid input.
13092 continue
13093 fi
13094 rm -f conftest.err conftest.$ac_ext
13095
13096 # OK, works on sane cases. Now check whether nonexistent headers
13097 # can be detected and how.
13098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13099 /* end confdefs.h. */
13100 #include <ac_nonexistent.h>
13101 _ACEOF
13102 if ac_fn_c_try_cpp "$LINENO"; then :
13103 # Broken: success on invalid input.
13104 continue
13105 else
13106 # Passes both tests.
13107 ac_preproc_ok=:
13108 break
13109 fi
13110 rm -f conftest.err conftest.$ac_ext
13111
13112 done
13113 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13114 rm -f conftest.err conftest.$ac_ext
13115 if $ac_preproc_ok; then :
13116
13117 else
13118 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13120 as_fn_error "C preprocessor \"$CPP\" fails sanity check
13121 See \`config.log' for more details." "$LINENO" 5; }
13122 fi
13123
13124 ac_ext=c
13125 ac_cpp='$CPP $CPPFLAGS'
13126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13129
13130 ac_ext=cpp
13131 ac_cpp='$CXXCPP $CPPFLAGS'
13132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13135 if test -z "$CXX"; then
13136 if test -n "$CCC"; then
13137 CXX=$CCC
13138 else
13139 if test -n "$ac_tool_prefix"; then
13140 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13141 do
13142 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13143 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13145 $as_echo_n "checking for $ac_word... " >&6; }
13146 if test "${ac_cv_prog_CXX+set}" = set; then :
13147 $as_echo_n "(cached) " >&6
13148 else
13149 if test -n "$CXX"; then
13150 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13151 else
13152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13153 for as_dir in $PATH
13154 do
13155 IFS=$as_save_IFS
13156 test -z "$as_dir" && as_dir=.
13157 for ac_exec_ext in '' $ac_executable_extensions; do
13158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13159 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13161 break 2
13162 fi
13163 done
13164 done
13165 IFS=$as_save_IFS
13166
13167 fi
13168 fi
13169 CXX=$ac_cv_prog_CXX
13170 if test -n "$CXX"; then
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13172 $as_echo "$CXX" >&6; }
13173 else
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13175 $as_echo "no" >&6; }
13176 fi
13177
13178
13179 test -n "$CXX" && break
13180 done
13181 fi
13182 if test -z "$CXX"; then
13183 ac_ct_CXX=$CXX
13184 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13185 do
13186 # Extract the first word of "$ac_prog", so it can be a program name with args.
13187 set dummy $ac_prog; ac_word=$2
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13189 $as_echo_n "checking for $ac_word... " >&6; }
13190 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
13191 $as_echo_n "(cached) " >&6
13192 else
13193 if test -n "$ac_ct_CXX"; then
13194 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13195 else
13196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13197 for as_dir in $PATH
13198 do
13199 IFS=$as_save_IFS
13200 test -z "$as_dir" && as_dir=.
13201 for ac_exec_ext in '' $ac_executable_extensions; do
13202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13203 ac_cv_prog_ac_ct_CXX="$ac_prog"
13204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13205 break 2
13206 fi
13207 done
13208 done
13209 IFS=$as_save_IFS
13210
13211 fi
13212 fi
13213 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13214 if test -n "$ac_ct_CXX"; then
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13216 $as_echo "$ac_ct_CXX" >&6; }
13217 else
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13219 $as_echo "no" >&6; }
13220 fi
13221
13222
13223 test -n "$ac_ct_CXX" && break
13224 done
13225
13226 if test "x$ac_ct_CXX" = x; then
13227 CXX="g++"
13228 else
13229 case $cross_compiling:$ac_tool_warned in
13230 yes:)
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13233 ac_tool_warned=yes ;;
13234 esac
13235 CXX=$ac_ct_CXX
13236 fi
13237 fi
13238
13239 fi
13240 fi
13241 # Provide some information about the compiler.
13242 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13243 set X $ac_compile
13244 ac_compiler=$2
13245 for ac_option in --version -v -V -qversion; do
13246 { { ac_try="$ac_compiler $ac_option >&5"
13247 case "(($ac_try" in
13248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13249 *) ac_try_echo=$ac_try;;
13250 esac
13251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13252 $as_echo "$ac_try_echo"; } >&5
13253 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13254 ac_status=$?
13255 if test -s conftest.err; then
13256 sed '10a\
13257 ... rest of stderr output deleted ...
13258 10q' conftest.err >conftest.er1
13259 cat conftest.er1 >&5
13260 rm -f conftest.er1 conftest.err
13261 fi
13262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13263 test $ac_status = 0; }
13264 done
13265
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13267 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13268 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
13269 $as_echo_n "(cached) " >&6
13270 else
13271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13272 /* end confdefs.h. */
13273
13274 int
13275 main ()
13276 {
13277 #ifndef __GNUC__
13278 choke me
13279 #endif
13280
13281 ;
13282 return 0;
13283 }
13284 _ACEOF
13285 if ac_fn_cxx_try_compile "$LINENO"; then :
13286 ac_compiler_gnu=yes
13287 else
13288 ac_compiler_gnu=no
13289 fi
13290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13291 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13292
13293 fi
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13295 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13296 if test $ac_compiler_gnu = yes; then
13297 GXX=yes
13298 else
13299 GXX=
13300 fi
13301 ac_test_CXXFLAGS=${CXXFLAGS+set}
13302 ac_save_CXXFLAGS=$CXXFLAGS
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13304 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
13305 if test "${ac_cv_prog_cxx_g+set}" = set; then :
13306 $as_echo_n "(cached) " >&6
13307 else
13308 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13309 ac_cxx_werror_flag=yes
13310 ac_cv_prog_cxx_g=no
13311 CXXFLAGS="-g"
13312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13313 /* end confdefs.h. */
13314
13315 int
13316 main ()
13317 {
13318
13319 ;
13320 return 0;
13321 }
13322 _ACEOF
13323 if ac_fn_cxx_try_compile "$LINENO"; then :
13324 ac_cv_prog_cxx_g=yes
13325 else
13326 CXXFLAGS=""
13327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13328 /* end confdefs.h. */
13329
13330 int
13331 main ()
13332 {
13333
13334 ;
13335 return 0;
13336 }
13337 _ACEOF
13338 if ac_fn_cxx_try_compile "$LINENO"; then :
13339
13340 else
13341 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13342 CXXFLAGS="-g"
13343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13344 /* end confdefs.h. */
13345
13346 int
13347 main ()
13348 {
13349
13350 ;
13351 return 0;
13352 }
13353 _ACEOF
13354 if ac_fn_cxx_try_compile "$LINENO"; then :
13355 ac_cv_prog_cxx_g=yes
13356 fi
13357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13358 fi
13359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13360 fi
13361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13362 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13363 fi
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13365 $as_echo "$ac_cv_prog_cxx_g" >&6; }
13366 if test "$ac_test_CXXFLAGS" = set; then
13367 CXXFLAGS=$ac_save_CXXFLAGS
13368 elif test $ac_cv_prog_cxx_g = yes; then
13369 if test "$GXX" = yes; then
13370 CXXFLAGS="-g -O2"
13371 else
13372 CXXFLAGS="-g"
13373 fi
13374 else
13375 if test "$GXX" = yes; then
13376 CXXFLAGS="-O2"
13377 else
13378 CXXFLAGS=
13379 fi
13380 fi
13381 ac_ext=c
13382 ac_cpp='$CPP $CPPFLAGS'
13383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13386
13387 depcc="$CXX" am_compiler_list=
13388
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13390 $as_echo_n "checking dependency style of $depcc... " >&6; }
13391 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
13392 $as_echo_n "(cached) " >&6
13393 else
13394 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13395 # We make a subdir and do the tests there. Otherwise we can end up
13396 # making bogus files that we don't know about and never remove. For
13397 # instance it was reported that on HP-UX the gcc test will end up
13398 # making a dummy file named `D' -- because `-MD' means `put the output
13399 # in D'.
13400 mkdir conftest.dir
13401 # Copy depcomp to subdir because otherwise we won't find it if we're
13402 # using a relative directory.
13403 cp "$am_depcomp" conftest.dir
13404 cd conftest.dir
13405 # We will build objects and dependencies in a subdirectory because
13406 # it helps to detect inapplicable dependency modes. For instance
13407 # both Tru64's cc and ICC support -MD to output dependencies as a
13408 # side effect of compilation, but ICC will put the dependencies in
13409 # the current directory while Tru64 will put them in the object
13410 # directory.
13411 mkdir sub
13412
13413 am_cv_CXX_dependencies_compiler_type=none
13414 if test "$am_compiler_list" = ""; then
13415 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13416 fi
13417 am__universal=false
13418 case " $depcc " in #(
13419 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13420 esac
13421
13422 for depmode in $am_compiler_list; do
13423 # Setup a source with many dependencies, because some compilers
13424 # like to wrap large dependency lists on column 80 (with \), and
13425 # we should not choose a depcomp mode which is confused by this.
13426 #
13427 # We need to recreate these files for each test, as the compiler may
13428 # overwrite some of them when testing with obscure command lines.
13429 # This happens at least with the AIX C compiler.
13430 : > sub/conftest.c
13431 for i in 1 2 3 4 5 6; do
13432 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13433 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13434 # Solaris 8's {/usr,}/bin/sh.
13435 touch sub/conftst$i.h
13436 done
13437 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13438
13439 # We check with `-c' and `-o' for the sake of the "dashmstdout"
13440 # mode. It turns out that the SunPro C++ compiler does not properly
13441 # handle `-M -o', and we need to detect this. Also, some Intel
13442 # versions had trouble with output in subdirs
13443 am__obj=sub/conftest.${OBJEXT-o}
13444 am__minus_obj="-o $am__obj"
13445 case $depmode in
13446 gcc)
13447 # This depmode causes a compiler race in universal mode.
13448 test "$am__universal" = false || continue
13449 ;;
13450 nosideeffect)
13451 # after this tag, mechanisms are not by side-effect, so they'll
13452 # only be used when explicitly requested
13453 if test "x$enable_dependency_tracking" = xyes; then
13454 continue
13455 else
13456 break
13457 fi
13458 ;;
13459 msvisualcpp | msvcmsys)
13460 # This compiler won't grok `-c -o', but also, the minuso test has
13461 # not run yet. These depmodes are late enough in the game, and
13462 # so weak that their functioning should not be impacted.
13463 am__obj=conftest.${OBJEXT-o}
13464 am__minus_obj=
13465 ;;
13466 none) break ;;
13467 esac
13468 if depmode=$depmode \
13469 source=sub/conftest.c object=$am__obj \
13470 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13471 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13472 >/dev/null 2>conftest.err &&
13473 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13474 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13475 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13476 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13477 # icc doesn't choke on unknown options, it will just issue warnings
13478 # or remarks (even with -Werror). So we grep stderr for any message
13479 # that says an option was ignored or not supported.
13480 # When given -MP, icc 7.0 and 7.1 complain thusly:
13481 # icc: Command line warning: ignoring option '-M'; no argument required
13482 # The diagnosis changed in icc 8.0:
13483 # icc: Command line remark: option '-MP' not supported
13484 if (grep 'ignoring option' conftest.err ||
13485 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13486 am_cv_CXX_dependencies_compiler_type=$depmode
13487 break
13488 fi
13489 fi
13490 done
13491
13492 cd ..
13493 rm -rf conftest.dir
13494 else
13495 am_cv_CXX_dependencies_compiler_type=none
13496 fi
13497
13498 fi
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13500 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13501 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13502
13503 if
13504 test "x$enable_dependency_tracking" != xno \
13505 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13506 am__fastdepCXX_TRUE=
13507 am__fastdepCXX_FALSE='#'
13508 else
13509 am__fastdepCXX_TRUE='#'
13510 am__fastdepCXX_FALSE=
13511 fi
13512
13513
13514 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13515 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13516 (test "X$CXX" != "Xg++"))) ; then
13517 ac_ext=cpp
13518 ac_cpp='$CXXCPP $CPPFLAGS'
13519 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13520 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13521 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13523 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13524 if test -z "$CXXCPP"; then
13525 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13526 $as_echo_n "(cached) " >&6
13527 else
13528 # Double quotes because CXXCPP needs to be expanded
13529 for CXXCPP in "$CXX -E" "/lib/cpp"
13530 do
13531 ac_preproc_ok=false
13532 for ac_cxx_preproc_warn_flag in '' yes
13533 do
13534 # Use a header file that comes with gcc, so configuring glibc
13535 # with a fresh cross-compiler works.
13536 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13537 # <limits.h> exists even on freestanding compilers.
13538 # On the NeXT, cc -E runs the code through the compiler's parser,
13539 # not just through cpp. "Syntax error" is here to catch this case.
13540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13541 /* end confdefs.h. */
13542 #ifdef __STDC__
13543 # include <limits.h>
13544 #else
13545 # include <assert.h>
13546 #endif
13547 Syntax error
13548 _ACEOF
13549 if ac_fn_cxx_try_cpp "$LINENO"; then :
13550
13551 else
13552 # Broken: fails on valid input.
13553 continue
13554 fi
13555 rm -f conftest.err conftest.$ac_ext
13556
13557 # OK, works on sane cases. Now check whether nonexistent headers
13558 # can be detected and how.
13559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13560 /* end confdefs.h. */
13561 #include <ac_nonexistent.h>
13562 _ACEOF
13563 if ac_fn_cxx_try_cpp "$LINENO"; then :
13564 # Broken: success on invalid input.
13565 continue
13566 else
13567 # Passes both tests.
13568 ac_preproc_ok=:
13569 break
13570 fi
13571 rm -f conftest.err conftest.$ac_ext
13572
13573 done
13574 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13575 rm -f conftest.err conftest.$ac_ext
13576 if $ac_preproc_ok; then :
13577 break
13578 fi
13579
13580 done
13581 ac_cv_prog_CXXCPP=$CXXCPP
13582
13583 fi
13584 CXXCPP=$ac_cv_prog_CXXCPP
13585 else
13586 ac_cv_prog_CXXCPP=$CXXCPP
13587 fi
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13589 $as_echo "$CXXCPP" >&6; }
13590 ac_preproc_ok=false
13591 for ac_cxx_preproc_warn_flag in '' yes
13592 do
13593 # Use a header file that comes with gcc, so configuring glibc
13594 # with a fresh cross-compiler works.
13595 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13596 # <limits.h> exists even on freestanding compilers.
13597 # On the NeXT, cc -E runs the code through the compiler's parser,
13598 # not just through cpp. "Syntax error" is here to catch this case.
13599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13600 /* end confdefs.h. */
13601 #ifdef __STDC__
13602 # include <limits.h>
13603 #else
13604 # include <assert.h>
13605 #endif
13606 Syntax error
13607 _ACEOF
13608 if ac_fn_cxx_try_cpp "$LINENO"; then :
13609
13610 else
13611 # Broken: fails on valid input.
13612 continue
13613 fi
13614 rm -f conftest.err conftest.$ac_ext
13615
13616 # OK, works on sane cases. Now check whether nonexistent headers
13617 # can be detected and how.
13618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13619 /* end confdefs.h. */
13620 #include <ac_nonexistent.h>
13621 _ACEOF
13622 if ac_fn_cxx_try_cpp "$LINENO"; then :
13623 # Broken: success on invalid input.
13624 continue
13625 else
13626 # Passes both tests.
13627 ac_preproc_ok=:
13628 break
13629 fi
13630 rm -f conftest.err conftest.$ac_ext
13631
13632 done
13633 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13634 rm -f conftest.err conftest.$ac_ext
13635 if $ac_preproc_ok; then :
13636
13637 else
13638 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13639 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13640 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
13641 See \`config.log' for more details." "$LINENO" 5; }
13642 fi
13643
13644 ac_ext=c
13645 ac_cpp='$CPP $CPPFLAGS'
13646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13649
13650 else
13651 _lt_caught_CXX_error=yes
13652 fi
13653
13654 ac_ext=cpp
13655 ac_cpp='$CXXCPP $CPPFLAGS'
13656 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13657 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13658 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13659
13660 archive_cmds_need_lc_CXX=no
13661 allow_undefined_flag_CXX=
13662 always_export_symbols_CXX=no
13663 archive_expsym_cmds_CXX=
13664 compiler_needs_object_CXX=no
13665 export_dynamic_flag_spec_CXX=
13666 hardcode_direct_CXX=no
13667 hardcode_direct_absolute_CXX=no
13668 hardcode_libdir_flag_spec_CXX=
13669 hardcode_libdir_flag_spec_ld_CXX=
13670 hardcode_libdir_separator_CXX=
13671 hardcode_minus_L_CXX=no
13672 hardcode_shlibpath_var_CXX=unsupported
13673 hardcode_automatic_CXX=no
13674 inherit_rpath_CXX=no
13675 module_cmds_CXX=
13676 module_expsym_cmds_CXX=
13677 link_all_deplibs_CXX=unknown
13678 old_archive_cmds_CXX=$old_archive_cmds
13679 reload_flag_CXX=$reload_flag
13680 reload_cmds_CXX=$reload_cmds
13681 no_undefined_flag_CXX=
13682 whole_archive_flag_spec_CXX=
13683 enable_shared_with_static_runtimes_CXX=no
13684
13685 # Source file extension for C++ test sources.
13686 ac_ext=cpp
13687
13688 # Object file extension for compiled C++ test sources.
13689 objext=o
13690 objext_CXX=$objext
13691
13692 # No sense in running all these tests if we already determined that
13693 # the CXX compiler isn't working. Some variables (like enable_shared)
13694 # are currently assumed to apply to all compilers on this platform,
13695 # and will be corrupted by setting them based on a non-working compiler.
13696 if test "$_lt_caught_CXX_error" != yes; then
13697 # Code to be used in simple compile tests
13698 lt_simple_compile_test_code="int some_variable = 0;"
13699
13700 # Code to be used in simple link tests
13701 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13702
13703 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13704
13705
13706
13707
13708
13709
13710 # If no C compiler was specified, use CC.
13711 LTCC=${LTCC-"$CC"}
13712
13713 # If no C compiler flags were specified, use CFLAGS.
13714 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13715
13716 # Allow CC to be a program name with arguments.
13717 compiler=$CC
13718
13719
13720 # save warnings/boilerplate of simple test code
13721 ac_outfile=conftest.$ac_objext
13722 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13723 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13724 _lt_compiler_boilerplate=`cat conftest.err`
13725 $RM conftest*
13726
13727 ac_outfile=conftest.$ac_objext
13728 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13729 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13730 _lt_linker_boilerplate=`cat conftest.err`
13731 $RM -r conftest*
13732
13733
13734 # Allow CC to be a program name with arguments.
13735 lt_save_CC=$CC
13736 lt_save_LD=$LD
13737 lt_save_GCC=$GCC
13738 GCC=$GXX
13739 lt_save_with_gnu_ld=$with_gnu_ld
13740 lt_save_path_LD=$lt_cv_path_LD
13741 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13742 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13743 else
13744 $as_unset lt_cv_prog_gnu_ld
13745 fi
13746 if test -n "${lt_cv_path_LDCXX+set}"; then
13747 lt_cv_path_LD=$lt_cv_path_LDCXX
13748 else
13749 $as_unset lt_cv_path_LD
13750 fi
13751 test -z "${LDCXX+set}" || LD=$LDCXX
13752 CC=${CXX-"c++"}
13753 compiler=$CC
13754 compiler_CXX=$CC
13755 for cc_temp in $compiler""; do
13756 case $cc_temp in
13757 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13758 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13759 \-*) ;;
13760 *) break;;
13761 esac
13762 done
13763 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13764
13765
13766 if test -n "$compiler"; then
13767 # We don't want -fno-exception when compiling C++ code, so set the
13768 # no_builtin_flag separately
13769 if test "$GXX" = yes; then
13770 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13771 else
13772 lt_prog_compiler_no_builtin_flag_CXX=
13773 fi
13774
13775 if test "$GXX" = yes; then
13776 # Set up default GNU C++ configuration
13777
13778
13779
13780 # Check whether --with-gnu-ld was given.
13781 if test "${with_gnu_ld+set}" = set; then :
13782 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13783 else
13784 with_gnu_ld=no
13785 fi
13786
13787 ac_prog=ld
13788 if test "$GCC" = yes; then
13789 # Check if gcc -print-prog-name=ld gives a path.
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13791 $as_echo_n "checking for ld used by $CC... " >&6; }
13792 case $host in
13793 *-*-mingw*)
13794 # gcc leaves a trailing carriage return which upsets mingw
13795 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13796 *)
13797 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13798 esac
13799 case $ac_prog in
13800 # Accept absolute paths.
13801 [\\/]* | ?:[\\/]*)
13802 re_direlt='/[^/][^/]*/\.\./'
13803 # Canonicalize the pathname of ld
13804 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13805 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13806 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13807 done
13808 test -z "$LD" && LD="$ac_prog"
13809 ;;
13810 "")
13811 # If it fails, then pretend we aren't using GCC.
13812 ac_prog=ld
13813 ;;
13814 *)
13815 # If it is relative, then search for the first ld in PATH.
13816 with_gnu_ld=unknown
13817 ;;
13818 esac
13819 elif test "$with_gnu_ld" = yes; then
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13821 $as_echo_n "checking for GNU ld... " >&6; }
13822 else
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13824 $as_echo_n "checking for non-GNU ld... " >&6; }
13825 fi
13826 if test "${lt_cv_path_LD+set}" = set; then :
13827 $as_echo_n "(cached) " >&6
13828 else
13829 if test -z "$LD"; then
13830 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13831 for ac_dir in $PATH; do
13832 IFS="$lt_save_ifs"
13833 test -z "$ac_dir" && ac_dir=.
13834 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13835 lt_cv_path_LD="$ac_dir/$ac_prog"
13836 # Check to see if the program is GNU ld. I'd rather use --version,
13837 # but apparently some variants of GNU ld only accept -v.
13838 # Break only if it was the GNU/non-GNU ld that we prefer.
13839 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13840 *GNU* | *'with BFD'*)
13841 test "$with_gnu_ld" != no && break
13842 ;;
13843 *)
13844 test "$with_gnu_ld" != yes && break
13845 ;;
13846 esac
13847 fi
13848 done
13849 IFS="$lt_save_ifs"
13850 else
13851 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13852 fi
13853 fi
13854
13855 LD="$lt_cv_path_LD"
13856 if test -n "$LD"; then
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13858 $as_echo "$LD" >&6; }
13859 else
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13861 $as_echo "no" >&6; }
13862 fi
13863 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13865 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13866 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
13867 $as_echo_n "(cached) " >&6
13868 else
13869 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13870 case `$LD -v 2>&1 </dev/null` in
13871 *GNU* | *'with BFD'*)
13872 lt_cv_prog_gnu_ld=yes
13873 ;;
13874 *)
13875 lt_cv_prog_gnu_ld=no
13876 ;;
13877 esac
13878 fi
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13880 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13881 with_gnu_ld=$lt_cv_prog_gnu_ld
13882
13883
13884
13885
13886
13887
13888
13889 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13890 # archiving commands below assume that GNU ld is being used.
13891 if test "$with_gnu_ld" = yes; then
13892 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13893 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'
13894
13895 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13896 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13897
13898 # If archive_cmds runs LD, not CC, wlarc should be empty
13899 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13900 # investigate it a little bit more. (MM)
13901 wlarc='${wl}'
13902
13903 # ancient GNU ld didn't support --whole-archive et. al.
13904 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13905 $GREP 'no-whole-archive' > /dev/null; then
13906 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13907 else
13908 whole_archive_flag_spec_CXX=
13909 fi
13910 else
13911 with_gnu_ld=no
13912 wlarc=
13913
13914 # A generic and very simple default shared library creation
13915 # command for GNU C++ for the case where it uses the native
13916 # linker, instead of GNU ld. If possible, this setting should
13917 # overridden to take advantage of the native linker features on
13918 # the platform it is being used on.
13919 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13920 fi
13921
13922 # Commands to make compiler produce verbose output that lists
13923 # what "hidden" libraries, object files and flags are used when
13924 # linking a shared library.
13925 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13926
13927 else
13928 GXX=no
13929 with_gnu_ld=no
13930 wlarc=
13931 fi
13932
13933 # PORTME: fill in a description of your system's C++ link characteristics
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13935 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13936 ld_shlibs_CXX=yes
13937 case $host_os in
13938 aix3*)
13939 # FIXME: insert proper C++ library support
13940 ld_shlibs_CXX=no
13941 ;;
13942 aix[4-9]*)
13943 if test "$host_cpu" = ia64; then
13944 # On IA64, the linker does run time linking by default, so we don't
13945 # have to do anything special.
13946 aix_use_runtimelinking=no
13947 exp_sym_flag='-Bexport'
13948 no_entry_flag=""
13949 else
13950 aix_use_runtimelinking=no
13951
13952 # Test if we are trying to use run time linking or normal
13953 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13954 # need to do runtime linking.
13955 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13956 for ld_flag in $LDFLAGS; do
13957 case $ld_flag in
13958 *-brtl*)
13959 aix_use_runtimelinking=yes
13960 break
13961 ;;
13962 esac
13963 done
13964 ;;
13965 esac
13966
13967 exp_sym_flag='-bexport'
13968 no_entry_flag='-bnoentry'
13969 fi
13970
13971 # When large executables or shared objects are built, AIX ld can
13972 # have problems creating the table of contents. If linking a library
13973 # or program results in "error TOC overflow" add -mminimal-toc to
13974 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13975 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13976
13977 archive_cmds_CXX=''
13978 hardcode_direct_CXX=yes
13979 hardcode_direct_absolute_CXX=yes
13980 hardcode_libdir_separator_CXX=':'
13981 link_all_deplibs_CXX=yes
13982 file_list_spec_CXX='${wl}-f,'
13983
13984 if test "$GXX" = yes; then
13985 case $host_os in aix4.[012]|aix4.[012].*)
13986 # We only want to do this on AIX 4.2 and lower, the check
13987 # below for broken collect2 doesn't work under 4.3+
13988 collect2name=`${CC} -print-prog-name=collect2`
13989 if test -f "$collect2name" &&
13990 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13991 then
13992 # We have reworked collect2
13993 :
13994 else
13995 # We have old collect2
13996 hardcode_direct_CXX=unsupported
13997 # It fails to find uninstalled libraries when the uninstalled
13998 # path is not listed in the libpath. Setting hardcode_minus_L
13999 # to unsupported forces relinking
14000 hardcode_minus_L_CXX=yes
14001 hardcode_libdir_flag_spec_CXX='-L$libdir'
14002 hardcode_libdir_separator_CXX=
14003 fi
14004 esac
14005 shared_flag='-shared'
14006 if test "$aix_use_runtimelinking" = yes; then
14007 shared_flag="$shared_flag "'${wl}-G'
14008 fi
14009 else
14010 # not using gcc
14011 if test "$host_cpu" = ia64; then
14012 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14013 # chokes on -Wl,-G. The following line is correct:
14014 shared_flag='-G'
14015 else
14016 if test "$aix_use_runtimelinking" = yes; then
14017 shared_flag='${wl}-G'
14018 else
14019 shared_flag='${wl}-bM:SRE'
14020 fi
14021 fi
14022 fi
14023
14024 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14025 # It seems that -bexpall does not export symbols beginning with
14026 # underscore (_), so it is better to generate a list of symbols to
14027 # export.
14028 always_export_symbols_CXX=yes
14029 if test "$aix_use_runtimelinking" = yes; then
14030 # Warning - without using the other runtime loading flags (-brtl),
14031 # -berok will link without error, but may produce a broken library.
14032 allow_undefined_flag_CXX='-berok'
14033 # Determine the default libpath from the value encoded in an empty
14034 # executable.
14035 if test x$gcc_no_link = xyes; then
14036 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14037 fi
14038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14039 /* end confdefs.h. */
14040
14041 int
14042 main ()
14043 {
14044
14045 ;
14046 return 0;
14047 }
14048 _ACEOF
14049 if ac_fn_cxx_try_link "$LINENO"; then :
14050
14051 lt_aix_libpath_sed='
14052 /Import File Strings/,/^$/ {
14053 /^0/ {
14054 s/^0 *\(.*\)$/\1/
14055 p
14056 }
14057 }'
14058 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14059 # Check for a 64-bit object if we didn't find anything.
14060 if test -z "$aix_libpath"; then
14061 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14062 fi
14063 fi
14064 rm -f core conftest.err conftest.$ac_objext \
14065 conftest$ac_exeext conftest.$ac_ext
14066 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14067
14068 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14069
14070 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"
14071 else
14072 if test "$host_cpu" = ia64; then
14073 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14074 allow_undefined_flag_CXX="-z nodefs"
14075 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"
14076 else
14077 # Determine the default libpath from the value encoded in an
14078 # empty executable.
14079 if test x$gcc_no_link = xyes; then
14080 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14081 fi
14082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14083 /* end confdefs.h. */
14084
14085 int
14086 main ()
14087 {
14088
14089 ;
14090 return 0;
14091 }
14092 _ACEOF
14093 if ac_fn_cxx_try_link "$LINENO"; then :
14094
14095 lt_aix_libpath_sed='
14096 /Import File Strings/,/^$/ {
14097 /^0/ {
14098 s/^0 *\(.*\)$/\1/
14099 p
14100 }
14101 }'
14102 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14103 # Check for a 64-bit object if we didn't find anything.
14104 if test -z "$aix_libpath"; then
14105 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14106 fi
14107 fi
14108 rm -f core conftest.err conftest.$ac_objext \
14109 conftest$ac_exeext conftest.$ac_ext
14110 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14111
14112 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14113 # Warning - without using the other run time loading flags,
14114 # -berok will link without error, but may produce a broken library.
14115 no_undefined_flag_CXX=' ${wl}-bernotok'
14116 allow_undefined_flag_CXX=' ${wl}-berok'
14117 if test "$with_gnu_ld" = yes; then
14118 # We only use this code for GNU lds that support --whole-archive.
14119 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14120 else
14121 # Exported symbols can be pulled into shared objects from archives
14122 whole_archive_flag_spec_CXX='$convenience'
14123 fi
14124 archive_cmds_need_lc_CXX=yes
14125 # This is similar to how AIX traditionally builds its shared
14126 # libraries.
14127 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'
14128 fi
14129 fi
14130 ;;
14131
14132 beos*)
14133 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14134 allow_undefined_flag_CXX=unsupported
14135 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14136 # support --undefined. This deserves some investigation. FIXME
14137 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14138 else
14139 ld_shlibs_CXX=no
14140 fi
14141 ;;
14142
14143 chorus*)
14144 case $cc_basename in
14145 *)
14146 # FIXME: insert proper C++ library support
14147 ld_shlibs_CXX=no
14148 ;;
14149 esac
14150 ;;
14151
14152 cygwin* | mingw* | pw32* | cegcc*)
14153 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14154 # as there is no search path for DLLs.
14155 hardcode_libdir_flag_spec_CXX='-L$libdir'
14156 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14157 allow_undefined_flag_CXX=unsupported
14158 always_export_symbols_CXX=no
14159 enable_shared_with_static_runtimes_CXX=yes
14160
14161 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14162 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'
14163 # If the export-symbols file already is a .def file (1st line
14164 # is EXPORTS), use it as is; otherwise, prepend...
14165 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14166 cp $export_symbols $output_objdir/$soname.def;
14167 else
14168 echo EXPORTS > $output_objdir/$soname.def;
14169 cat $export_symbols >> $output_objdir/$soname.def;
14170 fi~
14171 $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'
14172 else
14173 ld_shlibs_CXX=no
14174 fi
14175 ;;
14176 darwin* | rhapsody*)
14177
14178
14179 archive_cmds_need_lc_CXX=no
14180 hardcode_direct_CXX=no
14181 hardcode_automatic_CXX=yes
14182 hardcode_shlibpath_var_CXX=unsupported
14183 if test "$lt_cv_ld_force_load" = "yes"; then
14184 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\"`'
14185 else
14186 whole_archive_flag_spec_CXX=''
14187 fi
14188 link_all_deplibs_CXX=yes
14189 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14190 case $cc_basename in
14191 ifort*) _lt_dar_can_shared=yes ;;
14192 *) _lt_dar_can_shared=$GCC ;;
14193 esac
14194 if test "$_lt_dar_can_shared" = "yes"; then
14195 output_verbose_link_cmd=func_echo_all
14196 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}"
14197 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14198 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}"
14199 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}"
14200 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14201 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}"
14202 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}"
14203 fi
14204
14205 else
14206 ld_shlibs_CXX=no
14207 fi
14208
14209 ;;
14210
14211 dgux*)
14212 case $cc_basename in
14213 ec++*)
14214 # FIXME: insert proper C++ library support
14215 ld_shlibs_CXX=no
14216 ;;
14217 ghcx*)
14218 # Green Hills C++ Compiler
14219 # FIXME: insert proper C++ library support
14220 ld_shlibs_CXX=no
14221 ;;
14222 *)
14223 # FIXME: insert proper C++ library support
14224 ld_shlibs_CXX=no
14225 ;;
14226 esac
14227 ;;
14228
14229 freebsd[12]*)
14230 # C++ shared libraries reported to be fairly broken before
14231 # switch to ELF
14232 ld_shlibs_CXX=no
14233 ;;
14234
14235 freebsd-elf*)
14236 archive_cmds_need_lc_CXX=no
14237 ;;
14238
14239 freebsd* | dragonfly*)
14240 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14241 # conventions
14242 ld_shlibs_CXX=yes
14243 ;;
14244
14245 gnu*)
14246 ;;
14247
14248 haiku*)
14249 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14250 link_all_deplibs_CXX=yes
14251 ;;
14252
14253 hpux9*)
14254 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14255 hardcode_libdir_separator_CXX=:
14256 export_dynamic_flag_spec_CXX='${wl}-E'
14257 hardcode_direct_CXX=yes
14258 hardcode_minus_L_CXX=yes # Not in the search PATH,
14259 # but as the default
14260 # location of the library.
14261
14262 case $cc_basename in
14263 CC*)
14264 # FIXME: insert proper C++ library support
14265 ld_shlibs_CXX=no
14266 ;;
14267 aCC*)
14268 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'
14269 # Commands to make compiler produce verbose output that lists
14270 # what "hidden" libraries, object files and flags are used when
14271 # linking a shared library.
14272 #
14273 # There doesn't appear to be a way to prevent this compiler from
14274 # explicitly linking system object files so we need to strip them
14275 # from the output so that they don't get included in the library
14276 # dependencies.
14277 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"'
14278 ;;
14279 *)
14280 if test "$GXX" = yes; then
14281 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'
14282 else
14283 # FIXME: insert proper C++ library support
14284 ld_shlibs_CXX=no
14285 fi
14286 ;;
14287 esac
14288 ;;
14289
14290 hpux10*|hpux11*)
14291 if test $with_gnu_ld = no; then
14292 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14293 hardcode_libdir_separator_CXX=:
14294
14295 case $host_cpu in
14296 hppa*64*|ia64*)
14297 ;;
14298 *)
14299 export_dynamic_flag_spec_CXX='${wl}-E'
14300 ;;
14301 esac
14302 fi
14303 case $host_cpu in
14304 hppa*64*|ia64*)
14305 hardcode_direct_CXX=no
14306 hardcode_shlibpath_var_CXX=no
14307 ;;
14308 *)
14309 hardcode_direct_CXX=yes
14310 hardcode_direct_absolute_CXX=yes
14311 hardcode_minus_L_CXX=yes # Not in the search PATH,
14312 # but as the default
14313 # location of the library.
14314 ;;
14315 esac
14316
14317 case $cc_basename in
14318 CC*)
14319 # FIXME: insert proper C++ library support
14320 ld_shlibs_CXX=no
14321 ;;
14322 aCC*)
14323 case $host_cpu in
14324 hppa*64*)
14325 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14326 ;;
14327 ia64*)
14328 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14329 ;;
14330 *)
14331 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14332 ;;
14333 esac
14334 # Commands to make compiler produce verbose output that lists
14335 # what "hidden" libraries, object files and flags are used when
14336 # linking a shared library.
14337 #
14338 # There doesn't appear to be a way to prevent this compiler from
14339 # explicitly linking system object files so we need to strip them
14340 # from the output so that they don't get included in the library
14341 # dependencies.
14342 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"'
14343 ;;
14344 *)
14345 if test "$GXX" = yes; then
14346 if test $with_gnu_ld = no; then
14347 case $host_cpu in
14348 hppa*64*)
14349 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14350 ;;
14351 ia64*)
14352 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14353 ;;
14354 *)
14355 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'
14356 ;;
14357 esac
14358 fi
14359 else
14360 # FIXME: insert proper C++ library support
14361 ld_shlibs_CXX=no
14362 fi
14363 ;;
14364 esac
14365 ;;
14366
14367 interix[3-9]*)
14368 hardcode_direct_CXX=no
14369 hardcode_shlibpath_var_CXX=no
14370 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14371 export_dynamic_flag_spec_CXX='${wl}-E'
14372 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14373 # Instead, shared libraries are loaded at an image base (0x10000000 by
14374 # default) and relocated if they conflict, which is a slow very memory
14375 # consuming and fragmenting process. To avoid this, we pick a random,
14376 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14377 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14378 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'
14379 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'
14380 ;;
14381 irix5* | irix6*)
14382 case $cc_basename in
14383 CC*)
14384 # SGI C++
14385 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'
14386
14387 # Archives containing C++ object files must be created using
14388 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14389 # necessary to make sure instantiated templates are included
14390 # in the archive.
14391 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14392 ;;
14393 *)
14394 if test "$GXX" = yes; then
14395 if test "$with_gnu_ld" = no; then
14396 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'
14397 else
14398 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'
14399 fi
14400 fi
14401 link_all_deplibs_CXX=yes
14402 ;;
14403 esac
14404 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14405 hardcode_libdir_separator_CXX=:
14406 inherit_rpath_CXX=yes
14407 ;;
14408
14409 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14410 case $cc_basename in
14411 KCC*)
14412 # Kuck and Associates, Inc. (KAI) C++ Compiler
14413
14414 # KCC will only create a shared library if the output file
14415 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14416 # to its proper name (with version) after linking.
14417 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'
14418 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'
14419 # Commands to make compiler produce verbose output that lists
14420 # what "hidden" libraries, object files and flags are used when
14421 # linking a shared library.
14422 #
14423 # There doesn't appear to be a way to prevent this compiler from
14424 # explicitly linking system object files so we need to strip them
14425 # from the output so that they don't get included in the library
14426 # dependencies.
14427 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"'
14428
14429 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14430 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14431
14432 # Archives containing C++ object files must be created using
14433 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14434 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14435 ;;
14436 icpc* | ecpc* )
14437 # Intel C++
14438 with_gnu_ld=yes
14439 # version 8.0 and above of icpc choke on multiply defined symbols
14440 # if we add $predep_objects and $postdep_objects, however 7.1 and
14441 # earlier do not add the objects themselves.
14442 case `$CC -V 2>&1` in
14443 *"Version 7."*)
14444 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14445 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'
14446 ;;
14447 *) # Version 8.0 or newer
14448 tmp_idyn=
14449 case $host_cpu in
14450 ia64*) tmp_idyn=' -i_dynamic';;
14451 esac
14452 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14453 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'
14454 ;;
14455 esac
14456 archive_cmds_need_lc_CXX=no
14457 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14458 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14459 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14460 ;;
14461 pgCC* | pgcpp*)
14462 # Portland Group C++ compiler
14463 case `$CC -V` in
14464 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14465 prelink_cmds_CXX='tpldir=Template.dir~
14466 rm -rf $tpldir~
14467 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14468 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14469 old_archive_cmds_CXX='tpldir=Template.dir~
14470 rm -rf $tpldir~
14471 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14472 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14473 $RANLIB $oldlib'
14474 archive_cmds_CXX='tpldir=Template.dir~
14475 rm -rf $tpldir~
14476 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14477 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14478 archive_expsym_cmds_CXX='tpldir=Template.dir~
14479 rm -rf $tpldir~
14480 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14481 $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'
14482 ;;
14483 *) # Version 6 and above use weak symbols
14484 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14485 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'
14486 ;;
14487 esac
14488
14489 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14490 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14491 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'
14492 ;;
14493 cxx*)
14494 # Compaq C++
14495 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14496 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'
14497
14498 runpath_var=LD_RUN_PATH
14499 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14500 hardcode_libdir_separator_CXX=:
14501
14502 # Commands to make compiler produce verbose output that lists
14503 # what "hidden" libraries, object files and flags are used when
14504 # linking a shared library.
14505 #
14506 # There doesn't appear to be a way to prevent this compiler from
14507 # explicitly linking system object files so we need to strip them
14508 # from the output so that they don't get included in the library
14509 # dependencies.
14510 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'
14511 ;;
14512 xl* | mpixl* | bgxl*)
14513 # IBM XL 8.0 on PPC, with GNU ld
14514 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14515 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14516 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14517 if test "x$supports_anon_versioning" = xyes; then
14518 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14519 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14520 echo "local: *; };" >> $output_objdir/$libname.ver~
14521 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14522 fi
14523 ;;
14524 *)
14525 case `$CC -V 2>&1 | sed 5q` in
14526 *Sun\ C*)
14527 # Sun C++ 5.9
14528 no_undefined_flag_CXX=' -zdefs'
14529 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14530 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'
14531 hardcode_libdir_flag_spec_CXX='-R$libdir'
14532 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'
14533 compiler_needs_object_CXX=yes
14534
14535 # Not sure whether something based on
14536 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14537 # would be better.
14538 output_verbose_link_cmd='func_echo_all'
14539
14540 # Archives containing C++ object files must be created using
14541 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14542 # necessary to make sure instantiated templates are included
14543 # in the archive.
14544 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14545 ;;
14546 esac
14547 ;;
14548 esac
14549 ;;
14550
14551 lynxos*)
14552 # FIXME: insert proper C++ library support
14553 ld_shlibs_CXX=no
14554 ;;
14555
14556 m88k*)
14557 # FIXME: insert proper C++ library support
14558 ld_shlibs_CXX=no
14559 ;;
14560
14561 mvs*)
14562 case $cc_basename in
14563 cxx*)
14564 # FIXME: insert proper C++ library support
14565 ld_shlibs_CXX=no
14566 ;;
14567 *)
14568 # FIXME: insert proper C++ library support
14569 ld_shlibs_CXX=no
14570 ;;
14571 esac
14572 ;;
14573
14574 netbsd*)
14575 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14576 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14577 wlarc=
14578 hardcode_libdir_flag_spec_CXX='-R$libdir'
14579 hardcode_direct_CXX=yes
14580 hardcode_shlibpath_var_CXX=no
14581 fi
14582 # Workaround some broken pre-1.5 toolchains
14583 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14584 ;;
14585
14586 *nto* | *qnx*)
14587 ld_shlibs_CXX=yes
14588 ;;
14589
14590 openbsd2*)
14591 # C++ shared libraries are fairly broken
14592 ld_shlibs_CXX=no
14593 ;;
14594
14595 openbsd*)
14596 if test -f /usr/libexec/ld.so; then
14597 hardcode_direct_CXX=yes
14598 hardcode_shlibpath_var_CXX=no
14599 hardcode_direct_absolute_CXX=yes
14600 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14601 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14602 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14603 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14604 export_dynamic_flag_spec_CXX='${wl}-E'
14605 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14606 fi
14607 output_verbose_link_cmd=func_echo_all
14608 else
14609 ld_shlibs_CXX=no
14610 fi
14611 ;;
14612
14613 osf3* | osf4* | osf5*)
14614 case $cc_basename in
14615 KCC*)
14616 # Kuck and Associates, Inc. (KAI) C++ Compiler
14617
14618 # KCC will only create a shared library if the output file
14619 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14620 # to its proper name (with version) after linking.
14621 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'
14622
14623 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14624 hardcode_libdir_separator_CXX=:
14625
14626 # Archives containing C++ object files must be created using
14627 # the KAI C++ compiler.
14628 case $host in
14629 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14630 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14631 esac
14632 ;;
14633 RCC*)
14634 # Rational C++ 2.4.1
14635 # FIXME: insert proper C++ library support
14636 ld_shlibs_CXX=no
14637 ;;
14638 cxx*)
14639 case $host in
14640 osf3*)
14641 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14642 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'
14643 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14644 ;;
14645 *)
14646 allow_undefined_flag_CXX=' -expect_unresolved \*'
14647 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'
14648 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14649 echo "-hidden">> $lib.exp~
14650 $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~
14651 $RM $lib.exp'
14652 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14653 ;;
14654 esac
14655
14656 hardcode_libdir_separator_CXX=:
14657
14658 # Commands to make compiler produce verbose output that lists
14659 # what "hidden" libraries, object files and flags are used when
14660 # linking a shared library.
14661 #
14662 # There doesn't appear to be a way to prevent this compiler from
14663 # explicitly linking system object files so we need to strip them
14664 # from the output so that they don't get included in the library
14665 # dependencies.
14666 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"'
14667 ;;
14668 *)
14669 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14670 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14671 case $host in
14672 osf3*)
14673 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'
14674 ;;
14675 *)
14676 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'
14677 ;;
14678 esac
14679
14680 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14681 hardcode_libdir_separator_CXX=:
14682
14683 # Commands to make compiler produce verbose output that lists
14684 # what "hidden" libraries, object files and flags are used when
14685 # linking a shared library.
14686 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14687
14688 else
14689 # FIXME: insert proper C++ library support
14690 ld_shlibs_CXX=no
14691 fi
14692 ;;
14693 esac
14694 ;;
14695
14696 psos*)
14697 # FIXME: insert proper C++ library support
14698 ld_shlibs_CXX=no
14699 ;;
14700
14701 sunos4*)
14702 case $cc_basename in
14703 CC*)
14704 # Sun C++ 4.x
14705 # FIXME: insert proper C++ library support
14706 ld_shlibs_CXX=no
14707 ;;
14708 lcc*)
14709 # Lucid
14710 # FIXME: insert proper C++ library support
14711 ld_shlibs_CXX=no
14712 ;;
14713 *)
14714 # FIXME: insert proper C++ library support
14715 ld_shlibs_CXX=no
14716 ;;
14717 esac
14718 ;;
14719
14720 solaris*)
14721 case $cc_basename in
14722 CC*)
14723 # Sun C++ 4.2, 5.x and Centerline C++
14724 archive_cmds_need_lc_CXX=yes
14725 no_undefined_flag_CXX=' -zdefs'
14726 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14727 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14728 $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'
14729
14730 hardcode_libdir_flag_spec_CXX='-R$libdir'
14731 hardcode_shlibpath_var_CXX=no
14732 case $host_os in
14733 solaris2.[0-5] | solaris2.[0-5].*) ;;
14734 *)
14735 # The compiler driver will combine and reorder linker options,
14736 # but understands `-z linker_flag'.
14737 # Supported since Solaris 2.6 (maybe 2.5.1?)
14738 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14739 ;;
14740 esac
14741 link_all_deplibs_CXX=yes
14742
14743 output_verbose_link_cmd='func_echo_all'
14744
14745 # Archives containing C++ object files must be created using
14746 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14747 # necessary to make sure instantiated templates are included
14748 # in the archive.
14749 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14750 ;;
14751 gcx*)
14752 # Green Hills C++ Compiler
14753 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14754
14755 # The C++ compiler must be used to create the archive.
14756 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14757 ;;
14758 *)
14759 # GNU C++ compiler with Solaris linker
14760 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14761 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14762 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14763 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14764 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14765 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14766
14767 # Commands to make compiler produce verbose output that lists
14768 # what "hidden" libraries, object files and flags are used when
14769 # linking a shared library.
14770 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14771 else
14772 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14773 # platform.
14774 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14775 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14776 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14777
14778 # Commands to make compiler produce verbose output that lists
14779 # what "hidden" libraries, object files and flags are used when
14780 # linking a shared library.
14781 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14782 fi
14783
14784 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14785 case $host_os in
14786 solaris2.[0-5] | solaris2.[0-5].*) ;;
14787 *)
14788 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14789 ;;
14790 esac
14791 fi
14792 ;;
14793 esac
14794 ;;
14795
14796 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14797 no_undefined_flag_CXX='${wl}-z,text'
14798 archive_cmds_need_lc_CXX=no
14799 hardcode_shlibpath_var_CXX=no
14800 runpath_var='LD_RUN_PATH'
14801
14802 case $cc_basename in
14803 CC*)
14804 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14805 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14806 ;;
14807 *)
14808 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14809 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14810 ;;
14811 esac
14812 ;;
14813
14814 sysv5* | sco3.2v5* | sco5v6*)
14815 # Note: We can NOT use -z defs as we might desire, because we do not
14816 # link with -lc, and that would cause any symbols used from libc to
14817 # always be unresolved, which means just about no library would
14818 # ever link correctly. If we're not using GNU ld we use -z text
14819 # though, which does catch some bad symbols but isn't as heavy-handed
14820 # as -z defs.
14821 no_undefined_flag_CXX='${wl}-z,text'
14822 allow_undefined_flag_CXX='${wl}-z,nodefs'
14823 archive_cmds_need_lc_CXX=no
14824 hardcode_shlibpath_var_CXX=no
14825 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14826 hardcode_libdir_separator_CXX=':'
14827 link_all_deplibs_CXX=yes
14828 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14829 runpath_var='LD_RUN_PATH'
14830
14831 case $cc_basename in
14832 CC*)
14833 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14834 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14835 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14836 '"$old_archive_cmds_CXX"
14837 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14838 '"$reload_cmds_CXX"
14839 ;;
14840 *)
14841 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14842 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14843 ;;
14844 esac
14845 ;;
14846
14847 tandem*)
14848 case $cc_basename in
14849 NCC*)
14850 # NonStop-UX NCC 3.20
14851 # FIXME: insert proper C++ library support
14852 ld_shlibs_CXX=no
14853 ;;
14854 *)
14855 # FIXME: insert proper C++ library support
14856 ld_shlibs_CXX=no
14857 ;;
14858 esac
14859 ;;
14860
14861 vxworks*)
14862 # FIXME: insert proper C++ library support
14863 ld_shlibs_CXX=no
14864 ;;
14865
14866 *)
14867 # FIXME: insert proper C++ library support
14868 ld_shlibs_CXX=no
14869 ;;
14870 esac
14871
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14873 $as_echo "$ld_shlibs_CXX" >&6; }
14874 test "$ld_shlibs_CXX" = no && can_build_shared=no
14875
14876 GCC_CXX="$GXX"
14877 LD_CXX="$LD"
14878
14879 ## CAVEAT EMPTOR:
14880 ## There is no encapsulation within the following macros, do not change
14881 ## the running order or otherwise move them around unless you know exactly
14882 ## what you are doing...
14883 # Dependencies to place before and after the object being linked:
14884 predep_objects_CXX=
14885 postdep_objects_CXX=
14886 predeps_CXX=
14887 postdeps_CXX=
14888 compiler_lib_search_path_CXX=
14889
14890 cat > conftest.$ac_ext <<_LT_EOF
14891 class Foo
14892 {
14893 public:
14894 Foo (void) { a = 0; }
14895 private:
14896 int a;
14897 };
14898 _LT_EOF
14899
14900 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14901 (eval $ac_compile) 2>&5
14902 ac_status=$?
14903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14904 test $ac_status = 0; }; then
14905 # Parse the compiler output and extract the necessary
14906 # objects, libraries and library flags.
14907
14908 # Sentinel used to keep track of whether or not we are before
14909 # the conftest object file.
14910 pre_test_object_deps_done=no
14911
14912 for p in `eval "$output_verbose_link_cmd"`; do
14913 case $p in
14914
14915 -L* | -R* | -l*)
14916 # Some compilers place space between "-{L,R}" and the path.
14917 # Remove the space.
14918 if test $p = "-L" ||
14919 test $p = "-R"; then
14920 prev=$p
14921 continue
14922 else
14923 prev=
14924 fi
14925
14926 if test "$pre_test_object_deps_done" = no; then
14927 case $p in
14928 -L* | -R*)
14929 # Internal compiler library paths should come after those
14930 # provided the user. The postdeps already come after the
14931 # user supplied libs so there is no need to process them.
14932 if test -z "$compiler_lib_search_path_CXX"; then
14933 compiler_lib_search_path_CXX="${prev}${p}"
14934 else
14935 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14936 fi
14937 ;;
14938 # The "-l" case would never come before the object being
14939 # linked, so don't bother handling this case.
14940 esac
14941 else
14942 if test -z "$postdeps_CXX"; then
14943 postdeps_CXX="${prev}${p}"
14944 else
14945 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14946 fi
14947 fi
14948 ;;
14949
14950 *.$objext)
14951 # This assumes that the test object file only shows up
14952 # once in the compiler output.
14953 if test "$p" = "conftest.$objext"; then
14954 pre_test_object_deps_done=yes
14955 continue
14956 fi
14957
14958 if test "$pre_test_object_deps_done" = no; then
14959 if test -z "$predep_objects_CXX"; then
14960 predep_objects_CXX="$p"
14961 else
14962 predep_objects_CXX="$predep_objects_CXX $p"
14963 fi
14964 else
14965 if test -z "$postdep_objects_CXX"; then
14966 postdep_objects_CXX="$p"
14967 else
14968 postdep_objects_CXX="$postdep_objects_CXX $p"
14969 fi
14970 fi
14971 ;;
14972
14973 *) ;; # Ignore the rest.
14974
14975 esac
14976 done
14977
14978 # Clean up.
14979 rm -f a.out a.exe
14980 else
14981 echo "libtool.m4: error: problem compiling CXX test program"
14982 fi
14983
14984 $RM -f confest.$objext
14985
14986 # PORTME: override above test on systems where it is broken
14987 case $host_os in
14988 interix[3-9]*)
14989 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14990 # hack all around it, let's just trust "g++" to DTRT.
14991 predep_objects_CXX=
14992 postdep_objects_CXX=
14993 postdeps_CXX=
14994 ;;
14995
14996 linux*)
14997 case `$CC -V 2>&1 | sed 5q` in
14998 *Sun\ C*)
14999 # Sun C++ 5.9
15000
15001 # The more standards-conforming stlport4 library is
15002 # incompatible with the Cstd library. Avoid specifying
15003 # it if it's in CXXFLAGS. Ignore libCrun as
15004 # -library=stlport4 depends on it.
15005 case " $CXX $CXXFLAGS " in
15006 *" -library=stlport4 "*)
15007 solaris_use_stlport4=yes
15008 ;;
15009 esac
15010
15011 if test "$solaris_use_stlport4" != yes; then
15012 postdeps_CXX='-library=Cstd -library=Crun'
15013 fi
15014 ;;
15015 esac
15016 ;;
15017
15018 solaris*)
15019 case $cc_basename in
15020 CC*)
15021 # The more standards-conforming stlport4 library is
15022 # incompatible with the Cstd library. Avoid specifying
15023 # it if it's in CXXFLAGS. Ignore libCrun as
15024 # -library=stlport4 depends on it.
15025 case " $CXX $CXXFLAGS " in
15026 *" -library=stlport4 "*)
15027 solaris_use_stlport4=yes
15028 ;;
15029 esac
15030
15031 # Adding this requires a known-good setup of shared libraries for
15032 # Sun compiler versions before 5.6, else PIC objects from an old
15033 # archive will be linked into the output, leading to subtle bugs.
15034 if test "$solaris_use_stlport4" != yes; then
15035 postdeps_CXX='-library=Cstd -library=Crun'
15036 fi
15037 ;;
15038 esac
15039 ;;
15040 esac
15041
15042
15043 case " $postdeps_CXX " in
15044 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15045 esac
15046 compiler_lib_search_dirs_CXX=
15047 if test -n "${compiler_lib_search_path_CXX}"; then
15048 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15049 fi
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081 lt_prog_compiler_wl_CXX=
15082 lt_prog_compiler_pic_CXX=
15083 lt_prog_compiler_static_CXX=
15084
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15086 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15087
15088 # C++ specific cases for pic, static, wl, etc.
15089 if test "$GXX" = yes; then
15090 lt_prog_compiler_wl_CXX='-Wl,'
15091 lt_prog_compiler_static_CXX='-static'
15092
15093 case $host_os in
15094 aix*)
15095 # All AIX code is PIC.
15096 if test "$host_cpu" = ia64; then
15097 # AIX 5 now supports IA64 processor
15098 lt_prog_compiler_static_CXX='-Bstatic'
15099 fi
15100 ;;
15101
15102 amigaos*)
15103 case $host_cpu in
15104 powerpc)
15105 # see comment about AmigaOS4 .so support
15106 lt_prog_compiler_pic_CXX='-fPIC'
15107 ;;
15108 m68k)
15109 # FIXME: we need at least 68020 code to build shared libraries, but
15110 # adding the `-m68020' flag to GCC prevents building anything better,
15111 # like `-m68040'.
15112 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15113 ;;
15114 esac
15115 ;;
15116
15117 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15118 # PIC is the default for these OSes.
15119 ;;
15120 mingw* | cygwin* | os2* | pw32* | cegcc*)
15121 # This hack is so that the source file can tell whether it is being
15122 # built for inclusion in a dll (and should export symbols for example).
15123 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15124 # (--disable-auto-import) libraries
15125 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15126 ;;
15127 darwin* | rhapsody*)
15128 # PIC is the default on this platform
15129 # Common symbols not allowed in MH_DYLIB files
15130 lt_prog_compiler_pic_CXX='-fno-common'
15131 ;;
15132 *djgpp*)
15133 # DJGPP does not support shared libraries at all
15134 lt_prog_compiler_pic_CXX=
15135 ;;
15136 haiku*)
15137 # PIC is the default for Haiku.
15138 # The "-static" flag exists, but is broken.
15139 lt_prog_compiler_static_CXX=
15140 ;;
15141 interix[3-9]*)
15142 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15143 # Instead, we relocate shared libraries at runtime.
15144 ;;
15145 sysv4*MP*)
15146 if test -d /usr/nec; then
15147 lt_prog_compiler_pic_CXX=-Kconform_pic
15148 fi
15149 ;;
15150 hpux*)
15151 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15152 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15153 # sets the default TLS model and affects inlining.
15154 case $host_cpu in
15155 hppa*64*)
15156 ;;
15157 *)
15158 lt_prog_compiler_pic_CXX='-fPIC'
15159 ;;
15160 esac
15161 ;;
15162 *qnx* | *nto*)
15163 # QNX uses GNU C++, but need to define -shared option too, otherwise
15164 # it will coredump.
15165 lt_prog_compiler_pic_CXX='-fPIC -shared'
15166 ;;
15167 *)
15168 lt_prog_compiler_pic_CXX='-fPIC'
15169 ;;
15170 esac
15171 else
15172 case $host_os in
15173 aix[4-9]*)
15174 # All AIX code is PIC.
15175 if test "$host_cpu" = ia64; then
15176 # AIX 5 now supports IA64 processor
15177 lt_prog_compiler_static_CXX='-Bstatic'
15178 else
15179 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15180 fi
15181 ;;
15182 chorus*)
15183 case $cc_basename in
15184 cxch68*)
15185 # Green Hills C++ Compiler
15186 # _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"
15187 ;;
15188 esac
15189 ;;
15190 dgux*)
15191 case $cc_basename in
15192 ec++*)
15193 lt_prog_compiler_pic_CXX='-KPIC'
15194 ;;
15195 ghcx*)
15196 # Green Hills C++ Compiler
15197 lt_prog_compiler_pic_CXX='-pic'
15198 ;;
15199 *)
15200 ;;
15201 esac
15202 ;;
15203 freebsd* | dragonfly*)
15204 # FreeBSD uses GNU C++
15205 ;;
15206 hpux9* | hpux10* | hpux11*)
15207 case $cc_basename in
15208 CC*)
15209 lt_prog_compiler_wl_CXX='-Wl,'
15210 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15211 if test "$host_cpu" != ia64; then
15212 lt_prog_compiler_pic_CXX='+Z'
15213 fi
15214 ;;
15215 aCC*)
15216 lt_prog_compiler_wl_CXX='-Wl,'
15217 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15218 case $host_cpu in
15219 hppa*64*|ia64*)
15220 # +Z the default
15221 ;;
15222 *)
15223 lt_prog_compiler_pic_CXX='+Z'
15224 ;;
15225 esac
15226 ;;
15227 *)
15228 ;;
15229 esac
15230 ;;
15231 interix*)
15232 # This is c89, which is MS Visual C++ (no shared libs)
15233 # Anyone wants to do a port?
15234 ;;
15235 irix5* | irix6* | nonstopux*)
15236 case $cc_basename in
15237 CC*)
15238 lt_prog_compiler_wl_CXX='-Wl,'
15239 lt_prog_compiler_static_CXX='-non_shared'
15240 # CC pic flag -KPIC is the default.
15241 ;;
15242 *)
15243 ;;
15244 esac
15245 ;;
15246 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15247 case $cc_basename in
15248 KCC*)
15249 # KAI C++ Compiler
15250 lt_prog_compiler_wl_CXX='--backend -Wl,'
15251 lt_prog_compiler_pic_CXX='-fPIC'
15252 ;;
15253 ecpc* )
15254 # old Intel C++ for x86_64 which still supported -KPIC.
15255 lt_prog_compiler_wl_CXX='-Wl,'
15256 lt_prog_compiler_pic_CXX='-KPIC'
15257 lt_prog_compiler_static_CXX='-static'
15258 ;;
15259 icpc* )
15260 # Intel C++, used to be incompatible with GCC.
15261 # ICC 10 doesn't accept -KPIC any more.
15262 lt_prog_compiler_wl_CXX='-Wl,'
15263 lt_prog_compiler_pic_CXX='-fPIC'
15264 lt_prog_compiler_static_CXX='-static'
15265 ;;
15266 pgCC* | pgcpp*)
15267 # Portland Group C++ compiler
15268 lt_prog_compiler_wl_CXX='-Wl,'
15269 lt_prog_compiler_pic_CXX='-fpic'
15270 lt_prog_compiler_static_CXX='-Bstatic'
15271 ;;
15272 cxx*)
15273 # Compaq C++
15274 # Make sure the PIC flag is empty. It appears that all Alpha
15275 # Linux and Compaq Tru64 Unix objects are PIC.
15276 lt_prog_compiler_pic_CXX=
15277 lt_prog_compiler_static_CXX='-non_shared'
15278 ;;
15279 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15280 # IBM XL 8.0, 9.0 on PPC and BlueGene
15281 lt_prog_compiler_wl_CXX='-Wl,'
15282 lt_prog_compiler_pic_CXX='-qpic'
15283 lt_prog_compiler_static_CXX='-qstaticlink'
15284 ;;
15285 *)
15286 case `$CC -V 2>&1 | sed 5q` in
15287 *Sun\ C*)
15288 # Sun C++ 5.9
15289 lt_prog_compiler_pic_CXX='-KPIC'
15290 lt_prog_compiler_static_CXX='-Bstatic'
15291 lt_prog_compiler_wl_CXX='-Qoption ld '
15292 ;;
15293 esac
15294 ;;
15295 esac
15296 ;;
15297 lynxos*)
15298 ;;
15299 m88k*)
15300 ;;
15301 mvs*)
15302 case $cc_basename in
15303 cxx*)
15304 lt_prog_compiler_pic_CXX='-W c,exportall'
15305 ;;
15306 *)
15307 ;;
15308 esac
15309 ;;
15310 netbsd*)
15311 ;;
15312 *qnx* | *nto*)
15313 # QNX uses GNU C++, but need to define -shared option too, otherwise
15314 # it will coredump.
15315 lt_prog_compiler_pic_CXX='-fPIC -shared'
15316 ;;
15317 osf3* | osf4* | osf5*)
15318 case $cc_basename in
15319 KCC*)
15320 lt_prog_compiler_wl_CXX='--backend -Wl,'
15321 ;;
15322 RCC*)
15323 # Rational C++ 2.4.1
15324 lt_prog_compiler_pic_CXX='-pic'
15325 ;;
15326 cxx*)
15327 # Digital/Compaq C++
15328 lt_prog_compiler_wl_CXX='-Wl,'
15329 # Make sure the PIC flag is empty. It appears that all Alpha
15330 # Linux and Compaq Tru64 Unix objects are PIC.
15331 lt_prog_compiler_pic_CXX=
15332 lt_prog_compiler_static_CXX='-non_shared'
15333 ;;
15334 *)
15335 ;;
15336 esac
15337 ;;
15338 psos*)
15339 ;;
15340 solaris*)
15341 case $cc_basename in
15342 CC*)
15343 # Sun C++ 4.2, 5.x and Centerline C++
15344 lt_prog_compiler_pic_CXX='-KPIC'
15345 lt_prog_compiler_static_CXX='-Bstatic'
15346 lt_prog_compiler_wl_CXX='-Qoption ld '
15347 ;;
15348 gcx*)
15349 # Green Hills C++ Compiler
15350 lt_prog_compiler_pic_CXX='-PIC'
15351 ;;
15352 *)
15353 ;;
15354 esac
15355 ;;
15356 sunos4*)
15357 case $cc_basename in
15358 CC*)
15359 # Sun C++ 4.x
15360 lt_prog_compiler_pic_CXX='-pic'
15361 lt_prog_compiler_static_CXX='-Bstatic'
15362 ;;
15363 lcc*)
15364 # Lucid
15365 lt_prog_compiler_pic_CXX='-pic'
15366 ;;
15367 *)
15368 ;;
15369 esac
15370 ;;
15371 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15372 case $cc_basename in
15373 CC*)
15374 lt_prog_compiler_wl_CXX='-Wl,'
15375 lt_prog_compiler_pic_CXX='-KPIC'
15376 lt_prog_compiler_static_CXX='-Bstatic'
15377 ;;
15378 esac
15379 ;;
15380 tandem*)
15381 case $cc_basename in
15382 NCC*)
15383 # NonStop-UX NCC 3.20
15384 lt_prog_compiler_pic_CXX='-KPIC'
15385 ;;
15386 *)
15387 ;;
15388 esac
15389 ;;
15390 vxworks*)
15391 ;;
15392 *)
15393 lt_prog_compiler_can_build_shared_CXX=no
15394 ;;
15395 esac
15396 fi
15397
15398 case $host_os in
15399 # For platforms which do not support PIC, -DPIC is meaningless:
15400 *djgpp*)
15401 lt_prog_compiler_pic_CXX=
15402 ;;
15403 *)
15404 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15405 ;;
15406 esac
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15408 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15409
15410
15411
15412 #
15413 # Check to make sure the PIC flag actually works.
15414 #
15415 if test -n "$lt_prog_compiler_pic_CXX"; then
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15417 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15418 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15419 $as_echo_n "(cached) " >&6
15420 else
15421 lt_cv_prog_compiler_pic_works_CXX=no
15422 ac_outfile=conftest.$ac_objext
15423 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15424 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15425 # Insert the option either (1) after the last *FLAGS variable, or
15426 # (2) before a word containing "conftest.", or (3) at the end.
15427 # Note that $ac_compile itself does not contain backslashes and begins
15428 # with a dollar sign (not a hyphen), so the echo should work correctly.
15429 # The option is referenced via a variable to avoid confusing sed.
15430 lt_compile=`echo "$ac_compile" | $SED \
15431 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15433 -e 's:$: $lt_compiler_flag:'`
15434 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15435 (eval "$lt_compile" 2>conftest.err)
15436 ac_status=$?
15437 cat conftest.err >&5
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 if (exit $ac_status) && test -s "$ac_outfile"; then
15440 # The compiler can only warn and ignore the option if not recognized
15441 # So say no if there are warnings other than the usual output.
15442 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15443 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15444 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15445 lt_cv_prog_compiler_pic_works_CXX=yes
15446 fi
15447 fi
15448 $RM conftest*
15449
15450 fi
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15452 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15453
15454 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15455 case $lt_prog_compiler_pic_CXX in
15456 "" | " "*) ;;
15457 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15458 esac
15459 else
15460 lt_prog_compiler_pic_CXX=
15461 lt_prog_compiler_can_build_shared_CXX=no
15462 fi
15463
15464 fi
15465
15466
15467
15468 #
15469 # Check to make sure the static flag actually works.
15470 #
15471 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15473 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15474 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15475 $as_echo_n "(cached) " >&6
15476 else
15477 lt_cv_prog_compiler_static_works_CXX=no
15478 save_LDFLAGS="$LDFLAGS"
15479 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15480 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15481 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15482 # The linker can only warn and ignore the option if not recognized
15483 # So say no if there are warnings
15484 if test -s conftest.err; then
15485 # Append any errors to the config.log.
15486 cat conftest.err 1>&5
15487 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15488 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15489 if diff conftest.exp conftest.er2 >/dev/null; then
15490 lt_cv_prog_compiler_static_works_CXX=yes
15491 fi
15492 else
15493 lt_cv_prog_compiler_static_works_CXX=yes
15494 fi
15495 fi
15496 $RM -r conftest*
15497 LDFLAGS="$save_LDFLAGS"
15498
15499 fi
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15501 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15502
15503 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15504 :
15505 else
15506 lt_prog_compiler_static_CXX=
15507 fi
15508
15509
15510
15511
15512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15513 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15514 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15515 $as_echo_n "(cached) " >&6
15516 else
15517 lt_cv_prog_compiler_c_o_CXX=no
15518 $RM -r conftest 2>/dev/null
15519 mkdir conftest
15520 cd conftest
15521 mkdir out
15522 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15523
15524 lt_compiler_flag="-o out/conftest2.$ac_objext"
15525 # Insert the option either (1) after the last *FLAGS variable, or
15526 # (2) before a word containing "conftest.", or (3) at the end.
15527 # Note that $ac_compile itself does not contain backslashes and begins
15528 # with a dollar sign (not a hyphen), so the echo should work correctly.
15529 lt_compile=`echo "$ac_compile" | $SED \
15530 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15531 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15532 -e 's:$: $lt_compiler_flag:'`
15533 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15534 (eval "$lt_compile" 2>out/conftest.err)
15535 ac_status=$?
15536 cat out/conftest.err >&5
15537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15539 then
15540 # The compiler can only warn and ignore the option if not recognized
15541 # So say no if there are warnings
15542 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15543 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15544 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15545 lt_cv_prog_compiler_c_o_CXX=yes
15546 fi
15547 fi
15548 chmod u+w . 2>&5
15549 $RM conftest*
15550 # SGI C++ compiler will create directory out/ii_files/ for
15551 # template instantiation
15552 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15553 $RM out/* && rmdir out
15554 cd ..
15555 $RM -r conftest
15556 $RM conftest*
15557
15558 fi
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15560 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15561
15562
15563
15564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15565 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15566 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15567 $as_echo_n "(cached) " >&6
15568 else
15569 lt_cv_prog_compiler_c_o_CXX=no
15570 $RM -r conftest 2>/dev/null
15571 mkdir conftest
15572 cd conftest
15573 mkdir out
15574 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15575
15576 lt_compiler_flag="-o out/conftest2.$ac_objext"
15577 # Insert the option either (1) after the last *FLAGS variable, or
15578 # (2) before a word containing "conftest.", or (3) at the end.
15579 # Note that $ac_compile itself does not contain backslashes and begins
15580 # with a dollar sign (not a hyphen), so the echo should work correctly.
15581 lt_compile=`echo "$ac_compile" | $SED \
15582 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15583 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15584 -e 's:$: $lt_compiler_flag:'`
15585 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15586 (eval "$lt_compile" 2>out/conftest.err)
15587 ac_status=$?
15588 cat out/conftest.err >&5
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15591 then
15592 # The compiler can only warn and ignore the option if not recognized
15593 # So say no if there are warnings
15594 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15595 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15596 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15597 lt_cv_prog_compiler_c_o_CXX=yes
15598 fi
15599 fi
15600 chmod u+w . 2>&5
15601 $RM conftest*
15602 # SGI C++ compiler will create directory out/ii_files/ for
15603 # template instantiation
15604 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15605 $RM out/* && rmdir out
15606 cd ..
15607 $RM -r conftest
15608 $RM conftest*
15609
15610 fi
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15612 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15613
15614
15615
15616
15617 hard_links="nottested"
15618 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15619 # do not overwrite the value of need_locks provided by the user
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15621 $as_echo_n "checking if we can lock with hard links... " >&6; }
15622 hard_links=yes
15623 $RM conftest*
15624 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15625 touch conftest.a
15626 ln conftest.a conftest.b 2>&5 || hard_links=no
15627 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15629 $as_echo "$hard_links" >&6; }
15630 if test "$hard_links" = no; then
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15632 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15633 need_locks=warn
15634 fi
15635 else
15636 need_locks=no
15637 fi
15638
15639
15640
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15642 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15643
15644 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15645 case $host_os in
15646 aix[4-9]*)
15647 # If we're using GNU nm, then we don't want the "-C" option.
15648 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15649 # Also, AIX nm treats weak defined symbols like other global defined
15650 # symbols, whereas GNU nm marks them as "W".
15651 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15652 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'
15653 else
15654 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'
15655 fi
15656 ;;
15657 pw32*)
15658 export_symbols_cmds_CXX="$ltdll_cmds"
15659 ;;
15660 cygwin* | mingw* | cegcc*)
15661 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'
15662 ;;
15663 *)
15664 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15665 ;;
15666 esac
15667 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15668
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15670 $as_echo "$ld_shlibs_CXX" >&6; }
15671 test "$ld_shlibs_CXX" = no && can_build_shared=no
15672
15673 with_gnu_ld_CXX=$with_gnu_ld
15674
15675
15676
15677
15678
15679
15680 #
15681 # Do we need to explicitly link libc?
15682 #
15683 case "x$archive_cmds_need_lc_CXX" in
15684 x|xyes)
15685 # Assume -lc should be added
15686 archive_cmds_need_lc_CXX=yes
15687
15688 if test "$enable_shared" = yes && test "$GCC" = yes; then
15689 case $archive_cmds_CXX in
15690 *'~'*)
15691 # FIXME: we may have to deal with multi-command sequences.
15692 ;;
15693 '$CC '*)
15694 # Test whether the compiler implicitly links with -lc since on some
15695 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15696 # to ld, don't add -lc before -lgcc.
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15698 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15699 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
15700 $as_echo_n "(cached) " >&6
15701 else
15702 $RM conftest*
15703 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15704
15705 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15706 (eval $ac_compile) 2>&5
15707 ac_status=$?
15708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15709 test $ac_status = 0; } 2>conftest.err; then
15710 soname=conftest
15711 lib=conftest
15712 libobjs=conftest.$ac_objext
15713 deplibs=
15714 wl=$lt_prog_compiler_wl_CXX
15715 pic_flag=$lt_prog_compiler_pic_CXX
15716 compiler_flags=-v
15717 linker_flags=-v
15718 verstring=
15719 output_objdir=.
15720 libname=conftest
15721 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15722 allow_undefined_flag_CXX=
15723 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15724 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15725 ac_status=$?
15726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15727 test $ac_status = 0; }
15728 then
15729 lt_cv_archive_cmds_need_lc_CXX=no
15730 else
15731 lt_cv_archive_cmds_need_lc_CXX=yes
15732 fi
15733 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15734 else
15735 cat conftest.err 1>&5
15736 fi
15737 $RM conftest*
15738
15739 fi
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15741 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15742 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15743 ;;
15744 esac
15745 fi
15746 ;;
15747 esac
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15813 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15814
15815 library_names_spec=
15816 libname_spec='lib$name'
15817 soname_spec=
15818 shrext_cmds=".so"
15819 postinstall_cmds=
15820 postuninstall_cmds=
15821 finish_cmds=
15822 finish_eval=
15823 shlibpath_var=
15824 shlibpath_overrides_runpath=unknown
15825 version_type=none
15826 dynamic_linker="$host_os ld.so"
15827 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15828 need_lib_prefix=unknown
15829 hardcode_into_libs=no
15830
15831 # when you set need_version to no, make sure it does not cause -set_version
15832 # flags to be left without arguments
15833 need_version=unknown
15834
15835 case $host_os in
15836 aix3*)
15837 version_type=linux
15838 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15839 shlibpath_var=LIBPATH
15840
15841 # AIX 3 has no versioning support, so we append a major version to the name.
15842 soname_spec='${libname}${release}${shared_ext}$major'
15843 ;;
15844
15845 aix[4-9]*)
15846 version_type=linux
15847 need_lib_prefix=no
15848 need_version=no
15849 hardcode_into_libs=yes
15850 if test "$host_cpu" = ia64; then
15851 # AIX 5 supports IA64
15852 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15853 shlibpath_var=LD_LIBRARY_PATH
15854 else
15855 # With GCC up to 2.95.x, collect2 would create an import file
15856 # for dependence libraries. The import file would start with
15857 # the line `#! .'. This would cause the generated library to
15858 # depend on `.', always an invalid library. This was fixed in
15859 # development snapshots of GCC prior to 3.0.
15860 case $host_os in
15861 aix4 | aix4.[01] | aix4.[01].*)
15862 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15863 echo ' yes '
15864 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15865 :
15866 else
15867 can_build_shared=no
15868 fi
15869 ;;
15870 esac
15871 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15872 # soname into executable. Probably we can add versioning support to
15873 # collect2, so additional links can be useful in future.
15874 if test "$aix_use_runtimelinking" = yes; then
15875 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15876 # instead of lib<name>.a to let people know that these are not
15877 # typical AIX shared libraries.
15878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15879 else
15880 # We preserve .a as extension for shared libraries through AIX4.2
15881 # and later when we are not doing run time linking.
15882 library_names_spec='${libname}${release}.a $libname.a'
15883 soname_spec='${libname}${release}${shared_ext}$major'
15884 fi
15885 shlibpath_var=LIBPATH
15886 fi
15887 ;;
15888
15889 amigaos*)
15890 case $host_cpu in
15891 powerpc)
15892 # Since July 2007 AmigaOS4 officially supports .so libraries.
15893 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15895 ;;
15896 m68k)
15897 library_names_spec='$libname.ixlibrary $libname.a'
15898 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15899 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'
15900 ;;
15901 esac
15902 ;;
15903
15904 beos*)
15905 library_names_spec='${libname}${shared_ext}'
15906 dynamic_linker="$host_os ld.so"
15907 shlibpath_var=LIBRARY_PATH
15908 ;;
15909
15910 bsdi[45]*)
15911 version_type=linux
15912 need_version=no
15913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15914 soname_spec='${libname}${release}${shared_ext}$major'
15915 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15916 shlibpath_var=LD_LIBRARY_PATH
15917 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15918 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15919 # the default ld.so.conf also contains /usr/contrib/lib and
15920 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15921 # libtool to hard-code these into programs
15922 ;;
15923
15924 cygwin* | mingw* | pw32* | cegcc*)
15925 version_type=windows
15926 shrext_cmds=".dll"
15927 need_version=no
15928 need_lib_prefix=no
15929
15930 case $GCC,$host_os in
15931 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15932 library_names_spec='$libname.dll.a'
15933 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15934 postinstall_cmds='base_file=`basename \${file}`~
15935 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15936 dldir=$destdir/`dirname \$dlpath`~
15937 test -d \$dldir || mkdir -p \$dldir~
15938 $install_prog $dir/$dlname \$dldir/$dlname~
15939 chmod a+x \$dldir/$dlname~
15940 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15941 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15942 fi'
15943 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15944 dlpath=$dir/\$dldll~
15945 $RM \$dlpath'
15946 shlibpath_overrides_runpath=yes
15947
15948 case $host_os in
15949 cygwin*)
15950 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15951 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15952
15953 ;;
15954 mingw* | cegcc*)
15955 # MinGW DLLs use traditional 'lib' prefix
15956 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15957 ;;
15958 pw32*)
15959 # pw32 DLLs use 'pw' prefix rather than 'lib'
15960 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15961 ;;
15962 esac
15963 ;;
15964
15965 *)
15966 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15967 ;;
15968 esac
15969 dynamic_linker='Win32 ld.exe'
15970 # FIXME: first we should search . and the directory the executable is in
15971 shlibpath_var=PATH
15972 ;;
15973
15974 darwin* | rhapsody*)
15975 dynamic_linker="$host_os dyld"
15976 version_type=darwin
15977 need_lib_prefix=no
15978 need_version=no
15979 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15980 soname_spec='${libname}${release}${major}$shared_ext'
15981 shlibpath_overrides_runpath=yes
15982 shlibpath_var=DYLD_LIBRARY_PATH
15983 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15984
15985 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15986 ;;
15987
15988 dgux*)
15989 version_type=linux
15990 need_lib_prefix=no
15991 need_version=no
15992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15993 soname_spec='${libname}${release}${shared_ext}$major'
15994 shlibpath_var=LD_LIBRARY_PATH
15995 ;;
15996
15997 freebsd1*)
15998 dynamic_linker=no
15999 ;;
16000
16001 freebsd* | dragonfly*)
16002 # DragonFly does not have aout. When/if they implement a new
16003 # versioning mechanism, adjust this.
16004 if test -x /usr/bin/objformat; then
16005 objformat=`/usr/bin/objformat`
16006 else
16007 case $host_os in
16008 freebsd[123]*) objformat=aout ;;
16009 *) objformat=elf ;;
16010 esac
16011 fi
16012 version_type=freebsd-$objformat
16013 case $version_type in
16014 freebsd-elf*)
16015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16016 need_version=no
16017 need_lib_prefix=no
16018 ;;
16019 freebsd-*)
16020 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16021 need_version=yes
16022 ;;
16023 esac
16024 shlibpath_var=LD_LIBRARY_PATH
16025 case $host_os in
16026 freebsd2*)
16027 shlibpath_overrides_runpath=yes
16028 ;;
16029 freebsd3.[01]* | freebsdelf3.[01]*)
16030 shlibpath_overrides_runpath=yes
16031 hardcode_into_libs=yes
16032 ;;
16033 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16034 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16035 shlibpath_overrides_runpath=no
16036 hardcode_into_libs=yes
16037 ;;
16038 *) # from 4.6 on, and DragonFly
16039 shlibpath_overrides_runpath=yes
16040 hardcode_into_libs=yes
16041 ;;
16042 esac
16043 ;;
16044
16045 gnu*)
16046 version_type=linux
16047 need_lib_prefix=no
16048 need_version=no
16049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16050 soname_spec='${libname}${release}${shared_ext}$major'
16051 shlibpath_var=LD_LIBRARY_PATH
16052 hardcode_into_libs=yes
16053 ;;
16054
16055 haiku*)
16056 version_type=linux
16057 need_lib_prefix=no
16058 need_version=no
16059 dynamic_linker="$host_os runtime_loader"
16060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16061 soname_spec='${libname}${release}${shared_ext}$major'
16062 shlibpath_var=LIBRARY_PATH
16063 shlibpath_overrides_runpath=yes
16064 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16065 hardcode_into_libs=yes
16066 ;;
16067
16068 hpux9* | hpux10* | hpux11*)
16069 # Give a soname corresponding to the major version so that dld.sl refuses to
16070 # link against other versions.
16071 version_type=sunos
16072 need_lib_prefix=no
16073 need_version=no
16074 case $host_cpu in
16075 ia64*)
16076 shrext_cmds='.so'
16077 hardcode_into_libs=yes
16078 dynamic_linker="$host_os dld.so"
16079 shlibpath_var=LD_LIBRARY_PATH
16080 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16082 soname_spec='${libname}${release}${shared_ext}$major'
16083 if test "X$HPUX_IA64_MODE" = X32; then
16084 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16085 else
16086 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16087 fi
16088 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16089 ;;
16090 hppa*64*)
16091 shrext_cmds='.sl'
16092 hardcode_into_libs=yes
16093 dynamic_linker="$host_os dld.sl"
16094 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16095 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16097 soname_spec='${libname}${release}${shared_ext}$major'
16098 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16099 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16100 ;;
16101 *)
16102 shrext_cmds='.sl'
16103 dynamic_linker="$host_os dld.sl"
16104 shlibpath_var=SHLIB_PATH
16105 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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 ;;
16109 esac
16110 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16111 postinstall_cmds='chmod 555 $lib'
16112 # or fails outright, so override atomically:
16113 install_override_mode=555
16114 ;;
16115
16116 interix[3-9]*)
16117 version_type=linux
16118 need_lib_prefix=no
16119 need_version=no
16120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16121 soname_spec='${libname}${release}${shared_ext}$major'
16122 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16123 shlibpath_var=LD_LIBRARY_PATH
16124 shlibpath_overrides_runpath=no
16125 hardcode_into_libs=yes
16126 ;;
16127
16128 irix5* | irix6* | nonstopux*)
16129 case $host_os in
16130 nonstopux*) version_type=nonstopux ;;
16131 *)
16132 if test "$lt_cv_prog_gnu_ld" = yes; then
16133 version_type=linux
16134 else
16135 version_type=irix
16136 fi ;;
16137 esac
16138 need_lib_prefix=no
16139 need_version=no
16140 soname_spec='${libname}${release}${shared_ext}$major'
16141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16142 case $host_os in
16143 irix5* | nonstopux*)
16144 libsuff= shlibsuff=
16145 ;;
16146 *)
16147 case $LD in # libtool.m4 will add one of these switches to LD
16148 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16149 libsuff= shlibsuff= libmagic=32-bit;;
16150 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16151 libsuff=32 shlibsuff=N32 libmagic=N32;;
16152 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16153 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16154 *) libsuff= shlibsuff= libmagic=never-match;;
16155 esac
16156 ;;
16157 esac
16158 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16159 shlibpath_overrides_runpath=no
16160 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16161 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16162 hardcode_into_libs=yes
16163 ;;
16164
16165 # No shared lib support for Linux oldld, aout, or coff.
16166 linux*oldld* | linux*aout* | linux*coff*)
16167 dynamic_linker=no
16168 ;;
16169
16170 # This must be Linux ELF.
16171 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16172 version_type=linux
16173 need_lib_prefix=no
16174 need_version=no
16175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16176 soname_spec='${libname}${release}${shared_ext}$major'
16177 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16178 shlibpath_var=LD_LIBRARY_PATH
16179 shlibpath_overrides_runpath=no
16180
16181 # Some binutils ld are patched to set DT_RUNPATH
16182 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16183 $as_echo_n "(cached) " >&6
16184 else
16185 lt_cv_shlibpath_overrides_runpath=no
16186 save_LDFLAGS=$LDFLAGS
16187 save_libdir=$libdir
16188 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16189 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16190 if test x$gcc_no_link = xyes; then
16191 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16192 fi
16193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16194 /* end confdefs.h. */
16195
16196 int
16197 main ()
16198 {
16199
16200 ;
16201 return 0;
16202 }
16203 _ACEOF
16204 if ac_fn_cxx_try_link "$LINENO"; then :
16205 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16206 lt_cv_shlibpath_overrides_runpath=yes
16207 fi
16208 fi
16209 rm -f core conftest.err conftest.$ac_objext \
16210 conftest$ac_exeext conftest.$ac_ext
16211 LDFLAGS=$save_LDFLAGS
16212 libdir=$save_libdir
16213
16214 fi
16215
16216 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16217
16218 # This implies no fast_install, which is unacceptable.
16219 # Some rework will be needed to allow for fast_install
16220 # before this can be enabled.
16221 hardcode_into_libs=yes
16222
16223 # Append ld.so.conf contents to the search path
16224 if test -f /etc/ld.so.conf; then
16225 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' ' '`
16226 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16227 fi
16228
16229 # We used to test for /lib/ld.so.1 and disable shared libraries on
16230 # powerpc, because MkLinux only supported shared libraries with the
16231 # GNU dynamic linker. Since this was broken with cross compilers,
16232 # most powerpc-linux boxes support dynamic linking these days and
16233 # people can always --disable-shared, the test was removed, and we
16234 # assume the GNU/Linux dynamic linker is in use.
16235 dynamic_linker='GNU/Linux ld.so'
16236 ;;
16237
16238 netbsd*)
16239 version_type=sunos
16240 need_lib_prefix=no
16241 need_version=no
16242 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16244 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16245 dynamic_linker='NetBSD (a.out) ld.so'
16246 else
16247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16248 soname_spec='${libname}${release}${shared_ext}$major'
16249 dynamic_linker='NetBSD ld.elf_so'
16250 fi
16251 shlibpath_var=LD_LIBRARY_PATH
16252 shlibpath_overrides_runpath=yes
16253 hardcode_into_libs=yes
16254 ;;
16255
16256 newsos6)
16257 version_type=linux
16258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16259 shlibpath_var=LD_LIBRARY_PATH
16260 shlibpath_overrides_runpath=yes
16261 ;;
16262
16263 *nto* | *qnx*)
16264 version_type=qnx
16265 need_lib_prefix=no
16266 need_version=no
16267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16268 soname_spec='${libname}${release}${shared_ext}$major'
16269 shlibpath_var=LD_LIBRARY_PATH
16270 shlibpath_overrides_runpath=no
16271 hardcode_into_libs=yes
16272 dynamic_linker='ldqnx.so'
16273 ;;
16274
16275 openbsd*)
16276 version_type=sunos
16277 sys_lib_dlsearch_path_spec="/usr/lib"
16278 need_lib_prefix=no
16279 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16280 case $host_os in
16281 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16282 *) need_version=no ;;
16283 esac
16284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16285 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16286 shlibpath_var=LD_LIBRARY_PATH
16287 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16288 case $host_os in
16289 openbsd2.[89] | openbsd2.[89].*)
16290 shlibpath_overrides_runpath=no
16291 ;;
16292 *)
16293 shlibpath_overrides_runpath=yes
16294 ;;
16295 esac
16296 else
16297 shlibpath_overrides_runpath=yes
16298 fi
16299 ;;
16300
16301 os2*)
16302 libname_spec='$name'
16303 shrext_cmds=".dll"
16304 need_lib_prefix=no
16305 library_names_spec='$libname${shared_ext} $libname.a'
16306 dynamic_linker='OS/2 ld.exe'
16307 shlibpath_var=LIBPATH
16308 ;;
16309
16310 osf3* | osf4* | osf5*)
16311 version_type=osf
16312 need_lib_prefix=no
16313 need_version=no
16314 soname_spec='${libname}${release}${shared_ext}$major'
16315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16316 shlibpath_var=LD_LIBRARY_PATH
16317 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16318 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16319 ;;
16320
16321 rdos*)
16322 dynamic_linker=no
16323 ;;
16324
16325 solaris*)
16326 version_type=linux
16327 need_lib_prefix=no
16328 need_version=no
16329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16330 soname_spec='${libname}${release}${shared_ext}$major'
16331 shlibpath_var=LD_LIBRARY_PATH
16332 shlibpath_overrides_runpath=yes
16333 hardcode_into_libs=yes
16334 # ldd complains unless libraries are executable
16335 postinstall_cmds='chmod +x $lib'
16336 ;;
16337
16338 sunos4*)
16339 version_type=sunos
16340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16341 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16342 shlibpath_var=LD_LIBRARY_PATH
16343 shlibpath_overrides_runpath=yes
16344 if test "$with_gnu_ld" = yes; then
16345 need_lib_prefix=no
16346 fi
16347 need_version=yes
16348 ;;
16349
16350 sysv4 | sysv4.3*)
16351 version_type=linux
16352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16353 soname_spec='${libname}${release}${shared_ext}$major'
16354 shlibpath_var=LD_LIBRARY_PATH
16355 case $host_vendor in
16356 sni)
16357 shlibpath_overrides_runpath=no
16358 need_lib_prefix=no
16359 runpath_var=LD_RUN_PATH
16360 ;;
16361 siemens)
16362 need_lib_prefix=no
16363 ;;
16364 motorola)
16365 need_lib_prefix=no
16366 need_version=no
16367 shlibpath_overrides_runpath=no
16368 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16369 ;;
16370 esac
16371 ;;
16372
16373 sysv4*MP*)
16374 if test -d /usr/nec ;then
16375 version_type=linux
16376 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16377 soname_spec='$libname${shared_ext}.$major'
16378 shlibpath_var=LD_LIBRARY_PATH
16379 fi
16380 ;;
16381
16382 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16383 version_type=freebsd-elf
16384 need_lib_prefix=no
16385 need_version=no
16386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16387 soname_spec='${libname}${release}${shared_ext}$major'
16388 shlibpath_var=LD_LIBRARY_PATH
16389 shlibpath_overrides_runpath=yes
16390 hardcode_into_libs=yes
16391 if test "$with_gnu_ld" = yes; then
16392 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16393 else
16394 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16395 case $host_os in
16396 sco3.2v5*)
16397 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16398 ;;
16399 esac
16400 fi
16401 sys_lib_dlsearch_path_spec='/usr/lib'
16402 ;;
16403
16404 tpf*)
16405 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16406 version_type=linux
16407 need_lib_prefix=no
16408 need_version=no
16409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16410 shlibpath_var=LD_LIBRARY_PATH
16411 shlibpath_overrides_runpath=no
16412 hardcode_into_libs=yes
16413 ;;
16414
16415 uts4*)
16416 version_type=linux
16417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16418 soname_spec='${libname}${release}${shared_ext}$major'
16419 shlibpath_var=LD_LIBRARY_PATH
16420 ;;
16421
16422 *)
16423 dynamic_linker=no
16424 ;;
16425 esac
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16427 $as_echo "$dynamic_linker" >&6; }
16428 test "$dynamic_linker" = no && can_build_shared=no
16429
16430 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16431 if test "$GCC" = yes; then
16432 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16433 fi
16434
16435 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16436 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16437 fi
16438 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16439 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16440 fi
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16480 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16481 hardcode_action_CXX=
16482 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16483 test -n "$runpath_var_CXX" ||
16484 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16485
16486 # We can hardcode non-existent directories.
16487 if test "$hardcode_direct_CXX" != no &&
16488 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16489 # have to relink, otherwise we might link with an installed library
16490 # when we should be linking with a yet-to-be-installed one
16491 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16492 test "$hardcode_minus_L_CXX" != no; then
16493 # Linking always hardcodes the temporary library directory.
16494 hardcode_action_CXX=relink
16495 else
16496 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16497 hardcode_action_CXX=immediate
16498 fi
16499 else
16500 # We cannot hardcode anything, or else we can only hardcode existing
16501 # directories.
16502 hardcode_action_CXX=unsupported
16503 fi
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16505 $as_echo "$hardcode_action_CXX" >&6; }
16506
16507 if test "$hardcode_action_CXX" = relink ||
16508 test "$inherit_rpath_CXX" = yes; then
16509 # Fast installation is not supported
16510 enable_fast_install=no
16511 elif test "$shlibpath_overrides_runpath" = yes ||
16512 test "$enable_shared" = no; then
16513 # Fast installation is not necessary
16514 enable_fast_install=needless
16515 fi
16516
16517
16518
16519
16520
16521
16522
16523 fi # test -n "$compiler"
16524
16525 CC=$lt_save_CC
16526 LDCXX=$LD
16527 LD=$lt_save_LD
16528 GCC=$lt_save_GCC
16529 with_gnu_ld=$lt_save_with_gnu_ld
16530 lt_cv_path_LDCXX=$lt_cv_path_LD
16531 lt_cv_path_LD=$lt_save_path_LD
16532 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16533 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16534 fi # test "$_lt_caught_CXX_error" != yes
16535
16536 ac_ext=c
16537 ac_cpp='$CPP $CPPFLAGS'
16538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16541
16542
16543
16544 # Handle -Werror default case.
16545 if test "$ENABLE_WERROR" = default; then
16546 case "$host_os" in
16547 *linux*)
16548 if test "$GCC" = yes; then
16549 ENABLE_WERROR=yes
16550 fi
16551 ;;
16552 esac
16553 fi
16554
16555 if test "x${COMPILE_COLLECTIONS}" = xyes; then
16556 # Extract the first word of "perl", so it can be a program name with args.
16557 set dummy perl; ac_word=$2
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16559 $as_echo_n "checking for $ac_word... " >&6; }
16560 if test "${ac_cv_path_PERL+set}" = set; then :
16561 $as_echo_n "(cached) " >&6
16562 else
16563 case $PERL in
16564 [\\/]* | ?:[\\/]*)
16565 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
16566 ;;
16567 *)
16568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16569 for as_dir in $PATH
16570 do
16571 IFS=$as_save_IFS
16572 test -z "$as_dir" && as_dir=.
16573 for ac_exec_ext in '' $ac_executable_extensions; do
16574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16575 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
16576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16577 break 2
16578 fi
16579 done
16580 done
16581 IFS=$as_save_IFS
16582
16583 ;;
16584 esac
16585 fi
16586 PERL=$ac_cv_path_PERL
16587 if test -n "$PERL"; then
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
16589 $as_echo "$PERL" >&6; }
16590 else
16591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16592 $as_echo "no" >&6; }
16593 fi
16594
16595
16596
16597
16598 ac_config_files="$ac_config_files lib/mkcollections.pl"
16599
16600 ac_config_commands="$ac_config_commands mkcollections.pl"
16601
16602 fi
16603
16604 if test "x${COMPILE_JNI}" = xyes; then
16605
16606
16607
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __attribute__((,,))" >&5
16609 $as_echo_n "checking __attribute__((,,))... " >&6; }
16610 if test "${gcc_cv_c_gcc_attribute_supported+set}" = set; then :
16611 $as_echo_n "(cached) " >&6
16612 else
16613
16614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16615 /* end confdefs.h. */
16616
16617 int
16618 main ()
16619 {
16620 extern int testfunction(int x) __attribute__((,,))
16621 ;
16622 return 0;
16623 }
16624 _ACEOF
16625 if ac_fn_c_try_compile "$LINENO"; then :
16626 gcc_cv_c_gcc_attribute_supported=yes
16627 else
16628 gcc_cv_c_gcc_attribute_supported=no
16629 fi
16630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16631
16632 fi
16633
16634 if test "x$gcc_cv_c_gcc_attribute_supported" = xyes; then
16635 true
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16637 $as_echo "yes" >&6; }
16638
16639 $as_echo "#define HAVE_GNUC25_ATTRIB /**/" >>confdefs.h
16640
16641
16642 else
16643 true
16644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16645 $as_echo "no" >&6; }
16646
16647 fi
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __attribute__((unused))" >&5
16658 $as_echo_n "checking __attribute__((unused))... " >&6; }
16659 if test "${gcc_cv_c_gcc_attribute_unused+set}" = set; then :
16660 $as_echo_n "(cached) " >&6
16661 else
16662
16663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16664 /* end confdefs.h. */
16665
16666 int
16667 main ()
16668 {
16669 extern int testfunction(int x) __attribute__((unused))
16670 ;
16671 return 0;
16672 }
16673 _ACEOF
16674 if ac_fn_c_try_compile "$LINENO"; then :
16675 gcc_cv_c_gcc_attribute_unused=yes
16676 else
16677 gcc_cv_c_gcc_attribute_unused=no
16678 fi
16679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16680
16681 fi
16682
16683 if test "x$gcc_cv_c_gcc_attribute_unused" = xyes; then
16684 true
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16686 $as_echo "yes" >&6; }
16687
16688 $as_echo "#define HAVE_GNUC25_UNUSED /**/" >>confdefs.h
16689
16690
16691 else
16692 true
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16694 $as_echo "no" >&6; }
16695
16696 fi
16697
16698
16699
16700
16701
16702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16703 $as_echo_n "checking for ANSI C header files... " >&6; }
16704 if test "${ac_cv_header_stdc+set}" = set; then :
16705 $as_echo_n "(cached) " >&6
16706 else
16707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16708 /* end confdefs.h. */
16709 #include <stdlib.h>
16710 #include <stdarg.h>
16711 #include <string.h>
16712 #include <float.h>
16713
16714 int
16715 main ()
16716 {
16717
16718 ;
16719 return 0;
16720 }
16721 _ACEOF
16722 if ac_fn_c_try_compile "$LINENO"; then :
16723 ac_cv_header_stdc=yes
16724 else
16725 ac_cv_header_stdc=no
16726 fi
16727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16728
16729 if test $ac_cv_header_stdc = yes; then
16730 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16732 /* end confdefs.h. */
16733 #include <string.h>
16734
16735 _ACEOF
16736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16737 $EGREP "memchr" >/dev/null 2>&1; then :
16738
16739 else
16740 ac_cv_header_stdc=no
16741 fi
16742 rm -f conftest*
16743
16744 fi
16745
16746 if test $ac_cv_header_stdc = yes; then
16747 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16749 /* end confdefs.h. */
16750 #include <stdlib.h>
16751
16752 _ACEOF
16753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16754 $EGREP "free" >/dev/null 2>&1; then :
16755
16756 else
16757 ac_cv_header_stdc=no
16758 fi
16759 rm -f conftest*
16760
16761 fi
16762
16763 if test $ac_cv_header_stdc = yes; then
16764 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16765 if test "$cross_compiling" = yes; then :
16766 :
16767 else
16768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16769 /* end confdefs.h. */
16770 #include <ctype.h>
16771 #include <stdlib.h>
16772 #if ((' ' & 0x0FF) == 0x020)
16773 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16774 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16775 #else
16776 # define ISLOWER(c) \
16777 (('a' <= (c) && (c) <= 'i') \
16778 || ('j' <= (c) && (c) <= 'r') \
16779 || ('s' <= (c) && (c) <= 'z'))
16780 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16781 #endif
16782
16783 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16784 int
16785 main ()
16786 {
16787 int i;
16788 for (i = 0; i < 256; i++)
16789 if (XOR (islower (i), ISLOWER (i))
16790 || toupper (i) != TOUPPER (i))
16791 return 2;
16792 return 0;
16793 }
16794 _ACEOF
16795 if ac_fn_c_try_run "$LINENO"; then :
16796
16797 else
16798 ac_cv_header_stdc=no
16799 fi
16800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16801 conftest.$ac_objext conftest.beam conftest.$ac_ext
16802 fi
16803
16804 fi
16805 fi
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16807 $as_echo "$ac_cv_header_stdc" >&6; }
16808 if test $ac_cv_header_stdc = yes; then
16809
16810 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16811
16812 fi
16813
16814
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16816 $as_echo_n "checking size of void *... " >&6; }
16817 if test "${ac_cv_sizeof_void_p+set}" = set; then :
16818 $as_echo_n "(cached) " >&6
16819 else
16820 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
16821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16822 /* end confdefs.h. */
16823 #include "confdefs.h"
16824 #include <sys/types.h>
16825
16826
16827 int
16828 main ()
16829 {
16830 switch (0) case 0: case (sizeof (void *) == $ac_size):;
16831 ;
16832 return 0;
16833 }
16834 _ACEOF
16835 if ac_fn_c_try_compile "$LINENO"; then :
16836 ac_cv_sizeof_void_p=$ac_size
16837 fi
16838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16839 if test x$ac_cv_sizeof_void_p != x ; then break; fi
16840 done
16841
16842 fi
16843
16844 if test x$ac_cv_sizeof_void_p = x ; then
16845 as_fn_error "cannot determine a size for void *" "$LINENO" 5
16846 fi
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16848 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16849
16850 cat >>confdefs.h <<_ACEOF
16851 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16852 _ACEOF
16853
16854
16855
16856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16857 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16858 if test "${ac_cv_c_bigendian+set}" = set; then :
16859 $as_echo_n "(cached) " >&6
16860 else
16861 ac_cv_c_bigendian=unknown
16862 # See if sys/param.h defines the BYTE_ORDER macro.
16863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16864 /* end confdefs.h. */
16865 #include <sys/types.h>
16866 #include <sys/param.h>
16867 int
16868 main ()
16869 {
16870
16871 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16872 bogus endian macros
16873 #endif
16874 ;
16875 return 0;
16876 }
16877 _ACEOF
16878 if ac_fn_c_try_compile "$LINENO"; then :
16879 # It does; now see whether it defined to BIG_ENDIAN or not.
16880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16881 /* end confdefs.h. */
16882 #include <sys/types.h>
16883 #include <sys/param.h>
16884 int
16885 main ()
16886 {
16887
16888 #if BYTE_ORDER != BIG_ENDIAN
16889 not big endian
16890 #endif
16891 ;
16892 return 0;
16893 }
16894 _ACEOF
16895 if ac_fn_c_try_compile "$LINENO"; then :
16896 ac_cv_c_bigendian=yes
16897 else
16898 ac_cv_c_bigendian=no
16899 fi
16900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16901 fi
16902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16903 if test $ac_cv_c_bigendian = unknown; then
16904 if test "$cross_compiling" = yes; then :
16905 echo $ac_n "cross-compiling... " 2>&6
16906 else
16907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16908 /* end confdefs.h. */
16909 main () {
16910 /* Are we little or big endian? From Harbison&Steele. */
16911 union
16912 {
16913 long l;
16914 char c[sizeof (long)];
16915 } u;
16916 u.l = 1;
16917 exit (u.c[sizeof (long) - 1] == 1);
16918 }
16919 _ACEOF
16920 if ac_fn_c_try_run "$LINENO"; then :
16921 ac_cv_c_bigendian=no
16922 else
16923 ac_cv_c_bigendian=yes
16924 fi
16925 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16926 conftest.$ac_objext conftest.beam conftest.$ac_ext
16927 fi
16928
16929 fi
16930 fi
16931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16932 $as_echo "$ac_cv_c_bigendian" >&6; }
16933 if test $ac_cv_c_bigendian = unknown; then
16934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to probe for byte ordering" >&5
16935 $as_echo_n "checking to probe for byte ordering... " >&6; }
16936
16937 cat >conftest.c <<EOF
16938 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16939 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16940 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
16941 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16942 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16943 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
16944 int main() { _ascii (); _ebcdic (); return 0; }
16945 EOF
16946 if test -f conftest.c ; then
16947 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
16948 if test `grep -l BIGenDianSyS conftest.o` ; then
16949 echo $ac_n ' big endian probe OK, ' 1>&6
16950 ac_cv_c_bigendian=yes
16951 fi
16952 if test `grep -l LiTTleEnDian conftest.o` ; then
16953 echo $ac_n ' little endian probe OK, ' 1>&6
16954 if test $ac_cv_c_bigendian = yes ; then
16955 ac_cv_c_bigendian=unknown;
16956 else
16957 ac_cv_c_bigendian=no
16958 fi
16959 fi
16960 echo $ac_n 'guessing bigendian ... ' >&6
16961 fi
16962 fi
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16964 $as_echo "$ac_cv_c_bigendian" >&6; }
16965 fi
16966 if test $ac_cv_c_bigendian = yes; then
16967
16968 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16969
16970
16971 $as_echo "#define HOST_WORDS_BIG_ENDIAN 1" >>confdefs.h
16972
16973 BYTEORDER=4321
16974 else
16975 BYTEORDER=1234
16976 fi
16977
16978 cat >>confdefs.h <<_ACEOF
16979 #define BYTEORDER $BYTEORDER
16980 _ACEOF
16981
16982 if test $ac_cv_c_bigendian = unknown; then
16983 as_fn_error "unknown endianess - sorry, please pre-set ac_cv_c_bigendian" "$LINENO" 5
16984 fi
16985
16986
16987 for ac_header in unistd.h sys/types.h sys/config.h sys/ioctl.h \
16988 asm/ioctls.h \
16989 inttypes.h stdint.h utime.h sys/utime.h sys/filio.h \
16990 sys/time.h \
16991 sys/select.h \
16992 crt_externs.h \
16993 fcntl.h \
16994 sys/mman.h \
16995 magic.h \
16996 sys/event.h sys/epoll.h \
16997 ifaddrs.h \
16998 netinet/in_systm.h netinet/ip.h net/if.h \
16999 sys/loadavg.h sys/sockio.h
17000 do :
17001 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17002 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17003 eval as_val=\$$as_ac_Header
17004 if test "x$as_val" = x""yes; then :
17005 cat >>confdefs.h <<_ACEOF
17006 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17007 _ACEOF
17008
17009 fi
17010
17011 done
17012
17013
17014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17015 /* end confdefs.h. */
17016 #include <stdint.h>
17017
17018 _ACEOF
17019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17020 $EGREP "uint32_t" >/dev/null 2>&1; then :
17021
17022 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
17023
17024 fi
17025 rm -f conftest*
17026
17027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17028 /* end confdefs.h. */
17029 #include <inttypes.h>
17030
17031 _ACEOF
17032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17033 $EGREP "uint32_t" >/dev/null 2>&1; then :
17034
17035 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
17036
17037 fi
17038 rm -f conftest*
17039
17040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17041 /* end confdefs.h. */
17042 #include <sys/types.h>
17043
17044 _ACEOF
17045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17046 $EGREP "u_int32_t" >/dev/null 2>&1; then :
17047
17048 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
17049
17050 fi
17051 rm -f conftest*
17052
17053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17054 /* end confdefs.h. */
17055 #include <sys/config.h>
17056
17057 _ACEOF
17058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17059 $EGREP "u_int32_t" >/dev/null 2>&1; then :
17060
17061 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
17062
17063 fi
17064 rm -f conftest*
17065
17066
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
17068 $as_echo_n "checking for library containing inet_pton... " >&6; }
17069 if test "${ac_cv_search_inet_pton+set}" = set; then :
17070 $as_echo_n "(cached) " >&6
17071 else
17072 ac_func_search_save_LIBS=$LIBS
17073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17074 /* end confdefs.h. */
17075
17076 /* Override any GCC internal prototype to avoid an error.
17077 Use char because int might match the return type of a GCC
17078 builtin and then its argument prototype would still apply. */
17079 #ifdef __cplusplus
17080 extern "C"
17081 #endif
17082 char inet_pton ();
17083 int
17084 main ()
17085 {
17086 return inet_pton ();
17087 ;
17088 return 0;
17089 }
17090 _ACEOF
17091 for ac_lib in '' nsl; do
17092 if test -z "$ac_lib"; then
17093 ac_res="none required"
17094 else
17095 ac_res=-l$ac_lib
17096 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17097 fi
17098 if test x$gcc_no_link = xyes; then
17099 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17100 fi
17101 if ac_fn_c_try_link "$LINENO"; then :
17102 ac_cv_search_inet_pton=$ac_res
17103 fi
17104 rm -f core conftest.err conftest.$ac_objext \
17105 conftest$ac_exeext
17106 if test "${ac_cv_search_inet_pton+set}" = set; then :
17107 break
17108 fi
17109 done
17110 if test "${ac_cv_search_inet_pton+set}" = set; then :
17111
17112 else
17113 ac_cv_search_inet_pton=no
17114 fi
17115 rm conftest.$ac_ext
17116 LIBS=$ac_func_search_save_LIBS
17117 fi
17118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
17119 $as_echo "$ac_cv_search_inet_pton" >&6; }
17120 ac_res=$ac_cv_search_inet_pton
17121 if test "$ac_res" != no; then :
17122 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17123
17124 fi
17125
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lsocket" >&5
17127 $as_echo_n "checking for gethostname in -lsocket... " >&6; }
17128 if test "${ac_cv_lib_socket_gethostname+set}" = set; then :
17129 $as_echo_n "(cached) " >&6
17130 else
17131 ac_check_lib_save_LIBS=$LIBS
17132 LIBS="-lsocket $LIBS"
17133 if test x$gcc_no_link = xyes; then
17134 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17135 fi
17136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17137 /* end confdefs.h. */
17138
17139 /* Override any GCC internal prototype to avoid an error.
17140 Use char because int might match the return type of a GCC
17141 builtin and then its argument prototype would still apply. */
17142 #ifdef __cplusplus
17143 extern "C"
17144 #endif
17145 char gethostname ();
17146 int
17147 main ()
17148 {
17149 return gethostname ();
17150 ;
17151 return 0;
17152 }
17153 _ACEOF
17154 if ac_fn_c_try_link "$LINENO"; then :
17155 ac_cv_lib_socket_gethostname=yes
17156 else
17157 ac_cv_lib_socket_gethostname=no
17158 fi
17159 rm -f core conftest.err conftest.$ac_objext \
17160 conftest$ac_exeext conftest.$ac_ext
17161 LIBS=$ac_check_lib_save_LIBS
17162 fi
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostname" >&5
17164 $as_echo "$ac_cv_lib_socket_gethostname" >&6; }
17165 if test "x$ac_cv_lib_socket_gethostname" = x""yes; then :
17166 cat >>confdefs.h <<_ACEOF
17167 #define HAVE_LIBSOCKET 1
17168 _ACEOF
17169
17170 LIBS="-lsocket $LIBS"
17171
17172 fi
17173
17174 for ac_func in ftruncate fsync select \
17175 gethostname socket strerror fork pipe execve open close \
17176 lseek fstat read readv write writev htonl memset htons connect \
17177 getsockname getpeername bind listen accept \
17178 recvfrom send sendto setsockopt getsockopt time mktime \
17179 gethostbyname_r localtime_r \
17180 strerror_r \
17181 fcntl \
17182 statvfs \
17183 mmap munmap mincore msync madvise getpagesize sysconf \
17184 lstat readlink \
17185 inet_aton inet_addr inet_pton \
17186 getifaddrs kqueue kevent epoll_create \
17187 getloadavg
17188 do :
17189 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17190 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17191 eval as_val=\$$as_ac_var
17192 if test "x$as_val" = x""yes; then :
17193 cat >>confdefs.h <<_ACEOF
17194 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17195 _ACEOF
17196
17197 fi
17198 done
17199
17200
17201 LIBMAGIC=
17202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
17203 $as_echo_n "checking for magic_open in -lmagic... " >&6; }
17204 if test "${ac_cv_lib_magic_magic_open+set}" = set; then :
17205 $as_echo_n "(cached) " >&6
17206 else
17207 ac_check_lib_save_LIBS=$LIBS
17208 LIBS="-lmagic $LIBS"
17209 if test x$gcc_no_link = xyes; then
17210 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17211 fi
17212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17213 /* end confdefs.h. */
17214
17215 /* Override any GCC internal prototype to avoid an error.
17216 Use char because int might match the return type of a GCC
17217 builtin and then its argument prototype would still apply. */
17218 #ifdef __cplusplus
17219 extern "C"
17220 #endif
17221 char magic_open ();
17222 int
17223 main ()
17224 {
17225 return magic_open ();
17226 ;
17227 return 0;
17228 }
17229 _ACEOF
17230 if ac_fn_c_try_link "$LINENO"; then :
17231 ac_cv_lib_magic_magic_open=yes
17232 else
17233 ac_cv_lib_magic_magic_open=no
17234 fi
17235 rm -f core conftest.err conftest.$ac_objext \
17236 conftest$ac_exeext conftest.$ac_ext
17237 LIBS=$ac_check_lib_save_LIBS
17238 fi
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
17240 $as_echo "$ac_cv_lib_magic_magic_open" >&6; }
17241 if test "x$ac_cv_lib_magic_magic_open" = x""yes; then :
17242 LIBMAGIC=-lmagic
17243 fi
17244
17245
17246
17247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
17248 $as_echo_n "checking whether struct sockaddr_in6 is in netinet/in.h... " >&6; }
17249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17250 /* end confdefs.h. */
17251 #include <netinet/in.h>
17252 int
17253 main ()
17254 {
17255 struct sockaddr_in6 addr6;
17256 ;
17257 return 0;
17258 }
17259 _ACEOF
17260 if ac_fn_c_try_compile "$LINENO"; then :
17261
17262 $as_echo "#define HAVE_INET6 1" >>confdefs.h
17263
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17265 $as_echo "yes" >&6; }
17266 else
17267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17268 $as_echo "no" >&6; }
17269 fi
17270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17271
17272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
17273 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
17274 if test "${ac_cv_header_time+set}" = set; then :
17275 $as_echo_n "(cached) " >&6
17276 else
17277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17278 /* end confdefs.h. */
17279 #include <sys/types.h>
17280 #include <sys/time.h>
17281 #include <time.h>
17282
17283 int
17284 main ()
17285 {
17286 if ((struct tm *) 0)
17287 return 0;
17288 ;
17289 return 0;
17290 }
17291 _ACEOF
17292 if ac_fn_c_try_compile "$LINENO"; then :
17293 ac_cv_header_time=yes
17294 else
17295 ac_cv_header_time=no
17296 fi
17297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17298 fi
17299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
17300 $as_echo "$ac_cv_header_time" >&6; }
17301 if test $ac_cv_header_time = yes; then
17302
17303 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
17304
17305 fi
17306
17307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
17308 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
17309 if test "${ac_cv_struct_tm+set}" = set; then :
17310 $as_echo_n "(cached) " >&6
17311 else
17312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17313 /* end confdefs.h. */
17314 #include <sys/types.h>
17315 #include <time.h>
17316
17317 int
17318 main ()
17319 {
17320 struct tm tm;
17321 int *p = &tm.tm_sec;
17322 return !p;
17323 ;
17324 return 0;
17325 }
17326 _ACEOF
17327 if ac_fn_c_try_compile "$LINENO"; then :
17328 ac_cv_struct_tm=time.h
17329 else
17330 ac_cv_struct_tm=sys/time.h
17331 fi
17332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17333 fi
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
17335 $as_echo "$ac_cv_struct_tm" >&6; }
17336 if test $ac_cv_struct_tm = sys/time.h; then
17337
17338 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
17339
17340 fi
17341
17342 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
17343 #include <$ac_cv_struct_tm>
17344
17345 "
17346 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
17347
17348 cat >>confdefs.h <<_ACEOF
17349 #define HAVE_STRUCT_TM_TM_ZONE 1
17350 _ACEOF
17351
17352
17353 fi
17354
17355 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
17356
17357 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
17358
17359 else
17360 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
17361 "
17362 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
17363 ac_have_decl=1
17364 else
17365 ac_have_decl=0
17366 fi
17367
17368 cat >>confdefs.h <<_ACEOF
17369 #define HAVE_DECL_TZNAME $ac_have_decl
17370 _ACEOF
17371
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
17373 $as_echo_n "checking for tzname... " >&6; }
17374 if test "${ac_cv_var_tzname+set}" = set; then :
17375 $as_echo_n "(cached) " >&6
17376 else
17377 if test x$gcc_no_link = xyes; then
17378 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17379 fi
17380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17381 /* end confdefs.h. */
17382 #include <time.h>
17383 #if !HAVE_DECL_TZNAME
17384 extern char *tzname[];
17385 #endif
17386
17387 int
17388 main ()
17389 {
17390 return tzname[0][0];
17391 ;
17392 return 0;
17393 }
17394 _ACEOF
17395 if ac_fn_c_try_link "$LINENO"; then :
17396 ac_cv_var_tzname=yes
17397 else
17398 ac_cv_var_tzname=no
17399 fi
17400 rm -f core conftest.err conftest.$ac_objext \
17401 conftest$ac_exeext conftest.$ac_ext
17402 fi
17403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
17404 $as_echo "$ac_cv_var_tzname" >&6; }
17405 if test $ac_cv_var_tzname = yes; then
17406
17407 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
17408
17409 fi
17410 fi
17411
17412
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
17414 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
17415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17416 /* end confdefs.h. */
17417 #include <time.h>
17418 int
17419 main ()
17420 {
17421 struct tm tim; tim.tm_gmtoff = 0;
17422 ;
17423 return 0;
17424 }
17425 _ACEOF
17426 if ac_fn_c_try_compile "$LINENO"; then :
17427
17428 $as_echo "#define STRUCT_TM_HAS_GMTOFF 1" >>confdefs.h
17429
17430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17431 $as_echo "yes" >&6; }
17432 else
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17434 $as_echo "no" >&6; }
17435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global timezone variable" >&5
17436 $as_echo_n "checking for global timezone variable... " >&6; }
17437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17438 /* end confdefs.h. */
17439 #include <time.h>
17440 int
17441 main ()
17442 {
17443 void i(){long z2 = 2*timezone;}
17444 ;
17445 return 0;
17446 }
17447 _ACEOF
17448 if ac_fn_c_try_compile "$LINENO"; then :
17449
17450 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
17451
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17453 $as_echo "yes" >&6; }
17454 else
17455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17456 $as_echo "no" >&6; }
17457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global _timezone variable" >&5
17458 $as_echo_n "checking for global _timezone variable... " >&6; }
17459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17460 /* end confdefs.h. */
17461 #include <time.h>
17462 int
17463 main ()
17464 {
17465 long z2 = _timezone;
17466 ;
17467 return 0;
17468 }
17469 _ACEOF
17470 if ac_fn_c_try_compile "$LINENO"; then :
17471
17472 $as_echo "#define HAVE_UNDERSCORE_TIMEZONE 1" >>confdefs.h
17473
17474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17475 $as_echo "yes" >&6; }
17476 else
17477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17478 $as_echo "no" >&6; }
17479 fi
17480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17481 fi
17482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17483 fi
17484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17485
17486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17487 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17488 if test "${ac_cv_c_const+set}" = set; then :
17489 $as_echo_n "(cached) " >&6
17490 else
17491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17492 /* end confdefs.h. */
17493
17494 int
17495 main ()
17496 {
17497 /* FIXME: Include the comments suggested by Paul. */
17498 #ifndef __cplusplus
17499 /* Ultrix mips cc rejects this. */
17500 typedef int charset[2];
17501 const charset cs;
17502 /* SunOS 4.1.1 cc rejects this. */
17503 char const *const *pcpcc;
17504 char **ppc;
17505 /* NEC SVR4.0.2 mips cc rejects this. */
17506 struct point {int x, y;};
17507 static struct point const zero = {0,0};
17508 /* AIX XL C 1.02.0.0 rejects this.
17509 It does not let you subtract one const X* pointer from another in
17510 an arm of an if-expression whose if-part is not a constant
17511 expression */
17512 const char *g = "string";
17513 pcpcc = &g + (g ? g-g : 0);
17514 /* HPUX 7.0 cc rejects these. */
17515 ++pcpcc;
17516 ppc = (char**) pcpcc;
17517 pcpcc = (char const *const *) ppc;
17518 { /* SCO 3.2v4 cc rejects this. */
17519 char *t;
17520 char const *s = 0 ? (char *) 0 : (char const *) 0;
17521
17522 *t++ = 0;
17523 if (s) return 0;
17524 }
17525 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17526 int x[] = {25, 17};
17527 const int *foo = &x[0];
17528 ++foo;
17529 }
17530 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17531 typedef const int *iptr;
17532 iptr p = 0;
17533 ++p;
17534 }
17535 { /* AIX XL C 1.02.0.0 rejects this saying
17536 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17537 struct s { int j; const int *ap[3]; };
17538 struct s *b; b->j = 5;
17539 }
17540 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17541 const int foo = 10;
17542 if (!foo) return 0;
17543 }
17544 return !cs[0] && !zero.x;
17545 #endif
17546
17547 ;
17548 return 0;
17549 }
17550 _ACEOF
17551 if ac_fn_c_try_compile "$LINENO"; then :
17552 ac_cv_c_const=yes
17553 else
17554 ac_cv_c_const=no
17555 fi
17556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17557 fi
17558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17559 $as_echo "$ac_cv_c_const" >&6; }
17560 if test $ac_cv_c_const = no; then
17561
17562 $as_echo "#define const /**/" >>confdefs.h
17563
17564 fi
17565
17566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17567 $as_echo_n "checking for inline... " >&6; }
17568 if test "${ac_cv_c_inline+set}" = set; then :
17569 $as_echo_n "(cached) " >&6
17570 else
17571 ac_cv_c_inline=no
17572 for ac_kw in inline __inline__ __inline; do
17573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17574 /* end confdefs.h. */
17575 #ifndef __cplusplus
17576 typedef int foo_t;
17577 static $ac_kw foo_t static_foo () {return 0; }
17578 $ac_kw foo_t foo () {return 0; }
17579 #endif
17580
17581 _ACEOF
17582 if ac_fn_c_try_compile "$LINENO"; then :
17583 ac_cv_c_inline=$ac_kw
17584 fi
17585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17586 test "$ac_cv_c_inline" != no && break
17587 done
17588
17589 fi
17590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17591 $as_echo "$ac_cv_c_inline" >&6; }
17592
17593 case $ac_cv_c_inline in
17594 inline | yes) ;;
17595 *)
17596 case $ac_cv_c_inline in
17597 no) ac_val=;;
17598 *) ac_val=$ac_cv_c_inline;;
17599 esac
17600 cat >>confdefs.h <<_ACEOF
17601 #ifndef __cplusplus
17602 #define inline $ac_val
17603 #endif
17604 _ACEOF
17605 ;;
17606 esac
17607
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
17609 $as_echo_n "checking for __attribute__... " >&6; }
17610 if test "${ac_cv_c_attribute+set}" = set; then :
17611 $as_echo_n "(cached) " >&6
17612 else
17613
17614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17615 /* end confdefs.h. */
17616 void foo(void) __attribute__ ((__noreturn__));
17617
17618 _ACEOF
17619 if ac_fn_c_try_compile "$LINENO"; then :
17620 ac_cv_c_attribute=yes
17621 else
17622 ac_cv_c_attribute=no
17623
17624 fi
17625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17626
17627 fi
17628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_attribute" >&5
17629 $as_echo "$ac_cv_c_attribute" >&6; }
17630
17631 case $ac_cv_c_attribute in
17632 yes) ;;
17633 no)
17634 cat >>confdefs.h <<_ACEOF
17635 #define __attribute__(x) /* nothing */
17636 _ACEOF
17637 ;;
17638 esac
17639
17640
17641
17642 ac_ext=c
17643 ac_cpp='$CPP $CPPFLAGS'
17644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17647
17648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() takes" >&5
17649 $as_echo_n "checking how many arguments gethostbyname_r() takes... " >&6; }
17650
17651 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then :
17652 $as_echo_n "(cached) " >&6
17653 else
17654
17655
17656 ################################################################
17657
17658 ac_cv_func_which_gethostbyname_r=unknown
17659
17660 #
17661 # ONE ARGUMENT (sanity check)
17662 #
17663
17664 # This should fail, as there is no variant of gethostbyname_r() that takes
17665 # a single argument. If it actually compiles, then we can assume that
17666 # netdb.h is not declaring the function, and the compiler is thereby
17667 # assuming an implicit prototype. In which case, we're out of luck.
17668 #
17669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17670 /* end confdefs.h. */
17671 #include <netdb.h>
17672 int
17673 main ()
17674 {
17675
17676 char *name = "www.gnu.org";
17677 (void)gethostbyname_r(name) /* ; */
17678
17679 ;
17680 return 0;
17681 }
17682 _ACEOF
17683 if ac_fn_c_try_compile "$LINENO"; then :
17684 ac_cv_func_which_gethostbyname_r=no
17685 fi
17686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17687
17688 #
17689 # SIX ARGUMENTS
17690 # (e.g. Linux)
17691 #
17692
17693 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
17694
17695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17696 /* end confdefs.h. */
17697 #include <netdb.h>
17698 int
17699 main ()
17700 {
17701
17702 char *name = "www.gnu.org";
17703 struct hostent ret, *retp;
17704 char buf[1024];
17705 int buflen = 1024;
17706 int my_h_errno;
17707 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
17708
17709 ;
17710 return 0;
17711 }
17712 _ACEOF
17713 if ac_fn_c_try_compile "$LINENO"; then :
17714 ac_cv_func_which_gethostbyname_r=six
17715 fi
17716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17717
17718 fi
17719
17720 #
17721 # FIVE ARGUMENTS
17722 # (e.g. Solaris)
17723 #
17724
17725 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
17726
17727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17728 /* end confdefs.h. */
17729 #include <netdb.h>
17730 int
17731 main ()
17732 {
17733
17734 char *name = "www.gnu.org";
17735 struct hostent ret;
17736 char buf[1024];
17737 int buflen = 1024;
17738 int my_h_errno;
17739 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
17740
17741 ;
17742 return 0;
17743 }
17744 _ACEOF
17745 if ac_fn_c_try_compile "$LINENO"; then :
17746 ac_cv_func_which_gethostbyname_r=five
17747 fi
17748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17749
17750 fi
17751
17752 #
17753 # THREE ARGUMENTS
17754 # (e.g. AIX, HP-UX, Tru64)
17755 #
17756
17757 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
17758
17759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17760 /* end confdefs.h. */
17761 #include <netdb.h>
17762 int
17763 main ()
17764 {
17765
17766 char *name = "www.gnu.org";
17767 struct hostent ret;
17768 struct hostent_data data;
17769 (void)gethostbyname_r(name, &ret, &data) /* ; */
17770
17771 ;
17772 return 0;
17773 }
17774 _ACEOF
17775 if ac_fn_c_try_compile "$LINENO"; then :
17776 ac_cv_func_which_gethostbyname_r=three
17777 fi
17778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17779
17780 fi
17781
17782 ################################################################
17783
17784
17785 fi
17786
17787 case "$ac_cv_func_which_gethostbyname_r" in
17788 three)
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: three" >&5
17790 $as_echo "three" >&6; }
17791
17792 $as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_3 1" >>confdefs.h
17793
17794 ;;
17795
17796 five)
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: five" >&5
17798 $as_echo "five" >&6; }
17799
17800 $as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_5 1" >>confdefs.h
17801
17802 ;;
17803
17804 six)
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: six" >&5
17806 $as_echo "six" >&6; }
17807
17808 $as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_6 1" >>confdefs.h
17809
17810 ;;
17811
17812 no)
17813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find function declaration in netdb.h" >&5
17814 $as_echo "cannot find function declaration in netdb.h" >&6; }
17815 ;;
17816
17817 unknown)
17818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't tell" >&5
17819 $as_echo "can't tell" >&6; }
17820 ;;
17821
17822 *)
17823 as_fn_error "internal error" "$LINENO" 5
17824 ;;
17825 esac
17826
17827 ac_ext=c
17828 ac_cpp='$CPP $CPPFLAGS'
17829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17832
17833
17834
17835
17836
17837 if test "X$prefix" = "XNONE"; then
17838 acl_final_prefix="$ac_default_prefix"
17839 else
17840 acl_final_prefix="$prefix"
17841 fi
17842 if test "X$exec_prefix" = "XNONE"; then
17843 acl_final_exec_prefix='${prefix}'
17844 else
17845 acl_final_exec_prefix="$exec_prefix"
17846 fi
17847 acl_save_prefix="$prefix"
17848 prefix="$acl_final_prefix"
17849 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17850 prefix="$acl_save_prefix"
17851
17852
17853 # Check whether --with-gnu-ld was given.
17854 if test "${with_gnu_ld+set}" = set; then :
17855 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17856 else
17857 with_gnu_ld=no
17858 fi
17859
17860 # Prepare PATH_SEPARATOR.
17861 # The user is always right.
17862 if test "${PATH_SEPARATOR+set}" != set; then
17863 echo "#! /bin/sh" >conf$$.sh
17864 echo "exit 0" >>conf$$.sh
17865 chmod +x conf$$.sh
17866 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17867 PATH_SEPARATOR=';'
17868 else
17869 PATH_SEPARATOR=:
17870 fi
17871 rm -f conf$$.sh
17872 fi
17873 ac_prog=ld
17874 if test "$GCC" = yes; then
17875 # Check if gcc -print-prog-name=ld gives a path.
17876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17877 $as_echo_n "checking for ld used by GCC... " >&6; }
17878 case $host in
17879 *-*-mingw*)
17880 # gcc leaves a trailing carriage return which upsets mingw
17881 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17882 *)
17883 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17884 esac
17885 case $ac_prog in
17886 # Accept absolute paths.
17887 [\\/]* | [A-Za-z]:[\\/]*)
17888 re_direlt='/[^/][^/]*/\.\./'
17889 # Canonicalize the path of ld
17890 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17891 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17892 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17893 done
17894 test -z "$LD" && LD="$ac_prog"
17895 ;;
17896 "")
17897 # If it fails, then pretend we aren't using GCC.
17898 ac_prog=ld
17899 ;;
17900 *)
17901 # If it is relative, then search for the first ld in PATH.
17902 with_gnu_ld=unknown
17903 ;;
17904 esac
17905 elif test "$with_gnu_ld" = yes; then
17906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17907 $as_echo_n "checking for GNU ld... " >&6; }
17908 else
17909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17910 $as_echo_n "checking for non-GNU ld... " >&6; }
17911 fi
17912 if test "${acl_cv_path_LD+set}" = set; then :
17913 $as_echo_n "(cached) " >&6
17914 else
17915 if test -z "$LD"; then
17916 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17917 for ac_dir in $PATH; do
17918 test -z "$ac_dir" && ac_dir=.
17919 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17920 acl_cv_path_LD="$ac_dir/$ac_prog"
17921 # Check to see if the program is GNU ld. I'd rather use --version,
17922 # but apparently some GNU ld's only accept -v.
17923 # Break only if it was the GNU/non-GNU ld that we prefer.
17924 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
17925 test "$with_gnu_ld" != no && break
17926 else
17927 test "$with_gnu_ld" != yes && break
17928 fi
17929 fi
17930 done
17931 IFS="$ac_save_ifs"
17932 else
17933 acl_cv_path_LD="$LD" # Let the user override the test with a path.
17934 fi
17935 fi
17936
17937 LD="$acl_cv_path_LD"
17938 if test -n "$LD"; then
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17940 $as_echo "$LD" >&6; }
17941 else
17942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17943 $as_echo "no" >&6; }
17944 fi
17945 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17947 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17948 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
17949 $as_echo_n "(cached) " >&6
17950 else
17951 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17952 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
17953 acl_cv_prog_gnu_ld=yes
17954 else
17955 acl_cv_prog_gnu_ld=no
17956 fi
17957 fi
17958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17959 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17960 with_gnu_ld=$acl_cv_prog_gnu_ld
17961
17962
17963
17964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17965 $as_echo_n "checking for shared library run path origin... " >&6; }
17966 if test "${acl_cv_rpath+set}" = set; then :
17967 $as_echo_n "(cached) " >&6
17968 else
17969
17970 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17971 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17972 . ./conftest.sh
17973 rm -f ./conftest.sh
17974 acl_cv_rpath=done
17975
17976 fi
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17978 $as_echo "$acl_cv_rpath" >&6; }
17979 wl="$acl_cv_wl"
17980 libext="$acl_cv_libext"
17981 shlibext="$acl_cv_shlibext"
17982 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17983 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17984 hardcode_direct="$acl_cv_hardcode_direct"
17985 hardcode_minus_L="$acl_cv_hardcode_minus_L"
17986 # Check whether --enable-rpath was given.
17987 if test "${enable_rpath+set}" = set; then :
17988 enableval=$enable_rpath; :
17989 else
17990 enable_rpath=yes
17991 fi
17992
17993
17994
17995
17996
17997
17998
17999
18000 use_additional=yes
18001
18002 acl_save_prefix="$prefix"
18003 prefix="$acl_final_prefix"
18004 acl_save_exec_prefix="$exec_prefix"
18005 exec_prefix="$acl_final_exec_prefix"
18006
18007 eval additional_includedir=\"$includedir\"
18008 eval additional_libdir=\"$libdir\"
18009
18010 exec_prefix="$acl_save_exec_prefix"
18011 prefix="$acl_save_prefix"
18012
18013
18014 # Check whether --with-libiconv-prefix was given.
18015 if test "${with_libiconv_prefix+set}" = set; then :
18016 withval=$with_libiconv_prefix;
18017 if test "X$withval" = "Xno"; then
18018 use_additional=no
18019 else
18020 if test "X$withval" = "X"; then
18021
18022 acl_save_prefix="$prefix"
18023 prefix="$acl_final_prefix"
18024 acl_save_exec_prefix="$exec_prefix"
18025 exec_prefix="$acl_final_exec_prefix"
18026
18027 eval additional_includedir=\"$includedir\"
18028 eval additional_libdir=\"$libdir\"
18029
18030 exec_prefix="$acl_save_exec_prefix"
18031 prefix="$acl_save_prefix"
18032
18033 else
18034 additional_includedir="$withval/include"
18035 additional_libdir="$withval/lib"
18036 fi
18037 fi
18038
18039 fi
18040
18041 LIBICONV=
18042 LTLIBICONV=
18043 INCICONV=
18044 rpathdirs=
18045 ltrpathdirs=
18046 names_already_handled=
18047 names_next_round='iconv '
18048 while test -n "$names_next_round"; do
18049 names_this_round="$names_next_round"
18050 names_next_round=
18051 for name in $names_this_round; do
18052 already_handled=
18053 for n in $names_already_handled; do
18054 if test "$n" = "$name"; then
18055 already_handled=yes
18056 break
18057 fi
18058 done
18059 if test -z "$already_handled"; then
18060 names_already_handled="$names_already_handled $name"
18061 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18062 eval value=\"\$HAVE_LIB$uppername\"
18063 if test -n "$value"; then
18064 if test "$value" = yes; then
18065 eval value=\"\$LIB$uppername\"
18066 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
18067 eval value=\"\$LTLIB$uppername\"
18068 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
18069 else
18070 :
18071 fi
18072 else
18073 found_dir=
18074 found_la=
18075 found_so=
18076 found_a=
18077 if test $use_additional = yes; then
18078 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18079 found_dir="$additional_libdir"
18080 found_so="$additional_libdir/lib$name.$shlibext"
18081 if test -f "$additional_libdir/lib$name.la"; then
18082 found_la="$additional_libdir/lib$name.la"
18083 fi
18084 else
18085 if test -f "$additional_libdir/lib$name.$libext"; then
18086 found_dir="$additional_libdir"
18087 found_a="$additional_libdir/lib$name.$libext"
18088 if test -f "$additional_libdir/lib$name.la"; then
18089 found_la="$additional_libdir/lib$name.la"
18090 fi
18091 fi
18092 fi
18093 fi
18094 if test "X$found_dir" = "X"; then
18095 for x in $LDFLAGS $LTLIBICONV; do
18096
18097 acl_save_prefix="$prefix"
18098 prefix="$acl_final_prefix"
18099 acl_save_exec_prefix="$exec_prefix"
18100 exec_prefix="$acl_final_exec_prefix"
18101 eval x=\"$x\"
18102 exec_prefix="$acl_save_exec_prefix"
18103 prefix="$acl_save_prefix"
18104
18105 case "$x" in
18106 -L*)
18107 dir=`echo "X$x" | sed -e 's/^X-L//'`
18108 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18109 found_dir="$dir"
18110 found_so="$dir/lib$name.$shlibext"
18111 if test -f "$dir/lib$name.la"; then
18112 found_la="$dir/lib$name.la"
18113 fi
18114 else
18115 if test -f "$dir/lib$name.$libext"; then
18116 found_dir="$dir"
18117 found_a="$dir/lib$name.$libext"
18118 if test -f "$dir/lib$name.la"; then
18119 found_la="$dir/lib$name.la"
18120 fi
18121 fi
18122 fi
18123 ;;
18124 esac
18125 if test "X$found_dir" != "X"; then
18126 break
18127 fi
18128 done
18129 fi
18130 if test "X$found_dir" != "X"; then
18131 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
18132 if test "X$found_so" != "X"; then
18133 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18134 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18135 else
18136 haveit=
18137 for x in $ltrpathdirs; do
18138 if test "X$x" = "X$found_dir"; then
18139 haveit=yes
18140 break
18141 fi
18142 done
18143 if test -z "$haveit"; then
18144 ltrpathdirs="$ltrpathdirs $found_dir"
18145 fi
18146 if test "$hardcode_direct" = yes; then
18147 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18148 else
18149 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18150 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18151 haveit=
18152 for x in $rpathdirs; do
18153 if test "X$x" = "X$found_dir"; then
18154 haveit=yes
18155 break
18156 fi
18157 done
18158 if test -z "$haveit"; then
18159 rpathdirs="$rpathdirs $found_dir"
18160 fi
18161 else
18162 haveit=
18163 for x in $LDFLAGS $LIBICONV; do
18164
18165 acl_save_prefix="$prefix"
18166 prefix="$acl_final_prefix"
18167 acl_save_exec_prefix="$exec_prefix"
18168 exec_prefix="$acl_final_exec_prefix"
18169 eval x=\"$x\"
18170 exec_prefix="$acl_save_exec_prefix"
18171 prefix="$acl_save_prefix"
18172
18173 if test "X$x" = "X-L$found_dir"; then
18174 haveit=yes
18175 break
18176 fi
18177 done
18178 if test -z "$haveit"; then
18179 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
18180 fi
18181 if test "$hardcode_minus_L" != no; then
18182 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18183 else
18184 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18185 fi
18186 fi
18187 fi
18188 fi
18189 else
18190 if test "X$found_a" != "X"; then
18191 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
18192 else
18193 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
18194 fi
18195 fi
18196 additional_includedir=
18197 case "$found_dir" in
18198 */lib | */lib/)
18199 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18200 additional_includedir="$basedir/include"
18201 ;;
18202 esac
18203 if test "X$additional_includedir" != "X"; then
18204 if test "X$additional_includedir" != "X/usr/include"; then
18205 haveit=
18206 if test "X$additional_includedir" = "X/usr/local/include"; then
18207 if test -n "$GCC"; then
18208 case $host_os in
18209 linux*) haveit=yes;;
18210 esac
18211 fi
18212 fi
18213 if test -z "$haveit"; then
18214 for x in $CPPFLAGS $INCICONV; do
18215
18216 acl_save_prefix="$prefix"
18217 prefix="$acl_final_prefix"
18218 acl_save_exec_prefix="$exec_prefix"
18219 exec_prefix="$acl_final_exec_prefix"
18220 eval x=\"$x\"
18221 exec_prefix="$acl_save_exec_prefix"
18222 prefix="$acl_save_prefix"
18223
18224 if test "X$x" = "X-I$additional_includedir"; then
18225 haveit=yes
18226 break
18227 fi
18228 done
18229 if test -z "$haveit"; then
18230 if test -d "$additional_includedir"; then
18231 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
18232 fi
18233 fi
18234 fi
18235 fi
18236 fi
18237 if test -n "$found_la"; then
18238 save_libdir="$libdir"
18239 case "$found_la" in
18240 */* | *\\*) . "$found_la" ;;
18241 *) . "./$found_la" ;;
18242 esac
18243 libdir="$save_libdir"
18244 for dep in $dependency_libs; do
18245 case "$dep" in
18246 -L*)
18247 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18248 if test "X$additional_libdir" != "X/usr/lib"; then
18249 haveit=
18250 if test "X$additional_libdir" = "X/usr/local/lib"; then
18251 if test -n "$GCC"; then
18252 case $host_os in
18253 linux*) haveit=yes;;
18254 esac
18255 fi
18256 fi
18257 if test -z "$haveit"; then
18258 haveit=
18259 for x in $LDFLAGS $LIBICONV; do
18260
18261 acl_save_prefix="$prefix"
18262 prefix="$acl_final_prefix"
18263 acl_save_exec_prefix="$exec_prefix"
18264 exec_prefix="$acl_final_exec_prefix"
18265 eval x=\"$x\"
18266 exec_prefix="$acl_save_exec_prefix"
18267 prefix="$acl_save_prefix"
18268
18269 if test "X$x" = "X-L$additional_libdir"; then
18270 haveit=yes
18271 break
18272 fi
18273 done
18274 if test -z "$haveit"; then
18275 if test -d "$additional_libdir"; then
18276 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
18277 fi
18278 fi
18279 haveit=
18280 for x in $LDFLAGS $LTLIBICONV; do
18281
18282 acl_save_prefix="$prefix"
18283 prefix="$acl_final_prefix"
18284 acl_save_exec_prefix="$exec_prefix"
18285 exec_prefix="$acl_final_exec_prefix"
18286 eval x=\"$x\"
18287 exec_prefix="$acl_save_exec_prefix"
18288 prefix="$acl_save_prefix"
18289
18290 if test "X$x" = "X-L$additional_libdir"; then
18291 haveit=yes
18292 break
18293 fi
18294 done
18295 if test -z "$haveit"; then
18296 if test -d "$additional_libdir"; then
18297 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
18298 fi
18299 fi
18300 fi
18301 fi
18302 ;;
18303 -R*)
18304 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18305 if test "$enable_rpath" != no; then
18306 haveit=
18307 for x in $rpathdirs; do
18308 if test "X$x" = "X$dir"; then
18309 haveit=yes
18310 break
18311 fi
18312 done
18313 if test -z "$haveit"; then
18314 rpathdirs="$rpathdirs $dir"
18315 fi
18316 haveit=
18317 for x in $ltrpathdirs; do
18318 if test "X$x" = "X$dir"; then
18319 haveit=yes
18320 break
18321 fi
18322 done
18323 if test -z "$haveit"; then
18324 ltrpathdirs="$ltrpathdirs $dir"
18325 fi
18326 fi
18327 ;;
18328 -l*)
18329 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18330 ;;
18331 *.la)
18332 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18333 ;;
18334 *)
18335 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18336 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18337 ;;
18338 esac
18339 done
18340 fi
18341 else
18342 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18343 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18344 fi
18345 fi
18346 fi
18347 done
18348 done
18349 if test "X$rpathdirs" != "X"; then
18350 if test -n "$hardcode_libdir_separator"; then
18351 alldirs=
18352 for found_dir in $rpathdirs; do
18353 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18354 done
18355 acl_save_libdir="$libdir"
18356 libdir="$alldirs"
18357 eval flag=\"$hardcode_libdir_flag_spec\"
18358 libdir="$acl_save_libdir"
18359 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18360 else
18361 for found_dir in $rpathdirs; do
18362 acl_save_libdir="$libdir"
18363 libdir="$found_dir"
18364 eval flag=\"$hardcode_libdir_flag_spec\"
18365 libdir="$acl_save_libdir"
18366 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18367 done
18368 fi
18369 fi
18370 if test "X$ltrpathdirs" != "X"; then
18371 for found_dir in $ltrpathdirs; do
18372 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18373 done
18374 fi
18375
18376
18377
18378
18379
18380
18381
18382 am_save_CPPFLAGS="$CPPFLAGS"
18383
18384 for element in $INCICONV; do
18385 haveit=
18386 for x in $CPPFLAGS; do
18387
18388 acl_save_prefix="$prefix"
18389 prefix="$acl_final_prefix"
18390 acl_save_exec_prefix="$exec_prefix"
18391 exec_prefix="$acl_final_exec_prefix"
18392 eval x=\"$x\"
18393 exec_prefix="$acl_save_exec_prefix"
18394 prefix="$acl_save_prefix"
18395
18396 if test "X$x" = "X$element"; then
18397 haveit=yes
18398 break
18399 fi
18400 done
18401 if test -z "$haveit"; then
18402 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18403 fi
18404 done
18405
18406
18407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18408 $as_echo_n "checking for iconv... " >&6; }
18409 if test "${am_cv_func_iconv+set}" = set; then :
18410 $as_echo_n "(cached) " >&6
18411 else
18412
18413 am_cv_func_iconv="no, consider installing GNU libiconv"
18414 am_cv_lib_iconv=no
18415 if test x$gcc_no_link = xyes; then
18416 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18417 fi
18418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18419 /* end confdefs.h. */
18420 #include <stdlib.h>
18421 #include <iconv.h>
18422 int
18423 main ()
18424 {
18425 iconv_t cd = iconv_open("","");
18426 iconv(cd,NULL,NULL,NULL,NULL);
18427 iconv_close(cd);
18428 ;
18429 return 0;
18430 }
18431 _ACEOF
18432 if ac_fn_c_try_link "$LINENO"; then :
18433 am_cv_func_iconv=yes
18434 fi
18435 rm -f core conftest.err conftest.$ac_objext \
18436 conftest$ac_exeext conftest.$ac_ext
18437 if test "$am_cv_func_iconv" != yes; then
18438 am_save_LIBS="$LIBS"
18439 LIBS="$LIBS $LIBICONV"
18440 if test x$gcc_no_link = xyes; then
18441 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18442 fi
18443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18444 /* end confdefs.h. */
18445 #include <stdlib.h>
18446 #include <iconv.h>
18447 int
18448 main ()
18449 {
18450 iconv_t cd = iconv_open("","");
18451 iconv(cd,NULL,NULL,NULL,NULL);
18452 iconv_close(cd);
18453 ;
18454 return 0;
18455 }
18456 _ACEOF
18457 if ac_fn_c_try_link "$LINENO"; then :
18458 am_cv_lib_iconv=yes
18459 am_cv_func_iconv=yes
18460 fi
18461 rm -f core conftest.err conftest.$ac_objext \
18462 conftest$ac_exeext conftest.$ac_ext
18463 LIBS="$am_save_LIBS"
18464 fi
18465
18466 fi
18467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18468 $as_echo "$am_cv_func_iconv" >&6; }
18469 if test "$am_cv_func_iconv" = yes; then
18470
18471 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18472
18473 fi
18474 if test "$am_cv_lib_iconv" = yes; then
18475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18476 $as_echo_n "checking how to link with libiconv... " >&6; }
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18478 $as_echo "$LIBICONV" >&6; }
18479 else
18480 CPPFLAGS="$am_save_CPPFLAGS"
18481 LIBICONV=
18482 LTLIBICONV=
18483 fi
18484
18485
18486
18487 if test "$am_cv_func_iconv" = yes; then
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
18489 $as_echo_n "checking for iconv declaration... " >&6; }
18490 if test "${am_cv_proto_iconv+set}" = set; then :
18491 $as_echo_n "(cached) " >&6
18492 else
18493
18494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18495 /* end confdefs.h. */
18496
18497 #include <stdlib.h>
18498 #include <iconv.h>
18499 extern
18500 #ifdef __cplusplus
18501 "C"
18502 #endif
18503 #if defined(__STDC__) || defined(__cplusplus)
18504 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
18505 #else
18506 size_t iconv();
18507 #endif
18508
18509 int
18510 main ()
18511 {
18512
18513 ;
18514 return 0;
18515 }
18516 _ACEOF
18517 if ac_fn_c_try_compile "$LINENO"; then :
18518 am_cv_proto_iconv_arg1=""
18519 else
18520 am_cv_proto_iconv_arg1="const"
18521 fi
18522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18523 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);"
18524 fi
18525
18526 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
18527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
18528 }$am_cv_proto_iconv" >&5
18529 $as_echo "${ac_t:-
18530 }$am_cv_proto_iconv" >&6; }
18531
18532 cat >>confdefs.h <<_ACEOF
18533 #define ICONV_CONST $am_cv_proto_iconv_arg1
18534 _ACEOF
18535
18536 fi
18537
18538
18539 if test "x${GCC}" = xyes; then
18540
18541 WARNING_CFLAGS='-W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long'
18542
18543
18544 EXTRA_CFLAGS='-fexceptions -fasynchronous-unwind-tables'
18545
18546
18547 STRICT_WARNING_CFLAGS='-Wstrict-prototypes -pedantic'
18548
18549
18550 ERROR_CFLAGS=
18551 if test "x${ENABLE_WERROR}" = xyes; then
18552 ERROR_CFLAGS='-Werror'
18553 fi
18554
18555 fi
18556
18557 if test "x${COMPILE_XMLJ}" = xyes; then
18558
18559 succeeded=no
18560
18561 if test -z "$PKG_CONFIG"; then
18562 # Extract the first word of "pkg-config", so it can be a program name with args.
18563 set dummy pkg-config; ac_word=$2
18564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18565 $as_echo_n "checking for $ac_word... " >&6; }
18566 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
18567 $as_echo_n "(cached) " >&6
18568 else
18569 case $PKG_CONFIG in
18570 [\\/]* | ?:[\\/]*)
18571 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18572 ;;
18573 *)
18574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18575 for as_dir in $PATH
18576 do
18577 IFS=$as_save_IFS
18578 test -z "$as_dir" && as_dir=.
18579 for ac_exec_ext in '' $ac_executable_extensions; do
18580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18581 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18583 break 2
18584 fi
18585 done
18586 done
18587 IFS=$as_save_IFS
18588
18589 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
18590 ;;
18591 esac
18592 fi
18593 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18594 if test -n "$PKG_CONFIG"; then
18595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18596 $as_echo "$PKG_CONFIG" >&6; }
18597 else
18598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18599 $as_echo "no" >&6; }
18600 fi
18601
18602
18603 fi
18604
18605 if test "$PKG_CONFIG" = "no" ; then
18606 echo "*** The pkg-config script could not be found. Make sure it is"
18607 echo "*** in your path, or set the PKG_CONFIG environment variable"
18608 echo "*** to the full path to pkg-config."
18609 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
18610 else
18611 PKG_CONFIG_MIN_VERSION=0.9.0
18612 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.8" >&5
18614 $as_echo_n "checking for libxml-2.0 >= 2.6.8... " >&6; }
18615
18616 if $PKG_CONFIG --exists "libxml-2.0 >= 2.6.8" ; then
18617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18618 $as_echo "yes" >&6; }
18619 succeeded=yes
18620
18621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XML_CFLAGS" >&5
18622 $as_echo_n "checking XML_CFLAGS... " >&6; }
18623 XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.8"`
18624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML_CFLAGS" >&5
18625 $as_echo "$XML_CFLAGS" >&6; }
18626
18627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XML_LIBS" >&5
18628 $as_echo_n "checking XML_LIBS... " >&6; }
18629 XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.8"`
18630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML_LIBS" >&5
18631 $as_echo "$XML_LIBS" >&6; }
18632 else
18633 XML_CFLAGS=""
18634 XML_LIBS=""
18635 ## If we have a custom action on failure, don't print errors, but
18636 ## do set a variable so people can do so.
18637 XML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 >= 2.6.8"`
18638 echo $XML_PKG_ERRORS
18639 fi
18640
18641
18642
18643 else
18644 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18645 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18646 fi
18647 fi
18648
18649 if test $succeeded = yes; then
18650 :
18651 else
18652 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
18653 fi
18654
18655
18656 succeeded=no
18657
18658 if test -z "$PKG_CONFIG"; then
18659 # Extract the first word of "pkg-config", so it can be a program name with args.
18660 set dummy pkg-config; ac_word=$2
18661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18662 $as_echo_n "checking for $ac_word... " >&6; }
18663 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
18664 $as_echo_n "(cached) " >&6
18665 else
18666 case $PKG_CONFIG in
18667 [\\/]* | ?:[\\/]*)
18668 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18669 ;;
18670 *)
18671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18672 for as_dir in $PATH
18673 do
18674 IFS=$as_save_IFS
18675 test -z "$as_dir" && as_dir=.
18676 for ac_exec_ext in '' $ac_executable_extensions; do
18677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18678 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18680 break 2
18681 fi
18682 done
18683 done
18684 IFS=$as_save_IFS
18685
18686 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
18687 ;;
18688 esac
18689 fi
18690 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18691 if test -n "$PKG_CONFIG"; then
18692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18693 $as_echo "$PKG_CONFIG" >&6; }
18694 else
18695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18696 $as_echo "no" >&6; }
18697 fi
18698
18699
18700 fi
18701
18702 if test "$PKG_CONFIG" = "no" ; then
18703 echo "*** The pkg-config script could not be found. Make sure it is"
18704 echo "*** in your path, or set the PKG_CONFIG environment variable"
18705 echo "*** to the full path to pkg-config."
18706 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
18707 else
18708 PKG_CONFIG_MIN_VERSION=0.9.0
18709 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxslt >= 1.1.11" >&5
18711 $as_echo_n "checking for libxslt >= 1.1.11... " >&6; }
18712
18713 if $PKG_CONFIG --exists "libxslt >= 1.1.11" ; then
18714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18715 $as_echo "yes" >&6; }
18716 succeeded=yes
18717
18718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XSLT_CFLAGS" >&5
18719 $as_echo_n "checking XSLT_CFLAGS... " >&6; }
18720 XSLT_CFLAGS=`$PKG_CONFIG --cflags "libxslt >= 1.1.11"`
18721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLT_CFLAGS" >&5
18722 $as_echo "$XSLT_CFLAGS" >&6; }
18723
18724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XSLT_LIBS" >&5
18725 $as_echo_n "checking XSLT_LIBS... " >&6; }
18726 XSLT_LIBS=`$PKG_CONFIG --libs "libxslt >= 1.1.11"`
18727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLT_LIBS" >&5
18728 $as_echo "$XSLT_LIBS" >&6; }
18729 else
18730 XSLT_CFLAGS=""
18731 XSLT_LIBS=""
18732 ## If we have a custom action on failure, don't print errors, but
18733 ## do set a variable so people can do so.
18734 XSLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxslt >= 1.1.11"`
18735 echo $XSLT_PKG_ERRORS
18736 fi
18737
18738
18739
18740 else
18741 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18742 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18743 fi
18744 fi
18745
18746 if test $succeeded = yes; then
18747 :
18748 else
18749 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
18750 fi
18751
18752
18753
18754
18755
18756 fi
18757
18758 if test "x${COMPILE_GTK_PEER}" = xyes; then
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
18760 $as_echo_n "checking for X... " >&6; }
18761
18762
18763 # Check whether --with-x was given.
18764 if test "${with_x+set}" = set; then :
18765 withval=$with_x;
18766 fi
18767
18768 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18769 if test "x$with_x" = xno; then
18770 # The user explicitly disabled X.
18771 have_x=disabled
18772 else
18773 case $x_includes,$x_libraries in #(
18774 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
18775 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
18776 $as_echo_n "(cached) " >&6
18777 else
18778 # One or both of the vars are not set, and there is no cached value.
18779 ac_x_includes=no ac_x_libraries=no
18780 rm -f -r conftest.dir
18781 if mkdir conftest.dir; then
18782 cd conftest.dir
18783 cat >Imakefile <<'_ACEOF'
18784 incroot:
18785 @echo incroot='${INCROOT}'
18786 usrlibdir:
18787 @echo usrlibdir='${USRLIBDIR}'
18788 libdir:
18789 @echo libdir='${LIBDIR}'
18790 _ACEOF
18791 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
18792 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18793 for ac_var in incroot usrlibdir libdir; do
18794 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18795 done
18796 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18797 for ac_extension in a so sl dylib la dll; do
18798 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18799 test -f "$ac_im_libdir/libX11.$ac_extension"; then
18800 ac_im_usrlibdir=$ac_im_libdir; break
18801 fi
18802 done
18803 # Screen out bogus values from the imake configuration. They are
18804 # bogus both because they are the default anyway, and because
18805 # using them would break gcc on systems where it needs fixed includes.
18806 case $ac_im_incroot in
18807 /usr/include) ac_x_includes= ;;
18808 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18809 esac
18810 case $ac_im_usrlibdir in
18811 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
18812 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18813 esac
18814 fi
18815 cd ..
18816 rm -f -r conftest.dir
18817 fi
18818
18819 # Standard set of common directories for X headers.
18820 # Check X11 before X11Rn because it is often a symlink to the current release.
18821 ac_x_header_dirs='
18822 /usr/X11/include
18823 /usr/X11R7/include
18824 /usr/X11R6/include
18825 /usr/X11R5/include
18826 /usr/X11R4/include
18827
18828 /usr/include/X11
18829 /usr/include/X11R7
18830 /usr/include/X11R6
18831 /usr/include/X11R5
18832 /usr/include/X11R4
18833
18834 /usr/local/X11/include
18835 /usr/local/X11R7/include
18836 /usr/local/X11R6/include
18837 /usr/local/X11R5/include
18838 /usr/local/X11R4/include
18839
18840 /usr/local/include/X11
18841 /usr/local/include/X11R7
18842 /usr/local/include/X11R6
18843 /usr/local/include/X11R5
18844 /usr/local/include/X11R4
18845
18846 /usr/X386/include
18847 /usr/x386/include
18848 /usr/XFree86/include/X11
18849
18850 /usr/include
18851 /usr/local/include
18852 /usr/unsupported/include
18853 /usr/athena/include
18854 /usr/local/x11r5/include
18855 /usr/lpp/Xamples/include
18856
18857 /usr/openwin/include
18858 /usr/openwin/share/include'
18859
18860 if test "$ac_x_includes" = no; then
18861 # Guess where to find include files, by looking for Xlib.h.
18862 # First, try using that file with no special directory specified.
18863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18864 /* end confdefs.h. */
18865 #include <X11/Xlib.h>
18866 _ACEOF
18867 if ac_fn_c_try_cpp "$LINENO"; then :
18868 # We can compile using X headers with no special include directory.
18869 ac_x_includes=
18870 else
18871 for ac_dir in $ac_x_header_dirs; do
18872 if test -r "$ac_dir/X11/Xlib.h"; then
18873 ac_x_includes=$ac_dir
18874 break
18875 fi
18876 done
18877 fi
18878 rm -f conftest.err conftest.$ac_ext
18879 fi # $ac_x_includes = no
18880
18881 if test "$ac_x_libraries" = no; then
18882 # Check for the libraries.
18883 # See if we find them without any special options.
18884 # Don't add to $LIBS permanently.
18885 ac_save_LIBS=$LIBS
18886 LIBS="-lX11 $LIBS"
18887 if test x$gcc_no_link = xyes; then
18888 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18889 fi
18890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18891 /* end confdefs.h. */
18892 #include <X11/Xlib.h>
18893 int
18894 main ()
18895 {
18896 XrmInitialize ()
18897 ;
18898 return 0;
18899 }
18900 _ACEOF
18901 if ac_fn_c_try_link "$LINENO"; then :
18902 LIBS=$ac_save_LIBS
18903 # We can link X programs with no special library path.
18904 ac_x_libraries=
18905 else
18906 LIBS=$ac_save_LIBS
18907 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18908 do
18909 # Don't even attempt the hair of trying to link an X program!
18910 for ac_extension in a so sl dylib la dll; do
18911 if test -r "$ac_dir/libX11.$ac_extension"; then
18912 ac_x_libraries=$ac_dir
18913 break 2
18914 fi
18915 done
18916 done
18917 fi
18918 rm -f core conftest.err conftest.$ac_objext \
18919 conftest$ac_exeext conftest.$ac_ext
18920 fi # $ac_x_libraries = no
18921
18922 case $ac_x_includes,$ac_x_libraries in #(
18923 no,* | *,no | *\'*)
18924 # Didn't find X, or a directory has "'" in its name.
18925 ac_cv_have_x="have_x=no";; #(
18926 *)
18927 # Record where we found X for the cache.
18928 ac_cv_have_x="have_x=yes\
18929 ac_x_includes='$ac_x_includes'\
18930 ac_x_libraries='$ac_x_libraries'"
18931 esac
18932 fi
18933 ;; #(
18934 *) have_x=yes;;
18935 esac
18936 eval "$ac_cv_have_x"
18937 fi # $with_x != no
18938
18939 if test "$have_x" != yes; then
18940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
18941 $as_echo "$have_x" >&6; }
18942 no_x=yes
18943 else
18944 # If each of the values was on the command line, it overrides each guess.
18945 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18946 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18947 # Update the cache value to reflect the command line values.
18948 ac_cv_have_x="have_x=yes\
18949 ac_x_includes='$x_includes'\
18950 ac_x_libraries='$x_libraries'"
18951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
18952 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
18953 fi
18954
18955 if test "$no_x" = yes; then
18956 # Not all programs may use this symbol, but it does not hurt to define it.
18957
18958 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
18959
18960 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18961 else
18962 if test -n "$x_includes"; then
18963 X_CFLAGS="$X_CFLAGS -I$x_includes"
18964 fi
18965
18966 # It would also be nice to do this for all -L options, not just this one.
18967 if test -n "$x_libraries"; then
18968 X_LIBS="$X_LIBS -L$x_libraries"
18969 # For Solaris; some versions of Sun CC require a space after -R and
18970 # others require no space. Words are not sufficient . . . .
18971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
18972 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
18973 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18974 ac_xsave_c_werror_flag=$ac_c_werror_flag
18975 ac_c_werror_flag=yes
18976 if test x$gcc_no_link = xyes; then
18977 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18978 fi
18979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18980 /* end confdefs.h. */
18981
18982 int
18983 main ()
18984 {
18985
18986 ;
18987 return 0;
18988 }
18989 _ACEOF
18990 if ac_fn_c_try_link "$LINENO"; then :
18991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18992 $as_echo "no" >&6; }
18993 X_LIBS="$X_LIBS -R$x_libraries"
18994 else
18995 LIBS="$ac_xsave_LIBS -R $x_libraries"
18996 if test x$gcc_no_link = xyes; then
18997 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18998 fi
18999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19000 /* end confdefs.h. */
19001
19002 int
19003 main ()
19004 {
19005
19006 ;
19007 return 0;
19008 }
19009 _ACEOF
19010 if ac_fn_c_try_link "$LINENO"; then :
19011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19012 $as_echo "yes" >&6; }
19013 X_LIBS="$X_LIBS -R $x_libraries"
19014 else
19015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
19016 $as_echo "neither works" >&6; }
19017 fi
19018 rm -f core conftest.err conftest.$ac_objext \
19019 conftest$ac_exeext conftest.$ac_ext
19020 fi
19021 rm -f core conftest.err conftest.$ac_objext \
19022 conftest$ac_exeext conftest.$ac_ext
19023 ac_c_werror_flag=$ac_xsave_c_werror_flag
19024 LIBS=$ac_xsave_LIBS
19025 fi
19026
19027 # Check for system-dependent libraries X programs must link with.
19028 # Do this before checking for the system-independent R6 libraries
19029 # (-lICE), since we may need -lsocket or whatever for X linking.
19030
19031 if test "$ISC" = yes; then
19032 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19033 else
19034 # Martyn Johnson says this is needed for Ultrix, if the X
19035 # libraries were built with DECnet support. And Karl Berry says
19036 # the Alpha needs dnet_stub (dnet does not exist).
19037 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19038 if test x$gcc_no_link = xyes; then
19039 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19040 fi
19041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19042 /* end confdefs.h. */
19043
19044 /* Override any GCC internal prototype to avoid an error.
19045 Use char because int might match the return type of a GCC
19046 builtin and then its argument prototype would still apply. */
19047 #ifdef __cplusplus
19048 extern "C"
19049 #endif
19050 char XOpenDisplay ();
19051 int
19052 main ()
19053 {
19054 return XOpenDisplay ();
19055 ;
19056 return 0;
19057 }
19058 _ACEOF
19059 if ac_fn_c_try_link "$LINENO"; then :
19060
19061 else
19062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
19063 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
19064 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
19065 $as_echo_n "(cached) " >&6
19066 else
19067 ac_check_lib_save_LIBS=$LIBS
19068 LIBS="-ldnet $LIBS"
19069 if test x$gcc_no_link = xyes; then
19070 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19071 fi
19072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19073 /* end confdefs.h. */
19074
19075 /* Override any GCC internal prototype to avoid an error.
19076 Use char because int might match the return type of a GCC
19077 builtin and then its argument prototype would still apply. */
19078 #ifdef __cplusplus
19079 extern "C"
19080 #endif
19081 char dnet_ntoa ();
19082 int
19083 main ()
19084 {
19085 return dnet_ntoa ();
19086 ;
19087 return 0;
19088 }
19089 _ACEOF
19090 if ac_fn_c_try_link "$LINENO"; then :
19091 ac_cv_lib_dnet_dnet_ntoa=yes
19092 else
19093 ac_cv_lib_dnet_dnet_ntoa=no
19094 fi
19095 rm -f core conftest.err conftest.$ac_objext \
19096 conftest$ac_exeext conftest.$ac_ext
19097 LIBS=$ac_check_lib_save_LIBS
19098 fi
19099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19100 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19101 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
19102 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19103 fi
19104
19105 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
19107 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
19108 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
19109 $as_echo_n "(cached) " >&6
19110 else
19111 ac_check_lib_save_LIBS=$LIBS
19112 LIBS="-ldnet_stub $LIBS"
19113 if test x$gcc_no_link = xyes; then
19114 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19115 fi
19116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19117 /* end confdefs.h. */
19118
19119 /* Override any GCC internal prototype to avoid an error.
19120 Use char because int might match the return type of a GCC
19121 builtin and then its argument prototype would still apply. */
19122 #ifdef __cplusplus
19123 extern "C"
19124 #endif
19125 char dnet_ntoa ();
19126 int
19127 main ()
19128 {
19129 return dnet_ntoa ();
19130 ;
19131 return 0;
19132 }
19133 _ACEOF
19134 if ac_fn_c_try_link "$LINENO"; then :
19135 ac_cv_lib_dnet_stub_dnet_ntoa=yes
19136 else
19137 ac_cv_lib_dnet_stub_dnet_ntoa=no
19138 fi
19139 rm -f core conftest.err conftest.$ac_objext \
19140 conftest$ac_exeext conftest.$ac_ext
19141 LIBS=$ac_check_lib_save_LIBS
19142 fi
19143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19144 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
19145 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
19146 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19147 fi
19148
19149 fi
19150 fi
19151 rm -f core conftest.err conftest.$ac_objext \
19152 conftest$ac_exeext conftest.$ac_ext
19153 LIBS="$ac_xsave_LIBS"
19154
19155 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19156 # to get the SysV transport functions.
19157 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19158 # needs -lnsl.
19159 # The nsl library prevents programs from opening the X display
19160 # on Irix 5.2, according to T.E. Dickey.
19161 # The functions gethostbyname, getservbyname, and inet_addr are
19162 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19163 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19164 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
19165
19166 fi
19167
19168 if test $ac_cv_func_gethostbyname = no; then
19169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19170 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19171 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
19172 $as_echo_n "(cached) " >&6
19173 else
19174 ac_check_lib_save_LIBS=$LIBS
19175 LIBS="-lnsl $LIBS"
19176 if test x$gcc_no_link = xyes; then
19177 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19178 fi
19179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19180 /* end confdefs.h. */
19181
19182 /* Override any GCC internal prototype to avoid an error.
19183 Use char because int might match the return type of a GCC
19184 builtin and then its argument prototype would still apply. */
19185 #ifdef __cplusplus
19186 extern "C"
19187 #endif
19188 char gethostbyname ();
19189 int
19190 main ()
19191 {
19192 return gethostbyname ();
19193 ;
19194 return 0;
19195 }
19196 _ACEOF
19197 if ac_fn_c_try_link "$LINENO"; then :
19198 ac_cv_lib_nsl_gethostbyname=yes
19199 else
19200 ac_cv_lib_nsl_gethostbyname=no
19201 fi
19202 rm -f core conftest.err conftest.$ac_objext \
19203 conftest$ac_exeext conftest.$ac_ext
19204 LIBS=$ac_check_lib_save_LIBS
19205 fi
19206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19207 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19208 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
19209 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19210 fi
19211
19212 if test $ac_cv_lib_nsl_gethostbyname = no; then
19213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
19214 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
19215 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
19216 $as_echo_n "(cached) " >&6
19217 else
19218 ac_check_lib_save_LIBS=$LIBS
19219 LIBS="-lbsd $LIBS"
19220 if test x$gcc_no_link = xyes; then
19221 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19222 fi
19223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19224 /* end confdefs.h. */
19225
19226 /* Override any GCC internal prototype to avoid an error.
19227 Use char because int might match the return type of a GCC
19228 builtin and then its argument prototype would still apply. */
19229 #ifdef __cplusplus
19230 extern "C"
19231 #endif
19232 char gethostbyname ();
19233 int
19234 main ()
19235 {
19236 return gethostbyname ();
19237 ;
19238 return 0;
19239 }
19240 _ACEOF
19241 if ac_fn_c_try_link "$LINENO"; then :
19242 ac_cv_lib_bsd_gethostbyname=yes
19243 else
19244 ac_cv_lib_bsd_gethostbyname=no
19245 fi
19246 rm -f core conftest.err conftest.$ac_objext \
19247 conftest$ac_exeext conftest.$ac_ext
19248 LIBS=$ac_check_lib_save_LIBS
19249 fi
19250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
19251 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
19252 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
19253 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19254 fi
19255
19256 fi
19257 fi
19258
19259 # lieder@skyler.mavd.honeywell.com says without -lsocket,
19260 # socket/setsockopt and other routines are undefined under SCO ODT
19261 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
19262 # on later versions), says Simon Leinen: it contains gethostby*
19263 # variants that don't use the name server (or something). -lsocket
19264 # must be given before -lnsl if both are needed. We assume that
19265 # if connect needs -lnsl, so does gethostbyname.
19266 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
19267 if test "x$ac_cv_func_connect" = x""yes; then :
19268
19269 fi
19270
19271 if test $ac_cv_func_connect = no; then
19272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
19273 $as_echo_n "checking for connect in -lsocket... " >&6; }
19274 if test "${ac_cv_lib_socket_connect+set}" = set; then :
19275 $as_echo_n "(cached) " >&6
19276 else
19277 ac_check_lib_save_LIBS=$LIBS
19278 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19279 if test x$gcc_no_link = xyes; then
19280 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19281 fi
19282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19283 /* end confdefs.h. */
19284
19285 /* Override any GCC internal prototype to avoid an error.
19286 Use char because int might match the return type of a GCC
19287 builtin and then its argument prototype would still apply. */
19288 #ifdef __cplusplus
19289 extern "C"
19290 #endif
19291 char connect ();
19292 int
19293 main ()
19294 {
19295 return connect ();
19296 ;
19297 return 0;
19298 }
19299 _ACEOF
19300 if ac_fn_c_try_link "$LINENO"; then :
19301 ac_cv_lib_socket_connect=yes
19302 else
19303 ac_cv_lib_socket_connect=no
19304 fi
19305 rm -f core conftest.err conftest.$ac_objext \
19306 conftest$ac_exeext conftest.$ac_ext
19307 LIBS=$ac_check_lib_save_LIBS
19308 fi
19309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
19310 $as_echo "$ac_cv_lib_socket_connect" >&6; }
19311 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
19312 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19313 fi
19314
19315 fi
19316
19317 # Guillermo Gomez says -lposix is necessary on A/UX.
19318 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
19319 if test "x$ac_cv_func_remove" = x""yes; then :
19320
19321 fi
19322
19323 if test $ac_cv_func_remove = no; then
19324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
19325 $as_echo_n "checking for remove in -lposix... " >&6; }
19326 if test "${ac_cv_lib_posix_remove+set}" = set; then :
19327 $as_echo_n "(cached) " >&6
19328 else
19329 ac_check_lib_save_LIBS=$LIBS
19330 LIBS="-lposix $LIBS"
19331 if test x$gcc_no_link = xyes; then
19332 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19333 fi
19334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19335 /* end confdefs.h. */
19336
19337 /* Override any GCC internal prototype to avoid an error.
19338 Use char because int might match the return type of a GCC
19339 builtin and then its argument prototype would still apply. */
19340 #ifdef __cplusplus
19341 extern "C"
19342 #endif
19343 char remove ();
19344 int
19345 main ()
19346 {
19347 return remove ();
19348 ;
19349 return 0;
19350 }
19351 _ACEOF
19352 if ac_fn_c_try_link "$LINENO"; then :
19353 ac_cv_lib_posix_remove=yes
19354 else
19355 ac_cv_lib_posix_remove=no
19356 fi
19357 rm -f core conftest.err conftest.$ac_objext \
19358 conftest$ac_exeext conftest.$ac_ext
19359 LIBS=$ac_check_lib_save_LIBS
19360 fi
19361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
19362 $as_echo "$ac_cv_lib_posix_remove" >&6; }
19363 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
19364 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19365 fi
19366
19367 fi
19368
19369 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19370 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
19371 if test "x$ac_cv_func_shmat" = x""yes; then :
19372
19373 fi
19374
19375 if test $ac_cv_func_shmat = no; then
19376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
19377 $as_echo_n "checking for shmat in -lipc... " >&6; }
19378 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
19379 $as_echo_n "(cached) " >&6
19380 else
19381 ac_check_lib_save_LIBS=$LIBS
19382 LIBS="-lipc $LIBS"
19383 if test x$gcc_no_link = xyes; then
19384 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19385 fi
19386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19387 /* end confdefs.h. */
19388
19389 /* Override any GCC internal prototype to avoid an error.
19390 Use char because int might match the return type of a GCC
19391 builtin and then its argument prototype would still apply. */
19392 #ifdef __cplusplus
19393 extern "C"
19394 #endif
19395 char shmat ();
19396 int
19397 main ()
19398 {
19399 return shmat ();
19400 ;
19401 return 0;
19402 }
19403 _ACEOF
19404 if ac_fn_c_try_link "$LINENO"; then :
19405 ac_cv_lib_ipc_shmat=yes
19406 else
19407 ac_cv_lib_ipc_shmat=no
19408 fi
19409 rm -f core conftest.err conftest.$ac_objext \
19410 conftest$ac_exeext conftest.$ac_ext
19411 LIBS=$ac_check_lib_save_LIBS
19412 fi
19413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
19414 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
19415 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
19416 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19417 fi
19418
19419 fi
19420 fi
19421
19422 # Check for libraries that X11R6 Xt/Xaw programs need.
19423 ac_save_LDFLAGS=$LDFLAGS
19424 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19425 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19426 # check for ICE first), but we must link in the order -lSM -lICE or
19427 # we get undefined symbols. So assume we have SM if we have ICE.
19428 # These have to be linked with before -lX11, unlike the other
19429 # libraries we check for below, so use a different variable.
19430 # John Interrante, Karl Berry
19431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
19432 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
19433 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
19434 $as_echo_n "(cached) " >&6
19435 else
19436 ac_check_lib_save_LIBS=$LIBS
19437 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19438 if test x$gcc_no_link = xyes; then
19439 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19440 fi
19441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19442 /* end confdefs.h. */
19443
19444 /* Override any GCC internal prototype to avoid an error.
19445 Use char because int might match the return type of a GCC
19446 builtin and then its argument prototype would still apply. */
19447 #ifdef __cplusplus
19448 extern "C"
19449 #endif
19450 char IceConnectionNumber ();
19451 int
19452 main ()
19453 {
19454 return IceConnectionNumber ();
19455 ;
19456 return 0;
19457 }
19458 _ACEOF
19459 if ac_fn_c_try_link "$LINENO"; then :
19460 ac_cv_lib_ICE_IceConnectionNumber=yes
19461 else
19462 ac_cv_lib_ICE_IceConnectionNumber=no
19463 fi
19464 rm -f core conftest.err conftest.$ac_objext \
19465 conftest$ac_exeext conftest.$ac_ext
19466 LIBS=$ac_check_lib_save_LIBS
19467 fi
19468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19469 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
19470 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
19471 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19472 fi
19473
19474 LDFLAGS=$ac_save_LDFLAGS
19475
19476 fi
19477
19478 if test "$no_x" = yes; then
19479 as_fn_error "GTK+ peers requested but no X library available" "$LINENO" 5
19480 fi
19481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestQueryExtension in -lXtst" >&5
19482 $as_echo_n "checking for XTestQueryExtension in -lXtst... " >&6; }
19483 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then :
19484 $as_echo_n "(cached) " >&6
19485 else
19486 ac_check_lib_save_LIBS=$LIBS
19487 LIBS="-lXtst ${X_LIBS} $LIBS"
19488 if test x$gcc_no_link = xyes; then
19489 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19490 fi
19491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19492 /* end confdefs.h. */
19493
19494 /* Override any GCC internal prototype to avoid an error.
19495 Use char because int might match the return type of a GCC
19496 builtin and then its argument prototype would still apply. */
19497 #ifdef __cplusplus
19498 extern "C"
19499 #endif
19500 char XTestQueryExtension ();
19501 int
19502 main ()
19503 {
19504 return XTestQueryExtension ();
19505 ;
19506 return 0;
19507 }
19508 _ACEOF
19509 if ac_fn_c_try_link "$LINENO"; then :
19510 ac_cv_lib_Xtst_XTestQueryExtension=yes
19511 else
19512 ac_cv_lib_Xtst_XTestQueryExtension=no
19513 fi
19514 rm -f core conftest.err conftest.$ac_objext \
19515 conftest$ac_exeext conftest.$ac_ext
19516 LIBS=$ac_check_lib_save_LIBS
19517 fi
19518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
19519 $as_echo "$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
19520 if test "x$ac_cv_lib_Xtst_XTestQueryExtension" = x""yes; then :
19521
19522 $as_echo "#define HAVE_XTEST 1" >>confdefs.h
19523 XTEST_LIBS="$XTEST_LIBS -X11 -lXtst"
19524 else
19525 true
19526 fi
19527
19528
19529
19530
19531 succeeded=no
19532
19533 if test -z "$PKG_CONFIG"; then
19534 # Extract the first word of "pkg-config", so it can be a program name with args.
19535 set dummy pkg-config; ac_word=$2
19536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19537 $as_echo_n "checking for $ac_word... " >&6; }
19538 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
19539 $as_echo_n "(cached) " >&6
19540 else
19541 case $PKG_CONFIG in
19542 [\\/]* | ?:[\\/]*)
19543 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19544 ;;
19545 *)
19546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19547 for as_dir in $PATH
19548 do
19549 IFS=$as_save_IFS
19550 test -z "$as_dir" && as_dir=.
19551 for ac_exec_ext in '' $ac_executable_extensions; do
19552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19553 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19555 break 2
19556 fi
19557 done
19558 done
19559 IFS=$as_save_IFS
19560
19561 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19562 ;;
19563 esac
19564 fi
19565 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19566 if test -n "$PKG_CONFIG"; then
19567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19568 $as_echo "$PKG_CONFIG" >&6; }
19569 else
19570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19571 $as_echo "no" >&6; }
19572 fi
19573
19574
19575 fi
19576
19577 if test "$PKG_CONFIG" = "no" ; then
19578 echo "*** The pkg-config script could not be found. Make sure it is"
19579 echo "*** in your path, or set the PKG_CONFIG environment variable"
19580 echo "*** to the full path to pkg-config."
19581 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19582 else
19583 PKG_CONFIG_MIN_VERSION=0.9.0
19584 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" >&5
19586 $as_echo_n "checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0... " >&6; }
19587
19588 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" ; then
19589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19590 $as_echo "yes" >&6; }
19591 succeeded=yes
19592
19593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
19594 $as_echo_n "checking GTK_CFLAGS... " >&6; }
19595 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
19596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
19597 $as_echo "$GTK_CFLAGS" >&6; }
19598
19599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
19600 $as_echo_n "checking GTK_LIBS... " >&6; }
19601 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
19602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
19603 $as_echo "$GTK_LIBS" >&6; }
19604 else
19605 GTK_CFLAGS=""
19606 GTK_LIBS=""
19607 ## If we have a custom action on failure, don't print errors, but
19608 ## do set a variable so people can do so.
19609 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
19610 echo $GTK_PKG_ERRORS
19611 fi
19612
19613
19614
19615 else
19616 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19617 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19618 fi
19619 fi
19620
19621 if test $succeeded = yes; then
19622 :
19623 else
19624 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
19625 fi
19626
19627
19628 succeeded=no
19629
19630 if test -z "$PKG_CONFIG"; then
19631 # Extract the first word of "pkg-config", so it can be a program name with args.
19632 set dummy pkg-config; ac_word=$2
19633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19634 $as_echo_n "checking for $ac_word... " >&6; }
19635 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
19636 $as_echo_n "(cached) " >&6
19637 else
19638 case $PKG_CONFIG in
19639 [\\/]* | ?:[\\/]*)
19640 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19641 ;;
19642 *)
19643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19644 for as_dir in $PATH
19645 do
19646 IFS=$as_save_IFS
19647 test -z "$as_dir" && as_dir=.
19648 for ac_exec_ext in '' $ac_executable_extensions; do
19649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19650 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19652 break 2
19653 fi
19654 done
19655 done
19656 IFS=$as_save_IFS
19657
19658 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19659 ;;
19660 esac
19661 fi
19662 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19663 if test -n "$PKG_CONFIG"; then
19664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19665 $as_echo "$PKG_CONFIG" >&6; }
19666 else
19667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19668 $as_echo "no" >&6; }
19669 fi
19670
19671
19672 fi
19673
19674 if test "$PKG_CONFIG" = "no" ; then
19675 echo "*** The pkg-config script could not be found. Make sure it is"
19676 echo "*** in your path, or set the PKG_CONFIG environment variable"
19677 echo "*** to the full path to pkg-config."
19678 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19679 else
19680 PKG_CONFIG_MIN_VERSION=0.9.0
19681 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
19683 $as_echo_n "checking for freetype2... " >&6; }
19684
19685 if $PKG_CONFIG --exists "freetype2" ; then
19686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19687 $as_echo "yes" >&6; }
19688 succeeded=yes
19689
19690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE2_CFLAGS" >&5
19691 $as_echo_n "checking FREETYPE2_CFLAGS... " >&6; }
19692 FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2"`
19693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE2_CFLAGS" >&5
19694 $as_echo "$FREETYPE2_CFLAGS" >&6; }
19695
19696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE2_LIBS" >&5
19697 $as_echo_n "checking FREETYPE2_LIBS... " >&6; }
19698 FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2"`
19699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE2_LIBS" >&5
19700 $as_echo "$FREETYPE2_LIBS" >&6; }
19701 else
19702 FREETYPE2_CFLAGS=""
19703 FREETYPE2_LIBS=""
19704 ## If we have a custom action on failure, don't print errors, but
19705 ## do set a variable so people can do so.
19706 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
19707 echo $FREETYPE2_PKG_ERRORS
19708 fi
19709
19710
19711
19712 else
19713 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19714 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19715 fi
19716 fi
19717
19718 if test $succeeded = yes; then
19719 :
19720 else
19721 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
19722 fi
19723
19724
19725 succeeded=no
19726
19727 if test -z "$PKG_CONFIG"; then
19728 # Extract the first word of "pkg-config", so it can be a program name with args.
19729 set dummy pkg-config; ac_word=$2
19730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19731 $as_echo_n "checking for $ac_word... " >&6; }
19732 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
19733 $as_echo_n "(cached) " >&6
19734 else
19735 case $PKG_CONFIG in
19736 [\\/]* | ?:[\\/]*)
19737 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19738 ;;
19739 *)
19740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19741 for as_dir in $PATH
19742 do
19743 IFS=$as_save_IFS
19744 test -z "$as_dir" && as_dir=.
19745 for ac_exec_ext in '' $ac_executable_extensions; do
19746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19747 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19749 break 2
19750 fi
19751 done
19752 done
19753 IFS=$as_save_IFS
19754
19755 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19756 ;;
19757 esac
19758 fi
19759 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19760 if test -n "$PKG_CONFIG"; then
19761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19762 $as_echo "$PKG_CONFIG" >&6; }
19763 else
19764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19765 $as_echo "no" >&6; }
19766 fi
19767
19768
19769 fi
19770
19771 if test "$PKG_CONFIG" = "no" ; then
19772 echo "*** The pkg-config script could not be found. Make sure it is"
19773 echo "*** in your path, or set the PKG_CONFIG environment variable"
19774 echo "*** to the full path to pkg-config."
19775 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19776 else
19777 PKG_CONFIG_MIN_VERSION=0.9.0
19778 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pangoft2" >&5
19780 $as_echo_n "checking for pangoft2... " >&6; }
19781
19782 if $PKG_CONFIG --exists "pangoft2" ; then
19783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19784 $as_echo "yes" >&6; }
19785 succeeded=yes
19786
19787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PANGOFT2_CFLAGS" >&5
19788 $as_echo_n "checking PANGOFT2_CFLAGS... " >&6; }
19789 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
19790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANGOFT2_CFLAGS" >&5
19791 $as_echo "$PANGOFT2_CFLAGS" >&6; }
19792
19793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PANGOFT2_LIBS" >&5
19794 $as_echo_n "checking PANGOFT2_LIBS... " >&6; }
19795 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANGOFT2_LIBS" >&5
19797 $as_echo "$PANGOFT2_LIBS" >&6; }
19798 else
19799 PANGOFT2_CFLAGS=""
19800 PANGOFT2_LIBS=""
19801 ## If we have a custom action on failure, don't print errors, but
19802 ## do set a variable so people can do so.
19803 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
19804 echo $PANGOFT2_PKG_ERRORS
19805 fi
19806
19807
19808
19809 else
19810 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19811 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19812 fi
19813 fi
19814
19815 if test $succeeded = yes; then
19816 :
19817 else
19818 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
19819 fi
19820
19821
19822 succeeded=no
19823
19824 if test -z "$PKG_CONFIG"; then
19825 # Extract the first word of "pkg-config", so it can be a program name with args.
19826 set dummy pkg-config; ac_word=$2
19827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19828 $as_echo_n "checking for $ac_word... " >&6; }
19829 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
19830 $as_echo_n "(cached) " >&6
19831 else
19832 case $PKG_CONFIG in
19833 [\\/]* | ?:[\\/]*)
19834 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19835 ;;
19836 *)
19837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19838 for as_dir in $PATH
19839 do
19840 IFS=$as_save_IFS
19841 test -z "$as_dir" && as_dir=.
19842 for ac_exec_ext in '' $ac_executable_extensions; do
19843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19844 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19846 break 2
19847 fi
19848 done
19849 done
19850 IFS=$as_save_IFS
19851
19852 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19853 ;;
19854 esac
19855 fi
19856 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19857 if test -n "$PKG_CONFIG"; then
19858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19859 $as_echo "$PKG_CONFIG" >&6; }
19860 else
19861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19862 $as_echo "no" >&6; }
19863 fi
19864
19865
19866 fi
19867
19868 if test "$PKG_CONFIG" = "no" ; then
19869 echo "*** The pkg-config script could not be found. Make sure it is"
19870 echo "*** in your path, or set the PKG_CONFIG environment variable"
19871 echo "*** to the full path to pkg-config."
19872 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19873 else
19874 PKG_CONFIG_MIN_VERSION=0.9.0
19875 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo >= 1.1.8" >&5
19877 $as_echo_n "checking for cairo >= 1.1.8... " >&6; }
19878
19879 if $PKG_CONFIG --exists "cairo >= 1.1.8" ; then
19880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19881 $as_echo "yes" >&6; }
19882 succeeded=yes
19883
19884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CAIRO_CFLAGS" >&5
19885 $as_echo_n "checking CAIRO_CFLAGS... " >&6; }
19886 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.1.8"`
19887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAIRO_CFLAGS" >&5
19888 $as_echo "$CAIRO_CFLAGS" >&6; }
19889
19890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CAIRO_LIBS" >&5
19891 $as_echo_n "checking CAIRO_LIBS... " >&6; }
19892 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.1.8"`
19893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAIRO_LIBS" >&5
19894 $as_echo "$CAIRO_LIBS" >&6; }
19895 else
19896 CAIRO_CFLAGS=""
19897 CAIRO_LIBS=""
19898 ## If we have a custom action on failure, don't print errors, but
19899 ## do set a variable so people can do so.
19900 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo >= 1.1.8"`
19901 echo $CAIRO_PKG_ERRORS
19902 fi
19903
19904
19905
19906 else
19907 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19908 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19909 fi
19910 fi
19911
19912 if test $succeeded = yes; then
19913 :
19914 else
19915 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
19916 fi
19917
19918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
19919 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
19920 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
19921 $as_echo_n "(cached) " >&6
19922 else
19923 ac_check_lib_save_LIBS=$LIBS
19924 LIBS="-lXrender ${X_LIBS} $LIBS"
19925 if test x$gcc_no_link = xyes; then
19926 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19927 fi
19928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19929 /* end confdefs.h. */
19930
19931 /* Override any GCC internal prototype to avoid an error.
19932 Use char because int might match the return type of a GCC
19933 builtin and then its argument prototype would still apply. */
19934 #ifdef __cplusplus
19935 extern "C"
19936 #endif
19937 char XRenderQueryExtension ();
19938 int
19939 main ()
19940 {
19941 return XRenderQueryExtension ();
19942 ;
19943 return 0;
19944 }
19945 _ACEOF
19946 if ac_fn_c_try_link "$LINENO"; then :
19947 ac_cv_lib_Xrender_XRenderQueryExtension=yes
19948 else
19949 ac_cv_lib_Xrender_XRenderQueryExtension=no
19950 fi
19951 rm -f core conftest.err conftest.$ac_objext \
19952 conftest$ac_exeext conftest.$ac_ext
19953 LIBS=$ac_check_lib_save_LIBS
19954 fi
19955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
19956 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
19957 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
19958
19959 $as_echo "#define HAVE_XRENDER 1" >>confdefs.h
19960 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXrender"
19961 else
19962 true
19963 fi
19964
19965
19966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
19967 $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
19968 if test "${ac_cv_lib_Xrandr_XRRQueryExtension+set}" = set; then :
19969 $as_echo_n "(cached) " >&6
19970 else
19971 ac_check_lib_save_LIBS=$LIBS
19972 LIBS="-lXrandr ${X_LIBS} $LIBS"
19973 if test x$gcc_no_link = xyes; then
19974 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19975 fi
19976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19977 /* end confdefs.h. */
19978
19979 /* Override any GCC internal prototype to avoid an error.
19980 Use char because int might match the return type of a GCC
19981 builtin and then its argument prototype would still apply. */
19982 #ifdef __cplusplus
19983 extern "C"
19984 #endif
19985 char XRRQueryExtension ();
19986 int
19987 main ()
19988 {
19989 return XRRQueryExtension ();
19990 ;
19991 return 0;
19992 }
19993 _ACEOF
19994 if ac_fn_c_try_link "$LINENO"; then :
19995 ac_cv_lib_Xrandr_XRRQueryExtension=yes
19996 else
19997 ac_cv_lib_Xrandr_XRRQueryExtension=no
19998 fi
19999 rm -f core conftest.err conftest.$ac_objext \
20000 conftest$ac_exeext conftest.$ac_ext
20001 LIBS=$ac_check_lib_save_LIBS
20002 fi
20003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
20004 $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
20005 if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = x""yes; then :
20006
20007 $as_echo "#define HAVE_XRANDR 1" >>confdefs.h
20008 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXrandr"
20009 else
20010 true
20011 fi
20012
20013
20014
20015
20016
20017
20018
20019
20020
20021 fi
20022
20023 if test "x${COMPILE_GCONF_PEER}" = xyes; then
20024
20025 succeeded=no
20026
20027 if test -z "$PKG_CONFIG"; then
20028 # Extract the first word of "pkg-config", so it can be a program name with args.
20029 set dummy pkg-config; ac_word=$2
20030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20031 $as_echo_n "checking for $ac_word... " >&6; }
20032 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20033 $as_echo_n "(cached) " >&6
20034 else
20035 case $PKG_CONFIG in
20036 [\\/]* | ?:[\\/]*)
20037 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20038 ;;
20039 *)
20040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20041 for as_dir in $PATH
20042 do
20043 IFS=$as_save_IFS
20044 test -z "$as_dir" && as_dir=.
20045 for ac_exec_ext in '' $ac_executable_extensions; do
20046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20047 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20049 break 2
20050 fi
20051 done
20052 done
20053 IFS=$as_save_IFS
20054
20055 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20056 ;;
20057 esac
20058 fi
20059 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20060 if test -n "$PKG_CONFIG"; then
20061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20062 $as_echo "$PKG_CONFIG" >&6; }
20063 else
20064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20065 $as_echo "no" >&6; }
20066 fi
20067
20068
20069 fi
20070
20071 if test "$PKG_CONFIG" = "no" ; then
20072 echo "*** The pkg-config script could not be found. Make sure it is"
20073 echo "*** in your path, or set the PKG_CONFIG environment variable"
20074 echo "*** to the full path to pkg-config."
20075 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20076 else
20077 PKG_CONFIG_MIN_VERSION=0.9.0
20078 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.6.0" >&5
20080 $as_echo_n "checking for gconf-2.0 >= 2.6.0... " >&6; }
20081
20082 if $PKG_CONFIG --exists "gconf-2.0 >= 2.6.0" ; then
20083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20084 $as_echo "yes" >&6; }
20085 succeeded=yes
20086
20087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
20088 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
20089 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.6.0"`
20090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
20091 $as_echo "$GCONF_CFLAGS" >&6; }
20092
20093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
20094 $as_echo_n "checking GCONF_LIBS... " >&6; }
20095 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.6.0"`
20096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
20097 $as_echo "$GCONF_LIBS" >&6; }
20098 else
20099 GCONF_CFLAGS=""
20100 GCONF_LIBS=""
20101 ## If we have a custom action on failure, don't print errors, but
20102 ## do set a variable so people can do so.
20103 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.6.0"`
20104 echo $GCONF_PKG_ERRORS
20105 fi
20106
20107
20108
20109 else
20110 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20111 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20112 fi
20113 fi
20114
20115 if test $succeeded = yes; then
20116 :
20117 else
20118 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
20119 fi
20120
20121
20122
20123
20124 succeeded=no
20125
20126 if test -z "$PKG_CONFIG"; then
20127 # Extract the first word of "pkg-config", so it can be a program name with args.
20128 set dummy pkg-config; ac_word=$2
20129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20130 $as_echo_n "checking for $ac_word... " >&6; }
20131 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20132 $as_echo_n "(cached) " >&6
20133 else
20134 case $PKG_CONFIG in
20135 [\\/]* | ?:[\\/]*)
20136 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20137 ;;
20138 *)
20139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20140 for as_dir in $PATH
20141 do
20142 IFS=$as_save_IFS
20143 test -z "$as_dir" && as_dir=.
20144 for ac_exec_ext in '' $ac_executable_extensions; do
20145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20146 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20148 break 2
20149 fi
20150 done
20151 done
20152 IFS=$as_save_IFS
20153
20154 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20155 ;;
20156 esac
20157 fi
20158 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20159 if test -n "$PKG_CONFIG"; then
20160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20161 $as_echo "$PKG_CONFIG" >&6; }
20162 else
20163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20164 $as_echo "no" >&6; }
20165 fi
20166
20167
20168 fi
20169
20170 if test "$PKG_CONFIG" = "no" ; then
20171 echo "*** The pkg-config script could not be found. Make sure it is"
20172 echo "*** in your path, or set the PKG_CONFIG environment variable"
20173 echo "*** to the full path to pkg-config."
20174 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20175 else
20176 PKG_CONFIG_MIN_VERSION=0.9.0
20177 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-2.0 >= 2.8" >&5
20179 $as_echo_n "checking for gdk-2.0 >= 2.8... " >&6; }
20180
20181 if $PKG_CONFIG --exists "gdk-2.0 >= 2.8" ; then
20182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20183 $as_echo "yes" >&6; }
20184 succeeded=yes
20185
20186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GDK_CFLAGS" >&5
20187 $as_echo_n "checking GDK_CFLAGS... " >&6; }
20188 GDK_CFLAGS=`$PKG_CONFIG --cflags "gdk-2.0 >= 2.8"`
20189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDK_CFLAGS" >&5
20190 $as_echo "$GDK_CFLAGS" >&6; }
20191
20192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GDK_LIBS" >&5
20193 $as_echo_n "checking GDK_LIBS... " >&6; }
20194 GDK_LIBS=`$PKG_CONFIG --libs "gdk-2.0 >= 2.8"`
20195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDK_LIBS" >&5
20196 $as_echo "$GDK_LIBS" >&6; }
20197 else
20198 GDK_CFLAGS=""
20199 GDK_LIBS=""
20200 ## If we have a custom action on failure, don't print errors, but
20201 ## do set a variable so people can do so.
20202 GDK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gdk-2.0 >= 2.8"`
20203 echo $GDK_PKG_ERRORS
20204 fi
20205
20206
20207
20208 else
20209 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20210 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20211 fi
20212 fi
20213
20214 if test $succeeded = yes; then
20215 :
20216 else
20217 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
20218 fi
20219
20220
20221
20222 USE_GCONF_PREFS_PEER=$enable_default_preferences_peer
20223 if test "$USE_GCONF_PREFS_PEER" = ""; then
20224 DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory
20225 fi
20226 fi
20227
20228 if test "x${COMPILE_GSTREAMER_PEER}" = xyes; then
20229 GST_MAJORMINOR=0.10
20230 GST_REQUIRED=0.10.10
20231
20232
20233 succeeded=no
20234
20235 if test -z "$PKG_CONFIG"; then
20236 # Extract the first word of "pkg-config", so it can be a program name with args.
20237 set dummy pkg-config; ac_word=$2
20238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20239 $as_echo_n "checking for $ac_word... " >&6; }
20240 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20241 $as_echo_n "(cached) " >&6
20242 else
20243 case $PKG_CONFIG in
20244 [\\/]* | ?:[\\/]*)
20245 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20246 ;;
20247 *)
20248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20249 for as_dir in $PATH
20250 do
20251 IFS=$as_save_IFS
20252 test -z "$as_dir" && as_dir=.
20253 for ac_exec_ext in '' $ac_executable_extensions; do
20254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20255 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20257 break 2
20258 fi
20259 done
20260 done
20261 IFS=$as_save_IFS
20262
20263 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20264 ;;
20265 esac
20266 fi
20267 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20268 if test -n "$PKG_CONFIG"; then
20269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20270 $as_echo "$PKG_CONFIG" >&6; }
20271 else
20272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20273 $as_echo "no" >&6; }
20274 fi
20275
20276
20277 fi
20278
20279 if test "$PKG_CONFIG" = "no" ; then
20280 echo "*** The pkg-config script could not be found. Make sure it is"
20281 echo "*** in your path, or set the PKG_CONFIG environment variable"
20282 echo "*** to the full path to pkg-config."
20283 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20284 else
20285 PKG_CONFIG_MIN_VERSION=0.9.0
20286 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
20288 $as_echo_n "checking for gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED... " >&6; }
20289
20290 if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
20291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20292 $as_echo "yes" >&6; }
20293 succeeded=yes
20294
20295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_CFLAGS" >&5
20296 $as_echo_n "checking GSTREAMER_CFLAGS... " >&6; }
20297 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
20298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_CFLAGS" >&5
20299 $as_echo "$GSTREAMER_CFLAGS" >&6; }
20300
20301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_LIBS" >&5
20302 $as_echo_n "checking GSTREAMER_LIBS... " >&6; }
20303 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
20304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_LIBS" >&5
20305 $as_echo "$GSTREAMER_LIBS" >&6; }
20306 else
20307 GSTREAMER_CFLAGS=""
20308 GSTREAMER_LIBS=""
20309 ## If we have a custom action on failure, don't print errors, but
20310 ## do set a variable so people can do so.
20311 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
20312 echo $GSTREAMER_PKG_ERRORS
20313 fi
20314
20315
20316
20317 else
20318 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20319 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20320 fi
20321 fi
20322
20323 if test $succeeded = yes; then
20324 :
20325 else
20326 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
20327 fi
20328
20329
20330
20331
20332
20333 succeeded=no
20334
20335 if test -z "$PKG_CONFIG"; then
20336 # Extract the first word of "pkg-config", so it can be a program name with args.
20337 set dummy pkg-config; ac_word=$2
20338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20339 $as_echo_n "checking for $ac_word... " >&6; }
20340 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20341 $as_echo_n "(cached) " >&6
20342 else
20343 case $PKG_CONFIG in
20344 [\\/]* | ?:[\\/]*)
20345 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20346 ;;
20347 *)
20348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20349 for as_dir in $PATH
20350 do
20351 IFS=$as_save_IFS
20352 test -z "$as_dir" && as_dir=.
20353 for ac_exec_ext in '' $ac_executable_extensions; do
20354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20355 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20357 break 2
20358 fi
20359 done
20360 done
20361 IFS=$as_save_IFS
20362
20363 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20364 ;;
20365 esac
20366 fi
20367 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20368 if test -n "$PKG_CONFIG"; then
20369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20370 $as_echo "$PKG_CONFIG" >&6; }
20371 else
20372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20373 $as_echo "no" >&6; }
20374 fi
20375
20376
20377 fi
20378
20379 if test "$PKG_CONFIG" = "no" ; then
20380 echo "*** The pkg-config script could not be found. Make sure it is"
20381 echo "*** in your path, or set the PKG_CONFIG environment variable"
20382 echo "*** to the full path to pkg-config."
20383 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20384 else
20385 PKG_CONFIG_MIN_VERSION=0.9.0
20386 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
20388 $as_echo_n "checking for gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED... " >&6; }
20389
20390 if $PKG_CONFIG --exists "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
20391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20392 $as_echo "yes" >&6; }
20393 succeeded=yes
20394
20395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_BASE_CFLAGS" >&5
20396 $as_echo_n "checking GSTREAMER_BASE_CFLAGS... " >&6; }
20397 GSTREAMER_BASE_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_BASE_CFLAGS" >&5
20399 $as_echo "$GSTREAMER_BASE_CFLAGS" >&6; }
20400
20401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_BASE_LIBS" >&5
20402 $as_echo_n "checking GSTREAMER_BASE_LIBS... " >&6; }
20403 GSTREAMER_BASE_LIBS=`$PKG_CONFIG --libs "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_BASE_LIBS" >&5
20405 $as_echo "$GSTREAMER_BASE_LIBS" >&6; }
20406 else
20407 GSTREAMER_BASE_CFLAGS=""
20408 GSTREAMER_BASE_LIBS=""
20409 ## If we have a custom action on failure, don't print errors, but
20410 ## do set a variable so people can do so.
20411 GSTREAMER_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20412 echo $GSTREAMER_BASE_PKG_ERRORS
20413 fi
20414
20415
20416
20417 else
20418 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20419 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20420 fi
20421 fi
20422
20423 if test $succeeded = yes; then
20424 :
20425 else
20426 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
20427 fi
20428
20429
20430
20431
20432
20433 succeeded=no
20434
20435 if test -z "$PKG_CONFIG"; then
20436 # Extract the first word of "pkg-config", so it can be a program name with args.
20437 set dummy pkg-config; ac_word=$2
20438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20439 $as_echo_n "checking for $ac_word... " >&6; }
20440 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20441 $as_echo_n "(cached) " >&6
20442 else
20443 case $PKG_CONFIG in
20444 [\\/]* | ?:[\\/]*)
20445 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20446 ;;
20447 *)
20448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20449 for as_dir in $PATH
20450 do
20451 IFS=$as_save_IFS
20452 test -z "$as_dir" && as_dir=.
20453 for ac_exec_ext in '' $ac_executable_extensions; do
20454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20455 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20457 break 2
20458 fi
20459 done
20460 done
20461 IFS=$as_save_IFS
20462
20463 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20464 ;;
20465 esac
20466 fi
20467 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20468 if test -n "$PKG_CONFIG"; then
20469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20470 $as_echo "$PKG_CONFIG" >&6; }
20471 else
20472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20473 $as_echo "no" >&6; }
20474 fi
20475
20476
20477 fi
20478
20479 if test "$PKG_CONFIG" = "no" ; then
20480 echo "*** The pkg-config script could not be found. Make sure it is"
20481 echo "*** in your path, or set the PKG_CONFIG environment variable"
20482 echo "*** to the full path to pkg-config."
20483 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20484 else
20485 PKG_CONFIG_MIN_VERSION=0.9.0
20486 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
20488 $as_echo_n "checking for gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED... " >&6; }
20489
20490 if $PKG_CONFIG --exists "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
20491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20492 $as_echo "yes" >&6; }
20493 succeeded=yes
20494
20495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_PLUGINS_BASE_CFLAGS" >&5
20496 $as_echo_n "checking GSTREAMER_PLUGINS_BASE_CFLAGS... " >&6; }
20497 GSTREAMER_PLUGINS_BASE_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_PLUGINS_BASE_CFLAGS" >&5
20499 $as_echo "$GSTREAMER_PLUGINS_BASE_CFLAGS" >&6; }
20500
20501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_PLUGINS_BASE_LIBS" >&5
20502 $as_echo_n "checking GSTREAMER_PLUGINS_BASE_LIBS... " >&6; }
20503 GSTREAMER_PLUGINS_BASE_LIBS=`$PKG_CONFIG --libs "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_PLUGINS_BASE_LIBS" >&5
20505 $as_echo "$GSTREAMER_PLUGINS_BASE_LIBS" >&6; }
20506 else
20507 GSTREAMER_PLUGINS_BASE_CFLAGS=""
20508 GSTREAMER_PLUGINS_BASE_LIBS=""
20509 ## If we have a custom action on failure, don't print errors, but
20510 ## do set a variable so people can do so.
20511 GSTREAMER_PLUGINS_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20512 echo $GSTREAMER_PLUGINS_BASE_PKG_ERRORS
20513 fi
20514
20515
20516
20517 else
20518 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20519 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20520 fi
20521 fi
20522
20523 if test $succeeded = yes; then
20524 :
20525 else
20526 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
20527 fi
20528
20529
20530
20531
20532 GST_PLUGIN_LDFLAGS='-module -avoid-version -Wno-unused-parameter -no-undefined'
20533
20534
20535
20536 succeeded=no
20537
20538 if test -z "$PKG_CONFIG"; then
20539 # Extract the first word of "pkg-config", so it can be a program name with args.
20540 set dummy pkg-config; ac_word=$2
20541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20542 $as_echo_n "checking for $ac_word... " >&6; }
20543 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20544 $as_echo_n "(cached) " >&6
20545 else
20546 case $PKG_CONFIG in
20547 [\\/]* | ?:[\\/]*)
20548 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20549 ;;
20550 *)
20551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20552 for as_dir in $PATH
20553 do
20554 IFS=$as_save_IFS
20555 test -z "$as_dir" && as_dir=.
20556 for ac_exec_ext in '' $ac_executable_extensions; do
20557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20558 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20560 break 2
20561 fi
20562 done
20563 done
20564 IFS=$as_save_IFS
20565
20566 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20567 ;;
20568 esac
20569 fi
20570 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20571 if test -n "$PKG_CONFIG"; then
20572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20573 $as_echo "$PKG_CONFIG" >&6; }
20574 else
20575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20576 $as_echo "no" >&6; }
20577 fi
20578
20579
20580 fi
20581
20582 if test "$PKG_CONFIG" = "no" ; then
20583 echo "*** The pkg-config script could not be found. Make sure it is"
20584 echo "*** in your path, or set the PKG_CONFIG environment variable"
20585 echo "*** to the full path to pkg-config."
20586 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20587 else
20588 PKG_CONFIG_MIN_VERSION=0.9.0
20589 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-2.0 >= 2.8" >&5
20591 $as_echo_n "checking for gdk-2.0 >= 2.8... " >&6; }
20592
20593 if $PKG_CONFIG --exists "gdk-2.0 >= 2.8" ; then
20594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20595 $as_echo "yes" >&6; }
20596 succeeded=yes
20597
20598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GDK_CFLAGS" >&5
20599 $as_echo_n "checking GDK_CFLAGS... " >&6; }
20600 GDK_CFLAGS=`$PKG_CONFIG --cflags "gdk-2.0 >= 2.8"`
20601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDK_CFLAGS" >&5
20602 $as_echo "$GDK_CFLAGS" >&6; }
20603
20604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GDK_LIBS" >&5
20605 $as_echo_n "checking GDK_LIBS... " >&6; }
20606 GDK_LIBS=`$PKG_CONFIG --libs "gdk-2.0 >= 2.8"`
20607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDK_LIBS" >&5
20608 $as_echo "$GDK_LIBS" >&6; }
20609 else
20610 GDK_CFLAGS=""
20611 GDK_LIBS=""
20612 ## If we have a custom action on failure, don't print errors, but
20613 ## do set a variable so people can do so.
20614 GDK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gdk-2.0 >= 2.8"`
20615 echo $GDK_PKG_ERRORS
20616 fi
20617
20618
20619
20620 else
20621 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20622 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20623 fi
20624 fi
20625
20626 if test $succeeded = yes; then
20627 :
20628 else
20629 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
20630 fi
20631
20632
20633
20634
20635 GSTREAMER_FILE_READER=gnu.javax.sound.sampled.gstreamer.io.GstAudioFileReader
20636 GSTREAMER_MIXER_PROVIDER=gnu.javax.sound.sampled.gstreamer.GStreamerMixerProvider
20637 fi
20638
20639
20640
20641 if test "x${COMPILE_QT_PEER}" = xyes; then
20642
20643 succeeded=no
20644
20645 if test -z "$PKG_CONFIG"; then
20646 # Extract the first word of "pkg-config", so it can be a program name with args.
20647 set dummy pkg-config; ac_word=$2
20648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20649 $as_echo_n "checking for $ac_word... " >&6; }
20650 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20651 $as_echo_n "(cached) " >&6
20652 else
20653 case $PKG_CONFIG in
20654 [\\/]* | ?:[\\/]*)
20655 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20656 ;;
20657 *)
20658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20659 for as_dir in $PATH
20660 do
20661 IFS=$as_save_IFS
20662 test -z "$as_dir" && as_dir=.
20663 for ac_exec_ext in '' $ac_executable_extensions; do
20664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20665 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20667 break 2
20668 fi
20669 done
20670 done
20671 IFS=$as_save_IFS
20672
20673 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20674 ;;
20675 esac
20676 fi
20677 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20678 if test -n "$PKG_CONFIG"; then
20679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20680 $as_echo "$PKG_CONFIG" >&6; }
20681 else
20682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20683 $as_echo "no" >&6; }
20684 fi
20685
20686
20687 fi
20688
20689 if test "$PKG_CONFIG" = "no" ; then
20690 echo "*** The pkg-config script could not be found. Make sure it is"
20691 echo "*** in your path, or set the PKG_CONFIG environment variable"
20692 echo "*** to the full path to pkg-config."
20693 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20694 else
20695 PKG_CONFIG_MIN_VERSION=0.9.0
20696 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QtCore QtGui >= 4.1.0" >&5
20698 $as_echo_n "checking for QtCore QtGui >= 4.1.0... " >&6; }
20699
20700 if $PKG_CONFIG --exists "QtCore QtGui >= 4.1.0" ; then
20701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20702 $as_echo "yes" >&6; }
20703 succeeded=yes
20704
20705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking QT_CFLAGS" >&5
20706 $as_echo_n "checking QT_CFLAGS... " >&6; }
20707 QT_CFLAGS=`$PKG_CONFIG --cflags "QtCore QtGui >= 4.1.0"`
20708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CFLAGS" >&5
20709 $as_echo "$QT_CFLAGS" >&6; }
20710
20711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking QT_LIBS" >&5
20712 $as_echo_n "checking QT_LIBS... " >&6; }
20713 QT_LIBS=`$PKG_CONFIG --libs "QtCore QtGui >= 4.1.0"`
20714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_LIBS" >&5
20715 $as_echo "$QT_LIBS" >&6; }
20716 else
20717 QT_CFLAGS=""
20718 QT_LIBS=""
20719 ## If we have a custom action on failure, don't print errors, but
20720 ## do set a variable so people can do so.
20721 QT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtCore QtGui >= 4.1.0"`
20722
20723 fi
20724
20725
20726
20727 else
20728 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20729 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20730 fi
20731 fi
20732
20733 if test $succeeded = yes; then
20734 HAVE_QT4="yes"
20735 else
20736 HAVE_QT4="no"
20737 fi
20738
20739 if test "x$HAVE_QT4" = "xyes"; then
20740 QT_INCLUDE_DIR=`$PKG_CONFIG --variable=includedir QtGui`
20741 EXTRA_QT_INCLUDE_DIR="$QT_INCLUDE_DIR/Qt"
20742 as_ac_File=`$as_echo "ac_cv_file_$QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
20743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $QT_INCLUDE_DIR/QWidget" >&5
20744 $as_echo_n "checking for $QT_INCLUDE_DIR/QWidget... " >&6; }
20745 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
20746 $as_echo_n "(cached) " >&6
20747 else
20748 test "$cross_compiling" = yes &&
20749 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
20750 if test -r "$QT_INCLUDE_DIR/QWidget"; then
20751 eval "$as_ac_File=yes"
20752 else
20753 eval "$as_ac_File=no"
20754 fi
20755 fi
20756 eval ac_res=\$$as_ac_File
20757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20758 $as_echo "$ac_res" >&6; }
20759 eval as_val=\$$as_ac_File
20760 if test "x$as_val" = x""yes; then :
20761 { $as_echo "$as_me:${as_lineno-$LINENO}: No extra QT_INCLUDE_DIR needed" >&5
20762 $as_echo "$as_me: No extra QT_INCLUDE_DIR needed" >&6;}
20763 else
20764 as_ac_File=`$as_echo "ac_cv_file_$EXTRA_QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
20765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $EXTRA_QT_INCLUDE_DIR/QWidget" >&5
20766 $as_echo_n "checking for $EXTRA_QT_INCLUDE_DIR/QWidget... " >&6; }
20767 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
20768 $as_echo_n "(cached) " >&6
20769 else
20770 test "$cross_compiling" = yes &&
20771 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
20772 if test -r "$EXTRA_QT_INCLUDE_DIR/QWidget"; then
20773 eval "$as_ac_File=yes"
20774 else
20775 eval "$as_ac_File=no"
20776 fi
20777 fi
20778 eval ac_res=\$$as_ac_File
20779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20780 $as_echo "$ac_res" >&6; }
20781 eval as_val=\$$as_ac_File
20782 if test "x$as_val" = x""yes; then :
20783 QT_CFLAGS="$QT_CFLAGS -I$EXTRA_QT_INCLUDE_DIR"
20784 else
20785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: QWidget not found" >&5
20786 $as_echo "$as_me: WARNING: QWidget not found" >&2;}
20787 fi
20788
20789 fi
20790
20791 # Extract the first word of "moc", so it can be a program name with args.
20792 set dummy moc; ac_word=$2
20793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20794 $as_echo_n "checking for $ac_word... " >&6; }
20795 if test "${ac_cv_prog_MOC+set}" = set; then :
20796 $as_echo_n "(cached) " >&6
20797 else
20798 if test -n "$MOC"; then
20799 ac_cv_prog_MOC="$MOC" # Let the user override the test.
20800 else
20801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20802 for as_dir in $PATH
20803 do
20804 IFS=$as_save_IFS
20805 test -z "$as_dir" && as_dir=.
20806 for ac_exec_ext in '' $ac_executable_extensions; do
20807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20808 ac_cv_prog_MOC="moc"
20809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20810 break 2
20811 fi
20812 done
20813 done
20814 IFS=$as_save_IFS
20815
20816 fi
20817 fi
20818 MOC=$ac_cv_prog_MOC
20819 if test -n "$MOC"; then
20820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
20821 $as_echo "$MOC" >&6; }
20822 else
20823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20824 $as_echo "no" >&6; }
20825 fi
20826
20827
20828 # Extract the first word of "moc-qt4", so it can be a program name with args.
20829 set dummy moc-qt4; ac_word=$2
20830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20831 $as_echo_n "checking for $ac_word... " >&6; }
20832 if test "${ac_cv_prog_MOC+set}" = set; then :
20833 $as_echo_n "(cached) " >&6
20834 else
20835 if test -n "$MOC"; then
20836 ac_cv_prog_MOC="$MOC" # Let the user override the test.
20837 else
20838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20839 for as_dir in $PATH
20840 do
20841 IFS=$as_save_IFS
20842 test -z "$as_dir" && as_dir=.
20843 for ac_exec_ext in '' $ac_executable_extensions; do
20844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20845 ac_cv_prog_MOC="moc-qt4"
20846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20847 break 2
20848 fi
20849 done
20850 done
20851 IFS=$as_save_IFS
20852
20853 fi
20854 fi
20855 MOC=$ac_cv_prog_MOC
20856 if test -n "$MOC"; then
20857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
20858 $as_echo "$MOC" >&6; }
20859 else
20860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20861 $as_echo "no" >&6; }
20862 fi
20863
20864
20865 fi
20866 if test "x$HAVE_QT4" = "xno"; then
20867 { $as_echo "$as_me:${as_lineno-$LINENO}: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&5
20868 $as_echo "$as_me: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&6;}
20869 case "$host_os" in
20870 darwin*)
20871
20872 # Check whether --with-qt4dir was given.
20873 if test "${with_qt4dir+set}" = set; then :
20874 withval=$with_qt4dir; QT4DIR=$withval
20875
20876 fi
20877
20878 if test x"$QT4DIR" = x ; then
20879 as_fn_error "*** No path for Qt4 --with-qt4dir option given" "$LINENO" 5
20880 fi
20881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: QT4DIR... $QT4DIR" >&5
20882 $as_echo "QT4DIR... $QT4DIR" >&6; }
20883 # Extract the first word of "moc", so it can be a program name with args.
20884 set dummy moc; ac_word=$2
20885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20886 $as_echo_n "checking for $ac_word... " >&6; }
20887 if test "${ac_cv_prog_MOC+set}" = set; then :
20888 $as_echo_n "(cached) " >&6
20889 else
20890 if test -n "$MOC"; then
20891 ac_cv_prog_MOC="$MOC" # Let the user override the test.
20892 else
20893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20894 for as_dir in $QT4DIR/bin
20895 do
20896 IFS=$as_save_IFS
20897 test -z "$as_dir" && as_dir=.
20898 for ac_exec_ext in '' $ac_executable_extensions; do
20899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20900 ac_cv_prog_MOC="$QT4DIR/bin/moc"
20901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20902 break 2
20903 fi
20904 done
20905 done
20906 IFS=$as_save_IFS
20907
20908 fi
20909 fi
20910 MOC=$ac_cv_prog_MOC
20911 if test -n "$MOC"; then
20912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
20913 $as_echo "$MOC" >&6; }
20914 else
20915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20916 $as_echo "no" >&6; }
20917 fi
20918
20919
20920 if test x"$MOC" = x; then
20921 as_fn_error "*** This is not the right Qt installation" "$LINENO" 5
20922 fi
20923 QT_CFLAGS="-F$QT4DIR/lib -I$QT4DIR/lib/QtCore.framework/Headers"
20924 QT_CFLAGS="$QT_CFLAGS -I$QT4DIR/lib/QtGui.framework/Headers"
20925 QT_LIBS="-Xlinker -F$QT4DIR/lib -Xlinker -framework -Xlinker QtCore"
20926 QT_LIBS="$QT_LIBS -Xlinker -framework -Xlinker QtGui"
20927 ;;
20928 *)
20929 as_fn_error "*** Please check PKG_CONFIG_PATH or the version
20930 of your installed Qt4 installation." "$LINENO" 5
20931 ;;
20932 esac
20933 fi
20934 { $as_echo "$as_me:${as_lineno-$LINENO}: Set QT_CFLAGS... $QT_CFLAGS" >&5
20935 $as_echo "$as_me: Set QT_CFLAGS... $QT_CFLAGS" >&6;}
20936
20937
20938 fi
20939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
20940 $as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
20941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20942 /* end confdefs.h. */
20943 #include <sys/socket.h>
20944 int
20945 main ()
20946 {
20947 int f = MSG_NOSIGNAL;
20948 ;
20949 return 0;
20950 }
20951 _ACEOF
20952 if ac_fn_c_try_compile "$LINENO"; then :
20953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20954 $as_echo "yes" >&6; }
20955
20956 $as_echo "#define HAVE_MSG_NOSIGNAL 1" >>confdefs.h
20957
20958 else
20959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20960 $as_echo "no" >&6; }
20961
20962 fi
20963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_NOSIGPIPE " >&5
20965 $as_echo_n "checking for SO_NOSIGPIPE ... " >&6; }
20966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20967 /* end confdefs.h. */
20968 #include <sys/socket.h>
20969 int
20970 main ()
20971 {
20972 int f = SO_NOSIGPIPE;
20973 ;
20974 return 0;
20975 }
20976 _ACEOF
20977 if ac_fn_c_try_compile "$LINENO"; then :
20978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20979 $as_echo "yes" >&6; }
20980
20981 $as_echo "#define HAVE_SO_NOSIGPIPE 1" >>confdefs.h
20982
20983 else
20984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20985 $as_echo "no" >&6; }
20986
20987 fi
20988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_WAITALL" >&5
20990 $as_echo_n "checking for MSG_WAITALL... " >&6; }
20991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20992 /* end confdefs.h. */
20993 #include <sys/socket.h>
20994 int
20995 main ()
20996 {
20997 int f = MSG_WAITALL;
20998 ;
20999 return 0;
21000 }
21001 _ACEOF
21002 if ac_fn_c_try_compile "$LINENO"; then :
21003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21004 $as_echo "yes" >&6; }
21005
21006 $as_echo "#define HAVE_MSG_WAITALL 1" >>confdefs.h
21007
21008 else
21009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21010 $as_echo "no" >&6; }
21011
21012 fi
21013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21014
21015 if test "x${COMPILE_PLUGIN}" = xyes; then
21016
21017 succeeded=no
21018
21019 if test -z "$PKG_CONFIG"; then
21020 # Extract the first word of "pkg-config", so it can be a program name with args.
21021 set dummy pkg-config; ac_word=$2
21022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21023 $as_echo_n "checking for $ac_word... " >&6; }
21024 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21025 $as_echo_n "(cached) " >&6
21026 else
21027 case $PKG_CONFIG in
21028 [\\/]* | ?:[\\/]*)
21029 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21030 ;;
21031 *)
21032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21033 for as_dir in $PATH
21034 do
21035 IFS=$as_save_IFS
21036 test -z "$as_dir" && as_dir=.
21037 for ac_exec_ext in '' $ac_executable_extensions; do
21038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21039 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21041 break 2
21042 fi
21043 done
21044 done
21045 IFS=$as_save_IFS
21046
21047 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21048 ;;
21049 esac
21050 fi
21051 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21052 if test -n "$PKG_CONFIG"; then
21053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21054 $as_echo "$PKG_CONFIG" >&6; }
21055 else
21056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21057 $as_echo "no" >&6; }
21058 fi
21059
21060
21061 fi
21062
21063 if test "$PKG_CONFIG" = "no" ; then
21064 echo "*** The pkg-config script could not be found. Make sure it is"
21065 echo "*** in your path, or set the PKG_CONFIG environment variable"
21066 echo "*** to the full path to pkg-config."
21067 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21068 else
21069 PKG_CONFIG_MIN_VERSION=0.9.0
21070 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mozilla-plugin libxul-unstable" >&5
21072 $as_echo_n "checking for mozilla-plugin libxul-unstable... " >&6; }
21073
21074 if $PKG_CONFIG --exists "mozilla-plugin libxul-unstable" ; then
21075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21076 $as_echo "yes" >&6; }
21077 succeeded=yes
21078
21079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21080 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21081 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-plugin libxul-unstable"`
21082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21083 $as_echo "$MOZILLA_CFLAGS" >&6; }
21084
21085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21086 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21087 MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-plugin libxul-unstable"`
21088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21089 $as_echo "$MOZILLA_LIBS" >&6; }
21090 else
21091 MOZILLA_CFLAGS=""
21092 MOZILLA_LIBS=""
21093 ## If we have a custom action on failure, don't print errors, but
21094 ## do set a variable so people can do so.
21095 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-plugin libxul-unstable"`
21096
21097 fi
21098
21099
21100
21101 else
21102 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21103 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21104 fi
21105 fi
21106
21107 if test $succeeded = yes; then
21108 MOZILLA_FOUND=yes
21109 else
21110 MOZILLA_FOUND=no
21111 fi
21112
21113 if test "x${MOZILLA_FOUND}" = xno; then
21114
21115 succeeded=no
21116
21117 if test -z "$PKG_CONFIG"; then
21118 # Extract the first word of "pkg-config", so it can be a program name with args.
21119 set dummy pkg-config; ac_word=$2
21120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21121 $as_echo_n "checking for $ac_word... " >&6; }
21122 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21123 $as_echo_n "(cached) " >&6
21124 else
21125 case $PKG_CONFIG in
21126 [\\/]* | ?:[\\/]*)
21127 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21128 ;;
21129 *)
21130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21131 for as_dir in $PATH
21132 do
21133 IFS=$as_save_IFS
21134 test -z "$as_dir" && as_dir=.
21135 for ac_exec_ext in '' $ac_executable_extensions; do
21136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21137 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21139 break 2
21140 fi
21141 done
21142 done
21143 IFS=$as_save_IFS
21144
21145 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21146 ;;
21147 esac
21148 fi
21149 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21150 if test -n "$PKG_CONFIG"; then
21151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21152 $as_echo "$PKG_CONFIG" >&6; }
21153 else
21154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21155 $as_echo "no" >&6; }
21156 fi
21157
21158
21159 fi
21160
21161 if test "$PKG_CONFIG" = "no" ; then
21162 echo "*** The pkg-config script could not be found. Make sure it is"
21163 echo "*** in your path, or set the PKG_CONFIG environment variable"
21164 echo "*** to the full path to pkg-config."
21165 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21166 else
21167 PKG_CONFIG_MIN_VERSION=0.9.0
21168 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mozilla-plugin" >&5
21170 $as_echo_n "checking for mozilla-plugin... " >&6; }
21171
21172 if $PKG_CONFIG --exists "mozilla-plugin" ; then
21173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21174 $as_echo "yes" >&6; }
21175 succeeded=yes
21176
21177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21178 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21179 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-plugin"`
21180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21181 $as_echo "$MOZILLA_CFLAGS" >&6; }
21182
21183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21184 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21185 MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-plugin"`
21186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21187 $as_echo "$MOZILLA_LIBS" >&6; }
21188 else
21189 MOZILLA_CFLAGS=""
21190 MOZILLA_LIBS=""
21191 ## If we have a custom action on failure, don't print errors, but
21192 ## do set a variable so people can do so.
21193 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-plugin"`
21194
21195 fi
21196
21197
21198
21199 else
21200 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21201 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21202 fi
21203 fi
21204
21205 if test $succeeded = yes; then
21206 MOZILLA_FOUND=yes
21207 else
21208 MOZILLA_FOUND=no
21209 fi
21210
21211 fi
21212 if test "x${MOZILLA_FOUND}" = xno; then
21213
21214 succeeded=no
21215
21216 if test -z "$PKG_CONFIG"; then
21217 # Extract the first word of "pkg-config", so it can be a program name with args.
21218 set dummy pkg-config; ac_word=$2
21219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21220 $as_echo_n "checking for $ac_word... " >&6; }
21221 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21222 $as_echo_n "(cached) " >&6
21223 else
21224 case $PKG_CONFIG in
21225 [\\/]* | ?:[\\/]*)
21226 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21227 ;;
21228 *)
21229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21230 for as_dir in $PATH
21231 do
21232 IFS=$as_save_IFS
21233 test -z "$as_dir" && as_dir=.
21234 for ac_exec_ext in '' $ac_executable_extensions; do
21235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21236 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21238 break 2
21239 fi
21240 done
21241 done
21242 IFS=$as_save_IFS
21243
21244 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21245 ;;
21246 esac
21247 fi
21248 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21249 if test -n "$PKG_CONFIG"; then
21250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21251 $as_echo "$PKG_CONFIG" >&6; }
21252 else
21253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21254 $as_echo "no" >&6; }
21255 fi
21256
21257
21258 fi
21259
21260 if test "$PKG_CONFIG" = "no" ; then
21261 echo "*** The pkg-config script could not be found. Make sure it is"
21262 echo "*** in your path, or set the PKG_CONFIG environment variable"
21263 echo "*** to the full path to pkg-config."
21264 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21265 else
21266 PKG_CONFIG_MIN_VERSION=0.9.0
21267 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for firefox-plugin firefox-xpcom" >&5
21269 $as_echo_n "checking for firefox-plugin firefox-xpcom... " >&6; }
21270
21271 if $PKG_CONFIG --exists "firefox-plugin firefox-xpcom" ; then
21272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21273 $as_echo "yes" >&6; }
21274 succeeded=yes
21275
21276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21277 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21278 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "firefox-plugin firefox-xpcom"`
21279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21280 $as_echo "$MOZILLA_CFLAGS" >&6; }
21281
21282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21283 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21284 MOZILLA_LIBS=`$PKG_CONFIG --libs "firefox-plugin firefox-xpcom"`
21285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21286 $as_echo "$MOZILLA_LIBS" >&6; }
21287 else
21288 MOZILLA_CFLAGS=""
21289 MOZILLA_LIBS=""
21290 ## If we have a custom action on failure, don't print errors, but
21291 ## do set a variable so people can do so.
21292 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "firefox-plugin firefox-xpcom"`
21293
21294 fi
21295
21296
21297
21298 else
21299 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21300 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21301 fi
21302 fi
21303
21304 if test $succeeded = yes; then
21305 MOZILLA_FOUND=yes
21306 else
21307 MOZILLA_FOUND=no
21308 fi
21309
21310 fi
21311 if test "x${MOZILLA_FOUND}" = xno; then
21312
21313 succeeded=no
21314
21315 if test -z "$PKG_CONFIG"; then
21316 # Extract the first word of "pkg-config", so it can be a program name with args.
21317 set dummy pkg-config; ac_word=$2
21318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21319 $as_echo_n "checking for $ac_word... " >&6; }
21320 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21321 $as_echo_n "(cached) " >&6
21322 else
21323 case $PKG_CONFIG in
21324 [\\/]* | ?:[\\/]*)
21325 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21326 ;;
21327 *)
21328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21329 for as_dir in $PATH
21330 do
21331 IFS=$as_save_IFS
21332 test -z "$as_dir" && as_dir=.
21333 for ac_exec_ext in '' $ac_executable_extensions; do
21334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21335 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21337 break 2
21338 fi
21339 done
21340 done
21341 IFS=$as_save_IFS
21342
21343 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21344 ;;
21345 esac
21346 fi
21347 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21348 if test -n "$PKG_CONFIG"; then
21349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21350 $as_echo "$PKG_CONFIG" >&6; }
21351 else
21352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21353 $as_echo "no" >&6; }
21354 fi
21355
21356
21357 fi
21358
21359 if test "$PKG_CONFIG" = "no" ; then
21360 echo "*** The pkg-config script could not be found. Make sure it is"
21361 echo "*** in your path, or set the PKG_CONFIG environment variable"
21362 echo "*** to the full path to pkg-config."
21363 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21364 else
21365 PKG_CONFIG_MIN_VERSION=0.9.0
21366 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xulrunner-plugin xulrunner-xpcom" >&5
21368 $as_echo_n "checking for xulrunner-plugin xulrunner-xpcom... " >&6; }
21369
21370 if $PKG_CONFIG --exists "xulrunner-plugin xulrunner-xpcom" ; then
21371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21372 $as_echo "yes" >&6; }
21373 succeeded=yes
21374
21375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21376 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21377 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "xulrunner-plugin xulrunner-xpcom"`
21378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21379 $as_echo "$MOZILLA_CFLAGS" >&6; }
21380
21381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21382 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21383 MOZILLA_LIBS=`$PKG_CONFIG --libs "xulrunner-plugin xulrunner-xpcom"`
21384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21385 $as_echo "$MOZILLA_LIBS" >&6; }
21386 else
21387 MOZILLA_CFLAGS=""
21388 MOZILLA_LIBS=""
21389 ## If we have a custom action on failure, don't print errors, but
21390 ## do set a variable so people can do so.
21391 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xulrunner-plugin xulrunner-xpcom"`
21392
21393 fi
21394
21395
21396
21397 else
21398 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21399 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21400 fi
21401 fi
21402
21403 if test $succeeded = yes; then
21404 MOZILLA_FOUND=yes
21405 else
21406 MOZILLA_FOUND=no
21407 fi
21408
21409 fi
21410 if test "x${MOZILLA_FOUND}" = xno; then
21411
21412 succeeded=no
21413
21414 if test -z "$PKG_CONFIG"; then
21415 # Extract the first word of "pkg-config", so it can be a program name with args.
21416 set dummy pkg-config; ac_word=$2
21417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21418 $as_echo_n "checking for $ac_word... " >&6; }
21419 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21420 $as_echo_n "(cached) " >&6
21421 else
21422 case $PKG_CONFIG in
21423 [\\/]* | ?:[\\/]*)
21424 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21425 ;;
21426 *)
21427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21428 for as_dir in $PATH
21429 do
21430 IFS=$as_save_IFS
21431 test -z "$as_dir" && as_dir=.
21432 for ac_exec_ext in '' $ac_executable_extensions; do
21433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21434 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21436 break 2
21437 fi
21438 done
21439 done
21440 IFS=$as_save_IFS
21441
21442 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21443 ;;
21444 esac
21445 fi
21446 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21447 if test -n "$PKG_CONFIG"; then
21448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21449 $as_echo "$PKG_CONFIG" >&6; }
21450 else
21451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21452 $as_echo "no" >&6; }
21453 fi
21454
21455
21456 fi
21457
21458 if test "$PKG_CONFIG" = "no" ; then
21459 echo "*** The pkg-config script could not be found. Make sure it is"
21460 echo "*** in your path, or set the PKG_CONFIG environment variable"
21461 echo "*** to the full path to pkg-config."
21462 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21463 else
21464 PKG_CONFIG_MIN_VERSION=0.9.0
21465 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mozilla-firefox-plugin mozilla-firefox-xpcom" >&5
21467 $as_echo_n "checking for mozilla-firefox-plugin mozilla-firefox-xpcom... " >&6; }
21468
21469 if $PKG_CONFIG --exists "mozilla-firefox-plugin mozilla-firefox-xpcom" ; then
21470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21471 $as_echo "yes" >&6; }
21472 succeeded=yes
21473
21474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21475 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21476 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-firefox-plugin mozilla-firefox-xpcom"`
21477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21478 $as_echo "$MOZILLA_CFLAGS" >&6; }
21479
21480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21481 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21482 MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-firefox-plugin mozilla-firefox-xpcom"`
21483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21484 $as_echo "$MOZILLA_LIBS" >&6; }
21485 else
21486 MOZILLA_CFLAGS=""
21487 MOZILLA_LIBS=""
21488 ## If we have a custom action on failure, don't print errors, but
21489 ## do set a variable so people can do so.
21490 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-firefox-plugin mozilla-firefox-xpcom"`
21491
21492 fi
21493
21494
21495
21496 else
21497 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21498 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21499 fi
21500 fi
21501
21502 if test $succeeded = yes; then
21503 MOZILLA_FOUND=yes
21504 else
21505 MOZILLA_FOUND=no
21506 fi
21507
21508 fi
21509 if test "x${MOZILLA_FOUND}" = xno; then
21510
21511 succeeded=no
21512
21513 if test -z "$PKG_CONFIG"; then
21514 # Extract the first word of "pkg-config", so it can be a program name with args.
21515 set dummy pkg-config; ac_word=$2
21516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21517 $as_echo_n "checking for $ac_word... " >&6; }
21518 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21519 $as_echo_n "(cached) " >&6
21520 else
21521 case $PKG_CONFIG in
21522 [\\/]* | ?:[\\/]*)
21523 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21524 ;;
21525 *)
21526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21527 for as_dir in $PATH
21528 do
21529 IFS=$as_save_IFS
21530 test -z "$as_dir" && as_dir=.
21531 for ac_exec_ext in '' $ac_executable_extensions; do
21532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21533 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21535 break 2
21536 fi
21537 done
21538 done
21539 IFS=$as_save_IFS
21540
21541 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21542 ;;
21543 esac
21544 fi
21545 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21546 if test -n "$PKG_CONFIG"; then
21547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21548 $as_echo "$PKG_CONFIG" >&6; }
21549 else
21550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21551 $as_echo "no" >&6; }
21552 fi
21553
21554
21555 fi
21556
21557 if test "$PKG_CONFIG" = "no" ; then
21558 echo "*** The pkg-config script could not be found. Make sure it is"
21559 echo "*** in your path, or set the PKG_CONFIG environment variable"
21560 echo "*** to the full path to pkg-config."
21561 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21562 else
21563 PKG_CONFIG_MIN_VERSION=0.9.0
21564 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seamonkey-plugin seamonkey-xpcom" >&5
21566 $as_echo_n "checking for seamonkey-plugin seamonkey-xpcom... " >&6; }
21567
21568 if $PKG_CONFIG --exists "seamonkey-plugin seamonkey-xpcom" ; then
21569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21570 $as_echo "yes" >&6; }
21571 succeeded=yes
21572
21573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21574 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21575 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "seamonkey-plugin seamonkey-xpcom"`
21576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21577 $as_echo "$MOZILLA_CFLAGS" >&6; }
21578
21579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21580 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21581 MOZILLA_LIBS=`$PKG_CONFIG --libs "seamonkey-plugin seamonkey-xpcom"`
21582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21583 $as_echo "$MOZILLA_LIBS" >&6; }
21584 else
21585 MOZILLA_CFLAGS=""
21586 MOZILLA_LIBS=""
21587 ## If we have a custom action on failure, don't print errors, but
21588 ## do set a variable so people can do so.
21589 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "seamonkey-plugin seamonkey-xpcom"`
21590
21591 fi
21592
21593
21594
21595 else
21596 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21597 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21598 fi
21599 fi
21600
21601 if test $succeeded = yes; then
21602 MOZILLA_FOUND=yes
21603 else
21604 MOZILLA_FOUND=no
21605 fi
21606
21607 fi
21608 if test "x${MOZILLA_FOUND}" = xno; then
21609
21610 succeeded=no
21611
21612 if test -z "$PKG_CONFIG"; then
21613 # Extract the first word of "pkg-config", so it can be a program name with args.
21614 set dummy pkg-config; ac_word=$2
21615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21616 $as_echo_n "checking for $ac_word... " >&6; }
21617 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21618 $as_echo_n "(cached) " >&6
21619 else
21620 case $PKG_CONFIG in
21621 [\\/]* | ?:[\\/]*)
21622 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21623 ;;
21624 *)
21625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21626 for as_dir in $PATH
21627 do
21628 IFS=$as_save_IFS
21629 test -z "$as_dir" && as_dir=.
21630 for ac_exec_ext in '' $ac_executable_extensions; do
21631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21632 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21634 break 2
21635 fi
21636 done
21637 done
21638 IFS=$as_save_IFS
21639
21640 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21641 ;;
21642 esac
21643 fi
21644 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21645 if test -n "$PKG_CONFIG"; then
21646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21647 $as_echo "$PKG_CONFIG" >&6; }
21648 else
21649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21650 $as_echo "no" >&6; }
21651 fi
21652
21653
21654 fi
21655
21656 if test "$PKG_CONFIG" = "no" ; then
21657 echo "*** The pkg-config script could not be found. Make sure it is"
21658 echo "*** in your path, or set the PKG_CONFIG environment variable"
21659 echo "*** to the full path to pkg-config."
21660 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21661 else
21662 PKG_CONFIG_MIN_VERSION=0.9.0
21663 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iceape-plugin iceape-xpcom" >&5
21665 $as_echo_n "checking for iceape-plugin iceape-xpcom... " >&6; }
21666
21667 if $PKG_CONFIG --exists "iceape-plugin iceape-xpcom" ; then
21668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21669 $as_echo "yes" >&6; }
21670 succeeded=yes
21671
21672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21673 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21674 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "iceape-plugin iceape-xpcom"`
21675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21676 $as_echo "$MOZILLA_CFLAGS" >&6; }
21677
21678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21679 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21680 MOZILLA_LIBS=`$PKG_CONFIG --libs "iceape-plugin iceape-xpcom"`
21681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21682 $as_echo "$MOZILLA_LIBS" >&6; }
21683 else
21684 MOZILLA_CFLAGS=""
21685 MOZILLA_LIBS=""
21686 ## If we have a custom action on failure, don't print errors, but
21687 ## do set a variable so people can do so.
21688 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "iceape-plugin iceape-xpcom"`
21689
21690 fi
21691
21692
21693
21694 else
21695 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21696 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21697 fi
21698 fi
21699
21700 if test $succeeded = yes; then
21701 MOZILLA_FOUND=yes
21702 else
21703 MOZILLA_FOUND=no
21704 fi
21705
21706 fi
21707 if test "x${MOZILLA_FOUND}" = xno; then
21708 as_fn_error "Couldn't find plugin support headers and libraries, try --disable-plugin" "$LINENO" 5
21709 fi
21710
21711
21712 succeeded=no
21713
21714 if test -z "$PKG_CONFIG"; then
21715 # Extract the first word of "pkg-config", so it can be a program name with args.
21716 set dummy pkg-config; ac_word=$2
21717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21718 $as_echo_n "checking for $ac_word... " >&6; }
21719 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21720 $as_echo_n "(cached) " >&6
21721 else
21722 case $PKG_CONFIG in
21723 [\\/]* | ?:[\\/]*)
21724 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21725 ;;
21726 *)
21727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21728 for as_dir in $PATH
21729 do
21730 IFS=$as_save_IFS
21731 test -z "$as_dir" && as_dir=.
21732 for ac_exec_ext in '' $ac_executable_extensions; do
21733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21734 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21736 break 2
21737 fi
21738 done
21739 done
21740 IFS=$as_save_IFS
21741
21742 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21743 ;;
21744 esac
21745 fi
21746 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21747 if test -n "$PKG_CONFIG"; then
21748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21749 $as_echo "$PKG_CONFIG" >&6; }
21750 else
21751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21752 $as_echo "no" >&6; }
21753 fi
21754
21755
21756 fi
21757
21758 if test "$PKG_CONFIG" = "no" ; then
21759 echo "*** The pkg-config script could not be found. Make sure it is"
21760 echo "*** in your path, or set the PKG_CONFIG environment variable"
21761 echo "*** to the full path to pkg-config."
21762 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21763 else
21764 PKG_CONFIG_MIN_VERSION=0.9.0
21765 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0" >&5
21767 $as_echo_n "checking for glib-2.0... " >&6; }
21768
21769 if $PKG_CONFIG --exists "glib-2.0" ; then
21770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21771 $as_echo "yes" >&6; }
21772 succeeded=yes
21773
21774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_CFLAGS" >&5
21775 $as_echo_n "checking GLIB_CFLAGS... " >&6; }
21776 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0"`
21777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_CFLAGS" >&5
21778 $as_echo "$GLIB_CFLAGS" >&6; }
21779
21780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_LIBS" >&5
21781 $as_echo_n "checking GLIB_LIBS... " >&6; }
21782 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0"`
21783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_LIBS" >&5
21784 $as_echo "$GLIB_LIBS" >&6; }
21785 else
21786 GLIB_CFLAGS=""
21787 GLIB_LIBS=""
21788 ## If we have a custom action on failure, don't print errors, but
21789 ## do set a variable so people can do so.
21790 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
21791 echo $GLIB_PKG_ERRORS
21792 fi
21793
21794
21795
21796 else
21797 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21798 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21799 fi
21800 fi
21801
21802 if test $succeeded = yes; then
21803 :
21804 else
21805 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
21806 fi
21807
21808
21809 succeeded=no
21810
21811 if test -z "$PKG_CONFIG"; then
21812 # Extract the first word of "pkg-config", so it can be a program name with args.
21813 set dummy pkg-config; ac_word=$2
21814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21815 $as_echo_n "checking for $ac_word... " >&6; }
21816 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21817 $as_echo_n "(cached) " >&6
21818 else
21819 case $PKG_CONFIG in
21820 [\\/]* | ?:[\\/]*)
21821 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21822 ;;
21823 *)
21824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21825 for as_dir in $PATH
21826 do
21827 IFS=$as_save_IFS
21828 test -z "$as_dir" && as_dir=.
21829 for ac_exec_ext in '' $ac_executable_extensions; do
21830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21831 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21833 break 2
21834 fi
21835 done
21836 done
21837 IFS=$as_save_IFS
21838
21839 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21840 ;;
21841 esac
21842 fi
21843 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21844 if test -n "$PKG_CONFIG"; then
21845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21846 $as_echo "$PKG_CONFIG" >&6; }
21847 else
21848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21849 $as_echo "no" >&6; }
21850 fi
21851
21852
21853 fi
21854
21855 if test "$PKG_CONFIG" = "no" ; then
21856 echo "*** The pkg-config script could not be found. Make sure it is"
21857 echo "*** in your path, or set the PKG_CONFIG environment variable"
21858 echo "*** to the full path to pkg-config."
21859 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21860 else
21861 PKG_CONFIG_MIN_VERSION=0.9.0
21862 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" >&5
21864 $as_echo_n "checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0... " >&6; }
21865
21866 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" ; then
21867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21868 $as_echo "yes" >&6; }
21869 succeeded=yes
21870
21871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
21872 $as_echo_n "checking GTK_CFLAGS... " >&6; }
21873 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
21874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
21875 $as_echo "$GTK_CFLAGS" >&6; }
21876
21877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
21878 $as_echo_n "checking GTK_LIBS... " >&6; }
21879 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
21880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
21881 $as_echo "$GTK_LIBS" >&6; }
21882 else
21883 GTK_CFLAGS=""
21884 GTK_LIBS=""
21885 ## If we have a custom action on failure, don't print errors, but
21886 ## do set a variable so people can do so.
21887 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
21888 echo $GTK_PKG_ERRORS
21889 fi
21890
21891
21892
21893 else
21894 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21895 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21896 fi
21897 fi
21898
21899 if test $succeeded = yes; then
21900 :
21901 else
21902 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
21903 fi
21904
21905
21906
21907
21908
21909
21910
21911
21912
21913 PLUGIN_DIR=$HOME/.mozilla/plugins/
21914
21915 fi
21916
21917
21918 # Check whether --with-gmp was given.
21919 if test "${with_gmp+set}" = set; then :
21920 withval=$with_gmp;
21921 fi
21922
21923
21924 # Check whether --with-gmp_include was given.
21925 if test "${with_gmp_include+set}" = set; then :
21926 withval=$with_gmp_include;
21927 fi
21928
21929
21930 # Check whether --with-gmp_lib was given.
21931 if test "${with_gmp_lib+set}" = set; then :
21932 withval=$with_gmp_lib;
21933 fi
21934
21935
21936 if test "x$with_gmp" != x; then
21937 gmplibs=-lgmp
21938 gmpinc=
21939 gmplibs="-L$with_gmp/lib $gmplibs"
21940 if test "x$with_gmp_include" != x; then
21941 gmpinc="-I$with_gmp_include $gmpinc"
21942 fi
21943 gmpinc="-I$with_gmp/include $gmpinc"
21944 if test "x$with_gmp_lib" != x; then
21945 gmplibs="-L$with_gmp_lib $gmplibs"
21946 fi
21947 else
21948 gmplibs="-lgmp"
21949 gmpinc="-I/usr/include"
21950 fi
21951
21952 if test "x${COMPILE_GMP}" = xyes; then
21953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_mul_si in -lgmp" >&5
21954 $as_echo_n "checking for __gmpz_mul_si in -lgmp... " >&6; }
21955 if test "${ac_cv_lib_gmp___gmpz_mul_si+set}" = set; then :
21956 $as_echo_n "(cached) " >&6
21957 else
21958 ac_check_lib_save_LIBS=$LIBS
21959 LIBS="-lgmp $LIBS"
21960 if test x$gcc_no_link = xyes; then
21961 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21962 fi
21963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21964 /* end confdefs.h. */
21965
21966 /* Override any GCC internal prototype to avoid an error.
21967 Use char because int might match the return type of a GCC
21968 builtin and then its argument prototype would still apply. */
21969 #ifdef __cplusplus
21970 extern "C"
21971 #endif
21972 char __gmpz_mul_si ();
21973 int
21974 main ()
21975 {
21976 return __gmpz_mul_si ();
21977 ;
21978 return 0;
21979 }
21980 _ACEOF
21981 if ac_fn_c_try_link "$LINENO"; then :
21982 ac_cv_lib_gmp___gmpz_mul_si=yes
21983 else
21984 ac_cv_lib_gmp___gmpz_mul_si=no
21985 fi
21986 rm -f core conftest.err conftest.$ac_objext \
21987 conftest$ac_exeext conftest.$ac_ext
21988 LIBS=$ac_check_lib_save_LIBS
21989 fi
21990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_mul_si" >&5
21991 $as_echo "$ac_cv_lib_gmp___gmpz_mul_si" >&6; }
21992 if test "x$ac_cv_lib_gmp___gmpz_mul_si" = x""yes; then :
21993 GMP_CFLAGS="$gmpinc"
21994 GMP_LIBS="$gmplibs"
21995 else
21996 GMP_CFLAGS=
21997 GMP_LIBS=
21998 fi
21999
22000
22001
22002
22003 for ac_header in gmp.h
22004 do :
22005 ac_fn_c_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
22006 if test "x$ac_cv_header_gmp_h" = x""yes; then :
22007 cat >>confdefs.h <<_ACEOF
22008 #define HAVE_GMP_H 1
22009 _ACEOF
22010
22011 fi
22012
22013 done
22014
22015 fi
22016
22017 else
22018 COMPILE_GMP=no
22019 fi
22020
22021 if test "x${REGENERATE_JNI_HEADERS}" = xyes; then
22022
22023
22024 # Check whether --with-javah was given.
22025 if test "${with_javah+set}" = set; then :
22026 withval=$with_javah;
22027 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
22028
22029 if test "x${withval}" != x; then
22030 if test -f "${withval}"; then
22031 USER_JAVAH="${withval}"
22032 else
22033 # Extract the first word of ""${withval}"", so it can be a program name with args.
22034 set dummy "${withval}"; ac_word=$2
22035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22036 $as_echo_n "checking for $ac_word... " >&6; }
22037 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
22038 $as_echo_n "(cached) " >&6
22039 else
22040 case $USER_JAVAH in
22041 [\\/]* | ?:[\\/]*)
22042 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22043 ;;
22044 *)
22045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22046 for as_dir in $PATH
22047 do
22048 IFS=$as_save_IFS
22049 test -z "$as_dir" && as_dir=.
22050 for ac_exec_ext in '' $ac_executable_extensions; do
22051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22052 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22054 break 2
22055 fi
22056 done
22057 done
22058 IFS=$as_save_IFS
22059
22060 ;;
22061 esac
22062 fi
22063 USER_JAVAH=$ac_cv_path_USER_JAVAH
22064 if test -n "$USER_JAVAH"; then
22065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
22066 $as_echo "$USER_JAVAH" >&6; }
22067 else
22068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22069 $as_echo "no" >&6; }
22070 fi
22071
22072
22073 fi
22074 else
22075 for ac_prog in gjavah gjavah-4.3 gjavah-4.2 gjavah-4.1 gcjh-wrapper-4.1 gcjh-4.1 javah
22076 do
22077 # Extract the first word of "$ac_prog", so it can be a program name with args.
22078 set dummy $ac_prog; ac_word=$2
22079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22080 $as_echo_n "checking for $ac_word... " >&6; }
22081 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
22082 $as_echo_n "(cached) " >&6
22083 else
22084 case $USER_JAVAH in
22085 [\\/]* | ?:[\\/]*)
22086 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22087 ;;
22088 *)
22089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22090 for as_dir in $PATH
22091 do
22092 IFS=$as_save_IFS
22093 test -z "$as_dir" && as_dir=.
22094 for ac_exec_ext in '' $ac_executable_extensions; do
22095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22096 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22098 break 2
22099 fi
22100 done
22101 done
22102 IFS=$as_save_IFS
22103
22104 ;;
22105 esac
22106 fi
22107 USER_JAVAH=$ac_cv_path_USER_JAVAH
22108 if test -n "$USER_JAVAH"; then
22109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
22110 $as_echo "$USER_JAVAH" >&6; }
22111 else
22112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22113 $as_echo "no" >&6; }
22114 fi
22115
22116
22117 test -n "$USER_JAVAH" && break
22118 done
22119
22120 fi
22121
22122 if test "x${USER_JAVAH}" = x; then
22123 as_fn_error "can not find javah" "$LINENO" 5
22124 fi
22125
22126 else
22127
22128 if test "x" != x; then
22129 if test -f ""; then
22130 USER_JAVAH=""
22131 else
22132 # Extract the first word of """", so it can be a program name with args.
22133 set dummy ""; ac_word=$2
22134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22135 $as_echo_n "checking for $ac_word... " >&6; }
22136 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
22137 $as_echo_n "(cached) " >&6
22138 else
22139 case $USER_JAVAH in
22140 [\\/]* | ?:[\\/]*)
22141 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22142 ;;
22143 *)
22144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22145 for as_dir in $PATH
22146 do
22147 IFS=$as_save_IFS
22148 test -z "$as_dir" && as_dir=.
22149 for ac_exec_ext in '' $ac_executable_extensions; do
22150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22151 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22153 break 2
22154 fi
22155 done
22156 done
22157 IFS=$as_save_IFS
22158
22159 ;;
22160 esac
22161 fi
22162 USER_JAVAH=$ac_cv_path_USER_JAVAH
22163 if test -n "$USER_JAVAH"; then
22164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
22165 $as_echo "$USER_JAVAH" >&6; }
22166 else
22167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22168 $as_echo "no" >&6; }
22169 fi
22170
22171
22172 fi
22173 else
22174 for ac_prog in gjavah gjavah-4.3 gjavah-4.2 gjavah-4.1 gcjh-wrapper-4.1 gcjh-4.1 javah
22175 do
22176 # Extract the first word of "$ac_prog", so it can be a program name with args.
22177 set dummy $ac_prog; ac_word=$2
22178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22179 $as_echo_n "checking for $ac_word... " >&6; }
22180 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
22181 $as_echo_n "(cached) " >&6
22182 else
22183 case $USER_JAVAH in
22184 [\\/]* | ?:[\\/]*)
22185 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22186 ;;
22187 *)
22188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22189 for as_dir in $PATH
22190 do
22191 IFS=$as_save_IFS
22192 test -z "$as_dir" && as_dir=.
22193 for ac_exec_ext in '' $ac_executable_extensions; do
22194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22195 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22197 break 2
22198 fi
22199 done
22200 done
22201 IFS=$as_save_IFS
22202
22203 ;;
22204 esac
22205 fi
22206 USER_JAVAH=$ac_cv_path_USER_JAVAH
22207 if test -n "$USER_JAVAH"; then
22208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
22209 $as_echo "$USER_JAVAH" >&6; }
22210 else
22211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22212 $as_echo "no" >&6; }
22213 fi
22214
22215
22216 test -n "$USER_JAVAH" && break
22217 done
22218
22219 fi
22220
22221 if test "x${USER_JAVAH}" = x; then
22222 as_fn_error "can not find javah" "$LINENO" 5
22223 fi
22224
22225 fi
22226
22227 else
22228
22229
22230 if test "x" != x; then
22231 if test -f ""; then
22232 USER_JAVAH=""
22233 else
22234 # Extract the first word of """", so it can be a program name with args.
22235 set dummy ""; ac_word=$2
22236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22237 $as_echo_n "checking for $ac_word... " >&6; }
22238 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
22239 $as_echo_n "(cached) " >&6
22240 else
22241 case $USER_JAVAH in
22242 [\\/]* | ?:[\\/]*)
22243 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22244 ;;
22245 *)
22246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22247 for as_dir in $PATH
22248 do
22249 IFS=$as_save_IFS
22250 test -z "$as_dir" && as_dir=.
22251 for ac_exec_ext in '' $ac_executable_extensions; do
22252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22253 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22255 break 2
22256 fi
22257 done
22258 done
22259 IFS=$as_save_IFS
22260
22261 ;;
22262 esac
22263 fi
22264 USER_JAVAH=$ac_cv_path_USER_JAVAH
22265 if test -n "$USER_JAVAH"; then
22266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
22267 $as_echo "$USER_JAVAH" >&6; }
22268 else
22269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22270 $as_echo "no" >&6; }
22271 fi
22272
22273
22274 fi
22275 else
22276 for ac_prog in gjavah gjavah-4.3 gjavah-4.2 gjavah-4.1 gcjh-wrapper-4.1 gcjh-4.1 javah
22277 do
22278 # Extract the first word of "$ac_prog", so it can be a program name with args.
22279 set dummy $ac_prog; ac_word=$2
22280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22281 $as_echo_n "checking for $ac_word... " >&6; }
22282 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
22283 $as_echo_n "(cached) " >&6
22284 else
22285 case $USER_JAVAH in
22286 [\\/]* | ?:[\\/]*)
22287 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22288 ;;
22289 *)
22290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22291 for as_dir in $PATH
22292 do
22293 IFS=$as_save_IFS
22294 test -z "$as_dir" && as_dir=.
22295 for ac_exec_ext in '' $ac_executable_extensions; do
22296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22297 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22299 break 2
22300 fi
22301 done
22302 done
22303 IFS=$as_save_IFS
22304
22305 ;;
22306 esac
22307 fi
22308 USER_JAVAH=$ac_cv_path_USER_JAVAH
22309 if test -n "$USER_JAVAH"; then
22310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
22311 $as_echo "$USER_JAVAH" >&6; }
22312 else
22313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22314 $as_echo "no" >&6; }
22315 fi
22316
22317
22318 test -n "$USER_JAVAH" && break
22319 done
22320
22321 fi
22322
22323 if test "x${USER_JAVAH}" = x; then
22324 as_fn_error "can not find javah" "$LINENO" 5
22325 fi
22326
22327
22328 fi
22329
22330
22331
22332 fi
22333
22334 CLASSPATH_INCLUDES="-I\$(top_srcdir)/include -I\$(top_srcdir)/native/jni/classpath -I\$(top_srcdir)/native/jni/native-lib"
22335
22336
22337 if test "x${COMPILE_JNI}" = xyes; then
22338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking jni_md.h support" >&5
22339 $as_echo_n "checking jni_md.h support... " >&6; }
22340 if test -f ${srcdir}/include/jni_md-${target_cpu}-${target_os}.h; then
22341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22342 $as_echo "yes" >&6; }
22343 else
22344 target_cpu=x86
22345 target_os=linux-gnu
22346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no" >&5
22347 $as_echo "$as_me: WARNING: no" >&2;}
22348 fi
22349 ac_sources="include/jni_md-${target_cpu}-${target_os}.h"
22350 ac_dests="include/jni_md.h"
22351 while test -n "$ac_sources"; do
22352 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
22353 set $ac_sources; ac_source=$1; shift; ac_sources=$*
22354 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
22355 done
22356 ac_config_links="$ac_config_links $ac_config_links_1"
22357
22358 fi
22359
22360
22361
22362 # Check whether --with-vm-classes was given.
22363 if test "${with_vm_classes+set}" = set; then :
22364 withval=$with_vm_classes; vm_classes="$with_vm_classes"
22365 else
22366 vm_classes='${top_srcdir}/vm/reference'
22367 fi
22368
22369
22370
22371
22372
22373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
22374 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
22375 # Check whether --enable-maintainer-mode was given.
22376 if test "${enable_maintainer_mode+set}" = set; then :
22377 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
22378 else
22379 USE_MAINTAINER_MODE=no
22380 fi
22381
22382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
22383 $as_echo "$USE_MAINTAINER_MODE" >&6; }
22384 if test $USE_MAINTAINER_MODE = yes; then
22385 MAINTAINER_MODE_TRUE=
22386 MAINTAINER_MODE_FALSE='#'
22387 else
22388 MAINTAINER_MODE_TRUE='#'
22389 MAINTAINER_MODE_FALSE=
22390 fi
22391
22392 MAINT=$MAINTAINER_MODE_TRUE
22393
22394
22395
22396 # Check whether --enable-debug was given.
22397 if test "${enable_debug+set}" = set; then :
22398 enableval=$enable_debug; case "${enableval}" in
22399 yes)
22400 LIBDEBUG="true"
22401
22402 $as_echo "#define DEBUG 1" >>confdefs.h
22403
22404 ;;
22405 no) LIBDEBUG="false" ;;
22406 *) as_fn_error "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
22407 esac
22408 else
22409 LIBDEBUG="false"
22410 fi
22411
22412
22413
22414 # Check whether --enable-load-library was given.
22415 if test "${enable_load_library+set}" = set; then :
22416 enableval=$enable_load_library; case "${enableval}" in
22417 yes) INIT_LOAD_LIBRARY="true" ;;
22418 no) INIT_LOAD_LIBRARY="false" ;;
22419 *) as_fn_error "bad value ${enableval} for --enable-load-library" "$LINENO" 5 ;;
22420 esac
22421 else
22422 INIT_LOAD_LIBRARY="true"
22423 fi
22424
22425
22426
22427
22428
22429 # Check whether --with-ecj-jar was given.
22430 if test "${with_ecj_jar+set}" = set; then :
22431 withval=$with_ecj_jar; ECJ_JAR=$withval
22432 else
22433 if test -f $multi_basedir/ecj.jar; then
22434 ECJ_JAR='$(jardir)/ecj.jar'
22435 fi
22436 fi
22437
22438
22439
22440 # Check whether --enable-java-lang-system-explicit-initialization was given.
22441 if test "${enable_java_lang_system_explicit_initialization+set}" = set; then :
22442 enableval=$enable_java_lang_system_explicit_initialization; case "${enableval}" in
22443 yes|true) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="true" ;;
22444 no|false) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false" ;;
22445 *) as_fn_error "bad value ${enableval} for --enable-java-lang-system-explicit-initialization" "$LINENO" 5 ;;
22446 esac
22447 else
22448 JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false"
22449 fi
22450
22451
22452
22453
22454 REMOVE=""
22455
22456
22457 # Extract the first word of "mkdir", so it can be a program name with args.
22458 set dummy mkdir; ac_word=$2
22459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22460 $as_echo_n "checking for $ac_word... " >&6; }
22461 if test "${ac_cv_path_MKDIR+set}" = set; then :
22462 $as_echo_n "(cached) " >&6
22463 else
22464 case $MKDIR in
22465 [\\/]* | ?:[\\/]*)
22466 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
22467 ;;
22468 *)
22469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22470 for as_dir in $PATH
22471 do
22472 IFS=$as_save_IFS
22473 test -z "$as_dir" && as_dir=.
22474 for ac_exec_ext in '' $ac_executable_extensions; do
22475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22476 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
22477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22478 break 2
22479 fi
22480 done
22481 done
22482 IFS=$as_save_IFS
22483
22484 ;;
22485 esac
22486 fi
22487 MKDIR=$ac_cv_path_MKDIR
22488 if test -n "$MKDIR"; then
22489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
22490 $as_echo "$MKDIR" >&6; }
22491 else
22492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22493 $as_echo "no" >&6; }
22494 fi
22495
22496
22497 # Extract the first word of "cp", so it can be a program name with args.
22498 set dummy cp; ac_word=$2
22499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22500 $as_echo_n "checking for $ac_word... " >&6; }
22501 if test "${ac_cv_path_CP+set}" = set; then :
22502 $as_echo_n "(cached) " >&6
22503 else
22504 case $CP in
22505 [\\/]* | ?:[\\/]*)
22506 ac_cv_path_CP="$CP" # Let the user override the test with a path.
22507 ;;
22508 *)
22509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22510 for as_dir in $PATH
22511 do
22512 IFS=$as_save_IFS
22513 test -z "$as_dir" && as_dir=.
22514 for ac_exec_ext in '' $ac_executable_extensions; do
22515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22516 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
22517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22518 break 2
22519 fi
22520 done
22521 done
22522 IFS=$as_save_IFS
22523
22524 ;;
22525 esac
22526 fi
22527 CP=$ac_cv_path_CP
22528 if test -n "$CP"; then
22529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
22530 $as_echo "$CP" >&6; }
22531 else
22532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22533 $as_echo "no" >&6; }
22534 fi
22535
22536
22537 # Extract the first word of "date", so it can be a program name with args.
22538 set dummy date; ac_word=$2
22539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22540 $as_echo_n "checking for $ac_word... " >&6; }
22541 if test "${ac_cv_path_DATE+set}" = set; then :
22542 $as_echo_n "(cached) " >&6
22543 else
22544 case $DATE in
22545 [\\/]* | ?:[\\/]*)
22546 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
22547 ;;
22548 *)
22549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22550 for as_dir in $PATH
22551 do
22552 IFS=$as_save_IFS
22553 test -z "$as_dir" && as_dir=.
22554 for ac_exec_ext in '' $ac_executable_extensions; do
22555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22556 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
22557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22558 break 2
22559 fi
22560 done
22561 done
22562 IFS=$as_save_IFS
22563
22564 ;;
22565 esac
22566 fi
22567 DATE=$ac_cv_path_DATE
22568 if test -n "$DATE"; then
22569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
22570 $as_echo "$DATE" >&6; }
22571 else
22572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22573 $as_echo "no" >&6; }
22574 fi
22575
22576
22577
22578 # Extract the first word of "find", so it can be a program name with args.
22579 set dummy find; ac_word=$2
22580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22581 $as_echo_n "checking for $ac_word... " >&6; }
22582 if test "${ac_cv_path_FIND+set}" = set; then :
22583 $as_echo_n "(cached) " >&6
22584 else
22585 case $FIND in
22586 [\\/]* | ?:[\\/]*)
22587 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
22588 ;;
22589 *)
22590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22591 for as_dir in $PATH
22592 do
22593 IFS=$as_save_IFS
22594 test -z "$as_dir" && as_dir=.
22595 for ac_exec_ext in '' $ac_executable_extensions; do
22596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22597 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
22598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22599 break 2
22600 fi
22601 done
22602 done
22603 IFS=$as_save_IFS
22604
22605 ;;
22606 esac
22607 fi
22608 FIND=$ac_cv_path_FIND
22609 if test -n "$FIND"; then
22610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
22611 $as_echo "$FIND" >&6; }
22612 else
22613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22614 $as_echo "no" >&6; }
22615 fi
22616
22617
22618
22619
22620 # Extract the first word of "zip", so it can be a program name with args.
22621 set dummy zip; ac_word=$2
22622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22623 $as_echo_n "checking for $ac_word... " >&6; }
22624 if test "${ac_cv_path_ZIP+set}" = set; then :
22625 $as_echo_n "(cached) " >&6
22626 else
22627 case $ZIP in
22628 [\\/]* | ?:[\\/]*)
22629 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
22630 ;;
22631 *)
22632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22633 for as_dir in $PATH
22634 do
22635 IFS=$as_save_IFS
22636 test -z "$as_dir" && as_dir=.
22637 for ac_exec_ext in '' $ac_executable_extensions; do
22638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22639 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
22640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22641 break 2
22642 fi
22643 done
22644 done
22645 IFS=$as_save_IFS
22646
22647 ;;
22648 esac
22649 fi
22650 ZIP=$ac_cv_path_ZIP
22651 if test -n "$ZIP"; then
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
22653 $as_echo "$ZIP" >&6; }
22654 else
22655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22656 $as_echo "no" >&6; }
22657 fi
22658
22659
22660
22661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a jar-like tool" >&5
22662 $as_echo_n "checking for a jar-like tool... " >&6; }
22663
22664 # Check whether --with-jar was given.
22665 if test "${with_jar+set}" = set; then :
22666 withval=$with_jar;
22667 case "${withval}" in
22668 yes)
22669 JAR=yes
22670 ;;
22671 no)
22672 JAR=no
22673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${JAR}" >&5
22674 $as_echo "${JAR}" >&6; }
22675 ;;
22676 *)
22677 if test -f "${withval}"; then
22678 JAR="${withval}"
22679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${JAR}" >&5
22680 $as_echo "${JAR}" >&6; }
22681 else
22682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22683 $as_echo "not found" >&6; }
22684 as_fn_error "The jar tool ${withval} was not found." "$LINENO" 5
22685 fi
22686 ;;
22687 esac
22688
22689 else
22690
22691 JAR=yes
22692
22693 fi
22694
22695 if test x"${JAR}" = "xyes"; then
22696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: trying fastjar, gjar and jar" >&5
22697 $as_echo "trying fastjar, gjar and jar" >&6; }
22698 for ac_prog in fastjar gjar jar
22699 do
22700 # Extract the first word of "$ac_prog", so it can be a program name with args.
22701 set dummy $ac_prog; ac_word=$2
22702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22703 $as_echo_n "checking for $ac_word... " >&6; }
22704 if test "${ac_cv_path_JAR+set}" = set; then :
22705 $as_echo_n "(cached) " >&6
22706 else
22707 case $JAR in
22708 [\\/]* | ?:[\\/]*)
22709 ac_cv_path_JAR="$JAR" # Let the user override the test with a path.
22710 ;;
22711 *)
22712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22713 for as_dir in $PATH
22714 do
22715 IFS=$as_save_IFS
22716 test -z "$as_dir" && as_dir=.
22717 for ac_exec_ext in '' $ac_executable_extensions; do
22718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22719 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext"
22720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22721 break 2
22722 fi
22723 done
22724 done
22725 IFS=$as_save_IFS
22726
22727 ;;
22728 esac
22729 fi
22730 JAR=$ac_cv_path_JAR
22731 if test -n "$JAR"; then
22732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
22733 $as_echo "$JAR" >&6; }
22734 else
22735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22736 $as_echo "no" >&6; }
22737 fi
22738
22739
22740 test -n "$JAR" && break
22741 done
22742
22743 if test x"${RHINO_JAR}" = "xyes"; then
22744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22745 $as_echo "not found" >&6; }
22746 fi
22747 fi
22748 if test x"${JAR}" = "xno" && test x"${ZIP}" = ""; then
22749 as_fn_error "No zip or jar tool found." "$LINENO" 5
22750 fi
22751 if test x"${JAR}" != "xno" && test x"${JAR}" != "xyes"; then
22752 WITH_JAR_TRUE=
22753 WITH_JAR_FALSE='#'
22754 else
22755 WITH_JAR_TRUE='#'
22756 WITH_JAR_FALSE=
22757 fi
22758
22759
22760
22761
22762 # Check whether --with-glibj was given.
22763 if test "${with_glibj+set}" = set; then :
22764 withval=$with_glibj;
22765 if test "x${withval}" = xyes || test "x${withval}" = xzip; then
22766 install_class_files=no
22767 build_class_files=yes
22768 use_zip=yes
22769 elif test "x${withval}" = xboth; then
22770 install_class_files=yes
22771 build_class_files=yes
22772 use_zip=yes
22773 elif test "x${withval}" = xflat; then
22774 install_class_files=yes
22775 build_class_files=yes
22776 use_zip=no
22777 elif test "x${withval}" = xno || test "x${withval}" = xnone; then
22778 install_class_files=no
22779 build_class_files=no
22780 use_zip=no
22781 elif test "x${withval}" = xbuild; then
22782 install_class_files=no
22783 build_class_files=yes
22784 use_zip=no
22785 else
22786 as_fn_error "unknown value given to --with-glibj" "$LINENO" 5
22787 fi
22788
22789 else
22790
22791 install_class_files=no
22792 use_zip=yes
22793
22794 fi
22795
22796 if test "x${use_zip}" = xyes; then
22797 INSTALL_GLIBJ_ZIP_TRUE=
22798 INSTALL_GLIBJ_ZIP_FALSE='#'
22799 else
22800 INSTALL_GLIBJ_ZIP_TRUE='#'
22801 INSTALL_GLIBJ_ZIP_FALSE=
22802 fi
22803
22804 if test "x${install_class_files}" = xyes; then
22805 INSTALL_CLASS_FILES_TRUE=
22806 INSTALL_CLASS_FILES_FALSE='#'
22807 else
22808 INSTALL_CLASS_FILES_TRUE='#'
22809 INSTALL_CLASS_FILES_FALSE=
22810 fi
22811
22812 if test "x${build_class_files}" = xyes; then
22813 BUILD_CLASS_FILES_TRUE=
22814 BUILD_CLASS_FILES_FALSE='#'
22815 else
22816 BUILD_CLASS_FILES_TRUE='#'
22817 BUILD_CLASS_FILES_FALSE=
22818 fi
22819
22820
22821 # Check whether --enable-examples was given.
22822 if test "${enable_examples+set}" = set; then :
22823 enableval=$enable_examples; case "${enableval}" in
22824 yes) EXAMPLESDIR="examples" ;;
22825 no) EXAMPLESDIR="" ;;
22826 *) as_fn_error "bad value ${enableval} for --enable-examples" "$LINENO" 5 ;;
22827 esac
22828 else
22829 EXAMPLESDIR="examples"
22830 fi
22831
22832 if test "x${build_class_files}" = xno; then
22833 EXAMPLESDIR=""
22834 fi
22835
22836
22837 # Check whether --enable-tools was given.
22838 if test "${enable_tools+set}" = set; then :
22839 enableval=$enable_tools; case "${enableval}" in
22840 yes) TOOLSDIR="tools" ;;
22841 no) TOOLSDIR="" ;;
22842 *) as_fn_error "bad value ${enableval} for --enable-tools" "$LINENO" 5 ;;
22843 esac
22844 else
22845 TOOLSDIR="tools"
22846 fi
22847
22848 if test "x${build_class_files}" = xno; then
22849 TOOLSDIR=""
22850 fi
22851
22852
22853
22854
22855
22856 # Check whether --with-gjdoc was given.
22857 if test "${with_gjdoc+set}" = set; then :
22858 withval=$with_gjdoc; if test "x${withval}" = xno; then
22859 WITH_GJDOC=no;
22860 elif test "x${withval}" = xyes -o "x{withval}" = x; then
22861 WITH_GJDOC=yes;
22862 # Extract the first word of "gjdoc", so it can be a program name with args.
22863 set dummy gjdoc; ac_word=$2
22864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22865 $as_echo_n "checking for $ac_word... " >&6; }
22866 if test "${ac_cv_path_GJDOC+set}" = set; then :
22867 $as_echo_n "(cached) " >&6
22868 else
22869 case $GJDOC in
22870 [\\/]* | ?:[\\/]*)
22871 ac_cv_path_GJDOC="$GJDOC" # Let the user override the test with a path.
22872 ;;
22873 *)
22874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22875 for as_dir in $PATH
22876 do
22877 IFS=$as_save_IFS
22878 test -z "$as_dir" && as_dir=.
22879 for ac_exec_ext in '' $ac_executable_extensions; do
22880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22881 ac_cv_path_GJDOC="$as_dir/$ac_word$ac_exec_ext"
22882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22883 break 2
22884 fi
22885 done
22886 done
22887 IFS=$as_save_IFS
22888
22889 test -z "$ac_cv_path_GJDOC" && ac_cv_path_GJDOC=""no""
22890 ;;
22891 esac
22892 fi
22893 GJDOC=$ac_cv_path_GJDOC
22894 if test -n "$GJDOC"; then
22895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GJDOC" >&5
22896 $as_echo "$GJDOC" >&6; }
22897 else
22898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22899 $as_echo "no" >&6; }
22900 fi
22901
22902
22903 if test "x${GJDOC}" = xno; then
22904 as_fn_error "\"gjdoc executable not found\"" "$LINENO" 5;
22905 fi
22906 else
22907 WITH_GJDOC=yes
22908 GJDOC="${withval}"
22909 as_ac_File=`$as_echo "ac_cv_file_${GJDOC}" | $as_tr_sh`
22910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${GJDOC}" >&5
22911 $as_echo_n "checking for ${GJDOC}... " >&6; }
22912 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
22913 $as_echo_n "(cached) " >&6
22914 else
22915 test "$cross_compiling" = yes &&
22916 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
22917 if test -r "${GJDOC}"; then
22918 eval "$as_ac_File=yes"
22919 else
22920 eval "$as_ac_File=no"
22921 fi
22922 fi
22923 eval ac_res=\$$as_ac_File
22924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22925 $as_echo "$ac_res" >&6; }
22926 eval as_val=\$$as_ac_File
22927 if test "x$as_val" = x""yes; then :
22928
22929 else
22930 as_fn_error "\"Cannot use ${withval} as gjdoc executable since it doesn't exist\"" "$LINENO" 5
22931 fi
22932
22933 fi
22934 else
22935 WITH_GJDOC=no
22936 fi
22937
22938 if test "x${WITH_GJDOC}" = xyes; then
22939 CREATE_API_DOCS_TRUE=
22940 CREATE_API_DOCS_FALSE='#'
22941 else
22942 CREATE_API_DOCS_TRUE='#'
22943 CREATE_API_DOCS_FALSE=
22944 fi
22945
22946 if test "x${WITH_GJDOC}" = xyes; then
22947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of GJDoc" >&5
22948 $as_echo_n "checking version of GJDoc... " >&6; }
22949 gjdoc_version=$(${GJDOC} --version|cut -d ' ' -f2)
22950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gjdoc_version}" >&5
22951 $as_echo "${gjdoc_version}" >&6; }
22952 case ${gjdoc_version} in
22953 0.7.9) ;;
22954 0.8*) ;;
22955 *) as_fn_error "Building documentation requires GJDoc >= 0.7.9, ${gjdoc_version} found." "$LINENO" 5 ;;
22956 esac
22957 fi
22958
22959
22960
22961
22962 # Check whether --with-jay was given.
22963 if test "${with_jay+set}" = set; then :
22964 withval=$with_jay;
22965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to regenerate parsers with jay" >&5
22966 $as_echo_n "checking whether to regenerate parsers with jay... " >&6; }
22967 JAY_FOUND=no
22968 JAY_DIR_PATH=
22969 if test "x${withval}" = xno; then
22970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22971 $as_echo "no" >&6; }
22972 elif test "x${withval}" = xyes; then
22973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22974 $as_echo "yes" >&6; }
22975 JAY_DIR_PATH="/usr/share/jay"
22976 elif test -d "${withval}"; then
22977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22978 $as_echo "yes" >&6; }
22979 JAY_DIR_PATH="${withval}"
22980 elif test -f "${withval}"; then
22981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22982 $as_echo "yes" >&6; }
22983 JAY_DIR_PATH=`dirname "${withval}"`
22984 JAY="${withval}"
22985 else
22986 as_fn_error "jay not found at ${withval}" "$LINENO" 5
22987 fi
22988
22989 if test "x${JAY_DIR_PATH}" != x; then
22990 # Extract the first word of "jay", so it can be a program name with args.
22991 set dummy jay; ac_word=$2
22992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22993 $as_echo_n "checking for $ac_word... " >&6; }
22994 if test "${ac_cv_path_JAY+set}" = set; then :
22995 $as_echo_n "(cached) " >&6
22996 else
22997 case $JAY in
22998 [\\/]* | ?:[\\/]*)
22999 ac_cv_path_JAY="$JAY" # Let the user override the test with a path.
23000 ;;
23001 *)
23002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23003 as_dummy="${JAY_DIR_PATH}:${PATH}"
23004 for as_dir in $as_dummy
23005 do
23006 IFS=$as_save_IFS
23007 test -z "$as_dir" && as_dir=.
23008 for ac_exec_ext in '' $ac_executable_extensions; do
23009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23010 ac_cv_path_JAY="$as_dir/$ac_word$ac_exec_ext"
23011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23012 break 2
23013 fi
23014 done
23015 done
23016 IFS=$as_save_IFS
23017
23018 test -z "$ac_cv_path_JAY" && ac_cv_path_JAY=""no""
23019 ;;
23020 esac
23021 fi
23022 JAY=$ac_cv_path_JAY
23023 if test -n "$JAY"; then
23024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAY" >&5
23025 $as_echo "$JAY" >&6; }
23026 else
23027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23028 $as_echo "no" >&6; }
23029 fi
23030
23031
23032 if test "x${JAY}" = xno; then
23033 as_fn_error "jay executable not found" "$LINENO" 5;
23034 fi
23035 JAY_SKELETON="${JAY_DIR_PATH}/skeleton"
23036 as_ac_File=`$as_echo "ac_cv_file_${JAY_SKELETON}" | $as_tr_sh`
23037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${JAY_SKELETON}" >&5
23038 $as_echo_n "checking for ${JAY_SKELETON}... " >&6; }
23039 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
23040 $as_echo_n "(cached) " >&6
23041 else
23042 test "$cross_compiling" = yes &&
23043 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
23044 if test -r "${JAY_SKELETON}"; then
23045 eval "$as_ac_File=yes"
23046 else
23047 eval "$as_ac_File=no"
23048 fi
23049 fi
23050 eval ac_res=\$$as_ac_File
23051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23052 $as_echo "$ac_res" >&6; }
23053 eval as_val=\$$as_ac_File
23054 if test "x$as_val" = x""yes; then :
23055
23056 else
23057 as_fn_error "Expected skeleton file in ${JAY_DIR_PATH}" "$LINENO" 5
23058 fi
23059
23060 JAY_FOUND=yes
23061 fi
23062
23063 else
23064
23065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to regenerate parsers with jay" >&5
23066 $as_echo_n "checking whether to regenerate parsers with jay... " >&6; }
23067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23068 $as_echo "no" >&6; }
23069 JAY_FOUND=no
23070
23071 fi
23072
23073 if test "x${JAY_FOUND}" = xyes; then
23074 REGEN_PARSERS_TRUE=
23075 REGEN_PARSERS_FALSE='#'
23076 else
23077 REGEN_PARSERS_TRUE='#'
23078 REGEN_PARSERS_FALSE=
23079 fi
23080
23081
23082
23083 # Check whether --enable-portable-native-sync was given.
23084 if test "${enable_portable_native_sync+set}" = set; then :
23085 enableval=$enable_portable_native_sync; case "${enableval}" in
23086 yes)
23087
23088 $as_echo "#define PORTABLE_NATIVE_SYNC 1" >>confdefs.h
23089
23090 ;;
23091 no) ;;
23092 *)
23093 as_fn_error "bad value ${enableval} for --enable-portable-native-sync" "$LINENO" 5
23094 ;;
23095 esac
23096 fi
23097
23098
23099 # ------ AX CREATE STDINT H -------------------------------------
23100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
23101 $as_echo_n "checking for stdint types... " >&6; }
23102 ac_stdint_h=`echo include/config-int.h`
23103 # try to shortcircuit - if the default include path of the compiler
23104 # can find a "stdint.h" header then we assume that all compilers can.
23105 if test "${ac_cv_header_stdint_t+set}" = set; then :
23106 $as_echo_n "(cached) " >&6
23107 else
23108
23109 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
23110 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
23111 old_CFLAGS="$CFLAGS" ; CFLAGS=""
23112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23113 /* end confdefs.h. */
23114 #include <stdint.h>
23115 int
23116 main ()
23117 {
23118 int_least32_t v = 0;
23119 ;
23120 return 0;
23121 }
23122 _ACEOF
23123 if ac_fn_c_try_compile "$LINENO"; then :
23124 ac_cv_stdint_result="(assuming C99 compatible system)"
23125 ac_cv_header_stdint_t="stdint.h";
23126 else
23127 ac_cv_header_stdint_t=""
23128 fi
23129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23130 CXXFLAGS="$old_CXXFLAGS"
23131 CPPFLAGS="$old_CPPFLAGS"
23132 CFLAGS="$old_CFLAGS"
23133 fi
23134
23135
23136 v="... $ac_cv_header_stdint_h"
23137 if test "$ac_stdint_h" = "stdint.h" ; then
23138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
23139 $as_echo "(are you sure you want them in ./stdint.h?)" >&6; }
23140 elif test "$ac_stdint_h" = "inttypes.h" ; then
23141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
23142 $as_echo "(are you sure you want them in ./inttypes.h?)" >&6; }
23143 elif test "_$ac_cv_header_stdint_t" = "_" ; then
23144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
23145 $as_echo "(putting them into $ac_stdint_h)$v" >&6; }
23146 else
23147 ac_cv_header_stdint="$ac_cv_header_stdint_t"
23148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
23149 $as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; }
23150 fi
23151
23152 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
23153
23154
23155 inttype_headers=`echo | sed -e 's/,/ /g'`
23156
23157 ac_cv_stdint_result="(no helpful system typedefs seen)"
23158
23159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
23160 $as_echo_n "checking for stdint uintptr_t... " >&6; }
23161 if test "${ac_cv_header_stdint_x+set}" = set; then :
23162 $as_echo_n "(cached) " >&6
23163 else
23164
23165 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
23166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
23167 $as_echo "(..)" >&6; }
23168 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do
23169 unset ac_cv_type_uintptr_t
23170 unset ac_cv_type_uint64_t
23171 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
23172 "
23173 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
23174 ac_cv_header_stdint_x=$i
23175 else
23176 continue
23177 fi
23178
23179 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
23180 "
23181 if test "x$ac_cv_type_uint64_t" = x""yes; then :
23182 and64="/uint64_t"
23183 else
23184 and64=""
23185 fi
23186
23187 stdint.h inttypes.h sys/inttypes.h $inttype_headers
23188 break
23189 done
23190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
23191 $as_echo_n "checking for stdint uintptr_t... " >&6; }
23192
23193 fi
23194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
23195 $as_echo "$ac_cv_header_stdint_x" >&6; }
23196
23197
23198 if test "_$ac_cv_header_stdint_x" = "_" ; then
23199
23200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
23201 $as_echo_n "checking for stdint uint32_t... " >&6; }
23202 if test "${ac_cv_header_stdint_o+set}" = set; then :
23203 $as_echo_n "(cached) " >&6
23204 else
23205
23206 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
23207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
23208 $as_echo "(..)" >&6; }
23209 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do
23210 unset ac_cv_type_uint32_t
23211 unset ac_cv_type_uint64_t
23212 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
23213 "
23214 if test "x$ac_cv_type_uint32_t" = x""yes; then :
23215 ac_cv_header_stdint_o=$i
23216 else
23217 continue
23218 fi
23219
23220 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
23221 "
23222 if test "x$ac_cv_type_uint64_t" = x""yes; then :
23223 and64="/uint64_t"
23224 else
23225 and64=""
23226 fi
23227
23228 inttypes.h sys/inttypes.h stdint.h $inttype_headers
23229 break
23230 break;
23231 done
23232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
23233 $as_echo_n "checking for stdint uint32_t... " >&6; }
23234
23235 fi
23236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
23237 $as_echo "$ac_cv_header_stdint_o" >&6; }
23238
23239 fi
23240
23241 if test "_$ac_cv_header_stdint_x" = "_" ; then
23242 if test "_$ac_cv_header_stdint_o" = "_" ; then
23243
23244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
23245 $as_echo_n "checking for stdint u_int32_t... " >&6; }
23246 if test "${ac_cv_header_stdint_u+set}" = set; then :
23247 $as_echo_n "(cached) " >&6
23248 else
23249
23250 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
23251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
23252 $as_echo "(..)" >&6; }
23253 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
23254 unset ac_cv_type_u_int32_t
23255 unset ac_cv_type_u_int64_t
23256 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
23257 "
23258 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
23259 ac_cv_header_stdint_u=$i
23260 else
23261 continue
23262 fi
23263
23264 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
23265 "
23266 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
23267 and64="/u_int64_t"
23268 else
23269 and64=""
23270 fi
23271
23272 sys/types.h inttypes.h sys/inttypes.h $inttype_headers
23273 break
23274 break;
23275 done
23276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
23277 $as_echo_n "checking for stdint u_int32_t... " >&6; }
23278
23279 fi
23280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
23281 $as_echo "$ac_cv_header_stdint_u" >&6; }
23282
23283 fi fi
23284
23285 if test "_$ac_cv_header_stdint_x" = "_" ; then
23286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
23287 $as_echo_n "checking for stdint datatype model... " >&6; }
23288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
23289 $as_echo "(..)" >&6; }
23290
23291 # The cast to long int works around a bug in the HP C Compiler
23292 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23293 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23294 # This bug is HP SR number 8606223364.
23295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
23296 $as_echo_n "checking size of char... " >&6; }
23297 if test "${ac_cv_sizeof_char+set}" = set; then :
23298 $as_echo_n "(cached) " >&6
23299 else
23300 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
23301
23302 else
23303 if test "$ac_cv_type_char" = yes; then
23304 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23306 { as_fn_set_status 77
23307 as_fn_error "cannot compute sizeof (char)
23308 See \`config.log' for more details." "$LINENO" 5; }; }
23309 else
23310 ac_cv_sizeof_char=0
23311 fi
23312 fi
23313
23314 fi
23315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
23316 $as_echo "$ac_cv_sizeof_char" >&6; }
23317
23318
23319
23320 cat >>confdefs.h <<_ACEOF
23321 #define SIZEOF_CHAR $ac_cv_sizeof_char
23322 _ACEOF
23323
23324
23325 # The cast to long int works around a bug in the HP C Compiler
23326 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23327 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23328 # This bug is HP SR number 8606223364.
23329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
23330 $as_echo_n "checking size of short... " >&6; }
23331 if test "${ac_cv_sizeof_short+set}" = set; then :
23332 $as_echo_n "(cached) " >&6
23333 else
23334 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
23335
23336 else
23337 if test "$ac_cv_type_short" = yes; then
23338 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23340 { as_fn_set_status 77
23341 as_fn_error "cannot compute sizeof (short)
23342 See \`config.log' for more details." "$LINENO" 5; }; }
23343 else
23344 ac_cv_sizeof_short=0
23345 fi
23346 fi
23347
23348 fi
23349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
23350 $as_echo "$ac_cv_sizeof_short" >&6; }
23351
23352
23353
23354 cat >>confdefs.h <<_ACEOF
23355 #define SIZEOF_SHORT $ac_cv_sizeof_short
23356 _ACEOF
23357
23358
23359 # The cast to long int works around a bug in the HP C Compiler
23360 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23361 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23362 # This bug is HP SR number 8606223364.
23363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
23364 $as_echo_n "checking size of int... " >&6; }
23365 if test "${ac_cv_sizeof_int+set}" = set; then :
23366 $as_echo_n "(cached) " >&6
23367 else
23368 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
23369
23370 else
23371 if test "$ac_cv_type_int" = yes; then
23372 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23374 { as_fn_set_status 77
23375 as_fn_error "cannot compute sizeof (int)
23376 See \`config.log' for more details." "$LINENO" 5; }; }
23377 else
23378 ac_cv_sizeof_int=0
23379 fi
23380 fi
23381
23382 fi
23383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
23384 $as_echo "$ac_cv_sizeof_int" >&6; }
23385
23386
23387
23388 cat >>confdefs.h <<_ACEOF
23389 #define SIZEOF_INT $ac_cv_sizeof_int
23390 _ACEOF
23391
23392
23393 # The cast to long int works around a bug in the HP C Compiler
23394 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23395 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23396 # This bug is HP SR number 8606223364.
23397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
23398 $as_echo_n "checking size of long... " >&6; }
23399 if test "${ac_cv_sizeof_long+set}" = set; then :
23400 $as_echo_n "(cached) " >&6
23401 else
23402 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
23403
23404 else
23405 if test "$ac_cv_type_long" = yes; then
23406 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23408 { as_fn_set_status 77
23409 as_fn_error "cannot compute sizeof (long)
23410 See \`config.log' for more details." "$LINENO" 5; }; }
23411 else
23412 ac_cv_sizeof_long=0
23413 fi
23414 fi
23415
23416 fi
23417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
23418 $as_echo "$ac_cv_sizeof_long" >&6; }
23419
23420
23421
23422 cat >>confdefs.h <<_ACEOF
23423 #define SIZEOF_LONG $ac_cv_sizeof_long
23424 _ACEOF
23425
23426
23427 # The cast to long int works around a bug in the HP C Compiler
23428 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23429 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23430 # This bug is HP SR number 8606223364.
23431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
23432 $as_echo_n "checking size of void*... " >&6; }
23433 if test "${ac_cv_sizeof_voidp+set}" = set; then :
23434 $as_echo_n "(cached) " >&6
23435 else
23436 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
23437
23438 else
23439 if test "$ac_cv_type_voidp" = yes; then
23440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23442 { as_fn_set_status 77
23443 as_fn_error "cannot compute sizeof (void*)
23444 See \`config.log' for more details." "$LINENO" 5; }; }
23445 else
23446 ac_cv_sizeof_voidp=0
23447 fi
23448 fi
23449
23450 fi
23451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
23452 $as_echo "$ac_cv_sizeof_voidp" >&6; }
23453
23454
23455
23456 cat >>confdefs.h <<_ACEOF
23457 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
23458 _ACEOF
23459
23460
23461 ac_cv_char_data_model=""
23462 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
23463 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
23464 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
23465 ac_cv_long_data_model=""
23466 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
23467 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
23468 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
23469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking data model" >&5
23470 $as_echo_n "checking data model... " >&6; }
23471 case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
23472 122/242) ac_cv_data_model="IP16" ; n="standard 16bit machine" ;;
23473 122/244) ac_cv_data_model="LP32" ; n="standard 32bit machine" ;;
23474 122/*) ac_cv_data_model="i16" ; n="unusual int16 model" ;;
23475 124/444) ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
23476 124/488) ac_cv_data_model="LP64" ; n="standard 64bit unixish" ;;
23477 124/448) ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
23478 124/*) ac_cv_data_model="i32" ; n="unusual int32 model" ;;
23479 128/888) ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
23480 128/*) ac_cv_data_model="i64" ; n="unusual int64 model" ;;
23481 222/*2) ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
23482 333/*3) ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
23483 444/*4) ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
23484 666/*6) ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
23485 888/*8) ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
23486 222/*|333/*|444/*|666/*|888/*) :
23487 ac_cv_data_model="iDSP" ; n="unusual dsptype" ;;
23488 *) ac_cv_data_model="none" ; n="very unusual model" ;;
23489 esac
23490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
23491 $as_echo "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; }
23492
23493 fi
23494
23495 if test "_$ac_cv_header_stdint_x" != "_" ; then
23496 ac_cv_header_stdint="$ac_cv_header_stdint_x"
23497 elif test "_$ac_cv_header_stdint_o" != "_" ; then
23498 ac_cv_header_stdint="$ac_cv_header_stdint_o"
23499 elif test "_$ac_cv_header_stdint_u" != "_" ; then
23500 ac_cv_header_stdint="$ac_cv_header_stdint_u"
23501 else
23502 ac_cv_header_stdint="stddef.h"
23503 fi
23504
23505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
23506 $as_echo_n "checking for extra inttypes in chosen header... " >&6; }
23507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
23508 $as_echo "($ac_cv_header_stdint)" >&6; }
23509 unset ac_cv_type_int_least32_t
23510 unset ac_cv_type_int_fast32_t
23511 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
23512 "
23513 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
23514
23515 fi
23516
23517 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
23518 "
23519 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
23520
23521 fi
23522
23523 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
23524 "
23525 if test "x$ac_cv_type_intmax_t" = x""yes; then :
23526
23527 fi
23528
23529
23530 fi # shortcircut to system "stdint.h"
23531 # ------------------ PREPARE VARIABLES ------------------------------
23532 if test "$GCC" = "yes" ; then
23533 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
23534 else
23535 ac_cv_stdint_message="using $CC"
23536 fi
23537
23538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
23539 $as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
23540
23541 # ----------------- DONE inttypes.h checks START header -------------
23542 ac_config_commands="$ac_config_commands $ac_stdint_h"
23543
23544
23545
23546
23547 # Check whether --with-glibj_zip was given.
23548 if test "${with_glibj_zip+set}" = set; then :
23549 withval=$with_glibj_zip;
23550 fi
23551
23552
23553 case "$with_glibj_zip" in
23554 "")
23555 use_glibj_zip=false
23556 ;;
23557 "no" )
23558 use_glibj_zip=false
23559 ;;
23560 "yes")
23561 as_fn_error "Please suply an absolute path to a prebuilt glibj.zip" "$LINENO" 5
23562 ;;
23563 *)
23564 use_glibj_zip=true
23565 PATH_TO_GLIBJ_ZIP=$with_glibj_zip
23566 ;;
23567 esac;
23568
23569 if test x$use_glibj_zip = xtrue; then
23570 USE_PREBUILT_GLIBJ_ZIP_TRUE=
23571 USE_PREBUILT_GLIBJ_ZIP_FALSE='#'
23572 else
23573 USE_PREBUILT_GLIBJ_ZIP_TRUE='#'
23574 USE_PREBUILT_GLIBJ_ZIP_FALSE=
23575 fi
23576
23577
23578
23579 if test "x${TOOLSDIR}" != x; then
23580 if test "x${COMPILE_WRAPPERS}" = xno && test "x${enable_java_maintainer_mode}" = xyes; then
23581
23582
23583 if test "x$JAVAPREFIX" = x; then
23584 test "x$JAVA" = x && for ac_prog in cacao$EXEEXT jamvm$EXEEXT kaffe$EXEEXT gij$EXEEXT java$EXEEXT
23585 do
23586 # Extract the first word of "$ac_prog", so it can be a program name with args.
23587 set dummy $ac_prog; ac_word=$2
23588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23589 $as_echo_n "checking for $ac_word... " >&6; }
23590 if test "${ac_cv_prog_JAVA+set}" = set; then :
23591 $as_echo_n "(cached) " >&6
23592 else
23593 if test -n "$JAVA"; then
23594 ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
23595 else
23596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23597 for as_dir in $PATH
23598 do
23599 IFS=$as_save_IFS
23600 test -z "$as_dir" && as_dir=.
23601 for ac_exec_ext in '' $ac_executable_extensions; do
23602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23603 ac_cv_prog_JAVA="$ac_prog"
23604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23605 break 2
23606 fi
23607 done
23608 done
23609 IFS=$as_save_IFS
23610
23611 fi
23612 fi
23613 JAVA=$ac_cv_prog_JAVA
23614 if test -n "$JAVA"; then
23615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
23616 $as_echo "$JAVA" >&6; }
23617 else
23618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23619 $as_echo "no" >&6; }
23620 fi
23621
23622
23623 test -n "$JAVA" && break
23624 done
23625
23626 else
23627 test "x$JAVA" = x && for ac_prog in cacao$EXEEXT jamvm$EXEEXT kaffe$EXEEXT gij$EXEEXT java$EXEEXT
23628 do
23629 # Extract the first word of "$ac_prog", so it can be a program name with args.
23630 set dummy $ac_prog; ac_word=$2
23631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23632 $as_echo_n "checking for $ac_word... " >&6; }
23633 if test "${ac_cv_prog_JAVA+set}" = set; then :
23634 $as_echo_n "(cached) " >&6
23635 else
23636 if test -n "$JAVA"; then
23637 ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
23638 else
23639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23640 for as_dir in $PATH
23641 do
23642 IFS=$as_save_IFS
23643 test -z "$as_dir" && as_dir=.
23644 for ac_exec_ext in '' $ac_executable_extensions; do
23645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23646 ac_cv_prog_JAVA="$ac_prog"
23647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23648 break 2
23649 fi
23650 done
23651 done
23652 IFS=$as_save_IFS
23653
23654 fi
23655 fi
23656 JAVA=$ac_cv_prog_JAVA
23657 if test -n "$JAVA"; then
23658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
23659 $as_echo "$JAVA" >&6; }
23660 else
23661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23662 $as_echo "no" >&6; }
23663 fi
23664
23665
23666 test -n "$JAVA" && break
23667 done
23668 test -n "$JAVA" || JAVA="$JAVAPREFIX"
23669
23670 fi
23671 test "x$JAVA" = x && as_fn_error "no acceptable Java virtual machine found in \$PATH" "$LINENO" 5
23672
23673 # Extract the first word of "uudecode$EXEEXT", so it can be a program name with args.
23674 set dummy uudecode$EXEEXT; ac_word=$2
23675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23676 $as_echo_n "checking for $ac_word... " >&6; }
23677 if test "${ac_cv_prog_uudecode+set}" = set; then :
23678 $as_echo_n "(cached) " >&6
23679 else
23680 if test -n "$uudecode"; then
23681 ac_cv_prog_uudecode="$uudecode" # Let the user override the test.
23682 else
23683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23684 for as_dir in $PATH
23685 do
23686 IFS=$as_save_IFS
23687 test -z "$as_dir" && as_dir=.
23688 for ac_exec_ext in '' $ac_executable_extensions; do
23689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23690 ac_cv_prog_uudecode="yes"
23691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23692 break 2
23693 fi
23694 done
23695 done
23696 IFS=$as_save_IFS
23697
23698 fi
23699 fi
23700 uudecode=$ac_cv_prog_uudecode
23701 if test -n "$uudecode"; then
23702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $uudecode" >&5
23703 $as_echo "$uudecode" >&6; }
23704 else
23705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23706 $as_echo "no" >&6; }
23707 fi
23708
23709
23710 if test x$uudecode = xyes; then
23711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if uudecode can decode base 64 file" >&5
23712 $as_echo_n "checking if uudecode can decode base 64 file... " >&6; }
23713 if test "${ac_cv_prog_uudecode_base64+set}" = set; then :
23714 $as_echo_n "(cached) " >&6
23715 else
23716
23717 cat << \EOF > Test.uue
23718 begin-base64 644 Test.class
23719 yv66vgADAC0AFQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAE
23720 bWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51
23721 bWJlclRhYmxlDAAKAAsBAARleGl0AQAEKEkpVgoADQAJBwAOAQAQamF2YS9s
23722 YW5nL1N5c3RlbQEABjxpbml0PgEAAygpVgwADwAQCgADABEBAApTb3VyY2VG
23723 aWxlAQAJVGVzdC5qYXZhACEAAQADAAAAAAACAAkABQAGAAEABwAAACEAAQAB
23724 AAAABQO4AAyxAAAAAQAIAAAACgACAAAACgAEAAsAAQAPABAAAQAHAAAAIQAB
23725 AAEAAAAFKrcAErEAAAABAAgAAAAKAAIAAAAEAAQABAABABMAAAACABQ=
23726 ====
23727 EOF
23728 if uudecode$EXEEXT Test.uue; then
23729 ac_cv_prog_uudecode_base64=yes
23730 else
23731 echo "configure: 23731: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
23732 echo "configure: failed file was:" >&5
23733 cat Test.uue >&5
23734 ac_cv_prog_uudecode_base64=no
23735 fi
23736 rm -f Test.uue
23737 fi
23738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_uudecode_base64" >&5
23739 $as_echo "$ac_cv_prog_uudecode_base64" >&6; }
23740 fi
23741 if test x$ac_cv_prog_uudecode_base64 != xyes; then
23742 rm -f Test.class
23743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I have to compile Test.class from scratch" >&5
23744 $as_echo "$as_me: WARNING: I have to compile Test.class from scratch" >&2;}
23745 if test x$ac_cv_prog_javac_works = xno; then
23746 as_fn_error "Cannot compile java source. $JAVAC does not work properly" "$LINENO" 5
23747 fi
23748 if test x$ac_cv_prog_javac_works = x; then
23749
23750 ECJ_OPTS="-warn:-deprecation,serial,unusedImport"
23751 JAVAC_OPTS="-Xlint:unchecked,cast,divzero,empty,finally,overrides"
23752 GCJ_OPTS="-g"
23753 if test "x$JAVAPREFIX" = x; then
23754 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"
23755 do
23756 # Extract the first word of "$ac_prog", so it can be a program name with args.
23757 set dummy $ac_prog; ac_word=$2
23758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23759 $as_echo_n "checking for $ac_word... " >&6; }
23760 if test "${ac_cv_prog_JAVAC+set}" = set; then :
23761 $as_echo_n "(cached) " >&6
23762 else
23763 if test -n "$JAVAC"; then
23764 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
23765 else
23766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23767 for as_dir in $PATH
23768 do
23769 IFS=$as_save_IFS
23770 test -z "$as_dir" && as_dir=.
23771 for ac_exec_ext in '' $ac_executable_extensions; do
23772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23773 ac_cv_prog_JAVAC="$ac_prog"
23774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23775 break 2
23776 fi
23777 done
23778 done
23779 IFS=$as_save_IFS
23780
23781 fi
23782 fi
23783 JAVAC=$ac_cv_prog_JAVAC
23784 if test -n "$JAVAC"; then
23785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
23786 $as_echo "$JAVAC" >&6; }
23787 else
23788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23789 $as_echo "no" >&6; }
23790 fi
23791
23792
23793 test -n "$JAVAC" && break
23794 done
23795
23796 else
23797 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"
23798 do
23799 # Extract the first word of "$ac_prog", so it can be a program name with args.
23800 set dummy $ac_prog; ac_word=$2
23801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23802 $as_echo_n "checking for $ac_word... " >&6; }
23803 if test "${ac_cv_prog_JAVAC+set}" = set; then :
23804 $as_echo_n "(cached) " >&6
23805 else
23806 if test -n "$JAVAC"; then
23807 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
23808 else
23809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23810 for as_dir in $PATH
23811 do
23812 IFS=$as_save_IFS
23813 test -z "$as_dir" && as_dir=.
23814 for ac_exec_ext in '' $ac_executable_extensions; do
23815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23816 ac_cv_prog_JAVAC="$ac_prog"
23817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23818 break 2
23819 fi
23820 done
23821 done
23822 IFS=$as_save_IFS
23823
23824 fi
23825 fi
23826 JAVAC=$ac_cv_prog_JAVAC
23827 if test -n "$JAVAC"; then
23828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
23829 $as_echo "$JAVAC" >&6; }
23830 else
23831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23832 $as_echo "no" >&6; }
23833 fi
23834
23835
23836 test -n "$JAVAC" && break
23837 done
23838 test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
23839
23840 fi
23841 test "x$JAVAC" = x && as_fn_error "no acceptable Java compiler found in \$PATH" "$LINENO" 5
23842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC is a version of gcj" >&5
23843 $as_echo_n "checking if $JAVAC is a version of gcj... " >&6; }
23844 if test "${ac_cv_prog_javac_is_gcj+set}" = set; then :
23845 $as_echo_n "(cached) " >&6
23846 else
23847
23848 if $JAVAC --version | grep gcj > /dev/null; then
23849 ac_cv_prog_javac_is_gcj=yes;
23850 JAVAC="$JAVAC $GCJ_OPTS";
23851 fi
23852 fi
23853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_is_gcj" >&5
23854 $as_echo "$ac_cv_prog_javac_is_gcj" >&6; }
23855 JAVAC_IS_GCJ=$ac_cv_prog_javac_is_gcj
23856
23857 if test x"${JAVAC_IS_GCJ}" = xyes; then
23858 GCJ_JAVAC_TRUE=
23859 GCJ_JAVAC_FALSE='#'
23860 else
23861 GCJ_JAVAC_TRUE='#'
23862 GCJ_JAVAC_FALSE=
23863 fi
23864
23865 if test "$enable_java_maintainer_mode" = yes; then
23866
23867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
23868 $as_echo_n "checking if $JAVAC works... " >&6; }
23869 if test "${ac_cv_prog_javac_works+set}" = set; then :
23870 $as_echo_n "(cached) " >&6
23871 else
23872
23873 JAVA_TEST=Object.java
23874 CLASS_TEST=Object.class
23875 cat << \EOF > $JAVA_TEST
23876 /* #line 23876 "configure" */
23877 package java.lang;
23878
23879 public class Object
23880 {
23881 static <T> void doStuff()
23882 {
23883 }
23884 }
23885 EOF
23886 if test x$JAVAC_IS_GCJ = xyes; then
23887 CMD="$JAVAC $JAVACFLAGS -fsource=1.5 -ftarget=1.5 $JAVA_TEST"
23888 else
23889 CMD="$JAVAC $JAVACFLAGS -source 1.5 -target 1.5 $JAVA_TEST"
23890 fi
23891 if { ac_try='$CMD'
23892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23893 (eval $ac_try) 2>&5
23894 ac_status=$?
23895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23896 test $ac_status = 0; }; } >/dev/null 2>&1; then
23897 ac_cv_prog_javac_works=yes
23898 else
23899 as_fn_error "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
23900 echo "configure: failed program was:" >&5
23901 cat $JAVA_TEST >&5
23902 fi
23903 rm -f $JAVA_TEST $CLASS_TEST
23904
23905 fi
23906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
23907 $as_echo "$ac_cv_prog_javac_works" >&6; }
23908
23909 fi
23910
23911 fi
23912 fi
23913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVA works" >&5
23914 $as_echo_n "checking if $JAVA works... " >&6; }
23915 if test "${ac_cv_prog_java_works+set}" = set; then :
23916 $as_echo_n "(cached) " >&6
23917 else
23918
23919 JAVA_TEST=Test.java
23920 CLASS_TEST=Test.class
23921 TEST=Test
23922 cat << \EOF > $JAVA_TEST
23923 /* [#]line 23923 "configure" */
23924 public class Test {
23925 public static void main (String args[]) {
23926 System.exit (0);
23927 } }
23928 EOF
23929 if test x$ac_cv_prog_uudecode_base64 != xyes; then
23930 if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
23931 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23932 (eval $ac_try) 2>&5
23933 ac_status=$?
23934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23935 test $ac_status = 0; }; } && test -s $CLASS_TEST; then
23936 :
23937 else
23938 echo "configure: failed program was:" >&5
23939 cat $JAVA_TEST >&5
23940 as_fn_error "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
23941 fi
23942 fi
23943 if { ac_try='CLASSPATH=.:$CLASSPATH $JAVA $JAVAFLAGS $TEST'
23944 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23945 (eval $ac_try) 2>&5
23946 ac_status=$?
23947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23948 test $ac_status = 0; }; } >/dev/null 2>&1; then
23949 ac_cv_prog_java_works=yes
23950 else
23951 echo "configure: failed program was:" >&5
23952 cat $JAVA_TEST >&5
23953 as_fn_error "The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
23954 fi
23955 rm -fr $JAVA_TEST $CLASS_TEST Test.uue
23956
23957 fi
23958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_java_works" >&5
23959 $as_echo "$ac_cv_prog_java_works" >&6; }
23960
23961
23962
23963 fi
23964 if test "x${COMPILE_GJDOC}" = xyes; then
23965
23966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ANTLR parser generator JAR file" >&5
23967 $as_echo_n "checking for the ANTLR parser generator JAR file... " >&6; }
23968 if test -z "$ANTLR_JAR"; then
23969 for antlr_lib_home in `ls -d /usr/local/share/antlr* 2> /dev/null` \
23970 /usr/share/antlr/lib /usr/share/java /usr/lib;
23971 do
23972 if test -f "$antlr_lib_home/antlr.jar"; then
23973 ANTLR_JAR="$antlr_lib_home/antlr.jar"
23974 break
23975 fi
23976 done
23977 fi
23978 test -f $ANTLR_JAR || as_fn_error "specified ANTLR jar file $ANTLR_JAR not found." "$LINENO" 5 \
23979 && { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
23980 $as_echo "$ANTLR_JAR" >&6; }
23981
23982
23983 if test "x${REGENERATE_GJDOC_PARSER}" = xyes && test "x${enable_java_maintainer_mode}" = xyes; then
23984
23985 if test -n "$ac_tool_prefix"; then
23986 for ac_prog in cantlr runantlr antlr
23987 do
23988 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23989 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
23990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23991 $as_echo_n "checking for $ac_word... " >&6; }
23992 if test "${ac_cv_prog_ANTLR+set}" = set; then :
23993 $as_echo_n "(cached) " >&6
23994 else
23995 if test -n "$ANTLR"; then
23996 ac_cv_prog_ANTLR="$ANTLR" # Let the user override the test.
23997 else
23998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23999 for as_dir in $PATH
24000 do
24001 IFS=$as_save_IFS
24002 test -z "$as_dir" && as_dir=.
24003 for ac_exec_ext in '' $ac_executable_extensions; do
24004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24005 ac_cv_prog_ANTLR="$ac_tool_prefix$ac_prog"
24006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24007 break 2
24008 fi
24009 done
24010 done
24011 IFS=$as_save_IFS
24012
24013 fi
24014 fi
24015 ANTLR=$ac_cv_prog_ANTLR
24016 if test -n "$ANTLR"; then
24017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR" >&5
24018 $as_echo "$ANTLR" >&6; }
24019 else
24020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24021 $as_echo "no" >&6; }
24022 fi
24023
24024
24025 test -n "$ANTLR" && break
24026 done
24027 fi
24028 if test -z "$ANTLR"; then
24029 ac_ct_ANTLR=$ANTLR
24030 for ac_prog in cantlr runantlr antlr
24031 do
24032 # Extract the first word of "$ac_prog", so it can be a program name with args.
24033 set dummy $ac_prog; ac_word=$2
24034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24035 $as_echo_n "checking for $ac_word... " >&6; }
24036 if test "${ac_cv_prog_ac_ct_ANTLR+set}" = set; then :
24037 $as_echo_n "(cached) " >&6
24038 else
24039 if test -n "$ac_ct_ANTLR"; then
24040 ac_cv_prog_ac_ct_ANTLR="$ac_ct_ANTLR" # Let the user override the test.
24041 else
24042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24043 for as_dir in $PATH
24044 do
24045 IFS=$as_save_IFS
24046 test -z "$as_dir" && as_dir=.
24047 for ac_exec_ext in '' $ac_executable_extensions; do
24048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24049 ac_cv_prog_ac_ct_ANTLR="$ac_prog"
24050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24051 break 2
24052 fi
24053 done
24054 done
24055 IFS=$as_save_IFS
24056
24057 fi
24058 fi
24059 ac_ct_ANTLR=$ac_cv_prog_ac_ct_ANTLR
24060 if test -n "$ac_ct_ANTLR"; then
24061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_ANTLR" >&5
24062 $as_echo "$ac_ct_ANTLR" >&6; }
24063 else
24064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24065 $as_echo "no" >&6; }
24066 fi
24067
24068
24069 test -n "$ac_ct_ANTLR" && break
24070 done
24071
24072 if test "x$ac_ct_ANTLR" = x; then
24073 ANTLR=""
24074 else
24075 case $cross_compiling:$ac_tool_warned in
24076 yes:)
24077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24079 ac_tool_warned=yes ;;
24080 esac
24081 ANTLR=$ac_ct_ANTLR
24082 fi
24083 fi
24084
24085 if test "x$ANTLR" = x; then
24086 if test -z "$JAVA"; then
24087 as_fn_error "Failed to find either an antlr binary or a suitable Java runtime for ANTLR." "$LINENO" 5
24088 else
24089 ANTLR="$JAVA -classpath $ANTLR_JAR antlr.Tool"
24090 fi
24091 fi
24092
24093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for antlr 2.7.1 or better" >&5
24094 $as_echo_n "checking for antlr 2.7.1 or better... " >&6; }
24095 antlr_version_str=`$ANTLR 2>&1 | head -n 1 | sed '/.*Version */!d; s///;q'`
24096 if test "$antlr_version_str"; then
24097 antlr_version_regex='s/\([[:digit:]]\+\)\.\([[:digit:]]\+\)\.\([[:digit:]]\+\).*$/'
24098 antlr_version_major=`echo $antlr_version_str | sed "$antlr_version_regex\\1/"`
24099 antlr_version_minor=`echo $antlr_version_str | sed "$antlr_version_regex\\2/"`
24100 antlr_version_micro=`echo $antlr_version_str | sed "$antlr_version_regex\\3/"`
24101 (test $antlr_version_major -gt 2 || \
24102 (test $antlr_version_major -eq 2 && \
24103 test $antlr_version_minor -gt 7) || \
24104 (test $antlr_version_major -eq 2 && \
24105 test $antlr_version_minor -eq 7 && \
24106 test $antlr_version_micro -ge 1))
24107 fi
24108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $antlr_version_major.$antlr_version_minor.$antlr_version_micro" >&5
24109 $as_echo "$antlr_version_major.$antlr_version_minor.$antlr_version_micro" >&6; }
24110
24111 fi
24112 fi
24113 fi
24114
24115
24116 # Check for javac if we need to build either the class library,
24117 # the examples or the tools
24118 if test "x${use_glibj_zip}" = xfalse || \
24119 test "x${EXAMPLESDIR}" != x || \
24120 test "x${TOOLSDIR}" != x && \
24121 test "x${build_class_files}" != xno; then
24122
24123 ECJ_OPTS="-warn:-deprecation,serial,unusedImport"
24124 JAVAC_OPTS="-Xlint:unchecked,cast,divzero,empty,finally,overrides"
24125 GCJ_OPTS="-g"
24126 if test "x$JAVAPREFIX" = x; then
24127 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"
24128 do
24129 # Extract the first word of "$ac_prog", so it can be a program name with args.
24130 set dummy $ac_prog; ac_word=$2
24131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24132 $as_echo_n "checking for $ac_word... " >&6; }
24133 if test "${ac_cv_prog_JAVAC+set}" = set; then :
24134 $as_echo_n "(cached) " >&6
24135 else
24136 if test -n "$JAVAC"; then
24137 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
24138 else
24139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24140 for as_dir in $PATH
24141 do
24142 IFS=$as_save_IFS
24143 test -z "$as_dir" && as_dir=.
24144 for ac_exec_ext in '' $ac_executable_extensions; do
24145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24146 ac_cv_prog_JAVAC="$ac_prog"
24147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24148 break 2
24149 fi
24150 done
24151 done
24152 IFS=$as_save_IFS
24153
24154 fi
24155 fi
24156 JAVAC=$ac_cv_prog_JAVAC
24157 if test -n "$JAVAC"; then
24158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
24159 $as_echo "$JAVAC" >&6; }
24160 else
24161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24162 $as_echo "no" >&6; }
24163 fi
24164
24165
24166 test -n "$JAVAC" && break
24167 done
24168
24169 else
24170 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"
24171 do
24172 # Extract the first word of "$ac_prog", so it can be a program name with args.
24173 set dummy $ac_prog; ac_word=$2
24174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24175 $as_echo_n "checking for $ac_word... " >&6; }
24176 if test "${ac_cv_prog_JAVAC+set}" = set; then :
24177 $as_echo_n "(cached) " >&6
24178 else
24179 if test -n "$JAVAC"; then
24180 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
24181 else
24182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24183 for as_dir in $PATH
24184 do
24185 IFS=$as_save_IFS
24186 test -z "$as_dir" && as_dir=.
24187 for ac_exec_ext in '' $ac_executable_extensions; do
24188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24189 ac_cv_prog_JAVAC="$ac_prog"
24190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24191 break 2
24192 fi
24193 done
24194 done
24195 IFS=$as_save_IFS
24196
24197 fi
24198 fi
24199 JAVAC=$ac_cv_prog_JAVAC
24200 if test -n "$JAVAC"; then
24201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
24202 $as_echo "$JAVAC" >&6; }
24203 else
24204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24205 $as_echo "no" >&6; }
24206 fi
24207
24208
24209 test -n "$JAVAC" && break
24210 done
24211 test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
24212
24213 fi
24214 test "x$JAVAC" = x && as_fn_error "no acceptable Java compiler found in \$PATH" "$LINENO" 5
24215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC is a version of gcj" >&5
24216 $as_echo_n "checking if $JAVAC is a version of gcj... " >&6; }
24217 if test "${ac_cv_prog_javac_is_gcj+set}" = set; then :
24218 $as_echo_n "(cached) " >&6
24219 else
24220
24221 if $JAVAC --version | grep gcj > /dev/null; then
24222 ac_cv_prog_javac_is_gcj=yes;
24223 JAVAC="$JAVAC $GCJ_OPTS";
24224 fi
24225 fi
24226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_is_gcj" >&5
24227 $as_echo "$ac_cv_prog_javac_is_gcj" >&6; }
24228 JAVAC_IS_GCJ=$ac_cv_prog_javac_is_gcj
24229
24230 if test x"${JAVAC_IS_GCJ}" = xyes; then
24231 GCJ_JAVAC_TRUE=
24232 GCJ_JAVAC_FALSE='#'
24233 else
24234 GCJ_JAVAC_TRUE='#'
24235 GCJ_JAVAC_FALSE=
24236 fi
24237
24238 if test "$enable_java_maintainer_mode" = yes; then
24239
24240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
24241 $as_echo_n "checking if $JAVAC works... " >&6; }
24242 if test "${ac_cv_prog_javac_works+set}" = set; then :
24243 $as_echo_n "(cached) " >&6
24244 else
24245
24246 JAVA_TEST=Object.java
24247 CLASS_TEST=Object.class
24248 cat << \EOF > $JAVA_TEST
24249 /* #line 24249 "configure" */
24250 package java.lang;
24251
24252 public class Object
24253 {
24254 static <T> void doStuff()
24255 {
24256 }
24257 }
24258 EOF
24259 if test x$JAVAC_IS_GCJ = xyes; then
24260 CMD="$JAVAC $JAVACFLAGS -fsource=1.5 -ftarget=1.5 $JAVA_TEST"
24261 else
24262 CMD="$JAVAC $JAVACFLAGS -source 1.5 -target 1.5 $JAVA_TEST"
24263 fi
24264 if { ac_try='$CMD'
24265 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24266 (eval $ac_try) 2>&5
24267 ac_status=$?
24268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24269 test $ac_status = 0; }; } >/dev/null 2>&1; then
24270 ac_cv_prog_javac_works=yes
24271 else
24272 as_fn_error "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
24273 echo "configure: failed program was:" >&5
24274 cat $JAVA_TEST >&5
24275 fi
24276 rm -f $JAVA_TEST $CLASS_TEST
24277
24278 fi
24279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
24280 $as_echo "$ac_cv_prog_javac_works" >&6; }
24281
24282 fi
24283
24284
24285 JAVA_TEST=Test.java
24286 CLASS_TEST=Test.class
24287 cat << \EOF > $JAVA_TEST
24288 /* #line 24288 "configure" */
24289 public class Test
24290 {
24291 public static void main(String args)
24292 {
24293 System.out.println("Hello World");
24294 }
24295 }
24296 EOF
24297 if test x$JAVAC_IS_GCJ != xyes; then
24298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether javac supports -J" >&5
24299 $as_echo_n "checking whether javac supports -J... " >&6; }
24300 $JAVAC $JAVACFLAGS -J-Xmx768M -sourcepath '' $JAVA_TEST
24301 javac_result=$?
24302 if test "x$javac_result" = "x0"; then
24303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24304 $as_echo "yes" >&6; }
24305 JAVAC_MEM_OPT="-J-Xmx768M"
24306 else
24307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24308 $as_echo "no" >&6; }
24309 fi
24310 fi
24311 rm -f $JAVA_TEST $CLASS_TEST
24312
24313
24314 fi
24315
24316
24317 # Check whether --with-escher was given.
24318 if test "${with_escher+set}" = set; then :
24319 withval=$with_escher;
24320 fi
24321
24322 case "$with_escher" in
24323 "")
24324 use_escher=false
24325 ;;
24326 "no")
24327 use_escher=false
24328 ;;
24329 "yes")
24330 as_fn_error "Please supply an absolute path to Escher library" "$LINENO" 5
24331 ;;
24332 *)
24333 use_escher=true
24334 PATH_TO_ESCHER=$with_escher
24335 ;;
24336 esac
24337
24338 if test x$use_escher = xtrue; then
24339 USE_ESCHER_TRUE=
24340 USE_ESCHER_FALSE='#'
24341 else
24342 USE_ESCHER_TRUE='#'
24343 USE_ESCHER_FALSE=
24344 fi
24345
24346
24347
24348 # Check whether --enable-local-sockets was given.
24349 if test "${enable_local_sockets+set}" = set; then :
24350 enableval=$enable_local_sockets; case "${enableval}" in
24351 yes)
24352 ENABLE_LOCAL_SOCKETS=yes
24353 ;;
24354 *)
24355 ENABLE_LOCAL_SOCKETS=no
24356 ;;
24357 esac
24358 fi
24359
24360 if test "x$ENABLE_LOCAL_SOCKETS" = "xyes"
24361 then
24362 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
24363 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
24364
24365 fi
24366
24367
24368 for ac_func in read write bind listen accept shutdown
24369 do :
24370 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24371 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24372 eval as_val=\$$as_ac_var
24373 if test "x$as_val" = x""yes; then :
24374 cat >>confdefs.h <<_ACEOF
24375 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24376 _ACEOF
24377
24378 else
24379 as_fn_error "networking support not available" "$LINENO" 5
24380 fi
24381 done
24382
24383
24384 $as_echo "#define ENABLE_LOCAL_SOCKETS 1" >>confdefs.h
24385
24386 fi
24387 if test "x$ENABLE_LOCAL_SOCKETS" = "xyes"; then
24388 ENABLE_LOCAL_SOCKETS_TRUE=
24389 ENABLE_LOCAL_SOCKETS_FALSE='#'
24390 else
24391 ENABLE_LOCAL_SOCKETS_TRUE='#'
24392 ENABLE_LOCAL_SOCKETS_FALSE=
24393 fi
24394
24395
24396
24397
24398 WANT_NATIVE_BIG_INTEGER=false
24399 if test "x${COMPILE_GMP}" = xyes; then
24400 if test "x${ac_cv_lib_gmp___gmpz_mul_si}" = xyes; then
24401 if test "x${ac_cv_header_gmp_h}" = xyes; then
24402 WANT_NATIVE_BIG_INTEGER=true
24403
24404 $as_echo "#define WITH_GNU_MP 1" >>confdefs.h
24405
24406 else
24407 COMPILE_GMP=no
24408 fi
24409 else
24410 COMPILE_GMP=no
24411 fi
24412 fi
24413
24414 if test "x${COMPILE_GMP}" = xyes; then
24415 CREATE_GMPBI_LIBRARY_TRUE=
24416 CREATE_GMPBI_LIBRARY_FALSE='#'
24417 else
24418 CREATE_GMPBI_LIBRARY_TRUE='#'
24419 CREATE_GMPBI_LIBRARY_FALSE=
24420 fi
24421
24422
24423 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"
24424
24425
24426 if test "x${COMPILE_WRAPPERS}" = xyes; then
24427 :
24428 else
24429 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"
24430
24431
24432 ac_config_commands="$ac_config_commands gappletviewer"
24433
24434 ac_config_commands="$ac_config_commands gjarsigner"
24435
24436 ac_config_commands="$ac_config_commands gkeytool"
24437
24438 ac_config_commands="$ac_config_commands gjar"
24439
24440 ac_config_commands="$ac_config_commands gnative2ascii"
24441
24442 ac_config_commands="$ac_config_commands gserialver"
24443
24444 ac_config_commands="$ac_config_commands grmiregistry"
24445
24446 ac_config_commands="$ac_config_commands gtnameserv"
24447
24448 ac_config_commands="$ac_config_commands gorbd"
24449
24450 ac_config_commands="$ac_config_commands grmid"
24451
24452 ac_config_commands="$ac_config_commands grmic"
24453
24454 ac_config_commands="$ac_config_commands gjavah"
24455
24456
24457 fi
24458
24459 if test "x${COMPILE_GJDOC}" = xyes
24460 then
24461 ac_config_files="$ac_config_files tools/gjdoc"
24462
24463 ac_config_commands="$ac_config_commands gjdoc"
24464
24465 fi
24466
24467 ac_config_commands="$ac_config_commands gen-classlist"
24468
24469 ac_config_commands="$ac_config_commands copy-vmresources"
24470
24471 cat >confcache <<\_ACEOF
24472 # This file is a shell script that caches the results of configure
24473 # tests run on this system so they can be shared between configure
24474 # scripts and configure runs, see configure's option --config-cache.
24475 # It is not useful on other systems. If it contains results you don't
24476 # want to keep, you may remove or edit it.
24477 #
24478 # config.status only pays attention to the cache file if you give it
24479 # the --recheck option to rerun configure.
24480 #
24481 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24482 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24483 # following values.
24484
24485 _ACEOF
24486
24487 # The following way of writing the cache mishandles newlines in values,
24488 # but we know of no workaround that is simple, portable, and efficient.
24489 # So, we kill variables containing newlines.
24490 # Ultrix sh set writes to stderr and can't be redirected directly,
24491 # and sets the high bit in the cache file unless we assign to the vars.
24492 (
24493 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24494 eval ac_val=\$$ac_var
24495 case $ac_val in #(
24496 *${as_nl}*)
24497 case $ac_var in #(
24498 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24499 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24500 esac
24501 case $ac_var in #(
24502 _ | IFS | as_nl) ;; #(
24503 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24504 *) { eval $ac_var=; unset $ac_var;} ;;
24505 esac ;;
24506 esac
24507 done
24508
24509 (set) 2>&1 |
24510 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24511 *${as_nl}ac_space=\ *)
24512 # `set' does not quote correctly, so add quotes: double-quote
24513 # substitution turns \\\\ into \\, and sed turns \\ into \.
24514 sed -n \
24515 "s/'/'\\\\''/g;
24516 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24517 ;; #(
24518 *)
24519 # `set' quotes correctly as required by POSIX, so do not add quotes.
24520 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24521 ;;
24522 esac |
24523 sort
24524 ) |
24525 sed '
24526 /^ac_cv_env_/b end
24527 t clear
24528 :clear
24529 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24530 t end
24531 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24532 :end' >>confcache
24533 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24534 if test -w "$cache_file"; then
24535 test "x$cache_file" != "x/dev/null" &&
24536 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24537 $as_echo "$as_me: updating cache $cache_file" >&6;}
24538 cat confcache >$cache_file
24539 else
24540 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24541 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24542 fi
24543 fi
24544 rm -f confcache
24545
24546 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24547 # Let make expand exec_prefix.
24548 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24549
24550 DEFS=-DHAVE_CONFIG_H
24551
24552 ac_libobjs=
24553 ac_ltlibobjs=
24554 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24555 # 1. Remove the extension, and $U if already installed.
24556 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24557 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24558 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24559 # will be set to the directory where LIBOBJS objects are built.
24560 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24561 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24562 done
24563 LIBOBJS=$ac_libobjs
24564
24565 LTLIBOBJS=$ac_ltlibobjs
24566
24567
24568 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
24569 as_fn_error "conditional \"JAVA_MAINTAINER_MODE\" was never defined.
24570 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24571 fi
24572 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
24573 as_fn_error "conditional \"GENINSRC\" was never defined.
24574 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24575 fi
24576 if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
24577 as_fn_error "conditional \"INSTALL_BINARIES\" was never defined.
24578 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24579 fi
24580 if test -n "$EXEEXT"; then
24581 am__EXEEXT_TRUE=
24582 am__EXEEXT_FALSE='#'
24583 else
24584 am__EXEEXT_TRUE='#'
24585 am__EXEEXT_FALSE=
24586 fi
24587
24588 if test -z "${CREATE_COLLECTIONS_TRUE}" && test -z "${CREATE_COLLECTIONS_FALSE}"; then
24589 as_fn_error "conditional \"CREATE_COLLECTIONS\" was never defined.
24590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24591 fi
24592 if test -z "${CREATE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_JNI_LIBRARIES_FALSE}"; then
24593 as_fn_error "conditional \"CREATE_JNI_LIBRARIES\" was never defined.
24594 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24595 fi
24596 if test -z "${CREATE_CORE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_CORE_JNI_LIBRARIES_FALSE}"; then
24597 as_fn_error "conditional \"CREATE_CORE_JNI_LIBRARIES\" was never defined.
24598 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24599 fi
24600 if test -z "${CREATE_GCONF_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GCONF_PEER_LIBRARIES_FALSE}"; then
24601 as_fn_error "conditional \"CREATE_GCONF_PEER_LIBRARIES\" was never defined.
24602 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24603 fi
24604 if test -z "${CREATE_GSTREAMER_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GSTREAMER_PEER_LIBRARIES_FALSE}"; then
24605 as_fn_error "conditional \"CREATE_GSTREAMER_PEER_LIBRARIES\" was never defined.
24606 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24607 fi
24608 if test -z "${CREATE_XMLJ_LIBRARY_TRUE}" && test -z "${CREATE_XMLJ_LIBRARY_FALSE}"; then
24609 as_fn_error "conditional \"CREATE_XMLJ_LIBRARY\" was never defined.
24610 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24611 fi
24612 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24613 as_fn_error "conditional \"AMDEP\" was never defined.
24614 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24615 fi
24616 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24617 as_fn_error "conditional \"am__fastdepCC\" was never defined.
24618 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24619 fi
24620 if test -z "${CREATE_ALSA_LIBRARIES_TRUE}" && test -z "${CREATE_ALSA_LIBRARIES_FALSE}"; then
24621 as_fn_error "conditional \"CREATE_ALSA_LIBRARIES\" was never defined.
24622 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24623 fi
24624 if test -z "${CREATE_DSSI_LIBRARIES_TRUE}" && test -z "${CREATE_DSSI_LIBRARIES_FALSE}"; then
24625 as_fn_error "conditional \"CREATE_DSSI_LIBRARIES\" was never defined.
24626 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24627 fi
24628 if test -z "${CREATE_GTK_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GTK_PEER_LIBRARIES_FALSE}"; then
24629 as_fn_error "conditional \"CREATE_GTK_PEER_LIBRARIES\" was never defined.
24630 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24631 fi
24632 if test -z "${CREATE_QT_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_QT_PEER_LIBRARIES_FALSE}"; then
24633 as_fn_error "conditional \"CREATE_QT_PEER_LIBRARIES\" was never defined.
24634 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24635 fi
24636 if test -z "${CREATE_PLUGIN_TRUE}" && test -z "${CREATE_PLUGIN_FALSE}"; then
24637 as_fn_error "conditional \"CREATE_PLUGIN\" was never defined.
24638 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24639 fi
24640 if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
24641 as_fn_error "conditional \"CREATE_GJDOC\" was never defined.
24642 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24643 fi
24644 if test -z "${CREATE_JNI_HEADERS_TRUE}" && test -z "${CREATE_JNI_HEADERS_FALSE}"; then
24645 as_fn_error "conditional \"CREATE_JNI_HEADERS\" was never defined.
24646 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24647 fi
24648 if test -z "${CREATE_GJDOC_PARSER_TRUE}" && test -z "${CREATE_GJDOC_PARSER_FALSE}"; then
24649 as_fn_error "conditional \"CREATE_GJDOC_PARSER\" was never defined.
24650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24651 fi
24652 if test -z "${CREATE_WRAPPERS_TRUE}" && test -z "${CREATE_WRAPPERS_FALSE}"; then
24653 as_fn_error "conditional \"CREATE_WRAPPERS\" was never defined.
24654 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24655 fi
24656 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24657 as_fn_error "conditional \"am__fastdepCC\" was never defined.
24658 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24659 fi
24660 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24661 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
24662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24663 fi
24664 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24665 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
24666 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24667 fi
24668 if test -z "${WITH_JAR_TRUE}" && test -z "${WITH_JAR_FALSE}"; then
24669 as_fn_error "conditional \"WITH_JAR\" was never defined.
24670 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24671 fi
24672 if test -z "${INSTALL_GLIBJ_ZIP_TRUE}" && test -z "${INSTALL_GLIBJ_ZIP_FALSE}"; then
24673 as_fn_error "conditional \"INSTALL_GLIBJ_ZIP\" was never defined.
24674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24675 fi
24676 if test -z "${INSTALL_CLASS_FILES_TRUE}" && test -z "${INSTALL_CLASS_FILES_FALSE}"; then
24677 as_fn_error "conditional \"INSTALL_CLASS_FILES\" was never defined.
24678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24679 fi
24680 if test -z "${BUILD_CLASS_FILES_TRUE}" && test -z "${BUILD_CLASS_FILES_FALSE}"; then
24681 as_fn_error "conditional \"BUILD_CLASS_FILES\" was never defined.
24682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24683 fi
24684 if test -z "${CREATE_API_DOCS_TRUE}" && test -z "${CREATE_API_DOCS_FALSE}"; then
24685 as_fn_error "conditional \"CREATE_API_DOCS\" was never defined.
24686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24687 fi
24688 if test -z "${REGEN_PARSERS_TRUE}" && test -z "${REGEN_PARSERS_FALSE}"; then
24689 as_fn_error "conditional \"REGEN_PARSERS\" was never defined.
24690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24691 fi
24692 if test -z "${USE_PREBUILT_GLIBJ_ZIP_TRUE}" && test -z "${USE_PREBUILT_GLIBJ_ZIP_FALSE}"; then
24693 as_fn_error "conditional \"USE_PREBUILT_GLIBJ_ZIP\" was never defined.
24694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24695 fi
24696 if test -z "${GCJ_JAVAC_TRUE}" && test -z "${GCJ_JAVAC_FALSE}"; then
24697 as_fn_error "conditional \"GCJ_JAVAC\" was never defined.
24698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24699 fi
24700 if test -z "${GCJ_JAVAC_TRUE}" && test -z "${GCJ_JAVAC_FALSE}"; then
24701 as_fn_error "conditional \"GCJ_JAVAC\" was never defined.
24702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24703 fi
24704 if test -z "${USE_ESCHER_TRUE}" && test -z "${USE_ESCHER_FALSE}"; then
24705 as_fn_error "conditional \"USE_ESCHER\" was never defined.
24706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24707 fi
24708 if test -z "${ENABLE_LOCAL_SOCKETS_TRUE}" && test -z "${ENABLE_LOCAL_SOCKETS_FALSE}"; then
24709 as_fn_error "conditional \"ENABLE_LOCAL_SOCKETS\" was never defined.
24710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24711 fi
24712 if test -z "${CREATE_GMPBI_LIBRARY_TRUE}" && test -z "${CREATE_GMPBI_LIBRARY_FALSE}"; then
24713 as_fn_error "conditional \"CREATE_GMPBI_LIBRARY\" was never defined.
24714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24715 fi
24716
24717 : ${CONFIG_STATUS=./config.status}
24718 ac_write_fail=0
24719 ac_clean_files_save=$ac_clean_files
24720 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24721 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24722 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24723 as_write_fail=0
24724 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24725 #! $SHELL
24726 # Generated by $as_me.
24727 # Run this file to recreate the current configuration.
24728 # Compiler output produced by configure, useful for debugging
24729 # configure, is in config.log if it exists.
24730
24731 debug=false
24732 ac_cs_recheck=false
24733 ac_cs_silent=false
24734
24735 SHELL=\${CONFIG_SHELL-$SHELL}
24736 export SHELL
24737 _ASEOF
24738 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24739 ## -------------------- ##
24740 ## M4sh Initialization. ##
24741 ## -------------------- ##
24742
24743 # Be more Bourne compatible
24744 DUALCASE=1; export DUALCASE # for MKS sh
24745 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24746 emulate sh
24747 NULLCMD=:
24748 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24749 # is contrary to our usage. Disable this feature.
24750 alias -g '${1+"$@"}'='"$@"'
24751 setopt NO_GLOB_SUBST
24752 else
24753 case `(set -o) 2>/dev/null` in #(
24754 *posix*) :
24755 set -o posix ;; #(
24756 *) :
24757 ;;
24758 esac
24759 fi
24760
24761
24762 as_nl='
24763 '
24764 export as_nl
24765 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24766 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24767 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24768 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24769 # Prefer a ksh shell builtin over an external printf program on Solaris,
24770 # but without wasting forks for bash or zsh.
24771 if test -z "$BASH_VERSION$ZSH_VERSION" \
24772 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24773 as_echo='print -r --'
24774 as_echo_n='print -rn --'
24775 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24776 as_echo='printf %s\n'
24777 as_echo_n='printf %s'
24778 else
24779 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24780 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24781 as_echo_n='/usr/ucb/echo -n'
24782 else
24783 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24784 as_echo_n_body='eval
24785 arg=$1;
24786 case $arg in #(
24787 *"$as_nl"*)
24788 expr "X$arg" : "X\\(.*\\)$as_nl";
24789 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24790 esac;
24791 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24792 '
24793 export as_echo_n_body
24794 as_echo_n='sh -c $as_echo_n_body as_echo'
24795 fi
24796 export as_echo_body
24797 as_echo='sh -c $as_echo_body as_echo'
24798 fi
24799
24800 # The user is always right.
24801 if test "${PATH_SEPARATOR+set}" != set; then
24802 PATH_SEPARATOR=:
24803 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24804 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24805 PATH_SEPARATOR=';'
24806 }
24807 fi
24808
24809
24810 # IFS
24811 # We need space, tab and new line, in precisely that order. Quoting is
24812 # there to prevent editors from complaining about space-tab.
24813 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24814 # splitting by setting IFS to empty value.)
24815 IFS=" "" $as_nl"
24816
24817 # Find who we are. Look in the path if we contain no directory separator.
24818 case $0 in #((
24819 *[\\/]* ) as_myself=$0 ;;
24820 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24821 for as_dir in $PATH
24822 do
24823 IFS=$as_save_IFS
24824 test -z "$as_dir" && as_dir=.
24825 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24826 done
24827 IFS=$as_save_IFS
24828
24829 ;;
24830 esac
24831 # We did not find ourselves, most probably we were run as `sh COMMAND'
24832 # in which case we are not to be found in the path.
24833 if test "x$as_myself" = x; then
24834 as_myself=$0
24835 fi
24836 if test ! -f "$as_myself"; then
24837 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24838 exit 1
24839 fi
24840
24841 # Unset variables that we do not need and which cause bugs (e.g. in
24842 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24843 # suppresses any "Segmentation fault" message there. '((' could
24844 # trigger a bug in pdksh 5.2.14.
24845 for as_var in BASH_ENV ENV MAIL MAILPATH
24846 do eval test x\${$as_var+set} = xset \
24847 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24848 done
24849 PS1='$ '
24850 PS2='> '
24851 PS4='+ '
24852
24853 # NLS nuisances.
24854 LC_ALL=C
24855 export LC_ALL
24856 LANGUAGE=C
24857 export LANGUAGE
24858
24859 # CDPATH.
24860 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24861
24862
24863 # as_fn_error ERROR [LINENO LOG_FD]
24864 # ---------------------------------
24865 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24866 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24867 # script with status $?, using 1 if that was 0.
24868 as_fn_error ()
24869 {
24870 as_status=$?; test $as_status -eq 0 && as_status=1
24871 if test "$3"; then
24872 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24873 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
24874 fi
24875 $as_echo "$as_me: error: $1" >&2
24876 as_fn_exit $as_status
24877 } # as_fn_error
24878
24879
24880 # as_fn_set_status STATUS
24881 # -----------------------
24882 # Set $? to STATUS, without forking.
24883 as_fn_set_status ()
24884 {
24885 return $1
24886 } # as_fn_set_status
24887
24888 # as_fn_exit STATUS
24889 # -----------------
24890 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24891 as_fn_exit ()
24892 {
24893 set +e
24894 as_fn_set_status $1
24895 exit $1
24896 } # as_fn_exit
24897
24898 # as_fn_unset VAR
24899 # ---------------
24900 # Portably unset VAR.
24901 as_fn_unset ()
24902 {
24903 { eval $1=; unset $1;}
24904 }
24905 as_unset=as_fn_unset
24906 # as_fn_append VAR VALUE
24907 # ----------------------
24908 # Append the text in VALUE to the end of the definition contained in VAR. Take
24909 # advantage of any shell optimizations that allow amortized linear growth over
24910 # repeated appends, instead of the typical quadratic growth present in naive
24911 # implementations.
24912 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24913 eval 'as_fn_append ()
24914 {
24915 eval $1+=\$2
24916 }'
24917 else
24918 as_fn_append ()
24919 {
24920 eval $1=\$$1\$2
24921 }
24922 fi # as_fn_append
24923
24924 # as_fn_arith ARG...
24925 # ------------------
24926 # Perform arithmetic evaluation on the ARGs, and store the result in the
24927 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24928 # must be portable across $(()) and expr.
24929 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24930 eval 'as_fn_arith ()
24931 {
24932 as_val=$(( $* ))
24933 }'
24934 else
24935 as_fn_arith ()
24936 {
24937 as_val=`expr "$@" || test $? -eq 1`
24938 }
24939 fi # as_fn_arith
24940
24941
24942 if expr a : '\(a\)' >/dev/null 2>&1 &&
24943 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24944 as_expr=expr
24945 else
24946 as_expr=false
24947 fi
24948
24949 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24950 as_basename=basename
24951 else
24952 as_basename=false
24953 fi
24954
24955 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24956 as_dirname=dirname
24957 else
24958 as_dirname=false
24959 fi
24960
24961 as_me=`$as_basename -- "$0" ||
24962 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24963 X"$0" : 'X\(//\)$' \| \
24964 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24965 $as_echo X/"$0" |
24966 sed '/^.*\/\([^/][^/]*\)\/*$/{
24967 s//\1/
24968 q
24969 }
24970 /^X\/\(\/\/\)$/{
24971 s//\1/
24972 q
24973 }
24974 /^X\/\(\/\).*/{
24975 s//\1/
24976 q
24977 }
24978 s/.*/./; q'`
24979
24980 # Avoid depending upon Character Ranges.
24981 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24982 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24983 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24984 as_cr_digits='0123456789'
24985 as_cr_alnum=$as_cr_Letters$as_cr_digits
24986
24987 ECHO_C= ECHO_N= ECHO_T=
24988 case `echo -n x` in #(((((
24989 -n*)
24990 case `echo 'xy\c'` in
24991 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24992 xy) ECHO_C='\c';;
24993 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
24994 ECHO_T=' ';;
24995 esac;;
24996 *)
24997 ECHO_N='-n';;
24998 esac
24999
25000 rm -f conf$$ conf$$.exe conf$$.file
25001 if test -d conf$$.dir; then
25002 rm -f conf$$.dir/conf$$.file
25003 else
25004 rm -f conf$$.dir
25005 mkdir conf$$.dir 2>/dev/null
25006 fi
25007 if (echo >conf$$.file) 2>/dev/null; then
25008 if ln -s conf$$.file conf$$ 2>/dev/null; then
25009 as_ln_s='ln -s'
25010 # ... but there are two gotchas:
25011 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25012 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25013 # In both cases, we have to default to `cp -p'.
25014 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25015 as_ln_s='cp -p'
25016 elif ln conf$$.file conf$$ 2>/dev/null; then
25017 as_ln_s=ln
25018 else
25019 as_ln_s='cp -p'
25020 fi
25021 else
25022 as_ln_s='cp -p'
25023 fi
25024 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25025 rmdir conf$$.dir 2>/dev/null
25026
25027
25028 # as_fn_mkdir_p
25029 # -------------
25030 # Create "$as_dir" as a directory, including parents if necessary.
25031 as_fn_mkdir_p ()
25032 {
25033
25034 case $as_dir in #(
25035 -*) as_dir=./$as_dir;;
25036 esac
25037 test -d "$as_dir" || eval $as_mkdir_p || {
25038 as_dirs=
25039 while :; do
25040 case $as_dir in #(
25041 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25042 *) as_qdir=$as_dir;;
25043 esac
25044 as_dirs="'$as_qdir' $as_dirs"
25045 as_dir=`$as_dirname -- "$as_dir" ||
25046 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25047 X"$as_dir" : 'X\(//\)[^/]' \| \
25048 X"$as_dir" : 'X\(//\)$' \| \
25049 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25050 $as_echo X"$as_dir" |
25051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25052 s//\1/
25053 q
25054 }
25055 /^X\(\/\/\)[^/].*/{
25056 s//\1/
25057 q
25058 }
25059 /^X\(\/\/\)$/{
25060 s//\1/
25061 q
25062 }
25063 /^X\(\/\).*/{
25064 s//\1/
25065 q
25066 }
25067 s/.*/./; q'`
25068 test -d "$as_dir" && break
25069 done
25070 test -z "$as_dirs" || eval "mkdir $as_dirs"
25071 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25072
25073
25074 } # as_fn_mkdir_p
25075 if mkdir -p . 2>/dev/null; then
25076 as_mkdir_p='mkdir -p "$as_dir"'
25077 else
25078 test -d ./-p && rmdir ./-p
25079 as_mkdir_p=false
25080 fi
25081
25082 if test -x / >/dev/null 2>&1; then
25083 as_test_x='test -x'
25084 else
25085 if ls -dL / >/dev/null 2>&1; then
25086 as_ls_L_option=L
25087 else
25088 as_ls_L_option=
25089 fi
25090 as_test_x='
25091 eval sh -c '\''
25092 if test -d "$1"; then
25093 test -d "$1/.";
25094 else
25095 case $1 in #(
25096 -*)set "./$1";;
25097 esac;
25098 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25099 ???[sx]*):;;*)false;;esac;fi
25100 '\'' sh
25101 '
25102 fi
25103 as_executable_p=$as_test_x
25104
25105 # Sed expression to map a string onto a valid CPP name.
25106 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25107
25108 # Sed expression to map a string onto a valid variable name.
25109 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25110
25111
25112 exec 6>&1
25113 ## ----------------------------------- ##
25114 ## Main body of $CONFIG_STATUS script. ##
25115 ## ----------------------------------- ##
25116 _ASEOF
25117 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25118
25119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25120 # Save the log message, to keep $0 and so on meaningful, and to
25121 # report actual input values of CONFIG_FILES etc. instead of their
25122 # values after options handling.
25123 ac_log="
25124 This file was extended by GNU Classpath $as_me 0.98, which was
25125 generated by GNU Autoconf 2.64. Invocation command line was
25126
25127 CONFIG_FILES = $CONFIG_FILES
25128 CONFIG_HEADERS = $CONFIG_HEADERS
25129 CONFIG_LINKS = $CONFIG_LINKS
25130 CONFIG_COMMANDS = $CONFIG_COMMANDS
25131 $ $0 $@
25132
25133 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25134 "
25135
25136 _ACEOF
25137
25138 case $ac_config_files in *"
25139 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25140 esac
25141
25142 case $ac_config_headers in *"
25143 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25144 esac
25145
25146
25147 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25148 # Files that config.status was made for.
25149 config_files="$ac_config_files"
25150 config_headers="$ac_config_headers"
25151 config_links="$ac_config_links"
25152 config_commands="$ac_config_commands"
25153
25154 _ACEOF
25155
25156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25157 ac_cs_usage="\
25158 \`$as_me' instantiates files and other configuration actions
25159 from templates according to the current configuration. Unless the files
25160 and actions are specified as TAGs, all are instantiated by default.
25161
25162 Usage: $0 [OPTION]... [TAG]...
25163
25164 -h, --help print this help, then exit
25165 -V, --version print version number and configuration settings, then exit
25166 -q, --quiet, --silent
25167 do not print progress messages
25168 -d, --debug don't remove temporary files
25169 --recheck update $as_me by reconfiguring in the same conditions
25170 --file=FILE[:TEMPLATE]
25171 instantiate the configuration file FILE
25172 --header=FILE[:TEMPLATE]
25173 instantiate the configuration header FILE
25174
25175 Configuration files:
25176 $config_files
25177
25178 Configuration headers:
25179 $config_headers
25180
25181 Configuration links:
25182 $config_links
25183
25184 Configuration commands:
25185 $config_commands
25186
25187 Report bugs to <classpath@gnu.org>.
25188 GNU Classpath home page: <http://www.gnu.org/software/classpath/>.
25189 General help using GNU software: <http://www.gnu.org/gethelp/>."
25190
25191 _ACEOF
25192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25193 ac_cs_version="\\
25194 GNU Classpath config.status 0.98
25195 configured by $0, generated by GNU Autoconf 2.64,
25196 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25197
25198 Copyright (C) 2009 Free Software Foundation, Inc.
25199 This config.status script is free software; the Free Software Foundation
25200 gives unlimited permission to copy, distribute and modify it."
25201
25202 ac_pwd='$ac_pwd'
25203 srcdir='$srcdir'
25204 INSTALL='$INSTALL'
25205 MKDIR_P='$MKDIR_P'
25206 AWK='$AWK'
25207 test -n "\$AWK" || AWK=awk
25208 _ACEOF
25209
25210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25211 # The default lists apply if the user does not specify any file.
25212 ac_need_defaults=:
25213 while test $# != 0
25214 do
25215 case $1 in
25216 --*=*)
25217 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25218 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25219 ac_shift=:
25220 ;;
25221 *)
25222 ac_option=$1
25223 ac_optarg=$2
25224 ac_shift=shift
25225 ;;
25226 esac
25227
25228 case $ac_option in
25229 # Handling of the options.
25230 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25231 ac_cs_recheck=: ;;
25232 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25233 $as_echo "$ac_cs_version"; exit ;;
25234 --debug | --debu | --deb | --de | --d | -d )
25235 debug=: ;;
25236 --file | --fil | --fi | --f )
25237 $ac_shift
25238 case $ac_optarg in
25239 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25240 esac
25241 as_fn_append CONFIG_FILES " '$ac_optarg'"
25242 ac_need_defaults=false;;
25243 --header | --heade | --head | --hea )
25244 $ac_shift
25245 case $ac_optarg in
25246 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25247 esac
25248 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25249 ac_need_defaults=false;;
25250 --he | --h)
25251 # Conflict between --help and --header
25252 as_fn_error "ambiguous option: \`$1'
25253 Try \`$0 --help' for more information.";;
25254 --help | --hel | -h )
25255 $as_echo "$ac_cs_usage"; exit ;;
25256 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25257 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25258 ac_cs_silent=: ;;
25259
25260 # This is an error.
25261 -*) as_fn_error "unrecognized option: \`$1'
25262 Try \`$0 --help' for more information." ;;
25263
25264 *) as_fn_append ac_config_targets " $1"
25265 ac_need_defaults=false ;;
25266
25267 esac
25268 shift
25269 done
25270
25271 ac_configure_extra_args=
25272
25273 if $ac_cs_silent; then
25274 exec 6>/dev/null
25275 ac_configure_extra_args="$ac_configure_extra_args --silent"
25276 fi
25277
25278 _ACEOF
25279 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25280 if \$ac_cs_recheck; then
25281 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25282 shift
25283 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25284 CONFIG_SHELL='$SHELL'
25285 export CONFIG_SHELL
25286 exec "\$@"
25287 fi
25288
25289 _ACEOF
25290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25291 exec 5>>config.log
25292 {
25293 echo
25294 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25295 ## Running $as_me. ##
25296 _ASBOX
25297 $as_echo "$ac_log"
25298 } >&5
25299
25300 _ACEOF
25301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25302 #
25303 # INIT-COMMANDS
25304 #
25305
25306 srcdir="$srcdir"
25307 host="$host"
25308 target="$target"
25309 with_multisubdir="$with_multisubdir"
25310 with_multisrctop="$with_multisrctop"
25311 with_target_subdir="$with_target_subdir"
25312 ac_configure_args="${multilib_arg} ${ac_configure_args}"
25313 multi_basedir="$multi_basedir"
25314 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
25315 CC="$CC"
25316 CXX="$CXX"
25317 GFORTRAN="$GFORTRAN"
25318 GCJ="$GCJ"
25319 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25320
25321
25322 # The HP-UX ksh and POSIX shell print the target directory to stdout
25323 # if CDPATH is set.
25324 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25325
25326 sed_quote_subst='$sed_quote_subst'
25327 double_quote_subst='$double_quote_subst'
25328 delay_variable_subst='$delay_variable_subst'
25329 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25330 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25331 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25332 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25333 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25334 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25335 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25336 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25337 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25338 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25339 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25340 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25341 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25342 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25343 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25344 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25345 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25346 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25347 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25348 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25349 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25350 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25351 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25352 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25353 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25354 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25355 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25356 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25357 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25358 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25359 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25360 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25361 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25362 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25363 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25364 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25365 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25366 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25367 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25368 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25369 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25370 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25371 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25372 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25373 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25374 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25375 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25376 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25377 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"`'
25378 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25379 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25380 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25381 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25382 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25383 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25384 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25385 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25386 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25387 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25388 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25389 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25390 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25391 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25392 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25393 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25394 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25395 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25396 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25397 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25398 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25399 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25400 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25401 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25402 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25403 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25404 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25405 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25406 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25407 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25408 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25409 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
25410 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25411 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25412 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25413 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25414 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25415 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25416 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25417 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25418 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
25419 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25420 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25421 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25422 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25423 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25424 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25425 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25426 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25427 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25428 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25429 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25430 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25431 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25432 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25433 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25434 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25435 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25436 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25437 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25438 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25439 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25440 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25441 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25442 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
25443 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25444 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25445 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25446 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25447 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25448 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25449 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25450 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25451 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25452 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
25453 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
25454 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
25455 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
25456 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
25457 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25458 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25459 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
25460 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
25461 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
25462 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
25463 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
25464 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
25465 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
25466 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
25467 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
25468 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25469 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25470 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
25471 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25472 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25473 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25474 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25475 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25476 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25477 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
25478 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25479 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25480 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25481 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
25482 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
25483 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
25484 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
25485 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
25486 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
25487 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
25488 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
25489 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
25490 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
25491 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
25492 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25493 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25494 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25495 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25496 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
25497 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
25498 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
25499 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25500 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25501 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
25502 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
25503 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
25504
25505 LTCC='$LTCC'
25506 LTCFLAGS='$LTCFLAGS'
25507 compiler='$compiler_DEFAULT'
25508
25509 # A function that is used when there is no print builtin or printf.
25510 func_fallback_echo ()
25511 {
25512 eval 'cat <<_LTECHO_EOF
25513 \$1
25514 _LTECHO_EOF'
25515 }
25516
25517 # Quote evaled strings.
25518 for var in SHELL \
25519 ECHO \
25520 SED \
25521 GREP \
25522 EGREP \
25523 FGREP \
25524 LD \
25525 NM \
25526 LN_S \
25527 lt_SP2NL \
25528 lt_NL2SP \
25529 reload_flag \
25530 OBJDUMP \
25531 deplibs_check_method \
25532 file_magic_cmd \
25533 AR \
25534 AR_FLAGS \
25535 STRIP \
25536 RANLIB \
25537 CC \
25538 CFLAGS \
25539 compiler \
25540 lt_cv_sys_global_symbol_pipe \
25541 lt_cv_sys_global_symbol_to_cdecl \
25542 lt_cv_sys_global_symbol_to_c_name_address \
25543 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
25544 lt_prog_compiler_no_builtin_flag \
25545 lt_prog_compiler_wl \
25546 lt_prog_compiler_pic \
25547 lt_prog_compiler_static \
25548 lt_cv_prog_compiler_c_o \
25549 need_locks \
25550 DSYMUTIL \
25551 NMEDIT \
25552 LIPO \
25553 OTOOL \
25554 OTOOL64 \
25555 shrext_cmds \
25556 export_dynamic_flag_spec \
25557 whole_archive_flag_spec \
25558 compiler_needs_object \
25559 with_gnu_ld \
25560 allow_undefined_flag \
25561 no_undefined_flag \
25562 hardcode_libdir_flag_spec \
25563 hardcode_libdir_flag_spec_ld \
25564 hardcode_libdir_separator \
25565 fix_srcfile_path \
25566 exclude_expsyms \
25567 include_expsyms \
25568 file_list_spec \
25569 variables_saved_for_relink \
25570 libname_spec \
25571 library_names_spec \
25572 soname_spec \
25573 install_override_mode \
25574 finish_eval \
25575 old_striplib \
25576 striplib \
25577 compiler_lib_search_dirs \
25578 predep_objects \
25579 postdep_objects \
25580 predeps \
25581 postdeps \
25582 compiler_lib_search_path \
25583 LD_CXX \
25584 reload_flag_CXX \
25585 compiler_CXX \
25586 lt_prog_compiler_no_builtin_flag_CXX \
25587 lt_prog_compiler_wl_CXX \
25588 lt_prog_compiler_pic_CXX \
25589 lt_prog_compiler_static_CXX \
25590 lt_cv_prog_compiler_c_o_CXX \
25591 export_dynamic_flag_spec_CXX \
25592 whole_archive_flag_spec_CXX \
25593 compiler_needs_object_CXX \
25594 with_gnu_ld_CXX \
25595 allow_undefined_flag_CXX \
25596 no_undefined_flag_CXX \
25597 hardcode_libdir_flag_spec_CXX \
25598 hardcode_libdir_flag_spec_ld_CXX \
25599 hardcode_libdir_separator_CXX \
25600 fix_srcfile_path_CXX \
25601 exclude_expsyms_CXX \
25602 include_expsyms_CXX \
25603 file_list_spec_CXX \
25604 compiler_lib_search_dirs_CXX \
25605 predep_objects_CXX \
25606 postdep_objects_CXX \
25607 predeps_CXX \
25608 postdeps_CXX \
25609 compiler_lib_search_path_CXX; do
25610 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25611 *[\\\\\\\`\\"\\\$]*)
25612 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
25613 ;;
25614 *)
25615 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25616 ;;
25617 esac
25618 done
25619
25620 # Double-quote double-evaled strings.
25621 for var in reload_cmds \
25622 old_postinstall_cmds \
25623 old_postuninstall_cmds \
25624 old_archive_cmds \
25625 extract_expsyms_cmds \
25626 old_archive_from_new_cmds \
25627 old_archive_from_expsyms_cmds \
25628 archive_cmds \
25629 archive_expsym_cmds \
25630 module_cmds \
25631 module_expsym_cmds \
25632 export_symbols_cmds \
25633 prelink_cmds \
25634 postinstall_cmds \
25635 postuninstall_cmds \
25636 finish_cmds \
25637 sys_lib_search_path_spec \
25638 sys_lib_dlsearch_path_spec \
25639 reload_cmds_CXX \
25640 old_archive_cmds_CXX \
25641 old_archive_from_new_cmds_CXX \
25642 old_archive_from_expsyms_cmds_CXX \
25643 archive_cmds_CXX \
25644 archive_expsym_cmds_CXX \
25645 module_cmds_CXX \
25646 module_expsym_cmds_CXX \
25647 export_symbols_cmds_CXX \
25648 prelink_cmds_CXX; do
25649 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25650 *[\\\\\\\`\\"\\\$]*)
25651 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
25652 ;;
25653 *)
25654 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25655 ;;
25656 esac
25657 done
25658
25659 ac_aux_dir='$ac_aux_dir'
25660 xsi_shell='$xsi_shell'
25661 lt_shell_append='$lt_shell_append'
25662
25663 # See if we are running on zsh, and set the options which allow our
25664 # commands through without removal of \ escapes INIT.
25665 if test -n "\${ZSH_VERSION+set}" ; then
25666 setopt NO_GLOB_SUBST
25667 fi
25668
25669
25670 PACKAGE='$PACKAGE'
25671 VERSION='$VERSION'
25672 TIMESTAMP='$TIMESTAMP'
25673 RM='$RM'
25674 ofile='$ofile'
25675
25676
25677
25678
25679
25680 # variables for create stdint.h replacement
25681 PACKAGE="$PACKAGE"
25682 VERSION="$VERSION"
25683 ac_stdint_h="$ac_stdint_h"
25684 _ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
25685 ac_cv_stdint_message="$ac_cv_stdint_message"
25686 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
25687 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
25688 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
25689 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
25690 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
25691 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
25692 ac_cv_char_data_model="$ac_cv_char_data_model"
25693 ac_cv_long_data_model="$ac_cv_long_data_model"
25694 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
25695 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
25696 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
25697
25698
25699 _ACEOF
25700
25701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25702
25703 # Handling of arguments.
25704 for ac_config_target in $ac_config_targets
25705 do
25706 case $ac_config_target in
25707 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
25708 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
25709 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25710 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
25711 "lib/mkcollections.pl") CONFIG_FILES="$CONFIG_FILES lib/mkcollections.pl" ;;
25712 "mkcollections.pl") CONFIG_COMMANDS="$CONFIG_COMMANDS mkcollections.pl" ;;
25713 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
25714 "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
25715 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25716 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
25717 "doc/api/Makefile") CONFIG_FILES="$CONFIG_FILES doc/api/Makefile" ;;
25718 "external/Makefile") CONFIG_FILES="$CONFIG_FILES external/Makefile" ;;
25719 "external/sax/Makefile") CONFIG_FILES="$CONFIG_FILES external/sax/Makefile" ;;
25720 "external/w3c_dom/Makefile") CONFIG_FILES="$CONFIG_FILES external/w3c_dom/Makefile" ;;
25721 "external/relaxngDatatype/Makefile") CONFIG_FILES="$CONFIG_FILES external/relaxngDatatype/Makefile" ;;
25722 "external/jsr166/Makefile") CONFIG_FILES="$CONFIG_FILES external/jsr166/Makefile" ;;
25723 "gnu/classpath/Configuration.java") CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
25724 "gnu/java/security/Configuration.java") CONFIG_FILES="$CONFIG_FILES gnu/java/security/Configuration.java" ;;
25725 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
25726 "native/Makefile") CONFIG_FILES="$CONFIG_FILES native/Makefile" ;;
25727 "native/fdlibm/Makefile") CONFIG_FILES="$CONFIG_FILES native/fdlibm/Makefile" ;;
25728 "native/jawt/Makefile") CONFIG_FILES="$CONFIG_FILES native/jawt/Makefile" ;;
25729 "native/jni/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/Makefile" ;;
25730 "native/jni/classpath/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/classpath/Makefile" ;;
25731 "native/jni/java-io/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-io/Makefile" ;;
25732 "native/jni/java-lang/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-lang/Makefile" ;;
25733 "native/jni/java-math/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-math/Makefile" ;;
25734 "native/jni/java-net/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-net/Makefile" ;;
25735 "native/jni/java-nio/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-nio/Makefile" ;;
25736 "native/jni/java-util/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-util/Makefile" ;;
25737 "native/jni/gtk-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/gtk-peer/Makefile" ;;
25738 "native/jni/gconf-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/gconf-peer/Makefile" ;;
25739 "native/jni/gstreamer-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/gstreamer-peer/Makefile" ;;
25740 "native/jni/qt-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/qt-peer/Makefile" ;;
25741 "native/jni/xmlj/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/xmlj/Makefile" ;;
25742 "native/jni/midi-alsa/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/midi-alsa/Makefile" ;;
25743 "native/jni/midi-dssi/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/midi-dssi/Makefile" ;;
25744 "native/jni/native-lib/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/native-lib/Makefile" ;;
25745 "native/plugin/Makefile") CONFIG_FILES="$CONFIG_FILES native/plugin/Makefile" ;;
25746 "resource/Makefile") CONFIG_FILES="$CONFIG_FILES resource/Makefile" ;;
25747 "resource/META-INF/services/java.util.prefs.PreferencesFactory") CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/java.util.prefs.PreferencesFactory" ;;
25748 "resource/META-INF/services/javax.sound.sampled.spi.AudioFileReader") CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/javax.sound.sampled.spi.AudioFileReader" ;;
25749 "resource/META-INF/services/javax.sound.sampled.spi.MixerProvider") CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/javax.sound.sampled.spi.MixerProvider" ;;
25750 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
25751 "scripts/classpath.spec") CONFIG_FILES="$CONFIG_FILES scripts/classpath.spec" ;;
25752 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
25753 "lib/gen-classlist.sh") CONFIG_FILES="$CONFIG_FILES lib/gen-classlist.sh" ;;
25754 "lib/copy-vmresources.sh") CONFIG_FILES="$CONFIG_FILES lib/copy-vmresources.sh" ;;
25755 "scripts/check_jni_methods.sh") CONFIG_FILES="$CONFIG_FILES scripts/check_jni_methods.sh" ;;
25756 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
25757 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
25758 "examples/Makefile.jawt") CONFIG_FILES="$CONFIG_FILES examples/Makefile.jawt" ;;
25759 "examples/Makefile.java2d") CONFIG_FILES="$CONFIG_FILES examples/Makefile.java2d" ;;
25760 "tools/gappletviewer") CONFIG_FILES="$CONFIG_FILES tools/gappletviewer" ;;
25761 "tools/gjarsigner") CONFIG_FILES="$CONFIG_FILES tools/gjarsigner" ;;
25762 "tools/gkeytool") CONFIG_FILES="$CONFIG_FILES tools/gkeytool" ;;
25763 "tools/gjar") CONFIG_FILES="$CONFIG_FILES tools/gjar" ;;
25764 "tools/gnative2ascii") CONFIG_FILES="$CONFIG_FILES tools/gnative2ascii" ;;
25765 "tools/gserialver") CONFIG_FILES="$CONFIG_FILES tools/gserialver" ;;
25766 "tools/grmiregistry") CONFIG_FILES="$CONFIG_FILES tools/grmiregistry" ;;
25767 "tools/gtnameserv") CONFIG_FILES="$CONFIG_FILES tools/gtnameserv" ;;
25768 "tools/gorbd") CONFIG_FILES="$CONFIG_FILES tools/gorbd" ;;
25769 "tools/grmid") CONFIG_FILES="$CONFIG_FILES tools/grmid" ;;
25770 "tools/grmic") CONFIG_FILES="$CONFIG_FILES tools/grmic" ;;
25771 "tools/gjavah") CONFIG_FILES="$CONFIG_FILES tools/gjavah" ;;
25772 "gappletviewer") CONFIG_COMMANDS="$CONFIG_COMMANDS gappletviewer" ;;
25773 "gjarsigner") CONFIG_COMMANDS="$CONFIG_COMMANDS gjarsigner" ;;
25774 "gkeytool") CONFIG_COMMANDS="$CONFIG_COMMANDS gkeytool" ;;
25775 "gjar") CONFIG_COMMANDS="$CONFIG_COMMANDS gjar" ;;
25776 "gnative2ascii") CONFIG_COMMANDS="$CONFIG_COMMANDS gnative2ascii" ;;
25777 "gserialver") CONFIG_COMMANDS="$CONFIG_COMMANDS gserialver" ;;
25778 "grmiregistry") CONFIG_COMMANDS="$CONFIG_COMMANDS grmiregistry" ;;
25779 "gtnameserv") CONFIG_COMMANDS="$CONFIG_COMMANDS gtnameserv" ;;
25780 "gorbd") CONFIG_COMMANDS="$CONFIG_COMMANDS gorbd" ;;
25781 "grmid") CONFIG_COMMANDS="$CONFIG_COMMANDS grmid" ;;
25782 "grmic") CONFIG_COMMANDS="$CONFIG_COMMANDS grmic" ;;
25783 "gjavah") CONFIG_COMMANDS="$CONFIG_COMMANDS gjavah" ;;
25784 "tools/gjdoc") CONFIG_FILES="$CONFIG_FILES tools/gjdoc" ;;
25785 "gjdoc") CONFIG_COMMANDS="$CONFIG_COMMANDS gjdoc" ;;
25786 "gen-classlist") CONFIG_COMMANDS="$CONFIG_COMMANDS gen-classlist" ;;
25787 "copy-vmresources") CONFIG_COMMANDS="$CONFIG_COMMANDS copy-vmresources" ;;
25788
25789 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25790 esac
25791 done
25792
25793
25794 # If the user did not use the arguments to specify the items to instantiate,
25795 # then the envvar interface is used. Set only those that are not.
25796 # We use the long form for the default assignment because of an extremely
25797 # bizarre bug on SunOS 4.1.3.
25798 if $ac_need_defaults; then
25799 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25800 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25801 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
25802 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25803 fi
25804
25805 # Have a temporary directory for convenience. Make it in the build tree
25806 # simply because there is no reason against having it here, and in addition,
25807 # creating and moving files from /tmp can sometimes cause problems.
25808 # Hook for its removal unless debugging.
25809 # Note that there is a small window in which the directory will not be cleaned:
25810 # after its creation but before its name has been assigned to `$tmp'.
25811 $debug ||
25812 {
25813 tmp=
25814 trap 'exit_status=$?
25815 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25816 ' 0
25817 trap 'as_fn_exit 1' 1 2 13 15
25818 }
25819 # Create a (secure) tmp directory for tmp files.
25820
25821 {
25822 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25823 test -n "$tmp" && test -d "$tmp"
25824 } ||
25825 {
25826 tmp=./conf$$-$RANDOM
25827 (umask 077 && mkdir "$tmp")
25828 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
25829
25830 # Set up the scripts for CONFIG_FILES section.
25831 # No need to generate them if there are no CONFIG_FILES.
25832 # This happens for instance with `./config.status config.h'.
25833 if test -n "$CONFIG_FILES"; then
25834
25835
25836 ac_cr=`echo X | tr X '\015'`
25837 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25838 # But we know of no other shell where ac_cr would be empty at this
25839 # point, so we can use a bashism as a fallback.
25840 if test "x$ac_cr" = x; then
25841 eval ac_cr=\$\'\\r\'
25842 fi
25843 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25844 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25845 ac_cs_awk_cr='\r'
25846 else
25847 ac_cs_awk_cr=$ac_cr
25848 fi
25849
25850 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25851 _ACEOF
25852
25853
25854 {
25855 echo "cat >conf$$subs.awk <<_ACEOF" &&
25856 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25857 echo "_ACEOF"
25858 } >conf$$subs.sh ||
25859 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25860 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25861 ac_delim='%!_!# '
25862 for ac_last_try in false false false false false :; do
25863 . ./conf$$subs.sh ||
25864 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25865
25866 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25867 if test $ac_delim_n = $ac_delim_num; then
25868 break
25869 elif $ac_last_try; then
25870 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25871 else
25872 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25873 fi
25874 done
25875 rm -f conf$$subs.sh
25876
25877 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25878 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25879 _ACEOF
25880 sed -n '
25881 h
25882 s/^/S["/; s/!.*/"]=/
25883 p
25884 g
25885 s/^[^!]*!//
25886 :repl
25887 t repl
25888 s/'"$ac_delim"'$//
25889 t delim
25890 :nl
25891 h
25892 s/\(.\{148\}\).*/\1/
25893 t more1
25894 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25895 p
25896 n
25897 b repl
25898 :more1
25899 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25900 p
25901 g
25902 s/.\{148\}//
25903 t nl
25904 :delim
25905 h
25906 s/\(.\{148\}\).*/\1/
25907 t more2
25908 s/["\\]/\\&/g; s/^/"/; s/$/"/
25909 p
25910 b
25911 :more2
25912 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25913 p
25914 g
25915 s/.\{148\}//
25916 t delim
25917 ' <conf$$subs.awk | sed '
25918 /^[^""]/{
25919 N
25920 s/\n//
25921 }
25922 ' >>$CONFIG_STATUS || ac_write_fail=1
25923 rm -f conf$$subs.awk
25924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25925 _ACAWK
25926 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
25927 for (key in S) S_is_set[key] = 1
25928 FS = "\a"
25929
25930 }
25931 {
25932 line = $ 0
25933 nfields = split(line, field, "@")
25934 substed = 0
25935 len = length(field[1])
25936 for (i = 2; i < nfields; i++) {
25937 key = field[i]
25938 keylen = length(key)
25939 if (S_is_set[key]) {
25940 value = S[key]
25941 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25942 len += length(value) + length(field[++i])
25943 substed = 1
25944 } else
25945 len += 1 + keylen
25946 }
25947
25948 print line
25949 }
25950
25951 _ACAWK
25952 _ACEOF
25953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25954 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25955 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25956 else
25957 cat
25958 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
25959 || as_fn_error "could not setup config files machinery" "$LINENO" 5
25960 _ACEOF
25961
25962 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25963 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25964 # trailing colons and then remove the whole line if VPATH becomes empty
25965 # (actually we leave an empty line to preserve line numbers).
25966 if test "x$srcdir" = x.; then
25967 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25968 s/:*\$(srcdir):*/:/
25969 s/:*\${srcdir}:*/:/
25970 s/:*@srcdir@:*/:/
25971 s/^\([^=]*=[ ]*\):*/\1/
25972 s/:*$//
25973 s/^[^=]*=[ ]*$//
25974 }'
25975 fi
25976
25977 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25978 fi # test -n "$CONFIG_FILES"
25979
25980 # Set up the scripts for CONFIG_HEADERS section.
25981 # No need to generate them if there are no CONFIG_HEADERS.
25982 # This happens for instance with `./config.status Makefile'.
25983 if test -n "$CONFIG_HEADERS"; then
25984 cat >"$tmp/defines.awk" <<\_ACAWK ||
25985 BEGIN {
25986 _ACEOF
25987
25988 # Transform confdefs.h into an awk script `defines.awk', embedded as
25989 # here-document in config.status, that substitutes the proper values into
25990 # config.h.in to produce config.h.
25991
25992 # Create a delimiter string that does not exist in confdefs.h, to ease
25993 # handling of long lines.
25994 ac_delim='%!_!# '
25995 for ac_last_try in false false :; do
25996 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
25997 if test -z "$ac_t"; then
25998 break
25999 elif $ac_last_try; then
26000 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26001 else
26002 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26003 fi
26004 done
26005
26006 # For the awk script, D is an array of macro values keyed by name,
26007 # likewise P contains macro parameters if any. Preserve backslash
26008 # newline sequences.
26009
26010 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26011 sed -n '
26012 s/.\{148\}/&'"$ac_delim"'/g
26013 t rset
26014 :rset
26015 s/^[ ]*#[ ]*define[ ][ ]*/ /
26016 t def
26017 d
26018 :def
26019 s/\\$//
26020 t bsnl
26021 s/["\\]/\\&/g
26022 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26023 D["\1"]=" \3"/p
26024 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26025 d
26026 :bsnl
26027 s/["\\]/\\&/g
26028 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26029 D["\1"]=" \3\\\\\\n"\\/p
26030 t cont
26031 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26032 t cont
26033 d
26034 :cont
26035 n
26036 s/.\{148\}/&'"$ac_delim"'/g
26037 t clear
26038 :clear
26039 s/\\$//
26040 t bsnlc
26041 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26042 d
26043 :bsnlc
26044 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26045 b cont
26046 ' <confdefs.h | sed '
26047 s/'"$ac_delim"'/"\\\
26048 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26049
26050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26051 for (key in D) D_is_set[key] = 1
26052 FS = "\a"
26053 }
26054 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26055 line = \$ 0
26056 split(line, arg, " ")
26057 if (arg[1] == "#") {
26058 defundef = arg[2]
26059 mac1 = arg[3]
26060 } else {
26061 defundef = substr(arg[1], 2)
26062 mac1 = arg[2]
26063 }
26064 split(mac1, mac2, "(") #)
26065 macro = mac2[1]
26066 prefix = substr(line, 1, index(line, defundef) - 1)
26067 if (D_is_set[macro]) {
26068 # Preserve the white space surrounding the "#".
26069 print prefix "define", macro P[macro] D[macro]
26070 next
26071 } else {
26072 # Replace #undef with comments. This is necessary, for example,
26073 # in the case of _POSIX_SOURCE, which is predefined and required
26074 # on some systems where configure will not decide to define it.
26075 if (defundef == "undef") {
26076 print "/*", prefix defundef, macro, "*/"
26077 next
26078 }
26079 }
26080 }
26081 { print }
26082 _ACAWK
26083 _ACEOF
26084 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26085 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26086 fi # test -n "$CONFIG_HEADERS"
26087
26088
26089 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
26090 shift
26091 for ac_tag
26092 do
26093 case $ac_tag in
26094 :[FHLC]) ac_mode=$ac_tag; continue;;
26095 esac
26096 case $ac_mode$ac_tag in
26097 :[FHL]*:*);;
26098 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26099 :[FH]-) ac_tag=-:-;;
26100 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26101 esac
26102 ac_save_IFS=$IFS
26103 IFS=:
26104 set x $ac_tag
26105 IFS=$ac_save_IFS
26106 shift
26107 ac_file=$1
26108 shift
26109
26110 case $ac_mode in
26111 :L) ac_source=$1;;
26112 :[FH])
26113 ac_file_inputs=
26114 for ac_f
26115 do
26116 case $ac_f in
26117 -) ac_f="$tmp/stdin";;
26118 *) # Look for the file first in the build tree, then in the source tree
26119 # (if the path is not absolute). The absolute path cannot be DOS-style,
26120 # because $ac_f cannot contain `:'.
26121 test -f "$ac_f" ||
26122 case $ac_f in
26123 [\\/$]*) false;;
26124 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26125 esac ||
26126 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26127 esac
26128 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26129 as_fn_append ac_file_inputs " '$ac_f'"
26130 done
26131
26132 # Let's still pretend it is `configure' which instantiates (i.e., don't
26133 # use $as_me), people would be surprised to read:
26134 # /* config.h. Generated by config.status. */
26135 configure_input='Generated from '`
26136 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26137 `' by configure.'
26138 if test x"$ac_file" != x-; then
26139 configure_input="$ac_file. $configure_input"
26140 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26141 $as_echo "$as_me: creating $ac_file" >&6;}
26142 fi
26143 # Neutralize special characters interpreted by sed in replacement strings.
26144 case $configure_input in #(
26145 *\&* | *\|* | *\\* )
26146 ac_sed_conf_input=`$as_echo "$configure_input" |
26147 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26148 *) ac_sed_conf_input=$configure_input;;
26149 esac
26150
26151 case $ac_tag in
26152 *:-:* | *:-) cat >"$tmp/stdin" \
26153 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26154 esac
26155 ;;
26156 esac
26157
26158 ac_dir=`$as_dirname -- "$ac_file" ||
26159 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26160 X"$ac_file" : 'X\(//\)[^/]' \| \
26161 X"$ac_file" : 'X\(//\)$' \| \
26162 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26163 $as_echo X"$ac_file" |
26164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26165 s//\1/
26166 q
26167 }
26168 /^X\(\/\/\)[^/].*/{
26169 s//\1/
26170 q
26171 }
26172 /^X\(\/\/\)$/{
26173 s//\1/
26174 q
26175 }
26176 /^X\(\/\).*/{
26177 s//\1/
26178 q
26179 }
26180 s/.*/./; q'`
26181 as_dir="$ac_dir"; as_fn_mkdir_p
26182 ac_builddir=.
26183
26184 case "$ac_dir" in
26185 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26186 *)
26187 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26188 # A ".." for each directory in $ac_dir_suffix.
26189 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26190 case $ac_top_builddir_sub in
26191 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26192 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26193 esac ;;
26194 esac
26195 ac_abs_top_builddir=$ac_pwd
26196 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26197 # for backward compatibility:
26198 ac_top_builddir=$ac_top_build_prefix
26199
26200 case $srcdir in
26201 .) # We are building in place.
26202 ac_srcdir=.
26203 ac_top_srcdir=$ac_top_builddir_sub
26204 ac_abs_top_srcdir=$ac_pwd ;;
26205 [\\/]* | ?:[\\/]* ) # Absolute name.
26206 ac_srcdir=$srcdir$ac_dir_suffix;
26207 ac_top_srcdir=$srcdir
26208 ac_abs_top_srcdir=$srcdir ;;
26209 *) # Relative name.
26210 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26211 ac_top_srcdir=$ac_top_build_prefix$srcdir
26212 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26213 esac
26214 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26215
26216
26217 case $ac_mode in
26218 :F)
26219 #
26220 # CONFIG_FILE
26221 #
26222
26223 case $INSTALL in
26224 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26225 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26226 esac
26227 ac_MKDIR_P=$MKDIR_P
26228 case $MKDIR_P in
26229 [\\/$]* | ?:[\\/]* ) ;;
26230 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26231 esac
26232 _ACEOF
26233
26234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26235 # If the template does not know about datarootdir, expand it.
26236 # FIXME: This hack should be removed a few years after 2.60.
26237 ac_datarootdir_hack=; ac_datarootdir_seen=
26238 ac_sed_dataroot='
26239 /datarootdir/ {
26240 p
26241 q
26242 }
26243 /@datadir@/p
26244 /@docdir@/p
26245 /@infodir@/p
26246 /@localedir@/p
26247 /@mandir@/p'
26248 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26249 *datarootdir*) ac_datarootdir_seen=yes;;
26250 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26252 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26253 _ACEOF
26254 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26255 ac_datarootdir_hack='
26256 s&@datadir@&$datadir&g
26257 s&@docdir@&$docdir&g
26258 s&@infodir@&$infodir&g
26259 s&@localedir@&$localedir&g
26260 s&@mandir@&$mandir&g
26261 s&\\\${datarootdir}&$datarootdir&g' ;;
26262 esac
26263 _ACEOF
26264
26265 # Neutralize VPATH when `$srcdir' = `.'.
26266 # Shell code in configure.ac might set extrasub.
26267 # FIXME: do we really want to maintain this feature?
26268 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26269 ac_sed_extra="$ac_vpsub
26270 $extrasub
26271 _ACEOF
26272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26273 :t
26274 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26275 s|@configure_input@|$ac_sed_conf_input|;t t
26276 s&@top_builddir@&$ac_top_builddir_sub&;t t
26277 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26278 s&@srcdir@&$ac_srcdir&;t t
26279 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26280 s&@top_srcdir@&$ac_top_srcdir&;t t
26281 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26282 s&@builddir@&$ac_builddir&;t t
26283 s&@abs_builddir@&$ac_abs_builddir&;t t
26284 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26285 s&@INSTALL@&$ac_INSTALL&;t t
26286 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26287 $ac_datarootdir_hack
26288 "
26289 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26290 || as_fn_error "could not create $ac_file" "$LINENO" 5
26291
26292 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26293 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26294 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26296 which seems to be undefined. Please make sure it is defined." >&5
26297 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26298 which seems to be undefined. Please make sure it is defined." >&2;}
26299
26300 rm -f "$tmp/stdin"
26301 case $ac_file in
26302 -) cat "$tmp/out" && rm -f "$tmp/out";;
26303 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26304 esac \
26305 || as_fn_error "could not create $ac_file" "$LINENO" 5
26306 ;;
26307 :H)
26308 #
26309 # CONFIG_HEADER
26310 #
26311 if test x"$ac_file" != x-; then
26312 {
26313 $as_echo "/* $configure_input */" \
26314 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26315 } >"$tmp/config.h" \
26316 || as_fn_error "could not create $ac_file" "$LINENO" 5
26317 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26318 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26319 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26320 else
26321 rm -f "$ac_file"
26322 mv "$tmp/config.h" "$ac_file" \
26323 || as_fn_error "could not create $ac_file" "$LINENO" 5
26324 fi
26325 else
26326 $as_echo "/* $configure_input */" \
26327 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26328 || as_fn_error "could not create -" "$LINENO" 5
26329 fi
26330 # Compute "$ac_file"'s index in $config_headers.
26331 _am_arg="$ac_file"
26332 _am_stamp_count=1
26333 for _am_header in $config_headers :; do
26334 case $_am_header in
26335 $_am_arg | $_am_arg:* )
26336 break ;;
26337 * )
26338 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26339 esac
26340 done
26341 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26342 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26343 X"$_am_arg" : 'X\(//\)[^/]' \| \
26344 X"$_am_arg" : 'X\(//\)$' \| \
26345 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26346 $as_echo X"$_am_arg" |
26347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26348 s//\1/
26349 q
26350 }
26351 /^X\(\/\/\)[^/].*/{
26352 s//\1/
26353 q
26354 }
26355 /^X\(\/\/\)$/{
26356 s//\1/
26357 q
26358 }
26359 /^X\(\/\).*/{
26360 s//\1/
26361 q
26362 }
26363 s/.*/./; q'`/stamp-h$_am_stamp_count
26364 ;;
26365 :L)
26366 #
26367 # CONFIG_LINK
26368 #
26369
26370 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
26371 :
26372 else
26373 # Prefer the file from the source tree if names are identical.
26374 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
26375 ac_source=$srcdir/$ac_source
26376 fi
26377
26378 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
26379 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
26380
26381 if test ! -r "$ac_source"; then
26382 as_fn_error "$ac_source: file not found" "$LINENO" 5
26383 fi
26384 rm -f "$ac_file"
26385
26386 # Try a relative symlink, then a hard link, then a copy.
26387 case $srcdir in
26388 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
26389 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
26390 esac
26391 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
26392 ln "$ac_source" "$ac_file" 2>/dev/null ||
26393 cp -p "$ac_source" "$ac_file" ||
26394 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
26395 fi
26396 ;;
26397 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26398 $as_echo "$as_me: executing $ac_file commands" >&6;}
26399 ;;
26400 esac
26401
26402
26403 case $ac_file$ac_mode in
26404 "default-1":C)
26405 # Only add multilib support code if we just rebuilt the top-level
26406 # Makefile.
26407 case " $CONFIG_FILES " in
26408 *" Makefile "*)
26409 ac_file=Makefile . ${multi_basedir}/config-ml.in
26410 ;;
26411 esac ;;
26412 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26413 # Autoconf 2.62 quotes --file arguments for eval, but not when files
26414 # are listed without --file. Let's play safe and only enable the eval
26415 # if we detect the quoting.
26416 case $CONFIG_FILES in
26417 *\'*) eval set x "$CONFIG_FILES" ;;
26418 *) set x $CONFIG_FILES ;;
26419 esac
26420 shift
26421 for mf
26422 do
26423 # Strip MF so we end up with the name of the file.
26424 mf=`echo "$mf" | sed -e 's/:.*$//'`
26425 # Check whether this is an Automake generated Makefile or not.
26426 # We used to match only the files named `Makefile.in', but
26427 # some people rename them; so instead we look at the file content.
26428 # Grep'ing the first line is not enough: some people post-process
26429 # each Makefile.in and add a new line on top of each file to say so.
26430 # Grep'ing the whole file is not good either: AIX grep has a line
26431 # limit of 2048, but all sed's we know have understand at least 4000.
26432 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26433 dirpart=`$as_dirname -- "$mf" ||
26434 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26435 X"$mf" : 'X\(//\)[^/]' \| \
26436 X"$mf" : 'X\(//\)$' \| \
26437 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26438 $as_echo X"$mf" |
26439 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26440 s//\1/
26441 q
26442 }
26443 /^X\(\/\/\)[^/].*/{
26444 s//\1/
26445 q
26446 }
26447 /^X\(\/\/\)$/{
26448 s//\1/
26449 q
26450 }
26451 /^X\(\/\).*/{
26452 s//\1/
26453 q
26454 }
26455 s/.*/./; q'`
26456 else
26457 continue
26458 fi
26459 # Extract the definition of DEPDIR, am__include, and am__quote
26460 # from the Makefile without running `make'.
26461 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26462 test -z "$DEPDIR" && continue
26463 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26464 test -z "am__include" && continue
26465 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26466 # When using ansi2knr, U may be empty or an underscore; expand it
26467 U=`sed -n 's/^U = //p' < "$mf"`
26468 # Find all dependency output files, they are included files with
26469 # $(DEPDIR) in their names. We invoke sed twice because it is the
26470 # simplest approach to changing $(DEPDIR) to its actual value in the
26471 # expansion.
26472 for file in `sed -n "
26473 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26474 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26475 # Make sure the directory exists.
26476 test -f "$dirpart/$file" && continue
26477 fdir=`$as_dirname -- "$file" ||
26478 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26479 X"$file" : 'X\(//\)[^/]' \| \
26480 X"$file" : 'X\(//\)$' \| \
26481 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26482 $as_echo X"$file" |
26483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26484 s//\1/
26485 q
26486 }
26487 /^X\(\/\/\)[^/].*/{
26488 s//\1/
26489 q
26490 }
26491 /^X\(\/\/\)$/{
26492 s//\1/
26493 q
26494 }
26495 /^X\(\/\).*/{
26496 s//\1/
26497 q
26498 }
26499 s/.*/./; q'`
26500 as_dir=$dirpart/$fdir; as_fn_mkdir_p
26501 # echo "creating $dirpart/$file"
26502 echo '# dummy' > "$dirpart/$file"
26503 done
26504 done
26505 }
26506 ;;
26507 "libtool":C)
26508
26509 # See if we are running on zsh, and set the options which allow our
26510 # commands through without removal of \ escapes.
26511 if test -n "${ZSH_VERSION+set}" ; then
26512 setopt NO_GLOB_SUBST
26513 fi
26514
26515 cfgfile="${ofile}T"
26516 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26517 $RM "$cfgfile"
26518
26519 cat <<_LT_EOF >> "$cfgfile"
26520 #! $SHELL
26521
26522 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26523 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26524 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26525 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26526 #
26527 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26528 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
26529 # Written by Gordon Matzigkeit, 1996
26530 #
26531 # This file is part of GNU Libtool.
26532 #
26533 # GNU Libtool is free software; you can redistribute it and/or
26534 # modify it under the terms of the GNU General Public License as
26535 # published by the Free Software Foundation; either version 2 of
26536 # the License, or (at your option) any later version.
26537 #
26538 # As a special exception to the GNU General Public License,
26539 # if you distribute this file as part of a program or library that
26540 # is built using GNU Libtool, you may include this file under the
26541 # same distribution terms that you use for the rest of that program.
26542 #
26543 # GNU Libtool is distributed in the hope that it will be useful,
26544 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26545 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26546 # GNU General Public License for more details.
26547 #
26548 # You should have received a copy of the GNU General Public License
26549 # along with GNU Libtool; see the file COPYING. If not, a copy
26550 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
26551 # obtained by writing to the Free Software Foundation, Inc.,
26552 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26553
26554
26555 # The names of the tagged configurations supported by this script.
26556 available_tags="CXX "
26557
26558 # ### BEGIN LIBTOOL CONFIG
26559
26560 # Whether or not to build static libraries.
26561 build_old_libs=$enable_static
26562
26563 # Which release of libtool.m4 was used?
26564 macro_version=$macro_version
26565 macro_revision=$macro_revision
26566
26567 # Whether or not to build shared libraries.
26568 build_libtool_libs=$enable_shared
26569
26570 # What type of objects to build.
26571 pic_mode=$pic_mode
26572
26573 # Whether or not to optimize for fast installation.
26574 fast_install=$enable_fast_install
26575
26576 # Shell to use when invoking shell scripts.
26577 SHELL=$lt_SHELL
26578
26579 # An echo program that protects backslashes.
26580 ECHO=$lt_ECHO
26581
26582 # The host system.
26583 host_alias=$host_alias
26584 host=$host
26585 host_os=$host_os
26586
26587 # The build system.
26588 build_alias=$build_alias
26589 build=$build
26590 build_os=$build_os
26591
26592 # A sed program that does not truncate output.
26593 SED=$lt_SED
26594
26595 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
26596 Xsed="\$SED -e 1s/^X//"
26597
26598 # A grep program that handles long lines.
26599 GREP=$lt_GREP
26600
26601 # An ERE matcher.
26602 EGREP=$lt_EGREP
26603
26604 # A literal string matcher.
26605 FGREP=$lt_FGREP
26606
26607 # A BSD- or MS-compatible name lister.
26608 NM=$lt_NM
26609
26610 # Whether we need soft or hard links.
26611 LN_S=$lt_LN_S
26612
26613 # What is the maximum length of a command?
26614 max_cmd_len=$max_cmd_len
26615
26616 # Object file suffix (normally "o").
26617 objext=$ac_objext
26618
26619 # Executable file suffix (normally "").
26620 exeext=$exeext
26621
26622 # whether the shell understands "unset".
26623 lt_unset=$lt_unset
26624
26625 # turn spaces into newlines.
26626 SP2NL=$lt_lt_SP2NL
26627
26628 # turn newlines into spaces.
26629 NL2SP=$lt_lt_NL2SP
26630
26631 # An object symbol dumper.
26632 OBJDUMP=$lt_OBJDUMP
26633
26634 # Method to check whether dependent libraries are shared objects.
26635 deplibs_check_method=$lt_deplibs_check_method
26636
26637 # Command to use when deplibs_check_method == "file_magic".
26638 file_magic_cmd=$lt_file_magic_cmd
26639
26640 # The archiver.
26641 AR=$lt_AR
26642 AR_FLAGS=$lt_AR_FLAGS
26643
26644 # A symbol stripping program.
26645 STRIP=$lt_STRIP
26646
26647 # Commands used to install an old-style archive.
26648 RANLIB=$lt_RANLIB
26649 old_postinstall_cmds=$lt_old_postinstall_cmds
26650 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26651
26652 # Whether to use a lock for old archive extraction.
26653 lock_old_archive_extraction=$lock_old_archive_extraction
26654
26655 # A C compiler.
26656 LTCC=$lt_CC
26657
26658 # LTCC compiler flags.
26659 LTCFLAGS=$lt_CFLAGS
26660
26661 # Take the output of nm and produce a listing of raw symbols and C names.
26662 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26663
26664 # Transform the output of nm in a proper C declaration.
26665 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26666
26667 # Transform the output of nm in a C name address pair.
26668 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26669
26670 # Transform the output of nm in a C name address pair when lib prefix is needed.
26671 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
26672
26673 # The name of the directory that contains temporary libtool files.
26674 objdir=$objdir
26675
26676 # Used to examine libraries when file_magic_cmd begins with "file".
26677 MAGIC_CMD=$MAGIC_CMD
26678
26679 # Must we lock files when doing compilation?
26680 need_locks=$lt_need_locks
26681
26682 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
26683 DSYMUTIL=$lt_DSYMUTIL
26684
26685 # Tool to change global to local symbols on Mac OS X.
26686 NMEDIT=$lt_NMEDIT
26687
26688 # Tool to manipulate fat objects and archives on Mac OS X.
26689 LIPO=$lt_LIPO
26690
26691 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
26692 OTOOL=$lt_OTOOL
26693
26694 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
26695 OTOOL64=$lt_OTOOL64
26696
26697 # Old archive suffix (normally "a").
26698 libext=$libext
26699
26700 # Shared library suffix (normally ".so").
26701 shrext_cmds=$lt_shrext_cmds
26702
26703 # The commands to extract the exported symbol list from a shared archive.
26704 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26705
26706 # Variables whose values should be saved in libtool wrapper scripts and
26707 # restored at link time.
26708 variables_saved_for_relink=$lt_variables_saved_for_relink
26709
26710 # Do we need the "lib" prefix for modules?
26711 need_lib_prefix=$need_lib_prefix
26712
26713 # Do we need a version for libraries?
26714 need_version=$need_version
26715
26716 # Library versioning type.
26717 version_type=$version_type
26718
26719 # Shared library runtime path variable.
26720 runpath_var=$runpath_var
26721
26722 # Shared library path variable.
26723 shlibpath_var=$shlibpath_var
26724
26725 # Is shlibpath searched before the hard-coded library search path?
26726 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26727
26728 # Format of library name prefix.
26729 libname_spec=$lt_libname_spec
26730
26731 # List of archive names. First name is the real one, the rest are links.
26732 # The last name is the one that the linker finds with -lNAME
26733 library_names_spec=$lt_library_names_spec
26734
26735 # The coded name of the library, if different from the real name.
26736 soname_spec=$lt_soname_spec
26737
26738 # Permission mode override for installation of shared libraries.
26739 install_override_mode=$lt_install_override_mode
26740
26741 # Command to use after installation of a shared archive.
26742 postinstall_cmds=$lt_postinstall_cmds
26743
26744 # Command to use after uninstallation of a shared archive.
26745 postuninstall_cmds=$lt_postuninstall_cmds
26746
26747 # Commands used to finish a libtool library installation in a directory.
26748 finish_cmds=$lt_finish_cmds
26749
26750 # As "finish_cmds", except a single script fragment to be evaled but
26751 # not shown.
26752 finish_eval=$lt_finish_eval
26753
26754 # Whether we should hardcode library paths into libraries.
26755 hardcode_into_libs=$hardcode_into_libs
26756
26757 # Compile-time system search path for libraries.
26758 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26759
26760 # Run-time system search path for libraries.
26761 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26762
26763 # Whether dlopen is supported.
26764 dlopen_support=$enable_dlopen
26765
26766 # Whether dlopen of programs is supported.
26767 dlopen_self=$enable_dlopen_self
26768
26769 # Whether dlopen of statically linked programs is supported.
26770 dlopen_self_static=$enable_dlopen_self_static
26771
26772 # Commands to strip libraries.
26773 old_striplib=$lt_old_striplib
26774 striplib=$lt_striplib
26775
26776
26777 # The linker used to build libraries.
26778 LD=$lt_LD
26779
26780 # How to create reloadable object files.
26781 reload_flag=$lt_reload_flag
26782 reload_cmds=$lt_reload_cmds
26783
26784 # Commands used to build an old-style archive.
26785 old_archive_cmds=$lt_old_archive_cmds
26786
26787 # A language specific compiler.
26788 CC=$lt_compiler
26789
26790 # Is the compiler the GNU compiler?
26791 with_gcc=$GCC
26792
26793 # Compiler flag to turn off builtin functions.
26794 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
26795
26796 # How to pass a linker flag through the compiler.
26797 wl=$lt_lt_prog_compiler_wl
26798
26799 # Additional compiler flags for building library objects.
26800 pic_flag=$lt_lt_prog_compiler_pic
26801
26802 # Compiler flag to prevent dynamic linking.
26803 link_static_flag=$lt_lt_prog_compiler_static
26804
26805 # Does compiler simultaneously support -c and -o options?
26806 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
26807
26808 # Whether or not to add -lc for building shared libraries.
26809 build_libtool_need_lc=$archive_cmds_need_lc
26810
26811 # Whether or not to disallow shared libs when runtime libs are static.
26812 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
26813
26814 # Compiler flag to allow reflexive dlopens.
26815 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
26816
26817 # Compiler flag to generate shared objects directly from archives.
26818 whole_archive_flag_spec=$lt_whole_archive_flag_spec
26819
26820 # Whether the compiler copes with passing no objects directly.
26821 compiler_needs_object=$lt_compiler_needs_object
26822
26823 # Create an old-style archive from a shared archive.
26824 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
26825
26826 # Create a temporary old-style archive to link instead of a shared archive.
26827 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
26828
26829 # Commands used to build a shared archive.
26830 archive_cmds=$lt_archive_cmds
26831 archive_expsym_cmds=$lt_archive_expsym_cmds
26832
26833 # Commands used to build a loadable module if different from building
26834 # a shared archive.
26835 module_cmds=$lt_module_cmds
26836 module_expsym_cmds=$lt_module_expsym_cmds
26837
26838 # Whether we are building with GNU ld or not.
26839 with_gnu_ld=$lt_with_gnu_ld
26840
26841 # Flag that allows shared libraries with undefined symbols to be built.
26842 allow_undefined_flag=$lt_allow_undefined_flag
26843
26844 # Flag that enforces no undefined symbols.
26845 no_undefined_flag=$lt_no_undefined_flag
26846
26847 # Flag to hardcode \$libdir into a binary during linking.
26848 # This must work even if \$libdir does not exist
26849 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
26850
26851 # If ld is used when linking, flag to hardcode \$libdir into a binary
26852 # during linking. This must work even if \$libdir does not exist.
26853 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
26854
26855 # Whether we need a single "-rpath" flag with a separated argument.
26856 hardcode_libdir_separator=$lt_hardcode_libdir_separator
26857
26858 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26859 # DIR into the resulting binary.
26860 hardcode_direct=$hardcode_direct
26861
26862 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26863 # DIR into the resulting binary and the resulting library dependency is
26864 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
26865 # library is relocated.
26866 hardcode_direct_absolute=$hardcode_direct_absolute
26867
26868 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26869 # into the resulting binary.
26870 hardcode_minus_L=$hardcode_minus_L
26871
26872 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26873 # into the resulting binary.
26874 hardcode_shlibpath_var=$hardcode_shlibpath_var
26875
26876 # Set to "yes" if building a shared library automatically hardcodes DIR
26877 # into the library and all subsequent libraries and executables linked
26878 # against it.
26879 hardcode_automatic=$hardcode_automatic
26880
26881 # Set to yes if linker adds runtime paths of dependent libraries
26882 # to runtime path list.
26883 inherit_rpath=$inherit_rpath
26884
26885 # Whether libtool must link a program against all its dependency libraries.
26886 link_all_deplibs=$link_all_deplibs
26887
26888 # Fix the shell variable \$srcfile for the compiler.
26889 fix_srcfile_path=$lt_fix_srcfile_path
26890
26891 # Set to "yes" if exported symbols are required.
26892 always_export_symbols=$always_export_symbols
26893
26894 # The commands to list exported symbols.
26895 export_symbols_cmds=$lt_export_symbols_cmds
26896
26897 # Symbols that should not be listed in the preloaded symbols.
26898 exclude_expsyms=$lt_exclude_expsyms
26899
26900 # Symbols that must always be exported.
26901 include_expsyms=$lt_include_expsyms
26902
26903 # Commands necessary for linking programs (against libraries) with templates.
26904 prelink_cmds=$lt_prelink_cmds
26905
26906 # Specify filename containing input files.
26907 file_list_spec=$lt_file_list_spec
26908
26909 # How to hardcode a shared library path into an executable.
26910 hardcode_action=$hardcode_action
26911
26912 # The directories searched by this compiler when creating a shared library.
26913 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
26914
26915 # Dependencies to place before and after the objects being linked to
26916 # create a shared library.
26917 predep_objects=$lt_predep_objects
26918 postdep_objects=$lt_postdep_objects
26919 predeps=$lt_predeps
26920 postdeps=$lt_postdeps
26921
26922 # The library search path used internally by the compiler when linking
26923 # a shared library.
26924 compiler_lib_search_path=$lt_compiler_lib_search_path
26925
26926 # ### END LIBTOOL CONFIG
26927
26928 _LT_EOF
26929
26930 case $host_os in
26931 aix3*)
26932 cat <<\_LT_EOF >> "$cfgfile"
26933 # AIX sometimes has problems with the GCC collect2 program. For some
26934 # reason, if we set the COLLECT_NAMES environment variable, the problems
26935 # vanish in a puff of smoke.
26936 if test "X${COLLECT_NAMES+set}" != Xset; then
26937 COLLECT_NAMES=
26938 export COLLECT_NAMES
26939 fi
26940 _LT_EOF
26941 ;;
26942 esac
26943
26944
26945 ltmain="$ac_aux_dir/ltmain.sh"
26946
26947
26948 # We use sed instead of cat because bash on DJGPP gets confused if
26949 # if finds mixed CR/LF and LF-only lines. Since sed operates in
26950 # text mode, it properly converts lines to CR/LF. This bash problem
26951 # is reportedly fixed, but why not run on old versions too?
26952 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
26953 || (rm -f "$cfgfile"; exit 1)
26954
26955 case $xsi_shell in
26956 yes)
26957 cat << \_LT_EOF >> "$cfgfile"
26958
26959 # func_dirname file append nondir_replacement
26960 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
26961 # otherwise set result to NONDIR_REPLACEMENT.
26962 func_dirname ()
26963 {
26964 case ${1} in
26965 */*) func_dirname_result="${1%/*}${2}" ;;
26966 * ) func_dirname_result="${3}" ;;
26967 esac
26968 }
26969
26970 # func_basename file
26971 func_basename ()
26972 {
26973 func_basename_result="${1##*/}"
26974 }
26975
26976 # func_dirname_and_basename file append nondir_replacement
26977 # perform func_basename and func_dirname in a single function
26978 # call:
26979 # dirname: Compute the dirname of FILE. If nonempty,
26980 # add APPEND to the result, otherwise set result
26981 # to NONDIR_REPLACEMENT.
26982 # value returned in "$func_dirname_result"
26983 # basename: Compute filename of FILE.
26984 # value retuned in "$func_basename_result"
26985 # Implementation must be kept synchronized with func_dirname
26986 # and func_basename. For efficiency, we do not delegate to
26987 # those functions but instead duplicate the functionality here.
26988 func_dirname_and_basename ()
26989 {
26990 case ${1} in
26991 */*) func_dirname_result="${1%/*}${2}" ;;
26992 * ) func_dirname_result="${3}" ;;
26993 esac
26994 func_basename_result="${1##*/}"
26995 }
26996
26997 # func_stripname prefix suffix name
26998 # strip PREFIX and SUFFIX off of NAME.
26999 # PREFIX and SUFFIX must not contain globbing or regex special
27000 # characters, hashes, percent signs, but SUFFIX may contain a leading
27001 # dot (in which case that matches only a dot).
27002 func_stripname ()
27003 {
27004 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
27005 # positional parameters, so assign one to ordinary parameter first.
27006 func_stripname_result=${3}
27007 func_stripname_result=${func_stripname_result#"${1}"}
27008 func_stripname_result=${func_stripname_result%"${2}"}
27009 }
27010
27011 # func_opt_split
27012 func_opt_split ()
27013 {
27014 func_opt_split_opt=${1%%=*}
27015 func_opt_split_arg=${1#*=}
27016 }
27017
27018 # func_lo2o object
27019 func_lo2o ()
27020 {
27021 case ${1} in
27022 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
27023 *) func_lo2o_result=${1} ;;
27024 esac
27025 }
27026
27027 # func_xform libobj-or-source
27028 func_xform ()
27029 {
27030 func_xform_result=${1%.*}.lo
27031 }
27032
27033 # func_arith arithmetic-term...
27034 func_arith ()
27035 {
27036 func_arith_result=$(( $* ))
27037 }
27038
27039 # func_len string
27040 # STRING may not start with a hyphen.
27041 func_len ()
27042 {
27043 func_len_result=${#1}
27044 }
27045
27046 _LT_EOF
27047 ;;
27048 *) # Bourne compatible functions.
27049 cat << \_LT_EOF >> "$cfgfile"
27050
27051 # func_dirname file append nondir_replacement
27052 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27053 # otherwise set result to NONDIR_REPLACEMENT.
27054 func_dirname ()
27055 {
27056 # Extract subdirectory from the argument.
27057 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
27058 if test "X$func_dirname_result" = "X${1}"; then
27059 func_dirname_result="${3}"
27060 else
27061 func_dirname_result="$func_dirname_result${2}"
27062 fi
27063 }
27064
27065 # func_basename file
27066 func_basename ()
27067 {
27068 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
27069 }
27070
27071
27072 # func_stripname prefix suffix name
27073 # strip PREFIX and SUFFIX off of NAME.
27074 # PREFIX and SUFFIX must not contain globbing or regex special
27075 # characters, hashes, percent signs, but SUFFIX may contain a leading
27076 # dot (in which case that matches only a dot).
27077 # func_strip_suffix prefix name
27078 func_stripname ()
27079 {
27080 case ${2} in
27081 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
27082 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
27083 esac
27084 }
27085
27086 # sed scripts:
27087 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
27088 my_sed_long_arg='1s/^-[^=]*=//'
27089
27090 # func_opt_split
27091 func_opt_split ()
27092 {
27093 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
27094 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
27095 }
27096
27097 # func_lo2o object
27098 func_lo2o ()
27099 {
27100 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
27101 }
27102
27103 # func_xform libobj-or-source
27104 func_xform ()
27105 {
27106 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
27107 }
27108
27109 # func_arith arithmetic-term...
27110 func_arith ()
27111 {
27112 func_arith_result=`expr "$@"`
27113 }
27114
27115 # func_len string
27116 # STRING may not start with a hyphen.
27117 func_len ()
27118 {
27119 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
27120 }
27121
27122 _LT_EOF
27123 esac
27124
27125 case $lt_shell_append in
27126 yes)
27127 cat << \_LT_EOF >> "$cfgfile"
27128
27129 # func_append var value
27130 # Append VALUE to the end of shell variable VAR.
27131 func_append ()
27132 {
27133 eval "$1+=\$2"
27134 }
27135 _LT_EOF
27136 ;;
27137 *)
27138 cat << \_LT_EOF >> "$cfgfile"
27139
27140 # func_append var value
27141 # Append VALUE to the end of shell variable VAR.
27142 func_append ()
27143 {
27144 eval "$1=\$$1\$2"
27145 }
27146
27147 _LT_EOF
27148 ;;
27149 esac
27150
27151
27152 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27153 || (rm -f "$cfgfile"; exit 1)
27154
27155 mv -f "$cfgfile" "$ofile" ||
27156 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27157 chmod +x "$ofile"
27158
27159
27160 cat <<_LT_EOF >> "$ofile"
27161
27162 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27163
27164 # The linker used to build libraries.
27165 LD=$lt_LD_CXX
27166
27167 # How to create reloadable object files.
27168 reload_flag=$lt_reload_flag_CXX
27169 reload_cmds=$lt_reload_cmds_CXX
27170
27171 # Commands used to build an old-style archive.
27172 old_archive_cmds=$lt_old_archive_cmds_CXX
27173
27174 # A language specific compiler.
27175 CC=$lt_compiler_CXX
27176
27177 # Is the compiler the GNU compiler?
27178 with_gcc=$GCC_CXX
27179
27180 # Compiler flag to turn off builtin functions.
27181 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27182
27183 # How to pass a linker flag through the compiler.
27184 wl=$lt_lt_prog_compiler_wl_CXX
27185
27186 # Additional compiler flags for building library objects.
27187 pic_flag=$lt_lt_prog_compiler_pic_CXX
27188
27189 # Compiler flag to prevent dynamic linking.
27190 link_static_flag=$lt_lt_prog_compiler_static_CXX
27191
27192 # Does compiler simultaneously support -c and -o options?
27193 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27194
27195 # Whether or not to add -lc for building shared libraries.
27196 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27197
27198 # Whether or not to disallow shared libs when runtime libs are static.
27199 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27200
27201 # Compiler flag to allow reflexive dlopens.
27202 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27203
27204 # Compiler flag to generate shared objects directly from archives.
27205 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27206
27207 # Whether the compiler copes with passing no objects directly.
27208 compiler_needs_object=$lt_compiler_needs_object_CXX
27209
27210 # Create an old-style archive from a shared archive.
27211 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27212
27213 # Create a temporary old-style archive to link instead of a shared archive.
27214 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27215
27216 # Commands used to build a shared archive.
27217 archive_cmds=$lt_archive_cmds_CXX
27218 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27219
27220 # Commands used to build a loadable module if different from building
27221 # a shared archive.
27222 module_cmds=$lt_module_cmds_CXX
27223 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27224
27225 # Whether we are building with GNU ld or not.
27226 with_gnu_ld=$lt_with_gnu_ld_CXX
27227
27228 # Flag that allows shared libraries with undefined symbols to be built.
27229 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27230
27231 # Flag that enforces no undefined symbols.
27232 no_undefined_flag=$lt_no_undefined_flag_CXX
27233
27234 # Flag to hardcode \$libdir into a binary during linking.
27235 # This must work even if \$libdir does not exist
27236 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27237
27238 # If ld is used when linking, flag to hardcode \$libdir into a binary
27239 # during linking. This must work even if \$libdir does not exist.
27240 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
27241
27242 # Whether we need a single "-rpath" flag with a separated argument.
27243 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27244
27245 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27246 # DIR into the resulting binary.
27247 hardcode_direct=$hardcode_direct_CXX
27248
27249 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27250 # DIR into the resulting binary and the resulting library dependency is
27251 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27252 # library is relocated.
27253 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27254
27255 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27256 # into the resulting binary.
27257 hardcode_minus_L=$hardcode_minus_L_CXX
27258
27259 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27260 # into the resulting binary.
27261 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27262
27263 # Set to "yes" if building a shared library automatically hardcodes DIR
27264 # into the library and all subsequent libraries and executables linked
27265 # against it.
27266 hardcode_automatic=$hardcode_automatic_CXX
27267
27268 # Set to yes if linker adds runtime paths of dependent libraries
27269 # to runtime path list.
27270 inherit_rpath=$inherit_rpath_CXX
27271
27272 # Whether libtool must link a program against all its dependency libraries.
27273 link_all_deplibs=$link_all_deplibs_CXX
27274
27275 # Fix the shell variable \$srcfile for the compiler.
27276 fix_srcfile_path=$lt_fix_srcfile_path_CXX
27277
27278 # Set to "yes" if exported symbols are required.
27279 always_export_symbols=$always_export_symbols_CXX
27280
27281 # The commands to list exported symbols.
27282 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27283
27284 # Symbols that should not be listed in the preloaded symbols.
27285 exclude_expsyms=$lt_exclude_expsyms_CXX
27286
27287 # Symbols that must always be exported.
27288 include_expsyms=$lt_include_expsyms_CXX
27289
27290 # Commands necessary for linking programs (against libraries) with templates.
27291 prelink_cmds=$lt_prelink_cmds_CXX
27292
27293 # Specify filename containing input files.
27294 file_list_spec=$lt_file_list_spec_CXX
27295
27296 # How to hardcode a shared library path into an executable.
27297 hardcode_action=$hardcode_action_CXX
27298
27299 # The directories searched by this compiler when creating a shared library.
27300 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27301
27302 # Dependencies to place before and after the objects being linked to
27303 # create a shared library.
27304 predep_objects=$lt_predep_objects_CXX
27305 postdep_objects=$lt_postdep_objects_CXX
27306 predeps=$lt_predeps_CXX
27307 postdeps=$lt_postdeps_CXX
27308
27309 # The library search path used internally by the compiler when linking
27310 # a shared library.
27311 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27312
27313 # ### END LIBTOOL TAG CONFIG: CXX
27314 _LT_EOF
27315
27316 ;;
27317 "mkcollections.pl":C) chmod 755 lib/mkcollections.pl ;;
27318 "$ac_stdint_h":C)
27319 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
27320 $as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
27321 ac_stdint=$tmp/_stdint.h
27322
27323 echo "#ifndef" $_ac_stdint_h >$ac_stdint
27324 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
27325 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
27326 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
27327 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
27328 if test "_$ac_cv_header_stdint_t" != "_" ; then
27329 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
27330 echo "#include <stdint.h>" >>$ac_stdint
27331 echo "#endif" >>$ac_stdint
27332 echo "#endif" >>$ac_stdint
27333 else
27334
27335 cat >>$ac_stdint <<STDINT_EOF
27336
27337 /* ................... shortcircuit part ........................... */
27338
27339 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
27340 #include <stdint.h>
27341 #else
27342 #include <stddef.h>
27343
27344 /* .................... configured part ............................ */
27345
27346 STDINT_EOF
27347
27348 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
27349 if test "_$ac_cv_header_stdint_x" != "_" ; then
27350 ac_header="$ac_cv_header_stdint_x"
27351 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
27352 else
27353 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
27354 fi
27355
27356 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
27357 if test "_$ac_cv_header_stdint_o" != "_" ; then
27358 ac_header="$ac_cv_header_stdint_o"
27359 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
27360 else
27361 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
27362 fi
27363
27364 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
27365 if test "_$ac_cv_header_stdint_u" != "_" ; then
27366 ac_header="$ac_cv_header_stdint_u"
27367 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
27368 else
27369 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
27370 fi
27371
27372 echo "" >>$ac_stdint
27373
27374 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
27375 echo "#include <$ac_header>" >>$ac_stdint
27376 echo "" >>$ac_stdint
27377 fi fi
27378
27379 echo "/* which 64bit typedef has been found */" >>$ac_stdint
27380 if test "$ac_cv_type_uint64_t" = "yes" ; then
27381 echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint
27382 else
27383 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
27384 fi
27385 if test "$ac_cv_type_u_int64_t" = "yes" ; then
27386 echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint
27387 else
27388 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
27389 fi
27390 echo "" >>$ac_stdint
27391
27392 echo "/* which type model has been detected */" >>$ac_stdint
27393 if test "_$ac_cv_char_data_model" != "_" ; then
27394 echo "#define _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
27395 echo "#define _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
27396 else
27397 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
27398 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
27399 fi
27400 echo "" >>$ac_stdint
27401
27402 echo "/* whether int_least types were detected */" >>$ac_stdint
27403 if test "$ac_cv_type_int_least32_t" = "yes"; then
27404 echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint
27405 else
27406 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
27407 fi
27408 echo "/* whether int_fast types were detected */" >>$ac_stdint
27409 if test "$ac_cv_type_int_fast32_t" = "yes"; then
27410 echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
27411 else
27412 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
27413 fi
27414 echo "/* whether intmax_t type was detected */" >>$ac_stdint
27415 if test "$ac_cv_type_intmax_t" = "yes"; then
27416 echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
27417 else
27418 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
27419 fi
27420 echo "" >>$ac_stdint
27421
27422 cat >>$ac_stdint <<STDINT_EOF
27423 /* .................... detections part ............................ */
27424
27425 /* whether we need to define bitspecific types from compiler base types */
27426 #ifndef _STDINT_HEADER_INTPTR
27427 #ifndef _STDINT_HEADER_UINT32
27428 #ifndef _STDINT_HEADER_U_INT32
27429 #define _STDINT_NEED_INT_MODEL_T
27430 #else
27431 #define _STDINT_HAVE_U_INT_TYPES
27432 #endif
27433 #endif
27434 #endif
27435
27436 #ifdef _STDINT_HAVE_U_INT_TYPES
27437 #undef _STDINT_NEED_INT_MODEL_T
27438 #endif
27439
27440 #ifdef _STDINT_CHAR_MODEL
27441 #if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
27442 #ifndef _STDINT_BYTE_MODEL
27443 #define _STDINT_BYTE_MODEL 12
27444 #endif
27445 #endif
27446 #endif
27447
27448 #ifndef _STDINT_HAVE_INT_LEAST32_T
27449 #define _STDINT_NEED_INT_LEAST_T
27450 #endif
27451
27452 #ifndef _STDINT_HAVE_INT_FAST32_T
27453 #define _STDINT_NEED_INT_FAST_T
27454 #endif
27455
27456 #ifndef _STDINT_HEADER_INTPTR
27457 #define _STDINT_NEED_INTPTR_T
27458 #ifndef _STDINT_HAVE_INTMAX_T
27459 #define _STDINT_NEED_INTMAX_T
27460 #endif
27461 #endif
27462
27463
27464 /* .................... definition part ............................ */
27465
27466 /* some system headers have good uint64_t */
27467 #ifndef _HAVE_UINT64_T
27468 #if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T
27469 #define _HAVE_UINT64_T
27470 #elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
27471 #define _HAVE_UINT64_T
27472 typedef u_int64_t uint64_t;
27473 #endif
27474 #endif
27475
27476 #ifndef _HAVE_UINT64_T
27477 /* .. here are some common heuristics using compiler runtime specifics */
27478 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
27479 #define _HAVE_UINT64_T
27480 #define _HAVE_LONGLONG_UINT64_T
27481 typedef long long int64_t;
27482 typedef unsigned long long uint64_t;
27483
27484 #elif !defined __STRICT_ANSI__
27485 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
27486 #define _HAVE_UINT64_T
27487 typedef __int64 int64_t;
27488 typedef unsigned __int64 uint64_t;
27489
27490 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
27491 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
27492 #if !defined _NO_LONGLONG
27493 #define _HAVE_UINT64_T
27494 #define _HAVE_LONGLONG_UINT64_T
27495 typedef long long int64_t;
27496 typedef unsigned long long uint64_t;
27497 #endif
27498
27499 #elif defined __alpha || (defined __mips && defined _ABIN32)
27500 #if !defined _NO_LONGLONG
27501 typedef long int64_t;
27502 typedef unsigned long uint64_t;
27503 #endif
27504 /* compiler/cpu type to define int64_t */
27505 #endif
27506 #endif
27507 #endif
27508
27509 #if defined _STDINT_HAVE_U_INT_TYPES
27510 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
27511 typedef u_int8_t uint8_t;
27512 typedef u_int16_t uint16_t;
27513 typedef u_int32_t uint32_t;
27514
27515 /* glibc compatibility */
27516 #ifndef __int8_t_defined
27517 #define __int8_t_defined
27518 #endif
27519 #endif
27520
27521 #ifdef _STDINT_NEED_INT_MODEL_T
27522 /* we must guess all the basic types. Apart from byte-adressable system, */
27523 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
27524 /* (btw, those nibble-addressable systems are way off, or so we assume) */
27525
27526
27527 #if defined _STDINT_BYTE_MODEL
27528 #if _STDINT_LONG_MODEL+0 == 242
27529 /* 2:4:2 = IP16 = a normal 16-bit system */
27530 typedef unsigned char uint8_t;
27531 typedef unsigned short uint16_t;
27532 typedef unsigned long uint32_t;
27533 #ifndef __int8_t_defined
27534 #define __int8_t_defined
27535 typedef char int8_t;
27536 typedef short int16_t;
27537 typedef long int32_t;
27538 #endif
27539 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
27540 /* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */
27541 /* 4:4:4 = ILP32 = a normal 32-bit system */
27542 typedef unsigned char uint8_t;
27543 typedef unsigned short uint16_t;
27544 typedef unsigned int uint32_t;
27545 #ifndef __int8_t_defined
27546 #define __int8_t_defined
27547 typedef char int8_t;
27548 typedef short int16_t;
27549 typedef int int32_t;
27550 #endif
27551 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
27552 /* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */
27553 /* 4:8:8 = LP64 = a normal 64-bit system */
27554 typedef unsigned char uint8_t;
27555 typedef unsigned short uint16_t;
27556 typedef unsigned int uint32_t;
27557 #ifndef __int8_t_defined
27558 #define __int8_t_defined
27559 typedef char int8_t;
27560 typedef short int16_t;
27561 typedef int int32_t;
27562 #endif
27563 /* this system has a "long" of 64bit */
27564 #ifndef _HAVE_UINT64_T
27565 #define _HAVE_UINT64_T
27566 typedef unsigned long uint64_t;
27567 typedef long int64_t;
27568 #endif
27569 #elif _STDINT_LONG_MODEL+0 == 448
27570 /* LLP64 a 64-bit system derived from a 32-bit system */
27571 typedef unsigned char uint8_t;
27572 typedef unsigned short uint16_t;
27573 typedef unsigned int uint32_t;
27574 #ifndef __int8_t_defined
27575 #define __int8_t_defined
27576 typedef char int8_t;
27577 typedef short int16_t;
27578 typedef int int32_t;
27579 #endif
27580 /* assuming the system has a "long long" */
27581 #ifndef _HAVE_UINT64_T
27582 #define _HAVE_UINT64_T
27583 #define _HAVE_LONGLONG_UINT64_T
27584 typedef unsigned long long uint64_t;
27585 typedef long long int64_t;
27586 #endif
27587 #else
27588 #define _STDINT_NO_INT32_T
27589 #endif
27590 #else
27591 #define _STDINT_NO_INT8_T
27592 #define _STDINT_NO_INT32_T
27593 #endif
27594 #endif
27595
27596 /*
27597 * quote from SunOS-5.8 sys/inttypes.h:
27598 * Use at your own risk. As of February 1996, the committee is squarely
27599 * behind the fixed sized types; the "least" and "fast" types are still being
27600 * discussed. The probability that the "fast" types may be removed before
27601 * the standard is finalized is high enough that they are not currently
27602 * implemented.
27603 */
27604
27605 #if defined _STDINT_NEED_INT_LEAST_T
27606 typedef int8_t int_least8_t;
27607 typedef int16_t int_least16_t;
27608 typedef int32_t int_least32_t;
27609 #ifdef _HAVE_UINT64_T
27610 typedef int64_t int_least64_t;
27611 #endif
27612
27613 typedef uint8_t uint_least8_t;
27614 typedef uint16_t uint_least16_t;
27615 typedef uint32_t uint_least32_t;
27616 #ifdef _HAVE_UINT64_T
27617 typedef uint64_t uint_least64_t;
27618 #endif
27619 /* least types */
27620 #endif
27621
27622 #if defined _STDINT_NEED_INT_FAST_T
27623 typedef int8_t int_fast8_t;
27624 typedef int int_fast16_t;
27625 typedef int32_t int_fast32_t;
27626 #ifdef _HAVE_UINT64_T
27627 typedef int64_t int_fast64_t;
27628 #endif
27629
27630 typedef uint8_t uint_fast8_t;
27631 typedef unsigned uint_fast16_t;
27632 typedef uint32_t uint_fast32_t;
27633 #ifdef _HAVE_UINT64_T
27634 typedef uint64_t uint_fast64_t;
27635 #endif
27636 /* fast types */
27637 #endif
27638
27639 #ifdef _STDINT_NEED_INTMAX_T
27640 #ifdef _HAVE_UINT64_T
27641 typedef int64_t intmax_t;
27642 typedef uint64_t uintmax_t;
27643 #else
27644 typedef long intmax_t;
27645 typedef unsigned long uintmax_t;
27646 #endif
27647 #endif
27648
27649 #ifdef _STDINT_NEED_INTPTR_T
27650 #ifndef __intptr_t_defined
27651 #define __intptr_t_defined
27652 /* we encourage using "long" to store pointer values, never use "int" ! */
27653 #if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
27654 typedef unsigned int uintptr_t;
27655 typedef int intptr_t;
27656 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
27657 typedef unsigned long uintptr_t;
27658 typedef long intptr_t;
27659 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
27660 typedef uint64_t uintptr_t;
27661 typedef int64_t intptr_t;
27662 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
27663 typedef unsigned long uintptr_t;
27664 typedef long intptr_t;
27665 #endif
27666 #endif
27667 #endif
27668
27669 /* The ISO C99 standard specifies that in C++ implementations these
27670 should only be defined if explicitly requested. */
27671 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
27672 #ifndef UINT32_C
27673
27674 /* Signed. */
27675 # define INT8_C(c) c
27676 # define INT16_C(c) c
27677 # define INT32_C(c) c
27678 # ifdef _HAVE_LONGLONG_UINT64_T
27679 # define INT64_C(c) c ## L
27680 # else
27681 # define INT64_C(c) c ## LL
27682 # endif
27683
27684 /* Unsigned. */
27685 # define UINT8_C(c) c ## U
27686 # define UINT16_C(c) c ## U
27687 # define UINT32_C(c) c ## U
27688 # ifdef _HAVE_LONGLONG_UINT64_T
27689 # define UINT64_C(c) c ## UL
27690 # else
27691 # define UINT64_C(c) c ## ULL
27692 # endif
27693
27694 /* Maximal type. */
27695 # ifdef _HAVE_LONGLONG_UINT64_T
27696 # define INTMAX_C(c) c ## L
27697 # define UINTMAX_C(c) c ## UL
27698 # else
27699 # define INTMAX_C(c) c ## LL
27700 # define UINTMAX_C(c) c ## ULL
27701 # endif
27702
27703 /* literalnumbers */
27704 #endif
27705 #endif
27706
27707 /* These limits are merily those of a two complement byte-oriented system */
27708
27709 /* Minimum of signed integral types. */
27710 #ifndef INT8_MIN
27711 # define INT8_MIN (-128)
27712 #endif
27713 #ifndef INT16_MIN
27714 # define INT16_MIN (-32767-1)
27715 #endif
27716 #ifndef INT32_MIN
27717 # define INT32_MIN (-2147483647-1)
27718 #endif
27719 #ifndef INT64_MIN
27720 # define INT64_MIN (-__INT64_C(9223372036854775807)-1)
27721 #endif
27722
27723 /* Maximum of signed integral types. */
27724 #ifndef INT8_MAX
27725 # define INT8_MAX (127)
27726 #endif
27727 #ifndef INT16_MAX
27728 # define INT16_MAX (32767)
27729 #endif
27730 #ifndef INT32_MAX
27731 # define INT32_MAX (2147483647)
27732 #endif
27733 #ifndef INT64_MAX
27734 # define INT64_MAX (__INT64_C(9223372036854775807))
27735 #endif
27736
27737 /* Maximum of unsigned integral types. */
27738 #ifndef UINT8_MAX
27739 # define UINT8_MAX (255)
27740 #endif
27741 #ifndef UINT16_MAX
27742 # define UINT16_MAX (65535)
27743 #endif
27744 #ifndef UINT32_MAX
27745 # define UINT32_MAX (4294967295U)
27746 #endif
27747 #ifndef UINT64_MAX
27748 # define UINT64_MAX (__UINT64_C(18446744073709551615))
27749 #endif
27750
27751 /* Minimum of signed integral types having a minimum size. */
27752 # define INT_LEAST8_MIN INT8_MIN
27753 # define INT_LEAST16_MIN INT16_MIN
27754 # define INT_LEAST32_MIN INT32_MIN
27755 # define INT_LEAST64_MIN INT64_MIN
27756 /* Maximum of signed integral types having a minimum size. */
27757 # define INT_LEAST8_MAX INT8_MAX
27758 # define INT_LEAST16_MAX INT16_MAX
27759 # define INT_LEAST32_MAX INT32_MAX
27760 # define INT_LEAST64_MAX INT64_MAX
27761
27762 /* Maximum of unsigned integral types having a minimum size. */
27763 # define UINT_LEAST8_MAX UINT8_MAX
27764 # define UINT_LEAST16_MAX UINT16_MAX
27765 # define UINT_LEAST32_MAX UINT32_MAX
27766 # define UINT_LEAST64_MAX UINT64_MAX
27767
27768 /* shortcircuit*/
27769 #endif
27770 /* once */
27771 #endif
27772 #endif
27773 STDINT_EOF
27774 fi
27775 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
27776 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
27777 $as_echo "$as_me: $ac_stdint_h is unchanged" >&6;}
27778 else
27779 ac_dir=`$as_dirname -- "$ac_stdint_h" ||
27780 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27781 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
27782 X"$ac_stdint_h" : 'X\(//\)$' \| \
27783 X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
27784 $as_echo X"$ac_stdint_h" |
27785 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27786 s//\1/
27787 q
27788 }
27789 /^X\(\/\/\)[^/].*/{
27790 s//\1/
27791 q
27792 }
27793 /^X\(\/\/\)$/{
27794 s//\1/
27795 q
27796 }
27797 /^X\(\/\).*/{
27798 s//\1/
27799 q
27800 }
27801 s/.*/./; q'`
27802 as_dir="$ac_dir"; as_fn_mkdir_p
27803 rm -f $ac_stdint_h
27804 mv $ac_stdint $ac_stdint_h
27805 fi
27806 ;;
27807 "gappletviewer":C) chmod 755 tools/gappletviewer ;;
27808 "gjarsigner":C) chmod 755 tools/gjarsigner ;;
27809 "gkeytool":C) chmod 755 tools/gkeytool ;;
27810 "gjar":C) chmod 755 tools/gjar ;;
27811 "gnative2ascii":C) chmod 755 tools/gnative2ascii ;;
27812 "gserialver":C) chmod 755 tools/gserialver ;;
27813 "grmiregistry":C) chmod 755 tools/grmiregistry ;;
27814 "gtnameserv":C) chmod 755 tools/gtnameserv ;;
27815 "gorbd":C) chmod 755 tools/gorbd ;;
27816 "grmid":C) chmod 755 tools/grmid ;;
27817 "grmic":C) chmod 755 tools/grmic ;;
27818 "gjavah":C) chmod 755 tools/gjavah ;;
27819 "gjdoc":C) chmod 755 tools/gjdoc ;;
27820 "gen-classlist":C) chmod 755 lib/gen-classlist.sh ;;
27821 "copy-vmresources":C) chmod 755 lib/copy-vmresources.sh ;;
27822
27823 esac
27824 done # for ac_tag
27825
27826
27827 as_fn_exit 0
27828 _ACEOF
27829 ac_clean_files=$ac_clean_files_save
27830
27831 test $ac_write_fail = 0 ||
27832 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27833
27834
27835 # configure is writing to config.log, and then calls config.status.
27836 # config.status does its own redirection, appending to config.log.
27837 # Unfortunately, on DOS this fails, as config.log is still kept open
27838 # by configure, so config.status won't be able to write to it; its
27839 # output is simply discarded. So we exec the FD to /dev/null,
27840 # effectively closing config.log, so it can be properly (re)opened and
27841 # appended to by config.status. When coming back to configure, we
27842 # need to make the FD available again.
27843 if test "$no_create" != yes; then
27844 ac_cs_success=:
27845 ac_config_status_args=
27846 test "$silent" = yes &&
27847 ac_config_status_args="$ac_config_status_args --quiet"
27848 exec 5>/dev/null
27849 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27850 exec 5>>config.log
27851 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27852 # would make configure fail if this is the last instruction.
27853 $ac_cs_success || as_fn_exit $?
27854 fi
27855 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27857 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27858 fi
27859
27860
27861 # Create standard.omit based on decisions we just made.
27862 cat ${srcdir}/lib/standard.omit.in > lib/standard.omit
27863 if test x$use_escher != xtrue; then
27864 echo gnu/java/awt/peer/x/.*java$ >> lib/standard.omit
27865 fi