]> git.ipfire.org Git - thirdparty/gcc.git/blame - libjava/classpath/configure
re PR target/63610 (Fixing the libtool bug for Yosemite (darwin14))
[thirdparty/gcc.git] / libjava / classpath / configure
CommitLineData
ea54b293
TT
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
a1906e8b 3# Generated by GNU Autoconf 2.64 for GNU Classpath 0.99.1-pre.
ea54b293
TT
4#
5# Report bugs to <classpath@gnu.org>.
6#
5213506e
RW
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#
ea54b293
TT
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
5213506e
RW
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
ea54b293 16
5213506e
RW
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
ea54b293
TT
20 emulate sh
21 NULLCMD=:
5213506e 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ea54b293
TT
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
ea54b293 33fi
ea54b293 34
5213506e
RW
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_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.
45if 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 --'
49elif (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'
52else
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'
72fi
73
74# The user is always right.
75if 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 }
ea54b293
TT
81fi
82
83
5213506e
RW
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.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
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
101IFS=$as_save_IFS
102
103 ;;
104esac
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.
107if test "x$as_myself" = x; then
108 as_myself=$0
109fi
110if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113fi
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.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122done
ea54b293
TT
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
5213506e
RW
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
132
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if 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
144else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150esac
151fi
152"
153 as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167 exitcode=1; echo positional parameters were not saved.
168fi
169test 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
43e02a8a
RW
174test \$(( 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"
5213506e
RW
183 if (eval "$as_required") 2>/dev/null; then :
184 as_have_required=yes
185else
186 as_have_required=no
187fi
188 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189
190else
191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
192as_found=false
193for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
ea54b293 194do
5213506e
RW
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
208fi
209fi
210 done;;
211 esac
212 as_found=false
213done
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
217fi; }
218IFS=$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+"$@"}
230fi
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."
ea54b293 238 else
5213506e
RW
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."
ea54b293 244 fi
5213506e
RW
245 exit 1
246fi
247fi
248fi
249SHELL=${CONFIG_SHELL-/bin/sh}
250export SHELL
251# Unset more variables known to interfere with behavior of common tools.
252CLICOLOR_FORCE= GREP_OPTIONS=
253unset CLICOLOR_FORCE GREP_OPTIONS
254
255## --------------------- ##
256## M4sh Shell Functions. ##
257## --------------------- ##
258# as_fn_unset VAR
259# ---------------
260# Portably unset VAR.
261as_fn_unset ()
262{
263 { eval $1=; unset $1;}
264}
265as_unset=as_fn_unset
266
267# as_fn_set_status STATUS
268# -----------------------
269# Set $? to STATUS, without forking.
270as_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.
278as_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.
288as_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.
338if (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 }'
343else
344 as_fn_append ()
345 {
346 eval $1=\$$1\$2
347 }
348fi # 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.
355if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
356 eval 'as_fn_arith ()
357 {
358 as_val=$(( $* ))
359 }'
360else
361 as_fn_arith ()
362 {
363 as_val=`expr "$@" || test $? -eq 1`
364 }
365fi # 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.
373as_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
ea54b293 383
5213506e
RW
384if expr a : '\(a\)' >/dev/null 2>&1 &&
385 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ea54b293
TT
386 as_expr=expr
387else
388 as_expr=false
389fi
390
5213506e 391if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ea54b293
TT
392 as_basename=basename
393else
394 as_basename=false
395fi
396
5213506e
RW
397if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
398 as_dirname=dirname
399else
400 as_dirname=false
401fi
ea54b293 402
5213506e 403as_me=`$as_basename -- "$0" ||
ea54b293
TT
404$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
405 X"$0" : 'X\(//\)$' \| \
5213506e
RW
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'`
4f9533c7 421
8c0633b7
TF
422# Avoid depending upon Character Ranges.
423as_cr_letters='abcdefghijklmnopqrstuvwxyz'
424as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
425as_cr_Letters=$as_cr_letters$as_cr_LETTERS
426as_cr_digits='0123456789'
427as_cr_alnum=$as_cr_Letters$as_cr_digits
4f9533c7 428
ea54b293 429
5213506e
RW
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 |
ea54b293 439 sed '
5213506e
RW
440 s/[$]LINENO.*/&-/
441 t lineno
442 b
443 :lineno
ea54b293 444 N
5213506e
RW
445 :loop
446 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ea54b293 447 t loop
5213506e 448 s/-\n.*//
ea54b293 449 ' >$as_me.lineno &&
5213506e
RW
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; }
ea54b293
TT
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
5213506e
RW
455 # original and so on. Autoconf is especially sensitive to this).
456 . "./$as_me.lineno"
ea54b293
TT
457 # Exit status is that of the last command.
458 exit
459}
460
5213506e
RW
461ECHO_C= ECHO_N= ECHO_T=
462case `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';;
ea54b293
TT
472esac
473
5213506e
RW
474rm -f conf$$ conf$$.exe conf$$.file
475if test -d conf$$.dir; then
476 rm -f conf$$.dir/conf$$.file
ea54b293 477else
5213506e
RW
478 rm -f conf$$.dir
479 mkdir conf$$.dir 2>/dev/null
ea54b293 480fi
5213506e
RW
481if (echo >conf$$.file) 2>/dev/null; then
482 if ln -s conf$$.file conf$$ 2>/dev/null; then
8c0633b7 483 as_ln_s='ln -s'
5213506e
RW
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'
8c0633b7 494 fi
ea54b293
TT
495else
496 as_ln_s='cp -p'
497fi
5213506e
RW
498rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
499rmdir conf$$.dir 2>/dev/null
ea54b293
TT
500
501if mkdir -p . 2>/dev/null; then
5213506e 502 as_mkdir_p='mkdir -p "$as_dir"'
ea54b293
TT
503else
504 test -d ./-p && rmdir ./-p
505 as_mkdir_p=false
506fi
507
5213506e
RW
508if test -x / >/dev/null 2>&1; then
509 as_test_x='test -x'
510else
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 '
528fi
529as_executable_p=$as_test_x
ea54b293
TT
530
531# Sed expression to map a string onto a valid CPP name.
532as_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.
535as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
86e44bd7
L
537SHELL=${CONFIG_SHELL-/bin/sh}
538
86e44bd7 539
5213506e
RW
540exec 7<&0 </dev/null 6>&1
541
ea54b293
TT
542# Name of the host.
543# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544# so uname gets run too.
545ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546
ea54b293
TT
547#
548# Initializations.
549#
550ac_default_prefix=/usr/local
5213506e 551ac_clean_files=
ea54b293 552ac_config_libobj_dir=.
5213506e 553LIBOBJS=
ea54b293
TT
554cross_compiling=no
555subdirs=
556MFLAGS=
557MAKEFLAGS=
8c0633b7 558
ea54b293
TT
559# Identity of this package.
560PACKAGE_NAME='GNU Classpath'
561PACKAGE_TARNAME='classpath'
a1906e8b
MK
562PACKAGE_VERSION='0.99.1-pre'
563PACKAGE_STRING='GNU Classpath 0.99.1-pre'
ea54b293 564PACKAGE_BUGREPORT='classpath@gnu.org'
5213506e 565PACKAGE_URL='http://www.gnu.org/software/classpath/'
ea54b293
TT
566
567ac_unique_file="java/lang/System.java"
568ac_default_prefix=/usr/local/classpath
569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
5213506e 572#ifdef HAVE_SYS_TYPES_H
ea54b293
TT
573# include <sys/types.h>
574#endif
5213506e 575#ifdef HAVE_SYS_STAT_H
ea54b293
TT
576# include <sys/stat.h>
577#endif
5213506e 578#ifdef STDC_HEADERS
ea54b293
TT
579# include <stdlib.h>
580# include <stddef.h>
581#else
5213506e 582# ifdef HAVE_STDLIB_H
ea54b293
TT
583# include <stdlib.h>
584# endif
585#endif
5213506e
RW
586#ifdef HAVE_STRING_H
587# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
ea54b293
TT
588# include <memory.h>
589# endif
590# include <string.h>
591#endif
5213506e 592#ifdef HAVE_STRINGS_H
ea54b293
TT
593# include <strings.h>
594#endif
5213506e 595#ifdef HAVE_INTTYPES_H
ea54b293 596# include <inttypes.h>
ea54b293 597#endif
5213506e
RW
598#ifdef HAVE_STDINT_H
599# include <stdint.h>
600#endif
601#ifdef HAVE_UNISTD_H
ea54b293
TT
602# include <unistd.h>
603#endif"
604
5213506e
RW
605ac_subst_vars='am__EXEEXT_FALSE
606am__EXEEXT_TRUE
607LTLIBOBJS
608LIBOBJS
609CREATE_GMPBI_LIBRARY_FALSE
610CREATE_GMPBI_LIBRARY_TRUE
611WANT_NATIVE_BIG_INTEGER
612DEFAULT_PREFS_PEER
613ENABLE_LOCAL_SOCKETS_FALSE
614ENABLE_LOCAL_SOCKETS_TRUE
615PATH_TO_ESCHER
616USE_ESCHER_FALSE
617USE_ESCHER_TRUE
618JAVAC_MEM_OPT
619ac_ct_ANTLR
620ANTLR
621ANTLR_JAR
622GCJ_JAVAC_FALSE
623GCJ_JAVAC_TRUE
624JAVAC_IS_GCJ
625JAVAC
626uudecode
627JAVA
628PATH_TO_GLIBJ_ZIP
629USE_PREBUILT_GLIBJ_ZIP_FALSE
630USE_PREBUILT_GLIBJ_ZIP_TRUE
631REGEN_PARSERS_FALSE
632REGEN_PARSERS_TRUE
633JAY_SKELETON
634JAY
635CREATE_API_DOCS_FALSE
636CREATE_API_DOCS_TRUE
637GJDOC
638TOOLSDIR
639EXAMPLESDIR
640BUILD_CLASS_FILES_FALSE
641BUILD_CLASS_FILES_TRUE
642INSTALL_CLASS_FILES_FALSE
643INSTALL_CLASS_FILES_TRUE
644INSTALL_GLIBJ_ZIP_FALSE
645INSTALL_GLIBJ_ZIP_TRUE
646WITH_JAR_FALSE
647WITH_JAR_TRUE
648JAR
649ZIP
650FIND
651DATE
652CP
653MKDIR
654REMOVE
655JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION
656ECJ_JAR
657INIT_LOAD_LIBRARY
658LIBDEBUG
659MAINT
660MAINTAINER_MODE_FALSE
661MAINTAINER_MODE_TRUE
662vm_classes
663CLASSPATH_INCLUDES
664USER_JAVAH
665GMP_LIBS
666GMP_CFLAGS
667PLUGIN_DIR
668GLIB_LIBS
669GLIB_CFLAGS
670MOZILLA_LIBS
671MOZILLA_CFLAGS
a1906e8b 672MOC4
5213506e
RW
673MOC
674QT_LIBS
675QT_CFLAGS
676GSTREAMER_MIXER_PROVIDER
677GSTREAMER_FILE_READER
678GST_PLUGIN_LDFLAGS
679GSTREAMER_PLUGINS_BASE_LIBS
680GSTREAMER_PLUGINS_BASE_CFLAGS
681GSTREAMER_BASE_LIBS
682GSTREAMER_BASE_CFLAGS
683GSTREAMER_LIBS
684GSTREAMER_CFLAGS
685GDK_LIBS
686GDK_CFLAGS
687GCONF_LIBS
688GCONF_CFLAGS
689XTEST_LIBS
690CAIRO_LIBS
691CAIRO_CFLAGS
692PANGOFT2_LIBS
693PANGOFT2_CFLAGS
694FREETYPE2_LIBS
695FREETYPE2_CFLAGS
696GTK_LIBS
697GTK_CFLAGS
698X_EXTRA_LIBS
699X_LIBS
700X_PRE_LIBS
701X_CFLAGS
702XMKMF
703XSLT_LIBS
704XSLT_CFLAGS
705XML_LIBS
706XML_CFLAGS
707PKG_CONFIG
708ERROR_CFLAGS
709STRICT_WARNING_CFLAGS
710EXTRA_CFLAGS
711WARNING_CFLAGS
712LTLIBICONV
713LIBICONV
714LIBMAGIC
715COLLECTIONS_PREFIX
716PERL
717CXXCPP
718am__fastdepCXX_FALSE
719am__fastdepCXX_TRUE
720CXXDEPMODE
721ac_ct_CXX
722CXXFLAGS
723CXX
724OTOOL64
725OTOOL
726LIPO
727NMEDIT
728DSYMUTIL
5213506e
RW
729RANLIB
730AR
731OBJDUMP
732NM
733ac_ct_DUMPBIN
734DUMPBIN
735LD
736FGREP
737SED
738LIBTOOL
739LN_S
740CREATE_WRAPPERS_FALSE
741CREATE_WRAPPERS_TRUE
742CREATE_GJDOC_PARSER_FALSE
743CREATE_GJDOC_PARSER_TRUE
744CREATE_JNI_HEADERS_FALSE
745CREATE_JNI_HEADERS_TRUE
746glibjdir
747nativeexeclibdir
748toolexeclibdir
4623df01
MM
749toolexecmainlibdir
750toolexecdir
751target_noncanonical
5213506e
RW
752CREATE_GJDOC_FALSE
753CREATE_GJDOC_TRUE
754CREATE_PLUGIN_FALSE
755CREATE_PLUGIN_TRUE
756CREATE_QT_PEER_LIBRARIES_FALSE
757CREATE_QT_PEER_LIBRARIES_TRUE
758CREATE_GTK_PEER_LIBRARIES_FALSE
759CREATE_GTK_PEER_LIBRARIES_TRUE
760CREATE_DSSI_LIBRARIES_FALSE
761CREATE_DSSI_LIBRARIES_TRUE
762CREATE_ALSA_LIBRARIES_FALSE
763CREATE_ALSA_LIBRARIES_TRUE
764EGREP
765GREP
766CPP
767am__fastdepCC_FALSE
768am__fastdepCC_TRUE
769CCDEPMODE
770AMDEPBACKSLASH
771AMDEP_FALSE
772AMDEP_TRUE
773am__quote
774am__include
775DEPDIR
776OBJEXT
777EXEEXT
778ac_ct_CC
779CPPFLAGS
780LDFLAGS
781CFLAGS
782CC
783CREATE_XMLJ_LIBRARY_FALSE
784CREATE_XMLJ_LIBRARY_TRUE
785default_toolkit
786CREATE_GSTREAMER_PEER_LIBRARIES_FALSE
787CREATE_GSTREAMER_PEER_LIBRARIES_TRUE
788CREATE_GCONF_PEER_LIBRARIES_FALSE
789CREATE_GCONF_PEER_LIBRARIES_TRUE
790CREATE_CORE_JNI_LIBRARIES_FALSE
791CREATE_CORE_JNI_LIBRARIES_TRUE
792CREATE_JNI_LIBRARIES_FALSE
793CREATE_JNI_LIBRARIES_TRUE
794CREATE_COLLECTIONS_FALSE
795CREATE_COLLECTIONS_TRUE
796am__untar
797am__tar
798AMTAR
799am__leading_dot
800SET_MAKE
801AWK
802mkdir_p
803MKDIR_P
804INSTALL_STRIP_PROGRAM
805STRIP
806install_sh
807MAKEINFO
808AUTOHEADER
809AUTOMAKE
810AUTOCONF
811ACLOCAL
812VERSION
813PACKAGE
814CYGPATH_W
815am__isrc
816INSTALL_DATA
817INSTALL_SCRIPT
818INSTALL_PROGRAM
819CLASSPATH_CONVENIENCE
820CLASSPATH_MODULE
821LIBVERSION
822INSTALL_BINARIES_FALSE
823INSTALL_BINARIES_TRUE
824multi_basedir
825GENINSRC_FALSE
826GENINSRC_TRUE
827JAVA_MAINTAINER_MODE_FALSE
828JAVA_MAINTAINER_MODE_TRUE
829target_os
830target_vendor
831target_cpu
832target
833host_os
834host_vendor
835host_cpu
836host
837build_os
838build_vendor
839build_cpu
840build
841target_alias
842host_alias
843build_alias
844LIBS
845ECHO_T
846ECHO_N
847ECHO_C
848DEFS
849mandir
850localedir
851libdir
852psdir
853pdfdir
854dvidir
855htmldir
856infodir
857docdir
858oldincludedir
859includedir
860localstatedir
861sharedstatedir
862sysconfdir
863datadir
864datarootdir
865libexecdir
866sbindir
867bindir
868program_transform_name
869prefix
870exec_prefix
871PACKAGE_URL
872PACKAGE_BUGREPORT
873PACKAGE_STRING
874PACKAGE_VERSION
875PACKAGE_TARNAME
876PACKAGE_NAME
877PATH_SEPARATOR
878SHELL'
ea54b293 879ac_subst_files=''
5213506e
RW
880ac_user_opts='
881enable_option_checking
882enable_java_maintainer_mode
883enable_generated_files_in_srcdir
884enable_multilib
885enable_collections
886enable_jni
887enable_core_jni
888enable_default_preferences_peer
889enable_gconf_peer
890enable_gconf_peers
891enable_gstreamer_peer
892enable_gstreamer_peers
893enable_Werror
894enable_default_toolkit
895enable_xmlj
896enable_alsa
897enable_dependency_tracking
898enable_dssi
899enable_gtk_peer
900enable_gtk_peers
901enable_qt_peer
902enable_plugin
903enable_gmp
904enable_gjdoc
4623df01 905enable_version_specific_runtime_libs
5213506e
RW
906with_native_libdir
907with_glibj_dir
908with_antlr_jar
909enable_regen_headers
910enable_regen_gjdoc_parser
911enable_tool_wrappers
912enable_static
913enable_shared
914with_pic
915enable_fast_install
916with_gnu_ld
917enable_libtool_lock
918enable_rpath
919with_libiconv_prefix
920with_x
921with_qt4dir
8df9a5db
MS
922with_gmp
923with_gmp_include
924with_gmp_lib
5213506e
RW
925with_javah
926with_vm_classes
927enable_maintainer_mode
928enable_debug
929enable_load_library
930with_ecj_jar
931enable_java_lang_system_explicit_initialization
932with_jar
933with_glibj
934enable_examples
935enable_tools
936with_gjdoc
937with_jay
938enable_portable_native_sync
939with_glibj_zip
940with_escher
941enable_local_sockets
942'
943 ac_precious_vars='build_alias
944host_alias
945target_alias
946CC
947CFLAGS
948LDFLAGS
949LIBS
950CPPFLAGS
951CPP
952CXX
953CXXFLAGS
954CCC
955CXXCPP
956XMKMF'
957
ea54b293
TT
958
959# Initialize some variables set by options.
960ac_init_help=
961ac_init_version=false
5213506e
RW
962ac_unrecognized_opts=
963ac_unrecognized_sep=
ea54b293
TT
964# The variables have the same names as the options, with
965# dashes changed to underlines.
966cache_file=/dev/null
967exec_prefix=NONE
968no_create=
969no_recursion=
970prefix=NONE
971program_prefix=NONE
972program_suffix=NONE
973program_transform_name=s,x,x,
974silent=
975site=
976srcdir=
977verbose=
978x_includes=NONE
979x_libraries=NONE
980
981# Installation directory options.
982# These are left unexpanded so users can "make install exec_prefix=/foo"
983# and all the variables that are supposed to be based on exec_prefix
984# by default will actually change.
985# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 986# (The list follows the same order as the GNU Coding Standards.)
ea54b293
TT
987bindir='${exec_prefix}/bin'
988sbindir='${exec_prefix}/sbin'
989libexecdir='${exec_prefix}/libexec'
5213506e
RW
990datarootdir='${prefix}/share'
991datadir='${datarootdir}'
ea54b293
TT
992sysconfdir='${prefix}/etc'
993sharedstatedir='${prefix}/com'
994localstatedir='${prefix}/var'
ea54b293
TT
995includedir='${prefix}/include'
996oldincludedir='/usr/include'
5213506e
RW
997docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
998infodir='${datarootdir}/info'
999htmldir='${docdir}'
1000dvidir='${docdir}'
1001pdfdir='${docdir}'
1002psdir='${docdir}'
1003libdir='${exec_prefix}/lib'
1004localedir='${datarootdir}/locale'
1005mandir='${datarootdir}/man'
ea54b293
TT
1006
1007ac_prev=
5213506e 1008ac_dashdash=
ea54b293
TT
1009for ac_option
1010do
1011 # If the previous option needs an argument, assign it.
1012 if test -n "$ac_prev"; then
5213506e 1013 eval $ac_prev=\$ac_option
ea54b293
TT
1014 ac_prev=
1015 continue
1016 fi
1017
5213506e
RW
1018 case $ac_option in
1019 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1020 *) ac_optarg=yes ;;
1021 esac
ea54b293
TT
1022
1023 # Accept the important Cygnus configure options, so we can diagnose typos.
1024
5213506e
RW
1025 case $ac_dashdash$ac_option in
1026 --)
1027 ac_dashdash=yes ;;
ea54b293
TT
1028
1029 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1030 ac_prev=bindir ;;
1031 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1032 bindir=$ac_optarg ;;
1033
1034 -build | --build | --buil | --bui | --bu)
1035 ac_prev=build_alias ;;
1036 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1037 build_alias=$ac_optarg ;;
1038
1039 -cache-file | --cache-file | --cache-fil | --cache-fi \
1040 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1041 ac_prev=cache_file ;;
1042 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1043 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1044 cache_file=$ac_optarg ;;
1045
1046 --config-cache | -C)
1047 cache_file=config.cache ;;
1048
5213506e 1049 -datadir | --datadir | --datadi | --datad)
ea54b293 1050 ac_prev=datadir ;;
5213506e 1051 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ea54b293
TT
1052 datadir=$ac_optarg ;;
1053
5213506e
RW
1054 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1055 | --dataroo | --dataro | --datar)
1056 ac_prev=datarootdir ;;
1057 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1058 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1059 datarootdir=$ac_optarg ;;
1060
ea54b293 1061 -disable-* | --disable-*)
5213506e 1062 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
ea54b293 1063 # Reject names that are not valid shell variable names.
5213506e
RW
1064 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1065 as_fn_error "invalid feature name: $ac_useropt"
1066 ac_useropt_orig=$ac_useropt
1067 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1068 case $ac_user_opts in
1069 *"
1070"enable_$ac_useropt"
1071"*) ;;
1072 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1073 ac_unrecognized_sep=', ';;
1074 esac
1075 eval enable_$ac_useropt=no ;;
1076
1077 -docdir | --docdir | --docdi | --doc | --do)
1078 ac_prev=docdir ;;
1079 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1080 docdir=$ac_optarg ;;
1081
1082 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1083 ac_prev=dvidir ;;
1084 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1085 dvidir=$ac_optarg ;;
ea54b293
TT
1086
1087 -enable-* | --enable-*)
5213506e 1088 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
ea54b293 1089 # Reject names that are not valid shell variable names.
5213506e
RW
1090 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1091 as_fn_error "invalid feature name: $ac_useropt"
1092 ac_useropt_orig=$ac_useropt
1093 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1094 case $ac_user_opts in
1095 *"
1096"enable_$ac_useropt"
1097"*) ;;
1098 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1099 ac_unrecognized_sep=', ';;
8c0633b7 1100 esac
5213506e 1101 eval enable_$ac_useropt=\$ac_optarg ;;
ea54b293
TT
1102
1103 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1104 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1105 | --exec | --exe | --ex)
1106 ac_prev=exec_prefix ;;
1107 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1108 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1109 | --exec=* | --exe=* | --ex=*)
1110 exec_prefix=$ac_optarg ;;
1111
1112 -gas | --gas | --ga | --g)
1113 # Obsolete; use --with-gas.
1114 with_gas=yes ;;
1115
1116 -help | --help | --hel | --he | -h)
1117 ac_init_help=long ;;
1118 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1119 ac_init_help=recursive ;;
1120 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1121 ac_init_help=short ;;
1122
1123 -host | --host | --hos | --ho)
1124 ac_prev=host_alias ;;
1125 -host=* | --host=* | --hos=* | --ho=*)
1126 host_alias=$ac_optarg ;;
1127
5213506e
RW
1128 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1129 ac_prev=htmldir ;;
1130 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1131 | --ht=*)
1132 htmldir=$ac_optarg ;;
1133
ea54b293
TT
1134 -includedir | --includedir | --includedi | --included | --include \
1135 | --includ | --inclu | --incl | --inc)
1136 ac_prev=includedir ;;
1137 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1138 | --includ=* | --inclu=* | --incl=* | --inc=*)
1139 includedir=$ac_optarg ;;
1140
1141 -infodir | --infodir | --infodi | --infod | --info | --inf)
1142 ac_prev=infodir ;;
1143 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1144 infodir=$ac_optarg ;;
1145
1146 -libdir | --libdir | --libdi | --libd)
1147 ac_prev=libdir ;;
1148 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1149 libdir=$ac_optarg ;;
1150
1151 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1152 | --libexe | --libex | --libe)
1153 ac_prev=libexecdir ;;
1154 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1155 | --libexe=* | --libex=* | --libe=*)
1156 libexecdir=$ac_optarg ;;
1157
5213506e
RW
1158 -localedir | --localedir | --localedi | --localed | --locale)
1159 ac_prev=localedir ;;
1160 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1161 localedir=$ac_optarg ;;
1162
ea54b293 1163 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1164 | --localstate | --localstat | --localsta | --localst | --locals)
ea54b293
TT
1165 ac_prev=localstatedir ;;
1166 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1167 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ea54b293
TT
1168 localstatedir=$ac_optarg ;;
1169
1170 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1171 ac_prev=mandir ;;
1172 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1173 mandir=$ac_optarg ;;
1174
1175 -nfp | --nfp | --nf)
1176 # Obsolete; use --without-fp.
1177 with_fp=no ;;
1178
1179 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1180 | --no-cr | --no-c | -n)
1181 no_create=yes ;;
1182
1183 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1184 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1185 no_recursion=yes ;;
1186
1187 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1188 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1189 | --oldin | --oldi | --old | --ol | --o)
1190 ac_prev=oldincludedir ;;
1191 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1192 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1193 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1194 oldincludedir=$ac_optarg ;;
1195
1196 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1197 ac_prev=prefix ;;
1198 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1199 prefix=$ac_optarg ;;
1200
1201 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1202 | --program-pre | --program-pr | --program-p)
1203 ac_prev=program_prefix ;;
1204 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1205 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1206 program_prefix=$ac_optarg ;;
1207
1208 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1209 | --program-suf | --program-su | --program-s)
1210 ac_prev=program_suffix ;;
1211 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1212 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1213 program_suffix=$ac_optarg ;;
1214
1215 -program-transform-name | --program-transform-name \
1216 | --program-transform-nam | --program-transform-na \
1217 | --program-transform-n | --program-transform- \
1218 | --program-transform | --program-transfor \
1219 | --program-transfo | --program-transf \
1220 | --program-trans | --program-tran \
1221 | --progr-tra | --program-tr | --program-t)
1222 ac_prev=program_transform_name ;;
1223 -program-transform-name=* | --program-transform-name=* \
1224 | --program-transform-nam=* | --program-transform-na=* \
1225 | --program-transform-n=* | --program-transform-=* \
1226 | --program-transform=* | --program-transfor=* \
1227 | --program-transfo=* | --program-transf=* \
1228 | --program-trans=* | --program-tran=* \
1229 | --progr-tra=* | --program-tr=* | --program-t=*)
1230 program_transform_name=$ac_optarg ;;
1231
5213506e
RW
1232 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1233 ac_prev=pdfdir ;;
1234 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1235 pdfdir=$ac_optarg ;;
1236
1237 -psdir | --psdir | --psdi | --psd | --ps)
1238 ac_prev=psdir ;;
1239 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1240 psdir=$ac_optarg ;;
1241
ea54b293
TT
1242 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1243 | -silent | --silent | --silen | --sile | --sil)
1244 silent=yes ;;
1245
1246 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1247 ac_prev=sbindir ;;
1248 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1249 | --sbi=* | --sb=*)
1250 sbindir=$ac_optarg ;;
1251
1252 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1253 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1254 | --sharedst | --shareds | --shared | --share | --shar \
1255 | --sha | --sh)
1256 ac_prev=sharedstatedir ;;
1257 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1258 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1259 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1260 | --sha=* | --sh=*)
1261 sharedstatedir=$ac_optarg ;;
1262
1263 -site | --site | --sit)
1264 ac_prev=site ;;
1265 -site=* | --site=* | --sit=*)
1266 site=$ac_optarg ;;
1267
1268 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1269 ac_prev=srcdir ;;
1270 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1271 srcdir=$ac_optarg ;;
1272
1273 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1274 | --syscon | --sysco | --sysc | --sys | --sy)
1275 ac_prev=sysconfdir ;;
1276 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1277 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1278 sysconfdir=$ac_optarg ;;
1279
1280 -target | --target | --targe | --targ | --tar | --ta | --t)
1281 ac_prev=target_alias ;;
1282 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1283 target_alias=$ac_optarg ;;
1284
1285 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1286 verbose=yes ;;
1287
1288 -version | --version | --versio | --versi | --vers | -V)
1289 ac_init_version=: ;;
1290
1291 -with-* | --with-*)
5213506e 1292 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
ea54b293 1293 # Reject names that are not valid shell variable names.
5213506e
RW
1294 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1295 as_fn_error "invalid package name: $ac_useropt"
1296 ac_useropt_orig=$ac_useropt
1297 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298 case $ac_user_opts in
1299 *"
1300"with_$ac_useropt"
1301"*) ;;
1302 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1303 ac_unrecognized_sep=', ';;
8c0633b7 1304 esac
5213506e 1305 eval with_$ac_useropt=\$ac_optarg ;;
ea54b293
TT
1306
1307 -without-* | --without-*)
5213506e 1308 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
ea54b293 1309 # Reject names that are not valid shell variable names.
5213506e
RW
1310 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1311 as_fn_error "invalid package name: $ac_useropt"
1312 ac_useropt_orig=$ac_useropt
1313 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1314 case $ac_user_opts in
1315 *"
1316"with_$ac_useropt"
1317"*) ;;
1318 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1319 ac_unrecognized_sep=', ';;
1320 esac
1321 eval with_$ac_useropt=no ;;
ea54b293
TT
1322
1323 --x)
1324 # Obsolete; use --with-x.
1325 with_x=yes ;;
1326
1327 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1328 | --x-incl | --x-inc | --x-in | --x-i)
1329 ac_prev=x_includes ;;
1330 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1331 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1332 x_includes=$ac_optarg ;;
1333
1334 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1335 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1336 ac_prev=x_libraries ;;
1337 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1338 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1339 x_libraries=$ac_optarg ;;
1340
5213506e
RW
1341 -*) as_fn_error "unrecognized option: \`$ac_option'
1342Try \`$0 --help' for more information."
ea54b293
TT
1343 ;;
1344
1345 *=*)
1346 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1347 # Reject names that are not valid shell variable names.
5213506e
RW
1348 case $ac_envvar in #(
1349 '' | [0-9]* | *[!_$as_cr_alnum]* )
1350 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1351 esac
1352 eval $ac_envvar=\$ac_optarg
ea54b293
TT
1353 export $ac_envvar ;;
1354
1355 *)
1356 # FIXME: should be removed in autoconf 3.0.
5213506e 1357 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ea54b293 1358 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1359 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ea54b293
TT
1360 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1361 ;;
1362
1363 esac
1364done
1365
1366if test -n "$ac_prev"; then
1367 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1368 as_fn_error "missing argument to $ac_option"
ea54b293
TT
1369fi
1370
5213506e
RW
1371if test -n "$ac_unrecognized_opts"; then
1372 case $enable_option_checking in
1373 no) ;;
1374 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1375 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
8c0633b7 1376 esac
5213506e 1377fi
8c0633b7 1378
5213506e
RW
1379# Check all directory arguments for consistency.
1380for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1381 datadir sysconfdir sharedstatedir localstatedir includedir \
1382 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1383 libdir localedir mandir
8c0633b7 1384do
5213506e
RW
1385 eval ac_val=\$$ac_var
1386 # Remove trailing slashes.
1387 case $ac_val in
1388 */ )
1389 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1390 eval $ac_var=\$ac_val;;
1391 esac
1392 # Be sure to have absolute directory names.
8c0633b7 1393 case $ac_val in
5213506e
RW
1394 [\\/$]* | ?:[\\/]* ) continue;;
1395 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
ea54b293 1396 esac
5213506e 1397 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
ea54b293
TT
1398done
1399
1400# There might be people who depend on the old broken behavior: `$host'
1401# used to hold the argument of --host etc.
1402# FIXME: To remove some day.
1403build=$build_alias
1404host=$host_alias
1405target=$target_alias
1406
1407# FIXME: To remove some day.
1408if test "x$host_alias" != x; then
1409 if test "x$build_alias" = x; then
1410 cross_compiling=maybe
5213506e 1411 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
ea54b293
TT
1412 If a cross compiler is detected then cross compile mode will be used." >&2
1413 elif test "x$build_alias" != "x$host_alias"; then
1414 cross_compiling=yes
1415 fi
1416fi
1417
1418ac_tool_prefix=
1419test -n "$host_alias" && ac_tool_prefix=$host_alias-
1420
1421test "$silent" = yes && exec 6>/dev/null
1422
1423
5213506e
RW
1424ac_pwd=`pwd` && test -n "$ac_pwd" &&
1425ac_ls_di=`ls -di .` &&
1426ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1427 as_fn_error "working directory cannot be determined"
1428test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1429 as_fn_error "pwd does not report name of working directory"
1430
1431
ea54b293
TT
1432# Find the source files, if location was not specified.
1433if test -z "$srcdir"; then
1434 ac_srcdir_defaulted=yes
5213506e
RW
1435 # Try the directory containing this script, then the parent directory.
1436 ac_confdir=`$as_dirname -- "$as_myself" ||
1437$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1438 X"$as_myself" : 'X\(//\)[^/]' \| \
1439 X"$as_myself" : 'X\(//\)$' \| \
1440 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1441$as_echo X"$as_myself" |
1442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1443 s//\1/
1444 q
1445 }
1446 /^X\(\/\/\)[^/].*/{
1447 s//\1/
1448 q
1449 }
1450 /^X\(\/\/\)$/{
1451 s//\1/
1452 q
1453 }
1454 /^X\(\/\).*/{
1455 s//\1/
1456 q
1457 }
1458 s/.*/./; q'`
ea54b293 1459 srcdir=$ac_confdir
5213506e 1460 if test ! -r "$srcdir/$ac_unique_file"; then
ea54b293
TT
1461 srcdir=..
1462 fi
1463else
1464 ac_srcdir_defaulted=no
1465fi
5213506e
RW
1466if test ! -r "$srcdir/$ac_unique_file"; then
1467 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1468 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1469fi
1470ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1471ac_abs_confdir=`(
1472 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1473 pwd)`
1474# When building in place, set srcdir=.
1475if test "$ac_abs_confdir" = "$ac_pwd"; then
1476 srcdir=.
1477fi
1478# Remove unnecessary trailing slashes from srcdir.
1479# Double slashes in file names in object file debugging info
1480# mess up M-x gdb in Emacs.
1481case $srcdir in
1482*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1483esac
1484for ac_var in $ac_precious_vars; do
1485 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1486 eval ac_env_${ac_var}_value=\$${ac_var}
1487 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1488 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1489done
ea54b293
TT
1490
1491#
1492# Report the --help message.
1493#
1494if test "$ac_init_help" = "long"; then
1495 # Omit some internal or obsolete options to make the list less imposing.
1496 # This message is too long to be a string in the A/UX 3.1 sh.
1497 cat <<_ACEOF
a1906e8b 1498\`configure' configures GNU Classpath 0.99.1-pre to adapt to many kinds of systems.
ea54b293
TT
1499
1500Usage: $0 [OPTION]... [VAR=VALUE]...
1501
1502To assign environment variables (e.g., CC, CFLAGS...), specify them as
1503VAR=VALUE. See below for descriptions of some of the useful variables.
1504
1505Defaults for the options are specified in brackets.
1506
1507Configuration:
1508 -h, --help display this help and exit
1509 --help=short display options specific to this package
1510 --help=recursive display the short help of all the included packages
1511 -V, --version display version information and exit
1512 -q, --quiet, --silent do not print \`checking...' messages
1513 --cache-file=FILE cache test results in FILE [disabled]
1514 -C, --config-cache alias for \`--cache-file=config.cache'
1515 -n, --no-create do not create output files
1516 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1517
ea54b293
TT
1518Installation directories:
1519 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1520 [$ac_default_prefix]
ea54b293 1521 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1522 [PREFIX]
ea54b293
TT
1523
1524By default, \`make install' will install all the files in
1525\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1526an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1527for instance \`--prefix=\$HOME'.
1528
1529For better control, use the options below.
1530
1531Fine tuning of the installation directories:
5213506e
RW
1532 --bindir=DIR user executables [EPREFIX/bin]
1533 --sbindir=DIR system admin executables [EPREFIX/sbin]
1534 --libexecdir=DIR program executables [EPREFIX/libexec]
1535 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1536 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1537 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1538 --libdir=DIR object code libraries [EPREFIX/lib]
1539 --includedir=DIR C header files [PREFIX/include]
1540 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1541 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1542 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1543 --infodir=DIR info documentation [DATAROOTDIR/info]
1544 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1545 --mandir=DIR man documentation [DATAROOTDIR/man]
1546 --docdir=DIR documentation root [DATAROOTDIR/doc/classpath]
1547 --htmldir=DIR html documentation [DOCDIR]
1548 --dvidir=DIR dvi documentation [DOCDIR]
1549 --pdfdir=DIR pdf documentation [DOCDIR]
1550 --psdir=DIR ps documentation [DOCDIR]
ea54b293
TT
1551_ACEOF
1552
1553 cat <<\_ACEOF
1554
1555Program names:
1556 --program-prefix=PREFIX prepend PREFIX to installed program names
1557 --program-suffix=SUFFIX append SUFFIX to installed program names
1558 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1559
1560X features:
1561 --x-includes=DIR X include files are in DIR
1562 --x-libraries=DIR X library files are in DIR
1563
1564System types:
1565 --build=BUILD configure for building on BUILD [guessed]
1566 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1567 --target=TARGET configure for building compilers for TARGET [HOST]
1568_ACEOF
1569fi
1570
1571if test -n "$ac_init_help"; then
1572 case $ac_init_help in
a1906e8b 1573 short | recursive ) echo "Configuration of GNU Classpath 0.99.1-pre:";;
ea54b293
TT
1574 esac
1575 cat <<\_ACEOF
1576
1577Optional Features:
5213506e 1578 --disable-option-checking ignore unrecognized --enable/--with options
ea54b293
TT
1579 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1580 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
97b8365c
TT
1581 --enable-java-maintainer-mode
1582 allow rebuilding of .class and .h files
fd975604
MK
1583 --enable-generated-files-in-srcdir
1584 put copies of generated files in source dir
1585 intended for creating source tarballs for users
1586 without texinfo, perl, bison or flex.
8a489465 1587 --enable-multilib build many library versions (default)
8aa540d2 1588 --enable-collections create collections.jar default=no
ea54b293
TT
1589 --enable-jni compile JNI source default=yes
1590 --enable-core-jni compile JNI sources for core default=yes
97b8365c
TT
1591 --enable-default-preferences-peer[=peer type or class name]
1592 specify one of: "gconf" [default] for a GConf based
1593 backend, "file" for a file based one, "memory" for a
1594 transient one, or a fully qualified class name
1595 implementing java.util.prefs.PreferencesFactory
ac1ed908
MW
1596 --disable-gconf-peer compile GConf native peers (disabled by
1597 --disable-jni) default=yes
1598
f06a83c0
MK
1599 --enable-gstreamer-peer compile GStreamer native peers (disabled by
1600 --disable-jni) default=no
8f523f3a 1601 --enable-Werror whether to compile C code with -Werror which turns
ea54b293
TT
1602 any compiler warning into a compilation failure
1603 default=no
1604 --enable-default-toolkit
1605 fully qualified class name of default AWT toolkit
1606 --enable-xmlj compile native libxml/xslt library default=no
8f523f3a
MW
1607 --disable-alsa compile ALSA providers (enable by --enable-alsa)
1608 default=yes
1609 --disable-dependency-tracking speeds up one-time build
1610 --enable-dependency-tracking do not reject slow dependency extractors
1611 --disable-dssi compile DSSI providers (enable by --enable-dssi)
1612 default=yes
ea54b293
TT
1613 --disable-gtk-peer compile GTK native peers (disabled by --disable-jni)
1614 default=yes
1ea63ef8
TT
1615 --enable-qt-peer compile Qt4 native peers (disabled by --disable-jni)
1616 default=no
02440ca4
TF
1617 --disable-plugin compile gcjwebplugin (disabled by --disable-plugin)
1618 default=yes
cd6d4007
MK
1619 --enable-gmp compile native java.math.BigInteger library
1620 (disabled by --disable-gmp) default=yes
1621 --disable-gjdoc compile GJDoc (disabled by --disable-gjdoc)
1622 default=yes
4623df01
MM
1623 --enable-version-specific-runtime-libs
1624 specify that runtime libraries should be installed
1625 in a compiler-specific directory
e0441a5b
MK
1626 --enable-regen-headers automatically regenerate JNI headers default=yes if
1627 headers don't exist
cd6d4007
MK
1628 --enable-regen-gjdoc-parser
1629 automatically regenerate the GJDoc parser
1630 default=yes if generated source doesn't exist
02440ca4 1631 --enable-tool-wrappers create tool wrapper binaries default=no
5213506e
RW
1632 --enable-static[=PKGS] build static libraries [default=no]
1633 --enable-shared[=PKGS] build shared libraries [default=yes]
86e44bd7
L
1634 --enable-fast-install[=PKGS]
1635 optimize for fast installation [default=yes]
ea54b293
TT
1636 --disable-libtool-lock avoid locking (might break parallel builds)
1637 --disable-rpath do not hardcode runtime library paths
1638 --enable-maintainer-mode enable make rules and dependencies not useful
1639 (and sometimes confusing) to the casual installer
1640 --enable-debug enable runtime debugging code
1641 --enable-load-library enable to use JNI native methods default=yes
1642 --enable-java-lang-system-explicit-initialization
1643 will the VM explicitly invoke java.lang.System's
1644 static initialization methods default=no
1645 --enable-examples enable build of the examples default=yes
e0441a5b 1646 --enable-tools enable build of the tools default=yes
ea54b293
TT
1647 --enable-portable-native-sync
1648 synchronize VM threads portably
4f9533c7 1649 --enable-local-sockets enables local (AF_LOCAL) socket API default: no
ea54b293
TT
1650
1651Optional Packages:
1652 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1653 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
02440ca4 1654 --with-native-libdir sets the installation directory for native libraries
8f523f3a
MW
1655 default='${libdir}/${PACKAGE}'
1656 --with-glibj-dir sets the installation directory for glibj.zip
1657 default='${libdir}/${PACKAGE}'
cd6d4007 1658 --with-antlr-jar=file Use ANTLR from the specified jar file
86e44bd7
L
1659 --with-pic try to use only PIC/non-PIC objects [default=use
1660 both]
1661 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
ea54b293 1662 --with-gnu-ld assume the C compiler uses GNU ld default=no
ea54b293
TT
1663 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1664 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1665 --with-x use the X Window System
8f523f3a
MW
1666 --with-qt4dir=DIR Qt4 installation directory used for OS-X. For other
1667 systems use pkg-config.
8df9a5db
MS
1668 --with-gmp=PATH specify prefix directory for the installed GMP package.
1669 Equivalent to --with-gmp-include=PATH/include
1670 plus --with-gmp-lib=PATH/lib
1671 --with-gmp-include=PATH specify directory for installed GMP include files
1672 --with-gmp-lib=PATH specify directory for the installed GMP library
ea54b293 1673 --with-javah specify path or name of a javah-like program
ea54b293 1674 --with-vm-classes specify path to VM override source files
442a795b
TF
1675 --with-ecj-jar=ABS.PATH specify jar file containing the Eclipse Java
1676 Compiler
cd6d4007 1677 --with-jar=PATH define to use a jar style tool
ea54b293
TT
1678 --with-glibj define what to install (zip|flat|both|none|build)
1679 [default=zip]
1680 --with-gjdoc generate documentation using gjdoc (default is NO)
e0441a5b 1681 --with-jay=DIR|PATH Regenerate the parsers with jay
4f9533c7
MW
1682 --with-glibj-zip=ABS.PATH
1683 use prebuilt glibj.zip class library
ac1ed908 1684 --with-escher=ABS.PATH specify path to escher dir or JAR for X peers
ea54b293
TT
1685
1686Some influential environment variables:
e0f7b260
TT
1687 CC C compiler command
1688 CFLAGS C compiler flags
ea54b293
TT
1689 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1690 nonstandard directory <lib dir>
5213506e
RW
1691 LIBS libraries to pass to the linker, e.g. -l<library>
1692 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1693 you have headers in a nonstandard directory <include dir>
ea54b293 1694 CPP C preprocessor
e0f7b260
TT
1695 CXX C++ compiler command
1696 CXXFLAGS C++ compiler flags
1697 CXXCPP C++ preprocessor
5213506e 1698 XMKMF Path to xmkmf, Makefile generator for X Window System
ea54b293
TT
1699
1700Use these variables to override the choices made by `configure' or to help
1701it to find libraries and programs with nonstandard names/locations.
1702
1703Report bugs to <classpath@gnu.org>.
5213506e
RW
1704GNU Classpath home page: <http://www.gnu.org/software/classpath/>.
1705General help using GNU software: <http://www.gnu.org/gethelp/>.
ea54b293 1706_ACEOF
5213506e 1707ac_status=$?
ea54b293
TT
1708fi
1709
1710if test "$ac_init_help" = "recursive"; then
1711 # If there are subdirs, report their specific --help.
ea54b293 1712 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1713 test -d "$ac_dir" ||
1714 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1715 continue
ea54b293
TT
1716 ac_builddir=.
1717
5213506e
RW
1718case "$ac_dir" in
1719.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1720*)
1721 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1722 # A ".." for each directory in $ac_dir_suffix.
1723 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1724 case $ac_top_builddir_sub in
1725 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1726 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1727 esac ;;
1728esac
1729ac_abs_top_builddir=$ac_pwd
1730ac_abs_builddir=$ac_pwd$ac_dir_suffix
1731# for backward compatibility:
1732ac_top_builddir=$ac_top_build_prefix
ea54b293
TT
1733
1734case $srcdir in
5213506e 1735 .) # We are building in place.
ea54b293 1736 ac_srcdir=.
5213506e
RW
1737 ac_top_srcdir=$ac_top_builddir_sub
1738 ac_abs_top_srcdir=$ac_pwd ;;
1739 [\\/]* | ?:[\\/]* ) # Absolute name.
ea54b293 1740 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1741 ac_top_srcdir=$srcdir
1742 ac_abs_top_srcdir=$srcdir ;;
1743 *) # Relative name.
1744 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1745 ac_top_srcdir=$ac_top_build_prefix$srcdir
1746 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ea54b293 1747esac
5213506e
RW
1748ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1749
1750 cd "$ac_dir" || { ac_status=$?; continue; }
1751 # Check for guested configure.
1752 if test -f "$ac_srcdir/configure.gnu"; then
1753 echo &&
1754 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1755 elif test -f "$ac_srcdir/configure"; then
1756 echo &&
1757 $SHELL "$ac_srcdir/configure" --help=recursive
ea54b293 1758 else
5213506e
RW
1759 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1760 fi || ac_status=$?
1761 cd "$ac_pwd" || { ac_status=$?; break; }
ea54b293
TT
1762 done
1763fi
1764
5213506e 1765test -n "$ac_init_help" && exit $ac_status
ea54b293
TT
1766if $ac_init_version; then
1767 cat <<\_ACEOF
a1906e8b 1768GNU Classpath configure 0.99.1-pre
5213506e 1769generated by GNU Autoconf 2.64
ea54b293 1770
5213506e 1771Copyright (C) 2009 Free Software Foundation, Inc.
ea54b293
TT
1772This configure script is free software; the Free Software Foundation
1773gives unlimited permission to copy, distribute and modify it.
1774_ACEOF
5213506e 1775 exit
ea54b293 1776fi
ea54b293 1777
5213506e
RW
1778## ------------------------ ##
1779## Autoconf initialization. ##
1780## ------------------------ ##
ea54b293 1781
5213506e
RW
1782# ac_fn_c_try_compile LINENO
1783# --------------------------
1784# Try to compile conftest.$ac_ext, and return whether this succeeded.
1785ac_fn_c_try_compile ()
ea54b293 1786{
5213506e
RW
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 rm -f conftest.$ac_objext
1789 if { { ac_try="$ac_compile"
1790case "(($ac_try" in
1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792 *) ac_try_echo=$ac_try;;
1793esac
1794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795$as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_compile") 2>conftest.err
1797 ac_status=$?
1798 if test -s conftest.err; then
1799 grep -v '^ *+' conftest.err >conftest.er1
1800 cat conftest.er1 >&5
1801 mv -f conftest.er1 conftest.err
1802 fi
1803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804 test $ac_status = 0; } && {
1805 test -z "$ac_c_werror_flag" ||
1806 test ! -s conftest.err
1807 } && test -s conftest.$ac_objext; then :
1808 ac_retval=0
1809else
1810 $as_echo "$as_me: failed program was:" >&5
1811sed 's/^/| /' conftest.$ac_ext >&5
ea54b293 1812
5213506e
RW
1813 ac_retval=1
1814fi
1815 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1816 return $ac_retval
ea54b293 1817
5213506e 1818} # ac_fn_c_try_compile
ea54b293 1819
5213506e
RW
1820# ac_fn_c_try_cpp LINENO
1821# ----------------------
1822# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1823ac_fn_c_try_cpp ()
1824{
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 if { { ac_try="$ac_cpp conftest.$ac_ext"
1827case "(($ac_try" in
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1830esac
1831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832$as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1834 ac_status=$?
1835 if test -s conftest.err; then
1836 grep -v '^ *+' conftest.err >conftest.er1
1837 cat conftest.er1 >&5
1838 mv -f conftest.er1 conftest.err
1839 fi
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; } >/dev/null && {
1842 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1843 test ! -s conftest.err
1844 }; then :
1845 ac_retval=0
1846else
1847 $as_echo "$as_me: failed program was:" >&5
1848sed 's/^/| /' conftest.$ac_ext >&5
ea54b293 1849
5213506e
RW
1850 ac_retval=1
1851fi
1852 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1853 return $ac_retval
ea54b293 1854
5213506e 1855} # ac_fn_c_try_cpp
ea54b293 1856
5213506e
RW
1857# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1858# -------------------------------------------------------
1859# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1860# the include files in INCLUDES and setting the cache variable VAR
1861# accordingly.
1862ac_fn_c_check_header_mongrel ()
1863{
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1867$as_echo_n "checking for $2... " >&6; }
1868if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1869 $as_echo_n "(cached) " >&6
1870fi
1871eval ac_res=\$$3
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873$as_echo "$ac_res" >&6; }
1874else
1875 # Is the header compilable?
1876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1877$as_echo_n "checking $2 usability... " >&6; }
1878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1879/* end confdefs.h. */
1880$4
1881#include <$2>
1882_ACEOF
1883if ac_fn_c_try_compile "$LINENO"; then :
1884 ac_header_compiler=yes
1885else
1886 ac_header_compiler=no
1887fi
1888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1890$as_echo "$ac_header_compiler" >&6; }
ea54b293 1891
5213506e
RW
1892# Is the header present?
1893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1894$as_echo_n "checking $2 presence... " >&6; }
1895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896/* end confdefs.h. */
1897#include <$2>
1898_ACEOF
1899if ac_fn_c_try_cpp "$LINENO"; then :
1900 ac_header_preproc=yes
1901else
1902 ac_header_preproc=no
1903fi
1904rm -f conftest.err conftest.$ac_ext
1905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1906$as_echo "$ac_header_preproc" >&6; }
ea54b293 1907
5213506e
RW
1908# So? What about this header?
1909case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1910 yes:no: )
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1912$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1914$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1915 ;;
1916 no:yes:* )
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1918$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1920$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1922$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1924$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1926$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1927( cat <<\_ASBOX
1928## -------------------------------- ##
1929## Report this to classpath@gnu.org ##
1930## -------------------------------- ##
1931_ASBOX
1932 ) | sed "s/^/$as_me: WARNING: /" >&2
1933 ;;
1934esac
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1936$as_echo_n "checking for $2... " >&6; }
1937if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1938 $as_echo_n "(cached) " >&6
1939else
1940 eval "$3=\$ac_header_compiler"
1941fi
1942eval ac_res=\$$3
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944$as_echo "$ac_res" >&6; }
1945fi
1946 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ea54b293 1947
5213506e 1948} # ac_fn_c_check_header_mongrel
ea54b293 1949
5213506e
RW
1950# ac_fn_c_try_run LINENO
1951# ----------------------
1952# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1953# that executables *can* be run.
1954ac_fn_c_try_run ()
1955{
1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957 if { { ac_try="$ac_link"
1958case "(($ac_try" in
1959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1960 *) ac_try_echo=$ac_try;;
1961esac
1962eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1963$as_echo "$ac_try_echo"; } >&5
1964 (eval "$ac_link") 2>&5
1965 ac_status=$?
1966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1967 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1968 { { case "(($ac_try" in
1969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1970 *) ac_try_echo=$ac_try;;
1971esac
1972eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1973$as_echo "$ac_try_echo"; } >&5
1974 (eval "$ac_try") 2>&5
1975 ac_status=$?
1976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1977 test $ac_status = 0; }; }; then :
1978 ac_retval=0
1979else
1980 $as_echo "$as_me: program exited with status $ac_status" >&5
1981 $as_echo "$as_me: failed program was:" >&5
1982sed 's/^/| /' conftest.$ac_ext >&5
ea54b293 1983
5213506e
RW
1984 ac_retval=$ac_status
1985fi
1986 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1987 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1988 return $ac_retval
ea54b293 1989
5213506e 1990} # ac_fn_c_try_run
ea54b293 1991
5213506e
RW
1992# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1993# -------------------------------------------------------
1994# Tests whether HEADER exists and can be compiled using the include files in
1995# INCLUDES, setting the cache variable VAR accordingly.
1996ac_fn_c_check_header_compile ()
8c0633b7 1997{
5213506e
RW
1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2000$as_echo_n "checking for $2... " >&6; }
2001if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2002 $as_echo_n "(cached) " >&6
2003else
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005/* end confdefs.h. */
2006$4
2007#include <$2>
2008_ACEOF
2009if ac_fn_c_try_compile "$LINENO"; then :
2010 eval "$3=yes"
2011else
2012 eval "$3=no"
2013fi
2014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2015fi
2016eval ac_res=\$$3
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2018$as_echo "$ac_res" >&6; }
2019 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ea54b293 2020
5213506e 2021} # ac_fn_c_check_header_compile
ea54b293 2022
5213506e
RW
2023# ac_fn_c_try_link LINENO
2024# -----------------------
2025# Try to link conftest.$ac_ext, and return whether this succeeded.
2026ac_fn_c_try_link ()
2027{
2028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029 rm -f conftest.$ac_objext conftest$ac_exeext
2030 if { { ac_try="$ac_link"
2031case "(($ac_try" in
2032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2033 *) ac_try_echo=$ac_try;;
2034esac
2035eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2036$as_echo "$ac_try_echo"; } >&5
2037 (eval "$ac_link") 2>conftest.err
2038 ac_status=$?
2039 if test -s conftest.err; then
2040 grep -v '^ *+' conftest.err >conftest.er1
2041 cat conftest.er1 >&5
2042 mv -f conftest.er1 conftest.err
2043 fi
2044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2045 test $ac_status = 0; } && {
2046 test -z "$ac_c_werror_flag" ||
2047 test ! -s conftest.err
2048 } && test -s conftest$ac_exeext && {
2049 test "$cross_compiling" = yes ||
2050 $as_test_x conftest$ac_exeext
2051 }; then :
2052 ac_retval=0
2053else
2054 $as_echo "$as_me: failed program was:" >&5
2055sed 's/^/| /' conftest.$ac_ext >&5
ea54b293 2056
5213506e
RW
2057 ac_retval=1
2058fi
2059 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2060 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2061 # interfere with the next link command; also delete a directory that is
2062 # left behind by Apple's compiler. We do this before executing the actions.
2063 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2064 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2065 return $ac_retval
ea54b293 2066
5213506e 2067} # ac_fn_c_try_link
ea54b293 2068
5213506e
RW
2069# ac_fn_c_check_func LINENO FUNC VAR
2070# ----------------------------------
2071# Tests whether FUNC exists, setting the cache variable VAR accordingly
2072ac_fn_c_check_func ()
2073{
2074 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2076$as_echo_n "checking for $2... " >&6; }
2077if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2078 $as_echo_n "(cached) " >&6
2079else
2080 if test x$gcc_no_link = xyes; then
2081 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2082fi
2083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084/* end confdefs.h. */
2085/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2087#define $2 innocuous_$2
ea54b293 2088
5213506e
RW
2089/* System header to define __stub macros and hopefully few prototypes,
2090 which can conflict with char $2 (); below.
2091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2092 <limits.h> exists even on freestanding compilers. */
ea54b293 2093
5213506e
RW
2094#ifdef __STDC__
2095# include <limits.h>
2096#else
2097# include <assert.h>
2098#endif
ea54b293 2099
5213506e 2100#undef $2
ea54b293 2101
5213506e
RW
2102/* Override any GCC internal prototype to avoid an error.
2103 Use char because int might match the return type of a GCC
2104 builtin and then its argument prototype would still apply. */
2105#ifdef __cplusplus
2106extern "C"
2107#endif
2108char $2 ();
2109/* The GNU C library defines this for functions which it implements
2110 to always fail with ENOSYS. Some functions are actually named
2111 something starting with __ and the normal name is an alias. */
2112#if defined __stub_$2 || defined __stub___$2
2113choke me
2114#endif
ea54b293 2115
5213506e
RW
2116int
2117main ()
2118{
2119return $2 ();
2120 ;
2121 return 0;
2122}
ea54b293 2123_ACEOF
5213506e
RW
2124if ac_fn_c_try_link "$LINENO"; then :
2125 eval "$3=yes"
2126else
2127 eval "$3=no"
2128fi
2129rm -f core conftest.err conftest.$ac_objext \
2130 conftest$ac_exeext conftest.$ac_ext
2131fi
2132eval ac_res=\$$3
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2134$as_echo "$ac_res" >&6; }
2135 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ea54b293 2136
5213506e 2137} # ac_fn_c_check_func
ea54b293 2138
5213506e
RW
2139# ac_fn_cxx_try_compile LINENO
2140# ----------------------------
2141# Try to compile conftest.$ac_ext, and return whether this succeeded.
2142ac_fn_cxx_try_compile ()
2143{
2144 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2145 rm -f conftest.$ac_objext
2146 if { { ac_try="$ac_compile"
2147case "(($ac_try" in
2148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2149 *) ac_try_echo=$ac_try;;
2150esac
2151eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2152$as_echo "$ac_try_echo"; } >&5
2153 (eval "$ac_compile") 2>conftest.err
2154 ac_status=$?
2155 if test -s conftest.err; then
2156 grep -v '^ *+' conftest.err >conftest.er1
2157 cat conftest.er1 >&5
2158 mv -f conftest.er1 conftest.err
2159 fi
2160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2161 test $ac_status = 0; } && {
2162 test -z "$ac_cxx_werror_flag" ||
2163 test ! -s conftest.err
2164 } && test -s conftest.$ac_objext; then :
2165 ac_retval=0
2166else
2167 $as_echo "$as_me: failed program was:" >&5
2168sed 's/^/| /' conftest.$ac_ext >&5
ea54b293 2169
5213506e
RW
2170 ac_retval=1
2171fi
2172 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2173 return $ac_retval
ea54b293 2174
5213506e 2175} # ac_fn_cxx_try_compile
ea54b293 2176
5213506e
RW
2177# ac_fn_cxx_try_cpp LINENO
2178# ------------------------
2179# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2180ac_fn_cxx_try_cpp ()
2181{
2182 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2183 if { { ac_try="$ac_cpp conftest.$ac_ext"
2184case "(($ac_try" in
2185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2186 *) ac_try_echo=$ac_try;;
2187esac
2188eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2189$as_echo "$ac_try_echo"; } >&5
2190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2191 ac_status=$?
2192 if test -s conftest.err; then
2193 grep -v '^ *+' conftest.err >conftest.er1
2194 cat conftest.er1 >&5
2195 mv -f conftest.er1 conftest.err
2196 fi
2197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2198 test $ac_status = 0; } >/dev/null && {
2199 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2200 test ! -s conftest.err
2201 }; then :
2202 ac_retval=0
2203else
2204 $as_echo "$as_me: failed program was:" >&5
2205sed 's/^/| /' conftest.$ac_ext >&5
ea54b293 2206
5213506e 2207 ac_retval=1
ea54b293 2208fi
5213506e
RW
2209 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2210 return $ac_retval
ea54b293 2211
5213506e
RW
2212} # ac_fn_cxx_try_cpp
2213
2214# ac_fn_cxx_try_link LINENO
2215# -------------------------
2216# Try to link conftest.$ac_ext, and return whether this succeeded.
2217ac_fn_cxx_try_link ()
2218{
2219 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2220 rm -f conftest.$ac_objext conftest$ac_exeext
2221 if { { ac_try="$ac_link"
2222case "(($ac_try" in
2223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2224 *) ac_try_echo=$ac_try;;
2225esac
2226eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2227$as_echo "$ac_try_echo"; } >&5
2228 (eval "$ac_link") 2>conftest.err
2229 ac_status=$?
2230 if test -s conftest.err; then
2231 grep -v '^ *+' conftest.err >conftest.er1
2232 cat conftest.er1 >&5
2233 mv -f conftest.er1 conftest.err
2234 fi
2235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2236 test $ac_status = 0; } && {
2237 test -z "$ac_cxx_werror_flag" ||
2238 test ! -s conftest.err
2239 } && test -s conftest$ac_exeext && {
2240 test "$cross_compiling" = yes ||
2241 $as_test_x conftest$ac_exeext
2242 }; then :
2243 ac_retval=0
2244else
2245 $as_echo "$as_me: failed program was:" >&5
2246sed 's/^/| /' conftest.$ac_ext >&5
2247
2248 ac_retval=1
ea54b293 2249fi
5213506e
RW
2250 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2251 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2252 # interfere with the next link command; also delete a directory that is
2253 # left behind by Apple's compiler. We do this before executing the actions.
2254 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2255 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2256 return $ac_retval
ea54b293 2257
5213506e 2258} # ac_fn_cxx_try_link
ea54b293 2259
5213506e
RW
2260# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2261# ----------------------------------------------------
2262# Tries to find if the field MEMBER exists in type AGGR, after including
2263# INCLUDES, setting cache variable VAR accordingly.
2264ac_fn_c_check_member ()
2265{
2266 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2268$as_echo_n "checking for $2.$3... " >&6; }
2269if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2270 $as_echo_n "(cached) " >&6
2271else
2272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2273/* end confdefs.h. */
2274$5
2275int
2276main ()
2277{
2278static $2 ac_aggr;
2279if (ac_aggr.$3)
2280return 0;
2281 ;
2282 return 0;
2283}
2284_ACEOF
2285if ac_fn_c_try_compile "$LINENO"; then :
2286 eval "$4=yes"
2287else
2288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2289/* end confdefs.h. */
2290$5
2291int
2292main ()
2293{
2294static $2 ac_aggr;
2295if (sizeof ac_aggr.$3)
2296return 0;
2297 ;
2298 return 0;
2299}
2300_ACEOF
2301if ac_fn_c_try_compile "$LINENO"; then :
2302 eval "$4=yes"
2303else
2304 eval "$4=no"
2305fi
2306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2307fi
2308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2309fi
2310eval ac_res=\$$4
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2312$as_echo "$ac_res" >&6; }
2313 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
8c0633b7 2314
5213506e 2315} # ac_fn_c_check_member
ea54b293 2316
5213506e
RW
2317# ac_fn_c_check_decl LINENO SYMBOL VAR
2318# ------------------------------------
2319# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2320ac_fn_c_check_decl ()
2321{
2322 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
c3f247f4
RW
2323 as_decl_name=`echo $2|sed 's/ *(.*//'`
2324 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2326$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
5213506e
RW
2327if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2328 $as_echo_n "(cached) " >&6
2329else
2330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2331/* end confdefs.h. */
2332$4
2333int
2334main ()
2335{
c3f247f4
RW
2336#ifndef $as_decl_name
2337#ifdef __cplusplus
2338 (void) $as_decl_use;
2339#else
2340 (void) $as_decl_name;
2341#endif
5213506e 2342#endif
ea54b293 2343
5213506e
RW
2344 ;
2345 return 0;
2346}
2347_ACEOF
2348if ac_fn_c_try_compile "$LINENO"; then :
2349 eval "$3=yes"
2350else
2351 eval "$3=no"
2352fi
2353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2354fi
2355eval ac_res=\$$3
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2357$as_echo "$ac_res" >&6; }
2358 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ea54b293 2359
5213506e 2360} # ac_fn_c_check_decl
ea54b293 2361
5213506e
RW
2362# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2363# -------------------------------------------
2364# Tests whether TYPE exists after having included INCLUDES, setting cache
2365# variable VAR accordingly.
2366ac_fn_c_check_type ()
2367{
2368 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2370$as_echo_n "checking for $2... " >&6; }
2371if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2372 $as_echo_n "(cached) " >&6
2373else
2374 eval "$3=no"
2375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2376/* end confdefs.h. */
2377$4
2378int
2379main ()
2380{
2381if (sizeof ($2))
2382 return 0;
2383 ;
2384 return 0;
2385}
2386_ACEOF
2387if ac_fn_c_try_compile "$LINENO"; then :
2388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2389/* end confdefs.h. */
2390$4
2391int
2392main ()
2393{
2394if (sizeof (($2)))
2395 return 0;
2396 ;
2397 return 0;
2398}
2399_ACEOF
2400if ac_fn_c_try_compile "$LINENO"; then :
ea54b293 2401
5213506e
RW
2402else
2403 eval "$3=yes"
2404fi
2405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2406fi
2407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2408fi
2409eval ac_res=\$$3
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2411$as_echo "$ac_res" >&6; }
2412 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ea54b293 2413
5213506e 2414} # ac_fn_c_check_type
ea54b293 2415
5213506e
RW
2416# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2417# --------------------------------------------
2418# Tries to find the compile-time value of EXPR in a program that includes
2419# INCLUDES, setting VAR accordingly. Returns whether the value could be
2420# computed
2421ac_fn_c_compute_int ()
2422{
2423 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2424 if test "$cross_compiling" = yes; then
2425 # Depending upon the size, compute the lo and hi bounds.
2426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2427/* end confdefs.h. */
2428$4
2429int
2430main ()
2431{
2432static int test_array [1 - 2 * !(($2) >= 0)];
2433test_array [0] = 0
ea54b293 2434
5213506e
RW
2435 ;
2436 return 0;
2437}
2438_ACEOF
2439if ac_fn_c_try_compile "$LINENO"; then :
2440 ac_lo=0 ac_mid=0
2441 while :; do
2442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2443/* end confdefs.h. */
2444$4
2445int
2446main ()
2447{
2448static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2449test_array [0] = 0
ea54b293 2450
5213506e
RW
2451 ;
2452 return 0;
2453}
2454_ACEOF
2455if ac_fn_c_try_compile "$LINENO"; then :
2456 ac_hi=$ac_mid; break
2457else
2458 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2459 if test $ac_lo -le $ac_mid; then
2460 ac_lo= ac_hi=
2461 break
2462 fi
2463 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2464fi
2465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2466 done
2467else
2468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2469/* end confdefs.h. */
2470$4
2471int
2472main ()
2473{
2474static int test_array [1 - 2 * !(($2) < 0)];
2475test_array [0] = 0
ea54b293 2476
5213506e
RW
2477 ;
2478 return 0;
2479}
2480_ACEOF
2481if ac_fn_c_try_compile "$LINENO"; then :
2482 ac_hi=-1 ac_mid=-1
2483 while :; do
2484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2485/* end confdefs.h. */
2486$4
2487int
2488main ()
2489{
2490static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2491test_array [0] = 0
ea54b293 2492
5213506e
RW
2493 ;
2494 return 0;
2495}
2496_ACEOF
2497if ac_fn_c_try_compile "$LINENO"; then :
2498 ac_lo=$ac_mid; break
2499else
2500 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2501 if test $ac_mid -le $ac_hi; then
2502 ac_lo= ac_hi=
2503 break
2504 fi
2505 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2506fi
2507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2508 done
2509else
2510 ac_lo= ac_hi=
2511fi
2512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2513fi
2514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2515# Binary search between lo and hi bounds.
2516while test "x$ac_lo" != "x$ac_hi"; do
2517 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2519/* end confdefs.h. */
2520$4
2521int
2522main ()
2523{
2524static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2525test_array [0] = 0
ea54b293 2526
5213506e
RW
2527 ;
2528 return 0;
2529}
2530_ACEOF
2531if ac_fn_c_try_compile "$LINENO"; then :
2532 ac_hi=$ac_mid
2533else
2534 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2535fi
2536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2537done
2538case $ac_lo in #((
2539?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2540'') ac_retval=1 ;;
2541esac
2542 else
2543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2544/* end confdefs.h. */
2545$4
2546static long int longval () { return $2; }
2547static unsigned long int ulongval () { return $2; }
2548#include <stdio.h>
2549#include <stdlib.h>
2550int
2551main ()
2552{
ea54b293 2553
5213506e
RW
2554 FILE *f = fopen ("conftest.val", "w");
2555 if (! f)
2556 return 1;
2557 if (($2) < 0)
2558 {
2559 long int i = longval ();
2560 if (i != ($2))
2561 return 1;
2562 fprintf (f, "%ld", i);
2563 }
2564 else
2565 {
2566 unsigned long int i = ulongval ();
2567 if (i != ($2))
2568 return 1;
2569 fprintf (f, "%lu", i);
2570 }
2571 /* Do not output a trailing newline, as this causes \r\n confusion
2572 on some platforms. */
2573 return ferror (f) || fclose (f) != 0;
ea54b293 2574
5213506e
RW
2575 ;
2576 return 0;
2577}
2578_ACEOF
2579if ac_fn_c_try_run "$LINENO"; then :
2580 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2581else
2582 ac_retval=1
2583fi
2584rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2585 conftest.$ac_objext conftest.beam conftest.$ac_ext
2586rm -f conftest.val
ea54b293 2587
5213506e
RW
2588 fi
2589 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2590 return $ac_retval
ea54b293 2591
5213506e
RW
2592} # ac_fn_c_compute_int
2593cat >config.log <<_ACEOF
2594This file contains any messages produced by compilers while
2595running configure, to aid debugging if configure makes a mistake.
ea54b293 2596
a1906e8b 2597It was created by GNU Classpath $as_me 0.99.1-pre, which was
5213506e 2598generated by GNU Autoconf 2.64. Invocation command line was
ea54b293 2599
5213506e 2600 $ $0 $@
ea54b293 2601
5213506e
RW
2602_ACEOF
2603exec 5>>config.log
2604{
2605cat <<_ASUNAME
2606## --------- ##
2607## Platform. ##
2608## --------- ##
ea54b293 2609
5213506e
RW
2610hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2611uname -m = `(uname -m) 2>/dev/null || echo unknown`
2612uname -r = `(uname -r) 2>/dev/null || echo unknown`
2613uname -s = `(uname -s) 2>/dev/null || echo unknown`
2614uname -v = `(uname -v) 2>/dev/null || echo unknown`
ea54b293 2615
5213506e
RW
2616/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2617/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
ea54b293 2618
5213506e
RW
2619/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2620/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2621/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2622/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2623/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2624/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2625/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
ea54b293 2626
5213506e 2627_ASUNAME
ea54b293 2628
5213506e
RW
2629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630for as_dir in $PATH
2631do
2632 IFS=$as_save_IFS
2633 test -z "$as_dir" && as_dir=.
2634 $as_echo "PATH: $as_dir"
2635 done
2636IFS=$as_save_IFS
18c04407 2637
5213506e 2638} >&5
18c04407 2639
5213506e 2640cat >&5 <<_ACEOF
18c04407 2641
ea54b293 2642
5213506e
RW
2643## ----------- ##
2644## Core tests. ##
2645## ----------- ##
ea54b293 2646
5213506e 2647_ACEOF
ea54b293
TT
2648
2649
5213506e
RW
2650# Keep a trace of the command line.
2651# Strip out --no-create and --no-recursion so they do not pile up.
2652# Strip out --silent because we don't want to record it for future runs.
2653# Also quote any args containing shell meta-characters.
2654# Make two passes to allow for proper duplicate-argument suppression.
2655ac_configure_args=
2656ac_configure_args0=
2657ac_configure_args1=
2658ac_must_keep_next=false
2659for ac_pass in 1 2
2660do
2661 for ac_arg
2662 do
2663 case $ac_arg in
2664 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2665 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2666 | -silent | --silent | --silen | --sile | --sil)
2667 continue ;;
2668 *\'*)
2669 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2670 esac
2671 case $ac_pass in
2672 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2673 2)
2674 as_fn_append ac_configure_args1 " '$ac_arg'"
2675 if test $ac_must_keep_next = true; then
2676 ac_must_keep_next=false # Got value, back to normal.
2677 else
2678 case $ac_arg in
2679 *=* | --config-cache | -C | -disable-* | --disable-* \
2680 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2681 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2682 | -with-* | --with-* | -without-* | --without-* | --x)
2683 case "$ac_configure_args0 " in
2684 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2685 esac
2686 ;;
2687 -* ) ac_must_keep_next=true ;;
2688 esac
2689 fi
2690 as_fn_append ac_configure_args " '$ac_arg'"
2691 ;;
2692 esac
2693 done
ea54b293 2694done
5213506e
RW
2695{ ac_configure_args0=; unset ac_configure_args0;}
2696{ ac_configure_args1=; unset ac_configure_args1;}
2697
2698# When interrupted or exit'd, cleanup temporary files, and complete
2699# config.log. We remove comments because anyway the quotes in there
2700# would cause problems or look ugly.
2701# WARNING: Use '\'' to represent an apostrophe within the trap.
2702# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2703trap 'exit_status=$?
2704 # Save into config.log some information that might help in debugging.
2705 {
2706 echo
2707
2708 cat <<\_ASBOX
2709## ---------------- ##
2710## Cache variables. ##
2711## ---------------- ##
2712_ASBOX
2713 echo
2714 # The following way of writing the cache mishandles newlines in values,
2715(
2716 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2717 eval ac_val=\$$ac_var
2718 case $ac_val in #(
2719 *${as_nl}*)
2720 case $ac_var in #(
2721 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2722$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2723 esac
2724 case $ac_var in #(
2725 _ | IFS | as_nl) ;; #(
2726 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2727 *) { eval $ac_var=; unset $ac_var;} ;;
2728 esac ;;
2729 esac
2730 done
2731 (set) 2>&1 |
2732 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2733 *${as_nl}ac_space=\ *)
2734 sed -n \
2735 "s/'\''/'\''\\\\'\'''\''/g;
2736 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2737 ;; #(
2738 *)
2739 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2740 ;;
2741 esac |
2742 sort
2743)
2744 echo
2745
2746 cat <<\_ASBOX
2747## ----------------- ##
2748## Output variables. ##
2749## ----------------- ##
2750_ASBOX
2751 echo
2752 for ac_var in $ac_subst_vars
2753 do
2754 eval ac_val=\$$ac_var
2755 case $ac_val in
2756 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2757 esac
2758 $as_echo "$ac_var='\''$ac_val'\''"
2759 done | sort
2760 echo
2761
2762 if test -n "$ac_subst_files"; then
2763 cat <<\_ASBOX
2764## ------------------- ##
2765## File substitutions. ##
2766## ------------------- ##
2767_ASBOX
2768 echo
2769 for ac_var in $ac_subst_files
2770 do
2771 eval ac_val=\$$ac_var
2772 case $ac_val in
2773 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2774 esac
2775 $as_echo "$ac_var='\''$ac_val'\''"
2776 done | sort
2777 echo
2778 fi
2779
2780 if test -s confdefs.h; then
2781 cat <<\_ASBOX
2782## ----------- ##
2783## confdefs.h. ##
2784## ----------- ##
2785_ASBOX
2786 echo
2787 cat confdefs.h
2788 echo
2789 fi
2790 test "$ac_signal" != 0 &&
2791 $as_echo "$as_me: caught signal $ac_signal"
2792 $as_echo "$as_me: exit $exit_status"
2793 } >&5
2794 rm -f core *.core core.conftest.* &&
2795 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2796 exit $exit_status
2797' 0
2798for ac_signal in 1 2 13 15; do
2799 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2800done
2801ac_signal=0
2802
2803# confdefs.h avoids OS command line length limits that DEFS can exceed.
2804rm -f -r conftest* confdefs.h
2805
2806$as_echo "/* confdefs.h */" > confdefs.h
2807
2808# Predefined preprocessor variables.
2809
2810cat >>confdefs.h <<_ACEOF
2811#define PACKAGE_NAME "$PACKAGE_NAME"
2812_ACEOF
2813
2814cat >>confdefs.h <<_ACEOF
2815#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2816_ACEOF
2817
2818cat >>confdefs.h <<_ACEOF
2819#define PACKAGE_VERSION "$PACKAGE_VERSION"
2820_ACEOF
2821
2822cat >>confdefs.h <<_ACEOF
2823#define PACKAGE_STRING "$PACKAGE_STRING"
2824_ACEOF
2825
2826cat >>confdefs.h <<_ACEOF
2827#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2828_ACEOF
2829
2830cat >>confdefs.h <<_ACEOF
2831#define PACKAGE_URL "$PACKAGE_URL"
2832_ACEOF
2833
2834
2835# Let the site file select an alternate cache file if it wants to.
2836# Prefer an explicitly selected file to automatically selected ones.
2837ac_site_file1=NONE
2838ac_site_file2=NONE
2839if test -n "$CONFIG_SITE"; then
2840 ac_site_file1=$CONFIG_SITE
2841elif test "x$prefix" != xNONE; then
2842 ac_site_file1=$prefix/share/config.site
2843 ac_site_file2=$prefix/etc/config.site
2844else
2845 ac_site_file1=$ac_default_prefix/share/config.site
2846 ac_site_file2=$ac_default_prefix/etc/config.site
2847fi
2848for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2849do
2850 test "x$ac_site_file" = xNONE && continue
2851 if test -r "$ac_site_file"; then
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2853$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2854 sed 's/^/| /' "$ac_site_file" >&5
2855 . "$ac_site_file"
2856 fi
2857done
2858
2859if test -r "$cache_file"; then
2860 # Some versions of bash will fail to source /dev/null (special
2861 # files actually), so we avoid doing that.
2862 if test -f "$cache_file"; then
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2864$as_echo "$as_me: loading cache $cache_file" >&6;}
2865 case $cache_file in
2866 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2867 *) . "./$cache_file";;
2868 esac
2869 fi
2870else
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2872$as_echo "$as_me: creating cache $cache_file" >&6;}
2873 >$cache_file
2874fi
2875
2876# Check that the precious variables saved in the cache have kept the same
2877# value.
2878ac_cache_corrupted=false
2879for ac_var in $ac_precious_vars; do
2880 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2881 eval ac_new_set=\$ac_env_${ac_var}_set
2882 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2883 eval ac_new_val=\$ac_env_${ac_var}_value
2884 case $ac_old_set,$ac_new_set in
2885 set,)
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2887$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2888 ac_cache_corrupted=: ;;
2889 ,set)
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2891$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2892 ac_cache_corrupted=: ;;
2893 ,);;
2894 *)
2895 if test "x$ac_old_val" != "x$ac_new_val"; then
2896 # differences in whitespace do not lead to failure.
2897 ac_old_val_w=`echo x $ac_old_val`
2898 ac_new_val_w=`echo x $ac_new_val`
2899 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2901$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2902 ac_cache_corrupted=:
2903 else
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2905$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2906 eval $ac_var=\$ac_old_val
2907 fi
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2909$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2911$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2912 fi;;
2913 esac
2914 # Pass precious variables to config.status.
2915 if test "$ac_new_set" = set; then
2916 case $ac_new_val in
2917 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2918 *) ac_arg=$ac_var=$ac_new_val ;;
2919 esac
2920 case " $ac_configure_args " in
2921 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2922 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2923 esac
2924 fi
2925done
2926if $ac_cache_corrupted; then
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2928$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2930$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2931 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2932fi
2933## -------------------- ##
2934## Main body of script. ##
2935## -------------------- ##
2936
2937ac_ext=c
2938ac_cpp='$CPP $CPPFLAGS'
2939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2941ac_compiler_gnu=$ac_cv_c_compiler_gnu
2942
2943
2944
2945
2946
2947
2948
729530c0 2949
5213506e
RW
2950ac_aux_dir=
2951for ac_dir in ../.. "$srcdir"/../..; do
2952 for ac_t in install-sh install.sh shtool; do
2953 if test -f "$ac_dir/$ac_t"; then
2954 ac_aux_dir=$ac_dir
2955 ac_install_sh="$ac_aux_dir/$ac_t -c"
2956 break 2
2957 fi
2958 done
2959done
2960if test -z "$ac_aux_dir"; then
2961 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
2962fi
2963
2964# These three variables are undocumented and unsupported,
2965# and are intended to be withdrawn in a future Autoconf release.
2966# They can cause serious problems if a builder's source tree is in a directory
2967# whose full name contains unusual characters.
2968ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2969ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2970ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2971
ea54b293 2972
86e44bd7 2973
ea54b293 2974# Make sure we can run config.sub.
5213506e
RW
2975$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2976 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2977
2978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2979$as_echo_n "checking build system type... " >&6; }
2980if test "${ac_cv_build+set}" = set; then :
2981 $as_echo_n "(cached) " >&6
2982else
2983 ac_build_alias=$build_alias
2984test "x$ac_build_alias" = x &&
2985 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2986test "x$ac_build_alias" = x &&
2987 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2988ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2989 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2990
2991fi
2992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2993$as_echo "$ac_cv_build" >&6; }
2994case $ac_cv_build in
2995*-*-*) ;;
2996*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2997esac
ea54b293 2998build=$ac_cv_build
5213506e
RW
2999ac_save_IFS=$IFS; IFS='-'
3000set x $ac_cv_build
3001shift
3002build_cpu=$1
3003build_vendor=$2
3004shift; shift
3005# Remember, the first character of IFS is used to create $*,
3006# except with old shells:
3007build_os=$*
3008IFS=$ac_save_IFS
3009case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
8c0633b7
TF
3010
3011
5213506e
RW
3012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3013$as_echo_n "checking host system type... " >&6; }
3014if test "${ac_cv_host+set}" = set; then :
3015 $as_echo_n "(cached) " >&6
ea54b293 3016else
5213506e
RW
3017 if test "x$host_alias" = x; then
3018 ac_cv_host=$ac_cv_build
3019else
3020 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3021 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3022fi
ea54b293
TT
3023
3024fi
5213506e
RW
3025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3026$as_echo "$ac_cv_host" >&6; }
3027case $ac_cv_host in
3028*-*-*) ;;
3029*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3030esac
ea54b293 3031host=$ac_cv_host
5213506e
RW
3032ac_save_IFS=$IFS; IFS='-'
3033set x $ac_cv_host
3034shift
3035host_cpu=$1
3036host_vendor=$2
3037shift; shift
3038# Remember, the first character of IFS is used to create $*,
3039# except with old shells:
3040host_os=$*
3041IFS=$ac_save_IFS
3042case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
8c0633b7
TF
3043
3044
5213506e
RW
3045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3046$as_echo_n "checking target system type... " >&6; }
3047if test "${ac_cv_target+set}" = set; then :
3048 $as_echo_n "(cached) " >&6
3049else
3050 if test "x$target_alias" = x; then
3051 ac_cv_target=$ac_cv_host
ea54b293 3052else
5213506e
RW
3053 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3054 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3055fi
ea54b293
TT
3056
3057fi
5213506e
RW
3058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3059$as_echo "$ac_cv_target" >&6; }
3060case $ac_cv_target in
3061*-*-*) ;;
3062*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3063esac
ea54b293 3064target=$ac_cv_target
5213506e
RW
3065ac_save_IFS=$IFS; IFS='-'
3066set x $ac_cv_target
3067shift
3068target_cpu=$1
3069target_vendor=$2
3070shift; shift
3071# Remember, the first character of IFS is used to create $*,
3072# except with old shells:
3073target_os=$*
3074IFS=$ac_save_IFS
3075case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
ea54b293
TT
3076
3077
3078# The aliases save the names the user supplied, while $host etc.
3079# will get canonicalized.
3080test -n "$target_alias" &&
3081 test "$program_prefix$program_suffix$program_transform_name" = \
3082 NONENONEs,x,x, &&
3083 program_prefix=${target_alias}-
3084
5213506e
RW
3085# Check whether --enable-java-maintainer-mode was given.
3086if test "${enable_java_maintainer_mode+set}" = set; then :
3087 enableval=$enable_java_maintainer_mode;
3088fi
97b8365c 3089
5213506e 3090 if test "$enable_java_maintainer_mode" = yes; then
97b8365c
TT
3091 JAVA_MAINTAINER_MODE_TRUE=
3092 JAVA_MAINTAINER_MODE_FALSE='#'
3093else
3094 JAVA_MAINTAINER_MODE_TRUE='#'
3095 JAVA_MAINTAINER_MODE_FALSE=
3096fi
3097
3098
fd975604
MK
3099# We would like to our source tree to be readonly. However when releases or
3100# pre-releases are generated, the man pages need to be included as they are
3101# converted from the texi files via perl which we don't require end users to
3102# have installed.
3103# Therefore we have --enable-generated-files-in-srcdir to do just that.
3104
5213506e
RW
3105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3106$as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3107 # Check whether --enable-generated-files-in-srcdir was given.
3108if test "${enable_generated_files_in_srcdir+set}" = set; then :
3109 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
fd975604
MK
3110else
3111 generated_files_in_srcdir=no
5213506e 3112fi
fd975604
MK
3113
3114
5213506e
RW
3115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3116$as_echo "$generated_files_in_srcdir" >&6; }
3117 if test x$generated_files_in_srcdir = xyes; then
fd975604
MK
3118 GENINSRC_TRUE=
3119 GENINSRC_FALSE='#'
3120else
3121 GENINSRC_TRUE='#'
3122 GENINSRC_FALSE=
3123fi
3124
3125
8a489465
JH
3126# Find the rest of the source tree framework.
3127# Default to --enable-multilib
5213506e
RW
3128# Check whether --enable-multilib was given.
3129if test "${enable_multilib+set}" = set; then :
3130 enableval=$enable_multilib; case "$enableval" in
8a489465
JH
3131 yes) multilib=yes ;;
3132 no) multilib=no ;;
5213506e 3133 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
8a489465
JH
3134 esac
3135else
3136 multilib=yes
5213506e
RW
3137fi
3138
8a489465
JH
3139
3140# We may get other options which we leave undocumented:
3141# --with-target-subdir, --with-multisrctop, --with-multisubdir
3142# See config-ml.in if you want the gory details.
3143
3144if test "$srcdir" = "."; then
3145 if test "$with_target_subdir" != "."; then
3146 multi_basedir="$srcdir/$with_multisrctop../../.."
3147 else
3148 multi_basedir="$srcdir/$with_multisrctop../.."
3149 fi
3150else
3151 multi_basedir="$srcdir/../.."
3152fi
3153
3154
3155# Even if the default multilib is not a cross compilation,
3156# it may be that some of the other multilibs are.
3157if test $cross_compiling = no && test $multilib = yes \
3158 && test "x${with_multisubdir}" != x ; then
3159 cross_compiling=maybe
3160fi
3161
5213506e 3162ac_config_commands="$ac_config_commands default-1"
4bf95cef
JJ
3163
3164
5213506e 3165 if test -z "${with_multisubdir}"; then
4bf95cef
JJ
3166 INSTALL_BINARIES_TRUE=
3167 INSTALL_BINARIES_FALSE='#'
3168else
3169 INSTALL_BINARIES_TRUE='#'
3170 INSTALL_BINARIES_FALSE=
3171fi
3172
3173
ea54b293
TT
3174if expr ${target_cpu} : '.*86' > /dev/null; then target_cpu=x86; fi
3175
3176LIBVERSION="0:0:0"
3177
1ea63ef8
TT
3178case "$host_os" in
3179 darwin*)
3180 cp_module=""
3181 ;;
3182 *)
3183 cp_module="-module"
3184 ;;
3185esac
3186
3187CLASSPATH_MODULE="${cp_module} -version-info ${LIBVERSION} -no-undefined"
ea54b293
TT
3188
3189
4f9533c7
MW
3190CLASSPATH_CONVENIENCE="-no-undefined"
3191
3192
ea54b293 3193
5213506e
RW
3194am__api_version='1.11'
3195
ea54b293
TT
3196# Find a good install program. We prefer a C program (faster),
3197# so one script is as good as another. But avoid the broken or
3198# incompatible versions:
3199# SysV /etc/install, /usr/sbin/install
3200# SunOS /usr/etc/install
3201# IRIX /sbin/install
3202# AIX /bin/install
3203# AmigaOS /C/install, which installs bootblocks on floppy discs
3204# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3205# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3206# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3207# OS/2's system install, which has a completely different semantic
3208# ./install, which can be erroneously created by make from ./install.sh.
015cd9b1 3209# Reject install programs that cannot install multiple files.
5213506e
RW
3210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3211$as_echo_n "checking for a BSD-compatible install... " >&6; }
ea54b293 3212if test -z "$INSTALL"; then
5213506e
RW
3213if test "${ac_cv_path_install+set}" = set; then :
3214 $as_echo_n "(cached) " >&6
ea54b293
TT
3215else
3216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217for as_dir in $PATH
3218do
3219 IFS=$as_save_IFS
3220 test -z "$as_dir" && as_dir=.
5213506e
RW
3221 # Account for people who put trailing slashes in PATH elements.
3222case $as_dir/ in #((
3223 ./ | .// | /[cC]/* | \
ea54b293 3224 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 3225 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
ea54b293
TT
3226 /usr/ucb/* ) ;;
3227 *)
3228 # OSF1 and SCO ODT 3.0 have their own names for install.
3229 # Don't use installbsd from OSF since it installs stuff as root
3230 # by default.
3231 for ac_prog in ginstall scoinst install; do
3232 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 3233 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
ea54b293
TT
3234 if test $ac_prog = install &&
3235 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3236 # AIX install. It has an incompatible calling convention.
3237 :
3238 elif test $ac_prog = install &&
3239 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3240 # program-specific install script used by HP pwplus--don't use.
3241 :
3242 else
015cd9b1
RW
3243 rm -rf conftest.one conftest.two conftest.dir
3244 echo one > conftest.one
3245 echo two > conftest.two
3246 mkdir conftest.dir
3247 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3248 test -s conftest.one && test -s conftest.two &&
3249 test -s conftest.dir/conftest.one &&
3250 test -s conftest.dir/conftest.two
3251 then
3252 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3253 break 3
3254 fi
ea54b293
TT
3255 fi
3256 fi
3257 done
3258 done
3259 ;;
3260esac
5213506e
RW
3261
3262 done
3263IFS=$as_save_IFS
ea54b293 3264
015cd9b1 3265rm -rf conftest.one conftest.two conftest.dir
ea54b293
TT
3266
3267fi
3268 if test "${ac_cv_path_install+set}" = set; then
3269 INSTALL=$ac_cv_path_install
3270 else
015cd9b1
RW
3271 # As a last resort, use the slow shell script. Don't cache a
3272 # value for INSTALL within a source directory, because that will
ea54b293 3273 # break other packages using the cache if that directory is
015cd9b1 3274 # removed, or if the value is a relative name.
ea54b293
TT
3275 INSTALL=$ac_install_sh
3276 fi
3277fi
5213506e
RW
3278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3279$as_echo "$INSTALL" >&6; }
ea54b293
TT
3280
3281# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3282# It thinks the first close brace ends the variable substitution.
3283test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3284
3285test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3286
3287test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3288
5213506e
RW
3289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3290$as_echo_n "checking whether build environment is sane... " >&6; }
ea54b293
TT
3291# Just in case
3292sleep 1
3293echo timestamp > conftest.file
5213506e
RW
3294# Reject unsafe characters in $srcdir or the absolute working directory
3295# name. Accept space and tab only in the latter.
3296am_lf='
3297'
3298case `pwd` in
3299 *[\\\"\#\$\&\'\`$am_lf]*)
3300 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3301esac
3302case $srcdir in
3303 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3304 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3305esac
3306
ea54b293
TT
3307# Do `set' in a subshell so we don't clobber the current shell's
3308# arguments. Must try -L first in case configure is actually a
3309# symlink; some systems play weird games with the mod time of symlinks
3310# (eg FreeBSD returns the mod time of the symlink's containing
3311# directory).
3312if (
5213506e 3313 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
ea54b293
TT
3314 if test "$*" = "X"; then
3315 # -L didn't work.
5213506e 3316 set X `ls -t "$srcdir/configure" conftest.file`
ea54b293
TT
3317 fi
3318 rm -f conftest.file
3319 if test "$*" != "X $srcdir/configure conftest.file" \
3320 && test "$*" != "X conftest.file $srcdir/configure"; then
3321
3322 # If neither matched, then we have a broken ls. This can happen
3323 # if, for instance, CONFIG_SHELL is bash and it inherits a
3324 # broken ls alias from the environment. This has actually
3325 # happened. Such a system could not be considered "sane".
5213506e
RW
3326 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3327alias in your environment" "$LINENO" 5
ea54b293
TT
3328 fi
3329
3330 test "$2" = conftest.file
3331 )
3332then
3333 # Ok.
3334 :
3335else
5213506e
RW
3336 as_fn_error "newly created file is older than distributed files!
3337Check your system clock" "$LINENO" 5
ea54b293 3338fi
5213506e
RW
3339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3340$as_echo "yes" >&6; }
ea54b293 3341test "$program_prefix" != NONE &&
5213506e 3342 program_transform_name="s&^&$program_prefix&;$program_transform_name"
ea54b293
TT
3343# Use a double $ so make ignores it.
3344test "$program_suffix" != NONE &&
5213506e
RW
3345 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3346# Double any \ or $.
ea54b293 3347# By default was `s,x,x', remove it if useless.
5213506e
RW
3348ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3349program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
ea54b293
TT
3350
3351# expand $ac_aux_dir to an absolute path
3352am_aux_dir=`cd $ac_aux_dir && pwd`
3353
5213506e
RW
3354if test x"${MISSING+set}" != xset; then
3355 case $am_aux_dir in
3356 *\ * | *\ *)
3357 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3358 *)
3359 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3360 esac
3361fi
ea54b293
TT
3362# Use eval to expand $SHELL
3363if eval "$MISSING --run true"; then
3364 am_missing_run="$MISSING --run "
3365else
3366 am_missing_run=
5213506e
RW
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3368$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
ea54b293
TT
3369fi
3370
5213506e
RW
3371if test x"${install_sh}" != xset; then
3372 case $am_aux_dir in
3373 *\ * | *\ *)
3374 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3375 *)
3376 install_sh="\${SHELL} $am_aux_dir/install-sh"
3377 esac
3378fi
3379
3380# Installed binaries are usually stripped using `strip' when the user
3381# run `make install-strip'. However `strip' might not be the right
3382# tool to use in cross-compilation environments, therefore Automake
3383# will honor the `STRIP' environment variable to overrule this program.
3384if test "$cross_compiling" != no; then
3385 if test -n "$ac_tool_prefix"; then
3386 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3387set dummy ${ac_tool_prefix}strip; ac_word=$2
3388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3389$as_echo_n "checking for $ac_word... " >&6; }
3390if test "${ac_cv_prog_STRIP+set}" = set; then :
3391 $as_echo_n "(cached) " >&6
ea54b293 3392else
5213506e
RW
3393 if test -n "$STRIP"; then
3394 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
ea54b293
TT
3395else
3396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3397for as_dir in $PATH
3398do
3399 IFS=$as_save_IFS
3400 test -z "$as_dir" && as_dir=.
5213506e
RW
3401 for ac_exec_ext in '' $ac_executable_extensions; do
3402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3403 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ea54b293
TT
3405 break 2
3406 fi
3407done
5213506e
RW
3408 done
3409IFS=$as_save_IFS
ea54b293
TT
3410
3411fi
3412fi
5213506e
RW
3413STRIP=$ac_cv_prog_STRIP
3414if test -n "$STRIP"; then
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3416$as_echo "$STRIP" >&6; }
ea54b293 3417else
5213506e
RW
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3419$as_echo "no" >&6; }
ea54b293
TT
3420fi
3421
ea54b293 3422
ea54b293 3423fi
5213506e
RW
3424if test -z "$ac_cv_prog_STRIP"; then
3425 ac_ct_STRIP=$STRIP
3426 # Extract the first word of "strip", so it can be a program name with args.
3427set dummy strip; ac_word=$2
3428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3429$as_echo_n "checking for $ac_word... " >&6; }
3430if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3431 $as_echo_n "(cached) " >&6
ea54b293 3432else
5213506e
RW
3433 if test -n "$ac_ct_STRIP"; then
3434 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
ea54b293 3435else
5213506e
RW
3436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3437for as_dir in $PATH
3438do
3439 IFS=$as_save_IFS
3440 test -z "$as_dir" && as_dir=.
3441 for ac_exec_ext in '' $ac_executable_extensions; do
3442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3443 ac_cv_prog_ac_ct_STRIP="strip"
3444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3445 break 2
3446 fi
3447done
3448 done
3449IFS=$as_save_IFS
3450
3451fi
3452fi
3453ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3454if test -n "$ac_ct_STRIP"; then
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3456$as_echo "$ac_ct_STRIP" >&6; }
3457else
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3459$as_echo "no" >&6; }
3460fi
3461
3462 if test "x$ac_ct_STRIP" = x; then
3463 STRIP=":"
3464 else
3465 case $cross_compiling:$ac_tool_warned in
3466yes:)
3467{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3468$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3469ac_tool_warned=yes ;;
3470esac
3471 STRIP=$ac_ct_STRIP
3472 fi
3473else
3474 STRIP="$ac_cv_prog_STRIP"
3475fi
3476
3477fi
3478INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3479
3480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3481$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3482if test -z "$MKDIR_P"; then
3483 if test "${ac_cv_path_mkdir+set}" = set; then :
3484 $as_echo_n "(cached) " >&6
3485else
3486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3487for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3488do
3489 IFS=$as_save_IFS
3490 test -z "$as_dir" && as_dir=.
3491 for ac_prog in mkdir gmkdir; do
3492 for ac_exec_ext in '' $ac_executable_extensions; do
3493 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3494 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3495 'mkdir (GNU coreutils) '* | \
3496 'mkdir (coreutils) '* | \
3497 'mkdir (fileutils) '4.1*)
3498 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3499 break 3;;
3500 esac
3501 done
3502 done
3503 done
3504IFS=$as_save_IFS
3505
3506fi
3507
3508 if test "${ac_cv_path_mkdir+set}" = set; then
3509 MKDIR_P="$ac_cv_path_mkdir -p"
3510 else
3511 # As a last resort, use the slow shell script. Don't cache a
3512 # value for MKDIR_P within a source directory, because that will
3513 # break other packages using the cache if that directory is
3514 # removed, or if the value is a relative name.
3515 test -d ./--version && rmdir ./--version
3516 MKDIR_P="$ac_install_sh -d"
3517 fi
3518fi
3519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3520$as_echo "$MKDIR_P" >&6; }
3521
3522mkdir_p="$MKDIR_P"
3523case $mkdir_p in
3524 [\\/$]* | ?:[\\/]*) ;;
3525 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3526esac
3527
3528for ac_prog in gawk mawk nawk awk
3529do
3530 # Extract the first word of "$ac_prog", so it can be a program name with args.
3531set dummy $ac_prog; ac_word=$2
3532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3533$as_echo_n "checking for $ac_word... " >&6; }
3534if test "${ac_cv_prog_AWK+set}" = set; then :
3535 $as_echo_n "(cached) " >&6
3536else
3537 if test -n "$AWK"; then
3538 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3539else
3540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541for as_dir in $PATH
3542do
3543 IFS=$as_save_IFS
3544 test -z "$as_dir" && as_dir=.
3545 for ac_exec_ext in '' $ac_executable_extensions; do
3546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3547 ac_cv_prog_AWK="$ac_prog"
3548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3549 break 2
3550 fi
3551done
3552 done
3553IFS=$as_save_IFS
3554
3555fi
3556fi
3557AWK=$ac_cv_prog_AWK
3558if test -n "$AWK"; then
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3560$as_echo "$AWK" >&6; }
3561else
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3563$as_echo "no" >&6; }
3564fi
3565
3566
3567 test -n "$AWK" && break
3568done
3569
3570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3571$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3572set x ${MAKE-make}
3573ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3574if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3575 $as_echo_n "(cached) " >&6
3576else
3577 cat >conftest.make <<\_ACEOF
3578SHELL = /bin/sh
3579all:
3580 @echo '@@@%%%=$(MAKE)=@@@%%%'
3581_ACEOF
3582# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3583case `${MAKE-make} -f conftest.make 2>/dev/null` in
3584 *@@@%%%=?*=@@@%%%*)
3585 eval ac_cv_prog_make_${ac_make}_set=yes;;
3586 *)
3587 eval ac_cv_prog_make_${ac_make}_set=no;;
3588esac
3589rm -f conftest.make
3590fi
3591if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3593$as_echo "yes" >&6; }
3594 SET_MAKE=
3595else
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3597$as_echo "no" >&6; }
3598 SET_MAKE="MAKE=${MAKE-make}"
3599fi
3600
3601rm -rf .tst 2>/dev/null
3602mkdir .tst 2>/dev/null
3603if test -d .tst; then
3604 am__leading_dot=.
3605else
3606 am__leading_dot=_
ea54b293
TT
3607fi
3608rmdir .tst 2>/dev/null
3609
5213506e
RW
3610if test "`cd $srcdir && pwd`" != "`pwd`"; then
3611 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3612 # is not polluted with repeated "-I."
3613 am__isrc=' -I$(srcdir)'
3614 # test to see if srcdir already configured
3615 if test -f $srcdir/config.status; then
3616 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3617 fi
ea54b293
TT
3618fi
3619
3620# test whether we have cygpath
3621if test -z "$CYGPATH_W"; then
3622 if (cygpath --version) >/dev/null 2>/dev/null; then
3623 CYGPATH_W='cygpath -w'
3624 else
3625 CYGPATH_W=echo
3626 fi
3627fi
3628
3629
3630# Define the identity of the package.
3631 PACKAGE='classpath'
a1906e8b 3632 VERSION='0.99.1-pre'
ea54b293
TT
3633
3634
3635cat >>confdefs.h <<_ACEOF
3636#define PACKAGE "$PACKAGE"
3637_ACEOF
3638
3639
3640cat >>confdefs.h <<_ACEOF
3641#define VERSION "$VERSION"
3642_ACEOF
3643
3644# Some tools Automake needs.
3645
3646ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3647
3648
3649AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3650
3651
3652AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3653
3654
3655AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3656
3657
3658MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3659
ea54b293
TT
3660# We need awk for the "check" target. The system "awk" is bad on
3661# some platforms.
3662# Always define AMTAR for backward compatibility.
3663
3664AMTAR=${AMTAR-"${am_missing_run}tar"}
3665
3666
5213506e
RW
3667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3668$as_echo_n "checking how to create a ustar tar archive... " >&6; }
ea54b293
TT
3669# Loop over all known methods to create a tar archive until one works.
3670_am_tools='gnutar plaintar pax cpio none'
3671_am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3672# Do not fold the above two line into one, because Tru64 sh and
3673# Solaris sh will not grok spaces in the rhs of `-'.
3674for _am_tool in $_am_tools
3675do
3676 case $_am_tool in
3677 gnutar)
3678 for _am_tar in tar gnutar gtar;
3679 do
3680 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3681 ($_am_tar --version) >&5 2>&5
3682 ac_status=$?
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); } && break
3685 done
3686 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3687 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3688 am__untar="$_am_tar -xf -"
3689 ;;
3690 plaintar)
3691 # Must skip GNU tar: if it does not support --format= it doesn't create
3692 # ustar tarball either.
3693 (tar --version) >/dev/null 2>&1 && continue
3694 am__tar='tar chf - "$$tardir"'
3695 am__tar_='tar chf - "$tardir"'
3696 am__untar='tar xf -'
3697 ;;
3698 pax)
3699 am__tar='pax -L -x ustar -w "$$tardir"'
3700 am__tar_='pax -L -x ustar -w "$tardir"'
3701 am__untar='pax -r'
3702 ;;
3703 cpio)
3704 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3705 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3706 am__untar='cpio -i -H ustar -d'
3707 ;;
3708 none)
3709 am__tar=false
3710 am__tar_=false
3711 am__untar=false
3712 ;;
3713 esac
3714
3715 # If the value was cached, stop now. We just wanted to have am__tar
3716 # and am__untar set.
3717 test -n "${am_cv_prog_tar_ustar}" && break
3718
3719 # tar/untar a dummy directory, and stop if the command works
3720 rm -rf conftest.dir
3721 mkdir conftest.dir
3722 echo GrepMe > conftest.dir/file
3723 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3724 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3725 ac_status=$?
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); }
3728 rm -rf conftest.dir
3729 if test -s conftest.tar; then
3730 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3731 ($am__untar <conftest.tar) >&5 2>&5
3732 ac_status=$?
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); }
3735 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3736 fi
3737done
3738rm -rf conftest.dir
3739
5213506e
RW
3740if test "${am_cv_prog_tar_ustar+set}" = set; then :
3741 $as_echo_n "(cached) " >&6
ea54b293
TT
3742else
3743 am_cv_prog_tar_ustar=$_am_tool
3744fi
3745
5213506e
RW
3746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3747$as_echo "$am_cv_prog_tar_ustar" >&6; }
ea54b293
TT
3748
3749
3750
3751
3752
5213506e 3753ac_config_headers="$ac_config_headers include/config.h"
ea54b293
TT
3754
3755
3756
97b8365c
TT
3757
3758
5213506e
RW
3759# Check whether --enable-collections was given.
3760if test "${enable_collections+set}" = set; then :
3761 enableval=$enable_collections; case x"${enableval}" in
8aa540d2
MW
3762 xyes) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
3763 xno) COMPILE_COLLECTIONS=no ;;
3764 x) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
3765 *) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"${enableval}\"" ;;
3766 esac
3767else
3768 COMPILE_COLLECTIONS=no
5213506e 3769fi
8aa540d2 3770
5213506e 3771 if test "x${COMPILE_COLLECTIONS}" = xyes; then
8aa540d2
MW
3772 CREATE_COLLECTIONS_TRUE=
3773 CREATE_COLLECTIONS_FALSE='#'
3774else
3775 CREATE_COLLECTIONS_TRUE='#'
3776 CREATE_COLLECTIONS_FALSE=
3777fi
3778
3779
5213506e
RW
3780# Check whether --enable-jni was given.
3781if test "${enable_jni+set}" = set; then :
3782 enableval=$enable_jni; case "${enableval}" in
ea54b293
TT
3783 yes) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
3784 no) COMPILE_JNI=no ;;
3785 *) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
3786 esac
3787else
3788 COMPILE_JNI=yes
5213506e 3789fi
ea54b293 3790
5213506e 3791 if test "x${COMPILE_JNI}" = xyes; then
ea54b293
TT
3792 CREATE_JNI_LIBRARIES_TRUE=
3793 CREATE_JNI_LIBRARIES_FALSE='#'
3794else
3795 CREATE_JNI_LIBRARIES_TRUE='#'
3796 CREATE_JNI_LIBRARIES_FALSE=
3797fi
3798
3799
5213506e
RW
3800# Check whether --enable-core-jni was given.
3801if test "${enable_core_jni+set}" = set; then :
3802 enableval=$enable_core_jni; case "${enableval}" in
ea54b293
TT
3803 yes) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
3804 no) COMPILE_CORE_JNI=no ;;
3805 *) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
3806 esac
3807else
3808 COMPILE_CORE_JNI=yes
5213506e 3809fi
ea54b293 3810
5213506e 3811 if test "x${COMPILE_CORE_JNI}" = xyes; then
ea54b293
TT
3812 CREATE_CORE_JNI_LIBRARIES_TRUE=
3813 CREATE_CORE_JNI_LIBRARIES_FALSE='#'
3814else
3815 CREATE_CORE_JNI_LIBRARIES_TRUE='#'
3816 CREATE_CORE_JNI_LIBRARIES_FALSE=
3817fi
3818
3819
5213506e
RW
3820# Check whether --enable-default-preferences-peer was given.
3821if test "${enable_default_preferences_peer+set}" = set; then :
3822 enableval=$enable_default_preferences_peer; case "${enableval}" in
97b8365c
TT
3823 file) DEFAULT_PREFS_PEER=gnu.java.util.prefs.FileBasedFactory ;;
3824 gconf|yes|true) DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory ;;
3825 memory) DEFAULT_PREFS_PEER=gnu.java.util.prefs.MemoryBasedFactory ;;
5213506e 3826 no|false) as_fn_error "bad value '${enableval}' for --enable-default-preferences-peer" "$LINENO" 5 ;;
97b8365c
TT
3827 *) DEFAULT_PREFS_PEER=${enableval} ;;
3828 esac
3829else
3830 DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory
5213506e
RW
3831fi
3832
ac1ed908 3833
5213506e
RW
3834# Check whether --enable-gconf-peer was given.
3835if test "${enable_gconf_peer+set}" = set; then :
3836 enableval=$enable_gconf_peer; case "${enableval}" in
ac1ed908
MW
3837 yes) COMPILE_GCONF_PEER=yes ;;
3838 no) COMPILE_GCONF_PEER=no ;;
3839 *) COMPILE_GCONF_PEER=yes ;;
3840 esac
3841else
3842 COMPILE_GCONF_PEER=yes
5213506e 3843fi
ac1ed908 3844
5213506e 3845 if test "x${COMPILE_GCONF_PEER}" = xyes; then
ac1ed908
MW
3846 CREATE_GCONF_PEER_LIBRARIES_TRUE=
3847 CREATE_GCONF_PEER_LIBRARIES_FALSE='#'
3848else
3849 CREATE_GCONF_PEER_LIBRARIES_TRUE='#'
3850 CREATE_GCONF_PEER_LIBRARIES_FALSE=
3851fi
3852
3853
5213506e
RW
3854# Check whether --enable-gconf-peers was given.
3855if test "${enable_gconf_peers+set}" = set; then :
3856 enableval=$enable_gconf_peers; as_fn_error "No --enable-gconf-peers (or --disable-gconf-peers) option; you want --enable-gconf-peer" "$LINENO" 5
3857fi
3858
ac1ed908 3859
5213506e
RW
3860# Check whether --enable-gstreamer-peer was given.
3861if test "${enable_gstreamer_peer+set}" = set; then :
3862 enableval=$enable_gstreamer_peer; case "${enableval}" in
f06a83c0
MK
3863 yes) COMPILE_GSTREAMER_PEER=yes ;;
3864 no) COMPILE_GSTREAMER_PEER=no ;;
3865 *) COMPILE_GSTREAMER_PEER=default ;;
3866 esac
3867else
3868 COMPILE_GSTREAMER_PEER=default
5213506e 3869fi
f06a83c0 3870
5213506e 3871 if test "x${COMPILE_GSTREAMER_PEER}" = xyes; then
f06a83c0
MK
3872 CREATE_GSTREAMER_PEER_LIBRARIES_TRUE=
3873 CREATE_GSTREAMER_PEER_LIBRARIES_FALSE='#'
3874else
3875 CREATE_GSTREAMER_PEER_LIBRARIES_TRUE='#'
3876 CREATE_GSTREAMER_PEER_LIBRARIES_FALSE=
3877fi
3878
3879
5213506e
RW
3880# Check whether --enable-gstreamer-peers was given.
3881if test "${enable_gstreamer_peers+set}" = set; then :
3882 enableval=$enable_gstreamer_peers; as_fn_error "No --enable-gstreamer-peers (or --disable-gstreamer-peers) option; you want --enable-gstreamer-peer" "$LINENO" 5
3883fi
3884
f06a83c0 3885
5213506e
RW
3886# Check whether --enable-Werror was given.
3887if test "${enable_Werror+set}" = set; then :
3888 enableval=$enable_Werror; case "${enableval}" in
ea54b293
TT
3889 yes) ENABLE_WERROR=yes ;;
3890 no) ENABLE_WERROR=no ;;
a1906e8b 3891 *) ENABLE_WERROR=no ;;
ea54b293
TT
3892 esac
3893else
a1906e8b 3894 ENABLE_WERROR=no
5213506e
RW
3895fi
3896
4f9533c7 3897
5213506e
RW
3898# Check whether --enable-default-toolkit was given.
3899if test "${enable_default_toolkit+set}" = set; then :
3900 enableval=$enable_default_toolkit;
3901fi
ea54b293 3902
0a9649e8 3903default_toolkit=$enable_default_toolkit
ea54b293
TT
3904if test "$default_toolkit" = ""; then
3905 default_toolkit=gnu.java.awt.peer.gtk.GtkToolkit
3906fi
3907
3908
5213506e
RW
3909# Check whether --enable-xmlj was given.
3910if test "${enable_xmlj+set}" = set; then :
3911 enableval=$enable_xmlj; case "${enableval}" in
ea54b293
TT
3912 yes) COMPILE_XMLJ=yes ;;
3913 no) COMPILE_XMLJ=no ;;
3914 *) COMPILE_XMLJ=no ;;
3915 esac
3916else
3917 COMPILE_XMLJ=no
5213506e 3918fi
ea54b293 3919
5213506e 3920 if test "x${COMPILE_XMLJ}" = xyes; then
ea54b293
TT
3921 CREATE_XMLJ_LIBRARY_TRUE=
3922 CREATE_XMLJ_LIBRARY_FALSE='#'
3923else
3924 CREATE_XMLJ_LIBRARY_TRUE='#'
3925 CREATE_XMLJ_LIBRARY_FALSE=
3926fi
3927
3928
8f523f3a 3929DEPDIR="${am__leading_dot}deps"
ea54b293 3930
5213506e 3931ac_config_commands="$ac_config_commands depfiles"
ea54b293
TT
3932
3933
8f523f3a
MW
3934am_make=${MAKE-make}
3935cat > confinc << 'END'
3936am__doit:
5213506e 3937 @echo this is the am__doit target
8f523f3a
MW
3938.PHONY: am__doit
3939END
3940# If we don't find an include directive, just comment out the code.
5213506e
RW
3941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3942$as_echo_n "checking for style of include used by $am_make... " >&6; }
8f523f3a
MW
3943am__include="#"
3944am__quote=
3945_am_result=none
3946# First try GNU make style include.
3947echo "include confinc" > confmf
5213506e
RW
3948# Ignore all kinds of additional output from `make'.
3949case `$am_make -s -f confmf 2> /dev/null` in #(
3950*the\ am__doit\ target*)
3951 am__include=include
3952 am__quote=
3953 _am_result=GNU
3954 ;;
3955esac
8f523f3a
MW
3956# Now try BSD make style include.
3957if test "$am__include" = "#"; then
3958 echo '.include "confinc"' > confmf
5213506e
RW
3959 case `$am_make -s -f confmf 2> /dev/null` in #(
3960 *the\ am__doit\ target*)
3961 am__include=.include
3962 am__quote="\""
3963 _am_result=BSD
3964 ;;
3965 esac
8f523f3a 3966fi
ea54b293 3967
ea54b293 3968
5213506e
RW
3969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3970$as_echo "$_am_result" >&6; }
8f523f3a 3971rm -f confinc confmf
ea54b293 3972
5213506e
RW
3973# Check whether --enable-dependency-tracking was given.
3974if test "${enable_dependency_tracking+set}" = set; then :
3975 enableval=$enable_dependency_tracking;
3976fi
ea54b293 3977
8f523f3a
MW
3978if test "x$enable_dependency_tracking" != xno; then
3979 am_depcomp="$ac_aux_dir/depcomp"
3980 AMDEPBACKSLASH='\'
ea54b293 3981fi
5213506e 3982 if test "x$enable_dependency_tracking" != xno; then
8f523f3a
MW
3983 AMDEP_TRUE=
3984 AMDEP_FALSE='#'
ea54b293 3985else
8f523f3a
MW
3986 AMDEP_TRUE='#'
3987 AMDEP_FALSE=
ea54b293
TT
3988fi
3989
3990
8f523f3a
MW
3991ac_ext=c
3992ac_cpp='$CPP $CPPFLAGS'
3993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3995ac_compiler_gnu=$ac_cv_c_compiler_gnu
3996if test -n "$ac_tool_prefix"; then
3997 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3998set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4000$as_echo_n "checking for $ac_word... " >&6; }
4001if test "${ac_cv_prog_CC+set}" = set; then :
4002 $as_echo_n "(cached) " >&6
8f523f3a
MW
4003else
4004 if test -n "$CC"; then
4005 ac_cv_prog_CC="$CC" # Let the user override the test.
4006else
4007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008for as_dir in $PATH
4009do
4010 IFS=$as_save_IFS
4011 test -z "$as_dir" && as_dir=.
5213506e
RW
4012 for ac_exec_ext in '' $ac_executable_extensions; do
4013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8f523f3a 4014 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 4015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8f523f3a
MW
4016 break 2
4017 fi
4018done
5213506e
RW
4019 done
4020IFS=$as_save_IFS
1ea63ef8 4021
8f523f3a
MW
4022fi
4023fi
4024CC=$ac_cv_prog_CC
4025if test -n "$CC"; then
5213506e
RW
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4027$as_echo "$CC" >&6; }
1ea63ef8 4028else
5213506e
RW
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4030$as_echo "no" >&6; }
1ea63ef8
TT
4031fi
4032
5213506e 4033
8f523f3a
MW
4034fi
4035if test -z "$ac_cv_prog_CC"; then
4036 ac_ct_CC=$CC
4037 # Extract the first word of "gcc", so it can be a program name with args.
4038set dummy gcc; ac_word=$2
5213506e
RW
4039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4040$as_echo_n "checking for $ac_word... " >&6; }
4041if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4042 $as_echo_n "(cached) " >&6
ea54b293 4043else
8f523f3a
MW
4044 if test -n "$ac_ct_CC"; then
4045 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4046else
4047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048for as_dir in $PATH
4049do
4050 IFS=$as_save_IFS
4051 test -z "$as_dir" && as_dir=.
5213506e
RW
4052 for ac_exec_ext in '' $ac_executable_extensions; do
4053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8f523f3a 4054 ac_cv_prog_ac_ct_CC="gcc"
5213506e 4055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8f523f3a
MW
4056 break 2
4057 fi
4058done
5213506e
RW
4059 done
4060IFS=$as_save_IFS
ea54b293 4061
8f523f3a
MW
4062fi
4063fi
4064ac_ct_CC=$ac_cv_prog_ac_ct_CC
4065if test -n "$ac_ct_CC"; then
5213506e
RW
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4067$as_echo "$ac_ct_CC" >&6; }
ea54b293 4068else
5213506e
RW
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4070$as_echo "no" >&6; }
ea54b293
TT
4071fi
4072
5213506e
RW
4073 if test "x$ac_ct_CC" = x; then
4074 CC=""
4075 else
4076 case $cross_compiling:$ac_tool_warned in
4077yes:)
4078{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4079$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4080ac_tool_warned=yes ;;
4081esac
4082 CC=$ac_ct_CC
4083 fi
ea54b293 4084else
8f523f3a 4085 CC="$ac_cv_prog_CC"
ea54b293
TT
4086fi
4087
8f523f3a 4088if test -z "$CC"; then
5213506e
RW
4089 if test -n "$ac_tool_prefix"; then
4090 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
8f523f3a 4091set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
4092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4093$as_echo_n "checking for $ac_word... " >&6; }
4094if test "${ac_cv_prog_CC+set}" = set; then :
4095 $as_echo_n "(cached) " >&6
ea54b293 4096else
8f523f3a
MW
4097 if test -n "$CC"; then
4098 ac_cv_prog_CC="$CC" # Let the user override the test.
4099else
4100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
ea54b293
TT
4101for as_dir in $PATH
4102do
4103 IFS=$as_save_IFS
4104 test -z "$as_dir" && as_dir=.
5213506e
RW
4105 for ac_exec_ext in '' $ac_executable_extensions; do
4106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8f523f3a 4107 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 4108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ea54b293
TT
4109 break 2
4110 fi
4111done
5213506e
RW
4112 done
4113IFS=$as_save_IFS
ea54b293
TT
4114
4115fi
4116fi
e0f7b260
TT
4117CC=$ac_cv_prog_CC
4118if test -n "$CC"; then
5213506e
RW
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4120$as_echo "$CC" >&6; }
8c0633b7 4121else
5213506e
RW
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4123$as_echo "no" >&6; }
8c0633b7
TF
4124fi
4125
8c0633b7 4126
5213506e 4127 fi
8f523f3a 4128fi
e0f7b260 4129if test -z "$CC"; then
8f523f3a
MW
4130 # Extract the first word of "cc", so it can be a program name with args.
4131set dummy cc; ac_word=$2
5213506e
RW
4132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4133$as_echo_n "checking for $ac_word... " >&6; }
4134if test "${ac_cv_prog_CC+set}" = set; then :
4135 $as_echo_n "(cached) " >&6
e0f7b260
TT
4136else
4137 if test -n "$CC"; then
4138 ac_cv_prog_CC="$CC" # Let the user override the test.
4139else
8f523f3a 4140 ac_prog_rejected=no
e0f7b260
TT
4141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142for as_dir in $PATH
4143do
4144 IFS=$as_save_IFS
4145 test -z "$as_dir" && as_dir=.
5213506e
RW
4146 for ac_exec_ext in '' $ac_executable_extensions; do
4147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8f523f3a
MW
4148 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4149 ac_prog_rejected=yes
4150 continue
4151 fi
4152 ac_cv_prog_CC="cc"
5213506e 4153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
e0f7b260
TT
4154 break 2
4155 fi
4156done
5213506e
RW
4157 done
4158IFS=$as_save_IFS
e0f7b260 4159
8f523f3a
MW
4160if test $ac_prog_rejected = yes; then
4161 # We found a bogon in the path, so make sure we never use it.
4162 set dummy $ac_cv_prog_CC
4163 shift
4164 if test $# != 0; then
4165 # We chose a different compiler from the bogus one.
4166 # However, it has the same basename, so the bogon will be chosen
4167 # first if we set CC to just the basename; use the full file name.
4168 shift
4169 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4170 fi
4171fi
e0f7b260
TT
4172fi
4173fi
4174CC=$ac_cv_prog_CC
4175if test -n "$CC"; then
5213506e
RW
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4177$as_echo "$CC" >&6; }
e0f7b260 4178else
5213506e
RW
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4180$as_echo "no" >&6; }
e0f7b260
TT
4181fi
4182
5213506e 4183
e0f7b260 4184fi
8f523f3a
MW
4185if test -z "$CC"; then
4186 if test -n "$ac_tool_prefix"; then
5213506e 4187 for ac_prog in cl.exe
8f523f3a
MW
4188 do
4189 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4190set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4192$as_echo_n "checking for $ac_word... " >&6; }
4193if test "${ac_cv_prog_CC+set}" = set; then :
4194 $as_echo_n "(cached) " >&6
e0f7b260 4195else
8f523f3a
MW
4196 if test -n "$CC"; then
4197 ac_cv_prog_CC="$CC" # Let the user override the test.
e0f7b260
TT
4198else
4199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200for as_dir in $PATH
4201do
4202 IFS=$as_save_IFS
4203 test -z "$as_dir" && as_dir=.
5213506e
RW
4204 for ac_exec_ext in '' $ac_executable_extensions; do
4205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8f523f3a 4206 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
e0f7b260
TT
4208 break 2
4209 fi
4210done
5213506e
RW
4211 done
4212IFS=$as_save_IFS
e0f7b260
TT
4213
4214fi
4215fi
4216CC=$ac_cv_prog_CC
4217if test -n "$CC"; then
5213506e
RW
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4219$as_echo "$CC" >&6; }
e0f7b260 4220else
5213506e
RW
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4222$as_echo "no" >&6; }
e0f7b260
TT
4223fi
4224
5213506e 4225
e0f7b260
TT
4226 test -n "$CC" && break
4227 done
4228fi
4229if test -z "$CC"; then
4230 ac_ct_CC=$CC
5213506e 4231 for ac_prog in cl.exe
e0f7b260
TT
4232do
4233 # Extract the first word of "$ac_prog", so it can be a program name with args.
4234set dummy $ac_prog; ac_word=$2
5213506e
RW
4235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4236$as_echo_n "checking for $ac_word... " >&6; }
4237if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4238 $as_echo_n "(cached) " >&6
e0f7b260
TT
4239else
4240 if test -n "$ac_ct_CC"; then
4241 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4242else
4243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244for as_dir in $PATH
4245do
4246 IFS=$as_save_IFS
4247 test -z "$as_dir" && as_dir=.
5213506e
RW
4248 for ac_exec_ext in '' $ac_executable_extensions; do
4249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
e0f7b260 4250 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
e0f7b260
TT
4252 break 2
4253 fi
4254done
5213506e
RW
4255 done
4256IFS=$as_save_IFS
e0f7b260
TT
4257
4258fi
4259fi
4260ac_ct_CC=$ac_cv_prog_ac_ct_CC
4261if test -n "$ac_ct_CC"; then
5213506e
RW
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4263$as_echo "$ac_ct_CC" >&6; }
e0f7b260 4264else
5213506e
RW
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4266$as_echo "no" >&6; }
e0f7b260
TT
4267fi
4268
5213506e 4269
e0f7b260
TT
4270 test -n "$ac_ct_CC" && break
4271done
4272
5213506e
RW
4273 if test "x$ac_ct_CC" = x; then
4274 CC=""
4275 else
4276 case $cross_compiling:$ac_tool_warned in
4277yes:)
4278{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4279$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4280ac_tool_warned=yes ;;
4281esac
4282 CC=$ac_ct_CC
4283 fi
e0f7b260
TT
4284fi
4285
ea54b293
TT
4286fi
4287
ea54b293 4288
5213506e
RW
4289test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4290$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4291as_fn_error "no acceptable C compiler found in \$PATH
4292See \`config.log' for more details." "$LINENO" 5; }
e0f7b260 4293
ea54b293 4294# Provide some information about the compiler.
5213506e
RW
4295$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4296set X $ac_compile
4297ac_compiler=$2
4298for ac_option in --version -v -V -qversion; do
4299 { { ac_try="$ac_compiler $ac_option >&5"
4300case "(($ac_try" in
4301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4302 *) ac_try_echo=$ac_try;;
4303esac
4304eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4305$as_echo "$ac_try_echo"; } >&5
4306 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
ea54b293 4307 ac_status=$?
5213506e
RW
4308 if test -s conftest.err; then
4309 sed '10a\
4310... rest of stderr output deleted ...
4311 10q' conftest.err >conftest.er1
4312 cat conftest.er1 >&5
4313 rm -f conftest.er1 conftest.err
4314 fi
4315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4316 test $ac_status = 0; }
4317done
ea54b293 4318
5213506e 4319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3406876b
TT
4320/* end confdefs.h. */
4321
97b8365c
TT
4322int
4323main ()
4324{
4325
4326 ;
4327 return 0;
4328}
4329_ACEOF
4330# FIXME: Cleanup?
5213506e 4331if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
97b8365c
TT
4332 (eval $ac_link) 2>&5
4333 ac_status=$?
5213506e
RW
4334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4335 test $ac_status = 0; }; then :
97b8365c
TT
4336 gcc_no_link=no
4337else
4338 gcc_no_link=yes
4339fi
97b8365c
TT
4340if test x$gcc_no_link = xyes; then
4341 # Setting cross_compile will disable run tests; it will
4342 # also disable AC_CHECK_FILE but that's generally
4343 # correct if we can't link.
4344 cross_compiling=yes
4345 EXEEXT=
4346else
5213506e 4347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
97b8365c
TT
4348/* end confdefs.h. */
4349
ea54b293
TT
4350int
4351main ()
4352{
4353
4354 ;
4355 return 0;
4356}
4357_ACEOF
4358ac_clean_files_save=$ac_clean_files
5213506e 4359ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
ea54b293
TT
4360# Try to create an executable without -o first, disregard a.out.
4361# It will help us diagnose broken compilers, and finding out an intuition
4362# of exeext.
5213506e
RW
4363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4364$as_echo_n "checking for C compiler default output file name... " >&6; }
4365ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4366
4367# The possible output files:
4368ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4369
4370ac_rmfiles=
4371for ac_file in $ac_files
4372do
4373 case $ac_file in
4374 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4375 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4376 esac
4377done
4378rm -f $ac_rmfiles
4379
4380if { { ac_try="$ac_link_default"
4381case "(($ac_try" in
4382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4383 *) ac_try_echo=$ac_try;;
4384esac
4385eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4386$as_echo "$ac_try_echo"; } >&5
4387 (eval "$ac_link_default") 2>&5
4388 ac_status=$?
4389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4390 test $ac_status = 0; }; then :
4391 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4392# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4393# in a Makefile. We should not override ac_cv_exeext if it was cached,
4394# so that the user can short-circuit this test for compilers unknown to
4395# Autoconf.
4396for ac_file in $ac_files ''
ea54b293
TT
4397do
4398 test -f "$ac_file" || continue
4399 case $ac_file in
5213506e 4400 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
8c0633b7
TF
4401 ;;
4402 [ab].out )
4403 # We found the default executable, but exeext='' is most
4404 # certainly right.
4405 break;;
4406 *.* )
5213506e
RW
4407 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4408 then :; else
4409 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4410 fi
4411 # We set ac_cv_exeext here because the later test for it is not
4412 # safe: cross compilers may not add the suffix if given an `-o'
4413 # argument, so we may need to know it at that point already.
4414 # Even if this section looks crufty: it has the advantage of
4415 # actually working.
8c0633b7
TF
4416 break;;
4417 * )
4418 break;;
ea54b293
TT
4419 esac
4420done
5213506e
RW
4421test "$ac_cv_exeext" = no && ac_cv_exeext=
4422
ea54b293 4423else
5213506e
RW
4424 ac_file=''
4425fi
4426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4427$as_echo "$ac_file" >&6; }
4428if test -z "$ac_file"; then :
4429 $as_echo "$as_me: failed program was:" >&5
ea54b293
TT
4430sed 's/^/| /' conftest.$ac_ext >&5
4431
5213506e
RW
4432{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4433$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4434{ as_fn_set_status 77
4435as_fn_error "C compiler cannot create executables
4436See \`config.log' for more details." "$LINENO" 5; }; }
ea54b293 4437fi
8c0633b7 4438ac_exeext=$ac_cv_exeext
8c0633b7 4439
5213506e 4440# Check that the compiler produces executables we can run. If not, either
ea54b293 4441# the compiler is broken, or we cross compile.
5213506e
RW
4442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4443$as_echo_n "checking whether the C compiler works... " >&6; }
ea54b293
TT
4444# If not cross compiling, check that we can run a simple program.
4445if test "$cross_compiling" != yes; then
4446 if { ac_try='./$ac_file'
5213506e
RW
4447 { { case "(($ac_try" in
4448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4449 *) ac_try_echo=$ac_try;;
4450esac
4451eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4452$as_echo "$ac_try_echo"; } >&5
4453 (eval "$ac_try") 2>&5
ea54b293 4454 ac_status=$?
5213506e
RW
4455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4456 test $ac_status = 0; }; }; then
ea54b293
TT
4457 cross_compiling=no
4458 else
4459 if test "$cross_compiling" = maybe; then
4460 cross_compiling=yes
4461 else
5213506e
RW
4462 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4463$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4464as_fn_error "cannot run C compiled programs.
ea54b293 4465If you meant to cross compile, use \`--host'.
5213506e 4466See \`config.log' for more details." "$LINENO" 5; }
ea54b293
TT
4467 fi
4468 fi
4469fi
5213506e
RW
4470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4471$as_echo "yes" >&6; }
ea54b293 4472
5213506e 4473rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
8c0633b7 4474ac_clean_files=$ac_clean_files_save
5213506e 4475# Check that the compiler produces executables we can run. If not, either
8c0633b7 4476# the compiler is broken, or we cross compile.
5213506e
RW
4477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4478$as_echo_n "checking whether we are cross compiling... " >&6; }
4479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4480$as_echo "$cross_compiling" >&6; }
4481
4482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4483$as_echo_n "checking for suffix of executables... " >&6; }
4484if { { ac_try="$ac_link"
4485case "(($ac_try" in
4486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4487 *) ac_try_echo=$ac_try;;
4488esac
4489eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4490$as_echo "$ac_try_echo"; } >&5
4491 (eval "$ac_link") 2>&5
ea54b293 4492 ac_status=$?
5213506e
RW
4493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4494 test $ac_status = 0; }; then :
8c0633b7
TF
4495 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4496# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4497# work properly (i.e., refer to `conftest.exe'), while it won't with
4498# `rm'.
4499for ac_file in conftest.exe conftest conftest.*; do
4500 test -f "$ac_file" || continue
4501 case $ac_file in
5213506e 4502 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
8c0633b7 4503 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8c0633b7
TF
4504 break;;
4505 * ) break;;
4506 esac
4507done
ea54b293 4508else
5213506e
RW
4509 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4510$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4511as_fn_error "cannot compute suffix of executables: cannot compile and link
4512See \`config.log' for more details." "$LINENO" 5; }
ea54b293 4513fi
8c0633b7 4514rm -f conftest$ac_cv_exeext
5213506e
RW
4515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4516$as_echo "$ac_cv_exeext" >&6; }
ea54b293 4517
8c0633b7 4518rm -f conftest.$ac_ext
ea54b293
TT
4519EXEEXT=$ac_cv_exeext
4520ac_exeext=$EXEEXT
97b8365c 4521fi
5213506e
RW
4522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4523$as_echo_n "checking for suffix of object files... " >&6; }
4524if test "${ac_cv_objext+set}" = set; then :
4525 $as_echo_n "(cached) " >&6
ea54b293 4526else
5213506e 4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8c0633b7
TF
4528/* end confdefs.h. */
4529
4530int
4531main ()
4532{
4533
4534 ;
4535 return 0;
4536}
4537_ACEOF
4538rm -f conftest.o conftest.obj
5213506e
RW
4539if { { ac_try="$ac_compile"
4540case "(($ac_try" in
4541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4542 *) ac_try_echo=$ac_try;;
4543esac
4544eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4545$as_echo "$ac_try_echo"; } >&5
4546 (eval "$ac_compile") 2>&5
4547 ac_status=$?
4548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4549 test $ac_status = 0; }; then :
4550 for ac_file in conftest.o conftest.obj conftest.*; do
4551 test -f "$ac_file" || continue;
ea54b293 4552 case $ac_file in
5213506e 4553 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
ea54b293
TT
4554 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4555 break;;
4556 esac
4557done
4558else
5213506e 4559 $as_echo "$as_me: failed program was:" >&5
ea54b293
TT
4560sed 's/^/| /' conftest.$ac_ext >&5
4561
5213506e
RW
4562{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4563$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4564as_fn_error "cannot compute suffix of object files: cannot compile
4565See \`config.log' for more details." "$LINENO" 5; }
ea54b293 4566fi
8c0633b7 4567rm -f conftest.$ac_cv_objext conftest.$ac_ext
ea54b293 4568fi
5213506e
RW
4569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4570$as_echo "$ac_cv_objext" >&6; }
ea54b293
TT
4571OBJEXT=$ac_cv_objext
4572ac_objext=$OBJEXT
5213506e
RW
4573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4574$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4575if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4576 $as_echo_n "(cached) " >&6
ea54b293 4577else
5213506e 4578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ea54b293
TT
4579/* end confdefs.h. */
4580
4581int
4582main ()
4583{
4584#ifndef __GNUC__
4585 choke me
4586#endif
4587
4588 ;
4589 return 0;
4590}
4591_ACEOF
5213506e 4592if ac_fn_c_try_compile "$LINENO"; then :
ea54b293
TT
4593 ac_compiler_gnu=yes
4594else
5213506e 4595 ac_compiler_gnu=no
ea54b293 4596fi
5213506e 4597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e0f7b260 4598ac_cv_c_compiler_gnu=$ac_compiler_gnu
ea54b293
TT
4599
4600fi
5213506e
RW
4601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4602$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4603if test $ac_compiler_gnu = yes; then
4604 GCC=yes
4605else
4606 GCC=
4607fi
e0f7b260
TT
4608ac_test_CFLAGS=${CFLAGS+set}
4609ac_save_CFLAGS=$CFLAGS
5213506e
RW
4610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4611$as_echo_n "checking whether $CC accepts -g... " >&6; }
4612if test "${ac_cv_prog_cc_g+set}" = set; then :
4613 $as_echo_n "(cached) " >&6
4614else
4615 ac_save_c_werror_flag=$ac_c_werror_flag
4616 ac_c_werror_flag=yes
4617 ac_cv_prog_cc_g=no
4618 CFLAGS="-g"
4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ea54b293
TT
4620/* end confdefs.h. */
4621
4622int
4623main ()
4624{
4625
4626 ;
4627 return 0;
4628}
4629_ACEOF
5213506e 4630if ac_fn_c_try_compile "$LINENO"; then :
e0f7b260 4631 ac_cv_prog_cc_g=yes
ea54b293 4632else
5213506e
RW
4633 CFLAGS=""
4634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4635/* end confdefs.h. */
4636
4637int
4638main ()
4639{
4640
4641 ;
4642 return 0;
4643}
4644_ACEOF
4645if ac_fn_c_try_compile "$LINENO"; then :
4646
4647else
4648 ac_c_werror_flag=$ac_save_c_werror_flag
4649 CFLAGS="-g"
4650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4651/* end confdefs.h. */
4652
4653int
4654main ()
4655{
ea54b293 4656
5213506e
RW
4657 ;
4658 return 0;
4659}
4660_ACEOF
4661if ac_fn_c_try_compile "$LINENO"; then :
4662 ac_cv_prog_cc_g=yes
4663fi
4664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8c0633b7 4665fi
5213506e 4666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8c0633b7 4667fi
5213506e
RW
4668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4669 ac_c_werror_flag=$ac_save_c_werror_flag
4670fi
4671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4672$as_echo "$ac_cv_prog_cc_g" >&6; }
8c0633b7
TF
4673if test "$ac_test_CFLAGS" = set; then
4674 CFLAGS=$ac_save_CFLAGS
4675elif test $ac_cv_prog_cc_g = yes; then
4676 if test "$GCC" = yes; then
4677 CFLAGS="-g -O2"
4678 else
4679 CFLAGS="-g"
4680 fi
4681else
4682 if test "$GCC" = yes; then
4683 CFLAGS="-O2"
4684 else
4685 CFLAGS=
4686 fi
4687fi
5213506e
RW
4688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4689$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4690if test "${ac_cv_prog_cc_c89+set}" = set; then :
4691 $as_echo_n "(cached) " >&6
8c0633b7 4692else
5213506e 4693 ac_cv_prog_cc_c89=no
8c0633b7 4694ac_save_CC=$CC
5213506e 4695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e0f7b260 4696/* end confdefs.h. */
8c0633b7
TF
4697#include <stdarg.h>
4698#include <stdio.h>
4699#include <sys/types.h>
4700#include <sys/stat.h>
4701/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4702struct buf { int x; };
4703FILE * (*rcsopen) (struct buf *, struct stat *, int);
4704static char *e (p, i)
4705 char **p;
4706 int i;
4707{
4708 return p[i];
4709}
4710static char *f (char * (*g) (char **, int), char **p, ...)
4711{
4712 char *s;
4713 va_list v;
4714 va_start (v,p);
4715 s = g (p, va_arg (v,int));
4716 va_end (v);
4717 return s;
4718}
4719
4720/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4721 function prototypes and stuff, but not '\xHH' hex character constants.
4722 These don't provoke an error unfortunately, instead are silently treated
5213506e 4723 as 'x'. The following induces an error, until -std is added to get
8c0633b7
TF
4724 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4725 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4726 that's true only with -std. */
8c0633b7 4727int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4f9533c7 4728
5213506e
RW
4729/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4730 inside strings and character constants. */
4731#define FOO(x) 'x'
4732int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4733
8c0633b7
TF
4734int test (int i, double x);
4735struct s1 {int (*f) (int a);};
4736struct s2 {int (*f) (double a);};
4737int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4738int argc;
4739char **argv;
4f9533c7
MW
4740int
4741main ()
e0f7b260 4742{
8c0633b7 4743return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
e0f7b260
TT
4744 ;
4745 return 0;
4746}
4747_ACEOF
5213506e
RW
4748for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4749 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8c0633b7
TF
4750do
4751 CC="$ac_save_CC $ac_arg"
5213506e
RW
4752 if ac_fn_c_try_compile "$LINENO"; then :
4753 ac_cv_prog_cc_c89=$ac_arg
8c0633b7 4754fi
5213506e
RW
4755rm -f core conftest.err conftest.$ac_objext
4756 test "x$ac_cv_prog_cc_c89" != "xno" && break
8c0633b7 4757done
5213506e 4758rm -f conftest.$ac_ext
8c0633b7
TF
4759CC=$ac_save_CC
4760
4761fi
5213506e
RW
4762# AC_CACHE_VAL
4763case "x$ac_cv_prog_cc_c89" in
4764 x)
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4766$as_echo "none needed" >&6; } ;;
4767 xno)
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4769$as_echo "unsupported" >&6; } ;;
8c0633b7 4770 *)
5213506e
RW
4771 CC="$CC $ac_cv_prog_cc_c89"
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4773$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
8c0633b7 4774esac
5213506e 4775if test "x$ac_cv_prog_cc_c89" != xno; then :
8c0633b7 4776
ea54b293
TT
4777fi
4778
ea54b293
TT
4779ac_ext=c
4780ac_cpp='$CPP $CPPFLAGS'
4781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4783ac_compiler_gnu=$ac_cv_c_compiler_gnu
1ea63ef8 4784
e0f7b260 4785depcc="$CC" am_compiler_list=
1ea63ef8 4786
5213506e
RW
4787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4788$as_echo_n "checking dependency style of $depcc... " >&6; }
4789if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4790 $as_echo_n "(cached) " >&6
e0f7b260
TT
4791else
4792 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4793 # We make a subdir and do the tests there. Otherwise we can end up
4794 # making bogus files that we don't know about and never remove. For
4795 # instance it was reported that on HP-UX the gcc test will end up
4796 # making a dummy file named `D' -- because `-MD' means `put the output
4797 # in D'.
4798 mkdir conftest.dir
4799 # Copy depcomp to subdir because otherwise we won't find it if we're
4800 # using a relative directory.
4801 cp "$am_depcomp" conftest.dir
4802 cd conftest.dir
4803 # We will build objects and dependencies in a subdirectory because
4804 # it helps to detect inapplicable dependency modes. For instance
4805 # both Tru64's cc and ICC support -MD to output dependencies as a
4806 # side effect of compilation, but ICC will put the dependencies in
4807 # the current directory while Tru64 will put them in the object
4808 # directory.
4809 mkdir sub
1ea63ef8 4810
e0f7b260 4811 am_cv_CC_dependencies_compiler_type=none
ea54b293
TT
4812 if test "$am_compiler_list" = ""; then
4813 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4814 fi
5213506e
RW
4815 am__universal=false
4816 case " $depcc " in #(
4817 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4818 esac
4819
ea54b293
TT
4820 for depmode in $am_compiler_list; do
4821 # Setup a source with many dependencies, because some compilers
4822 # like to wrap large dependency lists on column 80 (with \), and
4823 # we should not choose a depcomp mode which is confused by this.
4824 #
4825 # We need to recreate these files for each test, as the compiler may
4826 # overwrite some of them when testing with obscure command lines.
4827 # This happens at least with the AIX C compiler.
4828 : > sub/conftest.c
4829 for i in 1 2 3 4 5 6; do
4830 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4831 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4832 # Solaris 8's {/usr,}/bin/sh.
4833 touch sub/conftst$i.h
4834 done
4835 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4836
5213506e
RW
4837 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4838 # mode. It turns out that the SunPro C++ compiler does not properly
4839 # handle `-M -o', and we need to detect this. Also, some Intel
4840 # versions had trouble with output in subdirs
4841 am__obj=sub/conftest.${OBJEXT-o}
4842 am__minus_obj="-o $am__obj"
ea54b293 4843 case $depmode in
5213506e
RW
4844 gcc)
4845 # This depmode causes a compiler race in universal mode.
4846 test "$am__universal" = false || continue
4847 ;;
ea54b293
TT
4848 nosideeffect)
4849 # after this tag, mechanisms are not by side-effect, so they'll
4850 # only be used when explicitly requested
4851 if test "x$enable_dependency_tracking" = xyes; then
4852 continue
4853 else
4854 break
4855 fi
4856 ;;
5213506e
RW
4857 msvisualcpp | msvcmsys)
4858 # This compiler won't grok `-c -o', but also, the minuso test has
4859 # not run yet. These depmodes are late enough in the game, and
4860 # so weak that their functioning should not be impacted.
4861 am__obj=conftest.${OBJEXT-o}
4862 am__minus_obj=
4863 ;;
ea54b293
TT
4864 none) break ;;
4865 esac
ea54b293 4866 if depmode=$depmode \
5213506e 4867 source=sub/conftest.c object=$am__obj \
ea54b293 4868 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5213506e 4869 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
ea54b293 4870 >/dev/null 2>conftest.err &&
5213506e 4871 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
ea54b293 4872 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5213506e 4873 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
ea54b293
TT
4874 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4875 # icc doesn't choke on unknown options, it will just issue warnings
4876 # or remarks (even with -Werror). So we grep stderr for any message
4877 # that says an option was ignored or not supported.
4878 # When given -MP, icc 7.0 and 7.1 complain thusly:
4879 # icc: Command line warning: ignoring option '-M'; no argument required
4880 # The diagnosis changed in icc 8.0:
4881 # icc: Command line remark: option '-MP' not supported
4882 if (grep 'ignoring option' conftest.err ||
4883 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
e0f7b260 4884 am_cv_CC_dependencies_compiler_type=$depmode
ea54b293
TT
4885 break
4886 fi
4887 fi
4888 done
4889
8f523f3a
MW
4890 cd ..
4891 rm -rf conftest.dir
4892else
4893 am_cv_CC_dependencies_compiler_type=none
4894fi
4895
4896fi
5213506e
RW
4897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4898$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
8f523f3a
MW
4899CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4900
5213506e 4901 if
8f523f3a
MW
4902 test "x$enable_dependency_tracking" != xno \
4903 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4904 am__fastdepCC_TRUE=
4905 am__fastdepCC_FALSE='#'
4906else
4907 am__fastdepCC_TRUE='#'
4908 am__fastdepCC_FALSE=
4909fi
4910
4911
4912
4913ac_ext=c
4914ac_cpp='$CPP $CPPFLAGS'
4915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4917ac_compiler_gnu=$ac_cv_c_compiler_gnu
5213506e
RW
4918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4919$as_echo_n "checking how to run the C preprocessor... " >&6; }
8f523f3a
MW
4920# On Suns, sometimes $CPP names a directory.
4921if test -n "$CPP" && test -d "$CPP"; then
4922 CPP=
4923fi
4924if test -z "$CPP"; then
5213506e
RW
4925 if test "${ac_cv_prog_CPP+set}" = set; then :
4926 $as_echo_n "(cached) " >&6
8f523f3a
MW
4927else
4928 # Double quotes because CPP needs to be expanded
4929 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4930 do
4931 ac_preproc_ok=false
4932for ac_c_preproc_warn_flag in '' yes
4933do
4934 # Use a header file that comes with gcc, so configuring glibc
4935 # with a fresh cross-compiler works.
4936 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4937 # <limits.h> exists even on freestanding compilers.
4938 # On the NeXT, cc -E runs the code through the compiler's parser,
4939 # not just through cpp. "Syntax error" is here to catch this case.
5213506e 4940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f523f3a
MW
4941/* end confdefs.h. */
4942#ifdef __STDC__
4943# include <limits.h>
4944#else
4945# include <assert.h>
4946#endif
4947 Syntax error
4948_ACEOF
5213506e 4949if ac_fn_c_try_cpp "$LINENO"; then :
8f523f3a 4950
5213506e 4951else
8f523f3a
MW
4952 # Broken: fails on valid input.
4953continue
4954fi
4955rm -f conftest.err conftest.$ac_ext
4956
5213506e 4957 # OK, works on sane cases. Now check whether nonexistent headers
8f523f3a 4958 # can be detected and how.
5213506e 4959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f523f3a
MW
4960/* end confdefs.h. */
4961#include <ac_nonexistent.h>
4962_ACEOF
5213506e 4963if ac_fn_c_try_cpp "$LINENO"; then :
8f523f3a
MW
4964 # Broken: success on invalid input.
4965continue
4966else
8f523f3a
MW
4967 # Passes both tests.
4968ac_preproc_ok=:
4969break
4970fi
4971rm -f conftest.err conftest.$ac_ext
4972
4973done
4974# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4975rm -f conftest.err conftest.$ac_ext
5213506e 4976if $ac_preproc_ok; then :
8f523f3a
MW
4977 break
4978fi
4979
4980 done
4981 ac_cv_prog_CPP=$CPP
4982
4983fi
4984 CPP=$ac_cv_prog_CPP
4985else
4986 ac_cv_prog_CPP=$CPP
4987fi
5213506e
RW
4988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4989$as_echo "$CPP" >&6; }
8f523f3a
MW
4990ac_preproc_ok=false
4991for ac_c_preproc_warn_flag in '' yes
4992do
4993 # Use a header file that comes with gcc, so configuring glibc
4994 # with a fresh cross-compiler works.
4995 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4996 # <limits.h> exists even on freestanding compilers.
4997 # On the NeXT, cc -E runs the code through the compiler's parser,
4998 # not just through cpp. "Syntax error" is here to catch this case.
5213506e 4999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f523f3a
MW
5000/* end confdefs.h. */
5001#ifdef __STDC__
5002# include <limits.h>
5003#else
5004# include <assert.h>
5005#endif
5006 Syntax error
5007_ACEOF
5213506e 5008if ac_fn_c_try_cpp "$LINENO"; then :
8f523f3a 5009
5213506e 5010else
8f523f3a
MW
5011 # Broken: fails on valid input.
5012continue
5013fi
5014rm -f conftest.err conftest.$ac_ext
5015
5213506e 5016 # OK, works on sane cases. Now check whether nonexistent headers
8f523f3a 5017 # can be detected and how.
5213506e 5018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f523f3a
MW
5019/* end confdefs.h. */
5020#include <ac_nonexistent.h>
5021_ACEOF
5213506e 5022if ac_fn_c_try_cpp "$LINENO"; then :
8f523f3a
MW
5023 # Broken: success on invalid input.
5024continue
5025else
8f523f3a
MW
5026 # Passes both tests.
5027ac_preproc_ok=:
5028break
5029fi
5030rm -f conftest.err conftest.$ac_ext
5031
5032done
5033# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5034rm -f conftest.err conftest.$ac_ext
5213506e
RW
5035if $ac_preproc_ok; then :
5036
8f523f3a 5037else
5213506e
RW
5038 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5039$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5040as_fn_error "C preprocessor \"$CPP\" fails sanity check
5041See \`config.log' for more details." "$LINENO" 5; }
8f523f3a
MW
5042fi
5043
5044ac_ext=c
5045ac_cpp='$CPP $CPPFLAGS'
5046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5048ac_compiler_gnu=$ac_cv_c_compiler_gnu
5049
5050
5213506e
RW
5051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5052$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5053if test "${ac_cv_path_GREP+set}" = set; then :
5054 $as_echo_n "(cached) " >&6
8f523f3a 5055else
5213506e
RW
5056 if test -z "$GREP"; then
5057 ac_path_GREP_found=false
5058 # Loop through the user's path and test for each of PROGNAME-LIST
5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5061do
5062 IFS=$as_save_IFS
5063 test -z "$as_dir" && as_dir=.
5064 for ac_prog in grep ggrep; do
5065 for ac_exec_ext in '' $ac_executable_extensions; do
5066 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5067 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5068# Check for GNU ac_path_GREP and select it if it is found.
5069 # Check for GNU $ac_path_GREP
5070case `"$ac_path_GREP" --version 2>&1` in
5071*GNU*)
5072 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5073*)
5074 ac_count=0
5075 $as_echo_n 0123456789 >"conftest.in"
5076 while :
5077 do
5078 cat "conftest.in" "conftest.in" >"conftest.tmp"
5079 mv "conftest.tmp" "conftest.in"
5080 cp "conftest.in" "conftest.nl"
5081 $as_echo 'GREP' >> "conftest.nl"
5082 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5083 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5084 as_fn_arith $ac_count + 1 && ac_count=$as_val
5085 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5086 # Best one so far, save it but keep looking for a better one
5087 ac_cv_path_GREP="$ac_path_GREP"
5088 ac_path_GREP_max=$ac_count
8f523f3a 5089 fi
5213506e
RW
5090 # 10*(2^10) chars as input seems more than enough
5091 test $ac_count -gt 10 && break
5092 done
5093 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5094esac
8f523f3a 5095
5213506e
RW
5096 $ac_path_GREP_found && break 3
5097 done
5098 done
5099 done
5100IFS=$as_save_IFS
5101 if test -z "$ac_cv_path_GREP"; then
5102 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5103 fi
8f523f3a 5104else
5213506e
RW
5105 ac_cv_path_GREP=$GREP
5106fi
8f523f3a 5107
8f523f3a 5108fi
5213506e
RW
5109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5110$as_echo "$ac_cv_path_GREP" >&6; }
5111 GREP="$ac_cv_path_GREP"
8f523f3a 5112
5213506e
RW
5113
5114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5115$as_echo_n "checking for egrep... " >&6; }
5116if test "${ac_cv_path_EGREP+set}" = set; then :
5117 $as_echo_n "(cached) " >&6
5118else
5119 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5120 then ac_cv_path_EGREP="$GREP -E"
5121 else
5122 if test -z "$EGREP"; then
5123 ac_path_EGREP_found=false
5124 # Loop through the user's path and test for each of PROGNAME-LIST
5125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5127do
5128 IFS=$as_save_IFS
5129 test -z "$as_dir" && as_dir=.
5130 for ac_prog in egrep; do
5131 for ac_exec_ext in '' $ac_executable_extensions; do
5132 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5133 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5134# Check for GNU ac_path_EGREP and select it if it is found.
5135 # Check for GNU $ac_path_EGREP
5136case `"$ac_path_EGREP" --version 2>&1` in
5137*GNU*)
5138 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5139*)
5140 ac_count=0
5141 $as_echo_n 0123456789 >"conftest.in"
5142 while :
5143 do
5144 cat "conftest.in" "conftest.in" >"conftest.tmp"
5145 mv "conftest.tmp" "conftest.in"
5146 cp "conftest.in" "conftest.nl"
5147 $as_echo 'EGREP' >> "conftest.nl"
5148 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5149 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5150 as_fn_arith $ac_count + 1 && ac_count=$as_val
5151 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5152 # Best one so far, save it but keep looking for a better one
5153 ac_cv_path_EGREP="$ac_path_EGREP"
5154 ac_path_EGREP_max=$ac_count
5155 fi
5156 # 10*(2^10) chars as input seems more than enough
5157 test $ac_count -gt 10 && break
5158 done
5159 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5160esac
5161
5162 $ac_path_EGREP_found && break 3
5163 done
5164 done
5165 done
5166IFS=$as_save_IFS
5167 if test -z "$ac_cv_path_EGREP"; then
5168 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5169 fi
5170else
5171 ac_cv_path_EGREP=$EGREP
5172fi
5173
5174 fi
5175fi
5176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5177$as_echo "$ac_cv_path_EGREP" >&6; }
5178 EGREP="$ac_cv_path_EGREP"
5179
5180
5181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5182$as_echo_n "checking for ANSI C header files... " >&6; }
5183if test "${ac_cv_header_stdc+set}" = set; then :
5184 $as_echo_n "(cached) " >&6
5185else
5186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5187/* end confdefs.h. */
5188#include <stdlib.h>
5189#include <stdarg.h>
5190#include <string.h>
5191#include <float.h>
5192
5193int
5194main ()
5195{
5196
5197 ;
5198 return 0;
5199}
8f523f3a 5200_ACEOF
5213506e
RW
5201if ac_fn_c_try_compile "$LINENO"; then :
5202 ac_cv_header_stdc=yes
5203else
5204 ac_cv_header_stdc=no
5205fi
5206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5207
5208if test $ac_cv_header_stdc = yes; then
5209 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f523f3a
MW
5211/* end confdefs.h. */
5212#include <string.h>
5213
5214_ACEOF
5215if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
5216 $EGREP "memchr" >/dev/null 2>&1; then :
5217
8f523f3a
MW
5218else
5219 ac_cv_header_stdc=no
5220fi
5221rm -f conftest*
5222
5223fi
5224
5225if test $ac_cv_header_stdc = yes; then
5226 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5213506e 5227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f523f3a
MW
5228/* end confdefs.h. */
5229#include <stdlib.h>
5230
5231_ACEOF
5232if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
5233 $EGREP "free" >/dev/null 2>&1; then :
5234
8f523f3a
MW
5235else
5236 ac_cv_header_stdc=no
5237fi
5238rm -f conftest*
5239
5240fi
5241
5242if test $ac_cv_header_stdc = yes; then
5243 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5213506e 5244 if test "$cross_compiling" = yes; then :
8f523f3a
MW
5245 :
5246else
5213506e 5247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f523f3a
MW
5248/* end confdefs.h. */
5249#include <ctype.h>
5213506e 5250#include <stdlib.h>
8f523f3a
MW
5251#if ((' ' & 0x0FF) == 0x020)
5252# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5253# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5254#else
5255# define ISLOWER(c) \
5256 (('a' <= (c) && (c) <= 'i') \
5257 || ('j' <= (c) && (c) <= 'r') \
5258 || ('s' <= (c) && (c) <= 'z'))
5259# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5260#endif
5261
5262#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5263int
5264main ()
5265{
5266 int i;
5267 for (i = 0; i < 256; i++)
5268 if (XOR (islower (i), ISLOWER (i))
5269 || toupper (i) != TOUPPER (i))
5213506e
RW
5270 return 2;
5271 return 0;
8f523f3a
MW
5272}
5273_ACEOF
5213506e 5274if ac_fn_c_try_run "$LINENO"; then :
8f523f3a 5275
5213506e
RW
5276else
5277 ac_cv_header_stdc=no
8f523f3a 5278fi
5213506e
RW
5279rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5280 conftest.$ac_objext conftest.beam conftest.$ac_ext
8f523f3a 5281fi
5213506e 5282
8f523f3a
MW
5283fi
5284fi
5213506e
RW
5285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5286$as_echo "$ac_cv_header_stdc" >&6; }
8f523f3a
MW
5287if test $ac_cv_header_stdc = yes; then
5288
5213506e 5289$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8f523f3a
MW
5290
5291fi
5292
5293# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8f523f3a
MW
5294for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5295 inttypes.h stdint.h unistd.h
5213506e
RW
5296do :
5297 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5298ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5299"
5300eval as_val=\$$as_ac_Header
5301 if test "x$as_val" = x""yes; then :
8f523f3a 5302 cat >>confdefs.h <<_ACEOF
5213506e 5303#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8f523f3a
MW
5304_ACEOF
5305
5306fi
5307
5308done
5309
5310
5213506e
RW
5311# Check whether --enable-alsa was given.
5312if test "${enable_alsa+set}" = set; then :
5313 enableval=$enable_alsa; case "${enableval}" in
8f523f3a
MW
5314 yes) COMPILE_ALSA=yes ;;
5315 no) COMPILE_ALSA=no ;;
5316 *) COMPILE_ALSA=yes ;;
5317 esac
5318else
5213506e
RW
5319 for ac_header in alsa/asoundlib.h
5320do :
5321 ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
5322if test "x$ac_cv_header_alsa_asoundlib_h" = x""yes; then :
8f523f3a 5323 cat >>confdefs.h <<_ACEOF
5213506e 5324#define HAVE_ALSA_ASOUNDLIB_H 1
8f523f3a 5325_ACEOF
5213506e
RW
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_seq_open in -lasound" >&5
5327$as_echo_n "checking for snd_seq_open in -lasound... " >&6; }
5328if test "${ac_cv_lib_asound_snd_seq_open+set}" = set; then :
5329 $as_echo_n "(cached) " >&6
f860c253
AG
5330else
5331 ac_check_lib_save_LIBS=$LIBS
5332LIBS="-lasound $LIBS"
97b8365c 5333if test x$gcc_no_link = xyes; then
5213506e 5334 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
97b8365c 5335fi
5213506e 5336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f860c253
AG
5337/* end confdefs.h. */
5338
5213506e
RW
5339/* Override any GCC internal prototype to avoid an error.
5340 Use char because int might match the return type of a GCC
5341 builtin and then its argument prototype would still apply. */
f860c253
AG
5342#ifdef __cplusplus
5343extern "C"
5344#endif
f860c253
AG
5345char snd_seq_open ();
5346int
5347main ()
5348{
5213506e 5349return snd_seq_open ();
f860c253
AG
5350 ;
5351 return 0;
5352}
5353_ACEOF
5213506e 5354if ac_fn_c_try_link "$LINENO"; then :
f860c253
AG
5355 ac_cv_lib_asound_snd_seq_open=yes
5356else
5213506e 5357 ac_cv_lib_asound_snd_seq_open=no
f860c253 5358fi
5213506e
RW
5359rm -f core conftest.err conftest.$ac_objext \
5360 conftest$ac_exeext conftest.$ac_ext
f860c253
AG
5361LIBS=$ac_check_lib_save_LIBS
5362fi
5213506e
RW
5363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_seq_open" >&5
5364$as_echo "$ac_cv_lib_asound_snd_seq_open" >&6; }
5365if test "x$ac_cv_lib_asound_snd_seq_open" = x""yes; then :
f860c253
AG
5366 COMPILE_ALSA=yes
5367else
5368 COMPILE_ALSA=no
5369fi
5370
8f523f3a
MW
5371else
5372 COMPILE_ALSA=no
5373fi
5374
5375done
5376
5213506e 5377fi
8f523f3a 5378
5213506e 5379 if test "x${COMPILE_ALSA}" = xyes; then
8f523f3a
MW
5380 CREATE_ALSA_LIBRARIES_TRUE=
5381 CREATE_ALSA_LIBRARIES_FALSE='#'
5382else
5383 CREATE_ALSA_LIBRARIES_TRUE='#'
5384 CREATE_ALSA_LIBRARIES_FALSE=
5385fi
5386
5387
5213506e
RW
5388# Check whether --enable-dssi was given.
5389if test "${enable_dssi+set}" = set; then :
5390 enableval=$enable_dssi; case "${enableval}" in
8f523f3a
MW
5391 yes) COMPILE_DSSI=yes ;;
5392 no) COMPILE_DSSI=no ;;
5393 *) COMPILE_DSSI=yes ;;
5394 esac
5395else
3db2c087 5396 COMPILE_DSSI=no
5213506e
RW
5397 for ac_header in dssi.h
5398do :
5399 ac_fn_c_check_header_mongrel "$LINENO" "dssi.h" "ac_cv_header_dssi_h" "$ac_includes_default"
5400if test "x$ac_cv_header_dssi_h" = x""yes; then :
5401 cat >>confdefs.h <<_ACEOF
5402#define HAVE_DSSI_H 1
8f523f3a 5403_ACEOF
5213506e
RW
5404
5405 for ac_header in jack/jack.h
5406do :
5407 ac_fn_c_check_header_mongrel "$LINENO" "jack/jack.h" "ac_cv_header_jack_jack_h" "$ac_includes_default"
5408if test "x$ac_cv_header_jack_jack_h" = x""yes; then :
5409 cat >>confdefs.h <<_ACEOF
5410#define HAVE_JACK_JACK_H 1
8f523f3a 5411_ACEOF
5213506e
RW
5412 COMPILE_DSSI=yes
5413fi
5414
5415done
8f523f3a 5416
8f523f3a 5417fi
8f523f3a 5418
5213506e
RW
5419done
5420
8f523f3a 5421fi
8f523f3a 5422
5213506e
RW
5423 if test "x${COMPILE_DSSI}" = xyes; then
5424 CREATE_DSSI_LIBRARIES_TRUE=
5425 CREATE_DSSI_LIBRARIES_FALSE='#'
5426else
5427 CREATE_DSSI_LIBRARIES_TRUE='#'
5428 CREATE_DSSI_LIBRARIES_FALSE=
8f523f3a 5429fi
8f523f3a 5430
5213506e
RW
5431
5432# Check whether --enable-gtk-peer was given.
5433if test "${enable_gtk_peer+set}" = set; then :
5434 enableval=$enable_gtk_peer; case "${enableval}" in
5435 yes) COMPILE_GTK_PEER=yes ;;
5436 no) COMPILE_GTK_PEER=no ;;
5437 *) COMPILE_GTK_PEER=yes ;;
5438 esac
8f523f3a 5439else
5213506e 5440 COMPILE_GTK_PEER=yes
8f523f3a 5441fi
8f523f3a 5442
5213506e
RW
5443 if test "x${COMPILE_GTK_PEER}" = xyes; then
5444 CREATE_GTK_PEER_LIBRARIES_TRUE=
5445 CREATE_GTK_PEER_LIBRARIES_FALSE='#'
5446else
5447 CREATE_GTK_PEER_LIBRARIES_TRUE='#'
5448 CREATE_GTK_PEER_LIBRARIES_FALSE=
8f523f3a 5449fi
3db2c087
TT
5450
5451
5213506e
RW
5452# Check whether --enable-gtk-peers was given.
5453if test "${enable_gtk_peers+set}" = set; then :
5454 enableval=$enable_gtk_peers; as_fn_error "No --enable-gtk-peers (or --disable-gtk-peers) option; you want --enable-gtk-peer" "$LINENO" 5
3db2c087 5455fi
5213506e
RW
5456
5457
5458# Check whether --enable-qt-peer was given.
5459if test "${enable_qt_peer+set}" = set; then :
5460 enableval=$enable_qt_peer; case "${enableval}" in
5461 yes) COMPILE_QT_PEER=yes ;;
5462 no) COMPILE_QT_PEER=no ;;
5463 *) COMPILE_QT_PEER=yes ;;
5464 esac
3db2c087 5465else
5213506e
RW
5466 COMPILE_QT_PEER=no
5467fi
3db2c087 5468
5213506e
RW
5469 if test "x${COMPILE_QT_PEER}" = xyes; then
5470 CREATE_QT_PEER_LIBRARIES_TRUE=
5471 CREATE_QT_PEER_LIBRARIES_FALSE='#'
5472else
5473 CREATE_QT_PEER_LIBRARIES_TRUE='#'
5474 CREATE_QT_PEER_LIBRARIES_FALSE=
8f523f3a
MW
5475fi
5476
5477
5213506e
RW
5478# Check whether --enable-plugin was given.
5479if test "${enable_plugin+set}" = set; then :
5480 enableval=$enable_plugin; case "${enableval}" in
02440ca4
TF
5481 yes) COMPILE_PLUGIN=yes ;;
5482 no) COMPILE_PLUGIN=no ;;
5483 *) COMPILE_PLUGIN=yes ;;
5484 esac
5485else
729530c0 5486 COMPILE_PLUGIN=no
5213506e 5487fi
02440ca4 5488
5213506e 5489 if test "x${COMPILE_PLUGIN}" = xyes; then
02440ca4
TF
5490 CREATE_PLUGIN_TRUE=
5491 CREATE_PLUGIN_FALSE='#'
5492else
5493 CREATE_PLUGIN_TRUE='#'
5494 CREATE_PLUGIN_FALSE=
5495fi
5496
8f523f3a 5497
5213506e
RW
5498# Check whether --enable-gmp was given.
5499if test "${enable_gmp+set}" = set; then :
5500 enableval=$enable_gmp; case "${enableval}" in
cd6d4007
MK
5501 yes|true) COMPILE_GMP=yes ;;
5502 no|false) COMPILE_GMP=no ;;
5503 *) COMPILE_GMP=yes ;;
5504 esac
5505else
5506 COMPILE_GMP=yes
5213506e
RW
5507fi
5508
cd6d4007 5509
5213506e
RW
5510# Check whether --enable-gjdoc was given.
5511if test "${enable_gjdoc+set}" = set; then :
5512 enableval=$enable_gjdoc; case "${enableval}" in
cd6d4007
MK
5513 yes) COMPILE_GJDOC=yes ;;
5514 no) COMPILE_GJDOC=no ;;
5515 *) COMPILE_GJDOC=yes ;;
5516 esac
5517else
5518 COMPILE_GJDOC=yes
5213506e 5519fi
cd6d4007 5520
5213506e 5521 if test "x${COMPILE_GJDOC}" = xyes; then
cd6d4007
MK
5522 CREATE_GJDOC_TRUE=
5523 CREATE_GJDOC_FALSE='#'
5524else
5525 CREATE_GJDOC_TRUE='#'
5526 CREATE_GJDOC_FALSE=
5527fi
5528
5529
4623df01
MM
5530case ${host_alias} in
5531 "") host_noncanonical=${build_noncanonical} ;;
5532 *) host_noncanonical=${host_alias} ;;
5533esac
5534case ${target_alias} in
5535 "") target_noncanonical=${host_noncanonical} ;;
5536 *) target_noncanonical=${target_alias} ;;
5537esac
5538
5539
5540# Check whether --enable-version-specific-runtime-libs was given.
5541if test "${enable_version_specific_runtime_libs+set}" = set; then :
5542 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
5543 yes) version_specific_libs=yes ;;
5544 no) version_specific_libs=no ;;
5545 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
5546 esac
5547else
5548 version_specific_libs=no
5549
5550fi
5551
8f523f3a 5552
4623df01
MM
5553 case ${version_specific_libs} in
5554 yes)
5555 # Need the gcc compiler version to know where to install libraries
5556 # and header files if --enable-version-specific-runtime-libs option
5557 # is selected.
5558 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
5559 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
5560 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
5561 toolexeclibdir=$toolexecmainlibdir
5562 ;;
5563 no)
5564 if test -n "$with_cross_host" &&
5565 test x"$with_cross_host" != x"no"; then
5566 # Install a library built with a cross compiler in tooldir, not libdir.
5567 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
5568 toolexecmainlibdir='$(toolexecdir)/lib'
5569 else
5570 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
5571 toolexecmainlibdir='$(libdir)'
5572 fi
5573 multi_os_directory=`$CC -print-multi-os-directory`
5574 case $multi_os_directory in
5575 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
5576 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
5577 esac
5578 ;;
eee96b1b
MK
5579 esac
5580
5581
5582
5583
4623df01
MM
5584
5585
5213506e
RW
5586# Check whether --with-native-libdir was given.
5587if test "${with_native_libdir+set}" = set; then :
5588 withval=$with_native_libdir;
4f9533c7 5589 nativeexeclibdir=${withval}
8f523f3a
MW
5590
5591else
5592
50e47dba 5593 nativeexeclibdir='${toolexeclibdir}/gcj-'`cat ${srcdir}/../../gcc/BASE-VER`-`awk -F: '/^[^#].*:/ { print $1 }' ${srcdir}/../libtool-version`
8f523f3a 5594
5213506e 5595fi
8f523f3a
MW
5596
5597
5598
8f523f3a 5599
8c0633b7 5600
5213506e
RW
5601# Check whether --with-glibj-dir was given.
5602if test "${with_glibj_dir+set}" = set; then :
5603 withval=$with_glibj_dir;
8f523f3a
MW
5604 glibjdir=${withval}
5605
5606else
5607
5608 glibjdir='${datadir}/${PACKAGE}'
5609
5213506e 5610fi
8f523f3a
MW
5611
5612
5613
02440ca4 5614
02440ca4 5615
5213506e
RW
5616# Check whether --with-antlr-jar was given.
5617if test "${with_antlr_jar+set}" = set; then :
5618 withval=$with_antlr_jar;
cd6d4007 5619 ANTLR_JAR=$withval
02440ca4
TF
5620
5621else
5622
cd6d4007 5623 ANTLR_JAR="$ANTLR_JAR"
02440ca4 5624
5213506e
RW
5625fi
5626
02440ca4 5627
5213506e
RW
5628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to regenerate the headers" >&5
5629$as_echo_n "checking whether to regenerate the headers... " >&6; }
5630# Check whether --enable-regen-headers was given.
5631if test "${enable_regen_headers+set}" = set; then :
5632 enableval=$enable_regen_headers; case "${enableval}" in
8f523f3a
MW
5633 yes) REGENERATE_JNI_HEADERS=yes ;;
5634 no) REGENERATE_JNI_HEADERS=no ;;
e0441a5b 5635 *) REGENERATE_JNI_HEADERS=yes ;;
8f523f3a
MW
5636 esac
5637else
cd6d4007 5638 if test -e ${srcdir}/include/java_lang_VMSystem.h; then
e0441a5b
MK
5639 REGENERATE_JNI_HEADERS=no ;
5640 else
5641 REGENERATE_JNI_HEADERS=yes ;
5642 fi
5213506e 5643fi
8f523f3a 5644
5213506e
RW
5645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${REGENERATE_JNI_HEADERS}" >&5
5646$as_echo "${REGENERATE_JNI_HEADERS}" >&6; }
5647 if test "x${REGENERATE_JNI_HEADERS}" = xyes; then
8f523f3a
MW
5648 CREATE_JNI_HEADERS_TRUE=
5649 CREATE_JNI_HEADERS_FALSE='#'
ea54b293 5650else
8f523f3a
MW
5651 CREATE_JNI_HEADERS_TRUE='#'
5652 CREATE_JNI_HEADERS_FALSE=
ea54b293
TT
5653fi
5654
8f523f3a 5655
5213506e
RW
5656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to regenerate the GJDoc parser" >&5
5657$as_echo_n "checking whether to regenerate the GJDoc parser... " >&6; }
5658# Check whether --enable-regen-gjdoc-parser was given.
5659if test "${enable_regen_gjdoc_parser+set}" = set; then :
5660 enableval=$enable_regen_gjdoc_parser; case "${enableval}" in
cd6d4007
MK
5661 yes) REGENERATE_GJDOC_PARSER=yes ;;
5662 no) REGENERATE_GJDOC_PARSER=no ;;
5663 *) REGENERATE_GJDOC_PARSER=yes ;;
5664 esac
5665else
5666 if test -e ${srcdir}/tools/generated/gnu/classpath/tools/gjdoc/expr/JavaLexer.java; then
5667 REGENERATE_GJDOC_PARSER=no ;
5668 else
5669 REGENERATE_GJDOC_PARSER=yes ;
5670 fi
5213506e 5671fi
cd6d4007 5672
5213506e
RW
5673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${REGENERATE_GJDOC_PARSER}" >&5
5674$as_echo "${REGENERATE_GJDOC_PARSER}" >&6; }
5675 if test "x${REGENERATE_GJDOC_PARSER}" = xyes; then
cd6d4007
MK
5676 CREATE_GJDOC_PARSER_TRUE=
5677 CREATE_GJDOC_PARSER_FALSE='#'
5678else
5679 CREATE_GJDOC_PARSER_TRUE='#'
5680 CREATE_GJDOC_PARSER_FALSE=
5681fi
5682
5683
5213506e
RW
5684# Check whether --enable-tool-wrappers was given.
5685if test "${enable_tool_wrappers+set}" = set; then :
5686 enableval=$enable_tool_wrappers; case x"${enableval}" in
97b8365c
TT
5687 xyes)
5688 COMPILE_WRAPPERS=yes;
5213506e
RW
5689 for ac_header in ltdl.h
5690do :
5691 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
5692if test "x$ac_cv_header_ltdl_h" = x""yes; then :
97b8365c 5693 cat >>confdefs.h <<_ACEOF
5213506e 5694#define HAVE_LTDL_H 1
97b8365c 5695_ACEOF
02440ca4 5696
ea54b293 5697else
5213506e 5698 as_fn_error "cannot find ltdl.h" "$LINENO" 5
ea54b293 5699fi
ea54b293 5700
02440ca4 5701done
ea54b293 5702
5213506e
RW
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlopen in -lltdl" >&5
5704$as_echo_n "checking for lt_dlopen in -lltdl... " >&6; }
5705if test "${ac_cv_lib_ltdl_lt_dlopen+set}" = set; then :
5706 $as_echo_n "(cached) " >&6
1ea63ef8 5707else
97b8365c
TT
5708 ac_check_lib_save_LIBS=$LIBS
5709LIBS="-lltdl $LIBS"
5710if test x$gcc_no_link = xyes; then
5213506e 5711 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
97b8365c 5712fi
5213506e 5713cat confdefs.h - <<_ACEOF >conftest.$ac_ext
02440ca4 5714/* end confdefs.h. */
1ea63ef8 5715
5213506e
RW
5716/* Override any GCC internal prototype to avoid an error.
5717 Use char because int might match the return type of a GCC
5718 builtin and then its argument prototype would still apply. */
97b8365c
TT
5719#ifdef __cplusplus
5720extern "C"
5721#endif
97b8365c 5722char lt_dlopen ();
02440ca4
TF
5723int
5724main ()
5725{
5213506e 5726return lt_dlopen ();
02440ca4
TF
5727 ;
5728 return 0;
5729}
5730_ACEOF
5213506e 5731if ac_fn_c_try_link "$LINENO"; then :
97b8365c 5732 ac_cv_lib_ltdl_lt_dlopen=yes
02440ca4 5733else
5213506e 5734 ac_cv_lib_ltdl_lt_dlopen=no
02440ca4 5735fi
5213506e
RW
5736rm -f core conftest.err conftest.$ac_objext \
5737 conftest$ac_exeext conftest.$ac_ext
97b8365c 5738LIBS=$ac_check_lib_save_LIBS
02440ca4 5739fi
5213506e
RW
5740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlopen" >&5
5741$as_echo "$ac_cv_lib_ltdl_lt_dlopen" >&6; }
5742if test "x$ac_cv_lib_ltdl_lt_dlopen" = x""yes; then :
97b8365c
TT
5743 cat >>confdefs.h <<_ACEOF
5744#define HAVE_LIBLTDL 1
02440ca4 5745_ACEOF
e0f7b260 5746
97b8365c 5747 LIBS="-lltdl $LIBS"
1ea63ef8 5748
02440ca4 5749else
5213506e 5750 as_fn_error "cannot find libltdl" "$LINENO" 5
1ea63ef8 5751fi
97b8365c
TT
5752
5753 ;;
5754 xno) COMPILE_WRAPPERS=no ;;
5755 x) COMPILE_WRAPPERS=yes ;;
5756 *) COMPILE_WRAPPERS=yes ;;
5757 esac
e0f7b260 5758else
97b8365c 5759 COMPILE_WRAPPERS=no
5213506e 5760fi
97b8365c 5761
5213506e 5762 if test "x${COMPILE_WRAPPERS}" = xyes; then
97b8365c
TT
5763 CREATE_WRAPPERS_TRUE=
5764 CREATE_WRAPPERS_FALSE='#'
5765else
5766 CREATE_WRAPPERS_TRUE='#'
5767 CREATE_WRAPPERS_FALSE=
1ea63ef8 5768fi
1ea63ef8 5769
97b8365c 5770
5213506e
RW
5771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5772$as_echo_n "checking whether ln -s works... " >&6; }
97b8365c
TT
5773LN_S=$as_ln_s
5774if test "$LN_S" = "ln -s"; then
5213506e
RW
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5776$as_echo "yes" >&6; }
1ea63ef8 5777else
5213506e
RW
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5779$as_echo "no, using $LN_S" >&6; }
1ea63ef8 5780fi
1ea63ef8 5781
02440ca4 5782
02440ca4 5783
97b8365c 5784
5213506e
RW
5785# Check whether --enable-static was given.
5786if test "${enable_static+set}" = set; then :
5787 enableval=$enable_static; p=${PACKAGE-default}
86e44bd7
L
5788 case $enableval in
5789 yes) enable_static=yes ;;
5790 no) enable_static=no ;;
5791 *)
5792 enable_static=no
5793 # Look at the argument we got. We use all the common list separators.
5794 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5795 for pkg in $enableval; do
5796 IFS="$lt_save_ifs"
5797 if test "X$pkg" = "X$p"; then
5798 enable_static=yes
5799 fi
5800 done
5801 IFS="$lt_save_ifs"
5802 ;;
5803 esac
97b8365c
TT
5804else
5805 enable_static=no
5213506e
RW
5806fi
5807
86e44bd7
L
5808
5809
5810
5811
5812
5813
5814
5815
0da7a284
PG
5816case `pwd` in
5817 *\ * | *\ *)
5213506e
RW
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5819$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
0da7a284 5820esac
86e44bd7
L
5821
5822
86e44bd7 5823
43e02a8a
RW
5824macro_version='2.2.7a'
5825macro_revision='1.3134'
86e44bd7
L
5826
5827
5828
5829
5830
5831
97b8365c 5832
86e44bd7
L
5833
5834
5835
5836
5837
5838
0da7a284 5839ltmain="$ac_aux_dir/ltmain.sh"
86e44bd7 5840
43e02a8a
RW
5841# Backslashify metacharacters that are still active within
5842# double-quoted strings.
5843sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5844
5845# Same as above, but do not quote variable references.
5846double_quote_subst='s/\(["`\\]\)/\\\1/g'
5847
5848# Sed substitution to delay expansion of an escaped shell variable in a
5849# double_quote_subst'ed string.
5850delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5851
5852# Sed substitution to delay expansion of an escaped single quote.
5853delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5854
5855# Sed substitution to avoid accidental globbing in evaled expressions
5856no_glob_subst='s/\*/\\\*/g'
5857
5858ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5859ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5860ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5861
5862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5863$as_echo_n "checking how to print strings... " >&6; }
5864# Test print first, because it will be a builtin if present.
5865if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5866 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5867 ECHO='print -r --'
5868elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5869 ECHO='printf %s\n'
5870else
5871 # Use this function as a fallback that always works.
5872 func_fallback_echo ()
5873 {
5874 eval 'cat <<_LTECHO_EOF
5875$1
5876_LTECHO_EOF'
5877 }
5878 ECHO='func_fallback_echo'
5879fi
5880
5881# func_echo_all arg...
5882# Invoke $ECHO with all args, space-separated.
5883func_echo_all ()
5884{
5885 $ECHO ""
5886}
5887
5888case "$ECHO" in
5889 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5890$as_echo "printf" >&6; } ;;
5891 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5892$as_echo "print -r" >&6; } ;;
5893 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5894$as_echo "cat" >&6; } ;;
5895esac
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5213506e
RW
5910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5911$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5912if test "${ac_cv_path_SED+set}" = set; then :
5913 $as_echo_n "(cached) " >&6
86e44bd7 5914else
5213506e
RW
5915 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5916 for ac_i in 1 2 3 4 5 6 7; do
5917 ac_script="$ac_script$as_nl$ac_script"
5918 done
5919 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5920 { ac_script=; unset ac_script;}
5921 if test -z "$SED"; then
5922 ac_path_SED_found=false
5923 # Loop through the user's path and test for each of PROGNAME-LIST
5924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
86e44bd7
L
5925for as_dir in $PATH
5926do
5927 IFS=$as_save_IFS
5928 test -z "$as_dir" && as_dir=.
5213506e 5929 for ac_prog in sed gsed; do
86e44bd7 5930 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e
RW
5931 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5932 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5933# Check for GNU ac_path_SED and select it if it is found.
5934 # Check for GNU $ac_path_SED
5935case `"$ac_path_SED" --version 2>&1` in
5936*GNU*)
5937 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5938*)
5939 ac_count=0
5940 $as_echo_n 0123456789 >"conftest.in"
5941 while :
5942 do
5943 cat "conftest.in" "conftest.in" >"conftest.tmp"
5944 mv "conftest.tmp" "conftest.in"
5945 cp "conftest.in" "conftest.nl"
5946 $as_echo '' >> "conftest.nl"
5947 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5948 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5949 as_fn_arith $ac_count + 1 && ac_count=$as_val
5950 if test $ac_count -gt ${ac_path_SED_max-0}; then
5951 # Best one so far, save it but keep looking for a better one
5952 ac_cv_path_SED="$ac_path_SED"
5953 ac_path_SED_max=$ac_count
5954 fi
5955 # 10*(2^10) chars as input seems more than enough
5956 test $ac_count -gt 10 && break
5957 done
5958 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5959esac
5960
5961 $ac_path_SED_found && break 3
86e44bd7
L
5962 done
5963 done
5213506e 5964 done
86e44bd7 5965IFS=$as_save_IFS
5213506e
RW
5966 if test -z "$ac_cv_path_SED"; then
5967 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
86e44bd7 5968 fi
5213506e
RW
5969else
5970 ac_cv_path_SED=$SED
86e44bd7
L
5971fi
5972
5213506e
RW
5973fi
5974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5975$as_echo "$ac_cv_path_SED" >&6; }
5976 SED="$ac_cv_path_SED"
5977 rm -f conftest.sed
86e44bd7
L
5978
5979test -z "$SED" && SED=sed
5980Xsed="$SED -e 1s/^X//"
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5213506e
RW
5992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5993$as_echo_n "checking for fgrep... " >&6; }
5994if test "${ac_cv_path_FGREP+set}" = set; then :
5995 $as_echo_n "(cached) " >&6
86e44bd7 5996else
5213506e
RW
5997 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5998 then ac_cv_path_FGREP="$GREP -F"
5999 else
6000 if test -z "$FGREP"; then
6001 ac_path_FGREP_found=false
6002 # Loop through the user's path and test for each of PROGNAME-LIST
6003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6004for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6005do
6006 IFS=$as_save_IFS
6007 test -z "$as_dir" && as_dir=.
6008 for ac_prog in fgrep; do
6009 for ac_exec_ext in '' $ac_executable_extensions; do
6010 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6011 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6012# Check for GNU ac_path_FGREP and select it if it is found.
6013 # Check for GNU $ac_path_FGREP
6014case `"$ac_path_FGREP" --version 2>&1` in
6015*GNU*)
6016 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6017*)
6018 ac_count=0
6019 $as_echo_n 0123456789 >"conftest.in"
6020 while :
6021 do
6022 cat "conftest.in" "conftest.in" >"conftest.tmp"
6023 mv "conftest.tmp" "conftest.in"
6024 cp "conftest.in" "conftest.nl"
6025 $as_echo 'FGREP' >> "conftest.nl"
6026 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6027 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6028 as_fn_arith $ac_count + 1 && ac_count=$as_val
6029 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6030 # Best one so far, save it but keep looking for a better one
6031 ac_cv_path_FGREP="$ac_path_FGREP"
6032 ac_path_FGREP_max=$ac_count
86e44bd7 6033 fi
5213506e
RW
6034 # 10*(2^10) chars as input seems more than enough
6035 test $ac_count -gt 10 && break
6036 done
6037 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6038esac
6039
6040 $ac_path_FGREP_found && break 3
6041 done
6042 done
6043 done
6044IFS=$as_save_IFS
6045 if test -z "$ac_cv_path_FGREP"; then
6046 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6047 fi
6048else
6049 ac_cv_path_FGREP=$FGREP
6050fi
6051
6052 fi
86e44bd7 6053fi
5213506e
RW
6054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6055$as_echo "$ac_cv_path_FGREP" >&6; }
6056 FGREP="$ac_cv_path_FGREP"
86e44bd7
L
6057
6058
6059test -z "$GREP" && GREP=grep
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
5213506e
RW
6079# Check whether --with-gnu-ld was given.
6080if test "${with_gnu_ld+set}" = set; then :
6081 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
97b8365c
TT
6082else
6083 with_gnu_ld=no
5213506e
RW
6084fi
6085
97b8365c
TT
6086ac_prog=ld
6087if test "$GCC" = yes; then
6088 # Check if gcc -print-prog-name=ld gives a path.
5213506e
RW
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6090$as_echo_n "checking for ld used by $CC... " >&6; }
97b8365c
TT
6091 case $host in
6092 *-*-mingw*)
6093 # gcc leaves a trailing carriage return which upsets mingw
6094 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6095 *)
6096 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6097 esac
6098 case $ac_prog in
6099 # Accept absolute paths.
86e44bd7 6100 [\\/]* | ?:[\\/]*)
97b8365c 6101 re_direlt='/[^/][^/]*/\.\./'
86e44bd7
L
6102 # Canonicalize the pathname of ld
6103 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6104 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6105 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
97b8365c
TT
6106 done
6107 test -z "$LD" && LD="$ac_prog"
6108 ;;
6109 "")
6110 # If it fails, then pretend we aren't using GCC.
6111 ac_prog=ld
6112 ;;
6113 *)
6114 # If it is relative, then search for the first ld in PATH.
6115 with_gnu_ld=unknown
6116 ;;
6117 esac
6118elif test "$with_gnu_ld" = yes; then
5213506e
RW
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6120$as_echo_n "checking for GNU ld... " >&6; }
97b8365c 6121else
5213506e
RW
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6123$as_echo_n "checking for non-GNU ld... " >&6; }
97b8365c 6124fi
5213506e
RW
6125if test "${lt_cv_path_LD+set}" = set; then :
6126 $as_echo_n "(cached) " >&6
97b8365c
TT
6127else
6128 if test -z "$LD"; then
86e44bd7 6129 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
97b8365c 6130 for ac_dir in $PATH; do
86e44bd7 6131 IFS="$lt_save_ifs"
97b8365c
TT
6132 test -z "$ac_dir" && ac_dir=.
6133 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6134 lt_cv_path_LD="$ac_dir/$ac_prog"
6135 # Check to see if the program is GNU ld. I'd rather use --version,
86e44bd7 6136 # but apparently some variants of GNU ld only accept -v.
97b8365c 6137 # Break only if it was the GNU/non-GNU ld that we prefer.
86e44bd7
L
6138 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6139 *GNU* | *'with BFD'*)
97b8365c 6140 test "$with_gnu_ld" != no && break
86e44bd7
L
6141 ;;
6142 *)
97b8365c 6143 test "$with_gnu_ld" != yes && break
86e44bd7
L
6144 ;;
6145 esac
02440ca4
TF
6146 fi
6147 done
86e44bd7 6148 IFS="$lt_save_ifs"
97b8365c
TT
6149else
6150 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6151fi
6152fi
6153
6154LD="$lt_cv_path_LD"
6155if test -n "$LD"; then
5213506e
RW
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6157$as_echo "$LD" >&6; }
97b8365c 6158else
5213506e
RW
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6160$as_echo "no" >&6; }
97b8365c 6161fi
5213506e
RW
6162test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6164$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6165if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6166 $as_echo_n "(cached) " >&6
97b8365c 6167else
86e44bd7
L
6168 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6169case `$LD -v 2>&1 </dev/null` in
6170*GNU* | *'with BFD'*)
97b8365c 6171 lt_cv_prog_gnu_ld=yes
86e44bd7
L
6172 ;;
6173*)
97b8365c 6174 lt_cv_prog_gnu_ld=no
86e44bd7
L
6175 ;;
6176esac
97b8365c 6177fi
5213506e
RW
6178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6179$as_echo "$lt_cv_prog_gnu_ld" >&6; }
97b8365c
TT
6180with_gnu_ld=$lt_cv_prog_gnu_ld
6181
6182
97b8365c 6183
86e44bd7
L
6184
6185
6186
6187
6188
6189
5213506e
RW
6190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6191$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6192if test "${lt_cv_path_NM+set}" = set; then :
6193 $as_echo_n "(cached) " >&6
97b8365c
TT
6194else
6195 if test -n "$NM"; then
6196 # Let the user override the test.
6197 lt_cv_path_NM="$NM"
6198else
86e44bd7
L
6199 lt_nm_to_check="${ac_tool_prefix}nm"
6200 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6201 lt_nm_to_check="$lt_nm_to_check nm"
6202 fi
6203 for lt_tmp_nm in $lt_nm_to_check; do
6204 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6205 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6206 IFS="$lt_save_ifs"
6207 test -z "$ac_dir" && ac_dir=.
6208 tmp_nm="$ac_dir/$lt_tmp_nm"
6209 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6210 # Check to see if the nm accepts a BSD-compat flag.
6211 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6212 # nm: unknown option "B" ignored
6213 # Tru64's nm complains that /dev/null is an invalid object file
6214 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6215 */dev/null* | *'Invalid file or object type'*)
6216 lt_cv_path_NM="$tmp_nm -B"
6217 break
6218 ;;
6219 *)
6220 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6221 */dev/null*)
6222 lt_cv_path_NM="$tmp_nm -p"
6223 break
6224 ;;
6225 *)
6226 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6227 continue # so that we can try to find one that supports BSD flags
6228 ;;
6229 esac
6230 ;;
6231 esac
97b8365c 6232 fi
86e44bd7
L
6233 done
6234 IFS="$lt_save_ifs"
97b8365c 6235 done
86e44bd7 6236 : ${lt_cv_path_NM=no}
97b8365c
TT
6237fi
6238fi
5213506e
RW
6239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6240$as_echo "$lt_cv_path_NM" >&6; }
86e44bd7
L
6241if test "$lt_cv_path_NM" != "no"; then
6242 NM="$lt_cv_path_NM"
97b8365c 6243else
86e44bd7 6244 # Didn't find any BSD compatible name lister, look for dumpbin.
43e02a8a
RW
6245 if test -n "$DUMPBIN"; then :
6246 # Let the user override the test.
6247 else
6248 if test -n "$ac_tool_prefix"; then
6249 for ac_prog in dumpbin "link -dump"
86e44bd7
L
6250 do
6251 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6252set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
6253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6254$as_echo_n "checking for $ac_word... " >&6; }
6255if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6256 $as_echo_n "(cached) " >&6
86e44bd7
L
6257else
6258 if test -n "$DUMPBIN"; then
6259 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6260else
6261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6262for as_dir in $PATH
6263do
6264 IFS=$as_save_IFS
6265 test -z "$as_dir" && as_dir=.
5213506e
RW
6266 for ac_exec_ext in '' $ac_executable_extensions; do
6267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
86e44bd7 6268 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5213506e 6269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
86e44bd7
L
6270 break 2
6271 fi
6272done
5213506e
RW
6273 done
6274IFS=$as_save_IFS
97b8365c 6275
86e44bd7
L
6276fi
6277fi
6278DUMPBIN=$ac_cv_prog_DUMPBIN
6279if test -n "$DUMPBIN"; then
5213506e
RW
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6281$as_echo "$DUMPBIN" >&6; }
86e44bd7 6282else
5213506e
RW
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6284$as_echo "no" >&6; }
86e44bd7 6285fi
97b8365c 6286
5213506e 6287
86e44bd7
L
6288 test -n "$DUMPBIN" && break
6289 done
6290fi
6291if test -z "$DUMPBIN"; then
6292 ac_ct_DUMPBIN=$DUMPBIN
43e02a8a 6293 for ac_prog in dumpbin "link -dump"
86e44bd7
L
6294do
6295 # Extract the first word of "$ac_prog", so it can be a program name with args.
6296set dummy $ac_prog; ac_word=$2
5213506e
RW
6297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6298$as_echo_n "checking for $ac_word... " >&6; }
6299if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6300 $as_echo_n "(cached) " >&6
86e44bd7
L
6301else
6302 if test -n "$ac_ct_DUMPBIN"; then
6303 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6304else
6305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306for as_dir in $PATH
6307do
6308 IFS=$as_save_IFS
6309 test -z "$as_dir" && as_dir=.
5213506e
RW
6310 for ac_exec_ext in '' $ac_executable_extensions; do
6311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
86e44bd7 6312 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5213506e 6313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
86e44bd7 6314 break 2
97b8365c 6315 fi
86e44bd7 6316done
5213506e
RW
6317 done
6318IFS=$as_save_IFS
97b8365c 6319
86e44bd7
L
6320fi
6321fi
6322ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6323if test -n "$ac_ct_DUMPBIN"; then
5213506e
RW
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6325$as_echo "$ac_ct_DUMPBIN" >&6; }
86e44bd7 6326else
5213506e
RW
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6328$as_echo "no" >&6; }
86e44bd7 6329fi
97b8365c 6330
5213506e 6331
86e44bd7
L
6332 test -n "$ac_ct_DUMPBIN" && break
6333done
97b8365c 6334
5213506e
RW
6335 if test "x$ac_ct_DUMPBIN" = x; then
6336 DUMPBIN=":"
6337 else
6338 case $cross_compiling:$ac_tool_warned in
6339yes:)
6340{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6341$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6342ac_tool_warned=yes ;;
6343esac
6344 DUMPBIN=$ac_ct_DUMPBIN
6345 fi
86e44bd7 6346fi
97b8365c 6347
43e02a8a
RW
6348 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6349 *COFF*)
6350 DUMPBIN="$DUMPBIN -symbols"
6351 ;;
6352 *)
6353 DUMPBIN=:
6354 ;;
6355 esac
6356 fi
97b8365c 6357
86e44bd7
L
6358 if test "$DUMPBIN" != ":"; then
6359 NM="$DUMPBIN"
97b8365c 6360 fi
86e44bd7
L
6361fi
6362test -z "$NM" && NM=nm
97b8365c 6363
97b8365c 6364
97b8365c 6365
97b8365c 6366
97b8365c 6367
1ea63ef8 6368
5213506e
RW
6369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6370$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6371if test "${lt_cv_nm_interface+set}" = set; then :
6372 $as_echo_n "(cached) " >&6
86e44bd7
L
6373else
6374 lt_cv_nm_interface="BSD nm"
6375 echo "int some_variable = 0;" > conftest.$ac_ext
43e02a8a 6376 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
86e44bd7
L
6377 (eval "$ac_compile" 2>conftest.err)
6378 cat conftest.err >&5
43e02a8a 6379 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
86e44bd7
L
6380 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6381 cat conftest.err >&5
43e02a8a 6382 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
86e44bd7
L
6383 cat conftest.out >&5
6384 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6385 lt_cv_nm_interface="MS dumpbin"
6386 fi
6387 rm -f conftest*
1ea63ef8 6388fi
5213506e
RW
6389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6390$as_echo "$lt_cv_nm_interface" >&6; }
97b8365c
TT
6391
6392# find the maximum length of command line arguments
5213506e
RW
6393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6394$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6395if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6396 $as_echo_n "(cached) " >&6
1ea63ef8 6397else
97b8365c
TT
6398 i=0
6399 teststring="ABCD"
e0f7b260 6400
97b8365c
TT
6401 case $build_os in
6402 msdosdjgpp*)
6403 # On DJGPP, this test can blow up pretty badly due to problems in libc
6404 # (any single argument exceeding 2000 bytes causes a buffer overrun
6405 # during glob expansion). Even if it were fixed, the result of this
6406 # check would be larger than it should be.
6407 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6408 ;;
02440ca4 6409
86e44bd7
L
6410 gnu*)
6411 # Under GNU Hurd, this test is not required because there is
6412 # no limit to the length of command line arguments.
6413 # Libtool will interpret -1 as no limit whatsoever
6414 lt_cv_sys_max_cmd_len=-1;
6415 ;;
6416
0da7a284 6417 cygwin* | mingw* | cegcc*)
97b8365c
TT
6418 # On Win9x/ME, this test blows up -- it succeeds, but takes
6419 # about 5 minutes as the teststring grows exponentially.
6420 # Worse, since 9x/ME are not pre-emptively multitasking,
6421 # you end up with a "frozen" computer, even though with patience
6422 # the test eventually succeeds (with a max line length of 256k).
6423 # Instead, let's just punt: use the minimum linelength reported by
6424 # all of the supported platforms: 8192 (on NT/2K/XP).
6425 lt_cv_sys_max_cmd_len=8192;
6426 ;;
6427
43e02a8a
RW
6428 mint*)
6429 # On MiNT this can take a long time and run out of memory.
6430 lt_cv_sys_max_cmd_len=8192;
6431 ;;
6432
97b8365c
TT
6433 amigaos*)
6434 # On AmigaOS with pdksh, this test takes hours, literally.
6435 # So we just punt and use a minimum line length of 8192.
6436 lt_cv_sys_max_cmd_len=8192;
6437 ;;
6438
6439 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6440 # This has been around since 386BSD, at least. Likely further.
6441 if test -x /sbin/sysctl; then
6442 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6443 elif test -x /usr/sbin/sysctl; then
6444 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6445 else
86e44bd7 6446 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
02440ca4 6447 fi
97b8365c
TT
6448 # And add a safety zone
6449 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6450 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6451 ;;
86e44bd7
L
6452
6453 interix*)
6454 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6455 lt_cv_sys_max_cmd_len=196608
6456 ;;
6457
6458 osf*)
6459 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6460 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6461 # nice to cause kernel panics so lets avoid the loop below.
6462 # First set a reasonable default.
6463 lt_cv_sys_max_cmd_len=16384
6464 #
6465 if test -x /sbin/sysconfig; then
6466 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6467 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6468 esac
6469 fi
6470 ;;
6471 sco3.2v5*)
6472 lt_cv_sys_max_cmd_len=102400
6473 ;;
6474 sysv5* | sco5v6* | sysv4.2uw2*)
6475 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6476 if test -n "$kargmax"; then
6477 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6478 else
6479 lt_cv_sys_max_cmd_len=32768
6480 fi
6481 ;;
6482 *)
0da7a284
PG
6483 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6484 if test -n "$lt_cv_sys_max_cmd_len"; then
b1d849c1
MK
6485 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6486 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6487 else
6488 # Make teststring a little bigger before we do anything with it.
6489 # a 1K string should be a reasonable start.
6490 for i in 1 2 3 4 5 6 7 8 ; do
6491 teststring=$teststring$teststring
6492 done
6493 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6494 # If test is not a shell built-in, we'll probably end up computing a
6495 # maximum length that is only half of the actual maximum length, but
6496 # we can't tell.
43e02a8a
RW
6497 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6498 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
b1d849c1
MK
6499 test $i != 17 # 1/2 MB should be enough
6500 do
6501 i=`expr $i + 1`
6502 teststring=$teststring$teststring
6503 done
6504 # Only check the string length outside the loop.
6505 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6506 teststring=
6507 # Add a significant safety factor because C++ compilers can tack on
6508 # massive amounts of additional arguments before passing them to the
6509 # linker. It appears as though 1/2 is a usable value.
6510 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6511 fi
86e44bd7 6512 ;;
97b8365c
TT
6513 esac
6514
6515fi
6516
86e44bd7 6517if test -n $lt_cv_sys_max_cmd_len ; then
5213506e
RW
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6519$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
1ea63ef8 6520else
5213506e
RW
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6522$as_echo "none" >&6; }
97b8365c 6523fi
86e44bd7 6524max_cmd_len=$lt_cv_sys_max_cmd_len
97b8365c
TT
6525
6526
97b8365c 6527
97b8365c 6528
e0f7b260 6529
86e44bd7 6530
86e44bd7
L
6531: ${CP="cp -f"}
6532: ${MV="mv -f"}
6533: ${RM="rm -f"}
6534
5213506e
RW
6535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6536$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
86e44bd7
L
6537# Try some XSI features
6538xsi_shell=no
6539( _lt_dummy="a/b/c"
6540 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
0da7a284
PG
6541 = c,a/b,, \
6542 && eval 'test $(( 1 + 1 )) -eq 2 \
6543 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
86e44bd7 6544 && xsi_shell=yes
5213506e
RW
6545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6546$as_echo "$xsi_shell" >&6; }
86e44bd7
L
6547
6548
5213506e
RW
6549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6550$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
86e44bd7
L
6551lt_shell_append=no
6552( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6553 >/dev/null 2>&1 \
6554 && lt_shell_append=yes
5213506e
RW
6555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6556$as_echo "$lt_shell_append" >&6; }
86e44bd7
L
6557
6558
6559if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6560 lt_unset=unset
02440ca4 6561else
86e44bd7 6562 lt_unset=false
e0f7b260 6563fi
97b8365c 6564
86e44bd7
L
6565
6566
6567
6568
6569# test EBCDIC or ASCII
6570case `echo X|tr X '\101'` in
6571 A) # ASCII based system
6572 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6573 lt_SP2NL='tr \040 \012'
6574 lt_NL2SP='tr \015\012 \040\040'
97b8365c 6575 ;;
86e44bd7
L
6576 *) # EBCDIC based system
6577 lt_SP2NL='tr \100 \n'
6578 lt_NL2SP='tr \r\n \100\100'
97b8365c 6579 ;;
86e44bd7 6580esac
97b8365c 6581
97b8365c 6582
86e44bd7
L
6583
6584
6585
6586
6587
6588
6589
5213506e
RW
6590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6591$as_echo_n "checking for $LD option to reload object files... " >&6; }
6592if test "${lt_cv_ld_reload_flag+set}" = set; then :
6593 $as_echo_n "(cached) " >&6
86e44bd7
L
6594else
6595 lt_cv_ld_reload_flag='-r'
6596fi
5213506e
RW
6597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6598$as_echo "$lt_cv_ld_reload_flag" >&6; }
86e44bd7
L
6599reload_flag=$lt_cv_ld_reload_flag
6600case $reload_flag in
6601"" | " "*) ;;
6602*) reload_flag=" $reload_flag" ;;
6603esac
6604reload_cmds='$LD$reload_flag -o $output$reload_objs'
6605case $host_os in
6606 darwin*)
6607 if test "$GCC" = yes; then
6608 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6609 else
6610 reload_cmds='$LD$reload_flag -o $output$reload_objs'
02440ca4 6611 fi
86e44bd7 6612 ;;
97b8365c 6613esac
97b8365c 6614
86e44bd7
L
6615
6616
6617
6618
6619
6620
6621
6622
0da7a284
PG
6623if test -n "$ac_tool_prefix"; then
6624 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6625set dummy ${ac_tool_prefix}objdump; ac_word=$2
5213506e
RW
6626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6627$as_echo_n "checking for $ac_word... " >&6; }
6628if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6629 $as_echo_n "(cached) " >&6
0da7a284
PG
6630else
6631 if test -n "$OBJDUMP"; then
6632 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6633else
6634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635for as_dir in $PATH
6636do
6637 IFS=$as_save_IFS
6638 test -z "$as_dir" && as_dir=.
5213506e
RW
6639 for ac_exec_ext in '' $ac_executable_extensions; do
6640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0da7a284 6641 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5213506e 6642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0da7a284
PG
6643 break 2
6644 fi
6645done
5213506e
RW
6646 done
6647IFS=$as_save_IFS
0da7a284
PG
6648
6649fi
6650fi
6651OBJDUMP=$ac_cv_prog_OBJDUMP
6652if test -n "$OBJDUMP"; then
5213506e
RW
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6654$as_echo "$OBJDUMP" >&6; }
0da7a284 6655else
5213506e
RW
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6657$as_echo "no" >&6; }
0da7a284
PG
6658fi
6659
5213506e 6660
0da7a284
PG
6661fi
6662if test -z "$ac_cv_prog_OBJDUMP"; then
6663 ac_ct_OBJDUMP=$OBJDUMP
6664 # Extract the first word of "objdump", so it can be a program name with args.
6665set dummy objdump; ac_word=$2
5213506e
RW
6666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6667$as_echo_n "checking for $ac_word... " >&6; }
6668if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6669 $as_echo_n "(cached) " >&6
0da7a284
PG
6670else
6671 if test -n "$ac_ct_OBJDUMP"; then
6672 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6673else
6674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675for as_dir in $PATH
6676do
6677 IFS=$as_save_IFS
6678 test -z "$as_dir" && as_dir=.
5213506e
RW
6679 for ac_exec_ext in '' $ac_executable_extensions; do
6680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0da7a284 6681 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5213506e 6682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0da7a284
PG
6683 break 2
6684 fi
6685done
5213506e
RW
6686 done
6687IFS=$as_save_IFS
0da7a284 6688
0da7a284
PG
6689fi
6690fi
6691ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6692if test -n "$ac_ct_OBJDUMP"; then
5213506e
RW
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6694$as_echo "$ac_ct_OBJDUMP" >&6; }
0da7a284 6695else
5213506e
RW
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6697$as_echo "no" >&6; }
0da7a284
PG
6698fi
6699
5213506e
RW
6700 if test "x$ac_ct_OBJDUMP" = x; then
6701 OBJDUMP="false"
6702 else
6703 case $cross_compiling:$ac_tool_warned in
6704yes:)
6705{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6706$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6707ac_tool_warned=yes ;;
6708esac
6709 OBJDUMP=$ac_ct_OBJDUMP
6710 fi
0da7a284
PG
6711else
6712 OBJDUMP="$ac_cv_prog_OBJDUMP"
6713fi
6714
6715test -z "$OBJDUMP" && OBJDUMP=objdump
6716
6717
6718
6719
6720
6721
6722
6723
86e44bd7 6724
5213506e
RW
6725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6726$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6727if test "${lt_cv_deplibs_check_method+set}" = set; then :
6728 $as_echo_n "(cached) " >&6
02440ca4 6729else
86e44bd7
L
6730 lt_cv_file_magic_cmd='$MAGIC_CMD'
6731lt_cv_file_magic_test_file=
6732lt_cv_deplibs_check_method='unknown'
6733# Need to set the preceding variable on all platforms that support
6734# interlibrary dependencies.
6735# 'none' -- dependencies not supported.
6736# `unknown' -- same as none, but documents that we really don't know.
6737# 'pass_all' -- all dependencies passed with no checks.
6738# 'test_compile' -- check by making test program.
6739# 'file_magic [[regex]]' -- check by looking for files in library path
6740# which responds to the $file_magic_cmd with a given extended regex.
6741# If you have `file' or equivalent on your system and you're not sure
6742# whether `pass_all' will *always* work, you probably want this one.
97b8365c 6743
86e44bd7 6744case $host_os in
015cd9b1 6745aix[4-9]*)
86e44bd7
L
6746 lt_cv_deplibs_check_method=pass_all
6747 ;;
6748
6749beos*)
6750 lt_cv_deplibs_check_method=pass_all
6751 ;;
6752
6753bsdi[45]*)
6754 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6755 lt_cv_file_magic_cmd='/usr/bin/file -L'
6756 lt_cv_file_magic_test_file=/shlib/libc.so
6757 ;;
6758
6759cygwin*)
6760 # func_win32_libid is a shell function defined in ltmain.sh
6761 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6762 lt_cv_file_magic_cmd='func_win32_libid'
6763 ;;
6764
6765mingw* | pw32*)
6766 # Base MSYS/MinGW do not provide the 'file' command needed by
6767 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6768 # unless we find 'file', for example because we are cross-compiling.
43e02a8a
RW
6769 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6770 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
86e44bd7
L
6771 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6772 lt_cv_file_magic_cmd='func_win32_libid'
97b8365c 6773 else
86e44bd7
L
6774 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6775 lt_cv_file_magic_cmd='$OBJDUMP -f'
97b8365c 6776 fi
86e44bd7
L
6777 ;;
6778
43e02a8a 6779cegcc*)
0da7a284
PG
6780 # use the weaker test based on 'objdump'. See mingw*.
6781 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6782 lt_cv_file_magic_cmd='$OBJDUMP -f'
6783 ;;
6784
86e44bd7
L
6785darwin* | rhapsody*)
6786 lt_cv_deplibs_check_method=pass_all
6787 ;;
6788
6789freebsd* | dragonfly*)
6790 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6791 case $host_cpu in
6792 i*86 )
6793 # Not sure whether the presence of OpenBSD here was a mistake.
6794 # Let's accept both of them until this is cleared up.
6795 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6796 lt_cv_file_magic_cmd=/usr/bin/file
6797 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6798 ;;
6799 esac
6800 else
6801 lt_cv_deplibs_check_method=pass_all
6802 fi
6803 ;;
6804
6805gnu*)
6806 lt_cv_deplibs_check_method=pass_all
6807 ;;
6808
43e02a8a
RW
6809haiku*)
6810 lt_cv_deplibs_check_method=pass_all
6811 ;;
6812
86e44bd7
L
6813hpux10.20* | hpux11*)
6814 lt_cv_file_magic_cmd=/usr/bin/file
6815 case $host_cpu in
6816 ia64*)
6817 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6818 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6819 ;;
6820 hppa*64*)
43e02a8a 6821 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]'
86e44bd7
L
6822 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6823 ;;
6824 *)
43e02a8a 6825 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
86e44bd7
L
6826 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6827 ;;
6828 esac
6829 ;;
6830
6831interix[3-9]*)
6832 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6833 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6834 ;;
6835
6836irix5* | irix6* | nonstopux*)
6837 case $LD in
6838 *-32|*"-32 ") libmagic=32-bit;;
6839 *-n32|*"-n32 ") libmagic=N32;;
6840 *-64|*"-64 ") libmagic=64-bit;;
6841 *) libmagic=never-match;;
6842 esac
6843 lt_cv_deplibs_check_method=pass_all
6844 ;;
6845
6846# This must be Linux ELF.
7a9d3fe8 6847linux* | k*bsd*-gnu | kopensolaris*-gnu)
86e44bd7
L
6848 lt_cv_deplibs_check_method=pass_all
6849 ;;
6850
6851netbsd*)
6852 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6853 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6854 else
6855 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6856 fi
6857 ;;
6858
6859newos6*)
6860 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6861 lt_cv_file_magic_cmd=/usr/bin/file
6862 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6863 ;;
02440ca4 6864
86e44bd7
L
6865*nto* | *qnx*)
6866 lt_cv_deplibs_check_method=pass_all
6867 ;;
6868
6869openbsd*)
6870 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6871 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6872 else
6873 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
97b8365c
TT
6874 fi
6875 ;;
86e44bd7
L
6876
6877osf3* | osf4* | osf5*)
6878 lt_cv_deplibs_check_method=pass_all
6879 ;;
6880
6881rdos*)
6882 lt_cv_deplibs_check_method=pass_all
6883 ;;
6884
6885solaris*)
6886 lt_cv_deplibs_check_method=pass_all
6887 ;;
6888
6889sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6890 lt_cv_deplibs_check_method=pass_all
6891 ;;
6892
6893sysv4 | sysv4.3*)
6894 case $host_vendor in
6895 motorola)
6896 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]'
6897 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6898 ;;
6899 ncr)
6900 lt_cv_deplibs_check_method=pass_all
6901 ;;
6902 sequent)
6903 lt_cv_file_magic_cmd='/bin/file'
6904 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6905 ;;
6906 sni)
6907 lt_cv_file_magic_cmd='/bin/file'
6908 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6909 lt_cv_file_magic_test_file=/lib/libc.so
6910 ;;
6911 siemens)
6912 lt_cv_deplibs_check_method=pass_all
6913 ;;
6914 pc)
6915 lt_cv_deplibs_check_method=pass_all
6916 ;;
6917 esac
6918 ;;
6919
6920tpf*)
6921 lt_cv_deplibs_check_method=pass_all
6922 ;;
97b8365c
TT
6923esac
6924
86e44bd7 6925fi
5213506e
RW
6926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6927$as_echo "$lt_cv_deplibs_check_method" >&6; }
86e44bd7
L
6928file_magic_cmd=$lt_cv_file_magic_cmd
6929deplibs_check_method=$lt_cv_deplibs_check_method
6930test -z "$deplibs_check_method" && deplibs_check_method=unknown
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
97b8365c 6943if test -n "$ac_tool_prefix"; then
86e44bd7
L
6944 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6945set dummy ${ac_tool_prefix}ar; ac_word=$2
5213506e
RW
6946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6947$as_echo_n "checking for $ac_word... " >&6; }
6948if test "${ac_cv_prog_AR+set}" = set; then :
6949 $as_echo_n "(cached) " >&6
97b8365c 6950else
86e44bd7
L
6951 if test -n "$AR"; then
6952 ac_cv_prog_AR="$AR" # Let the user override the test.
97b8365c
TT
6953else
6954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955for as_dir in $PATH
6956do
6957 IFS=$as_save_IFS
6958 test -z "$as_dir" && as_dir=.
5213506e
RW
6959 for ac_exec_ext in '' $ac_executable_extensions; do
6960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
86e44bd7 6961 ac_cv_prog_AR="${ac_tool_prefix}ar"
5213506e 6962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
97b8365c
TT
6963 break 2
6964 fi
6965done
5213506e
RW
6966 done
6967IFS=$as_save_IFS
97b8365c
TT
6968
6969fi
6970fi
86e44bd7
L
6971AR=$ac_cv_prog_AR
6972if test -n "$AR"; then
5213506e
RW
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6974$as_echo "$AR" >&6; }
1ea63ef8 6975else
5213506e
RW
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6977$as_echo "no" >&6; }
1ea63ef8 6978fi
97b8365c 6979
5213506e 6980
97b8365c 6981fi
86e44bd7
L
6982if test -z "$ac_cv_prog_AR"; then
6983 ac_ct_AR=$AR
6984 # Extract the first word of "ar", so it can be a program name with args.
6985set dummy ar; ac_word=$2
5213506e
RW
6986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6987$as_echo_n "checking for $ac_word... " >&6; }
6988if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6989 $as_echo_n "(cached) " >&6
1ea63ef8 6990else
86e44bd7
L
6991 if test -n "$ac_ct_AR"; then
6992 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
02440ca4 6993else
97b8365c
TT
6994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995for as_dir in $PATH
6996do
6997 IFS=$as_save_IFS
6998 test -z "$as_dir" && as_dir=.
5213506e
RW
6999 for ac_exec_ext in '' $ac_executable_extensions; do
7000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
86e44bd7 7001 ac_cv_prog_ac_ct_AR="ar"
5213506e 7002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
97b8365c
TT
7003 break 2
7004 fi
7005done
5213506e
RW
7006 done
7007IFS=$as_save_IFS
97b8365c 7008
1ea63ef8 7009fi
02440ca4 7010fi
86e44bd7
L
7011ac_ct_AR=$ac_cv_prog_ac_ct_AR
7012if test -n "$ac_ct_AR"; then
5213506e
RW
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7014$as_echo "$ac_ct_AR" >&6; }
97b8365c 7015else
5213506e
RW
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7017$as_echo "no" >&6; }
97b8365c 7018fi
1ea63ef8 7019
5213506e
RW
7020 if test "x$ac_ct_AR" = x; then
7021 AR="false"
7022 else
7023 case $cross_compiling:$ac_tool_warned in
7024yes:)
7025{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7026$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7027ac_tool_warned=yes ;;
7028esac
7029 AR=$ac_ct_AR
7030 fi
97b8365c 7031else
86e44bd7 7032 AR="$ac_cv_prog_AR"
97b8365c 7033fi
1ea63ef8 7034
86e44bd7
L
7035test -z "$AR" && AR=ar
7036test -z "$AR_FLAGS" && AR_FLAGS=cru
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
97b8365c
TT
7048if test -n "$ac_tool_prefix"; then
7049 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7050set dummy ${ac_tool_prefix}strip; ac_word=$2
5213506e
RW
7051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7052$as_echo_n "checking for $ac_word... " >&6; }
7053if test "${ac_cv_prog_STRIP+set}" = set; then :
7054 $as_echo_n "(cached) " >&6
e0f7b260 7055else
97b8365c
TT
7056 if test -n "$STRIP"; then
7057 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7058else
7059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7060for as_dir in $PATH
7061do
7062 IFS=$as_save_IFS
7063 test -z "$as_dir" && as_dir=.
5213506e
RW
7064 for ac_exec_ext in '' $ac_executable_extensions; do
7065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
97b8365c 7066 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5213506e 7067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
97b8365c
TT
7068 break 2
7069 fi
7070done
5213506e
RW
7071 done
7072IFS=$as_save_IFS
97b8365c
TT
7073
7074fi
7075fi
7076STRIP=$ac_cv_prog_STRIP
7077if test -n "$STRIP"; then
5213506e
RW
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7079$as_echo "$STRIP" >&6; }
97b8365c 7080else
5213506e
RW
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7082$as_echo "no" >&6; }
02440ca4 7083fi
1ea63ef8 7084
5213506e 7085
97b8365c
TT
7086fi
7087if test -z "$ac_cv_prog_STRIP"; then
7088 ac_ct_STRIP=$STRIP
7089 # Extract the first word of "strip", so it can be a program name with args.
7090set dummy strip; ac_word=$2
5213506e
RW
7091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7092$as_echo_n "checking for $ac_word... " >&6; }
7093if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7094 $as_echo_n "(cached) " >&6
e0f7b260 7095else
97b8365c
TT
7096 if test -n "$ac_ct_STRIP"; then
7097 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
e0f7b260 7098else
97b8365c
TT
7099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7100for as_dir in $PATH
7101do
7102 IFS=$as_save_IFS
7103 test -z "$as_dir" && as_dir=.
5213506e
RW
7104 for ac_exec_ext in '' $ac_executable_extensions; do
7105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
97b8365c 7106 ac_cv_prog_ac_ct_STRIP="strip"
5213506e 7107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
97b8365c
TT
7108 break 2
7109 fi
7110done
5213506e
RW
7111 done
7112IFS=$as_save_IFS
97b8365c 7113
97b8365c
TT
7114fi
7115fi
7116ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7117if test -n "$ac_ct_STRIP"; then
5213506e
RW
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7119$as_echo "$ac_ct_STRIP" >&6; }
97b8365c 7120else
5213506e
RW
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7122$as_echo "no" >&6; }
e0f7b260 7123fi
97b8365c 7124
5213506e
RW
7125 if test "x$ac_ct_STRIP" = x; then
7126 STRIP=":"
7127 else
7128 case $cross_compiling:$ac_tool_warned in
7129yes:)
7130{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7131$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7132ac_tool_warned=yes ;;
7133esac
7134 STRIP=$ac_ct_STRIP
7135 fi
97b8365c
TT
7136else
7137 STRIP="$ac_cv_prog_STRIP"
e0f7b260 7138fi
1ea63ef8 7139
86e44bd7 7140test -z "$STRIP" && STRIP=:
1ea63ef8 7141
1ea63ef8 7142
1ea63ef8 7143
1ea63ef8 7144
97b8365c 7145
97b8365c 7146
86e44bd7
L
7147if test -n "$ac_tool_prefix"; then
7148 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7149set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5213506e
RW
7150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7151$as_echo_n "checking for $ac_word... " >&6; }
7152if test "${ac_cv_prog_RANLIB+set}" = set; then :
7153 $as_echo_n "(cached) " >&6
86e44bd7
L
7154else
7155 if test -n "$RANLIB"; then
7156 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7157else
7158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159for as_dir in $PATH
7160do
7161 IFS=$as_save_IFS
7162 test -z "$as_dir" && as_dir=.
5213506e
RW
7163 for ac_exec_ext in '' $ac_executable_extensions; do
7164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
86e44bd7 7165 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5213506e 7166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
86e44bd7 7167 break 2
97b8365c 7168 fi
86e44bd7 7169done
5213506e
RW
7170 done
7171IFS=$as_save_IFS
02440ca4 7172
86e44bd7
L
7173fi
7174fi
7175RANLIB=$ac_cv_prog_RANLIB
7176if test -n "$RANLIB"; then
5213506e
RW
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7178$as_echo "$RANLIB" >&6; }
86e44bd7 7179else
5213506e
RW
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7181$as_echo "no" >&6; }
86e44bd7 7182fi
02440ca4 7183
5213506e 7184
86e44bd7
L
7185fi
7186if test -z "$ac_cv_prog_RANLIB"; then
7187 ac_ct_RANLIB=$RANLIB
7188 # Extract the first word of "ranlib", so it can be a program name with args.
7189set dummy ranlib; ac_word=$2
5213506e
RW
7190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7191$as_echo_n "checking for $ac_word... " >&6; }
7192if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7193 $as_echo_n "(cached) " >&6
86e44bd7
L
7194else
7195 if test -n "$ac_ct_RANLIB"; then
7196 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7197else
7198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199for as_dir in $PATH
7200do
7201 IFS=$as_save_IFS
7202 test -z "$as_dir" && as_dir=.
5213506e
RW
7203 for ac_exec_ext in '' $ac_executable_extensions; do
7204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
86e44bd7 7205 ac_cv_prog_ac_ct_RANLIB="ranlib"
5213506e 7206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
86e44bd7 7207 break 2
97b8365c 7208 fi
86e44bd7 7209done
5213506e
RW
7210 done
7211IFS=$as_save_IFS
97b8365c 7212
86e44bd7
L
7213fi
7214fi
7215ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7216if test -n "$ac_ct_RANLIB"; then
5213506e
RW
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7218$as_echo "$ac_ct_RANLIB" >&6; }
97b8365c 7219else
5213506e
RW
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7221$as_echo "no" >&6; }
86e44bd7 7222fi
97b8365c 7223
5213506e
RW
7224 if test "x$ac_ct_RANLIB" = x; then
7225 RANLIB=":"
7226 else
7227 case $cross_compiling:$ac_tool_warned in
7228yes:)
7229{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7230$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7231ac_tool_warned=yes ;;
7232esac
7233 RANLIB=$ac_ct_RANLIB
7234 fi
86e44bd7
L
7235else
7236 RANLIB="$ac_cv_prog_RANLIB"
7237fi
7238
7239test -z "$RANLIB" && RANLIB=:
97b8365c 7240
97b8365c 7241
97b8365c 7242
97b8365c 7243
97b8365c 7244
97b8365c 7245
86e44bd7 7246# Determine commands to create old-style static archives.
0da7a284 7247old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
86e44bd7
L
7248old_postinstall_cmds='chmod 644 $oldlib'
7249old_postuninstall_cmds=
7250
7251if test -n "$RANLIB"; then
7252 case $host_os in
7253 openbsd*)
7254 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7255 ;;
7256 *)
7257 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7258 ;;
7259 esac
7260 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
97b8365c 7261fi
e0f7b260 7262
43e02a8a
RW
7263case $host_os in
7264 darwin*)
7265 lock_old_archive_extraction=yes ;;
7266 *)
7267 lock_old_archive_extraction=no ;;
7268esac
7269
7270
7271
7272
7273
7274
1ea63ef8 7275
02440ca4 7276
02440ca4 7277
02440ca4 7278
97b8365c 7279
1ea63ef8
TT
7280
7281
7282
7283
02440ca4 7284
02440ca4 7285
1ea63ef8 7286
1ea63ef8 7287
1ea63ef8 7288
1ea63ef8 7289
1ea63ef8 7290
1ea63ef8 7291
86e44bd7
L
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308# If no C compiler was specified, use CC.
7309LTCC=${LTCC-"$CC"}
7310
7311# If no C compiler flags were specified, use CFLAGS.
7312LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7313
7314# Allow CC to be a program name with arguments.
7315compiler=$CC
7316
7317
7318# Check for command to grab the raw symbol name followed by C symbol from nm.
5213506e
RW
7319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7320$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7321if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7322 $as_echo_n "(cached) " >&6
e0f7b260 7323else
86e44bd7
L
7324
7325# These are sane defaults that work on at least a few old systems.
7326# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7327
7328# Character class describing NM global symbol codes.
7329symcode='[BCDEGRST]'
7330
7331# Regexp to match symbols that can be accessed directly from C.
7332sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7333
7334# Define system-specific variables.
7335case $host_os in
7336aix*)
7337 symcode='[BCDT]'
7338 ;;
0da7a284 7339cygwin* | mingw* | pw32* | cegcc*)
86e44bd7
L
7340 symcode='[ABCDGISTW]'
7341 ;;
7342hpux*)
7343 if test "$host_cpu" = ia64; then
7344 symcode='[ABCDEGRST]'
97b8365c 7345 fi
86e44bd7
L
7346 ;;
7347irix* | nonstopux*)
7348 symcode='[BCDEGRST]'
7349 ;;
7350osf*)
7351 symcode='[BCDEGQRST]'
7352 ;;
7353solaris*)
7354 symcode='[BDRT]'
7355 ;;
7356sco3.2v5*)
7357 symcode='[DT]'
7358 ;;
7359sysv4.2uw2*)
7360 symcode='[DT]'
7361 ;;
7362sysv5* | sco5v6* | unixware* | OpenUNIX*)
7363 symcode='[ABDT]'
7364 ;;
7365sysv4)
7366 symcode='[DFNSTU]'
7367 ;;
7368esac
ea54b293 7369
86e44bd7
L
7370# If we're using GNU nm, then use its standard symbol codes.
7371case `$NM -V 2>&1` in
7372*GNU* | *'with BFD'*)
7373 symcode='[ABCDGIRSTW]' ;;
7374esac
e0f7b260 7375
86e44bd7
L
7376# Transform an extracted symbol line into a proper C declaration.
7377# Some systems (esp. on ia64) link data and code symbols differently,
7378# so use this general approach.
7379lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7380
7381# Transform an extracted symbol line into symbol name and symbol address
7382lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
0da7a284 7383lt_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'"
86e44bd7
L
7384
7385# Handle CRLF in mingw tool chain
7386opt_cr=
7387case $build_os in
7388mingw*)
7389 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7390 ;;
7391esac
7392
7393# Try without a prefix underscore, then with it.
7394for ac_symprfx in "" "_"; do
7395
7396 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7397 symxfrm="\\1 $ac_symprfx\\2 \\2"
7398
7399 # Write the raw and C identifiers.
7400 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7401 # Fake it for dumpbin and say T for any non-static function
7402 # and D for any global variable.
7403 # Also find C++ and __fastcall symbols from MSVC++,
7404 # which start with @ or ?.
7405 lt_cv_sys_global_symbol_pipe="$AWK '"\
7406" {last_section=section; section=\$ 3};"\
7407" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7408" \$ 0!~/External *\|/{next};"\
7409" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7410" {if(hide[section]) next};"\
7411" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7412" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7413" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7414" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7415" ' prfx=^$ac_symprfx"
7416 else
7417 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
97b8365c 7418 fi
02440ca4 7419
86e44bd7
L
7420 # Check to see that the pipe works correctly.
7421 pipe_works=no
8c0633b7 7422
86e44bd7
L
7423 rm -f conftest*
7424 cat > conftest.$ac_ext <<_LT_EOF
7425#ifdef __cplusplus
7426extern "C" {
7427#endif
7428char nm_test_var;
7429void nm_test_func(void);
7430void nm_test_func(void){}
7431#ifdef __cplusplus
7432}
7433#endif
7434int main(){nm_test_var='a';nm_test_func();return(0);}
7435_LT_EOF
97b8365c 7436
5213506e 7437 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
86e44bd7
L
7438 (eval $ac_compile) 2>&5
7439 ac_status=$?
5213506e
RW
7440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7441 test $ac_status = 0; }; then
86e44bd7
L
7442 # Now try to grab the symbols.
7443 nlist=conftest.nm
43e02a8a
RW
7444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7445 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
86e44bd7 7446 ac_status=$?
5213506e
RW
7447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7448 test $ac_status = 0; } && test -s "$nlist"; then
86e44bd7
L
7449 # Try sorting and uniquifying the output.
7450 if sort "$nlist" | uniq > "$nlist"T; then
7451 mv -f "$nlist"T "$nlist"
7452 else
7453 rm -f "$nlist"T
7454 fi
7455
7456 # Make sure that we snagged all the symbols we need.
7457 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7458 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7459 cat <<_LT_EOF > conftest.$ac_ext
7460#ifdef __cplusplus
7461extern "C" {
7462#endif
7463
7464_LT_EOF
7465 # Now generate the symbol file.
7466 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7467
7468 cat <<_LT_EOF >> conftest.$ac_ext
7469
7470/* The mapping between symbol names and symbols. */
7471const struct {
7472 const char *name;
7473 void *address;
7474}
7475lt__PROGRAM__LTX_preloaded_symbols[] =
7476{
7477 { "@PROGRAM@", (void *) 0 },
7478_LT_EOF
7479 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7480 cat <<\_LT_EOF >> conftest.$ac_ext
7481 {0, (void *) 0}
7482};
7483
7484/* This works around a problem in FreeBSD linker */
7485#ifdef FREEBSD_WORKAROUND
7486static const void *lt_preloaded_setup() {
7487 return lt__PROGRAM__LTX_preloaded_symbols;
7488}
7489#endif
7490
7491#ifdef __cplusplus
7492}
7493#endif
7494_LT_EOF
7495 # Now try linking the two files.
7496 mv conftest.$ac_objext conftstm.$ac_objext
7497 lt_save_LIBS="$LIBS"
7498 lt_save_CFLAGS="$CFLAGS"
7499 LIBS="conftstm.$ac_objext"
7500 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5213506e 7501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
86e44bd7
L
7502 (eval $ac_link) 2>&5
7503 ac_status=$?
5213506e
RW
7504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7505 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
86e44bd7
L
7506 pipe_works=yes
7507 fi
7508 LIBS="$lt_save_LIBS"
7509 CFLAGS="$lt_save_CFLAGS"
7510 else
7511 echo "cannot find nm_test_func in $nlist" >&5
7512 fi
7513 else
7514 echo "cannot find nm_test_var in $nlist" >&5
7515 fi
7516 else
7517 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7518 fi
7519 else
7520 echo "$progname: failed program was:" >&5
7521 cat conftest.$ac_ext >&5
7522 fi
0da7a284 7523 rm -rf conftest* conftst*
86e44bd7
L
7524
7525 # Do not use the global_symbol_pipe unless it works.
7526 if test "$pipe_works" = yes; then
7527 break
7528 else
7529 lt_cv_sys_global_symbol_pipe=
97b8365c 7530 fi
97b8365c 7531done
02440ca4 7532
e0f7b260 7533fi
86e44bd7
L
7534
7535if test -z "$lt_cv_sys_global_symbol_pipe"; then
7536 lt_cv_sys_global_symbol_to_cdecl=
97b8365c 7537fi
86e44bd7 7538if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5213506e
RW
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7540$as_echo "failed" >&6; }
1ea63ef8 7541else
5213506e
RW
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7543$as_echo "ok" >&6; }
1ea63ef8
TT
7544fi
7545
1ea63ef8 7546
1ea63ef8 7547
97b8365c 7548
1ea63ef8 7549
4f9533c7 7550
4f9533c7 7551
02440ca4 7552
8c0633b7 7553
4f9533c7 7554
4f9533c7 7555
8c0633b7 7556
8c0633b7 7557
8c0633b7 7558
02440ca4 7559
0da7a284
PG
7560
7561
7562
7563
7564
86e44bd7
L
7565
7566
5213506e
RW
7567# Check whether --enable-libtool-lock was given.
7568if test "${enable_libtool_lock+set}" = set; then :
7569 enableval=$enable_libtool_lock;
7570fi
86e44bd7 7571
86e44bd7
L
7572test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7573
7574# Some flags need to be propagated to the compiler or linker for good
7575# libtool support.
7576case $host in
7577ia64-*-hpux*)
7578 # Find out which ABI we are using.
7579 echo 'int i;' > conftest.$ac_ext
5213506e 7580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
86e44bd7 7581 (eval $ac_compile) 2>&5
e0f7b260 7582 ac_status=$?
5213506e
RW
7583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7584 test $ac_status = 0; }; then
86e44bd7
L
7585 case `/usr/bin/file conftest.$ac_objext` in
7586 *ELF-32*)
7587 HPUX_IA64_MODE="32"
7588 ;;
7589 *ELF-64*)
7590 HPUX_IA64_MODE="64"
7591 ;;
7592 esac
7593 fi
7594 rm -rf conftest*
7595 ;;
7596*-*-irix6*)
7597 # Find out which ABI we are using.
43e02a8a 7598 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5213506e 7599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
86e44bd7 7600 (eval $ac_compile) 2>&5
e0f7b260 7601 ac_status=$?
5213506e
RW
7602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7603 test $ac_status = 0; }; then
86e44bd7
L
7604 if test "$lt_cv_prog_gnu_ld" = yes; then
7605 case `/usr/bin/file conftest.$ac_objext` in
7606 *32-bit*)
7607 LD="${LD-ld} -melf32bsmip"
7608 ;;
7609 *N32*)
7610 LD="${LD-ld} -melf32bmipn32"
7611 ;;
7612 *64-bit*)
7613 LD="${LD-ld} -melf64bmip"
7614 ;;
7615 esac
7616 else
7617 case `/usr/bin/file conftest.$ac_objext` in
7618 *32-bit*)
7619 LD="${LD-ld} -32"
7620 ;;
7621 *N32*)
7622 LD="${LD-ld} -n32"
7623 ;;
7624 *64-bit*)
7625 LD="${LD-ld} -64"
7626 ;;
7627 esac
7628 fi
7629 fi
7630 rm -rf conftest*
7631 ;;
7632
3cbe17f7 7633x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
86e44bd7
L
7634s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7635 # Find out which ABI we are using.
7636 echo 'int i;' > conftest.$ac_ext
5213506e 7637 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
86e44bd7 7638 (eval $ac_compile) 2>&5
e0f7b260 7639 ac_status=$?
5213506e
RW
7640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7641 test $ac_status = 0; }; then
86e44bd7
L
7642 case `/usr/bin/file conftest.o` in
7643 *32-bit*)
7644 case $host in
7645 x86_64-*kfreebsd*-gnu)
7646 LD="${LD-ld} -m elf_i386_fbsd"
7647 ;;
7648 x86_64-*linux*)
e6d5f8c9
L
7649 case `/usr/bin/file conftest.o` in
7650 *x86-64*)
7651 LD="${LD-ld} -m elf32_x86_64"
7652 ;;
7653 *)
7654 LD="${LD-ld} -m elf_i386"
7655 ;;
7656 esac
86e44bd7 7657 ;;
3cbe17f7
AM
7658 powerpc64le-*linux*)
7659 LD="${LD-ld} -m elf32lppclinux"
7660 ;;
7661 powerpc64-*linux*)
86e44bd7
L
7662 LD="${LD-ld} -m elf32ppclinux"
7663 ;;
7664 s390x-*linux*)
7665 LD="${LD-ld} -m elf_s390"
7666 ;;
7667 sparc64-*linux*)
7668 LD="${LD-ld} -m elf32_sparc"
7669 ;;
7670 esac
7671 ;;
7672 *64-bit*)
7673 case $host in
7674 x86_64-*kfreebsd*-gnu)
7675 LD="${LD-ld} -m elf_x86_64_fbsd"
7676 ;;
7677 x86_64-*linux*)
7678 LD="${LD-ld} -m elf_x86_64"
7679 ;;
3cbe17f7
AM
7680 powerpcle-*linux*)
7681 LD="${LD-ld} -m elf64lppc"
7682 ;;
7683 powerpc-*linux*)
86e44bd7
L
7684 LD="${LD-ld} -m elf64ppc"
7685 ;;
7686 s390*-*linux*|s390*-*tpf*)
7687 LD="${LD-ld} -m elf64_s390"
7688 ;;
7689 sparc*-*linux*)
7690 LD="${LD-ld} -m elf64_sparc"
7691 ;;
7692 esac
7693 ;;
7694 esac
7695 fi
7696 rm -rf conftest*
7697 ;;
02440ca4 7698
86e44bd7
L
7699*-*-sco3.2v5*)
7700 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7701 SAVE_CFLAGS="$CFLAGS"
7702 CFLAGS="$CFLAGS -belf"
5213506e
RW
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7704$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7705if test "${lt_cv_cc_needs_belf+set}" = set; then :
7706 $as_echo_n "(cached) " >&6
1ea63ef8 7707else
86e44bd7
L
7708 ac_ext=c
7709ac_cpp='$CPP $CPPFLAGS'
7710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7712ac_compiler_gnu=$ac_cv_c_compiler_gnu
7713
7714 if test x$gcc_no_link = xyes; then
5213506e 7715 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
86e44bd7 7716fi
5213506e 7717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
97b8365c
TT
7718/* end confdefs.h. */
7719
7720int
7721main ()
7722{
97b8365c
TT
7723
7724 ;
7725 return 0;
7726}
7727_ACEOF
5213506e 7728if ac_fn_c_try_link "$LINENO"; then :
86e44bd7 7729 lt_cv_cc_needs_belf=yes
97b8365c 7730else
5213506e 7731 lt_cv_cc_needs_belf=no
97b8365c 7732fi
5213506e
RW
7733rm -f core conftest.err conftest.$ac_objext \
7734 conftest$ac_exeext conftest.$ac_ext
86e44bd7
L
7735 ac_ext=c
7736ac_cpp='$CPP $CPPFLAGS'
7737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7739ac_compiler_gnu=$ac_cv_c_compiler_gnu
02440ca4 7740
97b8365c 7741fi
5213506e
RW
7742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7743$as_echo "$lt_cv_cc_needs_belf" >&6; }
86e44bd7
L
7744 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7745 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7746 CFLAGS="$SAVE_CFLAGS"
7747 fi
7748 ;;
7749sparc*-*solaris*)
7750 # Find out which ABI we are using.
7751 echo 'int i;' > conftest.$ac_ext
5213506e 7752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
86e44bd7
L
7753 (eval $ac_compile) 2>&5
7754 ac_status=$?
5213506e
RW
7755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7756 test $ac_status = 0; }; then
86e44bd7
L
7757 case `/usr/bin/file conftest.o` in
7758 *64-bit*)
7759 case $lt_cv_prog_gnu_ld in
7760 yes*) LD="${LD-ld} -m elf64_sparc" ;;
0da7a284
PG
7761 *)
7762 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7763 LD="${LD-ld} -64"
7764 fi
7765 ;;
86e44bd7
L
7766 esac
7767 ;;
7768 esac
7769 fi
7770 rm -rf conftest*
7771 ;;
7772esac
7773
7774need_locks="$enable_libtool_lock"
7775
7776
0da7a284
PG
7777 case $host_os in
7778 rhapsody* | darwin*)
7779 if test -n "$ac_tool_prefix"; then
7780 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7781set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5213506e
RW
7782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7783$as_echo_n "checking for $ac_word... " >&6; }
7784if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7785 $as_echo_n "(cached) " >&6
97b8365c 7786else
0da7a284
PG
7787 if test -n "$DSYMUTIL"; then
7788 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7789else
7790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7791for as_dir in $PATH
7792do
7793 IFS=$as_save_IFS
7794 test -z "$as_dir" && as_dir=.
5213506e
RW
7795 for ac_exec_ext in '' $ac_executable_extensions; do
7796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0da7a284 7797 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5213506e 7798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0da7a284
PG
7799 break 2
7800 fi
7801done
5213506e
RW
7802 done
7803IFS=$as_save_IFS
02440ca4 7804
0da7a284
PG
7805fi
7806fi
7807DSYMUTIL=$ac_cv_prog_DSYMUTIL
7808if test -n "$DSYMUTIL"; then
5213506e
RW
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7810$as_echo "$DSYMUTIL" >&6; }
8c0633b7 7811else
5213506e
RW
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7813$as_echo "no" >&6; }
0da7a284 7814fi
ea54b293 7815
5213506e 7816
8c0633b7 7817fi
0da7a284
PG
7818if test -z "$ac_cv_prog_DSYMUTIL"; then
7819 ac_ct_DSYMUTIL=$DSYMUTIL
7820 # Extract the first word of "dsymutil", so it can be a program name with args.
7821set dummy dsymutil; ac_word=$2
5213506e
RW
7822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7823$as_echo_n "checking for $ac_word... " >&6; }
7824if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7825 $as_echo_n "(cached) " >&6
0da7a284
PG
7826else
7827 if test -n "$ac_ct_DSYMUTIL"; then
7828 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7829else
7830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831for as_dir in $PATH
7832do
7833 IFS=$as_save_IFS
7834 test -z "$as_dir" && as_dir=.
5213506e
RW
7835 for ac_exec_ext in '' $ac_executable_extensions; do
7836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0da7a284 7837 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5213506e 7838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0da7a284
PG
7839 break 2
7840 fi
7841done
5213506e
RW
7842 done
7843IFS=$as_save_IFS
0da7a284 7844
02440ca4 7845fi
0da7a284
PG
7846fi
7847ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7848if test -n "$ac_ct_DSYMUTIL"; then
5213506e
RW
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7850$as_echo "$ac_ct_DSYMUTIL" >&6; }
0da7a284 7851else
5213506e
RW
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7853$as_echo "no" >&6; }
0da7a284
PG
7854fi
7855
5213506e
RW
7856 if test "x$ac_ct_DSYMUTIL" = x; then
7857 DSYMUTIL=":"
7858 else
7859 case $cross_compiling:$ac_tool_warned in
7860yes:)
7861{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7862$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7863ac_tool_warned=yes ;;
7864esac
7865 DSYMUTIL=$ac_ct_DSYMUTIL
7866 fi
0da7a284
PG
7867else
7868 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7869fi
7870
7871 if test -n "$ac_tool_prefix"; then
7872 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7873set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5213506e
RW
7874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7875$as_echo_n "checking for $ac_word... " >&6; }
7876if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7877 $as_echo_n "(cached) " >&6
0da7a284
PG
7878else
7879 if test -n "$NMEDIT"; then
7880 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7881else
7882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7883for as_dir in $PATH
7884do
7885 IFS=$as_save_IFS
7886 test -z "$as_dir" && as_dir=.
5213506e
RW
7887 for ac_exec_ext in '' $ac_executable_extensions; do
7888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0da7a284 7889 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5213506e 7890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0da7a284
PG
7891 break 2
7892 fi
7893done
5213506e
RW
7894 done
7895IFS=$as_save_IFS
0da7a284
PG
7896
7897fi
7898fi
7899NMEDIT=$ac_cv_prog_NMEDIT
7900if test -n "$NMEDIT"; then
5213506e
RW
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7902$as_echo "$NMEDIT" >&6; }
0da7a284 7903else
5213506e
RW
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7905$as_echo "no" >&6; }
0da7a284
PG
7906fi
7907
5213506e 7908
0da7a284
PG
7909fi
7910if test -z "$ac_cv_prog_NMEDIT"; then
7911 ac_ct_NMEDIT=$NMEDIT
7912 # Extract the first word of "nmedit", so it can be a program name with args.
7913set dummy nmedit; ac_word=$2
5213506e
RW
7914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7915$as_echo_n "checking for $ac_word... " >&6; }
7916if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7917 $as_echo_n "(cached) " >&6
0da7a284
PG
7918else
7919 if test -n "$ac_ct_NMEDIT"; then
7920 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7921else
7922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923for as_dir in $PATH
7924do
7925 IFS=$as_save_IFS
7926 test -z "$as_dir" && as_dir=.
5213506e
RW
7927 for ac_exec_ext in '' $ac_executable_extensions; do
7928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0da7a284 7929 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5213506e 7930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0da7a284
PG
7931 break 2
7932 fi
7933done
5213506e
RW
7934 done
7935IFS=$as_save_IFS
0da7a284 7936
0da7a284
PG
7937fi
7938fi
7939ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7940if test -n "$ac_ct_NMEDIT"; then
5213506e
RW
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7942$as_echo "$ac_ct_NMEDIT" >&6; }
0da7a284 7943else
5213506e
RW
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7945$as_echo "no" >&6; }
0da7a284
PG
7946fi
7947
5213506e
RW
7948 if test "x$ac_ct_NMEDIT" = x; then
7949 NMEDIT=":"
7950 else
7951 case $cross_compiling:$ac_tool_warned in
7952yes:)
7953{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7954$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7955ac_tool_warned=yes ;;
7956esac
7957 NMEDIT=$ac_ct_NMEDIT
7958 fi
0da7a284
PG
7959else
7960 NMEDIT="$ac_cv_prog_NMEDIT"
7961fi
7962
7963 if test -n "$ac_tool_prefix"; then
7964 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7965set dummy ${ac_tool_prefix}lipo; ac_word=$2
5213506e
RW
7966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7967$as_echo_n "checking for $ac_word... " >&6; }
7968if test "${ac_cv_prog_LIPO+set}" = set; then :
7969 $as_echo_n "(cached) " >&6
0da7a284
PG
7970else
7971 if test -n "$LIPO"; then
7972 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7973else
7974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7975for as_dir in $PATH
7976do
7977 IFS=$as_save_IFS
7978 test -z "$as_dir" && as_dir=.
5213506e
RW
7979 for ac_exec_ext in '' $ac_executable_extensions; do
7980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0da7a284 7981 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5213506e 7982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0da7a284
PG
7983 break 2
7984 fi
7985done
5213506e
RW
7986 done
7987IFS=$as_save_IFS
0da7a284
PG
7988
7989fi
7990fi
7991LIPO=$ac_cv_prog_LIPO
7992if test -n "$LIPO"; then
5213506e
RW
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7994$as_echo "$LIPO" >&6; }
0da7a284 7995else
5213506e
RW
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7997$as_echo "no" >&6; }
0da7a284
PG
7998fi
7999
5213506e 8000
0da7a284
PG
8001fi
8002if test -z "$ac_cv_prog_LIPO"; then
8003 ac_ct_LIPO=$LIPO
8004 # Extract the first word of "lipo", so it can be a program name with args.
8005set dummy lipo; ac_word=$2
5213506e
RW
8006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8007$as_echo_n "checking for $ac_word... " >&6; }
8008if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8009 $as_echo_n "(cached) " >&6
0da7a284
PG
8010else
8011 if test -n "$ac_ct_LIPO"; then
8012 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8013else
8014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8015for as_dir in $PATH
8016do
8017 IFS=$as_save_IFS
8018 test -z "$as_dir" && as_dir=.
5213506e
RW
8019 for ac_exec_ext in '' $ac_executable_extensions; do
8020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0da7a284 8021 ac_cv_prog_ac_ct_LIPO="lipo"
5213506e 8022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0da7a284
PG
8023 break 2
8024 fi
8025done
5213506e
RW
8026 done
8027IFS=$as_save_IFS
0da7a284 8028
0da7a284
PG
8029fi
8030fi
8031ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8032if test -n "$ac_ct_LIPO"; then
5213506e
RW
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8034$as_echo "$ac_ct_LIPO" >&6; }
0da7a284 8035else
5213506e
RW
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8037$as_echo "no" >&6; }
0da7a284
PG
8038fi
8039
5213506e
RW
8040 if test "x$ac_ct_LIPO" = x; then
8041 LIPO=":"
8042 else
8043 case $cross_compiling:$ac_tool_warned in
8044yes:)
8045{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8046$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8047ac_tool_warned=yes ;;
8048esac
8049 LIPO=$ac_ct_LIPO
8050 fi
0da7a284
PG
8051else
8052 LIPO="$ac_cv_prog_LIPO"
8053fi
8054
8055 if test -n "$ac_tool_prefix"; then
8056 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8057set dummy ${ac_tool_prefix}otool; ac_word=$2
5213506e
RW
8058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8059$as_echo_n "checking for $ac_word... " >&6; }
8060if test "${ac_cv_prog_OTOOL+set}" = set; then :
8061 $as_echo_n "(cached) " >&6
0da7a284
PG
8062else
8063 if test -n "$OTOOL"; then
8064 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8065else
8066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8067for as_dir in $PATH
8068do
8069 IFS=$as_save_IFS
8070 test -z "$as_dir" && as_dir=.
5213506e
RW
8071 for ac_exec_ext in '' $ac_executable_extensions; do
8072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0da7a284 8073 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5213506e 8074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0da7a284
PG
8075 break 2
8076 fi
8077done
5213506e
RW
8078 done
8079IFS=$as_save_IFS
0da7a284
PG
8080
8081fi
8082fi
8083OTOOL=$ac_cv_prog_OTOOL
8084if test -n "$OTOOL"; then
5213506e
RW
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8086$as_echo "$OTOOL" >&6; }
0da7a284 8087else
5213506e
RW
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8089$as_echo "no" >&6; }
0da7a284
PG
8090fi
8091
5213506e 8092
0da7a284
PG
8093fi
8094if test -z "$ac_cv_prog_OTOOL"; then
8095 ac_ct_OTOOL=$OTOOL
8096 # Extract the first word of "otool", so it can be a program name with args.
8097set dummy otool; ac_word=$2
5213506e
RW
8098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8099$as_echo_n "checking for $ac_word... " >&6; }
8100if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8101 $as_echo_n "(cached) " >&6
0da7a284
PG
8102else
8103 if test -n "$ac_ct_OTOOL"; then
8104 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8105else
8106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8107for as_dir in $PATH
8108do
8109 IFS=$as_save_IFS
8110 test -z "$as_dir" && as_dir=.
5213506e
RW
8111 for ac_exec_ext in '' $ac_executable_extensions; do
8112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0da7a284 8113 ac_cv_prog_ac_ct_OTOOL="otool"
5213506e 8114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0da7a284
PG
8115 break 2
8116 fi
8117done
5213506e
RW
8118 done
8119IFS=$as_save_IFS
0da7a284 8120
0da7a284
PG
8121fi
8122fi
8123ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8124if test -n "$ac_ct_OTOOL"; then
5213506e
RW
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8126$as_echo "$ac_ct_OTOOL" >&6; }
0da7a284 8127else
5213506e
RW
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8129$as_echo "no" >&6; }
0da7a284
PG
8130fi
8131
5213506e
RW
8132 if test "x$ac_ct_OTOOL" = x; then
8133 OTOOL=":"
8134 else
8135 case $cross_compiling:$ac_tool_warned in
8136yes:)
8137{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8138$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8139ac_tool_warned=yes ;;
8140esac
8141 OTOOL=$ac_ct_OTOOL
8142 fi
0da7a284
PG
8143else
8144 OTOOL="$ac_cv_prog_OTOOL"
8145fi
8146
8147 if test -n "$ac_tool_prefix"; then
8148 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8149set dummy ${ac_tool_prefix}otool64; ac_word=$2
5213506e
RW
8150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8151$as_echo_n "checking for $ac_word... " >&6; }
8152if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8153 $as_echo_n "(cached) " >&6
0da7a284
PG
8154else
8155 if test -n "$OTOOL64"; then
8156 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8157else
8158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8159for as_dir in $PATH
8160do
8161 IFS=$as_save_IFS
8162 test -z "$as_dir" && as_dir=.
5213506e
RW
8163 for ac_exec_ext in '' $ac_executable_extensions; do
8164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0da7a284 8165 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5213506e 8166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0da7a284
PG
8167 break 2
8168 fi
8169done
5213506e
RW
8170 done
8171IFS=$as_save_IFS
0da7a284
PG
8172
8173fi
8174fi
8175OTOOL64=$ac_cv_prog_OTOOL64
8176if test -n "$OTOOL64"; then
5213506e
RW
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8178$as_echo "$OTOOL64" >&6; }
0da7a284 8179else
5213506e
RW
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8181$as_echo "no" >&6; }
0da7a284
PG
8182fi
8183
5213506e 8184
0da7a284
PG
8185fi
8186if test -z "$ac_cv_prog_OTOOL64"; then
8187 ac_ct_OTOOL64=$OTOOL64
8188 # Extract the first word of "otool64", so it can be a program name with args.
8189set dummy otool64; ac_word=$2
5213506e
RW
8190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8191$as_echo_n "checking for $ac_word... " >&6; }
8192if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8193 $as_echo_n "(cached) " >&6
0da7a284
PG
8194else
8195 if test -n "$ac_ct_OTOOL64"; then
8196 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8197else
8198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8199for as_dir in $PATH
8200do
8201 IFS=$as_save_IFS
8202 test -z "$as_dir" && as_dir=.
5213506e
RW
8203 for ac_exec_ext in '' $ac_executable_extensions; do
8204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0da7a284 8205 ac_cv_prog_ac_ct_OTOOL64="otool64"
5213506e 8206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0da7a284
PG
8207 break 2
8208 fi
8209done
5213506e
RW
8210 done
8211IFS=$as_save_IFS
0da7a284 8212
0da7a284
PG
8213fi
8214fi
8215ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8216if test -n "$ac_ct_OTOOL64"; then
5213506e
RW
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8218$as_echo "$ac_ct_OTOOL64" >&6; }
0da7a284 8219else
5213506e
RW
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8221$as_echo "no" >&6; }
0da7a284
PG
8222fi
8223
5213506e
RW
8224 if test "x$ac_ct_OTOOL64" = x; then
8225 OTOOL64=":"
8226 else
8227 case $cross_compiling:$ac_tool_warned in
8228yes:)
8229{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8230$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8231ac_tool_warned=yes ;;
8232esac
8233 OTOOL64=$ac_ct_OTOOL64
8234 fi
0da7a284
PG
8235else
8236 OTOOL64="$ac_cv_prog_OTOOL64"
8237fi
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
5213506e
RW
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8266$as_echo_n "checking for -single_module linker flag... " >&6; }
8267if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8268 $as_echo_n "(cached) " >&6
0da7a284
PG
8269else
8270 lt_cv_apple_cc_single_mod=no
8271 if test -z "${LT_MULTI_MODULE}"; then
8272 # By default we will add the -single_module flag. You can override
8273 # by either setting the environment variable LT_MULTI_MODULE
8274 # non-empty at configure time, or by adding -multi_module to the
8275 # link flags.
8276 rm -rf libconftest.dylib*
8277 echo "int foo(void){return 1;}" > conftest.c
8278 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8279-dynamiclib -Wl,-single_module conftest.c" >&5
8280 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8281 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8282 _lt_result=$?
8283 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8284 lt_cv_apple_cc_single_mod=yes
8285 else
8286 cat conftest.err >&5
8287 fi
8288 rm -rf libconftest.dylib*
8289 rm -f conftest.*
8290 fi
8291fi
5213506e
RW
8292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8293$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8295$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8296if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8297 $as_echo_n "(cached) " >&6
0da7a284
PG
8298else
8299 lt_cv_ld_exported_symbols_list=no
8300 save_LDFLAGS=$LDFLAGS
8301 echo "_main" > conftest.sym
8302 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8303 if test x$gcc_no_link = xyes; then
5213506e 8304 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
0da7a284 8305fi
5213506e 8306cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0da7a284
PG
8307/* end confdefs.h. */
8308
8309int
8310main ()
8311{
8312
8313 ;
8314 return 0;
8315}
8316_ACEOF
5213506e 8317if ac_fn_c_try_link "$LINENO"; then :
0da7a284
PG
8318 lt_cv_ld_exported_symbols_list=yes
8319else
5213506e 8320 lt_cv_ld_exported_symbols_list=no
0da7a284 8321fi
5213506e
RW
8322rm -f core conftest.err conftest.$ac_objext \
8323 conftest$ac_exeext conftest.$ac_ext
0da7a284
PG
8324 LDFLAGS="$save_LDFLAGS"
8325
8326fi
5213506e
RW
8327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8328$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
43e02a8a
RW
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8330$as_echo_n "checking for -force_load linker flag... " >&6; }
8331if test "${lt_cv_ld_force_load+set}" = set; then :
8332 $as_echo_n "(cached) " >&6
8333else
8334 lt_cv_ld_force_load=no
8335 cat > conftest.c << _LT_EOF
8336int forced_loaded() { return 2;}
8337_LT_EOF
8338 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8339 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8340 echo "$AR cru libconftest.a conftest.o" >&5
8341 $AR cru libconftest.a conftest.o 2>&5
8342 cat > conftest.c << _LT_EOF
8343int main() { return 0;}
8344_LT_EOF
8345 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8346 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8347 _lt_result=$?
8348 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8349 lt_cv_ld_force_load=yes
8350 else
8351 cat conftest.err >&5
8352 fi
8353 rm -f conftest.err libconftest.a conftest conftest.c
8354 rm -rf conftest.dSYM
8355
8356fi
8357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8358$as_echo "$lt_cv_ld_force_load" >&6; }
0da7a284
PG
8359 case $host_os in
8360 rhapsody* | darwin1.[012])
8361 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8362 darwin1.*)
8363 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8364 darwin*) # darwin 5.x on
8365 # if running on 10.5 or later, the deployment target defaults
8366 # to the OS version, if on x86, and 10.4, the deployment
8367 # target defaults to 10.4. Don't you love it?
8368 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8369 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8370 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
ebf6d33b 8371 10.[012][,.]*)
0da7a284
PG
8372 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8373 10.*)
8374 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8375 esac
8376 ;;
8377 esac
8378 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8379 _lt_dar_single_mod='$single_module'
8380 fi
8381 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8382 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8383 else
8384 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8385 fi
43e02a8a 8386 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
0da7a284
PG
8387 _lt_dsymutil='~$DSYMUTIL $lib || :'
8388 else
8389 _lt_dsymutil=
8390 fi
8391 ;;
8392 esac
8393
0da7a284 8394for ac_header in dlfcn.h
5213506e
RW
8395do :
8396 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8397"
8398if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
0da7a284 8399 cat >>confdefs.h <<_ACEOF
5213506e 8400#define HAVE_DLFCN_H 1
0da7a284
PG
8401_ACEOF
8402
8403fi
8404
8405done
8406
8407
8408
43e02a8a
RW
8409
8410
0da7a284
PG
8411# Set options
8412
8413
8414
8415 enable_dlopen=no
8416
8417
8418 enable_win32_dll=no
8419
8420
5213506e
RW
8421 # Check whether --enable-shared was given.
8422if test "${enable_shared+set}" = set; then :
8423 enableval=$enable_shared; p=${PACKAGE-default}
0da7a284
PG
8424 case $enableval in
8425 yes) enable_shared=yes ;;
8426 no) enable_shared=no ;;
8427 *)
8428 enable_shared=no
8429 # Look at the argument we got. We use all the common list separators.
8430 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8431 for pkg in $enableval; do
8432 IFS="$lt_save_ifs"
8433 if test "X$pkg" = "X$p"; then
8434 enable_shared=yes
8435 fi
8436 done
8437 IFS="$lt_save_ifs"
8438 ;;
8439 esac
8440else
8441 enable_shared=yes
5213506e
RW
8442fi
8443
0da7a284
PG
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
5213506e
RW
8454# Check whether --with-pic was given.
8455if test "${with_pic+set}" = set; then :
8456 withval=$with_pic; pic_mode="$withval"
0da7a284
PG
8457else
8458 pic_mode=default
5213506e
RW
8459fi
8460
0da7a284
PG
8461
8462test -z "$pic_mode" && pic_mode=default
8463
8464
8465
8466
8467
8468
8469
5213506e
RW
8470 # Check whether --enable-fast-install was given.
8471if test "${enable_fast_install+set}" = set; then :
8472 enableval=$enable_fast_install; p=${PACKAGE-default}
0da7a284
PG
8473 case $enableval in
8474 yes) enable_fast_install=yes ;;
8475 no) enable_fast_install=no ;;
8476 *)
8477 enable_fast_install=no
8478 # Look at the argument we got. We use all the common list separators.
8479 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8480 for pkg in $enableval; do
8481 IFS="$lt_save_ifs"
8482 if test "X$pkg" = "X$p"; then
8483 enable_fast_install=yes
8484 fi
8485 done
8486 IFS="$lt_save_ifs"
8487 ;;
8488 esac
8489else
8490 enable_fast_install=yes
5213506e
RW
8491fi
8492
0da7a284
PG
8493
8494
8495
8496
8497
86e44bd7 8498
86e44bd7 8499
86e44bd7
L
8500
8501
8502
8503# This can be used to rebuild libtool when needed
8504LIBTOOL_DEPS="$ltmain"
8505
8506# Always use our own libtool.
8507LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
43e02a8a 8531
86e44bd7
L
8532
8533
8534test -z "$LN_S" && LN_S="ln -s"
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549if test -n "${ZSH_VERSION+set}" ; then
8550 setopt NO_GLOB_SUBST
8551fi
8552
5213506e
RW
8553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8554$as_echo_n "checking for objdir... " >&6; }
8555if test "${lt_cv_objdir+set}" = set; then :
8556 $as_echo_n "(cached) " >&6
97b8365c 8557else
86e44bd7
L
8558 rm -f .libs 2>/dev/null
8559mkdir .libs 2>/dev/null
8560if test -d .libs; then
8561 lt_cv_objdir=.libs
8562else
8563 # MS-DOS does not allow filenames that begin with a dot.
8564 lt_cv_objdir=_libs
8565fi
8566rmdir .libs 2>/dev/null
8567fi
5213506e
RW
8568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8569$as_echo "$lt_cv_objdir" >&6; }
86e44bd7 8570objdir=$lt_cv_objdir
ea54b293
TT
8571
8572
86e44bd7
L
8573
8574
8575
8576cat >>confdefs.h <<_ACEOF
8577#define LT_OBJDIR "$lt_cv_objdir/"
97b8365c 8578_ACEOF
ea54b293 8579
02440ca4 8580
02440ca4 8581
02440ca4 8582
86e44bd7
L
8583case $host_os in
8584aix3*)
8585 # AIX sometimes has problems with the GCC collect2 program. For some
8586 # reason, if we set the COLLECT_NAMES environment variable, the problems
8587 # vanish in a puff of smoke.
8588 if test "X${COLLECT_NAMES+set}" != Xset; then
8589 COLLECT_NAMES=
8590 export COLLECT_NAMES
1ea63ef8 8591 fi
86e44bd7
L
8592 ;;
8593esac
97b8365c 8594
86e44bd7
L
8595# Global variables:
8596ofile=libtool
8597can_build_shared=yes
ea54b293 8598
86e44bd7
L
8599# All known linkers require a `.a' archive for static linking (except MSVC,
8600# which needs '.lib').
8601libext=a
e0f7b260 8602
86e44bd7
L
8603with_gnu_ld="$lt_cv_prog_gnu_ld"
8604
8605old_CC="$CC"
8606old_CFLAGS="$CFLAGS"
8607
8608# Set sane defaults for various variables
8609test -z "$CC" && CC=cc
8610test -z "$LTCC" && LTCC=$CC
8611test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8612test -z "$LD" && LD=ld
8613test -z "$ac_objext" && ac_objext=o
8614
8615for cc_temp in $compiler""; do
8616 case $cc_temp in
8617 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8618 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8619 \-*) ;;
8620 *) break;;
8621 esac
8622done
43e02a8a 8623cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
86e44bd7
L
8624
8625
8626# Only perform the check for file, if the check method requires it
8627test -z "$MAGIC_CMD" && MAGIC_CMD=file
8628case $deplibs_check_method in
8629file_magic*)
8630 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5213506e
RW
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8632$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8633if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8634 $as_echo_n "(cached) " >&6
ea54b293 8635else
86e44bd7
L
8636 case $MAGIC_CMD in
8637[\\/*] | ?:[\\/]*)
8638 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8639 ;;
8640*)
8641 lt_save_MAGIC_CMD="$MAGIC_CMD"
8642 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8643 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8644 for ac_dir in $ac_dummy; do
8645 IFS="$lt_save_ifs"
8646 test -z "$ac_dir" && ac_dir=.
8647 if test -f $ac_dir/${ac_tool_prefix}file; then
8648 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8649 if test -n "$file_magic_test_file"; then
8650 case $deplibs_check_method in
8651 "file_magic "*)
8652 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8653 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8654 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8655 $EGREP "$file_magic_regex" > /dev/null; then
8656 :
8657 else
8658 cat <<_LT_EOF 1>&2
97b8365c 8659
86e44bd7
L
8660*** Warning: the command libtool uses to detect shared libraries,
8661*** $file_magic_cmd, produces output that libtool cannot recognize.
8662*** The result is that libtool may fail to recognize shared libraries
8663*** as such. This will affect the creation of libtool libraries that
8664*** depend on shared libraries, but programs linked with such libtool
8665*** libraries will work regardless of this problem. Nevertheless, you
8666*** may want to report the problem to your system manager and/or to
8667*** bug-libtool@gnu.org
8668
8669_LT_EOF
8670 fi ;;
8671 esac
8672 fi
8673 break
8674 fi
8675 done
8676 IFS="$lt_save_ifs"
8677 MAGIC_CMD="$lt_save_MAGIC_CMD"
8678 ;;
8679esac
02440ca4
TF
8680fi
8681
86e44bd7
L
8682MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8683if test -n "$MAGIC_CMD"; then
5213506e
RW
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8685$as_echo "$MAGIC_CMD" >&6; }
02440ca4 8686else
5213506e
RW
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8688$as_echo "no" >&6; }
97b8365c 8689fi
02440ca4 8690
97b8365c 8691
97b8365c 8692
02440ca4 8693
86e44bd7
L
8694
8695if test -z "$lt_cv_path_MAGIC_CMD"; then
8696 if test -n "$ac_tool_prefix"; then
5213506e
RW
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8698$as_echo_n "checking for file... " >&6; }
8699if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8700 $as_echo_n "(cached) " >&6
86e44bd7
L
8701else
8702 case $MAGIC_CMD in
8703[\\/*] | ?:[\\/]*)
8704 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8705 ;;
8706*)
8707 lt_save_MAGIC_CMD="$MAGIC_CMD"
8708 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8709 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8710 for ac_dir in $ac_dummy; do
8711 IFS="$lt_save_ifs"
8712 test -z "$ac_dir" && ac_dir=.
8713 if test -f $ac_dir/file; then
8714 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8715 if test -n "$file_magic_test_file"; then
8716 case $deplibs_check_method in
8717 "file_magic "*)
8718 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8719 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8720 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8721 $EGREP "$file_magic_regex" > /dev/null; then
8722 :
8723 else
8724 cat <<_LT_EOF 1>&2
8725
8726*** Warning: the command libtool uses to detect shared libraries,
8727*** $file_magic_cmd, produces output that libtool cannot recognize.
8728*** The result is that libtool may fail to recognize shared libraries
8729*** as such. This will affect the creation of libtool libraries that
8730*** depend on shared libraries, but programs linked with such libtool
8731*** libraries will work regardless of this problem. Nevertheless, you
8732*** may want to report the problem to your system manager and/or to
8733*** bug-libtool@gnu.org
8734
8735_LT_EOF
8736 fi ;;
8737 esac
8738 fi
8739 break
8740 fi
8741 done
8742 IFS="$lt_save_ifs"
8743 MAGIC_CMD="$lt_save_MAGIC_CMD"
8744 ;;
8745esac
02440ca4 8746fi
86e44bd7
L
8747
8748MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8749if test -n "$MAGIC_CMD"; then
5213506e
RW
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8751$as_echo "$MAGIC_CMD" >&6; }
02440ca4 8752else
5213506e
RW
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8754$as_echo "no" >&6; }
97b8365c 8755fi
86e44bd7
L
8756
8757
97b8365c 8758 else
86e44bd7 8759 MAGIC_CMD=:
02440ca4 8760 fi
02440ca4 8761fi
02440ca4 8762
86e44bd7
L
8763 fi
8764 ;;
8765esac
02440ca4 8766
86e44bd7 8767# Use C for the default configuration in the libtool script
02440ca4 8768
86e44bd7 8769lt_save_CC="$CC"
97b8365c
TT
8770ac_ext=c
8771ac_cpp='$CPP $CPPFLAGS'
8772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8774ac_compiler_gnu=$ac_cv_c_compiler_gnu
8775
86e44bd7
L
8776
8777# Source file extension for C test sources.
8778ac_ext=c
8779
8780# Object file extension for compiled C test sources.
8781objext=o
8782objext=$objext
8783
8784# Code to be used in simple compile tests
8785lt_simple_compile_test_code="int some_variable = 0;"
8786
8787# Code to be used in simple link tests
8788lt_simple_link_test_code='int main(){return(0);}'
8789
8790
8791
8792
8793
8794
8795
8796# If no C compiler was specified, use CC.
8797LTCC=${LTCC-"$CC"}
8798
8799# If no C compiler flags were specified, use CFLAGS.
8800LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8801
8802# Allow CC to be a program name with arguments.
8803compiler=$CC
8804
8805# Save the default compiler, since it gets overwritten when the other
8806# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8807compiler_DEFAULT=$CC
8808
8809# save warnings/boilerplate of simple test code
8810ac_outfile=conftest.$ac_objext
8811echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8812eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8813_lt_compiler_boilerplate=`cat conftest.err`
8814$RM conftest*
8815
8816ac_outfile=conftest.$ac_objext
8817echo "$lt_simple_link_test_code" >conftest.$ac_ext
8818eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8819_lt_linker_boilerplate=`cat conftest.err`
0da7a284 8820$RM -r conftest*
86e44bd7
L
8821
8822
8823## CAVEAT EMPTOR:
8824## There is no encapsulation within the following macros, do not change
8825## the running order or otherwise move them around unless you know exactly
8826## what you are doing...
8827if test -n "$compiler"; then
8828
8829lt_prog_compiler_no_builtin_flag=
8830
8831if test "$GCC" = yes; then
43e02a8a
RW
8832 case $cc_basename in
8833 nvcc*)
8834 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8835 *)
8836 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8837 esac
86e44bd7 8838
5213506e
RW
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8840$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8841if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8842 $as_echo_n "(cached) " >&6
ea54b293 8843else
86e44bd7
L
8844 lt_cv_prog_compiler_rtti_exceptions=no
8845 ac_outfile=conftest.$ac_objext
8846 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8847 lt_compiler_flag="-fno-rtti -fno-exceptions"
8848 # Insert the option either (1) after the last *FLAGS variable, or
8849 # (2) before a word containing "conftest.", or (3) at the end.
8850 # Note that $ac_compile itself does not contain backslashes and begins
8851 # with a dollar sign (not a hyphen), so the echo should work correctly.
8852 # The option is referenced via a variable to avoid confusing sed.
8853 lt_compile=`echo "$ac_compile" | $SED \
8854 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8855 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8856 -e 's:$: $lt_compiler_flag:'`
43e02a8a 8857 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
86e44bd7
L
8858 (eval "$lt_compile" 2>conftest.err)
8859 ac_status=$?
8860 cat conftest.err >&5
43e02a8a 8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
86e44bd7
L
8862 if (exit $ac_status) && test -s "$ac_outfile"; then
8863 # The compiler can only warn and ignore the option if not recognized
8864 # So say no if there are warnings other than the usual output.
43e02a8a 8865 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
86e44bd7
L
8866 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8867 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8868 lt_cv_prog_compiler_rtti_exceptions=yes
8869 fi
8870 fi
8871 $RM conftest*
ea54b293
TT
8872
8873fi
5213506e
RW
8874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8875$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
86e44bd7
L
8876
8877if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8878 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
ea54b293 8879else
86e44bd7 8880 :
ea54b293
TT
8881fi
8882
ea54b293 8883fi
ea54b293 8884
ea54b293 8885
ea54b293 8886
ea54b293 8887
8c0633b7 8888
02440ca4 8889
86e44bd7
L
8890 lt_prog_compiler_wl=
8891lt_prog_compiler_pic=
8892lt_prog_compiler_static=
02440ca4 8893
5213506e
RW
8894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8895$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
97b8365c 8896
86e44bd7
L
8897 if test "$GCC" = yes; then
8898 lt_prog_compiler_wl='-Wl,'
8899 lt_prog_compiler_static='-static'
8900
8901 case $host_os in
8902 aix*)
8903 # All AIX code is PIC.
8904 if test "$host_cpu" = ia64; then
8905 # AIX 5 now supports IA64 processor
8906 lt_prog_compiler_static='-Bstatic'
8907 fi
8e6bfa1f 8908 lt_prog_compiler_pic='-fPIC'
86e44bd7 8909 ;;
02440ca4 8910
86e44bd7 8911 amigaos*)
0da7a284
PG
8912 case $host_cpu in
8913 powerpc)
8914 # see comment about AmigaOS4 .so support
8915 lt_prog_compiler_pic='-fPIC'
8916 ;;
8917 m68k)
8918 # FIXME: we need at least 68020 code to build shared libraries, but
8919 # adding the `-m68020' flag to GCC prevents building anything better,
8920 # like `-m68040'.
8921 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8922 ;;
8923 esac
86e44bd7 8924 ;;
ea54b293 8925
86e44bd7
L
8926 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8927 # PIC is the default for these OSes.
8928 ;;
e0f7b260 8929
0da7a284 8930 mingw* | cygwin* | pw32* | os2* | cegcc*)
86e44bd7
L
8931 # This hack is so that the source file can tell whether it is being
8932 # built for inclusion in a dll (and should export symbols for example).
8933 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8934 # (--disable-auto-import) libraries
8935 lt_prog_compiler_pic='-DDLL_EXPORT'
8936 ;;
8937
8938 darwin* | rhapsody*)
8939 # PIC is the default on this platform
8940 # Common symbols not allowed in MH_DYLIB files
8941 lt_prog_compiler_pic='-fno-common'
8942 ;;
8943
43e02a8a
RW
8944 haiku*)
8945 # PIC is the default for Haiku.
8946 # The "-static" flag exists, but is broken.
8947 lt_prog_compiler_static=
8948 ;;
8949
86e44bd7 8950 hpux*)
0da7a284
PG
8951 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8952 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8953 # sets the default TLS model and affects inlining.
86e44bd7 8954 case $host_cpu in
0da7a284 8955 hppa*64*)
86e44bd7
L
8956 # +Z the default
8957 ;;
8958 *)
8959 lt_prog_compiler_pic='-fPIC'
8960 ;;
8961 esac
8962 ;;
8963
8964 interix[3-9]*)
8965 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8966 # Instead, we relocate shared libraries at runtime.
8967 ;;
8968
8969 msdosdjgpp*)
8970 # Just because we use GCC doesn't mean we suddenly get shared libraries
8971 # on systems that don't support them.
8972 lt_prog_compiler_can_build_shared=no
8973 enable_shared=no
8974 ;;
8975
8976 *nto* | *qnx*)
8977 # QNX uses GNU C++, but need to define -shared option too, otherwise
8978 # it will coredump.
8979 lt_prog_compiler_pic='-fPIC -shared'
8980 ;;
8981
8982 sysv4*MP*)
8983 if test -d /usr/nec; then
8984 lt_prog_compiler_pic=-Kconform_pic
8985 fi
8986 ;;
8987
8988 *)
8989 lt_prog_compiler_pic='-fPIC'
8990 ;;
8991 esac
43e02a8a
RW
8992
8993 case $cc_basename in
8994 nvcc*) # Cuda Compiler Driver 2.2
8995 lt_prog_compiler_wl='-Xlinker '
8996 lt_prog_compiler_pic='-Xcompiler -fPIC'
8997 ;;
8998 esac
86e44bd7
L
8999 else
9000 # PORTME Check for flag to pass linker flags through the system compiler.
9001 case $host_os in
9002 aix*)
9003 lt_prog_compiler_wl='-Wl,'
9004 if test "$host_cpu" = ia64; then
9005 # AIX 5 now supports IA64 processor
9006 lt_prog_compiler_static='-Bstatic'
9007 else
9008 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9009 fi
9010 ;;
86e44bd7 9011
0da7a284 9012 mingw* | cygwin* | pw32* | os2* | cegcc*)
86e44bd7
L
9013 # This hack is so that the source file can tell whether it is being
9014 # built for inclusion in a dll (and should export symbols for example).
9015 lt_prog_compiler_pic='-DDLL_EXPORT'
9016 ;;
9017
9018 hpux9* | hpux10* | hpux11*)
9019 lt_prog_compiler_wl='-Wl,'
9020 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9021 # not for PA HP-UX.
9022 case $host_cpu in
9023 hppa*64*|ia64*)
9024 # +Z the default
9025 ;;
9026 *)
9027 lt_prog_compiler_pic='+Z'
9028 ;;
9029 esac
9030 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9031 lt_prog_compiler_static='${wl}-a ${wl}archive'
9032 ;;
9033
9034 irix5* | irix6* | nonstopux*)
9035 lt_prog_compiler_wl='-Wl,'
9036 # PIC (with -KPIC) is the default.
9037 lt_prog_compiler_static='-non_shared'
9038 ;;
9039
7a9d3fe8 9040 linux* | k*bsd*-gnu | kopensolaris*-gnu)
86e44bd7 9041 case $cc_basename in
0da7a284
PG
9042 # old Intel for x86_64 which still supported -KPIC.
9043 ecc*)
86e44bd7
L
9044 lt_prog_compiler_wl='-Wl,'
9045 lt_prog_compiler_pic='-KPIC'
9046 lt_prog_compiler_static='-static'
9047 ;;
0da7a284
PG
9048 # icc used to be incompatible with GCC.
9049 # ICC 10 doesn't accept -KPIC any more.
9050 icc* | ifort*)
9051 lt_prog_compiler_wl='-Wl,'
9052 lt_prog_compiler_pic='-fPIC'
9053 lt_prog_compiler_static='-static'
9054 ;;
9055 # Lahey Fortran 8.1.
9056 lf95*)
9057 lt_prog_compiler_wl='-Wl,'
9058 lt_prog_compiler_pic='--shared'
9059 lt_prog_compiler_static='--static'
9060 ;;
43e02a8a 9061 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
86e44bd7
L
9062 # Portland Group compilers (*not* the Pentium gcc compiler,
9063 # which looks to be a dead project)
9064 lt_prog_compiler_wl='-Wl,'
9065 lt_prog_compiler_pic='-fpic'
9066 lt_prog_compiler_static='-Bstatic'
9067 ;;
9068 ccc*)
9069 lt_prog_compiler_wl='-Wl,'
9070 # All Alpha code is PIC.
9071 lt_prog_compiler_static='-non_shared'
9072 ;;
43e02a8a
RW
9073 xl* | bgxl* | bgf* | mpixl*)
9074 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
0da7a284
PG
9075 lt_prog_compiler_wl='-Wl,'
9076 lt_prog_compiler_pic='-qpic'
9077 lt_prog_compiler_static='-qstaticlink'
9078 ;;
86e44bd7
L
9079 *)
9080 case `$CC -V 2>&1 | sed 5q` in
43e02a8a
RW
9081 *Sun\ F* | *Sun*Fortran*)
9082 # Sun Fortran 8.3 passes all unrecognized flags to the linker
86e44bd7
L
9083 lt_prog_compiler_pic='-KPIC'
9084 lt_prog_compiler_static='-Bstatic'
43e02a8a 9085 lt_prog_compiler_wl=''
86e44bd7 9086 ;;
43e02a8a
RW
9087 *Sun\ C*)
9088 # Sun C 5.9
86e44bd7
L
9089 lt_prog_compiler_pic='-KPIC'
9090 lt_prog_compiler_static='-Bstatic'
43e02a8a 9091 lt_prog_compiler_wl='-Wl,'
86e44bd7
L
9092 ;;
9093 esac
9094 ;;
9095 esac
9096 ;;
9097
9098 newsos6)
9099 lt_prog_compiler_pic='-KPIC'
9100 lt_prog_compiler_static='-Bstatic'
9101 ;;
9102
9103 *nto* | *qnx*)
9104 # QNX uses GNU C++, but need to define -shared option too, otherwise
9105 # it will coredump.
9106 lt_prog_compiler_pic='-fPIC -shared'
9107 ;;
9108
9109 osf3* | osf4* | osf5*)
9110 lt_prog_compiler_wl='-Wl,'
9111 # All OSF/1 code is PIC.
9112 lt_prog_compiler_static='-non_shared'
9113 ;;
9114
9115 rdos*)
9116 lt_prog_compiler_static='-non_shared'
9117 ;;
9118
9119 solaris*)
9120 lt_prog_compiler_pic='-KPIC'
9121 lt_prog_compiler_static='-Bstatic'
9122 case $cc_basename in
9123 f77* | f90* | f95*)
9124 lt_prog_compiler_wl='-Qoption ld ';;
9125 *)
9126 lt_prog_compiler_wl='-Wl,';;
9127 esac
9128 ;;
9129
9130 sunos4*)
9131 lt_prog_compiler_wl='-Qoption ld '
9132 lt_prog_compiler_pic='-PIC'
9133 lt_prog_compiler_static='-Bstatic'
9134 ;;
9135
9136 sysv4 | sysv4.2uw2* | sysv4.3*)
9137 lt_prog_compiler_wl='-Wl,'
9138 lt_prog_compiler_pic='-KPIC'
9139 lt_prog_compiler_static='-Bstatic'
9140 ;;
9141
9142 sysv4*MP*)
9143 if test -d /usr/nec ;then
9144 lt_prog_compiler_pic='-Kconform_pic'
9145 lt_prog_compiler_static='-Bstatic'
9146 fi
9147 ;;
9148
9149 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9150 lt_prog_compiler_wl='-Wl,'
9151 lt_prog_compiler_pic='-KPIC'
9152 lt_prog_compiler_static='-Bstatic'
9153 ;;
9154
9155 unicos*)
9156 lt_prog_compiler_wl='-Wl,'
9157 lt_prog_compiler_can_build_shared=no
9158 ;;
9159
9160 uts4*)
9161 lt_prog_compiler_pic='-pic'
9162 lt_prog_compiler_static='-Bstatic'
9163 ;;
9164
9165 *)
9166 lt_prog_compiler_can_build_shared=no
9167 ;;
9168 esac
9169 fi
9170
9171case $host_os in
9172 # For platforms which do not support PIC, -DPIC is meaningless:
9173 *djgpp*)
9174 lt_prog_compiler_pic=
9175 ;;
9176 *)
9177 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9178 ;;
9179esac
5213506e
RW
9180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9181$as_echo "$lt_prog_compiler_pic" >&6; }
86e44bd7
L
9182
9183
9184
9185
9186
9187
9188#
9189# Check to make sure the PIC flag actually works.
9190#
9191if test -n "$lt_prog_compiler_pic"; then
5213506e
RW
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9193$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9194if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9195 $as_echo_n "(cached) " >&6
86e44bd7 9196else
0da7a284 9197 lt_cv_prog_compiler_pic_works=no
86e44bd7
L
9198 ac_outfile=conftest.$ac_objext
9199 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9200 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9201 # Insert the option either (1) after the last *FLAGS variable, or
9202 # (2) before a word containing "conftest.", or (3) at the end.
9203 # Note that $ac_compile itself does not contain backslashes and begins
9204 # with a dollar sign (not a hyphen), so the echo should work correctly.
9205 # The option is referenced via a variable to avoid confusing sed.
9206 lt_compile=`echo "$ac_compile" | $SED \
9207 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9208 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9209 -e 's:$: $lt_compiler_flag:'`
43e02a8a 9210 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
86e44bd7
L
9211 (eval "$lt_compile" 2>conftest.err)
9212 ac_status=$?
9213 cat conftest.err >&5
43e02a8a 9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
86e44bd7
L
9215 if (exit $ac_status) && test -s "$ac_outfile"; then
9216 # The compiler can only warn and ignore the option if not recognized
9217 # So say no if there are warnings other than the usual output.
43e02a8a 9218 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
86e44bd7
L
9219 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9220 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
0da7a284 9221 lt_cv_prog_compiler_pic_works=yes
86e44bd7
L
9222 fi
9223 fi
9224 $RM conftest*
9225
9226fi
5213506e
RW
9227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9228$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
86e44bd7 9229
0da7a284 9230if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
86e44bd7
L
9231 case $lt_prog_compiler_pic in
9232 "" | " "*) ;;
9233 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9234 esac
9235else
9236 lt_prog_compiler_pic=
9237 lt_prog_compiler_can_build_shared=no
9238fi
9239
9240fi
9241
9242
9243
9244
9245
9246
9247#
9248# Check to make sure the static flag actually works.
9249#
9250wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
5213506e
RW
9251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9252$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9253if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9254 $as_echo_n "(cached) " >&6
86e44bd7 9255else
0da7a284 9256 lt_cv_prog_compiler_static_works=no
86e44bd7
L
9257 save_LDFLAGS="$LDFLAGS"
9258 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9259 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9260 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9261 # The linker can only warn and ignore the option if not recognized
9262 # So say no if there are warnings
9263 if test -s conftest.err; then
9264 # Append any errors to the config.log.
9265 cat conftest.err 1>&5
43e02a8a 9266 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
86e44bd7
L
9267 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9268 if diff conftest.exp conftest.er2 >/dev/null; then
0da7a284 9269 lt_cv_prog_compiler_static_works=yes
86e44bd7
L
9270 fi
9271 else
0da7a284 9272 lt_cv_prog_compiler_static_works=yes
86e44bd7
L
9273 fi
9274 fi
0da7a284 9275 $RM -r conftest*
86e44bd7
L
9276 LDFLAGS="$save_LDFLAGS"
9277
9278fi
5213506e
RW
9279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9280$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
86e44bd7 9281
0da7a284 9282if test x"$lt_cv_prog_compiler_static_works" = xyes; then
86e44bd7
L
9283 :
9284else
9285 lt_prog_compiler_static=
9286fi
9287
9288
9289
9290
9291
9292
9293
5213506e
RW
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9295$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9296if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9297 $as_echo_n "(cached) " >&6
86e44bd7
L
9298else
9299 lt_cv_prog_compiler_c_o=no
9300 $RM -r conftest 2>/dev/null
9301 mkdir conftest
9302 cd conftest
9303 mkdir out
9304 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9305
9306 lt_compiler_flag="-o out/conftest2.$ac_objext"
9307 # Insert the option either (1) after the last *FLAGS variable, or
9308 # (2) before a word containing "conftest.", or (3) at the end.
9309 # Note that $ac_compile itself does not contain backslashes and begins
9310 # with a dollar sign (not a hyphen), so the echo should work correctly.
9311 lt_compile=`echo "$ac_compile" | $SED \
9312 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9313 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9314 -e 's:$: $lt_compiler_flag:'`
43e02a8a 9315 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
86e44bd7
L
9316 (eval "$lt_compile" 2>out/conftest.err)
9317 ac_status=$?
9318 cat out/conftest.err >&5
43e02a8a 9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
86e44bd7
L
9320 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9321 then
9322 # The compiler can only warn and ignore the option if not recognized
9323 # So say no if there are warnings
43e02a8a 9324 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
86e44bd7
L
9325 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9326 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9327 lt_cv_prog_compiler_c_o=yes
9328 fi
9329 fi
9330 chmod u+w . 2>&5
9331 $RM conftest*
9332 # SGI C++ compiler will create directory out/ii_files/ for
9333 # template instantiation
9334 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9335 $RM out/* && rmdir out
9336 cd ..
9337 $RM -r conftest
9338 $RM conftest*
9339
9340fi
5213506e
RW
9341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9342$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
86e44bd7
L
9343
9344
9345
9346
9347
9348
5213506e
RW
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9350$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9351if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9352 $as_echo_n "(cached) " >&6
86e44bd7
L
9353else
9354 lt_cv_prog_compiler_c_o=no
9355 $RM -r conftest 2>/dev/null
9356 mkdir conftest
9357 cd conftest
9358 mkdir out
9359 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9360
9361 lt_compiler_flag="-o out/conftest2.$ac_objext"
9362 # Insert the option either (1) after the last *FLAGS variable, or
9363 # (2) before a word containing "conftest.", or (3) at the end.
9364 # Note that $ac_compile itself does not contain backslashes and begins
9365 # with a dollar sign (not a hyphen), so the echo should work correctly.
9366 lt_compile=`echo "$ac_compile" | $SED \
9367 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9368 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9369 -e 's:$: $lt_compiler_flag:'`
43e02a8a 9370 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
86e44bd7
L
9371 (eval "$lt_compile" 2>out/conftest.err)
9372 ac_status=$?
9373 cat out/conftest.err >&5
43e02a8a 9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
86e44bd7
L
9375 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9376 then
9377 # The compiler can only warn and ignore the option if not recognized
9378 # So say no if there are warnings
43e02a8a 9379 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
86e44bd7
L
9380 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9381 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9382 lt_cv_prog_compiler_c_o=yes
9383 fi
9384 fi
9385 chmod u+w . 2>&5
9386 $RM conftest*
9387 # SGI C++ compiler will create directory out/ii_files/ for
9388 # template instantiation
9389 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9390 $RM out/* && rmdir out
9391 cd ..
9392 $RM -r conftest
9393 $RM conftest*
9394
9395fi
5213506e
RW
9396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9397$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
86e44bd7
L
9398
9399
9400
9401
9402hard_links="nottested"
9403if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9404 # do not overwrite the value of need_locks provided by the user
5213506e
RW
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9406$as_echo_n "checking if we can lock with hard links... " >&6; }
86e44bd7
L
9407 hard_links=yes
9408 $RM conftest*
9409 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9410 touch conftest.a
9411 ln conftest.a conftest.b 2>&5 || hard_links=no
9412 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5213506e
RW
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9414$as_echo "$hard_links" >&6; }
86e44bd7 9415 if test "$hard_links" = no; then
5213506e
RW
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9417$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
86e44bd7
L
9418 need_locks=warn
9419 fi
9420else
9421 need_locks=no
9422fi
9423
9424
9425
9426
9427
9428
5213506e
RW
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9430$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
86e44bd7
L
9431
9432 runpath_var=
9433 allow_undefined_flag=
9434 always_export_symbols=no
9435 archive_cmds=
9436 archive_expsym_cmds=
9437 compiler_needs_object=no
9438 enable_shared_with_static_runtimes=no
9439 export_dynamic_flag_spec=
9440 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9441 hardcode_automatic=no
9442 hardcode_direct=no
9443 hardcode_direct_absolute=no
9444 hardcode_libdir_flag_spec=
9445 hardcode_libdir_flag_spec_ld=
9446 hardcode_libdir_separator=
9447 hardcode_minus_L=no
9448 hardcode_shlibpath_var=unsupported
9449 inherit_rpath=no
9450 link_all_deplibs=unknown
9451 module_cmds=
9452 module_expsym_cmds=
9453 old_archive_from_new_cmds=
9454 old_archive_from_expsyms_cmds=
9455 thread_safe_flag_spec=
9456 whole_archive_flag_spec=
9457 # include_expsyms should be a list of space-separated symbols to be *always*
9458 # included in the symbol list
9459 include_expsyms=
9460 # exclude_expsyms can be an extended regexp of symbols to exclude
9461 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9462 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9463 # as well as any symbol that contains `d'.
0da7a284 9464 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
86e44bd7
L
9465 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9466 # platforms (ab)use it in PIC code, but their linkers get confused if
9467 # the symbol is explicitly referenced. Since portable code cannot
9468 # rely on this symbol name, it's probably fine to never include it in
9469 # preloaded symbol tables.
0da7a284 9470 # Exclude shared library initialization/finalization symbols.
86e44bd7
L
9471 extract_expsyms_cmds=
9472
9473 case $host_os in
0da7a284 9474 cygwin* | mingw* | pw32* | cegcc*)
86e44bd7
L
9475 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9476 # When not using gcc, we currently assume that we are using
9477 # Microsoft Visual C++.
9478 if test "$GCC" != yes; then
9479 with_gnu_ld=no
9480 fi
9481 ;;
9482 interix*)
9483 # we just hope/assume this is gcc and not c89 (= MSVC++)
9484 with_gnu_ld=yes
9485 ;;
9486 openbsd*)
9487 with_gnu_ld=no
9488 ;;
9489 esac
9490
9491 ld_shlibs=yes
43e02a8a
RW
9492
9493 # On some targets, GNU ld is compatible enough with the native linker
9494 # that we're better off using the native interface for both.
9495 lt_use_gnu_ld_interface=no
86e44bd7 9496 if test "$with_gnu_ld" = yes; then
43e02a8a
RW
9497 case $host_os in
9498 aix*)
9499 # The AIX port of GNU ld has always aspired to compatibility
9500 # with the native linker. However, as the warning in the GNU ld
9501 # block says, versions before 2.19.5* couldn't really create working
9502 # shared libraries, regardless of the interface used.
9503 case `$LD -v 2>&1` in
9504 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9505 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9506 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9507 *)
9508 lt_use_gnu_ld_interface=yes
9509 ;;
9510 esac
9511 ;;
9512 *)
9513 lt_use_gnu_ld_interface=yes
9514 ;;
9515 esac
9516 fi
9517
9518 if test "$lt_use_gnu_ld_interface" = yes; then
86e44bd7
L
9519 # If archive_cmds runs LD, not CC, wlarc should be empty
9520 wlarc='${wl}'
9521
9522 # Set some defaults for GNU ld with shared library support. These
9523 # are reset later if shared libraries are not supported. Putting them
9524 # here allows them to be overridden if necessary.
9525 runpath_var=LD_RUN_PATH
9526 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9527 export_dynamic_flag_spec='${wl}--export-dynamic'
9528 # ancient GNU ld didn't support --whole-archive et. al.
9529 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9530 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9531 else
9532 whole_archive_flag_spec=
9533 fi
9534 supports_anon_versioning=no
9535 case `$LD -v 2>&1` in
43e02a8a 9536 *GNU\ gold*) supports_anon_versioning=yes ;;
86e44bd7
L
9537 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9538 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9539 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9540 *\ 2.11.*) ;; # other 2.11 versions
9541 *) supports_anon_versioning=yes ;;
9542 esac
9543
9544 # See if GNU ld supports shared libraries.
9545 case $host_os in
015cd9b1 9546 aix[3-9]*)
86e44bd7
L
9547 # On AIX/PPC, the GNU linker is very broken
9548 if test "$host_cpu" != ia64; then
9549 ld_shlibs=no
9550 cat <<_LT_EOF 1>&2
9551
43e02a8a 9552*** Warning: the GNU linker, at least up to release 2.19, is reported
86e44bd7
L
9553*** to be unable to reliably create shared libraries on AIX.
9554*** Therefore, libtool is disabling shared libraries support. If you
43e02a8a
RW
9555*** really care for shared libraries, you may want to install binutils
9556*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9557*** You will then need to restart the configuration process.
86e44bd7
L
9558
9559_LT_EOF
9560 fi
9561 ;;
9562
9563 amigaos*)
0da7a284
PG
9564 case $host_cpu in
9565 powerpc)
9566 # see comment about AmigaOS4 .so support
9567 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9568 archive_expsym_cmds=''
9569 ;;
9570 m68k)
9571 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)'
9572 hardcode_libdir_flag_spec='-L$libdir'
9573 hardcode_minus_L=yes
9574 ;;
9575 esac
86e44bd7
L
9576 ;;
9577
9578 beos*)
9579 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9580 allow_undefined_flag=unsupported
9581 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9582 # support --undefined. This deserves some investigation. FIXME
9583 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9584 else
9585 ld_shlibs=no
9586 fi
9587 ;;
9588
0da7a284 9589 cygwin* | mingw* | pw32* | cegcc*)
86e44bd7
L
9590 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9591 # as there is no search path for DLLs.
9592 hardcode_libdir_flag_spec='-L$libdir'
43e02a8a 9593 export_dynamic_flag_spec='${wl}--export-all-symbols'
86e44bd7
L
9594 allow_undefined_flag=unsupported
9595 always_export_symbols=no
9596 enable_shared_with_static_runtimes=yes
9597 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9598
9599 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9600 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9601 # If the export-symbols file already is a .def file (1st line
9602 # is EXPORTS), use it as is; otherwise, prepend...
9603 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9604 cp $export_symbols $output_objdir/$soname.def;
9605 else
9606 echo EXPORTS > $output_objdir/$soname.def;
9607 cat $export_symbols >> $output_objdir/$soname.def;
9608 fi~
9609 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9610 else
9611 ld_shlibs=no
9612 fi
9613 ;;
9614
43e02a8a
RW
9615 haiku*)
9616 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9617 link_all_deplibs=yes
9618 ;;
9619
86e44bd7
L
9620 interix[3-9]*)
9621 hardcode_direct=no
9622 hardcode_shlibpath_var=no
9623 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9624 export_dynamic_flag_spec='${wl}-E'
9625 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9626 # Instead, shared libraries are loaded at an image base (0x10000000 by
9627 # default) and relocated if they conflict, which is a slow very memory
9628 # consuming and fragmenting process. To avoid this, we pick a random,
9629 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9630 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9631 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9632 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'
9633 ;;
9634
7a9d3fe8 9635 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
86e44bd7
L
9636 tmp_diet=no
9637 if test "$host_os" = linux-dietlibc; then
9638 case $cc_basename in
9639 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9640 esac
9641 fi
9642 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9643 && test "$tmp_diet" = no
9644 then
9645 tmp_addflag=
0da7a284 9646 tmp_sharedflag='-shared'
86e44bd7
L
9647 case $cc_basename,$host_cpu in
9648 pgcc*) # Portland Group C compiler
43e02a8a 9649 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'
86e44bd7
L
9650 tmp_addflag=' $pic_flag'
9651 ;;
43e02a8a
RW
9652 pgf77* | pgf90* | pgf95* | pgfortran*)
9653 # Portland Group f77 and f90 compilers
9654 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'
86e44bd7
L
9655 tmp_addflag=' $pic_flag -Mnomain' ;;
9656 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9657 tmp_addflag=' -i_dynamic' ;;
9658 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9659 tmp_addflag=' -i_dynamic -nofor_main' ;;
9660 ifc* | ifort*) # Intel Fortran compiler
9661 tmp_addflag=' -nofor_main' ;;
0da7a284
PG
9662 lf95*) # Lahey Fortran 8.1
9663 whole_archive_flag_spec=
9664 tmp_sharedflag='--shared' ;;
43e02a8a 9665 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
0da7a284
PG
9666 tmp_sharedflag='-qmkshrobj'
9667 tmp_addflag= ;;
43e02a8a
RW
9668 nvcc*) # Cuda Compiler Driver 2.2
9669 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'
9670 compiler_needs_object=yes
9671 ;;
86e44bd7
L
9672 esac
9673 case `$CC -V 2>&1 | sed 5q` in
9674 *Sun\ C*) # Sun C 5.9
43e02a8a 9675 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'
86e44bd7
L
9676 compiler_needs_object=yes
9677 tmp_sharedflag='-G' ;;
9678 *Sun\ F*) # Sun Fortran 8.3
9679 tmp_sharedflag='-G' ;;
86e44bd7
L
9680 esac
9681 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9682
9683 if test "x$supports_anon_versioning" = xyes; then
9684 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9685 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9686 echo "local: *; };" >> $output_objdir/$libname.ver~
9687 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9688 fi
0da7a284
PG
9689
9690 case $cc_basename in
43e02a8a 9691 xlf* | bgf* | bgxlf* | mpixlf*)
0da7a284
PG
9692 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9693 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9694 hardcode_libdir_flag_spec=
9695 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9696 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9697 if test "x$supports_anon_versioning" = xyes; then
9698 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9699 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9700 echo "local: *; };" >> $output_objdir/$libname.ver~
9701 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9702 fi
9703 ;;
9704 esac
86e44bd7
L
9705 else
9706 ld_shlibs=no
9707 fi
9708 ;;
9709
9710 netbsd*)
9711 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9712 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9713 wlarc=
9714 else
9715 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9716 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9717 fi
9718 ;;
9719
9720 solaris*)
9721 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9722 ld_shlibs=no
9723 cat <<_LT_EOF 1>&2
9724
9725*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9726*** create shared libraries on Solaris systems. Therefore, libtool
9727*** is disabling shared libraries support. We urge you to upgrade GNU
9728*** binutils to release 2.9.1 or newer. Another option is to modify
9729*** your PATH or compiler configuration so that the native linker is
9730*** used, and then restart.
9731
9732_LT_EOF
9733 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9734 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9735 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9736 else
9737 ld_shlibs=no
9738 fi
9739 ;;
9740
9741 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9742 case `$LD -v 2>&1` in
9743 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9744 ld_shlibs=no
9745 cat <<_LT_EOF 1>&2
9746
9747*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9748*** reliably create shared libraries on SCO systems. Therefore, libtool
9749*** is disabling shared libraries support. We urge you to upgrade GNU
9750*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9751*** your PATH or compiler configuration so that the native linker is
9752*** used, and then restart.
9753
9754_LT_EOF
9755 ;;
9756 *)
9757 # For security reasons, it is highly recommended that you always
9758 # use absolute paths for naming shared libraries, and exclude the
9759 # DT_RUNPATH tag from executables and libraries. But doing so
9760 # requires that you compile everything twice, which is a pain.
9761 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9762 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9763 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9764 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9765 else
9766 ld_shlibs=no
9767 fi
9768 ;;
9769 esac
9770 ;;
9771
9772 sunos4*)
9773 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9774 wlarc=
9775 hardcode_direct=yes
9776 hardcode_shlibpath_var=no
9777 ;;
9778
9779 *)
9780 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9781 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9782 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9783 else
9784 ld_shlibs=no
9785 fi
9786 ;;
9787 esac
9788
9789 if test "$ld_shlibs" = no; then
9790 runpath_var=
9791 hardcode_libdir_flag_spec=
9792 export_dynamic_flag_spec=
9793 whole_archive_flag_spec=
9794 fi
9795 else
9796 # PORTME fill in a description of your system's linker (not GNU ld)
9797 case $host_os in
9798 aix3*)
9799 allow_undefined_flag=unsupported
9800 always_export_symbols=yes
9801 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'
9802 # Note: this linker hardcodes the directories in LIBPATH if there
9803 # are no directories specified by -L.
9804 hardcode_minus_L=yes
9805 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9806 # Neither direct hardcoding nor static linking is supported with a
9807 # broken collect2.
9808 hardcode_direct=unsupported
9809 fi
9810 ;;
9811
015cd9b1 9812 aix[4-9]*)
86e44bd7
L
9813 if test "$host_cpu" = ia64; then
9814 # On IA64, the linker does run time linking by default, so we don't
9815 # have to do anything special.
9816 aix_use_runtimelinking=no
9817 exp_sym_flag='-Bexport'
9818 no_entry_flag=""
9819 else
9820 # If we're using GNU nm, then we don't want the "-C" option.
9821 # -C means demangle to AIX nm, but means don't demangle with GNU nm
43e02a8a
RW
9822 # Also, AIX nm treats weak defined symbols like other global
9823 # defined symbols, whereas GNU nm marks them as "W".
86e44bd7 9824 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
43e02a8a 9825 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'
86e44bd7
L
9826 else
9827 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'
9828 fi
9829 aix_use_runtimelinking=no
9830
9831 # Test if we are trying to use run time linking or normal
9832 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9833 # need to do runtime linking.
015cd9b1 9834 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
86e44bd7
L
9835 for ld_flag in $LDFLAGS; do
9836 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9837 aix_use_runtimelinking=yes
9838 break
9839 fi
9840 done
9841 ;;
9842 esac
9843
9844 exp_sym_flag='-bexport'
9845 no_entry_flag='-bnoentry'
9846 fi
9847
9848 # When large executables or shared objects are built, AIX ld can
9849 # have problems creating the table of contents. If linking a library
9850 # or program results in "error TOC overflow" add -mminimal-toc to
9851 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9852 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9853
9854 archive_cmds=''
9855 hardcode_direct=yes
9856 hardcode_direct_absolute=yes
9857 hardcode_libdir_separator=':'
9858 link_all_deplibs=yes
9859 file_list_spec='${wl}-f,'
9860
9861 if test "$GCC" = yes; then
9862 case $host_os in aix4.[012]|aix4.[012].*)
9863 # We only want to do this on AIX 4.2 and lower, the check
9864 # below for broken collect2 doesn't work under 4.3+
9865 collect2name=`${CC} -print-prog-name=collect2`
9866 if test -f "$collect2name" &&
9867 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9868 then
9869 # We have reworked collect2
9870 :
9871 else
9872 # We have old collect2
9873 hardcode_direct=unsupported
9874 # It fails to find uninstalled libraries when the uninstalled
9875 # path is not listed in the libpath. Setting hardcode_minus_L
9876 # to unsupported forces relinking
9877 hardcode_minus_L=yes
9878 hardcode_libdir_flag_spec='-L$libdir'
9879 hardcode_libdir_separator=
9880 fi
9881 ;;
9882 esac
9883 shared_flag='-shared'
9884 if test "$aix_use_runtimelinking" = yes; then
9885 shared_flag="$shared_flag "'${wl}-G'
9886 fi
9887 else
9888 # not using gcc
9889 if test "$host_cpu" = ia64; then
9890 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9891 # chokes on -Wl,-G. The following line is correct:
9892 shared_flag='-G'
9893 else
9894 if test "$aix_use_runtimelinking" = yes; then
9895 shared_flag='${wl}-G'
9896 else
9897 shared_flag='${wl}-bM:SRE'
9898 fi
9899 fi
9900 fi
9901
0da7a284 9902 export_dynamic_flag_spec='${wl}-bexpall'
86e44bd7
L
9903 # It seems that -bexpall does not export symbols beginning with
9904 # underscore (_), so it is better to generate a list of symbols to export.
9905 always_export_symbols=yes
9906 if test "$aix_use_runtimelinking" = yes; then
9907 # Warning - without using the other runtime loading flags (-brtl),
9908 # -berok will link without error, but may produce a broken library.
9909 allow_undefined_flag='-berok'
9910 # Determine the default libpath from the value encoded in an
9911 # empty executable.
9912 if test x$gcc_no_link = xyes; then
5213506e 9913 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
86e44bd7 9914fi
5213506e 9915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86e44bd7
L
9916/* end confdefs.h. */
9917
9918int
9919main ()
9920{
e0f7b260 9921
97b8365c
TT
9922 ;
9923 return 0;
9924}
ea54b293 9925_ACEOF
5213506e 9926if ac_fn_c_try_link "$LINENO"; then :
86e44bd7
L
9927
9928lt_aix_libpath_sed='
9929 /Import File Strings/,/^$/ {
9930 /^0/ {
9931 s/^0 *\(.*\)$/\1/
9932 p
9933 }
9934 }'
9935aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9936# Check for a 64-bit object if we didn't find anything.
9937if test -z "$aix_libpath"; then
9938 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9939fi
86e44bd7 9940fi
5213506e
RW
9941rm -f core conftest.err conftest.$ac_objext \
9942 conftest$ac_exeext conftest.$ac_ext
86e44bd7
L
9943if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9944
9945 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
43e02a8a 9946 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"
86e44bd7
L
9947 else
9948 if test "$host_cpu" = ia64; then
9949 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9950 allow_undefined_flag="-z nodefs"
9951 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"
9952 else
9953 # Determine the default libpath from the value encoded in an
9954 # empty executable.
9955 if test x$gcc_no_link = xyes; then
5213506e 9956 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
86e44bd7 9957fi
5213506e 9958cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86e44bd7
L
9959/* end confdefs.h. */
9960
9961int
9962main ()
9963{
9964
9965 ;
9966 return 0;
9967}
9968_ACEOF
5213506e 9969if ac_fn_c_try_link "$LINENO"; then :
86e44bd7
L
9970
9971lt_aix_libpath_sed='
9972 /Import File Strings/,/^$/ {
9973 /^0/ {
9974 s/^0 *\(.*\)$/\1/
9975 p
9976 }
9977 }'
9978aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9979# Check for a 64-bit object if we didn't find anything.
9980if test -z "$aix_libpath"; then
9981 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9982fi
86e44bd7 9983fi
5213506e
RW
9984rm -f core conftest.err conftest.$ac_objext \
9985 conftest$ac_exeext conftest.$ac_ext
86e44bd7
L
9986if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9987
9988 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9989 # Warning - without using the other run time loading flags,
9990 # -berok will link without error, but may produce a broken library.
9991 no_undefined_flag=' ${wl}-bernotok'
9992 allow_undefined_flag=' ${wl}-berok'
43e02a8a
RW
9993 if test "$with_gnu_ld" = yes; then
9994 # We only use this code for GNU lds that support --whole-archive.
9995 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9996 else
9997 # Exported symbols can be pulled into shared objects from archives
9998 whole_archive_flag_spec='$convenience'
9999 fi
86e44bd7
L
10000 archive_cmds_need_lc=yes
10001 # This is similar to how AIX traditionally builds its shared libraries.
10002 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'
10003 fi
10004 fi
10005 ;;
10006
10007 amigaos*)
0da7a284
PG
10008 case $host_cpu in
10009 powerpc)
10010 # see comment about AmigaOS4 .so support
10011 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10012 archive_expsym_cmds=''
10013 ;;
10014 m68k)
10015 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)'
10016 hardcode_libdir_flag_spec='-L$libdir'
10017 hardcode_minus_L=yes
10018 ;;
10019 esac
86e44bd7
L
10020 ;;
10021
10022 bsdi[45]*)
10023 export_dynamic_flag_spec=-rdynamic
10024 ;;
10025
0da7a284 10026 cygwin* | mingw* | pw32* | cegcc*)
86e44bd7
L
10027 # When not using gcc, we currently assume that we are using
10028 # Microsoft Visual C++.
10029 # hardcode_libdir_flag_spec is actually meaningless, as there is
10030 # no search path for DLLs.
10031 hardcode_libdir_flag_spec=' '
10032 allow_undefined_flag=unsupported
10033 # Tell ltmain to make .lib files, not .a files.
10034 libext=lib
10035 # Tell ltmain to make .dll files, not .so files.
10036 shrext_cmds=".dll"
10037 # FIXME: Setting linknames here is a bad hack.
43e02a8a 10038 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
86e44bd7
L
10039 # The linker will automatically build a .lib file if we build a DLL.
10040 old_archive_from_new_cmds='true'
10041 # FIXME: Should let the user specify the lib program.
10042 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10043 fix_srcfile_path='`cygpath -w "$srcfile"`'
10044 enable_shared_with_static_runtimes=yes
10045 ;;
10046
10047 darwin* | rhapsody*)
86e44bd7 10048
0da7a284
PG
10049
10050 archive_cmds_need_lc=no
10051 hardcode_direct=no
10052 hardcode_automatic=yes
10053 hardcode_shlibpath_var=unsupported
43e02a8a
RW
10054 if test "$lt_cv_ld_force_load" = "yes"; then
10055 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\"`'
10056 else
10057 whole_archive_flag_spec=''
10058 fi
0da7a284
PG
10059 link_all_deplibs=yes
10060 allow_undefined_flag="$_lt_dar_allow_undefined"
10061 case $cc_basename in
10062 ifort*) _lt_dar_can_shared=yes ;;
10063 *) _lt_dar_can_shared=$GCC ;;
10064 esac
10065 if test "$_lt_dar_can_shared" = "yes"; then
43e02a8a 10066 output_verbose_link_cmd=func_echo_all
0da7a284
PG
10067 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10068 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10069 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}"
10070 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}"
10071
10072 else
10073 ld_shlibs=no
10074 fi
10075
86e44bd7
L
10076 ;;
10077
10078 dgux*)
10079 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10080 hardcode_libdir_flag_spec='-L$libdir'
10081 hardcode_shlibpath_var=no
10082 ;;
10083
86e44bd7
L
10084 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10085 # support. Future versions do this automatically, but an explicit c++rt0.o
10086 # does not break anything, and helps significantly (at the cost of a little
10087 # extra space).
10088 freebsd2.2*)
10089 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10090 hardcode_libdir_flag_spec='-R$libdir'
10091 hardcode_direct=yes
10092 hardcode_shlibpath_var=no
10093 ;;
10094
10095 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
781c528f 10096 freebsd2.*)
86e44bd7
L
10097 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10098 hardcode_direct=yes
10099 hardcode_minus_L=yes
10100 hardcode_shlibpath_var=no
10101 ;;
10102
10103 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10104 freebsd* | dragonfly*)
10105 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10106 hardcode_libdir_flag_spec='-R$libdir'
10107 hardcode_direct=yes
10108 hardcode_shlibpath_var=no
10109 ;;
10110
10111 hpux9*)
10112 if test "$GCC" = yes; then
10113 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'
10114 else
10115 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'
10116 fi
10117 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10118 hardcode_libdir_separator=:
10119 hardcode_direct=yes
10120
10121 # hardcode_minus_L: Not really in the search PATH,
10122 # but as the default location of the library.
10123 hardcode_minus_L=yes
10124 export_dynamic_flag_spec='${wl}-E'
10125 ;;
10126
10127 hpux10*)
43e02a8a 10128 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
86e44bd7
L
10129 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10130 else
10131 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10132 fi
10133 if test "$with_gnu_ld" = no; then
10134 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10135 hardcode_libdir_flag_spec_ld='+b $libdir'
10136 hardcode_libdir_separator=:
10137 hardcode_direct=yes
10138 hardcode_direct_absolute=yes
10139 export_dynamic_flag_spec='${wl}-E'
10140 # hardcode_minus_L: Not really in the search PATH,
10141 # but as the default location of the library.
10142 hardcode_minus_L=yes
10143 fi
10144 ;;
10145
10146 hpux11*)
43e02a8a 10147 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
86e44bd7
L
10148 case $host_cpu in
10149 hppa*64*)
10150 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10151 ;;
10152 ia64*)
0da7a284 10153 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
86e44bd7
L
10154 ;;
10155 *)
10156 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10157 ;;
10158 esac
10159 else
10160 case $host_cpu in
10161 hppa*64*)
10162 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10163 ;;
10164 ia64*)
10165 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10166 ;;
10167 *)
43e02a8a
RW
10168
10169 # Older versions of the 11.00 compiler do not understand -b yet
10170 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10172$as_echo_n "checking if $CC understands -b... " >&6; }
10173if test "${lt_cv_prog_compiler__b+set}" = set; then :
10174 $as_echo_n "(cached) " >&6
10175else
10176 lt_cv_prog_compiler__b=no
10177 save_LDFLAGS="$LDFLAGS"
10178 LDFLAGS="$LDFLAGS -b"
10179 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10180 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10181 # The linker can only warn and ignore the option if not recognized
10182 # So say no if there are warnings
10183 if test -s conftest.err; then
10184 # Append any errors to the config.log.
10185 cat conftest.err 1>&5
10186 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10187 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10188 if diff conftest.exp conftest.er2 >/dev/null; then
10189 lt_cv_prog_compiler__b=yes
10190 fi
10191 else
10192 lt_cv_prog_compiler__b=yes
10193 fi
10194 fi
10195 $RM -r conftest*
10196 LDFLAGS="$save_LDFLAGS"
10197
10198fi
10199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10200$as_echo "$lt_cv_prog_compiler__b" >&6; }
10201
10202if test x"$lt_cv_prog_compiler__b" = xyes; then
10203 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10204else
10205 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10206fi
10207
86e44bd7
L
10208 ;;
10209 esac
10210 fi
10211 if test "$with_gnu_ld" = no; then
10212 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10213 hardcode_libdir_separator=:
10214
10215 case $host_cpu in
10216 hppa*64*|ia64*)
10217 hardcode_direct=no
10218 hardcode_shlibpath_var=no
10219 ;;
10220 *)
10221 hardcode_direct=yes
10222 hardcode_direct_absolute=yes
10223 export_dynamic_flag_spec='${wl}-E'
10224
10225 # hardcode_minus_L: Not really in the search PATH,
10226 # but as the default location of the library.
10227 hardcode_minus_L=yes
10228 ;;
10229 esac
10230 fi
10231 ;;
10232
10233 irix5* | irix6* | nonstopux*)
10234 if test "$GCC" = yes; then
43e02a8a 10235 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'
86e44bd7
L
10236 # Try to use the -exported_symbol ld option, if it does not
10237 # work, assume that -exports_file does not work either and
10238 # implicitly export all symbols.
10239 save_LDFLAGS="$LDFLAGS"
10240 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10241 if test x$gcc_no_link = xyes; then
5213506e 10242 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
86e44bd7 10243fi
5213506e
RW
10244cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10245/* end confdefs.h. */
86e44bd7
L
10246int foo(void) {}
10247_ACEOF
5213506e 10248if ac_fn_c_try_link "$LINENO"; then :
43e02a8a 10249 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'
86e44bd7 10250
86e44bd7 10251fi
5213506e
RW
10252rm -f core conftest.err conftest.$ac_objext \
10253 conftest$ac_exeext conftest.$ac_ext
86e44bd7
L
10254 LDFLAGS="$save_LDFLAGS"
10255 else
43e02a8a
RW
10256 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'
10257 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'
86e44bd7
L
10258 fi
10259 archive_cmds_need_lc='no'
10260 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10261 hardcode_libdir_separator=:
10262 inherit_rpath=yes
10263 link_all_deplibs=yes
10264 ;;
10265
10266 netbsd*)
10267 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10268 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10269 else
10270 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10271 fi
10272 hardcode_libdir_flag_spec='-R$libdir'
10273 hardcode_direct=yes
10274 hardcode_shlibpath_var=no
10275 ;;
10276
10277 newsos6)
10278 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10279 hardcode_direct=yes
10280 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10281 hardcode_libdir_separator=:
10282 hardcode_shlibpath_var=no
10283 ;;
10284
10285 *nto* | *qnx*)
10286 ;;
10287
10288 openbsd*)
0da7a284
PG
10289 if test -f /usr/libexec/ld.so; then
10290 hardcode_direct=yes
10291 hardcode_shlibpath_var=no
10292 hardcode_direct_absolute=yes
10293 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
86e44bd7 10294 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
0da7a284 10295 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
86e44bd7 10296 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
0da7a284
PG
10297 export_dynamic_flag_spec='${wl}-E'
10298 else
10299 case $host_os in
10300 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10301 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10302 hardcode_libdir_flag_spec='-R$libdir'
10303 ;;
10304 *)
10305 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10306 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10307 ;;
10308 esac
10309 fi
10310 else
10311 ld_shlibs=no
86e44bd7
L
10312 fi
10313 ;;
10314
10315 os2*)
10316 hardcode_libdir_flag_spec='-L$libdir'
10317 hardcode_minus_L=yes
10318 allow_undefined_flag=unsupported
43e02a8a 10319 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'
86e44bd7
L
10320 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10321 ;;
10322
10323 osf3*)
10324 if test "$GCC" = yes; then
10325 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 10326 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'
86e44bd7
L
10327 else
10328 allow_undefined_flag=' -expect_unresolved \*'
43e02a8a 10329 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'
86e44bd7
L
10330 fi
10331 archive_cmds_need_lc='no'
10332 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10333 hardcode_libdir_separator=:
10334 ;;
10335
10336 osf4* | osf5*) # as osf3* with the addition of -msym flag
10337 if test "$GCC" = yes; then
10338 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 10339 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'
86e44bd7
L
10340 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10341 else
10342 allow_undefined_flag=' -expect_unresolved \*'
43e02a8a 10343 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'
86e44bd7 10344 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~
43e02a8a 10345 $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'
86e44bd7
L
10346
10347 # Both c and cxx compiler support -rpath directly
10348 hardcode_libdir_flag_spec='-rpath $libdir'
10349 fi
10350 archive_cmds_need_lc='no'
10351 hardcode_libdir_separator=:
10352 ;;
10353
10354 solaris*)
10355 no_undefined_flag=' -z defs'
10356 if test "$GCC" = yes; then
10357 wlarc='${wl}'
10358 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10359 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10360 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10361 else
10362 case `$CC -V 2>&1` in
10363 *"Compilers 5.0"*)
10364 wlarc=''
10365 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10366 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10367 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10368 ;;
10369 *)
10370 wlarc='${wl}'
10371 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10372 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10373 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10374 ;;
10375 esac
10376 fi
10377 hardcode_libdir_flag_spec='-R$libdir'
10378 hardcode_shlibpath_var=no
10379 case $host_os in
10380 solaris2.[0-5] | solaris2.[0-5].*) ;;
10381 *)
10382 # The compiler driver will combine and reorder linker options,
10383 # but understands `-z linker_flag'. GCC discards it without `$wl',
10384 # but is careful enough not to reorder.
10385 # Supported since Solaris 2.6 (maybe 2.5.1?)
10386 if test "$GCC" = yes; then
10387 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10388 else
10389 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10390 fi
10391 ;;
10392 esac
10393 link_all_deplibs=yes
10394 ;;
10395
10396 sunos4*)
10397 if test "x$host_vendor" = xsequent; then
10398 # Use $CC to link under sequent, because it throws in some extra .o
10399 # files that make .init and .fini sections work.
10400 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10401 else
10402 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10403 fi
10404 hardcode_libdir_flag_spec='-L$libdir'
10405 hardcode_direct=yes
10406 hardcode_minus_L=yes
10407 hardcode_shlibpath_var=no
10408 ;;
10409
10410 sysv4)
10411 case $host_vendor in
10412 sni)
10413 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10414 hardcode_direct=yes # is this really true???
10415 ;;
10416 siemens)
10417 ## LD is ld it makes a PLAMLIB
10418 ## CC just makes a GrossModule.
10419 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10420 reload_cmds='$CC -r -o $output$reload_objs'
10421 hardcode_direct=no
10422 ;;
10423 motorola)
10424 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10425 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10426 ;;
10427 esac
10428 runpath_var='LD_RUN_PATH'
10429 hardcode_shlibpath_var=no
10430 ;;
10431
10432 sysv4.3*)
10433 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10434 hardcode_shlibpath_var=no
10435 export_dynamic_flag_spec='-Bexport'
10436 ;;
10437
10438 sysv4*MP*)
10439 if test -d /usr/nec; then
10440 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10441 hardcode_shlibpath_var=no
10442 runpath_var=LD_RUN_PATH
10443 hardcode_runpath_var=yes
10444 ld_shlibs=yes
10445 fi
10446 ;;
10447
10448 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10449 no_undefined_flag='${wl}-z,text'
10450 archive_cmds_need_lc=no
10451 hardcode_shlibpath_var=no
10452 runpath_var='LD_RUN_PATH'
10453
10454 if test "$GCC" = yes; then
10455 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10456 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10457 else
10458 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10459 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10460 fi
10461 ;;
10462
10463 sysv5* | sco3.2v5* | sco5v6*)
10464 # Note: We can NOT use -z defs as we might desire, because we do not
10465 # link with -lc, and that would cause any symbols used from libc to
10466 # always be unresolved, which means just about no library would
10467 # ever link correctly. If we're not using GNU ld we use -z text
10468 # though, which does catch some bad symbols but isn't as heavy-handed
10469 # as -z defs.
10470 no_undefined_flag='${wl}-z,text'
10471 allow_undefined_flag='${wl}-z,nodefs'
10472 archive_cmds_need_lc=no
10473 hardcode_shlibpath_var=no
10474 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10475 hardcode_libdir_separator=':'
10476 link_all_deplibs=yes
10477 export_dynamic_flag_spec='${wl}-Bexport'
10478 runpath_var='LD_RUN_PATH'
10479
10480 if test "$GCC" = yes; then
10481 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10482 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10483 else
10484 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10485 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10486 fi
10487 ;;
10488
10489 uts4*)
10490 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10491 hardcode_libdir_flag_spec='-L$libdir'
10492 hardcode_shlibpath_var=no
10493 ;;
10494
10495 *)
10496 ld_shlibs=no
10497 ;;
10498 esac
10499
10500 if test x$host_vendor = xsni; then
10501 case $host in
10502 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10503 export_dynamic_flag_spec='${wl}-Blargedynsym'
10504 ;;
10505 esac
10506 fi
10507 fi
10508
5213506e
RW
10509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10510$as_echo "$ld_shlibs" >&6; }
86e44bd7
L
10511test "$ld_shlibs" = no && can_build_shared=no
10512
10513with_gnu_ld=$with_gnu_ld
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529#
10530# Do we need to explicitly link libc?
10531#
10532case "x$archive_cmds_need_lc" in
10533x|xyes)
10534 # Assume -lc should be added
10535 archive_cmds_need_lc=yes
10536
10537 if test "$enable_shared" = yes && test "$GCC" = yes; then
10538 case $archive_cmds in
10539 *'~'*)
10540 # FIXME: we may have to deal with multi-command sequences.
10541 ;;
10542 '$CC '*)
10543 # Test whether the compiler implicitly links with -lc since on some
10544 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10545 # to ld, don't add -lc before -lgcc.
5213506e
RW
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10547$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10548if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10549 $as_echo_n "(cached) " >&6
baafc534
RW
10550else
10551 $RM conftest*
10552 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
86e44bd7 10553
5213506e 10554 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
86e44bd7
L
10555 (eval $ac_compile) 2>&5
10556 ac_status=$?
5213506e
RW
10557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10558 test $ac_status = 0; } 2>conftest.err; then
baafc534
RW
10559 soname=conftest
10560 lib=conftest
10561 libobjs=conftest.$ac_objext
10562 deplibs=
10563 wl=$lt_prog_compiler_wl
10564 pic_flag=$lt_prog_compiler_pic
10565 compiler_flags=-v
10566 linker_flags=-v
10567 verstring=
10568 output_objdir=.
10569 libname=conftest
10570 lt_save_allow_undefined_flag=$allow_undefined_flag
10571 allow_undefined_flag=
5213506e 10572 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
86e44bd7
L
10573 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10574 ac_status=$?
5213506e
RW
10575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10576 test $ac_status = 0; }
baafc534
RW
10577 then
10578 lt_cv_archive_cmds_need_lc=no
10579 else
10580 lt_cv_archive_cmds_need_lc=yes
10581 fi
10582 allow_undefined_flag=$lt_save_allow_undefined_flag
10583 else
10584 cat conftest.err 1>&5
10585 fi
10586 $RM conftest*
10587
10588fi
5213506e
RW
10589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10590$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
baafc534 10591 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
86e44bd7
L
10592 ;;
10593 esac
10594 fi
10595 ;;
10596esac
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
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
5213506e
RW
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10755$as_echo_n "checking dynamic linker characteristics... " >&6; }
0da7a284
PG
10756
10757if test "$GCC" = yes; then
86e44bd7
L
10758 case $host_os in
10759 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10760 *) lt_awk_arg="/^libraries:/" ;;
10761 esac
43e02a8a
RW
10762 case $host_os in
10763 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10764 *) lt_sed_strip_eq="s,=/,/,g" ;;
10765 esac
10766 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10767 case $lt_search_path_spec in
10768 *\;*)
86e44bd7
L
10769 # if the path contains ";" then we assume it to be the separator
10770 # otherwise default to the standard path separator (i.e. ":") - it is
10771 # assumed that no part of a normal pathname contains ";" but that should
10772 # okay in the real world where ";" in dirpaths is itself problematic.
43e02a8a
RW
10773 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10774 ;;
10775 *)
10776 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10777 ;;
10778 esac
86e44bd7
L
10779 # Ok, now we have the path, separated by spaces, we can step through it
10780 # and add multilib dir if necessary.
10781 lt_tmp_lt_search_path_spec=
10782 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10783 for lt_sys_path in $lt_search_path_spec; do
10784 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10785 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10786 else
10787 test -d "$lt_sys_path" && \
10788 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10789 fi
10790 done
43e02a8a 10791 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
86e44bd7
L
10792BEGIN {RS=" "; FS="/|\n";} {
10793 lt_foo="";
10794 lt_count=0;
10795 for (lt_i = NF; lt_i > 0; lt_i--) {
10796 if ($lt_i != "" && $lt_i != ".") {
10797 if ($lt_i == "..") {
10798 lt_count++;
10799 } else {
10800 if (lt_count == 0) {
10801 lt_foo="/" $lt_i lt_foo;
10802 } else {
10803 lt_count--;
10804 }
10805 }
10806 }
10807 }
10808 if (lt_foo != "") { lt_freq[lt_foo]++; }
10809 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10810}'`
43e02a8a
RW
10811 # AWK program above erroneously prepends '/' to C:/dos/paths
10812 # for these hosts.
10813 case $host_os in
10814 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10815 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10816 esac
10817 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
86e44bd7
L
10818else
10819 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10820fi
10821library_names_spec=
10822libname_spec='lib$name'
10823soname_spec=
10824shrext_cmds=".so"
10825postinstall_cmds=
10826postuninstall_cmds=
10827finish_cmds=
10828finish_eval=
10829shlibpath_var=
10830shlibpath_overrides_runpath=unknown
10831version_type=none
10832dynamic_linker="$host_os ld.so"
10833sys_lib_dlsearch_path_spec="/lib /usr/lib"
10834need_lib_prefix=unknown
10835hardcode_into_libs=no
10836
10837# when you set need_version to no, make sure it does not cause -set_version
10838# flags to be left without arguments
10839need_version=unknown
10840
10841case $host_os in
10842aix3*)
10843 version_type=linux
10844 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10845 shlibpath_var=LIBPATH
10846
10847 # AIX 3 has no versioning support, so we append a major version to the name.
10848 soname_spec='${libname}${release}${shared_ext}$major'
10849 ;;
10850
015cd9b1 10851aix[4-9]*)
86e44bd7
L
10852 version_type=linux
10853 need_lib_prefix=no
10854 need_version=no
10855 hardcode_into_libs=yes
10856 if test "$host_cpu" = ia64; then
10857 # AIX 5 supports IA64
10858 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10859 shlibpath_var=LD_LIBRARY_PATH
10860 else
10861 # With GCC up to 2.95.x, collect2 would create an import file
10862 # for dependence libraries. The import file would start with
10863 # the line `#! .'. This would cause the generated library to
10864 # depend on `.', always an invalid library. This was fixed in
10865 # development snapshots of GCC prior to 3.0.
10866 case $host_os in
10867 aix4 | aix4.[01] | aix4.[01].*)
10868 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10869 echo ' yes '
10870 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10871 :
10872 else
10873 can_build_shared=no
10874 fi
10875 ;;
10876 esac
10877 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10878 # soname into executable. Probably we can add versioning support to
10879 # collect2, so additional links can be useful in future.
10880 if test "$aix_use_runtimelinking" = yes; then
10881 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10882 # instead of lib<name>.a to let people know that these are not
10883 # typical AIX shared libraries.
10884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10885 else
10886 # We preserve .a as extension for shared libraries through AIX4.2
10887 # and later when we are not doing run time linking.
10888 library_names_spec='${libname}${release}.a $libname.a'
10889 soname_spec='${libname}${release}${shared_ext}$major'
10890 fi
10891 shlibpath_var=LIBPATH
10892 fi
10893 ;;
10894
10895amigaos*)
0da7a284
PG
10896 case $host_cpu in
10897 powerpc)
10898 # Since July 2007 AmigaOS4 officially supports .so libraries.
10899 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10901 ;;
10902 m68k)
86e44bd7
L
10903 library_names_spec='$libname.ixlibrary $libname.a'
10904 # Create ${libname}_ixlibrary.a entries in /sys/libs.
43e02a8a 10905 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'
0da7a284
PG
10906 ;;
10907 esac
86e44bd7
L
10908 ;;
10909
10910beos*)
10911 library_names_spec='${libname}${shared_ext}'
10912 dynamic_linker="$host_os ld.so"
10913 shlibpath_var=LIBRARY_PATH
10914 ;;
10915
10916bsdi[45]*)
10917 version_type=linux
10918 need_version=no
10919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10920 soname_spec='${libname}${release}${shared_ext}$major'
10921 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10922 shlibpath_var=LD_LIBRARY_PATH
10923 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10924 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10925 # the default ld.so.conf also contains /usr/contrib/lib and
10926 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10927 # libtool to hard-code these into programs
10928 ;;
10929
0da7a284 10930cygwin* | mingw* | pw32* | cegcc*)
86e44bd7
L
10931 version_type=windows
10932 shrext_cmds=".dll"
10933 need_version=no
10934 need_lib_prefix=no
10935
0da7a284
PG
10936 case $GCC,$host_os in
10937 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
86e44bd7
L
10938 library_names_spec='$libname.dll.a'
10939 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10940 postinstall_cmds='base_file=`basename \${file}`~
10941 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10942 dldir=$destdir/`dirname \$dlpath`~
10943 test -d \$dldir || mkdir -p \$dldir~
10944 $install_prog $dir/$dlname \$dldir/$dlname~
10945 chmod a+x \$dldir/$dlname~
10946 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10947 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10948 fi'
10949 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10950 dlpath=$dir/\$dldll~
10951 $RM \$dlpath'
10952 shlibpath_overrides_runpath=yes
10953
10954 case $host_os in
10955 cygwin*)
10956 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10957 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
43e02a8a
RW
10958
10959 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
86e44bd7 10960 ;;
0da7a284 10961 mingw* | cegcc*)
86e44bd7
L
10962 # MinGW DLLs use traditional 'lib' prefix
10963 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
86e44bd7
L
10964 ;;
10965 pw32*)
10966 # pw32 DLLs use 'pw' prefix rather than 'lib'
10967 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10968 ;;
10969 esac
10970 ;;
10971
10972 *)
10973 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10974 ;;
10975 esac
10976 dynamic_linker='Win32 ld.exe'
10977 # FIXME: first we should search . and the directory the executable is in
10978 shlibpath_var=PATH
10979 ;;
10980
10981darwin* | rhapsody*)
10982 dynamic_linker="$host_os dyld"
10983 version_type=darwin
10984 need_lib_prefix=no
10985 need_version=no
10986 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10987 soname_spec='${libname}${release}${major}$shared_ext'
10988 shlibpath_overrides_runpath=yes
10989 shlibpath_var=DYLD_LIBRARY_PATH
10990 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10991
10992 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10993 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10994 ;;
10995
10996dgux*)
10997 version_type=linux
10998 need_lib_prefix=no
10999 need_version=no
11000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11001 soname_spec='${libname}${release}${shared_ext}$major'
11002 shlibpath_var=LD_LIBRARY_PATH
11003 ;;
11004
86e44bd7
L
11005freebsd* | dragonfly*)
11006 # DragonFly does not have aout. When/if they implement a new
11007 # versioning mechanism, adjust this.
11008 if test -x /usr/bin/objformat; then
11009 objformat=`/usr/bin/objformat`
11010 else
11011 case $host_os in
781c528f 11012 freebsd[23].*) objformat=aout ;;
86e44bd7
L
11013 *) objformat=elf ;;
11014 esac
11015 fi
11016 version_type=freebsd-$objformat
11017 case $version_type in
11018 freebsd-elf*)
11019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11020 need_version=no
11021 need_lib_prefix=no
11022 ;;
11023 freebsd-*)
11024 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11025 need_version=yes
11026 ;;
11027 esac
11028 shlibpath_var=LD_LIBRARY_PATH
11029 case $host_os in
781c528f 11030 freebsd2.*)
86e44bd7
L
11031 shlibpath_overrides_runpath=yes
11032 ;;
11033 freebsd3.[01]* | freebsdelf3.[01]*)
11034 shlibpath_overrides_runpath=yes
11035 hardcode_into_libs=yes
11036 ;;
11037 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11038 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11039 shlibpath_overrides_runpath=no
11040 hardcode_into_libs=yes
11041 ;;
11042 *) # from 4.6 on, and DragonFly
11043 shlibpath_overrides_runpath=yes
11044 hardcode_into_libs=yes
11045 ;;
11046 esac
11047 ;;
11048
11049gnu*)
11050 version_type=linux
11051 need_lib_prefix=no
11052 need_version=no
11053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11054 soname_spec='${libname}${release}${shared_ext}$major'
11055 shlibpath_var=LD_LIBRARY_PATH
11056 hardcode_into_libs=yes
11057 ;;
11058
43e02a8a
RW
11059haiku*)
11060 version_type=linux
11061 need_lib_prefix=no
11062 need_version=no
11063 dynamic_linker="$host_os runtime_loader"
11064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11065 soname_spec='${libname}${release}${shared_ext}$major'
11066 shlibpath_var=LIBRARY_PATH
11067 shlibpath_overrides_runpath=yes
11068 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11069 hardcode_into_libs=yes
11070 ;;
11071
86e44bd7
L
11072hpux9* | hpux10* | hpux11*)
11073 # Give a soname corresponding to the major version so that dld.sl refuses to
11074 # link against other versions.
11075 version_type=sunos
11076 need_lib_prefix=no
11077 need_version=no
11078 case $host_cpu in
11079 ia64*)
11080 shrext_cmds='.so'
11081 hardcode_into_libs=yes
11082 dynamic_linker="$host_os dld.so"
11083 shlibpath_var=LD_LIBRARY_PATH
11084 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11086 soname_spec='${libname}${release}${shared_ext}$major'
11087 if test "X$HPUX_IA64_MODE" = X32; then
11088 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11089 else
11090 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11091 fi
11092 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11093 ;;
11094 hppa*64*)
11095 shrext_cmds='.sl'
11096 hardcode_into_libs=yes
11097 dynamic_linker="$host_os dld.sl"
11098 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11099 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11101 soname_spec='${libname}${release}${shared_ext}$major'
11102 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11103 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11104 ;;
11105 *)
11106 shrext_cmds='.sl'
11107 dynamic_linker="$host_os dld.sl"
11108 shlibpath_var=SHLIB_PATH
11109 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11111 soname_spec='${libname}${release}${shared_ext}$major'
11112 ;;
11113 esac
43e02a8a 11114 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
86e44bd7 11115 postinstall_cmds='chmod 555 $lib'
43e02a8a
RW
11116 # or fails outright, so override atomically:
11117 install_override_mode=555
86e44bd7
L
11118 ;;
11119
11120interix[3-9]*)
11121 version_type=linux
11122 need_lib_prefix=no
11123 need_version=no
11124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11125 soname_spec='${libname}${release}${shared_ext}$major'
11126 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11127 shlibpath_var=LD_LIBRARY_PATH
11128 shlibpath_overrides_runpath=no
11129 hardcode_into_libs=yes
11130 ;;
11131
11132irix5* | irix6* | nonstopux*)
11133 case $host_os in
11134 nonstopux*) version_type=nonstopux ;;
11135 *)
11136 if test "$lt_cv_prog_gnu_ld" = yes; then
11137 version_type=linux
11138 else
11139 version_type=irix
11140 fi ;;
11141 esac
11142 need_lib_prefix=no
11143 need_version=no
11144 soname_spec='${libname}${release}${shared_ext}$major'
11145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11146 case $host_os in
11147 irix5* | nonstopux*)
11148 libsuff= shlibsuff=
11149 ;;
11150 *)
11151 case $LD in # libtool.m4 will add one of these switches to LD
11152 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11153 libsuff= shlibsuff= libmagic=32-bit;;
11154 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11155 libsuff=32 shlibsuff=N32 libmagic=N32;;
11156 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11157 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11158 *) libsuff= shlibsuff= libmagic=never-match;;
11159 esac
11160 ;;
11161 esac
11162 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11163 shlibpath_overrides_runpath=no
11164 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11165 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11166 hardcode_into_libs=yes
11167 ;;
11168
11169# No shared lib support for Linux oldld, aout, or coff.
11170linux*oldld* | linux*aout* | linux*coff*)
11171 dynamic_linker=no
11172 ;;
11173
11174# This must be Linux ELF.
7a9d3fe8 11175linux* | k*bsd*-gnu | kopensolaris*-gnu)
86e44bd7
L
11176 version_type=linux
11177 need_lib_prefix=no
11178 need_version=no
11179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11180 soname_spec='${libname}${release}${shared_ext}$major'
11181 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11182 shlibpath_var=LD_LIBRARY_PATH
11183 shlibpath_overrides_runpath=no
baafc534 11184
86e44bd7 11185 # Some binutils ld are patched to set DT_RUNPATH
5213506e
RW
11186 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11187 $as_echo_n "(cached) " >&6
baafc534
RW
11188else
11189 lt_cv_shlibpath_overrides_runpath=no
11190 save_LDFLAGS=$LDFLAGS
11191 save_libdir=$libdir
11192 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11193 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11194 if test x$gcc_no_link = xyes; then
5213506e 11195 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
86e44bd7 11196fi
5213506e 11197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86e44bd7
L
11198/* end confdefs.h. */
11199
11200int
11201main ()
11202{
11203
11204 ;
11205 return 0;
11206}
11207_ACEOF
5213506e
RW
11208if ac_fn_c_try_link "$LINENO"; then :
11209 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
baafc534 11210 lt_cv_shlibpath_overrides_runpath=yes
86e44bd7 11211fi
86e44bd7 11212fi
5213506e
RW
11213rm -f core conftest.err conftest.$ac_objext \
11214 conftest$ac_exeext conftest.$ac_ext
baafc534
RW
11215 LDFLAGS=$save_LDFLAGS
11216 libdir=$save_libdir
11217
11218fi
11219
11220 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
86e44bd7
L
11221
11222 # This implies no fast_install, which is unacceptable.
11223 # Some rework will be needed to allow for fast_install
11224 # before this can be enabled.
11225 hardcode_into_libs=yes
11226
11227 # Append ld.so.conf contents to the search path
11228 if test -f /etc/ld.so.conf; then
43e02a8a 11229 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' ' '`
86e44bd7
L
11230 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11231 fi
11232
11233 # We used to test for /lib/ld.so.1 and disable shared libraries on
11234 # powerpc, because MkLinux only supported shared libraries with the
11235 # GNU dynamic linker. Since this was broken with cross compilers,
11236 # most powerpc-linux boxes support dynamic linking these days and
11237 # people can always --disable-shared, the test was removed, and we
11238 # assume the GNU/Linux dynamic linker is in use.
11239 dynamic_linker='GNU/Linux ld.so'
11240 ;;
11241
11242netbsd*)
11243 version_type=sunos
11244 need_lib_prefix=no
11245 need_version=no
11246 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11248 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11249 dynamic_linker='NetBSD (a.out) ld.so'
11250 else
11251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11252 soname_spec='${libname}${release}${shared_ext}$major'
11253 dynamic_linker='NetBSD ld.elf_so'
11254 fi
11255 shlibpath_var=LD_LIBRARY_PATH
11256 shlibpath_overrides_runpath=yes
11257 hardcode_into_libs=yes
11258 ;;
11259
11260newsos6)
11261 version_type=linux
11262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11263 shlibpath_var=LD_LIBRARY_PATH
11264 shlibpath_overrides_runpath=yes
11265 ;;
11266
11267*nto* | *qnx*)
11268 version_type=qnx
11269 need_lib_prefix=no
11270 need_version=no
11271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11272 soname_spec='${libname}${release}${shared_ext}$major'
11273 shlibpath_var=LD_LIBRARY_PATH
11274 shlibpath_overrides_runpath=no
11275 hardcode_into_libs=yes
11276 dynamic_linker='ldqnx.so'
11277 ;;
11278
11279openbsd*)
11280 version_type=sunos
11281 sys_lib_dlsearch_path_spec="/usr/lib"
11282 need_lib_prefix=no
11283 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11284 case $host_os in
11285 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11286 *) need_version=no ;;
11287 esac
11288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11289 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11290 shlibpath_var=LD_LIBRARY_PATH
11291 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11292 case $host_os in
11293 openbsd2.[89] | openbsd2.[89].*)
11294 shlibpath_overrides_runpath=no
11295 ;;
11296 *)
11297 shlibpath_overrides_runpath=yes
11298 ;;
11299 esac
11300 else
11301 shlibpath_overrides_runpath=yes
11302 fi
11303 ;;
11304
11305os2*)
11306 libname_spec='$name'
11307 shrext_cmds=".dll"
11308 need_lib_prefix=no
11309 library_names_spec='$libname${shared_ext} $libname.a'
11310 dynamic_linker='OS/2 ld.exe'
11311 shlibpath_var=LIBPATH
11312 ;;
11313
11314osf3* | osf4* | osf5*)
11315 version_type=osf
11316 need_lib_prefix=no
11317 need_version=no
11318 soname_spec='${libname}${release}${shared_ext}$major'
11319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11320 shlibpath_var=LD_LIBRARY_PATH
11321 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11322 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11323 ;;
11324
11325rdos*)
11326 dynamic_linker=no
11327 ;;
11328
11329solaris*)
11330 version_type=linux
11331 need_lib_prefix=no
11332 need_version=no
11333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11334 soname_spec='${libname}${release}${shared_ext}$major'
11335 shlibpath_var=LD_LIBRARY_PATH
11336 shlibpath_overrides_runpath=yes
11337 hardcode_into_libs=yes
11338 # ldd complains unless libraries are executable
11339 postinstall_cmds='chmod +x $lib'
11340 ;;
11341
11342sunos4*)
11343 version_type=sunos
11344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11345 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11346 shlibpath_var=LD_LIBRARY_PATH
11347 shlibpath_overrides_runpath=yes
11348 if test "$with_gnu_ld" = yes; then
11349 need_lib_prefix=no
11350 fi
11351 need_version=yes
11352 ;;
11353
11354sysv4 | sysv4.3*)
11355 version_type=linux
11356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11357 soname_spec='${libname}${release}${shared_ext}$major'
11358 shlibpath_var=LD_LIBRARY_PATH
11359 case $host_vendor in
11360 sni)
11361 shlibpath_overrides_runpath=no
11362 need_lib_prefix=no
11363 runpath_var=LD_RUN_PATH
11364 ;;
11365 siemens)
11366 need_lib_prefix=no
11367 ;;
11368 motorola)
11369 need_lib_prefix=no
11370 need_version=no
11371 shlibpath_overrides_runpath=no
11372 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11373 ;;
11374 esac
11375 ;;
11376
11377sysv4*MP*)
11378 if test -d /usr/nec ;then
11379 version_type=linux
11380 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11381 soname_spec='$libname${shared_ext}.$major'
11382 shlibpath_var=LD_LIBRARY_PATH
11383 fi
11384 ;;
11385
11386sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11387 version_type=freebsd-elf
11388 need_lib_prefix=no
11389 need_version=no
11390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11391 soname_spec='${libname}${release}${shared_ext}$major'
11392 shlibpath_var=LD_LIBRARY_PATH
11393 shlibpath_overrides_runpath=yes
11394 hardcode_into_libs=yes
11395 if test "$with_gnu_ld" = yes; then
11396 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11397 else
11398 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11399 case $host_os in
11400 sco3.2v5*)
11401 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11402 ;;
11403 esac
11404 fi
11405 sys_lib_dlsearch_path_spec='/usr/lib'
11406 ;;
11407
11408tpf*)
11409 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11410 version_type=linux
11411 need_lib_prefix=no
11412 need_version=no
0da7a284 11413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
86e44bd7
L
11414 shlibpath_var=LD_LIBRARY_PATH
11415 shlibpath_overrides_runpath=no
11416 hardcode_into_libs=yes
11417 ;;
11418
11419uts4*)
11420 version_type=linux
11421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11422 soname_spec='${libname}${release}${shared_ext}$major'
11423 shlibpath_var=LD_LIBRARY_PATH
11424 ;;
11425
11426*)
11427 dynamic_linker=no
11428 ;;
11429esac
5213506e
RW
11430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11431$as_echo "$dynamic_linker" >&6; }
86e44bd7
L
11432test "$dynamic_linker" = no && can_build_shared=no
11433
11434variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11435if test "$GCC" = yes; then
11436 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11437fi
11438
0da7a284
PG
11439if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11440 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11441fi
11442if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11443 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11444fi
11445
86e44bd7
L
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
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
43e02a8a
RW
11526
11527
11528
11529
11530
86e44bd7
L
11531
11532
11533
11534
11535
11536
5213506e
RW
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11538$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
86e44bd7
L
11539hardcode_action=
11540if test -n "$hardcode_libdir_flag_spec" ||
11541 test -n "$runpath_var" ||
11542 test "X$hardcode_automatic" = "Xyes" ; then
11543
11544 # We can hardcode non-existent directories.
11545 if test "$hardcode_direct" != no &&
11546 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11547 # have to relink, otherwise we might link with an installed library
11548 # when we should be linking with a yet-to-be-installed one
11549 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11550 test "$hardcode_minus_L" != no; then
11551 # Linking always hardcodes the temporary library directory.
11552 hardcode_action=relink
11553 else
11554 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11555 hardcode_action=immediate
11556 fi
11557else
11558 # We cannot hardcode anything, or else we can only hardcode existing
11559 # directories.
11560 hardcode_action=unsupported
11561fi
5213506e
RW
11562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11563$as_echo "$hardcode_action" >&6; }
86e44bd7
L
11564
11565if test "$hardcode_action" = relink ||
11566 test "$inherit_rpath" = yes; then
11567 # Fast installation is not supported
11568 enable_fast_install=no
11569elif test "$shlibpath_overrides_runpath" = yes ||
11570 test "$enable_shared" = no; then
11571 # Fast installation is not necessary
11572 enable_fast_install=needless
11573fi
11574
11575
11576
11577
11578
11579
11580 if test "x$enable_dlopen" != xyes; then
11581 enable_dlopen=unknown
11582 enable_dlopen_self=unknown
11583 enable_dlopen_self_static=unknown
11584else
11585 lt_cv_dlopen=no
11586 lt_cv_dlopen_libs=
11587
11588 case $host_os in
11589 beos*)
11590 lt_cv_dlopen="load_add_on"
11591 lt_cv_dlopen_libs=
11592 lt_cv_dlopen_self=yes
11593 ;;
11594
0da7a284 11595 mingw* | pw32* | cegcc*)
86e44bd7
L
11596 lt_cv_dlopen="LoadLibrary"
11597 lt_cv_dlopen_libs=
11598 ;;
11599
11600 cygwin*)
11601 lt_cv_dlopen="dlopen"
11602 lt_cv_dlopen_libs=
11603 ;;
11604
11605 darwin*)
11606 # if libdl is installed we need to link against it
5213506e
RW
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11608$as_echo_n "checking for dlopen in -ldl... " >&6; }
11609if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11610 $as_echo_n "(cached) " >&6
86e44bd7
L
11611else
11612 ac_check_lib_save_LIBS=$LIBS
11613LIBS="-ldl $LIBS"
11614if test x$gcc_no_link = xyes; then
5213506e 11615 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
86e44bd7 11616fi
5213506e 11617cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86e44bd7
L
11618/* end confdefs.h. */
11619
5213506e
RW
11620/* Override any GCC internal prototype to avoid an error.
11621 Use char because int might match the return type of a GCC
11622 builtin and then its argument prototype would still apply. */
86e44bd7
L
11623#ifdef __cplusplus
11624extern "C"
11625#endif
86e44bd7
L
11626char dlopen ();
11627int
11628main ()
11629{
5213506e 11630return dlopen ();
86e44bd7
L
11631 ;
11632 return 0;
11633}
11634_ACEOF
5213506e 11635if ac_fn_c_try_link "$LINENO"; then :
86e44bd7
L
11636 ac_cv_lib_dl_dlopen=yes
11637else
5213506e 11638 ac_cv_lib_dl_dlopen=no
86e44bd7 11639fi
5213506e
RW
11640rm -f core conftest.err conftest.$ac_objext \
11641 conftest$ac_exeext conftest.$ac_ext
86e44bd7
L
11642LIBS=$ac_check_lib_save_LIBS
11643fi
5213506e
RW
11644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11645$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11646if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
86e44bd7
L
11647 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11648else
11649
11650 lt_cv_dlopen="dyld"
11651 lt_cv_dlopen_libs=
11652 lt_cv_dlopen_self=yes
11653
11654fi
11655
11656 ;;
11657
11658 *)
5213506e
RW
11659 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11660if test "x$ac_cv_func_shl_load" = x""yes; then :
11661 lt_cv_dlopen="shl_load"
86e44bd7 11662else
5213506e
RW
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11664$as_echo_n "checking for shl_load in -ldld... " >&6; }
11665if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11666 $as_echo_n "(cached) " >&6
86e44bd7
L
11667else
11668 ac_check_lib_save_LIBS=$LIBS
11669LIBS="-ldld $LIBS"
11670if test x$gcc_no_link = xyes; then
5213506e 11671 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
86e44bd7 11672fi
5213506e 11673cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86e44bd7
L
11674/* end confdefs.h. */
11675
5213506e
RW
11676/* Override any GCC internal prototype to avoid an error.
11677 Use char because int might match the return type of a GCC
11678 builtin and then its argument prototype would still apply. */
86e44bd7
L
11679#ifdef __cplusplus
11680extern "C"
11681#endif
86e44bd7
L
11682char shl_load ();
11683int
11684main ()
11685{
5213506e 11686return shl_load ();
86e44bd7
L
11687 ;
11688 return 0;
11689}
11690_ACEOF
5213506e 11691if ac_fn_c_try_link "$LINENO"; then :
86e44bd7
L
11692 ac_cv_lib_dld_shl_load=yes
11693else
5213506e 11694 ac_cv_lib_dld_shl_load=no
86e44bd7 11695fi
5213506e
RW
11696rm -f core conftest.err conftest.$ac_objext \
11697 conftest$ac_exeext conftest.$ac_ext
86e44bd7
L
11698LIBS=$ac_check_lib_save_LIBS
11699fi
5213506e
RW
11700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11701$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11702if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
0da7a284 11703 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
86e44bd7 11704else
5213506e
RW
11705 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11706if test "x$ac_cv_func_dlopen" = x""yes; then :
86e44bd7
L
11707 lt_cv_dlopen="dlopen"
11708else
5213506e
RW
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11710$as_echo_n "checking for dlopen in -ldl... " >&6; }
11711if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11712 $as_echo_n "(cached) " >&6
86e44bd7
L
11713else
11714 ac_check_lib_save_LIBS=$LIBS
11715LIBS="-ldl $LIBS"
11716if test x$gcc_no_link = xyes; then
5213506e 11717 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
86e44bd7 11718fi
5213506e 11719cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86e44bd7
L
11720/* end confdefs.h. */
11721
5213506e
RW
11722/* Override any GCC internal prototype to avoid an error.
11723 Use char because int might match the return type of a GCC
11724 builtin and then its argument prototype would still apply. */
86e44bd7
L
11725#ifdef __cplusplus
11726extern "C"
11727#endif
86e44bd7
L
11728char dlopen ();
11729int
11730main ()
11731{
5213506e 11732return dlopen ();
86e44bd7
L
11733 ;
11734 return 0;
11735}
11736_ACEOF
5213506e 11737if ac_fn_c_try_link "$LINENO"; then :
86e44bd7
L
11738 ac_cv_lib_dl_dlopen=yes
11739else
5213506e 11740 ac_cv_lib_dl_dlopen=no
86e44bd7 11741fi
5213506e
RW
11742rm -f core conftest.err conftest.$ac_objext \
11743 conftest$ac_exeext conftest.$ac_ext
86e44bd7
L
11744LIBS=$ac_check_lib_save_LIBS
11745fi
5213506e
RW
11746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11747$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11748if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
86e44bd7
L
11749 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11750else
5213506e
RW
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11752$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11753if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11754 $as_echo_n "(cached) " >&6
86e44bd7
L
11755else
11756 ac_check_lib_save_LIBS=$LIBS
11757LIBS="-lsvld $LIBS"
11758if test x$gcc_no_link = xyes; then
5213506e 11759 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
86e44bd7 11760fi
5213506e 11761cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86e44bd7
L
11762/* end confdefs.h. */
11763
5213506e
RW
11764/* Override any GCC internal prototype to avoid an error.
11765 Use char because int might match the return type of a GCC
11766 builtin and then its argument prototype would still apply. */
86e44bd7
L
11767#ifdef __cplusplus
11768extern "C"
11769#endif
86e44bd7
L
11770char dlopen ();
11771int
11772main ()
11773{
5213506e 11774return dlopen ();
86e44bd7
L
11775 ;
11776 return 0;
11777}
11778_ACEOF
5213506e 11779if ac_fn_c_try_link "$LINENO"; then :
86e44bd7
L
11780 ac_cv_lib_svld_dlopen=yes
11781else
5213506e 11782 ac_cv_lib_svld_dlopen=no
86e44bd7 11783fi
5213506e
RW
11784rm -f core conftest.err conftest.$ac_objext \
11785 conftest$ac_exeext conftest.$ac_ext
86e44bd7
L
11786LIBS=$ac_check_lib_save_LIBS
11787fi
5213506e
RW
11788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11789$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11790if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
86e44bd7
L
11791 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11792else
5213506e
RW
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11794$as_echo_n "checking for dld_link in -ldld... " >&6; }
11795if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11796 $as_echo_n "(cached) " >&6
86e44bd7
L
11797else
11798 ac_check_lib_save_LIBS=$LIBS
11799LIBS="-ldld $LIBS"
11800if test x$gcc_no_link = xyes; then
5213506e 11801 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
86e44bd7 11802fi
5213506e 11803cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86e44bd7
L
11804/* end confdefs.h. */
11805
5213506e
RW
11806/* Override any GCC internal prototype to avoid an error.
11807 Use char because int might match the return type of a GCC
11808 builtin and then its argument prototype would still apply. */
86e44bd7
L
11809#ifdef __cplusplus
11810extern "C"
11811#endif
86e44bd7
L
11812char dld_link ();
11813int
11814main ()
11815{
5213506e 11816return dld_link ();
86e44bd7
L
11817 ;
11818 return 0;
11819}
11820_ACEOF
5213506e 11821if ac_fn_c_try_link "$LINENO"; then :
86e44bd7
L
11822 ac_cv_lib_dld_dld_link=yes
11823else
5213506e 11824 ac_cv_lib_dld_dld_link=no
86e44bd7 11825fi
5213506e
RW
11826rm -f core conftest.err conftest.$ac_objext \
11827 conftest$ac_exeext conftest.$ac_ext
86e44bd7
L
11828LIBS=$ac_check_lib_save_LIBS
11829fi
5213506e
RW
11830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11831$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11832if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
0da7a284 11833 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
86e44bd7
L
11834fi
11835
11836
11837fi
11838
11839
11840fi
11841
11842
11843fi
11844
11845
11846fi
11847
11848
11849fi
11850
11851 ;;
11852 esac
11853
11854 if test "x$lt_cv_dlopen" != xno; then
11855 enable_dlopen=yes
11856 else
11857 enable_dlopen=no
11858 fi
11859
11860 case $lt_cv_dlopen in
11861 dlopen)
11862 save_CPPFLAGS="$CPPFLAGS"
11863 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11864
11865 save_LDFLAGS="$LDFLAGS"
11866 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11867
11868 save_LIBS="$LIBS"
11869 LIBS="$lt_cv_dlopen_libs $LIBS"
11870
5213506e
RW
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11872$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11873if test "${lt_cv_dlopen_self+set}" = set; then :
11874 $as_echo_n "(cached) " >&6
86e44bd7
L
11875else
11876 if test "$cross_compiling" = yes; then :
11877 lt_cv_dlopen_self=cross
11878else
11879 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11880 lt_status=$lt_dlunknown
11881 cat > conftest.$ac_ext <<_LT_EOF
3cbe17f7 11882#line 11882 "configure"
86e44bd7
L
11883#include "confdefs.h"
11884
11885#if HAVE_DLFCN_H
11886#include <dlfcn.h>
11887#endif
11888
11889#include <stdio.h>
11890
11891#ifdef RTLD_GLOBAL
11892# define LT_DLGLOBAL RTLD_GLOBAL
11893#else
11894# ifdef DL_GLOBAL
11895# define LT_DLGLOBAL DL_GLOBAL
11896# else
11897# define LT_DLGLOBAL 0
11898# endif
11899#endif
11900
11901/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11902 find out it does not work in some platform. */
11903#ifndef LT_DLLAZY_OR_NOW
11904# ifdef RTLD_LAZY
11905# define LT_DLLAZY_OR_NOW RTLD_LAZY
11906# else
11907# ifdef DL_LAZY
11908# define LT_DLLAZY_OR_NOW DL_LAZY
11909# else
11910# ifdef RTLD_NOW
11911# define LT_DLLAZY_OR_NOW RTLD_NOW
11912# else
11913# ifdef DL_NOW
11914# define LT_DLLAZY_OR_NOW DL_NOW
11915# else
11916# define LT_DLLAZY_OR_NOW 0
11917# endif
11918# endif
11919# endif
11920# endif
11921#endif
11922
43e02a8a
RW
11923/* When -fvisbility=hidden is used, assume the code has been annotated
11924 correspondingly for the symbols needed. */
11925#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11926void fnord () __attribute__((visibility("default")));
11927#endif
11928
11929void fnord () { int i=42; }
86e44bd7
L
11930int main ()
11931{
11932 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11933 int status = $lt_dlunknown;
11934
11935 if (self)
11936 {
11937 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
43e02a8a
RW
11938 else
11939 {
11940 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11941 else puts (dlerror ());
11942 }
86e44bd7
L
11943 /* dlclose (self); */
11944 }
11945 else
11946 puts (dlerror ());
11947
0da7a284 11948 return status;
86e44bd7
L
11949}
11950_LT_EOF
5213506e 11951 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
86e44bd7
L
11952 (eval $ac_link) 2>&5
11953 ac_status=$?
5213506e
RW
11954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11955 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
86e44bd7
L
11956 (./conftest; exit; ) >&5 2>/dev/null
11957 lt_status=$?
11958 case x$lt_status in
11959 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11960 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11961 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11962 esac
11963 else :
11964 # compilation failed
11965 lt_cv_dlopen_self=no
11966 fi
11967fi
11968rm -fr conftest*
11969
11970
11971fi
5213506e
RW
11972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11973$as_echo "$lt_cv_dlopen_self" >&6; }
86e44bd7
L
11974
11975 if test "x$lt_cv_dlopen_self" = xyes; then
11976 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
5213506e
RW
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11978$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11979if test "${lt_cv_dlopen_self_static+set}" = set; then :
11980 $as_echo_n "(cached) " >&6
86e44bd7
L
11981else
11982 if test "$cross_compiling" = yes; then :
11983 lt_cv_dlopen_self_static=cross
11984else
11985 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11986 lt_status=$lt_dlunknown
11987 cat > conftest.$ac_ext <<_LT_EOF
3cbe17f7 11988#line 11988 "configure"
86e44bd7
L
11989#include "confdefs.h"
11990
11991#if HAVE_DLFCN_H
11992#include <dlfcn.h>
11993#endif
11994
11995#include <stdio.h>
11996
11997#ifdef RTLD_GLOBAL
11998# define LT_DLGLOBAL RTLD_GLOBAL
11999#else
12000# ifdef DL_GLOBAL
12001# define LT_DLGLOBAL DL_GLOBAL
12002# else
12003# define LT_DLGLOBAL 0
12004# endif
12005#endif
12006
12007/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12008 find out it does not work in some platform. */
12009#ifndef LT_DLLAZY_OR_NOW
12010# ifdef RTLD_LAZY
12011# define LT_DLLAZY_OR_NOW RTLD_LAZY
12012# else
12013# ifdef DL_LAZY
12014# define LT_DLLAZY_OR_NOW DL_LAZY
12015# else
12016# ifdef RTLD_NOW
12017# define LT_DLLAZY_OR_NOW RTLD_NOW
12018# else
12019# ifdef DL_NOW
12020# define LT_DLLAZY_OR_NOW DL_NOW
12021# else
12022# define LT_DLLAZY_OR_NOW 0
12023# endif
12024# endif
12025# endif
12026# endif
12027#endif
12028
43e02a8a
RW
12029/* When -fvisbility=hidden is used, assume the code has been annotated
12030 correspondingly for the symbols needed. */
12031#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12032void fnord () __attribute__((visibility("default")));
12033#endif
12034
12035void fnord () { int i=42; }
86e44bd7
L
12036int main ()
12037{
12038 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12039 int status = $lt_dlunknown;
12040
12041 if (self)
12042 {
12043 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
43e02a8a
RW
12044 else
12045 {
12046 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12047 else puts (dlerror ());
12048 }
86e44bd7
L
12049 /* dlclose (self); */
12050 }
12051 else
12052 puts (dlerror ());
12053
0da7a284 12054 return status;
86e44bd7
L
12055}
12056_LT_EOF
5213506e 12057 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
86e44bd7
L
12058 (eval $ac_link) 2>&5
12059 ac_status=$?
5213506e
RW
12060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12061 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
86e44bd7
L
12062 (./conftest; exit; ) >&5 2>/dev/null
12063 lt_status=$?
12064 case x$lt_status in
12065 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12066 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12067 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12068 esac
12069 else :
12070 # compilation failed
12071 lt_cv_dlopen_self_static=no
12072 fi
12073fi
12074rm -fr conftest*
12075
12076
12077fi
5213506e
RW
12078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12079$as_echo "$lt_cv_dlopen_self_static" >&6; }
86e44bd7
L
12080 fi
12081
12082 CPPFLAGS="$save_CPPFLAGS"
12083 LDFLAGS="$save_LDFLAGS"
12084 LIBS="$save_LIBS"
12085 ;;
12086 esac
12087
12088 case $lt_cv_dlopen_self in
12089 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12090 *) enable_dlopen_self=unknown ;;
12091 esac
12092
12093 case $lt_cv_dlopen_self_static in
12094 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12095 *) enable_dlopen_self_static=unknown ;;
12096 esac
12097fi
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115striplib=
12116old_striplib=
5213506e
RW
12117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12118$as_echo_n "checking whether stripping libraries is possible... " >&6; }
86e44bd7
L
12119if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12120 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12121 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5213506e
RW
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12123$as_echo "yes" >&6; }
86e44bd7
L
12124else
12125# FIXME - insert some real tests, host_os isn't really good enough
12126 case $host_os in
12127 darwin*)
12128 if test -n "$STRIP" ; then
12129 striplib="$STRIP -x"
12130 old_striplib="$STRIP -S"
5213506e
RW
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12132$as_echo "yes" >&6; }
86e44bd7 12133 else
5213506e
RW
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12135$as_echo "no" >&6; }
86e44bd7
L
12136 fi
12137 ;;
12138 *)
5213506e
RW
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12140$as_echo "no" >&6; }
86e44bd7
L
12141 ;;
12142 esac
12143fi
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156 # Report which library types will actually be built
5213506e
RW
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12158$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12160$as_echo "$can_build_shared" >&6; }
86e44bd7 12161
5213506e
RW
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12163$as_echo_n "checking whether to build shared libraries... " >&6; }
86e44bd7
L
12164 test "$can_build_shared" = "no" && enable_shared=no
12165
12166 # On AIX, shared libraries and static libraries use the same namespace, and
12167 # are all built from PIC.
12168 case $host_os in
12169 aix3*)
12170 test "$enable_shared" = yes && enable_static=no
12171 if test -n "$RANLIB"; then
12172 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12173 postinstall_cmds='$RANLIB $lib'
12174 fi
12175 ;;
12176
015cd9b1 12177 aix[4-9]*)
86e44bd7
L
12178 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12179 test "$enable_shared" = yes && enable_static=no
12180 fi
12181 ;;
12182 esac
5213506e
RW
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12184$as_echo "$enable_shared" >&6; }
86e44bd7 12185
5213506e
RW
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12187$as_echo_n "checking whether to build static libraries... " >&6; }
86e44bd7
L
12188 # Make sure either enable_shared or enable_static is yes.
12189 test "$enable_shared" = yes || enable_static=yes
5213506e
RW
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12191$as_echo "$enable_static" >&6; }
86e44bd7
L
12192
12193
12194
12195
12196fi
12197ac_ext=c
12198ac_cpp='$CPP $CPPFLAGS'
12199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12201ac_compiler_gnu=$ac_cv_c_compiler_gnu
12202
12203CC="$lt_save_CC"
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
5213506e 12217 ac_config_commands="$ac_config_commands libtool"
86e44bd7
L
12218
12219
12220
12221
12222# Only expand once:
12223
12224
efacd748
RW
12225for ac_prog in gawk mawk nawk awk
12226do
12227 # Extract the first word of "$ac_prog", so it can be a program name with args.
12228set dummy $ac_prog; ac_word=$2
5213506e
RW
12229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12230$as_echo_n "checking for $ac_word... " >&6; }
12231if test "${ac_cv_prog_AWK+set}" = set; then :
12232 $as_echo_n "(cached) " >&6
efacd748
RW
12233else
12234 if test -n "$AWK"; then
12235 ac_cv_prog_AWK="$AWK" # Let the user override the test.
12236else
12237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12238for as_dir in $PATH
12239do
12240 IFS=$as_save_IFS
12241 test -z "$as_dir" && as_dir=.
5213506e
RW
12242 for ac_exec_ext in '' $ac_executable_extensions; do
12243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
efacd748 12244 ac_cv_prog_AWK="$ac_prog"
5213506e 12245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
efacd748
RW
12246 break 2
12247 fi
12248done
5213506e
RW
12249 done
12250IFS=$as_save_IFS
efacd748
RW
12251
12252fi
12253fi
12254AWK=$ac_cv_prog_AWK
12255if test -n "$AWK"; then
5213506e
RW
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12257$as_echo "$AWK" >&6; }
efacd748 12258else
5213506e
RW
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12260$as_echo "no" >&6; }
efacd748
RW
12261fi
12262
5213506e 12263
efacd748
RW
12264 test -n "$AWK" && break
12265done
12266
86e44bd7
L
12267ac_ext=c
12268ac_cpp='$CPP $CPPFLAGS'
12269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12271ac_compiler_gnu=$ac_cv_c_compiler_gnu
12272if test -n "$ac_tool_prefix"; then
12273 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12274set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
12275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12276$as_echo_n "checking for $ac_word... " >&6; }
12277if test "${ac_cv_prog_CC+set}" = set; then :
12278 $as_echo_n "(cached) " >&6
86e44bd7
L
12279else
12280 if test -n "$CC"; then
12281 ac_cv_prog_CC="$CC" # Let the user override the test.
12282else
12283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12284for as_dir in $PATH
12285do
12286 IFS=$as_save_IFS
12287 test -z "$as_dir" && as_dir=.
5213506e
RW
12288 for ac_exec_ext in '' $ac_executable_extensions; do
12289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
86e44bd7 12290 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 12291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
86e44bd7
L
12292 break 2
12293 fi
12294done
5213506e
RW
12295 done
12296IFS=$as_save_IFS
86e44bd7
L
12297
12298fi
12299fi
12300CC=$ac_cv_prog_CC
12301if test -n "$CC"; then
5213506e
RW
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12303$as_echo "$CC" >&6; }
86e44bd7 12304else
5213506e
RW
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12306$as_echo "no" >&6; }
86e44bd7
L
12307fi
12308
5213506e 12309
86e44bd7
L
12310fi
12311if test -z "$ac_cv_prog_CC"; then
12312 ac_ct_CC=$CC
12313 # Extract the first word of "gcc", so it can be a program name with args.
12314set dummy gcc; ac_word=$2
5213506e
RW
12315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12316$as_echo_n "checking for $ac_word... " >&6; }
12317if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
12318 $as_echo_n "(cached) " >&6
86e44bd7
L
12319else
12320 if test -n "$ac_ct_CC"; then
12321 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12322else
12323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12324for as_dir in $PATH
12325do
12326 IFS=$as_save_IFS
12327 test -z "$as_dir" && as_dir=.
5213506e
RW
12328 for ac_exec_ext in '' $ac_executable_extensions; do
12329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
86e44bd7 12330 ac_cv_prog_ac_ct_CC="gcc"
5213506e 12331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
86e44bd7
L
12332 break 2
12333 fi
12334done
5213506e
RW
12335 done
12336IFS=$as_save_IFS
86e44bd7
L
12337
12338fi
12339fi
12340ac_ct_CC=$ac_cv_prog_ac_ct_CC
12341if test -n "$ac_ct_CC"; then
5213506e
RW
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12343$as_echo "$ac_ct_CC" >&6; }
86e44bd7 12344else
5213506e
RW
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12346$as_echo "no" >&6; }
86e44bd7
L
12347fi
12348
5213506e
RW
12349 if test "x$ac_ct_CC" = x; then
12350 CC=""
12351 else
12352 case $cross_compiling:$ac_tool_warned in
12353yes:)
12354{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12355$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12356ac_tool_warned=yes ;;
12357esac
12358 CC=$ac_ct_CC
12359 fi
86e44bd7
L
12360else
12361 CC="$ac_cv_prog_CC"
12362fi
12363
12364if test -z "$CC"; then
5213506e
RW
12365 if test -n "$ac_tool_prefix"; then
12366 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
86e44bd7 12367set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
12368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12369$as_echo_n "checking for $ac_word... " >&6; }
12370if test "${ac_cv_prog_CC+set}" = set; then :
12371 $as_echo_n "(cached) " >&6
86e44bd7
L
12372else
12373 if test -n "$CC"; then
12374 ac_cv_prog_CC="$CC" # Let the user override the test.
12375else
12376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12377for as_dir in $PATH
12378do
12379 IFS=$as_save_IFS
12380 test -z "$as_dir" && as_dir=.
5213506e
RW
12381 for ac_exec_ext in '' $ac_executable_extensions; do
12382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
86e44bd7 12383 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 12384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
86e44bd7
L
12385 break 2
12386 fi
12387done
5213506e
RW
12388 done
12389IFS=$as_save_IFS
86e44bd7
L
12390
12391fi
12392fi
12393CC=$ac_cv_prog_CC
12394if test -n "$CC"; then
5213506e
RW
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12396$as_echo "$CC" >&6; }
86e44bd7 12397else
5213506e
RW
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12399$as_echo "no" >&6; }
86e44bd7
L
12400fi
12401
86e44bd7 12402
5213506e 12403 fi
86e44bd7
L
12404fi
12405if test -z "$CC"; then
12406 # Extract the first word of "cc", so it can be a program name with args.
12407set dummy cc; ac_word=$2
5213506e
RW
12408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12409$as_echo_n "checking for $ac_word... " >&6; }
12410if test "${ac_cv_prog_CC+set}" = set; then :
12411 $as_echo_n "(cached) " >&6
86e44bd7
L
12412else
12413 if test -n "$CC"; then
12414 ac_cv_prog_CC="$CC" # Let the user override the test.
12415else
12416 ac_prog_rejected=no
12417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12418for as_dir in $PATH
12419do
12420 IFS=$as_save_IFS
12421 test -z "$as_dir" && as_dir=.
5213506e
RW
12422 for ac_exec_ext in '' $ac_executable_extensions; do
12423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
86e44bd7
L
12424 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12425 ac_prog_rejected=yes
12426 continue
12427 fi
12428 ac_cv_prog_CC="cc"
5213506e 12429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
86e44bd7
L
12430 break 2
12431 fi
12432done
5213506e
RW
12433 done
12434IFS=$as_save_IFS
86e44bd7
L
12435
12436if test $ac_prog_rejected = yes; then
12437 # We found a bogon in the path, so make sure we never use it.
12438 set dummy $ac_cv_prog_CC
12439 shift
12440 if test $# != 0; then
12441 # We chose a different compiler from the bogus one.
12442 # However, it has the same basename, so the bogon will be chosen
12443 # first if we set CC to just the basename; use the full file name.
12444 shift
12445 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12446 fi
12447fi
12448fi
12449fi
12450CC=$ac_cv_prog_CC
12451if test -n "$CC"; then
5213506e
RW
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12453$as_echo "$CC" >&6; }
86e44bd7 12454else
5213506e
RW
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12456$as_echo "no" >&6; }
86e44bd7
L
12457fi
12458
5213506e 12459
86e44bd7
L
12460fi
12461if test -z "$CC"; then
12462 if test -n "$ac_tool_prefix"; then
5213506e 12463 for ac_prog in cl.exe
86e44bd7
L
12464 do
12465 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12466set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
12467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12468$as_echo_n "checking for $ac_word... " >&6; }
12469if test "${ac_cv_prog_CC+set}" = set; then :
12470 $as_echo_n "(cached) " >&6
86e44bd7
L
12471else
12472 if test -n "$CC"; then
12473 ac_cv_prog_CC="$CC" # Let the user override the test.
12474else
12475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12476for as_dir in $PATH
12477do
12478 IFS=$as_save_IFS
12479 test -z "$as_dir" && as_dir=.
5213506e
RW
12480 for ac_exec_ext in '' $ac_executable_extensions; do
12481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
86e44bd7 12482 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 12483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
86e44bd7
L
12484 break 2
12485 fi
12486done
5213506e
RW
12487 done
12488IFS=$as_save_IFS
86e44bd7
L
12489
12490fi
12491fi
12492CC=$ac_cv_prog_CC
12493if test -n "$CC"; then
5213506e
RW
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12495$as_echo "$CC" >&6; }
86e44bd7 12496else
5213506e
RW
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12498$as_echo "no" >&6; }
86e44bd7
L
12499fi
12500
5213506e 12501
86e44bd7
L
12502 test -n "$CC" && break
12503 done
12504fi
12505if test -z "$CC"; then
12506 ac_ct_CC=$CC
5213506e 12507 for ac_prog in cl.exe
86e44bd7
L
12508do
12509 # Extract the first word of "$ac_prog", so it can be a program name with args.
12510set dummy $ac_prog; ac_word=$2
5213506e
RW
12511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12512$as_echo_n "checking for $ac_word... " >&6; }
12513if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
12514 $as_echo_n "(cached) " >&6
86e44bd7
L
12515else
12516 if test -n "$ac_ct_CC"; then
12517 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12518else
12519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12520for as_dir in $PATH
12521do
12522 IFS=$as_save_IFS
12523 test -z "$as_dir" && as_dir=.
5213506e
RW
12524 for ac_exec_ext in '' $ac_executable_extensions; do
12525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
86e44bd7 12526 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 12527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
86e44bd7
L
12528 break 2
12529 fi
12530done
5213506e
RW
12531 done
12532IFS=$as_save_IFS
86e44bd7
L
12533
12534fi
12535fi
12536ac_ct_CC=$ac_cv_prog_ac_ct_CC
12537if test -n "$ac_ct_CC"; then
5213506e
RW
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12539$as_echo "$ac_ct_CC" >&6; }
86e44bd7 12540else
5213506e
RW
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12542$as_echo "no" >&6; }
86e44bd7
L
12543fi
12544
5213506e 12545
86e44bd7
L
12546 test -n "$ac_ct_CC" && break
12547done
12548
5213506e
RW
12549 if test "x$ac_ct_CC" = x; then
12550 CC=""
12551 else
12552 case $cross_compiling:$ac_tool_warned in
12553yes:)
12554{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12555$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12556ac_tool_warned=yes ;;
12557esac
12558 CC=$ac_ct_CC
12559 fi
86e44bd7
L
12560fi
12561
12562fi
12563
12564
5213506e
RW
12565test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12566$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12567as_fn_error "no acceptable C compiler found in \$PATH
12568See \`config.log' for more details." "$LINENO" 5; }
86e44bd7
L
12569
12570# Provide some information about the compiler.
5213506e
RW
12571$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12572set X $ac_compile
12573ac_compiler=$2
12574for ac_option in --version -v -V -qversion; do
12575 { { ac_try="$ac_compiler $ac_option >&5"
12576case "(($ac_try" in
12577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12578 *) ac_try_echo=$ac_try;;
12579esac
12580eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12581$as_echo "$ac_try_echo"; } >&5
12582 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
86e44bd7 12583 ac_status=$?
5213506e
RW
12584 if test -s conftest.err; then
12585 sed '10a\
12586... rest of stderr output deleted ...
12587 10q' conftest.err >conftest.er1
12588 cat conftest.er1 >&5
12589 rm -f conftest.er1 conftest.err
12590 fi
12591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12592 test $ac_status = 0; }
12593done
86e44bd7 12594
5213506e
RW
12595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12596$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12597if test "${ac_cv_c_compiler_gnu+set}" = set; then :
12598 $as_echo_n "(cached) " >&6
86e44bd7 12599else
5213506e 12600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86e44bd7
L
12601/* end confdefs.h. */
12602
12603int
12604main ()
12605{
12606#ifndef __GNUC__
12607 choke me
12608#endif
12609
12610 ;
12611 return 0;
12612}
12613_ACEOF
5213506e 12614if ac_fn_c_try_compile "$LINENO"; then :
86e44bd7
L
12615 ac_compiler_gnu=yes
12616else
5213506e 12617 ac_compiler_gnu=no
86e44bd7 12618fi
5213506e 12619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
86e44bd7
L
12620ac_cv_c_compiler_gnu=$ac_compiler_gnu
12621
12622fi
5213506e
RW
12623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12624$as_echo "$ac_cv_c_compiler_gnu" >&6; }
12625if test $ac_compiler_gnu = yes; then
12626 GCC=yes
12627else
12628 GCC=
12629fi
86e44bd7
L
12630ac_test_CFLAGS=${CFLAGS+set}
12631ac_save_CFLAGS=$CFLAGS
5213506e
RW
12632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12633$as_echo_n "checking whether $CC accepts -g... " >&6; }
12634if test "${ac_cv_prog_cc_g+set}" = set; then :
12635 $as_echo_n "(cached) " >&6
12636else
12637 ac_save_c_werror_flag=$ac_c_werror_flag
12638 ac_c_werror_flag=yes
12639 ac_cv_prog_cc_g=no
12640 CFLAGS="-g"
12641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86e44bd7
L
12642/* end confdefs.h. */
12643
12644int
12645main ()
12646{
12647
12648 ;
12649 return 0;
12650}
12651_ACEOF
5213506e 12652if ac_fn_c_try_compile "$LINENO"; then :
86e44bd7
L
12653 ac_cv_prog_cc_g=yes
12654else
5213506e
RW
12655 CFLAGS=""
12656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12657/* end confdefs.h. */
86e44bd7 12658
5213506e
RW
12659int
12660main ()
12661{
12662
12663 ;
12664 return 0;
12665}
12666_ACEOF
12667if ac_fn_c_try_compile "$LINENO"; then :
12668
12669else
12670 ac_c_werror_flag=$ac_save_c_werror_flag
12671 CFLAGS="-g"
12672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12673/* end confdefs.h. */
12674
12675int
12676main ()
12677{
12678
12679 ;
12680 return 0;
12681}
12682_ACEOF
12683if ac_fn_c_try_compile "$LINENO"; then :
12684 ac_cv_prog_cc_g=yes
12685fi
12686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12687fi
12688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12689fi
12690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12691 ac_c_werror_flag=$ac_save_c_werror_flag
12692fi
12693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12694$as_echo "$ac_cv_prog_cc_g" >&6; }
12695if test "$ac_test_CFLAGS" = set; then
12696 CFLAGS=$ac_save_CFLAGS
12697elif test $ac_cv_prog_cc_g = yes; then
12698 if test "$GCC" = yes; then
12699 CFLAGS="-g -O2"
12700 else
12701 CFLAGS="-g"
12702 fi
12703else
12704 if test "$GCC" = yes; then
86e44bd7
L
12705 CFLAGS="-O2"
12706 else
12707 CFLAGS=
12708 fi
12709fi
5213506e
RW
12710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12711$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12712if test "${ac_cv_prog_cc_c89+set}" = set; then :
12713 $as_echo_n "(cached) " >&6
86e44bd7 12714else
5213506e 12715 ac_cv_prog_cc_c89=no
86e44bd7 12716ac_save_CC=$CC
5213506e 12717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86e44bd7
L
12718/* end confdefs.h. */
12719#include <stdarg.h>
12720#include <stdio.h>
12721#include <sys/types.h>
12722#include <sys/stat.h>
12723/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12724struct buf { int x; };
12725FILE * (*rcsopen) (struct buf *, struct stat *, int);
12726static char *e (p, i)
12727 char **p;
12728 int i;
12729{
12730 return p[i];
12731}
12732static char *f (char * (*g) (char **, int), char **p, ...)
12733{
12734 char *s;
12735 va_list v;
12736 va_start (v,p);
12737 s = g (p, va_arg (v,int));
12738 va_end (v);
12739 return s;
12740}
12741
12742/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12743 function prototypes and stuff, but not '\xHH' hex character constants.
12744 These don't provoke an error unfortunately, instead are silently treated
5213506e 12745 as 'x'. The following induces an error, until -std is added to get
86e44bd7
L
12746 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12747 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 12748 that's true only with -std. */
86e44bd7
L
12749int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12750
5213506e
RW
12751/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12752 inside strings and character constants. */
12753#define FOO(x) 'x'
12754int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12755
86e44bd7
L
12756int test (int i, double x);
12757struct s1 {int (*f) (int a);};
12758struct s2 {int (*f) (double a);};
12759int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12760int argc;
12761char **argv;
12762int
12763main ()
12764{
12765return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12766 ;
12767 return 0;
12768}
12769_ACEOF
5213506e
RW
12770for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12771 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
86e44bd7
L
12772do
12773 CC="$ac_save_CC $ac_arg"
5213506e
RW
12774 if ac_fn_c_try_compile "$LINENO"; then :
12775 ac_cv_prog_cc_c89=$ac_arg
86e44bd7 12776fi
5213506e
RW
12777rm -f core conftest.err conftest.$ac_objext
12778 test "x$ac_cv_prog_cc_c89" != "xno" && break
86e44bd7 12779done
5213506e 12780rm -f conftest.$ac_ext
86e44bd7
L
12781CC=$ac_save_CC
12782
12783fi
5213506e
RW
12784# AC_CACHE_VAL
12785case "x$ac_cv_prog_cc_c89" in
12786 x)
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12788$as_echo "none needed" >&6; } ;;
12789 xno)
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12791$as_echo "unsupported" >&6; } ;;
86e44bd7 12792 *)
5213506e
RW
12793 CC="$CC $ac_cv_prog_cc_c89"
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12795$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
86e44bd7 12796esac
5213506e 12797if test "x$ac_cv_prog_cc_c89" != xno; then :
86e44bd7 12798
86e44bd7
L
12799fi
12800
86e44bd7
L
12801ac_ext=c
12802ac_cpp='$CPP $CPPFLAGS'
12803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12805ac_compiler_gnu=$ac_cv_c_compiler_gnu
12806
12807depcc="$CC" am_compiler_list=
12808
5213506e
RW
12809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12810$as_echo_n "checking dependency style of $depcc... " >&6; }
12811if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
12812 $as_echo_n "(cached) " >&6
86e44bd7
L
12813else
12814 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12815 # We make a subdir and do the tests there. Otherwise we can end up
12816 # making bogus files that we don't know about and never remove. For
12817 # instance it was reported that on HP-UX the gcc test will end up
12818 # making a dummy file named `D' -- because `-MD' means `put the output
12819 # in D'.
12820 mkdir conftest.dir
12821 # Copy depcomp to subdir because otherwise we won't find it if we're
12822 # using a relative directory.
12823 cp "$am_depcomp" conftest.dir
12824 cd conftest.dir
12825 # We will build objects and dependencies in a subdirectory because
12826 # it helps to detect inapplicable dependency modes. For instance
12827 # both Tru64's cc and ICC support -MD to output dependencies as a
12828 # side effect of compilation, but ICC will put the dependencies in
12829 # the current directory while Tru64 will put them in the object
12830 # directory.
12831 mkdir sub
12832
12833 am_cv_CC_dependencies_compiler_type=none
12834 if test "$am_compiler_list" = ""; then
12835 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12836 fi
5213506e
RW
12837 am__universal=false
12838 case " $depcc " in #(
12839 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12840 esac
12841
86e44bd7
L
12842 for depmode in $am_compiler_list; do
12843 # Setup a source with many dependencies, because some compilers
12844 # like to wrap large dependency lists on column 80 (with \), and
12845 # we should not choose a depcomp mode which is confused by this.
12846 #
12847 # We need to recreate these files for each test, as the compiler may
12848 # overwrite some of them when testing with obscure command lines.
12849 # This happens at least with the AIX C compiler.
12850 : > sub/conftest.c
12851 for i in 1 2 3 4 5 6; do
12852 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12853 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12854 # Solaris 8's {/usr,}/bin/sh.
12855 touch sub/conftst$i.h
12856 done
12857 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12858
5213506e
RW
12859 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12860 # mode. It turns out that the SunPro C++ compiler does not properly
12861 # handle `-M -o', and we need to detect this. Also, some Intel
12862 # versions had trouble with output in subdirs
12863 am__obj=sub/conftest.${OBJEXT-o}
12864 am__minus_obj="-o $am__obj"
86e44bd7 12865 case $depmode in
5213506e
RW
12866 gcc)
12867 # This depmode causes a compiler race in universal mode.
12868 test "$am__universal" = false || continue
12869 ;;
86e44bd7
L
12870 nosideeffect)
12871 # after this tag, mechanisms are not by side-effect, so they'll
12872 # only be used when explicitly requested
12873 if test "x$enable_dependency_tracking" = xyes; then
12874 continue
12875 else
12876 break
12877 fi
12878 ;;
5213506e
RW
12879 msvisualcpp | msvcmsys)
12880 # This compiler won't grok `-c -o', but also, the minuso test has
12881 # not run yet. These depmodes are late enough in the game, and
12882 # so weak that their functioning should not be impacted.
12883 am__obj=conftest.${OBJEXT-o}
12884 am__minus_obj=
12885 ;;
86e44bd7
L
12886 none) break ;;
12887 esac
86e44bd7 12888 if depmode=$depmode \
5213506e 12889 source=sub/conftest.c object=$am__obj \
86e44bd7 12890 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5213506e 12891 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
86e44bd7 12892 >/dev/null 2>conftest.err &&
5213506e 12893 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
86e44bd7 12894 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5213506e 12895 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
86e44bd7
L
12896 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12897 # icc doesn't choke on unknown options, it will just issue warnings
12898 # or remarks (even with -Werror). So we grep stderr for any message
12899 # that says an option was ignored or not supported.
12900 # When given -MP, icc 7.0 and 7.1 complain thusly:
12901 # icc: Command line warning: ignoring option '-M'; no argument required
12902 # The diagnosis changed in icc 8.0:
12903 # icc: Command line remark: option '-MP' not supported
12904 if (grep 'ignoring option' conftest.err ||
12905 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12906 am_cv_CC_dependencies_compiler_type=$depmode
12907 break
12908 fi
12909 fi
12910 done
12911
12912 cd ..
12913 rm -rf conftest.dir
12914else
12915 am_cv_CC_dependencies_compiler_type=none
12916fi
12917
12918fi
5213506e
RW
12919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12920$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
86e44bd7
L
12921CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12922
5213506e 12923 if
86e44bd7
L
12924 test "x$enable_dependency_tracking" != xno \
12925 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12926 am__fastdepCC_TRUE=
12927 am__fastdepCC_FALSE='#'
12928else
12929 am__fastdepCC_TRUE='#'
12930 am__fastdepCC_FALSE=
12931fi
12932
12933
e1bea0c0 12934if test "x$CC" != xcc; then
5213506e
RW
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
12936$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
e1bea0c0 12937else
5213506e
RW
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
12939$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
e1bea0c0 12940fi
5213506e 12941set dummy $CC; ac_cc=`$as_echo "$2" |
e1bea0c0 12942 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5213506e
RW
12943if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
12944 $as_echo_n "(cached) " >&6
e1bea0c0 12945else
5213506e 12946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e1bea0c0
MK
12947/* end confdefs.h. */
12948
12949int
12950main ()
12951{
12952
12953 ;
12954 return 0;
12955}
12956_ACEOF
12957# Make sure it works both with $CC and with simple cc.
12958# We do the test twice because some compilers refuse to overwrite an
12959# existing .o file with -o, though they will create one.
5213506e
RW
12960ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12961rm -f conftest2.*
12962if { { case "(($ac_try" in
12963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12964 *) ac_try_echo=$ac_try;;
12965esac
12966eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12967$as_echo "$ac_try_echo"; } >&5
12968 (eval "$ac_try") 2>&5
12969 ac_status=$?
12970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12971 test $ac_status = 0; } &&
12972 test -f conftest2.$ac_objext && { { case "(($ac_try" in
12973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12974 *) ac_try_echo=$ac_try;;
12975esac
12976eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12977$as_echo "$ac_try_echo"; } >&5
12978 (eval "$ac_try") 2>&5
e1bea0c0 12979 ac_status=$?
5213506e
RW
12980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12981 test $ac_status = 0; };
e1bea0c0
MK
12982then
12983 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12984 if test "x$CC" != xcc; then
12985 # Test first that cc exists at all.
12986 if { ac_try='cc -c conftest.$ac_ext >&5'
5213506e
RW
12987 { { case "(($ac_try" in
12988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12989 *) ac_try_echo=$ac_try;;
12990esac
12991eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12992$as_echo "$ac_try_echo"; } >&5
12993 (eval "$ac_try") 2>&5
12994 ac_status=$?
12995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12996 test $ac_status = 0; }; }; then
12997 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12998 rm -f conftest2.*
12999 if { { case "(($ac_try" in
13000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13001 *) ac_try_echo=$ac_try;;
13002esac
13003eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13004$as_echo "$ac_try_echo"; } >&5
13005 (eval "$ac_try") 2>&5
13006 ac_status=$?
13007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13008 test $ac_status = 0; } &&
13009 test -f conftest2.$ac_objext && { { case "(($ac_try" in
13010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13011 *) ac_try_echo=$ac_try;;
13012esac
13013eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13014$as_echo "$ac_try_echo"; } >&5
13015 (eval "$ac_try") 2>&5
e1bea0c0 13016 ac_status=$?
5213506e
RW
13017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13018 test $ac_status = 0; };
e1bea0c0
MK
13019 then
13020 # cc works too.
13021 :
13022 else
13023 # cc exists but doesn't like -o.
13024 eval ac_cv_prog_cc_${ac_cc}_c_o=no
13025 fi
13026 fi
13027 fi
13028else
13029 eval ac_cv_prog_cc_${ac_cc}_c_o=no
13030fi
5213506e 13031rm -f core conftest*
e1bea0c0
MK
13032
13033fi
5213506e
RW
13034if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13036$as_echo "yes" >&6; }
e1bea0c0 13037else
5213506e
RW
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13039$as_echo "no" >&6; }
e1bea0c0 13040
5213506e 13041$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
e1bea0c0
MK
13042
13043fi
13044
13045# FIXME: we rely on the cache variable name because
13046# there is no other way.
13047set dummy $CC
5213506e
RW
13048am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
13049eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
13050if test "$am_t" != yes; then
e1bea0c0
MK
13051 # Losing compiler, so override with the script.
13052 # FIXME: It is wrong to rewrite CC.
13053 # But if we don't then we get into trouble of one sort or another.
13054 # A longer-term fix would be to have automake use am__CC in this case,
13055 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13056 CC="$am_aux_dir/compile $CC"
13057fi
13058
5213506e 13059
86e44bd7
L
13060ac_ext=c
13061ac_cpp='$CPP $CPPFLAGS'
13062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13064ac_compiler_gnu=$ac_cv_c_compiler_gnu
5213506e
RW
13065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
13066$as_echo_n "checking how to run the C preprocessor... " >&6; }
86e44bd7
L
13067# On Suns, sometimes $CPP names a directory.
13068if test -n "$CPP" && test -d "$CPP"; then
13069 CPP=
13070fi
13071if test -z "$CPP"; then
5213506e
RW
13072 if test "${ac_cv_prog_CPP+set}" = set; then :
13073 $as_echo_n "(cached) " >&6
86e44bd7
L
13074else
13075 # Double quotes because CPP needs to be expanded
13076 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13077 do
13078 ac_preproc_ok=false
13079for ac_c_preproc_warn_flag in '' yes
13080do
13081 # Use a header file that comes with gcc, so configuring glibc
13082 # with a fresh cross-compiler works.
13083 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13084 # <limits.h> exists even on freestanding compilers.
13085 # On the NeXT, cc -E runs the code through the compiler's parser,
13086 # not just through cpp. "Syntax error" is here to catch this case.
5213506e 13087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86e44bd7
L
13088/* end confdefs.h. */
13089#ifdef __STDC__
13090# include <limits.h>
13091#else
13092# include <assert.h>
13093#endif
13094 Syntax error
13095_ACEOF
5213506e 13096if ac_fn_c_try_cpp "$LINENO"; then :
86e44bd7 13097
5213506e 13098else
86e44bd7
L
13099 # Broken: fails on valid input.
13100continue
43e02a8a
RW
13101fi
13102rm -f conftest.err conftest.$ac_ext
86e44bd7 13103
43e02a8a
RW
13104 # OK, works on sane cases. Now check whether nonexistent headers
13105 # can be detected and how.
13106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13107/* end confdefs.h. */
13108#include <ac_nonexistent.h>
13109_ACEOF
13110if ac_fn_c_try_cpp "$LINENO"; then :
13111 # Broken: success on invalid input.
13112continue
86e44bd7 13113else
43e02a8a
RW
13114 # Passes both tests.
13115ac_preproc_ok=:
13116break
13117fi
13118rm -f conftest.err conftest.$ac_ext
86e44bd7 13119
43e02a8a
RW
13120done
13121# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13122rm -f conftest.err conftest.$ac_ext
13123if $ac_preproc_ok; then :
13124 break
13125fi
5213506e 13126
86e44bd7 13127 done
43e02a8a 13128 ac_cv_prog_CPP=$CPP
86e44bd7 13129
43e02a8a
RW
13130fi
13131 CPP=$ac_cv_prog_CPP
86e44bd7 13132else
43e02a8a 13133 ac_cv_prog_CPP=$CPP
86e44bd7 13134fi
43e02a8a
RW
13135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
13136$as_echo "$CPP" >&6; }
13137ac_preproc_ok=false
13138for ac_c_preproc_warn_flag in '' yes
13139do
13140 # Use a header file that comes with gcc, so configuring glibc
13141 # with a fresh cross-compiler works.
13142 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13143 # <limits.h> exists even on freestanding compilers.
13144 # On the NeXT, cc -E runs the code through the compiler's parser,
13145 # not just through cpp. "Syntax error" is here to catch this case.
13146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13147/* end confdefs.h. */
13148#ifdef __STDC__
13149# include <limits.h>
13150#else
13151# include <assert.h>
13152#endif
13153 Syntax error
13154_ACEOF
13155if ac_fn_c_try_cpp "$LINENO"; then :
86e44bd7 13156
43e02a8a
RW
13157else
13158 # Broken: fails on valid input.
13159continue
86e44bd7 13160fi
43e02a8a 13161rm -f conftest.err conftest.$ac_ext
86e44bd7 13162
43e02a8a
RW
13163 # OK, works on sane cases. Now check whether nonexistent headers
13164 # can be detected and how.
13165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13166/* end confdefs.h. */
13167#include <ac_nonexistent.h>
13168_ACEOF
13169if ac_fn_c_try_cpp "$LINENO"; then :
13170 # Broken: success on invalid input.
13171continue
86e44bd7 13172else
43e02a8a
RW
13173 # Passes both tests.
13174ac_preproc_ok=:
13175break
86e44bd7 13176fi
43e02a8a
RW
13177rm -f conftest.err conftest.$ac_ext
13178
13179done
13180# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13181rm -f conftest.err conftest.$ac_ext
13182if $ac_preproc_ok; then :
86e44bd7 13183
43e02a8a
RW
13184else
13185 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13186$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13187as_fn_error "C preprocessor \"$CPP\" fails sanity check
13188See \`config.log' for more details." "$LINENO" 5; }
13189fi
86e44bd7 13190
43e02a8a
RW
13191ac_ext=c
13192ac_cpp='$CPP $CPPFLAGS'
13193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13195ac_compiler_gnu=$ac_cv_c_compiler_gnu
86e44bd7 13196
5213506e 13197ac_ext=cpp
86e44bd7
L
13198ac_cpp='$CXXCPP $CPPFLAGS'
13199ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13200ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13201ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
13202if test -z "$CXX"; then
13203 if test -n "$CCC"; then
13204 CXX=$CCC
13205 else
13206 if test -n "$ac_tool_prefix"; then
13207 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
86e44bd7
L
13208 do
13209 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13210set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
13211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13212$as_echo_n "checking for $ac_word... " >&6; }
13213if test "${ac_cv_prog_CXX+set}" = set; then :
13214 $as_echo_n "(cached) " >&6
86e44bd7
L
13215else
13216 if test -n "$CXX"; then
13217 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13218else
13219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13220for as_dir in $PATH
13221do
13222 IFS=$as_save_IFS
13223 test -z "$as_dir" && as_dir=.
5213506e
RW
13224 for ac_exec_ext in '' $ac_executable_extensions; do
13225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
86e44bd7 13226 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 13227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
86e44bd7
L
13228 break 2
13229 fi
13230done
5213506e
RW
13231 done
13232IFS=$as_save_IFS
86e44bd7
L
13233
13234fi
13235fi
13236CXX=$ac_cv_prog_CXX
13237if test -n "$CXX"; then
5213506e
RW
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13239$as_echo "$CXX" >&6; }
86e44bd7 13240else
5213506e
RW
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13242$as_echo "no" >&6; }
86e44bd7
L
13243fi
13244
5213506e 13245
86e44bd7
L
13246 test -n "$CXX" && break
13247 done
13248fi
13249if test -z "$CXX"; then
13250 ac_ct_CXX=$CXX
5213506e 13251 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
86e44bd7
L
13252do
13253 # Extract the first word of "$ac_prog", so it can be a program name with args.
13254set dummy $ac_prog; ac_word=$2
5213506e
RW
13255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13256$as_echo_n "checking for $ac_word... " >&6; }
13257if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
13258 $as_echo_n "(cached) " >&6
86e44bd7
L
13259else
13260 if test -n "$ac_ct_CXX"; then
13261 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13262else
13263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13264for as_dir in $PATH
13265do
13266 IFS=$as_save_IFS
13267 test -z "$as_dir" && as_dir=.
5213506e
RW
13268 for ac_exec_ext in '' $ac_executable_extensions; do
13269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
86e44bd7 13270 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 13271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
86e44bd7
L
13272 break 2
13273 fi
13274done
5213506e
RW
13275 done
13276IFS=$as_save_IFS
86e44bd7
L
13277
13278fi
13279fi
13280ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13281if test -n "$ac_ct_CXX"; then
5213506e
RW
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13283$as_echo "$ac_ct_CXX" >&6; }
86e44bd7 13284else
5213506e
RW
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13286$as_echo "no" >&6; }
86e44bd7
L
13287fi
13288
5213506e 13289
86e44bd7
L
13290 test -n "$ac_ct_CXX" && break
13291done
86e44bd7 13292
5213506e
RW
13293 if test "x$ac_ct_CXX" = x; then
13294 CXX="g++"
13295 else
13296 case $cross_compiling:$ac_tool_warned in
13297yes:)
13298{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13299$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13300ac_tool_warned=yes ;;
13301esac
13302 CXX=$ac_ct_CXX
13303 fi
86e44bd7
L
13304fi
13305
5213506e
RW
13306 fi
13307fi
86e44bd7 13308# Provide some information about the compiler.
5213506e
RW
13309$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13310set X $ac_compile
13311ac_compiler=$2
13312for ac_option in --version -v -V -qversion; do
13313 { { ac_try="$ac_compiler $ac_option >&5"
13314case "(($ac_try" in
13315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13316 *) ac_try_echo=$ac_try;;
13317esac
13318eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13319$as_echo "$ac_try_echo"; } >&5
13320 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
86e44bd7 13321 ac_status=$?
5213506e
RW
13322 if test -s conftest.err; then
13323 sed '10a\
13324... rest of stderr output deleted ...
13325 10q' conftest.err >conftest.er1
13326 cat conftest.er1 >&5
13327 rm -f conftest.er1 conftest.err
13328 fi
13329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13330 test $ac_status = 0; }
13331done
86e44bd7 13332
5213506e
RW
13333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13334$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13335if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
13336 $as_echo_n "(cached) " >&6
86e44bd7 13337else
5213506e 13338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86e44bd7
L
13339/* end confdefs.h. */
13340
13341int
13342main ()
13343{
13344#ifndef __GNUC__
13345 choke me
13346#endif
13347
13348 ;
13349 return 0;
13350}
13351_ACEOF
5213506e 13352if ac_fn_cxx_try_compile "$LINENO"; then :
86e44bd7
L
13353 ac_compiler_gnu=yes
13354else
5213506e 13355 ac_compiler_gnu=no
86e44bd7 13356fi
5213506e 13357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
86e44bd7
L
13358ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13359
13360fi
5213506e
RW
13361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13362$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13363if test $ac_compiler_gnu = yes; then
13364 GXX=yes
13365else
13366 GXX=
13367fi
86e44bd7
L
13368ac_test_CXXFLAGS=${CXXFLAGS+set}
13369ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
13370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13371$as_echo_n "checking whether $CXX accepts -g... " >&6; }
13372if test "${ac_cv_prog_cxx_g+set}" = set; then :
13373 $as_echo_n "(cached) " >&6
13374else
13375 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13376 ac_cxx_werror_flag=yes
13377 ac_cv_prog_cxx_g=no
13378 CXXFLAGS="-g"
13379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86e44bd7
L
13380/* end confdefs.h. */
13381
13382int
13383main ()
13384{
13385
13386 ;
13387 return 0;
13388}
13389_ACEOF
5213506e 13390if ac_fn_cxx_try_compile "$LINENO"; then :
86e44bd7
L
13391 ac_cv_prog_cxx_g=yes
13392else
5213506e
RW
13393 CXXFLAGS=""
13394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86e44bd7 13395/* end confdefs.h. */
5213506e 13396
86e44bd7
L
13397int
13398main ()
13399{
5213506e 13400
86e44bd7
L
13401 ;
13402 return 0;
13403}
13404_ACEOF
5213506e 13405if ac_fn_cxx_try_compile "$LINENO"; then :
86e44bd7 13406
5213506e
RW
13407else
13408 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13409 CXXFLAGS="-g"
13410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86e44bd7 13411/* end confdefs.h. */
5213506e 13412
86e44bd7
L
13413int
13414main ()
13415{
5213506e 13416
86e44bd7
L
13417 ;
13418 return 0;
13419}
13420_ACEOF
5213506e
RW
13421if ac_fn_cxx_try_compile "$LINENO"; then :
13422 ac_cv_prog_cxx_g=yes
86e44bd7 13423fi
5213506e
RW
13424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13425fi
13426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13427fi
13428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13429 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13430fi
13431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13432$as_echo "$ac_cv_prog_cxx_g" >&6; }
13433if test "$ac_test_CXXFLAGS" = set; then
13434 CXXFLAGS=$ac_save_CXXFLAGS
13435elif test $ac_cv_prog_cxx_g = yes; then
13436 if test "$GXX" = yes; then
13437 CXXFLAGS="-g -O2"
13438 else
13439 CXXFLAGS="-g"
13440 fi
13441else
13442 if test "$GXX" = yes; then
13443 CXXFLAGS="-O2"
13444 else
13445 CXXFLAGS=
13446 fi
86e44bd7 13447fi
86e44bd7
L
13448ac_ext=c
13449ac_cpp='$CPP $CPPFLAGS'
13450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13452ac_compiler_gnu=$ac_cv_c_compiler_gnu
13453
13454depcc="$CXX" am_compiler_list=
13455
5213506e
RW
13456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13457$as_echo_n "checking dependency style of $depcc... " >&6; }
13458if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
13459 $as_echo_n "(cached) " >&6
86e44bd7
L
13460else
13461 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13462 # We make a subdir and do the tests there. Otherwise we can end up
13463 # making bogus files that we don't know about and never remove. For
13464 # instance it was reported that on HP-UX the gcc test will end up
13465 # making a dummy file named `D' -- because `-MD' means `put the output
13466 # in D'.
13467 mkdir conftest.dir
13468 # Copy depcomp to subdir because otherwise we won't find it if we're
13469 # using a relative directory.
13470 cp "$am_depcomp" conftest.dir
13471 cd conftest.dir
13472 # We will build objects and dependencies in a subdirectory because
13473 # it helps to detect inapplicable dependency modes. For instance
13474 # both Tru64's cc and ICC support -MD to output dependencies as a
13475 # side effect of compilation, but ICC will put the dependencies in
13476 # the current directory while Tru64 will put them in the object
13477 # directory.
13478 mkdir sub
13479
13480 am_cv_CXX_dependencies_compiler_type=none
13481 if test "$am_compiler_list" = ""; then
13482 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13483 fi
5213506e
RW
13484 am__universal=false
13485 case " $depcc " in #(
13486 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13487 esac
13488
86e44bd7
L
13489 for depmode in $am_compiler_list; do
13490 # Setup a source with many dependencies, because some compilers
13491 # like to wrap large dependency lists on column 80 (with \), and
13492 # we should not choose a depcomp mode which is confused by this.
13493 #
13494 # We need to recreate these files for each test, as the compiler may
13495 # overwrite some of them when testing with obscure command lines.
13496 # This happens at least with the AIX C compiler.
13497 : > sub/conftest.c
13498 for i in 1 2 3 4 5 6; do
13499 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13500 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13501 # Solaris 8's {/usr,}/bin/sh.
13502 touch sub/conftst$i.h
13503 done
13504 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13505
5213506e
RW
13506 # We check with `-c' and `-o' for the sake of the "dashmstdout"
13507 # mode. It turns out that the SunPro C++ compiler does not properly
13508 # handle `-M -o', and we need to detect this. Also, some Intel
13509 # versions had trouble with output in subdirs
13510 am__obj=sub/conftest.${OBJEXT-o}
13511 am__minus_obj="-o $am__obj"
86e44bd7 13512 case $depmode in
5213506e
RW
13513 gcc)
13514 # This depmode causes a compiler race in universal mode.
13515 test "$am__universal" = false || continue
13516 ;;
86e44bd7
L
13517 nosideeffect)
13518 # after this tag, mechanisms are not by side-effect, so they'll
13519 # only be used when explicitly requested
13520 if test "x$enable_dependency_tracking" = xyes; then
13521 continue
13522 else
13523 break
13524 fi
13525 ;;
5213506e
RW
13526 msvisualcpp | msvcmsys)
13527 # This compiler won't grok `-c -o', but also, the minuso test has
13528 # not run yet. These depmodes are late enough in the game, and
13529 # so weak that their functioning should not be impacted.
13530 am__obj=conftest.${OBJEXT-o}
13531 am__minus_obj=
13532 ;;
86e44bd7
L
13533 none) break ;;
13534 esac
86e44bd7 13535 if depmode=$depmode \
5213506e 13536 source=sub/conftest.c object=$am__obj \
86e44bd7 13537 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5213506e 13538 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
86e44bd7 13539 >/dev/null 2>conftest.err &&
5213506e 13540 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
86e44bd7 13541 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5213506e 13542 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
86e44bd7
L
13543 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13544 # icc doesn't choke on unknown options, it will just issue warnings
13545 # or remarks (even with -Werror). So we grep stderr for any message
13546 # that says an option was ignored or not supported.
13547 # When given -MP, icc 7.0 and 7.1 complain thusly:
13548 # icc: Command line warning: ignoring option '-M'; no argument required
13549 # The diagnosis changed in icc 8.0:
13550 # icc: Command line remark: option '-MP' not supported
13551 if (grep 'ignoring option' conftest.err ||
13552 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13553 am_cv_CXX_dependencies_compiler_type=$depmode
13554 break
13555 fi
13556 fi
13557 done
13558
13559 cd ..
13560 rm -rf conftest.dir
13561else
13562 am_cv_CXX_dependencies_compiler_type=none
13563fi
13564
13565fi
5213506e
RW
13566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13567$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
86e44bd7
L
13568CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13569
5213506e 13570 if
86e44bd7
L
13571 test "x$enable_dependency_tracking" != xno \
13572 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13573 am__fastdepCXX_TRUE=
13574 am__fastdepCXX_FALSE='#'
13575else
13576 am__fastdepCXX_TRUE='#'
13577 am__fastdepCXX_FALSE=
13578fi
13579
13580
43e02a8a 13581 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
86e44bd7
L
13582 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13583 (test "X$CXX" != "Xg++"))) ; then
5213506e 13584 ac_ext=cpp
86e44bd7
L
13585ac_cpp='$CXXCPP $CPPFLAGS'
13586ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13587ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13588ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
13589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13590$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
86e44bd7 13591if test -z "$CXXCPP"; then
5213506e
RW
13592 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13593 $as_echo_n "(cached) " >&6
86e44bd7
L
13594else
13595 # Double quotes because CXXCPP needs to be expanded
13596 for CXXCPP in "$CXX -E" "/lib/cpp"
13597 do
13598 ac_preproc_ok=false
13599for ac_cxx_preproc_warn_flag in '' yes
13600do
13601 # Use a header file that comes with gcc, so configuring glibc
13602 # with a fresh cross-compiler works.
13603 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13604 # <limits.h> exists even on freestanding compilers.
13605 # On the NeXT, cc -E runs the code through the compiler's parser,
13606 # not just through cpp. "Syntax error" is here to catch this case.
5213506e 13607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86e44bd7
L
13608/* end confdefs.h. */
13609#ifdef __STDC__
13610# include <limits.h>
13611#else
13612# include <assert.h>
13613#endif
13614 Syntax error
13615_ACEOF
5213506e 13616if ac_fn_cxx_try_cpp "$LINENO"; then :
86e44bd7 13617
5213506e 13618else
86e44bd7
L
13619 # Broken: fails on valid input.
13620continue
13621fi
13622rm -f conftest.err conftest.$ac_ext
13623
5213506e 13624 # OK, works on sane cases. Now check whether nonexistent headers
86e44bd7 13625 # can be detected and how.
5213506e 13626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86e44bd7
L
13627/* end confdefs.h. */
13628#include <ac_nonexistent.h>
13629_ACEOF
5213506e 13630if ac_fn_cxx_try_cpp "$LINENO"; then :
86e44bd7
L
13631 # Broken: success on invalid input.
13632continue
13633else
86e44bd7
L
13634 # Passes both tests.
13635ac_preproc_ok=:
13636break
13637fi
13638rm -f conftest.err conftest.$ac_ext
13639
13640done
13641# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13642rm -f conftest.err conftest.$ac_ext
5213506e 13643if $ac_preproc_ok; then :
86e44bd7
L
13644 break
13645fi
13646
13647 done
13648 ac_cv_prog_CXXCPP=$CXXCPP
13649
13650fi
13651 CXXCPP=$ac_cv_prog_CXXCPP
13652else
13653 ac_cv_prog_CXXCPP=$CXXCPP
13654fi
5213506e
RW
13655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13656$as_echo "$CXXCPP" >&6; }
86e44bd7
L
13657ac_preproc_ok=false
13658for ac_cxx_preproc_warn_flag in '' yes
13659do
13660 # Use a header file that comes with gcc, so configuring glibc
13661 # with a fresh cross-compiler works.
13662 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13663 # <limits.h> exists even on freestanding compilers.
13664 # On the NeXT, cc -E runs the code through the compiler's parser,
13665 # not just through cpp. "Syntax error" is here to catch this case.
5213506e 13666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86e44bd7
L
13667/* end confdefs.h. */
13668#ifdef __STDC__
13669# include <limits.h>
13670#else
13671# include <assert.h>
13672#endif
13673 Syntax error
13674_ACEOF
5213506e 13675if ac_fn_cxx_try_cpp "$LINENO"; then :
86e44bd7 13676
5213506e 13677else
86e44bd7
L
13678 # Broken: fails on valid input.
13679continue
13680fi
13681rm -f conftest.err conftest.$ac_ext
13682
5213506e 13683 # OK, works on sane cases. Now check whether nonexistent headers
86e44bd7 13684 # can be detected and how.
5213506e 13685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86e44bd7
L
13686/* end confdefs.h. */
13687#include <ac_nonexistent.h>
13688_ACEOF
5213506e 13689if ac_fn_cxx_try_cpp "$LINENO"; then :
86e44bd7
L
13690 # Broken: success on invalid input.
13691continue
13692else
86e44bd7
L
13693 # Passes both tests.
13694ac_preproc_ok=:
13695break
13696fi
13697rm -f conftest.err conftest.$ac_ext
13698
13699done
13700# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13701rm -f conftest.err conftest.$ac_ext
5213506e
RW
13702if $ac_preproc_ok; then :
13703
86e44bd7 13704else
5213506e
RW
13705 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13706$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
43e02a8a
RW
13707as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
13708See \`config.log' for more details." "$LINENO" 5; }
86e44bd7
L
13709fi
13710
13711ac_ext=c
13712ac_cpp='$CPP $CPPFLAGS'
13713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13715ac_compiler_gnu=$ac_cv_c_compiler_gnu
13716
13717else
13718 _lt_caught_CXX_error=yes
13719fi
13720
5213506e 13721ac_ext=cpp
86e44bd7
L
13722ac_cpp='$CXXCPP $CPPFLAGS'
13723ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13724ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13725ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13726
13727archive_cmds_need_lc_CXX=no
13728allow_undefined_flag_CXX=
13729always_export_symbols_CXX=no
13730archive_expsym_cmds_CXX=
13731compiler_needs_object_CXX=no
13732export_dynamic_flag_spec_CXX=
13733hardcode_direct_CXX=no
13734hardcode_direct_absolute_CXX=no
13735hardcode_libdir_flag_spec_CXX=
13736hardcode_libdir_flag_spec_ld_CXX=
13737hardcode_libdir_separator_CXX=
13738hardcode_minus_L_CXX=no
13739hardcode_shlibpath_var_CXX=unsupported
13740hardcode_automatic_CXX=no
13741inherit_rpath_CXX=no
13742module_cmds_CXX=
13743module_expsym_cmds_CXX=
13744link_all_deplibs_CXX=unknown
13745old_archive_cmds_CXX=$old_archive_cmds
43e02a8a
RW
13746reload_flag_CXX=$reload_flag
13747reload_cmds_CXX=$reload_cmds
86e44bd7
L
13748no_undefined_flag_CXX=
13749whole_archive_flag_spec_CXX=
13750enable_shared_with_static_runtimes_CXX=no
13751
13752# Source file extension for C++ test sources.
13753ac_ext=cpp
13754
13755# Object file extension for compiled C++ test sources.
13756objext=o
13757objext_CXX=$objext
13758
13759# No sense in running all these tests if we already determined that
13760# the CXX compiler isn't working. Some variables (like enable_shared)
13761# are currently assumed to apply to all compilers on this platform,
13762# and will be corrupted by setting them based on a non-working compiler.
13763if test "$_lt_caught_CXX_error" != yes; then
13764 # Code to be used in simple compile tests
13765 lt_simple_compile_test_code="int some_variable = 0;"
13766
13767 # Code to be used in simple link tests
13768 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13769
13770 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13771
13772
13773
13774
13775
13776
13777# If no C compiler was specified, use CC.
13778LTCC=${LTCC-"$CC"}
13779
13780# If no C compiler flags were specified, use CFLAGS.
13781LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13782
13783# Allow CC to be a program name with arguments.
13784compiler=$CC
13785
13786
13787 # save warnings/boilerplate of simple test code
13788 ac_outfile=conftest.$ac_objext
13789echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13790eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13791_lt_compiler_boilerplate=`cat conftest.err`
13792$RM conftest*
13793
13794 ac_outfile=conftest.$ac_objext
13795echo "$lt_simple_link_test_code" >conftest.$ac_ext
13796eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13797_lt_linker_boilerplate=`cat conftest.err`
0da7a284 13798$RM -r conftest*
86e44bd7
L
13799
13800
13801 # Allow CC to be a program name with arguments.
13802 lt_save_CC=$CC
13803 lt_save_LD=$LD
13804 lt_save_GCC=$GCC
13805 GCC=$GXX
13806 lt_save_with_gnu_ld=$with_gnu_ld
13807 lt_save_path_LD=$lt_cv_path_LD
13808 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13809 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13810 else
13811 $as_unset lt_cv_prog_gnu_ld
13812 fi
13813 if test -n "${lt_cv_path_LDCXX+set}"; then
13814 lt_cv_path_LD=$lt_cv_path_LDCXX
13815 else
13816 $as_unset lt_cv_path_LD
13817 fi
13818 test -z "${LDCXX+set}" || LD=$LDCXX
13819 CC=${CXX-"c++"}
13820 compiler=$CC
13821 compiler_CXX=$CC
13822 for cc_temp in $compiler""; do
13823 case $cc_temp in
13824 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13825 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13826 \-*) ;;
13827 *) break;;
13828 esac
13829done
43e02a8a 13830cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
86e44bd7
L
13831
13832
13833 if test -n "$compiler"; then
13834 # We don't want -fno-exception when compiling C++ code, so set the
13835 # no_builtin_flag separately
13836 if test "$GXX" = yes; then
13837 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13838 else
13839 lt_prog_compiler_no_builtin_flag_CXX=
13840 fi
13841
13842 if test "$GXX" = yes; then
13843 # Set up default GNU C++ configuration
13844
13845
13846
5213506e
RW
13847# Check whether --with-gnu-ld was given.
13848if test "${with_gnu_ld+set}" = set; then :
13849 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
86e44bd7
L
13850else
13851 with_gnu_ld=no
5213506e
RW
13852fi
13853
86e44bd7
L
13854ac_prog=ld
13855if test "$GCC" = yes; then
13856 # Check if gcc -print-prog-name=ld gives a path.
5213506e
RW
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13858$as_echo_n "checking for ld used by $CC... " >&6; }
86e44bd7
L
13859 case $host in
13860 *-*-mingw*)
13861 # gcc leaves a trailing carriage return which upsets mingw
13862 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13863 *)
13864 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13865 esac
13866 case $ac_prog in
13867 # Accept absolute paths.
13868 [\\/]* | ?:[\\/]*)
13869 re_direlt='/[^/][^/]*/\.\./'
13870 # Canonicalize the pathname of ld
13871 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13872 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13873 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13874 done
13875 test -z "$LD" && LD="$ac_prog"
13876 ;;
13877 "")
13878 # If it fails, then pretend we aren't using GCC.
13879 ac_prog=ld
13880 ;;
13881 *)
13882 # If it is relative, then search for the first ld in PATH.
13883 with_gnu_ld=unknown
13884 ;;
13885 esac
13886elif test "$with_gnu_ld" = yes; then
5213506e
RW
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13888$as_echo_n "checking for GNU ld... " >&6; }
86e44bd7 13889else
5213506e
RW
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13891$as_echo_n "checking for non-GNU ld... " >&6; }
86e44bd7 13892fi
5213506e
RW
13893if test "${lt_cv_path_LD+set}" = set; then :
13894 $as_echo_n "(cached) " >&6
86e44bd7
L
13895else
13896 if test -z "$LD"; then
13897 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13898 for ac_dir in $PATH; do
13899 IFS="$lt_save_ifs"
13900 test -z "$ac_dir" && ac_dir=.
13901 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13902 lt_cv_path_LD="$ac_dir/$ac_prog"
13903 # Check to see if the program is GNU ld. I'd rather use --version,
13904 # but apparently some variants of GNU ld only accept -v.
13905 # Break only if it was the GNU/non-GNU ld that we prefer.
13906 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13907 *GNU* | *'with BFD'*)
13908 test "$with_gnu_ld" != no && break
13909 ;;
13910 *)
13911 test "$with_gnu_ld" != yes && break
13912 ;;
13913 esac
13914 fi
13915 done
13916 IFS="$lt_save_ifs"
13917else
13918 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13919fi
13920fi
13921
13922LD="$lt_cv_path_LD"
13923if test -n "$LD"; then
5213506e
RW
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13925$as_echo "$LD" >&6; }
86e44bd7 13926else
5213506e
RW
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13928$as_echo "no" >&6; }
86e44bd7 13929fi
5213506e
RW
13930test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
13931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13932$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13933if test "${lt_cv_prog_gnu_ld+set}" = set; then :
13934 $as_echo_n "(cached) " >&6
86e44bd7
L
13935else
13936 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13937case `$LD -v 2>&1 </dev/null` in
13938*GNU* | *'with BFD'*)
13939 lt_cv_prog_gnu_ld=yes
13940 ;;
13941*)
13942 lt_cv_prog_gnu_ld=no
13943 ;;
13944esac
13945fi
5213506e
RW
13946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13947$as_echo "$lt_cv_prog_gnu_ld" >&6; }
86e44bd7
L
13948with_gnu_ld=$lt_cv_prog_gnu_ld
13949
13950
13951
13952
13953
13954
13955
13956 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13957 # archiving commands below assume that GNU ld is being used.
13958 if test "$with_gnu_ld" = yes; then
13959 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13960 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'
13961
13962 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13963 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13964
13965 # If archive_cmds runs LD, not CC, wlarc should be empty
13966 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13967 # investigate it a little bit more. (MM)
13968 wlarc='${wl}'
13969
13970 # ancient GNU ld didn't support --whole-archive et. al.
13971 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13972 $GREP 'no-whole-archive' > /dev/null; then
13973 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13974 else
13975 whole_archive_flag_spec_CXX=
13976 fi
13977 else
13978 with_gnu_ld=no
13979 wlarc=
13980
13981 # A generic and very simple default shared library creation
13982 # command for GNU C++ for the case where it uses the native
13983 # linker, instead of GNU ld. If possible, this setting should
13984 # overridden to take advantage of the native linker features on
13985 # the platform it is being used on.
13986 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13987 fi
13988
13989 # Commands to make compiler produce verbose output that lists
13990 # what "hidden" libraries, object files and flags are used when
13991 # linking a shared library.
43e02a8a 13992 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
86e44bd7
L
13993
13994 else
13995 GXX=no
13996 with_gnu_ld=no
13997 wlarc=
13998 fi
13999
14000 # PORTME: fill in a description of your system's C++ link characteristics
5213506e
RW
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14002$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
86e44bd7
L
14003 ld_shlibs_CXX=yes
14004 case $host_os in
14005 aix3*)
14006 # FIXME: insert proper C++ library support
14007 ld_shlibs_CXX=no
14008 ;;
015cd9b1 14009 aix[4-9]*)
86e44bd7
L
14010 if test "$host_cpu" = ia64; then
14011 # On IA64, the linker does run time linking by default, so we don't
14012 # have to do anything special.
14013 aix_use_runtimelinking=no
14014 exp_sym_flag='-Bexport'
14015 no_entry_flag=""
14016 else
14017 aix_use_runtimelinking=no
14018
14019 # Test if we are trying to use run time linking or normal
14020 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14021 # need to do runtime linking.
015cd9b1 14022 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
86e44bd7
L
14023 for ld_flag in $LDFLAGS; do
14024 case $ld_flag in
14025 *-brtl*)
14026 aix_use_runtimelinking=yes
14027 break
14028 ;;
14029 esac
14030 done
14031 ;;
14032 esac
14033
14034 exp_sym_flag='-bexport'
14035 no_entry_flag='-bnoentry'
14036 fi
14037
14038 # When large executables or shared objects are built, AIX ld can
14039 # have problems creating the table of contents. If linking a library
14040 # or program results in "error TOC overflow" add -mminimal-toc to
14041 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14042 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14043
14044 archive_cmds_CXX=''
14045 hardcode_direct_CXX=yes
14046 hardcode_direct_absolute_CXX=yes
14047 hardcode_libdir_separator_CXX=':'
14048 link_all_deplibs_CXX=yes
14049 file_list_spec_CXX='${wl}-f,'
14050
14051 if test "$GXX" = yes; then
14052 case $host_os in aix4.[012]|aix4.[012].*)
14053 # We only want to do this on AIX 4.2 and lower, the check
14054 # below for broken collect2 doesn't work under 4.3+
14055 collect2name=`${CC} -print-prog-name=collect2`
14056 if test -f "$collect2name" &&
14057 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14058 then
14059 # We have reworked collect2
14060 :
14061 else
14062 # We have old collect2
14063 hardcode_direct_CXX=unsupported
14064 # It fails to find uninstalled libraries when the uninstalled
14065 # path is not listed in the libpath. Setting hardcode_minus_L
14066 # to unsupported forces relinking
14067 hardcode_minus_L_CXX=yes
14068 hardcode_libdir_flag_spec_CXX='-L$libdir'
14069 hardcode_libdir_separator_CXX=
14070 fi
14071 esac
14072 shared_flag='-shared'
14073 if test "$aix_use_runtimelinking" = yes; then
14074 shared_flag="$shared_flag "'${wl}-G'
14075 fi
14076 else
14077 # not using gcc
14078 if test "$host_cpu" = ia64; then
14079 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14080 # chokes on -Wl,-G. The following line is correct:
14081 shared_flag='-G'
14082 else
14083 if test "$aix_use_runtimelinking" = yes; then
14084 shared_flag='${wl}-G'
14085 else
14086 shared_flag='${wl}-bM:SRE'
14087 fi
14088 fi
14089 fi
14090
0da7a284 14091 export_dynamic_flag_spec_CXX='${wl}-bexpall'
86e44bd7
L
14092 # It seems that -bexpall does not export symbols beginning with
14093 # underscore (_), so it is better to generate a list of symbols to
14094 # export.
14095 always_export_symbols_CXX=yes
14096 if test "$aix_use_runtimelinking" = yes; then
14097 # Warning - without using the other runtime loading flags (-brtl),
14098 # -berok will link without error, but may produce a broken library.
14099 allow_undefined_flag_CXX='-berok'
14100 # Determine the default libpath from the value encoded in an empty
14101 # executable.
14102 if test x$gcc_no_link = xyes; then
5213506e 14103 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
86e44bd7 14104fi
5213506e 14105cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86e44bd7
L
14106/* end confdefs.h. */
14107
14108int
14109main ()
14110{
14111
14112 ;
14113 return 0;
14114}
14115_ACEOF
5213506e 14116if ac_fn_cxx_try_link "$LINENO"; then :
86e44bd7
L
14117
14118lt_aix_libpath_sed='
14119 /Import File Strings/,/^$/ {
14120 /^0/ {
14121 s/^0 *\(.*\)$/\1/
14122 p
14123 }
14124 }'
14125aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14126# Check for a 64-bit object if we didn't find anything.
14127if test -z "$aix_libpath"; then
14128 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14129fi
86e44bd7 14130fi
5213506e
RW
14131rm -f core conftest.err conftest.$ac_objext \
14132 conftest$ac_exeext conftest.$ac_ext
86e44bd7
L
14133if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14134
14135 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14136
43e02a8a 14137 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"
86e44bd7
L
14138 else
14139 if test "$host_cpu" = ia64; then
14140 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14141 allow_undefined_flag_CXX="-z nodefs"
14142 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"
14143 else
14144 # Determine the default libpath from the value encoded in an
14145 # empty executable.
14146 if test x$gcc_no_link = xyes; then
5213506e 14147 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
86e44bd7 14148fi
5213506e 14149cat confdefs.h - <<_ACEOF >conftest.$ac_ext
86e44bd7
L
14150/* end confdefs.h. */
14151
14152int
14153main ()
14154{
14155
14156 ;
14157 return 0;
14158}
14159_ACEOF
5213506e 14160if ac_fn_cxx_try_link "$LINENO"; then :
86e44bd7
L
14161
14162lt_aix_libpath_sed='
14163 /Import File Strings/,/^$/ {
14164 /^0/ {
14165 s/^0 *\(.*\)$/\1/
14166 p
14167 }
14168 }'
14169aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14170# Check for a 64-bit object if we didn't find anything.
14171if test -z "$aix_libpath"; then
14172 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14173fi
86e44bd7 14174fi
5213506e
RW
14175rm -f core conftest.err conftest.$ac_objext \
14176 conftest$ac_exeext conftest.$ac_ext
86e44bd7
L
14177if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14178
14179 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14180 # Warning - without using the other run time loading flags,
14181 # -berok will link without error, but may produce a broken library.
14182 no_undefined_flag_CXX=' ${wl}-bernotok'
14183 allow_undefined_flag_CXX=' ${wl}-berok'
43e02a8a
RW
14184 if test "$with_gnu_ld" = yes; then
14185 # We only use this code for GNU lds that support --whole-archive.
14186 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14187 else
14188 # Exported symbols can be pulled into shared objects from archives
14189 whole_archive_flag_spec_CXX='$convenience'
14190 fi
86e44bd7
L
14191 archive_cmds_need_lc_CXX=yes
14192 # This is similar to how AIX traditionally builds its shared
14193 # libraries.
14194 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'
14195 fi
14196 fi
14197 ;;
14198
14199 beos*)
14200 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14201 allow_undefined_flag_CXX=unsupported
14202 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14203 # support --undefined. This deserves some investigation. FIXME
14204 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14205 else
14206 ld_shlibs_CXX=no
14207 fi
14208 ;;
14209
14210 chorus*)
14211 case $cc_basename in
14212 *)
14213 # FIXME: insert proper C++ library support
14214 ld_shlibs_CXX=no
14215 ;;
14216 esac
14217 ;;
14218
0da7a284 14219 cygwin* | mingw* | pw32* | cegcc*)
86e44bd7
L
14220 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14221 # as there is no search path for DLLs.
14222 hardcode_libdir_flag_spec_CXX='-L$libdir'
43e02a8a 14223 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
86e44bd7
L
14224 allow_undefined_flag_CXX=unsupported
14225 always_export_symbols_CXX=no
14226 enable_shared_with_static_runtimes_CXX=yes
14227
14228 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14229 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'
14230 # If the export-symbols file already is a .def file (1st line
14231 # is EXPORTS), use it as is; otherwise, prepend...
14232 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14233 cp $export_symbols $output_objdir/$soname.def;
14234 else
14235 echo EXPORTS > $output_objdir/$soname.def;
14236 cat $export_symbols >> $output_objdir/$soname.def;
14237 fi~
14238 $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'
14239 else
14240 ld_shlibs_CXX=no
14241 fi
14242 ;;
14243 darwin* | rhapsody*)
86e44bd7 14244
86e44bd7 14245
0da7a284
PG
14246 archive_cmds_need_lc_CXX=no
14247 hardcode_direct_CXX=no
14248 hardcode_automatic_CXX=yes
14249 hardcode_shlibpath_var_CXX=unsupported
43e02a8a
RW
14250 if test "$lt_cv_ld_force_load" = "yes"; then
14251 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\"`'
14252 else
14253 whole_archive_flag_spec_CXX=''
14254 fi
0da7a284
PG
14255 link_all_deplibs_CXX=yes
14256 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14257 case $cc_basename in
14258 ifort*) _lt_dar_can_shared=yes ;;
14259 *) _lt_dar_can_shared=$GCC ;;
14260 esac
14261 if test "$_lt_dar_can_shared" = "yes"; then
43e02a8a 14262 output_verbose_link_cmd=func_echo_all
0da7a284
PG
14263 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}"
14264 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14265 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}"
14266 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}"
14267 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14268 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}"
14269 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}"
14270 fi
14271
14272 else
14273 ld_shlibs_CXX=no
14274 fi
14275
86e44bd7
L
14276 ;;
14277
14278 dgux*)
14279 case $cc_basename in
14280 ec++*)
14281 # FIXME: insert proper C++ library support
14282 ld_shlibs_CXX=no
14283 ;;
14284 ghcx*)
14285 # Green Hills C++ Compiler
14286 # FIXME: insert proper C++ library support
14287 ld_shlibs_CXX=no
14288 ;;
14289 *)
14290 # FIXME: insert proper C++ library support
14291 ld_shlibs_CXX=no
14292 ;;
14293 esac
14294 ;;
14295
781c528f 14296 freebsd2.*)
86e44bd7
L
14297 # C++ shared libraries reported to be fairly broken before
14298 # switch to ELF
14299 ld_shlibs_CXX=no
14300 ;;
14301
14302 freebsd-elf*)
14303 archive_cmds_need_lc_CXX=no
14304 ;;
14305
14306 freebsd* | dragonfly*)
14307 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14308 # conventions
14309 ld_shlibs_CXX=yes
14310 ;;
14311
14312 gnu*)
14313 ;;
14314
43e02a8a
RW
14315 haiku*)
14316 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14317 link_all_deplibs_CXX=yes
14318 ;;
14319
86e44bd7
L
14320 hpux9*)
14321 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14322 hardcode_libdir_separator_CXX=:
14323 export_dynamic_flag_spec_CXX='${wl}-E'
14324 hardcode_direct_CXX=yes
14325 hardcode_minus_L_CXX=yes # Not in the search PATH,
14326 # but as the default
14327 # location of the library.
14328
14329 case $cc_basename in
14330 CC*)
14331 # FIXME: insert proper C++ library support
14332 ld_shlibs_CXX=no
14333 ;;
14334 aCC*)
14335 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'
14336 # Commands to make compiler produce verbose output that lists
14337 # what "hidden" libraries, object files and flags are used when
14338 # linking a shared library.
14339 #
14340 # There doesn't appear to be a way to prevent this compiler from
14341 # explicitly linking system object files so we need to strip them
14342 # from the output so that they don't get included in the library
14343 # dependencies.
43e02a8a 14344 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"'
86e44bd7
L
14345 ;;
14346 *)
14347 if test "$GXX" = yes; then
14348 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'
14349 else
14350 # FIXME: insert proper C++ library support
14351 ld_shlibs_CXX=no
14352 fi
14353 ;;
14354 esac
14355 ;;
14356
14357 hpux10*|hpux11*)
14358 if test $with_gnu_ld = no; then
14359 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14360 hardcode_libdir_separator_CXX=:
14361
14362 case $host_cpu in
14363 hppa*64*|ia64*)
14364 ;;
14365 *)
14366 export_dynamic_flag_spec_CXX='${wl}-E'
14367 ;;
14368 esac
14369 fi
14370 case $host_cpu in
14371 hppa*64*|ia64*)
14372 hardcode_direct_CXX=no
14373 hardcode_shlibpath_var_CXX=no
14374 ;;
14375 *)
14376 hardcode_direct_CXX=yes
14377 hardcode_direct_absolute_CXX=yes
14378 hardcode_minus_L_CXX=yes # Not in the search PATH,
14379 # but as the default
14380 # location of the library.
14381 ;;
14382 esac
14383
14384 case $cc_basename in
14385 CC*)
14386 # FIXME: insert proper C++ library support
14387 ld_shlibs_CXX=no
14388 ;;
14389 aCC*)
14390 case $host_cpu in
14391 hppa*64*)
14392 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14393 ;;
14394 ia64*)
14395 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14396 ;;
14397 *)
14398 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14399 ;;
14400 esac
14401 # Commands to make compiler produce verbose output that lists
14402 # what "hidden" libraries, object files and flags are used when
14403 # linking a shared library.
14404 #
14405 # There doesn't appear to be a way to prevent this compiler from
14406 # explicitly linking system object files so we need to strip them
14407 # from the output so that they don't get included in the library
14408 # dependencies.
43e02a8a 14409 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"'
86e44bd7
L
14410 ;;
14411 *)
14412 if test "$GXX" = yes; then
14413 if test $with_gnu_ld = no; then
14414 case $host_cpu in
14415 hppa*64*)
14416 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14417 ;;
14418 ia64*)
14419 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14420 ;;
14421 *)
14422 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'
14423 ;;
14424 esac
14425 fi
14426 else
14427 # FIXME: insert proper C++ library support
14428 ld_shlibs_CXX=no
14429 fi
14430 ;;
14431 esac
14432 ;;
14433
14434 interix[3-9]*)
14435 hardcode_direct_CXX=no
14436 hardcode_shlibpath_var_CXX=no
14437 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14438 export_dynamic_flag_spec_CXX='${wl}-E'
14439 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14440 # Instead, shared libraries are loaded at an image base (0x10000000 by
14441 # default) and relocated if they conflict, which is a slow very memory
14442 # consuming and fragmenting process. To avoid this, we pick a random,
14443 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14444 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14445 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'
14446 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'
14447 ;;
14448 irix5* | irix6*)
14449 case $cc_basename in
14450 CC*)
14451 # SGI C++
43e02a8a 14452 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'
86e44bd7
L
14453
14454 # Archives containing C++ object files must be created using
14455 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14456 # necessary to make sure instantiated templates are included
14457 # in the archive.
14458 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14459 ;;
14460 *)
14461 if test "$GXX" = yes; then
14462 if test "$with_gnu_ld" = no; then
43e02a8a 14463 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'
86e44bd7 14464 else
43e02a8a 14465 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'
86e44bd7
L
14466 fi
14467 fi
14468 link_all_deplibs_CXX=yes
14469 ;;
14470 esac
14471 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14472 hardcode_libdir_separator_CXX=:
14473 inherit_rpath_CXX=yes
14474 ;;
14475
7a9d3fe8 14476 linux* | k*bsd*-gnu | kopensolaris*-gnu)
86e44bd7
L
14477 case $cc_basename in
14478 KCC*)
14479 # Kuck and Associates, Inc. (KAI) C++ Compiler
14480
14481 # KCC will only create a shared library if the output file
14482 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14483 # to its proper name (with version) after linking.
14484 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'
14485 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'
14486 # Commands to make compiler produce verbose output that lists
14487 # what "hidden" libraries, object files and flags are used when
14488 # linking a shared library.
14489 #
14490 # There doesn't appear to be a way to prevent this compiler from
14491 # explicitly linking system object files so we need to strip them
14492 # from the output so that they don't get included in the library
14493 # dependencies.
43e02a8a 14494 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"'
86e44bd7
L
14495
14496 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14497 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14498
14499 # Archives containing C++ object files must be created using
14500 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14501 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14502 ;;
14503 icpc* | ecpc* )
14504 # Intel C++
14505 with_gnu_ld=yes
14506 # version 8.0 and above of icpc choke on multiply defined symbols
14507 # if we add $predep_objects and $postdep_objects, however 7.1 and
14508 # earlier do not add the objects themselves.
14509 case `$CC -V 2>&1` in
14510 *"Version 7."*)
14511 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14512 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'
14513 ;;
14514 *) # Version 8.0 or newer
14515 tmp_idyn=
14516 case $host_cpu in
14517 ia64*) tmp_idyn=' -i_dynamic';;
14518 esac
14519 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14520 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'
14521 ;;
14522 esac
14523 archive_cmds_need_lc_CXX=no
14524 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14525 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14526 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14527 ;;
0da7a284 14528 pgCC* | pgcpp*)
86e44bd7
L
14529 # Portland Group C++ compiler
14530 case `$CC -V` in
43e02a8a 14531 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
86e44bd7
L
14532 prelink_cmds_CXX='tpldir=Template.dir~
14533 rm -rf $tpldir~
14534 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14535 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14536 old_archive_cmds_CXX='tpldir=Template.dir~
14537 rm -rf $tpldir~
14538 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14539 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14540 $RANLIB $oldlib'
14541 archive_cmds_CXX='tpldir=Template.dir~
14542 rm -rf $tpldir~
14543 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14544 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14545 archive_expsym_cmds_CXX='tpldir=Template.dir~
14546 rm -rf $tpldir~
14547 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14548 $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'
14549 ;;
43e02a8a 14550 *) # Version 6 and above use weak symbols
86e44bd7
L
14551 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14552 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'
14553 ;;
14554 esac
14555
14556 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14557 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
43e02a8a 14558 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'
86e44bd7
L
14559 ;;
14560 cxx*)
14561 # Compaq C++
14562 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14563 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'
14564
14565 runpath_var=LD_RUN_PATH
14566 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14567 hardcode_libdir_separator_CXX=:
14568
14569 # Commands to make compiler produce verbose output that lists
14570 # what "hidden" libraries, object files and flags are used when
14571 # linking a shared library.
14572 #
14573 # There doesn't appear to be a way to prevent this compiler from
14574 # explicitly linking system object files so we need to strip them
14575 # from the output so that they don't get included in the library
14576 # dependencies.
43e02a8a 14577 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'
86e44bd7 14578 ;;
43e02a8a 14579 xl* | mpixl* | bgxl*)
0da7a284
PG
14580 # IBM XL 8.0 on PPC, with GNU ld
14581 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14582 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14583 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14584 if test "x$supports_anon_versioning" = xyes; then
14585 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14586 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14587 echo "local: *; };" >> $output_objdir/$libname.ver~
14588 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14589 fi
14590 ;;
86e44bd7
L
14591 *)
14592 case `$CC -V 2>&1 | sed 5q` in
14593 *Sun\ C*)
14594 # Sun C++ 5.9
14595 no_undefined_flag_CXX=' -zdefs'
14596 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14597 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'
14598 hardcode_libdir_flag_spec_CXX='-R$libdir'
43e02a8a 14599 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'
86e44bd7
L
14600 compiler_needs_object_CXX=yes
14601
14602 # Not sure whether something based on
14603 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14604 # would be better.
43e02a8a 14605 output_verbose_link_cmd='func_echo_all'
86e44bd7
L
14606
14607 # Archives containing C++ object files must be created using
14608 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14609 # necessary to make sure instantiated templates are included
14610 # in the archive.
14611 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14612 ;;
14613 esac
14614 ;;
14615 esac
14616 ;;
14617
14618 lynxos*)
14619 # FIXME: insert proper C++ library support
14620 ld_shlibs_CXX=no
14621 ;;
14622
14623 m88k*)
14624 # FIXME: insert proper C++ library support
14625 ld_shlibs_CXX=no
14626 ;;
14627
14628 mvs*)
14629 case $cc_basename in
14630 cxx*)
14631 # FIXME: insert proper C++ library support
14632 ld_shlibs_CXX=no
14633 ;;
14634 *)
14635 # FIXME: insert proper C++ library support
14636 ld_shlibs_CXX=no
14637 ;;
14638 esac
14639 ;;
14640
14641 netbsd*)
14642 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14643 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14644 wlarc=
14645 hardcode_libdir_flag_spec_CXX='-R$libdir'
14646 hardcode_direct_CXX=yes
14647 hardcode_shlibpath_var_CXX=no
14648 fi
14649 # Workaround some broken pre-1.5 toolchains
14650 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14651 ;;
14652
14653 *nto* | *qnx*)
14654 ld_shlibs_CXX=yes
14655 ;;
14656
14657 openbsd2*)
14658 # C++ shared libraries are fairly broken
14659 ld_shlibs_CXX=no
14660 ;;
14661
14662 openbsd*)
0da7a284
PG
14663 if test -f /usr/libexec/ld.so; then
14664 hardcode_direct_CXX=yes
14665 hardcode_shlibpath_var_CXX=no
14666 hardcode_direct_absolute_CXX=yes
14667 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14668 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14669 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14670 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14671 export_dynamic_flag_spec_CXX='${wl}-E'
14672 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14673 fi
43e02a8a 14674 output_verbose_link_cmd=func_echo_all
0da7a284
PG
14675 else
14676 ld_shlibs_CXX=no
86e44bd7 14677 fi
86e44bd7
L
14678 ;;
14679
14680 osf3* | osf4* | osf5*)
14681 case $cc_basename in
14682 KCC*)
14683 # Kuck and Associates, Inc. (KAI) C++ Compiler
14684
14685 # KCC will only create a shared library if the output file
14686 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14687 # to its proper name (with version) after linking.
14688 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'
14689
14690 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14691 hardcode_libdir_separator_CXX=:
14692
14693 # Archives containing C++ object files must be created using
14694 # the KAI C++ compiler.
14695 case $host in
14696 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14697 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14698 esac
14699 ;;
14700 RCC*)
14701 # Rational C++ 2.4.1
14702 # FIXME: insert proper C++ library support
14703 ld_shlibs_CXX=no
14704 ;;
14705 cxx*)
14706 case $host in
14707 osf3*)
14708 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
43e02a8a 14709 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'
86e44bd7
L
14710 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14711 ;;
14712 *)
14713 allow_undefined_flag_CXX=' -expect_unresolved \*'
43e02a8a 14714 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'
86e44bd7
L
14715 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14716 echo "-hidden">> $lib.exp~
43e02a8a 14717 $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~
86e44bd7
L
14718 $RM $lib.exp'
14719 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14720 ;;
14721 esac
14722
14723 hardcode_libdir_separator_CXX=:
14724
14725 # Commands to make compiler produce verbose output that lists
14726 # what "hidden" libraries, object files and flags are used when
14727 # linking a shared library.
14728 #
14729 # There doesn't appear to be a way to prevent this compiler from
14730 # explicitly linking system object files so we need to strip them
14731 # from the output so that they don't get included in the library
14732 # dependencies.
43e02a8a 14733 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"'
86e44bd7
L
14734 ;;
14735 *)
14736 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14737 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14738 case $host in
14739 osf3*)
43e02a8a 14740 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'
86e44bd7
L
14741 ;;
14742 *)
43e02a8a 14743 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'
86e44bd7
L
14744 ;;
14745 esac
14746
14747 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14748 hardcode_libdir_separator_CXX=:
14749
14750 # Commands to make compiler produce verbose output that lists
14751 # what "hidden" libraries, object files and flags are used when
14752 # linking a shared library.
43e02a8a 14753 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
86e44bd7
L
14754
14755 else
14756 # FIXME: insert proper C++ library support
14757 ld_shlibs_CXX=no
14758 fi
14759 ;;
14760 esac
14761 ;;
14762
14763 psos*)
14764 # FIXME: insert proper C++ library support
14765 ld_shlibs_CXX=no
14766 ;;
14767
14768 sunos4*)
14769 case $cc_basename in
14770 CC*)
14771 # Sun C++ 4.x
14772 # FIXME: insert proper C++ library support
14773 ld_shlibs_CXX=no
14774 ;;
14775 lcc*)
14776 # Lucid
14777 # FIXME: insert proper C++ library support
14778 ld_shlibs_CXX=no
14779 ;;
14780 *)
14781 # FIXME: insert proper C++ library support
14782 ld_shlibs_CXX=no
14783 ;;
14784 esac
14785 ;;
14786
14787 solaris*)
14788 case $cc_basename in
14789 CC*)
14790 # Sun C++ 4.2, 5.x and Centerline C++
14791 archive_cmds_need_lc_CXX=yes
14792 no_undefined_flag_CXX=' -zdefs'
14793 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14794 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14795 $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'
14796
14797 hardcode_libdir_flag_spec_CXX='-R$libdir'
14798 hardcode_shlibpath_var_CXX=no
14799 case $host_os in
14800 solaris2.[0-5] | solaris2.[0-5].*) ;;
14801 *)
14802 # The compiler driver will combine and reorder linker options,
14803 # but understands `-z linker_flag'.
14804 # Supported since Solaris 2.6 (maybe 2.5.1?)
14805 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14806 ;;
14807 esac
14808 link_all_deplibs_CXX=yes
14809
43e02a8a 14810 output_verbose_link_cmd='func_echo_all'
86e44bd7
L
14811
14812 # Archives containing C++ object files must be created using
14813 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14814 # necessary to make sure instantiated templates are included
14815 # in the archive.
14816 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14817 ;;
14818 gcx*)
14819 # Green Hills C++ Compiler
14820 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14821
14822 # The C++ compiler must be used to create the archive.
14823 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14824 ;;
14825 *)
14826 # GNU C++ compiler with Solaris linker
14827 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14828 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14829 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14830 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14831 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14832 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14833
14834 # Commands to make compiler produce verbose output that lists
14835 # what "hidden" libraries, object files and flags are used when
14836 # linking a shared library.
43e02a8a 14837 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
86e44bd7
L
14838 else
14839 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14840 # platform.
14841 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14842 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14843 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14844
14845 # Commands to make compiler produce verbose output that lists
14846 # what "hidden" libraries, object files and flags are used when
14847 # linking a shared library.
43e02a8a 14848 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
86e44bd7
L
14849 fi
14850
14851 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14852 case $host_os in
14853 solaris2.[0-5] | solaris2.[0-5].*) ;;
14854 *)
14855 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14856 ;;
14857 esac
14858 fi
14859 ;;
14860 esac
14861 ;;
14862
14863 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14864 no_undefined_flag_CXX='${wl}-z,text'
14865 archive_cmds_need_lc_CXX=no
14866 hardcode_shlibpath_var_CXX=no
14867 runpath_var='LD_RUN_PATH'
14868
14869 case $cc_basename in
14870 CC*)
14871 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14872 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14873 ;;
14874 *)
14875 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14876 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14877 ;;
14878 esac
14879 ;;
14880
14881 sysv5* | sco3.2v5* | sco5v6*)
14882 # Note: We can NOT use -z defs as we might desire, because we do not
14883 # link with -lc, and that would cause any symbols used from libc to
14884 # always be unresolved, which means just about no library would
14885 # ever link correctly. If we're not using GNU ld we use -z text
14886 # though, which does catch some bad symbols but isn't as heavy-handed
14887 # as -z defs.
14888 no_undefined_flag_CXX='${wl}-z,text'
14889 allow_undefined_flag_CXX='${wl}-z,nodefs'
14890 archive_cmds_need_lc_CXX=no
14891 hardcode_shlibpath_var_CXX=no
14892 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14893 hardcode_libdir_separator_CXX=':'
14894 link_all_deplibs_CXX=yes
14895 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14896 runpath_var='LD_RUN_PATH'
14897
14898 case $cc_basename in
14899 CC*)
14900 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14901 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
43e02a8a
RW
14902 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14903 '"$old_archive_cmds_CXX"
14904 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14905 '"$reload_cmds_CXX"
86e44bd7
L
14906 ;;
14907 *)
14908 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14909 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14910 ;;
14911 esac
14912 ;;
14913
14914 tandem*)
14915 case $cc_basename in
14916 NCC*)
14917 # NonStop-UX NCC 3.20
14918 # FIXME: insert proper C++ library support
14919 ld_shlibs_CXX=no
14920 ;;
14921 *)
14922 # FIXME: insert proper C++ library support
14923 ld_shlibs_CXX=no
14924 ;;
14925 esac
14926 ;;
14927
14928 vxworks*)
14929 # FIXME: insert proper C++ library support
14930 ld_shlibs_CXX=no
14931 ;;
14932
14933 *)
14934 # FIXME: insert proper C++ library support
14935 ld_shlibs_CXX=no
14936 ;;
14937 esac
14938
5213506e
RW
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14940$as_echo "$ld_shlibs_CXX" >&6; }
86e44bd7
L
14941 test "$ld_shlibs_CXX" = no && can_build_shared=no
14942
14943 GCC_CXX="$GXX"
14944 LD_CXX="$LD"
14945
14946 ## CAVEAT EMPTOR:
14947 ## There is no encapsulation within the following macros, do not change
14948 ## the running order or otherwise move them around unless you know exactly
14949 ## what you are doing...
14950 # Dependencies to place before and after the object being linked:
14951predep_objects_CXX=
14952postdep_objects_CXX=
14953predeps_CXX=
14954postdeps_CXX=
14955compiler_lib_search_path_CXX=
14956
14957cat > conftest.$ac_ext <<_LT_EOF
14958class Foo
14959{
14960public:
14961 Foo (void) { a = 0; }
14962private:
14963 int a;
14964};
14965_LT_EOF
14966
5213506e 14967if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
86e44bd7
L
14968 (eval $ac_compile) 2>&5
14969 ac_status=$?
5213506e
RW
14970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14971 test $ac_status = 0; }; then
86e44bd7
L
14972 # Parse the compiler output and extract the necessary
14973 # objects, libraries and library flags.
14974
14975 # Sentinel used to keep track of whether or not we are before
14976 # the conftest object file.
14977 pre_test_object_deps_done=no
14978
0da7a284 14979 for p in `eval "$output_verbose_link_cmd"`; do
86e44bd7
L
14980 case $p in
14981
14982 -L* | -R* | -l*)
14983 # Some compilers place space between "-{L,R}" and the path.
14984 # Remove the space.
14985 if test $p = "-L" ||
14986 test $p = "-R"; then
14987 prev=$p
14988 continue
14989 else
14990 prev=
14991 fi
14992
14993 if test "$pre_test_object_deps_done" = no; then
14994 case $p in
14995 -L* | -R*)
14996 # Internal compiler library paths should come after those
14997 # provided the user. The postdeps already come after the
14998 # user supplied libs so there is no need to process them.
14999 if test -z "$compiler_lib_search_path_CXX"; then
15000 compiler_lib_search_path_CXX="${prev}${p}"
15001 else
15002 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15003 fi
15004 ;;
15005 # The "-l" case would never come before the object being
15006 # linked, so don't bother handling this case.
15007 esac
15008 else
15009 if test -z "$postdeps_CXX"; then
15010 postdeps_CXX="${prev}${p}"
15011 else
15012 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15013 fi
15014 fi
15015 ;;
15016
15017 *.$objext)
15018 # This assumes that the test object file only shows up
15019 # once in the compiler output.
15020 if test "$p" = "conftest.$objext"; then
15021 pre_test_object_deps_done=yes
15022 continue
15023 fi
15024
15025 if test "$pre_test_object_deps_done" = no; then
15026 if test -z "$predep_objects_CXX"; then
15027 predep_objects_CXX="$p"
15028 else
15029 predep_objects_CXX="$predep_objects_CXX $p"
15030 fi
15031 else
15032 if test -z "$postdep_objects_CXX"; then
15033 postdep_objects_CXX="$p"
15034 else
15035 postdep_objects_CXX="$postdep_objects_CXX $p"
15036 fi
15037 fi
15038 ;;
15039
15040 *) ;; # Ignore the rest.
15041
15042 esac
15043 done
15044
15045 # Clean up.
15046 rm -f a.out a.exe
15047else
15048 echo "libtool.m4: error: problem compiling CXX test program"
15049fi
15050
15051$RM -f confest.$objext
15052
15053# PORTME: override above test on systems where it is broken
15054case $host_os in
15055interix[3-9]*)
15056 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15057 # hack all around it, let's just trust "g++" to DTRT.
15058 predep_objects_CXX=
15059 postdep_objects_CXX=
15060 postdeps_CXX=
15061 ;;
15062
15063linux*)
15064 case `$CC -V 2>&1 | sed 5q` in
15065 *Sun\ C*)
15066 # Sun C++ 5.9
15067
15068 # The more standards-conforming stlport4 library is
15069 # incompatible with the Cstd library. Avoid specifying
15070 # it if it's in CXXFLAGS. Ignore libCrun as
15071 # -library=stlport4 depends on it.
15072 case " $CXX $CXXFLAGS " in
15073 *" -library=stlport4 "*)
15074 solaris_use_stlport4=yes
15075 ;;
15076 esac
15077
15078 if test "$solaris_use_stlport4" != yes; then
15079 postdeps_CXX='-library=Cstd -library=Crun'
15080 fi
15081 ;;
15082 esac
15083 ;;
15084
15085solaris*)
15086 case $cc_basename in
15087 CC*)
15088 # The more standards-conforming stlport4 library is
15089 # incompatible with the Cstd library. Avoid specifying
15090 # it if it's in CXXFLAGS. Ignore libCrun as
15091 # -library=stlport4 depends on it.
15092 case " $CXX $CXXFLAGS " in
15093 *" -library=stlport4 "*)
15094 solaris_use_stlport4=yes
15095 ;;
15096 esac
15097
15098 # Adding this requires a known-good setup of shared libraries for
15099 # Sun compiler versions before 5.6, else PIC objects from an old
15100 # archive will be linked into the output, leading to subtle bugs.
15101 if test "$solaris_use_stlport4" != yes; then
15102 postdeps_CXX='-library=Cstd -library=Crun'
15103 fi
15104 ;;
15105 esac
15106 ;;
15107esac
15108
15109
15110case " $postdeps_CXX " in
15111*" -lc "*) archive_cmds_need_lc_CXX=no ;;
15112esac
0da7a284
PG
15113 compiler_lib_search_dirs_CXX=
15114if test -n "${compiler_lib_search_path_CXX}"; then
15115 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15116fi
15117
15118
15119
15120
15121
86e44bd7
L
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148 lt_prog_compiler_wl_CXX=
15149lt_prog_compiler_pic_CXX=
15150lt_prog_compiler_static_CXX=
15151
5213506e
RW
15152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15153$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
86e44bd7
L
15154
15155 # C++ specific cases for pic, static, wl, etc.
15156 if test "$GXX" = yes; then
15157 lt_prog_compiler_wl_CXX='-Wl,'
15158 lt_prog_compiler_static_CXX='-static'
15159
15160 case $host_os in
15161 aix*)
15162 # All AIX code is PIC.
15163 if test "$host_cpu" = ia64; then
15164 # AIX 5 now supports IA64 processor
15165 lt_prog_compiler_static_CXX='-Bstatic'
15166 fi
8e6bfa1f 15167 lt_prog_compiler_pic_CXX='-fPIC'
86e44bd7 15168 ;;
0da7a284 15169
86e44bd7 15170 amigaos*)
0da7a284
PG
15171 case $host_cpu in
15172 powerpc)
15173 # see comment about AmigaOS4 .so support
15174 lt_prog_compiler_pic_CXX='-fPIC'
15175 ;;
15176 m68k)
15177 # FIXME: we need at least 68020 code to build shared libraries, but
15178 # adding the `-m68020' flag to GCC prevents building anything better,
15179 # like `-m68040'.
15180 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15181 ;;
15182 esac
86e44bd7 15183 ;;
0da7a284 15184
86e44bd7
L
15185 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15186 # PIC is the default for these OSes.
15187 ;;
0da7a284 15188 mingw* | cygwin* | os2* | pw32* | cegcc*)
86e44bd7
L
15189 # This hack is so that the source file can tell whether it is being
15190 # built for inclusion in a dll (and should export symbols for example).
15191 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15192 # (--disable-auto-import) libraries
15193 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15194 ;;
15195 darwin* | rhapsody*)
15196 # PIC is the default on this platform
15197 # Common symbols not allowed in MH_DYLIB files
15198 lt_prog_compiler_pic_CXX='-fno-common'
15199 ;;
15200 *djgpp*)
15201 # DJGPP does not support shared libraries at all
15202 lt_prog_compiler_pic_CXX=
15203 ;;
43e02a8a
RW
15204 haiku*)
15205 # PIC is the default for Haiku.
15206 # The "-static" flag exists, but is broken.
15207 lt_prog_compiler_static_CXX=
15208 ;;
86e44bd7
L
15209 interix[3-9]*)
15210 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15211 # Instead, we relocate shared libraries at runtime.
15212 ;;
15213 sysv4*MP*)
15214 if test -d /usr/nec; then
15215 lt_prog_compiler_pic_CXX=-Kconform_pic
15216 fi
15217 ;;
15218 hpux*)
0da7a284
PG
15219 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15220 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15221 # sets the default TLS model and affects inlining.
86e44bd7 15222 case $host_cpu in
0da7a284 15223 hppa*64*)
86e44bd7
L
15224 ;;
15225 *)
15226 lt_prog_compiler_pic_CXX='-fPIC'
15227 ;;
15228 esac
15229 ;;
15230 *qnx* | *nto*)
15231 # QNX uses GNU C++, but need to define -shared option too, otherwise
15232 # it will coredump.
15233 lt_prog_compiler_pic_CXX='-fPIC -shared'
15234 ;;
15235 *)
15236 lt_prog_compiler_pic_CXX='-fPIC'
15237 ;;
15238 esac
15239 else
15240 case $host_os in
015cd9b1 15241 aix[4-9]*)
86e44bd7
L
15242 # All AIX code is PIC.
15243 if test "$host_cpu" = ia64; then
15244 # AIX 5 now supports IA64 processor
15245 lt_prog_compiler_static_CXX='-Bstatic'
15246 else
15247 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15248 fi
15249 ;;
15250 chorus*)
15251 case $cc_basename in
15252 cxch68*)
15253 # Green Hills C++ Compiler
15254 # _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"
15255 ;;
15256 esac
15257 ;;
86e44bd7
L
15258 dgux*)
15259 case $cc_basename in
15260 ec++*)
15261 lt_prog_compiler_pic_CXX='-KPIC'
15262 ;;
15263 ghcx*)
15264 # Green Hills C++ Compiler
15265 lt_prog_compiler_pic_CXX='-pic'
15266 ;;
15267 *)
15268 ;;
15269 esac
15270 ;;
15271 freebsd* | dragonfly*)
15272 # FreeBSD uses GNU C++
15273 ;;
15274 hpux9* | hpux10* | hpux11*)
15275 case $cc_basename in
15276 CC*)
15277 lt_prog_compiler_wl_CXX='-Wl,'
15278 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15279 if test "$host_cpu" != ia64; then
15280 lt_prog_compiler_pic_CXX='+Z'
15281 fi
15282 ;;
15283 aCC*)
15284 lt_prog_compiler_wl_CXX='-Wl,'
15285 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15286 case $host_cpu in
15287 hppa*64*|ia64*)
15288 # +Z the default
15289 ;;
15290 *)
15291 lt_prog_compiler_pic_CXX='+Z'
15292 ;;
15293 esac
15294 ;;
15295 *)
15296 ;;
15297 esac
15298 ;;
15299 interix*)
15300 # This is c89, which is MS Visual C++ (no shared libs)
15301 # Anyone wants to do a port?
15302 ;;
15303 irix5* | irix6* | nonstopux*)
15304 case $cc_basename in
15305 CC*)
15306 lt_prog_compiler_wl_CXX='-Wl,'
15307 lt_prog_compiler_static_CXX='-non_shared'
15308 # CC pic flag -KPIC is the default.
15309 ;;
15310 *)
15311 ;;
15312 esac
15313 ;;
7a9d3fe8 15314 linux* | k*bsd*-gnu | kopensolaris*-gnu)
86e44bd7
L
15315 case $cc_basename in
15316 KCC*)
15317 # KAI C++ Compiler
15318 lt_prog_compiler_wl_CXX='--backend -Wl,'
15319 lt_prog_compiler_pic_CXX='-fPIC'
15320 ;;
0da7a284
PG
15321 ecpc* )
15322 # old Intel C++ for x86_64 which still supported -KPIC.
86e44bd7
L
15323 lt_prog_compiler_wl_CXX='-Wl,'
15324 lt_prog_compiler_pic_CXX='-KPIC'
15325 lt_prog_compiler_static_CXX='-static'
15326 ;;
0da7a284
PG
15327 icpc* )
15328 # Intel C++, used to be incompatible with GCC.
15329 # ICC 10 doesn't accept -KPIC any more.
15330 lt_prog_compiler_wl_CXX='-Wl,'
15331 lt_prog_compiler_pic_CXX='-fPIC'
15332 lt_prog_compiler_static_CXX='-static'
15333 ;;
15334 pgCC* | pgcpp*)
86e44bd7
L
15335 # Portland Group C++ compiler
15336 lt_prog_compiler_wl_CXX='-Wl,'
15337 lt_prog_compiler_pic_CXX='-fpic'
15338 lt_prog_compiler_static_CXX='-Bstatic'
15339 ;;
15340 cxx*)
15341 # Compaq C++
15342 # Make sure the PIC flag is empty. It appears that all Alpha
15343 # Linux and Compaq Tru64 Unix objects are PIC.
15344 lt_prog_compiler_pic_CXX=
15345 lt_prog_compiler_static_CXX='-non_shared'
15346 ;;
43e02a8a
RW
15347 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15348 # IBM XL 8.0, 9.0 on PPC and BlueGene
0da7a284
PG
15349 lt_prog_compiler_wl_CXX='-Wl,'
15350 lt_prog_compiler_pic_CXX='-qpic'
15351 lt_prog_compiler_static_CXX='-qstaticlink'
15352 ;;
86e44bd7
L
15353 *)
15354 case `$CC -V 2>&1 | sed 5q` in
15355 *Sun\ C*)
15356 # Sun C++ 5.9
15357 lt_prog_compiler_pic_CXX='-KPIC'
15358 lt_prog_compiler_static_CXX='-Bstatic'
15359 lt_prog_compiler_wl_CXX='-Qoption ld '
15360 ;;
15361 esac
15362 ;;
15363 esac
15364 ;;
15365 lynxos*)
15366 ;;
15367 m88k*)
15368 ;;
15369 mvs*)
15370 case $cc_basename in
15371 cxx*)
15372 lt_prog_compiler_pic_CXX='-W c,exportall'
15373 ;;
15374 *)
15375 ;;
15376 esac
15377 ;;
15378 netbsd*)
15379 ;;
15380 *qnx* | *nto*)
15381 # QNX uses GNU C++, but need to define -shared option too, otherwise
15382 # it will coredump.
15383 lt_prog_compiler_pic_CXX='-fPIC -shared'
15384 ;;
15385 osf3* | osf4* | osf5*)
15386 case $cc_basename in
15387 KCC*)
15388 lt_prog_compiler_wl_CXX='--backend -Wl,'
15389 ;;
15390 RCC*)
15391 # Rational C++ 2.4.1
15392 lt_prog_compiler_pic_CXX='-pic'
15393 ;;
15394 cxx*)
15395 # Digital/Compaq C++
15396 lt_prog_compiler_wl_CXX='-Wl,'
15397 # Make sure the PIC flag is empty. It appears that all Alpha
15398 # Linux and Compaq Tru64 Unix objects are PIC.
15399 lt_prog_compiler_pic_CXX=
15400 lt_prog_compiler_static_CXX='-non_shared'
15401 ;;
15402 *)
15403 ;;
15404 esac
15405 ;;
15406 psos*)
15407 ;;
15408 solaris*)
15409 case $cc_basename in
15410 CC*)
15411 # Sun C++ 4.2, 5.x and Centerline C++
15412 lt_prog_compiler_pic_CXX='-KPIC'
15413 lt_prog_compiler_static_CXX='-Bstatic'
15414 lt_prog_compiler_wl_CXX='-Qoption ld '
15415 ;;
15416 gcx*)
15417 # Green Hills C++ Compiler
15418 lt_prog_compiler_pic_CXX='-PIC'
15419 ;;
15420 *)
15421 ;;
15422 esac
15423 ;;
15424 sunos4*)
15425 case $cc_basename in
15426 CC*)
15427 # Sun C++ 4.x
15428 lt_prog_compiler_pic_CXX='-pic'
15429 lt_prog_compiler_static_CXX='-Bstatic'
15430 ;;
15431 lcc*)
15432 # Lucid
15433 lt_prog_compiler_pic_CXX='-pic'
15434 ;;
15435 *)
15436 ;;
15437 esac
15438 ;;
15439 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15440 case $cc_basename in
15441 CC*)
15442 lt_prog_compiler_wl_CXX='-Wl,'
15443 lt_prog_compiler_pic_CXX='-KPIC'
15444 lt_prog_compiler_static_CXX='-Bstatic'
15445 ;;
15446 esac
15447 ;;
15448 tandem*)
15449 case $cc_basename in
15450 NCC*)
15451 # NonStop-UX NCC 3.20
15452 lt_prog_compiler_pic_CXX='-KPIC'
15453 ;;
15454 *)
15455 ;;
15456 esac
15457 ;;
15458 vxworks*)
15459 ;;
15460 *)
15461 lt_prog_compiler_can_build_shared_CXX=no
15462 ;;
15463 esac
15464 fi
15465
15466case $host_os in
15467 # For platforms which do not support PIC, -DPIC is meaningless:
15468 *djgpp*)
15469 lt_prog_compiler_pic_CXX=
15470 ;;
15471 *)
15472 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15473 ;;
15474esac
5213506e
RW
15475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15476$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
86e44bd7
L
15477
15478
15479
15480#
15481# Check to make sure the PIC flag actually works.
15482#
15483if test -n "$lt_prog_compiler_pic_CXX"; then
5213506e
RW
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15485$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15486if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15487 $as_echo_n "(cached) " >&6
97b8365c 15488else
0da7a284 15489 lt_cv_prog_compiler_pic_works_CXX=no
86e44bd7
L
15490 ac_outfile=conftest.$ac_objext
15491 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15492 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15493 # Insert the option either (1) after the last *FLAGS variable, or
15494 # (2) before a word containing "conftest.", or (3) at the end.
15495 # Note that $ac_compile itself does not contain backslashes and begins
15496 # with a dollar sign (not a hyphen), so the echo should work correctly.
15497 # The option is referenced via a variable to avoid confusing sed.
15498 lt_compile=`echo "$ac_compile" | $SED \
15499 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15500 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15501 -e 's:$: $lt_compiler_flag:'`
43e02a8a 15502 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
86e44bd7
L
15503 (eval "$lt_compile" 2>conftest.err)
15504 ac_status=$?
15505 cat conftest.err >&5
43e02a8a 15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
86e44bd7
L
15507 if (exit $ac_status) && test -s "$ac_outfile"; then
15508 # The compiler can only warn and ignore the option if not recognized
15509 # So say no if there are warnings other than the usual output.
43e02a8a 15510 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
86e44bd7
L
15511 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15512 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
0da7a284 15513 lt_cv_prog_compiler_pic_works_CXX=yes
86e44bd7
L
15514 fi
15515 fi
15516 $RM conftest*
97b8365c 15517
97b8365c 15518fi
5213506e
RW
15519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15520$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
86e44bd7 15521
0da7a284 15522if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
86e44bd7
L
15523 case $lt_prog_compiler_pic_CXX in
15524 "" | " "*) ;;
15525 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15526 esac
15527else
15528 lt_prog_compiler_pic_CXX=
15529 lt_prog_compiler_can_build_shared_CXX=no
97b8365c 15530fi
86e44bd7
L
15531
15532fi
15533
15534
15535
15536#
15537# Check to make sure the static flag actually works.
15538#
15539wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
5213506e
RW
15540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15541$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15542if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15543 $as_echo_n "(cached) " >&6
97b8365c 15544else
0da7a284 15545 lt_cv_prog_compiler_static_works_CXX=no
86e44bd7
L
15546 save_LDFLAGS="$LDFLAGS"
15547 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15548 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15549 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15550 # The linker can only warn and ignore the option if not recognized
15551 # So say no if there are warnings
15552 if test -s conftest.err; then
15553 # Append any errors to the config.log.
15554 cat conftest.err 1>&5
43e02a8a 15555 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
86e44bd7
L
15556 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15557 if diff conftest.exp conftest.er2 >/dev/null; then
0da7a284 15558 lt_cv_prog_compiler_static_works_CXX=yes
86e44bd7
L
15559 fi
15560 else
0da7a284 15561 lt_cv_prog_compiler_static_works_CXX=yes
86e44bd7
L
15562 fi
15563 fi
0da7a284 15564 $RM -r conftest*
86e44bd7
L
15565 LDFLAGS="$save_LDFLAGS"
15566
97b8365c 15567fi
5213506e
RW
15568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15569$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
86e44bd7 15570
0da7a284 15571if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
86e44bd7 15572 :
ea54b293 15573else
86e44bd7
L
15574 lt_prog_compiler_static_CXX=
15575fi
15576
15577
15578
15579
5213506e
RW
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15581$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15582if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15583 $as_echo_n "(cached) " >&6
86e44bd7
L
15584else
15585 lt_cv_prog_compiler_c_o_CXX=no
15586 $RM -r conftest 2>/dev/null
15587 mkdir conftest
15588 cd conftest
15589 mkdir out
15590 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15591
15592 lt_compiler_flag="-o out/conftest2.$ac_objext"
15593 # Insert the option either (1) after the last *FLAGS variable, or
15594 # (2) before a word containing "conftest.", or (3) at the end.
15595 # Note that $ac_compile itself does not contain backslashes and begins
15596 # with a dollar sign (not a hyphen), so the echo should work correctly.
15597 lt_compile=`echo "$ac_compile" | $SED \
15598 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15599 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15600 -e 's:$: $lt_compiler_flag:'`
43e02a8a 15601 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
86e44bd7
L
15602 (eval "$lt_compile" 2>out/conftest.err)
15603 ac_status=$?
15604 cat out/conftest.err >&5
43e02a8a 15605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
86e44bd7
L
15606 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15607 then
15608 # The compiler can only warn and ignore the option if not recognized
15609 # So say no if there are warnings
43e02a8a 15610 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
86e44bd7
L
15611 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15612 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15613 lt_cv_prog_compiler_c_o_CXX=yes
15614 fi
15615 fi
15616 chmod u+w . 2>&5
15617 $RM conftest*
15618 # SGI C++ compiler will create directory out/ii_files/ for
15619 # template instantiation
15620 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15621 $RM out/* && rmdir out
15622 cd ..
15623 $RM -r conftest
15624 $RM conftest*
ea54b293 15625
8c0633b7 15626fi
5213506e
RW
15627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15628$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
86e44bd7
L
15629
15630
15631
5213506e
RW
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15633$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15634if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15635 $as_echo_n "(cached) " >&6
86e44bd7
L
15636else
15637 lt_cv_prog_compiler_c_o_CXX=no
15638 $RM -r conftest 2>/dev/null
15639 mkdir conftest
15640 cd conftest
15641 mkdir out
15642 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15643
15644 lt_compiler_flag="-o out/conftest2.$ac_objext"
15645 # Insert the option either (1) after the last *FLAGS variable, or
15646 # (2) before a word containing "conftest.", or (3) at the end.
15647 # Note that $ac_compile itself does not contain backslashes and begins
15648 # with a dollar sign (not a hyphen), so the echo should work correctly.
15649 lt_compile=`echo "$ac_compile" | $SED \
15650 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15651 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15652 -e 's:$: $lt_compiler_flag:'`
43e02a8a 15653 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
86e44bd7
L
15654 (eval "$lt_compile" 2>out/conftest.err)
15655 ac_status=$?
15656 cat out/conftest.err >&5
43e02a8a 15657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
86e44bd7
L
15658 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15659 then
15660 # The compiler can only warn and ignore the option if not recognized
15661 # So say no if there are warnings
43e02a8a 15662 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
86e44bd7
L
15663 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15664 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15665 lt_cv_prog_compiler_c_o_CXX=yes
15666 fi
15667 fi
15668 chmod u+w . 2>&5
15669 $RM conftest*
15670 # SGI C++ compiler will create directory out/ii_files/ for
15671 # template instantiation
15672 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15673 $RM out/* && rmdir out
15674 cd ..
15675 $RM -r conftest
15676 $RM conftest*
15677
15678fi
5213506e
RW
15679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15680$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
86e44bd7
L
15681
15682
15683
15684
15685hard_links="nottested"
15686if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15687 # do not overwrite the value of need_locks provided by the user
5213506e
RW
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15689$as_echo_n "checking if we can lock with hard links... " >&6; }
86e44bd7
L
15690 hard_links=yes
15691 $RM conftest*
15692 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15693 touch conftest.a
15694 ln conftest.a conftest.b 2>&5 || hard_links=no
15695 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5213506e
RW
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15697$as_echo "$hard_links" >&6; }
86e44bd7 15698 if test "$hard_links" = no; then
5213506e
RW
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15700$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
86e44bd7
L
15701 need_locks=warn
15702 fi
15703else
15704 need_locks=no
15705fi
15706
15707
15708
5213506e
RW
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15710$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
86e44bd7
L
15711
15712 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15713 case $host_os in
015cd9b1 15714 aix[4-9]*)
86e44bd7
L
15715 # If we're using GNU nm, then we don't want the "-C" option.
15716 # -C means demangle to AIX nm, but means don't demangle with GNU nm
43e02a8a
RW
15717 # Also, AIX nm treats weak defined symbols like other global defined
15718 # symbols, whereas GNU nm marks them as "W".
86e44bd7 15719 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
43e02a8a 15720 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'
86e44bd7
L
15721 else
15722 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'
15723 fi
15724 ;;
15725 pw32*)
15726 export_symbols_cmds_CXX="$ltdll_cmds"
15727 ;;
0da7a284 15728 cygwin* | mingw* | cegcc*)
86e44bd7
L
15729 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'
15730 ;;
15731 *)
15732 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15733 ;;
15734 esac
0da7a284 15735 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
86e44bd7 15736
5213506e
RW
15737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15738$as_echo "$ld_shlibs_CXX" >&6; }
86e44bd7
L
15739test "$ld_shlibs_CXX" = no && can_build_shared=no
15740
15741with_gnu_ld_CXX=$with_gnu_ld
15742
15743
15744
15745
15746
15747
15748#
15749# Do we need to explicitly link libc?
15750#
15751case "x$archive_cmds_need_lc_CXX" in
15752x|xyes)
15753 # Assume -lc should be added
15754 archive_cmds_need_lc_CXX=yes
15755
15756 if test "$enable_shared" = yes && test "$GCC" = yes; then
15757 case $archive_cmds_CXX in
15758 *'~'*)
15759 # FIXME: we may have to deal with multi-command sequences.
15760 ;;
15761 '$CC '*)
15762 # Test whether the compiler implicitly links with -lc since on some
15763 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15764 # to ld, don't add -lc before -lgcc.
5213506e
RW
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15766$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15767if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
15768 $as_echo_n "(cached) " >&6
baafc534
RW
15769else
15770 $RM conftest*
15771 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
86e44bd7 15772
5213506e 15773 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
86e44bd7 15774 (eval $ac_compile) 2>&5
ea54b293 15775 ac_status=$?
5213506e
RW
15776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15777 test $ac_status = 0; } 2>conftest.err; then
baafc534
RW
15778 soname=conftest
15779 lib=conftest
15780 libobjs=conftest.$ac_objext
15781 deplibs=
15782 wl=$lt_prog_compiler_wl_CXX
15783 pic_flag=$lt_prog_compiler_pic_CXX
15784 compiler_flags=-v
15785 linker_flags=-v
15786 verstring=
15787 output_objdir=.
15788 libname=conftest
15789 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15790 allow_undefined_flag_CXX=
5213506e 15791 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
86e44bd7 15792 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
ea54b293 15793 ac_status=$?
5213506e
RW
15794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15795 test $ac_status = 0; }
baafc534
RW
15796 then
15797 lt_cv_archive_cmds_need_lc_CXX=no
15798 else
15799 lt_cv_archive_cmds_need_lc_CXX=yes
15800 fi
15801 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15802 else
15803 cat conftest.err 1>&5
15804 fi
15805 $RM conftest*
15806
15807fi
5213506e
RW
15808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15809$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
baafc534 15810 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
86e44bd7
L
15811 ;;
15812 esac
15813 fi
15814 ;;
15815esac
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
ea54b293 15871
4f9533c7 15872
ea54b293 15873
ea54b293 15874
ea54b293 15875
ea54b293 15876
86e44bd7
L
15877
15878
15879
5213506e
RW
15880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15881$as_echo_n "checking dynamic linker characteristics... " >&6; }
0da7a284 15882
86e44bd7
L
15883library_names_spec=
15884libname_spec='lib$name'
15885soname_spec=
15886shrext_cmds=".so"
15887postinstall_cmds=
15888postuninstall_cmds=
15889finish_cmds=
15890finish_eval=
15891shlibpath_var=
15892shlibpath_overrides_runpath=unknown
15893version_type=none
15894dynamic_linker="$host_os ld.so"
15895sys_lib_dlsearch_path_spec="/lib /usr/lib"
15896need_lib_prefix=unknown
15897hardcode_into_libs=no
15898
15899# when you set need_version to no, make sure it does not cause -set_version
15900# flags to be left without arguments
15901need_version=unknown
15902
15903case $host_os in
15904aix3*)
15905 version_type=linux
15906 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15907 shlibpath_var=LIBPATH
15908
15909 # AIX 3 has no versioning support, so we append a major version to the name.
15910 soname_spec='${libname}${release}${shared_ext}$major'
15911 ;;
15912
015cd9b1 15913aix[4-9]*)
86e44bd7
L
15914 version_type=linux
15915 need_lib_prefix=no
15916 need_version=no
15917 hardcode_into_libs=yes
15918 if test "$host_cpu" = ia64; then
15919 # AIX 5 supports IA64
15920 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15921 shlibpath_var=LD_LIBRARY_PATH
15922 else
15923 # With GCC up to 2.95.x, collect2 would create an import file
15924 # for dependence libraries. The import file would start with
15925 # the line `#! .'. This would cause the generated library to
15926 # depend on `.', always an invalid library. This was fixed in
15927 # development snapshots of GCC prior to 3.0.
15928 case $host_os in
15929 aix4 | aix4.[01] | aix4.[01].*)
15930 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15931 echo ' yes '
15932 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15933 :
ea54b293 15934 else
86e44bd7 15935 can_build_shared=no
ea54b293
TT
15936 fi
15937 ;;
ea54b293 15938 esac
86e44bd7
L
15939 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15940 # soname into executable. Probably we can add versioning support to
15941 # collect2, so additional links can be useful in future.
15942 if test "$aix_use_runtimelinking" = yes; then
15943 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15944 # instead of lib<name>.a to let people know that these are not
15945 # typical AIX shared libraries.
15946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15947 else
15948 # We preserve .a as extension for shared libraries through AIX4.2
15949 # and later when we are not doing run time linking.
15950 library_names_spec='${libname}${release}.a $libname.a'
15951 soname_spec='${libname}${release}${shared_ext}$major'
ea54b293 15952 fi
86e44bd7
L
15953 shlibpath_var=LIBPATH
15954 fi
15955 ;;
ea54b293 15956
86e44bd7 15957amigaos*)
0da7a284
PG
15958 case $host_cpu in
15959 powerpc)
15960 # Since July 2007 AmigaOS4 officially supports .so libraries.
15961 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15963 ;;
15964 m68k)
86e44bd7
L
15965 library_names_spec='$libname.ixlibrary $libname.a'
15966 # Create ${libname}_ixlibrary.a entries in /sys/libs.
43e02a8a 15967 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'
0da7a284
PG
15968 ;;
15969 esac
86e44bd7 15970 ;;
ea54b293 15971
86e44bd7
L
15972beos*)
15973 library_names_spec='${libname}${shared_ext}'
15974 dynamic_linker="$host_os ld.so"
15975 shlibpath_var=LIBRARY_PATH
15976 ;;
ea54b293 15977
86e44bd7
L
15978bsdi[45]*)
15979 version_type=linux
15980 need_version=no
15981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15982 soname_spec='${libname}${release}${shared_ext}$major'
15983 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15984 shlibpath_var=LD_LIBRARY_PATH
15985 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15986 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15987 # the default ld.so.conf also contains /usr/contrib/lib and
15988 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15989 # libtool to hard-code these into programs
15990 ;;
ea54b293 15991
0da7a284 15992cygwin* | mingw* | pw32* | cegcc*)
86e44bd7
L
15993 version_type=windows
15994 shrext_cmds=".dll"
15995 need_version=no
15996 need_lib_prefix=no
15997
0da7a284
PG
15998 case $GCC,$host_os in
15999 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
86e44bd7
L
16000 library_names_spec='$libname.dll.a'
16001 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16002 postinstall_cmds='base_file=`basename \${file}`~
16003 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16004 dldir=$destdir/`dirname \$dlpath`~
16005 test -d \$dldir || mkdir -p \$dldir~
16006 $install_prog $dir/$dlname \$dldir/$dlname~
16007 chmod a+x \$dldir/$dlname~
16008 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16009 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16010 fi'
16011 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16012 dlpath=$dir/\$dldll~
16013 $RM \$dlpath'
16014 shlibpath_overrides_runpath=yes
16015
16016 case $host_os in
16017 cygwin*)
16018 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16019 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
43e02a8a 16020
86e44bd7 16021 ;;
0da7a284 16022 mingw* | cegcc*)
86e44bd7
L
16023 # MinGW DLLs use traditional 'lib' prefix
16024 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
86e44bd7
L
16025 ;;
16026 pw32*)
16027 # pw32 DLLs use 'pw' prefix rather than 'lib'
16028 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16029 ;;
16030 esac
16031 ;;
ea54b293 16032
86e44bd7
L
16033 *)
16034 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16035 ;;
16036 esac
16037 dynamic_linker='Win32 ld.exe'
16038 # FIXME: first we should search . and the directory the executable is in
16039 shlibpath_var=PATH
16040 ;;
ea54b293 16041
86e44bd7
L
16042darwin* | rhapsody*)
16043 dynamic_linker="$host_os dyld"
16044 version_type=darwin
16045 need_lib_prefix=no
16046 need_version=no
16047 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16048 soname_spec='${libname}${release}${major}$shared_ext'
16049 shlibpath_overrides_runpath=yes
16050 shlibpath_var=DYLD_LIBRARY_PATH
16051 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16052
16053 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16054 ;;
ea54b293 16055
86e44bd7
L
16056dgux*)
16057 version_type=linux
16058 need_lib_prefix=no
16059 need_version=no
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=LD_LIBRARY_PATH
16063 ;;
ea54b293 16064
86e44bd7
L
16065freebsd* | dragonfly*)
16066 # DragonFly does not have aout. When/if they implement a new
16067 # versioning mechanism, adjust this.
16068 if test -x /usr/bin/objformat; then
16069 objformat=`/usr/bin/objformat`
ea54b293 16070 else
86e44bd7 16071 case $host_os in
781c528f 16072 freebsd[23].*) objformat=aout ;;
86e44bd7
L
16073 *) objformat=elf ;;
16074 esac
ea54b293 16075 fi
86e44bd7
L
16076 version_type=freebsd-$objformat
16077 case $version_type in
16078 freebsd-elf*)
16079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16080 need_version=no
16081 need_lib_prefix=no
16082 ;;
16083 freebsd-*)
16084 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16085 need_version=yes
16086 ;;
16087 esac
16088 shlibpath_var=LD_LIBRARY_PATH
16089 case $host_os in
781c528f 16090 freebsd2.*)
86e44bd7
L
16091 shlibpath_overrides_runpath=yes
16092 ;;
16093 freebsd3.[01]* | freebsdelf3.[01]*)
16094 shlibpath_overrides_runpath=yes
16095 hardcode_into_libs=yes
16096 ;;
16097 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16098 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16099 shlibpath_overrides_runpath=no
16100 hardcode_into_libs=yes
16101 ;;
16102 *) # from 4.6 on, and DragonFly
16103 shlibpath_overrides_runpath=yes
16104 hardcode_into_libs=yes
16105 ;;
16106 esac
16107 ;;
ea54b293 16108
86e44bd7
L
16109gnu*)
16110 version_type=linux
16111 need_lib_prefix=no
16112 need_version=no
16113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16114 soname_spec='${libname}${release}${shared_ext}$major'
16115 shlibpath_var=LD_LIBRARY_PATH
16116 hardcode_into_libs=yes
16117 ;;
16118
43e02a8a
RW
16119haiku*)
16120 version_type=linux
16121 need_lib_prefix=no
16122 need_version=no
16123 dynamic_linker="$host_os runtime_loader"
16124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16125 soname_spec='${libname}${release}${shared_ext}$major'
16126 shlibpath_var=LIBRARY_PATH
16127 shlibpath_overrides_runpath=yes
16128 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16129 hardcode_into_libs=yes
16130 ;;
16131
86e44bd7
L
16132hpux9* | hpux10* | hpux11*)
16133 # Give a soname corresponding to the major version so that dld.sl refuses to
16134 # link against other versions.
16135 version_type=sunos
16136 need_lib_prefix=no
16137 need_version=no
16138 case $host_cpu in
16139 ia64*)
16140 shrext_cmds='.so'
16141 hardcode_into_libs=yes
16142 dynamic_linker="$host_os dld.so"
16143 shlibpath_var=LD_LIBRARY_PATH
16144 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16146 soname_spec='${libname}${release}${shared_ext}$major'
16147 if test "X$HPUX_IA64_MODE" = X32; then
16148 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16149 else
16150 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16151 fi
16152 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16153 ;;
16154 hppa*64*)
16155 shrext_cmds='.sl'
16156 hardcode_into_libs=yes
16157 dynamic_linker="$host_os dld.sl"
16158 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16159 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16161 soname_spec='${libname}${release}${shared_ext}$major'
16162 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16163 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16164 ;;
16165 *)
16166 shrext_cmds='.sl'
16167 dynamic_linker="$host_os dld.sl"
16168 shlibpath_var=SHLIB_PATH
16169 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16171 soname_spec='${libname}${release}${shared_ext}$major'
16172 ;;
16173 esac
43e02a8a 16174 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
86e44bd7 16175 postinstall_cmds='chmod 555 $lib'
43e02a8a
RW
16176 # or fails outright, so override atomically:
16177 install_override_mode=555
86e44bd7 16178 ;;
ea54b293 16179
86e44bd7
L
16180interix[3-9]*)
16181 version_type=linux
16182 need_lib_prefix=no
16183 need_version=no
16184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16185 soname_spec='${libname}${release}${shared_ext}$major'
16186 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16187 shlibpath_var=LD_LIBRARY_PATH
16188 shlibpath_overrides_runpath=no
16189 hardcode_into_libs=yes
16190 ;;
ea54b293 16191
86e44bd7
L
16192irix5* | irix6* | nonstopux*)
16193 case $host_os in
16194 nonstopux*) version_type=nonstopux ;;
16195 *)
16196 if test "$lt_cv_prog_gnu_ld" = yes; then
16197 version_type=linux
16198 else
16199 version_type=irix
16200 fi ;;
16201 esac
16202 need_lib_prefix=no
16203 need_version=no
16204 soname_spec='${libname}${release}${shared_ext}$major'
16205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16206 case $host_os in
16207 irix5* | nonstopux*)
16208 libsuff= shlibsuff=
16209 ;;
16210 *)
16211 case $LD in # libtool.m4 will add one of these switches to LD
16212 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16213 libsuff= shlibsuff= libmagic=32-bit;;
16214 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16215 libsuff=32 shlibsuff=N32 libmagic=N32;;
16216 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16217 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16218 *) libsuff= shlibsuff= libmagic=never-match;;
16219 esac
16220 ;;
16221 esac
16222 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16223 shlibpath_overrides_runpath=no
16224 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16225 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16226 hardcode_into_libs=yes
16227 ;;
ea54b293 16228
86e44bd7
L
16229# No shared lib support for Linux oldld, aout, or coff.
16230linux*oldld* | linux*aout* | linux*coff*)
16231 dynamic_linker=no
16232 ;;
16233
16234# This must be Linux ELF.
7a9d3fe8 16235linux* | k*bsd*-gnu | kopensolaris*-gnu)
86e44bd7
L
16236 version_type=linux
16237 need_lib_prefix=no
16238 need_version=no
16239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16240 soname_spec='${libname}${release}${shared_ext}$major'
16241 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16242 shlibpath_var=LD_LIBRARY_PATH
16243 shlibpath_overrides_runpath=no
baafc534 16244
86e44bd7 16245 # Some binutils ld are patched to set DT_RUNPATH
5213506e
RW
16246 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16247 $as_echo_n "(cached) " >&6
baafc534
RW
16248else
16249 lt_cv_shlibpath_overrides_runpath=no
16250 save_LDFLAGS=$LDFLAGS
16251 save_libdir=$libdir
16252 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16253 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16254 if test x$gcc_no_link = xyes; then
5213506e 16255 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
ea54b293 16256fi
5213506e 16257cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ea54b293 16258/* end confdefs.h. */
86e44bd7
L
16259
16260int
16261main ()
16262{
16263
16264 ;
16265 return 0;
16266}
ea54b293 16267_ACEOF
5213506e
RW
16268if ac_fn_cxx_try_link "$LINENO"; then :
16269 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
baafc534 16270 lt_cv_shlibpath_overrides_runpath=yes
ea54b293 16271fi
5213506e
RW
16272fi
16273rm -f core conftest.err conftest.$ac_objext \
16274 conftest$ac_exeext conftest.$ac_ext
16275 LDFLAGS=$save_LDFLAGS
16276 libdir=$save_libdir
baafc534
RW
16277
16278fi
16279
16280 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
86e44bd7
L
16281
16282 # This implies no fast_install, which is unacceptable.
16283 # Some rework will be needed to allow for fast_install
16284 # before this can be enabled.
16285 hardcode_into_libs=yes
16286
16287 # Append ld.so.conf contents to the search path
16288 if test -f /etc/ld.so.conf; then
43e02a8a 16289 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' ' '`
86e44bd7
L
16290 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16291 fi
ea54b293 16292
86e44bd7
L
16293 # We used to test for /lib/ld.so.1 and disable shared libraries on
16294 # powerpc, because MkLinux only supported shared libraries with the
16295 # GNU dynamic linker. Since this was broken with cross compilers,
16296 # most powerpc-linux boxes support dynamic linking these days and
16297 # people can always --disable-shared, the test was removed, and we
16298 # assume the GNU/Linux dynamic linker is in use.
16299 dynamic_linker='GNU/Linux ld.so'
16300 ;;
16301
16302netbsd*)
16303 version_type=sunos
16304 need_lib_prefix=no
16305 need_version=no
16306 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16308 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16309 dynamic_linker='NetBSD (a.out) ld.so'
ea54b293 16310 else
86e44bd7
L
16311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16312 soname_spec='${libname}${release}${shared_ext}$major'
16313 dynamic_linker='NetBSD ld.elf_so'
ea54b293 16314 fi
86e44bd7
L
16315 shlibpath_var=LD_LIBRARY_PATH
16316 shlibpath_overrides_runpath=yes
16317 hardcode_into_libs=yes
16318 ;;
ea54b293 16319
86e44bd7
L
16320newsos6)
16321 version_type=linux
16322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16323 shlibpath_var=LD_LIBRARY_PATH
16324 shlibpath_overrides_runpath=yes
16325 ;;
16326
16327*nto* | *qnx*)
16328 version_type=qnx
16329 need_lib_prefix=no
16330 need_version=no
16331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16332 soname_spec='${libname}${release}${shared_ext}$major'
16333 shlibpath_var=LD_LIBRARY_PATH
16334 shlibpath_overrides_runpath=no
16335 hardcode_into_libs=yes
16336 dynamic_linker='ldqnx.so'
16337 ;;
16338
16339openbsd*)
16340 version_type=sunos
16341 sys_lib_dlsearch_path_spec="/usr/lib"
16342 need_lib_prefix=no
16343 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16344 case $host_os in
16345 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16346 *) need_version=no ;;
16347 esac
16348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16349 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16350 shlibpath_var=LD_LIBRARY_PATH
16351 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16352 case $host_os in
16353 openbsd2.[89] | openbsd2.[89].*)
16354 shlibpath_overrides_runpath=no
16355 ;;
16356 *)
16357 shlibpath_overrides_runpath=yes
16358 ;;
16359 esac
16360 else
16361 shlibpath_overrides_runpath=yes
16362 fi
16363 ;;
16364
16365os2*)
16366 libname_spec='$name'
16367 shrext_cmds=".dll"
16368 need_lib_prefix=no
16369 library_names_spec='$libname${shared_ext} $libname.a'
16370 dynamic_linker='OS/2 ld.exe'
16371 shlibpath_var=LIBPATH
16372 ;;
16373
16374osf3* | osf4* | osf5*)
16375 version_type=osf
16376 need_lib_prefix=no
16377 need_version=no
16378 soname_spec='${libname}${release}${shared_ext}$major'
16379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16380 shlibpath_var=LD_LIBRARY_PATH
16381 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16382 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16383 ;;
16384
16385rdos*)
16386 dynamic_linker=no
16387 ;;
16388
16389solaris*)
16390 version_type=linux
16391 need_lib_prefix=no
16392 need_version=no
16393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16394 soname_spec='${libname}${release}${shared_ext}$major'
16395 shlibpath_var=LD_LIBRARY_PATH
16396 shlibpath_overrides_runpath=yes
16397 hardcode_into_libs=yes
16398 # ldd complains unless libraries are executable
16399 postinstall_cmds='chmod +x $lib'
16400 ;;
16401
16402sunos4*)
16403 version_type=sunos
16404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16405 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16406 shlibpath_var=LD_LIBRARY_PATH
16407 shlibpath_overrides_runpath=yes
16408 if test "$with_gnu_ld" = yes; then
16409 need_lib_prefix=no
16410 fi
16411 need_version=yes
16412 ;;
16413
16414sysv4 | sysv4.3*)
16415 version_type=linux
16416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16417 soname_spec='${libname}${release}${shared_ext}$major'
16418 shlibpath_var=LD_LIBRARY_PATH
16419 case $host_vendor in
16420 sni)
16421 shlibpath_overrides_runpath=no
16422 need_lib_prefix=no
16423 runpath_var=LD_RUN_PATH
16424 ;;
16425 siemens)
16426 need_lib_prefix=no
16427 ;;
16428 motorola)
16429 need_lib_prefix=no
16430 need_version=no
16431 shlibpath_overrides_runpath=no
16432 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16433 ;;
16434 esac
16435 ;;
16436
16437sysv4*MP*)
16438 if test -d /usr/nec ;then
16439 version_type=linux
16440 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16441 soname_spec='$libname${shared_ext}.$major'
16442 shlibpath_var=LD_LIBRARY_PATH
16443 fi
16444 ;;
16445
16446sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16447 version_type=freebsd-elf
16448 need_lib_prefix=no
16449 need_version=no
16450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16451 soname_spec='${libname}${release}${shared_ext}$major'
16452 shlibpath_var=LD_LIBRARY_PATH
16453 shlibpath_overrides_runpath=yes
16454 hardcode_into_libs=yes
16455 if test "$with_gnu_ld" = yes; then
16456 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16457 else
16458 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16459 case $host_os in
16460 sco3.2v5*)
16461 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16462 ;;
16463 esac
16464 fi
16465 sys_lib_dlsearch_path_spec='/usr/lib'
16466 ;;
16467
16468tpf*)
16469 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16470 version_type=linux
16471 need_lib_prefix=no
16472 need_version=no
0da7a284 16473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
86e44bd7
L
16474 shlibpath_var=LD_LIBRARY_PATH
16475 shlibpath_overrides_runpath=no
16476 hardcode_into_libs=yes
16477 ;;
16478
16479uts4*)
16480 version_type=linux
16481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16482 soname_spec='${libname}${release}${shared_ext}$major'
16483 shlibpath_var=LD_LIBRARY_PATH
16484 ;;
16485
16486*)
16487 dynamic_linker=no
16488 ;;
16489esac
5213506e
RW
16490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16491$as_echo "$dynamic_linker" >&6; }
86e44bd7
L
16492test "$dynamic_linker" = no && can_build_shared=no
16493
16494variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16495if test "$GCC" = yes; then
16496 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
ea54b293 16497fi
ea54b293 16498
0da7a284
PG
16499if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16500 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16501fi
16502if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16503 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16504fi
16505
86e44bd7
L
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
43e02a8a
RW
16538
16539
86e44bd7
L
16540
16541
16542
5213506e
RW
16543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16544$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
86e44bd7
L
16545hardcode_action_CXX=
16546if test -n "$hardcode_libdir_flag_spec_CXX" ||
16547 test -n "$runpath_var_CXX" ||
16548 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16549
16550 # We can hardcode non-existent directories.
16551 if test "$hardcode_direct_CXX" != no &&
16552 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16553 # have to relink, otherwise we might link with an installed library
16554 # when we should be linking with a yet-to-be-installed one
16555 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16556 test "$hardcode_minus_L_CXX" != no; then
16557 # Linking always hardcodes the temporary library directory.
16558 hardcode_action_CXX=relink
16559 else
16560 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16561 hardcode_action_CXX=immediate
16562 fi
ea54b293 16563else
86e44bd7
L
16564 # We cannot hardcode anything, or else we can only hardcode existing
16565 # directories.
16566 hardcode_action_CXX=unsupported
ea54b293 16567fi
5213506e
RW
16568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16569$as_echo "$hardcode_action_CXX" >&6; }
86e44bd7
L
16570
16571if test "$hardcode_action_CXX" = relink ||
16572 test "$inherit_rpath_CXX" = yes; then
16573 # Fast installation is not supported
16574 enable_fast_install=no
16575elif test "$shlibpath_overrides_runpath" = yes ||
16576 test "$enable_shared" = no; then
16577 # Fast installation is not necessary
16578 enable_fast_install=needless
16579fi
16580
16581
ea54b293 16582
97b8365c
TT
16583
16584
16585
97b8365c 16586
86e44bd7 16587 fi # test -n "$compiler"
97b8365c 16588
86e44bd7
L
16589 CC=$lt_save_CC
16590 LDCXX=$LD
16591 LD=$lt_save_LD
16592 GCC=$lt_save_GCC
16593 with_gnu_ld=$lt_save_with_gnu_ld
16594 lt_cv_path_LDCXX=$lt_cv_path_LD
16595 lt_cv_path_LD=$lt_save_path_LD
16596 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16597 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16598fi # test "$_lt_caught_CXX_error" != yes
16599
16600ac_ext=c
16601ac_cpp='$CPP $CPPFLAGS'
16602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16604ac_compiler_gnu=$ac_cv_c_compiler_gnu
97b8365c
TT
16605
16606
ea54b293 16607
97b8365c
TT
16608# Handle -Werror default case.
16609if test "$ENABLE_WERROR" = default; then
16610 case "$host_os" in
16611 *linux*)
16612 if test "$GCC" = yes; then
16613 ENABLE_WERROR=yes
16614 fi
16615 ;;
16616 esac
16617fi
ea54b293 16618
8aa540d2
MW
16619if test "x${COMPILE_COLLECTIONS}" = xyes; then
16620 # Extract the first word of "perl", so it can be a program name with args.
16621set dummy perl; ac_word=$2
5213506e
RW
16622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16623$as_echo_n "checking for $ac_word... " >&6; }
16624if test "${ac_cv_path_PERL+set}" = set; then :
16625 $as_echo_n "(cached) " >&6
8aa540d2
MW
16626else
16627 case $PERL in
16628 [\\/]* | ?:[\\/]*)
16629 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
16630 ;;
16631 *)
16632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16633for as_dir in $PATH
16634do
16635 IFS=$as_save_IFS
16636 test -z "$as_dir" && as_dir=.
5213506e
RW
16637 for ac_exec_ext in '' $ac_executable_extensions; do
16638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8aa540d2 16639 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5213506e 16640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8aa540d2
MW
16641 break 2
16642 fi
16643done
5213506e
RW
16644 done
16645IFS=$as_save_IFS
8aa540d2
MW
16646
16647 ;;
16648esac
16649fi
16650PERL=$ac_cv_path_PERL
8aa540d2 16651if test -n "$PERL"; then
5213506e
RW
16652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
16653$as_echo "$PERL" >&6; }
8aa540d2 16654else
5213506e
RW
16655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16656$as_echo "no" >&6; }
8aa540d2
MW
16657fi
16658
16659
16660
8aa540d2 16661
5213506e
RW
16662 ac_config_files="$ac_config_files lib/mkcollections.pl"
16663
16664 ac_config_commands="$ac_config_commands mkcollections.pl"
8aa540d2
MW
16665
16666fi
16667
ea54b293 16668if test "x${COMPILE_JNI}" = xyes; then
97b8365c
TT
16669
16670
16671
5213506e
RW
16672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __attribute__((,,))" >&5
16673$as_echo_n "checking __attribute__((,,))... " >&6; }
16674 if test "${gcc_cv_c_gcc_attribute_supported+set}" = set; then :
16675 $as_echo_n "(cached) " >&6
97b8365c
TT
16676else
16677
5213506e 16678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
97b8365c
TT
16679/* end confdefs.h. */
16680
16681int
16682main ()
16683{
16684extern int testfunction(int x) __attribute__((,,))
16685 ;
16686 return 0;
16687}
16688_ACEOF
5213506e 16689if ac_fn_c_try_compile "$LINENO"; then :
015cd9b1 16690 gcc_cv_c_gcc_attribute_supported=yes
97b8365c 16691else
5213506e 16692 gcc_cv_c_gcc_attribute_supported=no
97b8365c 16693fi
5213506e 16694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
97b8365c
TT
16695
16696fi
16697
015cd9b1 16698 if test "x$gcc_cv_c_gcc_attribute_supported" = xyes; then
97b8365c 16699 true
5213506e
RW
16700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16701$as_echo "yes" >&6; }
97b8365c 16702
5213506e 16703$as_echo "#define HAVE_GNUC25_ATTRIB /**/" >>confdefs.h
97b8365c
TT
16704
16705
16706 else
16707 true
5213506e
RW
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16709$as_echo "no" >&6; }
97b8365c
TT
16710
16711 fi
16712
16713
16714
16715
16716
16717
16718
16719
16720
5213506e
RW
16721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __attribute__((unused))" >&5
16722$as_echo_n "checking __attribute__((unused))... " >&6; }
16723 if test "${gcc_cv_c_gcc_attribute_unused+set}" = set; then :
16724 $as_echo_n "(cached) " >&6
97b8365c
TT
16725else
16726
5213506e 16727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
97b8365c
TT
16728/* end confdefs.h. */
16729
16730int
16731main ()
16732{
16733extern int testfunction(int x) __attribute__((unused))
16734 ;
16735 return 0;
16736}
16737_ACEOF
5213506e 16738if ac_fn_c_try_compile "$LINENO"; then :
015cd9b1 16739 gcc_cv_c_gcc_attribute_unused=yes
97b8365c 16740else
5213506e 16741 gcc_cv_c_gcc_attribute_unused=no
97b8365c 16742fi
5213506e 16743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
97b8365c
TT
16744
16745fi
16746
015cd9b1 16747 if test "x$gcc_cv_c_gcc_attribute_unused" = xyes; then
97b8365c 16748 true
5213506e
RW
16749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16750$as_echo "yes" >&6; }
97b8365c 16751
5213506e 16752$as_echo "#define HAVE_GNUC25_UNUSED /**/" >>confdefs.h
97b8365c
TT
16753
16754
16755 else
16756 true
5213506e
RW
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16758$as_echo "no" >&6; }
97b8365c
TT
16759
16760 fi
16761
16762
16763
16764
16765
5213506e
RW
16766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16767$as_echo_n "checking for ANSI C header files... " >&6; }
16768if test "${ac_cv_header_stdc+set}" = set; then :
16769 $as_echo_n "(cached) " >&6
ea54b293 16770else
5213506e 16771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ea54b293
TT
16772/* end confdefs.h. */
16773#include <stdlib.h>
16774#include <stdarg.h>
16775#include <string.h>
16776#include <float.h>
16777
16778int
16779main ()
16780{
16781
16782 ;
16783 return 0;
16784}
16785_ACEOF
5213506e 16786if ac_fn_c_try_compile "$LINENO"; then :
ea54b293
TT
16787 ac_cv_header_stdc=yes
16788else
5213506e 16789 ac_cv_header_stdc=no
ea54b293 16790fi
5213506e 16791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ea54b293
TT
16792
16793if test $ac_cv_header_stdc = yes; then
16794 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5213506e 16795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ea54b293
TT
16796/* end confdefs.h. */
16797#include <string.h>
16798
16799_ACEOF
16800if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
16801 $EGREP "memchr" >/dev/null 2>&1; then :
16802
ea54b293
TT
16803else
16804 ac_cv_header_stdc=no
16805fi
16806rm -f conftest*
16807
16808fi
16809
16810if test $ac_cv_header_stdc = yes; then
16811 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5213506e 16812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ea54b293
TT
16813/* end confdefs.h. */
16814#include <stdlib.h>
16815
16816_ACEOF
16817if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e
RW
16818 $EGREP "free" >/dev/null 2>&1; then :
16819
ea54b293
TT
16820else
16821 ac_cv_header_stdc=no
16822fi
16823rm -f conftest*
16824
16825fi
16826
16827if test $ac_cv_header_stdc = yes; then
16828 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5213506e 16829 if test "$cross_compiling" = yes; then :
ea54b293
TT
16830 :
16831else
5213506e 16832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ea54b293
TT
16833/* end confdefs.h. */
16834#include <ctype.h>
5213506e 16835#include <stdlib.h>
ea54b293
TT
16836#if ((' ' & 0x0FF) == 0x020)
16837# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16838# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16839#else
16840# define ISLOWER(c) \
16841 (('a' <= (c) && (c) <= 'i') \
16842 || ('j' <= (c) && (c) <= 'r') \
16843 || ('s' <= (c) && (c) <= 'z'))
16844# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16845#endif
16846
16847#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16848int
16849main ()
16850{
16851 int i;
16852 for (i = 0; i < 256; i++)
16853 if (XOR (islower (i), ISLOWER (i))
16854 || toupper (i) != TOUPPER (i))
5213506e
RW
16855 return 2;
16856 return 0;
ea54b293
TT
16857}
16858_ACEOF
5213506e 16859if ac_fn_c_try_run "$LINENO"; then :
ea54b293 16860
5213506e
RW
16861else
16862 ac_cv_header_stdc=no
ea54b293 16863fi
5213506e
RW
16864rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16865 conftest.$ac_objext conftest.beam conftest.$ac_ext
ea54b293 16866fi
5213506e 16867
ea54b293
TT
16868fi
16869fi
5213506e
RW
16870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16871$as_echo "$ac_cv_header_stdc" >&6; }
ea54b293
TT
16872if test $ac_cv_header_stdc = yes; then
16873
5213506e 16874$as_echo "#define STDC_HEADERS 1" >>confdefs.h
ea54b293
TT
16875
16876fi
16877
16878
5213506e
RW
16879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16880$as_echo_n "checking size of void *... " >&6; }
16881if test "${ac_cv_sizeof_void_p+set}" = set; then :
16882 $as_echo_n "(cached) " >&6
ea54b293
TT
16883else
16884 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
5213506e 16885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ea54b293
TT
16886/* end confdefs.h. */
16887#include "confdefs.h"
16888#include <sys/types.h>
16889
16890
16891int
16892main ()
16893{
16894switch (0) case 0: case (sizeof (void *) == $ac_size):;
16895 ;
16896 return 0;
16897}
16898_ACEOF
5213506e 16899if ac_fn_c_try_compile "$LINENO"; then :
ea54b293 16900 ac_cv_sizeof_void_p=$ac_size
ea54b293 16901fi
5213506e 16902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ea54b293
TT
16903 if test x$ac_cv_sizeof_void_p != x ; then break; fi
16904done
16905
16906fi
16907
16908if test x$ac_cv_sizeof_void_p = x ; then
5213506e 16909 as_fn_error "cannot determine a size for void *" "$LINENO" 5
ea54b293 16910fi
5213506e
RW
16911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16912$as_echo "$ac_cv_sizeof_void_p" >&6; }
ea54b293
TT
16913
16914cat >>confdefs.h <<_ACEOF
16915#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16916_ACEOF
16917
16918
16919
5213506e
RW
16920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16921$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16922if test "${ac_cv_c_bigendian+set}" = set; then :
16923 $as_echo_n "(cached) " >&6
ea54b293
TT
16924else
16925 ac_cv_c_bigendian=unknown
16926# See if sys/param.h defines the BYTE_ORDER macro.
5213506e 16927cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ea54b293
TT
16928/* end confdefs.h. */
16929#include <sys/types.h>
16930#include <sys/param.h>
16931int
16932main ()
16933{
16934
16935#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16936 bogus endian macros
16937#endif
16938 ;
16939 return 0;
16940}
16941_ACEOF
5213506e 16942if ac_fn_c_try_compile "$LINENO"; then :
ea54b293 16943 # It does; now see whether it defined to BIG_ENDIAN or not.
5213506e 16944cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ea54b293
TT
16945/* end confdefs.h. */
16946#include <sys/types.h>
16947#include <sys/param.h>
16948int
16949main ()
16950{
16951
16952#if BYTE_ORDER != BIG_ENDIAN
16953 not big endian
16954#endif
16955 ;
16956 return 0;
16957}
16958_ACEOF
5213506e 16959if ac_fn_c_try_compile "$LINENO"; then :
ea54b293
TT
16960 ac_cv_c_bigendian=yes
16961else
5213506e 16962 ac_cv_c_bigendian=no
ea54b293 16963fi
5213506e 16964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ea54b293 16965fi
5213506e 16966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ea54b293 16967if test $ac_cv_c_bigendian = unknown; then
5213506e 16968if test "$cross_compiling" = yes; then :
ea54b293
TT
16969 echo $ac_n "cross-compiling... " 2>&6
16970else
5213506e 16971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ea54b293
TT
16972/* end confdefs.h. */
16973main () {
16974 /* Are we little or big endian? From Harbison&Steele. */
16975 union
16976 {
16977 long l;
16978 char c[sizeof (long)];
16979 } u;
16980 u.l = 1;
16981 exit (u.c[sizeof (long) - 1] == 1);
16982}
16983_ACEOF
5213506e 16984if ac_fn_c_try_run "$LINENO"; then :
ea54b293
TT
16985 ac_cv_c_bigendian=no
16986else
5213506e 16987 ac_cv_c_bigendian=yes
ea54b293 16988fi
5213506e
RW
16989rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16990 conftest.$ac_objext conftest.beam conftest.$ac_ext
ea54b293 16991fi
5213506e 16992
ea54b293
TT
16993fi
16994fi
5213506e
RW
16995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16996$as_echo "$ac_cv_c_bigendian" >&6; }
ea54b293 16997if test $ac_cv_c_bigendian = unknown; then
5213506e
RW
16998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to probe for byte ordering" >&5
16999$as_echo_n "checking to probe for byte ordering... " >&6; }
ea54b293
TT
17000
17001cat >conftest.c <<EOF
17002short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17003short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17004void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
17005short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17006short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17007void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
17008int main() { _ascii (); _ebcdic (); return 0; }
17009EOF
17010 if test -f conftest.c ; then
17011 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
17012 if test `grep -l BIGenDianSyS conftest.o` ; then
17013 echo $ac_n ' big endian probe OK, ' 1>&6
17014 ac_cv_c_bigendian=yes
17015 fi
17016 if test `grep -l LiTTleEnDian conftest.o` ; then
17017 echo $ac_n ' little endian probe OK, ' 1>&6
17018 if test $ac_cv_c_bigendian = yes ; then
17019 ac_cv_c_bigendian=unknown;
17020 else
17021 ac_cv_c_bigendian=no
17022 fi
17023 fi
17024 echo $ac_n 'guessing bigendian ... ' >&6
17025 fi
8f523f3a 17026 fi
5213506e
RW
17027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17028$as_echo "$ac_cv_c_bigendian" >&6; }
8f523f3a
MW
17029fi
17030if test $ac_cv_c_bigendian = yes; then
17031
5213506e 17032$as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
ea54b293 17033
8f523f3a 17034
5213506e 17035$as_echo "#define HOST_WORDS_BIG_ENDIAN 1" >>confdefs.h
ea54b293 17036
8f523f3a
MW
17037 BYTEORDER=4321
17038else
17039 BYTEORDER=1234
ea54b293 17040fi
8f523f3a
MW
17041
17042cat >>confdefs.h <<_ACEOF
17043#define BYTEORDER $BYTEORDER
ea54b293
TT
17044_ACEOF
17045
8f523f3a 17046if test $ac_cv_c_bigendian = unknown; then
5213506e 17047 as_fn_error "unknown endianess - sorry, please pre-set ac_cv_c_bigendian" "$LINENO" 5
ea54b293
TT
17048fi
17049
ea54b293 17050
5213506e 17051 for ac_header in unistd.h sys/types.h sys/config.h sys/ioctl.h \
ea54b293
TT
17052 asm/ioctls.h \
17053 inttypes.h stdint.h utime.h sys/utime.h sys/filio.h \
17054 sys/time.h \
17055 sys/select.h \
17056 crt_externs.h \
1ea63ef8 17057 fcntl.h \
02440ca4 17058 sys/mman.h \
97b8365c
TT
17059 magic.h \
17060 sys/event.h sys/epoll.h \
e0441a5b
MK
17061 ifaddrs.h \
17062 netinet/in_systm.h netinet/ip.h net/if.h \
cd6d4007 17063 sys/loadavg.h sys/sockio.h
5213506e
RW
17064do :
17065 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17066ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17067eval as_val=\$$as_ac_Header
17068 if test "x$as_val" = x""yes; then :
ea54b293 17069 cat >>confdefs.h <<_ACEOF
5213506e 17070#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ea54b293
TT
17071_ACEOF
17072
17073fi
17074
17075done
17076
17077
5213506e 17078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ea54b293
TT
17079/* end confdefs.h. */
17080#include <stdint.h>
17081
17082_ACEOF
17083if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e 17084 $EGREP "uint32_t" >/dev/null 2>&1; then :
ea54b293 17085
5213506e 17086$as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
ea54b293
TT
17087
17088fi
17089rm -f conftest*
17090
5213506e 17091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ea54b293
TT
17092/* end confdefs.h. */
17093#include <inttypes.h>
17094
17095_ACEOF
17096if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e 17097 $EGREP "uint32_t" >/dev/null 2>&1; then :
ea54b293 17098
5213506e 17099$as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
ea54b293
TT
17100
17101fi
17102rm -f conftest*
17103
5213506e 17104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ea54b293
TT
17105/* end confdefs.h. */
17106#include <sys/types.h>
17107
17108_ACEOF
17109if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e 17110 $EGREP "u_int32_t" >/dev/null 2>&1; then :
ea54b293 17111
5213506e 17112$as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
ea54b293
TT
17113
17114fi
17115rm -f conftest*
17116
5213506e 17117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ea54b293
TT
17118/* end confdefs.h. */
17119#include <sys/config.h>
17120
17121_ACEOF
17122if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213506e 17123 $EGREP "u_int32_t" >/dev/null 2>&1; then :
ea54b293 17124
5213506e 17125$as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
ea54b293
TT
17126
17127fi
17128rm -f conftest*
17129
17130
0563022a
AJH
17131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
17132$as_echo_n "checking for library containing clock_gettime... " >&6; }
17133if test "${ac_cv_search_clock_gettime+set}" = set; then :
17134 $as_echo_n "(cached) " >&6
17135else
17136 ac_func_search_save_LIBS=$LIBS
17137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17138/* end confdefs.h. */
17139
17140/* Override any GCC internal prototype to avoid an error.
17141 Use char because int might match the return type of a GCC
17142 builtin and then its argument prototype would still apply. */
17143#ifdef __cplusplus
17144extern "C"
17145#endif
17146char clock_gettime ();
17147int
17148main ()
17149{
17150return clock_gettime ();
17151 ;
17152 return 0;
17153}
17154_ACEOF
17155for ac_lib in '' rt; do
17156 if test -z "$ac_lib"; then
17157 ac_res="none required"
17158 else
17159 ac_res=-l$ac_lib
17160 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17161 fi
17162 if test x$gcc_no_link = xyes; then
17163 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17164fi
17165if ac_fn_c_try_link "$LINENO"; then :
17166 ac_cv_search_clock_gettime=$ac_res
17167fi
17168rm -f core conftest.err conftest.$ac_objext \
17169 conftest$ac_exeext
17170 if test "${ac_cv_search_clock_gettime+set}" = set; then :
17171 break
17172fi
17173done
17174if test "${ac_cv_search_clock_gettime+set}" = set; then :
17175
17176else
17177 ac_cv_search_clock_gettime=no
17178fi
17179rm conftest.$ac_ext
17180LIBS=$ac_func_search_save_LIBS
17181fi
17182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
17183$as_echo "$ac_cv_search_clock_gettime" >&6; }
17184ac_res=$ac_cv_search_clock_gettime
17185if test "$ac_res" != no; then :
17186 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17187
17188fi
17189
5213506e
RW
17190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
17191$as_echo_n "checking for library containing inet_pton... " >&6; }
17192if test "${ac_cv_search_inet_pton+set}" = set; then :
17193 $as_echo_n "(cached) " >&6
f06a83c0
MK
17194else
17195 ac_func_search_save_LIBS=$LIBS
5213506e 17196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f06a83c0
MK
17197/* end confdefs.h. */
17198
5213506e
RW
17199/* Override any GCC internal prototype to avoid an error.
17200 Use char because int might match the return type of a GCC
17201 builtin and then its argument prototype would still apply. */
f06a83c0
MK
17202#ifdef __cplusplus
17203extern "C"
17204#endif
f06a83c0
MK
17205char inet_pton ();
17206int
17207main ()
17208{
5213506e 17209return inet_pton ();
f06a83c0
MK
17210 ;
17211 return 0;
17212}
17213_ACEOF
5213506e
RW
17214for ac_lib in '' nsl; do
17215 if test -z "$ac_lib"; then
17216 ac_res="none required"
17217 else
17218 ac_res=-l$ac_lib
f06a83c0 17219 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5213506e
RW
17220 fi
17221 if test x$gcc_no_link = xyes; then
17222 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
f06a83c0 17223fi
5213506e
RW
17224if ac_fn_c_try_link "$LINENO"; then :
17225 ac_cv_search_inet_pton=$ac_res
17226fi
17227rm -f core conftest.err conftest.$ac_objext \
17228 conftest$ac_exeext
17229 if test "${ac_cv_search_inet_pton+set}" = set; then :
17230 break
17231fi
17232done
17233if test "${ac_cv_search_inet_pton+set}" = set; then :
f06a83c0 17234
f06a83c0 17235else
5213506e 17236 ac_cv_search_inet_pton=no
f06a83c0 17237fi
5213506e 17238rm conftest.$ac_ext
f06a83c0
MK
17239LIBS=$ac_func_search_save_LIBS
17240fi
5213506e
RW
17241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
17242$as_echo "$ac_cv_search_inet_pton" >&6; }
17243ac_res=$ac_cv_search_inet_pton
17244if test "$ac_res" != no; then :
17245 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
f06a83c0
MK
17246
17247fi
17248
5213506e
RW
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lsocket" >&5
17250$as_echo_n "checking for gethostname in -lsocket... " >&6; }
17251if test "${ac_cv_lib_socket_gethostname+set}" = set; then :
17252 $as_echo_n "(cached) " >&6
cd6d4007
MK
17253else
17254 ac_check_lib_save_LIBS=$LIBS
17255LIBS="-lsocket $LIBS"
17256if test x$gcc_no_link = xyes; then
5213506e 17257 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
cd6d4007 17258fi
5213506e 17259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cd6d4007
MK
17260/* end confdefs.h. */
17261
5213506e
RW
17262/* Override any GCC internal prototype to avoid an error.
17263 Use char because int might match the return type of a GCC
17264 builtin and then its argument prototype would still apply. */
cd6d4007
MK
17265#ifdef __cplusplus
17266extern "C"
17267#endif
cd6d4007
MK
17268char gethostname ();
17269int
17270main ()
17271{
5213506e 17272return gethostname ();
cd6d4007
MK
17273 ;
17274 return 0;
17275}
17276_ACEOF
5213506e 17277if ac_fn_c_try_link "$LINENO"; then :
cd6d4007
MK
17278 ac_cv_lib_socket_gethostname=yes
17279else
5213506e 17280 ac_cv_lib_socket_gethostname=no
cd6d4007 17281fi
5213506e
RW
17282rm -f core conftest.err conftest.$ac_objext \
17283 conftest$ac_exeext conftest.$ac_ext
cd6d4007
MK
17284LIBS=$ac_check_lib_save_LIBS
17285fi
5213506e
RW
17286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostname" >&5
17287$as_echo "$ac_cv_lib_socket_gethostname" >&6; }
17288if test "x$ac_cv_lib_socket_gethostname" = x""yes; then :
cd6d4007
MK
17289 cat >>confdefs.h <<_ACEOF
17290#define HAVE_LIBSOCKET 1
17291_ACEOF
17292
17293 LIBS="-lsocket $LIBS"
17294
17295fi
17296
0563022a 17297
5213506e 17298 for ac_func in ftruncate fsync select \
ea54b293 17299 gethostname socket strerror fork pipe execve open close \
97b8365c 17300 lseek fstat read readv write writev htonl memset htons connect \
ea54b293 17301 getsockname getpeername bind listen accept \
0563022a 17302 recvfrom send sendto setsockopt getsockopt time mktime clock_gettime \
97b8365c 17303 gethostbyname_r localtime_r \
ea54b293 17304 strerror_r \
1ea63ef8 17305 fcntl \
e0441a5b 17306 statvfs \
21276379 17307 mmap munmap mincore msync madvise getpagesize sysconf \
02440ca4 17308 lstat readlink \
97b8365c
TT
17309 inet_aton inet_addr inet_pton \
17310 getifaddrs kqueue kevent epoll_create \
e0441a5b 17311 getloadavg
5213506e
RW
17312do :
17313 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17314ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17315eval as_val=\$$as_ac_var
17316 if test "x$as_val" = x""yes; then :
ea54b293 17317 cat >>confdefs.h <<_ACEOF
5213506e 17318#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ea54b293
TT
17319_ACEOF
17320
17321fi
02440ca4
TF
17322done
17323
17324
17325 LIBMAGIC=
5213506e
RW
17326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
17327$as_echo_n "checking for magic_open in -lmagic... " >&6; }
17328if test "${ac_cv_lib_magic_magic_open+set}" = set; then :
17329 $as_echo_n "(cached) " >&6
02440ca4
TF
17330else
17331 ac_check_lib_save_LIBS=$LIBS
17332LIBS="-lmagic $LIBS"
97b8365c 17333if test x$gcc_no_link = xyes; then
5213506e 17334 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
97b8365c 17335fi
5213506e 17336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
02440ca4
TF
17337/* end confdefs.h. */
17338
5213506e
RW
17339/* Override any GCC internal prototype to avoid an error.
17340 Use char because int might match the return type of a GCC
17341 builtin and then its argument prototype would still apply. */
02440ca4
TF
17342#ifdef __cplusplus
17343extern "C"
17344#endif
02440ca4
TF
17345char magic_open ();
17346int
17347main ()
17348{
5213506e 17349return magic_open ();
02440ca4
TF
17350 ;
17351 return 0;
17352}
17353_ACEOF
5213506e 17354if ac_fn_c_try_link "$LINENO"; then :
02440ca4
TF
17355 ac_cv_lib_magic_magic_open=yes
17356else
5213506e 17357 ac_cv_lib_magic_magic_open=no
02440ca4 17358fi
5213506e
RW
17359rm -f core conftest.err conftest.$ac_objext \
17360 conftest$ac_exeext conftest.$ac_ext
02440ca4
TF
17361LIBS=$ac_check_lib_save_LIBS
17362fi
5213506e
RW
17363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
17364$as_echo "$ac_cv_lib_magic_magic_open" >&6; }
17365if test "x$ac_cv_lib_magic_magic_open" = x""yes; then :
02440ca4
TF
17366 LIBMAGIC=-lmagic
17367fi
17368
ea54b293
TT
17369
17370
5213506e
RW
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
17372$as_echo_n "checking whether struct sockaddr_in6 is in netinet/in.h... " >&6; }
17373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
97b8365c
TT
17374/* end confdefs.h. */
17375#include <netinet/in.h>
17376int
17377main ()
17378{
17379struct sockaddr_in6 addr6;
17380 ;
17381 return 0;
17382}
17383_ACEOF
5213506e 17384if ac_fn_c_try_compile "$LINENO"; then :
97b8365c 17385
5213506e 17386$as_echo "#define HAVE_INET6 1" >>confdefs.h
97b8365c 17387
5213506e
RW
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17389$as_echo "yes" >&6; }
97b8365c 17390else
5213506e
RW
17391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17392$as_echo "no" >&6; }
97b8365c 17393fi
5213506e 17394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
97b8365c 17395
5213506e
RW
17396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
17397$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
17398if test "${ac_cv_header_time+set}" = set; then :
17399 $as_echo_n "(cached) " >&6
ea54b293 17400else
5213506e 17401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ea54b293
TT
17402/* end confdefs.h. */
17403#include <sys/types.h>
17404#include <sys/time.h>
17405#include <time.h>
17406
17407int
17408main ()
17409{
17410if ((struct tm *) 0)
17411return 0;
17412 ;
17413 return 0;
17414}
17415_ACEOF
5213506e 17416if ac_fn_c_try_compile "$LINENO"; then :
ea54b293
TT
17417 ac_cv_header_time=yes
17418else
5213506e 17419 ac_cv_header_time=no
ea54b293 17420fi
5213506e 17421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ea54b293 17422fi
5213506e
RW
17423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
17424$as_echo "$ac_cv_header_time" >&6; }
ea54b293
TT
17425if test $ac_cv_header_time = yes; then
17426
5213506e 17427$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
ea54b293
TT
17428
17429fi
17430
5213506e
RW
17431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
17432$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
17433if test "${ac_cv_struct_tm+set}" = set; then :
17434 $as_echo_n "(cached) " >&6
ea54b293 17435else
5213506e 17436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ea54b293
TT
17437/* end confdefs.h. */
17438#include <sys/types.h>
17439#include <time.h>
17440
17441int
17442main ()
17443{
5213506e
RW
17444struct tm tm;
17445 int *p = &tm.tm_sec;
17446 return !p;
ea54b293
TT
17447 ;
17448 return 0;
17449}
17450_ACEOF
5213506e 17451if ac_fn_c_try_compile "$LINENO"; then :
ea54b293
TT
17452 ac_cv_struct_tm=time.h
17453else
5213506e 17454 ac_cv_struct_tm=sys/time.h
ea54b293 17455fi
5213506e 17456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ea54b293 17457fi
5213506e
RW
17458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
17459$as_echo "$ac_cv_struct_tm" >&6; }
ea54b293
TT
17460if test $ac_cv_struct_tm = sys/time.h; then
17461
5213506e 17462$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
ea54b293
TT
17463
17464fi
17465
5213506e 17466 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
ea54b293
TT
17467#include <$ac_cv_struct_tm>
17468
5213506e
RW
17469"
17470if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
ea54b293
TT
17471
17472cat >>confdefs.h <<_ACEOF
17473#define HAVE_STRUCT_TM_TM_ZONE 1
17474_ACEOF
17475
17476
17477fi
17478
17479if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
17480
5213506e 17481$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
ea54b293
TT
17482
17483else
5213506e
RW
17484 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
17485"
17486if test "x$ac_cv_have_decl_tzname" = x""yes; then :
17487 ac_have_decl=1
4f9533c7 17488else
5213506e 17489 ac_have_decl=0
97b8365c 17490fi
5213506e
RW
17491
17492cat >>confdefs.h <<_ACEOF
17493#define HAVE_DECL_TZNAME $ac_have_decl
ea54b293 17494_ACEOF
5213506e
RW
17495
17496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
17497$as_echo_n "checking for tzname... " >&6; }
17498if test "${ac_cv_var_tzname+set}" = set; then :
17499 $as_echo_n "(cached) " >&6
17500else
17501 if test x$gcc_no_link = xyes; then
17502 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17503fi
17504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ea54b293
TT
17505/* end confdefs.h. */
17506#include <time.h>
5213506e
RW
17507#if !HAVE_DECL_TZNAME
17508extern char *tzname[];
ea54b293
TT
17509#endif
17510
17511int
17512main ()
17513{
5213506e 17514return tzname[0][0];
ea54b293
TT
17515 ;
17516 return 0;
17517}
17518_ACEOF
5213506e 17519if ac_fn_c_try_link "$LINENO"; then :
ea54b293
TT
17520 ac_cv_var_tzname=yes
17521else
5213506e 17522 ac_cv_var_tzname=no
ea54b293 17523fi
5213506e
RW
17524rm -f core conftest.err conftest.$ac_objext \
17525 conftest$ac_exeext conftest.$ac_ext
ea54b293 17526fi
5213506e
RW
17527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
17528$as_echo "$ac_cv_var_tzname" >&6; }
ea54b293
TT
17529 if test $ac_cv_var_tzname = yes; then
17530
5213506e 17531$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
ea54b293
TT
17532
17533 fi
17534fi
17535
17536
5213506e
RW
17537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
17538$as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
17539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ea54b293
TT
17540/* end confdefs.h. */
17541#include <time.h>
17542int
17543main ()
17544{
17545struct tm tim; tim.tm_gmtoff = 0;
17546 ;
17547 return 0;
17548}
17549_ACEOF
5213506e 17550if ac_fn_c_try_compile "$LINENO"; then :
ea54b293 17551
5213506e 17552$as_echo "#define STRUCT_TM_HAS_GMTOFF 1" >>confdefs.h
ea54b293 17553
5213506e
RW
17554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17555$as_echo "yes" >&6; }
ea54b293 17556else
5213506e
RW
17557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17558$as_echo "no" >&6; }
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global timezone variable" >&5
17560$as_echo_n "checking for global timezone variable... " >&6; }
17561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ea54b293
TT
17562/* end confdefs.h. */
17563#include <time.h>
17564int
17565main ()
17566{
17567void i(){long z2 = 2*timezone;}
17568 ;
17569 return 0;
17570}
17571_ACEOF
5213506e 17572if ac_fn_c_try_compile "$LINENO"; then :
ea54b293 17573
5213506e 17574$as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
ea54b293 17575
5213506e
RW
17576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17577$as_echo "yes" >&6; }
ea54b293 17578else
5213506e
RW
17579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17580$as_echo "no" >&6; }
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global _timezone variable" >&5
17582$as_echo_n "checking for global _timezone variable... " >&6; }
17583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ea54b293
TT
17584/* end confdefs.h. */
17585#include <time.h>
17586int
17587main ()
17588{
17589long z2 = _timezone;
17590 ;
17591 return 0;
17592}
17593_ACEOF
5213506e 17594if ac_fn_c_try_compile "$LINENO"; then :
ea54b293 17595
5213506e 17596$as_echo "#define HAVE_UNDERSCORE_TIMEZONE 1" >>confdefs.h
ea54b293 17597
5213506e
RW
17598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17599$as_echo "yes" >&6; }
ea54b293 17600else
5213506e
RW
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17602$as_echo "no" >&6; }
ea54b293 17603fi
5213506e 17604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ea54b293 17605fi
5213506e 17606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ea54b293 17607fi
5213506e 17608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ea54b293 17609
5213506e
RW
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17611$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17612if test "${ac_cv_c_const+set}" = set; then :
17613 $as_echo_n "(cached) " >&6
ea54b293 17614else
5213506e 17615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ea54b293
TT
17616/* end confdefs.h. */
17617
17618int
17619main ()
17620{
17621/* FIXME: Include the comments suggested by Paul. */
17622#ifndef __cplusplus
17623 /* Ultrix mips cc rejects this. */
17624 typedef int charset[2];
5213506e 17625 const charset cs;
ea54b293 17626 /* SunOS 4.1.1 cc rejects this. */
5213506e
RW
17627 char const *const *pcpcc;
17628 char **ppc;
ea54b293
TT
17629 /* NEC SVR4.0.2 mips cc rejects this. */
17630 struct point {int x, y;};
17631 static struct point const zero = {0,0};
17632 /* AIX XL C 1.02.0.0 rejects this.
17633 It does not let you subtract one const X* pointer from another in
17634 an arm of an if-expression whose if-part is not a constant
17635 expression */
17636 const char *g = "string";
5213506e 17637 pcpcc = &g + (g ? g-g : 0);
ea54b293 17638 /* HPUX 7.0 cc rejects these. */
5213506e
RW
17639 ++pcpcc;
17640 ppc = (char**) pcpcc;
17641 pcpcc = (char const *const *) ppc;
ea54b293
TT
17642 { /* SCO 3.2v4 cc rejects this. */
17643 char *t;
17644 char const *s = 0 ? (char *) 0 : (char const *) 0;
17645
17646 *t++ = 0;
5213506e 17647 if (s) return 0;
ea54b293
TT
17648 }
17649 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17650 int x[] = {25, 17};
17651 const int *foo = &x[0];
17652 ++foo;
17653 }
17654 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17655 typedef const int *iptr;
17656 iptr p = 0;
17657 ++p;
17658 }
17659 { /* AIX XL C 1.02.0.0 rejects this saying
17660 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17661 struct s { int j; const int *ap[3]; };
17662 struct s *b; b->j = 5;
17663 }
17664 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17665 const int foo = 10;
5213506e 17666 if (!foo) return 0;
ea54b293 17667 }
5213506e 17668 return !cs[0] && !zero.x;
ea54b293
TT
17669#endif
17670
17671 ;
17672 return 0;
17673}
17674_ACEOF
5213506e 17675if ac_fn_c_try_compile "$LINENO"; then :
ea54b293
TT
17676 ac_cv_c_const=yes
17677else
5213506e 17678 ac_cv_c_const=no
ea54b293 17679fi
5213506e 17680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ea54b293 17681fi
5213506e
RW
17682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17683$as_echo "$ac_cv_c_const" >&6; }
ea54b293
TT
17684if test $ac_cv_c_const = no; then
17685
5213506e 17686$as_echo "#define const /**/" >>confdefs.h
ea54b293
TT
17687
17688fi
17689
5213506e
RW
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17691$as_echo_n "checking for inline... " >&6; }
17692if test "${ac_cv_c_inline+set}" = set; then :
17693 $as_echo_n "(cached) " >&6
e1bea0c0
MK
17694else
17695 ac_cv_c_inline=no
17696for ac_kw in inline __inline__ __inline; do
5213506e 17697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e1bea0c0
MK
17698/* end confdefs.h. */
17699#ifndef __cplusplus
17700typedef int foo_t;
17701static $ac_kw foo_t static_foo () {return 0; }
17702$ac_kw foo_t foo () {return 0; }
17703#endif
17704
17705_ACEOF
5213506e
RW
17706if ac_fn_c_try_compile "$LINENO"; then :
17707 ac_cv_c_inline=$ac_kw
e1bea0c0 17708fi
5213506e
RW
17709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17710 test "$ac_cv_c_inline" != no && break
e1bea0c0
MK
17711done
17712
17713fi
5213506e
RW
17714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17715$as_echo "$ac_cv_c_inline" >&6; }
e1bea0c0
MK
17716
17717case $ac_cv_c_inline in
17718 inline | yes) ;;
17719 *)
17720 case $ac_cv_c_inline in
17721 no) ac_val=;;
17722 *) ac_val=$ac_cv_c_inline;;
17723 esac
17724 cat >>confdefs.h <<_ACEOF
17725#ifndef __cplusplus
17726#define inline $ac_val
17727#endif
17728_ACEOF
17729 ;;
17730esac
17731
5213506e
RW
17732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
17733$as_echo_n "checking for __attribute__... " >&6; }
17734if test "${ac_cv_c_attribute+set}" = set; then :
17735 $as_echo_n "(cached) " >&6
8f523f3a
MW
17736else
17737
5213506e 17738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8f523f3a
MW
17739/* end confdefs.h. */
17740void foo(void) __attribute__ ((__noreturn__));
17741
17742_ACEOF
5213506e 17743if ac_fn_c_try_compile "$LINENO"; then :
8f523f3a
MW
17744 ac_cv_c_attribute=yes
17745else
5213506e 17746 ac_cv_c_attribute=no
8f523f3a
MW
17747
17748fi
5213506e 17749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8f523f3a
MW
17750
17751fi
5213506e
RW
17752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_attribute" >&5
17753$as_echo "$ac_cv_c_attribute" >&6; }
8f523f3a
MW
17754
17755case $ac_cv_c_attribute in
17756 yes) ;;
17757 no)
17758 cat >>confdefs.h <<_ACEOF
17759#define __attribute__(x) /* nothing */
17760_ACEOF
17761 ;;
17762esac
17763
ea54b293
TT
17764
17765
e1bea0c0
MK
17766 ac_ext=c
17767ac_cpp='$CPP $CPPFLAGS'
17768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17770ac_compiler_gnu=$ac_cv_c_compiler_gnu
ea54b293 17771
5213506e
RW
17772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() takes" >&5
17773$as_echo_n "checking how many arguments gethostbyname_r() takes... " >&6; }
ea54b293 17774
5213506e
RW
17775 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then :
17776 $as_echo_n "(cached) " >&6
ea54b293 17777else
ea54b293 17778
ea54b293 17779
e1bea0c0 17780################################################################
ea54b293 17781
e1bea0c0 17782ac_cv_func_which_gethostbyname_r=unknown
ea54b293 17783
e1bea0c0
MK
17784#
17785# ONE ARGUMENT (sanity check)
17786#
ea54b293 17787
e1bea0c0
MK
17788# This should fail, as there is no variant of gethostbyname_r() that takes
17789# a single argument. If it actually compiles, then we can assume that
17790# netdb.h is not declaring the function, and the compiler is thereby
17791# assuming an implicit prototype. In which case, we're out of luck.
17792#
5213506e 17793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e1bea0c0 17794/* end confdefs.h. */
0563022a
AJH
17795
17796 #include <netdb.h>
e1bea0c0
MK
17797int
17798main ()
17799{
17800
17801 char *name = "www.gnu.org";
17802 (void)gethostbyname_r(name) /* ; */
17803
17804 ;
17805 return 0;
17806}
17807_ACEOF
5213506e 17808if ac_fn_c_try_compile "$LINENO"; then :
e1bea0c0 17809 ac_cv_func_which_gethostbyname_r=no
e1bea0c0 17810fi
5213506e 17811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e1bea0c0
MK
17812
17813#
17814# SIX ARGUMENTS
17815# (e.g. Linux)
17816#
17817
17818if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
17819
5213506e 17820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e1bea0c0 17821/* end confdefs.h. */
0563022a
AJH
17822
17823 #include <netdb.h>
e1bea0c0
MK
17824int
17825main ()
17826{
17827
17828 char *name = "www.gnu.org";
17829 struct hostent ret, *retp;
17830 char buf[1024];
17831 int buflen = 1024;
17832 int my_h_errno;
17833 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
17834
17835 ;
17836 return 0;
17837}
17838_ACEOF
5213506e 17839if ac_fn_c_try_compile "$LINENO"; then :
e1bea0c0 17840 ac_cv_func_which_gethostbyname_r=six
e1bea0c0 17841fi
5213506e 17842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e1bea0c0
MK
17843
17844fi
17845
17846#
17847# FIVE ARGUMENTS
17848# (e.g. Solaris)
17849#
17850
17851if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
17852
5213506e 17853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e1bea0c0 17854/* end confdefs.h. */
0563022a
AJH
17855
17856 #include <netdb.h>
e1bea0c0
MK
17857int
17858main ()
17859{
17860
17861 char *name = "www.gnu.org";
17862 struct hostent ret;
17863 char buf[1024];
17864 int buflen = 1024;
17865 int my_h_errno;
17866 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
17867
17868 ;
17869 return 0;
17870}
17871_ACEOF
5213506e 17872if ac_fn_c_try_compile "$LINENO"; then :
e1bea0c0 17873 ac_cv_func_which_gethostbyname_r=five
e1bea0c0 17874fi
5213506e 17875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e1bea0c0
MK
17876
17877fi
17878
17879#
17880# THREE ARGUMENTS
17881# (e.g. AIX, HP-UX, Tru64)
17882#
17883
17884if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
17885
5213506e 17886cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e1bea0c0 17887/* end confdefs.h. */
0563022a
AJH
17888
17889 #include <netdb.h>
e1bea0c0
MK
17890int
17891main ()
17892{
17893
17894 char *name = "www.gnu.org";
17895 struct hostent ret;
17896 struct hostent_data data;
17897 (void)gethostbyname_r(name, &ret, &data) /* ; */
17898
17899 ;
17900 return 0;
17901}
17902_ACEOF
5213506e 17903if ac_fn_c_try_compile "$LINENO"; then :
e1bea0c0 17904 ac_cv_func_which_gethostbyname_r=three
e1bea0c0 17905fi
5213506e 17906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e1bea0c0
MK
17907
17908fi
17909
17910################################################################
17911
17912
17913fi
17914
17915case "$ac_cv_func_which_gethostbyname_r" in
17916 three)
5213506e
RW
17917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: three" >&5
17918$as_echo "three" >&6; }
e1bea0c0 17919
5213506e 17920$as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_3 1" >>confdefs.h
e1bea0c0
MK
17921
17922 ;;
17923
17924 five)
5213506e
RW
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: five" >&5
17926$as_echo "five" >&6; }
e1bea0c0 17927
5213506e 17928$as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_5 1" >>confdefs.h
e1bea0c0
MK
17929
17930 ;;
17931
17932 six)
5213506e
RW
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: six" >&5
17934$as_echo "six" >&6; }
e1bea0c0 17935
5213506e 17936$as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_6 1" >>confdefs.h
e1bea0c0
MK
17937
17938 ;;
17939
17940 no)
5213506e
RW
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find function declaration in netdb.h" >&5
17942$as_echo "cannot find function declaration in netdb.h" >&6; }
e1bea0c0
MK
17943 ;;
17944
17945 unknown)
5213506e
RW
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't tell" >&5
17947$as_echo "can't tell" >&6; }
e1bea0c0
MK
17948 ;;
17949
17950 *)
5213506e 17951 as_fn_error "internal error" "$LINENO" 5
e1bea0c0
MK
17952 ;;
17953esac
17954
17955ac_ext=c
17956ac_cpp='$CPP $CPPFLAGS'
17957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17959ac_compiler_gnu=$ac_cv_c_compiler_gnu
17960
17961
17962
17963
17964
17965 if test "X$prefix" = "XNONE"; then
17966 acl_final_prefix="$ac_default_prefix"
17967 else
17968 acl_final_prefix="$prefix"
17969 fi
17970 if test "X$exec_prefix" = "XNONE"; then
17971 acl_final_exec_prefix='${prefix}'
17972 else
17973 acl_final_exec_prefix="$exec_prefix"
17974 fi
17975 acl_save_prefix="$prefix"
17976 prefix="$acl_final_prefix"
17977 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17978 prefix="$acl_save_prefix"
17979
17980
5213506e
RW
17981# Check whether --with-gnu-ld was given.
17982if test "${with_gnu_ld+set}" = set; then :
17983 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
e1bea0c0
MK
17984else
17985 with_gnu_ld=no
5213506e
RW
17986fi
17987
e1bea0c0
MK
17988# Prepare PATH_SEPARATOR.
17989# The user is always right.
17990if test "${PATH_SEPARATOR+set}" != set; then
17991 echo "#! /bin/sh" >conf$$.sh
17992 echo "exit 0" >>conf$$.sh
17993 chmod +x conf$$.sh
17994 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17995 PATH_SEPARATOR=';'
17996 else
17997 PATH_SEPARATOR=:
17998 fi
17999 rm -f conf$$.sh
18000fi
18001ac_prog=ld
18002if test "$GCC" = yes; then
18003 # Check if gcc -print-prog-name=ld gives a path.
5213506e
RW
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
18005$as_echo_n "checking for ld used by GCC... " >&6; }
e1bea0c0
MK
18006 case $host in
18007 *-*-mingw*)
18008 # gcc leaves a trailing carriage return which upsets mingw
18009 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18010 *)
18011 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18012 esac
18013 case $ac_prog in
18014 # Accept absolute paths.
18015 [\\/]* | [A-Za-z]:[\\/]*)
18016 re_direlt='/[^/][^/]*/\.\./'
18017 # Canonicalize the path of ld
18018 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
18019 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
a1906e8b 18020 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
e1bea0c0
MK
18021 done
18022 test -z "$LD" && LD="$ac_prog"
18023 ;;
18024 "")
18025 # If it fails, then pretend we aren't using GCC.
18026 ac_prog=ld
18027 ;;
18028 *)
18029 # If it is relative, then search for the first ld in PATH.
18030 with_gnu_ld=unknown
18031 ;;
18032 esac
18033elif test "$with_gnu_ld" = yes; then
5213506e
RW
18034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18035$as_echo_n "checking for GNU ld... " >&6; }
e1bea0c0 18036else
5213506e
RW
18037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18038$as_echo_n "checking for non-GNU ld... " >&6; }
e1bea0c0 18039fi
5213506e
RW
18040if test "${acl_cv_path_LD+set}" = set; then :
18041 $as_echo_n "(cached) " >&6
e1bea0c0
MK
18042else
18043 if test -z "$LD"; then
18044 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
18045 for ac_dir in $PATH; do
18046 test -z "$ac_dir" && ac_dir=.
18047 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18048 acl_cv_path_LD="$ac_dir/$ac_prog"
18049 # Check to see if the program is GNU ld. I'd rather use --version,
18050 # but apparently some GNU ld's only accept -v.
18051 # Break only if it was the GNU/non-GNU ld that we prefer.
a1906e8b
MK
18052 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
18053 *GNU* | *'with BFD'*)
18054 test "$with_gnu_ld" != no && break ;;
18055 *)
18056 test "$with_gnu_ld" != yes && break ;;
18057 esac
e1bea0c0
MK
18058 fi
18059 done
18060 IFS="$ac_save_ifs"
18061else
18062 acl_cv_path_LD="$LD" # Let the user override the test with a path.
18063fi
18064fi
18065
18066LD="$acl_cv_path_LD"
18067if test -n "$LD"; then
5213506e
RW
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18069$as_echo "$LD" >&6; }
e1bea0c0 18070else
5213506e
RW
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18072$as_echo "no" >&6; }
e1bea0c0 18073fi
5213506e
RW
18074test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18076$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18077if test "${acl_cv_prog_gnu_ld+set}" = set; then :
18078 $as_echo_n "(cached) " >&6
e1bea0c0
MK
18079else
18080 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
a1906e8b
MK
18081case `$LD -v 2>&1 </dev/null` in
18082*GNU* | *'with BFD'*)
18083 acl_cv_prog_gnu_ld=yes ;;
18084*)
18085 acl_cv_prog_gnu_ld=no ;;
18086esac
e1bea0c0 18087fi
5213506e
RW
18088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
18089$as_echo "$acl_cv_prog_gnu_ld" >&6; }
e1bea0c0
MK
18090with_gnu_ld=$acl_cv_prog_gnu_ld
18091
18092
18093
a1906e8b 18094
5213506e
RW
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
18096$as_echo_n "checking for shared library run path origin... " >&6; }
18097if test "${acl_cv_rpath+set}" = set; then :
18098 $as_echo_n "(cached) " >&6
e1bea0c0
MK
18099else
18100
18101 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
18102 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
18103 . ./conftest.sh
18104 rm -f ./conftest.sh
18105 acl_cv_rpath=done
ea54b293
TT
18106
18107fi
5213506e
RW
18108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
18109$as_echo "$acl_cv_rpath" >&6; }
ea54b293 18110 wl="$acl_cv_wl"
a1906e8b
MK
18111 acl_libext="$acl_cv_libext"
18112 acl_shlibext="$acl_cv_shlibext"
18113 acl_libname_spec="$acl_cv_libname_spec"
18114 acl_library_names_spec="$acl_cv_library_names_spec"
18115 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
18116 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
18117 acl_hardcode_direct="$acl_cv_hardcode_direct"
18118 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5213506e
RW
18119 # Check whether --enable-rpath was given.
18120if test "${enable_rpath+set}" = set; then :
18121 enableval=$enable_rpath; :
ea54b293
TT
18122else
18123 enable_rpath=yes
5213506e
RW
18124fi
18125
ea54b293
TT
18126
18127
18128
a1906e8b
MK
18129 acl_libdirstem=lib
18130 acl_libdirstem2=
18131 case "$host_os" in
18132 solaris*)
18133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
18134$as_echo_n "checking for 64-bit host... " >&6; }
18135if test "${gl_cv_solaris_64bit+set}" = set; then :
18136 $as_echo_n "(cached) " >&6
18137else
18138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18139/* end confdefs.h. */
18140
18141#ifdef _LP64
18142sixtyfour bits
18143#endif
18144
18145_ACEOF
18146if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18147 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
18148 gl_cv_solaris_64bit=yes
18149else
18150 gl_cv_solaris_64bit=no
18151fi
18152rm -f conftest*
18153
18154
18155fi
18156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
18157$as_echo "$gl_cv_solaris_64bit" >&6; }
18158 if test $gl_cv_solaris_64bit = yes; then
18159 acl_libdirstem=lib/64
18160 case "$host_cpu" in
18161 sparc*) acl_libdirstem2=lib/sparcv9 ;;
18162 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
18163 esac
18164 fi
18165 ;;
18166 *)
18167 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
18168 if test -n "$searchpath"; then
18169 acl_save_IFS="${IFS= }"; IFS=":"
18170 for searchdir in $searchpath; do
18171 if test -d "$searchdir"; then
18172 case "$searchdir" in
18173 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
18174 */../ | */.. )
18175 # Better ignore directories of this form. They are misleading.
18176 ;;
18177 *) searchdir=`cd "$searchdir" && pwd`
18178 case "$searchdir" in
18179 */lib64 ) acl_libdirstem=lib64 ;;
18180 esac ;;
18181 esac
18182 fi
18183 done
18184 IFS="$acl_save_IFS"
18185 fi
18186 ;;
18187 esac
18188 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
18189
18190
18191
18192
18193
18194
18195
18196
ea54b293
TT
18197
18198
18199
18200
18201 use_additional=yes
18202
18203 acl_save_prefix="$prefix"
18204 prefix="$acl_final_prefix"
18205 acl_save_exec_prefix="$exec_prefix"
18206 exec_prefix="$acl_final_exec_prefix"
18207
18208 eval additional_includedir=\"$includedir\"
18209 eval additional_libdir=\"$libdir\"
18210
18211 exec_prefix="$acl_save_exec_prefix"
18212 prefix="$acl_save_prefix"
18213
18214
5213506e
RW
18215# Check whether --with-libiconv-prefix was given.
18216if test "${with_libiconv_prefix+set}" = set; then :
18217 withval=$with_libiconv_prefix;
ea54b293
TT
18218 if test "X$withval" = "Xno"; then
18219 use_additional=no
18220 else
18221 if test "X$withval" = "X"; then
18222
18223 acl_save_prefix="$prefix"
18224 prefix="$acl_final_prefix"
18225 acl_save_exec_prefix="$exec_prefix"
18226 exec_prefix="$acl_final_exec_prefix"
18227
18228 eval additional_includedir=\"$includedir\"
18229 eval additional_libdir=\"$libdir\"
18230
18231 exec_prefix="$acl_save_exec_prefix"
18232 prefix="$acl_save_prefix"
18233
18234 else
18235 additional_includedir="$withval/include"
a1906e8b
MK
18236 additional_libdir="$withval/$acl_libdirstem"
18237 if test "$acl_libdirstem2" != "$acl_libdirstem" \
18238 && ! test -d "$withval/$acl_libdirstem"; then
18239 additional_libdir="$withval/$acl_libdirstem2"
18240 fi
ea54b293
TT
18241 fi
18242 fi
18243
5213506e
RW
18244fi
18245
ea54b293
TT
18246 LIBICONV=
18247 LTLIBICONV=
18248 INCICONV=
a1906e8b
MK
18249 LIBICONV_PREFIX=
18250 HAVE_LIBICONV=
ea54b293
TT
18251 rpathdirs=
18252 ltrpathdirs=
18253 names_already_handled=
18254 names_next_round='iconv '
18255 while test -n "$names_next_round"; do
18256 names_this_round="$names_next_round"
18257 names_next_round=
18258 for name in $names_this_round; do
18259 already_handled=
18260 for n in $names_already_handled; do
18261 if test "$n" = "$name"; then
18262 already_handled=yes
18263 break
18264 fi
18265 done
18266 if test -z "$already_handled"; then
18267 names_already_handled="$names_already_handled $name"
18268 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18269 eval value=\"\$HAVE_LIB$uppername\"
18270 if test -n "$value"; then
18271 if test "$value" = yes; then
18272 eval value=\"\$LIB$uppername\"
18273 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
18274 eval value=\"\$LTLIB$uppername\"
18275 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
18276 else
18277 :
18278 fi
18279 else
18280 found_dir=
18281 found_la=
18282 found_so=
18283 found_a=
a1906e8b
MK
18284 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
18285 if test -n "$acl_shlibext"; then
18286 shrext=".$acl_shlibext" # typically: shrext=.so
18287 else
18288 shrext=
18289 fi
ea54b293 18290 if test $use_additional = yes; then
a1906e8b
MK
18291 dir="$additional_libdir"
18292 if test -n "$acl_shlibext"; then
18293 if test -f "$dir/$libname$shrext"; then
18294 found_dir="$dir"
18295 found_so="$dir/$libname$shrext"
18296 else
18297 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18298 ver=`(cd "$dir" && \
18299 for f in "$libname$shrext".*; do echo "$f"; done \
18300 | sed -e "s,^$libname$shrext\\\\.,," \
18301 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18302 | sed 1q ) 2>/dev/null`
18303 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18304 found_dir="$dir"
18305 found_so="$dir/$libname$shrext.$ver"
18306 fi
18307 else
18308 eval library_names=\"$acl_library_names_spec\"
18309 for f in $library_names; do
18310 if test -f "$dir/$f"; then
18311 found_dir="$dir"
18312 found_so="$dir/$f"
18313 break
18314 fi
18315 done
ea54b293
TT
18316 fi
18317 fi
a1906e8b
MK
18318 fi
18319 if test "X$found_dir" = "X"; then
18320 if test -f "$dir/$libname.$acl_libext"; then
18321 found_dir="$dir"
18322 found_a="$dir/$libname.$acl_libext"
18323 fi
18324 fi
18325 if test "X$found_dir" != "X"; then
18326 if test -f "$dir/$libname.la"; then
18327 found_la="$dir/$libname.la"
18328 fi
ea54b293
TT
18329 fi
18330 fi
18331 if test "X$found_dir" = "X"; then
18332 for x in $LDFLAGS $LTLIBICONV; do
18333
18334 acl_save_prefix="$prefix"
18335 prefix="$acl_final_prefix"
18336 acl_save_exec_prefix="$exec_prefix"
18337 exec_prefix="$acl_final_exec_prefix"
18338 eval x=\"$x\"
18339 exec_prefix="$acl_save_exec_prefix"
18340 prefix="$acl_save_prefix"
18341
18342 case "$x" in
18343 -L*)
18344 dir=`echo "X$x" | sed -e 's/^X-L//'`
a1906e8b
MK
18345 if test -n "$acl_shlibext"; then
18346 if test -f "$dir/$libname$shrext"; then
ea54b293 18347 found_dir="$dir"
a1906e8b
MK
18348 found_so="$dir/$libname$shrext"
18349 else
18350 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18351 ver=`(cd "$dir" && \
18352 for f in "$libname$shrext".*; do echo "$f"; done \
18353 | sed -e "s,^$libname$shrext\\\\.,," \
18354 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18355 | sed 1q ) 2>/dev/null`
18356 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18357 found_dir="$dir"
18358 found_so="$dir/$libname$shrext.$ver"
18359 fi
18360 else
18361 eval library_names=\"$acl_library_names_spec\"
18362 for f in $library_names; do
18363 if test -f "$dir/$f"; then
18364 found_dir="$dir"
18365 found_so="$dir/$f"
18366 break
18367 fi
18368 done
ea54b293
TT
18369 fi
18370 fi
a1906e8b
MK
18371 fi
18372 if test "X$found_dir" = "X"; then
18373 if test -f "$dir/$libname.$acl_libext"; then
18374 found_dir="$dir"
18375 found_a="$dir/$libname.$acl_libext"
18376 fi
18377 fi
18378 if test "X$found_dir" != "X"; then
18379 if test -f "$dir/$libname.la"; then
18380 found_la="$dir/$libname.la"
18381 fi
ea54b293
TT
18382 fi
18383 ;;
18384 esac
18385 if test "X$found_dir" != "X"; then
18386 break
18387 fi
18388 done
18389 fi
18390 if test "X$found_dir" != "X"; then
18391 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
18392 if test "X$found_so" != "X"; then
a1906e8b
MK
18393 if test "$enable_rpath" = no \
18394 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
18395 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
ea54b293
TT
18396 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18397 else
18398 haveit=
18399 for x in $ltrpathdirs; do
18400 if test "X$x" = "X$found_dir"; then
18401 haveit=yes
18402 break
18403 fi
18404 done
18405 if test -z "$haveit"; then
18406 ltrpathdirs="$ltrpathdirs $found_dir"
18407 fi
a1906e8b 18408 if test "$acl_hardcode_direct" = yes; then
ea54b293
TT
18409 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18410 else
a1906e8b 18411 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
ea54b293
TT
18412 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18413 haveit=
18414 for x in $rpathdirs; do
18415 if test "X$x" = "X$found_dir"; then
18416 haveit=yes
18417 break
18418 fi
18419 done
18420 if test -z "$haveit"; then
18421 rpathdirs="$rpathdirs $found_dir"
18422 fi
18423 else
18424 haveit=
18425 for x in $LDFLAGS $LIBICONV; do
18426
18427 acl_save_prefix="$prefix"
18428 prefix="$acl_final_prefix"
18429 acl_save_exec_prefix="$exec_prefix"
18430 exec_prefix="$acl_final_exec_prefix"
18431 eval x=\"$x\"
18432 exec_prefix="$acl_save_exec_prefix"
18433 prefix="$acl_save_prefix"
18434
18435 if test "X$x" = "X-L$found_dir"; then
18436 haveit=yes
18437 break
18438 fi
18439 done
18440 if test -z "$haveit"; then
18441 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
18442 fi
a1906e8b 18443 if test "$acl_hardcode_minus_L" != no; then
ea54b293
TT
18444 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18445 else
18446 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18447 fi
18448 fi
18449 fi
18450 fi
18451 else
18452 if test "X$found_a" != "X"; then
18453 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
18454 else
18455 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
18456 fi
18457 fi
18458 additional_includedir=
18459 case "$found_dir" in
a1906e8b
MK
18460 */$acl_libdirstem | */$acl_libdirstem/)
18461 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
18462 if test "$name" = 'iconv'; then
18463 LIBICONV_PREFIX="$basedir"
18464 fi
18465 additional_includedir="$basedir/include"
18466 ;;
18467 */$acl_libdirstem2 | */$acl_libdirstem2/)
18468 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
18469 if test "$name" = 'iconv'; then
18470 LIBICONV_PREFIX="$basedir"
18471 fi
ea54b293
TT
18472 additional_includedir="$basedir/include"
18473 ;;
18474 esac
18475 if test "X$additional_includedir" != "X"; then
18476 if test "X$additional_includedir" != "X/usr/include"; then
18477 haveit=
18478 if test "X$additional_includedir" = "X/usr/local/include"; then
18479 if test -n "$GCC"; then
18480 case $host_os in
a1906e8b 18481 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
ea54b293
TT
18482 esac
18483 fi
18484 fi
18485 if test -z "$haveit"; then
18486 for x in $CPPFLAGS $INCICONV; do
18487
18488 acl_save_prefix="$prefix"
18489 prefix="$acl_final_prefix"
18490 acl_save_exec_prefix="$exec_prefix"
18491 exec_prefix="$acl_final_exec_prefix"
18492 eval x=\"$x\"
18493 exec_prefix="$acl_save_exec_prefix"
18494 prefix="$acl_save_prefix"
18495
18496 if test "X$x" = "X-I$additional_includedir"; then
18497 haveit=yes
18498 break
18499 fi
18500 done
18501 if test -z "$haveit"; then
18502 if test -d "$additional_includedir"; then
18503 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
18504 fi
18505 fi
18506 fi
18507 fi
18508 fi
18509 if test -n "$found_la"; then
18510 save_libdir="$libdir"
18511 case "$found_la" in
18512 */* | *\\*) . "$found_la" ;;
18513 *) . "./$found_la" ;;
18514 esac
18515 libdir="$save_libdir"
18516 for dep in $dependency_libs; do
18517 case "$dep" in
18518 -L*)
18519 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
a1906e8b
MK
18520 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
18521 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
ea54b293 18522 haveit=
a1906e8b
MK
18523 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
18524 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
ea54b293
TT
18525 if test -n "$GCC"; then
18526 case $host_os in
a1906e8b 18527 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
ea54b293
TT
18528 esac
18529 fi
18530 fi
18531 if test -z "$haveit"; then
18532 haveit=
18533 for x in $LDFLAGS $LIBICONV; do
18534
18535 acl_save_prefix="$prefix"
18536 prefix="$acl_final_prefix"
18537 acl_save_exec_prefix="$exec_prefix"
18538 exec_prefix="$acl_final_exec_prefix"
18539 eval x=\"$x\"
18540 exec_prefix="$acl_save_exec_prefix"
18541 prefix="$acl_save_prefix"
18542
18543 if test "X$x" = "X-L$additional_libdir"; then
18544 haveit=yes
18545 break
18546 fi
18547 done
18548 if test -z "$haveit"; then
18549 if test -d "$additional_libdir"; then
18550 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
18551 fi
18552 fi
18553 haveit=
18554 for x in $LDFLAGS $LTLIBICONV; do
18555
18556 acl_save_prefix="$prefix"
18557 prefix="$acl_final_prefix"
18558 acl_save_exec_prefix="$exec_prefix"
18559 exec_prefix="$acl_final_exec_prefix"
18560 eval x=\"$x\"
18561 exec_prefix="$acl_save_exec_prefix"
18562 prefix="$acl_save_prefix"
18563
18564 if test "X$x" = "X-L$additional_libdir"; then
18565 haveit=yes
18566 break
18567 fi
18568 done
18569 if test -z "$haveit"; then
18570 if test -d "$additional_libdir"; then
18571 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
18572 fi
18573 fi
18574 fi
18575 fi
18576 ;;
18577 -R*)
18578 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18579 if test "$enable_rpath" != no; then
18580 haveit=
18581 for x in $rpathdirs; do
18582 if test "X$x" = "X$dir"; then
18583 haveit=yes
18584 break
18585 fi
18586 done
18587 if test -z "$haveit"; then
18588 rpathdirs="$rpathdirs $dir"
18589 fi
18590 haveit=
18591 for x in $ltrpathdirs; do
18592 if test "X$x" = "X$dir"; then
18593 haveit=yes
18594 break
18595 fi
18596 done
18597 if test -z "$haveit"; then
18598 ltrpathdirs="$ltrpathdirs $dir"
18599 fi
18600 fi
18601 ;;
18602 -l*)
18603 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18604 ;;
18605 *.la)
18606 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18607 ;;
18608 *)
18609 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18610 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18611 ;;
18612 esac
18613 done
18614 fi
18615 else
18616 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18617 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18618 fi
18619 fi
18620 fi
18621 done
18622 done
18623 if test "X$rpathdirs" != "X"; then
a1906e8b 18624 if test -n "$acl_hardcode_libdir_separator"; then
ea54b293
TT
18625 alldirs=
18626 for found_dir in $rpathdirs; do
a1906e8b 18627 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
ea54b293
TT
18628 done
18629 acl_save_libdir="$libdir"
18630 libdir="$alldirs"
a1906e8b 18631 eval flag=\"$acl_hardcode_libdir_flag_spec\"
ea54b293
TT
18632 libdir="$acl_save_libdir"
18633 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18634 else
18635 for found_dir in $rpathdirs; do
18636 acl_save_libdir="$libdir"
18637 libdir="$found_dir"
a1906e8b 18638 eval flag=\"$acl_hardcode_libdir_flag_spec\"
ea54b293
TT
18639 libdir="$acl_save_libdir"
18640 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18641 done
18642 fi
18643 fi
18644 if test "X$ltrpathdirs" != "X"; then
18645 for found_dir in $ltrpathdirs; do
18646 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18647 done
18648 fi
18649
18650
18651
18652
18653
18654
18655
a1906e8b
MK
18656
18657
18658
18659
18660
ea54b293
TT
18661 am_save_CPPFLAGS="$CPPFLAGS"
18662
18663 for element in $INCICONV; do
18664 haveit=
18665 for x in $CPPFLAGS; do
18666
18667 acl_save_prefix="$prefix"
18668 prefix="$acl_final_prefix"
18669 acl_save_exec_prefix="$exec_prefix"
18670 exec_prefix="$acl_final_exec_prefix"
18671 eval x=\"$x\"
18672 exec_prefix="$acl_save_exec_prefix"
18673 prefix="$acl_save_prefix"
18674
18675 if test "X$x" = "X$element"; then
18676 haveit=yes
18677 break
18678 fi
18679 done
18680 if test -z "$haveit"; then
18681 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18682 fi
18683 done
18684
18685
5213506e
RW
18686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18687$as_echo_n "checking for iconv... " >&6; }
18688if test "${am_cv_func_iconv+set}" = set; then :
18689 $as_echo_n "(cached) " >&6
ea54b293
TT
18690else
18691
18692 am_cv_func_iconv="no, consider installing GNU libiconv"
18693 am_cv_lib_iconv=no
97b8365c 18694 if test x$gcc_no_link = xyes; then
5213506e 18695 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
97b8365c 18696fi
5213506e 18697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ea54b293
TT
18698/* end confdefs.h. */
18699#include <stdlib.h>
18700#include <iconv.h>
18701int
18702main ()
18703{
18704iconv_t cd = iconv_open("","");
18705 iconv(cd,NULL,NULL,NULL,NULL);
18706 iconv_close(cd);
18707 ;
18708 return 0;
18709}
18710_ACEOF
5213506e 18711if ac_fn_c_try_link "$LINENO"; then :
ea54b293 18712 am_cv_func_iconv=yes
ea54b293 18713fi
5213506e
RW
18714rm -f core conftest.err conftest.$ac_objext \
18715 conftest$ac_exeext conftest.$ac_ext
ea54b293
TT
18716 if test "$am_cv_func_iconv" != yes; then
18717 am_save_LIBS="$LIBS"
18718 LIBS="$LIBS $LIBICONV"
97b8365c 18719 if test x$gcc_no_link = xyes; then
5213506e 18720 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
97b8365c 18721fi
5213506e 18722cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ea54b293
TT
18723/* end confdefs.h. */
18724#include <stdlib.h>
18725#include <iconv.h>
18726int
18727main ()
18728{
18729iconv_t cd = iconv_open("","");
18730 iconv(cd,NULL,NULL,NULL,NULL);
18731 iconv_close(cd);
18732 ;
18733 return 0;
18734}
18735_ACEOF
5213506e 18736if ac_fn_c_try_link "$LINENO"; then :
ea54b293
TT
18737 am_cv_lib_iconv=yes
18738 am_cv_func_iconv=yes
ea54b293 18739fi
5213506e
RW
18740rm -f core conftest.err conftest.$ac_objext \
18741 conftest$ac_exeext conftest.$ac_ext
ea54b293
TT
18742 LIBS="$am_save_LIBS"
18743 fi
18744
18745fi
5213506e
RW
18746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18747$as_echo "$am_cv_func_iconv" >&6; }
ea54b293
TT
18748 if test "$am_cv_func_iconv" = yes; then
18749
5213506e 18750$as_echo "#define HAVE_ICONV 1" >>confdefs.h
ea54b293
TT
18751
18752 fi
18753 if test "$am_cv_lib_iconv" = yes; then
5213506e
RW
18754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18755$as_echo_n "checking how to link with libiconv... " >&6; }
18756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18757$as_echo "$LIBICONV" >&6; }
ea54b293
TT
18758 else
18759 CPPFLAGS="$am_save_CPPFLAGS"
18760 LIBICONV=
18761 LTLIBICONV=
18762 fi
18763
18764
18765
18766 if test "$am_cv_func_iconv" = yes; then
5213506e
RW
18767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
18768$as_echo_n "checking for iconv declaration... " >&6; }
18769 if test "${am_cv_proto_iconv+set}" = set; then :
18770 $as_echo_n "(cached) " >&6
ea54b293
TT
18771else
18772
5213506e 18773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ea54b293
TT
18774/* end confdefs.h. */
18775
18776#include <stdlib.h>
18777#include <iconv.h>
18778extern
18779#ifdef __cplusplus
18780"C"
18781#endif
18782#if defined(__STDC__) || defined(__cplusplus)
18783size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
18784#else
18785size_t iconv();
18786#endif
18787
18788int
18789main ()
18790{
18791
18792 ;
18793 return 0;
18794}
18795_ACEOF
5213506e 18796if ac_fn_c_try_compile "$LINENO"; then :
ea54b293
TT
18797 am_cv_proto_iconv_arg1=""
18798else
5213506e 18799 am_cv_proto_iconv_arg1="const"
ea54b293 18800fi
5213506e 18801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ea54b293
TT
18802 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);"
18803fi
18804
18805 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5213506e 18806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
ea54b293 18807 }$am_cv_proto_iconv" >&5
5213506e
RW
18808$as_echo "${ac_t:-
18809 }$am_cv_proto_iconv" >&6; }
ea54b293
TT
18810
18811cat >>confdefs.h <<_ACEOF
18812#define ICONV_CONST $am_cv_proto_iconv_arg1
18813_ACEOF
18814
18815 fi
18816
18817
18818 if test "x${GCC}" = xyes; then
18819
97b8365c 18820 WARNING_CFLAGS='-W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long'
ea54b293
TT
18821
18822
c0a781c2
AH
18823 EXTRA_CFLAGS='-fexceptions -fasynchronous-unwind-tables'
18824
18825
97b8365c 18826 STRICT_WARNING_CFLAGS='-Wstrict-prototypes -pedantic'
ea54b293
TT
18827
18828
18829 ERROR_CFLAGS=
18830 if test "x${ENABLE_WERROR}" = xyes; then
18831 ERROR_CFLAGS='-Werror'
18832 fi
18833
18834 fi
18835
18836 if test "x${COMPILE_XMLJ}" = xyes; then
18837
18838 succeeded=no
18839
18840 if test -z "$PKG_CONFIG"; then
cda7fd66
MK
18841 if test -n "$ac_tool_prefix"; then
18842 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18843set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5213506e
RW
18844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18845$as_echo_n "checking for $ac_word... " >&6; }
18846if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
18847 $as_echo_n "(cached) " >&6
ea54b293
TT
18848else
18849 case $PKG_CONFIG in
18850 [\\/]* | ?:[\\/]*)
18851 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18852 ;;
18853 *)
18854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18855for as_dir in $PATH
18856do
18857 IFS=$as_save_IFS
18858 test -z "$as_dir" && as_dir=.
5213506e
RW
18859 for ac_exec_ext in '' $ac_executable_extensions; do
18860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea54b293 18861 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5213506e 18862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ea54b293
TT
18863 break 2
18864 fi
18865done
5213506e
RW
18866 done
18867IFS=$as_save_IFS
ea54b293 18868
ea54b293
TT
18869 ;;
18870esac
18871fi
18872PKG_CONFIG=$ac_cv_path_PKG_CONFIG
ea54b293 18873if test -n "$PKG_CONFIG"; then
5213506e
RW
18874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18875$as_echo "$PKG_CONFIG" >&6; }
ea54b293 18876else
5213506e
RW
18877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18878$as_echo "no" >&6; }
ea54b293
TT
18879fi
18880
5213506e 18881
cda7fd66
MK
18882fi
18883if test -z "$ac_cv_path_PKG_CONFIG"; then
18884 ac_pt_PKG_CONFIG=$PKG_CONFIG
18885 # Extract the first word of "pkg-config", so it can be a program name with args.
18886set dummy pkg-config; ac_word=$2
18887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18888$as_echo_n "checking for $ac_word... " >&6; }
18889if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
18890 $as_echo_n "(cached) " >&6
18891else
18892 case $ac_pt_PKG_CONFIG in
18893 [\\/]* | ?:[\\/]*)
18894 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18895 ;;
18896 *)
18897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18898for as_dir in $PATH
18899do
18900 IFS=$as_save_IFS
18901 test -z "$as_dir" && as_dir=.
18902 for ac_exec_ext in '' $ac_executable_extensions; do
18903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18904 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18906 break 2
18907 fi
18908done
18909 done
18910IFS=$as_save_IFS
18911
18912 ;;
18913esac
18914fi
18915ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18916if test -n "$ac_pt_PKG_CONFIG"; then
18917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18918$as_echo "$ac_pt_PKG_CONFIG" >&6; }
18919else
18920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18921$as_echo "no" >&6; }
18922fi
18923
18924 if test "x$ac_pt_PKG_CONFIG" = x; then
18925 PKG_CONFIG="no"
18926 else
18927 case $cross_compiling:$ac_tool_warned in
18928yes:)
18929{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18930$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18931ac_tool_warned=yes ;;
18932esac
18933 PKG_CONFIG=$ac_pt_PKG_CONFIG
18934 fi
18935else
18936 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18937fi
18938
ea54b293
TT
18939 fi
18940
18941 if test "$PKG_CONFIG" = "no" ; then
18942 echo "*** The pkg-config script could not be found. Make sure it is"
18943 echo "*** in your path, or set the PKG_CONFIG environment variable"
18944 echo "*** to the full path to pkg-config."
18945 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
18946 else
18947 PKG_CONFIG_MIN_VERSION=0.9.0
18948 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5213506e
RW
18949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.8" >&5
18950$as_echo_n "checking for libxml-2.0 >= 2.6.8... " >&6; }
ea54b293
TT
18951
18952 if $PKG_CONFIG --exists "libxml-2.0 >= 2.6.8" ; then
5213506e
RW
18953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18954$as_echo "yes" >&6; }
ea54b293
TT
18955 succeeded=yes
18956
5213506e
RW
18957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XML_CFLAGS" >&5
18958$as_echo_n "checking XML_CFLAGS... " >&6; }
ea54b293 18959 XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.8"`
5213506e
RW
18960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML_CFLAGS" >&5
18961$as_echo "$XML_CFLAGS" >&6; }
ea54b293 18962
5213506e
RW
18963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XML_LIBS" >&5
18964$as_echo_n "checking XML_LIBS... " >&6; }
ea54b293 18965 XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.8"`
5213506e
RW
18966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML_LIBS" >&5
18967$as_echo "$XML_LIBS" >&6; }
ea54b293
TT
18968 else
18969 XML_CFLAGS=""
18970 XML_LIBS=""
18971 ## If we have a custom action on failure, don't print errors, but
18972 ## do set a variable so people can do so.
18973 XML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 >= 2.6.8"`
18974 echo $XML_PKG_ERRORS
18975 fi
18976
18977
18978
18979 else
18980 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18981 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18982 fi
18983 fi
18984
18985 if test $succeeded = yes; then
18986 :
18987 else
5213506e 18988 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
ea54b293
TT
18989 fi
18990
18991
18992 succeeded=no
18993
18994 if test -z "$PKG_CONFIG"; then
cda7fd66
MK
18995 if test -n "$ac_tool_prefix"; then
18996 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18997set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5213506e
RW
18998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18999$as_echo_n "checking for $ac_word... " >&6; }
19000if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
19001 $as_echo_n "(cached) " >&6
ea54b293
TT
19002else
19003 case $PKG_CONFIG in
19004 [\\/]* | ?:[\\/]*)
19005 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19006 ;;
19007 *)
19008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19009for as_dir in $PATH
19010do
19011 IFS=$as_save_IFS
19012 test -z "$as_dir" && as_dir=.
5213506e
RW
19013 for ac_exec_ext in '' $ac_executable_extensions; do
19014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea54b293 19015 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5213506e 19016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ea54b293
TT
19017 break 2
19018 fi
19019done
5213506e
RW
19020 done
19021IFS=$as_save_IFS
ea54b293 19022
ea54b293
TT
19023 ;;
19024esac
19025fi
19026PKG_CONFIG=$ac_cv_path_PKG_CONFIG
ea54b293 19027if test -n "$PKG_CONFIG"; then
5213506e
RW
19028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19029$as_echo "$PKG_CONFIG" >&6; }
ea54b293 19030else
5213506e
RW
19031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19032$as_echo "no" >&6; }
ea54b293
TT
19033fi
19034
5213506e 19035
cda7fd66
MK
19036fi
19037if test -z "$ac_cv_path_PKG_CONFIG"; then
19038 ac_pt_PKG_CONFIG=$PKG_CONFIG
19039 # Extract the first word of "pkg-config", so it can be a program name with args.
19040set dummy pkg-config; ac_word=$2
19041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19042$as_echo_n "checking for $ac_word... " >&6; }
19043if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
19044 $as_echo_n "(cached) " >&6
19045else
19046 case $ac_pt_PKG_CONFIG in
19047 [\\/]* | ?:[\\/]*)
19048 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19049 ;;
19050 *)
19051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19052for as_dir in $PATH
19053do
19054 IFS=$as_save_IFS
19055 test -z "$as_dir" && as_dir=.
19056 for ac_exec_ext in '' $ac_executable_extensions; do
19057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19058 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19060 break 2
19061 fi
19062done
19063 done
19064IFS=$as_save_IFS
19065
19066 ;;
19067esac
19068fi
19069ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19070if test -n "$ac_pt_PKG_CONFIG"; then
19071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19072$as_echo "$ac_pt_PKG_CONFIG" >&6; }
19073else
19074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19075$as_echo "no" >&6; }
19076fi
19077
19078 if test "x$ac_pt_PKG_CONFIG" = x; then
19079 PKG_CONFIG="no"
19080 else
19081 case $cross_compiling:$ac_tool_warned in
19082yes:)
19083{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19084$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19085ac_tool_warned=yes ;;
19086esac
19087 PKG_CONFIG=$ac_pt_PKG_CONFIG
19088 fi
19089else
19090 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19091fi
19092
ea54b293
TT
19093 fi
19094
19095 if test "$PKG_CONFIG" = "no" ; then
19096 echo "*** The pkg-config script could not be found. Make sure it is"
19097 echo "*** in your path, or set the PKG_CONFIG environment variable"
19098 echo "*** to the full path to pkg-config."
19099 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19100 else
19101 PKG_CONFIG_MIN_VERSION=0.9.0
19102 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5213506e
RW
19103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxslt >= 1.1.11" >&5
19104$as_echo_n "checking for libxslt >= 1.1.11... " >&6; }
ea54b293
TT
19105
19106 if $PKG_CONFIG --exists "libxslt >= 1.1.11" ; then
5213506e
RW
19107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19108$as_echo "yes" >&6; }
ea54b293
TT
19109 succeeded=yes
19110
5213506e
RW
19111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XSLT_CFLAGS" >&5
19112$as_echo_n "checking XSLT_CFLAGS... " >&6; }
ea54b293 19113 XSLT_CFLAGS=`$PKG_CONFIG --cflags "libxslt >= 1.1.11"`
5213506e
RW
19114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLT_CFLAGS" >&5
19115$as_echo "$XSLT_CFLAGS" >&6; }
ea54b293 19116
5213506e
RW
19117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XSLT_LIBS" >&5
19118$as_echo_n "checking XSLT_LIBS... " >&6; }
ea54b293 19119 XSLT_LIBS=`$PKG_CONFIG --libs "libxslt >= 1.1.11"`
5213506e
RW
19120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLT_LIBS" >&5
19121$as_echo "$XSLT_LIBS" >&6; }
ea54b293
TT
19122 else
19123 XSLT_CFLAGS=""
19124 XSLT_LIBS=""
19125 ## If we have a custom action on failure, don't print errors, but
19126 ## do set a variable so people can do so.
19127 XSLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxslt >= 1.1.11"`
19128 echo $XSLT_PKG_ERRORS
19129 fi
19130
19131
19132
19133 else
19134 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19135 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19136 fi
19137 fi
19138
19139 if test $succeeded = yes; then
19140 :
19141 else
5213506e 19142 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
ea54b293
TT
19143 fi
19144
19145
19146
19147
19148
19149 fi
19150
19151 if test "x${COMPILE_GTK_PEER}" = xyes; then
5213506e
RW
19152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
19153$as_echo_n "checking for X... " >&6; }
ea54b293
TT
19154
19155
5213506e
RW
19156# Check whether --with-x was given.
19157if test "${with_x+set}" = set; then :
19158 withval=$with_x;
19159fi
ea54b293 19160
ea54b293
TT
19161# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19162if test "x$with_x" = xno; then
19163 # The user explicitly disabled X.
19164 have_x=disabled
19165else
5213506e
RW
19166 case $x_includes,$x_libraries in #(
19167 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
19168 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
19169 $as_echo_n "(cached) " >&6
ea54b293
TT
19170else
19171 # One or both of the vars are not set, and there is no cached value.
19172ac_x_includes=no ac_x_libraries=no
5213506e 19173rm -f -r conftest.dir
ea54b293
TT
19174if mkdir conftest.dir; then
19175 cd conftest.dir
ea54b293 19176 cat >Imakefile <<'_ACEOF'
5213506e
RW
19177incroot:
19178 @echo incroot='${INCROOT}'
19179usrlibdir:
19180 @echo usrlibdir='${USRLIBDIR}'
19181libdir:
19182 @echo libdir='${LIBDIR}'
19183_ACEOF
19184 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
ea54b293 19185 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5213506e
RW
19186 for ac_var in incroot usrlibdir libdir; do
19187 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19188 done
ea54b293 19189 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5213506e
RW
19190 for ac_extension in a so sl dylib la dll; do
19191 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19192 test -f "$ac_im_libdir/libX11.$ac_extension"; then
ea54b293
TT
19193 ac_im_usrlibdir=$ac_im_libdir; break
19194 fi
19195 done
19196 # Screen out bogus values from the imake configuration. They are
19197 # bogus both because they are the default anyway, and because
19198 # using them would break gcc on systems where it needs fixed includes.
19199 case $ac_im_incroot in
5213506e 19200 /usr/include) ac_x_includes= ;;
ea54b293
TT
19201 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19202 esac
19203 case $ac_im_usrlibdir in
5213506e 19204 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
ea54b293
TT
19205 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19206 esac
19207 fi
19208 cd ..
5213506e 19209 rm -f -r conftest.dir
ea54b293
TT
19210fi
19211
19212# Standard set of common directories for X headers.
19213# Check X11 before X11Rn because it is often a symlink to the current release.
19214ac_x_header_dirs='
19215/usr/X11/include
5213506e 19216/usr/X11R7/include
ea54b293
TT
19217/usr/X11R6/include
19218/usr/X11R5/include
19219/usr/X11R4/include
19220
19221/usr/include/X11
5213506e 19222/usr/include/X11R7
ea54b293
TT
19223/usr/include/X11R6
19224/usr/include/X11R5
19225/usr/include/X11R4
19226
19227/usr/local/X11/include
5213506e 19228/usr/local/X11R7/include
ea54b293
TT
19229/usr/local/X11R6/include
19230/usr/local/X11R5/include
19231/usr/local/X11R4/include
19232
19233/usr/local/include/X11
5213506e 19234/usr/local/include/X11R7
ea54b293
TT
19235/usr/local/include/X11R6
19236/usr/local/include/X11R5
19237/usr/local/include/X11R4
19238
19239/usr/X386/include
19240/usr/x386/include
19241/usr/XFree86/include/X11
19242
19243/usr/include
19244/usr/local/include
19245/usr/unsupported/include
19246/usr/athena/include
19247/usr/local/x11r5/include
19248/usr/lpp/Xamples/include
19249
19250/usr/openwin/include
19251/usr/openwin/share/include'
19252
19253if test "$ac_x_includes" = no; then
5213506e 19254 # Guess where to find include files, by looking for Xlib.h.
ea54b293 19255 # First, try using that file with no special directory specified.
5213506e 19256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ea54b293 19257/* end confdefs.h. */
5213506e 19258#include <X11/Xlib.h>
ea54b293 19259_ACEOF
5213506e 19260if ac_fn_c_try_cpp "$LINENO"; then :
ea54b293
TT
19261 # We can compile using X headers with no special include directory.
19262ac_x_includes=
19263else
ea54b293 19264 for ac_dir in $ac_x_header_dirs; do
5213506e 19265 if test -r "$ac_dir/X11/Xlib.h"; then
ea54b293
TT
19266 ac_x_includes=$ac_dir
19267 break
19268 fi
19269done
19270fi
19271rm -f conftest.err conftest.$ac_ext
19272fi # $ac_x_includes = no
19273
19274if test "$ac_x_libraries" = no; then
19275 # Check for the libraries.
19276 # See if we find them without any special options.
19277 # Don't add to $LIBS permanently.
19278 ac_save_LIBS=$LIBS
5213506e 19279 LIBS="-lX11 $LIBS"
97b8365c 19280 if test x$gcc_no_link = xyes; then
5213506e 19281 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
97b8365c 19282fi
5213506e 19283cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ea54b293 19284/* end confdefs.h. */
5213506e 19285#include <X11/Xlib.h>
ea54b293
TT
19286int
19287main ()
19288{
5213506e 19289XrmInitialize ()
ea54b293
TT
19290 ;
19291 return 0;
19292}
19293_ACEOF
5213506e 19294if ac_fn_c_try_link "$LINENO"; then :
ea54b293
TT
19295 LIBS=$ac_save_LIBS
19296# We can link X programs with no special library path.
19297ac_x_libraries=
19298else
5213506e
RW
19299 LIBS=$ac_save_LIBS
19300for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
ea54b293
TT
19301do
19302 # Don't even attempt the hair of trying to link an X program!
5213506e
RW
19303 for ac_extension in a so sl dylib la dll; do
19304 if test -r "$ac_dir/libX11.$ac_extension"; then
ea54b293
TT
19305 ac_x_libraries=$ac_dir
19306 break 2
19307 fi
19308 done
19309done
19310fi
5213506e
RW
19311rm -f core conftest.err conftest.$ac_objext \
19312 conftest$ac_exeext conftest.$ac_ext
ea54b293
TT
19313fi # $ac_x_libraries = no
19314
5213506e
RW
19315case $ac_x_includes,$ac_x_libraries in #(
19316 no,* | *,no | *\'*)
19317 # Didn't find X, or a directory has "'" in its name.
19318 ac_cv_have_x="have_x=no";; #(
19319 *)
19320 # Record where we found X for the cache.
19321 ac_cv_have_x="have_x=yes\
19322 ac_x_includes='$ac_x_includes'\
19323 ac_x_libraries='$ac_x_libraries'"
19324esac
ea54b293 19325fi
5213506e
RW
19326;; #(
19327 *) have_x=yes;;
19328 esac
ea54b293
TT
19329 eval "$ac_cv_have_x"
19330fi # $with_x != no
19331
19332if test "$have_x" != yes; then
5213506e
RW
19333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
19334$as_echo "$have_x" >&6; }
ea54b293
TT
19335 no_x=yes
19336else
19337 # If each of the values was on the command line, it overrides each guess.
19338 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19339 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19340 # Update the cache value to reflect the command line values.
5213506e
RW
19341 ac_cv_have_x="have_x=yes\
19342 ac_x_includes='$x_includes'\
19343 ac_x_libraries='$x_libraries'"
19344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
19345$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
ea54b293
TT
19346fi
19347
19348if test "$no_x" = yes; then
19349 # Not all programs may use this symbol, but it does not hurt to define it.
19350
5213506e 19351$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
ea54b293
TT
19352
19353 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19354else
19355 if test -n "$x_includes"; then
19356 X_CFLAGS="$X_CFLAGS -I$x_includes"
19357 fi
19358
19359 # It would also be nice to do this for all -L options, not just this one.
19360 if test -n "$x_libraries"; then
19361 X_LIBS="$X_LIBS -L$x_libraries"
19362 # For Solaris; some versions of Sun CC require a space after -R and
19363 # others require no space. Words are not sufficient . . . .
5213506e
RW
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
19365$as_echo_n "checking whether -R must be followed by a space... " >&6; }
19366 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19367 ac_xsave_c_werror_flag=$ac_c_werror_flag
19368 ac_c_werror_flag=yes
19369 if test x$gcc_no_link = xyes; then
19370 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
97b8365c 19371fi
5213506e 19372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ea54b293
TT
19373/* end confdefs.h. */
19374
19375int
19376main ()
19377{
02440ca4
TF
19378
19379 ;
19380 return 0;
19381}
19382_ACEOF
5213506e
RW
19383if ac_fn_c_try_link "$LINENO"; then :
19384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19385$as_echo "no" >&6; }
19386 X_LIBS="$X_LIBS -R$x_libraries"
02440ca4 19387else
5213506e
RW
19388 LIBS="$ac_xsave_LIBS -R $x_libraries"
19389 if test x$gcc_no_link = xyes; then
19390 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
02440ca4 19391fi
5213506e 19392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
02440ca4
TF
19393/* end confdefs.h. */
19394
19395int
19396main ()
19397{
19398
19399 ;
19400 return 0;
19401}
19402_ACEOF
5213506e
RW
19403if ac_fn_c_try_link "$LINENO"; then :
19404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19405$as_echo "yes" >&6; }
19406 X_LIBS="$X_LIBS -R $x_libraries"
02440ca4 19407else
5213506e
RW
19408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
19409$as_echo "neither works" >&6; }
02440ca4 19410fi
5213506e
RW
19411rm -f core conftest.err conftest.$ac_objext \
19412 conftest$ac_exeext conftest.$ac_ext
19413fi
19414rm -f core conftest.err conftest.$ac_objext \
19415 conftest$ac_exeext conftest.$ac_ext
19416 ac_c_werror_flag=$ac_xsave_c_werror_flag
19417 LIBS=$ac_xsave_LIBS
02440ca4
TF
19418 fi
19419
19420 # Check for system-dependent libraries X programs must link with.
19421 # Do this before checking for the system-independent R6 libraries
19422 # (-lICE), since we may need -lsocket or whatever for X linking.
19423
19424 if test "$ISC" = yes; then
19425 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19426 else
19427 # Martyn Johnson says this is needed for Ultrix, if the X
19428 # libraries were built with DECnet support. And Karl Berry says
19429 # the Alpha needs dnet_stub (dnet does not exist).
19430 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
97b8365c 19431 if test x$gcc_no_link = xyes; then
5213506e 19432 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
97b8365c 19433fi
5213506e 19434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
02440ca4
TF
19435/* end confdefs.h. */
19436
5213506e
RW
19437/* Override any GCC internal prototype to avoid an error.
19438 Use char because int might match the return type of a GCC
19439 builtin and then its argument prototype would still apply. */
02440ca4
TF
19440#ifdef __cplusplus
19441extern "C"
19442#endif
02440ca4
TF
19443char XOpenDisplay ();
19444int
19445main ()
19446{
5213506e 19447return XOpenDisplay ();
02440ca4
TF
19448 ;
19449 return 0;
19450}
19451_ACEOF
5213506e 19452if ac_fn_c_try_link "$LINENO"; then :
02440ca4 19453
5213506e
RW
19454else
19455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
19456$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
19457if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
19458 $as_echo_n "(cached) " >&6
02440ca4
TF
19459else
19460 ac_check_lib_save_LIBS=$LIBS
19461LIBS="-ldnet $LIBS"
97b8365c 19462if test x$gcc_no_link = xyes; then
5213506e 19463 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
97b8365c 19464fi
5213506e 19465cat confdefs.h - <<_ACEOF >conftest.$ac_ext
02440ca4
TF
19466/* end confdefs.h. */
19467
5213506e
RW
19468/* Override any GCC internal prototype to avoid an error.
19469 Use char because int might match the return type of a GCC
19470 builtin and then its argument prototype would still apply. */
02440ca4
TF
19471#ifdef __cplusplus
19472extern "C"
19473#endif
02440ca4
TF
19474char dnet_ntoa ();
19475int
19476main ()
19477{
5213506e 19478return dnet_ntoa ();
02440ca4
TF
19479 ;
19480 return 0;
19481}
19482_ACEOF
5213506e 19483if ac_fn_c_try_link "$LINENO"; then :
02440ca4
TF
19484 ac_cv_lib_dnet_dnet_ntoa=yes
19485else
5213506e 19486 ac_cv_lib_dnet_dnet_ntoa=no
02440ca4 19487fi
5213506e
RW
19488rm -f core conftest.err conftest.$ac_objext \
19489 conftest$ac_exeext conftest.$ac_ext
02440ca4
TF
19490LIBS=$ac_check_lib_save_LIBS
19491fi
5213506e
RW
19492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19493$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19494if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
02440ca4
TF
19495 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19496fi
19497
19498 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5213506e
RW
19499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
19500$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
19501if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
19502 $as_echo_n "(cached) " >&6
02440ca4
TF
19503else
19504 ac_check_lib_save_LIBS=$LIBS
19505LIBS="-ldnet_stub $LIBS"
97b8365c 19506if test x$gcc_no_link = xyes; then
5213506e 19507 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
97b8365c 19508fi
5213506e 19509cat confdefs.h - <<_ACEOF >conftest.$ac_ext
02440ca4
TF
19510/* end confdefs.h. */
19511
5213506e
RW
19512/* Override any GCC internal prototype to avoid an error.
19513 Use char because int might match the return type of a GCC
19514 builtin and then its argument prototype would still apply. */
02440ca4
TF
19515#ifdef __cplusplus
19516extern "C"
19517#endif
02440ca4
TF
19518char dnet_ntoa ();
19519int
19520main ()
19521{
5213506e 19522return dnet_ntoa ();
ea54b293
TT
19523 ;
19524 return 0;
19525}
19526_ACEOF
5213506e 19527if ac_fn_c_try_link "$LINENO"; then :
02440ca4 19528 ac_cv_lib_dnet_stub_dnet_ntoa=yes
ea54b293 19529else
5213506e 19530 ac_cv_lib_dnet_stub_dnet_ntoa=no
ea54b293 19531fi
5213506e
RW
19532rm -f core conftest.err conftest.$ac_objext \
19533 conftest$ac_exeext conftest.$ac_ext
02440ca4
TF
19534LIBS=$ac_check_lib_save_LIBS
19535fi
5213506e
RW
19536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19537$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
19538if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
02440ca4
TF
19539 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19540fi
19541
19542 fi
19543fi
5213506e
RW
19544rm -f core conftest.err conftest.$ac_objext \
19545 conftest$ac_exeext conftest.$ac_ext
02440ca4
TF
19546 LIBS="$ac_xsave_LIBS"
19547
19548 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19549 # to get the SysV transport functions.
19550 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19551 # needs -lnsl.
19552 # The nsl library prevents programs from opening the X display
19553 # on Irix 5.2, according to T.E. Dickey.
19554 # The functions gethostbyname, getservbyname, and inet_addr are
19555 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5213506e
RW
19556 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19557if test "x$ac_cv_func_gethostbyname" = x""yes; then :
19558
19559fi
19560
19561 if test $ac_cv_func_gethostbyname = no; then
19562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19563$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19564if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
19565 $as_echo_n "(cached) " >&6
02440ca4 19566else
5213506e
RW
19567 ac_check_lib_save_LIBS=$LIBS
19568LIBS="-lnsl $LIBS"
19569if test x$gcc_no_link = xyes; then
19570 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
97b8365c 19571fi
5213506e 19572cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ea54b293 19573/* end confdefs.h. */
02440ca4 19574
5213506e
RW
19575/* Override any GCC internal prototype to avoid an error.
19576 Use char because int might match the return type of a GCC
19577 builtin and then its argument prototype would still apply. */
02440ca4
TF
19578#ifdef __cplusplus
19579extern "C"
02440ca4 19580#endif
02440ca4 19581char gethostbyname ();
ea54b293
TT
19582int
19583main ()
19584{
5213506e 19585return gethostbyname ();
ea54b293
TT
19586 ;
19587 return 0;
19588}
19589_ACEOF
5213506e
RW
19590if ac_fn_c_try_link "$LINENO"; then :
19591 ac_cv_lib_nsl_gethostbyname=yes
ea54b293 19592else
5213506e
RW
19593 ac_cv_lib_nsl_gethostbyname=no
19594fi
19595rm -f core conftest.err conftest.$ac_objext \
19596 conftest$ac_exeext conftest.$ac_ext
19597LIBS=$ac_check_lib_save_LIBS
ea54b293 19598fi
5213506e
RW
19599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19600$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19601if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
19602 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
02440ca4 19603fi
ea54b293 19604
5213506e
RW
19605 if test $ac_cv_lib_nsl_gethostbyname = no; then
19606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
19607$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
19608if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
19609 $as_echo_n "(cached) " >&6
02440ca4
TF
19610else
19611 ac_check_lib_save_LIBS=$LIBS
5213506e 19612LIBS="-lbsd $LIBS"
97b8365c 19613if test x$gcc_no_link = xyes; then
5213506e 19614 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
97b8365c 19615fi
5213506e 19616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ea54b293
TT
19617/* end confdefs.h. */
19618
5213506e
RW
19619/* Override any GCC internal prototype to avoid an error.
19620 Use char because int might match the return type of a GCC
19621 builtin and then its argument prototype would still apply. */
ea54b293
TT
19622#ifdef __cplusplus
19623extern "C"
19624#endif
02440ca4 19625char gethostbyname ();
ea54b293
TT
19626int
19627main ()
19628{
5213506e 19629return gethostbyname ();
ea54b293
TT
19630 ;
19631 return 0;
19632}
19633_ACEOF
5213506e 19634if ac_fn_c_try_link "$LINENO"; then :
02440ca4 19635 ac_cv_lib_bsd_gethostbyname=yes
ea54b293 19636else
5213506e 19637 ac_cv_lib_bsd_gethostbyname=no
ea54b293 19638fi
5213506e
RW
19639rm -f core conftest.err conftest.$ac_objext \
19640 conftest$ac_exeext conftest.$ac_ext
ea54b293
TT
19641LIBS=$ac_check_lib_save_LIBS
19642fi
5213506e
RW
19643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
19644$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
19645if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
02440ca4 19646 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
ea54b293
TT
19647fi
19648
02440ca4
TF
19649 fi
19650 fi
19651
19652 # lieder@skyler.mavd.honeywell.com says without -lsocket,
19653 # socket/setsockopt and other routines are undefined under SCO ODT
19654 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
19655 # on later versions), says Simon Leinen: it contains gethostby*
19656 # variants that don't use the name server (or something). -lsocket
19657 # must be given before -lnsl if both are needed. We assume that
19658 # if connect needs -lnsl, so does gethostbyname.
5213506e
RW
19659 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
19660if test "x$ac_cv_func_connect" = x""yes; then :
ea54b293 19661
ea54b293 19662fi
ea54b293 19663
02440ca4 19664 if test $ac_cv_func_connect = no; then
5213506e
RW
19665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
19666$as_echo_n "checking for connect in -lsocket... " >&6; }
19667if test "${ac_cv_lib_socket_connect+set}" = set; then :
19668 $as_echo_n "(cached) " >&6
ea54b293 19669else
02440ca4
TF
19670 ac_check_lib_save_LIBS=$LIBS
19671LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
97b8365c 19672if test x$gcc_no_link = xyes; then
5213506e 19673 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
97b8365c 19674fi
5213506e 19675cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ea54b293 19676/* end confdefs.h. */
ea54b293 19677
5213506e
RW
19678/* Override any GCC internal prototype to avoid an error.
19679 Use char because int might match the return type of a GCC
19680 builtin and then its argument prototype would still apply. */
ea54b293
TT
19681#ifdef __cplusplus
19682extern "C"
ea54b293 19683#endif
02440ca4 19684char connect ();
ea54b293
TT
19685int
19686main ()
19687{
5213506e 19688return connect ();
ea54b293
TT
19689 ;
19690 return 0;
19691}
19692_ACEOF
5213506e 19693if ac_fn_c_try_link "$LINENO"; then :
02440ca4 19694 ac_cv_lib_socket_connect=yes
ea54b293 19695else
5213506e 19696 ac_cv_lib_socket_connect=no
ea54b293 19697fi
5213506e
RW
19698rm -f core conftest.err conftest.$ac_objext \
19699 conftest$ac_exeext conftest.$ac_ext
02440ca4
TF
19700LIBS=$ac_check_lib_save_LIBS
19701fi
5213506e
RW
19702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
19703$as_echo "$ac_cv_lib_socket_connect" >&6; }
19704if test "x$ac_cv_lib_socket_connect" = x""yes; then :
02440ca4 19705 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
ea54b293 19706fi
ea54b293 19707
02440ca4
TF
19708 fi
19709
19710 # Guillermo Gomez says -lposix is necessary on A/UX.
5213506e
RW
19711 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
19712if test "x$ac_cv_func_remove" = x""yes; then :
ea54b293 19713
ea54b293
TT
19714fi
19715
02440ca4 19716 if test $ac_cv_func_remove = no; then
5213506e
RW
19717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
19718$as_echo_n "checking for remove in -lposix... " >&6; }
19719if test "${ac_cv_lib_posix_remove+set}" = set; then :
19720 $as_echo_n "(cached) " >&6
ea54b293
TT
19721else
19722 ac_check_lib_save_LIBS=$LIBS
02440ca4 19723LIBS="-lposix $LIBS"
97b8365c 19724if test x$gcc_no_link = xyes; then
5213506e 19725 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
97b8365c 19726fi
5213506e 19727cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ea54b293
TT
19728/* end confdefs.h. */
19729
5213506e
RW
19730/* Override any GCC internal prototype to avoid an error.
19731 Use char because int might match the return type of a GCC
19732 builtin and then its argument prototype would still apply. */
ea54b293
TT
19733#ifdef __cplusplus
19734extern "C"
19735#endif
02440ca4 19736char remove ();
ea54b293
TT
19737int
19738main ()
19739{
5213506e 19740return remove ();
ea54b293
TT
19741 ;
19742 return 0;
19743}
19744_ACEOF
5213506e 19745if ac_fn_c_try_link "$LINENO"; then :
02440ca4 19746 ac_cv_lib_posix_remove=yes
ea54b293 19747else
5213506e 19748 ac_cv_lib_posix_remove=no
ea54b293 19749fi
5213506e
RW
19750rm -f core conftest.err conftest.$ac_objext \
19751 conftest$ac_exeext conftest.$ac_ext
ea54b293
TT
19752LIBS=$ac_check_lib_save_LIBS
19753fi
5213506e
RW
19754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
19755$as_echo "$ac_cv_lib_posix_remove" >&6; }
19756if test "x$ac_cv_lib_posix_remove" = x""yes; then :
02440ca4 19757 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
ea54b293
TT
19758fi
19759
ea54b293
TT
19760 fi
19761
02440ca4 19762 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5213506e
RW
19763 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
19764if test "x$ac_cv_func_shmat" = x""yes; then :
ea54b293 19765
ea54b293 19766fi
ea54b293 19767
02440ca4 19768 if test $ac_cv_func_shmat = no; then
5213506e
RW
19769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
19770$as_echo_n "checking for shmat in -lipc... " >&6; }
19771if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
19772 $as_echo_n "(cached) " >&6
ea54b293
TT
19773else
19774 ac_check_lib_save_LIBS=$LIBS
02440ca4 19775LIBS="-lipc $LIBS"
97b8365c 19776if test x$gcc_no_link = xyes; then
5213506e 19777 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
97b8365c 19778fi
5213506e 19779cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ea54b293
TT
19780/* end confdefs.h. */
19781
5213506e
RW
19782/* Override any GCC internal prototype to avoid an error.
19783 Use char because int might match the return type of a GCC
19784 builtin and then its argument prototype would still apply. */
ea54b293
TT
19785#ifdef __cplusplus
19786extern "C"
19787#endif
02440ca4 19788char shmat ();
ea54b293
TT
19789int
19790main ()
19791{
5213506e 19792return shmat ();
ea54b293
TT
19793 ;
19794 return 0;
19795}
19796_ACEOF
5213506e 19797if ac_fn_c_try_link "$LINENO"; then :
02440ca4 19798 ac_cv_lib_ipc_shmat=yes
ea54b293 19799else
5213506e 19800 ac_cv_lib_ipc_shmat=no
ea54b293 19801fi
5213506e
RW
19802rm -f core conftest.err conftest.$ac_objext \
19803 conftest$ac_exeext conftest.$ac_ext
ea54b293
TT
19804LIBS=$ac_check_lib_save_LIBS
19805fi
5213506e
RW
19806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
19807$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
19808if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
02440ca4 19809 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
ea54b293
TT
19810fi
19811
19812 fi
02440ca4 19813 fi
ea54b293 19814
02440ca4
TF
19815 # Check for libraries that X11R6 Xt/Xaw programs need.
19816 ac_save_LDFLAGS=$LDFLAGS
19817 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19818 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19819 # check for ICE first), but we must link in the order -lSM -lICE or
19820 # we get undefined symbols. So assume we have SM if we have ICE.
19821 # These have to be linked with before -lX11, unlike the other
19822 # libraries we check for below, so use a different variable.
19823 # John Interrante, Karl Berry
5213506e
RW
19824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
19825$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
19826if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
19827 $as_echo_n "(cached) " >&6
ea54b293 19828else
02440ca4
TF
19829 ac_check_lib_save_LIBS=$LIBS
19830LIBS="-lICE $X_EXTRA_LIBS $LIBS"
97b8365c 19831if test x$gcc_no_link = xyes; then
5213506e 19832 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
97b8365c 19833fi
5213506e 19834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
02440ca4
TF
19835/* end confdefs.h. */
19836
5213506e
RW
19837/* Override any GCC internal prototype to avoid an error.
19838 Use char because int might match the return type of a GCC
19839 builtin and then its argument prototype would still apply. */
8c0633b7 19840#ifdef __cplusplus
02440ca4 19841extern "C"
ea54b293 19842#endif
02440ca4 19843char IceConnectionNumber ();
ea54b293
TT
19844int
19845main ()
19846{
5213506e 19847return IceConnectionNumber ();
ea54b293
TT
19848 ;
19849 return 0;
19850}
19851_ACEOF
5213506e 19852if ac_fn_c_try_link "$LINENO"; then :
02440ca4 19853 ac_cv_lib_ICE_IceConnectionNumber=yes
ea54b293 19854else
5213506e 19855 ac_cv_lib_ICE_IceConnectionNumber=no
ea54b293 19856fi
5213506e
RW
19857rm -f core conftest.err conftest.$ac_objext \
19858 conftest$ac_exeext conftest.$ac_ext
02440ca4
TF
19859LIBS=$ac_check_lib_save_LIBS
19860fi
5213506e
RW
19861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19862$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
19863if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
02440ca4 19864 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
ea54b293 19865fi
ea54b293 19866
02440ca4
TF
19867 LDFLAGS=$ac_save_LDFLAGS
19868
19869fi
19870
19871 if test "$no_x" = yes; then
5213506e 19872 as_fn_error "GTK+ peers requested but no X library available" "$LINENO" 5
02440ca4 19873 fi
5213506e
RW
19874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestQueryExtension in -lXtst" >&5
19875$as_echo_n "checking for XTestQueryExtension in -lXtst... " >&6; }
19876if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then :
19877 $as_echo_n "(cached) " >&6
ea54b293
TT
19878else
19879 ac_check_lib_save_LIBS=$LIBS
02440ca4 19880LIBS="-lXtst ${X_LIBS} $LIBS"
97b8365c 19881if test x$gcc_no_link = xyes; then
5213506e 19882 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
97b8365c 19883fi
5213506e 19884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ea54b293
TT
19885/* end confdefs.h. */
19886
5213506e
RW
19887/* Override any GCC internal prototype to avoid an error.
19888 Use char because int might match the return type of a GCC
19889 builtin and then its argument prototype would still apply. */
ea54b293
TT
19890#ifdef __cplusplus
19891extern "C"
19892#endif
02440ca4 19893char XTestQueryExtension ();
ea54b293
TT
19894int
19895main ()
19896{
5213506e 19897return XTestQueryExtension ();
ea54b293
TT
19898 ;
19899 return 0;
19900}
19901_ACEOF
5213506e 19902if ac_fn_c_try_link "$LINENO"; then :
02440ca4 19903 ac_cv_lib_Xtst_XTestQueryExtension=yes
ea54b293 19904else
5213506e 19905 ac_cv_lib_Xtst_XTestQueryExtension=no
ea54b293 19906fi
5213506e
RW
19907rm -f core conftest.err conftest.$ac_objext \
19908 conftest$ac_exeext conftest.$ac_ext
ea54b293
TT
19909LIBS=$ac_check_lib_save_LIBS
19910fi
5213506e
RW
19911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
19912$as_echo "$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
19913if test "x$ac_cv_lib_Xtst_XTestQueryExtension" = x""yes; then :
e0441a5b 19914
5213506e 19915$as_echo "#define HAVE_XTEST 1" >>confdefs.h
e0441a5b 19916XTEST_LIBS="$XTEST_LIBS -X11 -lXtst"
02440ca4 19917else
e0441a5b 19918 true
ea54b293
TT
19919fi
19920
ea54b293 19921
02440ca4 19922
e0441a5b 19923
02440ca4
TF
19924 succeeded=no
19925
19926 if test -z "$PKG_CONFIG"; then
cda7fd66
MK
19927 if test -n "$ac_tool_prefix"; then
19928 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19929set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5213506e
RW
19930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19931$as_echo_n "checking for $ac_word... " >&6; }
19932if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
19933 $as_echo_n "(cached) " >&6
02440ca4
TF
19934else
19935 case $PKG_CONFIG in
19936 [\\/]* | ?:[\\/]*)
19937 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19938 ;;
19939 *)
19940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19941for as_dir in $PATH
19942do
19943 IFS=$as_save_IFS
19944 test -z "$as_dir" && as_dir=.
5213506e
RW
19945 for ac_exec_ext in '' $ac_executable_extensions; do
19946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
02440ca4 19947 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5213506e 19948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
02440ca4
TF
19949 break 2
19950 fi
19951done
5213506e
RW
19952 done
19953IFS=$as_save_IFS
02440ca4 19954
02440ca4
TF
19955 ;;
19956esac
19957fi
19958PKG_CONFIG=$ac_cv_path_PKG_CONFIG
02440ca4 19959if test -n "$PKG_CONFIG"; then
5213506e
RW
19960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19961$as_echo "$PKG_CONFIG" >&6; }
02440ca4 19962else
5213506e
RW
19963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19964$as_echo "no" >&6; }
02440ca4
TF
19965fi
19966
5213506e 19967
cda7fd66
MK
19968fi
19969if test -z "$ac_cv_path_PKG_CONFIG"; then
19970 ac_pt_PKG_CONFIG=$PKG_CONFIG
19971 # Extract the first word of "pkg-config", so it can be a program name with args.
19972set dummy pkg-config; ac_word=$2
19973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19974$as_echo_n "checking for $ac_word... " >&6; }
19975if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
19976 $as_echo_n "(cached) " >&6
19977else
19978 case $ac_pt_PKG_CONFIG in
19979 [\\/]* | ?:[\\/]*)
19980 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19981 ;;
19982 *)
19983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19984for as_dir in $PATH
19985do
19986 IFS=$as_save_IFS
19987 test -z "$as_dir" && as_dir=.
19988 for ac_exec_ext in '' $ac_executable_extensions; do
19989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19990 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19992 break 2
19993 fi
19994done
19995 done
19996IFS=$as_save_IFS
19997
19998 ;;
19999esac
20000fi
20001ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20002if test -n "$ac_pt_PKG_CONFIG"; then
20003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
20004$as_echo "$ac_pt_PKG_CONFIG" >&6; }
20005else
20006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20007$as_echo "no" >&6; }
20008fi
20009
20010 if test "x$ac_pt_PKG_CONFIG" = x; then
20011 PKG_CONFIG="no"
20012 else
20013 case $cross_compiling:$ac_tool_warned in
20014yes:)
20015{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20016$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20017ac_tool_warned=yes ;;
20018esac
20019 PKG_CONFIG=$ac_pt_PKG_CONFIG
20020 fi
20021else
20022 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20023fi
20024
02440ca4
TF
20025 fi
20026
20027 if test "$PKG_CONFIG" = "no" ; then
20028 echo "*** The pkg-config script could not be found. Make sure it is"
20029 echo "*** in your path, or set the PKG_CONFIG environment variable"
20030 echo "*** to the full path to pkg-config."
20031 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20032 else
20033 PKG_CONFIG_MIN_VERSION=0.9.0
20034 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5213506e
RW
20035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" >&5
20036$as_echo_n "checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0... " >&6; }
02440ca4
TF
20037
20038 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" ; then
5213506e
RW
20039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20040$as_echo "yes" >&6; }
02440ca4
TF
20041 succeeded=yes
20042
5213506e
RW
20043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
20044$as_echo_n "checking GTK_CFLAGS... " >&6; }
02440ca4 20045 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
5213506e
RW
20046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
20047$as_echo "$GTK_CFLAGS" >&6; }
02440ca4 20048
5213506e
RW
20049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
20050$as_echo_n "checking GTK_LIBS... " >&6; }
02440ca4 20051 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
5213506e
RW
20052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
20053$as_echo "$GTK_LIBS" >&6; }
02440ca4
TF
20054 else
20055 GTK_CFLAGS=""
20056 GTK_LIBS=""
20057 ## If we have a custom action on failure, don't print errors, but
20058 ## do set a variable so people can do so.
20059 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
20060 echo $GTK_PKG_ERRORS
20061 fi
20062
20063
20064
20065 else
20066 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20067 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20068 fi
20069 fi
20070
20071 if test $succeeded = yes; then
20072 :
20073 else
5213506e 20074 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
02440ca4
TF
20075 fi
20076
20077
20078 succeeded=no
20079
20080 if test -z "$PKG_CONFIG"; then
cda7fd66
MK
20081 if test -n "$ac_tool_prefix"; then
20082 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20083set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5213506e
RW
20084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20085$as_echo_n "checking for $ac_word... " >&6; }
20086if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20087 $as_echo_n "(cached) " >&6
02440ca4
TF
20088else
20089 case $PKG_CONFIG in
20090 [\\/]* | ?:[\\/]*)
20091 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20092 ;;
20093 *)
20094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20095for as_dir in $PATH
20096do
20097 IFS=$as_save_IFS
20098 test -z "$as_dir" && as_dir=.
5213506e
RW
20099 for ac_exec_ext in '' $ac_executable_extensions; do
20100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
02440ca4 20101 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5213506e 20102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
02440ca4
TF
20103 break 2
20104 fi
20105done
5213506e
RW
20106 done
20107IFS=$as_save_IFS
02440ca4 20108
02440ca4
TF
20109 ;;
20110esac
20111fi
20112PKG_CONFIG=$ac_cv_path_PKG_CONFIG
02440ca4 20113if test -n "$PKG_CONFIG"; then
5213506e
RW
20114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20115$as_echo "$PKG_CONFIG" >&6; }
02440ca4 20116else
5213506e
RW
20117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20118$as_echo "no" >&6; }
02440ca4
TF
20119fi
20120
5213506e 20121
cda7fd66
MK
20122fi
20123if test -z "$ac_cv_path_PKG_CONFIG"; then
20124 ac_pt_PKG_CONFIG=$PKG_CONFIG
20125 # Extract the first word of "pkg-config", so it can be a program name with args.
20126set dummy pkg-config; ac_word=$2
20127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20128$as_echo_n "checking for $ac_word... " >&6; }
20129if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
20130 $as_echo_n "(cached) " >&6
20131else
20132 case $ac_pt_PKG_CONFIG in
20133 [\\/]* | ?:[\\/]*)
20134 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20135 ;;
20136 *)
20137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20138for as_dir in $PATH
20139do
20140 IFS=$as_save_IFS
20141 test -z "$as_dir" && as_dir=.
20142 for ac_exec_ext in '' $ac_executable_extensions; do
20143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20144 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20146 break 2
20147 fi
20148done
20149 done
20150IFS=$as_save_IFS
20151
20152 ;;
20153esac
20154fi
20155ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20156if test -n "$ac_pt_PKG_CONFIG"; then
20157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
20158$as_echo "$ac_pt_PKG_CONFIG" >&6; }
20159else
20160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20161$as_echo "no" >&6; }
20162fi
20163
20164 if test "x$ac_pt_PKG_CONFIG" = x; then
20165 PKG_CONFIG="no"
20166 else
20167 case $cross_compiling:$ac_tool_warned in
20168yes:)
20169{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20170$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20171ac_tool_warned=yes ;;
20172esac
20173 PKG_CONFIG=$ac_pt_PKG_CONFIG
20174 fi
20175else
20176 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20177fi
20178
02440ca4
TF
20179 fi
20180
20181 if test "$PKG_CONFIG" = "no" ; then
20182 echo "*** The pkg-config script could not be found. Make sure it is"
20183 echo "*** in your path, or set the PKG_CONFIG environment variable"
20184 echo "*** to the full path to pkg-config."
20185 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20186 else
20187 PKG_CONFIG_MIN_VERSION=0.9.0
20188 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5213506e
RW
20189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
20190$as_echo_n "checking for freetype2... " >&6; }
e1bea0c0
MK
20191
20192 if $PKG_CONFIG --exists "freetype2" ; then
5213506e
RW
20193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20194$as_echo "yes" >&6; }
e1bea0c0
MK
20195 succeeded=yes
20196
5213506e
RW
20197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE2_CFLAGS" >&5
20198$as_echo_n "checking FREETYPE2_CFLAGS... " >&6; }
e1bea0c0 20199 FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2"`
5213506e
RW
20200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE2_CFLAGS" >&5
20201$as_echo "$FREETYPE2_CFLAGS" >&6; }
e1bea0c0 20202
5213506e
RW
20203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE2_LIBS" >&5
20204$as_echo_n "checking FREETYPE2_LIBS... " >&6; }
e1bea0c0 20205 FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2"`
5213506e
RW
20206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE2_LIBS" >&5
20207$as_echo "$FREETYPE2_LIBS" >&6; }
e1bea0c0
MK
20208 else
20209 FREETYPE2_CFLAGS=""
20210 FREETYPE2_LIBS=""
20211 ## If we have a custom action on failure, don't print errors, but
20212 ## do set a variable so people can do so.
20213 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
20214 echo $FREETYPE2_PKG_ERRORS
20215 fi
20216
20217
20218
20219 else
20220 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20221 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20222 fi
20223 fi
20224
20225 if test $succeeded = yes; then
20226 :
20227 else
5213506e 20228 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
e1bea0c0
MK
20229 fi
20230
20231
20232 succeeded=no
20233
20234 if test -z "$PKG_CONFIG"; then
cda7fd66
MK
20235 if test -n "$ac_tool_prefix"; then
20236 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20237set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5213506e
RW
20238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20239$as_echo_n "checking for $ac_word... " >&6; }
20240if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20241 $as_echo_n "(cached) " >&6
e1bea0c0
MK
20242else
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
20249for as_dir in $PATH
20250do
20251 IFS=$as_save_IFS
20252 test -z "$as_dir" && as_dir=.
5213506e
RW
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
e1bea0c0 20255 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5213506e 20256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
e1bea0c0
MK
20257 break 2
20258 fi
20259done
5213506e
RW
20260 done
20261IFS=$as_save_IFS
e1bea0c0 20262
e1bea0c0
MK
20263 ;;
20264esac
20265fi
20266PKG_CONFIG=$ac_cv_path_PKG_CONFIG
e1bea0c0 20267if test -n "$PKG_CONFIG"; then
5213506e
RW
20268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20269$as_echo "$PKG_CONFIG" >&6; }
e1bea0c0 20270else
5213506e
RW
20271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20272$as_echo "no" >&6; }
e1bea0c0
MK
20273fi
20274
5213506e 20275
cda7fd66
MK
20276fi
20277if test -z "$ac_cv_path_PKG_CONFIG"; then
20278 ac_pt_PKG_CONFIG=$PKG_CONFIG
20279 # Extract the first word of "pkg-config", so it can be a program name with args.
20280set dummy pkg-config; ac_word=$2
20281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20282$as_echo_n "checking for $ac_word... " >&6; }
20283if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
20284 $as_echo_n "(cached) " >&6
20285else
20286 case $ac_pt_PKG_CONFIG in
20287 [\\/]* | ?:[\\/]*)
20288 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20289 ;;
20290 *)
20291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20292for as_dir in $PATH
20293do
20294 IFS=$as_save_IFS
20295 test -z "$as_dir" && as_dir=.
20296 for ac_exec_ext in '' $ac_executable_extensions; do
20297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20298 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20300 break 2
20301 fi
20302done
20303 done
20304IFS=$as_save_IFS
20305
20306 ;;
20307esac
20308fi
20309ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20310if test -n "$ac_pt_PKG_CONFIG"; then
20311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
20312$as_echo "$ac_pt_PKG_CONFIG" >&6; }
20313else
20314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20315$as_echo "no" >&6; }
20316fi
20317
20318 if test "x$ac_pt_PKG_CONFIG" = x; then
20319 PKG_CONFIG="no"
20320 else
20321 case $cross_compiling:$ac_tool_warned in
20322yes:)
20323{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20324$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20325ac_tool_warned=yes ;;
20326esac
20327 PKG_CONFIG=$ac_pt_PKG_CONFIG
20328 fi
20329else
20330 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20331fi
20332
e1bea0c0
MK
20333 fi
20334
20335 if test "$PKG_CONFIG" = "no" ; then
20336 echo "*** The pkg-config script could not be found. Make sure it is"
20337 echo "*** in your path, or set the PKG_CONFIG environment variable"
20338 echo "*** to the full path to pkg-config."
20339 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20340 else
20341 PKG_CONFIG_MIN_VERSION=0.9.0
20342 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5213506e
RW
20343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pangoft2" >&5
20344$as_echo_n "checking for pangoft2... " >&6; }
02440ca4 20345
e1bea0c0 20346 if $PKG_CONFIG --exists "pangoft2" ; then
5213506e
RW
20347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20348$as_echo "yes" >&6; }
02440ca4
TF
20349 succeeded=yes
20350
5213506e
RW
20351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PANGOFT2_CFLAGS" >&5
20352$as_echo_n "checking PANGOFT2_CFLAGS... " >&6; }
e1bea0c0 20353 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
5213506e
RW
20354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANGOFT2_CFLAGS" >&5
20355$as_echo "$PANGOFT2_CFLAGS" >&6; }
02440ca4 20356
5213506e
RW
20357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PANGOFT2_LIBS" >&5
20358$as_echo_n "checking PANGOFT2_LIBS... " >&6; }
e1bea0c0 20359 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
5213506e
RW
20360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANGOFT2_LIBS" >&5
20361$as_echo "$PANGOFT2_LIBS" >&6; }
02440ca4 20362 else
e1bea0c0
MK
20363 PANGOFT2_CFLAGS=""
20364 PANGOFT2_LIBS=""
02440ca4
TF
20365 ## If we have a custom action on failure, don't print errors, but
20366 ## do set a variable so people can do so.
e1bea0c0
MK
20367 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
20368 echo $PANGOFT2_PKG_ERRORS
02440ca4
TF
20369 fi
20370
20371
20372
20373 else
20374 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20375 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20376 fi
20377 fi
20378
20379 if test $succeeded = yes; then
20380 :
20381 else
5213506e 20382 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
02440ca4
TF
20383 fi
20384
20385
20386 succeeded=no
20387
20388 if test -z "$PKG_CONFIG"; then
cda7fd66
MK
20389 if test -n "$ac_tool_prefix"; then
20390 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20391set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5213506e
RW
20392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20393$as_echo_n "checking for $ac_word... " >&6; }
20394if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20395 $as_echo_n "(cached) " >&6
ea54b293 20396else
02440ca4
TF
20397 case $PKG_CONFIG in
20398 [\\/]* | ?:[\\/]*)
20399 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20400 ;;
20401 *)
20402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20403for as_dir in $PATH
20404do
20405 IFS=$as_save_IFS
20406 test -z "$as_dir" && as_dir=.
5213506e
RW
20407 for ac_exec_ext in '' $ac_executable_extensions; do
20408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
02440ca4 20409 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5213506e 20410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
02440ca4
TF
20411 break 2
20412 fi
20413done
5213506e
RW
20414 done
20415IFS=$as_save_IFS
ea54b293 20416
02440ca4
TF
20417 ;;
20418esac
20419fi
20420PKG_CONFIG=$ac_cv_path_PKG_CONFIG
02440ca4 20421if test -n "$PKG_CONFIG"; then
5213506e
RW
20422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20423$as_echo "$PKG_CONFIG" >&6; }
02440ca4 20424else
5213506e
RW
20425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20426$as_echo "no" >&6; }
02440ca4 20427fi
ea54b293 20428
5213506e 20429
cda7fd66
MK
20430fi
20431if test -z "$ac_cv_path_PKG_CONFIG"; then
20432 ac_pt_PKG_CONFIG=$PKG_CONFIG
20433 # Extract the first word of "pkg-config", so it can be a program name with args.
20434set dummy pkg-config; ac_word=$2
20435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20436$as_echo_n "checking for $ac_word... " >&6; }
20437if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
20438 $as_echo_n "(cached) " >&6
20439else
20440 case $ac_pt_PKG_CONFIG in
20441 [\\/]* | ?:[\\/]*)
20442 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20443 ;;
20444 *)
20445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20446for as_dir in $PATH
20447do
20448 IFS=$as_save_IFS
20449 test -z "$as_dir" && as_dir=.
20450 for ac_exec_ext in '' $ac_executable_extensions; do
20451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20452 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20454 break 2
02440ca4 20455 fi
cda7fd66
MK
20456done
20457 done
20458IFS=$as_save_IFS
ea54b293 20459
cda7fd66
MK
20460 ;;
20461esac
20462fi
20463ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20464if test -n "$ac_pt_PKG_CONFIG"; then
20465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
20466$as_echo "$ac_pt_PKG_CONFIG" >&6; }
20467else
20468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20469$as_echo "no" >&6; }
20470fi
20471
20472 if test "x$ac_pt_PKG_CONFIG" = x; then
20473 PKG_CONFIG="no"
20474 else
20475 case $cross_compiling:$ac_tool_warned in
20476yes:)
20477{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20478$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20479ac_tool_warned=yes ;;
20480esac
20481 PKG_CONFIG=$ac_pt_PKG_CONFIG
20482 fi
20483else
20484 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20485fi
20486
20487 fi
20488
20489 if test "$PKG_CONFIG" = "no" ; then
20490 echo "*** The pkg-config script could not be found. Make sure it is"
20491 echo "*** in your path, or set the PKG_CONFIG environment variable"
20492 echo "*** to the full path to pkg-config."
20493 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
02440ca4
TF
20494 else
20495 PKG_CONFIG_MIN_VERSION=0.9.0
20496 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5213506e
RW
20497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo >= 1.1.8" >&5
20498$as_echo_n "checking for cairo >= 1.1.8... " >&6; }
ea54b293 20499
e1bea0c0 20500 if $PKG_CONFIG --exists "cairo >= 1.1.8" ; then
5213506e
RW
20501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20502$as_echo "yes" >&6; }
02440ca4 20503 succeeded=yes
ea54b293 20504
5213506e
RW
20505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CAIRO_CFLAGS" >&5
20506$as_echo_n "checking CAIRO_CFLAGS... " >&6; }
e1bea0c0 20507 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.1.8"`
5213506e
RW
20508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAIRO_CFLAGS" >&5
20509$as_echo "$CAIRO_CFLAGS" >&6; }
e1bea0c0 20510
5213506e
RW
20511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CAIRO_LIBS" >&5
20512$as_echo_n "checking CAIRO_LIBS... " >&6; }
e1bea0c0 20513 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.1.8"`
5213506e
RW
20514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAIRO_LIBS" >&5
20515$as_echo "$CAIRO_LIBS" >&6; }
02440ca4 20516 else
e1bea0c0
MK
20517 CAIRO_CFLAGS=""
20518 CAIRO_LIBS=""
02440ca4
TF
20519 ## If we have a custom action on failure, don't print errors, but
20520 ## do set a variable so people can do so.
e1bea0c0
MK
20521 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo >= 1.1.8"`
20522 echo $CAIRO_PKG_ERRORS
02440ca4 20523 fi
ea54b293 20524
ea54b293 20525
ea54b293 20526
02440ca4
TF
20527 else
20528 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20529 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20530 fi
ea54b293
TT
20531 fi
20532
02440ca4
TF
20533 if test $succeeded = yes; then
20534 :
20535 else
5213506e 20536 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
02440ca4
TF
20537 fi
20538
5213506e
RW
20539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
20540$as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
20541if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
20542 $as_echo_n "(cached) " >&6
ea54b293
TT
20543else
20544 ac_check_lib_save_LIBS=$LIBS
02440ca4 20545LIBS="-lXrender ${X_LIBS} $LIBS"
97b8365c 20546if test x$gcc_no_link = xyes; then
5213506e 20547 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
97b8365c 20548fi
5213506e 20549cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ea54b293
TT
20550/* end confdefs.h. */
20551
5213506e
RW
20552/* Override any GCC internal prototype to avoid an error.
20553 Use char because int might match the return type of a GCC
20554 builtin and then its argument prototype would still apply. */
ea54b293
TT
20555#ifdef __cplusplus
20556extern "C"
20557#endif
02440ca4 20558char XRenderQueryExtension ();
ea54b293
TT
20559int
20560main ()
20561{
5213506e 20562return XRenderQueryExtension ();
ea54b293
TT
20563 ;
20564 return 0;
20565}
20566_ACEOF
5213506e 20567if ac_fn_c_try_link "$LINENO"; then :
02440ca4 20568 ac_cv_lib_Xrender_XRenderQueryExtension=yes
ea54b293 20569else
5213506e 20570 ac_cv_lib_Xrender_XRenderQueryExtension=no
ea54b293 20571fi
5213506e
RW
20572rm -f core conftest.err conftest.$ac_objext \
20573 conftest$ac_exeext conftest.$ac_ext
ea54b293
TT
20574LIBS=$ac_check_lib_save_LIBS
20575fi
5213506e
RW
20576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
20577$as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
20578if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
02440ca4 20579
5213506e 20580$as_echo "#define HAVE_XRENDER 1" >>confdefs.h
02440ca4
TF
20581X_EXTRA_LIBS="$X_EXTRA_LIBS -lXrender"
20582else
20583 true
ea54b293
TT
20584fi
20585
ea54b293 20586
5213506e
RW
20587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
20588$as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
20589if test "${ac_cv_lib_Xrandr_XRRQueryExtension+set}" = set; then :
20590 $as_echo_n "(cached) " >&6
ea54b293
TT
20591else
20592 ac_check_lib_save_LIBS=$LIBS
02440ca4 20593LIBS="-lXrandr ${X_LIBS} $LIBS"
97b8365c 20594if test x$gcc_no_link = xyes; then
5213506e 20595 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
97b8365c 20596fi
5213506e 20597cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ea54b293
TT
20598/* end confdefs.h. */
20599
5213506e
RW
20600/* Override any GCC internal prototype to avoid an error.
20601 Use char because int might match the return type of a GCC
20602 builtin and then its argument prototype would still apply. */
ea54b293
TT
20603#ifdef __cplusplus
20604extern "C"
20605#endif
02440ca4 20606char XRRQueryExtension ();
ea54b293
TT
20607int
20608main ()
20609{
5213506e 20610return XRRQueryExtension ();
ea54b293
TT
20611 ;
20612 return 0;
20613}
20614_ACEOF
5213506e 20615if ac_fn_c_try_link "$LINENO"; then :
02440ca4 20616 ac_cv_lib_Xrandr_XRRQueryExtension=yes
ea54b293 20617else
5213506e 20618 ac_cv_lib_Xrandr_XRRQueryExtension=no
1ea63ef8 20619fi
5213506e
RW
20620rm -f core conftest.err conftest.$ac_objext \
20621 conftest$ac_exeext conftest.$ac_ext
1ea63ef8
TT
20622LIBS=$ac_check_lib_save_LIBS
20623fi
5213506e
RW
20624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
20625$as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
20626if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = x""yes; then :
02440ca4 20627
5213506e 20628$as_echo "#define HAVE_XRANDR 1" >>confdefs.h
02440ca4 20629X_EXTRA_LIBS="$X_EXTRA_LIBS -lXrandr"
1ea63ef8 20630else
02440ca4 20631 true
8f523f3a
MW
20632fi
20633
20634
02440ca4
TF
20635
20636
20637
20638
20639
20640
20641
ac1ed908
MW
20642 fi
20643
20644 if test "x${COMPILE_GCONF_PEER}" = xyes; then
20645
20646 succeeded=no
20647
20648 if test -z "$PKG_CONFIG"; then
cda7fd66
MK
20649 if test -n "$ac_tool_prefix"; then
20650 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20651set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5213506e
RW
20652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20653$as_echo_n "checking for $ac_word... " >&6; }
20654if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20655 $as_echo_n "(cached) " >&6
ac1ed908
MW
20656else
20657 case $PKG_CONFIG in
20658 [\\/]* | ?:[\\/]*)
20659 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20660 ;;
20661 *)
20662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20663for as_dir in $PATH
20664do
20665 IFS=$as_save_IFS
20666 test -z "$as_dir" && as_dir=.
5213506e
RW
20667 for ac_exec_ext in '' $ac_executable_extensions; do
20668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ac1ed908 20669 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5213506e 20670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ac1ed908
MW
20671 break 2
20672 fi
20673done
5213506e
RW
20674 done
20675IFS=$as_save_IFS
ac1ed908 20676
ac1ed908
MW
20677 ;;
20678esac
20679fi
20680PKG_CONFIG=$ac_cv_path_PKG_CONFIG
ac1ed908 20681if test -n "$PKG_CONFIG"; then
5213506e
RW
20682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20683$as_echo "$PKG_CONFIG" >&6; }
ac1ed908 20684else
5213506e
RW
20685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20686$as_echo "no" >&6; }
ac1ed908
MW
20687fi
20688
5213506e 20689
cda7fd66
MK
20690fi
20691if test -z "$ac_cv_path_PKG_CONFIG"; then
20692 ac_pt_PKG_CONFIG=$PKG_CONFIG
20693 # Extract the first word of "pkg-config", so it can be a program name with args.
20694set dummy pkg-config; ac_word=$2
20695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20696$as_echo_n "checking for $ac_word... " >&6; }
20697if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
20698 $as_echo_n "(cached) " >&6
20699else
20700 case $ac_pt_PKG_CONFIG in
20701 [\\/]* | ?:[\\/]*)
20702 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20703 ;;
20704 *)
20705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20706for as_dir in $PATH
20707do
20708 IFS=$as_save_IFS
20709 test -z "$as_dir" && as_dir=.
20710 for ac_exec_ext in '' $ac_executable_extensions; do
20711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20712 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20714 break 2
20715 fi
20716done
20717 done
20718IFS=$as_save_IFS
20719
20720 ;;
20721esac
20722fi
20723ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20724if test -n "$ac_pt_PKG_CONFIG"; then
20725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
20726$as_echo "$ac_pt_PKG_CONFIG" >&6; }
20727else
20728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20729$as_echo "no" >&6; }
20730fi
20731
20732 if test "x$ac_pt_PKG_CONFIG" = x; then
20733 PKG_CONFIG="no"
20734 else
20735 case $cross_compiling:$ac_tool_warned in
20736yes:)
20737{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20738$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20739ac_tool_warned=yes ;;
20740esac
20741 PKG_CONFIG=$ac_pt_PKG_CONFIG
20742 fi
20743else
20744 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20745fi
20746
ac1ed908
MW
20747 fi
20748
20749 if test "$PKG_CONFIG" = "no" ; then
20750 echo "*** The pkg-config script could not be found. Make sure it is"
20751 echo "*** in your path, or set the PKG_CONFIG environment variable"
20752 echo "*** to the full path to pkg-config."
20753 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20754 else
20755 PKG_CONFIG_MIN_VERSION=0.9.0
20756 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5213506e
RW
20757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.6.0" >&5
20758$as_echo_n "checking for gconf-2.0 >= 2.6.0... " >&6; }
ac1ed908 20759
e1bea0c0 20760 if $PKG_CONFIG --exists "gconf-2.0 >= 2.6.0" ; then
5213506e
RW
20761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20762$as_echo "yes" >&6; }
ac1ed908
MW
20763 succeeded=yes
20764
5213506e
RW
20765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
20766$as_echo_n "checking GCONF_CFLAGS... " >&6; }
e1bea0c0 20767 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.6.0"`
5213506e
RW
20768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
20769$as_echo "$GCONF_CFLAGS" >&6; }
ac1ed908 20770
5213506e
RW
20771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
20772$as_echo_n "checking GCONF_LIBS... " >&6; }
e1bea0c0 20773 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.6.0"`
5213506e
RW
20774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
20775$as_echo "$GCONF_LIBS" >&6; }
ac1ed908
MW
20776 else
20777 GCONF_CFLAGS=""
20778 GCONF_LIBS=""
20779 ## If we have a custom action on failure, don't print errors, but
20780 ## do set a variable so people can do so.
e1bea0c0 20781 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.6.0"`
ac1ed908
MW
20782 echo $GCONF_PKG_ERRORS
20783 fi
20784
20785
20786
20787 else
20788 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20789 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20790 fi
20791 fi
20792
20793 if test $succeeded = yes; then
20794 :
20795 else
5213506e 20796 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
ac1ed908
MW
20797 fi
20798
20799
20800
20801
20802 succeeded=no
20803
20804 if test -z "$PKG_CONFIG"; then
cda7fd66
MK
20805 if test -n "$ac_tool_prefix"; then
20806 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20807set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5213506e
RW
20808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20809$as_echo_n "checking for $ac_word... " >&6; }
20810if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20811 $as_echo_n "(cached) " >&6
ac1ed908
MW
20812else
20813 case $PKG_CONFIG in
20814 [\\/]* | ?:[\\/]*)
20815 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20816 ;;
20817 *)
20818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20819for as_dir in $PATH
20820do
20821 IFS=$as_save_IFS
20822 test -z "$as_dir" && as_dir=.
5213506e
RW
20823 for ac_exec_ext in '' $ac_executable_extensions; do
20824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ac1ed908 20825 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5213506e 20826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ac1ed908
MW
20827 break 2
20828 fi
20829done
5213506e
RW
20830 done
20831IFS=$as_save_IFS
ac1ed908 20832
ac1ed908
MW
20833 ;;
20834esac
20835fi
20836PKG_CONFIG=$ac_cv_path_PKG_CONFIG
ac1ed908 20837if test -n "$PKG_CONFIG"; then
5213506e
RW
20838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20839$as_echo "$PKG_CONFIG" >&6; }
ac1ed908 20840else
5213506e
RW
20841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20842$as_echo "no" >&6; }
ac1ed908
MW
20843fi
20844
5213506e 20845
cda7fd66
MK
20846fi
20847if test -z "$ac_cv_path_PKG_CONFIG"; then
20848 ac_pt_PKG_CONFIG=$PKG_CONFIG
20849 # Extract the first word of "pkg-config", so it can be a program name with args.
20850set dummy pkg-config; ac_word=$2
20851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20852$as_echo_n "checking for $ac_word... " >&6; }
20853if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
20854 $as_echo_n "(cached) " >&6
20855else
20856 case $ac_pt_PKG_CONFIG in
20857 [\\/]* | ?:[\\/]*)
20858 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20859 ;;
20860 *)
20861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20862for as_dir in $PATH
20863do
20864 IFS=$as_save_IFS
20865 test -z "$as_dir" && as_dir=.
20866 for ac_exec_ext in '' $ac_executable_extensions; do
20867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20868 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20870 break 2
20871 fi
20872done
20873 done
20874IFS=$as_save_IFS
20875
20876 ;;
20877esac
20878fi
20879ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20880if test -n "$ac_pt_PKG_CONFIG"; then
20881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
20882$as_echo "$ac_pt_PKG_CONFIG" >&6; }
20883else
20884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20885$as_echo "no" >&6; }
20886fi
20887
20888 if test "x$ac_pt_PKG_CONFIG" = x; then
20889 PKG_CONFIG="no"
20890 else
20891 case $cross_compiling:$ac_tool_warned in
20892yes:)
20893{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20894$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20895ac_tool_warned=yes ;;
20896esac
20897 PKG_CONFIG=$ac_pt_PKG_CONFIG
20898 fi
20899else
20900 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20901fi
20902
ac1ed908
MW
20903 fi
20904
20905 if test "$PKG_CONFIG" = "no" ; then
20906 echo "*** The pkg-config script could not be found. Make sure it is"
20907 echo "*** in your path, or set the PKG_CONFIG environment variable"
20908 echo "*** to the full path to pkg-config."
20909 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20910 else
20911 PKG_CONFIG_MIN_VERSION=0.9.0
20912 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5213506e
RW
20913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-2.0 >= 2.8" >&5
20914$as_echo_n "checking for gdk-2.0 >= 2.8... " >&6; }
ac1ed908
MW
20915
20916 if $PKG_CONFIG --exists "gdk-2.0 >= 2.8" ; then
5213506e
RW
20917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20918$as_echo "yes" >&6; }
ac1ed908
MW
20919 succeeded=yes
20920
5213506e
RW
20921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GDK_CFLAGS" >&5
20922$as_echo_n "checking GDK_CFLAGS... " >&6; }
ac1ed908 20923 GDK_CFLAGS=`$PKG_CONFIG --cflags "gdk-2.0 >= 2.8"`
5213506e
RW
20924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDK_CFLAGS" >&5
20925$as_echo "$GDK_CFLAGS" >&6; }
ac1ed908 20926
5213506e
RW
20927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GDK_LIBS" >&5
20928$as_echo_n "checking GDK_LIBS... " >&6; }
ac1ed908 20929 GDK_LIBS=`$PKG_CONFIG --libs "gdk-2.0 >= 2.8"`
5213506e
RW
20930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDK_LIBS" >&5
20931$as_echo "$GDK_LIBS" >&6; }
ac1ed908
MW
20932 else
20933 GDK_CFLAGS=""
20934 GDK_LIBS=""
20935 ## If we have a custom action on failure, don't print errors, but
20936 ## do set a variable so people can do so.
20937 GDK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gdk-2.0 >= 2.8"`
20938 echo $GDK_PKG_ERRORS
20939 fi
20940
20941
20942
20943 else
20944 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20945 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20946 fi
20947 fi
20948
20949 if test $succeeded = yes; then
20950 :
20951 else
5213506e 20952 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
ac1ed908
MW
20953 fi
20954
20955
20956
20957 USE_GCONF_PREFS_PEER=$enable_default_preferences_peer
20958 if test "$USE_GCONF_PREFS_PEER" = ""; then
e0441a5b 20959 DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory
ac1ed908 20960 fi
02440ca4
TF
20961 fi
20962
f06a83c0
MK
20963 if test "x${COMPILE_GSTREAMER_PEER}" = xyes; then
20964 GST_MAJORMINOR=0.10
20965 GST_REQUIRED=0.10.10
20966
02440ca4 20967
8f523f3a
MW
20968 succeeded=no
20969
20970 if test -z "$PKG_CONFIG"; then
cda7fd66
MK
20971 if test -n "$ac_tool_prefix"; then
20972 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20973set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5213506e
RW
20974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20975$as_echo_n "checking for $ac_word... " >&6; }
20976if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20977 $as_echo_n "(cached) " >&6
8f523f3a
MW
20978else
20979 case $PKG_CONFIG in
20980 [\\/]* | ?:[\\/]*)
20981 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20982 ;;
20983 *)
20984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20985for as_dir in $PATH
20986do
20987 IFS=$as_save_IFS
20988 test -z "$as_dir" && as_dir=.
5213506e
RW
20989 for ac_exec_ext in '' $ac_executable_extensions; do
20990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8f523f3a 20991 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5213506e 20992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8f523f3a
MW
20993 break 2
20994 fi
20995done
5213506e
RW
20996 done
20997IFS=$as_save_IFS
8f523f3a 20998
8f523f3a
MW
20999 ;;
21000esac
21001fi
21002PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8f523f3a 21003if test -n "$PKG_CONFIG"; then
5213506e
RW
21004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21005$as_echo "$PKG_CONFIG" >&6; }
8f523f3a 21006else
5213506e
RW
21007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21008$as_echo "no" >&6; }
8f523f3a
MW
21009fi
21010
5213506e 21011
cda7fd66
MK
21012fi
21013if test -z "$ac_cv_path_PKG_CONFIG"; then
21014 ac_pt_PKG_CONFIG=$PKG_CONFIG
21015 # Extract the first word of "pkg-config", so it can be a program name with args.
21016set dummy pkg-config; ac_word=$2
21017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21018$as_echo_n "checking for $ac_word... " >&6; }
21019if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
21020 $as_echo_n "(cached) " >&6
21021else
21022 case $ac_pt_PKG_CONFIG in
21023 [\\/]* | ?:[\\/]*)
21024 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21025 ;;
21026 *)
21027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21028for as_dir in $PATH
21029do
21030 IFS=$as_save_IFS
21031 test -z "$as_dir" && as_dir=.
21032 for ac_exec_ext in '' $ac_executable_extensions; do
21033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21034 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21036 break 2
21037 fi
21038done
21039 done
21040IFS=$as_save_IFS
21041
21042 ;;
21043esac
21044fi
21045ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21046if test -n "$ac_pt_PKG_CONFIG"; then
21047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
21048$as_echo "$ac_pt_PKG_CONFIG" >&6; }
21049else
21050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21051$as_echo "no" >&6; }
21052fi
21053
21054 if test "x$ac_pt_PKG_CONFIG" = x; then
21055 PKG_CONFIG="no"
21056 else
21057 case $cross_compiling:$ac_tool_warned in
21058yes:)
21059{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21060$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21061ac_tool_warned=yes ;;
21062esac
21063 PKG_CONFIG=$ac_pt_PKG_CONFIG
21064 fi
21065else
21066 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21067fi
21068
8f523f3a
MW
21069 fi
21070
21071 if test "$PKG_CONFIG" = "no" ; then
21072 echo "*** The pkg-config script could not be found. Make sure it is"
21073 echo "*** in your path, or set the PKG_CONFIG environment variable"
21074 echo "*** to the full path to pkg-config."
21075 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21076 else
21077 PKG_CONFIG_MIN_VERSION=0.9.0
21078 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5213506e
RW
21079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
21080$as_echo_n "checking for gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED... " >&6; }
8f523f3a 21081
f06a83c0 21082 if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
5213506e
RW
21083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21084$as_echo "yes" >&6; }
8f523f3a
MW
21085 succeeded=yes
21086
5213506e
RW
21087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_CFLAGS" >&5
21088$as_echo_n "checking GSTREAMER_CFLAGS... " >&6; }
f06a83c0 21089 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
5213506e
RW
21090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_CFLAGS" >&5
21091$as_echo "$GSTREAMER_CFLAGS" >&6; }
f06a83c0 21092
5213506e
RW
21093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_LIBS" >&5
21094$as_echo_n "checking GSTREAMER_LIBS... " >&6; }
f06a83c0 21095 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
5213506e
RW
21096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_LIBS" >&5
21097$as_echo "$GSTREAMER_LIBS" >&6; }
8f523f3a 21098 else
f06a83c0
MK
21099 GSTREAMER_CFLAGS=""
21100 GSTREAMER_LIBS=""
8f523f3a
MW
21101 ## If we have a custom action on failure, don't print errors, but
21102 ## do set a variable so people can do so.
f06a83c0
MK
21103 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
21104 echo $GSTREAMER_PKG_ERRORS
8f523f3a
MW
21105 fi
21106
21107
21108
21109 else
21110 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21111 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21112 fi
21113 fi
21114
21115 if test $succeeded = yes; then
f06a83c0 21116 :
8f523f3a 21117 else
5213506e 21118 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
02440ca4
TF
21119 fi
21120
02440ca4 21121
02440ca4 21122
f06a83c0
MK
21123
21124
21125 succeeded=no
21126
21127 if test -z "$PKG_CONFIG"; then
cda7fd66
MK
21128 if test -n "$ac_tool_prefix"; then
21129 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21130set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5213506e
RW
21131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21132$as_echo_n "checking for $ac_word... " >&6; }
21133if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21134 $as_echo_n "(cached) " >&6
02440ca4 21135else
f06a83c0
MK
21136 case $PKG_CONFIG in
21137 [\\/]* | ?:[\\/]*)
21138 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21139 ;;
21140 *)
21141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
02440ca4
TF
21142for as_dir in $PATH
21143do
21144 IFS=$as_save_IFS
21145 test -z "$as_dir" && as_dir=.
5213506e
RW
21146 for ac_exec_ext in '' $ac_executable_extensions; do
21147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f06a83c0 21148 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5213506e 21149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
02440ca4
TF
21150 break 2
21151 fi
21152done
5213506e
RW
21153 done
21154IFS=$as_save_IFS
02440ca4 21155
f06a83c0
MK
21156 ;;
21157esac
ac1ed908 21158fi
f06a83c0 21159PKG_CONFIG=$ac_cv_path_PKG_CONFIG
f06a83c0 21160if test -n "$PKG_CONFIG"; then
5213506e
RW
21161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21162$as_echo "$PKG_CONFIG" >&6; }
ac1ed908 21163else
5213506e
RW
21164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21165$as_echo "no" >&6; }
ac1ed908
MW
21166fi
21167
5213506e 21168
cda7fd66
MK
21169fi
21170if test -z "$ac_cv_path_PKG_CONFIG"; then
21171 ac_pt_PKG_CONFIG=$PKG_CONFIG
21172 # Extract the first word of "pkg-config", so it can be a program name with args.
21173set dummy pkg-config; ac_word=$2
21174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21175$as_echo_n "checking for $ac_word... " >&6; }
21176if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
21177 $as_echo_n "(cached) " >&6
21178else
21179 case $ac_pt_PKG_CONFIG in
21180 [\\/]* | ?:[\\/]*)
21181 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21182 ;;
21183 *)
21184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21185for as_dir in $PATH
21186do
21187 IFS=$as_save_IFS
21188 test -z "$as_dir" && as_dir=.
21189 for ac_exec_ext in '' $ac_executable_extensions; do
21190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21191 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21193 break 2
21194 fi
21195done
21196 done
21197IFS=$as_save_IFS
21198
21199 ;;
21200esac
21201fi
21202ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21203if test -n "$ac_pt_PKG_CONFIG"; then
21204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
21205$as_echo "$ac_pt_PKG_CONFIG" >&6; }
21206else
21207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21208$as_echo "no" >&6; }
21209fi
21210
21211 if test "x$ac_pt_PKG_CONFIG" = x; then
21212 PKG_CONFIG="no"
21213 else
21214 case $cross_compiling:$ac_tool_warned in
21215yes:)
21216{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21217$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21218ac_tool_warned=yes ;;
21219esac
21220 PKG_CONFIG=$ac_pt_PKG_CONFIG
21221 fi
21222else
21223 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21224fi
21225
f06a83c0
MK
21226 fi
21227
21228 if test "$PKG_CONFIG" = "no" ; then
21229 echo "*** The pkg-config script could not be found. Make sure it is"
21230 echo "*** in your path, or set the PKG_CONFIG environment variable"
21231 echo "*** to the full path to pkg-config."
21232 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21233 else
21234 PKG_CONFIG_MIN_VERSION=0.9.0
21235 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5213506e
RW
21236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
21237$as_echo_n "checking for gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED... " >&6; }
f06a83c0
MK
21238
21239 if $PKG_CONFIG --exists "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
5213506e
RW
21240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21241$as_echo "yes" >&6; }
f06a83c0
MK
21242 succeeded=yes
21243
5213506e
RW
21244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_BASE_CFLAGS" >&5
21245$as_echo_n "checking GSTREAMER_BASE_CFLAGS... " >&6; }
f06a83c0 21246 GSTREAMER_BASE_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
5213506e
RW
21247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_BASE_CFLAGS" >&5
21248$as_echo "$GSTREAMER_BASE_CFLAGS" >&6; }
f06a83c0 21249
5213506e
RW
21250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_BASE_LIBS" >&5
21251$as_echo_n "checking GSTREAMER_BASE_LIBS... " >&6; }
f06a83c0 21252 GSTREAMER_BASE_LIBS=`$PKG_CONFIG --libs "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
5213506e
RW
21253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_BASE_LIBS" >&5
21254$as_echo "$GSTREAMER_BASE_LIBS" >&6; }
f06a83c0
MK
21255 else
21256 GSTREAMER_BASE_CFLAGS=""
21257 GSTREAMER_BASE_LIBS=""
21258 ## If we have a custom action on failure, don't print errors, but
21259 ## do set a variable so people can do so.
21260 GSTREAMER_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
21261 echo $GSTREAMER_BASE_PKG_ERRORS
21262 fi
21263
21264
21265
21266 else
21267 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21268 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21269 fi
21270 fi
21271
21272 if test $succeeded = yes; then
21273 :
21274 else
5213506e 21275 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
f06a83c0
MK
21276 fi
21277
21278
21279
21280
21281
21282 succeeded=no
21283
21284 if test -z "$PKG_CONFIG"; then
cda7fd66
MK
21285 if test -n "$ac_tool_prefix"; then
21286 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21287set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5213506e
RW
21288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21289$as_echo_n "checking for $ac_word... " >&6; }
21290if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21291 $as_echo_n "(cached) " >&6
f06a83c0
MK
21292else
21293 case $PKG_CONFIG in
21294 [\\/]* | ?:[\\/]*)
21295 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21296 ;;
21297 *)
21298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21299for as_dir in $PATH
21300do
21301 IFS=$as_save_IFS
21302 test -z "$as_dir" && as_dir=.
5213506e
RW
21303 for ac_exec_ext in '' $ac_executable_extensions; do
21304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f06a83c0 21305 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5213506e 21306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f06a83c0
MK
21307 break 2
21308 fi
21309done
5213506e
RW
21310 done
21311IFS=$as_save_IFS
f06a83c0 21312
f06a83c0
MK
21313 ;;
21314esac
21315fi
21316PKG_CONFIG=$ac_cv_path_PKG_CONFIG
f06a83c0 21317if test -n "$PKG_CONFIG"; then
5213506e
RW
21318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21319$as_echo "$PKG_CONFIG" >&6; }
f06a83c0 21320else
5213506e
RW
21321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21322$as_echo "no" >&6; }
f06a83c0
MK
21323fi
21324
5213506e 21325
cda7fd66
MK
21326fi
21327if test -z "$ac_cv_path_PKG_CONFIG"; then
21328 ac_pt_PKG_CONFIG=$PKG_CONFIG
21329 # Extract the first word of "pkg-config", so it can be a program name with args.
21330set dummy pkg-config; ac_word=$2
21331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21332$as_echo_n "checking for $ac_word... " >&6; }
21333if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
21334 $as_echo_n "(cached) " >&6
21335else
21336 case $ac_pt_PKG_CONFIG in
21337 [\\/]* | ?:[\\/]*)
21338 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21339 ;;
21340 *)
21341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21342for as_dir in $PATH
21343do
21344 IFS=$as_save_IFS
21345 test -z "$as_dir" && as_dir=.
21346 for ac_exec_ext in '' $ac_executable_extensions; do
21347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21348 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21350 break 2
21351 fi
21352done
21353 done
21354IFS=$as_save_IFS
21355
21356 ;;
21357esac
21358fi
21359ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21360if test -n "$ac_pt_PKG_CONFIG"; then
21361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
21362$as_echo "$ac_pt_PKG_CONFIG" >&6; }
21363else
21364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21365$as_echo "no" >&6; }
21366fi
21367
21368 if test "x$ac_pt_PKG_CONFIG" = x; then
21369 PKG_CONFIG="no"
21370 else
21371 case $cross_compiling:$ac_tool_warned in
21372yes:)
21373{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21374$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21375ac_tool_warned=yes ;;
21376esac
21377 PKG_CONFIG=$ac_pt_PKG_CONFIG
21378 fi
21379else
21380 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21381fi
21382
f06a83c0
MK
21383 fi
21384
21385 if test "$PKG_CONFIG" = "no" ; then
21386 echo "*** The pkg-config script could not be found. Make sure it is"
21387 echo "*** in your path, or set the PKG_CONFIG environment variable"
21388 echo "*** to the full path to pkg-config."
21389 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21390 else
21391 PKG_CONFIG_MIN_VERSION=0.9.0
21392 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5213506e
RW
21393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
21394$as_echo_n "checking for gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED... " >&6; }
f06a83c0
MK
21395
21396 if $PKG_CONFIG --exists "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
5213506e
RW
21397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21398$as_echo "yes" >&6; }
f06a83c0
MK
21399 succeeded=yes
21400
5213506e
RW
21401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_PLUGINS_BASE_CFLAGS" >&5
21402$as_echo_n "checking GSTREAMER_PLUGINS_BASE_CFLAGS... " >&6; }
f06a83c0 21403 GSTREAMER_PLUGINS_BASE_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
5213506e
RW
21404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_PLUGINS_BASE_CFLAGS" >&5
21405$as_echo "$GSTREAMER_PLUGINS_BASE_CFLAGS" >&6; }
f06a83c0 21406
5213506e
RW
21407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_PLUGINS_BASE_LIBS" >&5
21408$as_echo_n "checking GSTREAMER_PLUGINS_BASE_LIBS... " >&6; }
f06a83c0 21409 GSTREAMER_PLUGINS_BASE_LIBS=`$PKG_CONFIG --libs "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
5213506e
RW
21410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_PLUGINS_BASE_LIBS" >&5
21411$as_echo "$GSTREAMER_PLUGINS_BASE_LIBS" >&6; }
f06a83c0
MK
21412 else
21413 GSTREAMER_PLUGINS_BASE_CFLAGS=""
21414 GSTREAMER_PLUGINS_BASE_LIBS=""
21415 ## If we have a custom action on failure, don't print errors, but
21416 ## do set a variable so people can do so.
21417 GSTREAMER_PLUGINS_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
21418 echo $GSTREAMER_PLUGINS_BASE_PKG_ERRORS
21419 fi
21420
21421
21422
21423 else
21424 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21425 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21426 fi
21427 fi
21428
21429 if test $succeeded = yes; then
21430 :
21431 else
5213506e 21432 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
f06a83c0
MK
21433 fi
21434
21435
21436
21437
21438 GST_PLUGIN_LDFLAGS='-module -avoid-version -Wno-unused-parameter -no-undefined'
21439
21440
e0441a5b
MK
21441
21442 succeeded=no
21443
21444 if test -z "$PKG_CONFIG"; then
cda7fd66
MK
21445 if test -n "$ac_tool_prefix"; then
21446 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21447set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5213506e
RW
21448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21449$as_echo_n "checking for $ac_word... " >&6; }
21450if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21451 $as_echo_n "(cached) " >&6
e0441a5b
MK
21452else
21453 case $PKG_CONFIG in
21454 [\\/]* | ?:[\\/]*)
21455 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21456 ;;
21457 *)
21458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21459for as_dir in $PATH
21460do
21461 IFS=$as_save_IFS
21462 test -z "$as_dir" && as_dir=.
5213506e
RW
21463 for ac_exec_ext in '' $ac_executable_extensions; do
21464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
e0441a5b 21465 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5213506e 21466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
e0441a5b
MK
21467 break 2
21468 fi
21469done
5213506e
RW
21470 done
21471IFS=$as_save_IFS
e0441a5b 21472
e0441a5b
MK
21473 ;;
21474esac
21475fi
21476PKG_CONFIG=$ac_cv_path_PKG_CONFIG
e0441a5b 21477if test -n "$PKG_CONFIG"; then
5213506e
RW
21478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21479$as_echo "$PKG_CONFIG" >&6; }
e0441a5b 21480else
5213506e
RW
21481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21482$as_echo "no" >&6; }
e0441a5b
MK
21483fi
21484
5213506e 21485
cda7fd66
MK
21486fi
21487if test -z "$ac_cv_path_PKG_CONFIG"; then
21488 ac_pt_PKG_CONFIG=$PKG_CONFIG
21489 # Extract the first word of "pkg-config", so it can be a program name with args.
21490set dummy pkg-config; ac_word=$2
21491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21492$as_echo_n "checking for $ac_word... " >&6; }
21493if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
21494 $as_echo_n "(cached) " >&6
21495else
21496 case $ac_pt_PKG_CONFIG in
21497 [\\/]* | ?:[\\/]*)
21498 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21499 ;;
21500 *)
21501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21502for as_dir in $PATH
21503do
21504 IFS=$as_save_IFS
21505 test -z "$as_dir" && as_dir=.
21506 for ac_exec_ext in '' $ac_executable_extensions; do
21507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21508 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21510 break 2
21511 fi
21512done
21513 done
21514IFS=$as_save_IFS
21515
21516 ;;
21517esac
21518fi
21519ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21520if test -n "$ac_pt_PKG_CONFIG"; then
21521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
21522$as_echo "$ac_pt_PKG_CONFIG" >&6; }
21523else
21524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21525$as_echo "no" >&6; }
21526fi
21527
21528 if test "x$ac_pt_PKG_CONFIG" = x; then
21529 PKG_CONFIG="no"
21530 else
21531 case $cross_compiling:$ac_tool_warned in
21532yes:)
21533{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21534$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21535ac_tool_warned=yes ;;
21536esac
21537 PKG_CONFIG=$ac_pt_PKG_CONFIG
21538 fi
21539else
21540 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21541fi
21542
21543 fi
21544
21545 if test "$PKG_CONFIG" = "no" ; then
21546 echo "*** The pkg-config script could not be found. Make sure it is"
21547 echo "*** in your path, or set the PKG_CONFIG environment variable"
21548 echo "*** to the full path to pkg-config."
21549 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21550 else
21551 PKG_CONFIG_MIN_VERSION=0.9.0
21552 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-2.0 >= 2.8" >&5
21554$as_echo_n "checking for gdk-2.0 >= 2.8... " >&6; }
21555
21556 if $PKG_CONFIG --exists "gdk-2.0 >= 2.8" ; then
21557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21558$as_echo "yes" >&6; }
e0441a5b
MK
21559 succeeded=yes
21560
5213506e
RW
21561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GDK_CFLAGS" >&5
21562$as_echo_n "checking GDK_CFLAGS... " >&6; }
e0441a5b 21563 GDK_CFLAGS=`$PKG_CONFIG --cflags "gdk-2.0 >= 2.8"`
5213506e
RW
21564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDK_CFLAGS" >&5
21565$as_echo "$GDK_CFLAGS" >&6; }
e0441a5b 21566
5213506e
RW
21567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GDK_LIBS" >&5
21568$as_echo_n "checking GDK_LIBS... " >&6; }
e0441a5b 21569 GDK_LIBS=`$PKG_CONFIG --libs "gdk-2.0 >= 2.8"`
5213506e
RW
21570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDK_LIBS" >&5
21571$as_echo "$GDK_LIBS" >&6; }
e0441a5b
MK
21572 else
21573 GDK_CFLAGS=""
21574 GDK_LIBS=""
21575 ## If we have a custom action on failure, don't print errors, but
21576 ## do set a variable so people can do so.
21577 GDK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gdk-2.0 >= 2.8"`
21578 echo $GDK_PKG_ERRORS
21579 fi
21580
21581
21582
21583 else
21584 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21585 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21586 fi
21587 fi
21588
21589 if test $succeeded = yes; then
21590 :
21591 else
5213506e 21592 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
e0441a5b
MK
21593 fi
21594
21595
21596
21597
f06a83c0
MK
21598 GSTREAMER_FILE_READER=gnu.javax.sound.sampled.gstreamer.io.GstAudioFileReader
21599 GSTREAMER_MIXER_PROVIDER=gnu.javax.sound.sampled.gstreamer.GStreamerMixerProvider
21600 fi
21601
21602
21603
21604 if test "x${COMPILE_QT_PEER}" = xyes; then
21605
21606 succeeded=no
21607
21608 if test -z "$PKG_CONFIG"; then
cda7fd66
MK
21609 if test -n "$ac_tool_prefix"; then
21610 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21611set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5213506e
RW
21612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21613$as_echo_n "checking for $ac_word... " >&6; }
21614if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21615 $as_echo_n "(cached) " >&6
f06a83c0
MK
21616else
21617 case $PKG_CONFIG in
21618 [\\/]* | ?:[\\/]*)
21619 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21620 ;;
21621 *)
21622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21623for as_dir in $PATH
21624do
21625 IFS=$as_save_IFS
21626 test -z "$as_dir" && as_dir=.
5213506e
RW
21627 for ac_exec_ext in '' $ac_executable_extensions; do
21628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f06a83c0 21629 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5213506e 21630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f06a83c0
MK
21631 break 2
21632 fi
21633done
5213506e
RW
21634 done
21635IFS=$as_save_IFS
f06a83c0 21636
f06a83c0
MK
21637 ;;
21638esac
21639fi
21640PKG_CONFIG=$ac_cv_path_PKG_CONFIG
f06a83c0 21641if test -n "$PKG_CONFIG"; then
5213506e
RW
21642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21643$as_echo "$PKG_CONFIG" >&6; }
f06a83c0 21644else
5213506e
RW
21645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21646$as_echo "no" >&6; }
f06a83c0
MK
21647fi
21648
5213506e 21649
cda7fd66
MK
21650fi
21651if test -z "$ac_cv_path_PKG_CONFIG"; then
21652 ac_pt_PKG_CONFIG=$PKG_CONFIG
21653 # Extract the first word of "pkg-config", so it can be a program name with args.
21654set dummy pkg-config; ac_word=$2
21655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21656$as_echo_n "checking for $ac_word... " >&6; }
21657if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
21658 $as_echo_n "(cached) " >&6
21659else
21660 case $ac_pt_PKG_CONFIG in
21661 [\\/]* | ?:[\\/]*)
21662 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21663 ;;
21664 *)
21665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21666for as_dir in $PATH
21667do
21668 IFS=$as_save_IFS
21669 test -z "$as_dir" && as_dir=.
21670 for ac_exec_ext in '' $ac_executable_extensions; do
21671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21672 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21674 break 2
21675 fi
21676done
21677 done
21678IFS=$as_save_IFS
21679
21680 ;;
21681esac
21682fi
21683ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21684if test -n "$ac_pt_PKG_CONFIG"; then
21685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
21686$as_echo "$ac_pt_PKG_CONFIG" >&6; }
21687else
21688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21689$as_echo "no" >&6; }
21690fi
21691
21692 if test "x$ac_pt_PKG_CONFIG" = x; then
21693 PKG_CONFIG="no"
21694 else
21695 case $cross_compiling:$ac_tool_warned in
21696yes:)
21697{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21698$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21699ac_tool_warned=yes ;;
21700esac
21701 PKG_CONFIG=$ac_pt_PKG_CONFIG
21702 fi
21703else
21704 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21705fi
21706
f06a83c0
MK
21707 fi
21708
21709 if test "$PKG_CONFIG" = "no" ; then
21710 echo "*** The pkg-config script could not be found. Make sure it is"
21711 echo "*** in your path, or set the PKG_CONFIG environment variable"
21712 echo "*** to the full path to pkg-config."
21713 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21714 else
21715 PKG_CONFIG_MIN_VERSION=0.9.0
21716 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5213506e
RW
21717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QtCore QtGui >= 4.1.0" >&5
21718$as_echo_n "checking for QtCore QtGui >= 4.1.0... " >&6; }
f06a83c0
MK
21719
21720 if $PKG_CONFIG --exists "QtCore QtGui >= 4.1.0" ; then
5213506e
RW
21721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21722$as_echo "yes" >&6; }
f06a83c0
MK
21723 succeeded=yes
21724
5213506e
RW
21725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking QT_CFLAGS" >&5
21726$as_echo_n "checking QT_CFLAGS... " >&6; }
f06a83c0 21727 QT_CFLAGS=`$PKG_CONFIG --cflags "QtCore QtGui >= 4.1.0"`
5213506e
RW
21728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CFLAGS" >&5
21729$as_echo "$QT_CFLAGS" >&6; }
f06a83c0 21730
5213506e
RW
21731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking QT_LIBS" >&5
21732$as_echo_n "checking QT_LIBS... " >&6; }
f06a83c0 21733 QT_LIBS=`$PKG_CONFIG --libs "QtCore QtGui >= 4.1.0"`
5213506e
RW
21734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_LIBS" >&5
21735$as_echo "$QT_LIBS" >&6; }
f06a83c0
MK
21736 else
21737 QT_CFLAGS=""
21738 QT_LIBS=""
21739 ## If we have a custom action on failure, don't print errors, but
21740 ## do set a variable so people can do so.
21741 QT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtCore QtGui >= 4.1.0"`
21742
21743 fi
21744
21745
21746
21747 else
21748 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21749 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21750 fi
21751 fi
21752
21753 if test $succeeded = yes; then
21754 HAVE_QT4="yes"
21755 else
21756 HAVE_QT4="no"
21757 fi
21758
21759 if test "x$HAVE_QT4" = "xyes"; then
21760 QT_INCLUDE_DIR=`$PKG_CONFIG --variable=includedir QtGui`
21761 EXTRA_QT_INCLUDE_DIR="$QT_INCLUDE_DIR/Qt"
5213506e
RW
21762 as_ac_File=`$as_echo "ac_cv_file_$QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
21763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $QT_INCLUDE_DIR/QWidget" >&5
21764$as_echo_n "checking for $QT_INCLUDE_DIR/QWidget... " >&6; }
21765if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
21766 $as_echo_n "(cached) " >&6
f06a83c0
MK
21767else
21768 test "$cross_compiling" = yes &&
5213506e 21769 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
f06a83c0
MK
21770if test -r "$QT_INCLUDE_DIR/QWidget"; then
21771 eval "$as_ac_File=yes"
21772else
21773 eval "$as_ac_File=no"
21774fi
21775fi
5213506e
RW
21776eval ac_res=\$$as_ac_File
21777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21778$as_echo "$ac_res" >&6; }
21779eval as_val=\$$as_ac_File
21780 if test "x$as_val" = x""yes; then :
21781 { $as_echo "$as_me:${as_lineno-$LINENO}: No extra QT_INCLUDE_DIR needed" >&5
21782$as_echo "$as_me: No extra QT_INCLUDE_DIR needed" >&6;}
f06a83c0 21783else
5213506e
RW
21784 as_ac_File=`$as_echo "ac_cv_file_$EXTRA_QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
21785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $EXTRA_QT_INCLUDE_DIR/QWidget" >&5
21786$as_echo_n "checking for $EXTRA_QT_INCLUDE_DIR/QWidget... " >&6; }
21787if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
21788 $as_echo_n "(cached) " >&6
f06a83c0
MK
21789else
21790 test "$cross_compiling" = yes &&
5213506e 21791 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
f06a83c0
MK
21792if test -r "$EXTRA_QT_INCLUDE_DIR/QWidget"; then
21793 eval "$as_ac_File=yes"
21794else
21795 eval "$as_ac_File=no"
21796fi
21797fi
5213506e
RW
21798eval ac_res=\$$as_ac_File
21799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21800$as_echo "$ac_res" >&6; }
21801eval as_val=\$$as_ac_File
21802 if test "x$as_val" = x""yes; then :
f06a83c0
MK
21803 QT_CFLAGS="$QT_CFLAGS -I$EXTRA_QT_INCLUDE_DIR"
21804else
5213506e
RW
21805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: QWidget not found" >&5
21806$as_echo "$as_me: WARNING: QWidget not found" >&2;}
f06a83c0
MK
21807fi
21808
21809fi
21810
21811 # Extract the first word of "moc", so it can be a program name with args.
21812set dummy moc; ac_word=$2
5213506e
RW
21813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21814$as_echo_n "checking for $ac_word... " >&6; }
21815if test "${ac_cv_prog_MOC+set}" = set; then :
21816 $as_echo_n "(cached) " >&6
f06a83c0
MK
21817else
21818 if test -n "$MOC"; then
21819 ac_cv_prog_MOC="$MOC" # Let the user override the test.
21820else
21821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21822for as_dir in $PATH
21823do
21824 IFS=$as_save_IFS
21825 test -z "$as_dir" && as_dir=.
5213506e
RW
21826 for ac_exec_ext in '' $ac_executable_extensions; do
21827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f06a83c0 21828 ac_cv_prog_MOC="moc"
5213506e 21829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
f06a83c0
MK
21830 break 2
21831 fi
21832done
5213506e
RW
21833 done
21834IFS=$as_save_IFS
f06a83c0
MK
21835
21836fi
21837fi
21838MOC=$ac_cv_prog_MOC
21839if test -n "$MOC"; then
5213506e
RW
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
21841$as_echo "$MOC" >&6; }
f06a83c0 21842else
5213506e
RW
21843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21844$as_echo "no" >&6; }
f06a83c0
MK
21845fi
21846
5213506e 21847
f06a83c0
MK
21848 # Extract the first word of "moc-qt4", so it can be a program name with args.
21849set dummy moc-qt4; ac_word=$2
5213506e
RW
21850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21851$as_echo_n "checking for $ac_word... " >&6; }
a1906e8b 21852if test "${ac_cv_prog_MOC4+set}" = set; then :
5213506e 21853 $as_echo_n "(cached) " >&6
f06a83c0 21854else
a1906e8b
MK
21855 if test -n "$MOC4"; then
21856 ac_cv_prog_MOC4="$MOC4" # Let the user override the test.
f06a83c0
MK
21857else
21858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
ac1ed908
MW
21859for as_dir in $PATH
21860do
21861 IFS=$as_save_IFS
21862 test -z "$as_dir" && as_dir=.
5213506e
RW
21863 for ac_exec_ext in '' $ac_executable_extensions; do
21864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
a1906e8b 21865 ac_cv_prog_MOC4="moc-qt4"
5213506e 21866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ac1ed908
MW
21867 break 2
21868 fi
21869done
5213506e
RW
21870 done
21871IFS=$as_save_IFS
ac1ed908 21872
02440ca4
TF
21873fi
21874fi
a1906e8b
MK
21875MOC4=$ac_cv_prog_MOC4
21876if test -n "$MOC4"; then
21877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC4" >&5
21878$as_echo "$MOC4" >&6; }
02440ca4 21879else
5213506e
RW
21880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21881$as_echo "no" >&6; }
02440ca4
TF
21882fi
21883
5213506e 21884
a1906e8b
MK
21885 if test x"$MOC4" != x ; then
21886 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $MOC4 as moc" >&5
21887$as_echo "$as_me: Using $MOC4 as moc" >&6;}
21888 MOC=$MOC4;
21889 fi
02440ca4
TF
21890 fi
21891 if test "x$HAVE_QT4" = "xno"; then
5213506e
RW
21892 { $as_echo "$as_me:${as_lineno-$LINENO}: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&5
21893$as_echo "$as_me: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&6;}
02440ca4
TF
21894 case "$host_os" in
21895 darwin*)
21896
5213506e
RW
21897# Check whether --with-qt4dir was given.
21898if test "${with_qt4dir+set}" = set; then :
21899 withval=$with_qt4dir; QT4DIR=$withval
21900
21901fi
02440ca4 21902
02440ca4 21903 if test x"$QT4DIR" = x ; then
5213506e 21904 as_fn_error "*** No path for Qt4 --with-qt4dir option given" "$LINENO" 5
02440ca4 21905 fi
5213506e
RW
21906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: QT4DIR... $QT4DIR" >&5
21907$as_echo "QT4DIR... $QT4DIR" >&6; }
02440ca4
TF
21908 # Extract the first word of "moc", so it can be a program name with args.
21909set dummy moc; ac_word=$2
5213506e
RW
21910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21911$as_echo_n "checking for $ac_word... " >&6; }
21912if test "${ac_cv_prog_MOC+set}" = set; then :
21913 $as_echo_n "(cached) " >&6
02440ca4
TF
21914else
21915 if test -n "$MOC"; then
21916 ac_cv_prog_MOC="$MOC" # Let the user override the test.
21917else
21918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21919for as_dir in $QT4DIR/bin
21920do
21921 IFS=$as_save_IFS
21922 test -z "$as_dir" && as_dir=.
5213506e
RW
21923 for ac_exec_ext in '' $ac_executable_extensions; do
21924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
02440ca4 21925 ac_cv_prog_MOC="$QT4DIR/bin/moc"
5213506e 21926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
02440ca4 21927 break 2
8f523f3a 21928 fi
02440ca4 21929done
5213506e
RW
21930 done
21931IFS=$as_save_IFS
02440ca4
TF
21932
21933fi
21934fi
21935MOC=$ac_cv_prog_MOC
21936if test -n "$MOC"; then
5213506e
RW
21937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
21938$as_echo "$MOC" >&6; }
02440ca4 21939else
5213506e
RW
21940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21941$as_echo "no" >&6; }
02440ca4
TF
21942fi
21943
5213506e 21944
02440ca4 21945 if test x"$MOC" = x; then
5213506e 21946 as_fn_error "*** This is not the right Qt installation" "$LINENO" 5
02440ca4
TF
21947 fi
21948 QT_CFLAGS="-F$QT4DIR/lib -I$QT4DIR/lib/QtCore.framework/Headers"
21949 QT_CFLAGS="$QT_CFLAGS -I$QT4DIR/lib/QtGui.framework/Headers"
21950 QT_LIBS="-Xlinker -F$QT4DIR/lib -Xlinker -framework -Xlinker QtCore"
21951 QT_LIBS="$QT_LIBS -Xlinker -framework -Xlinker QtGui"
21952 ;;
21953 *)
5213506e
RW
21954 as_fn_error "*** Please check PKG_CONFIG_PATH or the version
21955 of your installed Qt4 installation." "$LINENO" 5
02440ca4
TF
21956 ;;
21957 esac
21958 fi
5213506e
RW
21959 { $as_echo "$as_me:${as_lineno-$LINENO}: Set QT_CFLAGS... $QT_CFLAGS" >&5
21960$as_echo "$as_me: Set QT_CFLAGS... $QT_CFLAGS" >&6;}
02440ca4 21961
8f523f3a 21962
02440ca4 21963 fi
5213506e
RW
21964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
21965$as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
21966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
97b8365c
TT
21967/* end confdefs.h. */
21968#include <sys/socket.h>
21969int
21970main ()
21971{
21972 int f = MSG_NOSIGNAL;
21973 ;
21974 return 0;
21975}
21976_ACEOF
5213506e
RW
21977if ac_fn_c_try_compile "$LINENO"; then :
21978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21979$as_echo "yes" >&6; }
97b8365c 21980
5213506e 21981$as_echo "#define HAVE_MSG_NOSIGNAL 1" >>confdefs.h
97b8365c
TT
21982
21983else
5213506e
RW
21984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21985$as_echo "no" >&6; }
97b8365c
TT
21986
21987fi
5213506e
RW
21988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_NOSIGPIPE " >&5
21990$as_echo_n "checking for SO_NOSIGPIPE ... " >&6; }
21991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
97b8365c
TT
21992/* end confdefs.h. */
21993#include <sys/socket.h>
21994int
21995main ()
21996{
21997 int f = SO_NOSIGPIPE;
21998 ;
21999 return 0;
22000}
22001_ACEOF
5213506e
RW
22002if ac_fn_c_try_compile "$LINENO"; then :
22003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22004$as_echo "yes" >&6; }
97b8365c 22005
5213506e 22006$as_echo "#define HAVE_SO_NOSIGPIPE 1" >>confdefs.h
97b8365c
TT
22007
22008else
5213506e
RW
22009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22010$as_echo "no" >&6; }
97b8365c 22011
f06a83c0 22012fi
5213506e
RW
22013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_WAITALL" >&5
22015$as_echo_n "checking for MSG_WAITALL... " >&6; }
22016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f06a83c0
MK
22017/* end confdefs.h. */
22018#include <sys/socket.h>
22019int
22020main ()
22021{
22022 int f = MSG_WAITALL;
22023 ;
22024 return 0;
22025}
22026_ACEOF
5213506e
RW
22027if ac_fn_c_try_compile "$LINENO"; then :
22028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22029$as_echo "yes" >&6; }
f06a83c0 22030
5213506e 22031$as_echo "#define HAVE_MSG_WAITALL 1" >>confdefs.h
f06a83c0
MK
22032
22033else
5213506e
RW
22034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22035$as_echo "no" >&6; }
f06a83c0 22036
97b8365c 22037fi
5213506e 22038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1ea63ef8 22039
02440ca4 22040 if test "x${COMPILE_PLUGIN}" = xyes; then
1ea63ef8
TT
22041
22042 succeeded=no
22043
22044 if test -z "$PKG_CONFIG"; then
cda7fd66
MK
22045 if test -n "$ac_tool_prefix"; then
22046 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22047set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5213506e
RW
22048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22049$as_echo_n "checking for $ac_word... " >&6; }
22050if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22051 $as_echo_n "(cached) " >&6
1ea63ef8
TT
22052else
22053 case $PKG_CONFIG in
22054 [\\/]* | ?:[\\/]*)
22055 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22056 ;;
22057 *)
22058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22059for as_dir in $PATH
22060do
22061 IFS=$as_save_IFS
22062 test -z "$as_dir" && as_dir=.
5213506e
RW
22063 for ac_exec_ext in '' $ac_executable_extensions; do
22064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1ea63ef8 22065 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5213506e 22066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1ea63ef8
TT
22067 break 2
22068 fi
22069done
5213506e
RW
22070 done
22071IFS=$as_save_IFS
1ea63ef8 22072
1ea63ef8
TT
22073 ;;
22074esac
22075fi
22076PKG_CONFIG=$ac_cv_path_PKG_CONFIG
d495ef5a 22077if test -n "$PKG_CONFIG"; then
5213506e
RW
22078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22079$as_echo "$PKG_CONFIG" >&6; }
d495ef5a 22080else
5213506e
RW
22081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22082$as_echo "no" >&6; }
d495ef5a
MK
22083fi
22084
5213506e 22085
cda7fd66
MK
22086fi
22087if test -z "$ac_cv_path_PKG_CONFIG"; then
22088 ac_pt_PKG_CONFIG=$PKG_CONFIG
22089 # Extract the first word of "pkg-config", so it can be a program name with args.
22090set dummy pkg-config; ac_word=$2
22091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22092$as_echo_n "checking for $ac_word... " >&6; }
22093if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
22094 $as_echo_n "(cached) " >&6
22095else
22096 case $ac_pt_PKG_CONFIG in
22097 [\\/]* | ?:[\\/]*)
22098 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22099 ;;
22100 *)
22101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22102for as_dir in $PATH
22103do
22104 IFS=$as_save_IFS
22105 test -z "$as_dir" && as_dir=.
22106 for ac_exec_ext in '' $ac_executable_extensions; do
22107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22108 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22110 break 2
22111 fi
22112done
22113 done
22114IFS=$as_save_IFS
22115
22116 ;;
22117esac
22118fi
22119ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22120if test -n "$ac_pt_PKG_CONFIG"; then
22121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
22122$as_echo "$ac_pt_PKG_CONFIG" >&6; }
22123else
22124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22125$as_echo "no" >&6; }
22126fi
22127
22128 if test "x$ac_pt_PKG_CONFIG" = x; then
22129 PKG_CONFIG="no"
22130 else
22131 case $cross_compiling:$ac_tool_warned in
22132yes:)
22133{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22134$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22135ac_tool_warned=yes ;;
22136esac
22137 PKG_CONFIG=$ac_pt_PKG_CONFIG
22138 fi
22139else
22140 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22141fi
22142
d495ef5a
MK
22143 fi
22144
22145 if test "$PKG_CONFIG" = "no" ; then
22146 echo "*** The pkg-config script could not be found. Make sure it is"
22147 echo "*** in your path, or set the PKG_CONFIG environment variable"
22148 echo "*** to the full path to pkg-config."
22149 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22150 else
22151 PKG_CONFIG_MIN_VERSION=0.9.0
22152 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5213506e
RW
22153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mozilla-plugin libxul-unstable" >&5
22154$as_echo_n "checking for mozilla-plugin libxul-unstable... " >&6; }
d495ef5a
MK
22155
22156 if $PKG_CONFIG --exists "mozilla-plugin libxul-unstable" ; then
5213506e
RW
22157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22158$as_echo "yes" >&6; }
d495ef5a
MK
22159 succeeded=yes
22160
5213506e
RW
22161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
22162$as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
d495ef5a 22163 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-plugin libxul-unstable"`
5213506e
RW
22164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
22165$as_echo "$MOZILLA_CFLAGS" >&6; }
d495ef5a 22166
5213506e
RW
22167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
22168$as_echo_n "checking MOZILLA_LIBS... " >&6; }
d495ef5a 22169 MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-plugin libxul-unstable"`
5213506e
RW
22170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
22171$as_echo "$MOZILLA_LIBS" >&6; }
d495ef5a
MK
22172 else
22173 MOZILLA_CFLAGS=""
22174 MOZILLA_LIBS=""
22175 ## If we have a custom action on failure, don't print errors, but
22176 ## do set a variable so people can do so.
22177 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-plugin libxul-unstable"`
22178
22179 fi
22180
22181
22182
22183 else
22184 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22185 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22186 fi
22187 fi
22188
22189 if test $succeeded = yes; then
22190 MOZILLA_FOUND=yes
22191 else
22192 MOZILLA_FOUND=no
22193 fi
22194
22195 if test "x${MOZILLA_FOUND}" = xno; then
22196
22197 succeeded=no
22198
22199 if test -z "$PKG_CONFIG"; then
cda7fd66
MK
22200 if test -n "$ac_tool_prefix"; then
22201 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22202set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5213506e
RW
22203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22204$as_echo_n "checking for $ac_word... " >&6; }
22205if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22206 $as_echo_n "(cached) " >&6
d495ef5a
MK
22207else
22208 case $PKG_CONFIG in
22209 [\\/]* | ?:[\\/]*)
22210 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22211 ;;
22212 *)
22213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22214for as_dir in $PATH
22215do
22216 IFS=$as_save_IFS
22217 test -z "$as_dir" && as_dir=.
5213506e
RW
22218 for ac_exec_ext in '' $ac_executable_extensions; do
22219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d495ef5a 22220 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5213506e 22221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d495ef5a
MK
22222 break 2
22223 fi
22224done
5213506e
RW
22225 done
22226IFS=$as_save_IFS
d495ef5a 22227
d495ef5a
MK
22228 ;;
22229esac
22230fi
22231PKG_CONFIG=$ac_cv_path_PKG_CONFIG
1ea63ef8 22232if test -n "$PKG_CONFIG"; then
5213506e
RW
22233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22234$as_echo "$PKG_CONFIG" >&6; }
1ea63ef8 22235else
5213506e
RW
22236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22237$as_echo "no" >&6; }
1ea63ef8
TT
22238fi
22239
5213506e 22240
cda7fd66
MK
22241fi
22242if test -z "$ac_cv_path_PKG_CONFIG"; then
22243 ac_pt_PKG_CONFIG=$PKG_CONFIG
22244 # Extract the first word of "pkg-config", so it can be a program name with args.
22245set dummy pkg-config; ac_word=$2
22246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22247$as_echo_n "checking for $ac_word... " >&6; }
22248if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
22249 $as_echo_n "(cached) " >&6
22250else
22251 case $ac_pt_PKG_CONFIG in
22252 [\\/]* | ?:[\\/]*)
22253 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22254 ;;
22255 *)
22256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22257for as_dir in $PATH
22258do
22259 IFS=$as_save_IFS
22260 test -z "$as_dir" && as_dir=.
22261 for ac_exec_ext in '' $ac_executable_extensions; do
22262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22263 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22265 break 2
22266 fi
22267done
22268 done
22269IFS=$as_save_IFS
22270
22271 ;;
22272esac
22273fi
22274ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22275if test -n "$ac_pt_PKG_CONFIG"; then
22276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
22277$as_echo "$ac_pt_PKG_CONFIG" >&6; }
22278else
22279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22280$as_echo "no" >&6; }
22281fi
22282
22283 if test "x$ac_pt_PKG_CONFIG" = x; then
22284 PKG_CONFIG="no"
22285 else
22286 case $cross_compiling:$ac_tool_warned in
22287yes:)
22288{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22289$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22290ac_tool_warned=yes ;;
22291esac
22292 PKG_CONFIG=$ac_pt_PKG_CONFIG
22293 fi
22294else
22295 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22296fi
22297
1ea63ef8
TT
22298 fi
22299
22300 if test "$PKG_CONFIG" = "no" ; then
22301 echo "*** The pkg-config script could not be found. Make sure it is"
22302 echo "*** in your path, or set the PKG_CONFIG environment variable"
22303 echo "*** to the full path to pkg-config."
22304 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22305 else
22306 PKG_CONFIG_MIN_VERSION=0.9.0
22307 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5213506e
RW
22308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mozilla-plugin" >&5
22309$as_echo_n "checking for mozilla-plugin... " >&6; }
1ea63ef8 22310
02440ca4 22311 if $PKG_CONFIG --exists "mozilla-plugin" ; then
5213506e
RW
22312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22313$as_echo "yes" >&6; }
1ea63ef8
TT
22314 succeeded=yes
22315
5213506e
RW
22316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
22317$as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
02440ca4 22318 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-plugin"`
5213506e
RW
22319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
22320$as_echo "$MOZILLA_CFLAGS" >&6; }
02440ca4 22321
5213506e
RW
22322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
22323$as_echo_n "checking MOZILLA_LIBS... " >&6; }
02440ca4 22324 MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-plugin"`
5213506e
RW
22325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
22326$as_echo "$MOZILLA_LIBS" >&6; }
1ea63ef8 22327 else
02440ca4
TF
22328 MOZILLA_CFLAGS=""
22329 MOZILLA_LIBS=""
1ea63ef8
TT
22330 ## If we have a custom action on failure, don't print errors, but
22331 ## do set a variable so people can do so.
02440ca4
TF
22332 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-plugin"`
22333
1ea63ef8
TT
22334 fi
22335
22336
22337
22338 else
22339 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22340 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22341 fi
22342 fi
22343
22344 if test $succeeded = yes; then
02440ca4 22345 MOZILLA_FOUND=yes
1ea63ef8 22346 else
02440ca4 22347 MOZILLA_FOUND=no
1ea63ef8 22348 fi
ea54b293 22349
d495ef5a 22350 fi
02440ca4 22351 if test "x${MOZILLA_FOUND}" = xno; then
1ea63ef8 22352
ea54b293
TT
22353 succeeded=no
22354
22355 if test -z "$PKG_CONFIG"; then
cda7fd66
MK
22356 if test -n "$ac_tool_prefix"; then
22357 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22358set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5213506e
RW
22359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22360$as_echo_n "checking for $ac_word... " >&6; }
22361if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22362 $as_echo_n "(cached) " >&6
ea54b293
TT
22363else
22364 case $PKG_CONFIG in
22365 [\\/]* | ?:[\\/]*)
22366 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22367 ;;
22368 *)
22369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22370for as_dir in $PATH
22371do
22372 IFS=$as_save_IFS
22373 test -z "$as_dir" && as_dir=.
5213506e
RW
22374 for ac_exec_ext in '' $ac_executable_extensions; do
22375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea54b293 22376 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5213506e 22377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ea54b293
TT
22378 break 2
22379 fi
22380done
5213506e
RW
22381 done
22382IFS=$as_save_IFS
ea54b293 22383
ea54b293
TT
22384 ;;
22385esac
22386fi
22387PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8aa540d2 22388if test -n "$PKG_CONFIG"; then
5213506e
RW
22389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22390$as_echo "$PKG_CONFIG" >&6; }
8aa540d2 22391else
5213506e
RW
22392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22393$as_echo "no" >&6; }
8aa540d2
MW
22394fi
22395
5213506e 22396
cda7fd66
MK
22397fi
22398if test -z "$ac_cv_path_PKG_CONFIG"; then
22399 ac_pt_PKG_CONFIG=$PKG_CONFIG
22400 # Extract the first word of "pkg-config", so it can be a program name with args.
22401set dummy pkg-config; ac_word=$2
22402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22403$as_echo_n "checking for $ac_word... " >&6; }
22404if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
22405 $as_echo_n "(cached) " >&6
22406else
22407 case $ac_pt_PKG_CONFIG in
22408 [\\/]* | ?:[\\/]*)
22409 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22410 ;;
22411 *)
22412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22413for as_dir in $PATH
22414do
22415 IFS=$as_save_IFS
22416 test -z "$as_dir" && as_dir=.
22417 for ac_exec_ext in '' $ac_executable_extensions; do
22418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22419 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22421 break 2
22422 fi
22423done
22424 done
22425IFS=$as_save_IFS
22426
22427 ;;
22428esac
22429fi
22430ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22431if test -n "$ac_pt_PKG_CONFIG"; then
22432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
22433$as_echo "$ac_pt_PKG_CONFIG" >&6; }
22434else
22435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22436$as_echo "no" >&6; }
22437fi
22438
22439 if test "x$ac_pt_PKG_CONFIG" = x; then
22440 PKG_CONFIG="no"
22441 else
22442 case $cross_compiling:$ac_tool_warned in
22443yes:)
22444{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22445$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22446ac_tool_warned=yes ;;
22447esac
22448 PKG_CONFIG=$ac_pt_PKG_CONFIG
22449 fi
22450else
22451 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22452fi
22453
8aa540d2
MW
22454 fi
22455
22456 if test "$PKG_CONFIG" = "no" ; then
22457 echo "*** The pkg-config script could not be found. Make sure it is"
22458 echo "*** in your path, or set the PKG_CONFIG environment variable"
22459 echo "*** to the full path to pkg-config."
22460 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22461 else
22462 PKG_CONFIG_MIN_VERSION=0.9.0
22463 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5213506e
RW
22464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for firefox-plugin firefox-xpcom" >&5
22465$as_echo_n "checking for firefox-plugin firefox-xpcom... " >&6; }
8aa540d2 22466
6f36e61d 22467 if $PKG_CONFIG --exists "firefox-plugin firefox-xpcom" ; then
5213506e
RW
22468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22469$as_echo "yes" >&6; }
8aa540d2
MW
22470 succeeded=yes
22471
5213506e
RW
22472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
22473$as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
e1bea0c0 22474 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "firefox-plugin firefox-xpcom"`
5213506e
RW
22475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
22476$as_echo "$MOZILLA_CFLAGS" >&6; }
e1bea0c0 22477
5213506e
RW
22478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
22479$as_echo_n "checking MOZILLA_LIBS... " >&6; }
e1bea0c0 22480 MOZILLA_LIBS=`$PKG_CONFIG --libs "firefox-plugin firefox-xpcom"`
5213506e
RW
22481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
22482$as_echo "$MOZILLA_LIBS" >&6; }
e1bea0c0
MK
22483 else
22484 MOZILLA_CFLAGS=""
22485 MOZILLA_LIBS=""
22486 ## If we have a custom action on failure, don't print errors, but
22487 ## do set a variable so people can do so.
22488 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "firefox-plugin firefox-xpcom"`
22489
22490 fi
22491
22492
22493
22494 else
22495 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22496 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22497 fi
22498 fi
22499
22500 if test $succeeded = yes; then
22501 MOZILLA_FOUND=yes
22502 else
22503 MOZILLA_FOUND=no
22504 fi
22505
22506 fi
22507 if test "x${MOZILLA_FOUND}" = xno; then
22508
22509 succeeded=no
22510
22511 if test -z "$PKG_CONFIG"; then
cda7fd66
MK
22512 if test -n "$ac_tool_prefix"; then
22513 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22514set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5213506e
RW
22515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22516$as_echo_n "checking for $ac_word... " >&6; }
22517if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22518 $as_echo_n "(cached) " >&6
e1bea0c0
MK
22519else
22520 case $PKG_CONFIG in
22521 [\\/]* | ?:[\\/]*)
22522 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22523 ;;
22524 *)
22525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22526for as_dir in $PATH
22527do
22528 IFS=$as_save_IFS
22529 test -z "$as_dir" && as_dir=.
5213506e
RW
22530 for ac_exec_ext in '' $ac_executable_extensions; do
22531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
e1bea0c0 22532 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5213506e 22533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
e1bea0c0
MK
22534 break 2
22535 fi
22536done
5213506e
RW
22537 done
22538IFS=$as_save_IFS
e1bea0c0 22539
e1bea0c0
MK
22540 ;;
22541esac
22542fi
22543PKG_CONFIG=$ac_cv_path_PKG_CONFIG
e1bea0c0 22544if test -n "$PKG_CONFIG"; then
5213506e
RW
22545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22546$as_echo "$PKG_CONFIG" >&6; }
e1bea0c0 22547else
5213506e
RW
22548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22549$as_echo "no" >&6; }
e1bea0c0
MK
22550fi
22551
5213506e 22552
cda7fd66
MK
22553fi
22554if test -z "$ac_cv_path_PKG_CONFIG"; then
22555 ac_pt_PKG_CONFIG=$PKG_CONFIG
22556 # Extract the first word of "pkg-config", so it can be a program name with args.
22557set dummy pkg-config; ac_word=$2
22558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22559$as_echo_n "checking for $ac_word... " >&6; }
22560if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
22561 $as_echo_n "(cached) " >&6
22562else
22563 case $ac_pt_PKG_CONFIG in
22564 [\\/]* | ?:[\\/]*)
22565 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22566 ;;
22567 *)
22568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22569for as_dir in $PATH
22570do
22571 IFS=$as_save_IFS
22572 test -z "$as_dir" && as_dir=.
22573 for ac_exec_ext in '' $ac_executable_extensions; do
22574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22575 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22577 break 2
22578 fi
22579done
22580 done
22581IFS=$as_save_IFS
22582
22583 ;;
22584esac
22585fi
22586ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22587if test -n "$ac_pt_PKG_CONFIG"; then
22588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
22589$as_echo "$ac_pt_PKG_CONFIG" >&6; }
22590else
22591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22592$as_echo "no" >&6; }
22593fi
22594
22595 if test "x$ac_pt_PKG_CONFIG" = x; then
22596 PKG_CONFIG="no"
22597 else
22598 case $cross_compiling:$ac_tool_warned in
22599yes:)
22600{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22601$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22602ac_tool_warned=yes ;;
22603esac
22604 PKG_CONFIG=$ac_pt_PKG_CONFIG
22605 fi
22606else
22607 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22608fi
22609
e1bea0c0
MK
22610 fi
22611
22612 if test "$PKG_CONFIG" = "no" ; then
22613 echo "*** The pkg-config script could not be found. Make sure it is"
22614 echo "*** in your path, or set the PKG_CONFIG environment variable"
22615 echo "*** to the full path to pkg-config."
22616 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22617 else
22618 PKG_CONFIG_MIN_VERSION=0.9.0
22619 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5213506e
RW
22620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xulrunner-plugin xulrunner-xpcom" >&5
22621$as_echo_n "checking for xulrunner-plugin xulrunner-xpcom... " >&6; }
e1bea0c0
MK
22622
22623 if $PKG_CONFIG --exists "xulrunner-plugin xulrunner-xpcom" ; then
5213506e
RW
22624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22625$as_echo "yes" >&6; }
e1bea0c0
MK
22626 succeeded=yes
22627
5213506e
RW
22628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
22629$as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
e1bea0c0 22630 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "xulrunner-plugin xulrunner-xpcom"`
5213506e
RW
22631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
22632$as_echo "$MOZILLA_CFLAGS" >&6; }
e1bea0c0 22633
5213506e
RW
22634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
22635$as_echo_n "checking MOZILLA_LIBS... " >&6; }
e1bea0c0 22636 MOZILLA_LIBS=`$PKG_CONFIG --libs "xulrunner-plugin xulrunner-xpcom"`
5213506e
RW
22637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
22638$as_echo "$MOZILLA_LIBS" >&6; }
e1bea0c0
MK
22639 else
22640 MOZILLA_CFLAGS=""
22641 MOZILLA_LIBS=""
22642 ## If we have a custom action on failure, don't print errors, but
22643 ## do set a variable so people can do so.
22644 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xulrunner-plugin xulrunner-xpcom"`
22645
22646 fi
22647
22648
22649
22650 else
22651 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22652 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22653 fi
22654 fi
22655
22656 if test $succeeded = yes; then
22657 MOZILLA_FOUND=yes
22658 else
22659 MOZILLA_FOUND=no
22660 fi
22661
22662 fi
22663 if test "x${MOZILLA_FOUND}" = xno; then
22664
22665 succeeded=no
22666
22667 if test -z "$PKG_CONFIG"; then
cda7fd66
MK
22668 if test -n "$ac_tool_prefix"; then
22669 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22670set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5213506e
RW
22671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22672$as_echo_n "checking for $ac_word... " >&6; }
22673if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22674 $as_echo_n "(cached) " >&6
e1bea0c0
MK
22675else
22676 case $PKG_CONFIG in
22677 [\\/]* | ?:[\\/]*)
22678 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22679 ;;
22680 *)
22681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22682for as_dir in $PATH
22683do
22684 IFS=$as_save_IFS
22685 test -z "$as_dir" && as_dir=.
5213506e
RW
22686 for ac_exec_ext in '' $ac_executable_extensions; do
22687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
e1bea0c0 22688 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5213506e 22689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
e1bea0c0
MK
22690 break 2
22691 fi
22692done
5213506e
RW
22693 done
22694IFS=$as_save_IFS
e1bea0c0 22695
e1bea0c0
MK
22696 ;;
22697esac
22698fi
22699PKG_CONFIG=$ac_cv_path_PKG_CONFIG
e1bea0c0 22700if test -n "$PKG_CONFIG"; then
5213506e
RW
22701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22702$as_echo "$PKG_CONFIG" >&6; }
e1bea0c0 22703else
5213506e
RW
22704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22705$as_echo "no" >&6; }
e1bea0c0
MK
22706fi
22707
5213506e 22708
cda7fd66
MK
22709fi
22710if test -z "$ac_cv_path_PKG_CONFIG"; then
22711 ac_pt_PKG_CONFIG=$PKG_CONFIG
22712 # Extract the first word of "pkg-config", so it can be a program name with args.
22713set dummy pkg-config; ac_word=$2
22714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22715$as_echo_n "checking for $ac_word... " >&6; }
22716if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
22717 $as_echo_n "(cached) " >&6
22718else
22719 case $ac_pt_PKG_CONFIG in
22720 [\\/]* | ?:[\\/]*)
22721 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22722 ;;
22723 *)
22724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22725for as_dir in $PATH
22726do
22727 IFS=$as_save_IFS
22728 test -z "$as_dir" && as_dir=.
22729 for ac_exec_ext in '' $ac_executable_extensions; do
22730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22731 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22733 break 2
22734 fi
22735done
22736 done
22737IFS=$as_save_IFS
22738
22739 ;;
22740esac
22741fi
22742ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22743if test -n "$ac_pt_PKG_CONFIG"; then
22744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
22745$as_echo "$ac_pt_PKG_CONFIG" >&6; }
22746else
22747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22748$as_echo "no" >&6; }
22749fi
22750
22751 if test "x$ac_pt_PKG_CONFIG" = x; then
22752 PKG_CONFIG="no"
22753 else
22754 case $cross_compiling:$ac_tool_warned in
22755yes:)
22756{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22757$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22758ac_tool_warned=yes ;;
22759esac
22760 PKG_CONFIG=$ac_pt_PKG_CONFIG
22761 fi
22762else
22763 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22764fi
22765
e1bea0c0
MK
22766 fi
22767
22768 if test "$PKG_CONFIG" = "no" ; then
22769 echo "*** The pkg-config script could not be found. Make sure it is"
22770 echo "*** in your path, or set the PKG_CONFIG environment variable"
22771 echo "*** to the full path to pkg-config."
22772 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22773 else
22774 PKG_CONFIG_MIN_VERSION=0.9.0
22775 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5213506e
RW
22776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mozilla-firefox-plugin mozilla-firefox-xpcom" >&5
22777$as_echo_n "checking for mozilla-firefox-plugin mozilla-firefox-xpcom... " >&6; }
e1bea0c0
MK
22778
22779 if $PKG_CONFIG --exists "mozilla-firefox-plugin mozilla-firefox-xpcom" ; then
5213506e
RW
22780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22781$as_echo "yes" >&6; }
e1bea0c0
MK
22782 succeeded=yes
22783
5213506e
RW
22784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
22785$as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
e1bea0c0 22786 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-firefox-plugin mozilla-firefox-xpcom"`
5213506e
RW
22787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
22788$as_echo "$MOZILLA_CFLAGS" >&6; }
02440ca4 22789
5213506e
RW
22790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
22791$as_echo_n "checking MOZILLA_LIBS... " >&6; }
e1bea0c0 22792 MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-firefox-plugin mozilla-firefox-xpcom"`
5213506e
RW
22793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
22794$as_echo "$MOZILLA_LIBS" >&6; }
8aa540d2 22795 else
02440ca4
TF
22796 MOZILLA_CFLAGS=""
22797 MOZILLA_LIBS=""
8aa540d2
MW
22798 ## If we have a custom action on failure, don't print errors, but
22799 ## do set a variable so people can do so.
e1bea0c0 22800 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-firefox-plugin mozilla-firefox-xpcom"`
02440ca4 22801
8aa540d2
MW
22802 fi
22803
22804
22805
22806 else
22807 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22808 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22809 fi
22810 fi
22811
22812 if test $succeeded = yes; then
02440ca4 22813 MOZILLA_FOUND=yes
8aa540d2 22814 else
02440ca4 22815 MOZILLA_FOUND=no
8aa540d2
MW
22816 fi
22817
02440ca4
TF
22818 fi
22819 if test "x${MOZILLA_FOUND}" = xno; then
8aa540d2
MW
22820
22821 succeeded=no
22822
22823 if test -z "$PKG_CONFIG"; then
cda7fd66
MK
22824 if test -n "$ac_tool_prefix"; then
22825 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22826set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5213506e
RW
22827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22828$as_echo_n "checking for $ac_word... " >&6; }
22829if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22830 $as_echo_n "(cached) " >&6
8aa540d2
MW
22831else
22832 case $PKG_CONFIG in
22833 [\\/]* | ?:[\\/]*)
22834 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22835 ;;
22836 *)
22837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22838for as_dir in $PATH
22839do
22840 IFS=$as_save_IFS
22841 test -z "$as_dir" && as_dir=.
5213506e
RW
22842 for ac_exec_ext in '' $ac_executable_extensions; do
22843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8aa540d2 22844 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5213506e 22845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8aa540d2
MW
22846 break 2
22847 fi
22848done
5213506e
RW
22849 done
22850IFS=$as_save_IFS
8aa540d2 22851
8aa540d2
MW
22852 ;;
22853esac
22854fi
22855PKG_CONFIG=$ac_cv_path_PKG_CONFIG
ea54b293 22856if test -n "$PKG_CONFIG"; then
5213506e
RW
22857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22858$as_echo "$PKG_CONFIG" >&6; }
ea54b293 22859else
5213506e
RW
22860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22861$as_echo "no" >&6; }
ea54b293
TT
22862fi
22863
5213506e 22864
cda7fd66
MK
22865fi
22866if test -z "$ac_cv_path_PKG_CONFIG"; then
22867 ac_pt_PKG_CONFIG=$PKG_CONFIG
22868 # Extract the first word of "pkg-config", so it can be a program name with args.
22869set dummy pkg-config; ac_word=$2
22870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22871$as_echo_n "checking for $ac_word... " >&6; }
22872if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
22873 $as_echo_n "(cached) " >&6
22874else
22875 case $ac_pt_PKG_CONFIG in
22876 [\\/]* | ?:[\\/]*)
22877 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22878 ;;
22879 *)
22880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22881for as_dir in $PATH
22882do
22883 IFS=$as_save_IFS
22884 test -z "$as_dir" && as_dir=.
22885 for ac_exec_ext in '' $ac_executable_extensions; do
22886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22887 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22889 break 2
22890 fi
22891done
22892 done
22893IFS=$as_save_IFS
22894
22895 ;;
22896esac
22897fi
22898ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22899if test -n "$ac_pt_PKG_CONFIG"; then
22900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
22901$as_echo "$ac_pt_PKG_CONFIG" >&6; }
22902else
22903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22904$as_echo "no" >&6; }
22905fi
22906
22907 if test "x$ac_pt_PKG_CONFIG" = x; then
22908 PKG_CONFIG="no"
22909 else
22910 case $cross_compiling:$ac_tool_warned in
22911yes:)
22912{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22913$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22914ac_tool_warned=yes ;;
22915esac
22916 PKG_CONFIG=$ac_pt_PKG_CONFIG
22917 fi
22918else
22919 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22920fi
22921
ea54b293
TT
22922 fi
22923
22924 if test "$PKG_CONFIG" = "no" ; then
22925 echo "*** The pkg-config script could not be found. Make sure it is"
22926 echo "*** in your path, or set the PKG_CONFIG environment variable"
22927 echo "*** to the full path to pkg-config."
22928 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22929 else
22930 PKG_CONFIG_MIN_VERSION=0.9.0
22931 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5213506e
RW
22932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seamonkey-plugin seamonkey-xpcom" >&5
22933$as_echo_n "checking for seamonkey-plugin seamonkey-xpcom... " >&6; }
ea54b293 22934
e1bea0c0 22935 if $PKG_CONFIG --exists "seamonkey-plugin seamonkey-xpcom" ; then
5213506e
RW
22936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22937$as_echo "yes" >&6; }
ea54b293
TT
22938 succeeded=yes
22939
5213506e
RW
22940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
22941$as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
e1bea0c0 22942 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "seamonkey-plugin seamonkey-xpcom"`
5213506e
RW
22943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
22944$as_echo "$MOZILLA_CFLAGS" >&6; }
02440ca4 22945
5213506e
RW
22946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
22947$as_echo_n "checking MOZILLA_LIBS... " >&6; }
e1bea0c0 22948 MOZILLA_LIBS=`$PKG_CONFIG --libs "seamonkey-plugin seamonkey-xpcom"`
5213506e
RW
22949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
22950$as_echo "$MOZILLA_LIBS" >&6; }
ea54b293 22951 else
02440ca4
TF
22952 MOZILLA_CFLAGS=""
22953 MOZILLA_LIBS=""
ea54b293
TT
22954 ## If we have a custom action on failure, don't print errors, but
22955 ## do set a variable so people can do so.
e1bea0c0 22956 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "seamonkey-plugin seamonkey-xpcom"`
02440ca4 22957
ea54b293
TT
22958 fi
22959
22960
22961
ac1ed908
MW
22962 else
22963 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22964 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22965 fi
22966 fi
22967
22968 if test $succeeded = yes; then
22969 MOZILLA_FOUND=yes
22970 else
22971 MOZILLA_FOUND=no
22972 fi
22973
22974 fi
22975 if test "x${MOZILLA_FOUND}" = xno; then
22976
22977 succeeded=no
22978
22979 if test -z "$PKG_CONFIG"; then
cda7fd66
MK
22980 if test -n "$ac_tool_prefix"; then
22981 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22982set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5213506e
RW
22983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22984$as_echo_n "checking for $ac_word... " >&6; }
22985if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22986 $as_echo_n "(cached) " >&6
ac1ed908
MW
22987else
22988 case $PKG_CONFIG in
22989 [\\/]* | ?:[\\/]*)
22990 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22991 ;;
22992 *)
22993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22994for as_dir in $PATH
22995do
22996 IFS=$as_save_IFS
22997 test -z "$as_dir" && as_dir=.
5213506e
RW
22998 for ac_exec_ext in '' $ac_executable_extensions; do
22999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ac1ed908 23000 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5213506e 23001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ac1ed908
MW
23002 break 2
23003 fi
23004done
5213506e
RW
23005 done
23006IFS=$as_save_IFS
ac1ed908 23007
ac1ed908
MW
23008 ;;
23009esac
23010fi
23011PKG_CONFIG=$ac_cv_path_PKG_CONFIG
ac1ed908 23012if test -n "$PKG_CONFIG"; then
5213506e
RW
23013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
23014$as_echo "$PKG_CONFIG" >&6; }
ac1ed908 23015else
5213506e
RW
23016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23017$as_echo "no" >&6; }
ac1ed908
MW
23018fi
23019
5213506e 23020
cda7fd66
MK
23021fi
23022if test -z "$ac_cv_path_PKG_CONFIG"; then
23023 ac_pt_PKG_CONFIG=$PKG_CONFIG
23024 # Extract the first word of "pkg-config", so it can be a program name with args.
23025set dummy pkg-config; ac_word=$2
23026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23027$as_echo_n "checking for $ac_word... " >&6; }
23028if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
23029 $as_echo_n "(cached) " >&6
23030else
23031 case $ac_pt_PKG_CONFIG in
23032 [\\/]* | ?:[\\/]*)
23033 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
23034 ;;
23035 *)
23036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23037for as_dir in $PATH
23038do
23039 IFS=$as_save_IFS
23040 test -z "$as_dir" && as_dir=.
23041 for ac_exec_ext in '' $ac_executable_extensions; do
23042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23043 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23045 break 2
23046 fi
23047done
23048 done
23049IFS=$as_save_IFS
23050
23051 ;;
23052esac
23053fi
23054ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
23055if test -n "$ac_pt_PKG_CONFIG"; then
23056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
23057$as_echo "$ac_pt_PKG_CONFIG" >&6; }
23058else
23059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23060$as_echo "no" >&6; }
23061fi
23062
23063 if test "x$ac_pt_PKG_CONFIG" = x; then
23064 PKG_CONFIG="no"
23065 else
23066 case $cross_compiling:$ac_tool_warned in
23067yes:)
23068{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23069$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23070ac_tool_warned=yes ;;
23071esac
23072 PKG_CONFIG=$ac_pt_PKG_CONFIG
23073 fi
23074else
23075 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
23076fi
23077
ac1ed908
MW
23078 fi
23079
23080 if test "$PKG_CONFIG" = "no" ; then
23081 echo "*** The pkg-config script could not be found. Make sure it is"
23082 echo "*** in your path, or set the PKG_CONFIG environment variable"
23083 echo "*** to the full path to pkg-config."
23084 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23085 else
23086 PKG_CONFIG_MIN_VERSION=0.9.0
23087 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5213506e
RW
23088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iceape-plugin iceape-xpcom" >&5
23089$as_echo_n "checking for iceape-plugin iceape-xpcom... " >&6; }
ac1ed908 23090
e1bea0c0 23091 if $PKG_CONFIG --exists "iceape-plugin iceape-xpcom" ; then
5213506e
RW
23092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23093$as_echo "yes" >&6; }
ac1ed908
MW
23094 succeeded=yes
23095
5213506e
RW
23096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
23097$as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
e1bea0c0 23098 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "iceape-plugin iceape-xpcom"`
5213506e
RW
23099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
23100$as_echo "$MOZILLA_CFLAGS" >&6; }
ac1ed908 23101
5213506e
RW
23102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
23103$as_echo_n "checking MOZILLA_LIBS... " >&6; }
e1bea0c0 23104 MOZILLA_LIBS=`$PKG_CONFIG --libs "iceape-plugin iceape-xpcom"`
5213506e
RW
23105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
23106$as_echo "$MOZILLA_LIBS" >&6; }
ac1ed908
MW
23107 else
23108 MOZILLA_CFLAGS=""
23109 MOZILLA_LIBS=""
23110 ## If we have a custom action on failure, don't print errors, but
23111 ## do set a variable so people can do so.
e1bea0c0 23112 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "iceape-plugin iceape-xpcom"`
ac1ed908
MW
23113
23114 fi
23115
23116
23117
97b8365c
TT
23118 else
23119 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23120 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23121 fi
23122 fi
23123
23124 if test $succeeded = yes; then
23125 MOZILLA_FOUND=yes
23126 else
23127 MOZILLA_FOUND=no
23128 fi
23129
23130 fi
23131 if test "x${MOZILLA_FOUND}" = xno; then
5213506e 23132 as_fn_error "Couldn't find plugin support headers and libraries, try --disable-plugin" "$LINENO" 5
e1bea0c0
MK
23133 fi
23134
97b8365c
TT
23135
23136 succeeded=no
23137
23138 if test -z "$PKG_CONFIG"; then
cda7fd66
MK
23139 if test -n "$ac_tool_prefix"; then
23140 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23141set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5213506e
RW
23142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23143$as_echo_n "checking for $ac_word... " >&6; }
23144if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
23145 $as_echo_n "(cached) " >&6
97b8365c
TT
23146else
23147 case $PKG_CONFIG in
23148 [\\/]* | ?:[\\/]*)
23149 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23150 ;;
23151 *)
23152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23153for as_dir in $PATH
23154do
23155 IFS=$as_save_IFS
23156 test -z "$as_dir" && as_dir=.
5213506e
RW
23157 for ac_exec_ext in '' $ac_executable_extensions; do
23158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
97b8365c 23159 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5213506e 23160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
97b8365c
TT
23161 break 2
23162 fi
23163done
5213506e
RW
23164 done
23165IFS=$as_save_IFS
97b8365c 23166
97b8365c
TT
23167 ;;
23168esac
23169fi
23170PKG_CONFIG=$ac_cv_path_PKG_CONFIG
97b8365c 23171if test -n "$PKG_CONFIG"; then
5213506e
RW
23172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
23173$as_echo "$PKG_CONFIG" >&6; }
97b8365c 23174else
5213506e
RW
23175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23176$as_echo "no" >&6; }
97b8365c
TT
23177fi
23178
5213506e 23179
cda7fd66
MK
23180fi
23181if test -z "$ac_cv_path_PKG_CONFIG"; then
23182 ac_pt_PKG_CONFIG=$PKG_CONFIG
23183 # Extract the first word of "pkg-config", so it can be a program name with args.
23184set dummy pkg-config; ac_word=$2
23185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23186$as_echo_n "checking for $ac_word... " >&6; }
23187if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
23188 $as_echo_n "(cached) " >&6
23189else
23190 case $ac_pt_PKG_CONFIG in
23191 [\\/]* | ?:[\\/]*)
23192 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
23193 ;;
23194 *)
23195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23196for as_dir in $PATH
23197do
23198 IFS=$as_save_IFS
23199 test -z "$as_dir" && as_dir=.
23200 for ac_exec_ext in '' $ac_executable_extensions; do
23201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23202 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23204 break 2
23205 fi
23206done
23207 done
23208IFS=$as_save_IFS
23209
23210 ;;
23211esac
23212fi
23213ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
23214if test -n "$ac_pt_PKG_CONFIG"; then
23215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
23216$as_echo "$ac_pt_PKG_CONFIG" >&6; }
23217else
23218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23219$as_echo "no" >&6; }
23220fi
23221
23222 if test "x$ac_pt_PKG_CONFIG" = x; then
23223 PKG_CONFIG="no"
23224 else
23225 case $cross_compiling:$ac_tool_warned in
23226yes:)
23227{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23228$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23229ac_tool_warned=yes ;;
23230esac
23231 PKG_CONFIG=$ac_pt_PKG_CONFIG
23232 fi
23233else
23234 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
23235fi
23236
97b8365c
TT
23237 fi
23238
23239 if test "$PKG_CONFIG" = "no" ; then
23240 echo "*** The pkg-config script could not be found. Make sure it is"
23241 echo "*** in your path, or set the PKG_CONFIG environment variable"
23242 echo "*** to the full path to pkg-config."
23243 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23244 else
23245 PKG_CONFIG_MIN_VERSION=0.9.0
23246 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5213506e
RW
23247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0" >&5
23248$as_echo_n "checking for glib-2.0... " >&6; }
97b8365c 23249
e1bea0c0 23250 if $PKG_CONFIG --exists "glib-2.0" ; then
5213506e
RW
23251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23252$as_echo "yes" >&6; }
97b8365c
TT
23253 succeeded=yes
23254
5213506e
RW
23255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_CFLAGS" >&5
23256$as_echo_n "checking GLIB_CFLAGS... " >&6; }
e1bea0c0 23257 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0"`
5213506e
RW
23258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_CFLAGS" >&5
23259$as_echo "$GLIB_CFLAGS" >&6; }
97b8365c 23260
5213506e
RW
23261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_LIBS" >&5
23262$as_echo_n "checking GLIB_LIBS... " >&6; }
e1bea0c0 23263 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0"`
5213506e
RW
23264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_LIBS" >&5
23265$as_echo "$GLIB_LIBS" >&6; }
97b8365c 23266 else
e1bea0c0
MK
23267 GLIB_CFLAGS=""
23268 GLIB_LIBS=""
97b8365c
TT
23269 ## If we have a custom action on failure, don't print errors, but
23270 ## do set a variable so people can do so.
e1bea0c0
MK
23271 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
23272 echo $GLIB_PKG_ERRORS
97b8365c
TT
23273 fi
23274
23275
23276
ea54b293
TT
23277 else
23278 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23279 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23280 fi
23281 fi
23282
23283 if test $succeeded = yes; then
e1bea0c0 23284 :
ea54b293 23285 else
5213506e 23286 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
ea54b293
TT
23287 fi
23288
ea54b293
TT
23289
23290 succeeded=no
23291
23292 if test -z "$PKG_CONFIG"; then
cda7fd66
MK
23293 if test -n "$ac_tool_prefix"; then
23294 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23295set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5213506e
RW
23296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23297$as_echo_n "checking for $ac_word... " >&6; }
23298if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
23299 $as_echo_n "(cached) " >&6
ea54b293
TT
23300else
23301 case $PKG_CONFIG in
23302 [\\/]* | ?:[\\/]*)
23303 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23304 ;;
23305 *)
23306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23307for as_dir in $PATH
23308do
23309 IFS=$as_save_IFS
23310 test -z "$as_dir" && as_dir=.
5213506e
RW
23311 for ac_exec_ext in '' $ac_executable_extensions; do
23312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea54b293 23313 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5213506e 23314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ea54b293
TT
23315 break 2
23316 fi
23317done
5213506e
RW
23318 done
23319IFS=$as_save_IFS
ea54b293 23320
ea54b293
TT
23321 ;;
23322esac
23323fi
23324PKG_CONFIG=$ac_cv_path_PKG_CONFIG
ea54b293 23325if test -n "$PKG_CONFIG"; then
5213506e
RW
23326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
23327$as_echo "$PKG_CONFIG" >&6; }
ea54b293 23328else
5213506e
RW
23329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23330$as_echo "no" >&6; }
ea54b293
TT
23331fi
23332
5213506e 23333
cda7fd66
MK
23334fi
23335if test -z "$ac_cv_path_PKG_CONFIG"; then
23336 ac_pt_PKG_CONFIG=$PKG_CONFIG
23337 # Extract the first word of "pkg-config", so it can be a program name with args.
23338set dummy pkg-config; ac_word=$2
23339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23340$as_echo_n "checking for $ac_word... " >&6; }
23341if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
23342 $as_echo_n "(cached) " >&6
23343else
23344 case $ac_pt_PKG_CONFIG in
23345 [\\/]* | ?:[\\/]*)
23346 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
23347 ;;
23348 *)
23349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23350for as_dir in $PATH
23351do
23352 IFS=$as_save_IFS
23353 test -z "$as_dir" && as_dir=.
23354 for ac_exec_ext in '' $ac_executable_extensions; do
23355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23356 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23358 break 2
23359 fi
23360done
23361 done
23362IFS=$as_save_IFS
23363
23364 ;;
23365esac
23366fi
23367ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
23368if test -n "$ac_pt_PKG_CONFIG"; then
23369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
23370$as_echo "$ac_pt_PKG_CONFIG" >&6; }
23371else
23372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23373$as_echo "no" >&6; }
23374fi
23375
23376 if test "x$ac_pt_PKG_CONFIG" = x; then
23377 PKG_CONFIG="no"
23378 else
23379 case $cross_compiling:$ac_tool_warned in
23380yes:)
23381{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23382$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23383ac_tool_warned=yes ;;
23384esac
23385 PKG_CONFIG=$ac_pt_PKG_CONFIG
23386 fi
23387else
23388 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
23389fi
23390
ea54b293
TT
23391 fi
23392
23393 if test "$PKG_CONFIG" = "no" ; then
23394 echo "*** The pkg-config script could not be found. Make sure it is"
23395 echo "*** in your path, or set the PKG_CONFIG environment variable"
23396 echo "*** to the full path to pkg-config."
23397 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23398 else
23399 PKG_CONFIG_MIN_VERSION=0.9.0
23400 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5213506e
RW
23401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" >&5
23402$as_echo_n "checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0... " >&6; }
ea54b293 23403
e1bea0c0 23404 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" ; then
5213506e
RW
23405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23406$as_echo "yes" >&6; }
ea54b293
TT
23407 succeeded=yes
23408
5213506e
RW
23409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
23410$as_echo_n "checking GTK_CFLAGS... " >&6; }
e1bea0c0 23411 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
5213506e
RW
23412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
23413$as_echo "$GTK_CFLAGS" >&6; }
02440ca4 23414
5213506e
RW
23415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
23416$as_echo_n "checking GTK_LIBS... " >&6; }
e1bea0c0 23417 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
5213506e
RW
23418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
23419$as_echo "$GTK_LIBS" >&6; }
ea54b293 23420 else
e1bea0c0
MK
23421 GTK_CFLAGS=""
23422 GTK_LIBS=""
ea54b293
TT
23423 ## If we have a custom action on failure, don't print errors, but
23424 ## do set a variable so people can do so.
e1bea0c0
MK
23425 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
23426 echo $GTK_PKG_ERRORS
ea54b293
TT
23427 fi
23428
23429
23430
23431 else
23432 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23433 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23434 fi
23435 fi
23436
23437 if test $succeeded = yes; then
02440ca4 23438 :
ea54b293 23439 else
5213506e 23440 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
ea54b293 23441 fi
ea54b293 23442
ea54b293 23443
ea54b293 23444
ea54b293 23445
ea54b293 23446
ea54b293
TT
23447
23448
e1bea0c0
MK
23449
23450
02440ca4 23451 PLUGIN_DIR=$HOME/.mozilla/plugins/
ea54b293 23452
8f523f3a 23453 fi
cd6d4007 23454
8df9a5db
MS
23455
23456# Check whether --with-gmp was given.
23457if test "${with_gmp+set}" = set; then :
23458 withval=$with_gmp;
23459fi
23460
23461
23462# Check whether --with-gmp_include was given.
23463if test "${with_gmp_include+set}" = set; then :
23464 withval=$with_gmp_include;
23465fi
23466
23467
23468# Check whether --with-gmp_lib was given.
23469if test "${with_gmp_lib+set}" = set; then :
23470 withval=$with_gmp_lib;
23471fi
23472
23473
23474 if test "x$with_gmp" != x; then
23475 gmplibs=-lgmp
23476 gmpinc=
23477 gmplibs="-L$with_gmp/lib $gmplibs"
c3f247f4 23478 gmpinc="-I$with_gmp/include $gmpinc"
8df9a5db
MS
23479 if test "x$with_gmp_include" != x; then
23480 gmpinc="-I$with_gmp_include $gmpinc"
23481 fi
8df9a5db
MS
23482 if test "x$with_gmp_lib" != x; then
23483 gmplibs="-L$with_gmp_lib $gmplibs"
23484 fi
23485 else
23486 gmplibs="-lgmp"
23487 gmpinc="-I/usr/include"
23488 fi
23489
23490 if test "x${COMPILE_GMP}" = xyes; then
729530c0
AJH
23491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GMP directories" >&5
23492$as_echo_n "checking for GMP directories... " >&6; }
23493 if test "x$with_gmp" != x; then
23494 gmplibs="-L$with_gmp/lib -lgmp"
23495 gmpinc="-I$with_gmp/include"
23496 if test "x$with_gmp_include" != x; then
23497 gmpinc="-I$with_gmp_include $gmpinc"
23498 fi
23499 if test "x$with_gmp_lib" != x; then
23500 gmplibs="-L$with_gmp_lib $gmplibs"
23501 fi
23502 else
23503 with_gmp="/usr"
23504 gmplibs="-lgmp"
23505 gmpinc="-I/usr/include"
23506 fi
23507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: prefix=$with_gmp, libs=$gmplibs, inc=$gmpinc" >&5
23508$as_echo "prefix=$with_gmp, libs=$gmplibs, inc=$gmpinc" >&6; }
5213506e
RW
23509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_mul_si in -lgmp" >&5
23510$as_echo_n "checking for __gmpz_mul_si in -lgmp... " >&6; }
23511if test "${ac_cv_lib_gmp___gmpz_mul_si+set}" = set; then :
23512 $as_echo_n "(cached) " >&6
cd6d4007
MK
23513else
23514 ac_check_lib_save_LIBS=$LIBS
23515LIBS="-lgmp $LIBS"
23516if test x$gcc_no_link = xyes; then
5213506e 23517 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
cd6d4007 23518fi
5213506e 23519cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cd6d4007
MK
23520/* end confdefs.h. */
23521
5213506e
RW
23522/* Override any GCC internal prototype to avoid an error.
23523 Use char because int might match the return type of a GCC
23524 builtin and then its argument prototype would still apply. */
cd6d4007
MK
23525#ifdef __cplusplus
23526extern "C"
23527#endif
cd6d4007
MK
23528char __gmpz_mul_si ();
23529int
23530main ()
23531{
5213506e 23532return __gmpz_mul_si ();
cd6d4007
MK
23533 ;
23534 return 0;
23535}
23536_ACEOF
5213506e 23537if ac_fn_c_try_link "$LINENO"; then :
cd6d4007
MK
23538 ac_cv_lib_gmp___gmpz_mul_si=yes
23539else
5213506e 23540 ac_cv_lib_gmp___gmpz_mul_si=no
cd6d4007 23541fi
5213506e
RW
23542rm -f core conftest.err conftest.$ac_objext \
23543 conftest$ac_exeext conftest.$ac_ext
cd6d4007
MK
23544LIBS=$ac_check_lib_save_LIBS
23545fi
5213506e
RW
23546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_mul_si" >&5
23547$as_echo "$ac_cv_lib_gmp___gmpz_mul_si" >&6; }
23548if test "x$ac_cv_lib_gmp___gmpz_mul_si" = x""yes; then :
8df9a5db
MS
23549 GMP_CFLAGS="$gmpinc"
23550 GMP_LIBS="$gmplibs"
cd6d4007
MK
23551else
23552 GMP_CFLAGS=
23553 GMP_LIBS=
23554fi
23555
23556
23557
23558
5213506e
RW
23559 for ac_header in gmp.h
23560do :
23561 ac_fn_c_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
23562if test "x$ac_cv_header_gmp_h" = x""yes; then :
cd6d4007 23563 cat >>confdefs.h <<_ACEOF
5213506e 23564#define HAVE_GMP_H 1
cd6d4007
MK
23565_ACEOF
23566
23567fi
23568
23569done
23570
23571 fi
23572
23573else
23574 COMPILE_GMP=no
ea54b293
TT
23575fi
23576
f06a83c0 23577if test "x${REGENERATE_JNI_HEADERS}" = xyes; then
ea54b293
TT
23578
23579
5213506e
RW
23580# Check whether --with-javah was given.
23581if test "${with_javah+set}" = set; then :
23582 withval=$with_javah;
ea54b293
TT
23583 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
23584
23585 if test "x${withval}" != x; then
23586 if test -f "${withval}"; then
23587 USER_JAVAH="${withval}"
23588 else
23589 # Extract the first word of ""${withval}"", so it can be a program name with args.
23590set dummy "${withval}"; ac_word=$2
5213506e
RW
23591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23592$as_echo_n "checking for $ac_word... " >&6; }
23593if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
23594 $as_echo_n "(cached) " >&6
ea54b293
TT
23595else
23596 case $USER_JAVAH in
23597 [\\/]* | ?:[\\/]*)
23598 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
23599 ;;
23600 *)
23601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23602for as_dir in $PATH
23603do
23604 IFS=$as_save_IFS
23605 test -z "$as_dir" && as_dir=.
5213506e
RW
23606 for ac_exec_ext in '' $ac_executable_extensions; do
23607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea54b293 23608 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
5213506e 23609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ea54b293
TT
23610 break 2
23611 fi
23612done
5213506e
RW
23613 done
23614IFS=$as_save_IFS
ea54b293
TT
23615
23616 ;;
23617esac
23618fi
23619USER_JAVAH=$ac_cv_path_USER_JAVAH
ea54b293 23620if test -n "$USER_JAVAH"; then
5213506e
RW
23621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
23622$as_echo "$USER_JAVAH" >&6; }
ea54b293 23623else
5213506e
RW
23624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23625$as_echo "no" >&6; }
ea54b293
TT
23626fi
23627
5213506e 23628
ea54b293
TT
23629 fi
23630 else
e0441a5b 23631 for ac_prog in gjavah gjavah-4.3 gjavah-4.2 gjavah-4.1 gcjh-wrapper-4.1 gcjh-4.1 javah
f06a83c0
MK
23632do
23633 # Extract the first word of "$ac_prog", so it can be a program name with args.
23634set dummy $ac_prog; ac_word=$2
5213506e
RW
23635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23636$as_echo_n "checking for $ac_word... " >&6; }
23637if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
23638 $as_echo_n "(cached) " >&6
ea54b293
TT
23639else
23640 case $USER_JAVAH in
23641 [\\/]* | ?:[\\/]*)
23642 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
23643 ;;
23644 *)
23645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23646for as_dir in $PATH
23647do
23648 IFS=$as_save_IFS
23649 test -z "$as_dir" && as_dir=.
5213506e
RW
23650 for ac_exec_ext in '' $ac_executable_extensions; do
23651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea54b293 23652 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
5213506e 23653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ea54b293
TT
23654 break 2
23655 fi
23656done
5213506e
RW
23657 done
23658IFS=$as_save_IFS
ea54b293
TT
23659
23660 ;;
23661esac
23662fi
23663USER_JAVAH=$ac_cv_path_USER_JAVAH
ea54b293 23664if test -n "$USER_JAVAH"; then
5213506e
RW
23665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
23666$as_echo "$USER_JAVAH" >&6; }
ea54b293 23667else
5213506e
RW
23668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23669$as_echo "no" >&6; }
ea54b293
TT
23670fi
23671
5213506e 23672
f06a83c0
MK
23673 test -n "$USER_JAVAH" && break
23674done
23675
ea54b293
TT
23676 fi
23677
f06a83c0 23678 if test "x${USER_JAVAH}" = x; then
5213506e 23679 as_fn_error "can not find javah" "$LINENO" 5
f06a83c0 23680 fi
ea54b293
TT
23681
23682 else
23683
23684 if test "x" != x; then
23685 if test -f ""; then
23686 USER_JAVAH=""
23687 else
23688 # Extract the first word of """", so it can be a program name with args.
23689set dummy ""; ac_word=$2
5213506e
RW
23690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23691$as_echo_n "checking for $ac_word... " >&6; }
23692if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
23693 $as_echo_n "(cached) " >&6
ea54b293
TT
23694else
23695 case $USER_JAVAH in
23696 [\\/]* | ?:[\\/]*)
23697 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
23698 ;;
23699 *)
23700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23701for as_dir in $PATH
23702do
23703 IFS=$as_save_IFS
23704 test -z "$as_dir" && as_dir=.
5213506e
RW
23705 for ac_exec_ext in '' $ac_executable_extensions; do
23706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea54b293 23707 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
5213506e 23708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ea54b293
TT
23709 break 2
23710 fi
23711done
5213506e
RW
23712 done
23713IFS=$as_save_IFS
ea54b293
TT
23714
23715 ;;
23716esac
23717fi
23718USER_JAVAH=$ac_cv_path_USER_JAVAH
ea54b293 23719if test -n "$USER_JAVAH"; then
5213506e
RW
23720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
23721$as_echo "$USER_JAVAH" >&6; }
ea54b293 23722else
5213506e
RW
23723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23724$as_echo "no" >&6; }
ea54b293
TT
23725fi
23726
5213506e 23727
ea54b293
TT
23728 fi
23729 else
e0441a5b 23730 for ac_prog in gjavah gjavah-4.3 gjavah-4.2 gjavah-4.1 gcjh-wrapper-4.1 gcjh-4.1 javah
f06a83c0
MK
23731do
23732 # Extract the first word of "$ac_prog", so it can be a program name with args.
23733set dummy $ac_prog; ac_word=$2
5213506e
RW
23734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23735$as_echo_n "checking for $ac_word... " >&6; }
23736if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
23737 $as_echo_n "(cached) " >&6
ea54b293
TT
23738else
23739 case $USER_JAVAH in
23740 [\\/]* | ?:[\\/]*)
23741 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
23742 ;;
23743 *)
23744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23745for as_dir in $PATH
23746do
23747 IFS=$as_save_IFS
23748 test -z "$as_dir" && as_dir=.
5213506e
RW
23749 for ac_exec_ext in '' $ac_executable_extensions; do
23750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea54b293 23751 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
5213506e 23752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ea54b293
TT
23753 break 2
23754 fi
23755done
5213506e
RW
23756 done
23757IFS=$as_save_IFS
ea54b293
TT
23758
23759 ;;
23760esac
23761fi
23762USER_JAVAH=$ac_cv_path_USER_JAVAH
ea54b293 23763if test -n "$USER_JAVAH"; then
5213506e
RW
23764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
23765$as_echo "$USER_JAVAH" >&6; }
ea54b293 23766else
5213506e
RW
23767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23768$as_echo "no" >&6; }
ea54b293
TT
23769fi
23770
5213506e 23771
f06a83c0
MK
23772 test -n "$USER_JAVAH" && break
23773done
23774
ea54b293
TT
23775 fi
23776
f06a83c0 23777 if test "x${USER_JAVAH}" = x; then
5213506e 23778 as_fn_error "can not find javah" "$LINENO" 5
f06a83c0 23779 fi
ea54b293
TT
23780
23781 fi
23782
23783else
23784
23785
23786 if test "x" != x; then
23787 if test -f ""; then
23788 USER_JAVAH=""
23789 else
23790 # Extract the first word of """", so it can be a program name with args.
23791set dummy ""; ac_word=$2
5213506e
RW
23792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23793$as_echo_n "checking for $ac_word... " >&6; }
23794if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
23795 $as_echo_n "(cached) " >&6
ea54b293
TT
23796else
23797 case $USER_JAVAH in
23798 [\\/]* | ?:[\\/]*)
23799 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
23800 ;;
23801 *)
23802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23803for as_dir in $PATH
23804do
23805 IFS=$as_save_IFS
23806 test -z "$as_dir" && as_dir=.
5213506e
RW
23807 for ac_exec_ext in '' $ac_executable_extensions; do
23808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea54b293 23809 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
5213506e 23810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ea54b293
TT
23811 break 2
23812 fi
23813done
5213506e
RW
23814 done
23815IFS=$as_save_IFS
ea54b293
TT
23816
23817 ;;
23818esac
23819fi
23820USER_JAVAH=$ac_cv_path_USER_JAVAH
ea54b293 23821if test -n "$USER_JAVAH"; then
5213506e
RW
23822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
23823$as_echo "$USER_JAVAH" >&6; }
ea54b293 23824else
5213506e
RW
23825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23826$as_echo "no" >&6; }
ea54b293
TT
23827fi
23828
5213506e 23829
ea54b293
TT
23830 fi
23831 else
e0441a5b 23832 for ac_prog in gjavah gjavah-4.3 gjavah-4.2 gjavah-4.1 gcjh-wrapper-4.1 gcjh-4.1 javah
f06a83c0
MK
23833do
23834 # Extract the first word of "$ac_prog", so it can be a program name with args.
23835set dummy $ac_prog; ac_word=$2
5213506e
RW
23836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23837$as_echo_n "checking for $ac_word... " >&6; }
23838if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
23839 $as_echo_n "(cached) " >&6
ea54b293
TT
23840else
23841 case $USER_JAVAH in
23842 [\\/]* | ?:[\\/]*)
23843 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
23844 ;;
23845 *)
23846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23847for as_dir in $PATH
23848do
23849 IFS=$as_save_IFS
23850 test -z "$as_dir" && as_dir=.
5213506e
RW
23851 for ac_exec_ext in '' $ac_executable_extensions; do
23852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea54b293 23853 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
5213506e 23854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ea54b293
TT
23855 break 2
23856 fi
23857done
5213506e
RW
23858 done
23859IFS=$as_save_IFS
ea54b293
TT
23860
23861 ;;
23862esac
23863fi
23864USER_JAVAH=$ac_cv_path_USER_JAVAH
ea54b293 23865if test -n "$USER_JAVAH"; then
5213506e
RW
23866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
23867$as_echo "$USER_JAVAH" >&6; }
ea54b293 23868else
5213506e
RW
23869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23870$as_echo "no" >&6; }
ea54b293
TT
23871fi
23872
5213506e 23873
f06a83c0
MK
23874 test -n "$USER_JAVAH" && break
23875done
23876
ea54b293
TT
23877 fi
23878
f06a83c0 23879 if test "x${USER_JAVAH}" = x; then
5213506e 23880 as_fn_error "can not find javah" "$LINENO" 5
f06a83c0 23881 fi
ea54b293
TT
23882
23883
5213506e
RW
23884fi
23885
ea54b293
TT
23886
23887
ea54b293
TT
23888fi
23889
97b8365c 23890CLASSPATH_INCLUDES="-I\$(top_srcdir)/include -I\$(top_srcdir)/native/jni/classpath -I\$(top_srcdir)/native/jni/native-lib"
ea54b293
TT
23891
23892
23893if test "x${COMPILE_JNI}" = xyes; then
5213506e
RW
23894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking jni_md.h support" >&5
23895$as_echo_n "checking jni_md.h support... " >&6; }
ea54b293 23896 if test -f ${srcdir}/include/jni_md-${target_cpu}-${target_os}.h; then
5213506e
RW
23897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23898$as_echo "yes" >&6; }
ea54b293
TT
23899 else
23900 target_cpu=x86
23901 target_os=linux-gnu
5213506e
RW
23902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no" >&5
23903$as_echo "$as_me: WARNING: no" >&2;}
ea54b293
TT
23904 fi
23905 ac_sources="include/jni_md-${target_cpu}-${target_os}.h"
23906 ac_dests="include/jni_md.h"
23907 while test -n "$ac_sources"; do
23908 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
23909 set $ac_sources; ac_source=$1; shift; ac_sources=$*
23910 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
23911 done
5213506e 23912 ac_config_links="$ac_config_links $ac_config_links_1"
ea54b293
TT
23913
23914fi
23915
23916
ea54b293 23917
5213506e
RW
23918# Check whether --with-vm-classes was given.
23919if test "${with_vm_classes+set}" = set; then :
23920 withval=$with_vm_classes; vm_classes="$with_vm_classes"
e0441a5b
MK
23921else
23922 vm_classes='${top_srcdir}/vm/reference'
5213506e
RW
23923fi
23924
ea54b293
TT
23925
23926
8c0633b7 23927
5213506e
RW
23928
23929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
23930$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
23931 # Check whether --enable-maintainer-mode was given.
23932if test "${enable_maintainer_mode+set}" = set; then :
23933 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
e0441a5b
MK
23934else
23935 USE_MAINTAINER_MODE=no
5213506e 23936fi
e0441a5b 23937
5213506e
RW
23938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
23939$as_echo "$USE_MAINTAINER_MODE" >&6; }
23940 if test $USE_MAINTAINER_MODE = yes; then
e0441a5b
MK
23941 MAINTAINER_MODE_TRUE=
23942 MAINTAINER_MODE_FALSE='#'
23943else
23944 MAINTAINER_MODE_TRUE='#'
23945 MAINTAINER_MODE_FALSE=
23946fi
23947
23948 MAINT=$MAINTAINER_MODE_TRUE
23949
23950
23951
5213506e
RW
23952# Check whether --enable-debug was given.
23953if test "${enable_debug+set}" = set; then :
23954 enableval=$enable_debug; case "${enableval}" in
e0441a5b
MK
23955 yes)
23956 LIBDEBUG="true"
23957
5213506e 23958$as_echo "#define DEBUG 1" >>confdefs.h
e0441a5b
MK
23959
23960 ;;
23961 no) LIBDEBUG="false" ;;
5213506e 23962 *) as_fn_error "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
e0441a5b
MK
23963 esac
23964else
23965 LIBDEBUG="false"
5213506e
RW
23966fi
23967
e0441a5b
MK
23968
23969
5213506e
RW
23970# Check whether --enable-load-library was given.
23971if test "${enable_load_library+set}" = set; then :
23972 enableval=$enable_load_library; case "${enableval}" in
e0441a5b
MK
23973 yes) INIT_LOAD_LIBRARY="true" ;;
23974 no) INIT_LOAD_LIBRARY="false" ;;
5213506e 23975 *) as_fn_error "bad value ${enableval} for --enable-load-library" "$LINENO" 5 ;;
e0441a5b
MK
23976 esac
23977else
23978 INIT_LOAD_LIBRARY="true"
5213506e
RW
23979fi
23980
e0441a5b
MK
23981
23982
23983
23984
5213506e
RW
23985# Check whether --with-ecj-jar was given.
23986if test "${with_ecj_jar+set}" = set; then :
23987 withval=$with_ecj_jar; ECJ_JAR=$withval
e0441a5b
MK
23988else
23989 if test -f $multi_basedir/ecj.jar; then
23990 ECJ_JAR='$(jardir)/ecj.jar'
23991 fi
5213506e
RW
23992fi
23993
e0441a5b
MK
23994
23995
5213506e
RW
23996# Check whether --enable-java-lang-system-explicit-initialization was given.
23997if test "${enable_java_lang_system_explicit_initialization+set}" = set; then :
23998 enableval=$enable_java_lang_system_explicit_initialization; case "${enableval}" in
e0441a5b
MK
23999 yes|true) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="true" ;;
24000 no|false) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false" ;;
5213506e 24001 *) as_fn_error "bad value ${enableval} for --enable-java-lang-system-explicit-initialization" "$LINENO" 5 ;;
e0441a5b
MK
24002 esac
24003else
24004 JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false"
5213506e
RW
24005fi
24006
e0441a5b
MK
24007
24008
24009
24010REMOVE=""
24011
24012
24013# Extract the first word of "mkdir", so it can be a program name with args.
24014set dummy mkdir; ac_word=$2
5213506e
RW
24015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24016$as_echo_n "checking for $ac_word... " >&6; }
24017if test "${ac_cv_path_MKDIR+set}" = set; then :
24018 $as_echo_n "(cached) " >&6
ea54b293 24019else
e0441a5b 24020 case $MKDIR in
ea54b293 24021 [\\/]* | ?:[\\/]*)
e0441a5b 24022 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
ea54b293
TT
24023 ;;
24024 *)
24025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24026for as_dir in $PATH
24027do
24028 IFS=$as_save_IFS
24029 test -z "$as_dir" && as_dir=.
5213506e
RW
24030 for ac_exec_ext in '' $ac_executable_extensions; do
24031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
e0441a5b 24032 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5213506e 24033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ea54b293
TT
24034 break 2
24035 fi
24036done
5213506e
RW
24037 done
24038IFS=$as_save_IFS
ea54b293
TT
24039
24040 ;;
24041esac
24042fi
e0441a5b 24043MKDIR=$ac_cv_path_MKDIR
e0441a5b 24044if test -n "$MKDIR"; then
5213506e
RW
24045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
24046$as_echo "$MKDIR" >&6; }
ea54b293 24047else
5213506e
RW
24048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24049$as_echo "no" >&6; }
ea54b293
TT
24050fi
24051
5213506e 24052
e0441a5b
MK
24053# Extract the first word of "cp", so it can be a program name with args.
24054set dummy cp; ac_word=$2
5213506e
RW
24055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24056$as_echo_n "checking for $ac_word... " >&6; }
24057if test "${ac_cv_path_CP+set}" = set; then :
24058 $as_echo_n "(cached) " >&6
ea54b293 24059else
e0441a5b 24060 case $CP in
ea54b293 24061 [\\/]* | ?:[\\/]*)
e0441a5b 24062 ac_cv_path_CP="$CP" # Let the user override the test with a path.
ea54b293
TT
24063 ;;
24064 *)
24065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24066for as_dir in $PATH
24067do
24068 IFS=$as_save_IFS
24069 test -z "$as_dir" && as_dir=.
5213506e
RW
24070 for ac_exec_ext in '' $ac_executable_extensions; do
24071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
e0441a5b 24072 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5213506e 24073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ea54b293
TT
24074 break 2
24075 fi
24076done
5213506e
RW
24077 done
24078IFS=$as_save_IFS
ea54b293
TT
24079
24080 ;;
24081esac
24082fi
e0441a5b 24083CP=$ac_cv_path_CP
e0441a5b 24084if test -n "$CP"; then
5213506e
RW
24085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
24086$as_echo "$CP" >&6; }
ea54b293 24087else
5213506e
RW
24088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24089$as_echo "no" >&6; }
ea54b293
TT
24090fi
24091
5213506e 24092
ea54b293
TT
24093# Extract the first word of "date", so it can be a program name with args.
24094set dummy date; ac_word=$2
5213506e
RW
24095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24096$as_echo_n "checking for $ac_word... " >&6; }
24097if test "${ac_cv_path_DATE+set}" = set; then :
24098 $as_echo_n "(cached) " >&6
ea54b293
TT
24099else
24100 case $DATE in
24101 [\\/]* | ?:[\\/]*)
24102 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
24103 ;;
24104 *)
24105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24106for as_dir in $PATH
24107do
24108 IFS=$as_save_IFS
24109 test -z "$as_dir" && as_dir=.
5213506e
RW
24110 for ac_exec_ext in '' $ac_executable_extensions; do
24111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea54b293 24112 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5213506e 24113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ea54b293
TT
24114 break 2
24115 fi
24116done
5213506e
RW
24117 done
24118IFS=$as_save_IFS
ea54b293
TT
24119
24120 ;;
24121esac
24122fi
24123DATE=$ac_cv_path_DATE
ea54b293 24124if test -n "$DATE"; then
5213506e
RW
24125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
24126$as_echo "$DATE" >&6; }
ea54b293 24127else
5213506e
RW
24128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24129$as_echo "no" >&6; }
ea54b293
TT
24130fi
24131
24132
5213506e 24133
ea54b293
TT
24134# Extract the first word of "find", so it can be a program name with args.
24135set dummy find; ac_word=$2
5213506e
RW
24136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24137$as_echo_n "checking for $ac_word... " >&6; }
24138if test "${ac_cv_path_FIND+set}" = set; then :
24139 $as_echo_n "(cached) " >&6
ea54b293
TT
24140else
24141 case $FIND in
24142 [\\/]* | ?:[\\/]*)
24143 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
24144 ;;
24145 *)
24146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24147for as_dir in $PATH
24148do
24149 IFS=$as_save_IFS
24150 test -z "$as_dir" && as_dir=.
5213506e
RW
24151 for ac_exec_ext in '' $ac_executable_extensions; do
24152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea54b293 24153 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5213506e 24154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ea54b293
TT
24155 break 2
24156 fi
24157done
5213506e
RW
24158 done
24159IFS=$as_save_IFS
ea54b293
TT
24160
24161 ;;
24162esac
24163fi
24164FIND=$ac_cv_path_FIND
ea54b293 24165if test -n "$FIND"; then
5213506e
RW
24166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
24167$as_echo "$FIND" >&6; }
ea54b293 24168else
5213506e
RW
24169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24170$as_echo "no" >&6; }
ea54b293
TT
24171fi
24172
24173
24174
5213506e 24175
1ea63ef8 24176 # Extract the first word of "zip", so it can be a program name with args.
ea54b293 24177set dummy zip; ac_word=$2
5213506e
RW
24178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24179$as_echo_n "checking for $ac_word... " >&6; }
24180if test "${ac_cv_path_ZIP+set}" = set; then :
24181 $as_echo_n "(cached) " >&6
ea54b293
TT
24182else
24183 case $ZIP in
24184 [\\/]* | ?:[\\/]*)
24185 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
24186 ;;
24187 *)
24188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24189for as_dir in $PATH
24190do
24191 IFS=$as_save_IFS
24192 test -z "$as_dir" && as_dir=.
5213506e
RW
24193 for ac_exec_ext in '' $ac_executable_extensions; do
24194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea54b293 24195 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5213506e 24196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ea54b293
TT
24197 break 2
24198 fi
24199done
5213506e
RW
24200 done
24201IFS=$as_save_IFS
ea54b293
TT
24202
24203 ;;
24204esac
24205fi
24206ZIP=$ac_cv_path_ZIP
ea54b293 24207if test -n "$ZIP"; then
5213506e
RW
24208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
24209$as_echo "$ZIP" >&6; }
ea54b293 24210else
5213506e
RW
24211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24212$as_echo "no" >&6; }
ea54b293
TT
24213fi
24214
1ea63ef8 24215
cd6d4007 24216
5213506e
RW
24217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a jar-like tool" >&5
24218$as_echo_n "checking for a jar-like tool... " >&6; }
cd6d4007 24219
5213506e
RW
24220# Check whether --with-jar was given.
24221if test "${with_jar+set}" = set; then :
24222 withval=$with_jar;
cd6d4007
MK
24223 case "${withval}" in
24224 yes)
24225 JAR=yes
24226 ;;
24227 no)
24228 JAR=no
5213506e
RW
24229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${JAR}" >&5
24230$as_echo "${JAR}" >&6; }
cd6d4007
MK
24231 ;;
24232 *)
24233 if test -f "${withval}"; then
24234 JAR="${withval}"
5213506e
RW
24235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${JAR}" >&5
24236$as_echo "${JAR}" >&6; }
cd6d4007 24237 else
5213506e
RW
24238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24239$as_echo "not found" >&6; }
24240 as_fn_error "The jar tool ${withval} was not found." "$LINENO" 5
cd6d4007
MK
24241 fi
24242 ;;
24243 esac
8aa540d2
MW
24244
24245else
cd6d4007
MK
24246
24247 JAR=yes
24248
5213506e
RW
24249fi
24250
cd6d4007 24251 if test x"${JAR}" = "xyes"; then
5213506e
RW
24252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: trying fastjar, gjar and jar" >&5
24253$as_echo "trying fastjar, gjar and jar" >&6; }
cd6d4007 24254 for ac_prog in fastjar gjar jar
e0441a5b
MK
24255do
24256 # Extract the first word of "$ac_prog", so it can be a program name with args.
24257set dummy $ac_prog; ac_word=$2
5213506e
RW
24258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24259$as_echo_n "checking for $ac_word... " >&6; }
24260if test "${ac_cv_path_JAR+set}" = set; then :
24261 $as_echo_n "(cached) " >&6
8aa540d2 24262else
cd6d4007 24263 case $JAR in
8aa540d2 24264 [\\/]* | ?:[\\/]*)
cd6d4007 24265 ac_cv_path_JAR="$JAR" # Let the user override the test with a path.
8aa540d2
MW
24266 ;;
24267 *)
24268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24269for as_dir in $PATH
24270do
24271 IFS=$as_save_IFS
24272 test -z "$as_dir" && as_dir=.
5213506e
RW
24273 for ac_exec_ext in '' $ac_executable_extensions; do
24274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cd6d4007 24275 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext"
5213506e 24276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8aa540d2
MW
24277 break 2
24278 fi
24279done
5213506e
RW
24280 done
24281IFS=$as_save_IFS
8aa540d2
MW
24282
24283 ;;
24284esac
24285fi
cd6d4007 24286JAR=$ac_cv_path_JAR
cd6d4007 24287if test -n "$JAR"; then
5213506e
RW
24288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
24289$as_echo "$JAR" >&6; }
8aa540d2 24290else
5213506e
RW
24291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24292$as_echo "no" >&6; }
8aa540d2
MW
24293fi
24294
5213506e 24295
cd6d4007 24296 test -n "$JAR" && break
e0441a5b
MK
24297done
24298
cd6d4007 24299 if test x"${RHINO_JAR}" = "xyes"; then
5213506e
RW
24300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24301$as_echo "not found" >&6; }
cd6d4007
MK
24302 fi
24303 fi
24304 if test x"${JAR}" = "xno" && test x"${ZIP}" = ""; then
5213506e 24305 as_fn_error "No zip or jar tool found." "$LINENO" 5
8aa540d2 24306 fi
5213506e 24307 if test x"${JAR}" != "xno" && test x"${JAR}" != "xyes"; then
cd6d4007
MK
24308 WITH_JAR_TRUE=
24309 WITH_JAR_FALSE='#'
24310else
24311 WITH_JAR_TRUE='#'
24312 WITH_JAR_FALSE=
24313fi
24314
24315
24316
24317
5213506e
RW
24318# Check whether --with-glibj was given.
24319if test "${with_glibj+set}" = set; then :
24320 withval=$with_glibj;
1ea63ef8 24321 if test "x${withval}" = xyes || test "x${withval}" = xzip; then
ea54b293
TT
24322 install_class_files=no
24323 build_class_files=yes
1ea63ef8 24324 use_zip=yes
ea54b293 24325 elif test "x${withval}" = xboth; then
ea54b293
TT
24326 install_class_files=yes
24327 build_class_files=yes
1ea63ef8 24328 use_zip=yes
ea54b293 24329 elif test "x${withval}" = xflat; then
ea54b293
TT
24330 install_class_files=yes
24331 build_class_files=yes
1ea63ef8 24332 use_zip=no
ea54b293 24333 elif test "x${withval}" = xno || test "x${withval}" = xnone; then
ea54b293
TT
24334 install_class_files=no
24335 build_class_files=no
1ea63ef8 24336 use_zip=no
ea54b293 24337 elif test "x${withval}" = xbuild; then
ea54b293
TT
24338 install_class_files=no
24339 build_class_files=yes
1ea63ef8 24340 use_zip=no
ea54b293 24341 else
5213506e 24342 as_fn_error "unknown value given to --with-glibj" "$LINENO" 5
ea54b293
TT
24343 fi
24344
24345else
24346
ea54b293 24347 install_class_files=no
1ea63ef8 24348 use_zip=yes
ea54b293 24349
5213506e 24350fi
ea54b293 24351
5213506e 24352 if test "x${use_zip}" = xyes; then
ea54b293
TT
24353 INSTALL_GLIBJ_ZIP_TRUE=
24354 INSTALL_GLIBJ_ZIP_FALSE='#'
24355else
24356 INSTALL_GLIBJ_ZIP_TRUE='#'
24357 INSTALL_GLIBJ_ZIP_FALSE=
24358fi
24359
5213506e 24360 if test "x${install_class_files}" = xyes; then
ea54b293
TT
24361 INSTALL_CLASS_FILES_TRUE=
24362 INSTALL_CLASS_FILES_FALSE='#'
24363else
24364 INSTALL_CLASS_FILES_TRUE='#'
24365 INSTALL_CLASS_FILES_FALSE=
24366fi
24367
5213506e 24368 if test "x${build_class_files}" = xyes; then
ea54b293
TT
24369 BUILD_CLASS_FILES_TRUE=
24370 BUILD_CLASS_FILES_FALSE='#'
24371else
24372 BUILD_CLASS_FILES_TRUE='#'
24373 BUILD_CLASS_FILES_FALSE=
24374fi
24375
24376
5213506e
RW
24377 # Check whether --enable-examples was given.
24378if test "${enable_examples+set}" = set; then :
24379 enableval=$enable_examples; case "${enableval}" in
ea54b293
TT
24380 yes) EXAMPLESDIR="examples" ;;
24381 no) EXAMPLESDIR="" ;;
5213506e 24382 *) as_fn_error "bad value ${enableval} for --enable-examples" "$LINENO" 5 ;;
ea54b293
TT
24383 esac
24384else
24385 EXAMPLESDIR="examples"
5213506e
RW
24386fi
24387
cd6d4007 24388 if test "x${build_class_files}" = xno; then
ea54b293
TT
24389 EXAMPLESDIR=""
24390 fi
24391
24392
5213506e
RW
24393 # Check whether --enable-tools was given.
24394if test "${enable_tools+set}" = set; then :
24395 enableval=$enable_tools; case "${enableval}" in
e0441a5b
MK
24396 yes) TOOLSDIR="tools" ;;
24397 no) TOOLSDIR="" ;;
5213506e 24398 *) as_fn_error "bad value ${enableval} for --enable-tools" "$LINENO" 5 ;;
e0441a5b
MK
24399 esac
24400else
24401 TOOLSDIR="tools"
5213506e
RW
24402fi
24403
cd6d4007 24404 if test "x${build_class_files}" = xno; then
e0441a5b
MK
24405 TOOLSDIR=""
24406 fi
24407
24408
ea54b293
TT
24409
24410
24411
5213506e
RW
24412# Check whether --with-gjdoc was given.
24413if test "${with_gjdoc+set}" = set; then :
24414 withval=$with_gjdoc; if test "x${withval}" = xno; then
ea54b293
TT
24415 WITH_GJDOC=no;
24416 elif test "x${withval}" = xyes -o "x{withval}" = x; then
24417 WITH_GJDOC=yes;
24418 # Extract the first word of "gjdoc", so it can be a program name with args.
24419set dummy gjdoc; ac_word=$2
5213506e
RW
24420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24421$as_echo_n "checking for $ac_word... " >&6; }
24422if test "${ac_cv_path_GJDOC+set}" = set; then :
24423 $as_echo_n "(cached) " >&6
ea54b293
TT
24424else
24425 case $GJDOC in
24426 [\\/]* | ?:[\\/]*)
24427 ac_cv_path_GJDOC="$GJDOC" # Let the user override the test with a path.
24428 ;;
24429 *)
24430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24431for as_dir in $PATH
24432do
24433 IFS=$as_save_IFS
24434 test -z "$as_dir" && as_dir=.
5213506e
RW
24435 for ac_exec_ext in '' $ac_executable_extensions; do
24436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ea54b293 24437 ac_cv_path_GJDOC="$as_dir/$ac_word$ac_exec_ext"
5213506e 24438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ea54b293
TT
24439 break 2
24440 fi
24441done
5213506e
RW
24442 done
24443IFS=$as_save_IFS
ea54b293
TT
24444
24445 test -z "$ac_cv_path_GJDOC" && ac_cv_path_GJDOC=""no""
24446 ;;
24447esac
24448fi
24449GJDOC=$ac_cv_path_GJDOC
ea54b293 24450if test -n "$GJDOC"; then
5213506e
RW
24451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GJDOC" >&5
24452$as_echo "$GJDOC" >&6; }
ea54b293 24453else
5213506e
RW
24454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24455$as_echo "no" >&6; }
ea54b293
TT
24456fi
24457
5213506e 24458
ea54b293 24459 if test "x${GJDOC}" = xno; then
5213506e 24460 as_fn_error "\"gjdoc executable not found\"" "$LINENO" 5;
ea54b293
TT
24461 fi
24462 else
24463 WITH_GJDOC=yes
24464 GJDOC="${withval}"
5213506e
RW
24465 as_ac_File=`$as_echo "ac_cv_file_${GJDOC}" | $as_tr_sh`
24466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${GJDOC}" >&5
24467$as_echo_n "checking for ${GJDOC}... " >&6; }
24468if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
24469 $as_echo_n "(cached) " >&6
ea54b293
TT
24470else
24471 test "$cross_compiling" = yes &&
5213506e 24472 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
ea54b293
TT
24473if test -r "${GJDOC}"; then
24474 eval "$as_ac_File=yes"
24475else
24476 eval "$as_ac_File=no"
24477fi
24478fi
5213506e
RW
24479eval ac_res=\$$as_ac_File
24480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24481$as_echo "$ac_res" >&6; }
24482eval as_val=\$$as_ac_File
24483 if test "x$as_val" = x""yes; then :
24484
ea54b293 24485else
5213506e 24486 as_fn_error "\"Cannot use ${withval} as gjdoc executable since it doesn't exist\"" "$LINENO" 5
ea54b293
TT
24487fi
24488
24489 fi
24490else
24491 WITH_GJDOC=no
5213506e 24492fi
ea54b293 24493
5213506e 24494 if test "x${WITH_GJDOC}" = xyes; then
ea54b293
TT
24495 CREATE_API_DOCS_TRUE=
24496 CREATE_API_DOCS_FALSE='#'
24497else
24498 CREATE_API_DOCS_TRUE='#'
24499 CREATE_API_DOCS_FALSE=
24500fi
24501
cd6d4007 24502 if test "x${WITH_GJDOC}" = xyes; then
5213506e
RW
24503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of GJDoc" >&5
24504$as_echo_n "checking version of GJDoc... " >&6; }
cd6d4007 24505 gjdoc_version=$(${GJDOC} --version|cut -d ' ' -f2)
5213506e
RW
24506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gjdoc_version}" >&5
24507$as_echo "${gjdoc_version}" >&6; }
cd6d4007
MK
24508 case ${gjdoc_version} in
24509 0.7.9) ;;
24510 0.8*) ;;
a1906e8b
MK
24511 0.9*) ;;
24512 1*) ;;
5213506e 24513 *) as_fn_error "Building documentation requires GJDoc >= 0.7.9, ${gjdoc_version} found." "$LINENO" 5 ;;
cd6d4007
MK
24514 esac
24515 fi
ea54b293
TT
24516
24517
24518
24519
5213506e
RW
24520# Check whether --with-jay was given.
24521if test "${with_jay+set}" = set; then :
24522 withval=$with_jay;
24523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to regenerate parsers with jay" >&5
24524$as_echo_n "checking whether to regenerate parsers with jay... " >&6; }
e0441a5b
MK
24525 JAY_FOUND=no
24526 JAY_DIR_PATH=
24527 if test "x${withval}" = xno; then
5213506e
RW
24528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24529$as_echo "no" >&6; }
e0441a5b 24530 elif test "x${withval}" = xyes; then
5213506e
RW
24531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24532$as_echo "yes" >&6; }
e0441a5b
MK
24533 JAY_DIR_PATH="/usr/share/jay"
24534 elif test -d "${withval}"; then
5213506e
RW
24535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24536$as_echo "yes" >&6; }
ea54b293 24537 JAY_DIR_PATH="${withval}"
e0441a5b 24538 elif test -f "${withval}"; then
5213506e
RW
24539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24540$as_echo "yes" >&6; }
e0441a5b
MK
24541 JAY_DIR_PATH=`dirname "${withval}"`
24542 JAY="${withval}"
24543 else
5213506e 24544 as_fn_error "jay not found at ${withval}" "$LINENO" 5
e0441a5b
MK
24545 fi
24546
24547 if test "x${JAY_DIR_PATH}" != x; then
ea54b293
TT
24548 # Extract the first word of "jay", so it can be a program name with args.
24549set dummy jay; ac_word=$2
5213506e
RW
24550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24551$as_echo_n "checking for $ac_word... " >&6; }
24552if test "${ac_cv_path_JAY+set}" = set; then :
24553 $as_echo_n "(cached) " >&6
ea54b293
TT
24554else
24555 case $JAY in
24556 [\\/]* | ?:[\\/]*)
24557 ac_cv_path_JAY="$JAY" # Let the user override the test with a path.
24558 ;;
24559 *)
5213506e
RW
24560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24561as_dummy="${JAY_DIR_PATH}:${PATH}"
24562for as_dir in $as_dummy
24563do
24564 IFS=$as_save_IFS
24565 test -z "$as_dir" && as_dir=.
24566 for ac_exec_ext in '' $ac_executable_extensions; do
24567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24568 ac_cv_path_JAY="$as_dir/$ac_word$ac_exec_ext"
24569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24570 break 2
24571 fi
24572done
24573 done
24574IFS=$as_save_IFS
21276379 24575
5213506e
RW
24576 test -z "$ac_cv_path_JAY" && ac_cv_path_JAY=""no""
24577 ;;
24578esac
21276379 24579fi
5213506e
RW
24580JAY=$ac_cv_path_JAY
24581if test -n "$JAY"; then
24582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAY" >&5
24583$as_echo "$JAY" >&6; }
21276379 24584else
5213506e
RW
24585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24586$as_echo "no" >&6; }
24587fi
24588
21276379 24589
5213506e
RW
24590 if test "x${JAY}" = xno; then
24591 as_fn_error "jay executable not found" "$LINENO" 5;
24592 fi
24593 JAY_SKELETON="${JAY_DIR_PATH}/skeleton"
24594 as_ac_File=`$as_echo "ac_cv_file_${JAY_SKELETON}" | $as_tr_sh`
24595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${JAY_SKELETON}" >&5
24596$as_echo_n "checking for ${JAY_SKELETON}... " >&6; }
24597if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
24598 $as_echo_n "(cached) " >&6
24599else
24600 test "$cross_compiling" = yes &&
24601 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
24602if test -r "${JAY_SKELETON}"; then
24603 eval "$as_ac_File=yes"
24604else
24605 eval "$as_ac_File=no"
21276379 24606fi
21276379 24607fi
5213506e
RW
24608eval ac_res=\$$as_ac_File
24609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24610$as_echo "$ac_res" >&6; }
24611eval as_val=\$$as_ac_File
24612 if test "x$as_val" = x""yes; then :
21276379 24613
21276379 24614else
5213506e 24615 as_fn_error "Expected skeleton file in ${JAY_DIR_PATH}" "$LINENO" 5
21276379 24616fi
21276379 24617
5213506e
RW
24618 JAY_FOUND=yes
24619 fi
21276379 24620
21276379 24621else
21276379 24622
5213506e
RW
24623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to regenerate parsers with jay" >&5
24624$as_echo_n "checking whether to regenerate parsers with jay... " >&6; }
24625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24626$as_echo "no" >&6; }
24627 JAY_FOUND=no
24628
21276379 24629fi
5213506e
RW
24630
24631 if test "x${JAY_FOUND}" = xyes; then
24632 REGEN_PARSERS_TRUE=
24633 REGEN_PARSERS_FALSE='#'
21276379 24634else
5213506e
RW
24635 REGEN_PARSERS_TRUE='#'
24636 REGEN_PARSERS_FALSE=
21276379 24637fi
5213506e
RW
24638
24639
24640
24641# Check whether --enable-portable-native-sync was given.
24642if test "${enable_portable_native_sync+set}" = set; then :
24643 enableval=$enable_portable_native_sync; case "${enableval}" in
24644 yes)
24645
24646$as_echo "#define PORTABLE_NATIVE_SYNC 1" >>confdefs.h
24647
24648 ;;
24649 no) ;;
24650 *)
24651 as_fn_error "bad value ${enableval} for --enable-portable-native-sync" "$LINENO" 5
24652 ;;
24653 esac
21276379 24654fi
21276379
MW
24655
24656
5213506e
RW
24657# ------ AX CREATE STDINT H -------------------------------------
24658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
24659$as_echo_n "checking for stdint types... " >&6; }
24660ac_stdint_h=`echo include/config-int.h`
24661# try to shortcircuit - if the default include path of the compiler
24662# can find a "stdint.h" header then we assume that all compilers can.
24663if test "${ac_cv_header_stdint_t+set}" = set; then :
24664 $as_echo_n "(cached) " >&6
21276379 24665else
5213506e
RW
24666
24667old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
24668old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
24669old_CFLAGS="$CFLAGS" ; CFLAGS=""
24670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21276379 24671/* end confdefs.h. */
5213506e 24672#include <stdint.h>
21276379
MW
24673int
24674main ()
24675{
5213506e 24676int_least32_t v = 0;
21276379
MW
24677 ;
24678 return 0;
24679}
24680_ACEOF
5213506e
RW
24681if ac_fn_c_try_compile "$LINENO"; then :
24682 ac_cv_stdint_result="(assuming C99 compatible system)"
24683 ac_cv_header_stdint_t="stdint.h";
21276379 24684else
5213506e 24685 ac_cv_header_stdint_t=""
21276379 24686fi
5213506e
RW
24687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24688CXXFLAGS="$old_CXXFLAGS"
24689CPPFLAGS="$old_CPPFLAGS"
24690CFLAGS="$old_CFLAGS"
21276379 24691fi
21276379 24692
5213506e
RW
24693
24694v="... $ac_cv_header_stdint_h"
24695if test "$ac_stdint_h" = "stdint.h" ; then
24696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
24697$as_echo "(are you sure you want them in ./stdint.h?)" >&6; }
24698elif test "$ac_stdint_h" = "inttypes.h" ; then
24699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
24700$as_echo "(are you sure you want them in ./inttypes.h?)" >&6; }
24701elif test "_$ac_cv_header_stdint_t" = "_" ; then
24702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
24703$as_echo "(putting them into $ac_stdint_h)$v" >&6; }
21276379 24704else
5213506e
RW
24705 ac_cv_header_stdint="$ac_cv_header_stdint_t"
24706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
24707$as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; }
24708fi
21276379 24709
5213506e 24710if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
21276379 24711
5213506e
RW
24712
24713inttype_headers=`echo | sed -e 's/,/ /g'`
24714
24715ac_cv_stdint_result="(no helpful system typedefs seen)"
24716
24717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
24718$as_echo_n "checking for stdint uintptr_t... " >&6; }
24719if test "${ac_cv_header_stdint_x+set}" = set; then :
24720 $as_echo_n "(cached) " >&6
21276379 24721else
21276379 24722
5213506e
RW
24723 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
24724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
24725$as_echo "(..)" >&6; }
24726 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do
24727 unset ac_cv_type_uintptr_t
24728 unset ac_cv_type_uint64_t
24729 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
24730"
24731if test "x$ac_cv_type_uintptr_t" = x""yes; then :
24732 ac_cv_header_stdint_x=$i
24733else
24734 continue
21276379 24735fi
5213506e
RW
24736
24737 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
24738"
24739if test "x$ac_cv_type_uint64_t" = x""yes; then :
24740 and64="/uint64_t"
21276379 24741else
5213506e
RW
24742 and64=""
24743fi
21276379 24744
5213506e
RW
24745 stdint.h inttypes.h sys/inttypes.h $inttype_headers
24746 break
24747 done
24748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
24749$as_echo_n "checking for stdint uintptr_t... " >&6; }
21276379 24750
5213506e
RW
24751fi
24752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
24753$as_echo "$ac_cv_header_stdint_x" >&6; }
21276379 24754
5213506e
RW
24755
24756if test "_$ac_cv_header_stdint_x" = "_" ; then
24757
24758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
24759$as_echo_n "checking for stdint uint32_t... " >&6; }
24760if test "${ac_cv_header_stdint_o+set}" = set; then :
24761 $as_echo_n "(cached) " >&6
21276379 24762else
21276379 24763
5213506e
RW
24764 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
24765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
24766$as_echo "(..)" >&6; }
24767 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do
24768 unset ac_cv_type_uint32_t
24769 unset ac_cv_type_uint64_t
24770 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
24771"
24772if test "x$ac_cv_type_uint32_t" = x""yes; then :
24773 ac_cv_header_stdint_o=$i
24774else
24775 continue
24776fi
24777
24778 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
24779"
24780if test "x$ac_cv_type_uint64_t" = x""yes; then :
24781 and64="/uint64_t"
24782else
24783 and64=""
21276379 24784fi
5213506e
RW
24785
24786 inttypes.h sys/inttypes.h stdint.h $inttype_headers
24787 break
24788 break;
21276379 24789 done
5213506e
RW
24790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
24791$as_echo_n "checking for stdint uint32_t... " >&6; }
21276379 24792
21276379 24793fi
5213506e
RW
24794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
24795$as_echo "$ac_cv_header_stdint_o" >&6; }
24796
21276379 24797fi
21276379 24798
5213506e
RW
24799if test "_$ac_cv_header_stdint_x" = "_" ; then
24800if test "_$ac_cv_header_stdint_o" = "_" ; then
24801
24802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
24803$as_echo_n "checking for stdint u_int32_t... " >&6; }
24804if test "${ac_cv_header_stdint_u+set}" = set; then :
24805 $as_echo_n "(cached) " >&6
21276379 24806else
21276379 24807
5213506e
RW
24808 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
24809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
24810$as_echo "(..)" >&6; }
24811 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
24812 unset ac_cv_type_u_int32_t
24813 unset ac_cv_type_u_int64_t
24814 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
24815"
24816if test "x$ac_cv_type_u_int32_t" = x""yes; then :
24817 ac_cv_header_stdint_u=$i
24818else
24819 continue
21276379 24820fi
5213506e
RW
24821
24822 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
24823"
24824if test "x$ac_cv_type_u_int64_t" = x""yes; then :
24825 and64="/u_int64_t"
8c0633b7 24826else
5213506e
RW
24827 and64=""
24828fi
21276379 24829
5213506e
RW
24830 sys/types.h inttypes.h sys/inttypes.h $inttype_headers
24831 break
24832 break;
24833 done
24834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
24835$as_echo_n "checking for stdint u_int32_t... " >&6; }
21276379 24836
5213506e
RW
24837fi
24838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
24839$as_echo "$ac_cv_header_stdint_u" >&6; }
24840
24841fi fi
24842
24843if test "_$ac_cv_header_stdint_x" = "_" ; then
24844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
24845$as_echo_n "checking for stdint datatype model... " >&6; }
24846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
24847$as_echo "(..)" >&6; }
24848
24849 # The cast to long int works around a bug in the HP C Compiler
24850# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24851# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24852# This bug is HP SR number 8606223364.
24853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
24854$as_echo_n "checking size of char... " >&6; }
24855if test "${ac_cv_sizeof_char+set}" = set; then :
24856 $as_echo_n "(cached) " >&6
21276379 24857else
5213506e 24858 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
21276379 24859
21276379 24860else
5213506e
RW
24861 if test "$ac_cv_type_char" = yes; then
24862 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24863$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24864{ as_fn_set_status 77
24865as_fn_error "cannot compute sizeof (char)
24866See \`config.log' for more details." "$LINENO" 5; }; }
24867 else
24868 ac_cv_sizeof_char=0
24869 fi
21276379 24870fi
5213506e 24871
21276379 24872fi
5213506e
RW
24873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
24874$as_echo "$ac_cv_sizeof_char" >&6; }
24875
24876
24877
21276379 24878cat >>confdefs.h <<_ACEOF
5213506e 24879#define SIZEOF_CHAR $ac_cv_sizeof_char
21276379
MW
24880_ACEOF
24881
24882
5213506e
RW
24883 # The cast to long int works around a bug in the HP C Compiler
24884# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24885# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24886# This bug is HP SR number 8606223364.
24887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
24888$as_echo_n "checking size of short... " >&6; }
24889if test "${ac_cv_sizeof_short+set}" = set; then :
24890 $as_echo_n "(cached) " >&6
21276379 24891else
5213506e 24892 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
21276379 24893
5213506e
RW
24894else
24895 if test "$ac_cv_type_short" = yes; then
24896 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24897$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24898{ as_fn_set_status 77
24899as_fn_error "cannot compute sizeof (short)
24900See \`config.log' for more details." "$LINENO" 5; }; }
24901 else
24902 ac_cv_sizeof_short=0
24903 fi
21276379 24904fi
5213506e 24905
21276379 24906fi
5213506e
RW
24907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
24908$as_echo "$ac_cv_sizeof_short" >&6; }
21276379 24909
21276379 24910
21276379 24911
5213506e
RW
24912cat >>confdefs.h <<_ACEOF
24913#define SIZEOF_SHORT $ac_cv_sizeof_short
21276379 24914_ACEOF
5213506e
RW
24915
24916
24917 # The cast to long int works around a bug in the HP C Compiler
24918# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24919# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24920# This bug is HP SR number 8606223364.
24921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
24922$as_echo_n "checking size of int... " >&6; }
24923if test "${ac_cv_sizeof_int+set}" = set; then :
24924 $as_echo_n "(cached) " >&6
21276379 24925else
5213506e 24926 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
21276379 24927
21276379 24928else
5213506e
RW
24929 if test "$ac_cv_type_int" = yes; then
24930 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24931$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24932{ as_fn_set_status 77
24933as_fn_error "cannot compute sizeof (int)
24934See \`config.log' for more details." "$LINENO" 5; }; }
24935 else
24936 ac_cv_sizeof_int=0
24937 fi
24938fi
21276379 24939
5213506e
RW
24940fi
24941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
24942$as_echo "$ac_cv_sizeof_int" >&6; }
21276379 24943
21276379 24944
5213506e
RW
24945
24946cat >>confdefs.h <<_ACEOF
24947#define SIZEOF_INT $ac_cv_sizeof_int
21276379 24948_ACEOF
21276379 24949
21276379 24950
5213506e
RW
24951 # The cast to long int works around a bug in the HP C Compiler
24952# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24953# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24954# This bug is HP SR number 8606223364.
24955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
24956$as_echo_n "checking size of long... " >&6; }
24957if test "${ac_cv_sizeof_long+set}" = set; then :
24958 $as_echo_n "(cached) " >&6
24959else
24960 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
21276379 24961
21276379 24962else
5213506e
RW
24963 if test "$ac_cv_type_long" = yes; then
24964 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24965$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24966{ as_fn_set_status 77
24967as_fn_error "cannot compute sizeof (long)
24968See \`config.log' for more details." "$LINENO" 5; }; }
24969 else
24970 ac_cv_sizeof_long=0
24971 fi
24972fi
21276379 24973
21276379 24974fi
5213506e
RW
24975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
24976$as_echo "$ac_cv_sizeof_long" >&6; }
21276379 24977
21276379 24978
5213506e
RW
24979
24980cat >>confdefs.h <<_ACEOF
24981#define SIZEOF_LONG $ac_cv_sizeof_long
21276379 24982_ACEOF
5213506e
RW
24983
24984
24985 # The cast to long int works around a bug in the HP C Compiler
24986# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24987# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24988# This bug is HP SR number 8606223364.
24989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
24990$as_echo_n "checking size of void*... " >&6; }
24991if test "${ac_cv_sizeof_voidp+set}" = set; then :
24992 $as_echo_n "(cached) " >&6
21276379 24993else
5213506e 24994 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
21276379 24995
21276379 24996else
5213506e
RW
24997 if test "$ac_cv_type_voidp" = yes; then
24998 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24999$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25000{ as_fn_set_status 77
25001as_fn_error "cannot compute sizeof (void*)
25002See \`config.log' for more details." "$LINENO" 5; }; }
25003 else
25004 ac_cv_sizeof_voidp=0
25005 fi
21276379 25006fi
5213506e 25007
21276379 25008fi
5213506e
RW
25009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
25010$as_echo "$ac_cv_sizeof_voidp" >&6; }
25011
25012
25013
21276379
MW
25014cat >>confdefs.h <<_ACEOF
25015#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
25016_ACEOF
25017
25018
25019 ac_cv_char_data_model=""
25020 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
25021 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
25022 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
25023 ac_cv_long_data_model=""
25024 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
25025 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
25026 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
5213506e
RW
25027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking data model" >&5
25028$as_echo_n "checking data model... " >&6; }
21276379
MW
25029 case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
25030 122/242) ac_cv_data_model="IP16" ; n="standard 16bit machine" ;;
25031 122/244) ac_cv_data_model="LP32" ; n="standard 32bit machine" ;;
25032 122/*) ac_cv_data_model="i16" ; n="unusual int16 model" ;;
25033 124/444) ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
25034 124/488) ac_cv_data_model="LP64" ; n="standard 64bit unixish" ;;
25035 124/448) ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
25036 124/*) ac_cv_data_model="i32" ; n="unusual int32 model" ;;
25037 128/888) ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
25038 128/*) ac_cv_data_model="i64" ; n="unusual int64 model" ;;
25039 222/*2) ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
25040 333/*3) ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
25041 444/*4) ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
25042 666/*6) ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
25043 888/*8) ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
25044 222/*|333/*|444/*|666/*|888/*) :
25045 ac_cv_data_model="iDSP" ; n="unusual dsptype" ;;
25046 *) ac_cv_data_model="none" ; n="very unusual model" ;;
25047 esac
5213506e
RW
25048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
25049$as_echo "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; }
21276379
MW
25050
25051fi
25052
25053if test "_$ac_cv_header_stdint_x" != "_" ; then
25054 ac_cv_header_stdint="$ac_cv_header_stdint_x"
25055elif test "_$ac_cv_header_stdint_o" != "_" ; then
25056 ac_cv_header_stdint="$ac_cv_header_stdint_o"
25057elif test "_$ac_cv_header_stdint_u" != "_" ; then
25058 ac_cv_header_stdint="$ac_cv_header_stdint_u"
25059else
25060 ac_cv_header_stdint="stddef.h"
25061fi
25062
5213506e
RW
25063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
25064$as_echo_n "checking for extra inttypes in chosen header... " >&6; }
25065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
25066$as_echo "($ac_cv_header_stdint)" >&6; }
21276379
MW
25067unset ac_cv_type_int_least32_t
25068unset ac_cv_type_int_fast32_t
5213506e
RW
25069ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
25070"
25071if test "x$ac_cv_type_int_least32_t" = x""yes; then :
21276379 25072
21276379 25073fi
21276379 25074
5213506e
RW
25075ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
25076"
25077if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
21276379 25078
21276379 25079fi
21276379 25080
5213506e
RW
25081ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
25082"
25083if test "x$ac_cv_type_intmax_t" = x""yes; then :
21276379 25084
21276379 25085fi
21276379
MW
25086
25087
25088fi # shortcircut to system "stdint.h"
25089# ------------------ PREPARE VARIABLES ------------------------------
25090if test "$GCC" = "yes" ; then
25091ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
25092else
25093ac_cv_stdint_message="using $CC"
25094fi
25095
5213506e
RW
25096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
25097$as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
21276379
MW
25098
25099# ----------------- DONE inttypes.h checks START header -------------
5213506e 25100ac_config_commands="$ac_config_commands $ac_stdint_h"
21276379
MW
25101
25102
25103
21276379 25104
5213506e
RW
25105# Check whether --with-glibj_zip was given.
25106if test "${with_glibj_zip+set}" = set; then :
25107 withval=$with_glibj_zip;
25108fi
21276379 25109
21276379 25110
4f9533c7
MW
25111case "$with_glibj_zip" in
25112"")
25113 use_glibj_zip=false
25114 ;;
25115"no" )
25116 use_glibj_zip=false
25117 ;;
25118"yes")
5213506e 25119 as_fn_error "Please suply an absolute path to a prebuilt glibj.zip" "$LINENO" 5
4f9533c7
MW
25120 ;;
25121*)
25122 use_glibj_zip=true
25123 PATH_TO_GLIBJ_ZIP=$with_glibj_zip
25124 ;;
25125esac;
25126
5213506e 25127 if test x$use_glibj_zip = xtrue; then
4f9533c7
MW
25128 USE_PREBUILT_GLIBJ_ZIP_TRUE=
25129 USE_PREBUILT_GLIBJ_ZIP_FALSE='#'
25130else
25131 USE_PREBUILT_GLIBJ_ZIP_TRUE='#'
25132 USE_PREBUILT_GLIBJ_ZIP_FALSE=
25133fi
25134
25135
25136
cd6d4007 25137if test "x${TOOLSDIR}" != x; then
58ddc179 25138 if test "x${COMPILE_WRAPPERS}" = xno && test "x${enable_java_maintainer_mode}" = xyes; then
cd6d4007
MK
25139
25140
25141if test "x$JAVAPREFIX" = x; then
25142 test "x$JAVA" = x && for ac_prog in cacao$EXEEXT jamvm$EXEEXT kaffe$EXEEXT gij$EXEEXT java$EXEEXT
25143do
25144 # Extract the first word of "$ac_prog", so it can be a program name with args.
25145set dummy $ac_prog; ac_word=$2
5213506e
RW
25146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25147$as_echo_n "checking for $ac_word... " >&6; }
25148if test "${ac_cv_prog_JAVA+set}" = set; then :
25149 $as_echo_n "(cached) " >&6
cd6d4007
MK
25150else
25151 if test -n "$JAVA"; then
25152 ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
25153else
25154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25155for as_dir in $PATH
25156do
25157 IFS=$as_save_IFS
25158 test -z "$as_dir" && as_dir=.
5213506e
RW
25159 for ac_exec_ext in '' $ac_executable_extensions; do
25160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cd6d4007 25161 ac_cv_prog_JAVA="$ac_prog"
5213506e 25162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cd6d4007
MK
25163 break 2
25164 fi
25165done
5213506e
RW
25166 done
25167IFS=$as_save_IFS
cd6d4007
MK
25168
25169fi
25170fi
25171JAVA=$ac_cv_prog_JAVA
25172if test -n "$JAVA"; then
5213506e
RW
25173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
25174$as_echo "$JAVA" >&6; }
cd6d4007 25175else
5213506e
RW
25176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25177$as_echo "no" >&6; }
cd6d4007
MK
25178fi
25179
5213506e 25180
cd6d4007
MK
25181 test -n "$JAVA" && break
25182done
25183
25184else
25185 test "x$JAVA" = x && for ac_prog in cacao$EXEEXT jamvm$EXEEXT kaffe$EXEEXT gij$EXEEXT java$EXEEXT
25186do
25187 # Extract the first word of "$ac_prog", so it can be a program name with args.
25188set dummy $ac_prog; ac_word=$2
5213506e
RW
25189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25190$as_echo_n "checking for $ac_word... " >&6; }
25191if test "${ac_cv_prog_JAVA+set}" = set; then :
25192 $as_echo_n "(cached) " >&6
cd6d4007
MK
25193else
25194 if test -n "$JAVA"; then
25195 ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
25196else
25197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25198for as_dir in $PATH
25199do
25200 IFS=$as_save_IFS
25201 test -z "$as_dir" && as_dir=.
5213506e
RW
25202 for ac_exec_ext in '' $ac_executable_extensions; do
25203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cd6d4007 25204 ac_cv_prog_JAVA="$ac_prog"
5213506e 25205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cd6d4007
MK
25206 break 2
25207 fi
25208done
5213506e
RW
25209 done
25210IFS=$as_save_IFS
cd6d4007
MK
25211
25212fi
25213fi
25214JAVA=$ac_cv_prog_JAVA
25215if test -n "$JAVA"; then
5213506e
RW
25216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
25217$as_echo "$JAVA" >&6; }
cd6d4007 25218else
5213506e
RW
25219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25220$as_echo "no" >&6; }
cd6d4007
MK
25221fi
25222
5213506e 25223
cd6d4007
MK
25224 test -n "$JAVA" && break
25225done
25226test -n "$JAVA" || JAVA="$JAVAPREFIX"
25227
25228fi
5213506e 25229test "x$JAVA" = x && as_fn_error "no acceptable Java virtual machine found in \$PATH" "$LINENO" 5
cd6d4007 25230
cd6d4007 25231
a1906e8b 25232ECJ_OPTS="-warn:-deprecation,serial,unusedImport,unusedPrivate,resource"
cd6d4007
MK
25233JAVAC_OPTS="-Xlint:unchecked,cast,divzero,empty,finally,overrides"
25234GCJ_OPTS="-g"
25235if test "x$JAVAPREFIX" = x; then
25236 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"
25237do
25238 # Extract the first word of "$ac_prog", so it can be a program name with args.
25239set dummy $ac_prog; ac_word=$2
5213506e
RW
25240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25241$as_echo_n "checking for $ac_word... " >&6; }
25242if test "${ac_cv_prog_JAVAC+set}" = set; then :
25243 $as_echo_n "(cached) " >&6
cd6d4007
MK
25244else
25245 if test -n "$JAVAC"; then
25246 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
25247else
25248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25249for as_dir in $PATH
25250do
25251 IFS=$as_save_IFS
25252 test -z "$as_dir" && as_dir=.
5213506e
RW
25253 for ac_exec_ext in '' $ac_executable_extensions; do
25254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cd6d4007 25255 ac_cv_prog_JAVAC="$ac_prog"
5213506e 25256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cd6d4007
MK
25257 break 2
25258 fi
25259done
5213506e
RW
25260 done
25261IFS=$as_save_IFS
cd6d4007
MK
25262
25263fi
25264fi
25265JAVAC=$ac_cv_prog_JAVAC
25266if test -n "$JAVAC"; then
5213506e
RW
25267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
25268$as_echo "$JAVAC" >&6; }
cd6d4007 25269else
5213506e
RW
25270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25271$as_echo "no" >&6; }
cd6d4007
MK
25272fi
25273
5213506e 25274
cd6d4007
MK
25275 test -n "$JAVAC" && break
25276done
25277
25278else
25279 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"
25280do
25281 # Extract the first word of "$ac_prog", so it can be a program name with args.
25282set dummy $ac_prog; ac_word=$2
5213506e
RW
25283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25284$as_echo_n "checking for $ac_word... " >&6; }
25285if test "${ac_cv_prog_JAVAC+set}" = set; then :
25286 $as_echo_n "(cached) " >&6
cd6d4007
MK
25287else
25288 if test -n "$JAVAC"; then
25289 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
25290else
25291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25292for as_dir in $PATH
25293do
25294 IFS=$as_save_IFS
25295 test -z "$as_dir" && as_dir=.
5213506e
RW
25296 for ac_exec_ext in '' $ac_executable_extensions; do
25297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cd6d4007 25298 ac_cv_prog_JAVAC="$ac_prog"
5213506e 25299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cd6d4007
MK
25300 break 2
25301 fi
25302done
5213506e
RW
25303 done
25304IFS=$as_save_IFS
cd6d4007
MK
25305
25306fi
25307fi
25308JAVAC=$ac_cv_prog_JAVAC
25309if test -n "$JAVAC"; then
5213506e
RW
25310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
25311$as_echo "$JAVAC" >&6; }
cd6d4007 25312else
5213506e
RW
25313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25314$as_echo "no" >&6; }
cd6d4007
MK
25315fi
25316
5213506e 25317
cd6d4007
MK
25318 test -n "$JAVAC" && break
25319done
25320test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
25321
25322fi
5213506e
RW
25323test "x$JAVAC" = x && as_fn_error "no acceptable Java compiler found in \$PATH" "$LINENO" 5
25324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC is a version of gcj" >&5
25325$as_echo_n "checking if $JAVAC is a version of gcj... " >&6; }
25326if test "${ac_cv_prog_javac_is_gcj+set}" = set; then :
25327 $as_echo_n "(cached) " >&6
cd6d4007
MK
25328else
25329
729530c0 25330if $JAVAC --version 2>&1 | grep gcj >&5 ; then
cd6d4007
MK
25331 ac_cv_prog_javac_is_gcj=yes;
25332 JAVAC="$JAVAC $GCJ_OPTS";
729530c0
AJH
25333else
25334 ac_cv_prog_javac_is_gcj=no;
cd6d4007 25335fi
729530c0 25336
cd6d4007 25337fi
5213506e
RW
25338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_is_gcj" >&5
25339$as_echo "$ac_cv_prog_javac_is_gcj" >&6; }
cd6d4007
MK
25340JAVAC_IS_GCJ=$ac_cv_prog_javac_is_gcj
25341
5213506e 25342 if test x"${JAVAC_IS_GCJ}" = xyes; then
cd6d4007
MK
25343 GCJ_JAVAC_TRUE=
25344 GCJ_JAVAC_FALSE='#'
25345else
25346 GCJ_JAVAC_TRUE='#'
25347 GCJ_JAVAC_FALSE=
25348fi
25349
729530c0
AJH
25350
25351
cd6d4007 25352
5213506e
RW
25353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
25354$as_echo_n "checking if $JAVAC works... " >&6; }
25355if test "${ac_cv_prog_javac_works+set}" = set; then :
25356 $as_echo_n "(cached) " >&6
cd6d4007
MK
25357else
25358
25359JAVA_TEST=Object.java
25360CLASS_TEST=Object.class
25361cat << \EOF > $JAVA_TEST
3cbe17f7 25362/* #line 25362 "configure" */
cd6d4007
MK
25363package java.lang;
25364
25365public class Object
25366{
25367 static <T> void doStuff()
25368 {
25369 }
25370}
25371EOF
25372if test x$JAVAC_IS_GCJ = xyes; then
25373 CMD="$JAVAC $JAVACFLAGS -fsource=1.5 -ftarget=1.5 $JAVA_TEST"
25374else
25375 CMD="$JAVAC $JAVACFLAGS -source 1.5 -target 1.5 $JAVA_TEST"
25376fi
25377if { ac_try='$CMD'
5213506e 25378 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
cd6d4007
MK
25379 (eval $ac_try) 2>&5
25380 ac_status=$?
5213506e
RW
25381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25382 test $ac_status = 0; }; } >/dev/null 2>&1; then
cd6d4007
MK
25383 ac_cv_prog_javac_works=yes
25384else
5213506e 25385 as_fn_error "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
cd6d4007
MK
25386 echo "configure: failed program was:" >&5
25387 cat $JAVA_TEST >&5
25388fi
25389rm -f $JAVA_TEST $CLASS_TEST
25390
25391fi
5213506e
RW
25392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
25393$as_echo "$ac_cv_prog_javac_works" >&6; }
cd6d4007 25394
729530c0
AJH
25395
25396
25397# Extract the first word of "uudecode$EXEEXT", so it can be a program name with args.
25398set dummy uudecode$EXEEXT; ac_word=$2
25399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25400$as_echo_n "checking for $ac_word... " >&6; }
25401if test "${ac_cv_prog_uudecode+set}" = set; then :
25402 $as_echo_n "(cached) " >&6
25403else
25404 if test -n "$uudecode"; then
25405 ac_cv_prog_uudecode="$uudecode" # Let the user override the test.
25406else
25407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25408for as_dir in $PATH
25409do
25410 IFS=$as_save_IFS
25411 test -z "$as_dir" && as_dir=.
25412 for ac_exec_ext in '' $ac_executable_extensions; do
25413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25414 ac_cv_prog_uudecode="yes"
25415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25416 break 2
25417 fi
25418done
25419 done
25420IFS=$as_save_IFS
25421
25422fi
25423fi
25424uudecode=$ac_cv_prog_uudecode
25425if test -n "$uudecode"; then
25426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $uudecode" >&5
25427$as_echo "$uudecode" >&6; }
25428else
25429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25430$as_echo "no" >&6; }
cd6d4007
MK
25431fi
25432
729530c0
AJH
25433
25434if test x$uudecode = xyes; then
25435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if uudecode can decode base 64 file" >&5
25436$as_echo_n "checking if uudecode can decode base 64 file... " >&6; }
25437if test "${ac_cv_prog_uudecode_base64+set}" = set; then :
25438 $as_echo_n "(cached) " >&6
25439else
25440
25441cat << \EOF > Test.uue
25442begin-base64 644 Test.class
25443yv66vgADAC0AFQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAE
25444bWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51
25445bWJlclRhYmxlDAAKAAsBAARleGl0AQAEKEkpVgoADQAJBwAOAQAQamF2YS9s
25446YW5nL1N5c3RlbQEABjxpbml0PgEAAygpVgwADwAQCgADABEBAApTb3VyY2VG
25447aWxlAQAJVGVzdC5qYXZhACEAAQADAAAAAAACAAkABQAGAAEABwAAACEAAQAB
25448AAAABQO4AAyxAAAAAQAIAAAACgACAAAACgAEAAsAAQAPABAAAQAHAAAAIQAB
25449AAEAAAAFKrcAErEAAAABAAgAAAAKAAIAAAAEAAQABAABABMAAAACABQ=
25450====
25451EOF
25452if uudecode$EXEEXT Test.uue; then
25453 ac_cv_prog_uudecode_base64=yes
25454else
3cbe17f7 25455 echo "configure: 25455: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
729530c0
AJH
25456 echo "configure: failed file was:" >&5
25457 cat Test.uue >&5
25458 ac_cv_prog_uudecode_base64=no
25459fi
25460rm -f Test.uue
25461fi
25462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_uudecode_base64" >&5
25463$as_echo "$ac_cv_prog_uudecode_base64" >&6; }
25464fi
25465if test x$ac_cv_prog_uudecode_base64 != xyes; then
25466 rm -f Test.class
25467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I have to compile Test.class from scratch" >&5
25468$as_echo "$as_me: WARNING: I have to compile Test.class from scratch" >&2;}
25469 if test x$ac_cv_prog_javac_works = xno; then
25470 as_fn_error "Cannot compile java source. $JAVAC does not work properly" "$LINENO" 5
cd6d4007
MK
25471 fi
25472fi
5213506e
RW
25473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVA works" >&5
25474$as_echo_n "checking if $JAVA works... " >&6; }
25475if test "${ac_cv_prog_java_works+set}" = set; then :
25476 $as_echo_n "(cached) " >&6
cd6d4007
MK
25477else
25478
25479JAVA_TEST=Test.java
25480CLASS_TEST=Test.class
25481TEST=Test
25482cat << \EOF > $JAVA_TEST
3cbe17f7 25483/* [#]line 25483 "configure" */
cd6d4007
MK
25484public class Test {
25485public static void main (String args[]) {
25486 System.exit (0);
25487} }
25488EOF
25489if test x$ac_cv_prog_uudecode_base64 != xyes; then
729530c0 25490
cd6d4007 25491 if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
5213506e 25492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
cd6d4007
MK
25493 (eval $ac_try) 2>&5
25494 ac_status=$?
5213506e
RW
25495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25496 test $ac_status = 0; }; } && test -s $CLASS_TEST; then
cd6d4007
MK
25497 :
25498 else
25499 echo "configure: failed program was:" >&5
25500 cat $JAVA_TEST >&5
5213506e 25501 as_fn_error "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
cd6d4007
MK
25502 fi
25503fi
25504if { ac_try='CLASSPATH=.:$CLASSPATH $JAVA $JAVAFLAGS $TEST'
5213506e 25505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
cd6d4007
MK
25506 (eval $ac_try) 2>&5
25507 ac_status=$?
5213506e
RW
25508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25509 test $ac_status = 0; }; } >/dev/null 2>&1; then
cd6d4007
MK
25510 ac_cv_prog_java_works=yes
25511else
25512 echo "configure: failed program was:" >&5
25513 cat $JAVA_TEST >&5
5213506e 25514 as_fn_error "The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
cd6d4007
MK
25515fi
25516rm -fr $JAVA_TEST $CLASS_TEST Test.uue
25517
25518fi
5213506e
RW
25519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_java_works" >&5
25520$as_echo "$ac_cv_prog_java_works" >&6; }
cd6d4007
MK
25521
25522
cd6d4007 25523 fi
58ddc179 25524 if test "x${COMPILE_GJDOC}" = xyes; then
cd6d4007 25525
5213506e
RW
25526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ANTLR parser generator JAR file" >&5
25527$as_echo_n "checking for the ANTLR parser generator JAR file... " >&6; }
cd6d4007
MK
25528 if test -z "$ANTLR_JAR"; then
25529 for antlr_lib_home in `ls -d /usr/local/share/antlr* 2> /dev/null` \
25530 /usr/share/antlr/lib /usr/share/java /usr/lib;
25531 do
25532 if test -f "$antlr_lib_home/antlr.jar"; then
25533 ANTLR_JAR="$antlr_lib_home/antlr.jar"
25534 break
25535 fi
25536 done
25537 fi
5213506e
RW
25538 test -f $ANTLR_JAR || as_fn_error "specified ANTLR jar file $ANTLR_JAR not found." "$LINENO" 5 \
25539 && { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
25540$as_echo "$ANTLR_JAR" >&6; }
cd6d4007
MK
25541
25542
58ddc179 25543 if test "x${REGENERATE_GJDOC_PARSER}" = xyes && test "x${enable_java_maintainer_mode}" = xyes; then
cd6d4007
MK
25544
25545 if test -n "$ac_tool_prefix"; then
25546 for ac_prog in cantlr runantlr antlr
25547 do
25548 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25549set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
25550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25551$as_echo_n "checking for $ac_word... " >&6; }
25552if test "${ac_cv_prog_ANTLR+set}" = set; then :
25553 $as_echo_n "(cached) " >&6
cd6d4007
MK
25554else
25555 if test -n "$ANTLR"; then
25556 ac_cv_prog_ANTLR="$ANTLR" # Let the user override the test.
25557else
25558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25559for as_dir in $PATH
25560do
25561 IFS=$as_save_IFS
25562 test -z "$as_dir" && as_dir=.
5213506e
RW
25563 for ac_exec_ext in '' $ac_executable_extensions; do
25564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cd6d4007 25565 ac_cv_prog_ANTLR="$ac_tool_prefix$ac_prog"
5213506e 25566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cd6d4007
MK
25567 break 2
25568 fi
25569done
5213506e
RW
25570 done
25571IFS=$as_save_IFS
cd6d4007
MK
25572
25573fi
25574fi
25575ANTLR=$ac_cv_prog_ANTLR
25576if test -n "$ANTLR"; then
5213506e
RW
25577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR" >&5
25578$as_echo "$ANTLR" >&6; }
cd6d4007 25579else
5213506e
RW
25580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25581$as_echo "no" >&6; }
cd6d4007
MK
25582fi
25583
5213506e 25584
cd6d4007
MK
25585 test -n "$ANTLR" && break
25586 done
25587fi
25588if test -z "$ANTLR"; then
25589 ac_ct_ANTLR=$ANTLR
25590 for ac_prog in cantlr runantlr antlr
25591do
25592 # Extract the first word of "$ac_prog", so it can be a program name with args.
25593set dummy $ac_prog; ac_word=$2
5213506e
RW
25594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25595$as_echo_n "checking for $ac_word... " >&6; }
25596if test "${ac_cv_prog_ac_ct_ANTLR+set}" = set; then :
25597 $as_echo_n "(cached) " >&6
cd6d4007
MK
25598else
25599 if test -n "$ac_ct_ANTLR"; then
25600 ac_cv_prog_ac_ct_ANTLR="$ac_ct_ANTLR" # Let the user override the test.
25601else
25602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25603for as_dir in $PATH
25604do
25605 IFS=$as_save_IFS
25606 test -z "$as_dir" && as_dir=.
5213506e
RW
25607 for ac_exec_ext in '' $ac_executable_extensions; do
25608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cd6d4007 25609 ac_cv_prog_ac_ct_ANTLR="$ac_prog"
5213506e 25610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cd6d4007
MK
25611 break 2
25612 fi
25613done
5213506e
RW
25614 done
25615IFS=$as_save_IFS
cd6d4007
MK
25616
25617fi
25618fi
25619ac_ct_ANTLR=$ac_cv_prog_ac_ct_ANTLR
25620if test -n "$ac_ct_ANTLR"; then
5213506e
RW
25621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_ANTLR" >&5
25622$as_echo "$ac_ct_ANTLR" >&6; }
cd6d4007 25623else
5213506e
RW
25624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25625$as_echo "no" >&6; }
cd6d4007
MK
25626fi
25627
5213506e 25628
cd6d4007
MK
25629 test -n "$ac_ct_ANTLR" && break
25630done
25631
5213506e
RW
25632 if test "x$ac_ct_ANTLR" = x; then
25633 ANTLR=""
25634 else
25635 case $cross_compiling:$ac_tool_warned in
25636yes:)
25637{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25638$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25639ac_tool_warned=yes ;;
25640esac
25641 ANTLR=$ac_ct_ANTLR
25642 fi
cd6d4007
MK
25643fi
25644
25645 if test "x$ANTLR" = x; then
25646 if test -z "$JAVA"; then
5213506e 25647 as_fn_error "Failed to find either an antlr binary or a suitable Java runtime for ANTLR." "$LINENO" 5
cd6d4007 25648 else
729530c0
AJH
25649 if test -z "$ANTLR_JAR"; then
25650 as_fn_error "Failed to find either an antlr binary or a suitable antlr jar file." "$LINENO" 5
25651 else
25652 ANTLR="$JAVA -classpath $ANTLR_JAR antlr.Tool"
25653 fi
cd6d4007
MK
25654 fi
25655 fi
25656
5213506e
RW
25657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for antlr 2.7.1 or better" >&5
25658$as_echo_n "checking for antlr 2.7.1 or better... " >&6; }
cd6d4007
MK
25659 antlr_version_str=`$ANTLR 2>&1 | head -n 1 | sed '/.*Version */!d; s///;q'`
25660 if test "$antlr_version_str"; then
25661 antlr_version_regex='s/\([[:digit:]]\+\)\.\([[:digit:]]\+\)\.\([[:digit:]]\+\).*$/'
25662 antlr_version_major=`echo $antlr_version_str | sed "$antlr_version_regex\\1/"`
25663 antlr_version_minor=`echo $antlr_version_str | sed "$antlr_version_regex\\2/"`
25664 antlr_version_micro=`echo $antlr_version_str | sed "$antlr_version_regex\\3/"`
25665 (test $antlr_version_major -gt 2 || \
25666 (test $antlr_version_major -eq 2 && \
25667 test $antlr_version_minor -gt 7) || \
25668 (test $antlr_version_major -eq 2 && \
25669 test $antlr_version_minor -eq 7 && \
25670 test $antlr_version_micro -ge 1))
25671 fi
5213506e
RW
25672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $antlr_version_major.$antlr_version_minor.$antlr_version_micro" >&5
25673$as_echo "$antlr_version_major.$antlr_version_minor.$antlr_version_micro" >&6; }
cd6d4007 25674
cd6d4007
MK
25675 fi
25676 fi
25677fi
25678
25679
e0441a5b
MK
25680# Check for javac if we need to build either the class library,
25681# the examples or the tools
25682if test "x${use_glibj_zip}" = xfalse || \
25683 test "x${EXAMPLESDIR}" != x || \
25684 test "x${TOOLSDIR}" != x && \
729530c0
AJH
25685 test "x${build_class_files}" != xno && \
25686 test "${enable_java_maintainer_mode}" = yes; then
e0441a5b
MK
25687
25688 JAVA_TEST=Test.java
25689 CLASS_TEST=Test.class
25690 cat << \EOF > $JAVA_TEST
3cbe17f7 25691 /* #line 25691 "configure" */
e0441a5b
MK
25692 public class Test
25693 {
25694 public static void main(String args)
25695 {
25696 System.out.println("Hello World");
25697 }
25698 }
25699EOF
cd6d4007 25700 if test x$JAVAC_IS_GCJ != xyes; then
5213506e
RW
25701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether javac supports -J" >&5
25702$as_echo_n "checking whether javac supports -J... " >&6; }
cd6d4007
MK
25703 $JAVAC $JAVACFLAGS -J-Xmx768M -sourcepath '' $JAVA_TEST
25704 javac_result=$?
25705 if test "x$javac_result" = "x0"; then
5213506e
RW
25706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25707$as_echo "yes" >&6; }
cd6d4007
MK
25708 JAVAC_MEM_OPT="-J-Xmx768M"
25709 else
5213506e
RW
25710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25711$as_echo "no" >&6; }
cd6d4007 25712 fi
e0441a5b
MK
25713 fi
25714 rm -f $JAVA_TEST $CLASS_TEST
25715
25716
729530c0 25717else
c3413e5a 25718 if false; then
729530c0
AJH
25719 GCJ_JAVAC_TRUE=
25720 GCJ_JAVAC_FALSE='#'
25721else
25722 GCJ_JAVAC_TRUE='#'
25723 GCJ_JAVAC_FALSE=
25724fi
25725
e0441a5b
MK
25726fi
25727
4f9533c7 25728
5213506e
RW
25729# Check whether --with-escher was given.
25730if test "${with_escher+set}" = set; then :
25731 withval=$with_escher;
25732fi
ac1ed908 25733
ac1ed908
MW
25734case "$with_escher" in
25735"")
25736 use_escher=false
25737 ;;
25738"no")
25739 use_escher=false
25740 ;;
25741"yes")
5213506e
RW
25742 as_fn_error "Please supply an absolute path to Escher library" "$LINENO" 5
25743 ;;
25744*)
25745 use_escher=true
25746 PATH_TO_ESCHER=$with_escher
25747 ;;
25748esac
4f9533c7 25749
5213506e
RW
25750 if test x$use_escher = xtrue; then
25751 USE_ESCHER_TRUE=
25752 USE_ESCHER_FALSE='#'
4f9533c7 25753else
5213506e
RW
25754 USE_ESCHER_TRUE='#'
25755 USE_ESCHER_FALSE=
25756fi
25757
4f9533c7 25758
5213506e
RW
25759
25760# Check whether --enable-local-sockets was given.
25761if test "${enable_local_sockets+set}" = set; then :
25762 enableval=$enable_local_sockets; case "${enableval}" in
25763 yes)
25764 ENABLE_LOCAL_SOCKETS=yes
25765 ;;
25766 *)
25767 ENABLE_LOCAL_SOCKETS=no
25768 ;;
25769 esac
4f9533c7 25770fi
5213506e
RW
25771
25772if test "x$ENABLE_LOCAL_SOCKETS" = "xyes"
25773then
25774 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
25775if test "x$ac_cv_header_sys_un_h" = x""yes; then :
25776
4f9533c7 25777fi
5213506e
RW
25778
25779
25780 for ac_func in read write bind listen accept shutdown
25781do :
25782 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25783ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25784eval as_val=\$$as_ac_var
25785 if test "x$as_val" = x""yes; then :
4f9533c7 25786 cat >>confdefs.h <<_ACEOF
5213506e 25787#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4f9533c7
MW
25788_ACEOF
25789
25790else
5213506e 25791 as_fn_error "networking support not available" "$LINENO" 5
4f9533c7
MW
25792fi
25793done
25794
25795
5213506e 25796$as_echo "#define ENABLE_LOCAL_SOCKETS 1" >>confdefs.h
4f9533c7
MW
25797
25798fi
5213506e 25799 if test "x$ENABLE_LOCAL_SOCKETS" = "xyes"; then
4f9533c7
MW
25800 ENABLE_LOCAL_SOCKETS_TRUE=
25801 ENABLE_LOCAL_SOCKETS_FALSE='#'
25802else
25803 ENABLE_LOCAL_SOCKETS_TRUE='#'
25804 ENABLE_LOCAL_SOCKETS_FALSE=
25805fi
25806
25807
25808
ac1ed908 25809
cd6d4007
MK
25810WANT_NATIVE_BIG_INTEGER=false
25811if test "x${COMPILE_GMP}" = xyes; then
25812 if test "x${ac_cv_lib_gmp___gmpz_mul_si}" = xyes; then
25813 if test "x${ac_cv_header_gmp_h}" = xyes; then
25814 WANT_NATIVE_BIG_INTEGER=true
25815
5213506e 25816$as_echo "#define WITH_GNU_MP 1" >>confdefs.h
cd6d4007
MK
25817
25818 else
25819 COMPILE_GMP=no
25820 fi
25821 else
25822 COMPILE_GMP=no
25823 fi
25824fi
25825
5213506e 25826 if test "x${COMPILE_GMP}" = xyes; then
cd6d4007
MK
25827 CREATE_GMPBI_LIBRARY_TRUE=
25828 CREATE_GMPBI_LIBRARY_FALSE='#'
25829else
25830 CREATE_GMPBI_LIBRARY_TRUE='#'
25831 CREATE_GMPBI_LIBRARY_FALSE=
25832fi
25833
25834
5213506e 25835ac_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"
ac1ed908
MW
25836
25837
a47ac974 25838if test "x${COMPILE_WRAPPERS}" = xyes; then
5213506e
RW
25839 :
25840else
25841 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"
ac1ed908 25842
ac1ed908 25843
5213506e 25844ac_config_commands="$ac_config_commands gappletviewer"
ac1ed908 25845
5213506e 25846ac_config_commands="$ac_config_commands gjarsigner"
ac1ed908 25847
5213506e 25848ac_config_commands="$ac_config_commands gkeytool"
ac1ed908 25849
5213506e 25850ac_config_commands="$ac_config_commands gjar"
ac1ed908 25851
5213506e 25852ac_config_commands="$ac_config_commands gnative2ascii"
ac1ed908 25853
5213506e 25854ac_config_commands="$ac_config_commands gserialver"
02440ca4 25855
5213506e 25856ac_config_commands="$ac_config_commands grmiregistry"
02440ca4 25857
5213506e 25858ac_config_commands="$ac_config_commands gtnameserv"
02440ca4 25859
5213506e 25860ac_config_commands="$ac_config_commands gorbd"
02440ca4 25861
5213506e 25862ac_config_commands="$ac_config_commands grmid"
02440ca4 25863
5213506e 25864ac_config_commands="$ac_config_commands grmic"
02440ca4 25865
5213506e 25866ac_config_commands="$ac_config_commands gjavah"
a47ac974 25867
a47ac974 25868
5213506e 25869fi
4f9533c7 25870
cd6d4007
MK
25871if test "x${COMPILE_GJDOC}" = xyes
25872then
5213506e 25873ac_config_files="$ac_config_files tools/gjdoc"
cd6d4007 25874
5213506e 25875ac_config_commands="$ac_config_commands gjdoc"
cd6d4007
MK
25876
25877fi
25878
5213506e 25879ac_config_commands="$ac_config_commands gen-classlist"
4f9533c7 25880
5213506e 25881ac_config_commands="$ac_config_commands copy-vmresources"
4f9533c7
MW
25882
25883cat >confcache <<\_ACEOF
25884# This file is a shell script that caches the results of configure
25885# tests run on this system so they can be shared between configure
25886# scripts and configure runs, see configure's option --config-cache.
25887# It is not useful on other systems. If it contains results you don't
25888# want to keep, you may remove or edit it.
25889#
25890# config.status only pays attention to the cache file if you give it
25891# the --recheck option to rerun configure.
25892#
25893# `ac_cv_env_foo' variables (set or unset) will be overridden when
25894# loading this file, other *unset* `ac_cv_foo' will be assigned the
25895# following values.
25896
25897_ACEOF
25898
25899# The following way of writing the cache mishandles newlines in values,
25900# but we know of no workaround that is simple, portable, and efficient.
5213506e 25901# So, we kill variables containing newlines.
4f9533c7
MW
25902# Ultrix sh set writes to stderr and can't be redirected directly,
25903# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
25904(
25905 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25906 eval ac_val=\$$ac_var
25907 case $ac_val in #(
25908 *${as_nl}*)
25909 case $ac_var in #(
25910 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25911$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25912 esac
25913 case $ac_var in #(
25914 _ | IFS | as_nl) ;; #(
25915 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25916 *) { eval $ac_var=; unset $ac_var;} ;;
25917 esac ;;
25918 esac
25919 done
25920
4f9533c7 25921 (set) 2>&1 |
5213506e
RW
25922 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25923 *${as_nl}ac_space=\ *)
25924 # `set' does not quote correctly, so add quotes: double-quote
25925 # substitution turns \\\\ into \\, and sed turns \\ into \.
4f9533c7
MW
25926 sed -n \
25927 "s/'/'\\\\''/g;
25928 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 25929 ;; #(
4f9533c7
MW
25930 *)
25931 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 25932 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4f9533c7 25933 ;;
5213506e
RW
25934 esac |
25935 sort
25936) |
4f9533c7 25937 sed '
5213506e 25938 /^ac_cv_env_/b end
4f9533c7 25939 t clear
5213506e 25940 :clear
4f9533c7
MW
25941 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25942 t end
5213506e
RW
25943 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25944 :end' >>confcache
25945if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25946 if test -w "$cache_file"; then
25947 test "x$cache_file" != "x/dev/null" &&
25948 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25949$as_echo "$as_me: updating cache $cache_file" >&6;}
4f9533c7
MW
25950 cat confcache >$cache_file
25951 else
5213506e
RW
25952 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25953$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4f9533c7
MW
25954 fi
25955fi
25956rm -f confcache
25957
25958test "x$prefix" = xNONE && prefix=$ac_default_prefix
25959# Let make expand exec_prefix.
25960test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25961
25962DEFS=-DHAVE_CONFIG_H
25963
25964ac_libobjs=
25965ac_ltlibobjs=
25966for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25967 # 1. Remove the extension, and $U if already installed.
5213506e
RW
25968 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25969 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25970 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25971 # will be set to the directory where LIBOBJS objects are built.
25972 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25973 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4f9533c7
MW
25974done
25975LIBOBJS=$ac_libobjs
25976
25977LTLIBOBJS=$ac_ltlibobjs
25978
25979
97b8365c 25980if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
5213506e
RW
25981 as_fn_error "conditional \"JAVA_MAINTAINER_MODE\" was never defined.
25982Usually this means the macro was only invoked conditionally." "$LINENO" 5
97b8365c 25983fi
fd975604 25984if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
5213506e
RW
25985 as_fn_error "conditional \"GENINSRC\" was never defined.
25986Usually this means the macro was only invoked conditionally." "$LINENO" 5
fd975604 25987fi
4bf95cef 25988if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
5213506e
RW
25989 as_fn_error "conditional \"INSTALL_BINARIES\" was never defined.
25990Usually this means the macro was only invoked conditionally." "$LINENO" 5
25991fi
25992 if test -n "$EXEEXT"; then
25993 am__EXEEXT_TRUE=
25994 am__EXEEXT_FALSE='#'
25995else
25996 am__EXEEXT_TRUE='#'
25997 am__EXEEXT_FALSE=
4bf95cef 25998fi
5213506e 25999
4f9533c7 26000if test -z "${CREATE_COLLECTIONS_TRUE}" && test -z "${CREATE_COLLECTIONS_FALSE}"; then
5213506e
RW
26001 as_fn_error "conditional \"CREATE_COLLECTIONS\" was never defined.
26002Usually this means the macro was only invoked conditionally." "$LINENO" 5
4f9533c7
MW
26003fi
26004if test -z "${CREATE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_JNI_LIBRARIES_FALSE}"; then
5213506e
RW
26005 as_fn_error "conditional \"CREATE_JNI_LIBRARIES\" was never defined.
26006Usually this means the macro was only invoked conditionally." "$LINENO" 5
21276379
MW
26007fi
26008if test -z "${CREATE_CORE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_CORE_JNI_LIBRARIES_FALSE}"; then
5213506e
RW
26009 as_fn_error "conditional \"CREATE_CORE_JNI_LIBRARIES\" was never defined.
26010Usually this means the macro was only invoked conditionally." "$LINENO" 5
21276379 26011fi
ac1ed908 26012if test -z "${CREATE_GCONF_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GCONF_PEER_LIBRARIES_FALSE}"; then
5213506e
RW
26013 as_fn_error "conditional \"CREATE_GCONF_PEER_LIBRARIES\" was never defined.
26014Usually this means the macro was only invoked conditionally." "$LINENO" 5
ac1ed908 26015fi
f06a83c0 26016if test -z "${CREATE_GSTREAMER_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GSTREAMER_PEER_LIBRARIES_FALSE}"; then
5213506e
RW
26017 as_fn_error "conditional \"CREATE_GSTREAMER_PEER_LIBRARIES\" was never defined.
26018Usually this means the macro was only invoked conditionally." "$LINENO" 5
f06a83c0 26019fi
21276379 26020if test -z "${CREATE_XMLJ_LIBRARY_TRUE}" && test -z "${CREATE_XMLJ_LIBRARY_FALSE}"; then
5213506e
RW
26021 as_fn_error "conditional \"CREATE_XMLJ_LIBRARY\" was never defined.
26022Usually this means the macro was only invoked conditionally." "$LINENO" 5
ea54b293 26023fi
8f523f3a 26024if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5213506e
RW
26025 as_fn_error "conditional \"AMDEP\" was never defined.
26026Usually this means the macro was only invoked conditionally." "$LINENO" 5
8f523f3a
MW
26027fi
26028if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5213506e
RW
26029 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26030Usually this means the macro was only invoked conditionally." "$LINENO" 5
8f523f3a
MW
26031fi
26032if test -z "${CREATE_ALSA_LIBRARIES_TRUE}" && test -z "${CREATE_ALSA_LIBRARIES_FALSE}"; then
5213506e
RW
26033 as_fn_error "conditional \"CREATE_ALSA_LIBRARIES\" was never defined.
26034Usually this means the macro was only invoked conditionally." "$LINENO" 5
8f523f3a
MW
26035fi
26036if test -z "${CREATE_DSSI_LIBRARIES_TRUE}" && test -z "${CREATE_DSSI_LIBRARIES_FALSE}"; then
5213506e
RW
26037 as_fn_error "conditional \"CREATE_DSSI_LIBRARIES\" was never defined.
26038Usually this means the macro was only invoked conditionally." "$LINENO" 5
8f523f3a 26039fi
ea54b293 26040if test -z "${CREATE_GTK_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GTK_PEER_LIBRARIES_FALSE}"; then
5213506e
RW
26041 as_fn_error "conditional \"CREATE_GTK_PEER_LIBRARIES\" was never defined.
26042Usually this means the macro was only invoked conditionally." "$LINENO" 5
ea54b293 26043fi
02440ca4 26044if test -z "${CREATE_QT_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_QT_PEER_LIBRARIES_FALSE}"; then
5213506e
RW
26045 as_fn_error "conditional \"CREATE_QT_PEER_LIBRARIES\" was never defined.
26046Usually this means the macro was only invoked conditionally." "$LINENO" 5
02440ca4
TF
26047fi
26048if test -z "${CREATE_PLUGIN_TRUE}" && test -z "${CREATE_PLUGIN_FALSE}"; then
5213506e
RW
26049 as_fn_error "conditional \"CREATE_PLUGIN\" was never defined.
26050Usually this means the macro was only invoked conditionally." "$LINENO" 5
ea54b293 26051fi
cd6d4007 26052if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
5213506e
RW
26053 as_fn_error "conditional \"CREATE_GJDOC\" was never defined.
26054Usually this means the macro was only invoked conditionally." "$LINENO" 5
cd6d4007 26055fi
ea54b293 26056if test -z "${CREATE_JNI_HEADERS_TRUE}" && test -z "${CREATE_JNI_HEADERS_FALSE}"; then
5213506e
RW
26057 as_fn_error "conditional \"CREATE_JNI_HEADERS\" was never defined.
26058Usually this means the macro was only invoked conditionally." "$LINENO" 5
ea54b293 26059fi
cd6d4007 26060if test -z "${CREATE_GJDOC_PARSER_TRUE}" && test -z "${CREATE_GJDOC_PARSER_FALSE}"; then
5213506e
RW
26061 as_fn_error "conditional \"CREATE_GJDOC_PARSER\" was never defined.
26062Usually this means the macro was only invoked conditionally." "$LINENO" 5
cd6d4007 26063fi
02440ca4 26064if test -z "${CREATE_WRAPPERS_TRUE}" && test -z "${CREATE_WRAPPERS_FALSE}"; then
5213506e
RW
26065 as_fn_error "conditional \"CREATE_WRAPPERS\" was never defined.
26066Usually this means the macro was only invoked conditionally." "$LINENO" 5
ea54b293 26067fi
97b8365c 26068if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5213506e
RW
26069 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26070Usually this means the macro was only invoked conditionally." "$LINENO" 5
86e44bd7
L
26071fi
26072if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
5213506e
RW
26073 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
26074Usually this means the macro was only invoked conditionally." "$LINENO" 5
ea54b293 26075fi
ea54b293 26076if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5213506e
RW
26077 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
26078Usually this means the macro was only invoked conditionally." "$LINENO" 5
ea54b293 26079fi
cd6d4007 26080if test -z "${WITH_JAR_TRUE}" && test -z "${WITH_JAR_FALSE}"; then
5213506e
RW
26081 as_fn_error "conditional \"WITH_JAR\" was never defined.
26082Usually this means the macro was only invoked conditionally." "$LINENO" 5
cd6d4007 26083fi
ea54b293 26084if test -z "${INSTALL_GLIBJ_ZIP_TRUE}" && test -z "${INSTALL_GLIBJ_ZIP_FALSE}"; then
5213506e
RW
26085 as_fn_error "conditional \"INSTALL_GLIBJ_ZIP\" was never defined.
26086Usually this means the macro was only invoked conditionally." "$LINENO" 5
ea54b293
TT
26087fi
26088if test -z "${INSTALL_CLASS_FILES_TRUE}" && test -z "${INSTALL_CLASS_FILES_FALSE}"; then
5213506e
RW
26089 as_fn_error "conditional \"INSTALL_CLASS_FILES\" was never defined.
26090Usually this means the macro was only invoked conditionally." "$LINENO" 5
ea54b293
TT
26091fi
26092if test -z "${BUILD_CLASS_FILES_TRUE}" && test -z "${BUILD_CLASS_FILES_FALSE}"; then
5213506e
RW
26093 as_fn_error "conditional \"BUILD_CLASS_FILES\" was never defined.
26094Usually this means the macro was only invoked conditionally." "$LINENO" 5
ea54b293
TT
26095fi
26096if test -z "${CREATE_API_DOCS_TRUE}" && test -z "${CREATE_API_DOCS_FALSE}"; then
5213506e
RW
26097 as_fn_error "conditional \"CREATE_API_DOCS\" was never defined.
26098Usually this means the macro was only invoked conditionally." "$LINENO" 5
ea54b293
TT
26099fi
26100if test -z "${REGEN_PARSERS_TRUE}" && test -z "${REGEN_PARSERS_FALSE}"; then
5213506e
RW
26101 as_fn_error "conditional \"REGEN_PARSERS\" was never defined.
26102Usually this means the macro was only invoked conditionally." "$LINENO" 5
ea54b293 26103fi
4f9533c7 26104if test -z "${USE_PREBUILT_GLIBJ_ZIP_TRUE}" && test -z "${USE_PREBUILT_GLIBJ_ZIP_FALSE}"; then
5213506e
RW
26105 as_fn_error "conditional \"USE_PREBUILT_GLIBJ_ZIP\" was never defined.
26106Usually this means the macro was only invoked conditionally." "$LINENO" 5
cd6d4007
MK
26107fi
26108if test -z "${GCJ_JAVAC_TRUE}" && test -z "${GCJ_JAVAC_FALSE}"; then
5213506e
RW
26109 as_fn_error "conditional \"GCJ_JAVAC\" was never defined.
26110Usually this means the macro was only invoked conditionally." "$LINENO" 5
cd6d4007
MK
26111fi
26112if test -z "${GCJ_JAVAC_TRUE}" && test -z "${GCJ_JAVAC_FALSE}"; then
5213506e
RW
26113 as_fn_error "conditional \"GCJ_JAVAC\" was never defined.
26114Usually this means the macro was only invoked conditionally." "$LINENO" 5
cd6d4007 26115fi
ac1ed908 26116if test -z "${USE_ESCHER_TRUE}" && test -z "${USE_ESCHER_FALSE}"; then
5213506e
RW
26117 as_fn_error "conditional \"USE_ESCHER\" was never defined.
26118Usually this means the macro was only invoked conditionally." "$LINENO" 5
ac1ed908 26119fi
4f9533c7 26120if test -z "${ENABLE_LOCAL_SOCKETS_TRUE}" && test -z "${ENABLE_LOCAL_SOCKETS_FALSE}"; then
5213506e
RW
26121 as_fn_error "conditional \"ENABLE_LOCAL_SOCKETS\" was never defined.
26122Usually this means the macro was only invoked conditionally." "$LINENO" 5
4f9533c7 26123fi
cd6d4007 26124if test -z "${CREATE_GMPBI_LIBRARY_TRUE}" && test -z "${CREATE_GMPBI_LIBRARY_FALSE}"; then
5213506e
RW
26125 as_fn_error "conditional \"CREATE_GMPBI_LIBRARY\" was never defined.
26126Usually this means the macro was only invoked conditionally." "$LINENO" 5
cd6d4007 26127fi
ea54b293
TT
26128
26129: ${CONFIG_STATUS=./config.status}
5213506e 26130ac_write_fail=0
ea54b293
TT
26131ac_clean_files_save=$ac_clean_files
26132ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
26133{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26134$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26135as_write_fail=0
26136cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
ea54b293
TT
26137#! $SHELL
26138# Generated by $as_me.
26139# Run this file to recreate the current configuration.
26140# Compiler output produced by configure, useful for debugging
26141# configure, is in config.log if it exists.
26142
26143debug=false
26144ac_cs_recheck=false
26145ac_cs_silent=false
ea54b293 26146
5213506e
RW
26147SHELL=\${CONFIG_SHELL-$SHELL}
26148export SHELL
26149_ASEOF
26150cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26151## -------------------- ##
26152## M4sh Initialization. ##
26153## -------------------- ##
26154
26155# Be more Bourne compatible
26156DUALCASE=1; export DUALCASE # for MKS sh
26157if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
ea54b293
TT
26158 emulate sh
26159 NULLCMD=:
5213506e 26160 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ea54b293
TT
26161 # is contrary to our usage. Disable this feature.
26162 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
26163 setopt NO_GLOB_SUBST
26164else
26165 case `(set -o) 2>/dev/null` in #(
26166 *posix*) :
26167 set -o posix ;; #(
26168 *) :
26169 ;;
26170esac
ea54b293 26171fi
ea54b293 26172
5213506e
RW
26173
26174as_nl='
26175'
26176export as_nl
26177# Printing a long string crashes Solaris 7 /usr/bin/printf.
26178as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26179as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26180as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26181# Prefer a ksh shell builtin over an external printf program on Solaris,
26182# but without wasting forks for bash or zsh.
26183if test -z "$BASH_VERSION$ZSH_VERSION" \
26184 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26185 as_echo='print -r --'
26186 as_echo_n='print -rn --'
26187elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26188 as_echo='printf %s\n'
26189 as_echo_n='printf %s'
26190else
26191 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26192 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26193 as_echo_n='/usr/ucb/echo -n'
26194 else
26195 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26196 as_echo_n_body='eval
26197 arg=$1;
26198 case $arg in #(
26199 *"$as_nl"*)
26200 expr "X$arg" : "X\\(.*\\)$as_nl";
26201 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26202 esac;
26203 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26204 '
26205 export as_echo_n_body
26206 as_echo_n='sh -c $as_echo_n_body as_echo'
26207 fi
26208 export as_echo_body
26209 as_echo='sh -c $as_echo_body as_echo'
26210fi
26211
26212# The user is always right.
26213if test "${PATH_SEPARATOR+set}" != set; then
26214 PATH_SEPARATOR=:
26215 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26216 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26217 PATH_SEPARATOR=';'
26218 }
ea54b293
TT
26219fi
26220
26221
5213506e
RW
26222# IFS
26223# We need space, tab and new line, in precisely that order. Quoting is
26224# there to prevent editors from complaining about space-tab.
26225# (If _AS_PATH_WALK were called with IFS unset, it would disable word
26226# splitting by setting IFS to empty value.)
26227IFS=" "" $as_nl"
26228
26229# Find who we are. Look in the path if we contain no directory separator.
26230case $0 in #((
26231 *[\\/]* ) as_myself=$0 ;;
26232 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26233for as_dir in $PATH
26234do
26235 IFS=$as_save_IFS
26236 test -z "$as_dir" && as_dir=.
26237 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26238 done
26239IFS=$as_save_IFS
26240
26241 ;;
26242esac
26243# We did not find ourselves, most probably we were run as `sh COMMAND'
26244# in which case we are not to be found in the path.
26245if test "x$as_myself" = x; then
26246 as_myself=$0
26247fi
26248if test ! -f "$as_myself"; then
26249 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26250 exit 1
26251fi
26252
26253# Unset variables that we do not need and which cause bugs (e.g. in
26254# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26255# suppresses any "Segmentation fault" message there. '((' could
26256# trigger a bug in pdksh 5.2.14.
26257for as_var in BASH_ENV ENV MAIL MAILPATH
26258do eval test x\${$as_var+set} = xset \
26259 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26260done
ea54b293
TT
26261PS1='$ '
26262PS2='> '
26263PS4='+ '
26264
26265# NLS nuisances.
5213506e
RW
26266LC_ALL=C
26267export LC_ALL
26268LANGUAGE=C
26269export LANGUAGE
26270
26271# CDPATH.
26272(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26273
26274
26275# as_fn_error ERROR [LINENO LOG_FD]
26276# ---------------------------------
26277# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26278# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26279# script with status $?, using 1 if that was 0.
26280as_fn_error ()
26281{
26282 as_status=$?; test $as_status -eq 0 && as_status=1
26283 if test "$3"; then
26284 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26285 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
ea54b293 26286 fi
5213506e
RW
26287 $as_echo "$as_me: error: $1" >&2
26288 as_fn_exit $as_status
26289} # as_fn_error
26290
26291
26292# as_fn_set_status STATUS
26293# -----------------------
26294# Set $? to STATUS, without forking.
26295as_fn_set_status ()
26296{
26297 return $1
26298} # as_fn_set_status
26299
26300# as_fn_exit STATUS
26301# -----------------
26302# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26303as_fn_exit ()
26304{
26305 set +e
26306 as_fn_set_status $1
26307 exit $1
26308} # as_fn_exit
26309
26310# as_fn_unset VAR
26311# ---------------
26312# Portably unset VAR.
26313as_fn_unset ()
26314{
26315 { eval $1=; unset $1;}
26316}
26317as_unset=as_fn_unset
26318# as_fn_append VAR VALUE
26319# ----------------------
26320# Append the text in VALUE to the end of the definition contained in VAR. Take
26321# advantage of any shell optimizations that allow amortized linear growth over
26322# repeated appends, instead of the typical quadratic growth present in naive
26323# implementations.
26324if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26325 eval 'as_fn_append ()
26326 {
26327 eval $1+=\$2
26328 }'
26329else
26330 as_fn_append ()
26331 {
26332 eval $1=\$$1\$2
26333 }
26334fi # as_fn_append
26335
26336# as_fn_arith ARG...
26337# ------------------
26338# Perform arithmetic evaluation on the ARGs, and store the result in the
26339# global $as_val. Take advantage of shells that can avoid forks. The arguments
26340# must be portable across $(()) and expr.
26341if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26342 eval 'as_fn_arith ()
26343 {
26344 as_val=$(( $* ))
26345 }'
26346else
26347 as_fn_arith ()
26348 {
26349 as_val=`expr "$@" || test $? -eq 1`
26350 }
26351fi # as_fn_arith
26352
ea54b293 26353
5213506e
RW
26354if expr a : '\(a\)' >/dev/null 2>&1 &&
26355 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ea54b293
TT
26356 as_expr=expr
26357else
26358 as_expr=false
26359fi
26360
5213506e 26361if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ea54b293
TT
26362 as_basename=basename
26363else
26364 as_basename=false
26365fi
26366
5213506e
RW
26367if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26368 as_dirname=dirname
26369else
26370 as_dirname=false
26371fi
ea54b293 26372
5213506e 26373as_me=`$as_basename -- "$0" ||
ea54b293
TT
26374$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26375 X"$0" : 'X\(//\)$' \| \
5213506e
RW
26376 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26377$as_echo X/"$0" |
26378 sed '/^.*\/\([^/][^/]*\)\/*$/{
26379 s//\1/
26380 q
26381 }
26382 /^X\/\(\/\/\)$/{
26383 s//\1/
26384 q
26385 }
26386 /^X\/\(\/\).*/{
26387 s//\1/
26388 q
26389 }
26390 s/.*/./; q'`
ea54b293 26391
8c0633b7
TF
26392# Avoid depending upon Character Ranges.
26393as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26394as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26395as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26396as_cr_digits='0123456789'
26397as_cr_alnum=$as_cr_Letters$as_cr_digits
26398
5213506e
RW
26399ECHO_C= ECHO_N= ECHO_T=
26400case `echo -n x` in #(((((
26401-n*)
26402 case `echo 'xy\c'` in
26403 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26404 xy) ECHO_C='\c';;
26405 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26406 ECHO_T=' ';;
26407 esac;;
26408*)
26409 ECHO_N='-n';;
ea54b293
TT
26410esac
26411
5213506e
RW
26412rm -f conf$$ conf$$.exe conf$$.file
26413if test -d conf$$.dir; then
26414 rm -f conf$$.dir/conf$$.file
ea54b293 26415else
5213506e
RW
26416 rm -f conf$$.dir
26417 mkdir conf$$.dir 2>/dev/null
ea54b293 26418fi
5213506e
RW
26419if (echo >conf$$.file) 2>/dev/null; then
26420 if ln -s conf$$.file conf$$ 2>/dev/null; then
8c0633b7 26421 as_ln_s='ln -s'
5213506e
RW
26422 # ... but there are two gotchas:
26423 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26424 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26425 # In both cases, we have to default to `cp -p'.
26426 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26427 as_ln_s='cp -p'
26428 elif ln conf$$.file conf$$ 2>/dev/null; then
26429 as_ln_s=ln
26430 else
26431 as_ln_s='cp -p'
8c0633b7 26432 fi
ea54b293
TT
26433else
26434 as_ln_s='cp -p'
26435fi
5213506e
RW
26436rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26437rmdir conf$$.dir 2>/dev/null
26438
ea54b293 26439
5213506e
RW
26440# as_fn_mkdir_p
26441# -------------
26442# Create "$as_dir" as a directory, including parents if necessary.
26443as_fn_mkdir_p ()
26444{
26445
26446 case $as_dir in #(
26447 -*) as_dir=./$as_dir;;
26448 esac
26449 test -d "$as_dir" || eval $as_mkdir_p || {
26450 as_dirs=
26451 while :; do
26452 case $as_dir in #(
26453 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26454 *) as_qdir=$as_dir;;
26455 esac
26456 as_dirs="'$as_qdir' $as_dirs"
26457 as_dir=`$as_dirname -- "$as_dir" ||
26458$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26459 X"$as_dir" : 'X\(//\)[^/]' \| \
26460 X"$as_dir" : 'X\(//\)$' \| \
26461 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26462$as_echo X"$as_dir" |
26463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26464 s//\1/
26465 q
26466 }
26467 /^X\(\/\/\)[^/].*/{
26468 s//\1/
26469 q
26470 }
26471 /^X\(\/\/\)$/{
26472 s//\1/
26473 q
26474 }
26475 /^X\(\/\).*/{
26476 s//\1/
26477 q
26478 }
26479 s/.*/./; q'`
26480 test -d "$as_dir" && break
26481 done
26482 test -z "$as_dirs" || eval "mkdir $as_dirs"
26483 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
26484
26485
26486} # as_fn_mkdir_p
ea54b293 26487if mkdir -p . 2>/dev/null; then
5213506e 26488 as_mkdir_p='mkdir -p "$as_dir"'
ea54b293
TT
26489else
26490 test -d ./-p && rmdir ./-p
26491 as_mkdir_p=false
26492fi
26493
5213506e
RW
26494if test -x / >/dev/null 2>&1; then
26495 as_test_x='test -x'
26496else
26497 if ls -dL / >/dev/null 2>&1; then
26498 as_ls_L_option=L
26499 else
26500 as_ls_L_option=
26501 fi
26502 as_test_x='
26503 eval sh -c '\''
26504 if test -d "$1"; then
26505 test -d "$1/.";
26506 else
26507 case $1 in #(
26508 -*)set "./$1";;
26509 esac;
26510 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26511 ???[sx]*):;;*)false;;esac;fi
26512 '\'' sh
26513 '
26514fi
26515as_executable_p=$as_test_x
ea54b293
TT
26516
26517# Sed expression to map a string onto a valid CPP name.
26518as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26519
26520# Sed expression to map a string onto a valid variable name.
26521as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26522
26523
ea54b293 26524exec 6>&1
5213506e
RW
26525## ----------------------------------- ##
26526## Main body of $CONFIG_STATUS script. ##
26527## ----------------------------------- ##
26528_ASEOF
26529test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26530
26531cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26532# Save the log message, to keep $0 and so on meaningful, and to
ea54b293 26533# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
26534# values after options handling.
26535ac_log="
a1906e8b 26536This file was extended by GNU Classpath $as_me 0.99.1-pre, which was
5213506e 26537generated by GNU Autoconf 2.64. Invocation command line was
ea54b293
TT
26538
26539 CONFIG_FILES = $CONFIG_FILES
26540 CONFIG_HEADERS = $CONFIG_HEADERS
26541 CONFIG_LINKS = $CONFIG_LINKS
26542 CONFIG_COMMANDS = $CONFIG_COMMANDS
26543 $ $0 $@
26544
5213506e
RW
26545on `(hostname || uname -n) 2>/dev/null | sed 1q`
26546"
26547
ea54b293
TT
26548_ACEOF
26549
5213506e
RW
26550case $ac_config_files in *"
26551"*) set x $ac_config_files; shift; ac_config_files=$*;;
26552esac
ea54b293 26553
5213506e
RW
26554case $ac_config_headers in *"
26555"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26556esac
8c0633b7 26557
8c0633b7 26558
5213506e
RW
26559cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26560# Files that config.status was made for.
26561config_files="$ac_config_files"
26562config_headers="$ac_config_headers"
26563config_links="$ac_config_links"
26564config_commands="$ac_config_commands"
ea54b293 26565
5213506e 26566_ACEOF
8c0633b7 26567
5213506e 26568cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ea54b293 26569ac_cs_usage="\
5213506e
RW
26570\`$as_me' instantiates files and other configuration actions
26571from templates according to the current configuration. Unless the files
26572and actions are specified as TAGs, all are instantiated by default.
ea54b293 26573
5213506e 26574Usage: $0 [OPTION]... [TAG]...
ea54b293
TT
26575
26576 -h, --help print this help, then exit
5213506e
RW
26577 -V, --version print version number and configuration settings, then exit
26578 -q, --quiet, --silent
26579 do not print progress messages
ea54b293
TT
26580 -d, --debug don't remove temporary files
26581 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
26582 --file=FILE[:TEMPLATE]
26583 instantiate the configuration file FILE
26584 --header=FILE[:TEMPLATE]
26585 instantiate the configuration header FILE
ea54b293
TT
26586
26587Configuration files:
26588$config_files
26589
26590Configuration headers:
26591$config_headers
26592
26593Configuration links:
26594$config_links
26595
26596Configuration commands:
26597$config_commands
26598
5213506e
RW
26599Report bugs to <classpath@gnu.org>.
26600GNU Classpath home page: <http://www.gnu.org/software/classpath/>.
26601General help using GNU software: <http://www.gnu.org/gethelp/>."
8c0633b7 26602
5213506e
RW
26603_ACEOF
26604cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ea54b293 26605ac_cs_version="\\
a1906e8b 26606GNU Classpath config.status 0.99.1-pre
5213506e
RW
26607configured by $0, generated by GNU Autoconf 2.64,
26608 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
ea54b293 26609
5213506e 26610Copyright (C) 2009 Free Software Foundation, Inc.
ea54b293
TT
26611This config.status script is free software; the Free Software Foundation
26612gives unlimited permission to copy, distribute and modify it."
5213506e
RW
26613
26614ac_pwd='$ac_pwd'
26615srcdir='$srcdir'
26616INSTALL='$INSTALL'
26617MKDIR_P='$MKDIR_P'
26618AWK='$AWK'
26619test -n "\$AWK" || AWK=awk
ea54b293
TT
26620_ACEOF
26621
5213506e
RW
26622cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26623# The default lists apply if the user does not specify any file.
ea54b293
TT
26624ac_need_defaults=:
26625while test $# != 0
26626do
26627 case $1 in
26628 --*=*)
5213506e
RW
26629 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26630 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ea54b293
TT
26631 ac_shift=:
26632 ;;
5213506e 26633 *)
ea54b293
TT
26634 ac_option=$1
26635 ac_optarg=$2
26636 ac_shift=shift
26637 ;;
ea54b293
TT
26638 esac
26639
26640 case $ac_option in
26641 # Handling of the options.
ea54b293
TT
26642 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26643 ac_cs_recheck=: ;;
5213506e
RW
26644 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26645 $as_echo "$ac_cs_version"; exit ;;
26646 --debug | --debu | --deb | --de | --d | -d )
ea54b293
TT
26647 debug=: ;;
26648 --file | --fil | --fi | --f )
26649 $ac_shift
5213506e
RW
26650 case $ac_optarg in
26651 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26652 esac
26653 as_fn_append CONFIG_FILES " '$ac_optarg'"
ea54b293
TT
26654 ac_need_defaults=false;;
26655 --header | --heade | --head | --hea )
26656 $ac_shift
5213506e
RW
26657 case $ac_optarg in
26658 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26659 esac
26660 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
ea54b293 26661 ac_need_defaults=false;;
5213506e
RW
26662 --he | --h)
26663 # Conflict between --help and --header
26664 as_fn_error "ambiguous option: \`$1'
26665Try \`$0 --help' for more information.";;
26666 --help | --hel | -h )
26667 $as_echo "$ac_cs_usage"; exit ;;
ea54b293
TT
26668 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26669 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26670 ac_cs_silent=: ;;
26671
26672 # This is an error.
5213506e
RW
26673 -*) as_fn_error "unrecognized option: \`$1'
26674Try \`$0 --help' for more information." ;;
ea54b293 26675
5213506e
RW
26676 *) as_fn_append ac_config_targets " $1"
26677 ac_need_defaults=false ;;
ea54b293
TT
26678
26679 esac
26680 shift
26681done
26682
26683ac_configure_extra_args=
26684
26685if $ac_cs_silent; then
26686 exec 6>/dev/null
26687 ac_configure_extra_args="$ac_configure_extra_args --silent"
26688fi
26689
26690_ACEOF
5213506e 26691cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ea54b293 26692if \$ac_cs_recheck; then
5213506e
RW
26693 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26694 shift
26695 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26696 CONFIG_SHELL='$SHELL'
26697 export CONFIG_SHELL
26698 exec "\$@"
ea54b293
TT
26699fi
26700
26701_ACEOF
5213506e
RW
26702cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26703exec 5>>config.log
26704{
26705 echo
26706 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26707## Running $as_me. ##
26708_ASBOX
26709 $as_echo "$ac_log"
26710} >&5
26711
26712_ACEOF
26713cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ea54b293 26714#
5213506e 26715# INIT-COMMANDS
ea54b293 26716#
8c0633b7 26717
8a489465
JH
26718srcdir="$srcdir"
26719host="$host"
26720target="$target"
26721with_multisubdir="$with_multisubdir"
26722with_multisrctop="$with_multisrctop"
26723with_target_subdir="$with_target_subdir"
26724ac_configure_args="${multilib_arg} ${ac_configure_args}"
26725multi_basedir="$multi_basedir"
26726CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
26727CC="$CC"
84fec8a5
RW
26728CXX="$CXX"
26729GFORTRAN="$GFORTRAN"
26730GCJ="$GCJ"
ea54b293 26731AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
86e44bd7
L
26732
26733
26734# The HP-UX ksh and POSIX shell print the target directory to stdout
26735# if CDPATH is set.
26736(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26737
26738sed_quote_subst='$sed_quote_subst'
26739double_quote_subst='$double_quote_subst'
26740delay_variable_subst='$delay_variable_subst'
43e02a8a
RW
26741enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
26742macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
26743macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
26744enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
26745pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
26746enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
26747SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
26748ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
26749host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
26750host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
26751host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
26752build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
26753build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
26754build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
26755SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
26756Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
26757GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
26758EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
26759FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
26760LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
26761NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
26762LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
26763max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
26764ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
26765exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
26766lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
26767lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
26768lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
26769reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
26770reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
26771OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
26772deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
26773file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
26774AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
26775AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
26776STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
26777RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
26778old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26779old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26780old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
26781lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
26782CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
26783CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
26784compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
26785GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
26786lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
26787lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
26788lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
26789lt_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"`'
26790objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
26791MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
26792lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
26793lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
26794lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
26795lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
26796lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
26797need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
26798DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
26799NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
26800LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
26801OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
26802OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
26803libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
26804shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
26805extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26806archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
26807enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
26808export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
26809whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
26810compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
26811old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
26812old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26813archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
26814archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26815module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
26816module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26817with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
26818allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
26819no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
26820hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
26821hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
26822hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
26823hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
26824hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
26825hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
26826hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
26827hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
26828inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
26829link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
26830fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
26831always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
26832export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
26833exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
26834include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
26835prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
26836file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
26837variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
26838need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
26839need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
26840version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
26841runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
26842shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
26843shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
26844libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
26845library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
26846soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
26847install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
26848postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26849postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26850finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
26851finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
26852hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
26853sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
26854sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
26855hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
26856enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
26857enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
26858enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
26859old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
26860striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
26861compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
26862predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
26863postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
26864predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
26865postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
26866compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
26867LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
26868reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
26869reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26870old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26871compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
26872GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
26873lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
26874lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
26875lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
26876lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
26877lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
26878archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
26879enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
26880export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26881whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26882compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
26883old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26884old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26885archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26886archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26887module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26888module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26889with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
26890allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26891no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26892hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26893hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
26894hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
26895hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
26896hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
26897hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
26898hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
26899hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
26900inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
26901link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
26902fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
26903always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
26904export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26905exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26906include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26907prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26908file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
26909hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
26910compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
26911predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26912postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26913predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
26914postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
26915compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
86e44bd7
L
26916
26917LTCC='$LTCC'
26918LTCFLAGS='$LTCFLAGS'
26919compiler='$compiler_DEFAULT'
26920
43e02a8a
RW
26921# A function that is used when there is no print builtin or printf.
26922func_fallback_echo ()
26923{
26924 eval 'cat <<_LTECHO_EOF
26925\$1
26926_LTECHO_EOF'
26927}
26928
86e44bd7 26929# Quote evaled strings.
43e02a8a
RW
26930for var in SHELL \
26931ECHO \
26932SED \
86e44bd7
L
26933GREP \
26934EGREP \
26935FGREP \
26936LD \
26937NM \
26938LN_S \
26939lt_SP2NL \
26940lt_NL2SP \
26941reload_flag \
0da7a284 26942OBJDUMP \
86e44bd7
L
26943deplibs_check_method \
26944file_magic_cmd \
26945AR \
26946AR_FLAGS \
26947STRIP \
26948RANLIB \
26949CC \
26950CFLAGS \
26951compiler \
26952lt_cv_sys_global_symbol_pipe \
26953lt_cv_sys_global_symbol_to_cdecl \
26954lt_cv_sys_global_symbol_to_c_name_address \
0da7a284 26955lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
86e44bd7
L
26956lt_prog_compiler_no_builtin_flag \
26957lt_prog_compiler_wl \
26958lt_prog_compiler_pic \
26959lt_prog_compiler_static \
26960lt_cv_prog_compiler_c_o \
26961need_locks \
0da7a284
PG
26962DSYMUTIL \
26963NMEDIT \
26964LIPO \
26965OTOOL \
26966OTOOL64 \
86e44bd7
L
26967shrext_cmds \
26968export_dynamic_flag_spec \
26969whole_archive_flag_spec \
26970compiler_needs_object \
26971with_gnu_ld \
26972allow_undefined_flag \
26973no_undefined_flag \
26974hardcode_libdir_flag_spec \
26975hardcode_libdir_flag_spec_ld \
26976hardcode_libdir_separator \
26977fix_srcfile_path \
26978exclude_expsyms \
26979include_expsyms \
26980file_list_spec \
26981variables_saved_for_relink \
26982libname_spec \
26983library_names_spec \
26984soname_spec \
43e02a8a 26985install_override_mode \
86e44bd7
L
26986finish_eval \
26987old_striplib \
26988striplib \
0da7a284 26989compiler_lib_search_dirs \
86e44bd7
L
26990predep_objects \
26991postdep_objects \
26992predeps \
26993postdeps \
26994compiler_lib_search_path \
26995LD_CXX \
43e02a8a 26996reload_flag_CXX \
86e44bd7
L
26997compiler_CXX \
26998lt_prog_compiler_no_builtin_flag_CXX \
26999lt_prog_compiler_wl_CXX \
27000lt_prog_compiler_pic_CXX \
27001lt_prog_compiler_static_CXX \
27002lt_cv_prog_compiler_c_o_CXX \
27003export_dynamic_flag_spec_CXX \
27004whole_archive_flag_spec_CXX \
27005compiler_needs_object_CXX \
27006with_gnu_ld_CXX \
27007allow_undefined_flag_CXX \
27008no_undefined_flag_CXX \
27009hardcode_libdir_flag_spec_CXX \
27010hardcode_libdir_flag_spec_ld_CXX \
27011hardcode_libdir_separator_CXX \
27012fix_srcfile_path_CXX \
27013exclude_expsyms_CXX \
27014include_expsyms_CXX \
27015file_list_spec_CXX \
0da7a284 27016compiler_lib_search_dirs_CXX \
86e44bd7
L
27017predep_objects_CXX \
27018postdep_objects_CXX \
27019predeps_CXX \
27020postdeps_CXX \
27021compiler_lib_search_path_CXX; do
43e02a8a 27022 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
86e44bd7 27023 *[\\\\\\\`\\"\\\$]*)
43e02a8a 27024 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
86e44bd7
L
27025 ;;
27026 *)
27027 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27028 ;;
27029 esac
27030done
27031
27032# Double-quote double-evaled strings.
27033for var in reload_cmds \
27034old_postinstall_cmds \
27035old_postuninstall_cmds \
27036old_archive_cmds \
27037extract_expsyms_cmds \
27038old_archive_from_new_cmds \
27039old_archive_from_expsyms_cmds \
27040archive_cmds \
27041archive_expsym_cmds \
27042module_cmds \
27043module_expsym_cmds \
27044export_symbols_cmds \
27045prelink_cmds \
27046postinstall_cmds \
27047postuninstall_cmds \
27048finish_cmds \
27049sys_lib_search_path_spec \
27050sys_lib_dlsearch_path_spec \
43e02a8a 27051reload_cmds_CXX \
86e44bd7
L
27052old_archive_cmds_CXX \
27053old_archive_from_new_cmds_CXX \
27054old_archive_from_expsyms_cmds_CXX \
27055archive_cmds_CXX \
27056archive_expsym_cmds_CXX \
27057module_cmds_CXX \
27058module_expsym_cmds_CXX \
27059export_symbols_cmds_CXX \
27060prelink_cmds_CXX; do
43e02a8a 27061 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
86e44bd7 27062 *[\\\\\\\`\\"\\\$]*)
43e02a8a 27063 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
86e44bd7
L
27064 ;;
27065 *)
27066 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27067 ;;
27068 esac
27069done
27070
86e44bd7
L
27071ac_aux_dir='$ac_aux_dir'
27072xsi_shell='$xsi_shell'
27073lt_shell_append='$lt_shell_append'
27074
27075# See if we are running on zsh, and set the options which allow our
27076# commands through without removal of \ escapes INIT.
27077if test -n "\${ZSH_VERSION+set}" ; then
27078 setopt NO_GLOB_SUBST
27079fi
27080
27081
27082 PACKAGE='$PACKAGE'
27083 VERSION='$VERSION'
27084 TIMESTAMP='$TIMESTAMP'
27085 RM='$RM'
27086 ofile='$ofile'
27087
27088
27089
27090
27091
21276379
MW
27092# variables for create stdint.h replacement
27093PACKAGE="$PACKAGE"
27094VERSION="$VERSION"
27095ac_stdint_h="$ac_stdint_h"
5213506e 27096_ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
21276379
MW
27097ac_cv_stdint_message="$ac_cv_stdint_message"
27098ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
27099ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
27100ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
27101ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
27102ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
27103ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
27104ac_cv_char_data_model="$ac_cv_char_data_model"
27105ac_cv_long_data_model="$ac_cv_long_data_model"
27106ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
27107ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
27108ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
27109
ea54b293
TT
27110
27111_ACEOF
27112
5213506e 27113cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4f9533c7 27114
5213506e 27115# Handling of arguments.
ea54b293
TT
27116for ac_config_target in $ac_config_targets
27117do
5213506e
RW
27118 case $ac_config_target in
27119 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
27120 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
27121 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27122 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27123 "lib/mkcollections.pl") CONFIG_FILES="$CONFIG_FILES lib/mkcollections.pl" ;;
27124 "mkcollections.pl") CONFIG_COMMANDS="$CONFIG_COMMANDS mkcollections.pl" ;;
27125 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
27126 "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
27127 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27128 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
27129 "doc/api/Makefile") CONFIG_FILES="$CONFIG_FILES doc/api/Makefile" ;;
27130 "external/Makefile") CONFIG_FILES="$CONFIG_FILES external/Makefile" ;;
27131 "external/sax/Makefile") CONFIG_FILES="$CONFIG_FILES external/sax/Makefile" ;;
27132 "external/w3c_dom/Makefile") CONFIG_FILES="$CONFIG_FILES external/w3c_dom/Makefile" ;;
27133 "external/relaxngDatatype/Makefile") CONFIG_FILES="$CONFIG_FILES external/relaxngDatatype/Makefile" ;;
27134 "external/jsr166/Makefile") CONFIG_FILES="$CONFIG_FILES external/jsr166/Makefile" ;;
27135 "gnu/classpath/Configuration.java") CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
27136 "gnu/java/security/Configuration.java") CONFIG_FILES="$CONFIG_FILES gnu/java/security/Configuration.java" ;;
27137 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
27138 "native/Makefile") CONFIG_FILES="$CONFIG_FILES native/Makefile" ;;
27139 "native/fdlibm/Makefile") CONFIG_FILES="$CONFIG_FILES native/fdlibm/Makefile" ;;
27140 "native/jawt/Makefile") CONFIG_FILES="$CONFIG_FILES native/jawt/Makefile" ;;
27141 "native/jni/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/Makefile" ;;
27142 "native/jni/classpath/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/classpath/Makefile" ;;
27143 "native/jni/java-io/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-io/Makefile" ;;
27144 "native/jni/java-lang/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-lang/Makefile" ;;
27145 "native/jni/java-math/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-math/Makefile" ;;
27146 "native/jni/java-net/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-net/Makefile" ;;
27147 "native/jni/java-nio/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-nio/Makefile" ;;
27148 "native/jni/java-util/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-util/Makefile" ;;
27149 "native/jni/gtk-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/gtk-peer/Makefile" ;;
27150 "native/jni/gconf-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/gconf-peer/Makefile" ;;
27151 "native/jni/gstreamer-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/gstreamer-peer/Makefile" ;;
27152 "native/jni/qt-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/qt-peer/Makefile" ;;
27153 "native/jni/xmlj/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/xmlj/Makefile" ;;
27154 "native/jni/midi-alsa/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/midi-alsa/Makefile" ;;
27155 "native/jni/midi-dssi/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/midi-dssi/Makefile" ;;
27156 "native/jni/native-lib/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/native-lib/Makefile" ;;
27157 "native/plugin/Makefile") CONFIG_FILES="$CONFIG_FILES native/plugin/Makefile" ;;
27158 "resource/Makefile") CONFIG_FILES="$CONFIG_FILES resource/Makefile" ;;
27159 "resource/META-INF/services/java.util.prefs.PreferencesFactory") CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/java.util.prefs.PreferencesFactory" ;;
27160 "resource/META-INF/services/javax.sound.sampled.spi.AudioFileReader") CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/javax.sound.sampled.spi.AudioFileReader" ;;
27161 "resource/META-INF/services/javax.sound.sampled.spi.MixerProvider") CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/javax.sound.sampled.spi.MixerProvider" ;;
27162 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
27163 "scripts/classpath.spec") CONFIG_FILES="$CONFIG_FILES scripts/classpath.spec" ;;
27164 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
27165 "lib/gen-classlist.sh") CONFIG_FILES="$CONFIG_FILES lib/gen-classlist.sh" ;;
27166 "lib/copy-vmresources.sh") CONFIG_FILES="$CONFIG_FILES lib/copy-vmresources.sh" ;;
27167 "scripts/check_jni_methods.sh") CONFIG_FILES="$CONFIG_FILES scripts/check_jni_methods.sh" ;;
27168 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
27169 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
27170 "examples/Makefile.jawt") CONFIG_FILES="$CONFIG_FILES examples/Makefile.jawt" ;;
27171 "examples/Makefile.java2d") CONFIG_FILES="$CONFIG_FILES examples/Makefile.java2d" ;;
27172 "tools/gappletviewer") CONFIG_FILES="$CONFIG_FILES tools/gappletviewer" ;;
27173 "tools/gjarsigner") CONFIG_FILES="$CONFIG_FILES tools/gjarsigner" ;;
27174 "tools/gkeytool") CONFIG_FILES="$CONFIG_FILES tools/gkeytool" ;;
27175 "tools/gjar") CONFIG_FILES="$CONFIG_FILES tools/gjar" ;;
27176 "tools/gnative2ascii") CONFIG_FILES="$CONFIG_FILES tools/gnative2ascii" ;;
27177 "tools/gserialver") CONFIG_FILES="$CONFIG_FILES tools/gserialver" ;;
27178 "tools/grmiregistry") CONFIG_FILES="$CONFIG_FILES tools/grmiregistry" ;;
27179 "tools/gtnameserv") CONFIG_FILES="$CONFIG_FILES tools/gtnameserv" ;;
27180 "tools/gorbd") CONFIG_FILES="$CONFIG_FILES tools/gorbd" ;;
27181 "tools/grmid") CONFIG_FILES="$CONFIG_FILES tools/grmid" ;;
27182 "tools/grmic") CONFIG_FILES="$CONFIG_FILES tools/grmic" ;;
27183 "tools/gjavah") CONFIG_FILES="$CONFIG_FILES tools/gjavah" ;;
27184 "gappletviewer") CONFIG_COMMANDS="$CONFIG_COMMANDS gappletviewer" ;;
27185 "gjarsigner") CONFIG_COMMANDS="$CONFIG_COMMANDS gjarsigner" ;;
27186 "gkeytool") CONFIG_COMMANDS="$CONFIG_COMMANDS gkeytool" ;;
27187 "gjar") CONFIG_COMMANDS="$CONFIG_COMMANDS gjar" ;;
27188 "gnative2ascii") CONFIG_COMMANDS="$CONFIG_COMMANDS gnative2ascii" ;;
27189 "gserialver") CONFIG_COMMANDS="$CONFIG_COMMANDS gserialver" ;;
27190 "grmiregistry") CONFIG_COMMANDS="$CONFIG_COMMANDS grmiregistry" ;;
27191 "gtnameserv") CONFIG_COMMANDS="$CONFIG_COMMANDS gtnameserv" ;;
27192 "gorbd") CONFIG_COMMANDS="$CONFIG_COMMANDS gorbd" ;;
27193 "grmid") CONFIG_COMMANDS="$CONFIG_COMMANDS grmid" ;;
27194 "grmic") CONFIG_COMMANDS="$CONFIG_COMMANDS grmic" ;;
27195 "gjavah") CONFIG_COMMANDS="$CONFIG_COMMANDS gjavah" ;;
27196 "tools/gjdoc") CONFIG_FILES="$CONFIG_FILES tools/gjdoc" ;;
27197 "gjdoc") CONFIG_COMMANDS="$CONFIG_COMMANDS gjdoc" ;;
27198 "gen-classlist") CONFIG_COMMANDS="$CONFIG_COMMANDS gen-classlist" ;;
27199 "copy-vmresources") CONFIG_COMMANDS="$CONFIG_COMMANDS copy-vmresources" ;;
27200
27201 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
ea54b293
TT
27202 esac
27203done
27204
5213506e 27205
ea54b293
TT
27206# If the user did not use the arguments to specify the items to instantiate,
27207# then the envvar interface is used. Set only those that are not.
27208# We use the long form for the default assignment because of an extremely
27209# bizarre bug on SunOS 4.1.3.
27210if $ac_need_defaults; then
27211 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27212 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27213 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
27214 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27215fi
27216
27217# Have a temporary directory for convenience. Make it in the build tree
5213506e 27218# simply because there is no reason against having it here, and in addition,
ea54b293 27219# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
27220# Hook for its removal unless debugging.
27221# Note that there is a small window in which the directory will not be cleaned:
27222# after its creation but before its name has been assigned to `$tmp'.
ea54b293
TT
27223$debug ||
27224{
5213506e
RW
27225 tmp=
27226 trap 'exit_status=$?
27227 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27228' 0
27229 trap 'as_fn_exit 1' 1 2 13 15
ea54b293 27230}
ea54b293
TT
27231# Create a (secure) tmp directory for tmp files.
27232
27233{
5213506e 27234 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ea54b293
TT
27235 test -n "$tmp" && test -d "$tmp"
27236} ||
27237{
5213506e
RW
27238 tmp=./conf$$-$RANDOM
27239 (umask 077 && mkdir "$tmp")
27240} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27241
27242# Set up the scripts for CONFIG_FILES section.
27243# No need to generate them if there are no CONFIG_FILES.
27244# This happens for instance with `./config.status config.h'.
27245if test -n "$CONFIG_FILES"; then
27246
27247
27248ac_cr=`echo X | tr X '\015'`
27249# On cygwin, bash can eat \r inside `` if the user requested igncr.
27250# But we know of no other shell where ac_cr would be empty at this
27251# point, so we can use a bashism as a fallback.
27252if test "x$ac_cr" = x; then
27253 eval ac_cr=\$\'\\r\'
27254fi
27255ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27256if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27257 ac_cs_awk_cr='\r'
27258else
27259 ac_cs_awk_cr=$ac_cr
27260fi
27261
27262echo 'BEGIN {' >"$tmp/subs1.awk" &&
27263_ACEOF
27264
27265
27266{
27267 echo "cat >conf$$subs.awk <<_ACEOF" &&
27268 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27269 echo "_ACEOF"
27270} >conf$$subs.sh ||
27271 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27272ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27273ac_delim='%!_!# '
27274for ac_last_try in false false false false false :; do
27275 . ./conf$$subs.sh ||
27276 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27277
27278 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27279 if test $ac_delim_n = $ac_delim_num; then
27280 break
27281 elif $ac_last_try; then
27282 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27283 else
27284 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27285 fi
27286done
27287rm -f conf$$subs.sh
27288
27289cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27290cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27291_ACEOF
27292sed -n '
27293h
27294s/^/S["/; s/!.*/"]=/
27295p
27296g
27297s/^[^!]*!//
27298:repl
27299t repl
27300s/'"$ac_delim"'$//
27301t delim
27302:nl
27303h
27304s/\(.\{148\}\).*/\1/
27305t more1
27306s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27307p
27308n
27309b repl
27310:more1
27311s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27312p
27313g
27314s/.\{148\}//
27315t nl
27316:delim
27317h
27318s/\(.\{148\}\).*/\1/
27319t more2
27320s/["\\]/\\&/g; s/^/"/; s/$/"/
27321p
27322b
27323:more2
27324s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27325p
27326g
27327s/.\{148\}//
27328t delim
27329' <conf$$subs.awk | sed '
27330/^[^""]/{
27331 N
27332 s/\n//
27333}
27334' >>$CONFIG_STATUS || ac_write_fail=1
27335rm -f conf$$subs.awk
27336cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27337_ACAWK
27338cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27339 for (key in S) S_is_set[key] = 1
27340 FS = "\a"
27341
27342}
ea54b293 27343{
5213506e
RW
27344 line = $ 0
27345 nfields = split(line, field, "@")
27346 substed = 0
27347 len = length(field[1])
27348 for (i = 2; i < nfields; i++) {
27349 key = field[i]
27350 keylen = length(key)
27351 if (S_is_set[key]) {
27352 value = S[key]
27353 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27354 len += length(value) + length(field[++i])
27355 substed = 1
27356 } else
27357 len += 1 + keylen
27358 }
27359
27360 print line
ea54b293
TT
27361}
27362
5213506e 27363_ACAWK
8c0633b7 27364_ACEOF
5213506e
RW
27365cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27366if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27367 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27368else
27369 cat
27370fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27371 || as_fn_error "could not setup config files machinery" "$LINENO" 5
27372_ACEOF
27373
27374# VPATH may cause trouble with some makes, so we remove $(srcdir),
27375# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27376# trailing colons and then remove the whole line if VPATH becomes empty
27377# (actually we leave an empty line to preserve line numbers).
27378if test "x$srcdir" = x.; then
27379 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27380s/:*\$(srcdir):*/:/
27381s/:*\${srcdir}:*/:/
27382s/:*@srcdir@:*/:/
27383s/^\([^=]*=[ ]*\):*/\1/
27384s/:*$//
27385s/^[^=]*=[ ]*$//
27386}'
27387fi
8c0633b7 27388
5213506e
RW
27389cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27390fi # test -n "$CONFIG_FILES"
8c0633b7 27391
5213506e
RW
27392# Set up the scripts for CONFIG_HEADERS section.
27393# No need to generate them if there are no CONFIG_HEADERS.
27394# This happens for instance with `./config.status Makefile'.
27395if test -n "$CONFIG_HEADERS"; then
27396cat >"$tmp/defines.awk" <<\_ACAWK ||
27397BEGIN {
27398_ACEOF
ea54b293 27399
5213506e
RW
27400# Transform confdefs.h into an awk script `defines.awk', embedded as
27401# here-document in config.status, that substitutes the proper values into
27402# config.h.in to produce config.h.
8c0633b7 27403
5213506e
RW
27404# Create a delimiter string that does not exist in confdefs.h, to ease
27405# handling of long lines.
27406ac_delim='%!_!# '
27407for ac_last_try in false false :; do
27408 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27409 if test -z "$ac_t"; then
27410 break
27411 elif $ac_last_try; then
27412 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
27413 else
27414 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27415 fi
27416done
27417
27418# For the awk script, D is an array of macro values keyed by name,
27419# likewise P contains macro parameters if any. Preserve backslash
27420# newline sequences.
27421
27422ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27423sed -n '
27424s/.\{148\}/&'"$ac_delim"'/g
27425t rset
27426:rset
27427s/^[ ]*#[ ]*define[ ][ ]*/ /
27428t def
27429d
27430:def
27431s/\\$//
27432t bsnl
27433s/["\\]/\\&/g
27434s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27435D["\1"]=" \3"/p
27436s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27437d
27438:bsnl
27439s/["\\]/\\&/g
27440s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27441D["\1"]=" \3\\\\\\n"\\/p
27442t cont
27443s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27444t cont
27445d
27446:cont
27447n
27448s/.\{148\}/&'"$ac_delim"'/g
27449t clear
27450:clear
27451s/\\$//
27452t bsnlc
27453s/["\\]/\\&/g; s/^/"/; s/$/"/p
27454d
27455:bsnlc
27456s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27457b cont
27458' <confdefs.h | sed '
27459s/'"$ac_delim"'/"\\\
27460"/g' >>$CONFIG_STATUS || ac_write_fail=1
27461
27462cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27463 for (key in D) D_is_set[key] = 1
27464 FS = "\a"
27465}
27466/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27467 line = \$ 0
27468 split(line, arg, " ")
27469 if (arg[1] == "#") {
27470 defundef = arg[2]
27471 mac1 = arg[3]
27472 } else {
27473 defundef = substr(arg[1], 2)
27474 mac1 = arg[2]
27475 }
27476 split(mac1, mac2, "(") #)
27477 macro = mac2[1]
27478 prefix = substr(line, 1, index(line, defundef) - 1)
27479 if (D_is_set[macro]) {
27480 # Preserve the white space surrounding the "#".
27481 print prefix "define", macro P[macro] D[macro]
27482 next
27483 } else {
27484 # Replace #undef with comments. This is necessary, for example,
27485 # in the case of _POSIX_SOURCE, which is predefined and required
27486 # on some systems where configure will not decide to define it.
27487 if (defundef == "undef") {
27488 print "/*", prefix defundef, macro, "*/"
27489 next
27490 }
27491 }
27492}
27493{ print }
27494_ACAWK
8c0633b7 27495_ACEOF
5213506e
RW
27496cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27497 as_fn_error "could not setup config headers machinery" "$LINENO" 5
27498fi # test -n "$CONFIG_HEADERS"
8c0633b7 27499
5213506e
RW
27500
27501eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
27502shift
27503for ac_tag
27504do
27505 case $ac_tag in
27506 :[FHLC]) ac_mode=$ac_tag; continue;;
27507 esac
27508 case $ac_mode$ac_tag in
27509 :[FHL]*:*);;
27510 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
27511 :[FH]-) ac_tag=-:-;;
27512 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27513 esac
27514 ac_save_IFS=$IFS
27515 IFS=:
27516 set x $ac_tag
27517 IFS=$ac_save_IFS
27518 shift
27519 ac_file=$1
27520 shift
27521
27522 case $ac_mode in
27523 :L) ac_source=$1;;
27524 :[FH])
27525 ac_file_inputs=
27526 for ac_f
27527 do
27528 case $ac_f in
27529 -) ac_f="$tmp/stdin";;
27530 *) # Look for the file first in the build tree, then in the source tree
27531 # (if the path is not absolute). The absolute path cannot be DOS-style,
27532 # because $ac_f cannot contain `:'.
27533 test -f "$ac_f" ||
27534 case $ac_f in
27535 [\\/$]*) false;;
27536 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27537 esac ||
27538 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27539 esac
27540 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27541 as_fn_append ac_file_inputs " '$ac_f'"
27542 done
27543
27544 # Let's still pretend it is `configure' which instantiates (i.e., don't
27545 # use $as_me), people would be surprised to read:
27546 # /* config.h. Generated by config.status. */
27547 configure_input='Generated from '`
27548 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27549 `' by configure.'
27550 if test x"$ac_file" != x-; then
27551 configure_input="$ac_file. $configure_input"
27552 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27553$as_echo "$as_me: creating $ac_file" >&6;}
8c0633b7 27554 fi
5213506e
RW
27555 # Neutralize special characters interpreted by sed in replacement strings.
27556 case $configure_input in #(
27557 *\&* | *\|* | *\\* )
27558 ac_sed_conf_input=`$as_echo "$configure_input" |
27559 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27560 *) ac_sed_conf_input=$configure_input;;
27561 esac
ea54b293 27562
5213506e
RW
27563 case $ac_tag in
27564 *:-:* | *:-) cat >"$tmp/stdin" \
27565 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
27566 esac
27567 ;;
ea54b293
TT
27568 esac
27569
5213506e 27570 ac_dir=`$as_dirname -- "$ac_file" ||
ea54b293
TT
27571$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27572 X"$ac_file" : 'X\(//\)[^/]' \| \
27573 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
27574 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27575$as_echo X"$ac_file" |
27576 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27577 s//\1/
27578 q
27579 }
27580 /^X\(\/\/\)[^/].*/{
27581 s//\1/
27582 q
27583 }
27584 /^X\(\/\/\)$/{
27585 s//\1/
27586 q
27587 }
27588 /^X\(\/\).*/{
27589 s//\1/
27590 q
27591 }
27592 s/.*/./; q'`
27593 as_dir="$ac_dir"; as_fn_mkdir_p
ea54b293
TT
27594 ac_builddir=.
27595
5213506e
RW
27596case "$ac_dir" in
27597.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27598*)
27599 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27600 # A ".." for each directory in $ac_dir_suffix.
27601 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27602 case $ac_top_builddir_sub in
27603 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27604 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27605 esac ;;
27606esac
27607ac_abs_top_builddir=$ac_pwd
27608ac_abs_builddir=$ac_pwd$ac_dir_suffix
27609# for backward compatibility:
27610ac_top_builddir=$ac_top_build_prefix
ea54b293
TT
27611
27612case $srcdir in
5213506e 27613 .) # We are building in place.
ea54b293 27614 ac_srcdir=.
5213506e
RW
27615 ac_top_srcdir=$ac_top_builddir_sub
27616 ac_abs_top_srcdir=$ac_pwd ;;
27617 [\\/]* | ?:[\\/]* ) # Absolute name.
ea54b293 27618 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
27619 ac_top_srcdir=$srcdir
27620 ac_abs_top_srcdir=$srcdir ;;
27621 *) # Relative name.
27622 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27623 ac_top_srcdir=$ac_top_build_prefix$srcdir
27624 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ea54b293 27625esac
5213506e 27626ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
ea54b293 27627
ea54b293 27628
5213506e
RW
27629 case $ac_mode in
27630 :F)
27631 #
27632 # CONFIG_FILE
27633 #
ea54b293
TT
27634
27635 case $INSTALL in
27636 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 27637 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
ea54b293 27638 esac
5213506e
RW
27639 ac_MKDIR_P=$MKDIR_P
27640 case $MKDIR_P in
27641 [\\/$]* | ?:[\\/]* ) ;;
27642 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27643 esac
27644_ACEOF
ea54b293 27645
5213506e
RW
27646cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27647# If the template does not know about datarootdir, expand it.
27648# FIXME: This hack should be removed a few years after 2.60.
27649ac_datarootdir_hack=; ac_datarootdir_seen=
27650ac_sed_dataroot='
27651/datarootdir/ {
27652 p
27653 q
27654}
27655/@datadir@/p
27656/@docdir@/p
27657/@infodir@/p
27658/@localedir@/p
27659/@mandir@/p'
27660case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27661*datarootdir*) ac_datarootdir_seen=yes;;
27662*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27664$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27665_ACEOF
27666cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27667 ac_datarootdir_hack='
27668 s&@datadir@&$datadir&g
27669 s&@docdir@&$docdir&g
27670 s&@infodir@&$infodir&g
27671 s&@localedir@&$localedir&g
27672 s&@mandir@&$mandir&g
27673 s&\\\${datarootdir}&$datarootdir&g' ;;
27674esac
ea54b293 27675_ACEOF
5213506e
RW
27676
27677# Neutralize VPATH when `$srcdir' = `.'.
27678# Shell code in configure.ac might set extrasub.
27679# FIXME: do we really want to maintain this feature?
27680cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27681ac_sed_extra="$ac_vpsub
ea54b293
TT
27682$extrasub
27683_ACEOF
5213506e 27684cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ea54b293
TT
27685:t
27686/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
27687s|@configure_input@|$ac_sed_conf_input|;t t
27688s&@top_builddir@&$ac_top_builddir_sub&;t t
27689s&@top_build_prefix@&$ac_top_build_prefix&;t t
27690s&@srcdir@&$ac_srcdir&;t t
27691s&@abs_srcdir@&$ac_abs_srcdir&;t t
27692s&@top_srcdir@&$ac_top_srcdir&;t t
27693s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27694s&@builddir@&$ac_builddir&;t t
27695s&@abs_builddir@&$ac_abs_builddir&;t t
27696s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27697s&@INSTALL@&$ac_INSTALL&;t t
27698s&@MKDIR_P@&$ac_MKDIR_P&;t t
27699$ac_datarootdir_hack
27700"
27701eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
27702 || as_fn_error "could not create $ac_file" "$LINENO" 5
27703
27704test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27705 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27706 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27708which seems to be undefined. Please make sure it is defined." >&5
27709$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27710which seems to be undefined. Please make sure it is defined." >&2;}
27711
27712 rm -f "$tmp/stdin"
ea54b293 27713 case $ac_file in
5213506e
RW
27714 -) cat "$tmp/out" && rm -f "$tmp/out";;
27715 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27716 esac \
27717 || as_fn_error "could not create $ac_file" "$LINENO" 5
27718 ;;
27719 :H)
27720 #
27721 # CONFIG_HEADER
27722 #
ea54b293 27723 if test x"$ac_file" != x-; then
5213506e
RW
27724 {
27725 $as_echo "/* $configure_input */" \
27726 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27727 } >"$tmp/config.h" \
27728 || as_fn_error "could not create $ac_file" "$LINENO" 5
27729 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27730 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27731$as_echo "$as_me: $ac_file is unchanged" >&6;}
ea54b293 27732 else
5213506e
RW
27733 rm -f "$ac_file"
27734 mv "$tmp/config.h" "$ac_file" \
27735 || as_fn_error "could not create $ac_file" "$LINENO" 5
ea54b293
TT
27736 fi
27737 else
5213506e
RW
27738 $as_echo "/* $configure_input */" \
27739 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27740 || as_fn_error "could not create -" "$LINENO" 5
ea54b293 27741 fi
5213506e
RW
27742# Compute "$ac_file"'s index in $config_headers.
27743_am_arg="$ac_file"
ea54b293
TT
27744_am_stamp_count=1
27745for _am_header in $config_headers :; do
27746 case $_am_header in
5213506e 27747 $_am_arg | $_am_arg:* )
ea54b293
TT
27748 break ;;
27749 * )
27750 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27751 esac
27752done
5213506e
RW
27753echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27754$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27755 X"$_am_arg" : 'X\(//\)[^/]' \| \
27756 X"$_am_arg" : 'X\(//\)$' \| \
27757 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27758$as_echo X"$_am_arg" |
27759 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27760 s//\1/
27761 q
27762 }
27763 /^X\(\/\/\)[^/].*/{
27764 s//\1/
27765 q
27766 }
27767 /^X\(\/\/\)$/{
27768 s//\1/
27769 q
27770 }
27771 /^X\(\/\).*/{
27772 s//\1/
27773 q
27774 }
27775 s/.*/./; q'`/stamp-h$_am_stamp_count
27776 ;;
27777 :L)
27778 #
27779 # CONFIG_LINK
27780 #
8c0633b7 27781
5213506e
RW
27782 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
27783 :
8c0633b7 27784 else
5213506e
RW
27785 # Prefer the file from the source tree if names are identical.
27786 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
27787 ac_source=$srcdir/$ac_source
27788 fi
8c0633b7 27789
5213506e
RW
27790 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
27791$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
8c0633b7 27792
5213506e
RW
27793 if test ! -r "$ac_source"; then
27794 as_fn_error "$ac_source: file not found" "$LINENO" 5
27795 fi
27796 rm -f "$ac_file"
ea54b293 27797
5213506e
RW
27798 # Try a relative symlink, then a hard link, then a copy.
27799 case $srcdir in
27800 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
27801 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
27802 esac
27803 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
27804 ln "$ac_source" "$ac_file" 2>/dev/null ||
27805 cp -p "$ac_source" "$ac_file" ||
27806 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
27807 fi
27808 ;;
27809 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27810$as_echo "$as_me: executing $ac_file commands" >&6;}
27811 ;;
ea54b293 27812 esac
8c0633b7 27813
8c0633b7 27814
5213506e
RW
27815 case $ac_file$ac_mode in
27816 "default-1":C)
8a489465
JH
27817# Only add multilib support code if we just rebuilt the top-level
27818# Makefile.
27819case " $CONFIG_FILES " in
27820 *" Makefile "*)
27821 ac_file=Makefile . ${multi_basedir}/config-ml.in
27822 ;;
27823esac ;;
5213506e
RW
27824 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
27825 # Autoconf 2.62 quotes --file arguments for eval, but not when files
27826 # are listed without --file. Let's play safe and only enable the eval
27827 # if we detect the quoting.
27828 case $CONFIG_FILES in
27829 *\'*) eval set x "$CONFIG_FILES" ;;
27830 *) set x $CONFIG_FILES ;;
27831 esac
27832 shift
27833 for mf
27834 do
27835 # Strip MF so we end up with the name of the file.
27836 mf=`echo "$mf" | sed -e 's/:.*$//'`
27837 # Check whether this is an Automake generated Makefile or not.
27838 # We used to match only the files named `Makefile.in', but
27839 # some people rename them; so instead we look at the file content.
27840 # Grep'ing the first line is not enough: some people post-process
27841 # each Makefile.in and add a new line on top of each file to say so.
27842 # Grep'ing the whole file is not good either: AIX grep has a line
27843 # limit of 2048, but all sed's we know have understand at least 4000.
27844 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
27845 dirpart=`$as_dirname -- "$mf" ||
ea54b293
TT
27846$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27847 X"$mf" : 'X\(//\)[^/]' \| \
27848 X"$mf" : 'X\(//\)$' \| \
5213506e
RW
27849 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27850$as_echo X"$mf" |
27851 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27852 s//\1/
27853 q
27854 }
27855 /^X\(\/\/\)[^/].*/{
27856 s//\1/
27857 q
27858 }
27859 /^X\(\/\/\)$/{
27860 s//\1/
27861 q
27862 }
27863 /^X\(\/\).*/{
27864 s//\1/
27865 q
27866 }
27867 s/.*/./; q'`
27868 else
27869 continue
27870 fi
27871 # Extract the definition of DEPDIR, am__include, and am__quote
27872 # from the Makefile without running `make'.
27873 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27874 test -z "$DEPDIR" && continue
27875 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27876 test -z "am__include" && continue
27877 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27878 # When using ansi2knr, U may be empty or an underscore; expand it
27879 U=`sed -n 's/^U = //p' < "$mf"`
27880 # Find all dependency output files, they are included files with
27881 # $(DEPDIR) in their names. We invoke sed twice because it is the
27882 # simplest approach to changing $(DEPDIR) to its actual value in the
27883 # expansion.
27884 for file in `sed -n "
27885 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27886 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27887 # Make sure the directory exists.
27888 test -f "$dirpart/$file" && continue
27889 fdir=`$as_dirname -- "$file" ||
ea54b293
TT
27890$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27891 X"$file" : 'X\(//\)[^/]' \| \
27892 X"$file" : 'X\(//\)$' \| \
5213506e
RW
27893 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27894$as_echo X"$file" |
27895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27896 s//\1/
27897 q
27898 }
27899 /^X\(\/\/\)[^/].*/{
27900 s//\1/
27901 q
27902 }
27903 /^X\(\/\/\)$/{
27904 s//\1/
27905 q
27906 }
27907 /^X\(\/\).*/{
27908 s//\1/
27909 q
27910 }
27911 s/.*/./; q'`
27912 as_dir=$dirpart/$fdir; as_fn_mkdir_p
27913 # echo "creating $dirpart/$file"
27914 echo '# dummy' > "$dirpart/$file"
ea54b293 27915 done
ea54b293 27916 done
5213506e 27917}
86e44bd7 27918 ;;
5213506e 27919 "libtool":C)
86e44bd7
L
27920
27921 # See if we are running on zsh, and set the options which allow our
27922 # commands through without removal of \ escapes.
27923 if test -n "${ZSH_VERSION+set}" ; then
27924 setopt NO_GLOB_SUBST
27925 fi
27926
27927 cfgfile="${ofile}T"
27928 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27929 $RM "$cfgfile"
27930
27931 cat <<_LT_EOF >> "$cfgfile"
27932#! $SHELL
27933
27934# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
0da7a284 27935# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
86e44bd7
L
27936# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27937# NOTE: Changes made to this file will be lost: look at ltmain.sh.
27938#
0da7a284 27939# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
43e02a8a 27940# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
0da7a284 27941# Written by Gordon Matzigkeit, 1996
86e44bd7 27942#
0da7a284 27943# This file is part of GNU Libtool.
86e44bd7 27944#
0da7a284
PG
27945# GNU Libtool is free software; you can redistribute it and/or
27946# modify it under the terms of the GNU General Public License as
27947# published by the Free Software Foundation; either version 2 of
27948# the License, or (at your option) any later version.
86e44bd7 27949#
0da7a284
PG
27950# As a special exception to the GNU General Public License,
27951# if you distribute this file as part of a program or library that
27952# is built using GNU Libtool, you may include this file under the
27953# same distribution terms that you use for the rest of that program.
86e44bd7 27954#
0da7a284
PG
27955# GNU Libtool is distributed in the hope that it will be useful,
27956# but WITHOUT ANY WARRANTY; without even the implied warranty of
27957# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27958# GNU General Public License for more details.
86e44bd7 27959#
0da7a284
PG
27960# You should have received a copy of the GNU General Public License
27961# along with GNU Libtool; see the file COPYING. If not, a copy
27962# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
27963# obtained by writing to the Free Software Foundation, Inc.,
27964# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
86e44bd7
L
27965
27966
27967# The names of the tagged configurations supported by this script.
27968available_tags="CXX "
27969
27970# ### BEGIN LIBTOOL CONFIG
27971
27972# Whether or not to build static libraries.
27973build_old_libs=$enable_static
27974
27975# Which release of libtool.m4 was used?
27976macro_version=$macro_version
27977macro_revision=$macro_revision
27978
27979# Whether or not to build shared libraries.
27980build_libtool_libs=$enable_shared
27981
27982# What type of objects to build.
27983pic_mode=$pic_mode
27984
27985# Whether or not to optimize for fast installation.
27986fast_install=$enable_fast_install
27987
43e02a8a
RW
27988# Shell to use when invoking shell scripts.
27989SHELL=$lt_SHELL
27990
27991# An echo program that protects backslashes.
27992ECHO=$lt_ECHO
27993
86e44bd7
L
27994# The host system.
27995host_alias=$host_alias
27996host=$host
27997host_os=$host_os
27998
27999# The build system.
28000build_alias=$build_alias
28001build=$build
28002build_os=$build_os
28003
28004# A sed program that does not truncate output.
28005SED=$lt_SED
28006
28007# Sed that helps us avoid accidentally triggering echo(1) options like -n.
28008Xsed="\$SED -e 1s/^X//"
28009
28010# A grep program that handles long lines.
28011GREP=$lt_GREP
28012
28013# An ERE matcher.
28014EGREP=$lt_EGREP
28015
28016# A literal string matcher.
28017FGREP=$lt_FGREP
28018
28019# A BSD- or MS-compatible name lister.
28020NM=$lt_NM
28021
28022# Whether we need soft or hard links.
28023LN_S=$lt_LN_S
28024
28025# What is the maximum length of a command?
28026max_cmd_len=$max_cmd_len
28027
28028# Object file suffix (normally "o").
28029objext=$ac_objext
28030
28031# Executable file suffix (normally "").
28032exeext=$exeext
28033
28034# whether the shell understands "unset".
28035lt_unset=$lt_unset
28036
28037# turn spaces into newlines.
28038SP2NL=$lt_lt_SP2NL
28039
28040# turn newlines into spaces.
28041NL2SP=$lt_lt_NL2SP
28042
0da7a284
PG
28043# An object symbol dumper.
28044OBJDUMP=$lt_OBJDUMP
28045
86e44bd7
L
28046# Method to check whether dependent libraries are shared objects.
28047deplibs_check_method=$lt_deplibs_check_method
28048
28049# Command to use when deplibs_check_method == "file_magic".
28050file_magic_cmd=$lt_file_magic_cmd
28051
28052# The archiver.
28053AR=$lt_AR
28054AR_FLAGS=$lt_AR_FLAGS
28055
28056# A symbol stripping program.
28057STRIP=$lt_STRIP
28058
28059# Commands used to install an old-style archive.
28060RANLIB=$lt_RANLIB
28061old_postinstall_cmds=$lt_old_postinstall_cmds
28062old_postuninstall_cmds=$lt_old_postuninstall_cmds
28063
43e02a8a
RW
28064# Whether to use a lock for old archive extraction.
28065lock_old_archive_extraction=$lock_old_archive_extraction
28066
86e44bd7
L
28067# A C compiler.
28068LTCC=$lt_CC
28069
28070# LTCC compiler flags.
28071LTCFLAGS=$lt_CFLAGS
28072
28073# Take the output of nm and produce a listing of raw symbols and C names.
28074global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28075
28076# Transform the output of nm in a proper C declaration.
28077global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28078
28079# Transform the output of nm in a C name address pair.
28080global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28081
0da7a284
PG
28082# Transform the output of nm in a C name address pair when lib prefix is needed.
28083global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28084
86e44bd7
L
28085# The name of the directory that contains temporary libtool files.
28086objdir=$objdir
28087
86e44bd7
L
28088# Used to examine libraries when file_magic_cmd begins with "file".
28089MAGIC_CMD=$MAGIC_CMD
28090
28091# Must we lock files when doing compilation?
28092need_locks=$lt_need_locks
28093
0da7a284
PG
28094# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28095DSYMUTIL=$lt_DSYMUTIL
28096
28097# Tool to change global to local symbols on Mac OS X.
28098NMEDIT=$lt_NMEDIT
28099
28100# Tool to manipulate fat objects and archives on Mac OS X.
28101LIPO=$lt_LIPO
28102
28103# ldd/readelf like tool for Mach-O binaries on Mac OS X.
28104OTOOL=$lt_OTOOL
28105
28106# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28107OTOOL64=$lt_OTOOL64
28108
86e44bd7
L
28109# Old archive suffix (normally "a").
28110libext=$libext
28111
28112# Shared library suffix (normally ".so").
28113shrext_cmds=$lt_shrext_cmds
28114
28115# The commands to extract the exported symbol list from a shared archive.
28116extract_expsyms_cmds=$lt_extract_expsyms_cmds
28117
28118# Variables whose values should be saved in libtool wrapper scripts and
28119# restored at link time.
28120variables_saved_for_relink=$lt_variables_saved_for_relink
28121
28122# Do we need the "lib" prefix for modules?
28123need_lib_prefix=$need_lib_prefix
28124
28125# Do we need a version for libraries?
28126need_version=$need_version
28127
28128# Library versioning type.
28129version_type=$version_type
28130
28131# Shared library runtime path variable.
28132runpath_var=$runpath_var
28133
28134# Shared library path variable.
28135shlibpath_var=$shlibpath_var
28136
28137# Is shlibpath searched before the hard-coded library search path?
28138shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28139
28140# Format of library name prefix.
28141libname_spec=$lt_libname_spec
28142
28143# List of archive names. First name is the real one, the rest are links.
28144# The last name is the one that the linker finds with -lNAME
28145library_names_spec=$lt_library_names_spec
28146
28147# The coded name of the library, if different from the real name.
28148soname_spec=$lt_soname_spec
28149
43e02a8a
RW
28150# Permission mode override for installation of shared libraries.
28151install_override_mode=$lt_install_override_mode
28152
86e44bd7
L
28153# Command to use after installation of a shared archive.
28154postinstall_cmds=$lt_postinstall_cmds
28155
28156# Command to use after uninstallation of a shared archive.
28157postuninstall_cmds=$lt_postuninstall_cmds
28158
28159# Commands used to finish a libtool library installation in a directory.
28160finish_cmds=$lt_finish_cmds
28161
28162# As "finish_cmds", except a single script fragment to be evaled but
28163# not shown.
28164finish_eval=$lt_finish_eval
28165
28166# Whether we should hardcode library paths into libraries.
28167hardcode_into_libs=$hardcode_into_libs
28168
28169# Compile-time system search path for libraries.
28170sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28171
28172# Run-time system search path for libraries.
28173sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28174
28175# Whether dlopen is supported.
28176dlopen_support=$enable_dlopen
28177
28178# Whether dlopen of programs is supported.
28179dlopen_self=$enable_dlopen_self
28180
28181# Whether dlopen of statically linked programs is supported.
28182dlopen_self_static=$enable_dlopen_self_static
28183
28184# Commands to strip libraries.
28185old_striplib=$lt_old_striplib
28186striplib=$lt_striplib
28187
28188
28189# The linker used to build libraries.
28190LD=$lt_LD
28191
43e02a8a
RW
28192# How to create reloadable object files.
28193reload_flag=$lt_reload_flag
28194reload_cmds=$lt_reload_cmds
28195
86e44bd7
L
28196# Commands used to build an old-style archive.
28197old_archive_cmds=$lt_old_archive_cmds
28198
28199# A language specific compiler.
28200CC=$lt_compiler
28201
28202# Is the compiler the GNU compiler?
28203with_gcc=$GCC
28204
28205# Compiler flag to turn off builtin functions.
28206no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28207
28208# How to pass a linker flag through the compiler.
28209wl=$lt_lt_prog_compiler_wl
28210
28211# Additional compiler flags for building library objects.
28212pic_flag=$lt_lt_prog_compiler_pic
28213
28214# Compiler flag to prevent dynamic linking.
28215link_static_flag=$lt_lt_prog_compiler_static
28216
28217# Does compiler simultaneously support -c and -o options?
28218compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28219
28220# Whether or not to add -lc for building shared libraries.
28221build_libtool_need_lc=$archive_cmds_need_lc
28222
28223# Whether or not to disallow shared libs when runtime libs are static.
28224allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28225
28226# Compiler flag to allow reflexive dlopens.
28227export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28228
28229# Compiler flag to generate shared objects directly from archives.
28230whole_archive_flag_spec=$lt_whole_archive_flag_spec
28231
28232# Whether the compiler copes with passing no objects directly.
28233compiler_needs_object=$lt_compiler_needs_object
28234
28235# Create an old-style archive from a shared archive.
28236old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28237
28238# Create a temporary old-style archive to link instead of a shared archive.
28239old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28240
28241# Commands used to build a shared archive.
28242archive_cmds=$lt_archive_cmds
28243archive_expsym_cmds=$lt_archive_expsym_cmds
28244
28245# Commands used to build a loadable module if different from building
28246# a shared archive.
28247module_cmds=$lt_module_cmds
28248module_expsym_cmds=$lt_module_expsym_cmds
28249
28250# Whether we are building with GNU ld or not.
28251with_gnu_ld=$lt_with_gnu_ld
28252
28253# Flag that allows shared libraries with undefined symbols to be built.
28254allow_undefined_flag=$lt_allow_undefined_flag
28255
28256# Flag that enforces no undefined symbols.
28257no_undefined_flag=$lt_no_undefined_flag
28258
28259# Flag to hardcode \$libdir into a binary during linking.
28260# This must work even if \$libdir does not exist
28261hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28262
28263# If ld is used when linking, flag to hardcode \$libdir into a binary
28264# during linking. This must work even if \$libdir does not exist.
28265hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
28266
28267# Whether we need a single "-rpath" flag with a separated argument.
28268hardcode_libdir_separator=$lt_hardcode_libdir_separator
28269
28270# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28271# DIR into the resulting binary.
28272hardcode_direct=$hardcode_direct
28273
28274# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28275# DIR into the resulting binary and the resulting library dependency is
28276# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28277# library is relocated.
28278hardcode_direct_absolute=$hardcode_direct_absolute
28279
28280# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28281# into the resulting binary.
28282hardcode_minus_L=$hardcode_minus_L
28283
28284# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28285# into the resulting binary.
28286hardcode_shlibpath_var=$hardcode_shlibpath_var
28287
28288# Set to "yes" if building a shared library automatically hardcodes DIR
28289# into the library and all subsequent libraries and executables linked
28290# against it.
28291hardcode_automatic=$hardcode_automatic
28292
28293# Set to yes if linker adds runtime paths of dependent libraries
28294# to runtime path list.
28295inherit_rpath=$inherit_rpath
28296
28297# Whether libtool must link a program against all its dependency libraries.
28298link_all_deplibs=$link_all_deplibs
28299
28300# Fix the shell variable \$srcfile for the compiler.
28301fix_srcfile_path=$lt_fix_srcfile_path
28302
28303# Set to "yes" if exported symbols are required.
28304always_export_symbols=$always_export_symbols
28305
28306# The commands to list exported symbols.
28307export_symbols_cmds=$lt_export_symbols_cmds
28308
28309# Symbols that should not be listed in the preloaded symbols.
28310exclude_expsyms=$lt_exclude_expsyms
28311
28312# Symbols that must always be exported.
28313include_expsyms=$lt_include_expsyms
28314
28315# Commands necessary for linking programs (against libraries) with templates.
28316prelink_cmds=$lt_prelink_cmds
28317
28318# Specify filename containing input files.
28319file_list_spec=$lt_file_list_spec
28320
28321# How to hardcode a shared library path into an executable.
28322hardcode_action=$hardcode_action
28323
0da7a284
PG
28324# The directories searched by this compiler when creating a shared library.
28325compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28326
86e44bd7
L
28327# Dependencies to place before and after the objects being linked to
28328# create a shared library.
28329predep_objects=$lt_predep_objects
28330postdep_objects=$lt_postdep_objects
28331predeps=$lt_predeps
28332postdeps=$lt_postdeps
28333
28334# The library search path used internally by the compiler when linking
28335# a shared library.
28336compiler_lib_search_path=$lt_compiler_lib_search_path
28337
28338# ### END LIBTOOL CONFIG
28339
28340_LT_EOF
28341
28342 case $host_os in
28343 aix3*)
28344 cat <<\_LT_EOF >> "$cfgfile"
28345# AIX sometimes has problems with the GCC collect2 program. For some
28346# reason, if we set the COLLECT_NAMES environment variable, the problems
28347# vanish in a puff of smoke.
28348if test "X${COLLECT_NAMES+set}" != Xset; then
28349 COLLECT_NAMES=
28350 export COLLECT_NAMES
28351fi
28352_LT_EOF
28353 ;;
28354 esac
28355
28356
28357ltmain="$ac_aux_dir/ltmain.sh"
28358
28359
28360 # We use sed instead of cat because bash on DJGPP gets confused if
28361 # if finds mixed CR/LF and LF-only lines. Since sed operates in
28362 # text mode, it properly converts lines to CR/LF. This bash problem
28363 # is reportedly fixed, but why not run on old versions too?
28364 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
28365 || (rm -f "$cfgfile"; exit 1)
28366
28367 case $xsi_shell in
28368 yes)
28369 cat << \_LT_EOF >> "$cfgfile"
0da7a284 28370
86e44bd7
L
28371# func_dirname file append nondir_replacement
28372# Compute the dirname of FILE. If nonempty, add APPEND to the result,
28373# otherwise set result to NONDIR_REPLACEMENT.
28374func_dirname ()
28375{
28376 case ${1} in
28377 */*) func_dirname_result="${1%/*}${2}" ;;
28378 * ) func_dirname_result="${3}" ;;
28379 esac
28380}
28381
28382# func_basename file
28383func_basename ()
28384{
28385 func_basename_result="${1##*/}"
28386}
28387
0da7a284
PG
28388# func_dirname_and_basename file append nondir_replacement
28389# perform func_basename and func_dirname in a single function
28390# call:
28391# dirname: Compute the dirname of FILE. If nonempty,
28392# add APPEND to the result, otherwise set result
28393# to NONDIR_REPLACEMENT.
28394# value returned in "$func_dirname_result"
28395# basename: Compute filename of FILE.
28396# value retuned in "$func_basename_result"
28397# Implementation must be kept synchronized with func_dirname
28398# and func_basename. For efficiency, we do not delegate to
28399# those functions but instead duplicate the functionality here.
28400func_dirname_and_basename ()
28401{
28402 case ${1} in
28403 */*) func_dirname_result="${1%/*}${2}" ;;
28404 * ) func_dirname_result="${3}" ;;
28405 esac
28406 func_basename_result="${1##*/}"
28407}
28408
86e44bd7
L
28409# func_stripname prefix suffix name
28410# strip PREFIX and SUFFIX off of NAME.
28411# PREFIX and SUFFIX must not contain globbing or regex special
28412# characters, hashes, percent signs, but SUFFIX may contain a leading
28413# dot (in which case that matches only a dot).
28414func_stripname ()
28415{
28416 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
28417 # positional parameters, so assign one to ordinary parameter first.
28418 func_stripname_result=${3}
28419 func_stripname_result=${func_stripname_result#"${1}"}
28420 func_stripname_result=${func_stripname_result%"${2}"}
28421}
28422
28423# func_opt_split
28424func_opt_split ()
28425{
28426 func_opt_split_opt=${1%%=*}
28427 func_opt_split_arg=${1#*=}
28428}
28429
28430# func_lo2o object
28431func_lo2o ()
28432{
28433 case ${1} in
28434 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
28435 *) func_lo2o_result=${1} ;;
28436 esac
28437}
0da7a284
PG
28438
28439# func_xform libobj-or-source
28440func_xform ()
28441{
28442 func_xform_result=${1%.*}.lo
28443}
28444
28445# func_arith arithmetic-term...
28446func_arith ()
28447{
28448 func_arith_result=$(( $* ))
28449}
28450
28451# func_len string
28452# STRING may not start with a hyphen.
28453func_len ()
28454{
28455 func_len_result=${#1}
28456}
28457
86e44bd7
L
28458_LT_EOF
28459 ;;
28460 *) # Bourne compatible functions.
28461 cat << \_LT_EOF >> "$cfgfile"
0da7a284 28462
86e44bd7
L
28463# func_dirname file append nondir_replacement
28464# Compute the dirname of FILE. If nonempty, add APPEND to the result,
28465# otherwise set result to NONDIR_REPLACEMENT.
28466func_dirname ()
28467{
28468 # Extract subdirectory from the argument.
43e02a8a 28469 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
86e44bd7
L
28470 if test "X$func_dirname_result" = "X${1}"; then
28471 func_dirname_result="${3}"
28472 else
28473 func_dirname_result="$func_dirname_result${2}"
28474 fi
28475}
28476
28477# func_basename file
28478func_basename ()
28479{
43e02a8a 28480 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
86e44bd7
L
28481}
28482
0da7a284 28483
86e44bd7
L
28484# func_stripname prefix suffix name
28485# strip PREFIX and SUFFIX off of NAME.
28486# PREFIX and SUFFIX must not contain globbing or regex special
28487# characters, hashes, percent signs, but SUFFIX may contain a leading
28488# dot (in which case that matches only a dot).
28489# func_strip_suffix prefix name
28490func_stripname ()
28491{
28492 case ${2} in
43e02a8a
RW
28493 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
28494 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
86e44bd7
L
28495 esac
28496}
28497
28498# sed scripts:
28499my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
28500my_sed_long_arg='1s/^-[^=]*=//'
28501
28502# func_opt_split
28503func_opt_split ()
28504{
43e02a8a
RW
28505 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
28506 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
86e44bd7
L
28507}
28508
28509# func_lo2o object
28510func_lo2o ()
28511{
43e02a8a 28512 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
86e44bd7 28513}
0da7a284
PG
28514
28515# func_xform libobj-or-source
28516func_xform ()
28517{
43e02a8a 28518 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
0da7a284
PG
28519}
28520
28521# func_arith arithmetic-term...
28522func_arith ()
28523{
28524 func_arith_result=`expr "$@"`
28525}
28526
28527# func_len string
28528# STRING may not start with a hyphen.
28529func_len ()
28530{
28531 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
28532}
28533
86e44bd7
L
28534_LT_EOF
28535esac
28536
28537case $lt_shell_append in
28538 yes)
28539 cat << \_LT_EOF >> "$cfgfile"
28540
28541# func_append var value
28542# Append VALUE to the end of shell variable VAR.
28543func_append ()
28544{
28545 eval "$1+=\$2"
28546}
28547_LT_EOF
28548 ;;
28549 *)
28550 cat << \_LT_EOF >> "$cfgfile"
28551
28552# func_append var value
28553# Append VALUE to the end of shell variable VAR.
28554func_append ()
28555{
28556 eval "$1=\$$1\$2"
28557}
0da7a284 28558
86e44bd7
L
28559_LT_EOF
28560 ;;
28561 esac
28562
28563
28564 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
28565 || (rm -f "$cfgfile"; exit 1)
28566
28567 mv -f "$cfgfile" "$ofile" ||
28568 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28569 chmod +x "$ofile"
28570
28571
28572 cat <<_LT_EOF >> "$ofile"
28573
28574# ### BEGIN LIBTOOL TAG CONFIG: CXX
28575
28576# The linker used to build libraries.
28577LD=$lt_LD_CXX
28578
43e02a8a
RW
28579# How to create reloadable object files.
28580reload_flag=$lt_reload_flag_CXX
28581reload_cmds=$lt_reload_cmds_CXX
28582
86e44bd7
L
28583# Commands used to build an old-style archive.
28584old_archive_cmds=$lt_old_archive_cmds_CXX
28585
28586# A language specific compiler.
28587CC=$lt_compiler_CXX
28588
28589# Is the compiler the GNU compiler?
28590with_gcc=$GCC_CXX
28591
28592# Compiler flag to turn off builtin functions.
28593no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
28594
28595# How to pass a linker flag through the compiler.
28596wl=$lt_lt_prog_compiler_wl_CXX
28597
28598# Additional compiler flags for building library objects.
28599pic_flag=$lt_lt_prog_compiler_pic_CXX
28600
28601# Compiler flag to prevent dynamic linking.
28602link_static_flag=$lt_lt_prog_compiler_static_CXX
28603
28604# Does compiler simultaneously support -c and -o options?
28605compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
28606
28607# Whether or not to add -lc for building shared libraries.
28608build_libtool_need_lc=$archive_cmds_need_lc_CXX
28609
28610# Whether or not to disallow shared libs when runtime libs are static.
28611allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
28612
28613# Compiler flag to allow reflexive dlopens.
28614export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
28615
28616# Compiler flag to generate shared objects directly from archives.
28617whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
28618
28619# Whether the compiler copes with passing no objects directly.
28620compiler_needs_object=$lt_compiler_needs_object_CXX
28621
28622# Create an old-style archive from a shared archive.
28623old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
28624
28625# Create a temporary old-style archive to link instead of a shared archive.
28626old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
28627
28628# Commands used to build a shared archive.
28629archive_cmds=$lt_archive_cmds_CXX
28630archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
28631
28632# Commands used to build a loadable module if different from building
28633# a shared archive.
28634module_cmds=$lt_module_cmds_CXX
28635module_expsym_cmds=$lt_module_expsym_cmds_CXX
28636
28637# Whether we are building with GNU ld or not.
28638with_gnu_ld=$lt_with_gnu_ld_CXX
28639
28640# Flag that allows shared libraries with undefined symbols to be built.
28641allow_undefined_flag=$lt_allow_undefined_flag_CXX
28642
28643# Flag that enforces no undefined symbols.
28644no_undefined_flag=$lt_no_undefined_flag_CXX
28645
28646# Flag to hardcode \$libdir into a binary during linking.
28647# This must work even if \$libdir does not exist
28648hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
28649
28650# If ld is used when linking, flag to hardcode \$libdir into a binary
28651# during linking. This must work even if \$libdir does not exist.
28652hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
28653
28654# Whether we need a single "-rpath" flag with a separated argument.
28655hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
28656
28657# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28658# DIR into the resulting binary.
28659hardcode_direct=$hardcode_direct_CXX
28660
28661# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28662# DIR into the resulting binary and the resulting library dependency is
28663# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28664# library is relocated.
28665hardcode_direct_absolute=$hardcode_direct_absolute_CXX
28666
28667# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28668# into the resulting binary.
28669hardcode_minus_L=$hardcode_minus_L_CXX
28670
28671# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28672# into the resulting binary.
28673hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
28674
28675# Set to "yes" if building a shared library automatically hardcodes DIR
28676# into the library and all subsequent libraries and executables linked
28677# against it.
28678hardcode_automatic=$hardcode_automatic_CXX
28679
28680# Set to yes if linker adds runtime paths of dependent libraries
28681# to runtime path list.
28682inherit_rpath=$inherit_rpath_CXX
28683
28684# Whether libtool must link a program against all its dependency libraries.
28685link_all_deplibs=$link_all_deplibs_CXX
28686
28687# Fix the shell variable \$srcfile for the compiler.
28688fix_srcfile_path=$lt_fix_srcfile_path_CXX
28689
28690# Set to "yes" if exported symbols are required.
28691always_export_symbols=$always_export_symbols_CXX
28692
28693# The commands to list exported symbols.
28694export_symbols_cmds=$lt_export_symbols_cmds_CXX
28695
28696# Symbols that should not be listed in the preloaded symbols.
28697exclude_expsyms=$lt_exclude_expsyms_CXX
28698
28699# Symbols that must always be exported.
28700include_expsyms=$lt_include_expsyms_CXX
28701
28702# Commands necessary for linking programs (against libraries) with templates.
28703prelink_cmds=$lt_prelink_cmds_CXX
28704
28705# Specify filename containing input files.
28706file_list_spec=$lt_file_list_spec_CXX
28707
28708# How to hardcode a shared library path into an executable.
28709hardcode_action=$hardcode_action_CXX
28710
0da7a284
PG
28711# The directories searched by this compiler when creating a shared library.
28712compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
28713
86e44bd7
L
28714# Dependencies to place before and after the objects being linked to
28715# create a shared library.
28716predep_objects=$lt_predep_objects_CXX
28717postdep_objects=$lt_postdep_objects_CXX
28718predeps=$lt_predeps_CXX
28719postdeps=$lt_postdeps_CXX
28720
28721# The library search path used internally by the compiler when linking
28722# a shared library.
28723compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
28724
28725# ### END LIBTOOL TAG CONFIG: CXX
28726_LT_EOF
28727
21276379 28728 ;;
5213506e
RW
28729 "mkcollections.pl":C) chmod 755 lib/mkcollections.pl ;;
28730 "$ac_stdint_h":C)
28731{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
28732$as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
21276379
MW
28733ac_stdint=$tmp/_stdint.h
28734
28735echo "#ifndef" $_ac_stdint_h >$ac_stdint
28736echo "#define" $_ac_stdint_h "1" >>$ac_stdint
28737echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
28738echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
28739echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
28740if test "_$ac_cv_header_stdint_t" != "_" ; then
28741echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
28742echo "#include <stdint.h>" >>$ac_stdint
28743echo "#endif" >>$ac_stdint
28744echo "#endif" >>$ac_stdint
28745else
28746
28747cat >>$ac_stdint <<STDINT_EOF
28748
28749/* ................... shortcircuit part ........................... */
28750
28751#if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
28752#include <stdint.h>
28753#else
28754#include <stddef.h>
28755
28756/* .................... configured part ............................ */
28757
28758STDINT_EOF
28759
28760echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
28761if test "_$ac_cv_header_stdint_x" != "_" ; then
28762 ac_header="$ac_cv_header_stdint_x"
28763 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
28764else
28765 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
28766fi
28767
28768echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
28769if test "_$ac_cv_header_stdint_o" != "_" ; then
28770 ac_header="$ac_cv_header_stdint_o"
28771 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
28772else
28773 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
28774fi
28775
28776echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
28777if test "_$ac_cv_header_stdint_u" != "_" ; then
28778 ac_header="$ac_cv_header_stdint_u"
28779 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
28780else
28781 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
28782fi
28783
28784echo "" >>$ac_stdint
28785
28786if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
28787 echo "#include <$ac_header>" >>$ac_stdint
28788 echo "" >>$ac_stdint
28789fi fi
28790
28791echo "/* which 64bit typedef has been found */" >>$ac_stdint
28792if test "$ac_cv_type_uint64_t" = "yes" ; then
28793echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint
28794else
28795echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
28796fi
28797if test "$ac_cv_type_u_int64_t" = "yes" ; then
28798echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint
28799else
28800echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
28801fi
28802echo "" >>$ac_stdint
28803
28804echo "/* which type model has been detected */" >>$ac_stdint
28805if test "_$ac_cv_char_data_model" != "_" ; then
28806echo "#define _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
28807echo "#define _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
28808else
28809echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
28810echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
28811fi
28812echo "" >>$ac_stdint
28813
28814echo "/* whether int_least types were detected */" >>$ac_stdint
28815if test "$ac_cv_type_int_least32_t" = "yes"; then
28816echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint
28817else
28818echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
28819fi
28820echo "/* whether int_fast types were detected */" >>$ac_stdint
28821if test "$ac_cv_type_int_fast32_t" = "yes"; then
28822echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
28823else
28824echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
28825fi
28826echo "/* whether intmax_t type was detected */" >>$ac_stdint
28827if test "$ac_cv_type_intmax_t" = "yes"; then
28828echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
28829else
28830echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
28831fi
28832echo "" >>$ac_stdint
28833
28834 cat >>$ac_stdint <<STDINT_EOF
28835/* .................... detections part ............................ */
28836
28837/* whether we need to define bitspecific types from compiler base types */
28838#ifndef _STDINT_HEADER_INTPTR
28839#ifndef _STDINT_HEADER_UINT32
28840#ifndef _STDINT_HEADER_U_INT32
28841#define _STDINT_NEED_INT_MODEL_T
28842#else
28843#define _STDINT_HAVE_U_INT_TYPES
28844#endif
28845#endif
28846#endif
28847
28848#ifdef _STDINT_HAVE_U_INT_TYPES
28849#undef _STDINT_NEED_INT_MODEL_T
28850#endif
28851
28852#ifdef _STDINT_CHAR_MODEL
28853#if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
28854#ifndef _STDINT_BYTE_MODEL
28855#define _STDINT_BYTE_MODEL 12
28856#endif
28857#endif
28858#endif
28859
28860#ifndef _STDINT_HAVE_INT_LEAST32_T
28861#define _STDINT_NEED_INT_LEAST_T
28862#endif
28863
28864#ifndef _STDINT_HAVE_INT_FAST32_T
28865#define _STDINT_NEED_INT_FAST_T
28866#endif
28867
28868#ifndef _STDINT_HEADER_INTPTR
28869#define _STDINT_NEED_INTPTR_T
28870#ifndef _STDINT_HAVE_INTMAX_T
28871#define _STDINT_NEED_INTMAX_T
28872#endif
28873#endif
28874
28875
28876/* .................... definition part ............................ */
28877
28878/* some system headers have good uint64_t */
28879#ifndef _HAVE_UINT64_T
28880#if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T
28881#define _HAVE_UINT64_T
28882#elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
28883#define _HAVE_UINT64_T
28884typedef u_int64_t uint64_t;
28885#endif
28886#endif
28887
28888#ifndef _HAVE_UINT64_T
28889/* .. here are some common heuristics using compiler runtime specifics */
28890#if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
28891#define _HAVE_UINT64_T
28892#define _HAVE_LONGLONG_UINT64_T
28893typedef long long int64_t;
28894typedef unsigned long long uint64_t;
28895
28896#elif !defined __STRICT_ANSI__
28897#if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
28898#define _HAVE_UINT64_T
28899typedef __int64 int64_t;
28900typedef unsigned __int64 uint64_t;
28901
28902#elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
28903/* note: all ELF-systems seem to have loff-support which needs 64-bit */
28904#if !defined _NO_LONGLONG
28905#define _HAVE_UINT64_T
28906#define _HAVE_LONGLONG_UINT64_T
28907typedef long long int64_t;
28908typedef unsigned long long uint64_t;
28909#endif
28910
28911#elif defined __alpha || (defined __mips && defined _ABIN32)
28912#if !defined _NO_LONGLONG
28913typedef long int64_t;
28914typedef unsigned long uint64_t;
28915#endif
28916 /* compiler/cpu type to define int64_t */
28917#endif
28918#endif
28919#endif
28920
28921#if defined _STDINT_HAVE_U_INT_TYPES
28922/* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
28923typedef u_int8_t uint8_t;
28924typedef u_int16_t uint16_t;
28925typedef u_int32_t uint32_t;
28926
28927/* glibc compatibility */
28928#ifndef __int8_t_defined
28929#define __int8_t_defined
28930#endif
28931#endif
28932
28933#ifdef _STDINT_NEED_INT_MODEL_T
28934/* we must guess all the basic types. Apart from byte-adressable system, */
28935/* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
28936/* (btw, those nibble-addressable systems are way off, or so we assume) */
28937
28938
28939#if defined _STDINT_BYTE_MODEL
28940#if _STDINT_LONG_MODEL+0 == 242
28941/* 2:4:2 = IP16 = a normal 16-bit system */
28942typedef unsigned char uint8_t;
28943typedef unsigned short uint16_t;
28944typedef unsigned long uint32_t;
28945#ifndef __int8_t_defined
28946#define __int8_t_defined
28947typedef char int8_t;
28948typedef short int16_t;
28949typedef long int32_t;
28950#endif
28951#elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
28952/* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */
28953/* 4:4:4 = ILP32 = a normal 32-bit system */
28954typedef unsigned char uint8_t;
28955typedef unsigned short uint16_t;
28956typedef unsigned int uint32_t;
28957#ifndef __int8_t_defined
28958#define __int8_t_defined
28959typedef char int8_t;
28960typedef short int16_t;
28961typedef int int32_t;
28962#endif
28963#elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
28964/* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */
28965/* 4:8:8 = LP64 = a normal 64-bit system */
28966typedef unsigned char uint8_t;
28967typedef unsigned short uint16_t;
28968typedef unsigned int uint32_t;
28969#ifndef __int8_t_defined
28970#define __int8_t_defined
28971typedef char int8_t;
28972typedef short int16_t;
28973typedef int int32_t;
28974#endif
28975/* this system has a "long" of 64bit */
28976#ifndef _HAVE_UINT64_T
28977#define _HAVE_UINT64_T
28978typedef unsigned long uint64_t;
28979typedef long int64_t;
28980#endif
28981#elif _STDINT_LONG_MODEL+0 == 448
28982/* LLP64 a 64-bit system derived from a 32-bit system */
28983typedef unsigned char uint8_t;
28984typedef unsigned short uint16_t;
28985typedef unsigned int uint32_t;
28986#ifndef __int8_t_defined
28987#define __int8_t_defined
28988typedef char int8_t;
28989typedef short int16_t;
28990typedef int int32_t;
28991#endif
28992/* assuming the system has a "long long" */
28993#ifndef _HAVE_UINT64_T
28994#define _HAVE_UINT64_T
28995#define _HAVE_LONGLONG_UINT64_T
28996typedef unsigned long long uint64_t;
28997typedef long long int64_t;
28998#endif
28999#else
29000#define _STDINT_NO_INT32_T
29001#endif
29002#else
29003#define _STDINT_NO_INT8_T
29004#define _STDINT_NO_INT32_T
29005#endif
29006#endif
29007
29008/*
29009 * quote from SunOS-5.8 sys/inttypes.h:
29010 * Use at your own risk. As of February 1996, the committee is squarely
29011 * behind the fixed sized types; the "least" and "fast" types are still being
29012 * discussed. The probability that the "fast" types may be removed before
29013 * the standard is finalized is high enough that they are not currently
29014 * implemented.
29015 */
29016
29017#if defined _STDINT_NEED_INT_LEAST_T
29018typedef int8_t int_least8_t;
29019typedef int16_t int_least16_t;
29020typedef int32_t int_least32_t;
29021#ifdef _HAVE_UINT64_T
29022typedef int64_t int_least64_t;
29023#endif
29024
29025typedef uint8_t uint_least8_t;
29026typedef uint16_t uint_least16_t;
29027typedef uint32_t uint_least32_t;
29028#ifdef _HAVE_UINT64_T
29029typedef uint64_t uint_least64_t;
29030#endif
29031 /* least types */
29032#endif
29033
29034#if defined _STDINT_NEED_INT_FAST_T
29035typedef int8_t int_fast8_t;
29036typedef int int_fast16_t;
29037typedef int32_t int_fast32_t;
29038#ifdef _HAVE_UINT64_T
29039typedef int64_t int_fast64_t;
29040#endif
29041
29042typedef uint8_t uint_fast8_t;
29043typedef unsigned uint_fast16_t;
29044typedef uint32_t uint_fast32_t;
29045#ifdef _HAVE_UINT64_T
29046typedef uint64_t uint_fast64_t;
29047#endif
29048 /* fast types */
29049#endif
29050
29051#ifdef _STDINT_NEED_INTMAX_T
29052#ifdef _HAVE_UINT64_T
29053typedef int64_t intmax_t;
29054typedef uint64_t uintmax_t;
29055#else
29056typedef long intmax_t;
29057typedef unsigned long uintmax_t;
29058#endif
29059#endif
29060
29061#ifdef _STDINT_NEED_INTPTR_T
29062#ifndef __intptr_t_defined
29063#define __intptr_t_defined
29064/* we encourage using "long" to store pointer values, never use "int" ! */
29065#if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
29066typedef unsigned int uintptr_t;
29067typedef int intptr_t;
29068#elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
29069typedef unsigned long uintptr_t;
29070typedef long intptr_t;
29071#elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
29072typedef uint64_t uintptr_t;
29073typedef int64_t intptr_t;
29074#else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
29075typedef unsigned long uintptr_t;
29076typedef long intptr_t;
29077#endif
29078#endif
29079#endif
29080
29081/* The ISO C99 standard specifies that in C++ implementations these
29082 should only be defined if explicitly requested. */
29083#if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
29084#ifndef UINT32_C
29085
29086/* Signed. */
29087# define INT8_C(c) c
29088# define INT16_C(c) c
29089# define INT32_C(c) c
29090# ifdef _HAVE_LONGLONG_UINT64_T
29091# define INT64_C(c) c ## L
29092# else
29093# define INT64_C(c) c ## LL
29094# endif
29095
29096/* Unsigned. */
29097# define UINT8_C(c) c ## U
29098# define UINT16_C(c) c ## U
29099# define UINT32_C(c) c ## U
29100# ifdef _HAVE_LONGLONG_UINT64_T
29101# define UINT64_C(c) c ## UL
29102# else
29103# define UINT64_C(c) c ## ULL
29104# endif
29105
29106/* Maximal type. */
29107# ifdef _HAVE_LONGLONG_UINT64_T
29108# define INTMAX_C(c) c ## L
29109# define UINTMAX_C(c) c ## UL
29110# else
29111# define INTMAX_C(c) c ## LL
29112# define UINTMAX_C(c) c ## ULL
29113# endif
29114
29115 /* literalnumbers */
29116#endif
29117#endif
29118
29119/* These limits are merily those of a two complement byte-oriented system */
29120
29121/* Minimum of signed integral types. */
dbca09c2 29122#ifndef INT8_MIN
21276379 29123# define INT8_MIN (-128)
dbca09c2
AT
29124#endif
29125#ifndef INT16_MIN
21276379 29126# define INT16_MIN (-32767-1)
dbca09c2
AT
29127#endif
29128#ifndef INT32_MIN
21276379 29129# define INT32_MIN (-2147483647-1)
dbca09c2
AT
29130#endif
29131#ifndef INT64_MIN
21276379 29132# define INT64_MIN (-__INT64_C(9223372036854775807)-1)
dbca09c2
AT
29133#endif
29134
21276379 29135/* Maximum of signed integral types. */
dbca09c2 29136#ifndef INT8_MAX
21276379 29137# define INT8_MAX (127)
dbca09c2
AT
29138#endif
29139#ifndef INT16_MAX
21276379 29140# define INT16_MAX (32767)
dbca09c2
AT
29141#endif
29142#ifndef INT32_MAX
21276379 29143# define INT32_MAX (2147483647)
dbca09c2
AT
29144#endif
29145#ifndef INT64_MAX
21276379 29146# define INT64_MAX (__INT64_C(9223372036854775807))
dbca09c2 29147#endif
21276379
MW
29148
29149/* Maximum of unsigned integral types. */
dbca09c2 29150#ifndef UINT8_MAX
21276379 29151# define UINT8_MAX (255)
dbca09c2
AT
29152#endif
29153#ifndef UINT16_MAX
21276379 29154# define UINT16_MAX (65535)
dbca09c2
AT
29155#endif
29156#ifndef UINT32_MAX
21276379 29157# define UINT32_MAX (4294967295U)
dbca09c2
AT
29158#endif
29159#ifndef UINT64_MAX
21276379 29160# define UINT64_MAX (__UINT64_C(18446744073709551615))
dbca09c2 29161#endif
21276379
MW
29162
29163/* Minimum of signed integral types having a minimum size. */
29164# define INT_LEAST8_MIN INT8_MIN
29165# define INT_LEAST16_MIN INT16_MIN
29166# define INT_LEAST32_MIN INT32_MIN
29167# define INT_LEAST64_MIN INT64_MIN
29168/* Maximum of signed integral types having a minimum size. */
29169# define INT_LEAST8_MAX INT8_MAX
29170# define INT_LEAST16_MAX INT16_MAX
29171# define INT_LEAST32_MAX INT32_MAX
29172# define INT_LEAST64_MAX INT64_MAX
29173
29174/* Maximum of unsigned integral types having a minimum size. */
29175# define UINT_LEAST8_MAX UINT8_MAX
29176# define UINT_LEAST16_MAX UINT16_MAX
29177# define UINT_LEAST32_MAX UINT32_MAX
29178# define UINT_LEAST64_MAX UINT64_MAX
29179
29180 /* shortcircuit*/
29181#endif
29182 /* once */
29183#endif
29184#endif
29185STDINT_EOF
29186fi
29187 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
5213506e
RW
29188 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
29189$as_echo "$as_me: $ac_stdint_h is unchanged" >&6;}
21276379 29190 else
5213506e 29191 ac_dir=`$as_dirname -- "$ac_stdint_h" ||
21276379
MW
29192$as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29193 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
29194 X"$ac_stdint_h" : 'X\(//\)$' \| \
5213506e
RW
29195 X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
29196$as_echo X"$ac_stdint_h" |
29197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29198 s//\1/
29199 q
29200 }
29201 /^X\(\/\/\)[^/].*/{
29202 s//\1/
29203 q
29204 }
29205 /^X\(\/\/\)$/{
29206 s//\1/
29207 q
29208 }
29209 /^X\(\/\).*/{
29210 s//\1/
29211 q
29212 }
29213 s/.*/./; q'`
29214 as_dir="$ac_dir"; as_fn_mkdir_p
21276379
MW
29215 rm -f $ac_stdint_h
29216 mv $ac_stdint $ac_stdint_h
29217 fi
ea54b293 29218 ;;
5213506e
RW
29219 "gappletviewer":C) chmod 755 tools/gappletviewer ;;
29220 "gjarsigner":C) chmod 755 tools/gjarsigner ;;
29221 "gkeytool":C) chmod 755 tools/gkeytool ;;
29222 "gjar":C) chmod 755 tools/gjar ;;
29223 "gnative2ascii":C) chmod 755 tools/gnative2ascii ;;
29224 "gserialver":C) chmod 755 tools/gserialver ;;
29225 "grmiregistry":C) chmod 755 tools/grmiregistry ;;
29226 "gtnameserv":C) chmod 755 tools/gtnameserv ;;
29227 "gorbd":C) chmod 755 tools/gorbd ;;
29228 "grmid":C) chmod 755 tools/grmid ;;
29229 "grmic":C) chmod 755 tools/grmic ;;
29230 "gjavah":C) chmod 755 tools/gjavah ;;
29231 "gjdoc":C) chmod 755 tools/gjdoc ;;
29232 "gen-classlist":C) chmod 755 lib/gen-classlist.sh ;;
29233 "copy-vmresources":C) chmod 755 lib/copy-vmresources.sh ;;
29234
ea54b293 29235 esac
5213506e 29236done # for ac_tag
ea54b293 29237
ea54b293 29238
5213506e 29239as_fn_exit 0
ea54b293 29240_ACEOF
ea54b293
TT
29241ac_clean_files=$ac_clean_files_save
29242
5213506e
RW
29243test $ac_write_fail = 0 ||
29244 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29245
ea54b293
TT
29246
29247# configure is writing to config.log, and then calls config.status.
29248# config.status does its own redirection, appending to config.log.
29249# Unfortunately, on DOS this fails, as config.log is still kept open
29250# by configure, so config.status won't be able to write to it; its
29251# output is simply discarded. So we exec the FD to /dev/null,
29252# effectively closing config.log, so it can be properly (re)opened and
29253# appended to by config.status. When coming back to configure, we
29254# need to make the FD available again.
29255if test "$no_create" != yes; then
29256 ac_cs_success=:
29257 ac_config_status_args=
29258 test "$silent" = yes &&
29259 ac_config_status_args="$ac_config_status_args --quiet"
29260 exec 5>/dev/null
29261 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29262 exec 5>>config.log
29263 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29264 # would make configure fail if this is the last instruction.
5213506e
RW
29265 $ac_cs_success || as_fn_exit $?
29266fi
29267if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29269$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
ea54b293
TT
29270fi
29271
ac1ed908
MW
29272
29273# Create standard.omit based on decisions we just made.
29274cat ${srcdir}/lib/standard.omit.in > lib/standard.omit
29275if test x$use_escher != xtrue; then
29276 echo gnu/java/awt/peer/x/.*java$ >> lib/standard.omit
29277fi
729530c0
AJH
29278
29279if test "x${COMPILE_PLUGIN}" = "xyes" ; then
29280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have enabled the browser plugin. Please note that this is no longer maintained as part of GNU Classpath; development has moved to the IcedTea project." >&5
29281$as_echo "$as_me: WARNING: You have enabled the browser plugin. Please note that this is no longer maintained as part of GNU Classpath; development has moved to the IcedTea project." >&2;}
29282fi