]> git.saurik.com Git - cycript.git/blame - configure
Automatically generate FFI bridges using libclang.
[cycript.git] / configure
CommitLineData
c7aa54aa
DWT
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
53ba6704 3# Generated by GNU Autoconf 2.69 for Cycript 0.9.
c7aa54aa
DWT
4#
5# Report bugs to <saurik@saurik.com>.
6#
9c60689e 7#
53ba6704 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9c60689e 9#
c7aa54aa
DWT
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
66170b30 13#
c1d3e52e 14# Copyright (C) 2009-2015 Jay Freeman (saurik)
c7aa54aa
DWT
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
ee134472 94as_myself=
c7aa54aa
DWT
95case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104IFS=$as_save_IFS
105
106 ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111 as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there. '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
53ba6704
JF
139# Use a proper internal environment variable to ensure we don't fall
140 # into an infinite loop, continuously re-executing ourselves.
141 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
142 _as_can_reexec=no; export _as_can_reexec;
143 # We cannot yet assume a decent shell, so we have to provide a
144# neutralization value for shells without unset; and this also
145# works around shells that cannot unset nonexistent variables.
146# Preserve -v and -x to the replacement shell.
147BASH_ENV=/dev/null
148ENV=/dev/null
149(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
150case $- in # ((((
151 *v*x* | *x*v* ) as_opts=-vx ;;
152 *v* ) as_opts=-v ;;
153 *x* ) as_opts=-x ;;
154 * ) as_opts= ;;
155esac
156exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
157# Admittedly, this is quite paranoid, since all the known shells bail
158# out after a failed `exec'.
159$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160as_fn_exit 255
161 fi
162 # We don't want this to propagate to other subprocesses.
163 { _as_can_reexec=; unset _as_can_reexec;}
c7aa54aa
DWT
164if test "x$CONFIG_SHELL" = x; then
165 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 emulate sh
167 NULLCMD=:
168 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
169 # is contrary to our usage. Disable this feature.
170 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 setopt NO_GLOB_SUBST
172else
173 case \`(set -o) 2>/dev/null\` in #(
174 *posix*) :
175 set -o posix ;; #(
176 *) :
177 ;;
178esac
179fi
180"
181 as_required="as_fn_return () { (exit \$1); }
182as_fn_success () { as_fn_return 0; }
183as_fn_failure () { as_fn_return 1; }
184as_fn_ret_success () { return 0; }
185as_fn_ret_failure () { return 1; }
186
187exitcode=0
188as_fn_success || { exitcode=1; echo as_fn_success failed.; }
189as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
190as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
191as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
192if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193
194else
195 exitcode=1; echo positional parameters were not saved.
196fi
53ba6704
JF
197test x\$exitcode = x0 || exit 1
198test -x / || exit 1"
c7aa54aa
DWT
199 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
200 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
201 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
35fa52c0 202 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
ee134472
JF
203
204 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
205 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
208 PATH=/empty FPATH=/empty; export PATH FPATH
209 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
210 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
35fa52c0 211test \$(( 1 + 1 )) = 2 || exit 1"
c7aa54aa
DWT
212 if (eval "$as_required") 2>/dev/null; then :
213 as_have_required=yes
214else
215 as_have_required=no
216fi
217 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218
219else
220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221as_found=false
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 as_found=:
227 case $as_dir in #(
228 /*)
229 for as_base in sh bash ksh sh5; do
230 # Try only shells that exist, to save several forks.
231 as_shell=$as_dir/$as_base
232 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
233 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 CONFIG_SHELL=$as_shell as_have_required=yes
235 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
236 break 2
237fi
238fi
239 done;;
240 esac
241 as_found=false
242done
243$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
244 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
245 CONFIG_SHELL=$SHELL as_have_required=yes
246fi; }
247IFS=$as_save_IFS
248
249
250 if test "x$CONFIG_SHELL" != x; then :
53ba6704
JF
251 export CONFIG_SHELL
252 # We cannot yet assume a decent shell, so we have to provide a
253# neutralization value for shells without unset; and this also
254# works around shells that cannot unset nonexistent variables.
255# Preserve -v and -x to the replacement shell.
256BASH_ENV=/dev/null
257ENV=/dev/null
258(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
259case $- in # ((((
260 *v*x* | *x*v* ) as_opts=-vx ;;
261 *v* ) as_opts=-v ;;
262 *x* ) as_opts=-x ;;
263 * ) as_opts= ;;
264esac
265exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
266# Admittedly, this is quite paranoid, since all the known shells bail
267# out after a failed `exec'.
268$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
269exit 255
c7aa54aa
DWT
270fi
271
272 if test x$as_have_required = xno; then :
273 $as_echo "$0: This script requires a shell more modern than all"
274 $as_echo "$0: the shells that I found on your system."
275 if test x${ZSH_VERSION+set} = xset ; then
276 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
278 else
279 $as_echo "$0: Please tell bug-autoconf@gnu.org and saurik@saurik.com
280$0: about your system, including any error possibly output
281$0: before this message. Then install a modern shell, or
282$0: manually run the script under such a shell if you do
283$0: have one."
284 fi
285 exit 1
286fi
287fi
288fi
289SHELL=${CONFIG_SHELL-/bin/sh}
290export SHELL
291# Unset more variables known to interfere with behavior of common tools.
292CLICOLOR_FORCE= GREP_OPTIONS=
293unset CLICOLOR_FORCE GREP_OPTIONS
294
295## --------------------- ##
296## M4sh Shell Functions. ##
297## --------------------- ##
298# as_fn_unset VAR
299# ---------------
300# Portably unset VAR.
301as_fn_unset ()
302{
303 { eval $1=; unset $1;}
304}
305as_unset=as_fn_unset
306
307# as_fn_set_status STATUS
308# -----------------------
309# Set $? to STATUS, without forking.
310as_fn_set_status ()
311{
312 return $1
313} # as_fn_set_status
314
315# as_fn_exit STATUS
316# -----------------
317# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318as_fn_exit ()
319{
320 set +e
321 as_fn_set_status $1
322 exit $1
323} # as_fn_exit
324
325# as_fn_mkdir_p
326# -------------
327# Create "$as_dir" as a directory, including parents if necessary.
328as_fn_mkdir_p ()
329{
330
331 case $as_dir in #(
332 -*) as_dir=./$as_dir;;
333 esac
334 test -d "$as_dir" || eval $as_mkdir_p || {
335 as_dirs=
336 while :; do
337 case $as_dir in #(
338 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 *) as_qdir=$as_dir;;
340 esac
341 as_dirs="'$as_qdir' $as_dirs"
342 as_dir=`$as_dirname -- "$as_dir" ||
343$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
344 X"$as_dir" : 'X\(//\)[^/]' \| \
345 X"$as_dir" : 'X\(//\)$' \| \
346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
347$as_echo X"$as_dir" |
348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
349 s//\1/
350 q
351 }
352 /^X\(\/\/\)[^/].*/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\).*/{
361 s//\1/
362 q
363 }
364 s/.*/./; q'`
365 test -d "$as_dir" && break
366 done
367 test -z "$as_dirs" || eval "mkdir $as_dirs"
12833ad8 368 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
c7aa54aa
DWT
369
370
371} # as_fn_mkdir_p
53ba6704
JF
372
373# as_fn_executable_p FILE
374# -----------------------
375# Test if FILE is an executable regular file.
376as_fn_executable_p ()
377{
378 test -f "$1" && test -x "$1"
379} # as_fn_executable_p
c7aa54aa
DWT
380# as_fn_append VAR VALUE
381# ----------------------
382# Append the text in VALUE to the end of the definition contained in VAR. Take
383# advantage of any shell optimizations that allow amortized linear growth over
384# repeated appends, instead of the typical quadratic growth present in naive
385# implementations.
386if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
387 eval 'as_fn_append ()
388 {
389 eval $1+=\$2
390 }'
391else
392 as_fn_append ()
393 {
394 eval $1=\$$1\$2
395 }
396fi # as_fn_append
397
398# as_fn_arith ARG...
399# ------------------
400# Perform arithmetic evaluation on the ARGs, and store the result in the
401# global $as_val. Take advantage of shells that can avoid forks. The arguments
402# must be portable across $(()) and expr.
403if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
404 eval 'as_fn_arith ()
405 {
406 as_val=$(( $* ))
407 }'
408else
409 as_fn_arith ()
410 {
411 as_val=`expr "$@" || test $? -eq 1`
412 }
413fi # as_fn_arith
414
415
12833ad8
JF
416# as_fn_error STATUS ERROR [LINENO LOG_FD]
417# ----------------------------------------
c7aa54aa
DWT
418# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
419# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12833ad8 420# script with STATUS, using 1 if that was 0.
c7aa54aa
DWT
421as_fn_error ()
422{
12833ad8
JF
423 as_status=$1; test $as_status -eq 0 && as_status=1
424 if test "$4"; then
425 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
426 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
c7aa54aa 427 fi
12833ad8 428 $as_echo "$as_me: error: $2" >&2
c7aa54aa
DWT
429 as_fn_exit $as_status
430} # as_fn_error
431
432if expr a : '\(a\)' >/dev/null 2>&1 &&
433 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 as_expr=expr
435else
436 as_expr=false
437fi
438
439if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 as_basename=basename
441else
442 as_basename=false
443fi
444
445if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_dirname=dirname
447else
448 as_dirname=false
449fi
450
451as_me=`$as_basename -- "$0" ||
452$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
453 X"$0" : 'X\(//\)$' \| \
454 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455$as_echo X/"$0" |
456 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 s//\1/
458 q
459 }
460 /^X\/\(\/\/\)$/{
461 s//\1/
462 q
463 }
464 /^X\/\(\/\).*/{
465 s//\1/
466 q
467 }
468 s/.*/./; q'`
469
470# Avoid depending upon Character Ranges.
471as_cr_letters='abcdefghijklmnopqrstuvwxyz'
472as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
473as_cr_Letters=$as_cr_letters$as_cr_LETTERS
474as_cr_digits='0123456789'
475as_cr_alnum=$as_cr_Letters$as_cr_digits
476
477
478 as_lineno_1=$LINENO as_lineno_1a=$LINENO
479 as_lineno_2=$LINENO as_lineno_2a=$LINENO
480 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
481 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
482 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
483 sed -n '
484 p
485 /[$]LINENO/=
486 ' <$as_myself |
487 sed '
488 s/[$]LINENO.*/&-/
489 t lineno
490 b
491 :lineno
492 N
493 :loop
494 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
495 t loop
496 s/-\n.*//
497 ' >$as_me.lineno &&
498 chmod +x "$as_me.lineno" ||
499 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500
53ba6704
JF
501 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
502 # already done that, so ensure we don't try to do so again and fall
503 # in an infinite loop. This has already happened in practice.
504 _as_can_reexec=no; export _as_can_reexec
c7aa54aa
DWT
505 # Don't try to exec as it changes $[0], causing all sort of problems
506 # (the dirname of $[0] is not the place where we might find the
507 # original and so on. Autoconf is especially sensitive to this).
508 . "./$as_me.lineno"
509 # Exit status is that of the last command.
510 exit
511}
512
513ECHO_C= ECHO_N= ECHO_T=
514case `echo -n x` in #(((((
515-n*)
516 case `echo 'xy\c'` in
517 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
518 xy) ECHO_C='\c';;
519 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
520 ECHO_T=' ';;
521 esac;;
522*)
523 ECHO_N='-n';;
524esac
525
526rm -f conf$$ conf$$.exe conf$$.file
527if test -d conf$$.dir; then
528 rm -f conf$$.dir/conf$$.file
529else
530 rm -f conf$$.dir
531 mkdir conf$$.dir 2>/dev/null
532fi
533if (echo >conf$$.file) 2>/dev/null; then
534 if ln -s conf$$.file conf$$ 2>/dev/null; then
535 as_ln_s='ln -s'
536 # ... but there are two gotchas:
537 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
538 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53ba6704 539 # In both cases, we have to default to `cp -pR'.
c7aa54aa 540 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53ba6704 541 as_ln_s='cp -pR'
c7aa54aa
DWT
542 elif ln conf$$.file conf$$ 2>/dev/null; then
543 as_ln_s=ln
544 else
53ba6704 545 as_ln_s='cp -pR'
c7aa54aa
DWT
546 fi
547else
53ba6704 548 as_ln_s='cp -pR'
c7aa54aa
DWT
549fi
550rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
551rmdir conf$$.dir 2>/dev/null
552
553if mkdir -p . 2>/dev/null; then
554 as_mkdir_p='mkdir -p "$as_dir"'
555else
556 test -d ./-p && rmdir ./-p
557 as_mkdir_p=false
558fi
559
53ba6704
JF
560as_test_x='test -x'
561as_executable_p=as_fn_executable_p
c7aa54aa
DWT
562
563# Sed expression to map a string onto a valid CPP name.
564as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565
566# Sed expression to map a string onto a valid variable name.
567as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568
9c60689e
DWT
569SHELL=${CONFIG_SHELL-/bin/sh}
570
c7aa54aa 571
9c60689e
DWT
572test -n "$DJDIR" || exec 7<&0 </dev/null
573exec 6>&1
c7aa54aa
DWT
574
575# Name of the host.
12833ad8 576# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
c7aa54aa
DWT
577# so uname gets run too.
578ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
579
580#
581# Initializations.
582#
583ac_default_prefix=/usr/local
584ac_clean_files=
585ac_config_libobj_dir=.
586LIBOBJS=
587cross_compiling=no
588subdirs=
589MFLAGS=
590MAKEFLAGS=
591
592# Identity of this package.
593PACKAGE_NAME='Cycript'
594PACKAGE_TARNAME='cycript'
595PACKAGE_VERSION='0.9'
596PACKAGE_STRING='Cycript 0.9'
597PACKAGE_BUGREPORT='saurik@saurik.com'
598PACKAGE_URL='http://www.cycript.org/'
599
35fa52c0 600ac_unique_file="Console.cpp"
6b66678a
DWT
601# Factoring default headers for most tests.
602ac_includes_default="\
603#include <stdio.h>
604#ifdef HAVE_SYS_TYPES_H
605# include <sys/types.h>
606#endif
607#ifdef HAVE_SYS_STAT_H
608# include <sys/stat.h>
609#endif
610#ifdef STDC_HEADERS
611# include <stdlib.h>
612# include <stddef.h>
613#else
614# ifdef HAVE_STDLIB_H
615# include <stdlib.h>
616# endif
617#endif
618#ifdef HAVE_STRING_H
619# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
620# include <memory.h>
621# endif
622# include <string.h>
623#endif
624#ifdef HAVE_STRINGS_H
625# include <strings.h>
626#endif
627#ifdef HAVE_INTTYPES_H
628# include <inttypes.h>
629#endif
630#ifdef HAVE_STDINT_H
631# include <stdint.h>
632#endif
633#ifdef HAVE_UNISTD_H
634# include <unistd.h>
635#endif"
636
66170b30
JF
637ac_subst_vars='am__EXEEXT_FALSE
638am__EXEEXT_TRUE
639LTLIBOBJS
9c60689e 640LIBOBJS
9777bd50 641SO
66170b30 642LTFLAGS
3615a2f7 643LTLIBGCC
6f9aea2b
JF
644LTLIBTERMCAP
645LTLIBREADLINE
8d20f0f1
JF
646CY_PRELINK_FALSE
647CY_PRELINK_TRUE
648CY_LIBCLANG
a243b558
JF
649CY_OBJECTIVEC_FALSE
650CY_OBJECTIVEC_TRUE
39ed1631
JF
651CY_JAVA_FALSE
652CY_JAVA_TRUE
babf7fe8 653LTOBJECTIVEC
47aaa820 654GNUSTEP_CONFIG
c823f118 655CY_OBJECTIVEC
39ed1631
JF
656LTJAVA
657CY_JAVA
296ee9a6 658LTLIBFFI
309b0535 659LIBFFI_LIBS
35fa52c0 660LIBFFI_CFLAGS
8d20f0f1 661LTLIBSQLITE3
ae1b611e 662LTLIBUV
8d20f0f1 663CY_SYSTEM
a243b558
JF
664CY_EXECUTE_FALSE
665CY_EXECUTE_TRUE
a4287117
JF
666CY_ATTACH_FALSE
667CY_ATTACH_TRUE
a93f15c0
JF
668CY_CONSOLE_FALSE
669CY_CONSOLE_TRUE
babf7fe8 670LTJAVASCRIPTCORE
35fa52c0
DWT
671WEBKIT_LIBS
672WEBKIT_CFLAGS
7eda51e0 673CY_EXECUTE
be2fde87
JF
674PTHREAD_CFLAGS
675PTHREAD_LIBS
676PTHREAD_CC
677ax_pthread_config
77578fdd 678LFLAGS
e9c9a47c 679GNUTAR
e9c9a47c
DWT
680GPERF
681FLEX
682BISON
683TIME
66170b30 684GIT
12833ad8
JF
685PKG_CONFIG_LIBDIR
686PKG_CONFIG_PATH
3fd51f51 687PKG_CONFIG
1771224f 688HAVE_CXX11
9d54db95 689LT_SYS_LIBRARY_PATH
9c60689e
DWT
690OTOOL64
691OTOOL
692LIPO
693NMEDIT
694DSYMUTIL
ee134472 695MANIFEST_TOOL
9c60689e 696RANLIB
ee134472 697DLLTOOL
9c60689e
DWT
698OBJDUMP
699LN_S
700NM
701ac_ct_DUMPBIN
702DUMPBIN
703LD
704FGREP
705EGREP
706GREP
707SED
8d20f0f1
JF
708LIBTOOL
709ac_ct_AR
710AR
711CXXCPPFLAGS_FOR_BUILD
712CXXFLAGS_FOR_BUILD
713CXXCPP_FOR_BUILD
714ac_ct_CXX_FOR_BUILD
715CXX_FOR_BUILD
716CXXCPP
717LDFLAGS_FOR_BUILD
718CPPFLAGS_FOR_BUILD
719CFLAGS_FOR_BUILD
720BUILD_OBJEXT
721BUILD_EXEEXT
722CPP_FOR_BUILD
723ac_ct_CC_FOR_BUILD
724CC_FOR_BUILD
a243b558
JF
725host_os
726host_vendor
727host_cpu
728host
729build_os
730build_vendor
731build_cpu
732build
8d20f0f1 733CPP
a243b558
JF
734am__fastdepOBJCXX_FALSE
735am__fastdepOBJCXX_TRUE
736OBJCXXDEPMODE
737ac_ct_OBJCXX
738OBJCXXFLAGS
739OBJCXX
740am__fastdepCXX_FALSE
741am__fastdepCXX_TRUE
742CXXDEPMODE
a93f15c0
JF
743ac_ct_CXX
744CXXFLAGS
745CXX
746am__fastdepCC_FALSE
747am__fastdepCC_TRUE
748CCDEPMODE
66170b30
JF
749am__nodep
750AMDEPBACKSLASH
751AMDEP_FALSE
752AMDEP_TRUE
753am__quote
754am__include
755DEPDIR
35fa52c0
DWT
756OBJEXT
757EXEEXT
a93f15c0 758ac_ct_CC
35fa52c0
DWT
759CPPFLAGS
760LDFLAGS
a93f15c0
JF
761CFLAGS
762CC
babf7fe8
JF
763MAINT
764MAINTAINER_MODE_FALSE
765MAINTAINER_MODE_TRUE
66170b30
JF
766AM_BACKSLASH
767AM_DEFAULT_VERBOSITY
768AM_DEFAULT_V
769AM_V
770am__untar
771am__tar
772AMTAR
773am__leading_dot
774SET_MAKE
775AWK
776mkdir_p
777MKDIR_P
778INSTALL_STRIP_PROGRAM
779STRIP
780install_sh
781MAKEINFO
782AUTOHEADER
783AUTOMAKE
784AUTOCONF
785ACLOCAL
786VERSION
787PACKAGE
788CYGPATH_W
789am__isrc
790INSTALL_DATA
791INSTALL_SCRIPT
792INSTALL_PROGRAM
dbadc56a 793target_alias
c7aa54aa
DWT
794host_alias
795build_alias
796LIBS
797ECHO_T
798ECHO_N
799ECHO_C
800DEFS
801mandir
802localedir
803libdir
804psdir
805pdfdir
806dvidir
807htmldir
808infodir
809docdir
810oldincludedir
811includedir
812localstatedir
813sharedstatedir
814sysconfdir
815datadir
816datarootdir
817libexecdir
818sbindir
819bindir
820program_transform_name
821prefix
822exec_prefix
823PACKAGE_URL
824PACKAGE_BUGREPORT
825PACKAGE_STRING
826PACKAGE_VERSION
827PACKAGE_TARNAME
828PACKAGE_NAME
829PATH_SEPARATOR
830SHELL'
831ac_subst_files=''
832ac_user_opts='
833enable_option_checking
66170b30 834enable_silent_rules
babf7fe8 835enable_maintainer_mode
a243b558 836enable_dependency_tracking
9c60689e 837enable_static
549f29b5 838enable_shared
9c60689e
DWT
839with_pic
840enable_fast_install
9d54db95 841with_aix_soname
35fa52c0 842with_gnu_ld
ee134472 843with_sysroot
9c60689e 844enable_libtool_lock
5053a6d1 845enable_javascript
a93f15c0 846enable_console
a4287117 847enable_attach
8d20f0f1 848with_libclang
c7aa54aa
DWT
849'
850 ac_precious_vars='build_alias
851host_alias
dbadc56a 852target_alias
a93f15c0
JF
853CC
854CFLAGS
dbadc56a
DWT
855LDFLAGS
856LIBS
857CPPFLAGS
a93f15c0
JF
858CXX
859CXXFLAGS
a243b558
JF
860CCC
861OBJCXX
862OBJCXXFLAGS
9c60689e 863CPP
a243b558 864CXXCPP
8d20f0f1 865LT_SYS_LIBRARY_PATH
3fd51f51 866PKG_CONFIG
12833ad8
JF
867PKG_CONFIG_PATH
868PKG_CONFIG_LIBDIR
e9c9a47c
DWT
869BISON
870FLEX
871GPERF
66170b30 872GNUTAR
77578fdd 873LFLAGS
35fa52c0
DWT
874WEBKIT_CFLAGS
875WEBKIT_LIBS
a667869d 876LIBFFI_CFLAGS
790e5246
DWT
877LIBFFI_LIBS
878GNUSTEP_CONFIG'
c7aa54aa
DWT
879
880
881# Initialize some variables set by options.
882ac_init_help=
883ac_init_version=false
884ac_unrecognized_opts=
885ac_unrecognized_sep=
886# The variables have the same names as the options, with
887# dashes changed to underlines.
888cache_file=/dev/null
889exec_prefix=NONE
890no_create=
891no_recursion=
892prefix=NONE
893program_prefix=NONE
894program_suffix=NONE
895program_transform_name=s,x,x,
896silent=
897site=
898srcdir=
899verbose=
900x_includes=NONE
901x_libraries=NONE
902
903# Installation directory options.
904# These are left unexpanded so users can "make install exec_prefix=/foo"
905# and all the variables that are supposed to be based on exec_prefix
906# by default will actually change.
907# Use braces instead of parens because sh, perl, etc. also accept them.
908# (The list follows the same order as the GNU Coding Standards.)
909bindir='${exec_prefix}/bin'
910sbindir='${exec_prefix}/sbin'
911libexecdir='${exec_prefix}/libexec'
912datarootdir='${prefix}/share'
913datadir='${datarootdir}'
914sysconfdir='${prefix}/etc'
915sharedstatedir='${prefix}/com'
916localstatedir='${prefix}/var'
917includedir='${prefix}/include'
918oldincludedir='/usr/include'
919docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
920infodir='${datarootdir}/info'
921htmldir='${docdir}'
922dvidir='${docdir}'
923pdfdir='${docdir}'
924psdir='${docdir}'
925libdir='${exec_prefix}/lib'
926localedir='${datarootdir}/locale'
927mandir='${datarootdir}/man'
928
929ac_prev=
930ac_dashdash=
931for ac_option
932do
933 # If the previous option needs an argument, assign it.
934 if test -n "$ac_prev"; then
935 eval $ac_prev=\$ac_option
936 ac_prev=
937 continue
938 fi
939
940 case $ac_option in
12833ad8
JF
941 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
942 *=) ac_optarg= ;;
943 *) ac_optarg=yes ;;
c7aa54aa
DWT
944 esac
945
946 # Accept the important Cygnus configure options, so we can diagnose typos.
947
948 case $ac_dashdash$ac_option in
949 --)
950 ac_dashdash=yes ;;
951
952 -bindir | --bindir | --bindi | --bind | --bin | --bi)
953 ac_prev=bindir ;;
954 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
955 bindir=$ac_optarg ;;
956
957 -build | --build | --buil | --bui | --bu)
958 ac_prev=build_alias ;;
959 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
960 build_alias=$ac_optarg ;;
961
962 -cache-file | --cache-file | --cache-fil | --cache-fi \
963 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
964 ac_prev=cache_file ;;
965 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
966 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
967 cache_file=$ac_optarg ;;
968
969 --config-cache | -C)
970 cache_file=config.cache ;;
971
972 -datadir | --datadir | --datadi | --datad)
973 ac_prev=datadir ;;
974 -datadir=* | --datadir=* | --datadi=* | --datad=*)
975 datadir=$ac_optarg ;;
976
977 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
978 | --dataroo | --dataro | --datar)
979 ac_prev=datarootdir ;;
980 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
981 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
982 datarootdir=$ac_optarg ;;
983
984 -disable-* | --disable-*)
985 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
986 # Reject names that are not valid shell variable names.
987 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 988 as_fn_error $? "invalid feature name: $ac_useropt"
c7aa54aa
DWT
989 ac_useropt_orig=$ac_useropt
990 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
991 case $ac_user_opts in
992 *"
993"enable_$ac_useropt"
994"*) ;;
995 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
996 ac_unrecognized_sep=', ';;
997 esac
998 eval enable_$ac_useropt=no ;;
999
1000 -docdir | --docdir | --docdi | --doc | --do)
1001 ac_prev=docdir ;;
1002 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1003 docdir=$ac_optarg ;;
1004
1005 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1006 ac_prev=dvidir ;;
1007 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1008 dvidir=$ac_optarg ;;
1009
1010 -enable-* | --enable-*)
1011 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1012 # Reject names that are not valid shell variable names.
1013 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 1014 as_fn_error $? "invalid feature name: $ac_useropt"
c7aa54aa
DWT
1015 ac_useropt_orig=$ac_useropt
1016 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1017 case $ac_user_opts in
1018 *"
1019"enable_$ac_useropt"
1020"*) ;;
1021 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1022 ac_unrecognized_sep=', ';;
1023 esac
1024 eval enable_$ac_useropt=\$ac_optarg ;;
1025
1026 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1027 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1028 | --exec | --exe | --ex)
1029 ac_prev=exec_prefix ;;
1030 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1031 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1032 | --exec=* | --exe=* | --ex=*)
1033 exec_prefix=$ac_optarg ;;
1034
1035 -gas | --gas | --ga | --g)
1036 # Obsolete; use --with-gas.
1037 with_gas=yes ;;
1038
1039 -help | --help | --hel | --he | -h)
1040 ac_init_help=long ;;
1041 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1042 ac_init_help=recursive ;;
1043 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1044 ac_init_help=short ;;
1045
1046 -host | --host | --hos | --ho)
1047 ac_prev=host_alias ;;
1048 -host=* | --host=* | --hos=* | --ho=*)
1049 host_alias=$ac_optarg ;;
1050
1051 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1052 ac_prev=htmldir ;;
1053 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1054 | --ht=*)
1055 htmldir=$ac_optarg ;;
1056
1057 -includedir | --includedir | --includedi | --included | --include \
1058 | --includ | --inclu | --incl | --inc)
1059 ac_prev=includedir ;;
1060 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1061 | --includ=* | --inclu=* | --incl=* | --inc=*)
1062 includedir=$ac_optarg ;;
1063
1064 -infodir | --infodir | --infodi | --infod | --info | --inf)
1065 ac_prev=infodir ;;
1066 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1067 infodir=$ac_optarg ;;
1068
1069 -libdir | --libdir | --libdi | --libd)
1070 ac_prev=libdir ;;
1071 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1072 libdir=$ac_optarg ;;
1073
1074 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1075 | --libexe | --libex | --libe)
1076 ac_prev=libexecdir ;;
1077 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1078 | --libexe=* | --libex=* | --libe=*)
1079 libexecdir=$ac_optarg ;;
1080
1081 -localedir | --localedir | --localedi | --localed | --locale)
1082 ac_prev=localedir ;;
1083 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1084 localedir=$ac_optarg ;;
1085
1086 -localstatedir | --localstatedir | --localstatedi | --localstated \
1087 | --localstate | --localstat | --localsta | --localst | --locals)
1088 ac_prev=localstatedir ;;
1089 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1090 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1091 localstatedir=$ac_optarg ;;
1092
1093 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1094 ac_prev=mandir ;;
1095 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1096 mandir=$ac_optarg ;;
1097
1098 -nfp | --nfp | --nf)
1099 # Obsolete; use --without-fp.
1100 with_fp=no ;;
1101
1102 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1103 | --no-cr | --no-c | -n)
1104 no_create=yes ;;
1105
1106 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1107 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1108 no_recursion=yes ;;
1109
1110 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1111 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1112 | --oldin | --oldi | --old | --ol | --o)
1113 ac_prev=oldincludedir ;;
1114 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1115 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1116 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1117 oldincludedir=$ac_optarg ;;
1118
1119 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1120 ac_prev=prefix ;;
1121 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1122 prefix=$ac_optarg ;;
1123
1124 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1125 | --program-pre | --program-pr | --program-p)
1126 ac_prev=program_prefix ;;
1127 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1128 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1129 program_prefix=$ac_optarg ;;
1130
1131 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1132 | --program-suf | --program-su | --program-s)
1133 ac_prev=program_suffix ;;
1134 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1135 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1136 program_suffix=$ac_optarg ;;
1137
1138 -program-transform-name | --program-transform-name \
1139 | --program-transform-nam | --program-transform-na \
1140 | --program-transform-n | --program-transform- \
1141 | --program-transform | --program-transfor \
1142 | --program-transfo | --program-transf \
1143 | --program-trans | --program-tran \
1144 | --progr-tra | --program-tr | --program-t)
1145 ac_prev=program_transform_name ;;
1146 -program-transform-name=* | --program-transform-name=* \
1147 | --program-transform-nam=* | --program-transform-na=* \
1148 | --program-transform-n=* | --program-transform-=* \
1149 | --program-transform=* | --program-transfor=* \
1150 | --program-transfo=* | --program-transf=* \
1151 | --program-trans=* | --program-tran=* \
1152 | --progr-tra=* | --program-tr=* | --program-t=*)
1153 program_transform_name=$ac_optarg ;;
1154
1155 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1156 ac_prev=pdfdir ;;
1157 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1158 pdfdir=$ac_optarg ;;
1159
1160 -psdir | --psdir | --psdi | --psd | --ps)
1161 ac_prev=psdir ;;
1162 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1163 psdir=$ac_optarg ;;
1164
1165 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1166 | -silent | --silent | --silen | --sile | --sil)
1167 silent=yes ;;
1168
1169 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1170 ac_prev=sbindir ;;
1171 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1172 | --sbi=* | --sb=*)
1173 sbindir=$ac_optarg ;;
1174
1175 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1176 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1177 | --sharedst | --shareds | --shared | --share | --shar \
1178 | --sha | --sh)
1179 ac_prev=sharedstatedir ;;
1180 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1181 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1182 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1183 | --sha=* | --sh=*)
1184 sharedstatedir=$ac_optarg ;;
1185
1186 -site | --site | --sit)
1187 ac_prev=site ;;
1188 -site=* | --site=* | --sit=*)
1189 site=$ac_optarg ;;
1190
1191 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1192 ac_prev=srcdir ;;
1193 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1194 srcdir=$ac_optarg ;;
1195
1196 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1197 | --syscon | --sysco | --sysc | --sys | --sy)
1198 ac_prev=sysconfdir ;;
1199 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1200 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1201 sysconfdir=$ac_optarg ;;
1202
1203 -target | --target | --targe | --targ | --tar | --ta | --t)
1204 ac_prev=target_alias ;;
1205 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1206 target_alias=$ac_optarg ;;
1207
1208 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1209 verbose=yes ;;
1210
1211 -version | --version | --versio | --versi | --vers | -V)
1212 ac_init_version=: ;;
1213
1214 -with-* | --with-*)
1215 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 1218 as_fn_error $? "invalid package name: $ac_useropt"
c7aa54aa
DWT
1219 ac_useropt_orig=$ac_useropt
1220 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1221 case $ac_user_opts in
1222 *"
1223"with_$ac_useropt"
1224"*) ;;
1225 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1226 ac_unrecognized_sep=', ';;
1227 esac
1228 eval with_$ac_useropt=\$ac_optarg ;;
1229
1230 -without-* | --without-*)
1231 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1232 # Reject names that are not valid shell variable names.
1233 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 1234 as_fn_error $? "invalid package name: $ac_useropt"
c7aa54aa
DWT
1235 ac_useropt_orig=$ac_useropt
1236 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1237 case $ac_user_opts in
1238 *"
1239"with_$ac_useropt"
1240"*) ;;
1241 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1242 ac_unrecognized_sep=', ';;
1243 esac
1244 eval with_$ac_useropt=no ;;
1245
1246 --x)
1247 # Obsolete; use --with-x.
1248 with_x=yes ;;
1249
1250 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1251 | --x-incl | --x-inc | --x-in | --x-i)
1252 ac_prev=x_includes ;;
1253 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1254 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1255 x_includes=$ac_optarg ;;
1256
1257 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1258 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1259 ac_prev=x_libraries ;;
1260 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1261 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1262 x_libraries=$ac_optarg ;;
1263
12833ad8
JF
1264 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1265Try \`$0 --help' for more information"
c7aa54aa
DWT
1266 ;;
1267
1268 *=*)
1269 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1270 # Reject names that are not valid shell variable names.
1271 case $ac_envvar in #(
1272 '' | [0-9]* | *[!_$as_cr_alnum]* )
12833ad8 1273 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
c7aa54aa
DWT
1274 esac
1275 eval $ac_envvar=\$ac_optarg
1276 export $ac_envvar ;;
1277
1278 *)
1279 # FIXME: should be removed in autoconf 3.0.
1280 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1281 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1282 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ee134472 1283 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
c7aa54aa
DWT
1284 ;;
1285
1286 esac
1287done
1288
1289if test -n "$ac_prev"; then
1290 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
12833ad8 1291 as_fn_error $? "missing argument to $ac_option"
c7aa54aa
DWT
1292fi
1293
1294if test -n "$ac_unrecognized_opts"; then
1295 case $enable_option_checking in
1296 no) ;;
12833ad8 1297 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
c7aa54aa
DWT
1298 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1299 esac
1300fi
1301
1302# Check all directory arguments for consistency.
1303for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1304 datadir sysconfdir sharedstatedir localstatedir includedir \
1305 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1306 libdir localedir mandir
1307do
1308 eval ac_val=\$$ac_var
1309 # Remove trailing slashes.
1310 case $ac_val in
1311 */ )
1312 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1313 eval $ac_var=\$ac_val;;
1314 esac
1315 # Be sure to have absolute directory names.
1316 case $ac_val in
1317 [\\/$]* | ?:[\\/]* ) continue;;
1318 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1319 esac
12833ad8 1320 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
c7aa54aa
DWT
1321done
1322
1323# There might be people who depend on the old broken behavior: `$host'
1324# used to hold the argument of --host etc.
1325# FIXME: To remove some day.
1326build=$build_alias
1327host=$host_alias
1328target=$target_alias
1329
1330# FIXME: To remove some day.
1331if test "x$host_alias" != x; then
1332 if test "x$build_alias" = x; then
1333 cross_compiling=maybe
c7aa54aa
DWT
1334 elif test "x$build_alias" != "x$host_alias"; then
1335 cross_compiling=yes
1336 fi
1337fi
1338
1339ac_tool_prefix=
1340test -n "$host_alias" && ac_tool_prefix=$host_alias-
1341
1342test "$silent" = yes && exec 6>/dev/null
1343
1344
1345ac_pwd=`pwd` && test -n "$ac_pwd" &&
1346ac_ls_di=`ls -di .` &&
1347ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
12833ad8 1348 as_fn_error $? "working directory cannot be determined"
c7aa54aa 1349test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
12833ad8 1350 as_fn_error $? "pwd does not report name of working directory"
c7aa54aa
DWT
1351
1352
1353# Find the source files, if location was not specified.
1354if test -z "$srcdir"; then
1355 ac_srcdir_defaulted=yes
1356 # Try the directory containing this script, then the parent directory.
1357 ac_confdir=`$as_dirname -- "$as_myself" ||
1358$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1359 X"$as_myself" : 'X\(//\)[^/]' \| \
1360 X"$as_myself" : 'X\(//\)$' \| \
1361 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1362$as_echo X"$as_myself" |
1363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1364 s//\1/
1365 q
1366 }
1367 /^X\(\/\/\)[^/].*/{
1368 s//\1/
1369 q
1370 }
1371 /^X\(\/\/\)$/{
1372 s//\1/
1373 q
1374 }
1375 /^X\(\/\).*/{
1376 s//\1/
1377 q
1378 }
1379 s/.*/./; q'`
1380 srcdir=$ac_confdir
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382 srcdir=..
1383 fi
1384else
1385 ac_srcdir_defaulted=no
1386fi
1387if test ! -r "$srcdir/$ac_unique_file"; then
1388 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
12833ad8 1389 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
c7aa54aa
DWT
1390fi
1391ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1392ac_abs_confdir=`(
12833ad8 1393 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
c7aa54aa
DWT
1394 pwd)`
1395# When building in place, set srcdir=.
1396if test "$ac_abs_confdir" = "$ac_pwd"; then
1397 srcdir=.
1398fi
1399# Remove unnecessary trailing slashes from srcdir.
1400# Double slashes in file names in object file debugging info
1401# mess up M-x gdb in Emacs.
1402case $srcdir in
1403*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1404esac
1405for ac_var in $ac_precious_vars; do
1406 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1407 eval ac_env_${ac_var}_value=\$${ac_var}
1408 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1409 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1410done
1411
1412#
1413# Report the --help message.
1414#
1415if test "$ac_init_help" = "long"; then
1416 # Omit some internal or obsolete options to make the list less imposing.
1417 # This message is too long to be a string in the A/UX 3.1 sh.
1418 cat <<_ACEOF
1419\`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1420
1421Usage: $0 [OPTION]... [VAR=VALUE]...
1422
1423To assign environment variables (e.g., CC, CFLAGS...), specify them as
1424VAR=VALUE. See below for descriptions of some of the useful variables.
1425
1426Defaults for the options are specified in brackets.
1427
1428Configuration:
1429 -h, --help display this help and exit
1430 --help=short display options specific to this package
1431 --help=recursive display the short help of all the included packages
1432 -V, --version display version information and exit
12833ad8 1433 -q, --quiet, --silent do not print \`checking ...' messages
c7aa54aa
DWT
1434 --cache-file=FILE cache test results in FILE [disabled]
1435 -C, --config-cache alias for \`--cache-file=config.cache'
1436 -n, --no-create do not create output files
1437 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1438
1439Installation directories:
1440 --prefix=PREFIX install architecture-independent files in PREFIX
1441 [$ac_default_prefix]
1442 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1443 [PREFIX]
1444
1445By default, \`make install' will install all the files in
1446\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1447an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1448for instance \`--prefix=\$HOME'.
1449
1450For better control, use the options below.
1451
1452Fine tuning of the installation directories:
1453 --bindir=DIR user executables [EPREFIX/bin]
1454 --sbindir=DIR system admin executables [EPREFIX/sbin]
1455 --libexecdir=DIR program executables [EPREFIX/libexec]
1456 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1457 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1458 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1459 --libdir=DIR object code libraries [EPREFIX/lib]
1460 --includedir=DIR C header files [PREFIX/include]
1461 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1462 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1463 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1464 --infodir=DIR info documentation [DATAROOTDIR/info]
1465 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1466 --mandir=DIR man documentation [DATAROOTDIR/man]
1467 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1468 --htmldir=DIR html documentation [DOCDIR]
1469 --dvidir=DIR dvi documentation [DOCDIR]
1470 --pdfdir=DIR pdf documentation [DOCDIR]
1471 --psdir=DIR ps documentation [DOCDIR]
1472_ACEOF
1473
1474 cat <<\_ACEOF
35fa52c0 1475
66170b30
JF
1476Program names:
1477 --program-prefix=PREFIX prepend PREFIX to installed program names
1478 --program-suffix=SUFFIX append SUFFIX to installed program names
1479 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1480
35fa52c0
DWT
1481System types:
1482 --build=BUILD configure for building on BUILD [guessed]
1483 --host=HOST cross-compile to build programs to run on HOST [BUILD]
c7aa54aa
DWT
1484_ACEOF
1485fi
1486
1487if test -n "$ac_init_help"; then
1488 case $ac_init_help in
1489 short | recursive ) echo "Configuration of Cycript 0.9:";;
1490 esac
1491 cat <<\_ACEOF
1492
35fa52c0
DWT
1493Optional Features:
1494 --disable-option-checking ignore unrecognized --enable/--with options
1495 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1496 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
66170b30
JF
1497 --enable-silent-rules less verbose build output (undo: "make V=1")
1498 --disable-silent-rules verbose build output (undo: "make V=0")
babf7fe8
JF
1499 --enable-maintainer-mode
1500 enable make rules and dependencies not useful (and
1501 sometimes confusing) to the casual installer
66170b30
JF
1502 --enable-dependency-tracking
1503 do not reject slow dependency extractors
1504 --disable-dependency-tracking
1505 speeds up one-time build
a243b558
JF
1506 --enable-static[=PKGS] build static libraries [default=no]
1507 --enable-shared[=PKGS] build shared libraries [default=yes]
1508 --enable-fast-install[=PKGS]
1509 optimize for fast installation [default=yes]
9c60689e 1510 --disable-libtool-lock avoid locking (might break parallel builds)
b66977f1 1511 --enable-javascript[=ENGINE]
790e5246 1512 use a JavaScript runtime (currently the only
b66977f1
DWT
1513 available option for ENGINE is JavaScriptCore)
1514 [default=yes]
a93f15c0 1515 --disable-console disable console
a4287117 1516 --disable-attach disable attach
35fa52c0
DWT
1517
1518Optional Packages:
1519 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1520 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
53ba6704 1521 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
9c60689e 1522 both]
9d54db95
JF
1523 --with-aix-soname=aix|svr4|both
1524 shared library versioning (aka "SONAME") variant to
1525 provide on AIX, [default=aix].
9c60689e 1526 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
9d54db95
JF
1527 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1528 compiler's sysroot if not specified).
8d20f0f1 1529 --with-libclang build bridge definitions using this libclang
35fa52c0 1530
dbadc56a 1531Some influential environment variables:
a93f15c0
JF
1532 CC C compiler command
1533 CFLAGS C compiler flags
dbadc56a
DWT
1534 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1535 nonstandard directory <lib dir>
1536 LIBS libraries to pass to the linker, e.g. -l<library>
9c60689e 1537 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
dbadc56a 1538 you have headers in a nonstandard directory <include dir>
a93f15c0
JF
1539 CXX C++ compiler command
1540 CXXFLAGS C++ compiler flags
a243b558
JF
1541 OBJCXX Objective C++ compiler command
1542 OBJCXXFLAGS Objective C++ compiler flags
9c60689e 1543 CPP C preprocessor
a243b558 1544 CXXCPP C++ preprocessor
8d20f0f1
JF
1545 LT_SYS_LIBRARY_PATH
1546 User-defined run-time library search path.
3fd51f51 1547 PKG_CONFIG path to pkg-config utility
12833ad8
JF
1548 PKG_CONFIG_PATH
1549 directories to add to pkg-config's search path
1550 PKG_CONFIG_LIBDIR
1551 path overriding pkg-config's built-in search path
e9c9a47c
DWT
1552 BISON GNU Project parser generator (yacc replacement)
1553 FLEX the fast lexical analyser generator
1554 GPERF perfect hash function generator
66170b30 1555 GNUTAR a very sticky lump of files
77578fdd 1556 LFLAGS flex flags
35fa52c0
DWT
1557 WEBKIT_CFLAGS
1558 C compiler flags for WEBKIT, overriding pkg-config
1559 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
790e5246
DWT
1560 GNUSTEP_CONFIG
1561 prints information about the current gnustep installation
dbadc56a
DWT
1562
1563Use these variables to override the choices made by `configure' or to help
1564it to find libraries and programs with nonstandard names/locations.
1565
c7aa54aa
DWT
1566Report bugs to <saurik@saurik.com>.
1567Cycript home page: <http://www.cycript.org/>.
1568_ACEOF
1569ac_status=$?
1570fi
1571
1572if test "$ac_init_help" = "recursive"; then
1573 # If there are subdirs, report their specific --help.
1574 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1575 test -d "$ac_dir" ||
1576 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1577 continue
1578 ac_builddir=.
1579
1580case "$ac_dir" in
1581.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1582*)
1583 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1584 # A ".." for each directory in $ac_dir_suffix.
1585 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1586 case $ac_top_builddir_sub in
1587 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1589 esac ;;
1590esac
1591ac_abs_top_builddir=$ac_pwd
1592ac_abs_builddir=$ac_pwd$ac_dir_suffix
1593# for backward compatibility:
1594ac_top_builddir=$ac_top_build_prefix
1595
1596case $srcdir in
1597 .) # We are building in place.
1598 ac_srcdir=.
1599 ac_top_srcdir=$ac_top_builddir_sub
1600 ac_abs_top_srcdir=$ac_pwd ;;
1601 [\\/]* | ?:[\\/]* ) # Absolute name.
1602 ac_srcdir=$srcdir$ac_dir_suffix;
1603 ac_top_srcdir=$srcdir
1604 ac_abs_top_srcdir=$srcdir ;;
1605 *) # Relative name.
1606 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1607 ac_top_srcdir=$ac_top_build_prefix$srcdir
1608 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1609esac
1610ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1611
1612 cd "$ac_dir" || { ac_status=$?; continue; }
1613 # Check for guested configure.
1614 if test -f "$ac_srcdir/configure.gnu"; then
1615 echo &&
1616 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1617 elif test -f "$ac_srcdir/configure"; then
1618 echo &&
1619 $SHELL "$ac_srcdir/configure" --help=recursive
1620 else
1621 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1622 fi || ac_status=$?
1623 cd "$ac_pwd" || { ac_status=$?; break; }
1624 done
1625fi
1626
1627test -n "$ac_init_help" && exit $ac_status
1628if $ac_init_version; then
1629 cat <<\_ACEOF
1630Cycript configure 0.9
53ba6704 1631generated by GNU Autoconf 2.69
c7aa54aa 1632
53ba6704 1633Copyright (C) 2012 Free Software Foundation, Inc.
c7aa54aa
DWT
1634This configure script is free software; the Free Software Foundation
1635gives unlimited permission to copy, distribute and modify it.
66170b30 1636
c1d3e52e 1637Copyright (C) 2009-2015 Jay Freeman (saurik)
c7aa54aa
DWT
1638_ACEOF
1639 exit
1640fi
1641
1642## ------------------------ ##
1643## Autoconf initialization. ##
1644## ------------------------ ##
dbadc56a 1645
a93f15c0
JF
1646# ac_fn_c_try_compile LINENO
1647# --------------------------
a243b558 1648# Try to compile conftest.$ac_ext, and return whether this succeeded.
a93f15c0 1649ac_fn_c_try_compile ()
a243b558
JF
1650{
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 rm -f conftest.$ac_objext
1653 if { { ac_try="$ac_compile"
1654case "(($ac_try" in
1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656 *) ac_try_echo=$ac_try;;
1657esac
1658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659$as_echo "$ac_try_echo"; } >&5
1660 (eval "$ac_compile") 2>conftest.err
1661 ac_status=$?
1662 if test -s conftest.err; then
1663 grep -v '^ *+' conftest.err >conftest.er1
1664 cat conftest.er1 >&5
1665 mv -f conftest.er1 conftest.err
1666 fi
1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668 test $ac_status = 0; } && {
a93f15c0 1669 test -z "$ac_c_werror_flag" ||
a243b558
JF
1670 test ! -s conftest.err
1671 } && test -s conftest.$ac_objext; then :
1672 ac_retval=0
1673else
1674 $as_echo "$as_me: failed program was:" >&5
1675sed 's/^/| /' conftest.$ac_ext >&5
1676
1677 ac_retval=1
1678fi
1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680 as_fn_set_status $ac_retval
1681
a93f15c0 1682} # ac_fn_c_try_compile
a243b558 1683
a93f15c0
JF
1684# ac_fn_cxx_try_compile LINENO
1685# ----------------------------
a243b558 1686# Try to compile conftest.$ac_ext, and return whether this succeeded.
a93f15c0 1687ac_fn_cxx_try_compile ()
a243b558
JF
1688{
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 rm -f conftest.$ac_objext
1691 if { { ac_try="$ac_compile"
1692case "(($ac_try" in
1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694 *) ac_try_echo=$ac_try;;
1695esac
1696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697$as_echo "$ac_try_echo"; } >&5
1698 (eval "$ac_compile") 2>conftest.err
1699 ac_status=$?
1700 if test -s conftest.err; then
1701 grep -v '^ *+' conftest.err >conftest.er1
1702 cat conftest.er1 >&5
1703 mv -f conftest.er1 conftest.err
1704 fi
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; } && {
a93f15c0 1707 test -z "$ac_cxx_werror_flag" ||
a243b558
JF
1708 test ! -s conftest.err
1709 } && test -s conftest.$ac_objext; then :
1710 ac_retval=0
1711else
1712 $as_echo "$as_me: failed program was:" >&5
1713sed 's/^/| /' conftest.$ac_ext >&5
1714
1715 ac_retval=1
1716fi
1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718 as_fn_set_status $ac_retval
1719
a93f15c0 1720} # ac_fn_cxx_try_compile
a243b558 1721
a93f15c0
JF
1722# ac_fn_objcxx_try_compile LINENO
1723# -------------------------------
35fa52c0 1724# Try to compile conftest.$ac_ext, and return whether this succeeded.
a93f15c0 1725ac_fn_objcxx_try_compile ()
35fa52c0
DWT
1726{
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 rm -f conftest.$ac_objext
1729 if { { ac_try="$ac_compile"
1730case "(($ac_try" in
1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732 *) ac_try_echo=$ac_try;;
1733esac
1734eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735$as_echo "$ac_try_echo"; } >&5
1736 (eval "$ac_compile") 2>conftest.err
1737 ac_status=$?
1738 if test -s conftest.err; then
1739 grep -v '^ *+' conftest.err >conftest.er1
1740 cat conftest.er1 >&5
1741 mv -f conftest.er1 conftest.err
1742 fi
1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744 test $ac_status = 0; } && {
a93f15c0 1745 test -z "$ac_objcxx_werror_flag" ||
35fa52c0
DWT
1746 test ! -s conftest.err
1747 } && test -s conftest.$ac_objext; then :
1748 ac_retval=0
1749else
1750 $as_echo "$as_me: failed program was:" >&5
1751sed 's/^/| /' conftest.$ac_ext >&5
1752
1753 ac_retval=1
1754fi
ee134472 1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1756 as_fn_set_status $ac_retval
35fa52c0 1757
a93f15c0 1758} # ac_fn_objcxx_try_compile
35fa52c0 1759
8d20f0f1
JF
1760# ac_fn_c_try_cpp LINENO
1761# ----------------------
1762# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1763ac_fn_c_try_cpp ()
1764{
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 if { { ac_try="$ac_cpp conftest.$ac_ext"
1767case "(($ac_try" in
1768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769 *) ac_try_echo=$ac_try;;
1770esac
1771eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772$as_echo "$ac_try_echo"; } >&5
1773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1774 ac_status=$?
1775 if test -s conftest.err; then
1776 grep -v '^ *+' conftest.err >conftest.er1
1777 cat conftest.er1 >&5
1778 mv -f conftest.er1 conftest.err
1779 fi
1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; } > conftest.i && {
1782 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1783 test ! -s conftest.err
1784 }; then :
1785 ac_retval=0
1786else
1787 $as_echo "$as_me: failed program was:" >&5
1788sed 's/^/| /' conftest.$ac_ext >&5
1789
1790 ac_retval=1
1791fi
1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793 as_fn_set_status $ac_retval
1794
1795} # ac_fn_c_try_cpp
1796
1797# ac_fn_cxx_try_cpp LINENO
1798# ------------------------
1799# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1800ac_fn_cxx_try_cpp ()
1801{
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 if { { ac_try="$ac_cpp conftest.$ac_ext"
1804case "(($ac_try" in
1805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806 *) ac_try_echo=$ac_try;;
1807esac
1808eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809$as_echo "$ac_try_echo"; } >&5
1810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1811 ac_status=$?
1812 if test -s conftest.err; then
1813 grep -v '^ *+' conftest.err >conftest.er1
1814 cat conftest.er1 >&5
1815 mv -f conftest.er1 conftest.err
1816 fi
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } > conftest.i && {
1819 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1820 test ! -s conftest.err
1821 }; then :
1822 ac_retval=0
1823else
1824 $as_echo "$as_me: failed program was:" >&5
1825sed 's/^/| /' conftest.$ac_ext >&5
1826
1827 ac_retval=1
1828fi
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830 as_fn_set_status $ac_retval
1831
1832} # ac_fn_cxx_try_cpp
1833
35fa52c0
DWT
1834# ac_fn_c_try_link LINENO
1835# -----------------------
1836# Try to link conftest.$ac_ext, and return whether this succeeded.
1837ac_fn_c_try_link ()
1838{
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 rm -f conftest.$ac_objext conftest$ac_exeext
1841 if { { ac_try="$ac_link"
1842case "(($ac_try" in
1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1845esac
1846eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847$as_echo "$ac_try_echo"; } >&5
1848 (eval "$ac_link") 2>conftest.err
1849 ac_status=$?
1850 if test -s conftest.err; then
1851 grep -v '^ *+' conftest.err >conftest.er1
1852 cat conftest.er1 >&5
1853 mv -f conftest.er1 conftest.err
1854 fi
1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856 test $ac_status = 0; } && {
1857 test -z "$ac_c_werror_flag" ||
1858 test ! -s conftest.err
1859 } && test -s conftest$ac_exeext && {
1860 test "$cross_compiling" = yes ||
53ba6704 1861 test -x conftest$ac_exeext
35fa52c0
DWT
1862 }; then :
1863 ac_retval=0
1864else
1865 $as_echo "$as_me: failed program was:" >&5
1866sed 's/^/| /' conftest.$ac_ext >&5
1867
1868 ac_retval=1
1869fi
1870 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1871 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1872 # interfere with the next link command; also delete a directory that is
1873 # left behind by Apple's compiler. We do this before executing the actions.
1874 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1876 as_fn_set_status $ac_retval
35fa52c0
DWT
1877
1878} # ac_fn_c_try_link
1879
9c60689e
DWT
1880# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1881# -------------------------------------------------------
1882# Tests whether HEADER exists and can be compiled using the include files in
1883# INCLUDES, setting the cache variable VAR accordingly.
1884ac_fn_c_check_header_compile ()
dbadc56a
DWT
1885{
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1888$as_echo_n "checking for $2... " >&6; }
ee134472 1889if eval \${$3+:} false; then :
9c60689e
DWT
1890 $as_echo_n "(cached) " >&6
1891else
1892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893/* end confdefs.h. */
1894$4
1895#include <$2>
1896_ACEOF
1897if ac_fn_c_try_compile "$LINENO"; then :
1898 eval "$3=yes"
1899else
1900 eval "$3=no"
1901fi
1902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1903fi
1904eval ac_res=\$$3
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1906$as_echo "$ac_res" >&6; }
ee134472 1907 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
1908
1909} # ac_fn_c_check_header_compile
1910
35fa52c0
DWT
1911# ac_fn_c_try_run LINENO
1912# ----------------------
1913# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1914# that executables *can* be run.
1915ac_fn_c_try_run ()
1916{
1917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918 if { { ac_try="$ac_link"
1919case "(($ac_try" in
1920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1921 *) ac_try_echo=$ac_try;;
1922esac
1923eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1924$as_echo "$ac_try_echo"; } >&5
1925 (eval "$ac_link") 2>&5
1926 ac_status=$?
1927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1928 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1929 { { case "(($ac_try" in
1930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1931 *) ac_try_echo=$ac_try;;
1932esac
1933eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1934$as_echo "$ac_try_echo"; } >&5
1935 (eval "$ac_try") 2>&5
1936 ac_status=$?
1937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1938 test $ac_status = 0; }; }; then :
1939 ac_retval=0
1940else
1941 $as_echo "$as_me: program exited with status $ac_status" >&5
1942 $as_echo "$as_me: failed program was:" >&5
1943sed 's/^/| /' conftest.$ac_ext >&5
1944
1945 ac_retval=$ac_status
1946fi
1947 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 1948 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1949 as_fn_set_status $ac_retval
35fa52c0
DWT
1950
1951} # ac_fn_c_try_run
6b66678a 1952
9c60689e
DWT
1953# ac_fn_c_check_func LINENO FUNC VAR
1954# ----------------------------------
1955# Tests whether FUNC exists, setting the cache variable VAR accordingly
1956ac_fn_c_check_func ()
6b66678a
DWT
1957{
1958 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1960$as_echo_n "checking for $2... " >&6; }
ee134472 1961if eval \${$3+:} false; then :
9c60689e 1962 $as_echo_n "(cached) " >&6
6b66678a 1963else
9c60689e
DWT
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965/* end confdefs.h. */
1966/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1968#define $2 innocuous_$2
6b66678a 1969
9c60689e
DWT
1970/* System header to define __stub macros and hopefully few prototypes,
1971 which can conflict with char $2 (); below.
1972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1973 <limits.h> exists even on freestanding compilers. */
1974
1975#ifdef __STDC__
1976# include <limits.h>
1977#else
1978# include <assert.h>
1979#endif
1980
1981#undef $2
1982
1983/* Override any GCC internal prototype to avoid an error.
1984 Use char because int might match the return type of a GCC
1985 builtin and then its argument prototype would still apply. */
1986#ifdef __cplusplus
1987extern "C"
1988#endif
1989char $2 ();
1990/* The GNU C library defines this for functions which it implements
1991 to always fail with ENOSYS. Some functions are actually named
1992 something starting with __ and the normal name is an alias. */
1993#if defined __stub_$2 || defined __stub___$2
1994choke me
1995#endif
1996
1997int
1998main ()
1999{
2000return $2 ();
2001 ;
2002 return 0;
2003}
2004_ACEOF
2005if ac_fn_c_try_link "$LINENO"; then :
2006 eval "$3=yes"
2007else
2008 eval "$3=no"
2009fi
2010rm -f core conftest.err conftest.$ac_objext \
2011 conftest$ac_exeext conftest.$ac_ext
6b66678a 2012fi
9c60689e
DWT
2013eval ac_res=\$$3
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2015$as_echo "$ac_res" >&6; }
ee134472 2016 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6b66678a 2017
9c60689e 2018} # ac_fn_c_check_func
6b66678a 2019
9c60689e
DWT
2020# ac_fn_cxx_try_link LINENO
2021# -------------------------
2022# Try to link conftest.$ac_ext, and return whether this succeeded.
2023ac_fn_cxx_try_link ()
2024{
2025 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2026 rm -f conftest.$ac_objext conftest$ac_exeext
2027 if { { ac_try="$ac_link"
2028case "(($ac_try" in
2029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2030 *) ac_try_echo=$ac_try;;
2031esac
2032eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2033$as_echo "$ac_try_echo"; } >&5
2034 (eval "$ac_link") 2>conftest.err
2035 ac_status=$?
2036 if test -s conftest.err; then
2037 grep -v '^ *+' conftest.err >conftest.er1
2038 cat conftest.er1 >&5
2039 mv -f conftest.er1 conftest.err
2040 fi
2041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2042 test $ac_status = 0; } && {
2043 test -z "$ac_cxx_werror_flag" ||
2044 test ! -s conftest.err
2045 } && test -s conftest$ac_exeext && {
2046 test "$cross_compiling" = yes ||
53ba6704 2047 test -x conftest$ac_exeext
9c60689e
DWT
2048 }; then :
2049 ac_retval=0
2050else
2051 $as_echo "$as_me: failed program was:" >&5
2052sed 's/^/| /' conftest.$ac_ext >&5
2053
2054 ac_retval=1
2055fi
2056 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2057 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2058 # interfere with the next link command; also delete a directory that is
2059 # left behind by Apple's compiler. We do this before executing the actions.
2060 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 2061 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
2062 as_fn_set_status $ac_retval
2063
2064} # ac_fn_cxx_try_link
2065
47aaa820
DWT
2066# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2067# ---------------------------------------------------------
2068# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2069# the include files in INCLUDES and setting the cache variable VAR
2070# accordingly.
2071ac_fn_cxx_check_header_mongrel ()
2072{
2073 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
ee134472 2074 if eval \${$3+:} false; then :
47aaa820
DWT
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2076$as_echo_n "checking for $2... " >&6; }
ee134472 2077if eval \${$3+:} false; then :
47aaa820
DWT
2078 $as_echo_n "(cached) " >&6
2079fi
2080eval ac_res=\$$3
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2082$as_echo "$ac_res" >&6; }
2083else
2084 # Is the header compilable?
2085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2086$as_echo_n "checking $2 usability... " >&6; }
2087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088/* end confdefs.h. */
2089$4
2090#include <$2>
2091_ACEOF
2092if ac_fn_cxx_try_compile "$LINENO"; then :
2093 ac_header_compiler=yes
2094else
2095 ac_header_compiler=no
2096fi
2097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2099$as_echo "$ac_header_compiler" >&6; }
2100
2101# Is the header present?
2102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2103$as_echo_n "checking $2 presence... " >&6; }
2104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105/* end confdefs.h. */
2106#include <$2>
2107_ACEOF
2108if ac_fn_cxx_try_cpp "$LINENO"; then :
2109 ac_header_preproc=yes
2110else
2111 ac_header_preproc=no
2112fi
12833ad8 2113rm -f conftest.err conftest.i conftest.$ac_ext
47aaa820
DWT
2114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2115$as_echo "$ac_header_preproc" >&6; }
2116
2117# So? What about this header?
2118case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2119 yes:no: )
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2121$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2123$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2124 ;;
2125 no:yes:* )
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2127$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2129$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2131$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2133$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2135$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
12833ad8 2136( $as_echo "## -------------------------------- ##
47aaa820 2137## Report this to saurik@saurik.com ##
12833ad8 2138## -------------------------------- ##"
47aaa820
DWT
2139 ) | sed "s/^/$as_me: WARNING: /" >&2
2140 ;;
2141esac
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2143$as_echo_n "checking for $2... " >&6; }
ee134472 2144if eval \${$3+:} false; then :
47aaa820
DWT
2145 $as_echo_n "(cached) " >&6
2146else
2147 eval "$3=\$ac_header_compiler"
2148fi
2149eval ac_res=\$$3
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2151$as_echo "$ac_res" >&6; }
2152fi
ee134472 2153 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
47aaa820
DWT
2154
2155} # ac_fn_cxx_check_header_mongrel
2156
c823f118
DWT
2157# ac_fn_objcxx_try_link LINENO
2158# ----------------------------
2159# Try to link conftest.$ac_ext, and return whether this succeeded.
2160ac_fn_objcxx_try_link ()
2161{
2162 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2163 rm -f conftest.$ac_objext conftest$ac_exeext
2164 if { { ac_try="$ac_link"
2165case "(($ac_try" in
2166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2167 *) ac_try_echo=$ac_try;;
2168esac
2169eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2170$as_echo "$ac_try_echo"; } >&5
2171 (eval "$ac_link") 2>conftest.err
2172 ac_status=$?
2173 if test -s conftest.err; then
2174 grep -v '^ *+' conftest.err >conftest.er1
2175 cat conftest.er1 >&5
2176 mv -f conftest.er1 conftest.err
2177 fi
2178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2179 test $ac_status = 0; } && {
2180 test -z "$ac_objcxx_werror_flag" ||
2181 test ! -s conftest.err
2182 } && test -s conftest$ac_exeext && {
2183 test "$cross_compiling" = yes ||
53ba6704 2184 test -x conftest$ac_exeext
c823f118
DWT
2185 }; then :
2186 ac_retval=0
2187else
2188 $as_echo "$as_me: failed program was:" >&5
2189sed 's/^/| /' conftest.$ac_ext >&5
2190
2191 ac_retval=1
2192fi
2193 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2194 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2195 # interfere with the next link command; also delete a directory that is
2196 # left behind by Apple's compiler. We do this before executing the actions.
2197 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 2198 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
c823f118
DWT
2199 as_fn_set_status $ac_retval
2200
2201} # ac_fn_objcxx_try_link
c7aa54aa
DWT
2202cat >config.log <<_ACEOF
2203This file contains any messages produced by compilers while
2204running configure, to aid debugging if configure makes a mistake.
2205
2206It was created by Cycript $as_me 0.9, which was
53ba6704 2207generated by GNU Autoconf 2.69. Invocation command line was
c7aa54aa
DWT
2208
2209 $ $0 $@
2210
2211_ACEOF
2212exec 5>>config.log
2213{
2214cat <<_ASUNAME
2215## --------- ##
2216## Platform. ##
2217## --------- ##
2218
2219hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2220uname -m = `(uname -m) 2>/dev/null || echo unknown`
2221uname -r = `(uname -r) 2>/dev/null || echo unknown`
2222uname -s = `(uname -s) 2>/dev/null || echo unknown`
2223uname -v = `(uname -v) 2>/dev/null || echo unknown`
2224
2225/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2226/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2227
2228/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2229/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2230/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2231/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2232/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2233/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2234/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2235
2236_ASUNAME
2237
2238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2239for as_dir in $PATH
2240do
2241 IFS=$as_save_IFS
2242 test -z "$as_dir" && as_dir=.
2243 $as_echo "PATH: $as_dir"
2244 done
2245IFS=$as_save_IFS
2246
2247} >&5
2248
2249cat >&5 <<_ACEOF
2250
2251
2252## ----------- ##
2253## Core tests. ##
2254## ----------- ##
2255
2256_ACEOF
2257
2258
2259# Keep a trace of the command line.
2260# Strip out --no-create and --no-recursion so they do not pile up.
2261# Strip out --silent because we don't want to record it for future runs.
2262# Also quote any args containing shell meta-characters.
2263# Make two passes to allow for proper duplicate-argument suppression.
2264ac_configure_args=
2265ac_configure_args0=
2266ac_configure_args1=
2267ac_must_keep_next=false
2268for ac_pass in 1 2
2269do
2270 for ac_arg
2271 do
2272 case $ac_arg in
2273 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2274 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2275 | -silent | --silent | --silen | --sile | --sil)
2276 continue ;;
2277 *\'*)
2278 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2279 esac
2280 case $ac_pass in
2281 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2282 2)
2283 as_fn_append ac_configure_args1 " '$ac_arg'"
2284 if test $ac_must_keep_next = true; then
2285 ac_must_keep_next=false # Got value, back to normal.
2286 else
2287 case $ac_arg in
2288 *=* | --config-cache | -C | -disable-* | --disable-* \
2289 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2290 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2291 | -with-* | --with-* | -without-* | --without-* | --x)
2292 case "$ac_configure_args0 " in
2293 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2294 esac
2295 ;;
2296 -* ) ac_must_keep_next=true ;;
2297 esac
2298 fi
2299 as_fn_append ac_configure_args " '$ac_arg'"
2300 ;;
2301 esac
2302 done
2303done
2304{ ac_configure_args0=; unset ac_configure_args0;}
2305{ ac_configure_args1=; unset ac_configure_args1;}
2306
2307# When interrupted or exit'd, cleanup temporary files, and complete
2308# config.log. We remove comments because anyway the quotes in there
2309# would cause problems or look ugly.
2310# WARNING: Use '\'' to represent an apostrophe within the trap.
2311# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2312trap 'exit_status=$?
2313 # Save into config.log some information that might help in debugging.
2314 {
2315 echo
2316
12833ad8 2317 $as_echo "## ---------------- ##
c7aa54aa 2318## Cache variables. ##
12833ad8 2319## ---------------- ##"
c7aa54aa
DWT
2320 echo
2321 # The following way of writing the cache mishandles newlines in values,
2322(
2323 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2324 eval ac_val=\$$ac_var
2325 case $ac_val in #(
2326 *${as_nl}*)
2327 case $ac_var in #(
2328 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2329$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2330 esac
2331 case $ac_var in #(
2332 _ | IFS | as_nl) ;; #(
2333 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2334 *) { eval $ac_var=; unset $ac_var;} ;;
2335 esac ;;
2336 esac
2337 done
2338 (set) 2>&1 |
2339 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2340 *${as_nl}ac_space=\ *)
2341 sed -n \
2342 "s/'\''/'\''\\\\'\'''\''/g;
2343 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2344 ;; #(
2345 *)
2346 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2347 ;;
2348 esac |
2349 sort
2350)
2351 echo
2352
12833ad8 2353 $as_echo "## ----------------- ##
c7aa54aa 2354## Output variables. ##
12833ad8 2355## ----------------- ##"
c7aa54aa
DWT
2356 echo
2357 for ac_var in $ac_subst_vars
2358 do
2359 eval ac_val=\$$ac_var
2360 case $ac_val in
2361 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2362 esac
2363 $as_echo "$ac_var='\''$ac_val'\''"
2364 done | sort
2365 echo
2366
2367 if test -n "$ac_subst_files"; then
12833ad8 2368 $as_echo "## ------------------- ##
c7aa54aa 2369## File substitutions. ##
12833ad8 2370## ------------------- ##"
c7aa54aa
DWT
2371 echo
2372 for ac_var in $ac_subst_files
2373 do
2374 eval ac_val=\$$ac_var
2375 case $ac_val in
2376 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2377 esac
2378 $as_echo "$ac_var='\''$ac_val'\''"
2379 done | sort
2380 echo
2381 fi
2382
2383 if test -s confdefs.h; then
12833ad8 2384 $as_echo "## ----------- ##
c7aa54aa 2385## confdefs.h. ##
12833ad8 2386## ----------- ##"
c7aa54aa
DWT
2387 echo
2388 cat confdefs.h
2389 echo
2390 fi
2391 test "$ac_signal" != 0 &&
2392 $as_echo "$as_me: caught signal $ac_signal"
2393 $as_echo "$as_me: exit $exit_status"
2394 } >&5
2395 rm -f core *.core core.conftest.* &&
2396 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2397 exit $exit_status
2398' 0
2399for ac_signal in 1 2 13 15; do
2400 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2401done
2402ac_signal=0
2403
2404# confdefs.h avoids OS command line length limits that DEFS can exceed.
2405rm -f -r conftest* confdefs.h
2406
2407$as_echo "/* confdefs.h */" > confdefs.h
2408
2409# Predefined preprocessor variables.
2410
2411cat >>confdefs.h <<_ACEOF
2412#define PACKAGE_NAME "$PACKAGE_NAME"
2413_ACEOF
2414
2415cat >>confdefs.h <<_ACEOF
2416#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2417_ACEOF
2418
2419cat >>confdefs.h <<_ACEOF
2420#define PACKAGE_VERSION "$PACKAGE_VERSION"
2421_ACEOF
2422
2423cat >>confdefs.h <<_ACEOF
2424#define PACKAGE_STRING "$PACKAGE_STRING"
2425_ACEOF
2426
2427cat >>confdefs.h <<_ACEOF
2428#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2429_ACEOF
2430
2431cat >>confdefs.h <<_ACEOF
2432#define PACKAGE_URL "$PACKAGE_URL"
2433_ACEOF
2434
2435
2436# Let the site file select an alternate cache file if it wants to.
2437# Prefer an explicitly selected file to automatically selected ones.
2438ac_site_file1=NONE
2439ac_site_file2=NONE
2440if test -n "$CONFIG_SITE"; then
12833ad8
JF
2441 # We do not want a PATH search for config.site.
2442 case $CONFIG_SITE in #((
2443 -*) ac_site_file1=./$CONFIG_SITE;;
2444 */*) ac_site_file1=$CONFIG_SITE;;
2445 *) ac_site_file1=./$CONFIG_SITE;;
2446 esac
c7aa54aa
DWT
2447elif test "x$prefix" != xNONE; then
2448 ac_site_file1=$prefix/share/config.site
2449 ac_site_file2=$prefix/etc/config.site
2450else
2451 ac_site_file1=$ac_default_prefix/share/config.site
2452 ac_site_file2=$ac_default_prefix/etc/config.site
2453fi
2454for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2455do
2456 test "x$ac_site_file" = xNONE && continue
9c60689e 2457 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
c7aa54aa
DWT
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2459$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2460 sed 's/^/| /' "$ac_site_file" >&5
12833ad8
JF
2461 . "$ac_site_file" \
2462 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2463$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2464as_fn_error $? "failed to load site script $ac_site_file
ee134472 2465See \`config.log' for more details" "$LINENO" 5; }
c7aa54aa
DWT
2466 fi
2467done
2468
2469if test -r "$cache_file"; then
9c60689e
DWT
2470 # Some versions of bash will fail to source /dev/null (special files
2471 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2472 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
c7aa54aa
DWT
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2474$as_echo "$as_me: loading cache $cache_file" >&6;}
2475 case $cache_file in
2476 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2477 *) . "./$cache_file";;
2478 esac
2479 fi
2480else
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2482$as_echo "$as_me: creating cache $cache_file" >&6;}
2483 >$cache_file
2484fi
2485
2486# Check that the precious variables saved in the cache have kept the same
2487# value.
2488ac_cache_corrupted=false
2489for ac_var in $ac_precious_vars; do
2490 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2491 eval ac_new_set=\$ac_env_${ac_var}_set
2492 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2493 eval ac_new_val=\$ac_env_${ac_var}_value
2494 case $ac_old_set,$ac_new_set in
2495 set,)
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2497$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2498 ac_cache_corrupted=: ;;
2499 ,set)
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2501$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2502 ac_cache_corrupted=: ;;
2503 ,);;
2504 *)
2505 if test "x$ac_old_val" != "x$ac_new_val"; then
2506 # differences in whitespace do not lead to failure.
2507 ac_old_val_w=`echo x $ac_old_val`
2508 ac_new_val_w=`echo x $ac_new_val`
2509 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2511$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2512 ac_cache_corrupted=:
2513 else
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2515$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2516 eval $ac_var=\$ac_old_val
2517 fi
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2519$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2521$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2522 fi;;
2523 esac
2524 # Pass precious variables to config.status.
2525 if test "$ac_new_set" = set; then
2526 case $ac_new_val in
2527 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2528 *) ac_arg=$ac_var=$ac_new_val ;;
2529 esac
2530 case " $ac_configure_args " in
2531 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2532 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2533 esac
2534 fi
2535done
2536if $ac_cache_corrupted; then
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2538$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2540$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
12833ad8 2541 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
c7aa54aa
DWT
2542fi
2543## -------------------- ##
2544## Main body of script. ##
2545## -------------------- ##
2546
2547ac_ext=c
2548ac_cpp='$CPP $CPPFLAGS'
2549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2551ac_compiler_gnu=$ac_cv_c_compiler_gnu
2552
2553
66170b30
JF
2554
2555
35fa52c0 2556
6b66678a
DWT
2557ac_aux_dir=
2558for ac_dir in . "$srcdir"/.; do
12833ad8
JF
2559 if test -f "$ac_dir/install-sh"; then
2560 ac_aux_dir=$ac_dir
2561 ac_install_sh="$ac_aux_dir/install-sh -c"
2562 break
2563 elif test -f "$ac_dir/install.sh"; then
2564 ac_aux_dir=$ac_dir
2565 ac_install_sh="$ac_aux_dir/install.sh -c"
2566 break
2567 elif test -f "$ac_dir/shtool"; then
2568 ac_aux_dir=$ac_dir
2569 ac_install_sh="$ac_aux_dir/shtool install -c"
2570 break
2571 fi
6b66678a
DWT
2572done
2573if test -z "$ac_aux_dir"; then
12833ad8 2574 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
6b66678a
DWT
2575fi
2576
2577# These three variables are undocumented and unsupported,
2578# and are intended to be withdrawn in a future Autoconf release.
2579# They can cause serious problems if a builder's source tree is in a directory
2580# whose full name contains unusual characters.
2581ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2582ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2583ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2584
2585
9c60689e 2586
296ee9a6
JF
2587ac_config_headers="$ac_config_headers config.h"
2588
9c60689e 2589
795230e5 2590am__api_version='1.15'
9c60689e 2591
66170b30
JF
2592# Find a good install program. We prefer a C program (faster),
2593# so one script is as good as another. But avoid the broken or
2594# incompatible versions:
2595# SysV /etc/install, /usr/sbin/install
2596# SunOS /usr/etc/install
2597# IRIX /sbin/install
2598# AIX /bin/install
2599# AmigaOS /C/install, which installs bootblocks on floppy discs
2600# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2601# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2602# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2603# OS/2's system install, which has a completely different semantic
2604# ./install, which can be erroneously created by make from ./install.sh.
2605# Reject install programs that cannot install multiple files.
2606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2607$as_echo_n "checking for a BSD-compatible install... " >&6; }
2608if test -z "$INSTALL"; then
2609if ${ac_cv_path_install+:} false; then :
2610 $as_echo_n "(cached) " >&6
2611else
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613for as_dir in $PATH
2614do
2615 IFS=$as_save_IFS
2616 test -z "$as_dir" && as_dir=.
2617 # Account for people who put trailing slashes in PATH elements.
2618case $as_dir/ in #((
2619 ./ | .// | /[cC]/* | \
2620 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2621 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2622 /usr/ucb/* ) ;;
2623 *)
2624 # OSF1 and SCO ODT 3.0 have their own names for install.
2625 # Don't use installbsd from OSF since it installs stuff as root
2626 # by default.
2627 for ac_prog in ginstall scoinst install; do
2628 for ac_exec_ext in '' $ac_executable_extensions; do
2629 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2630 if test $ac_prog = install &&
2631 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2632 # AIX install. It has an incompatible calling convention.
2633 :
2634 elif test $ac_prog = install &&
2635 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2636 # program-specific install script used by HP pwplus--don't use.
2637 :
2638 else
2639 rm -rf conftest.one conftest.two conftest.dir
2640 echo one > conftest.one
2641 echo two > conftest.two
2642 mkdir conftest.dir
2643 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2644 test -s conftest.one && test -s conftest.two &&
2645 test -s conftest.dir/conftest.one &&
2646 test -s conftest.dir/conftest.two
2647 then
2648 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2649 break 3
2650 fi
2651 fi
2652 fi
2653 done
2654 done
2655 ;;
2656esac
9c60689e 2657
66170b30
JF
2658 done
2659IFS=$as_save_IFS
9c60689e 2660
66170b30 2661rm -rf conftest.one conftest.two conftest.dir
9c60689e 2662
66170b30
JF
2663fi
2664 if test "${ac_cv_path_install+set}" = set; then
2665 INSTALL=$ac_cv_path_install
2666 else
2667 # As a last resort, use the slow shell script. Don't cache a
2668 # value for INSTALL within a source directory, because that will
2669 # break other packages using the cache if that directory is
2670 # removed, or if the value is a relative name.
2671 INSTALL=$ac_install_sh
2672 fi
2673fi
2674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2675$as_echo "$INSTALL" >&6; }
9c60689e 2676
66170b30
JF
2677# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2678# It thinks the first close brace ends the variable substitution.
2679test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9c60689e 2680
66170b30 2681test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9c60689e 2682
66170b30 2683test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9c60689e 2684
66170b30
JF
2685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2686$as_echo_n "checking whether build environment is sane... " >&6; }
2687# Reject unsafe characters in $srcdir or the absolute working directory
2688# name. Accept space and tab only in the latter.
2689am_lf='
2690'
2691case `pwd` in
2692 *[\\\"\#\$\&\'\`$am_lf]*)
2693 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2694esac
2695case $srcdir in
2696 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2697 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2698esac
9c60689e 2699
66170b30
JF
2700# Do 'set' in a subshell so we don't clobber the current shell's
2701# arguments. Must try -L first in case configure is actually a
2702# symlink; some systems play weird games with the mod time of symlinks
2703# (eg FreeBSD returns the mod time of the symlink's containing
2704# directory).
2705if (
2706 am_has_slept=no
2707 for am_try in 1 2; do
2708 echo "timestamp, slept: $am_has_slept" > conftest.file
2709 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2710 if test "$*" = "X"; then
2711 # -L didn't work.
2712 set X `ls -t "$srcdir/configure" conftest.file`
2713 fi
2714 if test "$*" != "X $srcdir/configure conftest.file" \
2715 && test "$*" != "X conftest.file $srcdir/configure"; then
2716
2717 # If neither matched, then we have a broken ls. This can happen
2718 # if, for instance, CONFIG_SHELL is bash and it inherits a
2719 # broken ls alias from the environment. This has actually
2720 # happened. Such a system could not be considered "sane".
2721 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2722 alias in your environment" "$LINENO" 5
2723 fi
2724 if test "$2" = conftest.file || test $am_try -eq 2; then
2725 break
2726 fi
2727 # Just in case.
2728 sleep 1
2729 am_has_slept=yes
2730 done
2731 test "$2" = conftest.file
2732 )
2733then
2734 # Ok.
2735 :
2736else
2737 as_fn_error $? "newly created file is older than distributed files!
2738Check your system clock" "$LINENO" 5
2739fi
2740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2741$as_echo "yes" >&6; }
2742# If we didn't sleep, we still need to ensure time stamps of config.status and
2743# generated files are strictly newer.
2744am_sleep_pid=
2745if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2746 ( sleep 1 ) &
2747 am_sleep_pid=$!
2748fi
2749
2750rm -f conftest.file
2751
2752test "$program_prefix" != NONE &&
2753 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2754# Use a double $ so make ignores it.
2755test "$program_suffix" != NONE &&
2756 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2757# Double any \ or $.
2758# By default was `s,x,x', remove it if useless.
2759ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2760program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2761
795230e5
JF
2762# Expand $ac_aux_dir to an absolute path.
2763am_aux_dir=`cd "$ac_aux_dir" && pwd`
66170b30
JF
2764
2765if test x"${MISSING+set}" != xset; then
2766 case $am_aux_dir in
2767 *\ * | *\ *)
2768 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2769 *)
2770 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2771 esac
2772fi
2773# Use eval to expand $SHELL
2774if eval "$MISSING --is-lightweight"; then
2775 am_missing_run="$MISSING "
2776else
2777 am_missing_run=
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2779$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2780fi
9c60689e 2781
795230e5 2782if test x"${install_sh+set}" != xset; then
66170b30
JF
2783 case $am_aux_dir in
2784 *\ * | *\ *)
2785 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2786 *)
2787 install_sh="\${SHELL} $am_aux_dir/install-sh"
2788 esac
2789fi
9c60689e 2790
66170b30
JF
2791# Installed binaries are usually stripped using 'strip' when the user
2792# run "make install-strip". However 'strip' might not be the right
2793# tool to use in cross-compilation environments, therefore Automake
2794# will honor the 'STRIP' environment variable to overrule this program.
2795if test "$cross_compiling" != no; then
2796 if test -n "$ac_tool_prefix"; then
2797 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2798set dummy ${ac_tool_prefix}strip; ac_word=$2
2799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2800$as_echo_n "checking for $ac_word... " >&6; }
2801if ${ac_cv_prog_STRIP+:} false; then :
2802 $as_echo_n "(cached) " >&6
2803else
2804 if test -n "$STRIP"; then
2805 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2806else
2807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808for as_dir in $PATH
2809do
2810 IFS=$as_save_IFS
2811 test -z "$as_dir" && as_dir=.
2812 for ac_exec_ext in '' $ac_executable_extensions; do
2813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2814 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2816 break 2
2817 fi
2818done
2819 done
2820IFS=$as_save_IFS
9c60689e 2821
66170b30
JF
2822fi
2823fi
2824STRIP=$ac_cv_prog_STRIP
2825if test -n "$STRIP"; then
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2827$as_echo "$STRIP" >&6; }
2828else
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2830$as_echo "no" >&6; }
2831fi
9c60689e 2832
9c60689e 2833
66170b30
JF
2834fi
2835if test -z "$ac_cv_prog_STRIP"; then
2836 ac_ct_STRIP=$STRIP
2837 # Extract the first word of "strip", so it can be a program name with args.
2838set dummy strip; ac_word=$2
2839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2840$as_echo_n "checking for $ac_word... " >&6; }
2841if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9c60689e
DWT
2842 $as_echo_n "(cached) " >&6
2843else
66170b30
JF
2844 if test -n "$ac_ct_STRIP"; then
2845 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2846else
2847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848for as_dir in $PATH
2849do
2850 IFS=$as_save_IFS
2851 test -z "$as_dir" && as_dir=.
2852 for ac_exec_ext in '' $ac_executable_extensions; do
2853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2854 ac_cv_prog_ac_ct_STRIP="strip"
2855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2856 break 2
2857 fi
2858done
2859 done
2860IFS=$as_save_IFS
9c60689e
DWT
2861
2862fi
66170b30
JF
2863fi
2864ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2865if test -n "$ac_ct_STRIP"; then
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2867$as_echo "$ac_ct_STRIP" >&6; }
2868else
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2870$as_echo "no" >&6; }
2871fi
2872
2873 if test "x$ac_ct_STRIP" = x; then
2874 STRIP=":"
2875 else
2876 case $cross_compiling:$ac_tool_warned in
2877yes:)
2878{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2879$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2880ac_tool_warned=yes ;;
9c60689e 2881esac
66170b30
JF
2882 STRIP=$ac_ct_STRIP
2883 fi
2884else
2885 STRIP="$ac_cv_prog_STRIP"
2886fi
9c60689e 2887
66170b30
JF
2888fi
2889INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9c60689e 2890
66170b30
JF
2891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2892$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2893if test -z "$MKDIR_P"; then
2894 if ${ac_cv_path_mkdir+:} false; then :
9c60689e
DWT
2895 $as_echo_n "(cached) " >&6
2896else
66170b30
JF
2897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2899do
2900 IFS=$as_save_IFS
2901 test -z "$as_dir" && as_dir=.
2902 for ac_prog in mkdir gmkdir; do
2903 for ac_exec_ext in '' $ac_executable_extensions; do
2904 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2905 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2906 'mkdir (GNU coreutils) '* | \
2907 'mkdir (coreutils) '* | \
2908 'mkdir (fileutils) '4.1*)
2909 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2910 break 3;;
2911 esac
2912 done
2913 done
2914 done
2915IFS=$as_save_IFS
2916
2917fi
2918
2919 test -d ./--version && rmdir ./--version
2920 if test "${ac_cv_path_mkdir+set}" = set; then
2921 MKDIR_P="$ac_cv_path_mkdir -p"
2922 else
2923 # As a last resort, use the slow shell script. Don't cache a
2924 # value for MKDIR_P within a source directory, because that will
2925 # break other packages using the cache if that directory is
2926 # removed, or if the value is a relative name.
2927 MKDIR_P="$ac_install_sh -d"
2928 fi
2929fi
2930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2931$as_echo "$MKDIR_P" >&6; }
2932
2933for ac_prog in gawk mawk nawk awk
2934do
2935 # Extract the first word of "$ac_prog", so it can be a program name with args.
2936set dummy $ac_prog; ac_word=$2
2937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2938$as_echo_n "checking for $ac_word... " >&6; }
2939if ${ac_cv_prog_AWK+:} false; then :
2940 $as_echo_n "(cached) " >&6
2941else
2942 if test -n "$AWK"; then
2943 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2944else
2945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946for as_dir in $PATH
2947do
2948 IFS=$as_save_IFS
2949 test -z "$as_dir" && as_dir=.
2950 for ac_exec_ext in '' $ac_executable_extensions; do
2951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2952 ac_cv_prog_AWK="$ac_prog"
2953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2954 break 2
2955 fi
2956done
2957 done
2958IFS=$as_save_IFS
2959
2960fi
2961fi
2962AWK=$ac_cv_prog_AWK
2963if test -n "$AWK"; then
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2965$as_echo "$AWK" >&6; }
2966else
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2968$as_echo "no" >&6; }
2969fi
2970
2971
2972 test -n "$AWK" && break
2973done
2974
2975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2976$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2977set x ${MAKE-make}
2978ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2979if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2980 $as_echo_n "(cached) " >&6
2981else
2982 cat >conftest.make <<\_ACEOF
2983SHELL = /bin/sh
2984all:
2985 @echo '@@@%%%=$(MAKE)=@@@%%%'
2986_ACEOF
2987# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2988case `${MAKE-make} -f conftest.make 2>/dev/null` in
2989 *@@@%%%=?*=@@@%%%*)
2990 eval ac_cv_prog_make_${ac_make}_set=yes;;
2991 *)
2992 eval ac_cv_prog_make_${ac_make}_set=no;;
2993esac
2994rm -f conftest.make
2995fi
2996if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2998$as_echo "yes" >&6; }
2999 SET_MAKE=
3000else
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3002$as_echo "no" >&6; }
3003 SET_MAKE="MAKE=${MAKE-make}"
3004fi
3005
3006rm -rf .tst 2>/dev/null
3007mkdir .tst 2>/dev/null
3008if test -d .tst; then
3009 am__leading_dot=.
3010else
3011 am__leading_dot=_
3012fi
3013rmdir .tst 2>/dev/null
3014
3015# Check whether --enable-silent-rules was given.
3016if test "${enable_silent_rules+set}" = set; then :
3017 enableval=$enable_silent_rules;
3018fi
3019
3020case $enable_silent_rules in # (((
3021 yes) AM_DEFAULT_VERBOSITY=0;;
3022 no) AM_DEFAULT_VERBOSITY=1;;
3023 *) AM_DEFAULT_VERBOSITY=1;;
3024esac
3025am_make=${MAKE-make}
3026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3027$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3028if ${am_cv_make_support_nested_variables+:} false; then :
3029 $as_echo_n "(cached) " >&6
3030else
3031 if $as_echo 'TRUE=$(BAR$(V))
3032BAR0=false
3033BAR1=true
3034V=1
3035am__doit:
3036 @$(TRUE)
3037.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3038 am_cv_make_support_nested_variables=yes
3039else
3040 am_cv_make_support_nested_variables=no
3041fi
3042fi
3043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3044$as_echo "$am_cv_make_support_nested_variables" >&6; }
3045if test $am_cv_make_support_nested_variables = yes; then
3046 AM_V='$(V)'
3047 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3048else
3049 AM_V=$AM_DEFAULT_VERBOSITY
3050 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3051fi
3052AM_BACKSLASH='\'
3053
3054if test "`cd $srcdir && pwd`" != "`pwd`"; then
3055 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3056 # is not polluted with repeated "-I."
3057 am__isrc=' -I$(srcdir)'
3058 # test to see if srcdir already configured
3059 if test -f $srcdir/config.status; then
3060 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3061 fi
3062fi
3063
3064# test whether we have cygpath
3065if test -z "$CYGPATH_W"; then
3066 if (cygpath --version) >/dev/null 2>/dev/null; then
3067 CYGPATH_W='cygpath -w'
3068 else
3069 CYGPATH_W=echo
3070 fi
3071fi
3072
3073
3074# Define the identity of the package.
3075 PACKAGE='cycript'
3076 VERSION='0.9'
3077
3078
3079cat >>confdefs.h <<_ACEOF
3080#define PACKAGE "$PACKAGE"
3081_ACEOF
3082
3083
3084cat >>confdefs.h <<_ACEOF
3085#define VERSION "$VERSION"
3086_ACEOF
3087
3088# Some tools Automake needs.
3089
3090ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3091
3092
3093AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3094
3095
3096AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3097
3098
3099AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3100
3101
3102MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3103
3104# For better backward compatibility. To be removed once Automake 1.9.x
3105# dies out for good. For more background, see:
3106# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3107# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3108mkdir_p='$(MKDIR_P)'
3109
795230e5
JF
3110# We need awk for the "check" target (and possibly the TAP driver). The
3111# system "awk" is bad on some platforms.
66170b30
JF
3112# Always define AMTAR for backward compatibility. Yes, it's still used
3113# in the wild :-( We should find a proper way to deprecate it ...
3114AMTAR='$${TAR-tar}'
3115
a93f15c0
JF
3116
3117# We'll loop over all known methods to create a tar archive until one works.
3118_am_tools='gnutar pax cpio none'
3119
66170b30
JF
3120am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3121
3122
3123
3124
3125
66170b30 3126
a93f15c0
JF
3127# POSIX will say in a future version that running "rm -f" with no argument
3128# is OK; and we want to be able to make that assumption in our Makefile
3129# recipes. So use an aggressive probe to check that the usage we want is
3130# actually supported "in the wild" to an acceptable degree.
3131# See automake bug#10828.
3132# To make any issue more visible, cause the running configure to be aborted
3133# by default if the 'rm' program in use doesn't match our expectations; the
3134# user can still override this though.
3135if rm -f && rm -fr && rm -rf; then : OK; else
3136 cat >&2 <<'END'
3137Oops!
3138
3139Your 'rm' program seems unable to run without file operands specified
3140on the command line, even when the '-f' option is present. This is contrary
3141to the behaviour of most rm programs out there, and not conforming with
3142the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3143
3144Please tell bug-automake@gnu.org about your system, including the value
3145of your $PATH and any error possibly output before this message. This
3146can help us improve future automake versions.
3147
3148END
3149 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3150 echo 'Configuration will proceed anyway, since you have set the' >&2
3151 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3152 echo >&2
3153 else
3154 cat >&2 <<'END'
3155Aborting the configuration process, to ensure you take notice of the issue.
3156
3157You can download and install GNU coreutils to get an 'rm' implementation
3158that behaves properly: <http://www.gnu.org/software/coreutils/>.
3159
3160If you want to complete the configuration process using your problematic
3161'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3162to "yes", and re-run configure.
3163
3164END
3165 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3166 fi
3167fi
3168
795230e5 3169
babf7fe8
JF
3170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3171$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3172 # Check whether --enable-maintainer-mode was given.
3173if test "${enable_maintainer_mode+set}" = set; then :
3174 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3175else
3176 USE_MAINTAINER_MODE=no
3177fi
3178
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3180$as_echo "$USE_MAINTAINER_MODE" >&6; }
3181 if test $USE_MAINTAINER_MODE = yes; then
3182 MAINTAINER_MODE_TRUE=
3183 MAINTAINER_MODE_FALSE='#'
3184else
3185 MAINTAINER_MODE_TRUE='#'
3186 MAINTAINER_MODE_FALSE=
3187fi
3188
3189 MAINT=$MAINTAINER_MODE_TRUE
3190
3191
3192
a93f15c0
JF
3193ac_ext=c
3194ac_cpp='$CPP $CPPFLAGS'
3195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3197ac_compiler_gnu=$ac_cv_c_compiler_gnu
3198if test -n "$ac_tool_prefix"; then
3199 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3200set dummy ${ac_tool_prefix}gcc; ac_word=$2
dbadc56a
DWT
3201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3202$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 3203if ${ac_cv_prog_CC+:} false; then :
dbadc56a
DWT
3204 $as_echo_n "(cached) " >&6
3205else
a93f15c0
JF
3206 if test -n "$CC"; then
3207 ac_cv_prog_CC="$CC" # Let the user override the test.
dbadc56a
DWT
3208else
3209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210for as_dir in $PATH
3211do
3212 IFS=$as_save_IFS
3213 test -z "$as_dir" && as_dir=.
3214 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 3215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 3216 ac_cv_prog_CC="${ac_tool_prefix}gcc"
dbadc56a
DWT
3217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3218 break 2
3219 fi
3220done
3221 done
3222IFS=$as_save_IFS
3223
3224fi
3225fi
a93f15c0
JF
3226CC=$ac_cv_prog_CC
3227if test -n "$CC"; then
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3229$as_echo "$CC" >&6; }
35fa52c0
DWT
3230else
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232$as_echo "no" >&6; }
3233fi
3234
3235
35fa52c0 3236fi
a93f15c0
JF
3237if test -z "$ac_cv_prog_CC"; then
3238 ac_ct_CC=$CC
3239 # Extract the first word of "gcc", so it can be a program name with args.
3240set dummy gcc; ac_word=$2
35fa52c0
DWT
3241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3242$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 3243if ${ac_cv_prog_ac_ct_CC+:} false; then :
35fa52c0
DWT
3244 $as_echo_n "(cached) " >&6
3245else
a93f15c0
JF
3246 if test -n "$ac_ct_CC"; then
3247 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
35fa52c0
DWT
3248else
3249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3250for as_dir in $PATH
3251do
3252 IFS=$as_save_IFS
3253 test -z "$as_dir" && as_dir=.
3254 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 3255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 3256 ac_cv_prog_ac_ct_CC="gcc"
35fa52c0
DWT
3257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3258 break 2
3259 fi
3260done
3261 done
3262IFS=$as_save_IFS
3263
3264fi
3265fi
a93f15c0
JF
3266ac_ct_CC=$ac_cv_prog_ac_ct_CC
3267if test -n "$ac_ct_CC"; then
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3269$as_echo "$ac_ct_CC" >&6; }
35fa52c0
DWT
3270else
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272$as_echo "no" >&6; }
3273fi
3274
a93f15c0
JF
3275 if test "x$ac_ct_CC" = x; then
3276 CC=""
35fa52c0
DWT
3277 else
3278 case $cross_compiling:$ac_tool_warned in
3279yes:)
3280{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3281$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3282ac_tool_warned=yes ;;
3283esac
a93f15c0 3284 CC=$ac_ct_CC
35fa52c0 3285 fi
a93f15c0
JF
3286else
3287 CC="$ac_cv_prog_CC"
35fa52c0
DWT
3288fi
3289
a93f15c0
JF
3290if test -z "$CC"; then
3291 if test -n "$ac_tool_prefix"; then
3292 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3293set dummy ${ac_tool_prefix}cc; ac_word=$2
3294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3295$as_echo_n "checking for $ac_word... " >&6; }
3296if ${ac_cv_prog_CC+:} false; then :
3297 $as_echo_n "(cached) " >&6
3298else
3299 if test -n "$CC"; then
3300 ac_cv_prog_CC="$CC" # Let the user override the test.
3301else
3302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303for as_dir in $PATH
3304do
3305 IFS=$as_save_IFS
3306 test -z "$as_dir" && as_dir=.
3307 for ac_exec_ext in '' $ac_executable_extensions; do
3308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3309 ac_cv_prog_CC="${ac_tool_prefix}cc"
3310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3311 break 2
a243b558 3312 fi
35fa52c0 3313done
a93f15c0
JF
3314 done
3315IFS=$as_save_IFS
35fa52c0 3316
a93f15c0
JF
3317fi
3318fi
3319CC=$ac_cv_prog_CC
3320if test -n "$CC"; then
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3322$as_echo "$CC" >&6; }
3323else
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3325$as_echo "no" >&6; }
3326fi
35fa52c0 3327
35fa52c0 3328
a93f15c0
JF
3329 fi
3330fi
3331if test -z "$CC"; then
3332 # Extract the first word of "cc", so it can be a program name with args.
3333set dummy cc; ac_word=$2
3334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3335$as_echo_n "checking for $ac_word... " >&6; }
3336if ${ac_cv_prog_CC+:} false; then :
3337 $as_echo_n "(cached) " >&6
3338else
3339 if test -n "$CC"; then
3340 ac_cv_prog_CC="$CC" # Let the user override the test.
3341else
3342 ac_prog_rejected=no
3343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3344for as_dir in $PATH
35fa52c0 3345do
a93f15c0
JF
3346 IFS=$as_save_IFS
3347 test -z "$as_dir" && as_dir=.
3348 for ac_exec_ext in '' $ac_executable_extensions; do
3349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3350 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3351 ac_prog_rejected=yes
3352 continue
3353 fi
3354 ac_cv_prog_CC="cc"
3355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3356 break 2
3357 fi
3358done
3359 done
3360IFS=$as_save_IFS
3361
3362if test $ac_prog_rejected = yes; then
3363 # We found a bogon in the path, so make sure we never use it.
3364 set dummy $ac_cv_prog_CC
3365 shift
3366 if test $# != 0; then
3367 # We chose a different compiler from the bogus one.
3368 # However, it has the same basename, so the bogon will be chosen
3369 # first if we set CC to just the basename; use the full file name.
3370 shift
3371 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3372 fi
3373fi
3374fi
3375fi
3376CC=$ac_cv_prog_CC
3377if test -n "$CC"; then
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3379$as_echo "$CC" >&6; }
3380else
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3382$as_echo "no" >&6; }
3383fi
3384
3385
3386fi
3387if test -z "$CC"; then
3388 if test -n "$ac_tool_prefix"; then
3389 for ac_prog in cl.exe
3390 do
3391 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3392set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3394$as_echo_n "checking for $ac_word... " >&6; }
3395if ${ac_cv_prog_CC+:} false; then :
3396 $as_echo_n "(cached) " >&6
3397else
3398 if test -n "$CC"; then
3399 ac_cv_prog_CC="$CC" # Let the user override the test.
3400else
3401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402for as_dir in $PATH
3403do
3404 IFS=$as_save_IFS
3405 test -z "$as_dir" && as_dir=.
3406 for ac_exec_ext in '' $ac_executable_extensions; do
3407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3408 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3410 break 2
3411 fi
3412done
3413 done
3414IFS=$as_save_IFS
3415
3416fi
3417fi
3418CC=$ac_cv_prog_CC
3419if test -n "$CC"; then
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3421$as_echo "$CC" >&6; }
3422else
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3424$as_echo "no" >&6; }
3425fi
3426
3427
3428 test -n "$CC" && break
3429 done
3430fi
3431if test -z "$CC"; then
3432 ac_ct_CC=$CC
3433 for ac_prog in cl.exe
3434do
3435 # Extract the first word of "$ac_prog", so it can be a program name with args.
3436set dummy $ac_prog; ac_word=$2
3437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3438$as_echo_n "checking for $ac_word... " >&6; }
3439if ${ac_cv_prog_ac_ct_CC+:} false; then :
3440 $as_echo_n "(cached) " >&6
3441else
3442 if test -n "$ac_ct_CC"; then
3443 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3444else
3445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446for as_dir in $PATH
3447do
3448 IFS=$as_save_IFS
3449 test -z "$as_dir" && as_dir=.
3450 for ac_exec_ext in '' $ac_executable_extensions; do
3451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3452 ac_cv_prog_ac_ct_CC="$ac_prog"
3453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3454 break 2
3455 fi
3456done
3457 done
3458IFS=$as_save_IFS
3459
3460fi
3461fi
3462ac_ct_CC=$ac_cv_prog_ac_ct_CC
3463if test -n "$ac_ct_CC"; then
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3465$as_echo "$ac_ct_CC" >&6; }
3466else
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3468$as_echo "no" >&6; }
3469fi
3470
3471
3472 test -n "$ac_ct_CC" && break
3473done
3474
3475 if test "x$ac_ct_CC" = x; then
3476 CC=""
3477 else
3478 case $cross_compiling:$ac_tool_warned in
3479yes:)
3480{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3481$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3482ac_tool_warned=yes ;;
3483esac
3484 CC=$ac_ct_CC
3485 fi
3486fi
3487
3488fi
3489
3490
3491test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3492$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3493as_fn_error $? "no acceptable C compiler found in \$PATH
3494See \`config.log' for more details" "$LINENO" 5; }
3495
3496# Provide some information about the compiler.
3497$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3498set X $ac_compile
3499ac_compiler=$2
3500for ac_option in --version -v -V -qversion; do
3501 { { ac_try="$ac_compiler $ac_option >&5"
3502case "(($ac_try" in
3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3505esac
3506eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3507$as_echo "$ac_try_echo"; } >&5
3508 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3509 ac_status=$?
3510 if test -s conftest.err; then
3511 sed '10a\
3512... rest of stderr output deleted ...
3513 10q' conftest.err >conftest.er1
3514 cat conftest.er1 >&5
3515 fi
3516 rm -f conftest.er1 conftest.err
3517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3518 test $ac_status = 0; }
3519done
3520
3521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522/* end confdefs.h. */
3523
3524int
3525main ()
3526{
3527
3528 ;
3529 return 0;
3530}
3531_ACEOF
3532ac_clean_files_save=$ac_clean_files
3533ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3534# Try to create an executable without -o first, disregard a.out.
3535# It will help us diagnose broken compilers, and finding out an intuition
3536# of exeext.
3537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3538$as_echo_n "checking whether the C compiler works... " >&6; }
3539ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3540
3541# The possible output files:
3542ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3543
3544ac_rmfiles=
3545for ac_file in $ac_files
3546do
3547 case $ac_file in
3548 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3549 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3550 esac
3551done
35fa52c0
DWT
3552rm -f $ac_rmfiles
3553
3554if { { ac_try="$ac_link_default"
3555case "(($ac_try" in
3556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557 *) ac_try_echo=$ac_try;;
3558esac
3559eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3560$as_echo "$ac_try_echo"; } >&5
3561 (eval "$ac_link_default") 2>&5
3562 ac_status=$?
3563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3564 test $ac_status = 0; }; then :
3565 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3566# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3567# in a Makefile. We should not override ac_cv_exeext if it was cached,
3568# so that the user can short-circuit this test for compilers unknown to
3569# Autoconf.
3570for ac_file in $ac_files ''
3571do
3572 test -f "$ac_file" || continue
3573 case $ac_file in
3574 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3575 ;;
3576 [ab].out )
3577 # We found the default executable, but exeext='' is most
3578 # certainly right.
3579 break;;
3580 *.* )
3581 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3582 then :; else
3583 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3584 fi
3585 # We set ac_cv_exeext here because the later test for it is not
3586 # safe: cross compilers may not add the suffix if given an `-o'
3587 # argument, so we may need to know it at that point already.
3588 # Even if this section looks crufty: it has the advantage of
3589 # actually working.
3590 break;;
3591 * )
3592 break;;
3593 esac
3594done
3595test "$ac_cv_exeext" = no && ac_cv_exeext=
3596
3597else
3598 ac_file=''
3599fi
35fa52c0 3600if test -z "$ac_file"; then :
9c60689e
DWT
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3602$as_echo "no" >&6; }
3603$as_echo "$as_me: failed program was:" >&5
35fa52c0
DWT
3604sed 's/^/| /' conftest.$ac_ext >&5
3605
3606{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3607$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
a93f15c0 3608as_fn_error 77 "C compiler cannot create executables
ee134472 3609See \`config.log' for more details" "$LINENO" 5; }
9c60689e
DWT
3610else
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3612$as_echo "yes" >&6; }
35fa52c0 3613fi
a93f15c0
JF
3614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3615$as_echo_n "checking for C compiler default output file name... " >&6; }
9c60689e
DWT
3616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3617$as_echo "$ac_file" >&6; }
35fa52c0
DWT
3618ac_exeext=$ac_cv_exeext
3619
9c60689e 3620rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
35fa52c0 3621ac_clean_files=$ac_clean_files_save
35fa52c0
DWT
3622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3623$as_echo_n "checking for suffix of executables... " >&6; }
3624if { { ac_try="$ac_link"
3625case "(($ac_try" in
3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3628esac
3629eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3630$as_echo "$ac_try_echo"; } >&5
3631 (eval "$ac_link") 2>&5
3632 ac_status=$?
3633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3634 test $ac_status = 0; }; then :
3635 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3636# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3637# work properly (i.e., refer to `conftest.exe'), while it won't with
3638# `rm'.
3639for ac_file in conftest.exe conftest conftest.*; do
3640 test -f "$ac_file" || continue
3641 case $ac_file in
3642 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3643 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3644 break;;
3645 * ) break;;
3646 esac
3647done
3648else
3649 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3650$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833ad8 3651as_fn_error $? "cannot compute suffix of executables: cannot compile and link
ee134472 3652See \`config.log' for more details" "$LINENO" 5; }
35fa52c0 3653fi
9c60689e 3654rm -f conftest conftest$ac_cv_exeext
35fa52c0
DWT
3655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3656$as_echo "$ac_cv_exeext" >&6; }
3657
3658rm -f conftest.$ac_ext
3659EXEEXT=$ac_cv_exeext
3660ac_exeext=$EXEEXT
9c60689e
DWT
3661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3662/* end confdefs.h. */
3663#include <stdio.h>
3664int
3665main ()
3666{
3667FILE *f = fopen ("conftest.out", "w");
3668 return ferror (f) || fclose (f) != 0;
3669
3670 ;
3671 return 0;
3672}
3673_ACEOF
3674ac_clean_files="$ac_clean_files conftest.out"
3675# Check that the compiler produces executables we can run. If not, either
3676# the compiler is broken, or we cross compile.
3677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3678$as_echo_n "checking whether we are cross compiling... " >&6; }
3679if test "$cross_compiling" != yes; then
3680 { { ac_try="$ac_link"
3681case "(($ac_try" in
3682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3683 *) ac_try_echo=$ac_try;;
3684esac
3685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3686$as_echo "$ac_try_echo"; } >&5
3687 (eval "$ac_link") 2>&5
3688 ac_status=$?
3689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3690 test $ac_status = 0; }
3691 if { ac_try='./conftest$ac_cv_exeext'
3692 { { case "(($ac_try" in
3693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3694 *) ac_try_echo=$ac_try;;
3695esac
3696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3697$as_echo "$ac_try_echo"; } >&5
3698 (eval "$ac_try") 2>&5
3699 ac_status=$?
3700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3701 test $ac_status = 0; }; }; then
3702 cross_compiling=no
3703 else
3704 if test "$cross_compiling" = maybe; then
3705 cross_compiling=yes
3706 else
3707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3708$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
a93f15c0 3709as_fn_error $? "cannot run C compiled programs.
9c60689e 3710If you meant to cross compile, use \`--host'.
ee134472 3711See \`config.log' for more details" "$LINENO" 5; }
9c60689e
DWT
3712 fi
3713 fi
3714fi
3715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3716$as_echo "$cross_compiling" >&6; }
3717
3718rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3719ac_clean_files=$ac_clean_files_save
35fa52c0
DWT
3720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3721$as_echo_n "checking for suffix of object files... " >&6; }
ee134472 3722if ${ac_cv_objext+:} false; then :
35fa52c0
DWT
3723 $as_echo_n "(cached) " >&6
3724else
3725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3726/* end confdefs.h. */
3727
3728int
3729main ()
3730{
3731
3732 ;
3733 return 0;
3734}
3735_ACEOF
3736rm -f conftest.o conftest.obj
3737if { { ac_try="$ac_compile"
3738case "(($ac_try" in
3739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3740 *) ac_try_echo=$ac_try;;
3741esac
3742eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3743$as_echo "$ac_try_echo"; } >&5
3744 (eval "$ac_compile") 2>&5
3745 ac_status=$?
3746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3747 test $ac_status = 0; }; then :
3748 for ac_file in conftest.o conftest.obj conftest.*; do
3749 test -f "$ac_file" || continue;
3750 case $ac_file in
3751 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3752 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3753 break;;
3754 esac
3755done
3756else
3757 $as_echo "$as_me: failed program was:" >&5
3758sed 's/^/| /' conftest.$ac_ext >&5
3759
3760{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3761$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833ad8 3762as_fn_error $? "cannot compute suffix of object files: cannot compile
ee134472 3763See \`config.log' for more details" "$LINENO" 5; }
35fa52c0
DWT
3764fi
3765rm -f conftest.$ac_cv_objext conftest.$ac_ext
3766fi
3767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3768$as_echo "$ac_cv_objext" >&6; }
3769OBJEXT=$ac_cv_objext
3770ac_objext=$OBJEXT
a93f15c0
JF
3771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3772$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3773if ${ac_cv_c_compiler_gnu+:} false; then :
35fa52c0
DWT
3774 $as_echo_n "(cached) " >&6
3775else
3776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3777/* end confdefs.h. */
3778
3779int
3780main ()
3781{
3782#ifndef __GNUC__
3783 choke me
3784#endif
3785
3786 ;
3787 return 0;
3788}
3789_ACEOF
a93f15c0 3790if ac_fn_c_try_compile "$LINENO"; then :
35fa52c0
DWT
3791 ac_compiler_gnu=yes
3792else
3793 ac_compiler_gnu=no
3794fi
3795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 3796ac_cv_c_compiler_gnu=$ac_compiler_gnu
35fa52c0
DWT
3797
3798fi
a93f15c0
JF
3799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3800$as_echo "$ac_cv_c_compiler_gnu" >&6; }
35fa52c0 3801if test $ac_compiler_gnu = yes; then
a93f15c0 3802 GCC=yes
35fa52c0 3803else
a93f15c0 3804 GCC=
35fa52c0 3805fi
a93f15c0
JF
3806ac_test_CFLAGS=${CFLAGS+set}
3807ac_save_CFLAGS=$CFLAGS
3808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3809$as_echo_n "checking whether $CC accepts -g... " >&6; }
3810if ${ac_cv_prog_cc_g+:} false; then :
35fa52c0
DWT
3811 $as_echo_n "(cached) " >&6
3812else
a93f15c0
JF
3813 ac_save_c_werror_flag=$ac_c_werror_flag
3814 ac_c_werror_flag=yes
3815 ac_cv_prog_cc_g=no
3816 CFLAGS="-g"
35fa52c0
DWT
3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818/* end confdefs.h. */
3819
3820int
3821main ()
3822{
3823
3824 ;
3825 return 0;
3826}
3827_ACEOF
a93f15c0
JF
3828if ac_fn_c_try_compile "$LINENO"; then :
3829 ac_cv_prog_cc_g=yes
35fa52c0 3830else
a93f15c0 3831 CFLAGS=""
35fa52c0
DWT
3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833/* end confdefs.h. */
3834
3835int
3836main ()
3837{
3838
3839 ;
3840 return 0;
3841}
3842_ACEOF
a93f15c0 3843if ac_fn_c_try_compile "$LINENO"; then :
35fa52c0
DWT
3844
3845else
a93f15c0
JF
3846 ac_c_werror_flag=$ac_save_c_werror_flag
3847 CFLAGS="-g"
35fa52c0
DWT
3848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849/* end confdefs.h. */
3850
3851int
3852main ()
3853{
3854
3855 ;
3856 return 0;
3857}
3858_ACEOF
a93f15c0
JF
3859if ac_fn_c_try_compile "$LINENO"; then :
3860 ac_cv_prog_cc_g=yes
35fa52c0
DWT
3861fi
3862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3863fi
3864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3865fi
3866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 3867 ac_c_werror_flag=$ac_save_c_werror_flag
35fa52c0 3868fi
a93f15c0
JF
3869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3870$as_echo "$ac_cv_prog_cc_g" >&6; }
3871if test "$ac_test_CFLAGS" = set; then
3872 CFLAGS=$ac_save_CFLAGS
3873elif test $ac_cv_prog_cc_g = yes; then
3874 if test "$GCC" = yes; then
3875 CFLAGS="-g -O2"
35fa52c0 3876 else
a93f15c0 3877 CFLAGS="-g"
35fa52c0
DWT
3878 fi
3879else
a93f15c0
JF
3880 if test "$GCC" = yes; then
3881 CFLAGS="-O2"
35fa52c0 3882 else
a93f15c0 3883 CFLAGS=
35fa52c0
DWT
3884 fi
3885fi
a93f15c0
JF
3886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3887$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3888if ${ac_cv_prog_cc_c89+:} false; then :
3889 $as_echo_n "(cached) " >&6
3890else
3891 ac_cv_prog_cc_c89=no
3892ac_save_CC=$CC
3893cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894/* end confdefs.h. */
3895#include <stdarg.h>
3896#include <stdio.h>
3897struct stat;
3898/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3899struct buf { int x; };
3900FILE * (*rcsopen) (struct buf *, struct stat *, int);
3901static char *e (p, i)
3902 char **p;
3903 int i;
3904{
3905 return p[i];
3906}
3907static char *f (char * (*g) (char **, int), char **p, ...)
3908{
3909 char *s;
3910 va_list v;
3911 va_start (v,p);
3912 s = g (p, va_arg (v,int));
3913 va_end (v);
3914 return s;
3915}
3916
3917/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3918 function prototypes and stuff, but not '\xHH' hex character constants.
3919 These don't provoke an error unfortunately, instead are silently treated
3920 as 'x'. The following induces an error, until -std is added to get
3921 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3922 array size at least. It's necessary to write '\x00'==0 to get something
3923 that's true only with -std. */
3924int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3925
3926/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3927 inside strings and character constants. */
3928#define FOO(x) 'x'
3929int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3930
3931int test (int i, double x);
3932struct s1 {int (*f) (int a);};
3933struct s2 {int (*f) (double a);};
3934int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3935int argc;
3936char **argv;
3937int
3938main ()
3939{
3940return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3941 ;
3942 return 0;
3943}
3944_ACEOF
3945for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3946 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3947do
3948 CC="$ac_save_CC $ac_arg"
3949 if ac_fn_c_try_compile "$LINENO"; then :
3950 ac_cv_prog_cc_c89=$ac_arg
3951fi
3952rm -f core conftest.err conftest.$ac_objext
3953 test "x$ac_cv_prog_cc_c89" != "xno" && break
3954done
3955rm -f conftest.$ac_ext
3956CC=$ac_save_CC
3957
3958fi
3959# AC_CACHE_VAL
3960case "x$ac_cv_prog_cc_c89" in
3961 x)
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3963$as_echo "none needed" >&6; } ;;
3964 xno)
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3966$as_echo "unsupported" >&6; } ;;
3967 *)
3968 CC="$CC $ac_cv_prog_cc_c89"
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3970$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3971esac
3972if test "x$ac_cv_prog_cc_c89" != xno; then :
3973
3974fi
3975
3976ac_ext=c
3977ac_cpp='$CPP $CPPFLAGS'
3978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3980ac_compiler_gnu=$ac_cv_c_compiler_gnu
3981
3982ac_ext=c
3983ac_cpp='$CPP $CPPFLAGS'
3984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3986ac_compiler_gnu=$ac_cv_c_compiler_gnu
3987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3988$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3989if ${am_cv_prog_cc_c_o+:} false; then :
3990 $as_echo_n "(cached) " >&6
3991else
3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993/* end confdefs.h. */
3994
3995int
3996main ()
3997{
3998
3999 ;
4000 return 0;
4001}
4002_ACEOF
4003 # Make sure it works both with $CC and with simple cc.
4004 # Following AC_PROG_CC_C_O, we do the test twice because some
4005 # compilers refuse to overwrite an existing .o file with -o,
4006 # though they will create one.
4007 am_cv_prog_cc_c_o=yes
4008 for am_i in 1 2; do
4009 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4010 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4011 ac_status=$?
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); } \
4014 && test -f conftest2.$ac_objext; then
4015 : OK
4016 else
4017 am_cv_prog_cc_c_o=no
4018 break
4019 fi
4020 done
4021 rm -f core conftest*
4022 unset am_i
4023fi
4024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4025$as_echo "$am_cv_prog_cc_c_o" >&6; }
4026if test "$am_cv_prog_cc_c_o" != yes; then
4027 # Losing compiler, so override with the script.
4028 # FIXME: It is wrong to rewrite CC.
4029 # But if we don't then we get into trouble of one sort or another.
4030 # A longer-term fix would be to have automake use am__CC in this case,
4031 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4032 CC="$am_aux_dir/compile $CC"
4033fi
a243b558
JF
4034ac_ext=c
4035ac_cpp='$CPP $CPPFLAGS'
4036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4038ac_compiler_gnu=$ac_cv_c_compiler_gnu
a93f15c0 4039
a243b558 4040DEPDIR="${am__leading_dot}deps"
35fa52c0 4041
a243b558 4042ac_config_commands="$ac_config_commands depfiles"
35fa52c0 4043
35fa52c0 4044
a243b558
JF
4045am_make=${MAKE-make}
4046cat > confinc << 'END'
4047am__doit:
4048 @echo this is the am__doit target
4049.PHONY: am__doit
4050END
4051# If we don't find an include directive, just comment out the code.
4052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4053$as_echo_n "checking for style of include used by $am_make... " >&6; }
4054am__include="#"
4055am__quote=
4056_am_result=none
4057# First try GNU make style include.
4058echo "include confinc" > confmf
4059# Ignore all kinds of additional output from 'make'.
4060case `$am_make -s -f confmf 2> /dev/null` in #(
4061*the\ am__doit\ target*)
4062 am__include=include
4063 am__quote=
4064 _am_result=GNU
4065 ;;
4066esac
4067# Now try BSD make style include.
4068if test "$am__include" = "#"; then
4069 echo '.include "confinc"' > confmf
4070 case `$am_make -s -f confmf 2> /dev/null` in #(
4071 *the\ am__doit\ target*)
4072 am__include=.include
4073 am__quote="\""
4074 _am_result=BSD
4075 ;;
4076 esac
35fa52c0 4077fi
35fa52c0 4078
a243b558
JF
4079
4080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4081$as_echo "$_am_result" >&6; }
4082rm -f confinc confmf
4083
4084# Check whether --enable-dependency-tracking was given.
4085if test "${enable_dependency_tracking+set}" = set; then :
4086 enableval=$enable_dependency_tracking;
35fa52c0 4087fi
35fa52c0 4088
a243b558
JF
4089if test "x$enable_dependency_tracking" != xno; then
4090 am_depcomp="$ac_aux_dir/depcomp"
4091 AMDEPBACKSLASH='\'
4092 am__nodep='_no'
4093fi
4094 if test "x$enable_dependency_tracking" != xno; then
4095 AMDEP_TRUE=
4096 AMDEP_FALSE='#'
4097else
4098 AMDEP_TRUE='#'
4099 AMDEP_FALSE=
35fa52c0
DWT
4100fi
4101
35fa52c0 4102
a243b558 4103
a93f15c0 4104depcc="$CC" am_compiler_list=
66170b30
JF
4105
4106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4107$as_echo_n "checking dependency style of $depcc... " >&6; }
a93f15c0 4108if ${am_cv_CC_dependencies_compiler_type+:} false; then :
66170b30
JF
4109 $as_echo_n "(cached) " >&6
4110else
4111 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4112 # We make a subdir and do the tests there. Otherwise we can end up
4113 # making bogus files that we don't know about and never remove. For
4114 # instance it was reported that on HP-UX the gcc test will end up
4115 # making a dummy file named 'D' -- because '-MD' means "put the output
4116 # in D".
4117 rm -rf conftest.dir
4118 mkdir conftest.dir
4119 # Copy depcomp to subdir because otherwise we won't find it if we're
4120 # using a relative directory.
4121 cp "$am_depcomp" conftest.dir
4122 cd conftest.dir
4123 # We will build objects and dependencies in a subdirectory because
4124 # it helps to detect inapplicable dependency modes. For instance
4125 # both Tru64's cc and ICC support -MD to output dependencies as a
4126 # side effect of compilation, but ICC will put the dependencies in
4127 # the current directory while Tru64 will put them in the object
4128 # directory.
4129 mkdir sub
4130
a93f15c0 4131 am_cv_CC_dependencies_compiler_type=none
66170b30
JF
4132 if test "$am_compiler_list" = ""; then
4133 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4134 fi
4135 am__universal=false
4136 case " $depcc " in #(
4137 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4138 esac
4139
4140 for depmode in $am_compiler_list; do
4141 # Setup a source with many dependencies, because some compilers
4142 # like to wrap large dependency lists on column 80 (with \), and
4143 # we should not choose a depcomp mode which is confused by this.
4144 #
4145 # We need to recreate these files for each test, as the compiler may
4146 # overwrite some of them when testing with obscure command lines.
4147 # This happens at least with the AIX C compiler.
4148 : > sub/conftest.c
4149 for i in 1 2 3 4 5 6; do
4150 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4151 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4152 # Solaris 10 /bin/sh.
4153 echo '/* dummy */' > sub/conftst$i.h
4154 done
4155 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4156
4157 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4158 # mode. It turns out that the SunPro C++ compiler does not properly
4159 # handle '-M -o', and we need to detect this. Also, some Intel
4160 # versions had trouble with output in subdirs.
4161 am__obj=sub/conftest.${OBJEXT-o}
4162 am__minus_obj="-o $am__obj"
4163 case $depmode in
4164 gcc)
4165 # This depmode causes a compiler race in universal mode.
4166 test "$am__universal" = false || continue
4167 ;;
4168 nosideeffect)
4169 # After this tag, mechanisms are not by side-effect, so they'll
4170 # only be used when explicitly requested.
4171 if test "x$enable_dependency_tracking" = xyes; then
4172 continue
4173 else
4174 break
4175 fi
4176 ;;
4177 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4178 # This compiler won't grok '-c -o', but also, the minuso test has
4179 # not run yet. These depmodes are late enough in the game, and
4180 # so weak that their functioning should not be impacted.
4181 am__obj=conftest.${OBJEXT-o}
4182 am__minus_obj=
4183 ;;
4184 none) break ;;
4185 esac
4186 if depmode=$depmode \
4187 source=sub/conftest.c object=$am__obj \
4188 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4189 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4190 >/dev/null 2>conftest.err &&
4191 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4192 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4193 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4194 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4195 # icc doesn't choke on unknown options, it will just issue warnings
4196 # or remarks (even with -Werror). So we grep stderr for any message
4197 # that says an option was ignored or not supported.
4198 # When given -MP, icc 7.0 and 7.1 complain thusly:
4199 # icc: Command line warning: ignoring option '-M'; no argument required
4200 # The diagnosis changed in icc 8.0:
4201 # icc: Command line remark: option '-MP' not supported
4202 if (grep 'ignoring option' conftest.err ||
4203 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
a93f15c0 4204 am_cv_CC_dependencies_compiler_type=$depmode
66170b30
JF
4205 break
4206 fi
4207 fi
4208 done
4209
4210 cd ..
4211 rm -rf conftest.dir
4212else
a93f15c0 4213 am_cv_CC_dependencies_compiler_type=none
66170b30
JF
4214fi
4215
4216fi
a93f15c0
JF
4217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4218$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4219CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
66170b30
JF
4220
4221 if
4222 test "x$enable_dependency_tracking" != xno \
a93f15c0
JF
4223 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4224 am__fastdepCC_TRUE=
4225 am__fastdepCC_FALSE='#'
66170b30 4226else
a93f15c0
JF
4227 am__fastdepCC_TRUE='#'
4228 am__fastdepCC_FALSE=
66170b30
JF
4229fi
4230
4231
a93f15c0
JF
4232ac_ext=cpp
4233ac_cpp='$CXXCPP $CPPFLAGS'
4234ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4235ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4236ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4237if test -z "$CXX"; then
4238 if test -n "$CCC"; then
4239 CXX=$CCC
4240 else
4241 if test -n "$ac_tool_prefix"; then
4242 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
a243b558
JF
4243 do
4244 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4245set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4247$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4248if ${ac_cv_prog_CXX+:} false; then :
35fa52c0
DWT
4249 $as_echo_n "(cached) " >&6
4250else
a93f15c0
JF
4251 if test -n "$CXX"; then
4252 ac_cv_prog_CXX="$CXX" # Let the user override the test.
a243b558
JF
4253else
4254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255for as_dir in $PATH
4256do
35fa52c0
DWT
4257 IFS=$as_save_IFS
4258 test -z "$as_dir" && as_dir=.
4259 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558 4260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4261 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
a243b558
JF
4262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4263 break 2
4264 fi
4265done
9c60689e
DWT
4266 done
4267IFS=$as_save_IFS
35fa52c0 4268
9c60689e 4269fi
a243b558 4270fi
a93f15c0
JF
4271CXX=$ac_cv_prog_CXX
4272if test -n "$CXX"; then
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4274$as_echo "$CXX" >&6; }
a243b558
JF
4275else
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4277$as_echo "no" >&6; }
4278fi
35fa52c0 4279
35fa52c0 4280
a93f15c0 4281 test -n "$CXX" && break
a243b558
JF
4282 done
4283fi
a93f15c0
JF
4284if test -z "$CXX"; then
4285 ac_ct_CXX=$CXX
4286 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
a243b558
JF
4287do
4288 # Extract the first word of "$ac_prog", so it can be a program name with args.
4289set dummy $ac_prog; ac_word=$2
4290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4291$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4292if ${ac_cv_prog_ac_ct_CXX+:} false; then :
9c60689e
DWT
4293 $as_echo_n "(cached) " >&6
4294else
a93f15c0
JF
4295 if test -n "$ac_ct_CXX"; then
4296 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
a243b558
JF
4297else
4298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299for as_dir in $PATH
9c60689e
DWT
4300do
4301 IFS=$as_save_IFS
4302 test -z "$as_dir" && as_dir=.
9c60689e 4303 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558 4304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4305 ac_cv_prog_ac_ct_CXX="$ac_prog"
a243b558
JF
4306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4307 break 2
4308 fi
4309done
9c60689e
DWT
4310 done
4311IFS=$as_save_IFS
a243b558
JF
4312
4313fi
4314fi
a93f15c0
JF
4315ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4316if test -n "$ac_ct_CXX"; then
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4318$as_echo "$ac_ct_CXX" >&6; }
9c60689e 4319else
a243b558
JF
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4321$as_echo "no" >&6; }
9c60689e 4322fi
6b66678a
DWT
4323
4324
a93f15c0 4325 test -n "$ac_ct_CXX" && break
a243b558 4326done
6b66678a 4327
a93f15c0
JF
4328 if test "x$ac_ct_CXX" = x; then
4329 CXX="g++"
a243b558
JF
4330 else
4331 case $cross_compiling:$ac_tool_warned in
4332yes:)
4333{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4334$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4335ac_tool_warned=yes ;;
9c60689e 4336esac
a93f15c0 4337 CXX=$ac_ct_CXX
9c60689e 4338 fi
9c60689e 4339fi
6b66678a 4340
a93f15c0
JF
4341 fi
4342fi
a243b558 4343# Provide some information about the compiler.
a93f15c0 4344$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
a243b558
JF
4345set X $ac_compile
4346ac_compiler=$2
4347for ac_option in --version -v -V -qversion; do
4348 { { ac_try="$ac_compiler $ac_option >&5"
4349case "(($ac_try" in
4350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4351 *) ac_try_echo=$ac_try;;
4352esac
4353eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4354$as_echo "$ac_try_echo"; } >&5
4355 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4356 ac_status=$?
4357 if test -s conftest.err; then
4358 sed '10a\
4359... rest of stderr output deleted ...
4360 10q' conftest.err >conftest.er1
4361 cat conftest.er1 >&5
4362 fi
4363 rm -f conftest.er1 conftest.err
4364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4365 test $ac_status = 0; }
4366done
6b66678a 4367
a93f15c0
JF
4368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4369$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4370if ${ac_cv_cxx_compiler_gnu+:} false; then :
9c60689e 4371 $as_echo_n "(cached) " >&6
6b66678a 4372else
a243b558
JF
4373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4374/* end confdefs.h. */
6b66678a 4375
a243b558
JF
4376int
4377main ()
4378{
4379#ifndef __GNUC__
4380 choke me
4381#endif
4382
4383 ;
4384 return 0;
4385}
4386_ACEOF
a93f15c0 4387if ac_fn_cxx_try_compile "$LINENO"; then :
a243b558 4388 ac_compiler_gnu=yes
9c60689e 4389else
a243b558 4390 ac_compiler_gnu=no
6b66678a 4391fi
a243b558 4392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 4393ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6b66678a
DWT
4394
4395fi
a93f15c0
JF
4396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4397$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
a243b558 4398if test $ac_compiler_gnu = yes; then
a93f15c0 4399 GXX=yes
a243b558 4400else
a93f15c0 4401 GXX=
a243b558 4402fi
a93f15c0
JF
4403ac_test_CXXFLAGS=${CXXFLAGS+set}
4404ac_save_CXXFLAGS=$CXXFLAGS
4405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4406$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4407if ${ac_cv_prog_cxx_g+:} false; then :
a243b558
JF
4408 $as_echo_n "(cached) " >&6
4409else
a93f15c0
JF
4410 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4411 ac_cxx_werror_flag=yes
4412 ac_cv_prog_cxx_g=no
4413 CXXFLAGS="-g"
a243b558
JF
4414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4415/* end confdefs.h. */
309b0535 4416
a243b558
JF
4417int
4418main ()
4419{
309b0535 4420
a243b558
JF
4421 ;
4422 return 0;
4423}
4424_ACEOF
a93f15c0
JF
4425if ac_fn_cxx_try_compile "$LINENO"; then :
4426 ac_cv_prog_cxx_g=yes
a243b558 4427else
a93f15c0 4428 CXXFLAGS=""
a243b558
JF
4429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4430/* end confdefs.h. */
309b0535 4431
a243b558
JF
4432int
4433main ()
4434{
309b0535 4435
a243b558
JF
4436 ;
4437 return 0;
4438}
4439_ACEOF
a93f15c0 4440if ac_fn_cxx_try_compile "$LINENO"; then :
309b0535 4441
a243b558 4442else
a93f15c0
JF
4443 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4444 CXXFLAGS="-g"
a243b558
JF
4445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446/* end confdefs.h. */
309b0535 4447
a243b558
JF
4448int
4449main ()
4450{
309b0535 4451
a243b558
JF
4452 ;
4453 return 0;
4454}
4455_ACEOF
a93f15c0
JF
4456if ac_fn_cxx_try_compile "$LINENO"; then :
4457 ac_cv_prog_cxx_g=yes
9c60689e 4458fi
a243b558 4459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 4460fi
a243b558 4461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 4462fi
a243b558 4463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 4464 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9c60689e 4465fi
a93f15c0
JF
4466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4467$as_echo "$ac_cv_prog_cxx_g" >&6; }
4468if test "$ac_test_CXXFLAGS" = set; then
4469 CXXFLAGS=$ac_save_CXXFLAGS
4470elif test $ac_cv_prog_cxx_g = yes; then
4471 if test "$GXX" = yes; then
4472 CXXFLAGS="-g -O2"
a243b558 4473 else
a93f15c0 4474 CXXFLAGS="-g"
a243b558 4475 fi
9c60689e 4476else
a93f15c0
JF
4477 if test "$GXX" = yes; then
4478 CXXFLAGS="-O2"
a243b558 4479 else
a93f15c0 4480 CXXFLAGS=
a243b558 4481 fi
9c60689e 4482fi
a243b558
JF
4483ac_ext=c
4484ac_cpp='$CPP $CPPFLAGS'
4485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4487ac_compiler_gnu=$ac_cv_c_compiler_gnu
309b0535 4488
a93f15c0 4489depcc="$CXX" am_compiler_list=
309b0535 4490
a243b558
JF
4491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4492$as_echo_n "checking dependency style of $depcc... " >&6; }
a93f15c0 4493if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
a243b558
JF
4494 $as_echo_n "(cached) " >&6
4495else
4496 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4497 # We make a subdir and do the tests there. Otherwise we can end up
4498 # making bogus files that we don't know about and never remove. For
4499 # instance it was reported that on HP-UX the gcc test will end up
4500 # making a dummy file named 'D' -- because '-MD' means "put the output
4501 # in D".
4502 rm -rf conftest.dir
4503 mkdir conftest.dir
4504 # Copy depcomp to subdir because otherwise we won't find it if we're
4505 # using a relative directory.
4506 cp "$am_depcomp" conftest.dir
4507 cd conftest.dir
4508 # We will build objects and dependencies in a subdirectory because
4509 # it helps to detect inapplicable dependency modes. For instance
4510 # both Tru64's cc and ICC support -MD to output dependencies as a
4511 # side effect of compilation, but ICC will put the dependencies in
4512 # the current directory while Tru64 will put them in the object
4513 # directory.
4514 mkdir sub
309b0535 4515
a93f15c0 4516 am_cv_CXX_dependencies_compiler_type=none
a243b558
JF
4517 if test "$am_compiler_list" = ""; then
4518 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4519 fi
4520 am__universal=false
a93f15c0
JF
4521 case " $depcc " in #(
4522 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4523 esac
9c60689e 4524
a243b558
JF
4525 for depmode in $am_compiler_list; do
4526 # Setup a source with many dependencies, because some compilers
4527 # like to wrap large dependency lists on column 80 (with \), and
4528 # we should not choose a depcomp mode which is confused by this.
4529 #
4530 # We need to recreate these files for each test, as the compiler may
4531 # overwrite some of them when testing with obscure command lines.
4532 # This happens at least with the AIX C compiler.
4533 : > sub/conftest.c
4534 for i in 1 2 3 4 5 6; do
4535 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4536 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4537 # Solaris 10 /bin/sh.
4538 echo '/* dummy */' > sub/conftst$i.h
4539 done
4540 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9c60689e 4541
a243b558
JF
4542 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4543 # mode. It turns out that the SunPro C++ compiler does not properly
4544 # handle '-M -o', and we need to detect this. Also, some Intel
4545 # versions had trouble with output in subdirs.
4546 am__obj=sub/conftest.${OBJEXT-o}
4547 am__minus_obj="-o $am__obj"
4548 case $depmode in
4549 gcc)
4550 # This depmode causes a compiler race in universal mode.
4551 test "$am__universal" = false || continue
4552 ;;
4553 nosideeffect)
4554 # After this tag, mechanisms are not by side-effect, so they'll
4555 # only be used when explicitly requested.
4556 if test "x$enable_dependency_tracking" = xyes; then
4557 continue
4558 else
4559 break
309b0535 4560 fi
a243b558
JF
4561 ;;
4562 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4563 # This compiler won't grok '-c -o', but also, the minuso test has
4564 # not run yet. These depmodes are late enough in the game, and
4565 # so weak that their functioning should not be impacted.
4566 am__obj=conftest.${OBJEXT-o}
4567 am__minus_obj=
4568 ;;
4569 none) break ;;
4570 esac
4571 if depmode=$depmode \
4572 source=sub/conftest.c object=$am__obj \
4573 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4574 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4575 >/dev/null 2>conftest.err &&
4576 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4577 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4578 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4579 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4580 # icc doesn't choke on unknown options, it will just issue warnings
4581 # or remarks (even with -Werror). So we grep stderr for any message
4582 # that says an option was ignored or not supported.
4583 # When given -MP, icc 7.0 and 7.1 complain thusly:
4584 # icc: Command line warning: ignoring option '-M'; no argument required
4585 # The diagnosis changed in icc 8.0:
4586 # icc: Command line remark: option '-MP' not supported
4587 if (grep 'ignoring option' conftest.err ||
4588 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
a93f15c0 4589 am_cv_CXX_dependencies_compiler_type=$depmode
a243b558
JF
4590 break
4591 fi
4592 fi
309b0535 4593 done
a243b558
JF
4594
4595 cd ..
4596 rm -rf conftest.dir
4597else
a93f15c0 4598 am_cv_CXX_dependencies_compiler_type=none
9c60689e 4599fi
a243b558 4600
9c60689e 4601fi
a93f15c0
JF
4602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4603$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4604CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
a243b558
JF
4605
4606 if
4607 test "x$enable_dependency_tracking" != xno \
a93f15c0
JF
4608 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4609 am__fastdepCXX_TRUE=
4610 am__fastdepCXX_FALSE='#'
9c60689e 4611else
a93f15c0
JF
4612 am__fastdepCXX_TRUE='#'
4613 am__fastdepCXX_FALSE=
a243b558
JF
4614fi
4615
4616
a93f15c0
JF
4617ac_ext=mm
4618ac_cpp='$OBJCXXCPP $CPPFLAGS'
4619ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4620ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4621ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
a243b558 4622if test -n "$ac_tool_prefix"; then
a93f15c0 4623 for ac_prog in g++ objc++ objcxx c++ CXX
a243b558
JF
4624 do
4625 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4626set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4628$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4629if ${ac_cv_prog_OBJCXX+:} false; then :
9c60689e
DWT
4630 $as_echo_n "(cached) " >&6
4631else
a93f15c0
JF
4632 if test -n "$OBJCXX"; then
4633 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
a243b558
JF
4634else
4635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636for as_dir in $PATH
4637do
4638 IFS=$as_save_IFS
4639 test -z "$as_dir" && as_dir=.
4640 for ac_exec_ext in '' $ac_executable_extensions; do
4641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4642 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
a243b558
JF
4643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4644 break 2
9c60689e 4645 fi
a243b558
JF
4646done
4647 done
4648IFS=$as_save_IFS
9c60689e 4649
a243b558
JF
4650fi
4651fi
a93f15c0
JF
4652OBJCXX=$ac_cv_prog_OBJCXX
4653if test -n "$OBJCXX"; then
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
4655$as_echo "$OBJCXX" >&6; }
35fa52c0 4656else
a243b558
JF
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4658$as_echo "no" >&6; }
35fa52c0 4659fi
9c60689e 4660
a243b558 4661
a93f15c0 4662 test -n "$OBJCXX" && break
a243b558
JF
4663 done
4664fi
a93f15c0
JF
4665if test -z "$OBJCXX"; then
4666 ac_ct_OBJCXX=$OBJCXX
4667 for ac_prog in g++ objc++ objcxx c++ CXX
a243b558
JF
4668do
4669 # Extract the first word of "$ac_prog", so it can be a program name with args.
4670set dummy $ac_prog; ac_word=$2
4671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4672$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4673if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then :
35fa52c0
DWT
4674 $as_echo_n "(cached) " >&6
4675else
a93f15c0
JF
4676 if test -n "$ac_ct_OBJCXX"; then
4677 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
a243b558
JF
4678else
4679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4680for as_dir in $PATH
4681do
4682 IFS=$as_save_IFS
4683 test -z "$as_dir" && as_dir=.
4684 for ac_exec_ext in '' $ac_executable_extensions; do
4685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4686 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
a243b558
JF
4687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4688 break 2
4689 fi
4690done
4691 done
4692IFS=$as_save_IFS
9c60689e 4693
a243b558
JF
4694fi
4695fi
a93f15c0
JF
4696ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
4697if test -n "$ac_ct_OBJCXX"; then
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
4699$as_echo "$ac_ct_OBJCXX" >&6; }
a243b558
JF
4700else
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4702$as_echo "no" >&6; }
4703fi
35fa52c0 4704
35fa52c0 4705
a93f15c0 4706 test -n "$ac_ct_OBJCXX" && break
a243b558 4707done
35fa52c0 4708
a93f15c0
JF
4709 if test "x$ac_ct_OBJCXX" = x; then
4710 OBJCXX="g++"
a243b558
JF
4711 else
4712 case $cross_compiling:$ac_tool_warned in
4713yes:)
4714{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4715$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4716ac_tool_warned=yes ;;
4717esac
a93f15c0 4718 OBJCXX=$ac_ct_OBJCXX
a243b558
JF
4719 fi
4720fi
ee134472 4721
a243b558 4722# Provide some information about the compiler.
a93f15c0 4723$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
a243b558
JF
4724set X $ac_compile
4725ac_compiler=$2
4726for ac_option in --version -v -V -qversion; do
4727 { { ac_try="$ac_compiler $ac_option >&5"
4728case "(($ac_try" in
4729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4730 *) ac_try_echo=$ac_try;;
4731esac
4732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4733$as_echo "$ac_try_echo"; } >&5
4734 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4735 ac_status=$?
4736 if test -s conftest.err; then
4737 sed '10a\
4738... rest of stderr output deleted ...
4739 10q' conftest.err >conftest.er1
4740 cat conftest.er1 >&5
4741 fi
4742 rm -f conftest.er1 conftest.err
4743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4744 test $ac_status = 0; }
4745done
53ba6704 4746
a93f15c0
JF
4747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
4748$as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
4749if ${ac_cv_objcxx_compiler_gnu+:} false; then :
a243b558
JF
4750 $as_echo_n "(cached) " >&6
4751else
4752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4753/* end confdefs.h. */
35fa52c0 4754
a243b558
JF
4755int
4756main ()
4757{
4758#ifndef __GNUC__
4759 choke me
4760#endif
9c60689e 4761
a243b558
JF
4762 ;
4763 return 0;
4764}
4765_ACEOF
a93f15c0 4766if ac_fn_objcxx_try_compile "$LINENO"; then :
a243b558 4767 ac_compiler_gnu=yes
35fa52c0 4768else
a243b558 4769 ac_compiler_gnu=no
35fa52c0 4770fi
a243b558 4771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 4772ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
9c60689e 4773
a243b558 4774fi
a93f15c0
JF
4775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
4776$as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
a243b558 4777if test $ac_compiler_gnu = yes; then
a93f15c0 4778 GOBJCXX=yes
35fa52c0 4779else
a93f15c0 4780 GOBJCXX=
9c60689e 4781fi
a93f15c0
JF
4782ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
4783ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
4784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
4785$as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
4786if ${ac_cv_prog_objcxx_g+:} false; then :
a243b558
JF
4787 $as_echo_n "(cached) " >&6
4788else
a93f15c0
JF
4789 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
4790 ac_objcxx_werror_flag=yes
4791 ac_cv_prog_objcxx_g=no
4792 OBJCXXFLAGS="-g"
a243b558
JF
4793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4794/* end confdefs.h. */
9c60689e 4795
a243b558
JF
4796int
4797main ()
4798{
9c60689e 4799
a243b558
JF
4800 ;
4801 return 0;
4802}
4803_ACEOF
a93f15c0
JF
4804if ac_fn_objcxx_try_compile "$LINENO"; then :
4805 ac_cv_prog_objcxx_g=yes
a243b558 4806else
a93f15c0 4807 OBJCXXFLAGS=""
a243b558
JF
4808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4809/* end confdefs.h. */
9c60689e 4810
a243b558
JF
4811int
4812main ()
4813{
9c60689e 4814
a243b558
JF
4815 ;
4816 return 0;
4817}
4818_ACEOF
a93f15c0 4819if ac_fn_objcxx_try_compile "$LINENO"; then :
9c60689e 4820
a243b558 4821else
a93f15c0
JF
4822 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
4823 OBJCXXFLAGS="-g"
a243b558 4824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a93f15c0
JF
4825/* end confdefs.h. */
4826
a243b558
JF
4827int
4828main ()
4829{
a93f15c0 4830
a243b558
JF
4831 ;
4832 return 0;
4833}
4834_ACEOF
a93f15c0
JF
4835if ac_fn_objcxx_try_compile "$LINENO"; then :
4836 ac_cv_prog_objcxx_g=yes
a243b558 4837fi
a93f15c0 4838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35fa52c0 4839fi
a93f15c0
JF
4840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4841fi
4842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4843 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
4844fi
4845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
4846$as_echo "$ac_cv_prog_objcxx_g" >&6; }
4847if test "$ac_test_OBJCXXFLAGS" = set; then
4848 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
4849elif test $ac_cv_prog_objcxx_g = yes; then
4850 if test "$GOBJCXX" = yes; then
4851 OBJCXXFLAGS="-g -O2"
4852 else
4853 OBJCXXFLAGS="-g"
4854 fi
4855else
4856 if test "$GOBJCXX" = yes; then
4857 OBJCXXFLAGS="-O2"
4858 else
4859 OBJCXXFLAGS=
4860 fi
35fa52c0 4861fi
a243b558
JF
4862ac_ext=c
4863ac_cpp='$CPP $CPPFLAGS'
4864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4866ac_compiler_gnu=$ac_cv_c_compiler_gnu
4867
a93f15c0 4868depcc="$OBJCXX" am_compiler_list='gcc3 gcc'
9c60689e 4869
a243b558
JF
4870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4871$as_echo_n "checking dependency style of $depcc... " >&6; }
a93f15c0 4872if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then :
35fa52c0
DWT
4873 $as_echo_n "(cached) " >&6
4874else
a243b558
JF
4875 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4876 # We make a subdir and do the tests there. Otherwise we can end up
4877 # making bogus files that we don't know about and never remove. For
4878 # instance it was reported that on HP-UX the gcc test will end up
4879 # making a dummy file named 'D' -- because '-MD' means "put the output
4880 # in D".
4881 rm -rf conftest.dir
4882 mkdir conftest.dir
4883 # Copy depcomp to subdir because otherwise we won't find it if we're
4884 # using a relative directory.
4885 cp "$am_depcomp" conftest.dir
4886 cd conftest.dir
4887 # We will build objects and dependencies in a subdirectory because
4888 # it helps to detect inapplicable dependency modes. For instance
4889 # both Tru64's cc and ICC support -MD to output dependencies as a
4890 # side effect of compilation, but ICC will put the dependencies in
4891 # the current directory while Tru64 will put them in the object
4892 # directory.
4893 mkdir sub
4894
a93f15c0 4895 am_cv_OBJCXX_dependencies_compiler_type=none
a243b558
JF
4896 if test "$am_compiler_list" = ""; then
4897 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4898 fi
4899 am__universal=false
a93f15c0 4900
a243b558
JF
4901
4902 for depmode in $am_compiler_list; do
4903 # Setup a source with many dependencies, because some compilers
4904 # like to wrap large dependency lists on column 80 (with \), and
4905 # we should not choose a depcomp mode which is confused by this.
4906 #
4907 # We need to recreate these files for each test, as the compiler may
4908 # overwrite some of them when testing with obscure command lines.
4909 # This happens at least with the AIX C compiler.
4910 : > sub/conftest.c
4911 for i in 1 2 3 4 5 6; do
4912 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4913 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4914 # Solaris 10 /bin/sh.
4915 echo '/* dummy */' > sub/conftst$i.h
4916 done
4917 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4918
4919 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4920 # mode. It turns out that the SunPro C++ compiler does not properly
4921 # handle '-M -o', and we need to detect this. Also, some Intel
4922 # versions had trouble with output in subdirs.
4923 am__obj=sub/conftest.${OBJEXT-o}
4924 am__minus_obj="-o $am__obj"
4925 case $depmode in
4926 gcc)
4927 # This depmode causes a compiler race in universal mode.
4928 test "$am__universal" = false || continue
4929 ;;
4930 nosideeffect)
4931 # After this tag, mechanisms are not by side-effect, so they'll
4932 # only be used when explicitly requested.
4933 if test "x$enable_dependency_tracking" = xyes; then
4934 continue
4935 else
4936 break
4937 fi
4938 ;;
4939 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4940 # This compiler won't grok '-c -o', but also, the minuso test has
4941 # not run yet. These depmodes are late enough in the game, and
4942 # so weak that their functioning should not be impacted.
4943 am__obj=conftest.${OBJEXT-o}
4944 am__minus_obj=
4945 ;;
4946 none) break ;;
4947 esac
4948 if depmode=$depmode \
4949 source=sub/conftest.c object=$am__obj \
4950 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4951 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4952 >/dev/null 2>conftest.err &&
4953 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4954 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4955 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4956 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4957 # icc doesn't choke on unknown options, it will just issue warnings
4958 # or remarks (even with -Werror). So we grep stderr for any message
4959 # that says an option was ignored or not supported.
4960 # When given -MP, icc 7.0 and 7.1 complain thusly:
4961 # icc: Command line warning: ignoring option '-M'; no argument required
4962 # The diagnosis changed in icc 8.0:
4963 # icc: Command line remark: option '-MP' not supported
4964 if (grep 'ignoring option' conftest.err ||
4965 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
a93f15c0 4966 am_cv_OBJCXX_dependencies_compiler_type=$depmode
a243b558
JF
4967 break
4968 fi
4969 fi
4970 done
9c60689e 4971
a243b558
JF
4972 cd ..
4973 rm -rf conftest.dir
4974else
a93f15c0 4975 am_cv_OBJCXX_dependencies_compiler_type=none
35fa52c0 4976fi
a243b558 4977
35fa52c0 4978fi
a93f15c0
JF
4979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5
4980$as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; }
4981OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type
a243b558
JF
4982
4983 if
4984 test "x$enable_dependency_tracking" != xno \
a93f15c0
JF
4985 && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then
4986 am__fastdepOBJCXX_TRUE=
4987 am__fastdepOBJCXX_FALSE='#'
a243b558 4988else
a93f15c0
JF
4989 am__fastdepOBJCXX_TRUE='#'
4990 am__fastdepOBJCXX_FALSE=
a243b558
JF
4991fi
4992
4993
4994
8d20f0f1
JF
4995ac_ext=c
4996ac_cpp='$CPP $CPPFLAGS'
4997ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4998ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4999ac_compiler_gnu=$ac_cv_c_compiler_gnu
5000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5001$as_echo_n "checking how to run the C preprocessor... " >&6; }
5002# On Suns, sometimes $CPP names a directory.
5003if test -n "$CPP" && test -d "$CPP"; then
5004 CPP=
5005fi
5006if test -z "$CPP"; then
5007 if ${ac_cv_prog_CPP+:} false; then :
a243b558
JF
5008 $as_echo_n "(cached) " >&6
5009else
8d20f0f1
JF
5010 # Double quotes because CPP needs to be expanded
5011 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5012 do
5013 ac_preproc_ok=false
5014for ac_c_preproc_warn_flag in '' yes
a243b558 5015do
8d20f0f1
JF
5016 # Use a header file that comes with gcc, so configuring glibc
5017 # with a fresh cross-compiler works.
5018 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5019 # <limits.h> exists even on freestanding compilers.
5020 # On the NeXT, cc -E runs the code through the compiler's parser,
5021 # not just through cpp. "Syntax error" is here to catch this case.
5022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5023/* end confdefs.h. */
5024#ifdef __STDC__
5025# include <limits.h>
5026#else
5027# include <assert.h>
5028#endif
5029 Syntax error
5030_ACEOF
5031if ac_fn_c_try_cpp "$LINENO"; then :
a243b558 5032
35fa52c0 5033else
8d20f0f1
JF
5034 # Broken: fails on valid input.
5035continue
35fa52c0 5036fi
8d20f0f1 5037rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 5038
8d20f0f1
JF
5039 # OK, works on sane cases. Now check whether nonexistent headers
5040 # can be detected and how.
5041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5042/* end confdefs.h. */
5043#include <ac_nonexistent.h>
5044_ACEOF
5045if ac_fn_c_try_cpp "$LINENO"; then :
5046 # Broken: success on invalid input.
5047continue
5048else
5049 # Passes both tests.
5050ac_preproc_ok=:
5051break
5052fi
5053rm -f conftest.err conftest.i conftest.$ac_ext
a243b558 5054
8d20f0f1
JF
5055done
5056# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5057rm -f conftest.i conftest.err conftest.$ac_ext
5058if $ac_preproc_ok; then :
5059 break
5060fi
5061
5062 done
5063 ac_cv_prog_CPP=$CPP
5064
5065fi
5066 CPP=$ac_cv_prog_CPP
5067else
5068 ac_cv_prog_CPP=$CPP
5069fi
5070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5071$as_echo "$CPP" >&6; }
5072ac_preproc_ok=false
5073for ac_c_preproc_warn_flag in '' yes
5074do
5075 # Use a header file that comes with gcc, so configuring glibc
5076 # with a fresh cross-compiler works.
5077 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5078 # <limits.h> exists even on freestanding compilers.
5079 # On the NeXT, cc -E runs the code through the compiler's parser,
5080 # not just through cpp. "Syntax error" is here to catch this case.
5081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5082/* end confdefs.h. */
5083#ifdef __STDC__
5084# include <limits.h>
5085#else
5086# include <assert.h>
5087#endif
5088 Syntax error
5089_ACEOF
5090if ac_fn_c_try_cpp "$LINENO"; then :
5091
5092else
5093 # Broken: fails on valid input.
5094continue
5095fi
5096rm -f conftest.err conftest.i conftest.$ac_ext
5097
5098 # OK, works on sane cases. Now check whether nonexistent headers
5099 # can be detected and how.
5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101/* end confdefs.h. */
5102#include <ac_nonexistent.h>
5103_ACEOF
5104if ac_fn_c_try_cpp "$LINENO"; then :
5105 # Broken: success on invalid input.
5106continue
5107else
5108 # Passes both tests.
5109ac_preproc_ok=:
5110break
5111fi
5112rm -f conftest.err conftest.i conftest.$ac_ext
5113
5114done
5115# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5116rm -f conftest.i conftest.err conftest.$ac_ext
5117if $ac_preproc_ok; then :
5118
5119else
5120 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5121$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5122as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5123See \`config.log' for more details" "$LINENO" 5; }
5124fi
5125
5126ac_ext=c
5127ac_cpp='$CPP $CPPFLAGS'
5128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5130ac_compiler_gnu=$ac_cv_c_compiler_gnu
5131
5132
5133# Make sure we can run config.sub.
5134$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5135 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5136
5137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5138$as_echo_n "checking build system type... " >&6; }
5139if ${ac_cv_build+:} false; then :
5140 $as_echo_n "(cached) " >&6
5141else
5142 ac_build_alias=$build_alias
5143test "x$ac_build_alias" = x &&
5144 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5145test "x$ac_build_alias" = x &&
5146 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5147ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5148 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5149
5150fi
5151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5152$as_echo "$ac_cv_build" >&6; }
5153case $ac_cv_build in
5154*-*-*) ;;
5155*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5156esac
5157build=$ac_cv_build
5158ac_save_IFS=$IFS; IFS='-'
5159set x $ac_cv_build
5160shift
5161build_cpu=$1
5162build_vendor=$2
5163shift; shift
5164# Remember, the first character of IFS is used to create $*,
5165# except with old shells:
5166build_os=$*
5167IFS=$ac_save_IFS
5168case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5169
5170
5171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5172$as_echo_n "checking host system type... " >&6; }
5173if ${ac_cv_host+:} false; then :
5174 $as_echo_n "(cached) " >&6
5175else
5176 if test "x$host_alias" = x; then
5177 ac_cv_host=$ac_cv_build
5178else
5179 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5180 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5181fi
5182
5183fi
5184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5185$as_echo "$ac_cv_host" >&6; }
5186case $ac_cv_host in
5187*-*-*) ;;
5188*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5189esac
5190host=$ac_cv_host
5191ac_save_IFS=$IFS; IFS='-'
5192set x $ac_cv_host
5193shift
5194host_cpu=$1
5195host_vendor=$2
5196shift; shift
5197# Remember, the first character of IFS is used to create $*,
5198# except with old shells:
5199host_os=$*
5200IFS=$ac_save_IFS
5201case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5202
5203
5204
5205
5206save_cross_compiling=$cross_compiling
5207save_ac_tool_prefix=$ac_tool_prefix
5208cross_compiling=no
5209ac_tool_prefix=
5210
5211ac_ext=c
5212ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5213ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5214ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5215ac_compiler_gnu=$ac_cv_c_compiler_gnu
5216if test -n "$ac_tool_prefix"; then
5217 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5218set dummy ${ac_tool_prefix}gcc; ac_word=$2
5219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5220$as_echo_n "checking for $ac_word... " >&6; }
5221if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
5222 $as_echo_n "(cached) " >&6
5223else
5224 if test -n "$CC_FOR_BUILD"; then
5225 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5226else
5227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228for as_dir in $PATH
5229do
5230 IFS=$as_save_IFS
5231 test -z "$as_dir" && as_dir=.
5232 for ac_exec_ext in '' $ac_executable_extensions; do
5233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5234 ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}gcc"
5235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5236 break 2
5237 fi
5238done
5239 done
5240IFS=$as_save_IFS
5241
5242fi
5243fi
5244CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5245if test -n "$CC_FOR_BUILD"; then
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5247$as_echo "$CC_FOR_BUILD" >&6; }
5248else
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5250$as_echo "no" >&6; }
5251fi
5252
5253
5254fi
5255if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
5256 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
5257 # Extract the first word of "gcc", so it can be a program name with args.
5258set dummy gcc; ac_word=$2
5259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5260$as_echo_n "checking for $ac_word... " >&6; }
5261if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
5262 $as_echo_n "(cached) " >&6
5263else
5264 if test -n "$ac_ct_CC_FOR_BUILD"; then
5265 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5266else
5267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5268for as_dir in $PATH
5269do
5270 IFS=$as_save_IFS
5271 test -z "$as_dir" && as_dir=.
5272 for ac_exec_ext in '' $ac_executable_extensions; do
5273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5274 ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
5275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5276 break 2
5277 fi
5278done
5279 done
5280IFS=$as_save_IFS
5281
5282fi
5283fi
5284ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5285if test -n "$ac_ct_CC_FOR_BUILD"; then
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
5287$as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
5288else
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5290$as_echo "no" >&6; }
5291fi
5292
5293 if test "x$ac_ct_CC_FOR_BUILD" = x; then
5294 CC_FOR_BUILD=""
5295 else
5296 case $cross_compiling:$ac_tool_warned in
5297yes:)
5298{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
5299$as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
5300ac_tool_warned=yes ;;
5301esac
5302 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5303 fi
5304else
5305 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
5306fi
5307
5308if test -z "$CC_FOR_BUILD"; then
5309 if test -n "$ac_tool_prefix"; then
5310 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5311set dummy ${ac_tool_prefix}cc; ac_word=$2
5312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5313$as_echo_n "checking for $ac_word... " >&6; }
5314if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
5315 $as_echo_n "(cached) " >&6
5316else
5317 if test -n "$CC_FOR_BUILD"; then
5318 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5319else
5320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321for as_dir in $PATH
5322do
5323 IFS=$as_save_IFS
5324 test -z "$as_dir" && as_dir=.
5325 for ac_exec_ext in '' $ac_executable_extensions; do
5326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5327 ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}cc"
5328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5329 break 2
5330 fi
5331done
5332 done
5333IFS=$as_save_IFS
5334
5335fi
5336fi
5337CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5338if test -n "$CC_FOR_BUILD"; then
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5340$as_echo "$CC_FOR_BUILD" >&6; }
5341else
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5343$as_echo "no" >&6; }
5344fi
5345
5346
5347 fi
5348fi
5349if test -z "$CC_FOR_BUILD"; then
5350 # Extract the first word of "cc", so it can be a program name with args.
5351set dummy cc; ac_word=$2
5352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5353$as_echo_n "checking for $ac_word... " >&6; }
5354if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
5355 $as_echo_n "(cached) " >&6
5356else
5357 if test -n "$CC_FOR_BUILD"; then
5358 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5359else
5360 ac_prog_rejected=no
5361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362for as_dir in $PATH
5363do
5364 IFS=$as_save_IFS
5365 test -z "$as_dir" && as_dir=.
5366 for ac_exec_ext in '' $ac_executable_extensions; do
5367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5368 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5369 ac_prog_rejected=yes
5370 continue
5371 fi
5372 ac_cv_prog_CC_FOR_BUILD="cc"
5373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5374 break 2
5375 fi
5376done
5377 done
5378IFS=$as_save_IFS
5379
5380if test $ac_prog_rejected = yes; then
5381 # We found a bogon in the path, so make sure we never use it.
5382 set dummy $ac_cv_prog_CC_FOR_BUILD
5383 shift
5384 if test $# != 0; then
5385 # We chose a different compiler from the bogus one.
5386 # However, it has the same basename, so the bogon will be chosen
5387 # first if we set CC_FOR_BUILD to just the basename; use the full file name.
5388 shift
5389 ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
5390 fi
5391fi
5392fi
5393fi
5394CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5395if test -n "$CC_FOR_BUILD"; then
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5397$as_echo "$CC_FOR_BUILD" >&6; }
5398else
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5400$as_echo "no" >&6; }
5401fi
5402
5403
5404fi
5405if test -z "$CC_FOR_BUILD"; then
5406 if test -n "$ac_tool_prefix"; then
5407 for ac_prog in cl.exe
5408 do
5409 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5410set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5412$as_echo_n "checking for $ac_word... " >&6; }
5413if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
5414 $as_echo_n "(cached) " >&6
5415else
5416 if test -n "$CC_FOR_BUILD"; then
5417 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5418else
5419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5420for as_dir in $PATH
5421do
5422 IFS=$as_save_IFS
5423 test -z "$as_dir" && as_dir=.
5424 for ac_exec_ext in '' $ac_executable_extensions; do
5425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5426 ac_cv_prog_CC_FOR_BUILD="$ac_tool_prefix$ac_prog"
5427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5428 break 2
5429 fi
5430done
5431 done
5432IFS=$as_save_IFS
5433
5434fi
5435fi
5436CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5437if test -n "$CC_FOR_BUILD"; then
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5439$as_echo "$CC_FOR_BUILD" >&6; }
5440else
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5442$as_echo "no" >&6; }
5443fi
5444
5445
5446 test -n "$CC_FOR_BUILD" && break
5447 done
5448fi
5449if test -z "$CC_FOR_BUILD"; then
5450 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
5451 for ac_prog in cl.exe
5452do
5453 # Extract the first word of "$ac_prog", so it can be a program name with args.
5454set dummy $ac_prog; ac_word=$2
5455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5456$as_echo_n "checking for $ac_word... " >&6; }
5457if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
5458 $as_echo_n "(cached) " >&6
5459else
5460 if test -n "$ac_ct_CC_FOR_BUILD"; then
5461 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5462else
5463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464for as_dir in $PATH
5465do
5466 IFS=$as_save_IFS
5467 test -z "$as_dir" && as_dir=.
5468 for ac_exec_ext in '' $ac_executable_extensions; do
5469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5470 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
5471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5472 break 2
5473 fi
5474done
5475 done
5476IFS=$as_save_IFS
5477
5478fi
5479fi
5480ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5481if test -n "$ac_ct_CC_FOR_BUILD"; then
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
5483$as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
5484else
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5486$as_echo "no" >&6; }
5487fi
5488
5489
5490 test -n "$ac_ct_CC_FOR_BUILD" && break
5491done
5492
5493 if test "x$ac_ct_CC_FOR_BUILD" = x; then
5494 CC_FOR_BUILD=""
5495 else
5496 case $cross_compiling:$ac_tool_warned in
5497yes:)
5498{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
5499$as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
5500ac_tool_warned=yes ;;
5501esac
5502 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5503 fi
5504fi
5505
5506fi
5507
5508
5509test -z "$CC_FOR_BUILD" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5510$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5511as_fn_error $? "no acceptable C compiler found in \$PATH
5512See \`config.log' for more details" "$LINENO" 5; }
5513
5514# Provide some information about the compiler.
5515$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5516set X $ac_build_compile
5517ac_compiler=$2
5518for ac_option in --version -v -V -qversion; do
5519 { { ac_try="$ac_compiler $ac_option >&5"
5520case "(($ac_try" in
5521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5522 *) ac_try_echo=$ac_try;;
5523esac
5524eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5525$as_echo "$ac_try_echo"; } >&5
5526 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5527 ac_status=$?
5528 if test -s conftest.err; then
5529 sed '10a\
5530... rest of stderr output deleted ...
5531 10q' conftest.err >conftest.er1
5532 cat conftest.er1 >&5
5533 fi
5534 rm -f conftest.er1 conftest.err
5535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5536 test $ac_status = 0; }
5537done
5538
5539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5540$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5541if ${ac_cv_c_compiler_gnu+:} false; then :
5542 $as_echo_n "(cached) " >&6
5543else
5544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5545/* end confdefs.h. */
5546
5547int
5548main ()
5549{
5550#ifndef __GNUC__
5551 choke me
5552#endif
5553
5554 ;
5555 return 0;
5556}
5557_ACEOF
5558if ac_fn_c_try_compile "$LINENO"; then :
5559 ac_compiler_gnu=yes
5560else
5561 ac_compiler_gnu=no
5562fi
5563rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5564ac_cv_c_compiler_gnu=$ac_compiler_gnu
5565
5566fi
5567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5568$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5569if test $ac_compiler_gnu = yes; then
5570 GCC=yes
5571else
5572 GCC=
5573fi
5574ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
5575ac_save_CFLAGS=$CFLAGS_FOR_BUILD
5576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5
5577$as_echo_n "checking whether $CC_FOR_BUILD accepts -g... " >&6; }
5578if ${ac_cv_build_prog_cc_g+:} false; then :
5579 $as_echo_n "(cached) " >&6
5580else
5581 ac_save_c_werror_flag=$ac_c_werror_flag
5582 ac_c_werror_flag=yes
5583 ac_cv_build_prog_cc_g=no
5584 CFLAGS_FOR_BUILD="-g"
5585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5586/* end confdefs.h. */
5587
5588int
5589main ()
5590{
5591
5592 ;
5593 return 0;
5594}
5595_ACEOF
5596if ac_fn_c_try_compile "$LINENO"; then :
5597 ac_cv_build_prog_cc_g=yes
5598else
5599 CFLAGS_FOR_BUILD=""
5600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5601/* end confdefs.h. */
5602
5603int
5604main ()
5605{
5606
5607 ;
5608 return 0;
5609}
5610_ACEOF
5611if ac_fn_c_try_compile "$LINENO"; then :
5612
5613else
5614 ac_c_werror_flag=$ac_save_c_werror_flag
5615 CFLAGS_FOR_BUILD="-g"
5616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5617/* end confdefs.h. */
5618
5619int
5620main ()
5621{
5622
5623 ;
5624 return 0;
5625}
5626_ACEOF
5627if ac_fn_c_try_compile "$LINENO"; then :
5628 ac_cv_build_prog_cc_g=yes
5629fi
5630rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5631fi
5632rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5633fi
5634rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5635 ac_c_werror_flag=$ac_save_c_werror_flag
5636fi
5637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5
5638$as_echo "$ac_cv_build_prog_cc_g" >&6; }
5639if test "$ac_test_CFLAGS" = set; then
5640 CFLAGS_FOR_BUILD=$ac_save_CFLAGS
5641elif test $ac_cv_build_prog_cc_g = yes; then
5642 if test "$GCC" = yes; then
5643 CFLAGS_FOR_BUILD="-g -O2"
5644 else
5645 CFLAGS_FOR_BUILD="-g"
5646 fi
5647else
5648 if test "$GCC" = yes; then
5649 CFLAGS_FOR_BUILD="-O2"
5650 else
5651 CFLAGS_FOR_BUILD=
5652 fi
5653fi
5654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
5655$as_echo_n "checking for $CC_FOR_BUILD option to accept ISO C89... " >&6; }
5656if ${ac_cv_prog_cc_c89+:} false; then :
5657 $as_echo_n "(cached) " >&6
5658else
5659 ac_cv_prog_cc_c89=no
5660ac_save_CC=$CC_FOR_BUILD
5661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662/* end confdefs.h. */
5663#include <stdarg.h>
5664#include <stdio.h>
5665struct stat;
5666/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5667struct buf { int x; };
5668FILE * (*rcsopen) (struct buf *, struct stat *, int);
5669static char *e (p, i)
5670 char **p;
5671 int i;
5672{
5673 return p[i];
5674}
5675static char *f (char * (*g) (char **, int), char **p, ...)
5676{
5677 char *s;
5678 va_list v;
5679 va_start (v,p);
5680 s = g (p, va_arg (v,int));
5681 va_end (v);
5682 return s;
5683}
5684
5685/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5686 function prototypes and stuff, but not '\xHH' hex character constants.
5687 These don't provoke an error unfortunately, instead are silently treated
5688 as 'x'. The following induces an error, until -std is added to get
5689 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5690 array size at least. It's necessary to write '\x00'==0 to get something
5691 that's true only with -std. */
5692int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5693
5694/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5695 inside strings and character constants. */
5696#define FOO(x) 'x'
5697int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5698
5699int test (int i, double x);
5700struct s1 {int (*f) (int a);};
5701struct s2 {int (*f) (double a);};
5702int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5703int argc;
5704char **argv;
5705int
5706main ()
5707{
5708return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5709 ;
5710 return 0;
5711}
5712_ACEOF
5713for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5714 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5715do
5716 CC_FOR_BUILD="$ac_save_CC $ac_arg"
5717 if ac_fn_c_try_compile "$LINENO"; then :
5718 ac_cv_prog_cc_c89=$ac_arg
5719fi
5720rm -f core conftest.err conftest.$ac_build_objext
5721 test "x$ac_cv_prog_cc_c89" != "xno" && break
5722done
5723rm -f conftest.$ac_ext
5724CC_FOR_BUILD=$ac_save_CC
5725
5726fi
5727# AC_CACHE_VAL
5728case "x$ac_cv_prog_cc_c89" in
5729 x)
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5731$as_echo "none needed" >&6; } ;;
5732 xno)
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5734$as_echo "unsupported" >&6; } ;;
5735 *)
5736 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_prog_cc_c89"
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5738$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5739esac
5740if test "x$ac_cv_prog_cc_c89" != xno; then :
5741
5742fi
5743
5744ac_ext=c
5745ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5746ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5747ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5748ac_compiler_gnu=$ac_cv_c_compiler_gnu
5749
5750ac_ext=c
5751ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5752ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5753ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5754ac_compiler_gnu=$ac_cv_c_compiler_gnu
5755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD understands -c and -o together" >&5
5756$as_echo_n "checking whether $CC_FOR_BUILD understands -c and -o together... " >&6; }
5757if ${am_cv_prog_cc_c_o+:} false; then :
5758 $as_echo_n "(cached) " >&6
5759else
5760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761/* end confdefs.h. */
5762
5763int
5764main ()
5765{
5766
5767 ;
5768 return 0;
5769}
5770_ACEOF
5771 # Make sure it works both with $CC and with simple cc.
5772 # Following AC_PROG_CC_C_O, we do the test twice because some
5773 # compilers refuse to overwrite an existing .o file with -o,
5774 # though they will create one.
5775 am_cv_prog_cc_c_o=yes
5776 for am_i in 1 2; do
5777 if { echo "$as_me:$LINENO: $CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext" >&5
5778 ($CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext) >&5 2>&5
5779 ac_status=$?
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); } \
5782 && test -f conftest2.$ac_build_objext; then
5783 : OK
5784 else
5785 am_cv_prog_cc_c_o=no
5786 break
5787 fi
5788 done
5789 rm -f core conftest*
5790 unset am_i
5791fi
5792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5793$as_echo "$am_cv_prog_cc_c_o" >&6; }
5794if test "$am_cv_prog_cc_c_o" != yes; then
5795 # Losing compiler, so override with the script.
5796 # FIXME: It is wrong to rewrite CC.
5797 # But if we don't then we get into trouble of one sort or another.
5798 # A longer-term fix would be to have automake use am__CC in this case,
5799 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5800 CC_FOR_BUILD="$am_aux_dir/compile $CC_FOR_BUILD"
5801fi
5802ac_ext=c
5803ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5804ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5805ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5806ac_compiler_gnu=$ac_cv_c_compiler_gnu
5807
5808
5809depcc="$CC_FOR_BUILD" am_compiler_list=
5810
5811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5812$as_echo_n "checking dependency style of $depcc... " >&6; }
5813if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5814 $as_echo_n "(cached) " >&6
5815else
5816 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5817 # We make a subdir and do the tests there. Otherwise we can end up
5818 # making bogus files that we don't know about and never remove. For
5819 # instance it was reported that on HP-UX the gcc test will end up
5820 # making a dummy file named 'D' -- because '-MD' means "put the output
5821 # in D".
5822 rm -rf conftest.dir
5823 mkdir conftest.dir
5824 # Copy depcomp to subdir because otherwise we won't find it if we're
5825 # using a relative directory.
5826 cp "$am_depcomp" conftest.dir
5827 cd conftest.dir
5828 # We will build objects and dependencies in a subdirectory because
5829 # it helps to detect inapplicable dependency modes. For instance
5830 # both Tru64's cc and ICC support -MD to output dependencies as a
5831 # side effect of compilation, but ICC will put the dependencies in
5832 # the current directory while Tru64 will put them in the object
5833 # directory.
5834 mkdir sub
5835
5836 am_cv_CC_dependencies_compiler_type=none
5837 if test "$am_compiler_list" = ""; then
5838 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5839 fi
5840 am__universal=false
5841 case " $depcc " in #(
5842 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5843 esac
5844
5845 for depmode in $am_compiler_list; do
5846 # Setup a source with many dependencies, because some compilers
5847 # like to wrap large dependency lists on column 80 (with \), and
5848 # we should not choose a depcomp mode which is confused by this.
5849 #
5850 # We need to recreate these files for each test, as the compiler may
5851 # overwrite some of them when testing with obscure command lines.
5852 # This happens at least with the AIX C compiler.
5853 : > sub/conftest.c
5854 for i in 1 2 3 4 5 6; do
5855 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5856 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5857 # Solaris 10 /bin/sh.
5858 echo '/* dummy */' > sub/conftst$i.h
5859 done
5860 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5861
5862 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5863 # mode. It turns out that the SunPro C++ compiler does not properly
5864 # handle '-M -o', and we need to detect this. Also, some Intel
5865 # versions had trouble with output in subdirs.
5866 am__obj=sub/conftest.${OBJEXT-o}
5867 am__minus_obj="-o $am__obj"
5868 case $depmode in
5869 gcc)
5870 # This depmode causes a compiler race in universal mode.
5871 test "$am__universal" = false || continue
5872 ;;
5873 nosideeffect)
5874 # After this tag, mechanisms are not by side-effect, so they'll
5875 # only be used when explicitly requested.
5876 if test "x$enable_dependency_tracking" = xyes; then
5877 continue
5878 else
5879 break
5880 fi
5881 ;;
5882 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5883 # This compiler won't grok '-c -o', but also, the minuso test has
5884 # not run yet. These depmodes are late enough in the game, and
5885 # so weak that their functioning should not be impacted.
5886 am__obj=conftest.${OBJEXT-o}
5887 am__minus_obj=
5888 ;;
5889 none) break ;;
5890 esac
5891 if depmode=$depmode \
5892 source=sub/conftest.c object=$am__obj \
5893 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5894 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5895 >/dev/null 2>conftest.err &&
5896 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5897 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5898 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5899 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5900 # icc doesn't choke on unknown options, it will just issue warnings
5901 # or remarks (even with -Werror). So we grep stderr for any message
5902 # that says an option was ignored or not supported.
5903 # When given -MP, icc 7.0 and 7.1 complain thusly:
5904 # icc: Command line warning: ignoring option '-M'; no argument required
5905 # The diagnosis changed in icc 8.0:
5906 # icc: Command line remark: option '-MP' not supported
5907 if (grep 'ignoring option' conftest.err ||
5908 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5909 am_cv_CC_dependencies_compiler_type=$depmode
5910 break
5911 fi
5912 fi
5913 done
5914
5915 cd ..
5916 rm -rf conftest.dir
5917else
5918 am_cv_CC_dependencies_compiler_type=none
5919fi
5920
5921fi
5922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5923$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5924CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5925
5926 if
5927 test "x$enable_dependency_tracking" != xno \
5928 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5929 am__fastdepCC_TRUE=
5930 am__fastdepCC_FALSE='#'
5931else
5932 am__fastdepCC_TRUE='#'
5933 am__fastdepCC_FALSE=
5934fi
5935
5936
5937ac_ext=c
5938ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5939ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5940ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5941ac_compiler_gnu=$ac_cv_c_compiler_gnu
5942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5943$as_echo_n "checking how to run the C preprocessor... " >&6; }
5944# On Suns, sometimes $CPP names a directory.
5945if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
5946 CPP_FOR_BUILD=
5947fi
5948if test -z "$CPP_FOR_BUILD"; then
5949 if ${ac_cv_build_prog_CPP+:} false; then :
5950 $as_echo_n "(cached) " >&6
5951else
5952 # Double quotes because CPP needs to be expanded
5953 for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
5954 do
5955 ac_preproc_ok=false
5956for ac_c_preproc_warn_flag in '' yes
5957do
5958 # Use a header file that comes with gcc, so configuring glibc
5959 # with a fresh cross-compiler works.
5960 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5961 # <limits.h> exists even on freestanding compilers.
5962 # On the NeXT, cc -E runs the code through the compiler's parser,
5963 # not just through cpp. "Syntax error" is here to catch this case.
5964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5965/* end confdefs.h. */
5966#ifdef __STDC__
5967# include <limits.h>
5968#else
5969# include <assert.h>
5970#endif
5971 Syntax error
5972_ACEOF
5973if ac_fn_c_try_cpp "$LINENO"; then :
5974
5975else
5976 # Broken: fails on valid input.
5977continue
5978fi
5979rm -f conftest.err conftest.i conftest.$ac_ext
5980
5981 # OK, works on sane cases. Now check whether nonexistent headers
5982 # can be detected and how.
5983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5984/* end confdefs.h. */
5985#include <ac_nonexistent.h>
5986_ACEOF
5987if ac_fn_c_try_cpp "$LINENO"; then :
5988 # Broken: success on invalid input.
5989continue
5990else
5991 # Passes both tests.
5992ac_preproc_ok=:
5993break
5994fi
5995rm -f conftest.err conftest.i conftest.$ac_ext
5996
5997done
5998# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5999rm -f conftest.i conftest.err conftest.$ac_ext
6000if $ac_preproc_ok; then :
6001 break
6002fi
6003
6004 done
6005 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
6006
6007fi
6008 CPP_FOR_BUILD=$ac_cv_build_prog_CPP
6009else
6010 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
6011fi
6012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
6013$as_echo "$CPP_FOR_BUILD" >&6; }
6014ac_preproc_ok=false
6015for ac_c_preproc_warn_flag in '' yes
6016do
6017 # Use a header file that comes with gcc, so configuring glibc
6018 # with a fresh cross-compiler works.
6019 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6020 # <limits.h> exists even on freestanding compilers.
6021 # On the NeXT, cc -E runs the code through the compiler's parser,
6022 # not just through cpp. "Syntax error" is here to catch this case.
6023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6024/* end confdefs.h. */
6025#ifdef __STDC__
6026# include <limits.h>
6027#else
6028# include <assert.h>
6029#endif
6030 Syntax error
6031_ACEOF
6032if ac_fn_c_try_cpp "$LINENO"; then :
6033
6034else
6035 # Broken: fails on valid input.
6036continue
6037fi
6038rm -f conftest.err conftest.i conftest.$ac_ext
6039
6040 # OK, works on sane cases. Now check whether nonexistent headers
6041 # can be detected and how.
6042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6043/* end confdefs.h. */
6044#include <ac_nonexistent.h>
6045_ACEOF
6046if ac_fn_c_try_cpp "$LINENO"; then :
6047 # Broken: success on invalid input.
6048continue
6049else
6050 # Passes both tests.
6051ac_preproc_ok=:
6052break
6053fi
6054rm -f conftest.err conftest.i conftest.$ac_ext
6055
6056done
6057# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6058rm -f conftest.i conftest.err conftest.$ac_ext
6059if $ac_preproc_ok; then :
6060
6061else
6062 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6063$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6064as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
6065See \`config.log' for more details" "$LINENO" 5; }
6066fi
6067
6068ac_ext=c
6069ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6070ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6071ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
6072ac_compiler_gnu=$ac_cv_c_compiler_gnu
6073
6074
6075
6076ac_tool_prefix=$save_ac_tool_prefix
6077cross_compiling=$save_cross_compiling
6078
6079
6080BUILD_EXEEXT=$ac_build_exeext
6081BUILD_OBJEXT=$ac_build_objext
6082
6083ac_ext=cpp
6084ac_cpp='$CXXCPP $CPPFLAGS'
6085ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6086ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6087ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6089$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6090if test -z "$CXXCPP"; then
6091 if ${ac_cv_prog_CXXCPP+:} false; then :
6092 $as_echo_n "(cached) " >&6
6093else
6094 # Double quotes because CXXCPP needs to be expanded
6095 for CXXCPP in "$CXX -E" "/lib/cpp"
6096 do
6097 ac_preproc_ok=false
6098for ac_cxx_preproc_warn_flag in '' yes
6099do
6100 # Use a header file that comes with gcc, so configuring glibc
6101 # with a fresh cross-compiler works.
6102 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6103 # <limits.h> exists even on freestanding compilers.
6104 # On the NeXT, cc -E runs the code through the compiler's parser,
6105 # not just through cpp. "Syntax error" is here to catch this case.
6106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6107/* end confdefs.h. */
6108#ifdef __STDC__
6109# include <limits.h>
6110#else
6111# include <assert.h>
6112#endif
6113 Syntax error
6114_ACEOF
6115if ac_fn_cxx_try_cpp "$LINENO"; then :
6116
6117else
6118 # Broken: fails on valid input.
6119continue
6120fi
6121rm -f conftest.err conftest.i conftest.$ac_ext
6122
6123 # OK, works on sane cases. Now check whether nonexistent headers
6124 # can be detected and how.
6125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6126/* end confdefs.h. */
6127#include <ac_nonexistent.h>
6128_ACEOF
6129if ac_fn_cxx_try_cpp "$LINENO"; then :
6130 # Broken: success on invalid input.
6131continue
6132else
6133 # Passes both tests.
6134ac_preproc_ok=:
6135break
6136fi
6137rm -f conftest.err conftest.i conftest.$ac_ext
6138
6139done
6140# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6141rm -f conftest.i conftest.err conftest.$ac_ext
6142if $ac_preproc_ok; then :
6143 break
6144fi
6145
6146 done
6147 ac_cv_prog_CXXCPP=$CXXCPP
6148
6149fi
6150 CXXCPP=$ac_cv_prog_CXXCPP
6151else
6152 ac_cv_prog_CXXCPP=$CXXCPP
6153fi
6154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6155$as_echo "$CXXCPP" >&6; }
6156ac_preproc_ok=false
6157for ac_cxx_preproc_warn_flag in '' yes
6158do
6159 # Use a header file that comes with gcc, so configuring glibc
6160 # with a fresh cross-compiler works.
6161 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6162 # <limits.h> exists even on freestanding compilers.
6163 # On the NeXT, cc -E runs the code through the compiler's parser,
6164 # not just through cpp. "Syntax error" is here to catch this case.
6165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6166/* end confdefs.h. */
6167#ifdef __STDC__
6168# include <limits.h>
6169#else
6170# include <assert.h>
6171#endif
6172 Syntax error
6173_ACEOF
6174if ac_fn_cxx_try_cpp "$LINENO"; then :
6175
6176else
6177 # Broken: fails on valid input.
6178continue
6179fi
6180rm -f conftest.err conftest.i conftest.$ac_ext
6181
6182 # OK, works on sane cases. Now check whether nonexistent headers
6183 # can be detected and how.
6184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6185/* end confdefs.h. */
6186#include <ac_nonexistent.h>
6187_ACEOF
6188if ac_fn_cxx_try_cpp "$LINENO"; then :
6189 # Broken: success on invalid input.
6190continue
6191else
6192 # Passes both tests.
6193ac_preproc_ok=:
6194break
6195fi
6196rm -f conftest.err conftest.i conftest.$ac_ext
6197
6198done
6199# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6200rm -f conftest.i conftest.err conftest.$ac_ext
6201if $ac_preproc_ok; then :
6202
6203else
6204 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6205$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6206as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6207See \`config.log' for more details" "$LINENO" 5; }
6208fi
6209
6210ac_ext=c
6211ac_cpp='$CPP $CPPFLAGS'
6212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6214ac_compiler_gnu=$ac_cv_c_compiler_gnu
6215
6216
6217
6218save_cross_compiling=$cross_compiling
6219save_ac_tool_prefix=$ac_tool_prefix
6220cross_compiling=no
6221ac_tool_prefix=
6222
6223ac_ext=cpp
6224ac_cpp='$CXXCPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6225ac_build_compile='$CXX_FOR_BUILD -c $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6226ac_build_link='$CXX_FOR_BUILD -o conftest$ac_exeext $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6227ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6228if test -z "$CXX_FOR_BUILD"; then
6229 if test -n "$CCC"; then
6230 CXX_FOR_BUILD=$CCC
6231 else
6232 if test -n "$ac_tool_prefix"; then
6233 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6234 do
6235 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6236set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6238$as_echo_n "checking for $ac_word... " >&6; }
6239if ${ac_cv_prog_CXX_FOR_BUILD+:} false; then :
6240 $as_echo_n "(cached) " >&6
6241else
6242 if test -n "$CXX_FOR_BUILD"; then
6243 ac_cv_prog_CXX_FOR_BUILD="$CXX_FOR_BUILD" # Let the user override the test.
6244else
6245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246for as_dir in $PATH
6247do
6248 IFS=$as_save_IFS
6249 test -z "$as_dir" && as_dir=.
6250 for ac_exec_ext in '' $ac_executable_extensions; do
6251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6252 ac_cv_prog_CXX_FOR_BUILD="$ac_tool_prefix$ac_prog"
6253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6254 break 2
6255 fi
6256done
6257 done
6258IFS=$as_save_IFS
6259
6260fi
6261fi
6262CXX_FOR_BUILD=$ac_cv_prog_CXX_FOR_BUILD
6263if test -n "$CXX_FOR_BUILD"; then
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_BUILD" >&5
6265$as_echo "$CXX_FOR_BUILD" >&6; }
6266else
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6268$as_echo "no" >&6; }
6269fi
6270
6271
6272 test -n "$CXX_FOR_BUILD" && break
6273 done
6274fi
6275if test -z "$CXX_FOR_BUILD"; then
6276 ac_ct_CXX_FOR_BUILD=$CXX_FOR_BUILD
6277 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6278do
6279 # Extract the first word of "$ac_prog", so it can be a program name with args.
6280set dummy $ac_prog; ac_word=$2
6281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6282$as_echo_n "checking for $ac_word... " >&6; }
6283if ${ac_cv_prog_ac_ct_CXX_FOR_BUILD+:} false; then :
6284 $as_echo_n "(cached) " >&6
6285else
6286 if test -n "$ac_ct_CXX_FOR_BUILD"; then
6287 ac_cv_prog_ac_ct_CXX_FOR_BUILD="$ac_ct_CXX_FOR_BUILD" # Let the user override the test.
6288else
6289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6290for as_dir in $PATH
6291do
6292 IFS=$as_save_IFS
6293 test -z "$as_dir" && as_dir=.
6294 for ac_exec_ext in '' $ac_executable_extensions; do
6295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6296 ac_cv_prog_ac_ct_CXX_FOR_BUILD="$ac_prog"
6297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6298 break 2
6299 fi
6300done
6301 done
6302IFS=$as_save_IFS
6303
6304fi
6305fi
6306ac_ct_CXX_FOR_BUILD=$ac_cv_prog_ac_ct_CXX_FOR_BUILD
6307if test -n "$ac_ct_CXX_FOR_BUILD"; then
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX_FOR_BUILD" >&5
6309$as_echo "$ac_ct_CXX_FOR_BUILD" >&6; }
6310else
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6312$as_echo "no" >&6; }
6313fi
6314
6315
6316 test -n "$ac_ct_CXX_FOR_BUILD" && break
6317done
6318
6319 if test "x$ac_ct_CXX_FOR_BUILD" = x; then
6320 CXX_FOR_BUILD="g++"
6321 else
6322 case $cross_compiling:$ac_tool_warned in
6323yes:)
6324{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
6325$as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
6326ac_tool_warned=yes ;;
6327esac
6328 CXX_FOR_BUILD=$ac_ct_CXX_FOR_BUILD
6329 fi
6330fi
6331
6332 fi
6333fi
6334# Provide some information about the compiler.
6335$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6336set X $ac_build_compile
6337ac_compiler=$2
6338for ac_option in --version -v -V -qversion; do
6339 { { ac_try="$ac_compiler $ac_option >&5"
6340case "(($ac_try" in
6341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6342 *) ac_try_echo=$ac_try;;
6343esac
6344eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6345$as_echo "$ac_try_echo"; } >&5
6346 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6347 ac_status=$?
6348 if test -s conftest.err; then
6349 sed '10a\
6350... rest of stderr output deleted ...
6351 10q' conftest.err >conftest.er1
6352 cat conftest.er1 >&5
6353 fi
6354 rm -f conftest.er1 conftest.err
6355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6356 test $ac_status = 0; }
6357done
6358
6359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6360$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6361if ${ac_cv_cxx_compiler_gnu+:} false; then :
6362 $as_echo_n "(cached) " >&6
6363else
6364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6365/* end confdefs.h. */
6366
6367int
6368main ()
6369{
6370#ifndef __GNUC__
6371 choke me
6372#endif
6373
6374 ;
6375 return 0;
6376}
6377_ACEOF
6378if ac_fn_cxx_try_compile "$LINENO"; then :
6379 ac_compiler_gnu=yes
6380else
6381 ac_compiler_gnu=no
6382fi
6383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6384ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6385
6386fi
6387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6388$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6389if test $ac_compiler_gnu = yes; then
6390 GXX=yes
6391else
6392 GXX=
6393fi
6394ac_test_CXXFLAGS=${CXXFLAGS_FOR_BUILD+set}
6395ac_save_CXXFLAGS=$CXXFLAGS_FOR_BUILD
6396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX_FOR_BUILD accepts -g" >&5
6397$as_echo_n "checking whether $CXX_FOR_BUILD accepts -g... " >&6; }
6398if ${ac_cv_build_prog_cxx_g+:} false; then :
6399 $as_echo_n "(cached) " >&6
6400else
6401 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6402 ac_cxx_werror_flag=yes
6403 ac_cv_build_prog_cxx_g=no
6404 CXXFLAGS_FOR_BUILD="-g"
6405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6406/* end confdefs.h. */
6407
6408int
6409main ()
6410{
6411
6412 ;
6413 return 0;
6414}
6415_ACEOF
6416if ac_fn_cxx_try_compile "$LINENO"; then :
6417 ac_cv_build_prog_cxx_g=yes
6418else
6419 CXXFLAGS_FOR_BUILD=""
6420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6421/* end confdefs.h. */
6422
6423int
6424main ()
6425{
6426
6427 ;
6428 return 0;
6429}
6430_ACEOF
6431if ac_fn_cxx_try_compile "$LINENO"; then :
6432
6433else
6434 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6435 CXXFLAGS_FOR_BUILD="-g"
6436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6437/* end confdefs.h. */
6438
6439int
6440main ()
6441{
6442
6443 ;
6444 return 0;
6445}
6446_ACEOF
6447if ac_fn_cxx_try_compile "$LINENO"; then :
6448 ac_cv_build_prog_cxx_g=yes
6449fi
6450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6451fi
6452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6453fi
6454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6455 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6456fi
6457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cxx_g" >&5
6458$as_echo "$ac_cv_build_prog_cxx_g" >&6; }
6459if test "$ac_test_CXXFLAGS" = set; then
6460 CXXFLAGS_FOR_BUILD=$ac_save_CXXFLAGS
6461elif test $ac_cv_build_prog_cxx_g = yes; then
6462 if test "$GXX" = yes; then
6463 CXXFLAGS_FOR_BUILD="-g -O2"
6464 else
6465 CXXFLAGS_FOR_BUILD="-g"
6466 fi
6467else
6468 if test "$GXX" = yes; then
6469 CXXFLAGS_FOR_BUILD="-O2"
6470 else
6471 CXXFLAGS_FOR_BUILD=
6472 fi
6473fi
6474ac_ext=c
6475ac_cpp='$CPP $CPPFLAGS_FOR_BUILD'
6476ac_build_compile='$CC -c $CFLAGS $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6477ac_build_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6478ac_compiler_gnu=$ac_cv_c_compiler_gnu
6479
6480depcc="$CXX_FOR_BUILD" am_compiler_list=
6481
6482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6483$as_echo_n "checking dependency style of $depcc... " >&6; }
6484if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6485 $as_echo_n "(cached) " >&6
6486else
6487 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6488 # We make a subdir and do the tests there. Otherwise we can end up
6489 # making bogus files that we don't know about and never remove. For
6490 # instance it was reported that on HP-UX the gcc test will end up
6491 # making a dummy file named 'D' -- because '-MD' means "put the output
6492 # in D".
6493 rm -rf conftest.dir
6494 mkdir conftest.dir
6495 # Copy depcomp to subdir because otherwise we won't find it if we're
6496 # using a relative directory.
6497 cp "$am_depcomp" conftest.dir
6498 cd conftest.dir
6499 # We will build objects and dependencies in a subdirectory because
6500 # it helps to detect inapplicable dependency modes. For instance
6501 # both Tru64's cc and ICC support -MD to output dependencies as a
6502 # side effect of compilation, but ICC will put the dependencies in
6503 # the current directory while Tru64 will put them in the object
6504 # directory.
6505 mkdir sub
6506
6507 am_cv_CXX_dependencies_compiler_type=none
6508 if test "$am_compiler_list" = ""; then
6509 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6510 fi
6511 am__universal=false
6512 case " $depcc " in #(
6513 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6514 esac
6515
6516 for depmode in $am_compiler_list; do
6517 # Setup a source with many dependencies, because some compilers
6518 # like to wrap large dependency lists on column 80 (with \), and
6519 # we should not choose a depcomp mode which is confused by this.
6520 #
6521 # We need to recreate these files for each test, as the compiler may
6522 # overwrite some of them when testing with obscure command lines.
6523 # This happens at least with the AIX C compiler.
6524 : > sub/conftest.c
6525 for i in 1 2 3 4 5 6; do
6526 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6527 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6528 # Solaris 10 /bin/sh.
6529 echo '/* dummy */' > sub/conftst$i.h
6530 done
6531 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6532
6533 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6534 # mode. It turns out that the SunPro C++ compiler does not properly
6535 # handle '-M -o', and we need to detect this. Also, some Intel
6536 # versions had trouble with output in subdirs.
6537 am__obj=sub/conftest.${OBJEXT-o}
6538 am__minus_obj="-o $am__obj"
6539 case $depmode in
6540 gcc)
6541 # This depmode causes a compiler race in universal mode.
6542 test "$am__universal" = false || continue
6543 ;;
6544 nosideeffect)
6545 # After this tag, mechanisms are not by side-effect, so they'll
6546 # only be used when explicitly requested.
6547 if test "x$enable_dependency_tracking" = xyes; then
6548 continue
6549 else
6550 break
6551 fi
6552 ;;
6553 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6554 # This compiler won't grok '-c -o', but also, the minuso test has
6555 # not run yet. These depmodes are late enough in the game, and
6556 # so weak that their functioning should not be impacted.
6557 am__obj=conftest.${OBJEXT-o}
6558 am__minus_obj=
6559 ;;
6560 none) break ;;
6561 esac
6562 if depmode=$depmode \
6563 source=sub/conftest.c object=$am__obj \
6564 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6565 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6566 >/dev/null 2>conftest.err &&
6567 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6568 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6569 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6570 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6571 # icc doesn't choke on unknown options, it will just issue warnings
6572 # or remarks (even with -Werror). So we grep stderr for any message
6573 # that says an option was ignored or not supported.
6574 # When given -MP, icc 7.0 and 7.1 complain thusly:
6575 # icc: Command line warning: ignoring option '-M'; no argument required
6576 # The diagnosis changed in icc 8.0:
6577 # icc: Command line remark: option '-MP' not supported
6578 if (grep 'ignoring option' conftest.err ||
6579 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6580 am_cv_CXX_dependencies_compiler_type=$depmode
6581 break
6582 fi
6583 fi
6584 done
6585
6586 cd ..
6587 rm -rf conftest.dir
6588else
6589 am_cv_CXX_dependencies_compiler_type=none
6590fi
6591
6592fi
6593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6594$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6595CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6596
6597 if
6598 test "x$enable_dependency_tracking" != xno \
6599 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6600 am__fastdepCXX_TRUE=
6601 am__fastdepCXX_FALSE='#'
6602else
6603 am__fastdepCXX_TRUE='#'
6604 am__fastdepCXX_FALSE=
6605fi
6606
6607
6608ac_ext=cpp
6609ac_cpp='$CXXCPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6610ac_build_compile='$CXX_FOR_BUILD -c $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6611ac_build_link='$CXX_FOR_BUILD -o conftest$ac_exeext $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6612ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6614$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6615if test -z "$CXXCPP_FOR_BUILD"; then
6616 if ${ac_cv_build_prog_CXXCPP+:} false; then :
6617 $as_echo_n "(cached) " >&6
6618else
6619 # Double quotes because CXXCPP needs to be expanded
6620 for CXXCPP_FOR_BUILD in "$CXX_FOR_BUILD -E" "/lib/cpp"
6621 do
6622 ac_preproc_ok=false
6623for ac_cxx_preproc_warn_flag in '' yes
6624do
6625 # Use a header file that comes with gcc, so configuring glibc
6626 # with a fresh cross-compiler works.
6627 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6628 # <limits.h> exists even on freestanding compilers.
6629 # On the NeXT, cc -E runs the code through the compiler's parser,
6630 # not just through cpp. "Syntax error" is here to catch this case.
6631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6632/* end confdefs.h. */
6633#ifdef __STDC__
6634# include <limits.h>
6635#else
6636# include <assert.h>
6637#endif
6638 Syntax error
6639_ACEOF
6640if ac_fn_cxx_try_cpp "$LINENO"; then :
6641
6642else
6643 # Broken: fails on valid input.
6644continue
6645fi
6646rm -f conftest.err conftest.i conftest.$ac_ext
6647
6648 # OK, works on sane cases. Now check whether nonexistent headers
6649 # can be detected and how.
6650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6651/* end confdefs.h. */
6652#include <ac_nonexistent.h>
6653_ACEOF
6654if ac_fn_cxx_try_cpp "$LINENO"; then :
6655 # Broken: success on invalid input.
6656continue
6657else
6658 # Passes both tests.
6659ac_preproc_ok=:
6660break
6661fi
6662rm -f conftest.err conftest.i conftest.$ac_ext
6663
6664done
6665# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6666rm -f conftest.i conftest.err conftest.$ac_ext
6667if $ac_preproc_ok; then :
6668 break
6669fi
6670
6671 done
6672 ac_cv_build_prog_CXXCPP=$CXXCPP_FOR_BUILD
6673
6674fi
6675 CXXCPP_FOR_BUILD=$ac_cv_build_prog_CXXCPP
6676else
6677 ac_cv_build_prog_CXXCPP=$CXXCPP_FOR_BUILD
6678fi
6679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP_FOR_BUILD" >&5
6680$as_echo "$CXXCPP_FOR_BUILD" >&6; }
6681ac_preproc_ok=false
6682for ac_cxx_preproc_warn_flag in '' yes
6683do
6684 # Use a header file that comes with gcc, so configuring glibc
6685 # with a fresh cross-compiler works.
6686 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6687 # <limits.h> exists even on freestanding compilers.
6688 # On the NeXT, cc -E runs the code through the compiler's parser,
6689 # not just through cpp. "Syntax error" is here to catch this case.
6690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6691/* end confdefs.h. */
6692#ifdef __STDC__
6693# include <limits.h>
6694#else
6695# include <assert.h>
6696#endif
6697 Syntax error
6698_ACEOF
6699if ac_fn_cxx_try_cpp "$LINENO"; then :
6700
6701else
6702 # Broken: fails on valid input.
6703continue
6704fi
6705rm -f conftest.err conftest.i conftest.$ac_ext
6706
6707 # OK, works on sane cases. Now check whether nonexistent headers
6708 # can be detected and how.
6709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6710/* end confdefs.h. */
6711#include <ac_nonexistent.h>
6712_ACEOF
6713if ac_fn_cxx_try_cpp "$LINENO"; then :
6714 # Broken: success on invalid input.
6715continue
6716else
6717 # Passes both tests.
6718ac_preproc_ok=:
6719break
6720fi
6721rm -f conftest.err conftest.i conftest.$ac_ext
6722
6723done
6724# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6725rm -f conftest.i conftest.err conftest.$ac_ext
6726if $ac_preproc_ok; then :
6727
6728else
6729 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6730$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6731as_fn_error $? "C++ preprocessor \"$CXXCPP_FOR_BUILD\" fails sanity check
6732See \`config.log' for more details" "$LINENO" 5; }
6733fi
6734
6735ac_ext=c
6736ac_cpp='$CPP $CPPFLAGS_FOR_BUILD'
6737ac_build_compile='$CC -c $CFLAGS $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6738ac_build_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6739ac_compiler_gnu=$ac_cv_c_compiler_gnu
6740
6741
6742ac_tool_prefix=$save_ac_tool_prefix
6743cross_compiling=$save_cross_compiling
6744
6745
6746
6747
6748
6749if test -n "$ac_tool_prefix"; then
6750 for ac_prog in ar lib "link -lib"
6751 do
6752 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6753set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6755$as_echo_n "checking for $ac_word... " >&6; }
6756if ${ac_cv_prog_AR+:} false; then :
6757 $as_echo_n "(cached) " >&6
6758else
6759 if test -n "$AR"; then
6760 ac_cv_prog_AR="$AR" # Let the user override the test.
6761else
6762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6763for as_dir in $PATH
6764do
6765 IFS=$as_save_IFS
6766 test -z "$as_dir" && as_dir=.
6767 for ac_exec_ext in '' $ac_executable_extensions; do
6768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6769 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6771 break 2
6772 fi
6773done
6774 done
6775IFS=$as_save_IFS
6776
6777fi
6778fi
6779AR=$ac_cv_prog_AR
6780if test -n "$AR"; then
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6782$as_echo "$AR" >&6; }
6783else
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6785$as_echo "no" >&6; }
6786fi
6787
6788
6789 test -n "$AR" && break
6790 done
a243b558
JF
6791fi
6792if test -z "$AR"; then
6793 ac_ct_AR=$AR
6794 for ac_prog in ar lib "link -lib"
6795do
6796 # Extract the first word of "$ac_prog", so it can be a program name with args.
6797set dummy $ac_prog; ac_word=$2
6798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6799$as_echo_n "checking for $ac_word... " >&6; }
6800if ${ac_cv_prog_ac_ct_AR+:} false; then :
6801 $as_echo_n "(cached) " >&6
6802else
6803 if test -n "$ac_ct_AR"; then
6804 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6805else
6806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807for as_dir in $PATH
6808do
6809 IFS=$as_save_IFS
6810 test -z "$as_dir" && as_dir=.
6811 for ac_exec_ext in '' $ac_executable_extensions; do
6812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6813 ac_cv_prog_ac_ct_AR="$ac_prog"
6814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6815 break 2
6816 fi
6817done
6818 done
6819IFS=$as_save_IFS
6820
6821fi
6822fi
6823ac_ct_AR=$ac_cv_prog_ac_ct_AR
6824if test -n "$ac_ct_AR"; then
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6826$as_echo "$ac_ct_AR" >&6; }
6827else
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6829$as_echo "no" >&6; }
6830fi
6831
6832
6833 test -n "$ac_ct_AR" && break
6834done
6835
6836 if test "x$ac_ct_AR" = x; then
6837 AR="false"
9c60689e
DWT
6838 else
6839 case $cross_compiling:$ac_tool_warned in
6840yes:)
6841{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6842$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6843ac_tool_warned=yes ;;
35fa52c0 6844esac
a243b558 6845 AR=$ac_ct_AR
9c60689e 6846 fi
a243b558
JF
6847fi
6848
6849: ${AR=ar}
6850
6851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6852$as_echo_n "checking the archiver ($AR) interface... " >&6; }
6853if ${am_cv_ar_interface+:} false; then :
6854 $as_echo_n "(cached) " >&6
9c60689e 6855else
a93f15c0
JF
6856 ac_ext=c
6857ac_cpp='$CPP $CPPFLAGS'
6858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6860ac_compiler_gnu=$ac_cv_c_compiler_gnu
6861
6862 am_cv_ar_interface=ar
a243b558
JF
6863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6864/* end confdefs.h. */
6865int some_variable = 0;
6866_ACEOF
6867if ac_fn_c_try_compile "$LINENO"; then :
6868 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6870 (eval $am_ar_try) 2>&5
6871 ac_status=$?
6872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6873 test $ac_status = 0; }
6874 if test "$ac_status" -eq 0; then
6875 am_cv_ar_interface=ar
6876 else
6877 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6879 (eval $am_ar_try) 2>&5
6880 ac_status=$?
6881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6882 test $ac_status = 0; }
6883 if test "$ac_status" -eq 0; then
6884 am_cv_ar_interface=lib
6885 else
6886 am_cv_ar_interface=unknown
6887 fi
6888 fi
6889 rm -f conftest.lib libconftest.a
6890
35fa52c0 6891fi
a243b558 6892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0
JF
6893 ac_ext=c
6894ac_cpp='$CPP $CPPFLAGS'
6895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6897ac_compiler_gnu=$ac_cv_c_compiler_gnu
35fa52c0 6898
a243b558
JF
6899fi
6900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6901$as_echo "$am_cv_ar_interface" >&6; }
35fa52c0 6902
a243b558
JF
6903case $am_cv_ar_interface in
6904ar)
6905 ;;
6906lib)
6907 # Microsoft lib, so override with the ar-lib wrapper script.
6908 # FIXME: It is wrong to rewrite AR.
6909 # But if we don't then we get into trouble of one sort or another.
6910 # A longer-term fix would be to have automake use am__AR in this case,
6911 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6912 # similar.
6913 AR="$am_aux_dir/ar-lib $AR"
6914 ;;
6915unknown)
6916 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6917 ;;
6918esac
35fa52c0 6919
35fa52c0 6920
35fa52c0 6921
a243b558
JF
6922case `pwd` in
6923 *\ * | *\ *)
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6925$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6926esac
35fa52c0
DWT
6927
6928
6929
9d54db95
JF
6930macro_version='2.4.6'
6931macro_revision='2.4.6'
35fa52c0
DWT
6932
6933
6934
6935
6936
6937
6938
6939
6940
8d20f0f1
JF
6941
6942
6943
6944
6945ltmain=$ac_aux_dir/ltmain.sh
6946
a243b558
JF
6947# Backslashify metacharacters that are still active within
6948# double-quoted strings.
6949sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9c60689e 6950
a243b558
JF
6951# Same as above, but do not quote variable references.
6952double_quote_subst='s/\(["`\\]\)/\\\1/g'
9c60689e 6953
a243b558
JF
6954# Sed substitution to delay expansion of an escaped shell variable in a
6955# double_quote_subst'ed string.
6956delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9c60689e 6957
a243b558
JF
6958# Sed substitution to delay expansion of an escaped single quote.
6959delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9c60689e 6960
a243b558
JF
6961# Sed substitution to avoid accidental globbing in evaled expressions
6962no_glob_subst='s/\*/\\\*/g'
35fa52c0 6963
a243b558
JF
6964ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6965ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6966ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
ee134472 6967
a243b558
JF
6968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6969$as_echo_n "checking how to print strings... " >&6; }
6970# Test print first, because it will be a builtin if present.
6971if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6972 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6973 ECHO='print -r --'
6974elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6975 ECHO='printf %s\n'
6976else
6977 # Use this function as a fallback that always works.
6978 func_fallback_echo ()
6979 {
6980 eval 'cat <<_LTECHO_EOF
6981$1
6982_LTECHO_EOF'
6983 }
6984 ECHO='func_fallback_echo'
ee134472
JF
6985fi
6986
a243b558
JF
6987# func_echo_all arg...
6988# Invoke $ECHO with all args, space-separated.
6989func_echo_all ()
6990{
6991 $ECHO ""
6992}
35fa52c0 6993
9d54db95 6994case $ECHO in
a243b558
JF
6995 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6996$as_echo "printf" >&6; } ;;
6997 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6998$as_echo "print -r" >&6; } ;;
6999 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7000$as_echo "cat" >&6; } ;;
7001esac
35fa52c0 7002
35fa52c0 7003
ee134472
JF
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
35fa52c0 7014
9c60689e 7015
a243b558
JF
7016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7017$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7018if ${ac_cv_path_SED+:} false; then :
9c60689e
DWT
7019 $as_echo_n "(cached) " >&6
7020else
a243b558
JF
7021 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7022 for ac_i in 1 2 3 4 5 6 7; do
7023 ac_script="$ac_script$as_nl$ac_script"
7024 done
7025 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7026 { ac_script=; unset ac_script;}
7027 if test -z "$SED"; then
7028 ac_path_SED_found=false
7029 # Loop through the user's path and test for each of PROGNAME-LIST
7030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9c60689e
DWT
7031for as_dir in $PATH
7032do
7033 IFS=$as_save_IFS
7034 test -z "$as_dir" && as_dir=.
a243b558 7035 for ac_prog in sed gsed; do
9c60689e 7036 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
7037 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7038 as_fn_executable_p "$ac_path_SED" || continue
7039# Check for GNU ac_path_SED and select it if it is found.
7040 # Check for GNU $ac_path_SED
7041case `"$ac_path_SED" --version 2>&1` in
7042*GNU*)
7043 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7044*)
7045 ac_count=0
7046 $as_echo_n 0123456789 >"conftest.in"
7047 while :
7048 do
7049 cat "conftest.in" "conftest.in" >"conftest.tmp"
7050 mv "conftest.tmp" "conftest.in"
7051 cp "conftest.in" "conftest.nl"
7052 $as_echo '' >> "conftest.nl"
7053 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7054 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7055 as_fn_arith $ac_count + 1 && ac_count=$as_val
7056 if test $ac_count -gt ${ac_path_SED_max-0}; then
7057 # Best one so far, save it but keep looking for a better one
7058 ac_cv_path_SED="$ac_path_SED"
7059 ac_path_SED_max=$ac_count
7060 fi
7061 # 10*(2^10) chars as input seems more than enough
7062 test $ac_count -gt 10 && break
35fa52c0 7063 done
a243b558
JF
7064 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7065esac
9c60689e 7066
a243b558
JF
7067 $ac_path_SED_found && break 3
7068 done
7069 done
9c60689e
DWT
7070 done
7071IFS=$as_save_IFS
a243b558
JF
7072 if test -z "$ac_cv_path_SED"; then
7073 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
9c60689e
DWT
7074 fi
7075else
a243b558 7076 ac_cv_path_SED=$SED
9c60689e
DWT
7077fi
7078
a243b558
JF
7079fi
7080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7081$as_echo "$ac_cv_path_SED" >&6; }
7082 SED="$ac_cv_path_SED"
7083 rm -f conftest.sed
9c60689e 7084
a243b558
JF
7085test -z "$SED" && SED=sed
7086Xsed="$SED -e 1s/^X//"
9c60689e 7087
ee134472 7088
ee134472 7089
9c60689e
DWT
7090
7091
7092
7093
7094
7095
7096
7097
a243b558
JF
7098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7099$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7100if ${ac_cv_path_GREP+:} false; then :
9c60689e
DWT
7101 $as_echo_n "(cached) " >&6
7102else
a243b558
JF
7103 if test -z "$GREP"; then
7104 ac_path_GREP_found=false
7105 # Loop through the user's path and test for each of PROGNAME-LIST
7106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9c60689e
DWT
7108do
7109 IFS=$as_save_IFS
7110 test -z "$as_dir" && as_dir=.
a243b558 7111 for ac_prog in grep ggrep; do
9c60689e 7112 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
7113 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7114 as_fn_executable_p "$ac_path_GREP" || continue
7115# Check for GNU ac_path_GREP and select it if it is found.
7116 # Check for GNU $ac_path_GREP
7117case `"$ac_path_GREP" --version 2>&1` in
7118*GNU*)
7119 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7120*)
7121 ac_count=0
7122 $as_echo_n 0123456789 >"conftest.in"
7123 while :
7124 do
7125 cat "conftest.in" "conftest.in" >"conftest.tmp"
7126 mv "conftest.tmp" "conftest.in"
7127 cp "conftest.in" "conftest.nl"
7128 $as_echo 'GREP' >> "conftest.nl"
7129 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7130 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7131 as_fn_arith $ac_count + 1 && ac_count=$as_val
7132 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7133 # Best one so far, save it but keep looking for a better one
7134 ac_cv_path_GREP="$ac_path_GREP"
7135 ac_path_GREP_max=$ac_count
7136 fi
7137 # 10*(2^10) chars as input seems more than enough
7138 test $ac_count -gt 10 && break
7139 done
7140 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7141esac
9c60689e 7142
a243b558
JF
7143 $ac_path_GREP_found && break 3
7144 done
ee134472 7145 done
a243b558
JF
7146 done
7147IFS=$as_save_IFS
7148 if test -z "$ac_cv_path_GREP"; then
7149 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7150 fi
7151else
7152 ac_cv_path_GREP=$GREP
9c60689e 7153fi
a243b558
JF
7154
7155fi
7156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7157$as_echo "$ac_cv_path_GREP" >&6; }
7158 GREP="$ac_cv_path_GREP"
7159
7160
7161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7162$as_echo_n "checking for egrep... " >&6; }
7163if ${ac_cv_path_EGREP+:} false; then :
9c60689e
DWT
7164 $as_echo_n "(cached) " >&6
7165else
a243b558
JF
7166 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7167 then ac_cv_path_EGREP="$GREP -E"
7168 else
7169 if test -z "$EGREP"; then
7170 ac_path_EGREP_found=false
7171 # Loop through the user's path and test for each of PROGNAME-LIST
7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9c60689e
DWT
7174do
7175 IFS=$as_save_IFS
7176 test -z "$as_dir" && as_dir=.
a243b558 7177 for ac_prog in egrep; do
9c60689e 7178 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
7179 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7180 as_fn_executable_p "$ac_path_EGREP" || continue
7181# Check for GNU ac_path_EGREP and select it if it is found.
7182 # Check for GNU $ac_path_EGREP
7183case `"$ac_path_EGREP" --version 2>&1` in
7184*GNU*)
7185 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7186*)
7187 ac_count=0
7188 $as_echo_n 0123456789 >"conftest.in"
7189 while :
7190 do
7191 cat "conftest.in" "conftest.in" >"conftest.tmp"
7192 mv "conftest.tmp" "conftest.in"
7193 cp "conftest.in" "conftest.nl"
7194 $as_echo 'EGREP' >> "conftest.nl"
7195 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7196 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7197 as_fn_arith $ac_count + 1 && ac_count=$as_val
7198 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7199 # Best one so far, save it but keep looking for a better one
7200 ac_cv_path_EGREP="$ac_path_EGREP"
7201 ac_path_EGREP_max=$ac_count
7202 fi
7203 # 10*(2^10) chars as input seems more than enough
7204 test $ac_count -gt 10 && break
9c60689e 7205 done
a243b558
JF
7206 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7207esac
9c60689e 7208
a243b558
JF
7209 $ac_path_EGREP_found && break 3
7210 done
7211 done
7212 done
7213IFS=$as_save_IFS
7214 if test -z "$ac_cv_path_EGREP"; then
7215 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7216 fi
9c60689e 7217else
a243b558 7218 ac_cv_path_EGREP=$EGREP
9c60689e
DWT
7219fi
7220
a243b558
JF
7221 fi
7222fi
7223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7224$as_echo "$ac_cv_path_EGREP" >&6; }
7225 EGREP="$ac_cv_path_EGREP"
ee134472 7226
ee134472 7227
a243b558
JF
7228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7229$as_echo_n "checking for fgrep... " >&6; }
7230if ${ac_cv_path_FGREP+:} false; then :
7231 $as_echo_n "(cached) " >&6
7232else
7233 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7234 then ac_cv_path_FGREP="$GREP -F"
7235 else
7236 if test -z "$FGREP"; then
7237 ac_path_FGREP_found=false
7238 # Loop through the user's path and test for each of PROGNAME-LIST
7239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7241do
7242 IFS=$as_save_IFS
7243 test -z "$as_dir" && as_dir=.
7244 for ac_prog in fgrep; do
7245 for ac_exec_ext in '' $ac_executable_extensions; do
7246 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7247 as_fn_executable_p "$ac_path_FGREP" || continue
7248# Check for GNU ac_path_FGREP and select it if it is found.
7249 # Check for GNU $ac_path_FGREP
7250case `"$ac_path_FGREP" --version 2>&1` in
7251*GNU*)
7252 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7253*)
7254 ac_count=0
7255 $as_echo_n 0123456789 >"conftest.in"
7256 while :
7257 do
7258 cat "conftest.in" "conftest.in" >"conftest.tmp"
7259 mv "conftest.tmp" "conftest.in"
7260 cp "conftest.in" "conftest.nl"
7261 $as_echo 'FGREP' >> "conftest.nl"
7262 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7263 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7264 as_fn_arith $ac_count + 1 && ac_count=$as_val
7265 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7266 # Best one so far, save it but keep looking for a better one
7267 ac_cv_path_FGREP="$ac_path_FGREP"
7268 ac_path_FGREP_max=$ac_count
7269 fi
7270 # 10*(2^10) chars as input seems more than enough
7271 test $ac_count -gt 10 && break
7272 done
7273 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9c60689e 7274esac
a243b558
JF
7275
7276 $ac_path_FGREP_found && break 3
7277 done
7278 done
7279 done
7280IFS=$as_save_IFS
7281 if test -z "$ac_cv_path_FGREP"; then
7282 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
ee134472 7283 fi
a243b558
JF
7284else
7285 ac_cv_path_FGREP=$FGREP
ee134472
JF
7286fi
7287
a243b558
JF
7288 fi
7289fi
7290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7291$as_echo "$ac_cv_path_FGREP" >&6; }
7292 FGREP="$ac_cv_path_FGREP"
ee134472
JF
7293
7294
a243b558 7295test -z "$GREP" && GREP=grep
ee134472
JF
7296
7297
7298
7299
7300
7301
7302
ee134472 7303
ee134472 7304
ee134472 7305
ee134472 7306
ee134472 7307
ee134472
JF
7308
7309
7310
7311
7312
7313
7314
a243b558
JF
7315# Check whether --with-gnu-ld was given.
7316if test "${with_gnu_ld+set}" = set; then :
9d54db95 7317 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
a243b558
JF
7318else
7319 with_gnu_ld=no
7320fi
7321
7322ac_prog=ld
9d54db95 7323if test yes = "$GCC"; then
a243b558
JF
7324 # Check if gcc -print-prog-name=ld gives a path.
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7326$as_echo_n "checking for ld used by $CC... " >&6; }
7327 case $host in
7328 *-*-mingw*)
9d54db95 7329 # gcc leaves a trailing carriage return, which upsets mingw
a243b558
JF
7330 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7331 *)
7332 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7333 esac
7334 case $ac_prog in
7335 # Accept absolute paths.
7336 [\\/]* | ?:[\\/]*)
7337 re_direlt='/[^/][^/]*/\.\./'
7338 # Canonicalize the pathname of ld
7339 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7340 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7341 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7342 done
9d54db95 7343 test -z "$LD" && LD=$ac_prog
a243b558
JF
7344 ;;
7345 "")
7346 # If it fails, then pretend we aren't using GCC.
7347 ac_prog=ld
7348 ;;
7349 *)
7350 # If it is relative, then search for the first ld in PATH.
7351 with_gnu_ld=unknown
7352 ;;
7353 esac
9d54db95 7354elif test yes = "$with_gnu_ld"; then
a243b558
JF
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7356$as_echo_n "checking for GNU ld... " >&6; }
7357else
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7359$as_echo_n "checking for non-GNU ld... " >&6; }
7360fi
7361if ${lt_cv_path_LD+:} false; then :
7362 $as_echo_n "(cached) " >&6
7363else
7364 if test -z "$LD"; then
9d54db95 7365 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
a243b558 7366 for ac_dir in $PATH; do
9d54db95 7367 IFS=$lt_save_ifs
a243b558
JF
7368 test -z "$ac_dir" && ac_dir=.
7369 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9d54db95 7370 lt_cv_path_LD=$ac_dir/$ac_prog
a243b558
JF
7371 # Check to see if the program is GNU ld. I'd rather use --version,
7372 # but apparently some variants of GNU ld only accept -v.
7373 # Break only if it was the GNU/non-GNU ld that we prefer.
7374 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7375 *GNU* | *'with BFD'*)
9d54db95 7376 test no != "$with_gnu_ld" && break
a243b558
JF
7377 ;;
7378 *)
9d54db95 7379 test yes != "$with_gnu_ld" && break
a243b558
JF
7380 ;;
7381 esac
7382 fi
7383 done
9d54db95 7384 IFS=$lt_save_ifs
a243b558 7385else
9d54db95 7386 lt_cv_path_LD=$LD # Let the user override the test with a path.
a243b558
JF
7387fi
7388fi
7389
9d54db95 7390LD=$lt_cv_path_LD
a243b558
JF
7391if test -n "$LD"; then
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7393$as_echo "$LD" >&6; }
7394else
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7396$as_echo "no" >&6; }
7397fi
7398test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7400$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7401if ${lt_cv_prog_gnu_ld+:} false; then :
7402 $as_echo_n "(cached) " >&6
7403else
7404 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7405case `$LD -v 2>&1 </dev/null` in
7406*GNU* | *'with BFD'*)
7407 lt_cv_prog_gnu_ld=yes
7408 ;;
7409*)
7410 lt_cv_prog_gnu_ld=no
7411 ;;
7412esac
7413fi
7414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7415$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7416with_gnu_ld=$lt_cv_prog_gnu_ld
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7427$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7428if ${lt_cv_path_NM+:} false; then :
7429 $as_echo_n "(cached) " >&6
7430else
7431 if test -n "$NM"; then
7432 # Let the user override the test.
9d54db95 7433 lt_cv_path_NM=$NM
a243b558 7434else
9d54db95 7435 lt_nm_to_check=${ac_tool_prefix}nm
a243b558
JF
7436 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7437 lt_nm_to_check="$lt_nm_to_check nm"
7438 fi
7439 for lt_tmp_nm in $lt_nm_to_check; do
9d54db95 7440 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
a243b558 7441 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9d54db95 7442 IFS=$lt_save_ifs
a243b558 7443 test -z "$ac_dir" && ac_dir=.
9d54db95
JF
7444 tmp_nm=$ac_dir/$lt_tmp_nm
7445 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
a243b558 7446 # Check to see if the nm accepts a BSD-compat flag.
9d54db95 7447 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
a243b558
JF
7448 # nm: unknown option "B" ignored
7449 # Tru64's nm complains that /dev/null is an invalid object file
9d54db95
JF
7450 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7451 case $build_os in
7452 mingw*) lt_bad_file=conftest.nm/nofile ;;
7453 *) lt_bad_file=/dev/null ;;
7454 esac
7455 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7456 *$lt_bad_file* | *'Invalid file or object type'*)
a243b558 7457 lt_cv_path_NM="$tmp_nm -B"
9d54db95 7458 break 2
a243b558
JF
7459 ;;
7460 *)
7461 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7462 */dev/null*)
7463 lt_cv_path_NM="$tmp_nm -p"
9d54db95 7464 break 2
a243b558
JF
7465 ;;
7466 *)
7467 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7468 continue # so that we can try to find one that supports BSD flags
7469 ;;
7470 esac
7471 ;;
7472 esac
7473 fi
7474 done
9d54db95 7475 IFS=$lt_save_ifs
a243b558
JF
7476 done
7477 : ${lt_cv_path_NM=no}
7478fi
7479fi
7480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7481$as_echo "$lt_cv_path_NM" >&6; }
9d54db95
JF
7482if test no != "$lt_cv_path_NM"; then
7483 NM=$lt_cv_path_NM
a243b558
JF
7484else
7485 # Didn't find any BSD compatible name lister, look for dumpbin.
7486 if test -n "$DUMPBIN"; then :
7487 # Let the user override the test.
7488 else
7489 if test -n "$ac_tool_prefix"; then
7490 for ac_prog in dumpbin "link -dump"
7491 do
7492 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7493set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ee134472
JF
7494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7495$as_echo_n "checking for $ac_word... " >&6; }
a243b558 7496if ${ac_cv_prog_DUMPBIN+:} false; then :
ee134472
JF
7497 $as_echo_n "(cached) " >&6
7498else
a243b558
JF
7499 if test -n "$DUMPBIN"; then
7500 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ee134472
JF
7501else
7502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7503for as_dir in $PATH
7504do
7505 IFS=$as_save_IFS
7506 test -z "$as_dir" && as_dir=.
7507 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 7508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 7509 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
ee134472
JF
7510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7511 break 2
7512 fi
7513done
7514 done
7515IFS=$as_save_IFS
7516
7517fi
7518fi
a243b558
JF
7519DUMPBIN=$ac_cv_prog_DUMPBIN
7520if test -n "$DUMPBIN"; then
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7522$as_echo "$DUMPBIN" >&6; }
ee134472
JF
7523else
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7525$as_echo "no" >&6; }
7526fi
7527
7528
a243b558
JF
7529 test -n "$DUMPBIN" && break
7530 done
ee134472 7531fi
a243b558
JF
7532if test -z "$DUMPBIN"; then
7533 ac_ct_DUMPBIN=$DUMPBIN
7534 for ac_prog in dumpbin "link -dump"
7535do
7536 # Extract the first word of "$ac_prog", so it can be a program name with args.
7537set dummy $ac_prog; ac_word=$2
ee134472
JF
7538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7539$as_echo_n "checking for $ac_word... " >&6; }
a243b558 7540if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
ee134472
JF
7541 $as_echo_n "(cached) " >&6
7542else
a243b558
JF
7543 if test -n "$ac_ct_DUMPBIN"; then
7544 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ee134472
JF
7545else
7546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547for as_dir in $PATH
7548do
7549 IFS=$as_save_IFS
7550 test -z "$as_dir" && as_dir=.
7551 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 7552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 7553 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
ee134472
JF
7554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7555 break 2
7556 fi
7557done
7558 done
7559IFS=$as_save_IFS
7560
7561fi
7562fi
a243b558
JF
7563ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7564if test -n "$ac_ct_DUMPBIN"; then
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7566$as_echo "$ac_ct_DUMPBIN" >&6; }
ee134472
JF
7567else
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7569$as_echo "no" >&6; }
7570fi
7571
a243b558
JF
7572
7573 test -n "$ac_ct_DUMPBIN" && break
7574done
7575
7576 if test "x$ac_ct_DUMPBIN" = x; then
7577 DUMPBIN=":"
ee134472
JF
7578 else
7579 case $cross_compiling:$ac_tool_warned in
7580yes:)
7581{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7582$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7583ac_tool_warned=yes ;;
7584esac
a243b558 7585 DUMPBIN=$ac_ct_DUMPBIN
9c60689e 7586 fi
9c60689e
DWT
7587fi
7588
9d54db95 7589 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
a243b558 7590 *COFF*)
9d54db95 7591 DUMPBIN="$DUMPBIN -symbols -headers"
a243b558
JF
7592 ;;
7593 *)
7594 DUMPBIN=:
7595 ;;
7596 esac
7597 fi
9c60689e 7598
9d54db95
JF
7599 if test : != "$DUMPBIN"; then
7600 NM=$DUMPBIN
a243b558
JF
7601 fi
7602fi
7603test -z "$NM" && NM=nm
9c60689e
DWT
7604
7605
7606
7607
7608
a243b558
JF
7609
7610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7611$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7612if ${lt_cv_nm_interface+:} false; then :
9c60689e
DWT
7613 $as_echo_n "(cached) " >&6
7614else
a243b558
JF
7615 lt_cv_nm_interface="BSD nm"
7616 echo "int some_variable = 0;" > conftest.$ac_ext
7617 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7618 (eval "$ac_compile" 2>conftest.err)
7619 cat conftest.err >&5
7620 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7621 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7622 cat conftest.err >&5
7623 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7624 cat conftest.out >&5
7625 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7626 lt_cv_nm_interface="MS dumpbin"
9c60689e 7627 fi
00a96142 7628 rm -rf conftest*
9c60689e 7629fi
a243b558
JF
7630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7631$as_echo "$lt_cv_nm_interface" >&6; }
7632
7633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7634$as_echo_n "checking whether ln -s works... " >&6; }
7635LN_S=$as_ln_s
7636if test "$LN_S" = "ln -s"; then
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7638$as_echo "yes" >&6; }
9c60689e 7639else
a243b558
JF
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7641$as_echo "no, using $LN_S" >&6; }
9c60689e
DWT
7642fi
7643
a243b558
JF
7644# find the maximum length of command line arguments
7645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7646$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7647if ${lt_cv_sys_max_cmd_len+:} false; then :
9c60689e
DWT
7648 $as_echo_n "(cached) " >&6
7649else
a243b558 7650 i=0
9d54db95 7651 teststring=ABCD
9c60689e 7652
a243b558
JF
7653 case $build_os in
7654 msdosdjgpp*)
7655 # On DJGPP, this test can blow up pretty badly due to problems in libc
7656 # (any single argument exceeding 2000 bytes causes a buffer overrun
7657 # during glob expansion). Even if it were fixed, the result of this
7658 # check would be larger than it should be.
7659 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7660 ;;
9c60689e 7661
a243b558
JF
7662 gnu*)
7663 # Under GNU Hurd, this test is not required because there is
7664 # no limit to the length of command line arguments.
7665 # Libtool will interpret -1 as no limit whatsoever
7666 lt_cv_sys_max_cmd_len=-1;
7667 ;;
9c60689e 7668
a243b558
JF
7669 cygwin* | mingw* | cegcc*)
7670 # On Win9x/ME, this test blows up -- it succeeds, but takes
7671 # about 5 minutes as the teststring grows exponentially.
7672 # Worse, since 9x/ME are not pre-emptively multitasking,
7673 # you end up with a "frozen" computer, even though with patience
7674 # the test eventually succeeds (with a max line length of 256k).
7675 # Instead, let's just punt: use the minimum linelength reported by
7676 # all of the supported platforms: 8192 (on NT/2K/XP).
7677 lt_cv_sys_max_cmd_len=8192;
7678 ;;
9c60689e 7679
a243b558
JF
7680 mint*)
7681 # On MiNT this can take a long time and run out of memory.
7682 lt_cv_sys_max_cmd_len=8192;
7683 ;;
9c60689e 7684
a243b558
JF
7685 amigaos*)
7686 # On AmigaOS with pdksh, this test takes hours, literally.
7687 # So we just punt and use a minimum line length of 8192.
7688 lt_cv_sys_max_cmd_len=8192;
7689 ;;
9c60689e 7690
9d54db95 7691 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
a243b558
JF
7692 # This has been around since 386BSD, at least. Likely further.
7693 if test -x /sbin/sysctl; then
7694 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7695 elif test -x /usr/sbin/sysctl; then
7696 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7697 else
7698 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7699 fi
7700 # And add a safety zone
7701 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7702 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7703 ;;
9c60689e 7704
a243b558
JF
7705 interix*)
7706 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7707 lt_cv_sys_max_cmd_len=196608
7708 ;;
9c60689e 7709
a243b558
JF
7710 os2*)
7711 # The test takes a long time on OS/2.
7712 lt_cv_sys_max_cmd_len=8192
7713 ;;
9c60689e 7714
a243b558
JF
7715 osf*)
7716 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7717 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7718 # nice to cause kernel panics so lets avoid the loop below.
7719 # First set a reasonable default.
7720 lt_cv_sys_max_cmd_len=16384
7721 #
7722 if test -x /sbin/sysconfig; then
7723 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7724 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7725 esac
7726 fi
7727 ;;
7728 sco3.2v5*)
7729 lt_cv_sys_max_cmd_len=102400
7730 ;;
7731 sysv5* | sco5v6* | sysv4.2uw2*)
7732 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7733 if test -n "$kargmax"; then
7734 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7735 else
7736 lt_cv_sys_max_cmd_len=32768
7737 fi
9c60689e
DWT
7738 ;;
7739 *)
a243b558 7740 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9d54db95
JF
7741 if test -n "$lt_cv_sys_max_cmd_len" && \
7742 test undefined != "$lt_cv_sys_max_cmd_len"; then
a243b558
JF
7743 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7744 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7745 else
7746 # Make teststring a little bigger before we do anything with it.
7747 # a 1K string should be a reasonable start.
9d54db95 7748 for i in 1 2 3 4 5 6 7 8; do
a243b558
JF
7749 teststring=$teststring$teststring
7750 done
7751 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7752 # If test is not a shell built-in, we'll probably end up computing a
7753 # maximum length that is only half of the actual maximum length, but
7754 # we can't tell.
9d54db95 7755 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
a243b558 7756 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9d54db95 7757 test 17 != "$i" # 1/2 MB should be enough
a243b558
JF
7758 do
7759 i=`expr $i + 1`
7760 teststring=$teststring$teststring
7761 done
7762 # Only check the string length outside the loop.
7763 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7764 teststring=
7765 # Add a significant safety factor because C++ compilers can tack on
7766 # massive amounts of additional arguments before passing them to the
7767 # linker. It appears as though 1/2 is a usable value.
7768 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7769 fi
9c60689e
DWT
7770 ;;
7771 esac
ee134472 7772
a243b558 7773fi
ee134472 7774
9d54db95 7775if test -n "$lt_cv_sys_max_cmd_len"; then
a243b558
JF
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7777$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7778else
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7780$as_echo "none" >&6; }
7781fi
7782max_cmd_len=$lt_cv_sys_max_cmd_len
ee134472
JF
7783
7784
9c60689e
DWT
7785
7786
7787
7788
a243b558
JF
7789: ${CP="cp -f"}
7790: ${MV="mv -f"}
7791: ${RM="rm -f"}
9c60689e 7792
a243b558
JF
7793if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7794 lt_unset=unset
7795else
7796 lt_unset=false
7797fi
9c60689e
DWT
7798
7799
7800
7801
7802
a243b558
JF
7803# test EBCDIC or ASCII
7804case `echo X|tr X '\101'` in
7805 A) # ASCII based system
7806 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7807 lt_SP2NL='tr \040 \012'
7808 lt_NL2SP='tr \015\012 \040\040'
7809 ;;
7810 *) # EBCDIC based system
7811 lt_SP2NL='tr \100 \n'
7812 lt_NL2SP='tr \r\n \100\100'
7813 ;;
7814esac
9c60689e
DWT
7815
7816
7817
7818
7819
7820
7821
7822
7823
a243b558
JF
7824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7825$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7826if ${lt_cv_to_host_file_cmd+:} false; then :
7827 $as_echo_n "(cached) " >&6
7828else
7829 case $host in
7830 *-*-mingw* )
7831 case $build in
7832 *-*-mingw* ) # actually msys
7833 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7834 ;;
7835 *-*-cygwin* )
7836 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7837 ;;
7838 * ) # otherwise, assume *nix
7839 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7840 ;;
7841 esac
7842 ;;
7843 *-*-cygwin* )
7844 case $build in
7845 *-*-mingw* ) # actually msys
7846 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7847 ;;
7848 *-*-cygwin* )
7849 lt_cv_to_host_file_cmd=func_convert_file_noop
7850 ;;
7851 * ) # otherwise, assume *nix
7852 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7853 ;;
7854 esac
7855 ;;
7856 * ) # unhandled hosts (and "normal" native builds)
7857 lt_cv_to_host_file_cmd=func_convert_file_noop
7858 ;;
7859esac
9c60689e 7860
a243b558 7861fi
9c60689e 7862
a243b558
JF
7863to_host_file_cmd=$lt_cv_to_host_file_cmd
7864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7865$as_echo "$lt_cv_to_host_file_cmd" >&6; }
9c60689e
DWT
7866
7867
7868
7869
7870
a243b558
JF
7871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7872$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7873if ${lt_cv_to_tool_file_cmd+:} false; then :
7874 $as_echo_n "(cached) " >&6
7875else
7876 #assume ordinary cross tools, or native build.
7877lt_cv_to_tool_file_cmd=func_convert_file_noop
7878case $host in
7879 *-*-mingw* )
7880 case $build in
7881 *-*-mingw* ) # actually msys
7882 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7883 ;;
7884 esac
7885 ;;
7886esac
9c60689e 7887
a243b558 7888fi
9c60689e 7889
a243b558
JF
7890to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7892$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9c60689e 7893
9c60689e 7894
9c60689e 7895
9c60689e
DWT
7896
7897
a243b558
JF
7898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7899$as_echo_n "checking for $LD option to reload object files... " >&6; }
7900if ${lt_cv_ld_reload_flag+:} false; then :
9c60689e
DWT
7901 $as_echo_n "(cached) " >&6
7902else
a243b558
JF
7903 lt_cv_ld_reload_flag='-r'
7904fi
7905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7906$as_echo "$lt_cv_ld_reload_flag" >&6; }
7907reload_flag=$lt_cv_ld_reload_flag
7908case $reload_flag in
7909"" | " "*) ;;
7910*) reload_flag=" $reload_flag" ;;
7911esac
7912reload_cmds='$LD$reload_flag -o $output$reload_objs'
9c60689e 7913case $host_os in
a243b558 7914 cygwin* | mingw* | pw32* | cegcc*)
9d54db95 7915 if test yes != "$GCC"; then
a243b558
JF
7916 reload_cmds=false
7917 fi
7918 ;;
7919 darwin*)
9d54db95
JF
7920 if test yes = "$GCC"; then
7921 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
a243b558
JF
7922 else
7923 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7924 fi
7925 ;;
9c60689e
DWT
7926esac
7927
9c60689e 7928
9c60689e 7929
9c60689e 7930
9c60689e 7931
9c60689e 7932
9c60689e 7933
9c60689e 7934
9c60689e 7935
a243b558
JF
7936if test -n "$ac_tool_prefix"; then
7937 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7938set dummy ${ac_tool_prefix}objdump; ac_word=$2
7939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7940$as_echo_n "checking for $ac_word... " >&6; }
7941if ${ac_cv_prog_OBJDUMP+:} false; then :
7942 $as_echo_n "(cached) " >&6
7943else
7944 if test -n "$OBJDUMP"; then
7945 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7946else
7947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7948for as_dir in $PATH
7949do
7950 IFS=$as_save_IFS
7951 test -z "$as_dir" && as_dir=.
7952 for ac_exec_ext in '' $ac_executable_extensions; do
7953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7954 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7956 break 2
7957 fi
7958done
7959 done
7960IFS=$as_save_IFS
9c60689e 7961
a243b558
JF
7962fi
7963fi
7964OBJDUMP=$ac_cv_prog_OBJDUMP
7965if test -n "$OBJDUMP"; then
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7967$as_echo "$OBJDUMP" >&6; }
7968else
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970$as_echo "no" >&6; }
7971fi
9c60689e 7972
9c60689e 7973
a243b558
JF
7974fi
7975if test -z "$ac_cv_prog_OBJDUMP"; then
7976 ac_ct_OBJDUMP=$OBJDUMP
7977 # Extract the first word of "objdump", so it can be a program name with args.
7978set dummy objdump; ac_word=$2
7979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7980$as_echo_n "checking for $ac_word... " >&6; }
7981if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7982 $as_echo_n "(cached) " >&6
7983else
7984 if test -n "$ac_ct_OBJDUMP"; then
7985 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7986else
7987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7988for as_dir in $PATH
7989do
7990 IFS=$as_save_IFS
7991 test -z "$as_dir" && as_dir=.
7992 for ac_exec_ext in '' $ac_executable_extensions; do
7993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7994 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7996 break 2
9c60689e
DWT
7997 fi
7998done
a243b558
JF
7999 done
8000IFS=$as_save_IFS
9c60689e
DWT
8001
8002fi
9c60689e 8003fi
a243b558
JF
8004ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8005if test -n "$ac_ct_OBJDUMP"; then
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8007$as_echo "$ac_ct_OBJDUMP" >&6; }
9c60689e 8008else
a243b558
JF
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8010$as_echo "no" >&6; }
9c60689e
DWT
8011fi
8012
a243b558
JF
8013 if test "x$ac_ct_OBJDUMP" = x; then
8014 OBJDUMP="false"
8015 else
8016 case $cross_compiling:$ac_tool_warned in
8017yes:)
8018{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8019$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8020ac_tool_warned=yes ;;
8021esac
8022 OBJDUMP=$ac_ct_OBJDUMP
8023 fi
8024else
8025 OBJDUMP="$ac_cv_prog_OBJDUMP"
ee134472
JF
8026fi
8027
a243b558 8028test -z "$OBJDUMP" && OBJDUMP=objdump
ee134472
JF
8029
8030
8031
8032
8033
8034
8035
8036
8037
a243b558
JF
8038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8039$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8040if ${lt_cv_deplibs_check_method+:} false; then :
8041 $as_echo_n "(cached) " >&6
8042else
8043 lt_cv_file_magic_cmd='$MAGIC_CMD'
8044lt_cv_file_magic_test_file=
8045lt_cv_deplibs_check_method='unknown'
8046# Need to set the preceding variable on all platforms that support
8047# interlibrary dependencies.
8048# 'none' -- dependencies not supported.
9d54db95 8049# 'unknown' -- same as none, but documents that we really don't know.
a243b558
JF
8050# 'pass_all' -- all dependencies passed with no checks.
8051# 'test_compile' -- check by making test program.
8052# 'file_magic [[regex]]' -- check by looking for files in library path
9d54db95
JF
8053# that responds to the $file_magic_cmd with a given extended regex.
8054# If you have 'file' or equivalent on your system and you're not sure
8055# whether 'pass_all' will *always* work, you probably want this one.
9c60689e 8056
a243b558
JF
8057case $host_os in
8058aix[4-9]*)
8059 lt_cv_deplibs_check_method=pass_all
8060 ;;
9c60689e 8061
a243b558
JF
8062beos*)
8063 lt_cv_deplibs_check_method=pass_all
8064 ;;
9c60689e 8065
a243b558
JF
8066bsdi[45]*)
8067 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8068 lt_cv_file_magic_cmd='/usr/bin/file -L'
8069 lt_cv_file_magic_test_file=/shlib/libc.so
8070 ;;
9c60689e 8071
a243b558
JF
8072cygwin*)
8073 # func_win32_libid is a shell function defined in ltmain.sh
8074 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8075 lt_cv_file_magic_cmd='func_win32_libid'
8076 ;;
9c60689e 8077
a243b558
JF
8078mingw* | pw32*)
8079 # Base MSYS/MinGW do not provide the 'file' command needed by
8080 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8081 # unless we find 'file', for example because we are cross-compiling.
9d54db95 8082 if ( file / ) >/dev/null 2>&1; then
a243b558
JF
8083 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8084 lt_cv_file_magic_cmd='func_win32_libid'
8085 else
8086 # Keep this pattern in sync with the one in func_win32_libid.
8087 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8088 lt_cv_file_magic_cmd='$OBJDUMP -f'
8089 fi
8090 ;;
9c60689e 8091
a243b558
JF
8092cegcc*)
8093 # use the weaker test based on 'objdump'. See mingw*.
8094 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8095 lt_cv_file_magic_cmd='$OBJDUMP -f'
8096 ;;
9c60689e 8097
a243b558
JF
8098darwin* | rhapsody*)
8099 lt_cv_deplibs_check_method=pass_all
8100 ;;
9c60689e 8101
a243b558
JF
8102freebsd* | dragonfly*)
8103 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8104 case $host_cpu in
8105 i*86 )
8106 # Not sure whether the presence of OpenBSD here was a mistake.
8107 # Let's accept both of them until this is cleared up.
8108 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8109 lt_cv_file_magic_cmd=/usr/bin/file
8110 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8111 ;;
8112 esac
8113 else
8114 lt_cv_deplibs_check_method=pass_all
8115 fi
8116 ;;
9c60689e 8117
a243b558
JF
8118haiku*)
8119 lt_cv_deplibs_check_method=pass_all
8120 ;;
9c60689e 8121
a243b558
JF
8122hpux10.20* | hpux11*)
8123 lt_cv_file_magic_cmd=/usr/bin/file
8124 case $host_cpu in
8125 ia64*)
8126 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8127 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8128 ;;
8129 hppa*64*)
8130 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]'
8131 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8132 ;;
8133 *)
8134 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8135 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8136 ;;
8137 esac
8138 ;;
9c60689e 8139
a243b558
JF
8140interix[3-9]*)
8141 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8142 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8143 ;;
9c60689e 8144
a243b558
JF
8145irix5* | irix6* | nonstopux*)
8146 case $LD in
8147 *-32|*"-32 ") libmagic=32-bit;;
8148 *-n32|*"-n32 ") libmagic=N32;;
8149 *-64|*"-64 ") libmagic=64-bit;;
8150 *) libmagic=never-match;;
8151 esac
8152 lt_cv_deplibs_check_method=pass_all
8153 ;;
9c60689e 8154
a243b558 8155# This must be glibc/ELF.
9d54db95 8156linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
a243b558
JF
8157 lt_cv_deplibs_check_method=pass_all
8158 ;;
9c60689e 8159
a243b558
JF
8160netbsd*)
8161 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8162 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8163 else
8164 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8165 fi
8166 ;;
9c60689e 8167
a243b558
JF
8168newos6*)
8169 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8170 lt_cv_file_magic_cmd=/usr/bin/file
8171 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8172 ;;
9c60689e 8173
a243b558
JF
8174*nto* | *qnx*)
8175 lt_cv_deplibs_check_method=pass_all
8176 ;;
9c60689e 8177
9d54db95
JF
8178openbsd* | bitrig*)
8179 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
a243b558
JF
8180 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8181 else
8182 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8183 fi
8184 ;;
9c60689e 8185
a243b558
JF
8186osf3* | osf4* | osf5*)
8187 lt_cv_deplibs_check_method=pass_all
8188 ;;
9c60689e 8189
a243b558
JF
8190rdos*)
8191 lt_cv_deplibs_check_method=pass_all
9c60689e 8192 ;;
a243b558
JF
8193
8194solaris*)
8195 lt_cv_deplibs_check_method=pass_all
9c60689e
DWT
8196 ;;
8197
a243b558
JF
8198sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8199 lt_cv_deplibs_check_method=pass_all
9c60689e
DWT
8200 ;;
8201
a243b558
JF
8202sysv4 | sysv4.3*)
8203 case $host_vendor in
8204 motorola)
8205 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]'
8206 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8207 ;;
8208 ncr)
8209 lt_cv_deplibs_check_method=pass_all
8210 ;;
8211 sequent)
8212 lt_cv_file_magic_cmd='/bin/file'
8213 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8214 ;;
8215 sni)
8216 lt_cv_file_magic_cmd='/bin/file'
8217 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8218 lt_cv_file_magic_test_file=/lib/libc.so
8219 ;;
8220 siemens)
8221 lt_cv_deplibs_check_method=pass_all
8222 ;;
8223 pc)
8224 lt_cv_deplibs_check_method=pass_all
8225 ;;
8226 esac
8227 ;;
9c60689e 8228
a243b558
JF
8229tpf*)
8230 lt_cv_deplibs_check_method=pass_all
8231 ;;
9d54db95
JF
8232os2*)
8233 lt_cv_deplibs_check_method=pass_all
8234 ;;
a243b558 8235esac
9c60689e 8236
a243b558
JF
8237fi
8238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8239$as_echo "$lt_cv_deplibs_check_method" >&6; }
9c60689e 8240
a243b558
JF
8241file_magic_glob=
8242want_nocaseglob=no
8243if test "$build" = "$host"; then
8244 case $host_os in
8245 mingw* | pw32*)
8246 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8247 want_nocaseglob=yes
8248 else
8249 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8250 fi
8251 ;;
8252 esac
9c60689e 8253fi
9c60689e 8254
a243b558
JF
8255file_magic_cmd=$lt_cv_file_magic_cmd
8256deplibs_check_method=$lt_cv_deplibs_check_method
8257test -z "$deplibs_check_method" && deplibs_check_method=unknown
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
9c60689e 8278
9c60689e 8279
ee134472 8280if test -n "$ac_tool_prefix"; then
a243b558
JF
8281 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8282set dummy ${ac_tool_prefix}dlltool; ac_word=$2
ee134472
JF
8283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8284$as_echo_n "checking for $ac_word... " >&6; }
a243b558 8285if ${ac_cv_prog_DLLTOOL+:} false; then :
ee134472
JF
8286 $as_echo_n "(cached) " >&6
8287else
a243b558
JF
8288 if test -n "$DLLTOOL"; then
8289 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ee134472
JF
8290else
8291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8292for as_dir in $PATH
8293do
8294 IFS=$as_save_IFS
8295 test -z "$as_dir" && as_dir=.
8296 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 8297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 8298 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
ee134472
JF
8299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8300 break 2
8301 fi
8302done
8303 done
8304IFS=$as_save_IFS
8305
8306fi
8307fi
a243b558
JF
8308DLLTOOL=$ac_cv_prog_DLLTOOL
8309if test -n "$DLLTOOL"; then
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8311$as_echo "$DLLTOOL" >&6; }
ee134472
JF
8312else
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8314$as_echo "no" >&6; }
8315fi
8316
8317
8318fi
a243b558
JF
8319if test -z "$ac_cv_prog_DLLTOOL"; then
8320 ac_ct_DLLTOOL=$DLLTOOL
8321 # Extract the first word of "dlltool", so it can be a program name with args.
8322set dummy dlltool; ac_word=$2
ee134472
JF
8323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8324$as_echo_n "checking for $ac_word... " >&6; }
a243b558 8325if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
ee134472
JF
8326 $as_echo_n "(cached) " >&6
8327else
a243b558
JF
8328 if test -n "$ac_ct_DLLTOOL"; then
8329 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
ee134472
JF
8330else
8331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8332for as_dir in $PATH
8333do
8334 IFS=$as_save_IFS
8335 test -z "$as_dir" && as_dir=.
8336 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 8337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 8338 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
ee134472
JF
8339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8340 break 2
8341 fi
8342done
8343 done
8344IFS=$as_save_IFS
8345
8346fi
8347fi
a243b558
JF
8348ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8349if test -n "$ac_ct_DLLTOOL"; then
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8351$as_echo "$ac_ct_DLLTOOL" >&6; }
ee134472
JF
8352else
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8354$as_echo "no" >&6; }
8355fi
8356
a243b558
JF
8357 if test "x$ac_ct_DLLTOOL" = x; then
8358 DLLTOOL="false"
ee134472
JF
8359 else
8360 case $cross_compiling:$ac_tool_warned in
8361yes:)
8362{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8363$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8364ac_tool_warned=yes ;;
8365esac
a243b558 8366 DLLTOOL=$ac_ct_DLLTOOL
ee134472
JF
8367 fi
8368else
a243b558 8369 DLLTOOL="$ac_cv_prog_DLLTOOL"
ee134472
JF
8370fi
8371
a243b558
JF
8372test -z "$DLLTOOL" && DLLTOOL=dlltool
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8384$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8385if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
ee134472
JF
8386 $as_echo_n "(cached) " >&6
8387else
a243b558
JF
8388 lt_cv_sharedlib_from_linklib_cmd='unknown'
8389
8390case $host_os in
8391cygwin* | mingw* | pw32* | cegcc*)
9d54db95
JF
8392 # two different shell functions defined in ltmain.sh;
8393 # decide which one to use based on capabilities of $DLLTOOL
a243b558
JF
8394 case `$DLLTOOL --help 2>&1` in
8395 *--identify-strict*)
8396 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8397 ;;
8398 *)
8399 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8400 ;;
8401 esac
8402 ;;
8403*)
8404 # fallback: assume linklib IS sharedlib
9d54db95 8405 lt_cv_sharedlib_from_linklib_cmd=$ECHO
a243b558
JF
8406 ;;
8407esac
8408
ee134472 8409fi
a243b558
JF
8410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8411$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8412sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8413test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
ee134472
JF
8414
8415
8416
8417
8418
9c60689e 8419
a243b558
JF
8420
8421if test -n "$ac_tool_prefix"; then
8422 for ac_prog in ar
8423 do
8424 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8425set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9c60689e
DWT
8426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8427$as_echo_n "checking for $ac_word... " >&6; }
a243b558 8428if ${ac_cv_prog_AR+:} false; then :
9c60689e
DWT
8429 $as_echo_n "(cached) " >&6
8430else
a243b558
JF
8431 if test -n "$AR"; then
8432 ac_cv_prog_AR="$AR" # Let the user override the test.
9c60689e
DWT
8433else
8434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8435for as_dir in $PATH
8436do
8437 IFS=$as_save_IFS
8438 test -z "$as_dir" && as_dir=.
8439 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 8440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 8441 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9c60689e
DWT
8442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8443 break 2
8444 fi
8445done
8446 done
8447IFS=$as_save_IFS
8448
8449fi
8450fi
a243b558
JF
8451AR=$ac_cv_prog_AR
8452if test -n "$AR"; then
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8454$as_echo "$AR" >&6; }
9c60689e
DWT
8455else
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8457$as_echo "no" >&6; }
8458fi
8459
8460
a243b558
JF
8461 test -n "$AR" && break
8462 done
9c60689e 8463fi
a243b558
JF
8464if test -z "$AR"; then
8465 ac_ct_AR=$AR
8466 for ac_prog in ar
8467do
8468 # Extract the first word of "$ac_prog", so it can be a program name with args.
8469set dummy $ac_prog; ac_word=$2
9c60689e
DWT
8470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8471$as_echo_n "checking for $ac_word... " >&6; }
a243b558 8472if ${ac_cv_prog_ac_ct_AR+:} false; then :
9c60689e
DWT
8473 $as_echo_n "(cached) " >&6
8474else
a243b558
JF
8475 if test -n "$ac_ct_AR"; then
8476 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9c60689e
DWT
8477else
8478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8479for as_dir in $PATH
8480do
8481 IFS=$as_save_IFS
8482 test -z "$as_dir" && as_dir=.
8483 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 8484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 8485 ac_cv_prog_ac_ct_AR="$ac_prog"
9c60689e
DWT
8486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8487 break 2
8488 fi
8489done
8490 done
8491IFS=$as_save_IFS
8492
8493fi
8494fi
a243b558
JF
8495ac_ct_AR=$ac_cv_prog_ac_ct_AR
8496if test -n "$ac_ct_AR"; then
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8498$as_echo "$ac_ct_AR" >&6; }
9c60689e
DWT
8499else
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8501$as_echo "no" >&6; }
8502fi
8503
a243b558
JF
8504
8505 test -n "$ac_ct_AR" && break
8506done
8507
8508 if test "x$ac_ct_AR" = x; then
8509 AR="false"
9c60689e
DWT
8510 else
8511 case $cross_compiling:$ac_tool_warned in
8512yes:)
8513{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8514$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8515ac_tool_warned=yes ;;
8516esac
a243b558 8517 AR=$ac_ct_AR
9c60689e 8518 fi
a243b558
JF
8519fi
8520
8521: ${AR=ar}
8522: ${AR_FLAGS=cru}
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8535$as_echo_n "checking for archiver @FILE support... " >&6; }
8536if ${lt_cv_ar_at_file+:} false; then :
8537 $as_echo_n "(cached) " >&6
9c60689e 8538else
a243b558
JF
8539 lt_cv_ar_at_file=no
8540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8541/* end confdefs.h. */
8542
8543int
8544main ()
8545{
8546
8547 ;
8548 return 0;
8549}
8550_ACEOF
8551if ac_fn_c_try_compile "$LINENO"; then :
8552 echo conftest.$ac_objext > conftest.lst
8553 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8554 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8555 (eval $lt_ar_try) 2>&5
8556 ac_status=$?
8557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8558 test $ac_status = 0; }
9d54db95 8559 if test 0 -eq "$ac_status"; then
a243b558
JF
8560 # Ensure the archiver fails upon bogus file names.
8561 rm -f conftest.$ac_objext libconftest.a
8562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8563 (eval $lt_ar_try) 2>&5
8564 ac_status=$?
8565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8566 test $ac_status = 0; }
9d54db95 8567 if test 0 -ne "$ac_status"; then
a243b558
JF
8568 lt_cv_ar_at_file=@
8569 fi
8570 fi
8571 rm -f conftest.* libconftest.a
8572
9c60689e 8573fi
a243b558 8574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 8575
a243b558
JF
8576fi
8577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8578$as_echo "$lt_cv_ar_at_file" >&6; }
8579
9d54db95 8580if test no = "$lt_cv_ar_at_file"; then
a243b558
JF
8581 archiver_list_spec=
8582else
8583 archiver_list_spec=$lt_cv_ar_at_file
8584fi
8585
8586
8587
8588
8589
8590
8591
8592if test -n "$ac_tool_prefix"; then
8593 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8594set dummy ${ac_tool_prefix}strip; ac_word=$2
9c60689e
DWT
8595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8596$as_echo_n "checking for $ac_word... " >&6; }
a243b558 8597if ${ac_cv_prog_STRIP+:} false; then :
9c60689e
DWT
8598 $as_echo_n "(cached) " >&6
8599else
a243b558
JF
8600 if test -n "$STRIP"; then
8601 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9c60689e
DWT
8602else
8603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8604for as_dir in $PATH
8605do
8606 IFS=$as_save_IFS
8607 test -z "$as_dir" && as_dir=.
8608 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 8609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 8610 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9c60689e
DWT
8611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8612 break 2
8613 fi
8614done
8615 done
8616IFS=$as_save_IFS
8617
8618fi
8619fi
a243b558
JF
8620STRIP=$ac_cv_prog_STRIP
8621if test -n "$STRIP"; then
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8623$as_echo "$STRIP" >&6; }
9c60689e
DWT
8624else
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8626$as_echo "no" >&6; }
8627fi
8628
8629
8630fi
a243b558
JF
8631if test -z "$ac_cv_prog_STRIP"; then
8632 ac_ct_STRIP=$STRIP
8633 # Extract the first word of "strip", so it can be a program name with args.
8634set dummy strip; ac_word=$2
9c60689e
DWT
8635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8636$as_echo_n "checking for $ac_word... " >&6; }
a243b558 8637if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9c60689e
DWT
8638 $as_echo_n "(cached) " >&6
8639else
a243b558
JF
8640 if test -n "$ac_ct_STRIP"; then
8641 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9c60689e
DWT
8642else
8643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8644for as_dir in $PATH
8645do
8646 IFS=$as_save_IFS
8647 test -z "$as_dir" && as_dir=.
8648 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 8649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 8650 ac_cv_prog_ac_ct_STRIP="strip"
9c60689e
DWT
8651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8652 break 2
8653 fi
8654done
8655 done
8656IFS=$as_save_IFS
8657
8658fi
8659fi
a243b558
JF
8660ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8661if test -n "$ac_ct_STRIP"; then
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8663$as_echo "$ac_ct_STRIP" >&6; }
9c60689e
DWT
8664else
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8666$as_echo "no" >&6; }
8667fi
8668
a243b558
JF
8669 if test "x$ac_ct_STRIP" = x; then
8670 STRIP=":"
9c60689e
DWT
8671 else
8672 case $cross_compiling:$ac_tool_warned in
8673yes:)
8674{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8675$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8676ac_tool_warned=yes ;;
8677esac
a243b558 8678 STRIP=$ac_ct_STRIP
9c60689e
DWT
8679 fi
8680else
a243b558 8681 STRIP="$ac_cv_prog_STRIP"
9c60689e
DWT
8682fi
8683
a243b558
JF
8684test -z "$STRIP" && STRIP=:
8685
8686
8687
8688
8689
8690
8691if test -n "$ac_tool_prefix"; then
8692 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8693set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9c60689e
DWT
8694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8695$as_echo_n "checking for $ac_word... " >&6; }
a243b558 8696if ${ac_cv_prog_RANLIB+:} false; then :
9c60689e
DWT
8697 $as_echo_n "(cached) " >&6
8698else
a243b558
JF
8699 if test -n "$RANLIB"; then
8700 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9c60689e
DWT
8701else
8702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8703for as_dir in $PATH
8704do
8705 IFS=$as_save_IFS
8706 test -z "$as_dir" && as_dir=.
8707 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 8708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 8709 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9c60689e
DWT
8710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8711 break 2
8712 fi
8713done
8714 done
8715IFS=$as_save_IFS
8716
8717fi
8718fi
a243b558
JF
8719RANLIB=$ac_cv_prog_RANLIB
8720if test -n "$RANLIB"; then
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8722$as_echo "$RANLIB" >&6; }
9c60689e
DWT
8723else
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8725$as_echo "no" >&6; }
8726fi
8727
8728
8729fi
a243b558
JF
8730if test -z "$ac_cv_prog_RANLIB"; then
8731 ac_ct_RANLIB=$RANLIB
8732 # Extract the first word of "ranlib", so it can be a program name with args.
8733set dummy ranlib; ac_word=$2
9c60689e
DWT
8734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8735$as_echo_n "checking for $ac_word... " >&6; }
a243b558 8736if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9c60689e
DWT
8737 $as_echo_n "(cached) " >&6
8738else
a243b558
JF
8739 if test -n "$ac_ct_RANLIB"; then
8740 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9c60689e
DWT
8741else
8742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8743for as_dir in $PATH
8744do
8745 IFS=$as_save_IFS
8746 test -z "$as_dir" && as_dir=.
8747 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 8748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 8749 ac_cv_prog_ac_ct_RANLIB="ranlib"
9c60689e
DWT
8750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8751 break 2
8752 fi
8753done
8754 done
8755IFS=$as_save_IFS
8756
8757fi
8758fi
a243b558
JF
8759ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8760if test -n "$ac_ct_RANLIB"; then
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8762$as_echo "$ac_ct_RANLIB" >&6; }
9c60689e
DWT
8763else
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8765$as_echo "no" >&6; }
8766fi
8767
a243b558
JF
8768 if test "x$ac_ct_RANLIB" = x; then
8769 RANLIB=":"
9c60689e
DWT
8770 else
8771 case $cross_compiling:$ac_tool_warned in
8772yes:)
8773{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8774$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8775ac_tool_warned=yes ;;
8776esac
a243b558 8777 RANLIB=$ac_ct_RANLIB
9c60689e
DWT
8778 fi
8779else
a243b558 8780 RANLIB="$ac_cv_prog_RANLIB"
9c60689e
DWT
8781fi
8782
a243b558
JF
8783test -z "$RANLIB" && RANLIB=:
8784
8785
9c60689e 8786
9c60689e
DWT
8787
8788
a243b558
JF
8789
8790# Determine commands to create old-style static archives.
8791old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8792old_postinstall_cmds='chmod 644 $oldlib'
8793old_postuninstall_cmds=
8794
8795if test -n "$RANLIB"; then
8796 case $host_os in
9d54db95 8797 bitrig* | openbsd*)
a243b558
JF
8798 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8799 ;;
8800 *)
8801 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8802 ;;
8803 esac
8804 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9c60689e
DWT
8805fi
8806
a243b558
JF
8807case $host_os in
8808 darwin*)
8809 lock_old_archive_extraction=yes ;;
8810 *)
8811 lock_old_archive_extraction=no ;;
9c60689e 8812esac
9c60689e 8813
9c60689e 8814
9c60689e
DWT
8815
8816
9c60689e 8817
9c60689e 8818
9c60689e
DWT
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
53ba6704 8846
9c60689e 8847
9c60689e 8848
9c60689e 8849
53ba6704 8850
a243b558
JF
8851
8852# If no C compiler was specified, use CC.
8853LTCC=${LTCC-"$CC"}
8854
8855# If no C compiler flags were specified, use CFLAGS.
8856LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8857
8858# Allow CC to be a program name with arguments.
8859compiler=$CC
8860
8861
8862# Check for command to grab the raw symbol name followed by C symbol from nm.
8863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8864$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8865if ${lt_cv_sys_global_symbol_pipe+:} false; then :
ee134472
JF
8866 $as_echo_n "(cached) " >&6
8867else
ee134472 8868
a243b558
JF
8869# These are sane defaults that work on at least a few old systems.
8870# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9c60689e 8871
a243b558
JF
8872# Character class describing NM global symbol codes.
8873symcode='[BCDEGRST]'
9c60689e 8874
a243b558
JF
8875# Regexp to match symbols that can be accessed directly from C.
8876sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9c60689e 8877
a243b558
JF
8878# Define system-specific variables.
8879case $host_os in
8880aix*)
8881 symcode='[BCDT]'
8882 ;;
8883cygwin* | mingw* | pw32* | cegcc*)
8884 symcode='[ABCDGISTW]'
8885 ;;
8886hpux*)
9d54db95 8887 if test ia64 = "$host_cpu"; then
a243b558
JF
8888 symcode='[ABCDEGRST]'
8889 fi
8890 ;;
8891irix* | nonstopux*)
8892 symcode='[BCDEGRST]'
8893 ;;
8894osf*)
8895 symcode='[BCDEGQRST]'
8896 ;;
8897solaris*)
8898 symcode='[BDRT]'
8899 ;;
8900sco3.2v5*)
8901 symcode='[DT]'
8902 ;;
8903sysv4.2uw2*)
8904 symcode='[DT]'
8905 ;;
8906sysv5* | sco5v6* | unixware* | OpenUNIX*)
8907 symcode='[ABDT]'
8908 ;;
8909sysv4)
8910 symcode='[DFNSTU]'
8911 ;;
8912esac
9c60689e 8913
a243b558
JF
8914# If we're using GNU nm, then use its standard symbol codes.
8915case `$NM -V 2>&1` in
8916*GNU* | *'with BFD'*)
8917 symcode='[ABCDGIRSTW]' ;;
8918esac
9c60689e 8919
9d54db95
JF
8920if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8921 # Gets list of data symbols to import.
8922 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8923 # Adjust the below global symbol transforms to fixup imported variables.
8924 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8925 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8926 lt_c_name_lib_hook="\
8927 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8928 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8929else
8930 # Disable hooks by default.
8931 lt_cv_sys_global_symbol_to_import=
8932 lt_cdecl_hook=
8933 lt_c_name_hook=
8934 lt_c_name_lib_hook=
8935fi
8936
a243b558
JF
8937# Transform an extracted symbol line into a proper C declaration.
8938# Some systems (esp. on ia64) link data and code symbols differently,
8939# so use this general approach.
9d54db95
JF
8940lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8941$lt_cdecl_hook\
8942" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8943" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9c60689e 8944
a243b558 8945# Transform an extracted symbol line into symbol name and symbol address
9d54db95
JF
8946lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8947$lt_c_name_hook\
8948" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8949" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8950
8951# Transform an extracted symbol line into symbol name with lib prefix and
8952# symbol address.
8953lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8954$lt_c_name_lib_hook\
8955" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8956" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8957" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9c60689e 8958
a243b558
JF
8959# Handle CRLF in mingw tool chain
8960opt_cr=
8961case $build_os in
8962mingw*)
8963 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8964 ;;
8965esac
9c60689e 8966
a243b558
JF
8967# Try without a prefix underscore, then with it.
8968for ac_symprfx in "" "_"; do
9c60689e 8969
a243b558
JF
8970 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8971 symxfrm="\\1 $ac_symprfx\\2 \\2"
9c60689e 8972
a243b558
JF
8973 # Write the raw and C identifiers.
8974 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9d54db95
JF
8975 # Fake it for dumpbin and say T for any non-static function,
8976 # D for any global variable and I for any imported variable.
a243b558
JF
8977 # Also find C++ and __fastcall symbols from MSVC++,
8978 # which start with @ or ?.
8979 lt_cv_sys_global_symbol_pipe="$AWK '"\
8980" {last_section=section; section=\$ 3};"\
8981" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8982" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9d54db95
JF
8983" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8984" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8985" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
a243b558
JF
8986" \$ 0!~/External *\|/{next};"\
8987" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8988" {if(hide[section]) next};"\
9d54db95
JF
8989" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8990" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8991" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8992" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
a243b558
JF
8993" ' prfx=^$ac_symprfx"
8994 else
8995 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8996 fi
8997 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9c60689e 8998
a243b558
JF
8999 # Check to see that the pipe works correctly.
9000 pipe_works=no
9c60689e 9001
00a96142 9002 rm -rf conftest*
a243b558
JF
9003 cat > conftest.$ac_ext <<_LT_EOF
9004#ifdef __cplusplus
9005extern "C" {
9006#endif
9007char nm_test_var;
9008void nm_test_func(void);
9009void nm_test_func(void){}
9010#ifdef __cplusplus
9011}
9012#endif
9013int main(){nm_test_var='a';nm_test_func();return(0);}
9014_LT_EOF
9c60689e 9015
a243b558
JF
9016 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9017 (eval $ac_compile) 2>&5
9018 ac_status=$?
9019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9020 test $ac_status = 0; }; then
9021 # Now try to grab the symbols.
9022 nlist=conftest.nm
9023 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9024 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9025 ac_status=$?
9026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9027 test $ac_status = 0; } && test -s "$nlist"; then
9028 # Try sorting and uniquifying the output.
9029 if sort "$nlist" | uniq > "$nlist"T; then
9030 mv -f "$nlist"T "$nlist"
9031 else
9032 rm -f "$nlist"T
9033 fi
9c60689e 9034
a243b558
JF
9035 # Make sure that we snagged all the symbols we need.
9036 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9037 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9038 cat <<_LT_EOF > conftest.$ac_ext
9039/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9d54db95
JF
9040#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9041/* DATA imports from DLLs on WIN32 can't be const, because runtime
a243b558
JF
9042 relocations are performed -- see ld's documentation on pseudo-relocs. */
9043# define LT_DLSYM_CONST
9d54db95 9044#elif defined __osf__
a243b558
JF
9045/* This system does not cope well with relocations in const data. */
9046# define LT_DLSYM_CONST
9047#else
9048# define LT_DLSYM_CONST const
9049#endif
9c60689e 9050
a243b558
JF
9051#ifdef __cplusplus
9052extern "C" {
9053#endif
9c60689e 9054
a243b558
JF
9055_LT_EOF
9056 # Now generate the symbol file.
9057 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9c60689e 9058
a243b558 9059 cat <<_LT_EOF >> conftest.$ac_ext
9c60689e 9060
a243b558
JF
9061/* The mapping between symbol names and symbols. */
9062LT_DLSYM_CONST struct {
9063 const char *name;
9064 void *address;
9065}
9066lt__PROGRAM__LTX_preloaded_symbols[] =
9067{
9068 { "@PROGRAM@", (void *) 0 },
9069_LT_EOF
9d54db95 9070 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
a243b558
JF
9071 cat <<\_LT_EOF >> conftest.$ac_ext
9072 {0, (void *) 0}
9073};
9c60689e 9074
a243b558
JF
9075/* This works around a problem in FreeBSD linker */
9076#ifdef FREEBSD_WORKAROUND
9077static const void *lt_preloaded_setup() {
9078 return lt__PROGRAM__LTX_preloaded_symbols;
9079}
9080#endif
9c60689e 9081
a243b558
JF
9082#ifdef __cplusplus
9083}
9084#endif
9085_LT_EOF
9086 # Now try linking the two files.
9087 mv conftest.$ac_objext conftstm.$ac_objext
9088 lt_globsym_save_LIBS=$LIBS
9089 lt_globsym_save_CFLAGS=$CFLAGS
9d54db95 9090 LIBS=conftstm.$ac_objext
a243b558
JF
9091 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9092 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9093 (eval $ac_link) 2>&5
9094 ac_status=$?
9095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9d54db95 9096 test $ac_status = 0; } && test -s conftest$ac_exeext; then
a243b558
JF
9097 pipe_works=yes
9098 fi
9099 LIBS=$lt_globsym_save_LIBS
9100 CFLAGS=$lt_globsym_save_CFLAGS
9101 else
9102 echo "cannot find nm_test_func in $nlist" >&5
9103 fi
9104 else
9105 echo "cannot find nm_test_var in $nlist" >&5
9106 fi
9107 else
9108 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9109 fi
9110 else
9111 echo "$progname: failed program was:" >&5
9112 cat conftest.$ac_ext >&5
9113 fi
9114 rm -rf conftest* conftst*
9c60689e 9115
a243b558 9116 # Do not use the global_symbol_pipe unless it works.
9d54db95 9117 if test yes = "$pipe_works"; then
a243b558
JF
9118 break
9119 else
9120 lt_cv_sys_global_symbol_pipe=
9121 fi
9122done
9c60689e 9123
9c60689e 9124fi
9c60689e 9125
a243b558
JF
9126if test -z "$lt_cv_sys_global_symbol_pipe"; then
9127 lt_cv_sys_global_symbol_to_cdecl=
9c60689e 9128fi
a243b558
JF
9129if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9131$as_echo "failed" >&6; }
9c60689e 9132else
a243b558
JF
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9134$as_echo "ok" >&6; }
9c60689e
DWT
9135fi
9136
a243b558
JF
9137# Response file support.
9138if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9139 nm_file_list_spec='@'
9140elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9141 nm_file_list_spec='@'
9c60689e 9142fi
9c60689e 9143
9c60689e 9144
9c60689e 9145
9c60689e 9146
9c60689e 9147
9c60689e
DWT
9148
9149
9c60689e 9150
9c60689e 9151
9c60689e
DWT
9152
9153
9154
ee134472
JF
9155
9156
9c60689e
DWT
9157
9158
9d54db95
JF
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9c60689e
DWT
9169
9170
9171
9172
9173
9174
9175
549f29b5 9176
549f29b5
DWT
9177
9178
549f29b5 9179
a243b558
JF
9180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9181$as_echo_n "checking for sysroot... " >&6; }
549f29b5 9182
a243b558
JF
9183# Check whether --with-sysroot was given.
9184if test "${with_sysroot+set}" = set; then :
9185 withval=$with_sysroot;
9c60689e 9186else
a243b558 9187 with_sysroot=no
9c60689e
DWT
9188fi
9189
9190
a243b558 9191lt_sysroot=
9d54db95 9192case $with_sysroot in #(
a243b558 9193 yes)
9d54db95 9194 if test yes = "$GCC"; then
a243b558
JF
9195 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9196 fi
9197 ;; #(
9198 /*)
9199 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9200 ;; #(
9201 no|'')
9202 ;; #(
9203 *)
9d54db95
JF
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9205$as_echo "$with_sysroot" >&6; }
a243b558
JF
9206 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9207 ;;
9208esac
9c60689e 9209
a243b558
JF
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9211$as_echo "${lt_sysroot:-no}" >&6; }
9c60689e
DWT
9212
9213
9214
9215
9216
9d54db95
JF
9217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9218$as_echo_n "checking for a working dd... " >&6; }
9219if ${ac_cv_path_lt_DD+:} false; then :
9220 $as_echo_n "(cached) " >&6
9221else
9222 printf 0123456789abcdef0123456789abcdef >conftest.i
9223cat conftest.i conftest.i >conftest2.i
9224: ${lt_DD:=$DD}
9225if test -z "$lt_DD"; then
9226 ac_path_lt_DD_found=false
9227 # Loop through the user's path and test for each of PROGNAME-LIST
9228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9229for as_dir in $PATH
9230do
9231 IFS=$as_save_IFS
9232 test -z "$as_dir" && as_dir=.
9233 for ac_prog in dd; do
9234 for ac_exec_ext in '' $ac_executable_extensions; do
9235 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9236 as_fn_executable_p "$ac_path_lt_DD" || continue
9237if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9238 cmp -s conftest.i conftest.out \
9239 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9240fi
9241 $ac_path_lt_DD_found && break 3
9242 done
9243 done
9244 done
9245IFS=$as_save_IFS
9246 if test -z "$ac_cv_path_lt_DD"; then
9247 :
9248 fi
9249else
9250 ac_cv_path_lt_DD=$lt_DD
9251fi
9252
9253rm -f conftest.i conftest2.i conftest.out
9254fi
9255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9256$as_echo "$ac_cv_path_lt_DD" >&6; }
9257
9258
9259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9260$as_echo_n "checking how to truncate binary pipes... " >&6; }
9261if ${lt_cv_truncate_bin+:} false; then :
9262 $as_echo_n "(cached) " >&6
9263else
9264 printf 0123456789abcdef0123456789abcdef >conftest.i
9265cat conftest.i conftest.i >conftest2.i
9266lt_cv_truncate_bin=
9267if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9268 cmp -s conftest.i conftest.out \
9269 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9270fi
9271rm -f conftest.i conftest2.i conftest.out
9272test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9273fi
9274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9275$as_echo "$lt_cv_truncate_bin" >&6; }
9276
9277
9278
9279
9280
9281
9282
9283# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9284func_cc_basename ()
9285{
9286 for cc_temp in $*""; do
9287 case $cc_temp in
9288 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9289 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9290 \-*) ;;
9291 *) break;;
9292 esac
9293 done
9294 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9295}
9296
a243b558
JF
9297# Check whether --enable-libtool-lock was given.
9298if test "${enable_libtool_lock+set}" = set; then :
9299 enableval=$enable_libtool_lock;
9c60689e
DWT
9300fi
9301
9d54db95 9302test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9c60689e 9303
a243b558
JF
9304# Some flags need to be propagated to the compiler or linker for good
9305# libtool support.
9306case $host in
9307ia64-*-hpux*)
9d54db95
JF
9308 # Find out what ABI is being produced by ac_compile, and set mode
9309 # options accordingly.
a243b558
JF
9310 echo 'int i;' > conftest.$ac_ext
9311 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9312 (eval $ac_compile) 2>&5
9313 ac_status=$?
9314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9315 test $ac_status = 0; }; then
9316 case `/usr/bin/file conftest.$ac_objext` in
9317 *ELF-32*)
9d54db95 9318 HPUX_IA64_MODE=32
a243b558
JF
9319 ;;
9320 *ELF-64*)
9d54db95 9321 HPUX_IA64_MODE=64
a243b558
JF
9322 ;;
9323 esac
9324 fi
9325 rm -rf conftest*
9326 ;;
9327*-*-irix6*)
9d54db95
JF
9328 # Find out what ABI is being produced by ac_compile, and set linker
9329 # options accordingly.
a243b558
JF
9330 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9331 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9332 (eval $ac_compile) 2>&5
9333 ac_status=$?
9334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9335 test $ac_status = 0; }; then
9d54db95 9336 if test yes = "$lt_cv_prog_gnu_ld"; then
a243b558
JF
9337 case `/usr/bin/file conftest.$ac_objext` in
9338 *32-bit*)
9339 LD="${LD-ld} -melf32bsmip"
9340 ;;
9341 *N32*)
9342 LD="${LD-ld} -melf32bmipn32"
9343 ;;
9344 *64-bit*)
9345 LD="${LD-ld} -melf64bmip"
9346 ;;
9347 esac
9348 else
9349 case `/usr/bin/file conftest.$ac_objext` in
9350 *32-bit*)
9351 LD="${LD-ld} -32"
9352 ;;
9353 *N32*)
9354 LD="${LD-ld} -n32"
9355 ;;
9356 *64-bit*)
9357 LD="${LD-ld} -64"
9358 ;;
9359 esac
9360 fi
9361 fi
9362 rm -rf conftest*
9363 ;;
9c60689e 9364
9d54db95
JF
9365mips64*-*linux*)
9366 # Find out what ABI is being produced by ac_compile, and set linker
9367 # options accordingly.
9368 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9369 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9370 (eval $ac_compile) 2>&5
9371 ac_status=$?
9372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9373 test $ac_status = 0; }; then
9374 emul=elf
9375 case `/usr/bin/file conftest.$ac_objext` in
9376 *32-bit*)
9377 emul="${emul}32"
9378 ;;
9379 *64-bit*)
9380 emul="${emul}64"
9381 ;;
9382 esac
9383 case `/usr/bin/file conftest.$ac_objext` in
9384 *MSB*)
9385 emul="${emul}btsmip"
9386 ;;
9387 *LSB*)
9388 emul="${emul}ltsmip"
9389 ;;
9390 esac
9391 case `/usr/bin/file conftest.$ac_objext` in
9392 *N32*)
9393 emul="${emul}n32"
9394 ;;
9395 esac
9396 LD="${LD-ld} -m $emul"
9397 fi
9398 rm -rf conftest*
9399 ;;
9400
9401x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
a243b558 9402s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9d54db95
JF
9403 # Find out what ABI is being produced by ac_compile, and set linker
9404 # options accordingly. Note that the listed cases only cover the
9405 # situations where additional linker options are needed (such as when
9406 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9407 # vice versa); the common cases where no linker options are needed do
9408 # not appear in the list.
a243b558
JF
9409 echo 'int i;' > conftest.$ac_ext
9410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9411 (eval $ac_compile) 2>&5
9412 ac_status=$?
9413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9414 test $ac_status = 0; }; then
9415 case `/usr/bin/file conftest.o` in
9416 *32-bit*)
9417 case $host in
9418 x86_64-*kfreebsd*-gnu)
9419 LD="${LD-ld} -m elf_i386_fbsd"
9420 ;;
9421 x86_64-*linux*)
9d54db95
JF
9422 case `/usr/bin/file conftest.o` in
9423 *x86-64*)
9424 LD="${LD-ld} -m elf32_x86_64"
9425 ;;
9426 *)
9427 LD="${LD-ld} -m elf_i386"
9428 ;;
9429 esac
a243b558 9430 ;;
9d54db95
JF
9431 powerpc64le-*linux*)
9432 LD="${LD-ld} -m elf32lppclinux"
9433 ;;
9434 powerpc64-*linux*)
a243b558
JF
9435 LD="${LD-ld} -m elf32ppclinux"
9436 ;;
9437 s390x-*linux*)
9438 LD="${LD-ld} -m elf_s390"
9439 ;;
9440 sparc64-*linux*)
9441 LD="${LD-ld} -m elf32_sparc"
9442 ;;
9443 esac
9444 ;;
9445 *64-bit*)
9446 case $host in
9447 x86_64-*kfreebsd*-gnu)
9448 LD="${LD-ld} -m elf_x86_64_fbsd"
9449 ;;
9450 x86_64-*linux*)
9451 LD="${LD-ld} -m elf_x86_64"
9452 ;;
9d54db95
JF
9453 powerpcle-*linux*)
9454 LD="${LD-ld} -m elf64lppc"
9455 ;;
9456 powerpc-*linux*)
a243b558
JF
9457 LD="${LD-ld} -m elf64ppc"
9458 ;;
9459 s390*-*linux*|s390*-*tpf*)
9460 LD="${LD-ld} -m elf64_s390"
9461 ;;
9462 sparc*-*linux*)
9463 LD="${LD-ld} -m elf64_sparc"
9464 ;;
9465 esac
9466 ;;
9467 esac
9468 fi
9469 rm -rf conftest*
9470 ;;
9c60689e 9471
a243b558
JF
9472*-*-sco3.2v5*)
9473 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9d54db95 9474 SAVE_CFLAGS=$CFLAGS
a243b558
JF
9475 CFLAGS="$CFLAGS -belf"
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9477$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9478if ${lt_cv_cc_needs_belf+:} false; then :
9479 $as_echo_n "(cached) " >&6
9480else
9481 ac_ext=c
9482ac_cpp='$CPP $CPPFLAGS'
9483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9485ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e 9486
a243b558
JF
9487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9488/* end confdefs.h. */
9c60689e 9489
a243b558
JF
9490int
9491main ()
9492{
9c60689e 9493
a243b558
JF
9494 ;
9495 return 0;
9496}
9497_ACEOF
9498if ac_fn_c_try_link "$LINENO"; then :
9499 lt_cv_cc_needs_belf=yes
9c60689e 9500else
a243b558 9501 lt_cv_cc_needs_belf=no
9c60689e 9502fi
a243b558
JF
9503rm -f core conftest.err conftest.$ac_objext \
9504 conftest$ac_exeext conftest.$ac_ext
9505 ac_ext=c
9506ac_cpp='$CPP $CPPFLAGS'
9507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9509ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e 9510
a243b558
JF
9511fi
9512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9513$as_echo "$lt_cv_cc_needs_belf" >&6; }
9d54db95 9514 if test yes != "$lt_cv_cc_needs_belf"; then
a243b558 9515 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9d54db95 9516 CFLAGS=$SAVE_CFLAGS
a243b558
JF
9517 fi
9518 ;;
9519*-*solaris*)
9d54db95
JF
9520 # Find out what ABI is being produced by ac_compile, and set linker
9521 # options accordingly.
a243b558
JF
9522 echo 'int i;' > conftest.$ac_ext
9523 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9524 (eval $ac_compile) 2>&5
9525 ac_status=$?
9526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9527 test $ac_status = 0; }; then
9528 case `/usr/bin/file conftest.o` in
9529 *64-bit*)
9530 case $lt_cv_prog_gnu_ld in
9531 yes*)
9532 case $host in
9d54db95 9533 i?86-*-solaris*|x86_64-*-solaris*)
a243b558
JF
9534 LD="${LD-ld} -m elf_x86_64"
9535 ;;
9536 sparc*-*-solaris*)
9537 LD="${LD-ld} -m elf64_sparc"
9538 ;;
9539 esac
9540 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9541 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9d54db95 9542 LD=${LD-ld}_sol2
a243b558
JF
9543 fi
9544 ;;
9545 *)
9546 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9547 LD="${LD-ld} -64"
9548 fi
9549 ;;
9550 esac
9551 ;;
9552 esac
9553 fi
9554 rm -rf conftest*
9555 ;;
9556esac
9c60689e 9557
9d54db95 9558need_locks=$enable_libtool_lock
9c60689e 9559
a243b558
JF
9560if test -n "$ac_tool_prefix"; then
9561 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9562set dummy ${ac_tool_prefix}mt; ac_word=$2
9563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9564$as_echo_n "checking for $ac_word... " >&6; }
9565if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9566 $as_echo_n "(cached) " >&6
9567else
9568 if test -n "$MANIFEST_TOOL"; then
9569 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9570else
9571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9572for as_dir in $PATH
9573do
9574 IFS=$as_save_IFS
9575 test -z "$as_dir" && as_dir=.
9576 for ac_exec_ext in '' $ac_executable_extensions; do
9577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9578 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9580 break 2
9581 fi
9582done
9583 done
9584IFS=$as_save_IFS
9c60689e 9585
a243b558
JF
9586fi
9587fi
9588MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9589if test -n "$MANIFEST_TOOL"; then
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9591$as_echo "$MANIFEST_TOOL" >&6; }
9592else
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9594$as_echo "no" >&6; }
9595fi
9c60689e
DWT
9596
9597
a243b558
JF
9598fi
9599if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9600 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9601 # Extract the first word of "mt", so it can be a program name with args.
9602set dummy mt; ac_word=$2
9603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9604$as_echo_n "checking for $ac_word... " >&6; }
9605if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9606 $as_echo_n "(cached) " >&6
9607else
9608 if test -n "$ac_ct_MANIFEST_TOOL"; then
9609 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9610else
9611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9612for as_dir in $PATH
9613do
9614 IFS=$as_save_IFS
9615 test -z "$as_dir" && as_dir=.
9616 for ac_exec_ext in '' $ac_executable_extensions; do
9617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9618 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9620 break 2
9621 fi
9622done
9623 done
9624IFS=$as_save_IFS
9c60689e 9625
a243b558
JF
9626fi
9627fi
9628ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9629if test -n "$ac_ct_MANIFEST_TOOL"; then
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9631$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9632else
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9634$as_echo "no" >&6; }
9635fi
9c60689e 9636
a243b558
JF
9637 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9638 MANIFEST_TOOL=":"
9639 else
9640 case $cross_compiling:$ac_tool_warned in
9641yes:)
9642{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9643$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9644ac_tool_warned=yes ;;
9645esac
9646 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9647 fi
9648else
9649 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9650fi
9c60689e 9651
a243b558
JF
9652test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9654$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9655if ${lt_cv_path_mainfest_tool+:} false; then :
9656 $as_echo_n "(cached) " >&6
9657else
9658 lt_cv_path_mainfest_tool=no
9659 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9660 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9661 cat conftest.err >&5
9662 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9663 lt_cv_path_mainfest_tool=yes
9664 fi
00a96142 9665 rm -rf conftest*
a243b558
JF
9666fi
9667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9668$as_echo "$lt_cv_path_mainfest_tool" >&6; }
9d54db95 9669if test yes != "$lt_cv_path_mainfest_tool"; then
a243b558
JF
9670 MANIFEST_TOOL=:
9671fi
9c60689e
DWT
9672
9673
9674
9675
9676
9677
a243b558
JF
9678 case $host_os in
9679 rhapsody* | darwin*)
9680 if test -n "$ac_tool_prefix"; then
9681 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9682set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9684$as_echo_n "checking for $ac_word... " >&6; }
9685if ${ac_cv_prog_DSYMUTIL+:} false; then :
9686 $as_echo_n "(cached) " >&6
9687else
9688 if test -n "$DSYMUTIL"; then
9689 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9690else
9691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9692for as_dir in $PATH
9693do
9694 IFS=$as_save_IFS
9695 test -z "$as_dir" && as_dir=.
9696 for ac_exec_ext in '' $ac_executable_extensions; do
9697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9698 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9700 break 2
9701 fi
9702done
9703 done
9704IFS=$as_save_IFS
9c60689e 9705
a243b558
JF
9706fi
9707fi
9708DSYMUTIL=$ac_cv_prog_DSYMUTIL
9709if test -n "$DSYMUTIL"; then
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9711$as_echo "$DSYMUTIL" >&6; }
9712else
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9714$as_echo "no" >&6; }
9715fi
9c60689e
DWT
9716
9717
9c60689e 9718fi
a243b558
JF
9719if test -z "$ac_cv_prog_DSYMUTIL"; then
9720 ac_ct_DSYMUTIL=$DSYMUTIL
9721 # Extract the first word of "dsymutil", so it can be a program name with args.
9722set dummy dsymutil; ac_word=$2
9723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9724$as_echo_n "checking for $ac_word... " >&6; }
9725if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9c60689e
DWT
9726 $as_echo_n "(cached) " >&6
9727else
a243b558
JF
9728 if test -n "$ac_ct_DSYMUTIL"; then
9729 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9c60689e 9730else
a243b558
JF
9731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9732for as_dir in $PATH
9733do
9734 IFS=$as_save_IFS
9735 test -z "$as_dir" && as_dir=.
9736 for ac_exec_ext in '' $ac_executable_extensions; do
9737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9738 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9740 break 2
9741 fi
9742done
9743 done
9744IFS=$as_save_IFS
9745
9c60689e 9746fi
9c60689e 9747fi
a243b558
JF
9748ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9749if test -n "$ac_ct_DSYMUTIL"; then
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9751$as_echo "$ac_ct_DSYMUTIL" >&6; }
9752else
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9754$as_echo "no" >&6; }
9755fi
9c60689e 9756
a243b558
JF
9757 if test "x$ac_ct_DSYMUTIL" = x; then
9758 DSYMUTIL=":"
9759 else
9760 case $cross_compiling:$ac_tool_warned in
9761yes:)
9762{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9763$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9764ac_tool_warned=yes ;;
9c60689e 9765esac
a243b558
JF
9766 DSYMUTIL=$ac_ct_DSYMUTIL
9767 fi
9768else
9769 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9770fi
9c60689e 9771
a243b558
JF
9772 if test -n "$ac_tool_prefix"; then
9773 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9774set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9776$as_echo_n "checking for $ac_word... " >&6; }
9777if ${ac_cv_prog_NMEDIT+:} false; then :
9c60689e
DWT
9778 $as_echo_n "(cached) " >&6
9779else
a243b558
JF
9780 if test -n "$NMEDIT"; then
9781 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9782else
9783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9784for as_dir in $PATH
9785do
9786 IFS=$as_save_IFS
9787 test -z "$as_dir" && as_dir=.
9788 for ac_exec_ext in '' $ac_executable_extensions; do
9789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9790 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9792 break 2
9793 fi
9794done
9c60689e 9795 done
a243b558 9796IFS=$as_save_IFS
9c60689e 9797
a243b558
JF
9798fi
9799fi
9800NMEDIT=$ac_cv_prog_NMEDIT
9801if test -n "$NMEDIT"; then
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9803$as_echo "$NMEDIT" >&6; }
9c60689e
DWT
9804else
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9806$as_echo "no" >&6; }
9807fi
9808
9809
a243b558
JF
9810fi
9811if test -z "$ac_cv_prog_NMEDIT"; then
9812 ac_ct_NMEDIT=$NMEDIT
9813 # Extract the first word of "nmedit", so it can be a program name with args.
9814set dummy nmedit; ac_word=$2
9815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9816$as_echo_n "checking for $ac_word... " >&6; }
9817if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9c60689e
DWT
9818 $as_echo_n "(cached) " >&6
9819else
a243b558
JF
9820 if test -n "$ac_ct_NMEDIT"; then
9821 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9822else
9823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9824for as_dir in $PATH
9825do
9826 IFS=$as_save_IFS
9827 test -z "$as_dir" && as_dir=.
9828 for ac_exec_ext in '' $ac_executable_extensions; do
9829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9830 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9832 break 2
9833 fi
9834done
9c60689e 9835 done
a243b558 9836IFS=$as_save_IFS
9c60689e 9837
a243b558
JF
9838fi
9839fi
9840ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9841if test -n "$ac_ct_NMEDIT"; then
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9843$as_echo "$ac_ct_NMEDIT" >&6; }
9c60689e
DWT
9844else
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9846$as_echo "no" >&6; }
9847fi
9848
a243b558
JF
9849 if test "x$ac_ct_NMEDIT" = x; then
9850 NMEDIT=":"
9c60689e 9851 else
a243b558
JF
9852 case $cross_compiling:$ac_tool_warned in
9853yes:)
9854{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9855$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9856ac_tool_warned=yes ;;
9857esac
9858 NMEDIT=$ac_ct_NMEDIT
9c60689e 9859 fi
a243b558
JF
9860else
9861 NMEDIT="$ac_cv_prog_NMEDIT"
9c60689e
DWT
9862fi
9863
a243b558
JF
9864 if test -n "$ac_tool_prefix"; then
9865 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9866set dummy ${ac_tool_prefix}lipo; ac_word=$2
9867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9868$as_echo_n "checking for $ac_word... " >&6; }
9869if ${ac_cv_prog_LIPO+:} false; then :
9870 $as_echo_n "(cached) " >&6
9871else
9872 if test -n "$LIPO"; then
9873 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9874else
9875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9876for as_dir in $PATH
9877do
9878 IFS=$as_save_IFS
9879 test -z "$as_dir" && as_dir=.
9880 for ac_exec_ext in '' $ac_executable_extensions; do
9881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9882 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9884 break 2
9885 fi
9886done
9887 done
9888IFS=$as_save_IFS
9c60689e 9889
a243b558
JF
9890fi
9891fi
9892LIPO=$ac_cv_prog_LIPO
9893if test -n "$LIPO"; then
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9895$as_echo "$LIPO" >&6; }
9896else
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9898$as_echo "no" >&6; }
9899fi
9c60689e 9900
9c60689e 9901
a243b558
JF
9902fi
9903if test -z "$ac_cv_prog_LIPO"; then
9904 ac_ct_LIPO=$LIPO
9905 # Extract the first word of "lipo", so it can be a program name with args.
9906set dummy lipo; ac_word=$2
9907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9908$as_echo_n "checking for $ac_word... " >&6; }
9909if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9c60689e
DWT
9910 $as_echo_n "(cached) " >&6
9911else
a243b558
JF
9912 if test -n "$ac_ct_LIPO"; then
9913 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9914else
9915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9916for as_dir in $PATH
9917do
9918 IFS=$as_save_IFS
9919 test -z "$as_dir" && as_dir=.
9920 for ac_exec_ext in '' $ac_executable_extensions; do
9921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9922 ac_cv_prog_ac_ct_LIPO="lipo"
9923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9924 break 2
9925 fi
9926done
9927 done
9928IFS=$as_save_IFS
9c60689e
DWT
9929
9930fi
a243b558
JF
9931fi
9932ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9933if test -n "$ac_ct_LIPO"; then
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9935$as_echo "$ac_ct_LIPO" >&6; }
9c60689e 9936else
a243b558
JF
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9938$as_echo "no" >&6; }
9c60689e
DWT
9939fi
9940
a243b558
JF
9941 if test "x$ac_ct_LIPO" = x; then
9942 LIPO=":"
9943 else
9944 case $cross_compiling:$ac_tool_warned in
9945yes:)
9946{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9947$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9948ac_tool_warned=yes ;;
9949esac
9950 LIPO=$ac_ct_LIPO
9951 fi
9952else
9953 LIPO="$ac_cv_prog_LIPO"
9c60689e
DWT
9954fi
9955
a243b558
JF
9956 if test -n "$ac_tool_prefix"; then
9957 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9958set dummy ${ac_tool_prefix}otool; ac_word=$2
9959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9960$as_echo_n "checking for $ac_word... " >&6; }
9961if ${ac_cv_prog_OTOOL+:} false; then :
9962 $as_echo_n "(cached) " >&6
9963else
9964 if test -n "$OTOOL"; then
9965 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9966else
9967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9968for as_dir in $PATH
9969do
9970 IFS=$as_save_IFS
9971 test -z "$as_dir" && as_dir=.
9972 for ac_exec_ext in '' $ac_executable_extensions; do
9973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9974 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9976 break 2
9977 fi
9978done
9979 done
9980IFS=$as_save_IFS
9c60689e 9981
a243b558
JF
9982fi
9983fi
9984OTOOL=$ac_cv_prog_OTOOL
9985if test -n "$OTOOL"; then
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9987$as_echo "$OTOOL" >&6; }
9988else
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9990$as_echo "no" >&6; }
9991fi
9c60689e
DWT
9992
9993
a243b558
JF
9994fi
9995if test -z "$ac_cv_prog_OTOOL"; then
9996 ac_ct_OTOOL=$OTOOL
9997 # Extract the first word of "otool", so it can be a program name with args.
9998set dummy otool; ac_word=$2
9999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10000$as_echo_n "checking for $ac_word... " >&6; }
10001if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10002 $as_echo_n "(cached) " >&6
10003else
10004 if test -n "$ac_ct_OTOOL"; then
10005 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10006else
10007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10008for as_dir in $PATH
10009do
10010 IFS=$as_save_IFS
10011 test -z "$as_dir" && as_dir=.
10012 for ac_exec_ext in '' $ac_executable_extensions; do
10013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10014 ac_cv_prog_ac_ct_OTOOL="otool"
10015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10016 break 2
10017 fi
10018done
10019 done
10020IFS=$as_save_IFS
9c60689e 10021
a243b558
JF
10022fi
10023fi
10024ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10025if test -n "$ac_ct_OTOOL"; then
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10027$as_echo "$ac_ct_OTOOL" >&6; }
10028else
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10030$as_echo "no" >&6; }
10031fi
9c60689e 10032
a243b558
JF
10033 if test "x$ac_ct_OTOOL" = x; then
10034 OTOOL=":"
10035 else
10036 case $cross_compiling:$ac_tool_warned in
10037yes:)
10038{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10039$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10040ac_tool_warned=yes ;;
10041esac
10042 OTOOL=$ac_ct_OTOOL
10043 fi
10044else
10045 OTOOL="$ac_cv_prog_OTOOL"
10046fi
9c60689e 10047
a243b558
JF
10048 if test -n "$ac_tool_prefix"; then
10049 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10050set dummy ${ac_tool_prefix}otool64; ac_word=$2
10051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10052$as_echo_n "checking for $ac_word... " >&6; }
10053if ${ac_cv_prog_OTOOL64+:} false; then :
10054 $as_echo_n "(cached) " >&6
10055else
10056 if test -n "$OTOOL64"; then
10057 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10058else
10059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10060for as_dir in $PATH
10061do
10062 IFS=$as_save_IFS
10063 test -z "$as_dir" && as_dir=.
10064 for ac_exec_ext in '' $ac_executable_extensions; do
10065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10066 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10068 break 2
10069 fi
10070done
10071 done
10072IFS=$as_save_IFS
9c60689e 10073
a243b558
JF
10074fi
10075fi
10076OTOOL64=$ac_cv_prog_OTOOL64
10077if test -n "$OTOOL64"; then
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10079$as_echo "$OTOOL64" >&6; }
10080else
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10082$as_echo "no" >&6; }
10083fi
9c60689e 10084
9c60689e 10085
a243b558
JF
10086fi
10087if test -z "$ac_cv_prog_OTOOL64"; then
10088 ac_ct_OTOOL64=$OTOOL64
10089 # Extract the first word of "otool64", so it can be a program name with args.
10090set dummy otool64; ac_word=$2
10091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10092$as_echo_n "checking for $ac_word... " >&6; }
10093if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10094 $as_echo_n "(cached) " >&6
10095else
10096 if test -n "$ac_ct_OTOOL64"; then
10097 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10098else
10099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10100for as_dir in $PATH
10101do
10102 IFS=$as_save_IFS
10103 test -z "$as_dir" && as_dir=.
10104 for ac_exec_ext in '' $ac_executable_extensions; do
10105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10106 ac_cv_prog_ac_ct_OTOOL64="otool64"
10107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10108 break 2
10109 fi
10110done
10111 done
10112IFS=$as_save_IFS
9c60689e 10113
a243b558
JF
10114fi
10115fi
10116ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10117if test -n "$ac_ct_OTOOL64"; then
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10119$as_echo "$ac_ct_OTOOL64" >&6; }
10120else
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10122$as_echo "no" >&6; }
10123fi
9c60689e 10124
a243b558
JF
10125 if test "x$ac_ct_OTOOL64" = x; then
10126 OTOOL64=":"
10127 else
10128 case $cross_compiling:$ac_tool_warned in
10129yes:)
10130{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10131$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10132ac_tool_warned=yes ;;
10133esac
10134 OTOOL64=$ac_ct_OTOOL64
10135 fi
10136else
10137 OTOOL64="$ac_cv_prog_OTOOL64"
10138fi
ee134472 10139
9c60689e 10140
9c60689e 10141
9c60689e 10142
9c60689e 10143
9c60689e 10144
ee134472 10145
9c60689e 10146
9c60689e 10147
9c60689e 10148
9c60689e 10149
9c60689e 10150
9c60689e 10151
9c60689e 10152
9c60689e 10153
9c60689e 10154
9c60689e 10155
9c60689e 10156
9c60689e 10157
9c60689e 10158
9c60689e 10159
9c60689e 10160
9c60689e 10161
9c60689e 10162
9c60689e 10163
a243b558
JF
10164
10165
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10167$as_echo_n "checking for -single_module linker flag... " >&6; }
10168if ${lt_cv_apple_cc_single_mod+:} false; then :
ee134472
JF
10169 $as_echo_n "(cached) " >&6
10170else
a243b558 10171 lt_cv_apple_cc_single_mod=no
9d54db95 10172 if test -z "$LT_MULTI_MODULE"; then
a243b558
JF
10173 # By default we will add the -single_module flag. You can override
10174 # by either setting the environment variable LT_MULTI_MODULE
10175 # non-empty at configure time, or by adding -multi_module to the
10176 # link flags.
10177 rm -rf libconftest.dylib*
10178 echo "int foo(void){return 1;}" > conftest.c
10179 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10180-dynamiclib -Wl,-single_module conftest.c" >&5
10181 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10182 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10183 _lt_result=$?
10184 # If there is a non-empty error log, and "single_module"
10185 # appears in it, assume the flag caused a linker warning
10186 if test -s conftest.err && $GREP single_module conftest.err; then
10187 cat conftest.err >&5
10188 # Otherwise, if the output was created with a 0 exit code from
10189 # the compiler, it worked.
9d54db95 10190 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
a243b558
JF
10191 lt_cv_apple_cc_single_mod=yes
10192 else
10193 cat conftest.err >&5
10194 fi
10195 rm -rf libconftest.dylib*
10196 rm -f conftest.*
10197 fi
ee134472 10198fi
a243b558
JF
10199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10200$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9c60689e 10201
a243b558
JF
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10203$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10204if ${lt_cv_ld_exported_symbols_list+:} false; then :
9c60689e
DWT
10205 $as_echo_n "(cached) " >&6
10206else
a243b558
JF
10207 lt_cv_ld_exported_symbols_list=no
10208 save_LDFLAGS=$LDFLAGS
10209 echo "_main" > conftest.sym
10210 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10212/* end confdefs.h. */
9c60689e 10213
a243b558
JF
10214int
10215main ()
10216{
9c60689e 10217
a243b558
JF
10218 ;
10219 return 0;
10220}
10221_ACEOF
10222if ac_fn_c_try_link "$LINENO"; then :
10223 lt_cv_ld_exported_symbols_list=yes
9c60689e 10224else
a243b558 10225 lt_cv_ld_exported_symbols_list=no
9c60689e 10226fi
a243b558
JF
10227rm -f core conftest.err conftest.$ac_objext \
10228 conftest$ac_exeext conftest.$ac_ext
9d54db95 10229 LDFLAGS=$save_LDFLAGS
9c60689e
DWT
10230
10231fi
a243b558
JF
10232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10233$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9c60689e 10234
a243b558
JF
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10236$as_echo_n "checking for -force_load linker flag... " >&6; }
10237if ${lt_cv_ld_force_load+:} false; then :
9c60689e
DWT
10238 $as_echo_n "(cached) " >&6
10239else
a243b558
JF
10240 lt_cv_ld_force_load=no
10241 cat > conftest.c << _LT_EOF
10242int forced_loaded() { return 2;}
10243_LT_EOF
10244 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10245 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10246 echo "$AR cru libconftest.a conftest.o" >&5
10247 $AR cru libconftest.a conftest.o 2>&5
10248 echo "$RANLIB libconftest.a" >&5
10249 $RANLIB libconftest.a 2>&5
10250 cat > conftest.c << _LT_EOF
10251int main() { return 0;}
10252_LT_EOF
10253 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10254 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10255 _lt_result=$?
10256 if test -s conftest.err && $GREP force_load conftest.err; then
10257 cat conftest.err >&5
9d54db95 10258 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
a243b558
JF
10259 lt_cv_ld_force_load=yes
10260 else
10261 cat conftest.err >&5
10262 fi
10263 rm -f conftest.err libconftest.a conftest conftest.c
10264 rm -rf conftest.dSYM
9c60689e
DWT
10265
10266fi
a243b558
JF
10267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10268$as_echo "$lt_cv_ld_force_load" >&6; }
10269 case $host_os in
10270 rhapsody* | darwin1.[012])
9d54db95 10271 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
a243b558 10272 darwin1.*)
9d54db95 10273 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
a243b558
JF
10274 darwin*) # darwin 5.x on
10275 # if running on 10.5 or later, the deployment target defaults
10276 # to the OS version, if on x86, and 10.4, the deployment
10277 # target defaults to 10.4. Don't you love it?
10278 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10279 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9d54db95
JF
10280 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10281 10.[012][,.]*)
10282 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
a243b558 10283 10.*)
9d54db95 10284 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
a243b558
JF
10285 esac
10286 ;;
10287 esac
9d54db95 10288 if test yes = "$lt_cv_apple_cc_single_mod"; then
a243b558
JF
10289 _lt_dar_single_mod='$single_module'
10290 fi
9d54db95
JF
10291 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10292 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
a243b558 10293 else
9d54db95 10294 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
a243b558 10295 fi
9d54db95 10296 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
a243b558
JF
10297 _lt_dsymutil='~$DSYMUTIL $lib || :'
10298 else
10299 _lt_dsymutil=
10300 fi
10301 ;;
10302 esac
9c60689e 10303
9d54db95
JF
10304# func_munge_path_list VARIABLE PATH
10305# -----------------------------------
10306# VARIABLE is name of variable containing _space_ separated list of
10307# directories to be munged by the contents of PATH, which is string
10308# having a format:
10309# "DIR[:DIR]:"
10310# string "DIR[ DIR]" will be prepended to VARIABLE
10311# ":DIR[:DIR]"
10312# string "DIR[ DIR]" will be appended to VARIABLE
10313# "DIRP[:DIRP]::[DIRA:]DIRA"
10314# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10315# "DIRA[ DIRA]" will be appended to VARIABLE
10316# "DIR[:DIR]"
10317# VARIABLE will be replaced by "DIR[ DIR]"
10318func_munge_path_list ()
10319{
10320 case x$2 in
10321 x)
10322 ;;
10323 *:)
10324 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10325 ;;
10326 x:*)
10327 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10328 ;;
10329 *::*)
10330 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10331 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10332 ;;
10333 *)
10334 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10335 ;;
10336 esac
10337}
10338
9c60689e 10339
a243b558
JF
10340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10341$as_echo_n "checking for ANSI C header files... " >&6; }
10342if ${ac_cv_header_stdc+:} false; then :
9c60689e
DWT
10343 $as_echo_n "(cached) " >&6
10344else
a243b558
JF
10345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10346/* end confdefs.h. */
10347#include <stdlib.h>
10348#include <stdarg.h>
10349#include <string.h>
10350#include <float.h>
9c60689e 10351
a243b558
JF
10352int
10353main ()
10354{
9c60689e 10355
a243b558
JF
10356 ;
10357 return 0;
10358}
10359_ACEOF
10360if ac_fn_c_try_compile "$LINENO"; then :
10361 ac_cv_header_stdc=yes
10362else
10363 ac_cv_header_stdc=no
9c60689e 10364fi
a243b558
JF
10365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10366
10367if test $ac_cv_header_stdc = yes; then
10368 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10370/* end confdefs.h. */
10371#include <string.h>
9c60689e 10372
a243b558
JF
10373_ACEOF
10374if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10375 $EGREP "memchr" >/dev/null 2>&1; then :
9c60689e 10376
a243b558
JF
10377else
10378 ac_cv_header_stdc=no
10379fi
10380rm -f conftest*
9c60689e 10381
a243b558
JF
10382fi
10383
10384if test $ac_cv_header_stdc = yes; then
10385 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10387/* end confdefs.h. */
10388#include <stdlib.h>
10389
10390_ACEOF
10391if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10392 $EGREP "free" >/dev/null 2>&1; then :
9c60689e 10393
9c60689e 10394else
a243b558 10395 ac_cv_header_stdc=no
9c60689e 10396fi
a243b558 10397rm -f conftest*
9c60689e 10398
a243b558 10399fi
9c60689e 10400
a243b558
JF
10401if test $ac_cv_header_stdc = yes; then
10402 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10403 if test "$cross_compiling" = yes; then :
10404 :
10405else
10406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10407/* end confdefs.h. */
10408#include <ctype.h>
10409#include <stdlib.h>
10410#if ((' ' & 0x0FF) == 0x020)
10411# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10412# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10413#else
10414# define ISLOWER(c) \
10415 (('a' <= (c) && (c) <= 'i') \
10416 || ('j' <= (c) && (c) <= 'r') \
10417 || ('s' <= (c) && (c) <= 'z'))
10418# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10419#endif
9c60689e 10420
a243b558
JF
10421#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10422int
10423main ()
10424{
10425 int i;
10426 for (i = 0; i < 256; i++)
10427 if (XOR (islower (i), ISLOWER (i))
10428 || toupper (i) != TOUPPER (i))
10429 return 2;
10430 return 0;
10431}
10432_ACEOF
10433if ac_fn_c_try_run "$LINENO"; then :
9c60689e 10434
a243b558
JF
10435else
10436 ac_cv_header_stdc=no
10437fi
10438rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10439 conftest.$ac_objext conftest.beam conftest.$ac_ext
10440fi
9c60689e 10441
a243b558
JF
10442fi
10443fi
10444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10445$as_echo "$ac_cv_header_stdc" >&6; }
10446if test $ac_cv_header_stdc = yes; then
9c60689e 10447
a243b558 10448$as_echo "#define STDC_HEADERS 1" >>confdefs.h
9c60689e 10449
a243b558 10450fi
9c60689e 10451
a243b558
JF
10452# On IRIX 5.3, sys/types and inttypes.h are conflicting.
10453for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10454 inttypes.h stdint.h unistd.h
10455do :
10456 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10457ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10458"
10459if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10460 cat >>confdefs.h <<_ACEOF
10461#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10462_ACEOF
9c60689e 10463
a243b558 10464fi
ee134472 10465
a243b558 10466done
ee134472 10467
9c60689e 10468
a243b558
JF
10469for ac_header in dlfcn.h
10470do :
10471 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10472"
10473if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10474 cat >>confdefs.h <<_ACEOF
10475#define HAVE_DLFCN_H 1
10476_ACEOF
9c60689e 10477
a243b558 10478fi
9c60689e 10479
a243b558 10480done
9c60689e 10481
9c60689e 10482
9c60689e 10483
9c60689e 10484
a243b558
JF
10485func_stripname_cnf ()
10486{
9d54db95
JF
10487 case $2 in
10488 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
10489 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
a243b558
JF
10490 esac
10491} # func_stripname_cnf
9c60689e 10492
9c60689e 10493
ee134472 10494
a243b558
JF
10495
10496
10497# Set options
10498# Check whether --enable-static was given.
10499if test "${enable_static+set}" = set; then :
10500 enableval=$enable_static; p=${PACKAGE-default}
10501 case $enableval in
10502 yes) enable_static=yes ;;
10503 no) enable_static=no ;;
10504 *)
10505 enable_static=no
10506 # Look at the argument we got. We use all the common list separators.
9d54db95 10507 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
a243b558 10508 for pkg in $enableval; do
9d54db95 10509 IFS=$lt_save_ifs
a243b558
JF
10510 if test "X$pkg" = "X$p"; then
10511 enable_static=yes
10512 fi
10513 done
9d54db95 10514 IFS=$lt_save_ifs
9c60689e 10515 ;;
a243b558
JF
10516 esac
10517else
10518 enable_static=no
10519fi
9c60689e 10520
9c60689e 10521
9c60689e 10522
9c60689e 10523
9c60689e 10524
9c60689e 10525
9c60689e 10526
9c60689e 10527
9c60689e 10528
9c60689e 10529
a243b558 10530 enable_dlopen=no
9c60689e 10531
9c60689e 10532
a243b558
JF
10533 enable_win32_dll=no
10534
10535
10536 # Check whether --enable-shared was given.
10537if test "${enable_shared+set}" = set; then :
10538 enableval=$enable_shared; p=${PACKAGE-default}
10539 case $enableval in
10540 yes) enable_shared=yes ;;
10541 no) enable_shared=no ;;
9c60689e 10542 *)
a243b558
JF
10543 enable_shared=no
10544 # Look at the argument we got. We use all the common list separators.
9d54db95 10545 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
a243b558 10546 for pkg in $enableval; do
9d54db95 10547 IFS=$lt_save_ifs
a243b558
JF
10548 if test "X$pkg" = "X$p"; then
10549 enable_shared=yes
10550 fi
10551 done
9d54db95 10552 IFS=$lt_save_ifs
9c60689e
DWT
10553 ;;
10554 esac
a243b558
JF
10555else
10556 enable_shared=yes
10557fi
9c60689e 10558
9c60689e 10559
9c60689e 10560
9c60689e 10561
9c60689e 10562
9c60689e 10563
9c60689e 10564
9c60689e 10565
9c60689e 10566
9c60689e 10567
9c60689e 10568
a243b558
JF
10569# Check whether --with-pic was given.
10570if test "${with_pic+set}" = set; then :
10571 withval=$with_pic; lt_p=${PACKAGE-default}
10572 case $withval in
10573 yes|no) pic_mode=$withval ;;
10574 *)
10575 pic_mode=default
10576 # Look at the argument we got. We use all the common list separators.
9d54db95 10577 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
a243b558 10578 for lt_pkg in $withval; do
9d54db95 10579 IFS=$lt_save_ifs
a243b558
JF
10580 if test "X$lt_pkg" = "X$lt_p"; then
10581 pic_mode=yes
10582 fi
10583 done
9d54db95 10584 IFS=$lt_save_ifs
a243b558
JF
10585 ;;
10586 esac
10587else
10588 pic_mode=default
9c60689e 10589fi
ee134472 10590
ee134472 10591
9c60689e 10592
9c60689e 10593
9c60689e 10594
ee134472 10595
ee134472 10596
9c60689e 10597
a243b558
JF
10598 # Check whether --enable-fast-install was given.
10599if test "${enable_fast_install+set}" = set; then :
10600 enableval=$enable_fast_install; p=${PACKAGE-default}
10601 case $enableval in
10602 yes) enable_fast_install=yes ;;
10603 no) enable_fast_install=no ;;
10604 *)
10605 enable_fast_install=no
10606 # Look at the argument we got. We use all the common list separators.
9d54db95 10607 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
a243b558 10608 for pkg in $enableval; do
9d54db95 10609 IFS=$lt_save_ifs
a243b558
JF
10610 if test "X$pkg" = "X$p"; then
10611 enable_fast_install=yes
9c60689e 10612 fi
a243b558 10613 done
9d54db95 10614 IFS=$lt_save_ifs
9c60689e 10615 ;;
a243b558
JF
10616 esac
10617else
10618 enable_fast_install=yes
10619fi
9c60689e 10620
9c60689e 10621
9c60689e 10622
9c60689e 10623
9c60689e
DWT
10624
10625
53ba6704 10626
9c60689e 10627
9d54db95
JF
10628 shared_archive_member_spec=
10629case $host,$enable_shared in
10630power*-*-aix[5-9]*,yes)
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10632$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10633
10634# Check whether --with-aix-soname was given.
10635if test "${with_aix_soname+set}" = set; then :
10636 withval=$with_aix_soname; case $withval in
10637 aix|svr4|both)
10638 ;;
10639 *)
10640 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10641 ;;
10642 esac
10643 lt_cv_with_aix_soname=$with_aix_soname
10644else
10645 if ${lt_cv_with_aix_soname+:} false; then :
10646 $as_echo_n "(cached) " >&6
10647else
10648 lt_cv_with_aix_soname=aix
10649fi
10650
10651 with_aix_soname=$lt_cv_with_aix_soname
10652fi
10653
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10655$as_echo "$with_aix_soname" >&6; }
10656 if test aix != "$with_aix_soname"; then
10657 # For the AIX way of multilib, we name the shared archive member
10658 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10659 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10660 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10661 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10662 if test 64 = "${OBJECT_MODE-32}"; then
10663 shared_archive_member_spec=shr_64
10664 else
10665 shared_archive_member_spec=shr
10666 fi
10667 fi
10668 ;;
10669*)
10670 with_aix_soname=aix
10671 ;;
10672esac
10673
10674
10675
10676
10677
10678
10679
9c60689e 10680
9c60689e 10681
9c60689e 10682
a243b558 10683# This can be used to rebuild libtool when needed
9d54db95 10684LIBTOOL_DEPS=$ltmain
9c60689e 10685
a243b558
JF
10686# Always use our own libtool.
10687LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9c60689e 10688
9c60689e 10689
9c60689e 10690
9c60689e 10691
9c60689e 10692
ee134472 10693
ee134472 10694
ee134472 10695
ee134472 10696
9c60689e 10697
9c60689e 10698
9c60689e 10699
9c60689e 10700
9c60689e 10701
9c60689e 10702
9c60689e 10703
9c60689e 10704
9c60689e 10705
9c60689e 10706
9c60689e 10707
9c60689e 10708
9c60689e 10709
9c60689e 10710
9c60689e 10711
9c60689e 10712
9c60689e 10713
9c60689e 10714
9c60689e 10715
9c60689e 10716
9c60689e 10717
a243b558 10718test -z "$LN_S" && LN_S="ln -s"
9c60689e
DWT
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
9d54db95 10733if test -n "${ZSH_VERSION+set}"; then
a243b558
JF
10734 setopt NO_GLOB_SUBST
10735fi
9c60689e 10736
a243b558
JF
10737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10738$as_echo_n "checking for objdir... " >&6; }
10739if ${lt_cv_objdir+:} false; then :
ee134472
JF
10740 $as_echo_n "(cached) " >&6
10741else
a243b558
JF
10742 rm -f .libs 2>/dev/null
10743mkdir .libs 2>/dev/null
10744if test -d .libs; then
10745 lt_cv_objdir=.libs
10746else
10747 # MS-DOS does not allow filenames that begin with a dot.
10748 lt_cv_objdir=_libs
ee134472 10749fi
a243b558
JF
10750rmdir .libs 2>/dev/null
10751fi
10752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10753$as_echo "$lt_cv_objdir" >&6; }
10754objdir=$lt_cv_objdir
9c60689e
DWT
10755
10756
10757
10758
10759
a243b558
JF
10760cat >>confdefs.h <<_ACEOF
10761#define LT_OBJDIR "$lt_cv_objdir/"
10762_ACEOF
9c60689e
DWT
10763
10764
10765
10766
a243b558
JF
10767case $host_os in
10768aix3*)
10769 # AIX sometimes has problems with the GCC collect2 program. For some
10770 # reason, if we set the COLLECT_NAMES environment variable, the problems
10771 # vanish in a puff of smoke.
9d54db95 10772 if test set != "${COLLECT_NAMES+set}"; then
a243b558
JF
10773 COLLECT_NAMES=
10774 export COLLECT_NAMES
10775 fi
10776 ;;
10777esac
9c60689e 10778
a243b558
JF
10779# Global variables:
10780ofile=libtool
10781can_build_shared=yes
9c60689e 10782
9d54db95 10783# All known linkers require a '.a' archive for static linking (except MSVC,
a243b558
JF
10784# which needs '.lib').
10785libext=a
9c60689e 10786
9d54db95 10787with_gnu_ld=$lt_cv_prog_gnu_ld
9c60689e 10788
9d54db95
JF
10789old_CC=$CC
10790old_CFLAGS=$CFLAGS
9c60689e 10791
a243b558
JF
10792# Set sane defaults for various variables
10793test -z "$CC" && CC=cc
10794test -z "$LTCC" && LTCC=$CC
10795test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10796test -z "$LD" && LD=ld
10797test -z "$ac_objext" && ac_objext=o
9c60689e 10798
9d54db95
JF
10799func_cc_basename $compiler
10800cc_basename=$func_cc_basename_result
9c60689e
DWT
10801
10802
a243b558
JF
10803# Only perform the check for file, if the check method requires it
10804test -z "$MAGIC_CMD" && MAGIC_CMD=file
10805case $deplibs_check_method in
10806file_magic*)
10807 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10809$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10810if ${lt_cv_path_MAGIC_CMD+:} false; then :
10811 $as_echo_n "(cached) " >&6
10812else
10813 case $MAGIC_CMD in
10814[\\/*] | ?:[\\/]*)
9d54db95 10815 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
a243b558
JF
10816 ;;
10817*)
9d54db95
JF
10818 lt_save_MAGIC_CMD=$MAGIC_CMD
10819 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
a243b558
JF
10820 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10821 for ac_dir in $ac_dummy; do
9d54db95 10822 IFS=$lt_save_ifs
a243b558 10823 test -z "$ac_dir" && ac_dir=.
9d54db95
JF
10824 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10825 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
a243b558
JF
10826 if test -n "$file_magic_test_file"; then
10827 case $deplibs_check_method in
10828 "file_magic "*)
10829 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9d54db95 10830 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
a243b558
JF
10831 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10832 $EGREP "$file_magic_regex" > /dev/null; then
10833 :
10834 else
10835 cat <<_LT_EOF 1>&2
9c60689e 10836
a243b558
JF
10837*** Warning: the command libtool uses to detect shared libraries,
10838*** $file_magic_cmd, produces output that libtool cannot recognize.
10839*** The result is that libtool may fail to recognize shared libraries
10840*** as such. This will affect the creation of libtool libraries that
10841*** depend on shared libraries, but programs linked with such libtool
10842*** libraries will work regardless of this problem. Nevertheless, you
10843*** may want to report the problem to your system manager and/or to
10844*** bug-libtool@gnu.org
9c60689e 10845
a243b558
JF
10846_LT_EOF
10847 fi ;;
10848 esac
10849 fi
10850 break
10851 fi
10852 done
9d54db95
JF
10853 IFS=$lt_save_ifs
10854 MAGIC_CMD=$lt_save_MAGIC_CMD
a243b558
JF
10855 ;;
10856esac
10857fi
9c60689e 10858
9d54db95 10859MAGIC_CMD=$lt_cv_path_MAGIC_CMD
a243b558
JF
10860if test -n "$MAGIC_CMD"; then
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10862$as_echo "$MAGIC_CMD" >&6; }
10863else
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10865$as_echo "no" >&6; }
10866fi
9c60689e
DWT
10867
10868
10869
10870
10871
a243b558
JF
10872if test -z "$lt_cv_path_MAGIC_CMD"; then
10873 if test -n "$ac_tool_prefix"; then
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10875$as_echo_n "checking for file... " >&6; }
10876if ${lt_cv_path_MAGIC_CMD+:} false; then :
10877 $as_echo_n "(cached) " >&6
10878else
10879 case $MAGIC_CMD in
10880[\\/*] | ?:[\\/]*)
9d54db95 10881 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
a243b558
JF
10882 ;;
10883*)
9d54db95
JF
10884 lt_save_MAGIC_CMD=$MAGIC_CMD
10885 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
a243b558
JF
10886 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10887 for ac_dir in $ac_dummy; do
9d54db95 10888 IFS=$lt_save_ifs
a243b558 10889 test -z "$ac_dir" && ac_dir=.
9d54db95
JF
10890 if test -f "$ac_dir/file"; then
10891 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
a243b558
JF
10892 if test -n "$file_magic_test_file"; then
10893 case $deplibs_check_method in
10894 "file_magic "*)
10895 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9d54db95 10896 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
a243b558
JF
10897 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10898 $EGREP "$file_magic_regex" > /dev/null; then
10899 :
10900 else
10901 cat <<_LT_EOF 1>&2
9c60689e 10902
a243b558
JF
10903*** Warning: the command libtool uses to detect shared libraries,
10904*** $file_magic_cmd, produces output that libtool cannot recognize.
10905*** The result is that libtool may fail to recognize shared libraries
10906*** as such. This will affect the creation of libtool libraries that
10907*** depend on shared libraries, but programs linked with such libtool
10908*** libraries will work regardless of this problem. Nevertheless, you
10909*** may want to report the problem to your system manager and/or to
10910*** bug-libtool@gnu.org
9c60689e 10911
a243b558
JF
10912_LT_EOF
10913 fi ;;
10914 esac
10915 fi
10916 break
10917 fi
10918 done
9d54db95
JF
10919 IFS=$lt_save_ifs
10920 MAGIC_CMD=$lt_save_MAGIC_CMD
a243b558
JF
10921 ;;
10922esac
10923fi
9c60689e 10924
9d54db95 10925MAGIC_CMD=$lt_cv_path_MAGIC_CMD
a243b558
JF
10926if test -n "$MAGIC_CMD"; then
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10928$as_echo "$MAGIC_CMD" >&6; }
10929else
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10931$as_echo "no" >&6; }
10932fi
9c60689e
DWT
10933
10934
a243b558
JF
10935 else
10936 MAGIC_CMD=:
10937 fi
10938fi
9c60689e 10939
a243b558
JF
10940 fi
10941 ;;
10942esac
9c60689e 10943
a243b558 10944# Use C for the default configuration in the libtool script
9c60689e 10945
9d54db95 10946lt_save_CC=$CC
a243b558
JF
10947ac_ext=c
10948ac_cpp='$CPP $CPPFLAGS'
10949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10951ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e
DWT
10952
10953
a243b558
JF
10954# Source file extension for C test sources.
10955ac_ext=c
9c60689e 10956
a243b558
JF
10957# Object file extension for compiled C test sources.
10958objext=o
10959objext=$objext
9c60689e 10960
a243b558
JF
10961# Code to be used in simple compile tests
10962lt_simple_compile_test_code="int some_variable = 0;"
9c60689e 10963
a243b558
JF
10964# Code to be used in simple link tests
10965lt_simple_link_test_code='int main(){return(0);}'
9c60689e
DWT
10966
10967
10968
10969
10970
10971
10972
a243b558
JF
10973# If no C compiler was specified, use CC.
10974LTCC=${LTCC-"$CC"}
9c60689e 10975
a243b558
JF
10976# If no C compiler flags were specified, use CFLAGS.
10977LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9c60689e 10978
a243b558
JF
10979# Allow CC to be a program name with arguments.
10980compiler=$CC
9c60689e 10981
a243b558
JF
10982# Save the default compiler, since it gets overwritten when the other
10983# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10984compiler_DEFAULT=$CC
9c60689e 10985
a243b558
JF
10986# save warnings/boilerplate of simple test code
10987ac_outfile=conftest.$ac_objext
10988echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10989eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10990_lt_compiler_boilerplate=`cat conftest.err`
00a96142 10991$RM -r conftest*
9c60689e 10992
a243b558
JF
10993ac_outfile=conftest.$ac_objext
10994echo "$lt_simple_link_test_code" >conftest.$ac_ext
10995eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10996_lt_linker_boilerplate=`cat conftest.err`
10997$RM -r conftest*
9c60689e
DWT
10998
10999
a243b558
JF
11000## CAVEAT EMPTOR:
11001## There is no encapsulation within the following macros, do not change
11002## the running order or otherwise move them around unless you know exactly
11003## what you are doing...
11004if test -n "$compiler"; then
9c60689e 11005
a243b558 11006lt_prog_compiler_no_builtin_flag=
9c60689e 11007
9d54db95 11008if test yes = "$GCC"; then
a243b558
JF
11009 case $cc_basename in
11010 nvcc*)
11011 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11012 *)
11013 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11014 esac
9c60689e 11015
a243b558
JF
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11017$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11018if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11019 $as_echo_n "(cached) " >&6
11020else
11021 lt_cv_prog_compiler_rtti_exceptions=no
11022 ac_outfile=conftest.$ac_objext
11023 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9d54db95 11024 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
a243b558
JF
11025 # Insert the option either (1) after the last *FLAGS variable, or
11026 # (2) before a word containing "conftest.", or (3) at the end.
11027 # Note that $ac_compile itself does not contain backslashes and begins
11028 # with a dollar sign (not a hyphen), so the echo should work correctly.
11029 # The option is referenced via a variable to avoid confusing sed.
11030 lt_compile=`echo "$ac_compile" | $SED \
11031 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11032 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11033 -e 's:$: $lt_compiler_flag:'`
11034 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11035 (eval "$lt_compile" 2>conftest.err)
11036 ac_status=$?
11037 cat conftest.err >&5
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 if (exit $ac_status) && test -s "$ac_outfile"; then
11040 # The compiler can only warn and ignore the option if not recognized
11041 # So say no if there are warnings other than the usual output.
11042 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11043 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11044 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11045 lt_cv_prog_compiler_rtti_exceptions=yes
11046 fi
11047 fi
00a96142 11048 $RM -r conftest*
9c60689e 11049
a243b558
JF
11050fi
11051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11052$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9c60689e 11053
9d54db95 11054if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
a243b558
JF
11055 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11056else
11057 :
11058fi
9c60689e 11059
a243b558 11060fi
9c60689e
DWT
11061
11062
11063
11064
11065
11066
a243b558
JF
11067 lt_prog_compiler_wl=
11068lt_prog_compiler_pic=
11069lt_prog_compiler_static=
9c60689e
DWT
11070
11071
9d54db95 11072 if test yes = "$GCC"; then
a243b558
JF
11073 lt_prog_compiler_wl='-Wl,'
11074 lt_prog_compiler_static='-static'
9c60689e 11075
a243b558
JF
11076 case $host_os in
11077 aix*)
11078 # All AIX code is PIC.
9d54db95 11079 if test ia64 = "$host_cpu"; then
a243b558
JF
11080 # AIX 5 now supports IA64 processor
11081 lt_prog_compiler_static='-Bstatic'
11082 fi
9d54db95 11083 lt_prog_compiler_pic='-fPIC'
a243b558 11084 ;;
9c60689e 11085
a243b558
JF
11086 amigaos*)
11087 case $host_cpu in
11088 powerpc)
11089 # see comment about AmigaOS4 .so support
11090 lt_prog_compiler_pic='-fPIC'
11091 ;;
11092 m68k)
11093 # FIXME: we need at least 68020 code to build shared libraries, but
9d54db95
JF
11094 # adding the '-m68020' flag to GCC prevents building anything better,
11095 # like '-m68040'.
a243b558
JF
11096 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11097 ;;
11098 esac
11099 ;;
9c60689e 11100
a243b558
JF
11101 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11102 # PIC is the default for these OSes.
11103 ;;
9c60689e 11104
a243b558
JF
11105 mingw* | cygwin* | pw32* | os2* | cegcc*)
11106 # This hack is so that the source file can tell whether it is being
11107 # built for inclusion in a dll (and should export symbols for example).
11108 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11109 # (--disable-auto-import) libraries
11110 lt_prog_compiler_pic='-DDLL_EXPORT'
9d54db95
JF
11111 case $host_os in
11112 os2*)
11113 lt_prog_compiler_static='$wl-static'
11114 ;;
11115 esac
a243b558 11116 ;;
9c60689e 11117
a243b558
JF
11118 darwin* | rhapsody*)
11119 # PIC is the default on this platform
11120 # Common symbols not allowed in MH_DYLIB files
11121 lt_prog_compiler_pic='-fno-common'
11122 ;;
9c60689e 11123
a243b558
JF
11124 haiku*)
11125 # PIC is the default for Haiku.
11126 # The "-static" flag exists, but is broken.
11127 lt_prog_compiler_static=
11128 ;;
9c60689e 11129
a243b558
JF
11130 hpux*)
11131 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11132 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11133 # sets the default TLS model and affects inlining.
11134 case $host_cpu in
11135 hppa*64*)
11136 # +Z the default
11137 ;;
11138 *)
11139 lt_prog_compiler_pic='-fPIC'
11140 ;;
11141 esac
11142 ;;
9c60689e 11143
a243b558
JF
11144 interix[3-9]*)
11145 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11146 # Instead, we relocate shared libraries at runtime.
11147 ;;
9c60689e 11148
a243b558
JF
11149 msdosdjgpp*)
11150 # Just because we use GCC doesn't mean we suddenly get shared libraries
11151 # on systems that don't support them.
11152 lt_prog_compiler_can_build_shared=no
11153 enable_shared=no
11154 ;;
9c60689e 11155
a243b558
JF
11156 *nto* | *qnx*)
11157 # QNX uses GNU C++, but need to define -shared option too, otherwise
11158 # it will coredump.
11159 lt_prog_compiler_pic='-fPIC -shared'
11160 ;;
9c60689e 11161
a243b558
JF
11162 sysv4*MP*)
11163 if test -d /usr/nec; then
11164 lt_prog_compiler_pic=-Kconform_pic
11165 fi
11166 ;;
9c60689e 11167
a243b558
JF
11168 *)
11169 lt_prog_compiler_pic='-fPIC'
11170 ;;
11171 esac
9c60689e 11172
a243b558
JF
11173 case $cc_basename in
11174 nvcc*) # Cuda Compiler Driver 2.2
11175 lt_prog_compiler_wl='-Xlinker '
11176 if test -n "$lt_prog_compiler_pic"; then
11177 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11178 fi
11179 ;;
11180 esac
11181 else
11182 # PORTME Check for flag to pass linker flags through the system compiler.
11183 case $host_os in
11184 aix*)
11185 lt_prog_compiler_wl='-Wl,'
9d54db95 11186 if test ia64 = "$host_cpu"; then
a243b558
JF
11187 # AIX 5 now supports IA64 processor
11188 lt_prog_compiler_static='-Bstatic'
11189 else
11190 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11191 fi
11192 ;;
9c60689e 11193
9d54db95
JF
11194 darwin* | rhapsody*)
11195 # PIC is the default on this platform
11196 # Common symbols not allowed in MH_DYLIB files
11197 lt_prog_compiler_pic='-fno-common'
11198 case $cc_basename in
11199 nagfor*)
11200 # NAG Fortran compiler
11201 lt_prog_compiler_wl='-Wl,-Wl,,'
11202 lt_prog_compiler_pic='-PIC'
11203 lt_prog_compiler_static='-Bstatic'
11204 ;;
11205 esac
11206 ;;
11207
a243b558
JF
11208 mingw* | cygwin* | pw32* | os2* | cegcc*)
11209 # This hack is so that the source file can tell whether it is being
11210 # built for inclusion in a dll (and should export symbols for example).
11211 lt_prog_compiler_pic='-DDLL_EXPORT'
9d54db95
JF
11212 case $host_os in
11213 os2*)
11214 lt_prog_compiler_static='$wl-static'
11215 ;;
11216 esac
a243b558 11217 ;;
9c60689e 11218
a243b558
JF
11219 hpux9* | hpux10* | hpux11*)
11220 lt_prog_compiler_wl='-Wl,'
11221 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11222 # not for PA HP-UX.
11223 case $host_cpu in
11224 hppa*64*|ia64*)
11225 # +Z the default
11226 ;;
11227 *)
11228 lt_prog_compiler_pic='+Z'
11229 ;;
11230 esac
11231 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9d54db95 11232 lt_prog_compiler_static='$wl-a ${wl}archive'
a243b558 11233 ;;
9c60689e 11234
a243b558
JF
11235 irix5* | irix6* | nonstopux*)
11236 lt_prog_compiler_wl='-Wl,'
11237 # PIC (with -KPIC) is the default.
11238 lt_prog_compiler_static='-non_shared'
11239 ;;
9c60689e 11240
9d54db95 11241 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
a243b558 11242 case $cc_basename in
9d54db95 11243 # old Intel for x86_64, which still supported -KPIC.
a243b558
JF
11244 ecc*)
11245 lt_prog_compiler_wl='-Wl,'
11246 lt_prog_compiler_pic='-KPIC'
11247 lt_prog_compiler_static='-static'
11248 ;;
11249 # icc used to be incompatible with GCC.
11250 # ICC 10 doesn't accept -KPIC any more.
11251 icc* | ifort*)
11252 lt_prog_compiler_wl='-Wl,'
11253 lt_prog_compiler_pic='-fPIC'
11254 lt_prog_compiler_static='-static'
11255 ;;
11256 # Lahey Fortran 8.1.
11257 lf95*)
11258 lt_prog_compiler_wl='-Wl,'
11259 lt_prog_compiler_pic='--shared'
11260 lt_prog_compiler_static='--static'
11261 ;;
11262 nagfor*)
11263 # NAG Fortran compiler
11264 lt_prog_compiler_wl='-Wl,-Wl,,'
11265 lt_prog_compiler_pic='-PIC'
11266 lt_prog_compiler_static='-Bstatic'
11267 ;;
9d54db95
JF
11268 tcc*)
11269 # Fabrice Bellard et al's Tiny C Compiler
11270 lt_prog_compiler_wl='-Wl,'
11271 lt_prog_compiler_pic='-fPIC'
11272 lt_prog_compiler_static='-static'
11273 ;;
a243b558
JF
11274 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11275 # Portland Group compilers (*not* the Pentium gcc compiler,
11276 # which looks to be a dead project)
11277 lt_prog_compiler_wl='-Wl,'
11278 lt_prog_compiler_pic='-fpic'
11279 lt_prog_compiler_static='-Bstatic'
11280 ;;
11281 ccc*)
11282 lt_prog_compiler_wl='-Wl,'
11283 # All Alpha code is PIC.
11284 lt_prog_compiler_static='-non_shared'
11285 ;;
11286 xl* | bgxl* | bgf* | mpixl*)
11287 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11288 lt_prog_compiler_wl='-Wl,'
11289 lt_prog_compiler_pic='-qpic'
11290 lt_prog_compiler_static='-qstaticlink'
11291 ;;
11292 *)
11293 case `$CC -V 2>&1 | sed 5q` in
11294 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11295 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11296 lt_prog_compiler_pic='-KPIC'
11297 lt_prog_compiler_static='-Bstatic'
11298 lt_prog_compiler_wl=''
11299 ;;
11300 *Sun\ F* | *Sun*Fortran*)
11301 lt_prog_compiler_pic='-KPIC'
11302 lt_prog_compiler_static='-Bstatic'
11303 lt_prog_compiler_wl='-Qoption ld '
11304 ;;
11305 *Sun\ C*)
11306 # Sun C 5.9
11307 lt_prog_compiler_pic='-KPIC'
11308 lt_prog_compiler_static='-Bstatic'
11309 lt_prog_compiler_wl='-Wl,'
11310 ;;
11311 *Intel*\ [CF]*Compiler*)
11312 lt_prog_compiler_wl='-Wl,'
11313 lt_prog_compiler_pic='-fPIC'
11314 lt_prog_compiler_static='-static'
11315 ;;
11316 *Portland\ Group*)
11317 lt_prog_compiler_wl='-Wl,'
11318 lt_prog_compiler_pic='-fpic'
11319 lt_prog_compiler_static='-Bstatic'
11320 ;;
11321 esac
11322 ;;
11323 esac
11324 ;;
9c60689e 11325
a243b558
JF
11326 newsos6)
11327 lt_prog_compiler_pic='-KPIC'
11328 lt_prog_compiler_static='-Bstatic'
11329 ;;
9c60689e 11330
a243b558
JF
11331 *nto* | *qnx*)
11332 # QNX uses GNU C++, but need to define -shared option too, otherwise
11333 # it will coredump.
11334 lt_prog_compiler_pic='-fPIC -shared'
11335 ;;
9c60689e 11336
a243b558
JF
11337 osf3* | osf4* | osf5*)
11338 lt_prog_compiler_wl='-Wl,'
11339 # All OSF/1 code is PIC.
11340 lt_prog_compiler_static='-non_shared'
11341 ;;
9c60689e 11342
a243b558
JF
11343 rdos*)
11344 lt_prog_compiler_static='-non_shared'
11345 ;;
9c60689e 11346
a243b558
JF
11347 solaris*)
11348 lt_prog_compiler_pic='-KPIC'
11349 lt_prog_compiler_static='-Bstatic'
11350 case $cc_basename in
11351 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11352 lt_prog_compiler_wl='-Qoption ld ';;
11353 *)
11354 lt_prog_compiler_wl='-Wl,';;
11355 esac
11356 ;;
9c60689e 11357
a243b558
JF
11358 sunos4*)
11359 lt_prog_compiler_wl='-Qoption ld '
11360 lt_prog_compiler_pic='-PIC'
11361 lt_prog_compiler_static='-Bstatic'
11362 ;;
9c60689e 11363
a243b558
JF
11364 sysv4 | sysv4.2uw2* | sysv4.3*)
11365 lt_prog_compiler_wl='-Wl,'
11366 lt_prog_compiler_pic='-KPIC'
11367 lt_prog_compiler_static='-Bstatic'
11368 ;;
9c60689e 11369
a243b558 11370 sysv4*MP*)
9d54db95 11371 if test -d /usr/nec; then
a243b558
JF
11372 lt_prog_compiler_pic='-Kconform_pic'
11373 lt_prog_compiler_static='-Bstatic'
11374 fi
11375 ;;
9c60689e 11376
a243b558
JF
11377 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11378 lt_prog_compiler_wl='-Wl,'
11379 lt_prog_compiler_pic='-KPIC'
11380 lt_prog_compiler_static='-Bstatic'
11381 ;;
9c60689e 11382
a243b558
JF
11383 unicos*)
11384 lt_prog_compiler_wl='-Wl,'
11385 lt_prog_compiler_can_build_shared=no
11386 ;;
9c60689e 11387
a243b558
JF
11388 uts4*)
11389 lt_prog_compiler_pic='-pic'
11390 lt_prog_compiler_static='-Bstatic'
11391 ;;
9c60689e 11392
a243b558
JF
11393 *)
11394 lt_prog_compiler_can_build_shared=no
11395 ;;
11396 esac
11397 fi
9c60689e 11398
a243b558 11399case $host_os in
9d54db95 11400 # For platforms that do not support PIC, -DPIC is meaningless:
a243b558
JF
11401 *djgpp*)
11402 lt_prog_compiler_pic=
11403 ;;
11404 *)
11405 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11406 ;;
11407esac
9c60689e 11408
a243b558
JF
11409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11410$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11411if ${lt_cv_prog_compiler_pic+:} false; then :
11412 $as_echo_n "(cached) " >&6
11413else
11414 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11415fi
11416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11417$as_echo "$lt_cv_prog_compiler_pic" >&6; }
11418lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9c60689e 11419
a243b558
JF
11420#
11421# Check to make sure the PIC flag actually works.
11422#
11423if test -n "$lt_prog_compiler_pic"; then
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11425$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11426if ${lt_cv_prog_compiler_pic_works+:} false; then :
11427 $as_echo_n "(cached) " >&6
11428else
11429 lt_cv_prog_compiler_pic_works=no
11430 ac_outfile=conftest.$ac_objext
11431 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9d54db95 11432 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
a243b558
JF
11433 # Insert the option either (1) after the last *FLAGS variable, or
11434 # (2) before a word containing "conftest.", or (3) at the end.
11435 # Note that $ac_compile itself does not contain backslashes and begins
11436 # with a dollar sign (not a hyphen), so the echo should work correctly.
11437 # The option is referenced via a variable to avoid confusing sed.
11438 lt_compile=`echo "$ac_compile" | $SED \
11439 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11440 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11441 -e 's:$: $lt_compiler_flag:'`
11442 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11443 (eval "$lt_compile" 2>conftest.err)
11444 ac_status=$?
11445 cat conftest.err >&5
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 if (exit $ac_status) && test -s "$ac_outfile"; then
11448 # The compiler can only warn and ignore the option if not recognized
11449 # So say no if there are warnings other than the usual output.
11450 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11451 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11452 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11453 lt_cv_prog_compiler_pic_works=yes
11454 fi
11455 fi
00a96142 11456 $RM -r conftest*
9c60689e 11457
a243b558
JF
11458fi
11459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11460$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9c60689e 11461
9d54db95 11462if test yes = "$lt_cv_prog_compiler_pic_works"; then
a243b558
JF
11463 case $lt_prog_compiler_pic in
11464 "" | " "*) ;;
11465 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11466 esac
11467else
11468 lt_prog_compiler_pic=
11469 lt_prog_compiler_can_build_shared=no
11470fi
9c60689e 11471
a243b558 11472fi
9c60689e
DWT
11473
11474
11475
11476
11477
11478
9c60689e
DWT
11479
11480
11481
11482
11483
a243b558
JF
11484#
11485# Check to make sure the static flag actually works.
11486#
11487wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11489$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11490if ${lt_cv_prog_compiler_static_works+:} false; then :
11491 $as_echo_n "(cached) " >&6
11492else
11493 lt_cv_prog_compiler_static_works=no
9d54db95 11494 save_LDFLAGS=$LDFLAGS
a243b558
JF
11495 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11496 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11497 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11498 # The linker can only warn and ignore the option if not recognized
11499 # So say no if there are warnings
11500 if test -s conftest.err; then
11501 # Append any errors to the config.log.
11502 cat conftest.err 1>&5
11503 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11504 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11505 if diff conftest.exp conftest.er2 >/dev/null; then
11506 lt_cv_prog_compiler_static_works=yes
11507 fi
11508 else
11509 lt_cv_prog_compiler_static_works=yes
11510 fi
11511 fi
11512 $RM -r conftest*
9d54db95 11513 LDFLAGS=$save_LDFLAGS
9c60689e 11514
a243b558
JF
11515fi
11516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11517$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9c60689e 11518
9d54db95 11519if test yes = "$lt_cv_prog_compiler_static_works"; then
a243b558 11520 :
9c60689e 11521else
a243b558 11522 lt_prog_compiler_static=
9c60689e 11523fi
9c60689e 11524
9c60689e 11525
9c60689e 11526
9c60689e 11527
9c60689e 11528
9c60689e 11529
9c60689e 11530
a243b558
JF
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11532$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11533if ${lt_cv_prog_compiler_c_o+:} false; then :
11534 $as_echo_n "(cached) " >&6
11535else
11536 lt_cv_prog_compiler_c_o=no
11537 $RM -r conftest 2>/dev/null
11538 mkdir conftest
11539 cd conftest
11540 mkdir out
11541 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9c60689e 11542
a243b558
JF
11543 lt_compiler_flag="-o out/conftest2.$ac_objext"
11544 # Insert the option either (1) after the last *FLAGS variable, or
11545 # (2) before a word containing "conftest.", or (3) at the end.
11546 # Note that $ac_compile itself does not contain backslashes and begins
11547 # with a dollar sign (not a hyphen), so the echo should work correctly.
11548 lt_compile=`echo "$ac_compile" | $SED \
11549 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11550 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11551 -e 's:$: $lt_compiler_flag:'`
11552 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11553 (eval "$lt_compile" 2>out/conftest.err)
11554 ac_status=$?
11555 cat out/conftest.err >&5
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11558 then
11559 # The compiler can only warn and ignore the option if not recognized
11560 # So say no if there are warnings
11561 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11562 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11563 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11564 lt_cv_prog_compiler_c_o=yes
11565 fi
11566 fi
11567 chmod u+w . 2>&5
00a96142 11568 $RM -r conftest*
a243b558
JF
11569 # SGI C++ compiler will create directory out/ii_files/ for
11570 # template instantiation
11571 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11572 $RM out/* && rmdir out
11573 cd ..
11574 $RM -r conftest
00a96142 11575 $RM -r conftest*
9c60689e 11576
a243b558
JF
11577fi
11578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11579$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9c60689e 11580
ee134472 11581
ee134472 11582
ee134472 11583
ee134472 11584
9c60689e 11585
a243b558
JF
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11587$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11588if ${lt_cv_prog_compiler_c_o+:} false; then :
11589 $as_echo_n "(cached) " >&6
11590else
11591 lt_cv_prog_compiler_c_o=no
11592 $RM -r conftest 2>/dev/null
11593 mkdir conftest
11594 cd conftest
11595 mkdir out
11596 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9c60689e 11597
a243b558
JF
11598 lt_compiler_flag="-o out/conftest2.$ac_objext"
11599 # Insert the option either (1) after the last *FLAGS variable, or
11600 # (2) before a word containing "conftest.", or (3) at the end.
11601 # Note that $ac_compile itself does not contain backslashes and begins
11602 # with a dollar sign (not a hyphen), so the echo should work correctly.
11603 lt_compile=`echo "$ac_compile" | $SED \
11604 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11605 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11606 -e 's:$: $lt_compiler_flag:'`
11607 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11608 (eval "$lt_compile" 2>out/conftest.err)
11609 ac_status=$?
11610 cat out/conftest.err >&5
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11613 then
11614 # The compiler can only warn and ignore the option if not recognized
11615 # So say no if there are warnings
11616 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11617 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11618 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11619 lt_cv_prog_compiler_c_o=yes
11620 fi
11621 fi
11622 chmod u+w . 2>&5
00a96142 11623 $RM -r conftest*
a243b558
JF
11624 # SGI C++ compiler will create directory out/ii_files/ for
11625 # template instantiation
11626 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11627 $RM out/* && rmdir out
11628 cd ..
11629 $RM -r conftest
00a96142 11630 $RM -r conftest*
9c60689e 11631
a243b558
JF
11632fi
11633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11634$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9c60689e 11635
9c60689e 11636
a243b558
JF
11637
11638
9d54db95
JF
11639hard_links=nottested
11640if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
a243b558
JF
11641 # do not overwrite the value of need_locks provided by the user
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11643$as_echo_n "checking if we can lock with hard links... " >&6; }
11644 hard_links=yes
00a96142 11645 $RM -r conftest*
a243b558
JF
11646 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11647 touch conftest.a
11648 ln conftest.a conftest.b 2>&5 || hard_links=no
11649 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11651$as_echo "$hard_links" >&6; }
9d54db95
JF
11652 if test no = "$hard_links"; then
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11654$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
a243b558 11655 need_locks=warn
9c60689e 11656 fi
a243b558
JF
11657else
11658 need_locks=no
11659fi
9c60689e 11660
ee134472 11661
9c60689e 11662
9c60689e 11663
9c60689e 11664
a243b558
JF
11665
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11667$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11668
11669 runpath_var=
11670 allow_undefined_flag=
11671 always_export_symbols=no
11672 archive_cmds=
11673 archive_expsym_cmds=
11674 compiler_needs_object=no
11675 enable_shared_with_static_runtimes=no
11676 export_dynamic_flag_spec=
11677 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11678 hardcode_automatic=no
11679 hardcode_direct=no
11680 hardcode_direct_absolute=no
11681 hardcode_libdir_flag_spec=
11682 hardcode_libdir_separator=
11683 hardcode_minus_L=no
11684 hardcode_shlibpath_var=unsupported
11685 inherit_rpath=no
11686 link_all_deplibs=unknown
11687 module_cmds=
11688 module_expsym_cmds=
11689 old_archive_from_new_cmds=
11690 old_archive_from_expsyms_cmds=
11691 thread_safe_flag_spec=
11692 whole_archive_flag_spec=
11693 # include_expsyms should be a list of space-separated symbols to be *always*
11694 # included in the symbol list
11695 include_expsyms=
11696 # exclude_expsyms can be an extended regexp of symbols to exclude
9d54db95
JF
11697 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11698 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11699 # as well as any symbol that contains 'd'.
a243b558
JF
11700 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11701 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11702 # platforms (ab)use it in PIC code, but their linkers get confused if
11703 # the symbol is explicitly referenced. Since portable code cannot
11704 # rely on this symbol name, it's probably fine to never include it in
11705 # preloaded symbol tables.
11706 # Exclude shared library initialization/finalization symbols.
11707 extract_expsyms_cmds=
11708
9c60689e 11709 case $host_os in
a243b558
JF
11710 cygwin* | mingw* | pw32* | cegcc*)
11711 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11712 # When not using gcc, we currently assume that we are using
11713 # Microsoft Visual C++.
9d54db95 11714 if test yes != "$GCC"; then
a243b558
JF
11715 with_gnu_ld=no
11716 fi
9c60689e 11717 ;;
a243b558
JF
11718 interix*)
11719 # we just hope/assume this is gcc and not c89 (= MSVC++)
11720 with_gnu_ld=yes
11721 ;;
9d54db95 11722 openbsd* | bitrig*)
a243b558 11723 with_gnu_ld=no
9c60689e
DWT
11724 ;;
11725 esac
9c60689e 11726
a243b558 11727 ld_shlibs=yes
ee134472 11728
a243b558
JF
11729 # On some targets, GNU ld is compatible enough with the native linker
11730 # that we're better off using the native interface for both.
11731 lt_use_gnu_ld_interface=no
9d54db95 11732 if test yes = "$with_gnu_ld"; then
a243b558
JF
11733 case $host_os in
11734 aix*)
11735 # The AIX port of GNU ld has always aspired to compatibility
11736 # with the native linker. However, as the warning in the GNU ld
11737 # block says, versions before 2.19.5* couldn't really create working
11738 # shared libraries, regardless of the interface used.
11739 case `$LD -v 2>&1` in
11740 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11741 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11742 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11743 *)
11744 lt_use_gnu_ld_interface=yes
11745 ;;
11746 esac
11747 ;;
11748 *)
11749 lt_use_gnu_ld_interface=yes
11750 ;;
11751 esac
11752 fi
9c60689e 11753
9d54db95 11754 if test yes = "$lt_use_gnu_ld_interface"; then
a243b558 11755 # If archive_cmds runs LD, not CC, wlarc should be empty
9d54db95 11756 wlarc='$wl'
9c60689e 11757
a243b558
JF
11758 # Set some defaults for GNU ld with shared library support. These
11759 # are reset later if shared libraries are not supported. Putting them
11760 # here allows them to be overridden if necessary.
11761 runpath_var=LD_RUN_PATH
9d54db95
JF
11762 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11763 export_dynamic_flag_spec='$wl--export-dynamic'
a243b558
JF
11764 # ancient GNU ld didn't support --whole-archive et. al.
11765 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9d54db95 11766 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
a243b558
JF
11767 else
11768 whole_archive_flag_spec=
11769 fi
11770 supports_anon_versioning=no
9d54db95 11771 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
a243b558
JF
11772 *GNU\ gold*) supports_anon_versioning=yes ;;
11773 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11774 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11775 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11776 *\ 2.11.*) ;; # other 2.11 versions
11777 *) supports_anon_versioning=yes ;;
11778 esac
ee134472 11779
a243b558
JF
11780 # See if GNU ld supports shared libraries.
11781 case $host_os in
11782 aix[3-9]*)
11783 # On AIX/PPC, the GNU linker is very broken
9d54db95 11784 if test ia64 != "$host_cpu"; then
a243b558
JF
11785 ld_shlibs=no
11786 cat <<_LT_EOF 1>&2
ee134472 11787
a243b558
JF
11788*** Warning: the GNU linker, at least up to release 2.19, is reported
11789*** to be unable to reliably create shared libraries on AIX.
11790*** Therefore, libtool is disabling shared libraries support. If you
11791*** really care for shared libraries, you may want to install binutils
11792*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11793*** You will then need to restart the configuration process.
9c60689e 11794
a243b558
JF
11795_LT_EOF
11796 fi
11797 ;;
9c60689e 11798
a243b558
JF
11799 amigaos*)
11800 case $host_cpu in
11801 powerpc)
11802 # see comment about AmigaOS4 .so support
9d54db95 11803 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
a243b558
JF
11804 archive_expsym_cmds=''
11805 ;;
11806 m68k)
11807 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)'
11808 hardcode_libdir_flag_spec='-L$libdir'
11809 hardcode_minus_L=yes
11810 ;;
11811 esac
11812 ;;
9c60689e 11813
a243b558
JF
11814 beos*)
11815 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11816 allow_undefined_flag=unsupported
11817 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11818 # support --undefined. This deserves some investigation. FIXME
9d54db95 11819 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
a243b558
JF
11820 else
11821 ld_shlibs=no
11822 fi
11823 ;;
9c60689e 11824
a243b558
JF
11825 cygwin* | mingw* | pw32* | cegcc*)
11826 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11827 # as there is no search path for DLLs.
11828 hardcode_libdir_flag_spec='-L$libdir'
9d54db95 11829 export_dynamic_flag_spec='$wl--export-all-symbols'
a243b558
JF
11830 allow_undefined_flag=unsupported
11831 always_export_symbols=no
11832 enable_shared_with_static_runtimes=yes
11833 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
11834 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9c60689e 11835
a243b558 11836 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9d54db95
JF
11837 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11838 # If the export-symbols file already is a .def file, use it as
11839 # is; otherwise, prepend EXPORTS...
11840 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11841 cp $export_symbols $output_objdir/$soname.def;
11842 else
11843 echo EXPORTS > $output_objdir/$soname.def;
11844 cat $export_symbols >> $output_objdir/$soname.def;
11845 fi~
11846 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
a243b558
JF
11847 else
11848 ld_shlibs=no
11849 fi
11850 ;;
9c60689e 11851
a243b558 11852 haiku*)
9d54db95 11853 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
a243b558
JF
11854 link_all_deplibs=yes
11855 ;;
9c60689e 11856
9d54db95
JF
11857 os2*)
11858 hardcode_libdir_flag_spec='-L$libdir'
11859 hardcode_minus_L=yes
11860 allow_undefined_flag=unsupported
11861 shrext_cmds=.dll
11862 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11863 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11864 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11865 $ECHO EXPORTS >> $output_objdir/$libname.def~
11866 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11867 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11868 emximp -o $lib $output_objdir/$libname.def'
11869 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11870 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11871 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11872 $ECHO EXPORTS >> $output_objdir/$libname.def~
11873 prefix_cmds="$SED"~
11874 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11875 prefix_cmds="$prefix_cmds -e 1d";
11876 fi~
11877 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11878 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11879 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11880 emximp -o $lib $output_objdir/$libname.def'
11881 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11882 enable_shared_with_static_runtimes=yes
11883 ;;
11884
a243b558
JF
11885 interix[3-9]*)
11886 hardcode_direct=no
11887 hardcode_shlibpath_var=no
9d54db95
JF
11888 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11889 export_dynamic_flag_spec='$wl-E'
a243b558
JF
11890 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11891 # Instead, shared libraries are loaded at an image base (0x10000000 by
11892 # default) and relocated if they conflict, which is a slow very memory
11893 # consuming and fragmenting process. To avoid this, we pick a random,
11894 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11895 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9d54db95
JF
11896 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11897 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'
a243b558 11898 ;;
9c60689e 11899
a243b558
JF
11900 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11901 tmp_diet=no
9d54db95 11902 if test linux-dietlibc = "$host_os"; then
a243b558
JF
11903 case $cc_basename in
11904 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11905 esac
11906 fi
11907 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9d54db95 11908 && test no = "$tmp_diet"
a243b558
JF
11909 then
11910 tmp_addflag=' $pic_flag'
11911 tmp_sharedflag='-shared'
11912 case $cc_basename,$host_cpu in
11913 pgcc*) # Portland Group C compiler
9d54db95 11914 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'
a243b558
JF
11915 tmp_addflag=' $pic_flag'
11916 ;;
11917 pgf77* | pgf90* | pgf95* | pgfortran*)
11918 # Portland Group f77 and f90 compilers
9d54db95 11919 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'
a243b558
JF
11920 tmp_addflag=' $pic_flag -Mnomain' ;;
11921 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11922 tmp_addflag=' -i_dynamic' ;;
11923 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11924 tmp_addflag=' -i_dynamic -nofor_main' ;;
11925 ifc* | ifort*) # Intel Fortran compiler
11926 tmp_addflag=' -nofor_main' ;;
11927 lf95*) # Lahey Fortran 8.1
11928 whole_archive_flag_spec=
11929 tmp_sharedflag='--shared' ;;
9d54db95
JF
11930 nagfor*) # NAGFOR 5.3
11931 tmp_sharedflag='-Wl,-shared' ;;
a243b558
JF
11932 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11933 tmp_sharedflag='-qmkshrobj'
11934 tmp_addflag= ;;
11935 nvcc*) # Cuda Compiler Driver 2.2
9d54db95 11936 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'
a243b558
JF
11937 compiler_needs_object=yes
11938 ;;
11939 esac
11940 case `$CC -V 2>&1 | sed 5q` in
11941 *Sun\ C*) # Sun C 5.9
9d54db95 11942 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'
a243b558
JF
11943 compiler_needs_object=yes
11944 tmp_sharedflag='-G' ;;
11945 *Sun\ F*) # Sun Fortran 8.3
11946 tmp_sharedflag='-G' ;;
11947 esac
9d54db95 11948 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9c60689e 11949
9d54db95 11950 if test yes = "$supports_anon_versioning"; then
a243b558 11951 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9d54db95
JF
11952 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11953 echo "local: *; };" >> $output_objdir/$libname.ver~
11954 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
a243b558 11955 fi
9c60689e 11956
a243b558 11957 case $cc_basename in
9d54db95
JF
11958 tcc*)
11959 export_dynamic_flag_spec='-rdynamic'
11960 ;;
a243b558
JF
11961 xlf* | bgf* | bgxlf* | mpixlf*)
11962 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11963 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9d54db95 11964 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a243b558 11965 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9d54db95 11966 if test yes = "$supports_anon_versioning"; then
a243b558 11967 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9d54db95
JF
11968 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11969 echo "local: *; };" >> $output_objdir/$libname.ver~
11970 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
a243b558
JF
11971 fi
11972 ;;
11973 esac
11974 else
11975 ld_shlibs=no
11976 fi
11977 ;;
9c60689e 11978
a243b558
JF
11979 netbsd*)
11980 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11981 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11982 wlarc=
11983 else
9d54db95
JF
11984 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11985 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
a243b558
JF
11986 fi
11987 ;;
9c60689e 11988
a243b558
JF
11989 solaris*)
11990 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11991 ld_shlibs=no
11992 cat <<_LT_EOF 1>&2
9c60689e 11993
a243b558
JF
11994*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11995*** create shared libraries on Solaris systems. Therefore, libtool
11996*** is disabling shared libraries support. We urge you to upgrade GNU
11997*** binutils to release 2.9.1 or newer. Another option is to modify
11998*** your PATH or compiler configuration so that the native linker is
11999*** used, and then restart.
9c60689e 12000
a243b558
JF
12001_LT_EOF
12002 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9d54db95
JF
12003 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12004 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
a243b558
JF
12005 else
12006 ld_shlibs=no
12007 fi
12008 ;;
9c60689e 12009
a243b558
JF
12010 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12011 case `$LD -v 2>&1` in
12012 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12013 ld_shlibs=no
12014 cat <<_LT_EOF 1>&2
9c60689e 12015
9d54db95 12016*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
a243b558
JF
12017*** reliably create shared libraries on SCO systems. Therefore, libtool
12018*** is disabling shared libraries support. We urge you to upgrade GNU
12019*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12020*** your PATH or compiler configuration so that the native linker is
12021*** used, and then restart.
9c60689e 12022
a243b558
JF
12023_LT_EOF
12024 ;;
12025 *)
12026 # For security reasons, it is highly recommended that you always
12027 # use absolute paths for naming shared libraries, and exclude the
12028 # DT_RUNPATH tag from executables and libraries. But doing so
12029 # requires that you compile everything twice, which is a pain.
12030 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9d54db95
JF
12031 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12032 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12033 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
a243b558
JF
12034 else
12035 ld_shlibs=no
12036 fi
12037 ;;
12038 esac
12039 ;;
9c60689e 12040
a243b558
JF
12041 sunos4*)
12042 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12043 wlarc=
12044 hardcode_direct=yes
12045 hardcode_shlibpath_var=no
12046 ;;
9c60689e 12047
a243b558
JF
12048 *)
12049 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9d54db95
JF
12050 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12051 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
a243b558
JF
12052 else
12053 ld_shlibs=no
12054 fi
12055 ;;
12056 esac
9c60689e 12057
9d54db95 12058 if test no = "$ld_shlibs"; then
a243b558
JF
12059 runpath_var=
12060 hardcode_libdir_flag_spec=
12061 export_dynamic_flag_spec=
12062 whole_archive_flag_spec=
12063 fi
12064 else
12065 # PORTME fill in a description of your system's linker (not GNU ld)
12066 case $host_os in
12067 aix3*)
12068 allow_undefined_flag=unsupported
12069 always_export_symbols=yes
12070 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'
12071 # Note: this linker hardcodes the directories in LIBPATH if there
12072 # are no directories specified by -L.
12073 hardcode_minus_L=yes
9d54db95 12074 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
a243b558
JF
12075 # Neither direct hardcoding nor static linking is supported with a
12076 # broken collect2.
12077 hardcode_direct=unsupported
12078 fi
12079 ;;
9c60689e 12080
a243b558 12081 aix[4-9]*)
9d54db95 12082 if test ia64 = "$host_cpu"; then
a243b558
JF
12083 # On IA64, the linker does run time linking by default, so we don't
12084 # have to do anything special.
12085 aix_use_runtimelinking=no
12086 exp_sym_flag='-Bexport'
9d54db95 12087 no_entry_flag=
a243b558
JF
12088 else
12089 # If we're using GNU nm, then we don't want the "-C" option.
9d54db95
JF
12090 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12091 # Without the "-l" option, or with the "-B" option, AIX nm treats
12092 # weak defined symbols like other global defined symbols, whereas
12093 # GNU nm marks them as "W".
12094 # While the 'weak' keyword is ignored in the Export File, we need
12095 # it in the Import File for the 'aix-soname' feature, so we have
12096 # to replace the "-B" option with "-P" for AIX nm.
a243b558 12097 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9d54db95 12098 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
a243b558 12099 else
9d54db95 12100 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
a243b558
JF
12101 fi
12102 aix_use_runtimelinking=no
9c60689e 12103
a243b558
JF
12104 # Test if we are trying to use run time linking or normal
12105 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9d54db95
JF
12106 # have runtime linking enabled, and use it for executables.
12107 # For shared libraries, we enable/disable runtime linking
12108 # depending on the kind of the shared library created -
12109 # when "with_aix_soname,aix_use_runtimelinking" is:
12110 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12111 # "aix,yes" lib.so shared, rtl:yes, for executables
12112 # lib.a static archive
12113 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12114 # lib.a(lib.so.V) shared, rtl:no, for executables
12115 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12116 # lib.a(lib.so.V) shared, rtl:no
12117 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12118 # lib.a static archive
a243b558
JF
12119 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12120 for ld_flag in $LDFLAGS; do
9d54db95 12121 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
a243b558
JF
12122 aix_use_runtimelinking=yes
12123 break
12124 fi
12125 done
9d54db95
JF
12126 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12127 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12128 # so we don't have lib.a shared libs to link our executables.
12129 # We have to force runtime linking in this case.
12130 aix_use_runtimelinking=yes
12131 LDFLAGS="$LDFLAGS -Wl,-brtl"
12132 fi
a243b558
JF
12133 ;;
12134 esac
9c60689e 12135
a243b558
JF
12136 exp_sym_flag='-bexport'
12137 no_entry_flag='-bnoentry'
12138 fi
9c60689e 12139
a243b558
JF
12140 # When large executables or shared objects are built, AIX ld can
12141 # have problems creating the table of contents. If linking a library
12142 # or program results in "error TOC overflow" add -mminimal-toc to
12143 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12144 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9c60689e 12145
a243b558
JF
12146 archive_cmds=''
12147 hardcode_direct=yes
12148 hardcode_direct_absolute=yes
12149 hardcode_libdir_separator=':'
12150 link_all_deplibs=yes
9d54db95
JF
12151 file_list_spec='$wl-f,'
12152 case $with_aix_soname,$aix_use_runtimelinking in
12153 aix,*) ;; # traditional, no import file
12154 svr4,* | *,yes) # use import file
12155 # The Import File defines what to hardcode.
12156 hardcode_direct=no
12157 hardcode_direct_absolute=no
12158 ;;
12159 esac
9c60689e 12160
9d54db95 12161 if test yes = "$GCC"; then
a243b558
JF
12162 case $host_os in aix4.[012]|aix4.[012].*)
12163 # We only want to do this on AIX 4.2 and lower, the check
12164 # below for broken collect2 doesn't work under 4.3+
9d54db95 12165 collect2name=`$CC -print-prog-name=collect2`
a243b558
JF
12166 if test -f "$collect2name" &&
12167 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12168 then
12169 # We have reworked collect2
12170 :
12171 else
12172 # We have old collect2
12173 hardcode_direct=unsupported
12174 # It fails to find uninstalled libraries when the uninstalled
12175 # path is not listed in the libpath. Setting hardcode_minus_L
12176 # to unsupported forces relinking
12177 hardcode_minus_L=yes
12178 hardcode_libdir_flag_spec='-L$libdir'
12179 hardcode_libdir_separator=
12180 fi
12181 ;;
12182 esac
12183 shared_flag='-shared'
9d54db95
JF
12184 if test yes = "$aix_use_runtimelinking"; then
12185 shared_flag="$shared_flag "'$wl-G'
a243b558 12186 fi
9d54db95
JF
12187 # Need to ensure runtime linking is disabled for the traditional
12188 # shared library, or the linker may eventually find shared libraries
12189 # /with/ Import File - we do not want to mix them.
12190 shared_flag_aix='-shared'
12191 shared_flag_svr4='-shared $wl-G'
a243b558
JF
12192 else
12193 # not using gcc
9d54db95 12194 if test ia64 = "$host_cpu"; then
a243b558
JF
12195 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12196 # chokes on -Wl,-G. The following line is correct:
12197 shared_flag='-G'
12198 else
9d54db95
JF
12199 if test yes = "$aix_use_runtimelinking"; then
12200 shared_flag='$wl-G'
a243b558 12201 else
9d54db95 12202 shared_flag='$wl-bM:SRE'
a243b558 12203 fi
9d54db95
JF
12204 shared_flag_aix='$wl-bM:SRE'
12205 shared_flag_svr4='$wl-G'
a243b558
JF
12206 fi
12207 fi
9c60689e 12208
9d54db95 12209 export_dynamic_flag_spec='$wl-bexpall'
a243b558
JF
12210 # It seems that -bexpall does not export symbols beginning with
12211 # underscore (_), so it is better to generate a list of symbols to export.
12212 always_export_symbols=yes
9d54db95 12213 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
a243b558
JF
12214 # Warning - without using the other runtime loading flags (-brtl),
12215 # -berok will link without error, but may produce a broken library.
12216 allow_undefined_flag='-berok'
12217 # Determine the default libpath from the value encoded in an
12218 # empty executable.
9d54db95 12219 if test set = "${lt_cv_aix_libpath+set}"; then
a243b558 12220 aix_libpath=$lt_cv_aix_libpath
9c60689e 12221else
a243b558 12222 if ${lt_cv_aix_libpath_+:} false; then :
9c60689e
DWT
12223 $as_echo_n "(cached) " >&6
12224else
a243b558 12225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
12226/* end confdefs.h. */
12227
9c60689e
DWT
12228int
12229main ()
12230{
a243b558 12231
9c60689e
DWT
12232 ;
12233 return 0;
12234}
12235_ACEOF
12236if ac_fn_c_try_link "$LINENO"; then :
a243b558
JF
12237
12238 lt_aix_libpath_sed='
12239 /Import File Strings/,/^$/ {
12240 /^0/ {
12241 s/^0 *\([^ ]*\) *$/\1/
12242 p
12243 }
12244 }'
12245 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12246 # Check for a 64-bit object if we didn't find anything.
12247 if test -z "$lt_cv_aix_libpath_"; then
12248 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12249 fi
9c60689e
DWT
12250fi
12251rm -f core conftest.err conftest.$ac_objext \
12252 conftest$ac_exeext conftest.$ac_ext
a243b558 12253 if test -z "$lt_cv_aix_libpath_"; then
9d54db95 12254 lt_cv_aix_libpath_=/usr/lib:/lib
a243b558 12255 fi
9c60689e
DWT
12256
12257fi
12258
a243b558
JF
12259 aix_libpath=$lt_cv_aix_libpath_
12260fi
9c60689e 12261
9d54db95
JF
12262 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12263 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
a243b558 12264 else
9d54db95
JF
12265 if test ia64 = "$host_cpu"; then
12266 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
a243b558 12267 allow_undefined_flag="-z nodefs"
9d54db95 12268 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"
a243b558
JF
12269 else
12270 # Determine the default libpath from the value encoded in an
12271 # empty executable.
9d54db95 12272 if test set = "${lt_cv_aix_libpath+set}"; then
a243b558 12273 aix_libpath=$lt_cv_aix_libpath
9c60689e 12274else
a243b558 12275 if ${lt_cv_aix_libpath_+:} false; then :
9c60689e
DWT
12276 $as_echo_n "(cached) " >&6
12277else
a243b558 12278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
12279/* end confdefs.h. */
12280
9c60689e
DWT
12281int
12282main ()
12283{
a243b558 12284
9c60689e
DWT
12285 ;
12286 return 0;
12287}
12288_ACEOF
12289if ac_fn_c_try_link "$LINENO"; then :
9c60689e 12290
a243b558
JF
12291 lt_aix_libpath_sed='
12292 /Import File Strings/,/^$/ {
12293 /^0/ {
12294 s/^0 *\([^ ]*\) *$/\1/
12295 p
12296 }
12297 }'
12298 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12299 # Check for a 64-bit object if we didn't find anything.
12300 if test -z "$lt_cv_aix_libpath_"; then
12301 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12302 fi
9c60689e
DWT
12303fi
12304rm -f core conftest.err conftest.$ac_objext \
12305 conftest$ac_exeext conftest.$ac_ext
a243b558 12306 if test -z "$lt_cv_aix_libpath_"; then
9d54db95 12307 lt_cv_aix_libpath_=/usr/lib:/lib
a243b558
JF
12308 fi
12309
9c60689e 12310fi
9c60689e 12311
a243b558
JF
12312 aix_libpath=$lt_cv_aix_libpath_
12313fi
12314
9d54db95 12315 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
a243b558
JF
12316 # Warning - without using the other run time loading flags,
12317 # -berok will link without error, but may produce a broken library.
9d54db95
JF
12318 no_undefined_flag=' $wl-bernotok'
12319 allow_undefined_flag=' $wl-berok'
12320 if test yes = "$with_gnu_ld"; then
a243b558 12321 # We only use this code for GNU lds that support --whole-archive.
9d54db95 12322 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
a243b558
JF
12323 else
12324 # Exported symbols can be pulled into shared objects from archives
12325 whole_archive_flag_spec='$convenience'
12326 fi
12327 archive_cmds_need_lc=yes
9d54db95
JF
12328 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12329 # -brtl affects multiple linker settings, -berok does not and is overridden later
12330 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12331 if test svr4 != "$with_aix_soname"; then
12332 # This is similar to how AIX traditionally builds its shared libraries.
12333 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
12334 fi
12335 if test aix != "$with_aix_soname"; then
12336 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
12337 else
12338 # used by -dlpreopen to get the symbols
12339 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12340 fi
12341 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
a243b558
JF
12342 fi
12343 fi
12344 ;;
12345
12346 amigaos*)
12347 case $host_cpu in
12348 powerpc)
12349 # see comment about AmigaOS4 .so support
9d54db95 12350 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
a243b558
JF
12351 archive_expsym_cmds=''
12352 ;;
12353 m68k)
12354 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)'
12355 hardcode_libdir_flag_spec='-L$libdir'
12356 hardcode_minus_L=yes
12357 ;;
12358 esac
12359 ;;
12360
12361 bsdi[45]*)
12362 export_dynamic_flag_spec=-rdynamic
12363 ;;
12364
12365 cygwin* | mingw* | pw32* | cegcc*)
12366 # When not using gcc, we currently assume that we are using
12367 # Microsoft Visual C++.
12368 # hardcode_libdir_flag_spec is actually meaningless, as there is
12369 # no search path for DLLs.
12370 case $cc_basename in
12371 cl*)
12372 # Native MSVC
12373 hardcode_libdir_flag_spec=' '
12374 allow_undefined_flag=unsupported
12375 always_export_symbols=yes
12376 file_list_spec='@'
12377 # Tell ltmain to make .lib files, not .a files.
12378 libext=lib
12379 # Tell ltmain to make .dll files, not .so files.
9d54db95 12380 shrext_cmds=.dll
a243b558 12381 # FIXME: Setting linknames here is a bad hack.
9d54db95
JF
12382 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12383 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12384 cp "$export_symbols" "$output_objdir/$soname.def";
12385 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12386 else
12387 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12388 fi~
12389 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12390 linknames='
a243b558
JF
12391 # The linker will not automatically build a static lib if we build a DLL.
12392 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12393 enable_shared_with_static_runtimes=yes
12394 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12395 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12396 # Don't use ranlib
12397 old_postinstall_cmds='chmod 644 $oldlib'
12398 postlink_cmds='lt_outputfile="@OUTPUT@"~
9d54db95
JF
12399 lt_tool_outputfile="@TOOL_OUTPUT@"~
12400 case $lt_outputfile in
12401 *.exe|*.EXE) ;;
12402 *)
12403 lt_outputfile=$lt_outputfile.exe
12404 lt_tool_outputfile=$lt_tool_outputfile.exe
12405 ;;
12406 esac~
12407 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12408 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12409 $RM "$lt_outputfile.manifest";
12410 fi'
a243b558
JF
12411 ;;
12412 *)
12413 # Assume MSVC wrapper
12414 hardcode_libdir_flag_spec=' '
12415 allow_undefined_flag=unsupported
12416 # Tell ltmain to make .lib files, not .a files.
12417 libext=lib
12418 # Tell ltmain to make .dll files, not .so files.
9d54db95 12419 shrext_cmds=.dll
a243b558
JF
12420 # FIXME: Setting linknames here is a bad hack.
12421 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12422 # The linker will automatically build a .lib file if we build a DLL.
12423 old_archive_from_new_cmds='true'
12424 # FIXME: Should let the user specify the lib program.
12425 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12426 enable_shared_with_static_runtimes=yes
12427 ;;
12428 esac
12429 ;;
12430
12431 darwin* | rhapsody*)
12432
12433
12434 archive_cmds_need_lc=no
12435 hardcode_direct=no
12436 hardcode_automatic=yes
12437 hardcode_shlibpath_var=unsupported
9d54db95
JF
12438 if test yes = "$lt_cv_ld_force_load"; then
12439 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\"`'
a243b558
JF
12440
12441 else
12442 whole_archive_flag_spec=''
12443 fi
12444 link_all_deplibs=yes
9d54db95 12445 allow_undefined_flag=$_lt_dar_allow_undefined
a243b558 12446 case $cc_basename in
9d54db95 12447 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
a243b558
JF
12448 *) _lt_dar_can_shared=$GCC ;;
12449 esac
9d54db95 12450 if test yes = "$_lt_dar_can_shared"; then
a243b558 12451 output_verbose_link_cmd=func_echo_all
9d54db95
JF
12452 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12453 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12454 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"
12455 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"
a243b558
JF
12456
12457 else
12458 ld_shlibs=no
12459 fi
12460
12461 ;;
12462
12463 dgux*)
12464 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12465 hardcode_libdir_flag_spec='-L$libdir'
12466 hardcode_shlibpath_var=no
12467 ;;
12468
12469 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12470 # support. Future versions do this automatically, but an explicit c++rt0.o
12471 # does not break anything, and helps significantly (at the cost of a little
12472 # extra space).
12473 freebsd2.2*)
12474 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12475 hardcode_libdir_flag_spec='-R$libdir'
12476 hardcode_direct=yes
12477 hardcode_shlibpath_var=no
12478 ;;
12479
12480 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12481 freebsd2.*)
12482 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12483 hardcode_direct=yes
12484 hardcode_minus_L=yes
12485 hardcode_shlibpath_var=no
12486 ;;
12487
12488 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12489 freebsd* | dragonfly*)
12490 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12491 hardcode_libdir_flag_spec='-R$libdir'
12492 hardcode_direct=yes
12493 hardcode_shlibpath_var=no
12494 ;;
12495
12496 hpux9*)
9d54db95
JF
12497 if test yes = "$GCC"; then
12498 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
a243b558 12499 else
9d54db95 12500 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
a243b558 12501 fi
9d54db95 12502 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
a243b558
JF
12503 hardcode_libdir_separator=:
12504 hardcode_direct=yes
12505
12506 # hardcode_minus_L: Not really in the search PATH,
12507 # but as the default location of the library.
12508 hardcode_minus_L=yes
9d54db95 12509 export_dynamic_flag_spec='$wl-E'
a243b558
JF
12510 ;;
12511
12512 hpux10*)
9d54db95
JF
12513 if test yes,no = "$GCC,$with_gnu_ld"; then
12514 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
12515 else
12516 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12517 fi
9d54db95
JF
12518 if test no = "$with_gnu_ld"; then
12519 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
a243b558
JF
12520 hardcode_libdir_separator=:
12521 hardcode_direct=yes
12522 hardcode_direct_absolute=yes
9d54db95 12523 export_dynamic_flag_spec='$wl-E'
a243b558
JF
12524 # hardcode_minus_L: Not really in the search PATH,
12525 # but as the default location of the library.
12526 hardcode_minus_L=yes
12527 fi
12528 ;;
12529
12530 hpux11*)
9d54db95 12531 if test yes,no = "$GCC,$with_gnu_ld"; then
a243b558
JF
12532 case $host_cpu in
12533 hppa*64*)
9d54db95 12534 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
12535 ;;
12536 ia64*)
9d54db95 12537 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
12538 ;;
12539 *)
9d54db95 12540 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
12541 ;;
12542 esac
12543 else
12544 case $host_cpu in
12545 hppa*64*)
9d54db95 12546 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
12547 ;;
12548 ia64*)
9d54db95 12549 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
12550 ;;
12551 *)
12552
12553 # Older versions of the 11.00 compiler do not understand -b yet
12554 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12556$as_echo_n "checking if $CC understands -b... " >&6; }
12557if ${lt_cv_prog_compiler__b+:} false; then :
12558 $as_echo_n "(cached) " >&6
12559else
12560 lt_cv_prog_compiler__b=no
9d54db95 12561 save_LDFLAGS=$LDFLAGS
a243b558
JF
12562 LDFLAGS="$LDFLAGS -b"
12563 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12564 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12565 # The linker can only warn and ignore the option if not recognized
12566 # So say no if there are warnings
12567 if test -s conftest.err; then
12568 # Append any errors to the config.log.
12569 cat conftest.err 1>&5
12570 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12571 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12572 if diff conftest.exp conftest.er2 >/dev/null; then
12573 lt_cv_prog_compiler__b=yes
12574 fi
12575 else
12576 lt_cv_prog_compiler__b=yes
12577 fi
12578 fi
12579 $RM -r conftest*
9d54db95 12580 LDFLAGS=$save_LDFLAGS
a243b558
JF
12581
12582fi
12583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12584$as_echo "$lt_cv_prog_compiler__b" >&6; }
12585
9d54db95
JF
12586if test yes = "$lt_cv_prog_compiler__b"; then
12587 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
12588else
12589 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12590fi
12591
12592 ;;
12593 esac
12594 fi
9d54db95
JF
12595 if test no = "$with_gnu_ld"; then
12596 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
a243b558
JF
12597 hardcode_libdir_separator=:
12598
12599 case $host_cpu in
12600 hppa*64*|ia64*)
12601 hardcode_direct=no
12602 hardcode_shlibpath_var=no
12603 ;;
12604 *)
12605 hardcode_direct=yes
12606 hardcode_direct_absolute=yes
9d54db95 12607 export_dynamic_flag_spec='$wl-E'
a243b558
JF
12608
12609 # hardcode_minus_L: Not really in the search PATH,
12610 # but as the default location of the library.
12611 hardcode_minus_L=yes
12612 ;;
12613 esac
12614 fi
12615 ;;
12616
12617 irix5* | irix6* | nonstopux*)
9d54db95
JF
12618 if test yes = "$GCC"; then
12619 archive_cmds='$CC -shared $pic_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'
a243b558
JF
12620 # Try to use the -exported_symbol ld option, if it does not
12621 # work, assume that -exports_file does not work either and
12622 # implicitly export all symbols.
12623 # This should be the same for all languages, so no per-tag cache variable.
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12625$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12626if ${lt_cv_irix_exported_symbol+:} false; then :
12627 $as_echo_n "(cached) " >&6
12628else
9d54db95
JF
12629 save_LDFLAGS=$LDFLAGS
12630 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
a243b558
JF
12631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12632/* end confdefs.h. */
12633int foo (void) { return 0; }
12634_ACEOF
12635if ac_fn_c_try_link "$LINENO"; then :
12636 lt_cv_irix_exported_symbol=yes
12637else
12638 lt_cv_irix_exported_symbol=no
12639fi
12640rm -f core conftest.err conftest.$ac_objext \
12641 conftest$ac_exeext conftest.$ac_ext
9d54db95 12642 LDFLAGS=$save_LDFLAGS
a243b558
JF
12643fi
12644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12645$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9d54db95
JF
12646 if test yes = "$lt_cv_irix_exported_symbol"; then
12647 archive_expsym_cmds='$CC -shared $pic_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 $wl-exports_file $wl$export_symbols -o $lib'
a243b558
JF
12648 fi
12649 else
9d54db95
JF
12650 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'
12651 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'
a243b558
JF
12652 fi
12653 archive_cmds_need_lc='no'
9d54db95 12654 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a243b558
JF
12655 hardcode_libdir_separator=:
12656 inherit_rpath=yes
12657 link_all_deplibs=yes
12658 ;;
12659
9d54db95
JF
12660 linux*)
12661 case $cc_basename in
12662 tcc*)
12663 # Fabrice Bellard et al's Tiny C Compiler
12664 ld_shlibs=yes
12665 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12666 ;;
12667 esac
12668 ;;
12669
a243b558
JF
12670 netbsd*)
12671 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12672 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12673 else
12674 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12675 fi
12676 hardcode_libdir_flag_spec='-R$libdir'
12677 hardcode_direct=yes
12678 hardcode_shlibpath_var=no
12679 ;;
12680
12681 newsos6)
12682 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12683 hardcode_direct=yes
9d54db95 12684 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a243b558
JF
12685 hardcode_libdir_separator=:
12686 hardcode_shlibpath_var=no
12687 ;;
12688
12689 *nto* | *qnx*)
12690 ;;
12691
9d54db95 12692 openbsd* | bitrig*)
a243b558
JF
12693 if test -f /usr/libexec/ld.so; then
12694 hardcode_direct=yes
12695 hardcode_shlibpath_var=no
12696 hardcode_direct_absolute=yes
9d54db95 12697 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
a243b558 12698 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9d54db95
JF
12699 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12700 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12701 export_dynamic_flag_spec='$wl-E'
a243b558 12702 else
9d54db95
JF
12703 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12704 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
a243b558
JF
12705 fi
12706 else
12707 ld_shlibs=no
12708 fi
12709 ;;
12710
12711 os2*)
12712 hardcode_libdir_flag_spec='-L$libdir'
12713 hardcode_minus_L=yes
12714 allow_undefined_flag=unsupported
9d54db95
JF
12715 shrext_cmds=.dll
12716 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12717 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12718 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12719 $ECHO EXPORTS >> $output_objdir/$libname.def~
12720 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12721 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12722 emximp -o $lib $output_objdir/$libname.def'
12723 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12724 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12725 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12726 $ECHO EXPORTS >> $output_objdir/$libname.def~
12727 prefix_cmds="$SED"~
12728 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12729 prefix_cmds="$prefix_cmds -e 1d";
12730 fi~
12731 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12732 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12733 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12734 emximp -o $lib $output_objdir/$libname.def'
12735 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12736 enable_shared_with_static_runtimes=yes
a243b558
JF
12737 ;;
12738
12739 osf3*)
9d54db95
JF
12740 if test yes = "$GCC"; then
12741 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12742 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'
a243b558
JF
12743 else
12744 allow_undefined_flag=' -expect_unresolved \*'
9d54db95 12745 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'
a243b558
JF
12746 fi
12747 archive_cmds_need_lc='no'
9d54db95 12748 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a243b558
JF
12749 hardcode_libdir_separator=:
12750 ;;
12751
12752 osf4* | osf5*) # as osf3* with the addition of -msym flag
9d54db95
JF
12753 if test yes = "$GCC"; then
12754 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12755 archive_cmds='$CC -shared$allow_undefined_flag $pic_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'
12756 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a243b558
JF
12757 else
12758 allow_undefined_flag=' -expect_unresolved \*'
9d54db95 12759 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'
a243b558 12760 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~
9d54db95 12761 $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'
a243b558
JF
12762
12763 # Both c and cxx compiler support -rpath directly
12764 hardcode_libdir_flag_spec='-rpath $libdir'
12765 fi
12766 archive_cmds_need_lc='no'
12767 hardcode_libdir_separator=:
12768 ;;
12769
12770 solaris*)
12771 no_undefined_flag=' -z defs'
9d54db95
JF
12772 if test yes = "$GCC"; then
12773 wlarc='$wl'
12774 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558 12775 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9d54db95 12776 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
a243b558
JF
12777 else
12778 case `$CC -V 2>&1` in
12779 *"Compilers 5.0"*)
12780 wlarc=''
9d54db95 12781 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
a243b558 12782 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9d54db95 12783 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
a243b558
JF
12784 ;;
12785 *)
9d54db95
JF
12786 wlarc='$wl'
12787 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558 12788 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9d54db95 12789 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
a243b558
JF
12790 ;;
12791 esac
12792 fi
12793 hardcode_libdir_flag_spec='-R$libdir'
12794 hardcode_shlibpath_var=no
12795 case $host_os in
12796 solaris2.[0-5] | solaris2.[0-5].*) ;;
12797 *)
12798 # The compiler driver will combine and reorder linker options,
9d54db95 12799 # but understands '-z linker_flag'. GCC discards it without '$wl',
a243b558
JF
12800 # but is careful enough not to reorder.
12801 # Supported since Solaris 2.6 (maybe 2.5.1?)
9d54db95
JF
12802 if test yes = "$GCC"; then
12803 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
a243b558
JF
12804 else
12805 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12806 fi
12807 ;;
12808 esac
12809 link_all_deplibs=yes
12810 ;;
12811
12812 sunos4*)
9d54db95 12813 if test sequent = "$host_vendor"; then
a243b558
JF
12814 # Use $CC to link under sequent, because it throws in some extra .o
12815 # files that make .init and .fini sections work.
9d54db95 12816 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
12817 else
12818 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12819 fi
12820 hardcode_libdir_flag_spec='-L$libdir'
12821 hardcode_direct=yes
12822 hardcode_minus_L=yes
12823 hardcode_shlibpath_var=no
12824 ;;
12825
12826 sysv4)
12827 case $host_vendor in
12828 sni)
12829 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12830 hardcode_direct=yes # is this really true???
12831 ;;
12832 siemens)
12833 ## LD is ld it makes a PLAMLIB
12834 ## CC just makes a GrossModule.
12835 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12836 reload_cmds='$CC -r -o $output$reload_objs'
12837 hardcode_direct=no
12838 ;;
12839 motorola)
12840 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12841 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12842 ;;
12843 esac
12844 runpath_var='LD_RUN_PATH'
12845 hardcode_shlibpath_var=no
12846 ;;
12847
12848 sysv4.3*)
12849 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12850 hardcode_shlibpath_var=no
12851 export_dynamic_flag_spec='-Bexport'
12852 ;;
12853
12854 sysv4*MP*)
12855 if test -d /usr/nec; then
12856 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12857 hardcode_shlibpath_var=no
12858 runpath_var=LD_RUN_PATH
12859 hardcode_runpath_var=yes
12860 ld_shlibs=yes
12861 fi
12862 ;;
12863
12864 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9d54db95 12865 no_undefined_flag='$wl-z,text'
a243b558
JF
12866 archive_cmds_need_lc=no
12867 hardcode_shlibpath_var=no
12868 runpath_var='LD_RUN_PATH'
12869
9d54db95
JF
12870 if test yes = "$GCC"; then
12871 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12872 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558 12873 else
9d54db95
JF
12874 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12875 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
12876 fi
12877 ;;
12878
12879 sysv5* | sco3.2v5* | sco5v6*)
9d54db95 12880 # Note: We CANNOT use -z defs as we might desire, because we do not
a243b558
JF
12881 # link with -lc, and that would cause any symbols used from libc to
12882 # always be unresolved, which means just about no library would
12883 # ever link correctly. If we're not using GNU ld we use -z text
12884 # though, which does catch some bad symbols but isn't as heavy-handed
12885 # as -z defs.
9d54db95
JF
12886 no_undefined_flag='$wl-z,text'
12887 allow_undefined_flag='$wl-z,nodefs'
a243b558
JF
12888 archive_cmds_need_lc=no
12889 hardcode_shlibpath_var=no
9d54db95 12890 hardcode_libdir_flag_spec='$wl-R,$libdir'
a243b558
JF
12891 hardcode_libdir_separator=':'
12892 link_all_deplibs=yes
9d54db95 12893 export_dynamic_flag_spec='$wl-Bexport'
a243b558
JF
12894 runpath_var='LD_RUN_PATH'
12895
9d54db95
JF
12896 if test yes = "$GCC"; then
12897 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12898 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558 12899 else
9d54db95
JF
12900 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12901 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
12902 fi
12903 ;;
12904
12905 uts4*)
12906 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12907 hardcode_libdir_flag_spec='-L$libdir'
12908 hardcode_shlibpath_var=no
12909 ;;
12910
12911 *)
12912 ld_shlibs=no
12913 ;;
12914 esac
12915
9d54db95 12916 if test sni = "$host_vendor"; then
a243b558
JF
12917 case $host in
12918 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9d54db95 12919 export_dynamic_flag_spec='$wl-Blargedynsym'
a243b558
JF
12920 ;;
12921 esac
12922 fi
12923 fi
12924
12925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12926$as_echo "$ld_shlibs" >&6; }
9d54db95 12927test no = "$ld_shlibs" && can_build_shared=no
a243b558
JF
12928
12929with_gnu_ld=$with_gnu_ld
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945#
12946# Do we need to explicitly link libc?
12947#
12948case "x$archive_cmds_need_lc" in
12949x|xyes)
12950 # Assume -lc should be added
12951 archive_cmds_need_lc=yes
12952
9d54db95 12953 if test yes,yes = "$GCC,$enable_shared"; then
a243b558
JF
12954 case $archive_cmds in
12955 *'~'*)
12956 # FIXME: we may have to deal with multi-command sequences.
12957 ;;
12958 '$CC '*)
12959 # Test whether the compiler implicitly links with -lc since on some
12960 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12961 # to ld, don't add -lc before -lgcc.
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12963$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12964if ${lt_cv_archive_cmds_need_lc+:} false; then :
12965 $as_echo_n "(cached) " >&6
12966else
00a96142 12967 $RM -r conftest*
a243b558
JF
12968 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12969
12970 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12971 (eval $ac_compile) 2>&5
12972 ac_status=$?
12973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12974 test $ac_status = 0; } 2>conftest.err; then
12975 soname=conftest
12976 lib=conftest
12977 libobjs=conftest.$ac_objext
12978 deplibs=
12979 wl=$lt_prog_compiler_wl
12980 pic_flag=$lt_prog_compiler_pic
12981 compiler_flags=-v
12982 linker_flags=-v
12983 verstring=
12984 output_objdir=.
12985 libname=conftest
12986 lt_save_allow_undefined_flag=$allow_undefined_flag
12987 allow_undefined_flag=
12988 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12989 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12990 ac_status=$?
12991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12992 test $ac_status = 0; }
12993 then
12994 lt_cv_archive_cmds_need_lc=no
12995 else
12996 lt_cv_archive_cmds_need_lc=yes
12997 fi
12998 allow_undefined_flag=$lt_save_allow_undefined_flag
12999 else
13000 cat conftest.err 1>&5
13001 fi
00a96142 13002 $RM -r conftest*
a243b558
JF
13003
13004fi
13005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13006$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13007 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13008 ;;
13009 esac
13010 fi
13011 ;;
13012esac
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13166$as_echo_n "checking dynamic linker characteristics... " >&6; }
13167
9d54db95 13168if test yes = "$GCC"; then
a243b558 13169 case $host_os in
9d54db95
JF
13170 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13171 *) lt_awk_arg='/^libraries:/' ;;
a243b558
JF
13172 esac
13173 case $host_os in
9d54db95
JF
13174 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13175 *) lt_sed_strip_eq='s|=/|/|g' ;;
a243b558
JF
13176 esac
13177 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13178 case $lt_search_path_spec in
13179 *\;*)
13180 # if the path contains ";" then we assume it to be the separator
13181 # otherwise default to the standard path separator (i.e. ":") - it is
13182 # assumed that no part of a normal pathname contains ";" but that should
13183 # okay in the real world where ";" in dirpaths is itself problematic.
13184 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13185 ;;
13186 *)
13187 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13188 ;;
13189 esac
13190 # Ok, now we have the path, separated by spaces, we can step through it
9d54db95 13191 # and add multilib dir if necessary...
a243b558 13192 lt_tmp_lt_search_path_spec=
9d54db95
JF
13193 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13194 # ...but if some path component already ends with the multilib dir we assume
13195 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13196 case "$lt_multi_os_dir; $lt_search_path_spec " in
13197 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13198 lt_multi_os_dir=
13199 ;;
13200 esac
a243b558 13201 for lt_sys_path in $lt_search_path_spec; do
9d54db95
JF
13202 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13203 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13204 elif test -n "$lt_multi_os_dir"; then
a243b558
JF
13205 test -d "$lt_sys_path" && \
13206 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13207 fi
13208 done
13209 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9d54db95
JF
13210BEGIN {RS = " "; FS = "/|\n";} {
13211 lt_foo = "";
13212 lt_count = 0;
a243b558
JF
13213 for (lt_i = NF; lt_i > 0; lt_i--) {
13214 if ($lt_i != "" && $lt_i != ".") {
13215 if ($lt_i == "..") {
13216 lt_count++;
13217 } else {
13218 if (lt_count == 0) {
9d54db95 13219 lt_foo = "/" $lt_i lt_foo;
a243b558
JF
13220 } else {
13221 lt_count--;
13222 }
13223 }
13224 }
13225 }
13226 if (lt_foo != "") { lt_freq[lt_foo]++; }
13227 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13228}'`
13229 # AWK program above erroneously prepends '/' to C:/dos/paths
13230 # for these hosts.
13231 case $host_os in
13232 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9d54db95 13233 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
a243b558
JF
13234 esac
13235 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13236else
13237 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13238fi
13239library_names_spec=
13240libname_spec='lib$name'
13241soname_spec=
9d54db95 13242shrext_cmds=.so
a243b558
JF
13243postinstall_cmds=
13244postuninstall_cmds=
13245finish_cmds=
13246finish_eval=
13247shlibpath_var=
13248shlibpath_overrides_runpath=unknown
13249version_type=none
13250dynamic_linker="$host_os ld.so"
13251sys_lib_dlsearch_path_spec="/lib /usr/lib"
13252need_lib_prefix=unknown
13253hardcode_into_libs=no
13254
13255# when you set need_version to no, make sure it does not cause -set_version
13256# flags to be left without arguments
13257need_version=unknown
13258
9d54db95
JF
13259
13260
a243b558
JF
13261case $host_os in
13262aix3*)
13263 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95 13264 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
a243b558
JF
13265 shlibpath_var=LIBPATH
13266
13267 # AIX 3 has no versioning support, so we append a major version to the name.
9d54db95 13268 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
13269 ;;
13270
13271aix[4-9]*)
13272 version_type=linux # correct to gnu/linux during the next big refactor
13273 need_lib_prefix=no
13274 need_version=no
13275 hardcode_into_libs=yes
9d54db95 13276 if test ia64 = "$host_cpu"; then
a243b558 13277 # AIX 5 supports IA64
9d54db95 13278 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
a243b558
JF
13279 shlibpath_var=LD_LIBRARY_PATH
13280 else
13281 # With GCC up to 2.95.x, collect2 would create an import file
13282 # for dependence libraries. The import file would start with
9d54db95
JF
13283 # the line '#! .'. This would cause the generated library to
13284 # depend on '.', always an invalid library. This was fixed in
a243b558
JF
13285 # development snapshots of GCC prior to 3.0.
13286 case $host_os in
13287 aix4 | aix4.[01] | aix4.[01].*)
13288 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13289 echo ' yes '
9d54db95 13290 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
a243b558
JF
13291 :
13292 else
13293 can_build_shared=no
13294 fi
13295 ;;
13296 esac
9d54db95
JF
13297 # Using Import Files as archive members, it is possible to support
13298 # filename-based versioning of shared library archives on AIX. While
13299 # this would work for both with and without runtime linking, it will
13300 # prevent static linking of such archives. So we do filename-based
13301 # shared library versioning with .so extension only, which is used
13302 # when both runtime linking and shared linking is enabled.
13303 # Unfortunately, runtime linking may impact performance, so we do
13304 # not want this to be the default eventually. Also, we use the
13305 # versioned .so libs for executables only if there is the -brtl
13306 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13307 # To allow for filename-based versioning support, we need to create
13308 # libNAME.so.V as an archive file, containing:
13309 # *) an Import File, referring to the versioned filename of the
13310 # archive as well as the shared archive member, telling the
13311 # bitwidth (32 or 64) of that shared object, and providing the
13312 # list of exported symbols of that shared object, eventually
13313 # decorated with the 'weak' keyword
13314 # *) the shared object with the F_LOADONLY flag set, to really avoid
13315 # it being seen by the linker.
13316 # At run time we better use the real file rather than another symlink,
13317 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13318
13319 case $with_aix_soname,$aix_use_runtimelinking in
13320 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
a243b558
JF
13321 # soname into executable. Probably we can add versioning support to
13322 # collect2, so additional links can be useful in future.
9d54db95
JF
13323 aix,yes) # traditional libtool
13324 dynamic_linker='AIX unversionable lib.so'
a243b558
JF
13325 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13326 # instead of lib<name>.a to let people know that these are not
13327 # typical AIX shared libraries.
9d54db95
JF
13328 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13329 ;;
13330 aix,no) # traditional AIX only
13331 dynamic_linker='AIX lib.a(lib.so.V)'
a243b558
JF
13332 # We preserve .a as extension for shared libraries through AIX4.2
13333 # and later when we are not doing run time linking.
9d54db95
JF
13334 library_names_spec='$libname$release.a $libname.a'
13335 soname_spec='$libname$release$shared_ext$major'
13336 ;;
13337 svr4,*) # full svr4 only
13338 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13339 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13340 # We do not specify a path in Import Files, so LIBPATH fires.
13341 shlibpath_overrides_runpath=yes
13342 ;;
13343 *,yes) # both, prefer svr4
13344 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13345 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13346 # unpreferred sharedlib libNAME.a needs extra handling
13347 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
13348 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
13349 # We do not specify a path in Import Files, so LIBPATH fires.
13350 shlibpath_overrides_runpath=yes
13351 ;;
13352 *,no) # both, prefer aix
13353 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13354 library_names_spec='$libname$release.a $libname.a'
13355 soname_spec='$libname$release$shared_ext$major'
13356 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13357 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
13358 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
13359 ;;
13360 esac
a243b558
JF
13361 shlibpath_var=LIBPATH
13362 fi
13363 ;;
13364
13365amigaos*)
13366 case $host_cpu in
13367 powerpc)
13368 # Since July 2007 AmigaOS4 officially supports .so libraries.
13369 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9d54db95 13370 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
a243b558
JF
13371 ;;
13372 m68k)
13373 library_names_spec='$libname.ixlibrary $libname.a'
13374 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9d54db95 13375 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
a243b558
JF
13376 ;;
13377 esac
13378 ;;
13379
13380beos*)
9d54db95 13381 library_names_spec='$libname$shared_ext'
a243b558
JF
13382 dynamic_linker="$host_os ld.so"
13383 shlibpath_var=LIBRARY_PATH
13384 ;;
13385
13386bsdi[45]*)
13387 version_type=linux # correct to gnu/linux during the next big refactor
13388 need_version=no
9d54db95
JF
13389 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13390 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
13391 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13392 shlibpath_var=LD_LIBRARY_PATH
13393 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13394 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13395 # the default ld.so.conf also contains /usr/contrib/lib and
13396 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13397 # libtool to hard-code these into programs
13398 ;;
13399
13400cygwin* | mingw* | pw32* | cegcc*)
13401 version_type=windows
9d54db95 13402 shrext_cmds=.dll
a243b558
JF
13403 need_version=no
13404 need_lib_prefix=no
9c60689e 13405
a243b558
JF
13406 case $GCC,$cc_basename in
13407 yes,*)
13408 # gcc
13409 library_names_spec='$libname.dll.a'
13410 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9d54db95
JF
13411 postinstall_cmds='base_file=`basename \$file`~
13412 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
a243b558
JF
13413 dldir=$destdir/`dirname \$dlpath`~
13414 test -d \$dldir || mkdir -p \$dldir~
13415 $install_prog $dir/$dlname \$dldir/$dlname~
13416 chmod a+x \$dldir/$dlname~
13417 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13418 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13419 fi'
13420 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13421 dlpath=$dir/\$dldll~
13422 $RM \$dlpath'
13423 shlibpath_overrides_runpath=yes
9c60689e 13424
a243b558
JF
13425 case $host_os in
13426 cygwin*)
13427 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9d54db95 13428 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
9c60689e 13429
a243b558
JF
13430 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13431 ;;
13432 mingw* | cegcc*)
13433 # MinGW DLLs use traditional 'lib' prefix
9d54db95 13434 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
a243b558
JF
13435 ;;
13436 pw32*)
13437 # pw32 DLLs use 'pw' prefix rather than 'lib'
9d54db95 13438 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
a243b558
JF
13439 ;;
13440 esac
13441 dynamic_linker='Win32 ld.exe'
13442 ;;
9c60689e 13443
a243b558
JF
13444 *,cl*)
13445 # Native MSVC
13446 libname_spec='$name'
9d54db95
JF
13447 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13448 library_names_spec='$libname.dll.lib'
9c60689e 13449
a243b558
JF
13450 case $build_os in
13451 mingw*)
13452 sys_lib_search_path_spec=
13453 lt_save_ifs=$IFS
13454 IFS=';'
13455 for lt_path in $LIB
13456 do
13457 IFS=$lt_save_ifs
13458 # Let DOS variable expansion print the short 8.3 style file name.
13459 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13460 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13461 done
13462 IFS=$lt_save_ifs
13463 # Convert to MSYS style.
13464 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13465 ;;
13466 cygwin*)
13467 # Convert to unix form, then to dos form, then back to unix form
13468 # but this time dos style (no spaces!) so that the unix form looks
13469 # like /cygdrive/c/PROGRA~1:/cygdr...
13470 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13471 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13472 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13473 ;;
13474 *)
9d54db95 13475 sys_lib_search_path_spec=$LIB
a243b558
JF
13476 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13477 # It is most probably a Windows format PATH.
13478 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13479 else
13480 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13481 fi
13482 # FIXME: find the short name or the path components, as spaces are
13483 # common. (e.g. "Program Files" -> "PROGRA~1")
13484 ;;
13485 esac
13486
13487 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9d54db95
JF
13488 postinstall_cmds='base_file=`basename \$file`~
13489 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
a243b558
JF
13490 dldir=$destdir/`dirname \$dlpath`~
13491 test -d \$dldir || mkdir -p \$dldir~
13492 $install_prog $dir/$dlname \$dldir/$dlname'
13493 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13494 dlpath=$dir/\$dldll~
13495 $RM \$dlpath'
13496 shlibpath_overrides_runpath=yes
13497 dynamic_linker='Win32 link.exe'
13498 ;;
9c60689e 13499
a243b558
JF
13500 *)
13501 # Assume MSVC wrapper
9d54db95 13502 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
a243b558
JF
13503 dynamic_linker='Win32 ld.exe'
13504 ;;
13505 esac
13506 # FIXME: first we should search . and the directory the executable is in
13507 shlibpath_var=PATH
13508 ;;
9c60689e 13509
a243b558
JF
13510darwin* | rhapsody*)
13511 dynamic_linker="$host_os dyld"
13512 version_type=darwin
13513 need_lib_prefix=no
13514 need_version=no
9d54db95
JF
13515 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13516 soname_spec='$libname$release$major$shared_ext'
a243b558
JF
13517 shlibpath_overrides_runpath=yes
13518 shlibpath_var=DYLD_LIBRARY_PATH
13519 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9c60689e 13520
a243b558
JF
13521 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13522 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13523 ;;
9c60689e 13524
a243b558
JF
13525dgux*)
13526 version_type=linux # correct to gnu/linux during the next big refactor
13527 need_lib_prefix=no
13528 need_version=no
9d54db95
JF
13529 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13530 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
13531 shlibpath_var=LD_LIBRARY_PATH
13532 ;;
13533
13534freebsd* | dragonfly*)
13535 # DragonFly does not have aout. When/if they implement a new
13536 # versioning mechanism, adjust this.
13537 if test -x /usr/bin/objformat; then
13538 objformat=`/usr/bin/objformat`
13539 else
13540 case $host_os in
13541 freebsd[23].*) objformat=aout ;;
13542 *) objformat=elf ;;
13543 esac
13544 fi
13545 version_type=freebsd-$objformat
13546 case $version_type in
13547 freebsd-elf*)
9d54db95
JF
13548 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13549 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
13550 need_version=no
13551 need_lib_prefix=no
13552 ;;
13553 freebsd-*)
9d54db95 13554 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
a243b558
JF
13555 need_version=yes
13556 ;;
13557 esac
13558 shlibpath_var=LD_LIBRARY_PATH
13559 case $host_os in
13560 freebsd2.*)
13561 shlibpath_overrides_runpath=yes
13562 ;;
13563 freebsd3.[01]* | freebsdelf3.[01]*)
13564 shlibpath_overrides_runpath=yes
13565 hardcode_into_libs=yes
13566 ;;
13567 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13568 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13569 shlibpath_overrides_runpath=no
13570 hardcode_into_libs=yes
13571 ;;
13572 *) # from 4.6 on, and DragonFly
13573 shlibpath_overrides_runpath=yes
13574 hardcode_into_libs=yes
13575 ;;
13576 esac
13577 ;;
9c60689e 13578
a243b558
JF
13579haiku*)
13580 version_type=linux # correct to gnu/linux during the next big refactor
13581 need_lib_prefix=no
13582 need_version=no
13583 dynamic_linker="$host_os runtime_loader"
9d54db95
JF
13584 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13585 soname_spec='$libname$release$shared_ext$major'
a243b558 13586 shlibpath_var=LIBRARY_PATH
9d54db95 13587 shlibpath_overrides_runpath=no
a243b558
JF
13588 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13589 hardcode_into_libs=yes
13590 ;;
9c60689e 13591
a243b558
JF
13592hpux9* | hpux10* | hpux11*)
13593 # Give a soname corresponding to the major version so that dld.sl refuses to
13594 # link against other versions.
13595 version_type=sunos
13596 need_lib_prefix=no
13597 need_version=no
13598 case $host_cpu in
13599 ia64*)
13600 shrext_cmds='.so'
13601 hardcode_into_libs=yes
13602 dynamic_linker="$host_os dld.so"
13603 shlibpath_var=LD_LIBRARY_PATH
13604 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9d54db95
JF
13605 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13606 soname_spec='$libname$release$shared_ext$major'
13607 if test 32 = "$HPUX_IA64_MODE"; then
a243b558 13608 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9d54db95 13609 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
a243b558
JF
13610 else
13611 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9d54db95 13612 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
a243b558 13613 fi
a243b558
JF
13614 ;;
13615 hppa*64*)
13616 shrext_cmds='.sl'
13617 hardcode_into_libs=yes
13618 dynamic_linker="$host_os dld.sl"
13619 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13620 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9d54db95
JF
13621 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13622 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
13623 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13624 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13625 ;;
13626 *)
13627 shrext_cmds='.sl'
13628 dynamic_linker="$host_os dld.sl"
13629 shlibpath_var=SHLIB_PATH
13630 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9d54db95
JF
13631 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13632 soname_spec='$libname$release$shared_ext$major'
9c60689e
DWT
13633 ;;
13634 esac
a243b558
JF
13635 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13636 postinstall_cmds='chmod 555 $lib'
13637 # or fails outright, so override atomically:
13638 install_override_mode=555
13639 ;;
9c60689e 13640
a243b558
JF
13641interix[3-9]*)
13642 version_type=linux # correct to gnu/linux during the next big refactor
13643 need_lib_prefix=no
13644 need_version=no
9d54db95
JF
13645 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13646 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
13647 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13648 shlibpath_var=LD_LIBRARY_PATH
13649 shlibpath_overrides_runpath=no
13650 hardcode_into_libs=yes
13651 ;;
9c60689e 13652
a243b558
JF
13653irix5* | irix6* | nonstopux*)
13654 case $host_os in
13655 nonstopux*) version_type=nonstopux ;;
13656 *)
9d54db95 13657 if test yes = "$lt_cv_prog_gnu_ld"; then
a243b558
JF
13658 version_type=linux # correct to gnu/linux during the next big refactor
13659 else
13660 version_type=irix
13661 fi ;;
13662 esac
13663 need_lib_prefix=no
13664 need_version=no
9d54db95
JF
13665 soname_spec='$libname$release$shared_ext$major'
13666 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
a243b558
JF
13667 case $host_os in
13668 irix5* | nonstopux*)
13669 libsuff= shlibsuff=
13670 ;;
13671 *)
13672 case $LD in # libtool.m4 will add one of these switches to LD
13673 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13674 libsuff= shlibsuff= libmagic=32-bit;;
13675 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13676 libsuff=32 shlibsuff=N32 libmagic=N32;;
13677 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13678 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13679 *) libsuff= shlibsuff= libmagic=never-match;;
13680 esac
13681 ;;
13682 esac
13683 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13684 shlibpath_overrides_runpath=no
9d54db95
JF
13685 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13686 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
a243b558
JF
13687 hardcode_into_libs=yes
13688 ;;
9c60689e 13689
a243b558
JF
13690# No shared lib support for Linux oldld, aout, or coff.
13691linux*oldld* | linux*aout* | linux*coff*)
13692 dynamic_linker=no
13693 ;;
9c60689e 13694
9d54db95
JF
13695linux*android*)
13696 version_type=none # Android doesn't support versioned libraries.
13697 need_lib_prefix=no
13698 need_version=no
13699 library_names_spec='$libname$release$shared_ext'
13700 soname_spec='$libname$release$shared_ext'
13701 finish_cmds=
13702 shlibpath_var=LD_LIBRARY_PATH
13703 shlibpath_overrides_runpath=yes
13704
13705 # This implies no fast_install, which is unacceptable.
13706 # Some rework will be needed to allow for fast_install
13707 # before this can be enabled.
13708 hardcode_into_libs=yes
13709
13710 dynamic_linker='Android linker'
13711 # Don't embed -rpath directories since the linker doesn't support them.
13712 hardcode_libdir_flag_spec='-L$libdir'
13713 ;;
13714
a243b558 13715# This must be glibc/ELF.
9d54db95 13716linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
a243b558
JF
13717 version_type=linux # correct to gnu/linux during the next big refactor
13718 need_lib_prefix=no
13719 need_version=no
9d54db95
JF
13720 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13721 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
13722 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13723 shlibpath_var=LD_LIBRARY_PATH
13724 shlibpath_overrides_runpath=no
9c60689e 13725
a243b558
JF
13726 # Some binutils ld are patched to set DT_RUNPATH
13727 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
9c60689e
DWT
13728 $as_echo_n "(cached) " >&6
13729else
a243b558
JF
13730 lt_cv_shlibpath_overrides_runpath=no
13731 save_LDFLAGS=$LDFLAGS
13732 save_libdir=$libdir
13733 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13734 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13736/* end confdefs.h. */
ee134472 13737
a243b558
JF
13738int
13739main ()
9c60689e 13740{
9c60689e 13741
a243b558
JF
13742 ;
13743 return 0;
13744}
13745_ACEOF
13746if ac_fn_c_try_link "$LINENO"; then :
13747 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13748 lt_cv_shlibpath_overrides_runpath=yes
13749fi
13750fi
13751rm -f core conftest.err conftest.$ac_objext \
13752 conftest$ac_exeext conftest.$ac_ext
13753 LDFLAGS=$save_LDFLAGS
13754 libdir=$save_libdir
9c60689e 13755
a243b558 13756fi
9c60689e 13757
a243b558 13758 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9c60689e 13759
a243b558
JF
13760 # This implies no fast_install, which is unacceptable.
13761 # Some rework will be needed to allow for fast_install
13762 # before this can be enabled.
13763 hardcode_into_libs=yes
9c60689e 13764
9d54db95
JF
13765 # Ideally, we could use ldconfig to report *all* directores which are
13766 # searched for libraries, however this is still not possible. Aside from not
13767 # being certain /sbin/ldconfig is available, command
13768 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13769 # even though it is searched at run-time. Try to do the best guess by
13770 # appending ld.so.conf contents (and includes) to the search path.
a243b558
JF
13771 if test -f /etc/ld.so.conf; then
13772 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' ' '`
13773 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13774 fi
ee134472 13775
a243b558
JF
13776 # We used to test for /lib/ld.so.1 and disable shared libraries on
13777 # powerpc, because MkLinux only supported shared libraries with the
13778 # GNU dynamic linker. Since this was broken with cross compilers,
13779 # most powerpc-linux boxes support dynamic linking these days and
13780 # people can always --disable-shared, the test was removed, and we
13781 # assume the GNU/Linux dynamic linker is in use.
13782 dynamic_linker='GNU/Linux ld.so'
13783 ;;
9c60689e 13784
a243b558
JF
13785netbsd*)
13786 version_type=sunos
13787 need_lib_prefix=no
13788 need_version=no
13789 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9d54db95 13790 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
a243b558
JF
13791 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13792 dynamic_linker='NetBSD (a.out) ld.so'
9c60689e 13793 else
9d54db95
JF
13794 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13795 soname_spec='$libname$release$shared_ext$major'
a243b558 13796 dynamic_linker='NetBSD ld.elf_so'
9c60689e 13797 fi
a243b558
JF
13798 shlibpath_var=LD_LIBRARY_PATH
13799 shlibpath_overrides_runpath=yes
13800 hardcode_into_libs=yes
13801 ;;
9c60689e 13802
a243b558
JF
13803newsos6)
13804 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95 13805 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
a243b558
JF
13806 shlibpath_var=LD_LIBRARY_PATH
13807 shlibpath_overrides_runpath=yes
13808 ;;
9c60689e 13809
a243b558
JF
13810*nto* | *qnx*)
13811 version_type=qnx
13812 need_lib_prefix=no
13813 need_version=no
9d54db95
JF
13814 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13815 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
13816 shlibpath_var=LD_LIBRARY_PATH
13817 shlibpath_overrides_runpath=no
13818 hardcode_into_libs=yes
13819 dynamic_linker='ldqnx.so'
13820 ;;
9c60689e 13821
9d54db95 13822openbsd* | bitrig*)
a243b558 13823 version_type=sunos
9d54db95 13824 sys_lib_dlsearch_path_spec=/usr/lib
a243b558 13825 need_lib_prefix=no
9d54db95
JF
13826 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13827 need_version=no
a243b558 13828 else
9d54db95 13829 need_version=yes
a243b558 13830 fi
9d54db95
JF
13831 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13832 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13833 shlibpath_var=LD_LIBRARY_PATH
13834 shlibpath_overrides_runpath=yes
a243b558 13835 ;;
9c60689e 13836
a243b558
JF
13837os2*)
13838 libname_spec='$name'
9d54db95
JF
13839 version_type=windows
13840 shrext_cmds=.dll
13841 need_version=no
a243b558 13842 need_lib_prefix=no
9d54db95
JF
13843 # OS/2 can only load a DLL with a base name of 8 characters or less.
13844 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13845 v=$($ECHO $release$versuffix | tr -d .-);
13846 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13847 $ECHO $n$v`$shared_ext'
13848 library_names_spec='${libname}_dll.$libext'
a243b558 13849 dynamic_linker='OS/2 ld.exe'
9d54db95
JF
13850 shlibpath_var=BEGINLIBPATH
13851 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13852 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13853 postinstall_cmds='base_file=`basename \$file`~
13854 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13855 dldir=$destdir/`dirname \$dlpath`~
13856 test -d \$dldir || mkdir -p \$dldir~
13857 $install_prog $dir/$dlname \$dldir/$dlname~
13858 chmod a+x \$dldir/$dlname~
13859 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13860 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13861 fi'
13862 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13863 dlpath=$dir/\$dldll~
13864 $RM \$dlpath'
a243b558 13865 ;;
9c60689e 13866
a243b558
JF
13867osf3* | osf4* | osf5*)
13868 version_type=osf
13869 need_lib_prefix=no
13870 need_version=no
9d54db95
JF
13871 soname_spec='$libname$release$shared_ext$major'
13872 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
a243b558
JF
13873 shlibpath_var=LD_LIBRARY_PATH
13874 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9d54db95 13875 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
a243b558
JF
13876 ;;
13877
13878rdos*)
13879 dynamic_linker=no
13880 ;;
13881
13882solaris*)
13883 version_type=linux # correct to gnu/linux during the next big refactor
13884 need_lib_prefix=no
13885 need_version=no
9d54db95
JF
13886 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13887 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
13888 shlibpath_var=LD_LIBRARY_PATH
13889 shlibpath_overrides_runpath=yes
13890 hardcode_into_libs=yes
13891 # ldd complains unless libraries are executable
13892 postinstall_cmds='chmod +x $lib'
13893 ;;
9c60689e 13894
a243b558
JF
13895sunos4*)
13896 version_type=sunos
9d54db95 13897 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
a243b558
JF
13898 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13899 shlibpath_var=LD_LIBRARY_PATH
13900 shlibpath_overrides_runpath=yes
9d54db95 13901 if test yes = "$with_gnu_ld"; then
a243b558
JF
13902 need_lib_prefix=no
13903 fi
13904 need_version=yes
13905 ;;
9c60689e 13906
a243b558
JF
13907sysv4 | sysv4.3*)
13908 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95
JF
13909 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13910 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
13911 shlibpath_var=LD_LIBRARY_PATH
13912 case $host_vendor in
13913 sni)
13914 shlibpath_overrides_runpath=no
13915 need_lib_prefix=no
13916 runpath_var=LD_RUN_PATH
13917 ;;
13918 siemens)
13919 need_lib_prefix=no
13920 ;;
13921 motorola)
13922 need_lib_prefix=no
13923 need_version=no
13924 shlibpath_overrides_runpath=no
13925 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13926 ;;
13927 esac
13928 ;;
9c60689e 13929
a243b558 13930sysv4*MP*)
9d54db95 13931 if test -d /usr/nec; then
a243b558 13932 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95
JF
13933 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13934 soname_spec='$libname$shared_ext.$major'
a243b558
JF
13935 shlibpath_var=LD_LIBRARY_PATH
13936 fi
13937 ;;
9c60689e 13938
a243b558 13939sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9d54db95 13940 version_type=sco
a243b558
JF
13941 need_lib_prefix=no
13942 need_version=no
9d54db95
JF
13943 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13944 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
13945 shlibpath_var=LD_LIBRARY_PATH
13946 shlibpath_overrides_runpath=yes
13947 hardcode_into_libs=yes
9d54db95 13948 if test yes = "$with_gnu_ld"; then
a243b558
JF
13949 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13950 else
13951 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13952 case $host_os in
13953 sco3.2v5*)
13954 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13955 ;;
13956 esac
13957 fi
13958 sys_lib_dlsearch_path_spec='/usr/lib'
13959 ;;
9c60689e 13960
a243b558
JF
13961tpf*)
13962 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13963 version_type=linux # correct to gnu/linux during the next big refactor
13964 need_lib_prefix=no
13965 need_version=no
9d54db95 13966 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
a243b558
JF
13967 shlibpath_var=LD_LIBRARY_PATH
13968 shlibpath_overrides_runpath=no
13969 hardcode_into_libs=yes
13970 ;;
9c60689e 13971
a243b558
JF
13972uts4*)
13973 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95
JF
13974 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13975 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
13976 shlibpath_var=LD_LIBRARY_PATH
13977 ;;
9c60689e 13978
a243b558
JF
13979*)
13980 dynamic_linker=no
13981 ;;
13982esac
13983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13984$as_echo "$dynamic_linker" >&6; }
9d54db95 13985test no = "$dynamic_linker" && can_build_shared=no
9c60689e 13986
a243b558 13987variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9d54db95 13988if test yes = "$GCC"; then
a243b558
JF
13989 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13990fi
9c60689e 13991
9d54db95
JF
13992if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13993 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
a243b558 13994fi
9d54db95
JF
13995
13996if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13997 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
a243b558 13998fi
9c60689e 13999
9d54db95
JF
14000# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14001configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14002
14003# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14004func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14005
14006# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14007configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14008
14009
14010
14011
14012
14013
9c60689e
DWT
14014
14015
14016
14017
14018
14019
14020
9c60689e
DWT
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
9c60689e 14033
9c60689e 14034
9c60689e 14035
9c60689e 14036
9c60689e
DWT
14037
14038
14039
14040
9c60689e 14041
9c60689e
DWT
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
53ba6704
JF
14055
14056
9c60689e
DWT
14057
14058
14059
14060
9c60689e
DWT
14061
14062
3fd51f51 14063
66170b30
JF
14064
14065
14066
3fd51f51 14067
12833ad8
JF
14068
14069
14070
14071
3fd51f51 14072
3fd51f51
DWT
14073
14074
3fd51f51 14075
3fd51f51 14076
3fd51f51 14077
66170b30 14078
632b71ea 14079
632b71ea
DWT
14080
14081
790e5246 14082
66170b30 14083
9c60689e 14084
9c60689e
DWT
14085
14086
9c60689e 14087
9c60689e
DWT
14088
14089
66170b30 14090
66170b30 14091
9c60689e 14092
e9c9a47c
DWT
14093
14094
14095
66170b30
JF
14096
14097
66170b30 14098
e9c9a47c 14099
a243b558
JF
14100
14101
14102
14103
14104
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14106$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14107hardcode_action=
14108if test -n "$hardcode_libdir_flag_spec" ||
14109 test -n "$runpath_var" ||
9d54db95 14110 test yes = "$hardcode_automatic"; then
a243b558
JF
14111
14112 # We can hardcode non-existent directories.
9d54db95 14113 if test no != "$hardcode_direct" &&
a243b558
JF
14114 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14115 # have to relink, otherwise we might link with an installed library
14116 # when we should be linking with a yet-to-be-installed one
9d54db95
JF
14117 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14118 test no != "$hardcode_minus_L"; then
a243b558
JF
14119 # Linking always hardcodes the temporary library directory.
14120 hardcode_action=relink
14121 else
14122 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14123 hardcode_action=immediate
9c60689e 14124 fi
e9c9a47c 14125else
a243b558
JF
14126 # We cannot hardcode anything, or else we can only hardcode existing
14127 # directories.
14128 hardcode_action=unsupported
14129fi
14130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14131$as_echo "$hardcode_action" >&6; }
14132
9d54db95
JF
14133if test relink = "$hardcode_action" ||
14134 test yes = "$inherit_rpath"; then
a243b558
JF
14135 # Fast installation is not supported
14136 enable_fast_install=no
9d54db95
JF
14137elif test yes = "$shlibpath_overrides_runpath" ||
14138 test no = "$enable_shared"; then
a243b558
JF
14139 # Fast installation is not necessary
14140 enable_fast_install=needless
9c60689e 14141fi
9c60689e 14142
9c60689e 14143
66170b30 14144
66170b30 14145
9c60689e 14146
a243b558 14147
9d54db95 14148 if test yes != "$enable_dlopen"; then
a243b558
JF
14149 enable_dlopen=unknown
14150 enable_dlopen_self=unknown
14151 enable_dlopen_self_static=unknown
66170b30 14152else
a243b558
JF
14153 lt_cv_dlopen=no
14154 lt_cv_dlopen_libs=
66170b30 14155
a243b558
JF
14156 case $host_os in
14157 beos*)
9d54db95 14158 lt_cv_dlopen=load_add_on
a243b558
JF
14159 lt_cv_dlopen_libs=
14160 lt_cv_dlopen_self=yes
14161 ;;
66170b30 14162
a243b558 14163 mingw* | pw32* | cegcc*)
9d54db95 14164 lt_cv_dlopen=LoadLibrary
a243b558
JF
14165 lt_cv_dlopen_libs=
14166 ;;
66170b30 14167
a243b558 14168 cygwin*)
9d54db95 14169 lt_cv_dlopen=dlopen
a243b558
JF
14170 lt_cv_dlopen_libs=
14171 ;;
66170b30 14172
a243b558 14173 darwin*)
9d54db95 14174 # if libdl is installed we need to link against it
a243b558
JF
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14176$as_echo_n "checking for dlopen in -ldl... " >&6; }
14177if ${ac_cv_lib_dl_dlopen+:} false; then :
14178 $as_echo_n "(cached) " >&6
14179else
14180 ac_check_lib_save_LIBS=$LIBS
14181LIBS="-ldl $LIBS"
14182cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14183/* end confdefs.h. */
66170b30 14184
a243b558
JF
14185/* Override any GCC internal prototype to avoid an error.
14186 Use char because int might match the return type of a GCC
14187 builtin and then its argument prototype would still apply. */
14188#ifdef __cplusplus
14189extern "C"
14190#endif
14191char dlopen ();
14192int
14193main ()
14194{
14195return dlopen ();
14196 ;
14197 return 0;
14198}
14199_ACEOF
14200if ac_fn_c_try_link "$LINENO"; then :
14201 ac_cv_lib_dl_dlopen=yes
14202else
14203 ac_cv_lib_dl_dlopen=no
66170b30 14204fi
a243b558
JF
14205rm -f core conftest.err conftest.$ac_objext \
14206 conftest$ac_exeext conftest.$ac_ext
14207LIBS=$ac_check_lib_save_LIBS
66170b30 14208fi
a243b558
JF
14209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14210$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14211if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9d54db95 14212 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
a243b558 14213else
66170b30 14214
9d54db95 14215 lt_cv_dlopen=dyld
a243b558
JF
14216 lt_cv_dlopen_libs=
14217 lt_cv_dlopen_self=yes
66170b30 14218
a243b558 14219fi
9c60689e 14220
a243b558 14221 ;;
9c60689e 14222
9d54db95
JF
14223 tpf*)
14224 # Don't try to run any link tests for TPF. We know it's impossible
14225 # because TPF is a cross-compiler, and we know how we open DSOs.
14226 lt_cv_dlopen=dlopen
14227 lt_cv_dlopen_libs=
14228 lt_cv_dlopen_self=no
14229 ;;
14230
a243b558
JF
14231 *)
14232 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14233if test "x$ac_cv_func_shl_load" = xyes; then :
9d54db95 14234 lt_cv_dlopen=shl_load
a243b558
JF
14235else
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14237$as_echo_n "checking for shl_load in -ldld... " >&6; }
14238if ${ac_cv_lib_dld_shl_load+:} false; then :
14239 $as_echo_n "(cached) " >&6
14240else
14241 ac_check_lib_save_LIBS=$LIBS
14242LIBS="-ldld $LIBS"
14243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14244/* end confdefs.h. */
66170b30 14245
a243b558
JF
14246/* Override any GCC internal prototype to avoid an error.
14247 Use char because int might match the return type of a GCC
14248 builtin and then its argument prototype would still apply. */
14249#ifdef __cplusplus
14250extern "C"
14251#endif
14252char shl_load ();
14253int
14254main ()
14255{
14256return shl_load ();
14257 ;
14258 return 0;
14259}
14260_ACEOF
14261if ac_fn_c_try_link "$LINENO"; then :
14262 ac_cv_lib_dld_shl_load=yes
66170b30 14263else
a243b558
JF
14264 ac_cv_lib_dld_shl_load=no
14265fi
14266rm -f core conftest.err conftest.$ac_objext \
14267 conftest$ac_exeext conftest.$ac_ext
14268LIBS=$ac_check_lib_save_LIBS
66170b30 14269fi
a243b558
JF
14270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14271$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14272if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9d54db95 14273 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
a243b558
JF
14274else
14275 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14276if test "x$ac_cv_func_dlopen" = xyes; then :
9d54db95 14277 lt_cv_dlopen=dlopen
a243b558
JF
14278else
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14280$as_echo_n "checking for dlopen in -ldl... " >&6; }
14281if ${ac_cv_lib_dl_dlopen+:} false; then :
14282 $as_echo_n "(cached) " >&6
14283else
14284 ac_check_lib_save_LIBS=$LIBS
14285LIBS="-ldl $LIBS"
14286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14287/* end confdefs.h. */
e9c9a47c 14288
a243b558
JF
14289/* Override any GCC internal prototype to avoid an error.
14290 Use char because int might match the return type of a GCC
14291 builtin and then its argument prototype would still apply. */
14292#ifdef __cplusplus
14293extern "C"
14294#endif
14295char dlopen ();
14296int
14297main ()
14298{
14299return dlopen ();
14300 ;
14301 return 0;
14302}
14303_ACEOF
14304if ac_fn_c_try_link "$LINENO"; then :
14305 ac_cv_lib_dl_dlopen=yes
14306else
14307 ac_cv_lib_dl_dlopen=no
14308fi
14309rm -f core conftest.err conftest.$ac_objext \
14310 conftest$ac_exeext conftest.$ac_ext
14311LIBS=$ac_check_lib_save_LIBS
14312fi
14313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14314$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14315if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9d54db95 14316 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
a243b558
JF
14317else
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14319$as_echo_n "checking for dlopen in -lsvld... " >&6; }
14320if ${ac_cv_lib_svld_dlopen+:} false; then :
14321 $as_echo_n "(cached) " >&6
14322else
14323 ac_check_lib_save_LIBS=$LIBS
14324LIBS="-lsvld $LIBS"
14325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14326/* end confdefs.h. */
14327
14328/* Override any GCC internal prototype to avoid an error.
14329 Use char because int might match the return type of a GCC
14330 builtin and then its argument prototype would still apply. */
14331#ifdef __cplusplus
14332extern "C"
14333#endif
14334char dlopen ();
14335int
14336main ()
14337{
14338return dlopen ();
14339 ;
14340 return 0;
14341}
14342_ACEOF
14343if ac_fn_c_try_link "$LINENO"; then :
14344 ac_cv_lib_svld_dlopen=yes
14345else
14346 ac_cv_lib_svld_dlopen=no
14347fi
14348rm -f core conftest.err conftest.$ac_objext \
14349 conftest$ac_exeext conftest.$ac_ext
14350LIBS=$ac_check_lib_save_LIBS
14351fi
14352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14353$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14354if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9d54db95 14355 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
a243b558
JF
14356else
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14358$as_echo_n "checking for dld_link in -ldld... " >&6; }
14359if ${ac_cv_lib_dld_dld_link+:} false; then :
14360 $as_echo_n "(cached) " >&6
14361else
14362 ac_check_lib_save_LIBS=$LIBS
14363LIBS="-ldld $LIBS"
14364cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14365/* end confdefs.h. */
14366
14367/* Override any GCC internal prototype to avoid an error.
14368 Use char because int might match the return type of a GCC
14369 builtin and then its argument prototype would still apply. */
14370#ifdef __cplusplus
14371extern "C"
14372#endif
14373char dld_link ();
14374int
14375main ()
14376{
14377return dld_link ();
14378 ;
14379 return 0;
14380}
14381_ACEOF
14382if ac_fn_c_try_link "$LINENO"; then :
14383 ac_cv_lib_dld_dld_link=yes
9c60689e 14384else
a243b558
JF
14385 ac_cv_lib_dld_dld_link=no
14386fi
14387rm -f core conftest.err conftest.$ac_objext \
14388 conftest$ac_exeext conftest.$ac_ext
14389LIBS=$ac_check_lib_save_LIBS
14390fi
14391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14392$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14393if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9d54db95 14394 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
9c60689e
DWT
14395fi
14396
14397
a243b558 14398fi
66170b30 14399
66170b30 14400
a243b558 14401fi
66170b30 14402
66170b30
JF
14403
14404fi
e9c9a47c 14405
66170b30 14406
a243b558 14407fi
66170b30 14408
66170b30 14409
66170b30 14410fi
e9c9a47c 14411
a243b558
JF
14412 ;;
14413 esac
9c60689e 14414
9d54db95 14415 if test no = "$lt_cv_dlopen"; then
a243b558 14416 enable_dlopen=no
9d54db95
JF
14417 else
14418 enable_dlopen=yes
a243b558 14419 fi
9c60689e 14420
a243b558
JF
14421 case $lt_cv_dlopen in
14422 dlopen)
9d54db95
JF
14423 save_CPPFLAGS=$CPPFLAGS
14424 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
66170b30 14425
9d54db95 14426 save_LDFLAGS=$LDFLAGS
a243b558 14427 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
66170b30 14428
9d54db95 14429 save_LIBS=$LIBS
a243b558 14430 LIBS="$lt_cv_dlopen_libs $LIBS"
3fd51f51 14431
a243b558
JF
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14433$as_echo_n "checking whether a program can dlopen itself... " >&6; }
14434if ${lt_cv_dlopen_self+:} false; then :
14435 $as_echo_n "(cached) " >&6
e9c9a47c 14436else
9d54db95 14437 if test yes = "$cross_compiling"; then :
a243b558
JF
14438 lt_cv_dlopen_self=cross
14439else
14440 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14441 lt_status=$lt_dlunknown
14442 cat > conftest.$ac_ext <<_LT_EOF
14443#line $LINENO "configure"
14444#include "confdefs.h"
e9c9a47c 14445
a243b558
JF
14446#if HAVE_DLFCN_H
14447#include <dlfcn.h>
14448#endif
e9c9a47c 14449
a243b558 14450#include <stdio.h>
66170b30 14451
a243b558
JF
14452#ifdef RTLD_GLOBAL
14453# define LT_DLGLOBAL RTLD_GLOBAL
14454#else
14455# ifdef DL_GLOBAL
14456# define LT_DLGLOBAL DL_GLOBAL
14457# else
14458# define LT_DLGLOBAL 0
14459# endif
14460#endif
66170b30 14461
a243b558
JF
14462/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14463 find out it does not work in some platform. */
14464#ifndef LT_DLLAZY_OR_NOW
14465# ifdef RTLD_LAZY
14466# define LT_DLLAZY_OR_NOW RTLD_LAZY
14467# else
14468# ifdef DL_LAZY
14469# define LT_DLLAZY_OR_NOW DL_LAZY
14470# else
14471# ifdef RTLD_NOW
14472# define LT_DLLAZY_OR_NOW RTLD_NOW
14473# else
14474# ifdef DL_NOW
14475# define LT_DLLAZY_OR_NOW DL_NOW
14476# else
14477# define LT_DLLAZY_OR_NOW 0
14478# endif
14479# endif
14480# endif
14481# endif
14482#endif
e9c9a47c 14483
9d54db95 14484/* When -fvisibility=hidden is used, assume the code has been annotated
a243b558 14485 correspondingly for the symbols needed. */
9d54db95 14486#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
a243b558
JF
14487int fnord () __attribute__((visibility("default")));
14488#endif
e9c9a47c 14489
a243b558
JF
14490int fnord () { return 42; }
14491int main ()
14492{
14493 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14494 int status = $lt_dlunknown;
e9c9a47c 14495
a243b558
JF
14496 if (self)
14497 {
14498 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14499 else
14500 {
14501 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14502 else puts (dlerror ());
14503 }
14504 /* dlclose (self); */
14505 }
14506 else
14507 puts (dlerror ());
e9c9a47c 14508
a243b558
JF
14509 return status;
14510}
14511_LT_EOF
14512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14513 (eval $ac_link) 2>&5
14514 ac_status=$?
14515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9d54db95 14516 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
a243b558
JF
14517 (./conftest; exit; ) >&5 2>/dev/null
14518 lt_status=$?
14519 case x$lt_status in
14520 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14521 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14522 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14523 esac
14524 else :
14525 # compilation failed
14526 lt_cv_dlopen_self=no
14527 fi
14528fi
14529rm -fr conftest*
e9c9a47c 14530
e9c9a47c 14531
e9c9a47c 14532fi
a243b558
JF
14533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14534$as_echo "$lt_cv_dlopen_self" >&6; }
e9c9a47c 14535
9d54db95 14536 if test yes = "$lt_cv_dlopen_self"; then
a243b558
JF
14537 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14539$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14540if ${lt_cv_dlopen_self_static+:} false; then :
14541 $as_echo_n "(cached) " >&6
e9c9a47c 14542else
9d54db95 14543 if test yes = "$cross_compiling"; then :
a243b558
JF
14544 lt_cv_dlopen_self_static=cross
14545else
14546 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14547 lt_status=$lt_dlunknown
14548 cat > conftest.$ac_ext <<_LT_EOF
14549#line $LINENO "configure"
14550#include "confdefs.h"
14551
14552#if HAVE_DLFCN_H
14553#include <dlfcn.h>
14554#endif
14555
14556#include <stdio.h>
e9c9a47c 14557
a243b558
JF
14558#ifdef RTLD_GLOBAL
14559# define LT_DLGLOBAL RTLD_GLOBAL
14560#else
14561# ifdef DL_GLOBAL
14562# define LT_DLGLOBAL DL_GLOBAL
14563# else
14564# define LT_DLGLOBAL 0
14565# endif
14566#endif
e9c9a47c 14567
a243b558
JF
14568/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14569 find out it does not work in some platform. */
14570#ifndef LT_DLLAZY_OR_NOW
14571# ifdef RTLD_LAZY
14572# define LT_DLLAZY_OR_NOW RTLD_LAZY
14573# else
14574# ifdef DL_LAZY
14575# define LT_DLLAZY_OR_NOW DL_LAZY
14576# else
14577# ifdef RTLD_NOW
14578# define LT_DLLAZY_OR_NOW RTLD_NOW
14579# else
14580# ifdef DL_NOW
14581# define LT_DLLAZY_OR_NOW DL_NOW
14582# else
14583# define LT_DLLAZY_OR_NOW 0
14584# endif
14585# endif
14586# endif
14587# endif
14588#endif
66170b30 14589
9d54db95 14590/* When -fvisibility=hidden is used, assume the code has been annotated
a243b558 14591 correspondingly for the symbols needed. */
9d54db95 14592#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
a243b558
JF
14593int fnord () __attribute__((visibility("default")));
14594#endif
e9c9a47c 14595
a243b558
JF
14596int fnord () { return 42; }
14597int main ()
14598{
14599 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14600 int status = $lt_dlunknown;
e9c9a47c 14601
a243b558
JF
14602 if (self)
14603 {
14604 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14605 else
14606 {
14607 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14608 else puts (dlerror ());
14609 }
14610 /* dlclose (self); */
14611 }
14612 else
14613 puts (dlerror ());
e9c9a47c 14614
a243b558
JF
14615 return status;
14616}
14617_LT_EOF
14618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14619 (eval $ac_link) 2>&5
14620 ac_status=$?
14621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9d54db95 14622 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
a243b558
JF
14623 (./conftest; exit; ) >&5 2>/dev/null
14624 lt_status=$?
14625 case x$lt_status in
14626 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14627 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14628 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14629 esac
14630 else :
14631 # compilation failed
14632 lt_cv_dlopen_self_static=no
14633 fi
14634fi
14635rm -fr conftest*
e9c9a47c 14636
b65019fe 14637
a243b558
JF
14638fi
14639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14640$as_echo "$lt_cv_dlopen_self_static" >&6; }
14641 fi
66170b30 14642
9d54db95
JF
14643 CPPFLAGS=$save_CPPFLAGS
14644 LDFLAGS=$save_LDFLAGS
14645 LIBS=$save_LIBS
a243b558
JF
14646 ;;
14647 esac
66170b30 14648
a243b558
JF
14649 case $lt_cv_dlopen_self in
14650 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14651 *) enable_dlopen_self=unknown ;;
14652 esac
14653
14654 case $lt_cv_dlopen_self_static in
14655 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14656 *) enable_dlopen_self_static=unknown ;;
14657 esac
b65019fe
DWT
14658fi
14659
14660
66170b30 14661
b65019fe 14662
e9c9a47c 14663
e9c9a47c
DWT
14664
14665
e9c9a47c 14666
e9c9a47c
DWT
14667
14668
e9c9a47c 14669
e9c9a47c 14670
3530897b 14671
47aaa820 14672
47aaa820 14673
a243b558
JF
14674
14675
14676striplib=
14677old_striplib=
14678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14679$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14680if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14681 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14682 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14684$as_echo "yes" >&6; }
47aaa820 14685else
a243b558
JF
14686# FIXME - insert some real tests, host_os isn't really good enough
14687 case $host_os in
14688 darwin*)
9d54db95 14689 if test -n "$STRIP"; then
a243b558
JF
14690 striplib="$STRIP -x"
14691 old_striplib="$STRIP -S"
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14693$as_echo "yes" >&6; }
14694 else
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14696$as_echo "no" >&6; }
14697 fi
14698 ;;
14699 *)
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14701$as_echo "no" >&6; }
14702 ;;
14703 esac
3530897b 14704fi
47aaa820 14705
3530897b
DWT
14706
14707
9c60689e 14708
9c60689e 14709
9c60689e 14710
9c60689e 14711
9c60689e 14712
66170b30 14713
66170b30 14714
66170b30 14715
66170b30 14716
9d54db95 14717 # Report what library types will actually be built
a243b558
JF
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14719$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14721$as_echo "$can_build_shared" >&6; }
66170b30 14722
a243b558
JF
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14724$as_echo_n "checking whether to build shared libraries... " >&6; }
9d54db95 14725 test no = "$can_build_shared" && enable_shared=no
66170b30 14726
a243b558
JF
14727 # On AIX, shared libraries and static libraries use the same namespace, and
14728 # are all built from PIC.
14729 case $host_os in
14730 aix3*)
9d54db95 14731 test yes = "$enable_shared" && enable_static=no
a243b558
JF
14732 if test -n "$RANLIB"; then
14733 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14734 postinstall_cmds='$RANLIB $lib'
14735 fi
14736 ;;
66170b30 14737
a243b558 14738 aix[4-9]*)
9d54db95
JF
14739 if test ia64 != "$host_cpu"; then
14740 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14741 yes,aix,yes) ;; # shared object as lib.so file only
14742 yes,svr4,*) ;; # shared object as lib.so archive member only
14743 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14744 esac
a243b558
JF
14745 fi
14746 ;;
14747 esac
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14749$as_echo "$enable_shared" >&6; }
66170b30 14750
a243b558
JF
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14752$as_echo_n "checking whether to build static libraries... " >&6; }
14753 # Make sure either enable_shared or enable_static is yes.
9d54db95 14754 test yes = "$enable_shared" || enable_static=yes
a243b558
JF
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14756$as_echo "$enable_static" >&6; }
66170b30 14757
9c60689e 14758
e9c9a47c 14759
9c60689e 14760
a243b558
JF
14761fi
14762ac_ext=c
14763ac_cpp='$CPP $CPPFLAGS'
14764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14766ac_compiler_gnu=$ac_cv_c_compiler_gnu
14767
9d54db95 14768CC=$lt_save_CC
e9c9a47c 14769
9d54db95
JF
14770 if test -n "$CXX" && ( test no != "$CXX" &&
14771 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14772 (test g++ != "$CXX"))); then
e9c9a47c
DWT
14773 ac_ext=cpp
14774ac_cpp='$CXXCPP $CPPFLAGS'
14775ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14776ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14777ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14779$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14780if test -z "$CXXCPP"; then
ee134472 14781 if ${ac_cv_prog_CXXCPP+:} false; then :
e9c9a47c
DWT
14782 $as_echo_n "(cached) " >&6
14783else
14784 # Double quotes because CXXCPP needs to be expanded
14785 for CXXCPP in "$CXX -E" "/lib/cpp"
14786 do
14787 ac_preproc_ok=false
14788for ac_cxx_preproc_warn_flag in '' yes
14789do
14790 # Use a header file that comes with gcc, so configuring glibc
14791 # with a fresh cross-compiler works.
14792 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14793 # <limits.h> exists even on freestanding compilers.
14794 # On the NeXT, cc -E runs the code through the compiler's parser,
14795 # not just through cpp. "Syntax error" is here to catch this case.
14796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14797/* end confdefs.h. */
14798#ifdef __STDC__
14799# include <limits.h>
14800#else
14801# include <assert.h>
14802#endif
14803 Syntax error
14804_ACEOF
14805if ac_fn_cxx_try_cpp "$LINENO"; then :
14806
14807else
14808 # Broken: fails on valid input.
14809continue
14810fi
12833ad8 14811rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
14812
14813 # OK, works on sane cases. Now check whether nonexistent headers
14814 # can be detected and how.
14815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14816/* end confdefs.h. */
14817#include <ac_nonexistent.h>
14818_ACEOF
14819if ac_fn_cxx_try_cpp "$LINENO"; then :
14820 # Broken: success on invalid input.
14821continue
14822else
14823 # Passes both tests.
14824ac_preproc_ok=:
14825break
14826fi
12833ad8 14827rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
14828
14829done
14830# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12833ad8 14831rm -f conftest.i conftest.err conftest.$ac_ext
e9c9a47c
DWT
14832if $ac_preproc_ok; then :
14833 break
14834fi
14835
14836 done
14837 ac_cv_prog_CXXCPP=$CXXCPP
14838
14839fi
14840 CXXCPP=$ac_cv_prog_CXXCPP
14841else
14842 ac_cv_prog_CXXCPP=$CXXCPP
14843fi
14844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14845$as_echo "$CXXCPP" >&6; }
14846ac_preproc_ok=false
14847for ac_cxx_preproc_warn_flag in '' yes
14848do
14849 # Use a header file that comes with gcc, so configuring glibc
14850 # with a fresh cross-compiler works.
14851 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14852 # <limits.h> exists even on freestanding compilers.
14853 # On the NeXT, cc -E runs the code through the compiler's parser,
14854 # not just through cpp. "Syntax error" is here to catch this case.
14855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14856/* end confdefs.h. */
14857#ifdef __STDC__
14858# include <limits.h>
14859#else
14860# include <assert.h>
14861#endif
14862 Syntax error
14863_ACEOF
14864if ac_fn_cxx_try_cpp "$LINENO"; then :
14865
14866else
14867 # Broken: fails on valid input.
14868continue
14869fi
12833ad8 14870rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
14871
14872 # OK, works on sane cases. Now check whether nonexistent headers
14873 # can be detected and how.
14874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14875/* end confdefs.h. */
14876#include <ac_nonexistent.h>
14877_ACEOF
14878if ac_fn_cxx_try_cpp "$LINENO"; then :
14879 # Broken: success on invalid input.
14880continue
14881else
14882 # Passes both tests.
14883ac_preproc_ok=:
14884break
14885fi
12833ad8 14886rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
14887
14888done
14889# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12833ad8 14890rm -f conftest.i conftest.err conftest.$ac_ext
e9c9a47c
DWT
14891if $ac_preproc_ok; then :
14892
14893else
14894 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14895$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ee134472
JF
14896as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14897See \`config.log' for more details" "$LINENO" 5; }
e9c9a47c
DWT
14898fi
14899
a243b558
JF
14900ac_ext=c
14901ac_cpp='$CPP $CPPFLAGS'
14902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14904ac_compiler_gnu=$ac_cv_c_compiler_gnu
66170b30
JF
14905
14906else
e9c9a47c
DWT
14907 _lt_caught_CXX_error=yes
14908fi
14909
9c60689e
DWT
14910ac_ext=cpp
14911ac_cpp='$CXXCPP $CPPFLAGS'
14912ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14913ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14914ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9c60689e 14915
47aaa820
DWT
14916archive_cmds_need_lc_CXX=no
14917allow_undefined_flag_CXX=
14918always_export_symbols_CXX=no
14919archive_expsym_cmds_CXX=
14920compiler_needs_object_CXX=no
14921export_dynamic_flag_spec_CXX=
14922hardcode_direct_CXX=no
14923hardcode_direct_absolute_CXX=no
14924hardcode_libdir_flag_spec_CXX=
47aaa820
DWT
14925hardcode_libdir_separator_CXX=
14926hardcode_minus_L_CXX=no
14927hardcode_shlibpath_var_CXX=unsupported
14928hardcode_automatic_CXX=no
14929inherit_rpath_CXX=no
14930module_cmds_CXX=
14931module_expsym_cmds_CXX=
14932link_all_deplibs_CXX=unknown
14933old_archive_cmds_CXX=$old_archive_cmds
ee134472
JF
14934reload_flag_CXX=$reload_flag
14935reload_cmds_CXX=$reload_cmds
47aaa820
DWT
14936no_undefined_flag_CXX=
14937whole_archive_flag_spec_CXX=
14938enable_shared_with_static_runtimes_CXX=no
9c60689e 14939
47aaa820
DWT
14940# Source file extension for C++ test sources.
14941ac_ext=cpp
9c60689e 14942
47aaa820
DWT
14943# Object file extension for compiled C++ test sources.
14944objext=o
14945objext_CXX=$objext
9c60689e 14946
47aaa820
DWT
14947# No sense in running all these tests if we already determined that
14948# the CXX compiler isn't working. Some variables (like enable_shared)
14949# are currently assumed to apply to all compilers on this platform,
14950# and will be corrupted by setting them based on a non-working compiler.
9d54db95 14951if test yes != "$_lt_caught_CXX_error"; then
47aaa820
DWT
14952 # Code to be used in simple compile tests
14953 lt_simple_compile_test_code="int some_variable = 0;"
9c60689e 14954
47aaa820
DWT
14955 # Code to be used in simple link tests
14956 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
9c60689e 14957
47aaa820 14958 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9c60689e 14959
9c60689e 14960
9c60689e 14961
9c60689e 14962
9c60689e 14963
9c60689e 14964
47aaa820
DWT
14965# If no C compiler was specified, use CC.
14966LTCC=${LTCC-"$CC"}
9c60689e 14967
47aaa820
DWT
14968# If no C compiler flags were specified, use CFLAGS.
14969LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9c60689e 14970
47aaa820
DWT
14971# Allow CC to be a program name with arguments.
14972compiler=$CC
9c60689e 14973
9c60689e 14974
47aaa820
DWT
14975 # save warnings/boilerplate of simple test code
14976 ac_outfile=conftest.$ac_objext
14977echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14978eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14979_lt_compiler_boilerplate=`cat conftest.err`
00a96142 14980$RM -r conftest*
9c60689e 14981
47aaa820
DWT
14982 ac_outfile=conftest.$ac_objext
14983echo "$lt_simple_link_test_code" >conftest.$ac_ext
14984eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14985_lt_linker_boilerplate=`cat conftest.err`
14986$RM -r conftest*
9c60689e 14987
9c60689e 14988
47aaa820
DWT
14989 # Allow CC to be a program name with arguments.
14990 lt_save_CC=$CC
ee134472 14991 lt_save_CFLAGS=$CFLAGS
47aaa820
DWT
14992 lt_save_LD=$LD
14993 lt_save_GCC=$GCC
14994 GCC=$GXX
14995 lt_save_with_gnu_ld=$with_gnu_ld
14996 lt_save_path_LD=$lt_cv_path_LD
14997 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14998 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9c60689e 14999 else
47aaa820 15000 $as_unset lt_cv_prog_gnu_ld
9c60689e 15001 fi
47aaa820
DWT
15002 if test -n "${lt_cv_path_LDCXX+set}"; then
15003 lt_cv_path_LD=$lt_cv_path_LDCXX
9c60689e 15004 else
47aaa820 15005 $as_unset lt_cv_path_LD
9c60689e 15006 fi
47aaa820
DWT
15007 test -z "${LDCXX+set}" || LD=$LDCXX
15008 CC=${CXX-"c++"}
ee134472 15009 CFLAGS=$CXXFLAGS
47aaa820
DWT
15010 compiler=$CC
15011 compiler_CXX=$CC
9d54db95
JF
15012 func_cc_basename $compiler
15013cc_basename=$func_cc_basename_result
9c60689e
DWT
15014
15015
47aaa820
DWT
15016 if test -n "$compiler"; then
15017 # We don't want -fno-exception when compiling C++ code, so set the
15018 # no_builtin_flag separately
9d54db95 15019 if test yes = "$GXX"; then
47aaa820
DWT
15020 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15021 else
15022 lt_prog_compiler_no_builtin_flag_CXX=
15023 fi
9c60689e 15024
9d54db95 15025 if test yes = "$GXX"; then
47aaa820
DWT
15026 # Set up default GNU C++ configuration
15027
15028
15029
15030# Check whether --with-gnu-ld was given.
15031if test "${with_gnu_ld+set}" = set; then :
9d54db95 15032 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
9c60689e 15033else
47aaa820 15034 with_gnu_ld=no
9c60689e
DWT
15035fi
15036
47aaa820 15037ac_prog=ld
9d54db95 15038if test yes = "$GCC"; then
47aaa820
DWT
15039 # Check if gcc -print-prog-name=ld gives a path.
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15041$as_echo_n "checking for ld used by $CC... " >&6; }
15042 case $host in
15043 *-*-mingw*)
9d54db95 15044 # gcc leaves a trailing carriage return, which upsets mingw
47aaa820
DWT
15045 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15046 *)
15047 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15048 esac
15049 case $ac_prog in
15050 # Accept absolute paths.
15051 [\\/]* | ?:[\\/]*)
15052 re_direlt='/[^/][^/]*/\.\./'
15053 # Canonicalize the pathname of ld
15054 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15055 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15056 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15057 done
9d54db95 15058 test -z "$LD" && LD=$ac_prog
47aaa820
DWT
15059 ;;
15060 "")
15061 # If it fails, then pretend we aren't using GCC.
15062 ac_prog=ld
15063 ;;
15064 *)
15065 # If it is relative, then search for the first ld in PATH.
15066 with_gnu_ld=unknown
15067 ;;
15068 esac
9d54db95 15069elif test yes = "$with_gnu_ld"; then
47aaa820
DWT
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15071$as_echo_n "checking for GNU ld... " >&6; }
15072else
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15074$as_echo_n "checking for non-GNU ld... " >&6; }
9c60689e 15075fi
ee134472 15076if ${lt_cv_path_LD+:} false; then :
9c60689e
DWT
15077 $as_echo_n "(cached) " >&6
15078else
47aaa820 15079 if test -z "$LD"; then
9d54db95 15080 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
47aaa820 15081 for ac_dir in $PATH; do
9d54db95 15082 IFS=$lt_save_ifs
47aaa820
DWT
15083 test -z "$ac_dir" && ac_dir=.
15084 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9d54db95 15085 lt_cv_path_LD=$ac_dir/$ac_prog
47aaa820
DWT
15086 # Check to see if the program is GNU ld. I'd rather use --version,
15087 # but apparently some variants of GNU ld only accept -v.
15088 # Break only if it was the GNU/non-GNU ld that we prefer.
15089 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15090 *GNU* | *'with BFD'*)
9d54db95 15091 test no != "$with_gnu_ld" && break
47aaa820
DWT
15092 ;;
15093 *)
9d54db95 15094 test yes != "$with_gnu_ld" && break
47aaa820
DWT
15095 ;;
15096 esac
15097 fi
9c60689e 15098 done
9d54db95 15099 IFS=$lt_save_ifs
47aaa820 15100else
9d54db95 15101 lt_cv_path_LD=$LD # Let the user override the test with a path.
9c60689e
DWT
15102fi
15103fi
47aaa820 15104
9d54db95 15105LD=$lt_cv_path_LD
47aaa820
DWT
15106if test -n "$LD"; then
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15108$as_echo "$LD" >&6; }
9c60689e
DWT
15109else
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15111$as_echo "no" >&6; }
15112fi
12833ad8 15113test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
47aaa820
DWT
15114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15115$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
ee134472 15116if ${lt_cv_prog_gnu_ld+:} false; then :
47aaa820
DWT
15117 $as_echo_n "(cached) " >&6
15118else
15119 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15120case `$LD -v 2>&1 </dev/null` in
15121*GNU* | *'with BFD'*)
15122 lt_cv_prog_gnu_ld=yes
15123 ;;
15124*)
15125 lt_cv_prog_gnu_ld=no
15126 ;;
15127esac
15128fi
15129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15130$as_echo "$lt_cv_prog_gnu_ld" >&6; }
15131with_gnu_ld=$lt_cv_prog_gnu_ld
9c60689e
DWT
15132
15133
9c60689e 15134
9c60689e 15135
9c60689e 15136
9c60689e 15137
9c60689e 15138
47aaa820
DWT
15139 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15140 # archiving commands below assume that GNU ld is being used.
9d54db95
JF
15141 if test yes = "$with_gnu_ld"; then
15142 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15143 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9c60689e 15144
9d54db95
JF
15145 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15146 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
9c60689e 15147
47aaa820
DWT
15148 # If archive_cmds runs LD, not CC, wlarc should be empty
15149 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15150 # investigate it a little bit more. (MM)
9d54db95 15151 wlarc='$wl'
9c60689e 15152
47aaa820
DWT
15153 # ancient GNU ld didn't support --whole-archive et. al.
15154 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15155 $GREP 'no-whole-archive' > /dev/null; then
9d54db95 15156 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
47aaa820
DWT
15157 else
15158 whole_archive_flag_spec_CXX=
15159 fi
15160 else
15161 with_gnu_ld=no
15162 wlarc=
15163
15164 # A generic and very simple default shared library creation
15165 # command for GNU C++ for the case where it uses the native
15166 # linker, instead of GNU ld. If possible, this setting should
15167 # overridden to take advantage of the native linker features on
15168 # the platform it is being used on.
15169 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15170 fi
15171
15172 # Commands to make compiler produce verbose output that lists
15173 # what "hidden" libraries, object files and flags are used when
15174 # linking a shared library.
ee134472 15175 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820
DWT
15176
15177 else
15178 GXX=no
15179 with_gnu_ld=no
15180 wlarc=
15181 fi
15182
15183 # PORTME: fill in a description of your system's C++ link characteristics
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15185$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15186 ld_shlibs_CXX=yes
15187 case $host_os in
15188 aix3*)
15189 # FIXME: insert proper C++ library support
15190 ld_shlibs_CXX=no
15191 ;;
15192 aix[4-9]*)
9d54db95 15193 if test ia64 = "$host_cpu"; then
47aaa820
DWT
15194 # On IA64, the linker does run time linking by default, so we don't
15195 # have to do anything special.
15196 aix_use_runtimelinking=no
15197 exp_sym_flag='-Bexport'
9d54db95 15198 no_entry_flag=
47aaa820
DWT
15199 else
15200 aix_use_runtimelinking=no
15201
15202 # Test if we are trying to use run time linking or normal
15203 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9d54db95
JF
15204 # have runtime linking enabled, and use it for executables.
15205 # For shared libraries, we enable/disable runtime linking
15206 # depending on the kind of the shared library created -
15207 # when "with_aix_soname,aix_use_runtimelinking" is:
15208 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
15209 # "aix,yes" lib.so shared, rtl:yes, for executables
15210 # lib.a static archive
15211 # "both,no" lib.so.V(shr.o) shared, rtl:yes
15212 # lib.a(lib.so.V) shared, rtl:no, for executables
15213 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15214 # lib.a(lib.so.V) shared, rtl:no
15215 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
15216 # lib.a static archive
47aaa820
DWT
15217 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15218 for ld_flag in $LDFLAGS; do
15219 case $ld_flag in
15220 *-brtl*)
15221 aix_use_runtimelinking=yes
15222 break
15223 ;;
15224 esac
15225 done
9d54db95
JF
15226 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15227 # With aix-soname=svr4, we create the lib.so.V shared archives only,
15228 # so we don't have lib.a shared libs to link our executables.
15229 # We have to force runtime linking in this case.
15230 aix_use_runtimelinking=yes
15231 LDFLAGS="$LDFLAGS -Wl,-brtl"
15232 fi
47aaa820
DWT
15233 ;;
15234 esac
15235
15236 exp_sym_flag='-bexport'
15237 no_entry_flag='-bnoentry'
15238 fi
15239
15240 # When large executables or shared objects are built, AIX ld can
15241 # have problems creating the table of contents. If linking a library
15242 # or program results in "error TOC overflow" add -mminimal-toc to
15243 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15244 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15245
15246 archive_cmds_CXX=''
15247 hardcode_direct_CXX=yes
15248 hardcode_direct_absolute_CXX=yes
15249 hardcode_libdir_separator_CXX=':'
15250 link_all_deplibs_CXX=yes
9d54db95
JF
15251 file_list_spec_CXX='$wl-f,'
15252 case $with_aix_soname,$aix_use_runtimelinking in
15253 aix,*) ;; # no import file
15254 svr4,* | *,yes) # use import file
15255 # The Import File defines what to hardcode.
15256 hardcode_direct_CXX=no
15257 hardcode_direct_absolute_CXX=no
15258 ;;
15259 esac
47aaa820 15260
9d54db95 15261 if test yes = "$GXX"; then
47aaa820
DWT
15262 case $host_os in aix4.[012]|aix4.[012].*)
15263 # We only want to do this on AIX 4.2 and lower, the check
15264 # below for broken collect2 doesn't work under 4.3+
9d54db95 15265 collect2name=`$CC -print-prog-name=collect2`
47aaa820
DWT
15266 if test -f "$collect2name" &&
15267 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15268 then
15269 # We have reworked collect2
15270 :
15271 else
15272 # We have old collect2
15273 hardcode_direct_CXX=unsupported
15274 # It fails to find uninstalled libraries when the uninstalled
15275 # path is not listed in the libpath. Setting hardcode_minus_L
15276 # to unsupported forces relinking
15277 hardcode_minus_L_CXX=yes
15278 hardcode_libdir_flag_spec_CXX='-L$libdir'
15279 hardcode_libdir_separator_CXX=
15280 fi
15281 esac
15282 shared_flag='-shared'
9d54db95
JF
15283 if test yes = "$aix_use_runtimelinking"; then
15284 shared_flag=$shared_flag' $wl-G'
47aaa820 15285 fi
9d54db95
JF
15286 # Need to ensure runtime linking is disabled for the traditional
15287 # shared library, or the linker may eventually find shared libraries
15288 # /with/ Import File - we do not want to mix them.
15289 shared_flag_aix='-shared'
15290 shared_flag_svr4='-shared $wl-G'
47aaa820
DWT
15291 else
15292 # not using gcc
9d54db95 15293 if test ia64 = "$host_cpu"; then
47aaa820
DWT
15294 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15295 # chokes on -Wl,-G. The following line is correct:
15296 shared_flag='-G'
15297 else
9d54db95
JF
15298 if test yes = "$aix_use_runtimelinking"; then
15299 shared_flag='$wl-G'
47aaa820 15300 else
9d54db95 15301 shared_flag='$wl-bM:SRE'
47aaa820 15302 fi
9d54db95
JF
15303 shared_flag_aix='$wl-bM:SRE'
15304 shared_flag_svr4='$wl-G'
47aaa820
DWT
15305 fi
15306 fi
15307
9d54db95 15308 export_dynamic_flag_spec_CXX='$wl-bexpall'
47aaa820
DWT
15309 # It seems that -bexpall does not export symbols beginning with
15310 # underscore (_), so it is better to generate a list of symbols to
15311 # export.
15312 always_export_symbols_CXX=yes
9d54db95 15313 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
47aaa820
DWT
15314 # Warning - without using the other runtime loading flags (-brtl),
15315 # -berok will link without error, but may produce a broken library.
9d54db95
JF
15316 # The "-G" linker flag allows undefined symbols.
15317 no_undefined_flag_CXX='-bernotok'
47aaa820
DWT
15318 # Determine the default libpath from the value encoded in an empty
15319 # executable.
9d54db95 15320 if test set = "${lt_cv_aix_libpath+set}"; then
ee134472
JF
15321 aix_libpath=$lt_cv_aix_libpath
15322else
15323 if ${lt_cv_aix_libpath__CXX+:} false; then :
15324 $as_echo_n "(cached) " >&6
15325else
15326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
15327/* end confdefs.h. */
15328
15329int
15330main ()
15331{
15332
15333 ;
15334 return 0;
15335}
15336_ACEOF
47aaa820 15337if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e 15338
ee134472
JF
15339 lt_aix_libpath_sed='
15340 /Import File Strings/,/^$/ {
15341 /^0/ {
15342 s/^0 *\([^ ]*\) *$/\1/
15343 p
15344 }
15345 }'
15346 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15347 # Check for a 64-bit object if we didn't find anything.
15348 if test -z "$lt_cv_aix_libpath__CXX"; then
15349 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15350 fi
47aaa820
DWT
15351fi
15352rm -f core conftest.err conftest.$ac_objext \
15353 conftest$ac_exeext conftest.$ac_ext
ee134472 15354 if test -z "$lt_cv_aix_libpath__CXX"; then
9d54db95 15355 lt_cv_aix_libpath__CXX=/usr/lib:/lib
ee134472
JF
15356 fi
15357
15358fi
15359
15360 aix_libpath=$lt_cv_aix_libpath__CXX
15361fi
47aaa820 15362
9d54db95 15363 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
47aaa820 15364
9d54db95 15365 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
47aaa820 15366 else
9d54db95
JF
15367 if test ia64 = "$host_cpu"; then
15368 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
47aaa820 15369 allow_undefined_flag_CXX="-z nodefs"
9d54db95 15370 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"
47aaa820
DWT
15371 else
15372 # Determine the default libpath from the value encoded in an
15373 # empty executable.
9d54db95 15374 if test set = "${lt_cv_aix_libpath+set}"; then
ee134472
JF
15375 aix_libpath=$lt_cv_aix_libpath
15376else
15377 if ${lt_cv_aix_libpath__CXX+:} false; then :
15378 $as_echo_n "(cached) " >&6
15379else
15380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
15381/* end confdefs.h. */
15382
15383int
15384main ()
15385{
15386
15387 ;
15388 return 0;
15389}
15390_ACEOF
47aaa820 15391if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e 15392
ee134472
JF
15393 lt_aix_libpath_sed='
15394 /Import File Strings/,/^$/ {
15395 /^0/ {
15396 s/^0 *\([^ ]*\) *$/\1/
15397 p
15398 }
15399 }'
15400 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15401 # Check for a 64-bit object if we didn't find anything.
15402 if test -z "$lt_cv_aix_libpath__CXX"; then
15403 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15404 fi
9c60689e 15405fi
47aaa820
DWT
15406rm -f core conftest.err conftest.$ac_objext \
15407 conftest$ac_exeext conftest.$ac_ext
ee134472 15408 if test -z "$lt_cv_aix_libpath__CXX"; then
9d54db95 15409 lt_cv_aix_libpath__CXX=/usr/lib:/lib
ee134472
JF
15410 fi
15411
15412fi
15413
15414 aix_libpath=$lt_cv_aix_libpath__CXX
15415fi
9c60689e 15416
9d54db95 15417 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
47aaa820
DWT
15418 # Warning - without using the other run time loading flags,
15419 # -berok will link without error, but may produce a broken library.
9d54db95
JF
15420 no_undefined_flag_CXX=' $wl-bernotok'
15421 allow_undefined_flag_CXX=' $wl-berok'
15422 if test yes = "$with_gnu_ld"; then
ee134472 15423 # We only use this code for GNU lds that support --whole-archive.
9d54db95 15424 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
ee134472
JF
15425 else
15426 # Exported symbols can be pulled into shared objects from archives
15427 whole_archive_flag_spec_CXX='$convenience'
15428 fi
47aaa820 15429 archive_cmds_need_lc_CXX=yes
9d54db95
JF
15430 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15431 # -brtl affects multiple linker settings, -berok does not and is overridden later
15432 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15433 if test svr4 != "$with_aix_soname"; then
15434 # This is similar to how AIX traditionally builds its shared
15435 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15436 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
15437 fi
15438 if test aix != "$with_aix_soname"; then
15439 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
15440 else
15441 # used by -dlpreopen to get the symbols
15442 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
15443 fi
15444 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
47aaa820
DWT
15445 fi
15446 fi
15447 ;;
9c60689e 15448
47aaa820
DWT
15449 beos*)
15450 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15451 allow_undefined_flag_CXX=unsupported
15452 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15453 # support --undefined. This deserves some investigation. FIXME
9d54db95 15454 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
47aaa820
DWT
15455 else
15456 ld_shlibs_CXX=no
15457 fi
15458 ;;
9c60689e 15459
47aaa820
DWT
15460 chorus*)
15461 case $cc_basename in
15462 *)
15463 # FIXME: insert proper C++ library support
15464 ld_shlibs_CXX=no
15465 ;;
15466 esac
15467 ;;
9c60689e 15468
47aaa820 15469 cygwin* | mingw* | pw32* | cegcc*)
ee134472
JF
15470 case $GXX,$cc_basename in
15471 ,cl* | no,cl*)
15472 # Native MSVC
15473 # hardcode_libdir_flag_spec is actually meaningless, as there is
15474 # no search path for DLLs.
15475 hardcode_libdir_flag_spec_CXX=' '
15476 allow_undefined_flag_CXX=unsupported
15477 always_export_symbols_CXX=yes
15478 file_list_spec_CXX='@'
15479 # Tell ltmain to make .lib files, not .a files.
15480 libext=lib
15481 # Tell ltmain to make .dll files, not .so files.
9d54db95 15482 shrext_cmds=.dll
ee134472 15483 # FIXME: Setting linknames here is a bad hack.
9d54db95
JF
15484 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15485 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15486 cp "$export_symbols" "$output_objdir/$soname.def";
15487 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15488 else
15489 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15490 fi~
15491 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15492 linknames='
ee134472
JF
15493 # The linker will not automatically build a static lib if we build a DLL.
15494 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15495 enable_shared_with_static_runtimes_CXX=yes
15496 # Don't use ranlib
15497 old_postinstall_cmds_CXX='chmod 644 $oldlib'
15498 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
9d54db95
JF
15499 lt_tool_outputfile="@TOOL_OUTPUT@"~
15500 case $lt_outputfile in
15501 *.exe|*.EXE) ;;
15502 *)
15503 lt_outputfile=$lt_outputfile.exe
15504 lt_tool_outputfile=$lt_tool_outputfile.exe
15505 ;;
15506 esac~
15507 func_to_tool_file "$lt_outputfile"~
15508 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15509 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15510 $RM "$lt_outputfile.manifest";
15511 fi'
ee134472
JF
15512 ;;
15513 *)
15514 # g++
15515 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15516 # as there is no search path for DLLs.
15517 hardcode_libdir_flag_spec_CXX='-L$libdir'
9d54db95 15518 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
ee134472
JF
15519 allow_undefined_flag_CXX=unsupported
15520 always_export_symbols_CXX=no
15521 enable_shared_with_static_runtimes_CXX=yes
15522
15523 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9d54db95
JF
15524 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'
15525 # If the export-symbols file already is a .def file, use it as
15526 # is; otherwise, prepend EXPORTS...
15527 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15528 cp $export_symbols $output_objdir/$soname.def;
15529 else
15530 echo EXPORTS > $output_objdir/$soname.def;
15531 cat $export_symbols >> $output_objdir/$soname.def;
15532 fi~
15533 $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'
ee134472
JF
15534 else
15535 ld_shlibs_CXX=no
15536 fi
15537 ;;
15538 esac
15539 ;;
47aaa820 15540 darwin* | rhapsody*)
9c60689e 15541
9c60689e 15542
47aaa820
DWT
15543 archive_cmds_need_lc_CXX=no
15544 hardcode_direct_CXX=no
15545 hardcode_automatic_CXX=yes
15546 hardcode_shlibpath_var_CXX=unsupported
9d54db95
JF
15547 if test yes = "$lt_cv_ld_force_load"; then
15548 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\"`'
53ba6704 15549
ee134472
JF
15550 else
15551 whole_archive_flag_spec_CXX=''
15552 fi
47aaa820 15553 link_all_deplibs_CXX=yes
9d54db95 15554 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
47aaa820 15555 case $cc_basename in
9d54db95 15556 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
47aaa820
DWT
15557 *) _lt_dar_can_shared=$GCC ;;
15558 esac
9d54db95 15559 if test yes = "$_lt_dar_can_shared"; then
ee134472 15560 output_verbose_link_cmd=func_echo_all
9d54db95
JF
15561 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"
15562 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15563 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"
15564 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"
15565 if test yes != "$lt_cv_apple_cc_single_mod"; then
15566 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"
15567 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"
47aaa820 15568 fi
9c60689e 15569
47aaa820
DWT
15570 else
15571 ld_shlibs_CXX=no
15572 fi
9c60689e 15573
47aaa820 15574 ;;
9c60689e 15575
9d54db95
JF
15576 os2*)
15577 hardcode_libdir_flag_spec_CXX='-L$libdir'
15578 hardcode_minus_L_CXX=yes
15579 allow_undefined_flag_CXX=unsupported
15580 shrext_cmds=.dll
15581 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15582 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15583 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15584 $ECHO EXPORTS >> $output_objdir/$libname.def~
15585 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15586 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15587 emximp -o $lib $output_objdir/$libname.def'
15588 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15589 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15590 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15591 $ECHO EXPORTS >> $output_objdir/$libname.def~
15592 prefix_cmds="$SED"~
15593 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15594 prefix_cmds="$prefix_cmds -e 1d";
15595 fi~
15596 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15597 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15598 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15599 emximp -o $lib $output_objdir/$libname.def'
15600 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15601 enable_shared_with_static_runtimes_CXX=yes
15602 ;;
15603
47aaa820
DWT
15604 dgux*)
15605 case $cc_basename in
15606 ec++*)
15607 # FIXME: insert proper C++ library support
15608 ld_shlibs_CXX=no
15609 ;;
15610 ghcx*)
15611 # Green Hills C++ Compiler
15612 # FIXME: insert proper C++ library support
15613 ld_shlibs_CXX=no
15614 ;;
15615 *)
15616 # FIXME: insert proper C++ library support
15617 ld_shlibs_CXX=no
15618 ;;
15619 esac
15620 ;;
9c60689e 15621
53ba6704 15622 freebsd2.*)
47aaa820
DWT
15623 # C++ shared libraries reported to be fairly broken before
15624 # switch to ELF
15625 ld_shlibs_CXX=no
15626 ;;
9c60689e 15627
47aaa820
DWT
15628 freebsd-elf*)
15629 archive_cmds_need_lc_CXX=no
15630 ;;
9c60689e 15631
47aaa820
DWT
15632 freebsd* | dragonfly*)
15633 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15634 # conventions
15635 ld_shlibs_CXX=yes
15636 ;;
9c60689e 15637
ee134472 15638 haiku*)
9d54db95 15639 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
ee134472
JF
15640 link_all_deplibs_CXX=yes
15641 ;;
15642
47aaa820 15643 hpux9*)
9d54db95 15644 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
47aaa820 15645 hardcode_libdir_separator_CXX=:
9d54db95 15646 export_dynamic_flag_spec_CXX='$wl-E'
47aaa820
DWT
15647 hardcode_direct_CXX=yes
15648 hardcode_minus_L_CXX=yes # Not in the search PATH,
15649 # but as the default
15650 # location of the library.
9c60689e 15651
47aaa820
DWT
15652 case $cc_basename in
15653 CC*)
15654 # FIXME: insert proper C++ library support
15655 ld_shlibs_CXX=no
15656 ;;
15657 aCC*)
9d54db95 15658 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
47aaa820
DWT
15659 # Commands to make compiler produce verbose output that lists
15660 # what "hidden" libraries, object files and flags are used when
15661 # linking a shared library.
15662 #
15663 # There doesn't appear to be a way to prevent this compiler from
15664 # explicitly linking system object files so we need to strip them
15665 # from the output so that they don't get included in the library
15666 # dependencies.
9d54db95 15667 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"'
47aaa820
DWT
15668 ;;
15669 *)
9d54db95
JF
15670 if test yes = "$GXX"; then
15671 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
47aaa820
DWT
15672 else
15673 # FIXME: insert proper C++ library support
15674 ld_shlibs_CXX=no
15675 fi
15676 ;;
15677 esac
15678 ;;
9c60689e 15679
47aaa820 15680 hpux10*|hpux11*)
9d54db95
JF
15681 if test no = "$with_gnu_ld"; then
15682 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
47aaa820 15683 hardcode_libdir_separator_CXX=:
9c60689e 15684
47aaa820
DWT
15685 case $host_cpu in
15686 hppa*64*|ia64*)
15687 ;;
15688 *)
9d54db95 15689 export_dynamic_flag_spec_CXX='$wl-E'
47aaa820
DWT
15690 ;;
15691 esac
15692 fi
15693 case $host_cpu in
15694 hppa*64*|ia64*)
15695 hardcode_direct_CXX=no
15696 hardcode_shlibpath_var_CXX=no
15697 ;;
15698 *)
15699 hardcode_direct_CXX=yes
15700 hardcode_direct_absolute_CXX=yes
15701 hardcode_minus_L_CXX=yes # Not in the search PATH,
15702 # but as the default
15703 # location of the library.
15704 ;;
15705 esac
9c60689e 15706
47aaa820
DWT
15707 case $cc_basename in
15708 CC*)
15709 # FIXME: insert proper C++ library support
15710 ld_shlibs_CXX=no
15711 ;;
15712 aCC*)
15713 case $host_cpu in
15714 hppa*64*)
9d54db95 15715 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
47aaa820
DWT
15716 ;;
15717 ia64*)
9d54db95 15718 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
47aaa820
DWT
15719 ;;
15720 *)
9d54db95 15721 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
47aaa820
DWT
15722 ;;
15723 esac
15724 # Commands to make compiler produce verbose output that lists
15725 # what "hidden" libraries, object files and flags are used when
15726 # linking a shared library.
15727 #
15728 # There doesn't appear to be a way to prevent this compiler from
15729 # explicitly linking system object files so we need to strip them
15730 # from the output so that they don't get included in the library
15731 # dependencies.
9d54db95 15732 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"'
47aaa820
DWT
15733 ;;
15734 *)
9d54db95
JF
15735 if test yes = "$GXX"; then
15736 if test no = "$with_gnu_ld"; then
47aaa820
DWT
15737 case $host_cpu in
15738 hppa*64*)
9d54db95 15739 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
47aaa820
DWT
15740 ;;
15741 ia64*)
9d54db95 15742 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
47aaa820
DWT
15743 ;;
15744 *)
9d54db95 15745 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
47aaa820
DWT
15746 ;;
15747 esac
15748 fi
15749 else
15750 # FIXME: insert proper C++ library support
15751 ld_shlibs_CXX=no
15752 fi
15753 ;;
15754 esac
15755 ;;
9c60689e 15756
47aaa820
DWT
15757 interix[3-9]*)
15758 hardcode_direct_CXX=no
15759 hardcode_shlibpath_var_CXX=no
9d54db95
JF
15760 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15761 export_dynamic_flag_spec_CXX='$wl-E'
47aaa820
DWT
15762 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15763 # Instead, shared libraries are loaded at an image base (0x10000000 by
15764 # default) and relocated if they conflict, which is a slow very memory
15765 # consuming and fragmenting process. To avoid this, we pick a random,
15766 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15767 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9d54db95
JF
15768 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'
15769 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'
47aaa820
DWT
15770 ;;
15771 irix5* | irix6*)
15772 case $cc_basename in
15773 CC*)
15774 # SGI C++
9d54db95 15775 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'
9c60689e 15776
47aaa820
DWT
15777 # Archives containing C++ object files must be created using
15778 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15779 # necessary to make sure instantiated templates are included
15780 # in the archive.
15781 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15782 ;;
15783 *)
9d54db95
JF
15784 if test yes = "$GXX"; then
15785 if test no = "$with_gnu_ld"; then
15786 archive_cmds_CXX='$CC -shared $pic_flag -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'
47aaa820 15787 else
9d54db95 15788 archive_cmds_CXX='$CC -shared $pic_flag -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'
47aaa820
DWT
15789 fi
15790 fi
15791 link_all_deplibs_CXX=yes
15792 ;;
15793 esac
9d54db95 15794 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
47aaa820
DWT
15795 hardcode_libdir_separator_CXX=:
15796 inherit_rpath_CXX=yes
15797 ;;
9c60689e 15798
9d54db95 15799 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
47aaa820
DWT
15800 case $cc_basename in
15801 KCC*)
15802 # Kuck and Associates, Inc. (KAI) C++ Compiler
9c60689e 15803
47aaa820
DWT
15804 # KCC will only create a shared library if the output file
15805 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15806 # to its proper name (with version) after linking.
9d54db95
JF
15807 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'
15808 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'
47aaa820
DWT
15809 # Commands to make compiler produce verbose output that lists
15810 # what "hidden" libraries, object files and flags are used when
15811 # linking a shared library.
15812 #
15813 # There doesn't appear to be a way to prevent this compiler from
15814 # explicitly linking system object files so we need to strip them
15815 # from the output so that they don't get included in the library
15816 # dependencies.
9d54db95 15817 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"'
9c60689e 15818
9d54db95
JF
15819 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15820 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
9c60689e 15821
47aaa820
DWT
15822 # Archives containing C++ object files must be created using
15823 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15824 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15825 ;;
15826 icpc* | ecpc* )
15827 # Intel C++
15828 with_gnu_ld=yes
15829 # version 8.0 and above of icpc choke on multiply defined symbols
15830 # if we add $predep_objects and $postdep_objects, however 7.1 and
15831 # earlier do not add the objects themselves.
15832 case `$CC -V 2>&1` in
15833 *"Version 7."*)
9d54db95
JF
15834 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15835 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'
47aaa820
DWT
15836 ;;
15837 *) # Version 8.0 or newer
15838 tmp_idyn=
15839 case $host_cpu in
15840 ia64*) tmp_idyn=' -i_dynamic';;
15841 esac
9d54db95
JF
15842 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15843 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'
47aaa820
DWT
15844 ;;
15845 esac
15846 archive_cmds_need_lc_CXX=no
9d54db95
JF
15847 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15848 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15849 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
47aaa820
DWT
15850 ;;
15851 pgCC* | pgcpp*)
15852 # Portland Group C++ compiler
15853 case `$CC -V` in
ee134472 15854 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
47aaa820 15855 prelink_cmds_CXX='tpldir=Template.dir~
9d54db95
JF
15856 rm -rf $tpldir~
15857 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15858 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
47aaa820 15859 old_archive_cmds_CXX='tpldir=Template.dir~
9d54db95
JF
15860 rm -rf $tpldir~
15861 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15862 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15863 $RANLIB $oldlib'
47aaa820 15864 archive_cmds_CXX='tpldir=Template.dir~
9d54db95
JF
15865 rm -rf $tpldir~
15866 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15867 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
47aaa820 15868 archive_expsym_cmds_CXX='tpldir=Template.dir~
9d54db95
JF
15869 rm -rf $tpldir~
15870 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15871 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
47aaa820 15872 ;;
ee134472 15873 *) # Version 6 and above use weak symbols
9d54db95
JF
15874 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15875 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'
47aaa820
DWT
15876 ;;
15877 esac
9c60689e 15878
9d54db95
JF
15879 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15880 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15881 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'
47aaa820
DWT
15882 ;;
15883 cxx*)
15884 # Compaq C++
9d54db95
JF
15885 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15886 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'
9c60689e 15887
47aaa820
DWT
15888 runpath_var=LD_RUN_PATH
15889 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15890 hardcode_libdir_separator_CXX=:
9c60689e 15891
47aaa820
DWT
15892 # Commands to make compiler produce verbose output that lists
15893 # what "hidden" libraries, object files and flags are used when
15894 # linking a shared library.
15895 #
15896 # There doesn't appear to be a way to prevent this compiler from
15897 # explicitly linking system object files so we need to strip them
15898 # from the output so that they don't get included in the library
15899 # dependencies.
9d54db95 15900 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'
47aaa820 15901 ;;
ee134472 15902 xl* | mpixl* | bgxl*)
47aaa820 15903 # IBM XL 8.0 on PPC, with GNU ld
9d54db95
JF
15904 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15905 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15906 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15907 if test yes = "$supports_anon_versioning"; then
47aaa820 15908 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
9d54db95
JF
15909 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15910 echo "local: *; };" >> $output_objdir/$libname.ver~
15911 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
47aaa820
DWT
15912 fi
15913 ;;
15914 *)
15915 case `$CC -V 2>&1 | sed 5q` in
15916 *Sun\ C*)
15917 # Sun C++ 5.9
15918 no_undefined_flag_CXX=' -zdefs'
9d54db95
JF
15919 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15920 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'
47aaa820 15921 hardcode_libdir_flag_spec_CXX='-R$libdir'
9d54db95 15922 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'
47aaa820 15923 compiler_needs_object_CXX=yes
9c60689e 15924
47aaa820
DWT
15925 # Not sure whether something based on
15926 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15927 # would be better.
ee134472 15928 output_verbose_link_cmd='func_echo_all'
9c60689e 15929
47aaa820
DWT
15930 # Archives containing C++ object files must be created using
15931 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15932 # necessary to make sure instantiated templates are included
15933 # in the archive.
15934 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15935 ;;
15936 esac
15937 ;;
15938 esac
15939 ;;
9c60689e 15940
47aaa820
DWT
15941 lynxos*)
15942 # FIXME: insert proper C++ library support
15943 ld_shlibs_CXX=no
15944 ;;
9c60689e 15945
47aaa820
DWT
15946 m88k*)
15947 # FIXME: insert proper C++ library support
15948 ld_shlibs_CXX=no
15949 ;;
9c60689e 15950
47aaa820
DWT
15951 mvs*)
15952 case $cc_basename in
15953 cxx*)
15954 # FIXME: insert proper C++ library support
15955 ld_shlibs_CXX=no
15956 ;;
15957 *)
15958 # FIXME: insert proper C++ library support
15959 ld_shlibs_CXX=no
15960 ;;
15961 esac
15962 ;;
9c60689e 15963
47aaa820
DWT
15964 netbsd*)
15965 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15966 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15967 wlarc=
15968 hardcode_libdir_flag_spec_CXX='-R$libdir'
15969 hardcode_direct_CXX=yes
15970 hardcode_shlibpath_var_CXX=no
15971 fi
15972 # Workaround some broken pre-1.5 toolchains
15973 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9c60689e 15974 ;;
47aaa820
DWT
15975
15976 *nto* | *qnx*)
15977 ld_shlibs_CXX=yes
9c60689e 15978 ;;
9c60689e 15979
9d54db95 15980 openbsd* | bitrig*)
47aaa820
DWT
15981 if test -f /usr/libexec/ld.so; then
15982 hardcode_direct_CXX=yes
15983 hardcode_shlibpath_var_CXX=no
15984 hardcode_direct_absolute_CXX=yes
15985 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9d54db95
JF
15986 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15987 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15988 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15989 export_dynamic_flag_spec_CXX='$wl-E'
15990 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
47aaa820 15991 fi
ee134472 15992 output_verbose_link_cmd=func_echo_all
47aaa820
DWT
15993 else
15994 ld_shlibs_CXX=no
15995 fi
15996 ;;
9c60689e 15997
47aaa820
DWT
15998 osf3* | osf4* | osf5*)
15999 case $cc_basename in
16000 KCC*)
16001 # Kuck and Associates, Inc. (KAI) C++ Compiler
9c60689e 16002
47aaa820
DWT
16003 # KCC will only create a shared library if the output file
16004 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16005 # to its proper name (with version) after linking.
9d54db95 16006 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'
9c60689e 16007
9d54db95 16008 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
47aaa820 16009 hardcode_libdir_separator_CXX=:
9c60689e 16010
47aaa820
DWT
16011 # Archives containing C++ object files must be created using
16012 # the KAI C++ compiler.
16013 case $host in
16014 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16015 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16016 esac
16017 ;;
16018 RCC*)
16019 # Rational C++ 2.4.1
16020 # FIXME: insert proper C++ library support
16021 ld_shlibs_CXX=no
16022 ;;
16023 cxx*)
16024 case $host in
16025 osf3*)
9d54db95
JF
16026 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16027 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'
16028 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
47aaa820
DWT
16029 ;;
16030 *)
16031 allow_undefined_flag_CXX=' -expect_unresolved \*'
9d54db95 16032 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'
47aaa820 16033 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9d54db95
JF
16034 echo "-hidden">> $lib.exp~
16035 $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~
16036 $RM $lib.exp'
47aaa820
DWT
16037 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16038 ;;
16039 esac
9c60689e 16040
47aaa820 16041 hardcode_libdir_separator_CXX=:
9c60689e 16042
47aaa820
DWT
16043 # Commands to make compiler produce verbose output that lists
16044 # what "hidden" libraries, object files and flags are used when
16045 # linking a shared library.
16046 #
16047 # There doesn't appear to be a way to prevent this compiler from
16048 # explicitly linking system object files so we need to strip them
16049 # from the output so that they don't get included in the library
16050 # dependencies.
9d54db95 16051 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"'
47aaa820
DWT
16052 ;;
16053 *)
9d54db95
JF
16054 if test yes,no = "$GXX,$with_gnu_ld"; then
16055 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
47aaa820
DWT
16056 case $host in
16057 osf3*)
9d54db95 16058 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'
47aaa820
DWT
16059 ;;
16060 *)
9d54db95 16061 archive_cmds_CXX='$CC -shared $pic_flag -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'
47aaa820
DWT
16062 ;;
16063 esac
9c60689e 16064
9d54db95 16065 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
47aaa820 16066 hardcode_libdir_separator_CXX=:
9c60689e 16067
47aaa820
DWT
16068 # Commands to make compiler produce verbose output that lists
16069 # what "hidden" libraries, object files and flags are used when
16070 # linking a shared library.
ee134472 16071 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
9c60689e 16072
47aaa820
DWT
16073 else
16074 # FIXME: insert proper C++ library support
16075 ld_shlibs_CXX=no
16076 fi
16077 ;;
16078 esac
16079 ;;
9c60689e 16080
47aaa820 16081 psos*)
9c60689e
DWT
16082 # FIXME: insert proper C++ library support
16083 ld_shlibs_CXX=no
16084 ;;
9c60689e 16085
47aaa820
DWT
16086 sunos4*)
16087 case $cc_basename in
16088 CC*)
16089 # Sun C++ 4.x
16090 # FIXME: insert proper C++ library support
16091 ld_shlibs_CXX=no
9c60689e 16092 ;;
47aaa820
DWT
16093 lcc*)
16094 # Lucid
16095 # FIXME: insert proper C++ library support
16096 ld_shlibs_CXX=no
16097 ;;
16098 *)
16099 # FIXME: insert proper C++ library support
16100 ld_shlibs_CXX=no
16101 ;;
16102 esac
16103 ;;
9c60689e 16104
47aaa820
DWT
16105 solaris*)
16106 case $cc_basename in
ee134472 16107 CC* | sunCC*)
47aaa820
DWT
16108 # Sun C++ 4.2, 5.x and Centerline C++
16109 archive_cmds_need_lc_CXX=yes
16110 no_undefined_flag_CXX=' -zdefs'
9d54db95 16111 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
47aaa820 16112 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9d54db95 16113 $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'
9c60689e 16114
47aaa820
DWT
16115 hardcode_libdir_flag_spec_CXX='-R$libdir'
16116 hardcode_shlibpath_var_CXX=no
16117 case $host_os in
16118 solaris2.[0-5] | solaris2.[0-5].*) ;;
16119 *)
16120 # The compiler driver will combine and reorder linker options,
9d54db95 16121 # but understands '-z linker_flag'.
47aaa820
DWT
16122 # Supported since Solaris 2.6 (maybe 2.5.1?)
16123 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16124 ;;
16125 esac
16126 link_all_deplibs_CXX=yes
9c60689e 16127
ee134472 16128 output_verbose_link_cmd='func_echo_all'
9c60689e 16129
47aaa820
DWT
16130 # Archives containing C++ object files must be created using
16131 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16132 # necessary to make sure instantiated templates are included
16133 # in the archive.
16134 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16135 ;;
16136 gcx*)
16137 # Green Hills C++ Compiler
9d54db95 16138 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
9c60689e 16139
47aaa820
DWT
16140 # The C++ compiler must be used to create the archive.
16141 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16142 ;;
16143 *)
16144 # GNU C++ compiler with Solaris linker
9d54db95
JF
16145 if test yes,no = "$GXX,$with_gnu_ld"; then
16146 no_undefined_flag_CXX=' $wl-z ${wl}defs'
47aaa820 16147 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
9d54db95 16148 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
47aaa820 16149 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9d54db95 16150 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9c60689e 16151
47aaa820
DWT
16152 # Commands to make compiler produce verbose output that lists
16153 # what "hidden" libraries, object files and flags are used when
16154 # linking a shared library.
ee134472 16155 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820 16156 else
9d54db95 16157 # g++ 2.7 appears to require '-G' NOT '-shared' on this
47aaa820 16158 # platform.
9d54db95 16159 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
47aaa820 16160 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9d54db95 16161 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
9c60689e 16162
47aaa820
DWT
16163 # Commands to make compiler produce verbose output that lists
16164 # what "hidden" libraries, object files and flags are used when
16165 # linking a shared library.
ee134472 16166 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820 16167 fi
9c60689e 16168
9d54db95 16169 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
47aaa820
DWT
16170 case $host_os in
16171 solaris2.[0-5] | solaris2.[0-5].*) ;;
16172 *)
9d54db95 16173 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
47aaa820
DWT
16174 ;;
16175 esac
16176 fi
16177 ;;
16178 esac
16179 ;;
9c60689e 16180
47aaa820 16181 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9d54db95 16182 no_undefined_flag_CXX='$wl-z,text'
47aaa820
DWT
16183 archive_cmds_need_lc_CXX=no
16184 hardcode_shlibpath_var_CXX=no
16185 runpath_var='LD_RUN_PATH'
9c60689e 16186
47aaa820
DWT
16187 case $cc_basename in
16188 CC*)
9d54db95
JF
16189 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16190 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
47aaa820
DWT
16191 ;;
16192 *)
9d54db95
JF
16193 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16194 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
47aaa820
DWT
16195 ;;
16196 esac
16197 ;;
9c60689e 16198
47aaa820 16199 sysv5* | sco3.2v5* | sco5v6*)
9d54db95 16200 # Note: We CANNOT use -z defs as we might desire, because we do not
47aaa820
DWT
16201 # link with -lc, and that would cause any symbols used from libc to
16202 # always be unresolved, which means just about no library would
16203 # ever link correctly. If we're not using GNU ld we use -z text
16204 # though, which does catch some bad symbols but isn't as heavy-handed
16205 # as -z defs.
9d54db95
JF
16206 no_undefined_flag_CXX='$wl-z,text'
16207 allow_undefined_flag_CXX='$wl-z,nodefs'
47aaa820
DWT
16208 archive_cmds_need_lc_CXX=no
16209 hardcode_shlibpath_var_CXX=no
9d54db95 16210 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
47aaa820
DWT
16211 hardcode_libdir_separator_CXX=':'
16212 link_all_deplibs_CXX=yes
9d54db95 16213 export_dynamic_flag_spec_CXX='$wl-Bexport'
47aaa820 16214 runpath_var='LD_RUN_PATH'
9c60689e 16215
47aaa820
DWT
16216 case $cc_basename in
16217 CC*)
9d54db95
JF
16218 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16219 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
ee134472 16220 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
9d54db95 16221 '"$old_archive_cmds_CXX"
ee134472 16222 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
9d54db95 16223 '"$reload_cmds_CXX"
47aaa820
DWT
16224 ;;
16225 *)
9d54db95
JF
16226 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16227 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
47aaa820
DWT
16228 ;;
16229 esac
16230 ;;
9c60689e 16231
47aaa820 16232 tandem*)
9c60689e 16233 case $cc_basename in
47aaa820
DWT
16234 NCC*)
16235 # NonStop-UX NCC 3.20
16236 # FIXME: insert proper C++ library support
16237 ld_shlibs_CXX=no
16238 ;;
9c60689e 16239 *)
47aaa820
DWT
16240 # FIXME: insert proper C++ library support
16241 ld_shlibs_CXX=no
16242 ;;
9c60689e
DWT
16243 esac
16244 ;;
16245
47aaa820
DWT
16246 vxworks*)
16247 # FIXME: insert proper C++ library support
16248 ld_shlibs_CXX=no
16249 ;;
9c60689e 16250
47aaa820
DWT
16251 *)
16252 # FIXME: insert proper C++ library support
16253 ld_shlibs_CXX=no
9c60689e 16254 ;;
47aaa820 16255 esac
9c60689e 16256
47aaa820
DWT
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16258$as_echo "$ld_shlibs_CXX" >&6; }
9d54db95 16259 test no = "$ld_shlibs_CXX" && can_build_shared=no
9c60689e 16260
9d54db95
JF
16261 GCC_CXX=$GXX
16262 LD_CXX=$LD
9c60689e 16263
47aaa820
DWT
16264 ## CAVEAT EMPTOR:
16265 ## There is no encapsulation within the following macros, do not change
16266 ## the running order or otherwise move them around unless you know exactly
16267 ## what you are doing...
16268 # Dependencies to place before and after the object being linked:
16269predep_objects_CXX=
16270postdep_objects_CXX=
16271predeps_CXX=
16272postdeps_CXX=
16273compiler_lib_search_path_CXX=
9c60689e 16274
47aaa820
DWT
16275cat > conftest.$ac_ext <<_LT_EOF
16276class Foo
16277{
16278public:
16279 Foo (void) { a = 0; }
16280private:
16281 int a;
16282};
16283_LT_EOF
9c60689e 16284
ee134472
JF
16285
16286_lt_libdeps_save_CFLAGS=$CFLAGS
16287case "$CC $CFLAGS " in #(
16288*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16289*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
53ba6704 16290*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
ee134472
JF
16291esac
16292
47aaa820
DWT
16293if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16294 (eval $ac_compile) 2>&5
16295 ac_status=$?
16296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16297 test $ac_status = 0; }; then
16298 # Parse the compiler output and extract the necessary
16299 # objects, libraries and library flags.
9c60689e 16300
47aaa820
DWT
16301 # Sentinel used to keep track of whether or not we are before
16302 # the conftest object file.
16303 pre_test_object_deps_done=no
9c60689e 16304
47aaa820 16305 for p in `eval "$output_verbose_link_cmd"`; do
9d54db95 16306 case $prev$p in
9c60689e 16307
47aaa820
DWT
16308 -L* | -R* | -l*)
16309 # Some compilers place space between "-{L,R}" and the path.
16310 # Remove the space.
9d54db95
JF
16311 if test x-L = "$p" ||
16312 test x-R = "$p"; then
47aaa820
DWT
16313 prev=$p
16314 continue
47aaa820 16315 fi
9c60689e 16316
ee134472
JF
16317 # Expand the sysroot to ease extracting the directories later.
16318 if test -z "$prev"; then
16319 case $p in
16320 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16321 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16322 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16323 esac
16324 fi
16325 case $p in
16326 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16327 esac
9d54db95
JF
16328 if test no = "$pre_test_object_deps_done"; then
16329 case $prev in
ee134472 16330 -L | -R)
47aaa820
DWT
16331 # Internal compiler library paths should come after those
16332 # provided the user. The postdeps already come after the
16333 # user supplied libs so there is no need to process them.
16334 if test -z "$compiler_lib_search_path_CXX"; then
9d54db95 16335 compiler_lib_search_path_CXX=$prev$p
47aaa820 16336 else
9d54db95 16337 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
47aaa820
DWT
16338 fi
16339 ;;
16340 # The "-l" case would never come before the object being
16341 # linked, so don't bother handling this case.
16342 esac
16343 else
16344 if test -z "$postdeps_CXX"; then
9d54db95 16345 postdeps_CXX=$prev$p
47aaa820 16346 else
9d54db95 16347 postdeps_CXX="${postdeps_CXX} $prev$p"
47aaa820
DWT
16348 fi
16349 fi
ee134472 16350 prev=
47aaa820 16351 ;;
9c60689e 16352
ee134472 16353 *.lto.$objext) ;; # Ignore GCC LTO objects
47aaa820
DWT
16354 *.$objext)
16355 # This assumes that the test object file only shows up
16356 # once in the compiler output.
16357 if test "$p" = "conftest.$objext"; then
16358 pre_test_object_deps_done=yes
16359 continue
16360 fi
9c60689e 16361
9d54db95 16362 if test no = "$pre_test_object_deps_done"; then
47aaa820 16363 if test -z "$predep_objects_CXX"; then
9d54db95 16364 predep_objects_CXX=$p
47aaa820
DWT
16365 else
16366 predep_objects_CXX="$predep_objects_CXX $p"
16367 fi
16368 else
16369 if test -z "$postdep_objects_CXX"; then
9d54db95 16370 postdep_objects_CXX=$p
47aaa820
DWT
16371 else
16372 postdep_objects_CXX="$postdep_objects_CXX $p"
16373 fi
16374 fi
16375 ;;
9c60689e 16376
47aaa820 16377 *) ;; # Ignore the rest.
9c60689e 16378
47aaa820
DWT
16379 esac
16380 done
9c60689e 16381
47aaa820
DWT
16382 # Clean up.
16383 rm -f a.out a.exe
16384else
16385 echo "libtool.m4: error: problem compiling CXX test program"
16386fi
9c60689e 16387
47aaa820 16388$RM -f confest.$objext
ee134472 16389CFLAGS=$_lt_libdeps_save_CFLAGS
9c60689e 16390
47aaa820
DWT
16391# PORTME: override above test on systems where it is broken
16392case $host_os in
16393interix[3-9]*)
16394 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16395 # hack all around it, let's just trust "g++" to DTRT.
16396 predep_objects_CXX=
16397 postdep_objects_CXX=
16398 postdeps_CXX=
16399 ;;
47aaa820 16400esac
9c60689e 16401
9c60689e 16402
47aaa820
DWT
16403case " $postdeps_CXX " in
16404*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16405esac
16406 compiler_lib_search_dirs_CXX=
16407if test -n "${compiler_lib_search_path_CXX}"; then
9d54db95 16408 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
47aaa820 16409fi
9c60689e 16410
9c60689e 16411
9c60689e 16412
9c60689e 16413
9c60689e 16414
9c60689e 16415
9c60689e 16416
9c60689e 16417
9c60689e 16418
9c60689e 16419
9c60689e 16420
9c60689e 16421
9c60689e 16422
9c60689e 16423
9c60689e 16424
9c60689e 16425
9c60689e 16426
9c60689e 16427
9c60689e 16428
9c60689e 16429
9c60689e 16430
9c60689e 16431
9c60689e 16432
9c60689e 16433
9c60689e 16434
9c60689e 16435
9c60689e 16436
9c60689e 16437
9c60689e 16438
9c60689e 16439
9c60689e 16440
47aaa820
DWT
16441 lt_prog_compiler_wl_CXX=
16442lt_prog_compiler_pic_CXX=
16443lt_prog_compiler_static_CXX=
9c60689e 16444
9c60689e
DWT
16445
16446 # C++ specific cases for pic, static, wl, etc.
9d54db95 16447 if test yes = "$GXX"; then
9c60689e
DWT
16448 lt_prog_compiler_wl_CXX='-Wl,'
16449 lt_prog_compiler_static_CXX='-static'
16450
16451 case $host_os in
16452 aix*)
16453 # All AIX code is PIC.
9d54db95 16454 if test ia64 = "$host_cpu"; then
9c60689e
DWT
16455 # AIX 5 now supports IA64 processor
16456 lt_prog_compiler_static_CXX='-Bstatic'
16457 fi
9d54db95 16458 lt_prog_compiler_pic_CXX='-fPIC'
9c60689e
DWT
16459 ;;
16460
16461 amigaos*)
16462 case $host_cpu in
16463 powerpc)
16464 # see comment about AmigaOS4 .so support
16465 lt_prog_compiler_pic_CXX='-fPIC'
16466 ;;
16467 m68k)
16468 # FIXME: we need at least 68020 code to build shared libraries, but
9d54db95
JF
16469 # adding the '-m68020' flag to GCC prevents building anything better,
16470 # like '-m68040'.
9c60689e
DWT
16471 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16472 ;;
16473 esac
16474 ;;
16475
16476 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16477 # PIC is the default for these OSes.
16478 ;;
16479 mingw* | cygwin* | os2* | pw32* | cegcc*)
16480 # This hack is so that the source file can tell whether it is being
16481 # built for inclusion in a dll (and should export symbols for example).
16482 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16483 # (--disable-auto-import) libraries
16484 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
9d54db95
JF
16485 case $host_os in
16486 os2*)
16487 lt_prog_compiler_static_CXX='$wl-static'
16488 ;;
16489 esac
9c60689e
DWT
16490 ;;
16491 darwin* | rhapsody*)
16492 # PIC is the default on this platform
16493 # Common symbols not allowed in MH_DYLIB files
16494 lt_prog_compiler_pic_CXX='-fno-common'
16495 ;;
16496 *djgpp*)
16497 # DJGPP does not support shared libraries at all
16498 lt_prog_compiler_pic_CXX=
16499 ;;
ee134472
JF
16500 haiku*)
16501 # PIC is the default for Haiku.
16502 # The "-static" flag exists, but is broken.
16503 lt_prog_compiler_static_CXX=
16504 ;;
9c60689e
DWT
16505 interix[3-9]*)
16506 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16507 # Instead, we relocate shared libraries at runtime.
16508 ;;
16509 sysv4*MP*)
16510 if test -d /usr/nec; then
16511 lt_prog_compiler_pic_CXX=-Kconform_pic
16512 fi
16513 ;;
16514 hpux*)
16515 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16516 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16517 # sets the default TLS model and affects inlining.
16518 case $host_cpu in
16519 hppa*64*)
16520 ;;
16521 *)
16522 lt_prog_compiler_pic_CXX='-fPIC'
16523 ;;
16524 esac
16525 ;;
16526 *qnx* | *nto*)
16527 # QNX uses GNU C++, but need to define -shared option too, otherwise
16528 # it will coredump.
16529 lt_prog_compiler_pic_CXX='-fPIC -shared'
16530 ;;
16531 *)
16532 lt_prog_compiler_pic_CXX='-fPIC'
16533 ;;
16534 esac
16535 else
16536 case $host_os in
16537 aix[4-9]*)
16538 # All AIX code is PIC.
9d54db95 16539 if test ia64 = "$host_cpu"; then
9c60689e
DWT
16540 # AIX 5 now supports IA64 processor
16541 lt_prog_compiler_static_CXX='-Bstatic'
16542 else
16543 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16544 fi
16545 ;;
16546 chorus*)
16547 case $cc_basename in
16548 cxch68*)
16549 # Green Hills C++ Compiler
16550 # _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"
16551 ;;
16552 esac
16553 ;;
ee134472
JF
16554 mingw* | cygwin* | os2* | pw32* | cegcc*)
16555 # This hack is so that the source file can tell whether it is being
16556 # built for inclusion in a dll (and should export symbols for example).
16557 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16558 ;;
9c60689e
DWT
16559 dgux*)
16560 case $cc_basename in
16561 ec++*)
16562 lt_prog_compiler_pic_CXX='-KPIC'
16563 ;;
16564 ghcx*)
16565 # Green Hills C++ Compiler
16566 lt_prog_compiler_pic_CXX='-pic'
16567 ;;
16568 *)
16569 ;;
16570 esac
16571 ;;
16572 freebsd* | dragonfly*)
16573 # FreeBSD uses GNU C++
16574 ;;
16575 hpux9* | hpux10* | hpux11*)
16576 case $cc_basename in
16577 CC*)
16578 lt_prog_compiler_wl_CXX='-Wl,'
9d54db95
JF
16579 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16580 if test ia64 != "$host_cpu"; then
9c60689e
DWT
16581 lt_prog_compiler_pic_CXX='+Z'
16582 fi
16583 ;;
16584 aCC*)
16585 lt_prog_compiler_wl_CXX='-Wl,'
9d54db95 16586 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
9c60689e
DWT
16587 case $host_cpu in
16588 hppa*64*|ia64*)
16589 # +Z the default
16590 ;;
16591 *)
16592 lt_prog_compiler_pic_CXX='+Z'
16593 ;;
16594 esac
16595 ;;
16596 *)
16597 ;;
16598 esac
16599 ;;
16600 interix*)
16601 # This is c89, which is MS Visual C++ (no shared libs)
16602 # Anyone wants to do a port?
16603 ;;
16604 irix5* | irix6* | nonstopux*)
16605 case $cc_basename in
16606 CC*)
16607 lt_prog_compiler_wl_CXX='-Wl,'
16608 lt_prog_compiler_static_CXX='-non_shared'
16609 # CC pic flag -KPIC is the default.
16610 ;;
16611 *)
16612 ;;
16613 esac
16614 ;;
9d54db95 16615 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9c60689e
DWT
16616 case $cc_basename in
16617 KCC*)
16618 # KAI C++ Compiler
16619 lt_prog_compiler_wl_CXX='--backend -Wl,'
16620 lt_prog_compiler_pic_CXX='-fPIC'
16621 ;;
16622 ecpc* )
9d54db95 16623 # old Intel C++ for x86_64, which still supported -KPIC.
9c60689e
DWT
16624 lt_prog_compiler_wl_CXX='-Wl,'
16625 lt_prog_compiler_pic_CXX='-KPIC'
16626 lt_prog_compiler_static_CXX='-static'
16627 ;;
16628 icpc* )
16629 # Intel C++, used to be incompatible with GCC.
16630 # ICC 10 doesn't accept -KPIC any more.
16631 lt_prog_compiler_wl_CXX='-Wl,'
16632 lt_prog_compiler_pic_CXX='-fPIC'
16633 lt_prog_compiler_static_CXX='-static'
16634 ;;
16635 pgCC* | pgcpp*)
16636 # Portland Group C++ compiler
16637 lt_prog_compiler_wl_CXX='-Wl,'
16638 lt_prog_compiler_pic_CXX='-fpic'
16639 lt_prog_compiler_static_CXX='-Bstatic'
16640 ;;
16641 cxx*)
16642 # Compaq C++
16643 # Make sure the PIC flag is empty. It appears that all Alpha
16644 # Linux and Compaq Tru64 Unix objects are PIC.
16645 lt_prog_compiler_pic_CXX=
16646 lt_prog_compiler_static_CXX='-non_shared'
16647 ;;
ee134472
JF
16648 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16649 # IBM XL 8.0, 9.0 on PPC and BlueGene
9c60689e
DWT
16650 lt_prog_compiler_wl_CXX='-Wl,'
16651 lt_prog_compiler_pic_CXX='-qpic'
16652 lt_prog_compiler_static_CXX='-qstaticlink'
16653 ;;
16654 *)
16655 case `$CC -V 2>&1 | sed 5q` in
16656 *Sun\ C*)
16657 # Sun C++ 5.9
16658 lt_prog_compiler_pic_CXX='-KPIC'
16659 lt_prog_compiler_static_CXX='-Bstatic'
16660 lt_prog_compiler_wl_CXX='-Qoption ld '
16661 ;;
16662 esac
16663 ;;
16664 esac
16665 ;;
16666 lynxos*)
16667 ;;
16668 m88k*)
16669 ;;
16670 mvs*)
16671 case $cc_basename in
16672 cxx*)
16673 lt_prog_compiler_pic_CXX='-W c,exportall'
16674 ;;
16675 *)
16676 ;;
16677 esac
16678 ;;
53ba6704 16679 netbsd*)
9c60689e
DWT
16680 ;;
16681 *qnx* | *nto*)
16682 # QNX uses GNU C++, but need to define -shared option too, otherwise
16683 # it will coredump.
16684 lt_prog_compiler_pic_CXX='-fPIC -shared'
16685 ;;
16686 osf3* | osf4* | osf5*)
16687 case $cc_basename in
16688 KCC*)
16689 lt_prog_compiler_wl_CXX='--backend -Wl,'
16690 ;;
16691 RCC*)
16692 # Rational C++ 2.4.1
16693 lt_prog_compiler_pic_CXX='-pic'
16694 ;;
16695 cxx*)
16696 # Digital/Compaq C++
16697 lt_prog_compiler_wl_CXX='-Wl,'
16698 # Make sure the PIC flag is empty. It appears that all Alpha
16699 # Linux and Compaq Tru64 Unix objects are PIC.
16700 lt_prog_compiler_pic_CXX=
16701 lt_prog_compiler_static_CXX='-non_shared'
16702 ;;
16703 *)
16704 ;;
16705 esac
16706 ;;
16707 psos*)
16708 ;;
16709 solaris*)
16710 case $cc_basename in
ee134472 16711 CC* | sunCC*)
9c60689e
DWT
16712 # Sun C++ 4.2, 5.x and Centerline C++
16713 lt_prog_compiler_pic_CXX='-KPIC'
16714 lt_prog_compiler_static_CXX='-Bstatic'
16715 lt_prog_compiler_wl_CXX='-Qoption ld '
16716 ;;
16717 gcx*)
16718 # Green Hills C++ Compiler
16719 lt_prog_compiler_pic_CXX='-PIC'
16720 ;;
16721 *)
16722 ;;
16723 esac
16724 ;;
16725 sunos4*)
16726 case $cc_basename in
16727 CC*)
16728 # Sun C++ 4.x
16729 lt_prog_compiler_pic_CXX='-pic'
16730 lt_prog_compiler_static_CXX='-Bstatic'
16731 ;;
16732 lcc*)
16733 # Lucid
16734 lt_prog_compiler_pic_CXX='-pic'
16735 ;;
16736 *)
16737 ;;
16738 esac
16739 ;;
16740 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16741 case $cc_basename in
16742 CC*)
16743 lt_prog_compiler_wl_CXX='-Wl,'
16744 lt_prog_compiler_pic_CXX='-KPIC'
16745 lt_prog_compiler_static_CXX='-Bstatic'
16746 ;;
16747 esac
16748 ;;
16749 tandem*)
16750 case $cc_basename in
16751 NCC*)
16752 # NonStop-UX NCC 3.20
16753 lt_prog_compiler_pic_CXX='-KPIC'
16754 ;;
16755 *)
16756 ;;
16757 esac
16758 ;;
16759 vxworks*)
16760 ;;
16761 *)
16762 lt_prog_compiler_can_build_shared_CXX=no
16763 ;;
16764 esac
16765 fi
16766
16767case $host_os in
9d54db95 16768 # For platforms that do not support PIC, -DPIC is meaningless:
9c60689e
DWT
16769 *djgpp*)
16770 lt_prog_compiler_pic_CXX=
16771 ;;
16772 *)
16773 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16774 ;;
16775esac
9c60689e 16776
ee134472
JF
16777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16778$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16779if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16780 $as_echo_n "(cached) " >&6
16781else
16782 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16783fi
16784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16785$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16786lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
9c60689e
DWT
16787
16788#
16789# Check to make sure the PIC flag actually works.
16790#
16791if test -n "$lt_prog_compiler_pic_CXX"; then
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16793$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
ee134472 16794if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
9c60689e
DWT
16795 $as_echo_n "(cached) " >&6
16796else
16797 lt_cv_prog_compiler_pic_works_CXX=no
16798 ac_outfile=conftest.$ac_objext
16799 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9d54db95 16800 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
9c60689e
DWT
16801 # Insert the option either (1) after the last *FLAGS variable, or
16802 # (2) before a word containing "conftest.", or (3) at the end.
16803 # Note that $ac_compile itself does not contain backslashes and begins
16804 # with a dollar sign (not a hyphen), so the echo should work correctly.
16805 # The option is referenced via a variable to avoid confusing sed.
16806 lt_compile=`echo "$ac_compile" | $SED \
16807 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16808 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16809 -e 's:$: $lt_compiler_flag:'`
ee134472 16810 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9c60689e
DWT
16811 (eval "$lt_compile" 2>conftest.err)
16812 ac_status=$?
16813 cat conftest.err >&5
ee134472 16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9c60689e
DWT
16815 if (exit $ac_status) && test -s "$ac_outfile"; then
16816 # The compiler can only warn and ignore the option if not recognized
16817 # So say no if there are warnings other than the usual output.
ee134472 16818 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9c60689e
DWT
16819 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16820 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16821 lt_cv_prog_compiler_pic_works_CXX=yes
16822 fi
16823 fi
00a96142 16824 $RM -r conftest*
9c60689e
DWT
16825
16826fi
16827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16828$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16829
9d54db95 16830if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
9c60689e
DWT
16831 case $lt_prog_compiler_pic_CXX in
16832 "" | " "*) ;;
16833 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16834 esac
16835else
16836 lt_prog_compiler_pic_CXX=
16837 lt_prog_compiler_can_build_shared_CXX=no
16838fi
16839
16840fi
16841
16842
16843
ee134472
JF
16844
16845
47aaa820
DWT
16846#
16847# Check to make sure the static flag actually works.
16848#
16849wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16851$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
ee134472 16852if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
47aaa820
DWT
16853 $as_echo_n "(cached) " >&6
16854else
16855 lt_cv_prog_compiler_static_works_CXX=no
9d54db95 16856 save_LDFLAGS=$LDFLAGS
47aaa820
DWT
16857 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16858 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16859 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16860 # The linker can only warn and ignore the option if not recognized
16861 # So say no if there are warnings
16862 if test -s conftest.err; then
16863 # Append any errors to the config.log.
16864 cat conftest.err 1>&5
ee134472 16865 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
47aaa820
DWT
16866 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16867 if diff conftest.exp conftest.er2 >/dev/null; then
16868 lt_cv_prog_compiler_static_works_CXX=yes
16869 fi
16870 else
16871 lt_cv_prog_compiler_static_works_CXX=yes
16872 fi
16873 fi
16874 $RM -r conftest*
9d54db95 16875 LDFLAGS=$save_LDFLAGS
47aaa820
DWT
16876
16877fi
16878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16879$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16880
9d54db95 16881if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
47aaa820
DWT
16882 :
16883else
16884 lt_prog_compiler_static_CXX=
16885fi
16886
16887
16888
16889
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16891$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ee134472 16892if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
47aaa820
DWT
16893 $as_echo_n "(cached) " >&6
16894else
16895 lt_cv_prog_compiler_c_o_CXX=no
16896 $RM -r conftest 2>/dev/null
16897 mkdir conftest
16898 cd conftest
16899 mkdir out
16900 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16901
16902 lt_compiler_flag="-o out/conftest2.$ac_objext"
16903 # Insert the option either (1) after the last *FLAGS variable, or
16904 # (2) before a word containing "conftest.", or (3) at the end.
16905 # Note that $ac_compile itself does not contain backslashes and begins
16906 # with a dollar sign (not a hyphen), so the echo should work correctly.
16907 lt_compile=`echo "$ac_compile" | $SED \
16908 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16909 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16910 -e 's:$: $lt_compiler_flag:'`
ee134472 16911 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
47aaa820
DWT
16912 (eval "$lt_compile" 2>out/conftest.err)
16913 ac_status=$?
16914 cat out/conftest.err >&5
ee134472 16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47aaa820
DWT
16916 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16917 then
16918 # The compiler can only warn and ignore the option if not recognized
16919 # So say no if there are warnings
ee134472 16920 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
47aaa820
DWT
16921 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16922 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16923 lt_cv_prog_compiler_c_o_CXX=yes
16924 fi
16925 fi
16926 chmod u+w . 2>&5
00a96142 16927 $RM -r conftest*
47aaa820
DWT
16928 # SGI C++ compiler will create directory out/ii_files/ for
16929 # template instantiation
16930 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16931 $RM out/* && rmdir out
16932 cd ..
16933 $RM -r conftest
00a96142 16934 $RM -r conftest*
47aaa820
DWT
16935
16936fi
16937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16938$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16939
16940
16941
16942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16943$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ee134472 16944if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
47aaa820
DWT
16945 $as_echo_n "(cached) " >&6
16946else
16947 lt_cv_prog_compiler_c_o_CXX=no
16948 $RM -r conftest 2>/dev/null
16949 mkdir conftest
16950 cd conftest
16951 mkdir out
16952 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16953
16954 lt_compiler_flag="-o out/conftest2.$ac_objext"
16955 # Insert the option either (1) after the last *FLAGS variable, or
16956 # (2) before a word containing "conftest.", or (3) at the end.
16957 # Note that $ac_compile itself does not contain backslashes and begins
16958 # with a dollar sign (not a hyphen), so the echo should work correctly.
16959 lt_compile=`echo "$ac_compile" | $SED \
16960 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16961 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16962 -e 's:$: $lt_compiler_flag:'`
ee134472 16963 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
47aaa820
DWT
16964 (eval "$lt_compile" 2>out/conftest.err)
16965 ac_status=$?
16966 cat out/conftest.err >&5
ee134472 16967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47aaa820
DWT
16968 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16969 then
16970 # The compiler can only warn and ignore the option if not recognized
16971 # So say no if there are warnings
ee134472 16972 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
47aaa820
DWT
16973 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16974 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16975 lt_cv_prog_compiler_c_o_CXX=yes
16976 fi
16977 fi
16978 chmod u+w . 2>&5
00a96142 16979 $RM -r conftest*
47aaa820
DWT
16980 # SGI C++ compiler will create directory out/ii_files/ for
16981 # template instantiation
16982 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16983 $RM out/* && rmdir out
16984 cd ..
16985 $RM -r conftest
00a96142 16986 $RM -r conftest*
47aaa820
DWT
16987
16988fi
16989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16990$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16991
16992
16993
16994
9d54db95
JF
16995hard_links=nottested
16996if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
47aaa820
DWT
16997 # do not overwrite the value of need_locks provided by the user
16998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16999$as_echo_n "checking if we can lock with hard links... " >&6; }
17000 hard_links=yes
00a96142 17001 $RM -r conftest*
47aaa820
DWT
17002 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17003 touch conftest.a
17004 ln conftest.a conftest.b 2>&5 || hard_links=no
17005 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17007$as_echo "$hard_links" >&6; }
9d54db95
JF
17008 if test no = "$hard_links"; then
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17010$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
47aaa820
DWT
17011 need_locks=warn
17012 fi
17013else
17014 need_locks=no
17015fi
17016
17017
17018
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17020$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17021
17022 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
ee134472 17023 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
47aaa820
DWT
17024 case $host_os in
17025 aix[4-9]*)
17026 # If we're using GNU nm, then we don't want the "-C" option.
9d54db95
JF
17027 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17028 # Without the "-l" option, or with the "-B" option, AIX nm treats
17029 # weak defined symbols like other global defined symbols, whereas
17030 # GNU nm marks them as "W".
17031 # While the 'weak' keyword is ignored in the Export File, we need
17032 # it in the Import File for the 'aix-soname' feature, so we have
17033 # to replace the "-B" option with "-P" for AIX nm.
47aaa820 17034 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9d54db95 17035 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
47aaa820 17036 else
9d54db95 17037 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
47aaa820
DWT
17038 fi
17039 ;;
17040 pw32*)
9d54db95 17041 export_symbols_cmds_CXX=$ltdll_cmds
ee134472 17042 ;;
47aaa820 17043 cygwin* | mingw* | cegcc*)
ee134472 17044 case $cc_basename in
53ba6704
JF
17045 cl*)
17046 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17047 ;;
ee134472
JF
17048 *)
17049 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
17050 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17051 ;;
17052 esac
17053 ;;
47aaa820
DWT
17054 *)
17055 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
ee134472 17056 ;;
47aaa820 17057 esac
47aaa820
DWT
17058
17059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17060$as_echo "$ld_shlibs_CXX" >&6; }
9d54db95 17061test no = "$ld_shlibs_CXX" && can_build_shared=no
47aaa820
DWT
17062
17063with_gnu_ld_CXX=$with_gnu_ld
17064
17065
17066
17067
17068
17069
17070#
17071# Do we need to explicitly link libc?
17072#
17073case "x$archive_cmds_need_lc_CXX" in
17074x|xyes)
17075 # Assume -lc should be added
17076 archive_cmds_need_lc_CXX=yes
17077
9d54db95 17078 if test yes,yes = "$GCC,$enable_shared"; then
47aaa820
DWT
17079 case $archive_cmds_CXX in
17080 *'~'*)
17081 # FIXME: we may have to deal with multi-command sequences.
17082 ;;
17083 '$CC '*)
17084 # Test whether the compiler implicitly links with -lc since on some
17085 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17086 # to ld, don't add -lc before -lgcc.
17087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17088$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
ee134472
JF
17089if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17090 $as_echo_n "(cached) " >&6
17091else
00a96142 17092 $RM -r conftest*
ee134472 17093 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
47aaa820 17094
ee134472 17095 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
47aaa820
DWT
17096 (eval $ac_compile) 2>&5
17097 ac_status=$?
17098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17099 test $ac_status = 0; } 2>conftest.err; then
ee134472
JF
17100 soname=conftest
17101 lib=conftest
17102 libobjs=conftest.$ac_objext
17103 deplibs=
17104 wl=$lt_prog_compiler_wl_CXX
17105 pic_flag=$lt_prog_compiler_pic_CXX
17106 compiler_flags=-v
17107 linker_flags=-v
17108 verstring=
17109 output_objdir=.
17110 libname=conftest
17111 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17112 allow_undefined_flag_CXX=
17113 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
47aaa820
DWT
17114 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17115 ac_status=$?
17116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17117 test $ac_status = 0; }
ee134472
JF
17118 then
17119 lt_cv_archive_cmds_need_lc_CXX=no
17120 else
17121 lt_cv_archive_cmds_need_lc_CXX=yes
17122 fi
17123 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17124 else
17125 cat conftest.err 1>&5
17126 fi
00a96142 17127 $RM -r conftest*
ee134472
JF
17128
17129fi
17130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17131$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17132 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
47aaa820
DWT
17133 ;;
17134 esac
17135 fi
17136 ;;
17137esac
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
47aaa820
DWT
17197
17198
17199
17200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17201$as_echo_n "checking dynamic linker characteristics... " >&6; }
17202
17203library_names_spec=
17204libname_spec='lib$name'
17205soname_spec=
9d54db95 17206shrext_cmds=.so
47aaa820
DWT
17207postinstall_cmds=
17208postuninstall_cmds=
17209finish_cmds=
17210finish_eval=
17211shlibpath_var=
17212shlibpath_overrides_runpath=unknown
17213version_type=none
17214dynamic_linker="$host_os ld.so"
17215sys_lib_dlsearch_path_spec="/lib /usr/lib"
17216need_lib_prefix=unknown
17217hardcode_into_libs=no
17218
17219# when you set need_version to no, make sure it does not cause -set_version
17220# flags to be left without arguments
17221need_version=unknown
17222
9d54db95
JF
17223
17224
47aaa820
DWT
17225case $host_os in
17226aix3*)
53ba6704 17227 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95 17228 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
47aaa820
DWT
17229 shlibpath_var=LIBPATH
17230
17231 # AIX 3 has no versioning support, so we append a major version to the name.
9d54db95 17232 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17233 ;;
17234
17235aix[4-9]*)
53ba6704 17236 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
17237 need_lib_prefix=no
17238 need_version=no
17239 hardcode_into_libs=yes
9d54db95 17240 if test ia64 = "$host_cpu"; then
47aaa820 17241 # AIX 5 supports IA64
9d54db95 17242 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
47aaa820
DWT
17243 shlibpath_var=LD_LIBRARY_PATH
17244 else
17245 # With GCC up to 2.95.x, collect2 would create an import file
17246 # for dependence libraries. The import file would start with
9d54db95
JF
17247 # the line '#! .'. This would cause the generated library to
17248 # depend on '.', always an invalid library. This was fixed in
47aaa820
DWT
17249 # development snapshots of GCC prior to 3.0.
17250 case $host_os in
17251 aix4 | aix4.[01] | aix4.[01].*)
17252 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17253 echo ' yes '
9d54db95 17254 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
47aaa820
DWT
17255 :
17256 else
17257 can_build_shared=no
17258 fi
17259 ;;
17260 esac
9d54db95
JF
17261 # Using Import Files as archive members, it is possible to support
17262 # filename-based versioning of shared library archives on AIX. While
17263 # this would work for both with and without runtime linking, it will
17264 # prevent static linking of such archives. So we do filename-based
17265 # shared library versioning with .so extension only, which is used
17266 # when both runtime linking and shared linking is enabled.
17267 # Unfortunately, runtime linking may impact performance, so we do
17268 # not want this to be the default eventually. Also, we use the
17269 # versioned .so libs for executables only if there is the -brtl
17270 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17271 # To allow for filename-based versioning support, we need to create
17272 # libNAME.so.V as an archive file, containing:
17273 # *) an Import File, referring to the versioned filename of the
17274 # archive as well as the shared archive member, telling the
17275 # bitwidth (32 or 64) of that shared object, and providing the
17276 # list of exported symbols of that shared object, eventually
17277 # decorated with the 'weak' keyword
17278 # *) the shared object with the F_LOADONLY flag set, to really avoid
17279 # it being seen by the linker.
17280 # At run time we better use the real file rather than another symlink,
17281 # but for link time we create the symlink libNAME.so -> libNAME.so.V
17282
17283 case $with_aix_soname,$aix_use_runtimelinking in
17284 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
47aaa820
DWT
17285 # soname into executable. Probably we can add versioning support to
17286 # collect2, so additional links can be useful in future.
9d54db95
JF
17287 aix,yes) # traditional libtool
17288 dynamic_linker='AIX unversionable lib.so'
47aaa820
DWT
17289 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17290 # instead of lib<name>.a to let people know that these are not
17291 # typical AIX shared libraries.
9d54db95
JF
17292 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17293 ;;
17294 aix,no) # traditional AIX only
17295 dynamic_linker='AIX lib.a(lib.so.V)'
47aaa820
DWT
17296 # We preserve .a as extension for shared libraries through AIX4.2
17297 # and later when we are not doing run time linking.
9d54db95
JF
17298 library_names_spec='$libname$release.a $libname.a'
17299 soname_spec='$libname$release$shared_ext$major'
17300 ;;
17301 svr4,*) # full svr4 only
17302 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17303 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17304 # We do not specify a path in Import Files, so LIBPATH fires.
17305 shlibpath_overrides_runpath=yes
17306 ;;
17307 *,yes) # both, prefer svr4
17308 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17309 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17310 # unpreferred sharedlib libNAME.a needs extra handling
17311 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
17312 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
17313 # We do not specify a path in Import Files, so LIBPATH fires.
17314 shlibpath_overrides_runpath=yes
17315 ;;
17316 *,no) # both, prefer aix
17317 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17318 library_names_spec='$libname$release.a $libname.a'
17319 soname_spec='$libname$release$shared_ext$major'
17320 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17321 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
17322 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
17323 ;;
17324 esac
47aaa820
DWT
17325 shlibpath_var=LIBPATH
17326 fi
17327 ;;
17328
17329amigaos*)
17330 case $host_cpu in
17331 powerpc)
17332 # Since July 2007 AmigaOS4 officially supports .so libraries.
17333 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9d54db95 17334 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
47aaa820
DWT
17335 ;;
17336 m68k)
17337 library_names_spec='$libname.ixlibrary $libname.a'
17338 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9d54db95 17339 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
47aaa820
DWT
17340 ;;
17341 esac
17342 ;;
17343
17344beos*)
9d54db95 17345 library_names_spec='$libname$shared_ext'
47aaa820
DWT
17346 dynamic_linker="$host_os ld.so"
17347 shlibpath_var=LIBRARY_PATH
17348 ;;
17349
17350bsdi[45]*)
53ba6704 17351 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820 17352 need_version=no
9d54db95
JF
17353 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17354 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17355 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17356 shlibpath_var=LD_LIBRARY_PATH
17357 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17358 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17359 # the default ld.so.conf also contains /usr/contrib/lib and
17360 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17361 # libtool to hard-code these into programs
17362 ;;
9c60689e 17363
47aaa820
DWT
17364cygwin* | mingw* | pw32* | cegcc*)
17365 version_type=windows
9d54db95 17366 shrext_cmds=.dll
47aaa820
DWT
17367 need_version=no
17368 need_lib_prefix=no
9c60689e 17369
ee134472
JF
17370 case $GCC,$cc_basename in
17371 yes,*)
17372 # gcc
47aaa820
DWT
17373 library_names_spec='$libname.dll.a'
17374 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9d54db95
JF
17375 postinstall_cmds='base_file=`basename \$file`~
17376 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
47aaa820
DWT
17377 dldir=$destdir/`dirname \$dlpath`~
17378 test -d \$dldir || mkdir -p \$dldir~
17379 $install_prog $dir/$dlname \$dldir/$dlname~
17380 chmod a+x \$dldir/$dlname~
17381 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17382 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17383 fi'
17384 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17385 dlpath=$dir/\$dldll~
17386 $RM \$dlpath'
17387 shlibpath_overrides_runpath=yes
9c60689e 17388
47aaa820
DWT
17389 case $host_os in
17390 cygwin*)
17391 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9d54db95 17392 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
ee134472 17393
47aaa820
DWT
17394 ;;
17395 mingw* | cegcc*)
17396 # MinGW DLLs use traditional 'lib' prefix
9d54db95 17397 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
47aaa820
DWT
17398 ;;
17399 pw32*)
17400 # pw32 DLLs use 'pw' prefix rather than 'lib'
9d54db95 17401 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
47aaa820
DWT
17402 ;;
17403 esac
ee134472
JF
17404 dynamic_linker='Win32 ld.exe'
17405 ;;
17406
17407 *,cl*)
17408 # Native MSVC
17409 libname_spec='$name'
9d54db95
JF
17410 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17411 library_names_spec='$libname.dll.lib'
ee134472
JF
17412
17413 case $build_os in
17414 mingw*)
17415 sys_lib_search_path_spec=
17416 lt_save_ifs=$IFS
17417 IFS=';'
17418 for lt_path in $LIB
17419 do
17420 IFS=$lt_save_ifs
17421 # Let DOS variable expansion print the short 8.3 style file name.
17422 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17423 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17424 done
17425 IFS=$lt_save_ifs
17426 # Convert to MSYS style.
17427 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17428 ;;
17429 cygwin*)
17430 # Convert to unix form, then to dos form, then back to unix form
17431 # but this time dos style (no spaces!) so that the unix form looks
17432 # like /cygdrive/c/PROGRA~1:/cygdr...
17433 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17434 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17435 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17436 ;;
17437 *)
9d54db95 17438 sys_lib_search_path_spec=$LIB
ee134472
JF
17439 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17440 # It is most probably a Windows format PATH.
17441 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17442 else
17443 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17444 fi
17445 # FIXME: find the short name or the path components, as spaces are
17446 # common. (e.g. "Program Files" -> "PROGRA~1")
17447 ;;
17448 esac
17449
17450 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9d54db95
JF
17451 postinstall_cmds='base_file=`basename \$file`~
17452 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
ee134472
JF
17453 dldir=$destdir/`dirname \$dlpath`~
17454 test -d \$dldir || mkdir -p \$dldir~
17455 $install_prog $dir/$dlname \$dldir/$dlname'
17456 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17457 dlpath=$dir/\$dldll~
17458 $RM \$dlpath'
17459 shlibpath_overrides_runpath=yes
17460 dynamic_linker='Win32 link.exe'
47aaa820 17461 ;;
9c60689e 17462
47aaa820 17463 *)
ee134472 17464 # Assume MSVC wrapper
9d54db95 17465 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
ee134472 17466 dynamic_linker='Win32 ld.exe'
47aaa820
DWT
17467 ;;
17468 esac
47aaa820
DWT
17469 # FIXME: first we should search . and the directory the executable is in
17470 shlibpath_var=PATH
17471 ;;
9c60689e 17472
47aaa820
DWT
17473darwin* | rhapsody*)
17474 dynamic_linker="$host_os dyld"
17475 version_type=darwin
17476 need_lib_prefix=no
17477 need_version=no
9d54db95
JF
17478 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17479 soname_spec='$libname$release$major$shared_ext'
47aaa820
DWT
17480 shlibpath_overrides_runpath=yes
17481 shlibpath_var=DYLD_LIBRARY_PATH
17482 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9c60689e 17483
47aaa820
DWT
17484 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17485 ;;
9c60689e 17486
47aaa820 17487dgux*)
53ba6704 17488 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
17489 need_lib_prefix=no
17490 need_version=no
9d54db95
JF
17491 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17492 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17493 shlibpath_var=LD_LIBRARY_PATH
17494 ;;
9c60689e 17495
47aaa820
DWT
17496freebsd* | dragonfly*)
17497 # DragonFly does not have aout. When/if they implement a new
17498 # versioning mechanism, adjust this.
17499 if test -x /usr/bin/objformat; then
17500 objformat=`/usr/bin/objformat`
17501 else
17502 case $host_os in
53ba6704 17503 freebsd[23].*) objformat=aout ;;
47aaa820
DWT
17504 *) objformat=elf ;;
17505 esac
17506 fi
17507 version_type=freebsd-$objformat
17508 case $version_type in
17509 freebsd-elf*)
9d54db95
JF
17510 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17511 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17512 need_version=no
17513 need_lib_prefix=no
17514 ;;
17515 freebsd-*)
9d54db95 17516 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
47aaa820
DWT
17517 need_version=yes
17518 ;;
17519 esac
17520 shlibpath_var=LD_LIBRARY_PATH
17521 case $host_os in
53ba6704 17522 freebsd2.*)
47aaa820
DWT
17523 shlibpath_overrides_runpath=yes
17524 ;;
17525 freebsd3.[01]* | freebsdelf3.[01]*)
17526 shlibpath_overrides_runpath=yes
17527 hardcode_into_libs=yes
17528 ;;
17529 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17530 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17531 shlibpath_overrides_runpath=no
17532 hardcode_into_libs=yes
17533 ;;
17534 *) # from 4.6 on, and DragonFly
17535 shlibpath_overrides_runpath=yes
17536 hardcode_into_libs=yes
17537 ;;
17538 esac
17539 ;;
9c60689e 17540
ee134472 17541haiku*)
53ba6704 17542 version_type=linux # correct to gnu/linux during the next big refactor
ee134472
JF
17543 need_lib_prefix=no
17544 need_version=no
17545 dynamic_linker="$host_os runtime_loader"
9d54db95
JF
17546 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17547 soname_spec='$libname$release$shared_ext$major'
ee134472 17548 shlibpath_var=LIBRARY_PATH
9d54db95 17549 shlibpath_overrides_runpath=no
ee134472 17550 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
47aaa820
DWT
17551 hardcode_into_libs=yes
17552 ;;
9c60689e 17553
47aaa820
DWT
17554hpux9* | hpux10* | hpux11*)
17555 # Give a soname corresponding to the major version so that dld.sl refuses to
17556 # link against other versions.
17557 version_type=sunos
17558 need_lib_prefix=no
17559 need_version=no
17560 case $host_cpu in
17561 ia64*)
17562 shrext_cmds='.so'
17563 hardcode_into_libs=yes
17564 dynamic_linker="$host_os dld.so"
17565 shlibpath_var=LD_LIBRARY_PATH
17566 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9d54db95
JF
17567 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17568 soname_spec='$libname$release$shared_ext$major'
17569 if test 32 = "$HPUX_IA64_MODE"; then
47aaa820 17570 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9d54db95 17571 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
47aaa820
DWT
17572 else
17573 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9d54db95 17574 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
47aaa820 17575 fi
47aaa820
DWT
17576 ;;
17577 hppa*64*)
17578 shrext_cmds='.sl'
17579 hardcode_into_libs=yes
17580 dynamic_linker="$host_os dld.sl"
17581 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17582 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9d54db95
JF
17583 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17584 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17585 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17586 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17587 ;;
17588 *)
17589 shrext_cmds='.sl'
17590 dynamic_linker="$host_os dld.sl"
17591 shlibpath_var=SHLIB_PATH
17592 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9d54db95
JF
17593 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17594 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17595 ;;
17596 esac
ee134472 17597 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
47aaa820 17598 postinstall_cmds='chmod 555 $lib'
ee134472
JF
17599 # or fails outright, so override atomically:
17600 install_override_mode=555
47aaa820 17601 ;;
9c60689e 17602
47aaa820 17603interix[3-9]*)
53ba6704 17604 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
17605 need_lib_prefix=no
17606 need_version=no
9d54db95
JF
17607 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17608 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17609 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17610 shlibpath_var=LD_LIBRARY_PATH
17611 shlibpath_overrides_runpath=no
17612 hardcode_into_libs=yes
17613 ;;
9c60689e 17614
47aaa820
DWT
17615irix5* | irix6* | nonstopux*)
17616 case $host_os in
17617 nonstopux*) version_type=nonstopux ;;
17618 *)
9d54db95 17619 if test yes = "$lt_cv_prog_gnu_ld"; then
53ba6704 17620 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
17621 else
17622 version_type=irix
17623 fi ;;
17624 esac
17625 need_lib_prefix=no
17626 need_version=no
9d54db95
JF
17627 soname_spec='$libname$release$shared_ext$major'
17628 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
47aaa820
DWT
17629 case $host_os in
17630 irix5* | nonstopux*)
17631 libsuff= shlibsuff=
17632 ;;
17633 *)
17634 case $LD in # libtool.m4 will add one of these switches to LD
17635 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17636 libsuff= shlibsuff= libmagic=32-bit;;
17637 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17638 libsuff=32 shlibsuff=N32 libmagic=N32;;
17639 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17640 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17641 *) libsuff= shlibsuff= libmagic=never-match;;
17642 esac
17643 ;;
17644 esac
17645 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17646 shlibpath_overrides_runpath=no
9d54db95
JF
17647 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17648 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
47aaa820
DWT
17649 hardcode_into_libs=yes
17650 ;;
9c60689e 17651
47aaa820
DWT
17652# No shared lib support for Linux oldld, aout, or coff.
17653linux*oldld* | linux*aout* | linux*coff*)
17654 dynamic_linker=no
17655 ;;
9c60689e 17656
9d54db95
JF
17657linux*android*)
17658 version_type=none # Android doesn't support versioned libraries.
17659 need_lib_prefix=no
17660 need_version=no
17661 library_names_spec='$libname$release$shared_ext'
17662 soname_spec='$libname$release$shared_ext'
17663 finish_cmds=
17664 shlibpath_var=LD_LIBRARY_PATH
17665 shlibpath_overrides_runpath=yes
17666
17667 # This implies no fast_install, which is unacceptable.
17668 # Some rework will be needed to allow for fast_install
17669 # before this can be enabled.
17670 hardcode_into_libs=yes
17671
17672 dynamic_linker='Android linker'
17673 # Don't embed -rpath directories since the linker doesn't support them.
17674 hardcode_libdir_flag_spec_CXX='-L$libdir'
17675 ;;
17676
53ba6704 17677# This must be glibc/ELF.
9d54db95 17678linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
53ba6704 17679 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
17680 need_lib_prefix=no
17681 need_version=no
9d54db95
JF
17682 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17683 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17684 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17685 shlibpath_var=LD_LIBRARY_PATH
17686 shlibpath_overrides_runpath=no
ee134472 17687
47aaa820 17688 # Some binutils ld are patched to set DT_RUNPATH
ee134472
JF
17689 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17690 $as_echo_n "(cached) " >&6
17691else
17692 lt_cv_shlibpath_overrides_runpath=no
17693 save_LDFLAGS=$LDFLAGS
17694 save_libdir=$libdir
17695 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17696 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47aaa820 17698/* end confdefs.h. */
9c60689e 17699
47aaa820
DWT
17700int
17701main ()
17702{
9c60689e 17703
47aaa820
DWT
17704 ;
17705 return 0;
17706}
17707_ACEOF
17708if ac_fn_cxx_try_link "$LINENO"; then :
17709 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
ee134472 17710 lt_cv_shlibpath_overrides_runpath=yes
9c60689e 17711fi
47aaa820
DWT
17712fi
17713rm -f core conftest.err conftest.$ac_objext \
17714 conftest$ac_exeext conftest.$ac_ext
ee134472
JF
17715 LDFLAGS=$save_LDFLAGS
17716 libdir=$save_libdir
17717
17718fi
17719
17720 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9c60689e 17721
47aaa820
DWT
17722 # This implies no fast_install, which is unacceptable.
17723 # Some rework will be needed to allow for fast_install
17724 # before this can be enabled.
17725 hardcode_into_libs=yes
9c60689e 17726
9d54db95
JF
17727 # Ideally, we could use ldconfig to report *all* directores which are
17728 # searched for libraries, however this is still not possible. Aside from not
17729 # being certain /sbin/ldconfig is available, command
17730 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17731 # even though it is searched at run-time. Try to do the best guess by
17732 # appending ld.so.conf contents (and includes) to the search path.
47aaa820 17733 if test -f /etc/ld.so.conf; then
ee134472 17734 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' ' '`
47aaa820
DWT
17735 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17736 fi
9c60689e 17737
47aaa820
DWT
17738 # We used to test for /lib/ld.so.1 and disable shared libraries on
17739 # powerpc, because MkLinux only supported shared libraries with the
17740 # GNU dynamic linker. Since this was broken with cross compilers,
17741 # most powerpc-linux boxes support dynamic linking these days and
17742 # people can always --disable-shared, the test was removed, and we
17743 # assume the GNU/Linux dynamic linker is in use.
17744 dynamic_linker='GNU/Linux ld.so'
9c60689e 17745 ;;
47aaa820 17746
47aaa820
DWT
17747netbsd*)
17748 version_type=sunos
17749 need_lib_prefix=no
17750 need_version=no
17751 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9d54db95 17752 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
47aaa820
DWT
17753 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17754 dynamic_linker='NetBSD (a.out) ld.so'
17755 else
9d54db95
JF
17756 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17757 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17758 dynamic_linker='NetBSD ld.elf_so'
17759 fi
17760 shlibpath_var=LD_LIBRARY_PATH
17761 shlibpath_overrides_runpath=yes
17762 hardcode_into_libs=yes
9c60689e 17763 ;;
9c60689e 17764
47aaa820 17765newsos6)
53ba6704 17766 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95 17767 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
47aaa820
DWT
17768 shlibpath_var=LD_LIBRARY_PATH
17769 shlibpath_overrides_runpath=yes
17770 ;;
9c60689e 17771
47aaa820
DWT
17772*nto* | *qnx*)
17773 version_type=qnx
17774 need_lib_prefix=no
17775 need_version=no
9d54db95
JF
17776 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17777 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17778 shlibpath_var=LD_LIBRARY_PATH
17779 shlibpath_overrides_runpath=no
17780 hardcode_into_libs=yes
17781 dynamic_linker='ldqnx.so'
17782 ;;
9c60689e 17783
9d54db95 17784openbsd* | bitrig*)
47aaa820 17785 version_type=sunos
9d54db95 17786 sys_lib_dlsearch_path_spec=/usr/lib
47aaa820 17787 need_lib_prefix=no
9d54db95
JF
17788 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17789 need_version=no
47aaa820 17790 else
9d54db95 17791 need_version=yes
47aaa820 17792 fi
9d54db95
JF
17793 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17794 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17795 shlibpath_var=LD_LIBRARY_PATH
17796 shlibpath_overrides_runpath=yes
47aaa820 17797 ;;
9c60689e 17798
47aaa820
DWT
17799os2*)
17800 libname_spec='$name'
9d54db95
JF
17801 version_type=windows
17802 shrext_cmds=.dll
17803 need_version=no
47aaa820 17804 need_lib_prefix=no
9d54db95
JF
17805 # OS/2 can only load a DLL with a base name of 8 characters or less.
17806 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17807 v=$($ECHO $release$versuffix | tr -d .-);
17808 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17809 $ECHO $n$v`$shared_ext'
17810 library_names_spec='${libname}_dll.$libext'
47aaa820 17811 dynamic_linker='OS/2 ld.exe'
9d54db95
JF
17812 shlibpath_var=BEGINLIBPATH
17813 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17814 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17815 postinstall_cmds='base_file=`basename \$file`~
17816 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17817 dldir=$destdir/`dirname \$dlpath`~
17818 test -d \$dldir || mkdir -p \$dldir~
17819 $install_prog $dir/$dlname \$dldir/$dlname~
17820 chmod a+x \$dldir/$dlname~
17821 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17822 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17823 fi'
17824 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17825 dlpath=$dir/\$dldll~
17826 $RM \$dlpath'
47aaa820 17827 ;;
9c60689e 17828
47aaa820
DWT
17829osf3* | osf4* | osf5*)
17830 version_type=osf
17831 need_lib_prefix=no
17832 need_version=no
9d54db95
JF
17833 soname_spec='$libname$release$shared_ext$major'
17834 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
47aaa820
DWT
17835 shlibpath_var=LD_LIBRARY_PATH
17836 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9d54db95 17837 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
47aaa820 17838 ;;
9c60689e 17839
47aaa820
DWT
17840rdos*)
17841 dynamic_linker=no
17842 ;;
9c60689e 17843
47aaa820 17844solaris*)
53ba6704 17845 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
17846 need_lib_prefix=no
17847 need_version=no
9d54db95
JF
17848 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17849 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17850 shlibpath_var=LD_LIBRARY_PATH
17851 shlibpath_overrides_runpath=yes
17852 hardcode_into_libs=yes
17853 # ldd complains unless libraries are executable
17854 postinstall_cmds='chmod +x $lib'
17855 ;;
9c60689e 17856
47aaa820
DWT
17857sunos4*)
17858 version_type=sunos
9d54db95 17859 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
47aaa820
DWT
17860 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17861 shlibpath_var=LD_LIBRARY_PATH
17862 shlibpath_overrides_runpath=yes
9d54db95 17863 if test yes = "$with_gnu_ld"; then
47aaa820
DWT
17864 need_lib_prefix=no
17865 fi
17866 need_version=yes
17867 ;;
9c60689e 17868
47aaa820 17869sysv4 | sysv4.3*)
53ba6704 17870 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95
JF
17871 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17872 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17873 shlibpath_var=LD_LIBRARY_PATH
17874 case $host_vendor in
17875 sni)
17876 shlibpath_overrides_runpath=no
17877 need_lib_prefix=no
17878 runpath_var=LD_RUN_PATH
9c60689e 17879 ;;
47aaa820
DWT
17880 siemens)
17881 need_lib_prefix=no
9c60689e 17882 ;;
47aaa820
DWT
17883 motorola)
17884 need_lib_prefix=no
17885 need_version=no
17886 shlibpath_overrides_runpath=no
17887 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17888 ;;
17889 esac
9c60689e 17890 ;;
9c60689e 17891
47aaa820 17892sysv4*MP*)
9d54db95 17893 if test -d /usr/nec; then
53ba6704 17894 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95
JF
17895 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17896 soname_spec='$libname$shared_ext.$major'
47aaa820
DWT
17897 shlibpath_var=LD_LIBRARY_PATH
17898 fi
17899 ;;
9c60689e 17900
47aaa820 17901sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9d54db95 17902 version_type=sco
47aaa820
DWT
17903 need_lib_prefix=no
17904 need_version=no
9d54db95
JF
17905 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17906 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17907 shlibpath_var=LD_LIBRARY_PATH
17908 shlibpath_overrides_runpath=yes
17909 hardcode_into_libs=yes
9d54db95 17910 if test yes = "$with_gnu_ld"; then
47aaa820
DWT
17911 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17912 else
17913 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17914 case $host_os in
17915 sco3.2v5*)
17916 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17917 ;;
17918 esac
17919 fi
17920 sys_lib_dlsearch_path_spec='/usr/lib'
17921 ;;
9c60689e 17922
47aaa820
DWT
17923tpf*)
17924 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
53ba6704 17925 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
17926 need_lib_prefix=no
17927 need_version=no
9d54db95 17928 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
47aaa820
DWT
17929 shlibpath_var=LD_LIBRARY_PATH
17930 shlibpath_overrides_runpath=no
17931 hardcode_into_libs=yes
17932 ;;
9c60689e 17933
47aaa820 17934uts4*)
53ba6704 17935 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95
JF
17936 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17937 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17938 shlibpath_var=LD_LIBRARY_PATH
17939 ;;
9c60689e 17940
47aaa820
DWT
17941*)
17942 dynamic_linker=no
e9c9a47c
DWT
17943 ;;
17944esac
17945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17946$as_echo "$dynamic_linker" >&6; }
9d54db95 17947test no = "$dynamic_linker" && can_build_shared=no
e9c9a47c
DWT
17948
17949variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9d54db95 17950if test yes = "$GCC"; then
e9c9a47c 17951 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
47aaa820 17952fi
9c60689e 17953
9d54db95
JF
17954if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17955 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
47aaa820 17956fi
9d54db95
JF
17957
17958if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17959 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
47aaa820 17960fi
9c60689e 17961
9d54db95
JF
17962# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17963configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17964
17965# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17966func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17967
17968# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17969configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17970
17971
17972
9c60689e 17973
9c60689e 17974
9c60689e 17975
47aaa820 17976
47aaa820 17977
47aaa820 17978
9c60689e 17979
9c60689e 17980
47aaa820 17981
47aaa820 17982
47aaa820 17983
47aaa820 17984
47aaa820 17985
47aaa820 17986
47aaa820 17987
47aaa820 17988
9c60689e 17989
9c60689e 17990
9c60689e 17991
9c60689e 17992
9c60689e 17993
e9c9a47c
DWT
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
ee134472
JF
18005
18006
e9c9a47c
DWT
18007
18008
18009
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18011$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18012hardcode_action_CXX=
18013if test -n "$hardcode_libdir_flag_spec_CXX" ||
18014 test -n "$runpath_var_CXX" ||
9d54db95 18015 test yes = "$hardcode_automatic_CXX"; then
e9c9a47c
DWT
18016
18017 # We can hardcode non-existent directories.
9d54db95 18018 if test no != "$hardcode_direct_CXX" &&
e9c9a47c
DWT
18019 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18020 # have to relink, otherwise we might link with an installed library
18021 # when we should be linking with a yet-to-be-installed one
9d54db95
JF
18022 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
18023 test no != "$hardcode_minus_L_CXX"; then
e9c9a47c
DWT
18024 # Linking always hardcodes the temporary library directory.
18025 hardcode_action_CXX=relink
18026 else
18027 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18028 hardcode_action_CXX=immediate
18029 fi
18030else
18031 # We cannot hardcode anything, or else we can only hardcode existing
18032 # directories.
18033 hardcode_action_CXX=unsupported
18034fi
18035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18036$as_echo "$hardcode_action_CXX" >&6; }
18037
9d54db95
JF
18038if test relink = "$hardcode_action_CXX" ||
18039 test yes = "$inherit_rpath_CXX"; then
e9c9a47c
DWT
18040 # Fast installation is not supported
18041 enable_fast_install=no
9d54db95
JF
18042elif test yes = "$shlibpath_overrides_runpath" ||
18043 test no = "$enable_shared"; then
e9c9a47c
DWT
18044 # Fast installation is not necessary
18045 enable_fast_install=needless
47aaa820 18046fi
9c60689e 18047
47aaa820 18048
47aaa820 18049
e9c9a47c
DWT
18050
18051
18052
18053
a243b558
JF
18054 fi # test -n "$compiler"
18055
18056 CC=$lt_save_CC
18057 CFLAGS=$lt_save_CFLAGS
18058 LDCXX=$LD
18059 LD=$lt_save_LD
18060 GCC=$lt_save_GCC
18061 with_gnu_ld=$lt_save_with_gnu_ld
18062 lt_cv_path_LDCXX=$lt_cv_path_LD
18063 lt_cv_path_LD=$lt_save_path_LD
18064 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18065 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
9d54db95 18066fi # test yes != "$_lt_caught_CXX_error"
a243b558
JF
18067
18068ac_ext=c
18069ac_cpp='$CPP $CPPFLAGS'
18070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18072ac_compiler_gnu=$ac_cv_c_compiler_gnu
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088 ac_config_commands="$ac_config_commands libtool"
18089
18090
18091
18092
18093# Only expand once:
18094
18095
18096
18097ac_ext=cpp
18098ac_cpp='$CXXCPP $CPPFLAGS'
18099ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18100ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18101ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18102
18103
1771224f
JF
18104 ax_cxx_compile_cxx11_required=true
18105 ac_ext=cpp
18106ac_cpp='$CXXCPP $CPPFLAGS'
18107ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18108ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18109ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18110 ac_success=no
18111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
18112$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
18113if ${ax_cv_cxx_compile_cxx11+:} false; then :
18114 $as_echo_n "(cached) " >&6
18115else
18116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18117/* end confdefs.h. */
18118
18119 template <typename T>
18120 struct check
18121 {
18122 static_assert(sizeof(int) <= sizeof(T), "not big enough");
18123 };
18124
18125 struct Base {
18126 virtual void f() {}
18127 };
18128 struct Child : public Base {
18129 virtual void f() override {}
18130 };
18131
18132 typedef check<check<bool>> right_angle_brackets;
18133
18134 int a;
18135 decltype(a) b;
18136
18137 typedef check<int> check_type;
18138 check_type c;
18139 check_type&& cr = static_cast<check_type&&>(c);
18140
18141 auto d = a;
18142 auto l = [](){};
18143
18144_ACEOF
18145if ac_fn_cxx_try_compile "$LINENO"; then :
18146 ax_cv_cxx_compile_cxx11=yes
18147else
18148 ax_cv_cxx_compile_cxx11=no
18149fi
18150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18151fi
18152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
18153$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
18154 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
18155 ac_success=yes
18156 fi
18157
18158 if test x$ac_success = xno; then
18159 for switch in -std=gnu++11 -std=gnu++0x; do
18160 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
18162$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
18163if eval \${$cachevar+:} false; then :
18164 $as_echo_n "(cached) " >&6
18165else
18166 ac_save_CXXFLAGS="$CXXFLAGS"
18167 CXXFLAGS="$CXXFLAGS $switch"
18168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18169/* end confdefs.h. */
18170
18171 template <typename T>
18172 struct check
18173 {
18174 static_assert(sizeof(int) <= sizeof(T), "not big enough");
18175 };
18176
18177 struct Base {
18178 virtual void f() {}
18179 };
18180 struct Child : public Base {
18181 virtual void f() override {}
18182 };
18183
18184 typedef check<check<bool>> right_angle_brackets;
18185
18186 int a;
18187 decltype(a) b;
18188
18189 typedef check<int> check_type;
18190 check_type c;
18191 check_type&& cr = static_cast<check_type&&>(c);
18192
18193 auto d = a;
18194 auto l = [](){};
18195
18196_ACEOF
18197if ac_fn_cxx_try_compile "$LINENO"; then :
18198 eval $cachevar=yes
18199else
18200 eval $cachevar=no
18201fi
18202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18203 CXXFLAGS="$ac_save_CXXFLAGS"
18204fi
18205eval ac_res=\$$cachevar
18206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18207$as_echo "$ac_res" >&6; }
18208 if eval test x\$$cachevar = xyes; then
18209 CXXFLAGS="$CXXFLAGS $switch"
18210 ac_success=yes
18211 break
18212 fi
18213 done
18214 fi
18215
18216
18217 ac_ext=cpp
18218ac_cpp='$CXXCPP $CPPFLAGS'
18219ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18220ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18221ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18222
18223 if test x$ax_cxx_compile_cxx11_required = xtrue; then
18224 if test x$ac_success = xno; then
18225 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
18226 fi
18227 else
18228 if test x$ac_success = xno; then
18229 HAVE_CXX11=0
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
18231$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
18232 else
18233 HAVE_CXX11=1
18234
18235$as_echo "#define HAVE_CXX11 1" >>confdefs.h
18236
18237 fi
18238
18239
18240 fi
18241
18242OBJCXXFLAGS="${OBJCXXFLAGS} ${CXXFLAGS##*' '}"
18243
a243b558
JF
18244
18245
18246
18247
18248
18249
83c6fec8 18250
a243b558
JF
18251if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18252 if test -n "$ac_tool_prefix"; then
18253 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18254set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18256$as_echo_n "checking for $ac_word... " >&6; }
18257if ${ac_cv_path_PKG_CONFIG+:} false; then :
18258 $as_echo_n "(cached) " >&6
18259else
18260 case $PKG_CONFIG in
18261 [\\/]* | ?:[\\/]*)
18262 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18263 ;;
18264 *)
18265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18266for as_dir in $PATH
18267do
18268 IFS=$as_save_IFS
18269 test -z "$as_dir" && as_dir=.
18270 for ac_exec_ext in '' $ac_executable_extensions; do
18271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18272 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18274 break 2
18275 fi
18276done
18277 done
18278IFS=$as_save_IFS
18279
18280 ;;
18281esac
18282fi
18283PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18284if test -n "$PKG_CONFIG"; then
18285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18286$as_echo "$PKG_CONFIG" >&6; }
18287else
18288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18289$as_echo "no" >&6; }
18290fi
18291
18292
18293fi
18294if test -z "$ac_cv_path_PKG_CONFIG"; then
18295 ac_pt_PKG_CONFIG=$PKG_CONFIG
18296 # Extract the first word of "pkg-config", so it can be a program name with args.
18297set dummy pkg-config; ac_word=$2
18298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18299$as_echo_n "checking for $ac_word... " >&6; }
18300if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18301 $as_echo_n "(cached) " >&6
18302else
18303 case $ac_pt_PKG_CONFIG in
18304 [\\/]* | ?:[\\/]*)
18305 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18306 ;;
18307 *)
18308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18309for as_dir in $PATH
18310do
18311 IFS=$as_save_IFS
18312 test -z "$as_dir" && as_dir=.
18313 for ac_exec_ext in '' $ac_executable_extensions; do
18314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18315 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18317 break 2
18318 fi
18319done
18320 done
18321IFS=$as_save_IFS
18322
18323 ;;
18324esac
18325fi
18326ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18327if test -n "$ac_pt_PKG_CONFIG"; then
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18329$as_echo "$ac_pt_PKG_CONFIG" >&6; }
18330else
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18332$as_echo "no" >&6; }
18333fi
18334
18335 if test "x$ac_pt_PKG_CONFIG" = x; then
18336 PKG_CONFIG=""
18337 else
18338 case $cross_compiling:$ac_tool_warned in
18339yes:)
18340{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18341$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18342ac_tool_warned=yes ;;
18343esac
18344 PKG_CONFIG=$ac_pt_PKG_CONFIG
18345 fi
18346else
18347 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18348fi
18349
18350fi
18351if test -n "$PKG_CONFIG"; then
18352 _pkg_min_version=0.22
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18354$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18355 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18357$as_echo "yes" >&6; }
18358 else
18359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18360$as_echo "no" >&6; }
18361 PKG_CONFIG=""
18362 fi
18363fi
18364
a243b558
JF
18365# Extract the first word of "git", so it can be a program name with args.
18366set dummy git; ac_word=$2
18367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18368$as_echo_n "checking for $ac_word... " >&6; }
18369if ${ac_cv_path_GIT+:} false; then :
18370 $as_echo_n "(cached) " >&6
18371else
18372 case $GIT in
18373 [\\/]* | ?:[\\/]*)
18374 ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
18375 ;;
18376 *)
18377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18378for as_dir in $PATH
18379do
18380 IFS=$as_save_IFS
18381 test -z "$as_dir" && as_dir=.
18382 for ac_exec_ext in '' $ac_executable_extensions; do
18383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18384 ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
18385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18386 break 2
18387 fi
18388done
18389 done
18390IFS=$as_save_IFS
e9c9a47c 18391
a243b558
JF
18392 ;;
18393esac
18394fi
18395GIT=$ac_cv_path_GIT
18396if test -n "$GIT"; then
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
18398$as_echo "$GIT" >&6; }
18399else
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18401$as_echo "no" >&6; }
18402fi
e9c9a47c
DWT
18403
18404
a243b558
JF
18405# Extract the first word of "time", so it can be a program name with args.
18406set dummy time; ac_word=$2
632b71ea
DWT
18407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18408$as_echo_n "checking for $ac_word... " >&6; }
a243b558 18409if ${ac_cv_path_TIME+:} false; then :
632b71ea
DWT
18410 $as_echo_n "(cached) " >&6
18411else
a243b558
JF
18412 case $TIME in
18413 [\\/]* | ?:[\\/]*)
18414 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18415 ;;
18416 *)
18417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
632b71ea
DWT
18418for as_dir in $PATH
18419do
18420 IFS=$as_save_IFS
18421 test -z "$as_dir" && as_dir=.
18422 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 18423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 18424 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
632b71ea
DWT
18425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18426 break 2
18427 fi
18428done
18429 done
18430IFS=$as_save_IFS
18431
a243b558
JF
18432 ;;
18433esac
632b71ea 18434fi
a243b558
JF
18435TIME=$ac_cv_path_TIME
18436if test -n "$TIME"; then
18437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18438$as_echo "$TIME" >&6; }
632b71ea
DWT
18439else
18440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18441$as_echo "no" >&6; }
18442fi
18443
18444
a243b558
JF
18445
18446
18447
18448
18449
6ce9ac92
JF
18450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 3.0" >&5
18451$as_echo_n "checking for bison >= 3.0... " >&6; }
a243b558
JF
18452 if test -z "$BISON"; then
18453 ac_path_BISON_found=false
18454 # Loop through the user's path and test for each of PROGNAME-LIST
18455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18456for as_dir in $PATH
18457do
18458 IFS=$as_save_IFS
18459 test -z "$as_dir" && as_dir=.
18460 for ac_prog in bison; do
18461 for ac_exec_ext in '' $ac_executable_extensions; do
18462 ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext"
18463 as_fn_executable_p "$ac_path_BISON" || continue
18464version=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'`
18465 if ${version:+false} :; then :
18466
18467else
18468 as_awk_strverscmp='
18469 # Use only awk features that work with 7th edition Unix awk (1978).
18470 # My, what an old awk you have, Mr. Solaris!
18471 END {
18472 while (length(v1) && length(v2)) {
18473 # Set d1 to be the next thing to compare from v1, and likewise for d2.
18474 # Normally this is a single character, but if v1 and v2 contain digits,
18475 # compare them as integers and fractions as strverscmp does.
18476 if (v1 ~ /^0-9/ && v2 ~ /^0-9/) {
18477 # Split v1 and v2 into their leading digit string components d1 and d2,
18478 # and advance v1 and v2 past the leading digit strings.
18479 for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue
18480 for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue
18481 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
18482 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
18483 if (d1 ~ /^0/) {
18484 if (d2 ~ /^0/) {
18485 # Compare two fractions.
18486 while (d1 ~ /^0/ && d2 ~ /^0/) {
18487 d1 = substr(d1, 2); len1--
18488 d2 = substr(d2, 2); len2--
18489 }
18490 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
18491 # The two components differ in length, and the common prefix
18492 # contains only leading zeros. Consider the longer to be less.
18493 d1 = -len1
18494 d2 = -len2
18495 } else {
18496 # Otherwise, compare as strings.
18497 d1 = "x" d1
18498 d2 = "x" d2
18499 }
18500 } else {
18501 # A fraction is less than an integer.
18502 exit 1
18503 }
18504 } else {
18505 if (d2 ~ /^0/) {
18506 # An integer is greater than a fraction.
18507 exit 2
18508 } else {
18509 # Compare two integers.
18510 d1 += 0
18511 d2 += 0
18512 }
18513 }
18514 } else {
18515 # The normal case, without worrying about digits.
18516 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
18517 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
18518 }
18519 if (d1 < d2) exit 1
18520 if (d1 > d2) exit 2
18521 }
18522 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
18523 # which mishandles some comparisons of empty strings to integers.
18524 if (length(v2)) exit 1
18525 if (length(v1)) exit 2
18526 }
18527'
18528as_arg_v1=$version
6ce9ac92 18529as_arg_v2=3.0
a243b558
JF
18530awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18531case $? in #(
18532 1) :
18533 ;; #(
18534 0) :
18535 ac_cv_path_BISON=$ac_path_BISON ;; #(
18536 2) :
18537 ac_cv_path_BISON=$ac_path_BISON ;; #(
18538 *) :
18539 ;;
18540esac
18541fi
18542
18543 $ac_path_BISON_found && break 3
18544 done
18545 done
e9c9a47c 18546 done
a243b558
JF
18547IFS=$as_save_IFS
18548 if test -z "$ac_cv_path_BISON"; then
18549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18550$as_echo "no" >&6; }
18551 fi
18552else
18553 ac_cv_path_BISON=$BISON
632b71ea 18554fi
a243b558
JF
18555
18556
18557 if true; then :
18558
18559 BISON=$ac_cv_path_BISON
18560
18561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
18562$as_echo "$BISON" >&6; }
18563
47aaa820 18564else
a243b558
JF
18565 if true; then :
18566
6ce9ac92 18567 as_fn_error $? "You need bison 3.0 or greater" "$LINENO" 5
a243b558 18568
47aaa820 18569else
a243b558
JF
18570
18571 BISON=:
18572
18573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18574$as_echo "no" >&6; }
18575
18576fi
18577fi
18578
18579
18580
18581
18582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5
18583$as_echo_n "checking for flex >= 2.5.33... " >&6; }
18584 if test -z "$FLEX"; then
18585 ac_path_FLEX_found=false
18586 # Loop through the user's path and test for each of PROGNAME-LIST
18587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47aaa820
DWT
18588for as_dir in $PATH
18589do
18590 IFS=$as_save_IFS
18591 test -z "$as_dir" && as_dir=.
a243b558 18592 for ac_prog in flex; do
47aaa820 18593 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
18594 ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext"
18595 as_fn_executable_p "$ac_path_FLEX" || continue
18596version=`$ac_path_FLEX --version | $SED -e '1 s/^[^0-9.]* \([0-9.]*\).*$/\1/p;d'`
18597 if ${version:+false} :; then :
9c60689e 18598
47aaa820 18599else
a243b558
JF
18600 as_arg_v1=$version
18601as_arg_v2=2.5.33
18602awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18603case $? in #(
18604 1) :
18605 ;; #(
18606 0) :
18607 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
18608 2) :
18609 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
18610 *) :
18611 ;;
18612esac
18613fi
18614
18615 $ac_path_FLEX_found && break 3
18616 done
18617 done
18618 done
18619IFS=$as_save_IFS
18620 if test -z "$ac_cv_path_FLEX"; then
18621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47aaa820 18622$as_echo "no" >&6; }
a243b558
JF
18623 fi
18624else
18625 ac_cv_path_FLEX=$FLEX
9c60689e
DWT
18626fi
18627
18628
a243b558 18629 if true; then :
e9c9a47c 18630
a243b558 18631 FLEX=$ac_cv_path_FLEX
e9c9a47c 18632
a243b558
JF
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
18634$as_echo "$FLEX" >&6; }
9c60689e 18635
632b71ea 18636else
a243b558 18637 if true; then :
e9c9a47c 18638
a243b558 18639 as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5
e9c9a47c 18640
e9c9a47c 18641else
a243b558
JF
18642
18643 FLEX=:
18644
18645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18646$as_echo "no" >&6; }
9c60689e 18647
632b71ea 18648fi
a243b558
JF
18649fi
18650
18651
18652
18653
18654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5
18655$as_echo_n "checking for gperf >= 3.0.3... " >&6; }
18656 if test -z "$GPERF"; then
18657 ac_path_GPERF_found=false
18658 # Loop through the user's path and test for each of PROGNAME-LIST
18659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18660for as_dir in $PATH
18661do
18662 IFS=$as_save_IFS
18663 test -z "$as_dir" && as_dir=.
18664 for ac_prog in gperf; do
18665 for ac_exec_ext in '' $ac_executable_extensions; do
18666 ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext"
18667 as_fn_executable_p "$ac_path_GPERF" || continue
18668version=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
18669 if ${version:+false} :; then :
18670
e9c9a47c 18671else
a243b558
JF
18672 as_arg_v1=$version
18673as_arg_v2=3.0.3
18674awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18675case $? in #(
18676 1) :
18677 ;; #(
18678 0) :
18679 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
18680 2) :
18681 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
18682 *) :
18683 ;;
18684esac
632b71ea 18685fi
a243b558
JF
18686
18687 $ac_path_GPERF_found && break 3
18688 done
18689 done
18690 done
18691IFS=$as_save_IFS
18692 if test -z "$ac_cv_path_GPERF"; then
18693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18694$as_echo "no" >&6; }
18695 fi
47aaa820 18696else
a243b558
JF
18697 ac_cv_path_GPERF=$GPERF
18698fi
9c60689e
DWT
18699
18700
a243b558 18701 if true; then :
9c60689e 18702
a243b558 18703 GPERF=$ac_cv_path_GPERF
9c60689e 18704
a243b558
JF
18705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
18706$as_echo "$GPERF" >&6; }
9c60689e 18707
47aaa820 18708else
a243b558 18709 if true; then :
9c60689e 18710
a243b558
JF
18711 as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5
18712
18713else
18714
18715 GPERF=:
18716
18717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18718$as_echo "no" >&6; }
9c60689e 18719
47aaa820 18720fi
47aaa820 18721fi
a243b558
JF
18722
18723
18724
18725
18726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar gtar gnutar >= 1.19" >&5
18727$as_echo_n "checking for tar gtar gnutar >= 1.19... " >&6; }
18728 if test -z "$GNUTAR"; then
18729 ac_path_GNUTAR_found=false
18730 # Loop through the user's path and test for each of PROGNAME-LIST
18731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18732for as_dir in $PATH
18733do
18734 IFS=$as_save_IFS
18735 test -z "$as_dir" && as_dir=.
18736 for ac_prog in tar gtar gnutar; do
18737 for ac_exec_ext in '' $ac_executable_extensions; do
18738 ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext"
18739 as_fn_executable_p "$ac_path_GNUTAR" || continue
18740version=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'`
18741 if ${version:+false} :; then :
18742
18743else
18744 as_arg_v1=$version
18745as_arg_v2=1.19
18746awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18747case $? in #(
18748 1) :
18749 ;; #(
18750 0) :
18751 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
18752 2) :
18753 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
18754 *) :
18755 ;;
18756esac
790e5246 18757fi
a243b558
JF
18758
18759 $ac_path_GNUTAR_found && break 3
18760 done
18761 done
18762 done
18763IFS=$as_save_IFS
18764 if test -z "$ac_cv_path_GNUTAR"; then
18765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18766$as_echo "no" >&6; }
632b71ea 18767 fi
632b71ea 18768else
a243b558 18769 ac_cv_path_GNUTAR=$GNUTAR
632b71ea 18770fi
66170b30 18771
66170b30 18772
a243b558 18773 if true; then :
66170b30 18774
a243b558 18775 GNUTAR=$ac_cv_path_GNUTAR
66170b30 18776
a243b558
JF
18777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
18778$as_echo "$GNUTAR" >&6; }
66170b30 18779
a243b558
JF
18780else
18781 if true; then :
66170b30 18782
a243b558 18783 as_fn_error $? "You need tar gtar gnutar 1.19 or greater" "$LINENO" 5
66170b30 18784
66170b30 18785else
66170b30 18786
a243b558 18787 GNUTAR=:
66170b30 18788
a243b558
JF
18789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18790$as_echo "no" >&6; }
66170b30 18791
a243b558
JF
18792fi
18793fi
66170b30
JF
18794
18795
18796
18797
18798
18799
18800
77578fdd
JF
18801if test "x$LFLAGS" = x; then :
18802 LFLAGS="--full --ecs"
18803fi
18804
18805
66170b30
JF
18806
18807
18808
e9c9a47c
DWT
18809ac_ext=c
18810ac_cpp='$CPP $CPPFLAGS'
18811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18813ac_compiler_gnu=$ac_cv_c_compiler_gnu
632b71ea 18814
66170b30
JF
18815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
18816$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
18817if ${ac_cv_cflags_warn_all+:} false; then :
18818 $as_echo_n "(cached) " >&6
18819else
18820 ac_cv_cflags_warn_all="no, unknown"
18821ac_save_CFLAGS="$CFLAGS"
18822for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
18823do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
18824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18825/* end confdefs.h. */
18826
18827int
18828main ()
18829{
18830
18831 ;
18832 return 0;
18833}
18834_ACEOF
18835if ac_fn_c_try_compile "$LINENO"; then :
18836 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
18837fi
18838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18839done
18840CFLAGS="$ac_save_CFLAGS"
18841
18842fi
18843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
18844$as_echo "$ac_cv_cflags_warn_all" >&6; }
18845
83c6fec8 18846
66170b30
JF
18847case ".$ac_cv_cflags_warn_all" in
18848 .ok|.ok,*) ;;
18849 .|.no|.no,*) ;;
18850 *) if ${CFLAGS+:} false; then :
18851 case " $CFLAGS " in
18852 *" $ac_cv_cflags_warn_all "*)
18853 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
18854 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
18855 ac_status=$?
18856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18857 test $ac_status = 0; }
18858 ;;
18859 *)
18860 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
18861 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
18862 ac_status=$?
18863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18864 test $ac_status = 0; }
18865 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
18866 ;;
18867 esac
18868else
18869 CFLAGS="$ac_cv_cflags_warn_all"
18870fi
18871 ;;
18872esac
18873
b816329d
JF
18874ac_ext=cpp
18875ac_cpp='$CXXCPP $CPPFLAGS'
18876ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18877ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18878ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18879
9c60689e 18880
66170b30
JF
18881ac_ext=cpp
18882ac_cpp='$CXXCPP $CPPFLAGS'
18883ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18884ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18885ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1504c9b8 18886
66170b30
JF
18887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
18888$as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
18889if ${ac_cv_cxxflags_warn_all+:} false; then :
18890 $as_echo_n "(cached) " >&6
18891else
18892 ac_cv_cxxflags_warn_all="no, unknown"
18893ac_save_CXXFLAGS="$CXXFLAGS"
18894for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
18895do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
18896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18897/* end confdefs.h. */
1504c9b8 18898
66170b30
JF
18899int
18900main ()
18901{
1504c9b8 18902
66170b30
JF
18903 ;
18904 return 0;
18905}
18906_ACEOF
18907if ac_fn_cxx_try_compile "$LINENO"; then :
18908 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
18909fi
18910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18911done
18912CXXFLAGS="$ac_save_CXXFLAGS"
1504c9b8 18913
66170b30
JF
18914fi
18915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
18916$as_echo "$ac_cv_cxxflags_warn_all" >&6; }
18917
83c6fec8 18918
66170b30
JF
18919case ".$ac_cv_cxxflags_warn_all" in
18920 .ok|.ok,*) ;;
18921 .|.no|.no,*) ;;
18922 *) if ${CXXFLAGS+:} false; then :
18923 case " $CXXFLAGS " in
18924 *" $ac_cv_cxxflags_warn_all "*)
18925 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
18926 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
18927 ac_status=$?
18928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18929 test $ac_status = 0; }
18930 ;;
18931 *)
18932 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
18933 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
18934 ac_status=$?
18935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18936 test $ac_status = 0; }
18937 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
18938 ;;
18939 esac
18940else
18941 CXXFLAGS="$ac_cv_cxxflags_warn_all"
18942fi
18943 ;;
18944esac
18945
18946ac_ext=cpp
18947ac_cpp='$CXXCPP $CPPFLAGS'
18948ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18949ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18950ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18951
18952
babf7fe8
JF
18953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
18954$as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
18955if ${ac_cv_cxxflags_warn_all+:} false; then :
18956 $as_echo_n "(cached) " >&6
18957else
18958 ac_cv_cxxflags_warn_all="no, unknown"
18959ac_save_CXXFLAGS="$CXXFLAGS"
18960for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
18961do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
18962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18963/* end confdefs.h. */
18964
18965int
18966main ()
18967{
18968
18969 ;
18970 return 0;
18971}
18972_ACEOF
18973if ac_fn_cxx_try_compile "$LINENO"; then :
18974 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
18975fi
18976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18977done
18978CXXFLAGS="$ac_save_CXXFLAGS"
18979
18980fi
18981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
18982$as_echo "$ac_cv_cxxflags_warn_all" >&6; }
18983
83c6fec8 18984
babf7fe8
JF
18985case ".$ac_cv_cxxflags_warn_all" in
18986 .ok|.ok,*) ;;
18987 .|.no|.no,*) ;;
18988 *) if ${CXXFLAGS+:} false; then :
18989 case " $CXXFLAGS " in
18990 *" $ac_cv_cxxflags_warn_all "*)
18991 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
18992 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
18993 ac_status=$?
18994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18995 test $ac_status = 0; }
18996 ;;
18997 *)
18998 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
18999 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
19000 ac_status=$?
19001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19002 test $ac_status = 0; }
19003 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
19004 ;;
19005 esac
19006else
19007 CXXFLAGS="$ac_cv_cxxflags_warn_all"
19008fi
19009 ;;
19010esac
19011
66170b30
JF
19012
19013
66170b30 19014
66170b30 19015
c10a2228
JF
19016 ac_ext=c
19017ac_cpp='$CPP $CPPFLAGS'
19018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19020ac_compiler_gnu=$ac_cv_c_compiler_gnu
19021
babf7fe8
JF
19022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Werror" >&5
19023$as_echo_n "checking for cc -Werror... " >&6; }
c10a2228
JF
19024
19025 cy_save=$CFLAGS
19026
babf7fe8 19027 for element in -Werror; do
c10a2228
JF
19028 haveit=
19029 for x in $CFLAGS; do
19030
19031 acl_save_prefix="$prefix"
19032 prefix="$acl_final_prefix"
19033 acl_save_exec_prefix="$exec_prefix"
19034 exec_prefix="$acl_final_exec_prefix"
19035 eval x=\"$x\"
19036 exec_prefix="$acl_save_exec_prefix"
19037 prefix="$acl_save_prefix"
19038
19039 if test "X$x" = "X$element"; then
19040 haveit=yes
19041 break
19042 fi
19043 done
19044 if test -z "$haveit"; then
19045 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19046 fi
19047 done
19048
19049
19050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19051/* end confdefs.h. */
19052
19053_ACEOF
19054if ac_fn_c_try_compile "$LINENO"; then :
19055 cy_good=1
19056else
19057 cy_good=0
19058fi
19059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19060
19061 CFLAGS=$cy_save
19062 if test "x$cy_good" = x1; then :
19063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19064$as_echo "yes" >&6; }
19065
babf7fe8 19066 for element in -Werror; do
c10a2228
JF
19067 haveit=
19068 for x in $CFLAGS; do
19069
19070 acl_save_prefix="$prefix"
19071 prefix="$acl_final_prefix"
19072 acl_save_exec_prefix="$exec_prefix"
19073 exec_prefix="$acl_final_exec_prefix"
19074 eval x=\"$x\"
19075 exec_prefix="$acl_save_exec_prefix"
19076 prefix="$acl_save_prefix"
19077
19078 if test "X$x" = "X$element"; then
19079 haveit=yes
19080 break
19081 fi
19082 done
19083 if test -z "$haveit"; then
19084 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19085 fi
19086 done
19087
19088
19089else
19090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19091$as_echo "no" >&6; }
19092fi
19093
19094 ac_ext=cpp
19095ac_cpp='$CXXCPP $CPPFLAGS'
19096ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19097ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19098ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19099
19100
19101
19102 ac_ext=cpp
19103ac_cpp='$CXXCPP $CPPFLAGS'
19104ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19105ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19106ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19107
babf7fe8
JF
19108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Werror" >&5
19109$as_echo_n "checking for c++ -Werror... " >&6; }
c10a2228
JF
19110
19111 cy_save=$CXXFLAGS
19112
babf7fe8 19113 for element in -Werror; do
c10a2228
JF
19114 haveit=
19115 for x in $CXXFLAGS; do
19116
19117 acl_save_prefix="$prefix"
19118 prefix="$acl_final_prefix"
19119 acl_save_exec_prefix="$exec_prefix"
19120 exec_prefix="$acl_final_exec_prefix"
19121 eval x=\"$x\"
19122 exec_prefix="$acl_save_exec_prefix"
19123 prefix="$acl_save_prefix"
19124
19125 if test "X$x" = "X$element"; then
19126 haveit=yes
19127 break
19128 fi
19129 done
19130 if test -z "$haveit"; then
19131 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19132 fi
19133 done
19134
19135
19136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19137/* end confdefs.h. */
19138
19139_ACEOF
19140if ac_fn_cxx_try_compile "$LINENO"; then :
19141 cy_good=1
19142else
19143 cy_good=0
19144fi
19145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19146
19147 CXXFLAGS=$cy_save
19148 if test "x$cy_good" = x1; then :
19149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19150$as_echo "yes" >&6; }
19151
babf7fe8 19152 for element in -Werror; do
c10a2228
JF
19153 haveit=
19154 for x in $CXXFLAGS; do
19155
19156 acl_save_prefix="$prefix"
19157 prefix="$acl_final_prefix"
19158 acl_save_exec_prefix="$exec_prefix"
19159 exec_prefix="$acl_final_exec_prefix"
19160 eval x=\"$x\"
19161 exec_prefix="$acl_save_exec_prefix"
19162 prefix="$acl_save_prefix"
19163
19164 if test "X$x" = "X$element"; then
19165 haveit=yes
19166 break
19167 fi
19168 done
19169 if test -z "$haveit"; then
19170 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19171 fi
19172 done
19173
19174
19175else
19176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19177$as_echo "no" >&6; }
19178fi
19179
19180 ac_ext=cpp
19181ac_cpp='$CXXCPP $CPPFLAGS'
19182ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19183ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19184ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19185
19186
19187
19188 ac_ext=mm
19189ac_cpp='$OBJCXXCPP $CPPFLAGS'
19190ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19191ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19192ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
19193
babf7fe8
JF
19194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Werror" >&5
19195$as_echo_n "checking for c++ -ObjC -Werror... " >&6; }
c10a2228
JF
19196
19197 cy_save=$OBJCXXFLAGS
19198
babf7fe8 19199 for element in -Werror; do
c10a2228
JF
19200 haveit=
19201 for x in $OBJCXXFLAGS; do
19202
19203 acl_save_prefix="$prefix"
19204 prefix="$acl_final_prefix"
19205 acl_save_exec_prefix="$exec_prefix"
19206 exec_prefix="$acl_final_exec_prefix"
19207 eval x=\"$x\"
19208 exec_prefix="$acl_save_exec_prefix"
19209 prefix="$acl_save_prefix"
19210
19211 if test "X$x" = "X$element"; then
19212 haveit=yes
19213 break
19214 fi
19215 done
19216 if test -z "$haveit"; then
19217 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19218 fi
19219 done
19220
19221
19222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19223/* end confdefs.h. */
19224
19225_ACEOF
19226if ac_fn_objcxx_try_compile "$LINENO"; then :
19227 cy_good=1
19228else
19229 cy_good=0
19230fi
19231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19232
19233 OBJCXXFLAGS=$cy_save
19234 if test "x$cy_good" = x1; then :
19235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19236$as_echo "yes" >&6; }
19237
babf7fe8 19238 for element in -Werror; do
c10a2228
JF
19239 haveit=
19240 for x in $OBJCXXFLAGS; do
19241
19242 acl_save_prefix="$prefix"
19243 prefix="$acl_final_prefix"
19244 acl_save_exec_prefix="$exec_prefix"
19245 exec_prefix="$acl_final_exec_prefix"
19246 eval x=\"$x\"
19247 exec_prefix="$acl_save_exec_prefix"
19248 prefix="$acl_save_prefix"
19249
19250 if test "X$x" = "X$element"; then
19251 haveit=yes
19252 break
19253 fi
19254 done
19255 if test -z "$haveit"; then
19256 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19257 fi
19258 done
19259
19260
19261else
19262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19263$as_echo "no" >&6; }
19264fi
19265
19266 ac_ext=cpp
19267ac_cpp='$CXXCPP $CPPFLAGS'
19268ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19269ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19270ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19271
19272
19273
19274
19275
19276
19277 ac_ext=c
19278ac_cpp='$CPP $CPPFLAGS'
19279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19281ac_compiler_gnu=$ac_cv_c_compiler_gnu
19282
babf7fe8
JF
19283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-deprecated-declarations" >&5
19284$as_echo_n "checking for cc -Wno-deprecated-declarations... " >&6; }
c10a2228
JF
19285
19286 cy_save=$CFLAGS
19287
babf7fe8 19288 for element in -Wno-deprecated-declarations; do
c10a2228
JF
19289 haveit=
19290 for x in $CFLAGS; do
19291
19292 acl_save_prefix="$prefix"
19293 prefix="$acl_final_prefix"
19294 acl_save_exec_prefix="$exec_prefix"
19295 exec_prefix="$acl_final_exec_prefix"
19296 eval x=\"$x\"
19297 exec_prefix="$acl_save_exec_prefix"
19298 prefix="$acl_save_prefix"
19299
19300 if test "X$x" = "X$element"; then
19301 haveit=yes
19302 break
19303 fi
19304 done
19305 if test -z "$haveit"; then
19306 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19307 fi
19308 done
19309
19310
19311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19312/* end confdefs.h. */
19313
19314_ACEOF
19315if ac_fn_c_try_compile "$LINENO"; then :
19316 cy_good=1
19317else
19318 cy_good=0
19319fi
19320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19321
19322 CFLAGS=$cy_save
19323 if test "x$cy_good" = x1; then :
19324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19325$as_echo "yes" >&6; }
19326
babf7fe8 19327 for element in -Wno-deprecated-declarations; do
c10a2228
JF
19328 haveit=
19329 for x in $CFLAGS; do
19330
19331 acl_save_prefix="$prefix"
19332 prefix="$acl_final_prefix"
19333 acl_save_exec_prefix="$exec_prefix"
19334 exec_prefix="$acl_final_exec_prefix"
19335 eval x=\"$x\"
19336 exec_prefix="$acl_save_exec_prefix"
19337 prefix="$acl_save_prefix"
19338
19339 if test "X$x" = "X$element"; then
19340 haveit=yes
19341 break
19342 fi
19343 done
19344 if test -z "$haveit"; then
19345 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19346 fi
19347 done
19348
19349
19350else
19351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19352$as_echo "no" >&6; }
19353fi
19354
19355 ac_ext=cpp
19356ac_cpp='$CXXCPP $CPPFLAGS'
19357ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19358ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19359ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19360
19361
19362
19363 ac_ext=cpp
19364ac_cpp='$CXXCPP $CPPFLAGS'
19365ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19366ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19367ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19368
babf7fe8
JF
19369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-deprecated-declarations" >&5
19370$as_echo_n "checking for c++ -Wno-deprecated-declarations... " >&6; }
c10a2228
JF
19371
19372 cy_save=$CXXFLAGS
19373
babf7fe8 19374 for element in -Wno-deprecated-declarations; do
c10a2228
JF
19375 haveit=
19376 for x in $CXXFLAGS; do
19377
19378 acl_save_prefix="$prefix"
19379 prefix="$acl_final_prefix"
19380 acl_save_exec_prefix="$exec_prefix"
19381 exec_prefix="$acl_final_exec_prefix"
19382 eval x=\"$x\"
19383 exec_prefix="$acl_save_exec_prefix"
19384 prefix="$acl_save_prefix"
19385
19386 if test "X$x" = "X$element"; then
19387 haveit=yes
19388 break
19389 fi
19390 done
19391 if test -z "$haveit"; then
19392 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19393 fi
19394 done
19395
19396
19397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19398/* end confdefs.h. */
19399
19400_ACEOF
19401if ac_fn_cxx_try_compile "$LINENO"; then :
19402 cy_good=1
19403else
19404 cy_good=0
19405fi
19406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19407
19408 CXXFLAGS=$cy_save
19409 if test "x$cy_good" = x1; then :
19410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19411$as_echo "yes" >&6; }
19412
babf7fe8 19413 for element in -Wno-deprecated-declarations; do
c10a2228
JF
19414 haveit=
19415 for x in $CXXFLAGS; do
19416
19417 acl_save_prefix="$prefix"
19418 prefix="$acl_final_prefix"
19419 acl_save_exec_prefix="$exec_prefix"
19420 exec_prefix="$acl_final_exec_prefix"
19421 eval x=\"$x\"
19422 exec_prefix="$acl_save_exec_prefix"
19423 prefix="$acl_save_prefix"
19424
19425 if test "X$x" = "X$element"; then
19426 haveit=yes
19427 break
19428 fi
19429 done
19430 if test -z "$haveit"; then
19431 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19432 fi
19433 done
19434
19435
19436else
19437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19438$as_echo "no" >&6; }
19439fi
19440
19441 ac_ext=cpp
19442ac_cpp='$CXXCPP $CPPFLAGS'
19443ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19444ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19445ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19446
19447
19448
19449 ac_ext=mm
19450ac_cpp='$OBJCXXCPP $CPPFLAGS'
19451ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19452ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19453ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
19454
babf7fe8
JF
19455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-deprecated-declarations" >&5
19456$as_echo_n "checking for c++ -ObjC -Wno-deprecated-declarations... " >&6; }
c10a2228
JF
19457
19458 cy_save=$OBJCXXFLAGS
19459
babf7fe8 19460 for element in -Wno-deprecated-declarations; do
c10a2228
JF
19461 haveit=
19462 for x in $OBJCXXFLAGS; do
19463
19464 acl_save_prefix="$prefix"
19465 prefix="$acl_final_prefix"
19466 acl_save_exec_prefix="$exec_prefix"
19467 exec_prefix="$acl_final_exec_prefix"
19468 eval x=\"$x\"
19469 exec_prefix="$acl_save_exec_prefix"
19470 prefix="$acl_save_prefix"
19471
19472 if test "X$x" = "X$element"; then
19473 haveit=yes
19474 break
19475 fi
19476 done
19477 if test -z "$haveit"; then
19478 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19479 fi
19480 done
19481
19482
19483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19484/* end confdefs.h. */
19485
19486_ACEOF
19487if ac_fn_objcxx_try_compile "$LINENO"; then :
19488 cy_good=1
19489else
19490 cy_good=0
19491fi
19492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19493
19494 OBJCXXFLAGS=$cy_save
19495 if test "x$cy_good" = x1; then :
19496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19497$as_echo "yes" >&6; }
19498
babf7fe8 19499 for element in -Wno-deprecated-declarations; do
c10a2228
JF
19500 haveit=
19501 for x in $OBJCXXFLAGS; do
19502
19503 acl_save_prefix="$prefix"
19504 prefix="$acl_final_prefix"
19505 acl_save_exec_prefix="$exec_prefix"
19506 exec_prefix="$acl_final_exec_prefix"
19507 eval x=\"$x\"
19508 exec_prefix="$acl_save_exec_prefix"
19509 prefix="$acl_save_prefix"
19510
19511 if test "X$x" = "X$element"; then
19512 haveit=yes
19513 break
19514 fi
19515 done
19516 if test -z "$haveit"; then
19517 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19518 fi
19519 done
19520
19521
19522else
19523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19524$as_echo "no" >&6; }
19525fi
19526
19527 ac_ext=cpp
19528ac_cpp='$CXXCPP $CPPFLAGS'
19529ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19530ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19531ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19532
19533
19534
19535
19536
babf7fe8 19537
c10a2228
JF
19538 ac_ext=c
19539ac_cpp='$CPP $CPPFLAGS'
19540ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19541ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19542ac_compiler_gnu=$ac_cv_c_compiler_gnu
19543
babf7fe8
JF
19544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-dangling-else" >&5
19545$as_echo_n "checking for cc -Wno-dangling-else... " >&6; }
c10a2228
JF
19546
19547 cy_save=$CFLAGS
19548
babf7fe8 19549 for element in -Wno-dangling-else; do
c10a2228
JF
19550 haveit=
19551 for x in $CFLAGS; do
19552
19553 acl_save_prefix="$prefix"
19554 prefix="$acl_final_prefix"
19555 acl_save_exec_prefix="$exec_prefix"
19556 exec_prefix="$acl_final_exec_prefix"
19557 eval x=\"$x\"
19558 exec_prefix="$acl_save_exec_prefix"
19559 prefix="$acl_save_prefix"
19560
19561 if test "X$x" = "X$element"; then
19562 haveit=yes
19563 break
19564 fi
19565 done
19566 if test -z "$haveit"; then
19567 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19568 fi
19569 done
19570
19571
19572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19573/* end confdefs.h. */
19574
19575_ACEOF
19576if ac_fn_c_try_compile "$LINENO"; then :
19577 cy_good=1
19578else
19579 cy_good=0
19580fi
19581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19582
19583 CFLAGS=$cy_save
19584 if test "x$cy_good" = x1; then :
19585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19586$as_echo "yes" >&6; }
19587
babf7fe8 19588 for element in -Wno-dangling-else; do
c10a2228
JF
19589 haveit=
19590 for x in $CFLAGS; do
19591
19592 acl_save_prefix="$prefix"
19593 prefix="$acl_final_prefix"
19594 acl_save_exec_prefix="$exec_prefix"
19595 exec_prefix="$acl_final_exec_prefix"
19596 eval x=\"$x\"
19597 exec_prefix="$acl_save_exec_prefix"
19598 prefix="$acl_save_prefix"
19599
19600 if test "X$x" = "X$element"; then
19601 haveit=yes
19602 break
19603 fi
19604 done
19605 if test -z "$haveit"; then
19606 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19607 fi
19608 done
19609
19610
19611else
19612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19613$as_echo "no" >&6; }
19614fi
19615
19616 ac_ext=cpp
19617ac_cpp='$CXXCPP $CPPFLAGS'
19618ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19619ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19620ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19621
19622
19623
19624 ac_ext=cpp
19625ac_cpp='$CXXCPP $CPPFLAGS'
19626ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19627ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19628ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19629
babf7fe8
JF
19630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-dangling-else" >&5
19631$as_echo_n "checking for c++ -Wno-dangling-else... " >&6; }
c10a2228
JF
19632
19633 cy_save=$CXXFLAGS
19634
babf7fe8 19635 for element in -Wno-dangling-else; do
c10a2228
JF
19636 haveit=
19637 for x in $CXXFLAGS; do
19638
19639 acl_save_prefix="$prefix"
19640 prefix="$acl_final_prefix"
19641 acl_save_exec_prefix="$exec_prefix"
19642 exec_prefix="$acl_final_exec_prefix"
19643 eval x=\"$x\"
19644 exec_prefix="$acl_save_exec_prefix"
19645 prefix="$acl_save_prefix"
19646
19647 if test "X$x" = "X$element"; then
19648 haveit=yes
19649 break
19650 fi
19651 done
19652 if test -z "$haveit"; then
19653 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19654 fi
19655 done
19656
19657
19658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19659/* end confdefs.h. */
19660
19661_ACEOF
19662if ac_fn_cxx_try_compile "$LINENO"; then :
19663 cy_good=1
19664else
19665 cy_good=0
19666fi
19667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19668
19669 CXXFLAGS=$cy_save
19670 if test "x$cy_good" = x1; then :
19671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19672$as_echo "yes" >&6; }
19673
babf7fe8 19674 for element in -Wno-dangling-else; do
c10a2228
JF
19675 haveit=
19676 for x in $CXXFLAGS; do
19677
19678 acl_save_prefix="$prefix"
19679 prefix="$acl_final_prefix"
19680 acl_save_exec_prefix="$exec_prefix"
19681 exec_prefix="$acl_final_exec_prefix"
19682 eval x=\"$x\"
19683 exec_prefix="$acl_save_exec_prefix"
19684 prefix="$acl_save_prefix"
19685
19686 if test "X$x" = "X$element"; then
19687 haveit=yes
19688 break
19689 fi
19690 done
19691 if test -z "$haveit"; then
19692 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19693 fi
19694 done
19695
19696
19697else
19698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19699$as_echo "no" >&6; }
19700fi
19701
19702 ac_ext=cpp
19703ac_cpp='$CXXCPP $CPPFLAGS'
19704ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19705ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19706ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19707
19708
19709
19710 ac_ext=mm
19711ac_cpp='$OBJCXXCPP $CPPFLAGS'
19712ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19713ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19714ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
19715
babf7fe8
JF
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-dangling-else" >&5
19717$as_echo_n "checking for c++ -ObjC -Wno-dangling-else... " >&6; }
c10a2228
JF
19718
19719 cy_save=$OBJCXXFLAGS
19720
babf7fe8 19721 for element in -Wno-dangling-else; do
c10a2228
JF
19722 haveit=
19723 for x in $OBJCXXFLAGS; do
19724
19725 acl_save_prefix="$prefix"
19726 prefix="$acl_final_prefix"
19727 acl_save_exec_prefix="$exec_prefix"
19728 exec_prefix="$acl_final_exec_prefix"
19729 eval x=\"$x\"
19730 exec_prefix="$acl_save_exec_prefix"
19731 prefix="$acl_save_prefix"
19732
19733 if test "X$x" = "X$element"; then
19734 haveit=yes
19735 break
19736 fi
19737 done
19738 if test -z "$haveit"; then
19739 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19740 fi
19741 done
19742
19743
19744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19745/* end confdefs.h. */
19746
19747_ACEOF
19748if ac_fn_objcxx_try_compile "$LINENO"; then :
19749 cy_good=1
19750else
19751 cy_good=0
19752fi
19753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19754
19755 OBJCXXFLAGS=$cy_save
19756 if test "x$cy_good" = x1; then :
19757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19758$as_echo "yes" >&6; }
19759
babf7fe8 19760 for element in -Wno-dangling-else; do
c10a2228
JF
19761 haveit=
19762 for x in $OBJCXXFLAGS; do
19763
19764 acl_save_prefix="$prefix"
19765 prefix="$acl_final_prefix"
19766 acl_save_exec_prefix="$exec_prefix"
19767 exec_prefix="$acl_final_exec_prefix"
19768 eval x=\"$x\"
19769 exec_prefix="$acl_save_exec_prefix"
19770 prefix="$acl_save_prefix"
19771
19772 if test "X$x" = "X$element"; then
19773 haveit=yes
19774 break
19775 fi
19776 done
19777 if test -z "$haveit"; then
19778 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19779 fi
19780 done
19781
19782
19783else
19784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19785$as_echo "no" >&6; }
19786fi
19787
19788 ac_ext=cpp
19789ac_cpp='$CXXCPP $CPPFLAGS'
19790ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19791ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19792ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19793
19794
19795
19796
19797
2ada0541
JF
19798 ac_ext=c
19799ac_cpp='$CPP $CPPFLAGS'
19800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19802ac_compiler_gnu=$ac_cv_c_compiler_gnu
19803
19804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-empty-body" >&5
19805$as_echo_n "checking for cc -Wno-empty-body... " >&6; }
19806
19807 cy_save=$CFLAGS
19808
19809 for element in -Wno-empty-body; do
19810 haveit=
19811 for x in $CFLAGS; do
19812
19813 acl_save_prefix="$prefix"
19814 prefix="$acl_final_prefix"
19815 acl_save_exec_prefix="$exec_prefix"
19816 exec_prefix="$acl_final_exec_prefix"
19817 eval x=\"$x\"
19818 exec_prefix="$acl_save_exec_prefix"
19819 prefix="$acl_save_prefix"
19820
19821 if test "X$x" = "X$element"; then
19822 haveit=yes
19823 break
19824 fi
19825 done
19826 if test -z "$haveit"; then
19827 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19828 fi
19829 done
19830
19831
19832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19833/* end confdefs.h. */
19834
19835_ACEOF
19836if ac_fn_c_try_compile "$LINENO"; then :
19837 cy_good=1
19838else
19839 cy_good=0
19840fi
19841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19842
19843 CFLAGS=$cy_save
19844 if test "x$cy_good" = x1; then :
19845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19846$as_echo "yes" >&6; }
19847
19848 for element in -Wno-empty-body; do
19849 haveit=
19850 for x in $CFLAGS; do
19851
19852 acl_save_prefix="$prefix"
19853 prefix="$acl_final_prefix"
19854 acl_save_exec_prefix="$exec_prefix"
19855 exec_prefix="$acl_final_exec_prefix"
19856 eval x=\"$x\"
19857 exec_prefix="$acl_save_exec_prefix"
19858 prefix="$acl_save_prefix"
19859
19860 if test "X$x" = "X$element"; then
19861 haveit=yes
19862 break
19863 fi
19864 done
19865 if test -z "$haveit"; then
19866 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19867 fi
19868 done
19869
19870
19871else
19872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19873$as_echo "no" >&6; }
19874fi
19875
19876 ac_ext=cpp
19877ac_cpp='$CXXCPP $CPPFLAGS'
19878ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19879ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19880ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19881
19882
19883
19884 ac_ext=cpp
19885ac_cpp='$CXXCPP $CPPFLAGS'
19886ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19887ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19888ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19889
19890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-empty-body" >&5
19891$as_echo_n "checking for c++ -Wno-empty-body... " >&6; }
19892
19893 cy_save=$CXXFLAGS
19894
19895 for element in -Wno-empty-body; do
19896 haveit=
19897 for x in $CXXFLAGS; do
19898
19899 acl_save_prefix="$prefix"
19900 prefix="$acl_final_prefix"
19901 acl_save_exec_prefix="$exec_prefix"
19902 exec_prefix="$acl_final_exec_prefix"
19903 eval x=\"$x\"
19904 exec_prefix="$acl_save_exec_prefix"
19905 prefix="$acl_save_prefix"
19906
19907 if test "X$x" = "X$element"; then
19908 haveit=yes
19909 break
19910 fi
19911 done
19912 if test -z "$haveit"; then
19913 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19914 fi
19915 done
19916
19917
19918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19919/* end confdefs.h. */
19920
19921_ACEOF
19922if ac_fn_cxx_try_compile "$LINENO"; then :
19923 cy_good=1
19924else
19925 cy_good=0
19926fi
19927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19928
19929 CXXFLAGS=$cy_save
19930 if test "x$cy_good" = x1; then :
19931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19932$as_echo "yes" >&6; }
19933
19934 for element in -Wno-empty-body; do
19935 haveit=
19936 for x in $CXXFLAGS; do
19937
19938 acl_save_prefix="$prefix"
19939 prefix="$acl_final_prefix"
19940 acl_save_exec_prefix="$exec_prefix"
19941 exec_prefix="$acl_final_exec_prefix"
19942 eval x=\"$x\"
19943 exec_prefix="$acl_save_exec_prefix"
19944 prefix="$acl_save_prefix"
19945
19946 if test "X$x" = "X$element"; then
19947 haveit=yes
19948 break
19949 fi
19950 done
19951 if test -z "$haveit"; then
19952 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19953 fi
19954 done
19955
19956
19957else
19958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19959$as_echo "no" >&6; }
19960fi
19961
19962 ac_ext=cpp
19963ac_cpp='$CXXCPP $CPPFLAGS'
19964ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19965ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19966ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19967
19968
19969
19970 ac_ext=mm
19971ac_cpp='$OBJCXXCPP $CPPFLAGS'
19972ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19973ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19974ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
19975
19976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-empty-body" >&5
19977$as_echo_n "checking for c++ -ObjC -Wno-empty-body... " >&6; }
19978
19979 cy_save=$OBJCXXFLAGS
19980
19981 for element in -Wno-empty-body; do
19982 haveit=
19983 for x in $OBJCXXFLAGS; do
19984
19985 acl_save_prefix="$prefix"
19986 prefix="$acl_final_prefix"
19987 acl_save_exec_prefix="$exec_prefix"
19988 exec_prefix="$acl_final_exec_prefix"
19989 eval x=\"$x\"
19990 exec_prefix="$acl_save_exec_prefix"
19991 prefix="$acl_save_prefix"
19992
19993 if test "X$x" = "X$element"; then
19994 haveit=yes
19995 break
19996 fi
19997 done
19998 if test -z "$haveit"; then
19999 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
20000 fi
20001 done
20002
20003
20004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20005/* end confdefs.h. */
20006
20007_ACEOF
20008if ac_fn_objcxx_try_compile "$LINENO"; then :
20009 cy_good=1
20010else
20011 cy_good=0
20012fi
20013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20014
20015 OBJCXXFLAGS=$cy_save
20016 if test "x$cy_good" = x1; then :
20017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20018$as_echo "yes" >&6; }
20019
20020 for element in -Wno-empty-body; do
20021 haveit=
20022 for x in $OBJCXXFLAGS; do
20023
20024 acl_save_prefix="$prefix"
20025 prefix="$acl_final_prefix"
20026 acl_save_exec_prefix="$exec_prefix"
20027 exec_prefix="$acl_final_exec_prefix"
20028 eval x=\"$x\"
20029 exec_prefix="$acl_save_exec_prefix"
20030 prefix="$acl_save_prefix"
20031
20032 if test "X$x" = "X$element"; then
20033 haveit=yes
20034 break
20035 fi
20036 done
20037 if test -z "$haveit"; then
20038 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
20039 fi
20040 done
20041
20042
20043else
20044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20045$as_echo "no" >&6; }
20046fi
20047
20048 ac_ext=cpp
20049ac_cpp='$CXXCPP $CPPFLAGS'
20050ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20051ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20052ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20053
20054
20055
20056
20057
c10a2228
JF
20058 ac_ext=c
20059ac_cpp='$CPP $CPPFLAGS'
20060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20062ac_compiler_gnu=$ac_cv_c_compiler_gnu
20063
babf7fe8
JF
20064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-overloaded-virtual" >&5
20065$as_echo_n "checking for cc -Wno-overloaded-virtual... " >&6; }
c10a2228
JF
20066
20067 cy_save=$CFLAGS
20068
babf7fe8 20069 for element in -Wno-overloaded-virtual; do
1504c9b8 20070 haveit=
c10a2228 20071 for x in $CFLAGS; do
1504c9b8
DWT
20072
20073 acl_save_prefix="$prefix"
20074 prefix="$acl_final_prefix"
20075 acl_save_exec_prefix="$exec_prefix"
20076 exec_prefix="$acl_final_exec_prefix"
20077 eval x=\"$x\"
20078 exec_prefix="$acl_save_exec_prefix"
20079 prefix="$acl_save_prefix"
20080
20081 if test "X$x" = "X$element"; then
20082 haveit=yes
20083 break
20084 fi
20085 done
20086 if test -z "$haveit"; then
c10a2228 20087 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
1504c9b8
DWT
20088 fi
20089 done
20090
66170b30
JF
20091
20092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1504c9b8
DWT
20093/* end confdefs.h. */
20094
66170b30 20095_ACEOF
c10a2228 20096if ac_fn_c_try_compile "$LINENO"; then :
66170b30
JF
20097 cy_good=1
20098else
20099 cy_good=0
20100fi
20101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20102
c10a2228 20103 CFLAGS=$cy_save
66170b30
JF
20104 if test "x$cy_good" = x1; then :
20105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20106$as_echo "yes" >&6; }
20107
babf7fe8 20108 for element in -Wno-overloaded-virtual; do
66170b30
JF
20109 haveit=
20110 for x in $CFLAGS; do
20111
20112 acl_save_prefix="$prefix"
20113 prefix="$acl_final_prefix"
20114 acl_save_exec_prefix="$exec_prefix"
20115 exec_prefix="$acl_final_exec_prefix"
20116 eval x=\"$x\"
20117 exec_prefix="$acl_save_exec_prefix"
20118 prefix="$acl_save_prefix"
20119
20120 if test "X$x" = "X$element"; then
20121 haveit=yes
20122 break
20123 fi
20124 done
20125 if test -z "$haveit"; then
20126 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
20127 fi
20128 done
20129
20130
c10a2228
JF
20131else
20132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20133$as_echo "no" >&6; }
20134fi
20135
20136 ac_ext=cpp
20137ac_cpp='$CXXCPP $CPPFLAGS'
20138ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20139ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20140ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20141
20142
20143
20144 ac_ext=cpp
20145ac_cpp='$CXXCPP $CPPFLAGS'
20146ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20147ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20148ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20149
babf7fe8
JF
20150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-overloaded-virtual" >&5
20151$as_echo_n "checking for c++ -Wno-overloaded-virtual... " >&6; }
c10a2228
JF
20152
20153 cy_save=$CXXFLAGS
20154
babf7fe8 20155 for element in -Wno-overloaded-virtual; do
66170b30
JF
20156 haveit=
20157 for x in $CXXFLAGS; do
20158
20159 acl_save_prefix="$prefix"
20160 prefix="$acl_final_prefix"
20161 acl_save_exec_prefix="$exec_prefix"
20162 exec_prefix="$acl_final_exec_prefix"
20163 eval x=\"$x\"
20164 exec_prefix="$acl_save_exec_prefix"
20165 prefix="$acl_save_prefix"
20166
20167 if test "X$x" = "X$element"; then
20168 haveit=yes
20169 break
20170 fi
20171 done
20172 if test -z "$haveit"; then
20173 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
20174 fi
20175 done
20176
20177
c10a2228
JF
20178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20179/* end confdefs.h. */
20180
20181_ACEOF
20182if ac_fn_cxx_try_compile "$LINENO"; then :
20183 cy_good=1
20184else
20185 cy_good=0
20186fi
20187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20188
20189 CXXFLAGS=$cy_save
20190 if test "x$cy_good" = x1; then :
20191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20192$as_echo "yes" >&6; }
20193
babf7fe8 20194 for element in -Wno-overloaded-virtual; do
66170b30 20195 haveit=
c10a2228 20196 for x in $CXXFLAGS; do
66170b30
JF
20197
20198 acl_save_prefix="$prefix"
20199 prefix="$acl_final_prefix"
20200 acl_save_exec_prefix="$exec_prefix"
20201 exec_prefix="$acl_final_exec_prefix"
20202 eval x=\"$x\"
20203 exec_prefix="$acl_save_exec_prefix"
20204 prefix="$acl_save_prefix"
20205
20206 if test "X$x" = "X$element"; then
20207 haveit=yes
20208 break
20209 fi
20210 done
20211 if test -z "$haveit"; then
c10a2228 20212 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
66170b30
JF
20213 fi
20214 done
20215
20216
66170b30
JF
20217else
20218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20219$as_echo "no" >&6; }
20220fi
20221
c10a2228
JF
20222 ac_ext=cpp
20223ac_cpp='$CXXCPP $CPPFLAGS'
20224ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20225ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20226ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20227
66170b30
JF
20228
20229
c10a2228
JF
20230 ac_ext=mm
20231ac_cpp='$OBJCXXCPP $CPPFLAGS'
20232ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20233ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20234ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
20235
babf7fe8
JF
20236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-overloaded-virtual" >&5
20237$as_echo_n "checking for c++ -ObjC -Wno-overloaded-virtual... " >&6; }
66170b30 20238
c10a2228 20239 cy_save=$OBJCXXFLAGS
66170b30 20240
babf7fe8 20241 for element in -Wno-overloaded-virtual; do
66170b30 20242 haveit=
c10a2228 20243 for x in $OBJCXXFLAGS; do
66170b30
JF
20244
20245 acl_save_prefix="$prefix"
20246 prefix="$acl_final_prefix"
20247 acl_save_exec_prefix="$exec_prefix"
20248 exec_prefix="$acl_final_exec_prefix"
20249 eval x=\"$x\"
20250 exec_prefix="$acl_save_exec_prefix"
20251 prefix="$acl_save_prefix"
20252
20253 if test "X$x" = "X$element"; then
20254 haveit=yes
20255 break
20256 fi
20257 done
20258 if test -z "$haveit"; then
c10a2228 20259 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
66170b30
JF
20260 fi
20261 done
20262
20263
20264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20265/* end confdefs.h. */
1504c9b8 20266
1504c9b8 20267_ACEOF
c10a2228 20268if ac_fn_objcxx_try_compile "$LINENO"; then :
66170b30
JF
20269 cy_good=1
20270else
20271 cy_good=0
20272fi
20273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20274
c10a2228 20275 OBJCXXFLAGS=$cy_save
66170b30
JF
20276 if test "x$cy_good" = x1; then :
20277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20278$as_echo "yes" >&6; }
1504c9b8 20279
babf7fe8 20280 for element in -Wno-overloaded-virtual; do
1504c9b8 20281 haveit=
c10a2228 20282 for x in $OBJCXXFLAGS; do
1504c9b8
DWT
20283
20284 acl_save_prefix="$prefix"
20285 prefix="$acl_final_prefix"
20286 acl_save_exec_prefix="$exec_prefix"
20287 exec_prefix="$acl_final_exec_prefix"
20288 eval x=\"$x\"
20289 exec_prefix="$acl_save_exec_prefix"
20290 prefix="$acl_save_prefix"
20291
20292 if test "X$x" = "X$element"; then
20293 haveit=yes
20294 break
20295 fi
20296 done
20297 if test -z "$haveit"; then
c10a2228 20298 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
1504c9b8
DWT
20299 fi
20300 done
20301
20302
c10a2228
JF
20303else
20304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20305$as_echo "no" >&6; }
20306fi
20307
20308 ac_ext=cpp
20309ac_cpp='$CXXCPP $CPPFLAGS'
20310ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20311ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20312ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20313
20314
20315
20316
20317
20318 ac_ext=c
20319ac_cpp='$CPP $CPPFLAGS'
20320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20322ac_compiler_gnu=$ac_cv_c_compiler_gnu
20323
babf7fe8
JF
20324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-parentheses" >&5
20325$as_echo_n "checking for cc -Wno-parentheses... " >&6; }
c10a2228
JF
20326
20327 cy_save=$CFLAGS
20328
babf7fe8 20329 for element in -Wno-parentheses; do
66170b30 20330 haveit=
c10a2228 20331 for x in $CFLAGS; do
66170b30
JF
20332
20333 acl_save_prefix="$prefix"
20334 prefix="$acl_final_prefix"
20335 acl_save_exec_prefix="$exec_prefix"
20336 exec_prefix="$acl_final_exec_prefix"
20337 eval x=\"$x\"
20338 exec_prefix="$acl_save_exec_prefix"
20339 prefix="$acl_save_prefix"
20340
20341 if test "X$x" = "X$element"; then
20342 haveit=yes
20343 break
20344 fi
20345 done
20346 if test -z "$haveit"; then
c10a2228 20347 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
66170b30
JF
20348 fi
20349 done
20350
20351
c10a2228
JF
20352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20353/* end confdefs.h. */
20354
20355_ACEOF
20356if ac_fn_c_try_compile "$LINENO"; then :
20357 cy_good=1
20358else
20359 cy_good=0
20360fi
20361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20362
20363 CFLAGS=$cy_save
20364 if test "x$cy_good" = x1; then :
20365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20366$as_echo "yes" >&6; }
20367
babf7fe8 20368 for element in -Wno-parentheses; do
66170b30 20369 haveit=
c10a2228 20370 for x in $CFLAGS; do
66170b30
JF
20371
20372 acl_save_prefix="$prefix"
20373 prefix="$acl_final_prefix"
20374 acl_save_exec_prefix="$exec_prefix"
20375 exec_prefix="$acl_final_exec_prefix"
20376 eval x=\"$x\"
20377 exec_prefix="$acl_save_exec_prefix"
20378 prefix="$acl_save_prefix"
20379
20380 if test "X$x" = "X$element"; then
20381 haveit=yes
20382 break
20383 fi
20384 done
20385 if test -z "$haveit"; then
c10a2228 20386 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
66170b30
JF
20387 fi
20388 done
20389
20390
66170b30
JF
20391else
20392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20393$as_echo "no" >&6; }
20394fi
20395
c10a2228
JF
20396 ac_ext=cpp
20397ac_cpp='$CXXCPP $CPPFLAGS'
20398ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20399ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20400ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20401
66170b30
JF
20402
20403
c10a2228
JF
20404 ac_ext=cpp
20405ac_cpp='$CXXCPP $CPPFLAGS'
20406ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20407ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20408ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20409
babf7fe8
JF
20410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-parentheses" >&5
20411$as_echo_n "checking for c++ -Wno-parentheses... " >&6; }
66170b30
JF
20412
20413 cy_save=$CXXFLAGS
20414
babf7fe8 20415 for element in -Wno-parentheses; do
66170b30
JF
20416 haveit=
20417 for x in $CXXFLAGS; do
20418
20419 acl_save_prefix="$prefix"
20420 prefix="$acl_final_prefix"
20421 acl_save_exec_prefix="$exec_prefix"
20422 exec_prefix="$acl_final_exec_prefix"
20423 eval x=\"$x\"
20424 exec_prefix="$acl_save_exec_prefix"
20425 prefix="$acl_save_prefix"
20426
20427 if test "X$x" = "X$element"; then
20428 haveit=yes
20429 break
20430 fi
20431 done
20432 if test -z "$haveit"; then
20433 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
20434 fi
20435 done
20436
20437
20438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20439/* end confdefs.h. */
20440
20441_ACEOF
20442if ac_fn_cxx_try_compile "$LINENO"; then :
20443 cy_good=1
20444else
20445 cy_good=0
20446fi
20447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20448
20449 CXXFLAGS=$cy_save
20450 if test "x$cy_good" = x1; then :
20451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20452$as_echo "yes" >&6; }
20453
babf7fe8 20454 for element in -Wno-parentheses; do
1504c9b8 20455 haveit=
c10a2228 20456 for x in $CXXFLAGS; do
1504c9b8
DWT
20457
20458 acl_save_prefix="$prefix"
20459 prefix="$acl_final_prefix"
20460 acl_save_exec_prefix="$exec_prefix"
20461 exec_prefix="$acl_final_exec_prefix"
20462 eval x=\"$x\"
20463 exec_prefix="$acl_save_exec_prefix"
20464 prefix="$acl_save_prefix"
20465
20466 if test "X$x" = "X$element"; then
20467 haveit=yes
20468 break
20469 fi
20470 done
20471 if test -z "$haveit"; then
c10a2228 20472 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
1504c9b8
DWT
20473 fi
20474 done
20475
20476
c10a2228
JF
20477else
20478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20479$as_echo "no" >&6; }
20480fi
20481
20482 ac_ext=cpp
20483ac_cpp='$CXXCPP $CPPFLAGS'
20484ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20485ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20486ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20487
20488
20489
20490 ac_ext=mm
20491ac_cpp='$OBJCXXCPP $CPPFLAGS'
20492ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20493ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20494ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
20495
babf7fe8
JF
20496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-parentheses" >&5
20497$as_echo_n "checking for c++ -ObjC -Wno-parentheses... " >&6; }
c10a2228
JF
20498
20499 cy_save=$OBJCXXFLAGS
20500
babf7fe8 20501 for element in -Wno-parentheses; do
1504c9b8 20502 haveit=
c10a2228 20503 for x in $OBJCXXFLAGS; do
1504c9b8
DWT
20504
20505 acl_save_prefix="$prefix"
20506 prefix="$acl_final_prefix"
20507 acl_save_exec_prefix="$exec_prefix"
20508 exec_prefix="$acl_final_exec_prefix"
20509 eval x=\"$x\"
20510 exec_prefix="$acl_save_exec_prefix"
20511 prefix="$acl_save_prefix"
20512
20513 if test "X$x" = "X$element"; then
20514 haveit=yes
20515 break
20516 fi
20517 done
20518 if test -z "$haveit"; then
c10a2228 20519 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
1504c9b8
DWT
20520 fi
20521 done
20522
20523
c10a2228
JF
20524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20525/* end confdefs.h. */
20526
20527_ACEOF
20528if ac_fn_objcxx_try_compile "$LINENO"; then :
20529 cy_good=1
20530else
20531 cy_good=0
20532fi
20533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20534
20535 OBJCXXFLAGS=$cy_save
20536 if test "x$cy_good" = x1; then :
20537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20538$as_echo "yes" >&6; }
20539
babf7fe8 20540 for element in -Wno-parentheses; do
1504c9b8 20541 haveit=
c10a2228 20542 for x in $OBJCXXFLAGS; do
1504c9b8
DWT
20543
20544 acl_save_prefix="$prefix"
20545 prefix="$acl_final_prefix"
20546 acl_save_exec_prefix="$exec_prefix"
2ada0541
JF
20547 exec_prefix="$acl_final_exec_prefix"
20548 eval x=\"$x\"
20549 exec_prefix="$acl_save_exec_prefix"
20550 prefix="$acl_save_prefix"
20551
20552 if test "X$x" = "X$element"; then
20553 haveit=yes
20554 break
20555 fi
20556 done
20557 if test -z "$haveit"; then
20558 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
20559 fi
20560 done
20561
20562
20563else
20564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20565$as_echo "no" >&6; }
20566fi
20567
20568 ac_ext=cpp
20569ac_cpp='$CXXCPP $CPPFLAGS'
20570ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20571ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20572ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20573
20574
20575
20576
20577
20578 ac_ext=c
20579ac_cpp='$CPP $CPPFLAGS'
20580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20582ac_compiler_gnu=$ac_cv_c_compiler_gnu
20583
20584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-tautological-undefined-compare" >&5
20585$as_echo_n "checking for cc -Wno-tautological-undefined-compare... " >&6; }
20586
20587 cy_save=$CFLAGS
20588
20589 for element in -Wno-tautological-undefined-compare; do
20590 haveit=
20591 for x in $CFLAGS; do
20592
20593 acl_save_prefix="$prefix"
20594 prefix="$acl_final_prefix"
20595 acl_save_exec_prefix="$exec_prefix"
20596 exec_prefix="$acl_final_exec_prefix"
20597 eval x=\"$x\"
20598 exec_prefix="$acl_save_exec_prefix"
20599 prefix="$acl_save_prefix"
20600
20601 if test "X$x" = "X$element"; then
20602 haveit=yes
20603 break
20604 fi
20605 done
20606 if test -z "$haveit"; then
20607 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
20608 fi
20609 done
20610
20611
20612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20613/* end confdefs.h. */
20614
20615_ACEOF
20616if ac_fn_c_try_compile "$LINENO"; then :
20617 cy_good=1
20618else
20619 cy_good=0
20620fi
20621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20622
20623 CFLAGS=$cy_save
20624 if test "x$cy_good" = x1; then :
20625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20626$as_echo "yes" >&6; }
20627
20628 for element in -Wno-tautological-undefined-compare; do
20629 haveit=
20630 for x in $CFLAGS; do
20631
20632 acl_save_prefix="$prefix"
20633 prefix="$acl_final_prefix"
20634 acl_save_exec_prefix="$exec_prefix"
20635 exec_prefix="$acl_final_exec_prefix"
20636 eval x=\"$x\"
20637 exec_prefix="$acl_save_exec_prefix"
20638 prefix="$acl_save_prefix"
20639
20640 if test "X$x" = "X$element"; then
20641 haveit=yes
20642 break
20643 fi
20644 done
20645 if test -z "$haveit"; then
20646 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
20647 fi
20648 done
20649
20650
20651else
20652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20653$as_echo "no" >&6; }
20654fi
20655
20656 ac_ext=cpp
20657ac_cpp='$CXXCPP $CPPFLAGS'
20658ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20659ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20660ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20661
20662
20663
20664 ac_ext=cpp
20665ac_cpp='$CXXCPP $CPPFLAGS'
20666ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20667ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20668ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20669
20670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-tautological-undefined-compare" >&5
20671$as_echo_n "checking for c++ -Wno-tautological-undefined-compare... " >&6; }
20672
20673 cy_save=$CXXFLAGS
20674
20675 for element in -Wno-tautological-undefined-compare; do
20676 haveit=
20677 for x in $CXXFLAGS; do
20678
20679 acl_save_prefix="$prefix"
20680 prefix="$acl_final_prefix"
20681 acl_save_exec_prefix="$exec_prefix"
20682 exec_prefix="$acl_final_exec_prefix"
20683 eval x=\"$x\"
20684 exec_prefix="$acl_save_exec_prefix"
20685 prefix="$acl_save_prefix"
20686
20687 if test "X$x" = "X$element"; then
20688 haveit=yes
20689 break
20690 fi
20691 done
20692 if test -z "$haveit"; then
20693 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
20694 fi
20695 done
20696
20697
20698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20699/* end confdefs.h. */
20700
20701_ACEOF
20702if ac_fn_cxx_try_compile "$LINENO"; then :
20703 cy_good=1
20704else
20705 cy_good=0
20706fi
20707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20708
20709 CXXFLAGS=$cy_save
20710 if test "x$cy_good" = x1; then :
20711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20712$as_echo "yes" >&6; }
20713
20714 for element in -Wno-tautological-undefined-compare; do
20715 haveit=
20716 for x in $CXXFLAGS; do
20717
20718 acl_save_prefix="$prefix"
20719 prefix="$acl_final_prefix"
20720 acl_save_exec_prefix="$exec_prefix"
20721 exec_prefix="$acl_final_exec_prefix"
20722 eval x=\"$x\"
20723 exec_prefix="$acl_save_exec_prefix"
20724 prefix="$acl_save_prefix"
20725
20726 if test "X$x" = "X$element"; then
20727 haveit=yes
20728 break
20729 fi
20730 done
20731 if test -z "$haveit"; then
20732 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
20733 fi
20734 done
20735
20736
20737else
20738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20739$as_echo "no" >&6; }
20740fi
20741
20742 ac_ext=cpp
20743ac_cpp='$CXXCPP $CPPFLAGS'
20744ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20745ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20746ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20747
20748
20749
20750 ac_ext=mm
20751ac_cpp='$OBJCXXCPP $CPPFLAGS'
20752ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20753ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20754ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
20755
20756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-tautological-undefined-compare" >&5
20757$as_echo_n "checking for c++ -ObjC -Wno-tautological-undefined-compare... " >&6; }
20758
20759 cy_save=$OBJCXXFLAGS
20760
20761 for element in -Wno-tautological-undefined-compare; do
20762 haveit=
20763 for x in $OBJCXXFLAGS; do
20764
20765 acl_save_prefix="$prefix"
20766 prefix="$acl_final_prefix"
20767 acl_save_exec_prefix="$exec_prefix"
20768 exec_prefix="$acl_final_exec_prefix"
20769 eval x=\"$x\"
20770 exec_prefix="$acl_save_exec_prefix"
20771 prefix="$acl_save_prefix"
20772
20773 if test "X$x" = "X$element"; then
20774 haveit=yes
20775 break
20776 fi
20777 done
20778 if test -z "$haveit"; then
20779 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
20780 fi
20781 done
20782
20783
20784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20785/* end confdefs.h. */
20786
20787_ACEOF
20788if ac_fn_objcxx_try_compile "$LINENO"; then :
20789 cy_good=1
20790else
20791 cy_good=0
20792fi
20793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20794
20795 OBJCXXFLAGS=$cy_save
20796 if test "x$cy_good" = x1; then :
20797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20798$as_echo "yes" >&6; }
20799
20800 for element in -Wno-tautological-undefined-compare; do
20801 haveit=
20802 for x in $OBJCXXFLAGS; do
20803
20804 acl_save_prefix="$prefix"
20805 prefix="$acl_final_prefix"
20806 acl_save_exec_prefix="$exec_prefix"
1504c9b8
DWT
20807 exec_prefix="$acl_final_exec_prefix"
20808 eval x=\"$x\"
20809 exec_prefix="$acl_save_exec_prefix"
20810 prefix="$acl_save_prefix"
20811
20812 if test "X$x" = "X$element"; then
20813 haveit=yes
20814 break
20815 fi
20816 done
20817 if test -z "$haveit"; then
c10a2228 20818 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
1504c9b8
DWT
20819 fi
20820 done
20821
20822
66170b30
JF
20823else
20824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20825$as_echo "no" >&6; }
1504c9b8 20826fi
1504c9b8 20827
c10a2228
JF
20828 ac_ext=cpp
20829ac_cpp='$CXXCPP $CPPFLAGS'
20830ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20831ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20832ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20833
20834
1504c9b8 20835
1504c9b8 20836
1504c9b8 20837
babf7fe8
JF
20838 ac_ext=c
20839ac_cpp='$CPP $CPPFLAGS'
20840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20842ac_compiler_gnu=$ac_cv_c_compiler_gnu
1504c9b8 20843
babf7fe8
JF
20844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-unneeded-internal-declaration" >&5
20845$as_echo_n "checking for cc -Wno-unneeded-internal-declaration... " >&6; }
20846
20847 cy_save=$CFLAGS
20848
20849 for element in -Wno-unneeded-internal-declaration; do
1504c9b8 20850 haveit=
babf7fe8 20851 for x in $CFLAGS; do
1504c9b8
DWT
20852
20853 acl_save_prefix="$prefix"
20854 prefix="$acl_final_prefix"
20855 acl_save_exec_prefix="$exec_prefix"
20856 exec_prefix="$acl_final_exec_prefix"
20857 eval x=\"$x\"
20858 exec_prefix="$acl_save_exec_prefix"
20859 prefix="$acl_save_prefix"
20860
20861 if test "X$x" = "X$element"; then
20862 haveit=yes
20863 break
20864 fi
20865 done
20866 if test -z "$haveit"; then
babf7fe8 20867 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
1504c9b8
DWT
20868 fi
20869 done
20870
66170b30
JF
20871
20872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1504c9b8
DWT
20873/* end confdefs.h. */
20874
a243b558 20875_ACEOF
babf7fe8 20876if ac_fn_c_try_compile "$LINENO"; then :
a243b558
JF
20877 cy_good=1
20878else
20879 cy_good=0
20880fi
babf7fe8 20881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1504c9b8 20882
babf7fe8 20883 CFLAGS=$cy_save
a243b558
JF
20884 if test "x$cy_good" = x1; then :
20885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20886$as_echo "yes" >&6; }
66170b30 20887
babf7fe8 20888 for element in -Wno-unneeded-internal-declaration; do
1504c9b8 20889 haveit=
babf7fe8 20890 for x in $CFLAGS; do
1504c9b8
DWT
20891
20892 acl_save_prefix="$prefix"
20893 prefix="$acl_final_prefix"
20894 acl_save_exec_prefix="$exec_prefix"
20895 exec_prefix="$acl_final_exec_prefix"
20896 eval x=\"$x\"
20897 exec_prefix="$acl_save_exec_prefix"
20898 prefix="$acl_save_prefix"
20899
20900 if test "X$x" = "X$element"; then
20901 haveit=yes
20902 break
20903 fi
20904 done
20905 if test -z "$haveit"; then
babf7fe8 20906 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
1504c9b8
DWT
20907 fi
20908 done
20909
20910
20911else
66170b30
JF
20912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20913$as_echo "no" >&6; }
1504c9b8
DWT
20914fi
20915
babf7fe8
JF
20916 ac_ext=cpp
20917ac_cpp='$CXXCPP $CPPFLAGS'
20918ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20919ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20920ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
296ee9a6 20921
9c60689e 20922
632b71ea 20923
babf7fe8
JF
20924 ac_ext=cpp
20925ac_cpp='$CXXCPP $CPPFLAGS'
20926ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20927ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20928ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
632b71ea 20929
babf7fe8
JF
20930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-unneeded-internal-declaration" >&5
20931$as_echo_n "checking for c++ -Wno-unneeded-internal-declaration... " >&6; }
9c60689e 20932
babf7fe8 20933 cy_save=$CXXFLAGS
9c60689e 20934
babf7fe8
JF
20935 for element in -Wno-unneeded-internal-declaration; do
20936 haveit=
20937 for x in $CXXFLAGS; do
9c60689e 20938
babf7fe8
JF
20939 acl_save_prefix="$prefix"
20940 prefix="$acl_final_prefix"
20941 acl_save_exec_prefix="$exec_prefix"
20942 exec_prefix="$acl_final_exec_prefix"
20943 eval x=\"$x\"
20944 exec_prefix="$acl_save_exec_prefix"
20945 prefix="$acl_save_prefix"
66170b30 20946
babf7fe8
JF
20947 if test "X$x" = "X$element"; then
20948 haveit=yes
20949 break
20950 fi
20951 done
20952 if test -z "$haveit"; then
20953 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
20954 fi
20955 done
7eda51e0 20956
7eda51e0 20957
babf7fe8
JF
20958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20959/* end confdefs.h. */
7eda51e0 20960
7eda51e0 20961_ACEOF
babf7fe8
JF
20962if ac_fn_cxx_try_compile "$LINENO"; then :
20963 cy_good=1
9c60689e 20964else
babf7fe8 20965 cy_good=0
9c60689e 20966fi
babf7fe8 20967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7eda51e0 20968
babf7fe8
JF
20969 CXXFLAGS=$cy_save
20970 if test "x$cy_good" = x1; then :
20971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20972$as_echo "yes" >&6; }
7eda51e0 20973
babf7fe8 20974 for element in -Wno-unneeded-internal-declaration; do
7eda51e0 20975 haveit=
babf7fe8 20976 for x in $CXXFLAGS; do
9c60689e 20977
7eda51e0
JF
20978 acl_save_prefix="$prefix"
20979 prefix="$acl_final_prefix"
20980 acl_save_exec_prefix="$exec_prefix"
20981 exec_prefix="$acl_final_exec_prefix"
20982 eval x=\"$x\"
20983 exec_prefix="$acl_save_exec_prefix"
20984 prefix="$acl_save_prefix"
9c60689e 20985
7eda51e0
JF
20986 if test "X$x" = "X$element"; then
20987 haveit=yes
20988 break
20989 fi
20990 done
20991 if test -z "$haveit"; then
babf7fe8 20992 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
7eda51e0
JF
20993 fi
20994 done
9c60689e 20995
9c60689e 20996
5053a6d1 20997else
babf7fe8
JF
20998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20999$as_echo "no" >&6; }
632b71ea
DWT
21000fi
21001
babf7fe8
JF
21002 ac_ext=cpp
21003ac_cpp='$CXXCPP $CPPFLAGS'
21004ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21005ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21006ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
632b71ea
DWT
21007
21008
5053a6d1 21009
babf7fe8
JF
21010 ac_ext=mm
21011ac_cpp='$OBJCXXCPP $CPPFLAGS'
21012ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21013ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21014ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
5053a6d1 21015
babf7fe8
JF
21016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-unneeded-internal-declaration" >&5
21017$as_echo_n "checking for c++ -ObjC -Wno-unneeded-internal-declaration... " >&6; }
632b71ea 21018
babf7fe8 21019 cy_save=$OBJCXXFLAGS
632b71ea 21020
babf7fe8 21021 for element in -Wno-unneeded-internal-declaration; do
5053a6d1 21022 haveit=
babf7fe8 21023 for x in $OBJCXXFLAGS; do
632b71ea
DWT
21024
21025 acl_save_prefix="$prefix"
21026 prefix="$acl_final_prefix"
21027 acl_save_exec_prefix="$exec_prefix"
21028 exec_prefix="$acl_final_exec_prefix"
5053a6d1 21029 eval x=\"$x\"
632b71ea
DWT
21030 exec_prefix="$acl_save_exec_prefix"
21031 prefix="$acl_save_prefix"
21032
5053a6d1
DWT
21033 if test "X$x" = "X$element"; then
21034 haveit=yes
21035 break
21036 fi
21037 done
21038 if test -z "$haveit"; then
babf7fe8 21039 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
5053a6d1
DWT
21040 fi
21041 done
21042
66170b30 21043
babf7fe8
JF
21044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21045/* end confdefs.h. */
21046
21047_ACEOF
21048if ac_fn_objcxx_try_compile "$LINENO"; then :
21049 cy_good=1
21050else
21051 cy_good=0
21052fi
21053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21054
21055 OBJCXXFLAGS=$cy_save
21056 if test "x$cy_good" = x1; then :
21057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21058$as_echo "yes" >&6; }
21059
21060 for element in -Wno-unneeded-internal-declaration; do
7eda51e0 21061 haveit=
babf7fe8 21062 for x in $OBJCXXFLAGS; do
7eda51e0
JF
21063
21064 acl_save_prefix="$prefix"
21065 prefix="$acl_final_prefix"
21066 acl_save_exec_prefix="$exec_prefix"
21067 exec_prefix="$acl_final_exec_prefix"
21068 eval x=\"$x\"
21069 exec_prefix="$acl_save_exec_prefix"
21070 prefix="$acl_save_prefix"
21071
21072 if test "X$x" = "X$element"; then
21073 haveit=yes
21074 break
21075 fi
21076 done
21077 if test -z "$haveit"; then
babf7fe8 21078 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
7eda51e0
JF
21079 fi
21080 done
66170b30
JF
21081
21082
babf7fe8
JF
21083else
21084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21085$as_echo "no" >&6; }
5053a6d1 21086fi
7eda51e0 21087
babf7fe8
JF
21088 ac_ext=cpp
21089ac_cpp='$CXXCPP $CPPFLAGS'
21090ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21091ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21092ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5053a6d1 21093
5053a6d1
DWT
21094
21095
5053a6d1 21096
babf7fe8
JF
21097
21098
2ca4dab3 21099
be2fde87
JF
21100ac_ext=c
21101ac_cpp='$CPP $CPPFLAGS'
21102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21104ac_compiler_gnu=$ac_cv_c_compiler_gnu
21105
21106ax_pthread_ok=no
21107
21108# We used to check for pthread.h first, but this fails if pthread.h
2ca4dab3 21109# requires special compiler flags (e.g. on Tru64 or Sequent).
be2fde87
JF
21110# It gets checked for in the link test anyway.
21111
21112# First of all, check if the user has set any of the PTHREAD_LIBS,
21113# etcetera environment variables, and if threads linking works using
21114# them:
21115if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
21116 save_CFLAGS="$CFLAGS"
21117 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21118 save_LIBS="$LIBS"
21119 LIBS="$PTHREAD_LIBS $LIBS"
2ca4dab3
JF
21120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
21121$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
be2fde87
JF
21122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21123/* end confdefs.h. */
21124
21125/* Override any GCC internal prototype to avoid an error.
21126 Use char because int might match the return type of a GCC
21127 builtin and then its argument prototype would still apply. */
21128#ifdef __cplusplus
21129extern "C"
21130#endif
21131char pthread_join ();
21132int
21133main ()
21134{
21135return pthread_join ();
21136 ;
21137 return 0;
21138}
21139_ACEOF
21140if ac_fn_c_try_link "$LINENO"; then :
21141 ax_pthread_ok=yes
21142fi
21143rm -f core conftest.err conftest.$ac_objext \
21144 conftest$ac_exeext conftest.$ac_ext
21145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
21146$as_echo "$ax_pthread_ok" >&6; }
21147 if test x"$ax_pthread_ok" = xno; then
21148 PTHREAD_LIBS=""
21149 PTHREAD_CFLAGS=""
21150 fi
21151 LIBS="$save_LIBS"
21152 CFLAGS="$save_CFLAGS"
21153fi
21154
21155# We must check for the threads library under a number of different
21156# names; the ordering is very important because some systems
21157# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
21158# libraries is broken (non-POSIX).
21159
21160# Create a list of thread flags to try. Items starting with a "-" are
21161# C compiler flags, and other items are library names, except for "none"
21162# which indicates that we try without any flags at all, and "pthread-config"
21163# which is a program returning the flags for the Pth emulation library.
21164
2ca4dab3 21165ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mt -mthreads pthread --thread-safe pthread-config"
be2fde87
JF
21166
21167# The ordering *is* (sometimes) important. Some notes on the
21168# individual items follow:
21169
21170# pthreads: AIX (must check this before -lpthread)
21171# none: in case threads are in libc; should be tried before -Kthread and
21172# other compiler flags to prevent continual compiler warnings
21173# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
21174# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
21175# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
2ca4dab3 21176# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
be2fde87 21177# -pthreads: Solaris/gcc
be2fde87 21178# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
2ca4dab3
JF
21179# doesn't hurt to check since this sometimes defines pthreads and
21180# -D_REENTRANT too), HP C (must be checked before -lpthread, which
21181# is present but should not be used directly)
21182# -mthreads: Mingw32/gcc, Lynx/gcc
be2fde87
JF
21183# pthread: Linux, etcetera
21184# --thread-safe: KAI C++
21185# pthread-config: use pthread-config program (for GNU Pth library)
21186
2ca4dab3
JF
21187case $host_os in
21188
21189 hpux*)
21190
21191 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
21192 # multi-threading and also sets -lpthread."
21193
21194 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
21195 ;;
21196
21197 openedition*)
21198
21199 # IBM z/OS requires a feature-test macro to be defined in order to
21200 # enable POSIX threads at all, so give the user a hint if this is
21201 # not set. (We don't define these ourselves, as they can affect
21202 # other portions of the system API in unpredictable ways.)
21203
21204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21205/* end confdefs.h. */
21206
21207# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
21208 AX_PTHREAD_ZOS_MISSING
21209# endif
21210
21211_ACEOF
21212if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21213 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
21214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
21215$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
21216fi
21217rm -f conftest*
21218
21219 ;;
21220
be2fde87
JF
21221 solaris*)
21222
2ca4dab3
JF
21223 # Newer versions of Solaris require the "-mt -lpthread" pair, and we
21224 # check that first. On some older versions, libc contains stubbed
be2fde87
JF
21225 # (non-functional) versions of the pthreads routines, so link-based
21226 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
21227 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
21228 # a function called by this macro, so we could check for that, but
2ca4dab3
JF
21229 # who knows whether they'll stub that too in a future libc.) So
21230 # we'll look for -pthreads and -lpthread shortly thereafter.
be2fde87 21231
2ca4dab3 21232 ax_pthread_flags="-mt,pthread -pthreads -pthread pthread $ax_pthread_flags"
be2fde87
JF
21233 ;;
21234esac
21235
2ca4dab3
JF
21236# Older versions of Clang only give a warning instead of an error for an
21237# unrecognized option, unless we specify -Werror. (We throw in some extra
21238# Clang warning flags for good measure.)
be2fde87 21239
2ca4dab3
JF
21240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs certain flags to reject unknown flags" >&5
21241$as_echo_n "checking if compiler needs certain flags to reject unknown flags... " >&6; }
21242if ${ax_cv_PTHREAD_REJECT_UNKNOWN+:} false; then :
21243 $as_echo_n "(cached) " >&6
21244else
21245 ax_cv_PTHREAD_REJECT_UNKNOWN=unknown
21246 save_CFLAGS="$CFLAGS"
21247 ax_pthread_extra_flags="-Wunknown-warning-option -Wunused-command-line-argument"
21248 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wfoobaz -foobaz"
21249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
be2fde87
JF
21250/* end confdefs.h. */
21251int foo(void);
21252int
21253main ()
21254{
21255foo()
21256 ;
21257 return 0;
21258}
21259_ACEOF
21260if ac_fn_c_try_compile "$LINENO"; then :
2ca4dab3 21261 ax_cv_PTHREAD_REJECT_UNKNOWN="-Werror $ax_pthread_extra_flags"
be2fde87 21262else
2ca4dab3 21263 ax_cv_PTHREAD_REJECT_UNKNOWN=no
be2fde87
JF
21264fi
21265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2ca4dab3
JF
21266 CFLAGS="$save_CFLAGS"
21267
21268fi
21269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_REJECT_UNKNOWN" >&5
21270$as_echo "$ax_cv_PTHREAD_REJECT_UNKNOWN" >&6; }
21271ax_pthread_extra_flags=
21272if test "x$ax_cv_PTHREAD_REJECT_UNKNOWN" != "xno"; then :
21273 ax_pthread_extra_flags="$ax_cv_PTHREAD_REJECT_UNKNOWN"
21274fi
be2fde87
JF
21275
21276if test x"$ax_pthread_ok" = xno; then
21277for flag in $ax_pthread_flags; do
21278
21279 case $flag in
21280 none)
21281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
21282$as_echo_n "checking whether pthreads work without any flags... " >&6; }
21283 ;;
21284
2ca4dab3
JF
21285 -mt,pthread)
21286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
21287$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
21288 PTHREAD_CFLAGS="-mt"
21289 PTHREAD_LIBS="-lpthread"
21290 ;;
21291
be2fde87
JF
21292 -*)
21293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
21294$as_echo_n "checking whether pthreads work with $flag... " >&6; }
21295 PTHREAD_CFLAGS="$flag"
21296 ;;
21297
21298 pthread-config)
21299 # Extract the first word of "pthread-config", so it can be a program name with args.
21300set dummy pthread-config; ac_word=$2
21301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21302$as_echo_n "checking for $ac_word... " >&6; }
21303if ${ac_cv_prog_ax_pthread_config+:} false; then :
21304 $as_echo_n "(cached) " >&6
21305else
21306 if test -n "$ax_pthread_config"; then
21307 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
21308else
21309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21310for as_dir in $PATH
21311do
21312 IFS=$as_save_IFS
21313 test -z "$as_dir" && as_dir=.
21314 for ac_exec_ext in '' $ac_executable_extensions; do
21315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21316 ac_cv_prog_ax_pthread_config="yes"
21317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21318 break 2
21319 fi
21320done
21321 done
21322IFS=$as_save_IFS
21323
21324 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
21325fi
21326fi
21327ax_pthread_config=$ac_cv_prog_ax_pthread_config
21328if test -n "$ax_pthread_config"; then
21329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
21330$as_echo "$ax_pthread_config" >&6; }
21331else
21332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21333$as_echo "no" >&6; }
21334fi
21335
21336
21337 if test x"$ax_pthread_config" = xno; then continue; fi
21338 PTHREAD_CFLAGS="`pthread-config --cflags`"
21339 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
21340 ;;
21341
21342 *)
21343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
21344$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
21345 PTHREAD_LIBS="-l$flag"
21346 ;;
21347 esac
21348
21349 save_LIBS="$LIBS"
21350 save_CFLAGS="$CFLAGS"
21351 LIBS="$PTHREAD_LIBS $LIBS"
21352 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
21353
21354 # Check for various functions. We must include pthread.h,
21355 # since some functions may be macros. (On the Sequent, we
21356 # need a special flag -Kthread to make this header compile.)
21357 # We check for pthread_join because it is in -lpthread on IRIX
21358 # while pthread_create is in libc. We check for pthread_attr_init
21359 # due to DEC craziness with -lpthreads. We check for
21360 # pthread_cleanup_push because it is one of the few pthread
21361 # functions on Solaris that doesn't have a non-functional libc stub.
21362 # We try pthread_create on general principles.
21363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21364/* end confdefs.h. */
21365#include <pthread.h>
21366 static void routine(void *a) { a = 0; }
21367 static void *start_routine(void *a) { return a; }
21368int
21369main ()
21370{
21371pthread_t th; pthread_attr_t attr;
21372 pthread_create(&th, 0, start_routine, 0);
21373 pthread_join(th, 0);
21374 pthread_attr_init(&attr);
21375 pthread_cleanup_push(routine, 0);
21376 pthread_cleanup_pop(0) /* ; */
21377 ;
21378 return 0;
21379}
21380_ACEOF
21381if ac_fn_c_try_link "$LINENO"; then :
21382 ax_pthread_ok=yes
21383fi
21384rm -f core conftest.err conftest.$ac_objext \
21385 conftest$ac_exeext conftest.$ac_ext
21386
21387 LIBS="$save_LIBS"
21388 CFLAGS="$save_CFLAGS"
21389
21390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
21391$as_echo "$ax_pthread_ok" >&6; }
21392 if test "x$ax_pthread_ok" = xyes; then
21393 break;
21394 fi
21395
21396 PTHREAD_LIBS=""
21397 PTHREAD_CFLAGS=""
21398done
21399fi
21400
21401# Various other checks:
21402if test "x$ax_pthread_ok" = xyes; then
21403 save_LIBS="$LIBS"
21404 LIBS="$PTHREAD_LIBS $LIBS"
21405 save_CFLAGS="$CFLAGS"
21406 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21407
21408 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
21409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
21410$as_echo_n "checking for joinable pthread attribute... " >&6; }
2ca4dab3
JF
21411if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
21412 $as_echo_n "(cached) " >&6
21413else
21414 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
21415 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
21416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
be2fde87
JF
21417/* end confdefs.h. */
21418#include <pthread.h>
21419int
21420main ()
21421{
21422int attr = $attr; return attr /* ; */
21423 ;
21424 return 0;
21425}
21426_ACEOF
21427if ac_fn_c_try_link "$LINENO"; then :
2ca4dab3 21428 ax_cv_PTHREAD_JOINABLE_ATTR=$attr; break
be2fde87
JF
21429fi
21430rm -f core conftest.err conftest.$ac_objext \
21431 conftest$ac_exeext conftest.$ac_ext
2ca4dab3
JF
21432 done
21433
21434fi
21435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
21436$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
21437 if test "$ax_cv_PTHREAD_JOINABLE_ATTR" != unknown && \
21438 test "$ax_cv_PTHREAD_JOINABLE_ATTR" != PTHREAD_CREATE_JOINABLE; then :
be2fde87
JF
21439
21440cat >>confdefs.h <<_ACEOF
2ca4dab3 21441#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
be2fde87
JF
21442_ACEOF
21443
2ca4dab3 21444fi
be2fde87
JF
21445
21446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
21447$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
2ca4dab3
JF
21448if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
21449 $as_echo_n "(cached) " >&6
21450else
21451 ax_cv_PTHREAD_SPECIAL_FLAGS=no
21452 ax_pthread_special_flags_added=no
21453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21454/* end confdefs.h. */
21455
21456# if !defined(_REENTRANT) && !defined(_THREAD_SAFE)
21457 AX_PTHREAD_NEED_SPECIAL_FLAG
21458# endif
21459
21460_ACEOF
21461if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21462 $EGREP "AX_PTHREAD_NEED_SPECIAL_FLAG" >/dev/null 2>&1; then :
21463 case $host_os in
21464 aix* | freebsd*)
21465 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_THREAD_SAFE"
21466 ;;
21467 darwin* | hpux* | osf* | solaris*)
21468 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_REENTRANT"
21469 ;;
21470 esac
21471
21472fi
21473rm -f conftest*
21474
21475
21476fi
21477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
21478$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
21479 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
21480 test "x$ax_pthread_special_flags_added" != "xyes"; then :
21481 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
21482 ax_pthread_special_flags_added=yes
21483fi
be2fde87
JF
21484
21485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
21486$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
21487if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
21488 $as_echo_n "(cached) " >&6
21489else
2ca4dab3 21490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
be2fde87
JF
21491/* end confdefs.h. */
21492#include <pthread.h>
21493int
21494main ()
21495{
21496int i = PTHREAD_PRIO_INHERIT;
21497 ;
21498 return 0;
21499}
21500_ACEOF
21501if ac_fn_c_try_link "$LINENO"; then :
21502 ax_cv_PTHREAD_PRIO_INHERIT=yes
21503else
21504 ax_cv_PTHREAD_PRIO_INHERIT=no
21505fi
21506rm -f core conftest.err conftest.$ac_objext \
21507 conftest$ac_exeext conftest.$ac_ext
21508
21509fi
21510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
21511$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
21512 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
21513
21514$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
21515
21516fi
21517
21518 LIBS="$save_LIBS"
21519 CFLAGS="$save_CFLAGS"
21520
21521 # More AIX lossage: compile with *_r variant
21522 if test "x$GCC" != xyes; then
21523 case $host_os in
21524 aix*)
21525 case "x/$CC" in #(
21526 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
21527 #handle absolute path differently from PATH based program lookup
21528 case "x$CC" in #(
21529 x/*) :
21530 if as_fn_executable_p ${CC}_r; then :
21531 PTHREAD_CC="${CC}_r"
21532fi ;; #(
21533 *) :
21534 for ac_prog in ${CC}_r
21535do
21536 # Extract the first word of "$ac_prog", so it can be a program name with args.
21537set dummy $ac_prog; ac_word=$2
21538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21539$as_echo_n "checking for $ac_word... " >&6; }
21540if ${ac_cv_prog_PTHREAD_CC+:} false; then :
21541 $as_echo_n "(cached) " >&6
21542else
21543 if test -n "$PTHREAD_CC"; then
21544 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
21545else
21546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21547for as_dir in $PATH
21548do
21549 IFS=$as_save_IFS
21550 test -z "$as_dir" && as_dir=.
21551 for ac_exec_ext in '' $ac_executable_extensions; do
21552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21553 ac_cv_prog_PTHREAD_CC="$ac_prog"
21554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21555 break 2
21556 fi
21557done
21558 done
21559IFS=$as_save_IFS
21560
21561fi
21562fi
21563PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
21564if test -n "$PTHREAD_CC"; then
21565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
21566$as_echo "$PTHREAD_CC" >&6; }
21567else
21568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21569$as_echo "no" >&6; }
21570fi
21571
21572
21573 test -n "$PTHREAD_CC" && break
21574done
21575test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
21576 ;;
21577esac ;; #(
21578 *) :
21579 ;;
21580esac
21581 ;;
21582 esac
21583 fi
21584fi
21585
21586test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
21587
21588
21589
21590
21591
21592# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
21593if test x"$ax_pthread_ok" = xyes; then
21594
21595$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
21596
21597 :
21598else
21599 ax_pthread_ok=no
21600
21601fi
21602ac_ext=cpp
21603ac_cpp='$CXXCPP $CPPFLAGS'
21604ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21605ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21606ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21607
21608
21609
21610
21611
babf7fe8
JF
21612
21613
21614
21615
21616# Check whether --enable-javascript was given.
21617if test "${enable_javascript+set}" = set; then :
21618 enableval=$enable_javascript;
21619 case $enableval in #(
21620 yes) :
21621
21622
21623
21624
21625 cy_save=$LIBS
21626 LIBS=
9918a0fa
JF
21627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
21628$as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
21629if ${ac_cv_search_JSEvaluateScript+:} false; then :
21630 $as_echo_n "(cached) " >&6
21631else
21632 ac_func_search_save_LIBS=$LIBS
21633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21634/* end confdefs.h. */
21635
21636/* Override any GCC internal prototype to avoid an error.
21637 Use char because int might match the return type of a GCC
21638 builtin and then its argument prototype would still apply. */
21639#ifdef __cplusplus
21640extern "C"
21641#endif
21642char JSEvaluateScript ();
21643int
21644main ()
21645{
21646return JSEvaluateScript ();
21647 ;
21648 return 0;
21649}
21650_ACEOF
21651for ac_lib in '' JavaScriptCore; do
21652 if test -z "$ac_lib"; then
21653 ac_res="none required"
21654 else
21655 ac_res=-l$ac_lib
21656 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21657 fi
21658 if ac_fn_cxx_try_link "$LINENO"; then :
21659 ac_cv_search_JSEvaluateScript=$ac_res
21660fi
21661rm -f core conftest.err conftest.$ac_objext \
21662 conftest$ac_exeext
21663 if ${ac_cv_search_JSEvaluateScript+:} false; then :
21664 break
21665fi
21666done
21667if ${ac_cv_search_JSEvaluateScript+:} false; then :
21668
21669else
21670 ac_cv_search_JSEvaluateScript=no
21671fi
21672rm conftest.$ac_ext
21673LIBS=$ac_func_search_save_LIBS
21674fi
21675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
21676$as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
21677ac_res=$ac_cv_search_JSEvaluateScript
21678if test "$ac_res" != no; then :
21679 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21680
21681 CY_EXECUTE=1
21682
21683
21684else
babf7fe8
JF
21685
21686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
21687$as_echo_n "checking for framework JavaScriptCore... " >&6; }
21688if ${ac_cv_framework_JavaScriptCore+:} false; then :
21689 $as_echo_n "(cached) " >&6
21690else
21691
21692 ac_check_framework_save_LIBS=$LIBS
21693 LIBS="-framework JavaScriptCore $LIBS"
21694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21695/* end confdefs.h. */
21696
21697 #include <JavaScriptCore/JSBase.h>
21698
21699int
21700main ()
21701{
21702
21703 JSEvaluateScript(0, 0, 0, 0, 0, 0);
21704
21705 ;
21706 return 0;
21707}
21708_ACEOF
21709if ac_fn_cxx_try_link "$LINENO"; then :
21710
21711 ac_cv_framework_JavaScriptCore=yes
21712
21713else
21714 ac_cv_framework_JavaScriptCore=no
21715fi
21716rm -f core conftest.err conftest.$ac_objext \
21717 conftest$ac_exeext conftest.$ac_ext
21718 LIBS=$ac_check_framework_save_LIBS
21719
21720fi
21721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
21722$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
21723 if test $ac_cv_framework_JavaScriptCore = yes; then :
21724
21725
21726 for element in "-framework JavaScriptCore"; do
21727 haveit=
21728 for x in $LIBS; do
21729
21730 acl_save_prefix="$prefix"
21731 prefix="$acl_final_prefix"
21732 acl_save_exec_prefix="$exec_prefix"
21733 exec_prefix="$acl_final_exec_prefix"
21734 eval x=\"$x\"
21735 exec_prefix="$acl_save_exec_prefix"
21736 prefix="$acl_save_prefix"
21737
21738 if test "X$x" = "X$element"; then
21739 haveit=yes
21740 break
21741 fi
21742 done
21743 if test -z "$haveit"; then
21744 LIBS="${LIBS}${LIBS:+ }$element"
21745 fi
21746 done
21747
21748
21749 CY_EXECUTE=1
21750
21751
21752
21753else
21754
ccb4e34c 21755 for cy_webkit_pkg in "javascriptcoregtk-4.0"; do
babf7fe8
JF
21756
21757pkg_failed=no
21758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
7eda51e0 21759$as_echo_n "checking for WEBKIT... " >&6; }
5053a6d1 21760
7eda51e0
JF
21761if test -n "$WEBKIT_CFLAGS"; then
21762 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
21763 elif test -n "$PKG_CONFIG"; then
21764 if test -n "$PKG_CONFIG" && \
21765 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
21766 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
21767 ac_status=$?
21768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21769 test $ac_status = 0; }; then
21770 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
83c6fec8 21771 test "x$?" != "x0" && pkg_failed=yes
7eda51e0
JF
21772else
21773 pkg_failed=yes
21774fi
21775 else
21776 pkg_failed=untried
21777fi
21778if test -n "$WEBKIT_LIBS"; then
21779 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
21780 elif test -n "$PKG_CONFIG"; then
21781 if test -n "$PKG_CONFIG" && \
21782 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
21783 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
21784 ac_status=$?
21785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21786 test $ac_status = 0; }; then
21787 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
83c6fec8 21788 test "x$?" != "x0" && pkg_failed=yes
7eda51e0
JF
21789else
21790 pkg_failed=yes
21791fi
21792 else
21793 pkg_failed=untried
21794fi
632b71ea 21795
7eda51e0
JF
21796
21797
21798if test $pkg_failed = yes; then
21799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21800$as_echo "no" >&6; }
21801
21802if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21803 _pkg_short_errors_supported=yes
21804else
21805 _pkg_short_errors_supported=no
21806fi
21807 if test $_pkg_short_errors_supported = yes; then
83c6fec8 21808 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
7eda51e0 21809 else
83c6fec8 21810 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
7eda51e0
JF
21811 fi
21812 # Put the nasty error message in config.log where it belongs
21813 echo "$WEBKIT_PKG_ERRORS" >&5
21814
21815 :
21816elif test $pkg_failed = untried; then
21817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21818$as_echo "no" >&6; }
21819 :
21820else
21821 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
21822 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
21823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21824$as_echo "yes" >&6; }
21825
21826 CY_EXECUTE=1
21827
21828
7eda51e0
JF
21829 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
21830 haveit=
d70419f1 21831 for x in $CPPFLAGS; do
5053a6d1 21832
7eda51e0
JF
21833 acl_save_prefix="$prefix"
21834 prefix="$acl_final_prefix"
21835 acl_save_exec_prefix="$exec_prefix"
21836 exec_prefix="$acl_final_exec_prefix"
21837 eval x=\"$x\"
21838 exec_prefix="$acl_save_exec_prefix"
21839 prefix="$acl_save_prefix"
5053a6d1 21840
7eda51e0
JF
21841 if test "X$x" = "X$element"; then
21842 haveit=yes
21843 break
21844 fi
21845 done
21846 if test -z "$haveit"; then
d70419f1 21847 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7eda51e0
JF
21848 fi
21849 done
5053a6d1 21850
5053a6d1 21851
7eda51e0 21852 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
632b71ea 21853 haveit=
5053a6d1 21854 for x in $LIBS; do
9c60689e 21855
632b71ea
DWT
21856 acl_save_prefix="$prefix"
21857 prefix="$acl_final_prefix"
21858 acl_save_exec_prefix="$exec_prefix"
21859 exec_prefix="$acl_final_exec_prefix"
21860 eval x=\"$x\"
21861 exec_prefix="$acl_save_exec_prefix"
21862 prefix="$acl_save_prefix"
21863
21864 if test "X$x" = "X$element"; then
21865 haveit=yes
21866 break
21867 fi
21868 done
21869 if test -z "$haveit"; then
5053a6d1 21870 LIBS="${LIBS}${LIBS:+ }$element"
632b71ea
DWT
21871 fi
21872 done
b128dfee 21873
66170b30 21874
7eda51e0
JF
21875fi; if test "x$CY_EXECUTE" = x1; then break; fi
21876 done
5053a6d1
DWT
21877
21878fi
9918a0fa
JF
21879fi
21880
babf7fe8
JF
21881 LTJAVASCRIPTCORE=$LIBS
21882 LIBS=$cy_save
21883
21884
7eda51e0 21885 ;; #(
babf7fe8 21886 no) :
7eda51e0 21887
babf7fe8
JF
21888 CY_EXECUTE=0
21889 ;; #(
21890 JavaScriptCore) :
c823f118 21891
5053a6d1
DWT
21892
21893
babf7fe8
JF
21894 cy_save=$LIBS
21895 LIBS=
9918a0fa
JF
21896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
21897$as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
21898if ${ac_cv_search_JSEvaluateScript+:} false; then :
21899 $as_echo_n "(cached) " >&6
21900else
21901 ac_func_search_save_LIBS=$LIBS
21902cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21903/* end confdefs.h. */
21904
21905/* Override any GCC internal prototype to avoid an error.
21906 Use char because int might match the return type of a GCC
21907 builtin and then its argument prototype would still apply. */
21908#ifdef __cplusplus
21909extern "C"
21910#endif
21911char JSEvaluateScript ();
21912int
21913main ()
21914{
21915return JSEvaluateScript ();
21916 ;
21917 return 0;
21918}
21919_ACEOF
21920for ac_lib in '' JavaScriptCore; do
21921 if test -z "$ac_lib"; then
21922 ac_res="none required"
21923 else
21924 ac_res=-l$ac_lib
21925 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21926 fi
21927 if ac_fn_cxx_try_link "$LINENO"; then :
21928 ac_cv_search_JSEvaluateScript=$ac_res
21929fi
21930rm -f core conftest.err conftest.$ac_objext \
21931 conftest$ac_exeext
21932 if ${ac_cv_search_JSEvaluateScript+:} false; then :
21933 break
21934fi
21935done
21936if ${ac_cv_search_JSEvaluateScript+:} false; then :
21937
21938else
21939 ac_cv_search_JSEvaluateScript=no
21940fi
21941rm conftest.$ac_ext
21942LIBS=$ac_func_search_save_LIBS
21943fi
21944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
21945$as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
21946ac_res=$ac_cv_search_JSEvaluateScript
21947if test "$ac_res" != no; then :
21948 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21949
21950 CY_EXECUTE=1
21951
21952
21953else
babf7fe8 21954
5053a6d1
DWT
21955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
21956$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 21957if ${ac_cv_framework_JavaScriptCore+:} false; then :
c823f118
DWT
21958 $as_echo_n "(cached) " >&6
21959else
21960
5053a6d1
DWT
21961 ac_check_framework_save_LIBS=$LIBS
21962 LIBS="-framework JavaScriptCore $LIBS"
21963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
632b71ea 21964/* end confdefs.h. */
5053a6d1 21965
7eda51e0 21966 #include <JavaScriptCore/JSBase.h>
5053a6d1 21967
632b71ea
DWT
21968int
21969main ()
21970{
66170b30 21971
7eda51e0 21972 JSEvaluateScript(0, 0, 0, 0, 0, 0);
66170b30 21973
632b71ea
DWT
21974 ;
21975 return 0;
21976}
21977_ACEOF
5053a6d1
DWT
21978if ac_fn_cxx_try_link "$LINENO"; then :
21979
21980 ac_cv_framework_JavaScriptCore=yes
21981
21982else
21983 ac_cv_framework_JavaScriptCore=no
632b71ea
DWT
21984fi
21985rm -f core conftest.err conftest.$ac_objext \
21986 conftest$ac_exeext conftest.$ac_ext
5053a6d1 21987 LIBS=$ac_check_framework_save_LIBS
b128dfee 21988
c823f118 21989fi
5053a6d1
DWT
21990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
21991$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
21992 if test $ac_cv_framework_JavaScriptCore = yes; then :
c823f118
DWT
21993
21994
7eda51e0 21995 for element in "-framework JavaScriptCore"; do
5053a6d1
DWT
21996 haveit=
21997 for x in $LIBS; do
21998
21999 acl_save_prefix="$prefix"
22000 prefix="$acl_final_prefix"
22001 acl_save_exec_prefix="$exec_prefix"
22002 exec_prefix="$acl_final_exec_prefix"
22003 eval x=\"$x\"
22004 exec_prefix="$acl_save_exec_prefix"
22005 prefix="$acl_save_prefix"
22006
22007 if test "X$x" = "X$element"; then
22008 haveit=yes
22009 break
22010 fi
22011 done
22012 if test -z "$haveit"; then
22013 LIBS="${LIBS}${LIBS:+ }$element"
22014 fi
22015 done
c823f118 22016
66170b30 22017
7eda51e0
JF
22018 CY_EXECUTE=1
22019
22020
22021
22022else
22023
ccb4e34c 22024 for cy_webkit_pkg in "javascriptcoregtk-4.0"; do
7eda51e0
JF
22025
22026pkg_failed=no
22027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
22028$as_echo_n "checking for WEBKIT... " >&6; }
22029
22030if test -n "$WEBKIT_CFLAGS"; then
22031 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
22032 elif test -n "$PKG_CONFIG"; then
22033 if test -n "$PKG_CONFIG" && \
22034 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
22035 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
22036 ac_status=$?
22037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22038 test $ac_status = 0; }; then
22039 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
83c6fec8 22040 test "x$?" != "x0" && pkg_failed=yes
7eda51e0
JF
22041else
22042 pkg_failed=yes
22043fi
22044 else
22045 pkg_failed=untried
22046fi
22047if test -n "$WEBKIT_LIBS"; then
22048 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
22049 elif test -n "$PKG_CONFIG"; then
22050 if test -n "$PKG_CONFIG" && \
22051 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
22052 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
22053 ac_status=$?
22054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22055 test $ac_status = 0; }; then
22056 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
83c6fec8 22057 test "x$?" != "x0" && pkg_failed=yes
7eda51e0
JF
22058else
22059 pkg_failed=yes
22060fi
22061 else
22062 pkg_failed=untried
22063fi
22064
66170b30
JF
22065
22066
7eda51e0
JF
22067if test $pkg_failed = yes; then
22068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22069$as_echo "no" >&6; }
b128dfee 22070
7eda51e0
JF
22071if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22072 _pkg_short_errors_supported=yes
22073else
22074 _pkg_short_errors_supported=no
632b71ea 22075fi
7eda51e0 22076 if test $_pkg_short_errors_supported = yes; then
83c6fec8 22077 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
7eda51e0 22078 else
83c6fec8 22079 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
7eda51e0
JF
22080 fi
22081 # Put the nasty error message in config.log where it belongs
22082 echo "$WEBKIT_PKG_ERRORS" >&5
c823f118 22083
7eda51e0
JF
22084 :
22085elif test $pkg_failed = untried; then
22086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22087$as_echo "no" >&6; }
22088 :
5053a6d1
DWT
22089else
22090 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
22091 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
22092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22093$as_echo "yes" >&6; }
c823f118 22094
7eda51e0
JF
22095 CY_EXECUTE=1
22096
66170b30 22097
7eda51e0 22098 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
5053a6d1 22099 haveit=
d70419f1 22100 for x in $CPPFLAGS; do
c823f118 22101
5053a6d1
DWT
22102 acl_save_prefix="$prefix"
22103 prefix="$acl_final_prefix"
22104 acl_save_exec_prefix="$exec_prefix"
22105 exec_prefix="$acl_final_exec_prefix"
22106 eval x=\"$x\"
22107 exec_prefix="$acl_save_exec_prefix"
22108 prefix="$acl_save_prefix"
c823f118 22109
5053a6d1
DWT
22110 if test "X$x" = "X$element"; then
22111 haveit=yes
22112 break
22113 fi
22114 done
22115 if test -z "$haveit"; then
d70419f1 22116 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5053a6d1
DWT
22117 fi
22118 done
c823f118 22119
b66977f1 22120
7eda51e0 22121 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
5053a6d1
DWT
22122 haveit=
22123 for x in $LIBS; do
22124
22125 acl_save_prefix="$prefix"
22126 prefix="$acl_final_prefix"
22127 acl_save_exec_prefix="$exec_prefix"
22128 exec_prefix="$acl_final_exec_prefix"
22129 eval x=\"$x\"
22130 exec_prefix="$acl_save_exec_prefix"
22131 prefix="$acl_save_prefix"
22132
22133 if test "X$x" = "X$element"; then
22134 haveit=yes
22135 break
22136 fi
22137 done
22138 if test -z "$haveit"; then
22139 LIBS="${LIBS}${LIBS:+ }$element"
22140 fi
22141 done
22142
22143
7eda51e0
JF
22144fi; if test "x$CY_EXECUTE" = x1; then break; fi
22145 done
22146
5053a6d1 22147fi
9918a0fa
JF
22148fi
22149
babf7fe8
JF
22150 LTJAVASCRIPTCORE=$LIBS
22151 LIBS=$cy_save
5053a6d1 22152
b66977f1 22153
babf7fe8
JF
22154 ;; #(
22155 *) :
22156 as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;;
22157esac
b66977f1 22158
babf7fe8 22159else
b66977f1 22160
7eda51e0 22161
7eda51e0 22162
babf7fe8
JF
22163 cy_save=$LIBS
22164 LIBS=
9918a0fa
JF
22165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
22166$as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
22167if ${ac_cv_search_JSEvaluateScript+:} false; then :
22168 $as_echo_n "(cached) " >&6
22169else
22170 ac_func_search_save_LIBS=$LIBS
22171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22172/* end confdefs.h. */
22173
22174/* Override any GCC internal prototype to avoid an error.
22175 Use char because int might match the return type of a GCC
22176 builtin and then its argument prototype would still apply. */
22177#ifdef __cplusplus
22178extern "C"
22179#endif
22180char JSEvaluateScript ();
22181int
22182main ()
22183{
22184return JSEvaluateScript ();
22185 ;
22186 return 0;
22187}
22188_ACEOF
22189for ac_lib in '' JavaScriptCore; do
22190 if test -z "$ac_lib"; then
22191 ac_res="none required"
22192 else
22193 ac_res=-l$ac_lib
22194 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22195 fi
22196 if ac_fn_cxx_try_link "$LINENO"; then :
22197 ac_cv_search_JSEvaluateScript=$ac_res
22198fi
22199rm -f core conftest.err conftest.$ac_objext \
22200 conftest$ac_exeext
22201 if ${ac_cv_search_JSEvaluateScript+:} false; then :
22202 break
22203fi
22204done
22205if ${ac_cv_search_JSEvaluateScript+:} false; then :
22206
22207else
22208 ac_cv_search_JSEvaluateScript=no
22209fi
22210rm conftest.$ac_ext
22211LIBS=$ac_func_search_save_LIBS
22212fi
22213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
22214$as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
22215ac_res=$ac_cv_search_JSEvaluateScript
22216if test "$ac_res" != no; then :
22217 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22218
22219 CY_EXECUTE=1
22220
22221
22222else
7eda51e0 22223
babf7fe8
JF
22224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
22225$as_echo_n "checking for framework JavaScriptCore... " >&6; }
22226if ${ac_cv_framework_JavaScriptCore+:} false; then :
22227 $as_echo_n "(cached) " >&6
22228else
7eda51e0 22229
babf7fe8
JF
22230 ac_check_framework_save_LIBS=$LIBS
22231 LIBS="-framework JavaScriptCore $LIBS"
22232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22233/* end confdefs.h. */
7eda51e0 22234
babf7fe8 22235 #include <JavaScriptCore/JSBase.h>
7eda51e0 22236
babf7fe8
JF
22237int
22238main ()
22239{
7eda51e0 22240
babf7fe8 22241 JSEvaluateScript(0, 0, 0, 0, 0, 0);
7eda51e0 22242
babf7fe8
JF
22243 ;
22244 return 0;
22245}
22246_ACEOF
22247if ac_fn_cxx_try_link "$LINENO"; then :
7eda51e0 22248
babf7fe8 22249 ac_cv_framework_JavaScriptCore=yes
b66977f1 22250
b66977f1 22251else
babf7fe8
JF
22252 ac_cv_framework_JavaScriptCore=no
22253fi
22254rm -f core conftest.err conftest.$ac_objext \
22255 conftest$ac_exeext conftest.$ac_ext
22256 LIBS=$ac_check_framework_save_LIBS
7eda51e0 22257
babf7fe8
JF
22258fi
22259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
22260$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
22261 if test $ac_cv_framework_JavaScriptCore = yes; then :
7eda51e0 22262
7eda51e0 22263
babf7fe8
JF
22264 for element in "-framework JavaScriptCore"; do
22265 haveit=
22266 for x in $LIBS; do
22267
22268 acl_save_prefix="$prefix"
22269 prefix="$acl_final_prefix"
22270 acl_save_exec_prefix="$exec_prefix"
22271 exec_prefix="$acl_final_exec_prefix"
22272 eval x=\"$x\"
22273 exec_prefix="$acl_save_exec_prefix"
22274 prefix="$acl_save_prefix"
22275
22276 if test "X$x" = "X$element"; then
22277 haveit=yes
22278 break
22279 fi
22280 done
22281 if test -z "$haveit"; then
22282 LIBS="${LIBS}${LIBS:+ }$element"
22283 fi
22284 done
22285
22286
22287 CY_EXECUTE=1
22288
22289
22290
22291else
22292
ccb4e34c 22293 for cy_webkit_pkg in "javascriptcoregtk-4.0"; do
babf7fe8
JF
22294
22295pkg_failed=no
22296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
22297$as_echo_n "checking for WEBKIT... " >&6; }
22298
22299if test -n "$WEBKIT_CFLAGS"; then
22300 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
22301 elif test -n "$PKG_CONFIG"; then
22302 if test -n "$PKG_CONFIG" && \
22303 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
22304 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
22305 ac_status=$?
22306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22307 test $ac_status = 0; }; then
22308 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
83c6fec8 22309 test "x$?" != "x0" && pkg_failed=yes
babf7fe8
JF
22310else
22311 pkg_failed=yes
22312fi
22313 else
22314 pkg_failed=untried
22315fi
22316if test -n "$WEBKIT_LIBS"; then
22317 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
22318 elif test -n "$PKG_CONFIG"; then
22319 if test -n "$PKG_CONFIG" && \
22320 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
22321 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
22322 ac_status=$?
22323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22324 test $ac_status = 0; }; then
22325 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
83c6fec8 22326 test "x$?" != "x0" && pkg_failed=yes
babf7fe8
JF
22327else
22328 pkg_failed=yes
22329fi
22330 else
22331 pkg_failed=untried
22332fi
22333
22334
22335
22336if test $pkg_failed = yes; then
22337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22338$as_echo "no" >&6; }
22339
22340if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22341 _pkg_short_errors_supported=yes
22342else
22343 _pkg_short_errors_supported=no
22344fi
22345 if test $_pkg_short_errors_supported = yes; then
83c6fec8 22346 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
babf7fe8 22347 else
83c6fec8 22348 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
babf7fe8
JF
22349 fi
22350 # Put the nasty error message in config.log where it belongs
22351 echo "$WEBKIT_PKG_ERRORS" >&5
22352
22353 :
22354elif test $pkg_failed = untried; then
22355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22356$as_echo "no" >&6; }
22357 :
22358else
22359 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
22360 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
22361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22362$as_echo "yes" >&6; }
22363
22364 CY_EXECUTE=1
22365
22366
22367 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
22368 haveit=
22369 for x in $CPPFLAGS; do
22370
22371 acl_save_prefix="$prefix"
22372 prefix="$acl_final_prefix"
22373 acl_save_exec_prefix="$exec_prefix"
22374 exec_prefix="$acl_final_exec_prefix"
22375 eval x=\"$x\"
22376 exec_prefix="$acl_save_exec_prefix"
22377 prefix="$acl_save_prefix"
22378
22379 if test "X$x" = "X$element"; then
22380 haveit=yes
22381 break
22382 fi
22383 done
22384 if test -z "$haveit"; then
22385 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22386 fi
22387 done
22388
22389
22390 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
22391 haveit=
22392 for x in $LIBS; do
22393
22394 acl_save_prefix="$prefix"
22395 prefix="$acl_final_prefix"
22396 acl_save_exec_prefix="$exec_prefix"
22397 exec_prefix="$acl_final_exec_prefix"
22398 eval x=\"$x\"
22399 exec_prefix="$acl_save_exec_prefix"
22400 prefix="$acl_save_prefix"
22401
22402 if test "X$x" = "X$element"; then
22403 haveit=yes
22404 break
22405 fi
22406 done
22407 if test -z "$haveit"; then
22408 LIBS="${LIBS}${LIBS:+ }$element"
22409 fi
22410 done
22411
22412
22413fi; if test "x$CY_EXECUTE" = x1; then break; fi
22414 done
22415
22416fi
9918a0fa
JF
22417fi
22418
babf7fe8
JF
22419 LTJAVASCRIPTCORE=$LIBS
22420 LIBS=$cy_save
22421
22422
22423
22424fi
22425
22426
a93f15c0
JF
22427# Check whether --enable-console was given.
22428if test "${enable_console+set}" = set; then :
22429 enableval=$enable_console;
22430fi
22431
22432 if test "x$enable_console" != "xno"; then
22433 CY_CONSOLE_TRUE=
22434 CY_CONSOLE_FALSE='#'
22435else
22436 CY_CONSOLE_TRUE='#'
22437 CY_CONSOLE_FALSE=
22438fi
22439
22440
a4287117
JF
22441# Check whether --enable-attach was given.
22442if test "${enable_attach+set}" = set; then :
22443 enableval=$enable_attach;
22444fi
22445
22446 if test "x$enable_attach" != "xno" -a "x$CY_EXECUTE" = x1; then
22447 CY_ATTACH_TRUE=
22448 CY_ATTACH_FALSE='#'
22449else
22450 CY_ATTACH_TRUE='#'
22451 CY_ATTACH_FALSE=
22452fi
22453
22454
7eda51e0
JF
22455
22456
22457 if test "x$CY_EXECUTE" = x1; then
22458 CY_EXECUTE_TRUE=
22459 CY_EXECUTE_FALSE='#'
b66977f1 22460else
7eda51e0
JF
22461 CY_EXECUTE_TRUE='#'
22462 CY_EXECUTE_FALSE=
b66977f1
DWT
22463fi
22464
22465
8d20f0f1
JF
22466if test "x$CY_SYSTEM" = x; then CY_SYSTEM=1; fi
22467
22468
b66977f1 22469
7eda51e0
JF
22470case $CY_EXECUTE in #(
22471 1) :
22472
ae1b611e
JF
22473
22474 cy_save=$LIBS
22475 LIBS=
22476 for ac_header in uv.h
22477do :
22478 ac_fn_cxx_check_header_mongrel "$LINENO" "uv.h" "ac_cv_header_uv_h" "$ac_includes_default"
22479if test "x$ac_cv_header_uv_h" = xyes; then :
22480 cat >>confdefs.h <<_ACEOF
22481#define HAVE_UV_H 1
22482_ACEOF
22483
22484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uv_loop_init" >&5
22485$as_echo_n "checking for library containing uv_loop_init... " >&6; }
22486if ${ac_cv_search_uv_loop_init+:} false; then :
22487 $as_echo_n "(cached) " >&6
22488else
22489 ac_func_search_save_LIBS=$LIBS
22490cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22491/* end confdefs.h. */
22492
22493/* Override any GCC internal prototype to avoid an error.
22494 Use char because int might match the return type of a GCC
22495 builtin and then its argument prototype would still apply. */
22496#ifdef __cplusplus
22497extern "C"
22498#endif
22499char uv_loop_init ();
22500int
22501main ()
22502{
22503return uv_loop_init ();
22504 ;
22505 return 0;
22506}
22507_ACEOF
22508for ac_lib in '' uv; do
22509 if test -z "$ac_lib"; then
22510 ac_res="none required"
22511 else
22512 ac_res=-l$ac_lib
22513 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22514 fi
22515 if ac_fn_cxx_try_link "$LINENO"; then :
22516 ac_cv_search_uv_loop_init=$ac_res
22517fi
22518rm -f core conftest.err conftest.$ac_objext \
22519 conftest$ac_exeext
22520 if ${ac_cv_search_uv_loop_init+:} false; then :
22521 break
22522fi
22523done
22524if ${ac_cv_search_uv_loop_init+:} false; then :
22525
22526else
22527 ac_cv_search_uv_loop_init=no
22528fi
22529rm conftest.$ac_ext
22530LIBS=$ac_func_search_save_LIBS
22531fi
22532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uv_loop_init" >&5
22533$as_echo "$ac_cv_search_uv_loop_init" >&6; }
22534ac_res=$ac_cv_search_uv_loop_init
22535if test "$ac_res" != no; then :
22536 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22537
22538fi
22539
22540
22541fi
22542
22543done
22544
22545 LTLIBUV=$LIBS
22546 LIBS=$cy_save
22547
22548
22549
8d20f0f1
JF
22550
22551 cy_save=$LIBS
22552 LIBS=
22553 for ac_header in sqlite3.h
22554do :
22555 ac_fn_cxx_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
22556if test "x$ac_cv_header_sqlite3_h" = xyes; then :
22557 cat >>confdefs.h <<_ACEOF
22558#define HAVE_SQLITE3_H 1
22559_ACEOF
22560
22561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqlite3_open_v2" >&5
22562$as_echo_n "checking for library containing sqlite3_open_v2... " >&6; }
22563if ${ac_cv_search_sqlite3_open_v2+:} false; then :
22564 $as_echo_n "(cached) " >&6
22565else
22566 ac_func_search_save_LIBS=$LIBS
22567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22568/* end confdefs.h. */
22569
22570/* Override any GCC internal prototype to avoid an error.
22571 Use char because int might match the return type of a GCC
22572 builtin and then its argument prototype would still apply. */
22573#ifdef __cplusplus
22574extern "C"
22575#endif
22576char sqlite3_open_v2 ();
22577int
22578main ()
22579{
22580return sqlite3_open_v2 ();
22581 ;
22582 return 0;
22583}
22584_ACEOF
22585for ac_lib in '' sqlite3; do
22586 if test -z "$ac_lib"; then
22587 ac_res="none required"
22588 else
22589 ac_res=-l$ac_lib
22590 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22591 fi
22592 if ac_fn_cxx_try_link "$LINENO"; then :
22593 ac_cv_search_sqlite3_open_v2=$ac_res
22594fi
22595rm -f core conftest.err conftest.$ac_objext \
22596 conftest$ac_exeext
22597 if ${ac_cv_search_sqlite3_open_v2+:} false; then :
22598 break
22599fi
22600done
22601if ${ac_cv_search_sqlite3_open_v2+:} false; then :
22602
22603else
22604 ac_cv_search_sqlite3_open_v2=no
22605fi
22606rm conftest.$ac_ext
22607LIBS=$ac_func_search_save_LIBS
22608fi
22609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqlite3_open_v2" >&5
22610$as_echo "$ac_cv_search_sqlite3_open_v2" >&6; }
22611ac_res=$ac_cv_search_sqlite3_open_v2
22612if test "$ac_res" != no; then :
22613 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22614
22615fi
22616
22617
22618fi
22619
22620done
22621
22622 LTLIBSQLITE3=$LIBS
22623 LIBS=$cy_save
22624
22625
22626
7eda51e0
JF
22627 for ac_header in ffi.h ffi/ffi.h
22628do :
22629 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22630ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22631if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22632 cat >>confdefs.h <<_ACEOF
22633#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22634_ACEOF
22635 break
b66977f1 22636fi
7eda51e0
JF
22637
22638done
22639
296ee9a6
JF
22640
22641
22642 cy_save=$LIBS
22643 LIBS=
7eda51e0 22644 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
b66977f1 22645
b66977f1 22646
296ee9a6
JF
22647 LIBFFI_CFLAGS
22648 C compiler flags for LIBFFI, overriding pkg-config
22649 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
b66977f1
DWT
22650
22651pkg_failed=no
7eda51e0
JF
22652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
22653$as_echo_n "checking for LIBFFI... " >&6; }
b66977f1 22654
7eda51e0
JF
22655if test -n "$LIBFFI_CFLAGS"; then
22656 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
12833ad8
JF
22657 elif test -n "$PKG_CONFIG"; then
22658 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
22659 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
22660 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
22661 ac_status=$?
22662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22663 test $ac_status = 0; }; then
7eda51e0 22664 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
83c6fec8 22665 test "x$?" != "x0" && pkg_failed=yes
b66977f1
DWT
22666else
22667 pkg_failed=yes
22668fi
12833ad8
JF
22669 else
22670 pkg_failed=untried
b66977f1 22671fi
7eda51e0
JF
22672if test -n "$LIBFFI_LIBS"; then
22673 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
12833ad8
JF
22674 elif test -n "$PKG_CONFIG"; then
22675 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
22676 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
22677 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
22678 ac_status=$?
22679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22680 test $ac_status = 0; }; then
7eda51e0 22681 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
83c6fec8 22682 test "x$?" != "x0" && pkg_failed=yes
b66977f1
DWT
22683else
22684 pkg_failed=yes
22685fi
12833ad8
JF
22686 else
22687 pkg_failed=untried
b66977f1
DWT
22688fi
22689
22690
22691
22692if test $pkg_failed = yes; then
12833ad8
JF
22693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22694$as_echo "no" >&6; }
b66977f1
DWT
22695
22696if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22697 _pkg_short_errors_supported=yes
22698else
22699 _pkg_short_errors_supported=no
22700fi
22701 if test $_pkg_short_errors_supported = yes; then
83c6fec8 22702 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
b66977f1 22703 else
83c6fec8 22704 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
b66977f1
DWT
22705 fi
22706 # Put the nasty error message in config.log where it belongs
7eda51e0 22707 echo "$LIBFFI_PKG_ERRORS" >&5
b66977f1 22708
7eda51e0
JF
22709 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
22710elif test $pkg_failed = untried; then
22711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22712$as_echo "no" >&6; }
22713 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
22714else
22715 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
22716 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
22717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22718$as_echo "yes" >&6; }
b66977f1
DWT
22719
22720
7eda51e0 22721 for element in `$PKG_CONFIG --cflags libffi`; do
b66977f1 22722 haveit=
d70419f1 22723 for x in $CPPFLAGS; do
b66977f1
DWT
22724
22725 acl_save_prefix="$prefix"
22726 prefix="$acl_final_prefix"
22727 acl_save_exec_prefix="$exec_prefix"
22728 exec_prefix="$acl_final_exec_prefix"
22729 eval x=\"$x\"
22730 exec_prefix="$acl_save_exec_prefix"
22731 prefix="$acl_save_prefix"
22732
22733 if test "X$x" = "X$element"; then
22734 haveit=yes
22735 break
22736 fi
22737 done
22738 if test -z "$haveit"; then
d70419f1 22739 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
b66977f1
DWT
22740 fi
22741 done
22742
22743
7eda51e0 22744 for element in `$PKG_CONFIG --libs libffi`; do
b66977f1
DWT
22745 haveit=
22746 for x in $LIBS; do
22747
22748 acl_save_prefix="$prefix"
22749 prefix="$acl_final_prefix"
22750 acl_save_exec_prefix="$exec_prefix"
22751 exec_prefix="$acl_final_exec_prefix"
22752 eval x=\"$x\"
22753 exec_prefix="$acl_save_exec_prefix"
22754 prefix="$acl_save_prefix"
22755
22756 if test "X$x" = "X$element"; then
22757 haveit=yes
22758 break
22759 fi
22760 done
22761 if test -z "$haveit"; then
22762 LIBS="${LIBS}${LIBS:+ }$element"
22763 fi
22764 done
22765
22766
22767fi
22768
7eda51e0
JF
22769else
22770
22771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
22772$as_echo_n "checking for library containing ffi_call... " >&6; }
22773if ${ac_cv_search_ffi_call+:} false; then :
22774 $as_echo_n "(cached) " >&6
22775else
22776 ac_func_search_save_LIBS=$LIBS
22777cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22778/* end confdefs.h. */
22779
22780/* Override any GCC internal prototype to avoid an error.
22781 Use char because int might match the return type of a GCC
22782 builtin and then its argument prototype would still apply. */
22783#ifdef __cplusplus
22784extern "C"
22785#endif
22786char ffi_call ();
22787int
22788main ()
22789{
22790return ffi_call ();
22791 ;
22792 return 0;
22793}
22794_ACEOF
22795for ac_lib in '' ffi; do
22796 if test -z "$ac_lib"; then
22797 ac_res="none required"
22798 else
22799 ac_res=-l$ac_lib
22800 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22801 fi
22802 if ac_fn_cxx_try_link "$LINENO"; then :
22803 ac_cv_search_ffi_call=$ac_res
22804fi
22805rm -f core conftest.err conftest.$ac_objext \
22806 conftest$ac_exeext
22807 if ${ac_cv_search_ffi_call+:} false; then :
22808 break
22809fi
22810done
22811if ${ac_cv_search_ffi_call+:} false; then :
22812
22813else
22814 ac_cv_search_ffi_call=no
22815fi
22816rm conftest.$ac_ext
22817LIBS=$ac_func_search_save_LIBS
22818fi
22819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
22820$as_echo "$ac_cv_search_ffi_call" >&6; }
22821ac_res=$ac_cv_search_ffi_call
22822if test "$ac_res" != no; then :
22823 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22824
22825fi
22826
22827 case $ac_cv_search_ffi_call in #(
22828 no) :
b66977f1
DWT
22829
22830
22831pkg_failed=no
7eda51e0
JF
22832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
22833$as_echo_n "checking for LIBFFI... " >&6; }
b66977f1 22834
7eda51e0
JF
22835if test -n "$LIBFFI_CFLAGS"; then
22836 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
12833ad8
JF
22837 elif test -n "$PKG_CONFIG"; then
22838 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
22839 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
22840 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
22841 ac_status=$?
22842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22843 test $ac_status = 0; }; then
7eda51e0 22844 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
83c6fec8 22845 test "x$?" != "x0" && pkg_failed=yes
b66977f1
DWT
22846else
22847 pkg_failed=yes
22848fi
12833ad8
JF
22849 else
22850 pkg_failed=untried
b66977f1 22851fi
7eda51e0
JF
22852if test -n "$LIBFFI_LIBS"; then
22853 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
12833ad8
JF
22854 elif test -n "$PKG_CONFIG"; then
22855 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
22856 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
22857 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
22858 ac_status=$?
22859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22860 test $ac_status = 0; }; then
7eda51e0 22861 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
83c6fec8 22862 test "x$?" != "x0" && pkg_failed=yes
b66977f1
DWT
22863else
22864 pkg_failed=yes
22865fi
12833ad8
JF
22866 else
22867 pkg_failed=untried
b66977f1
DWT
22868fi
22869
22870
22871
22872if test $pkg_failed = yes; then
12833ad8
JF
22873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22874$as_echo "no" >&6; }
b66977f1
DWT
22875
22876if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22877 _pkg_short_errors_supported=yes
22878else
22879 _pkg_short_errors_supported=no
22880fi
22881 if test $_pkg_short_errors_supported = yes; then
83c6fec8 22882 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
b66977f1 22883 else
83c6fec8 22884 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
b66977f1
DWT
22885 fi
22886 # Put the nasty error message in config.log where it belongs
7eda51e0 22887 echo "$LIBFFI_PKG_ERRORS" >&5
b66977f1 22888
7eda51e0
JF
22889 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
22890elif test $pkg_failed = untried; then
22891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22892$as_echo "no" >&6; }
22893 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
b66977f1 22894else
7eda51e0
JF
22895 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
22896 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
22897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22898$as_echo "yes" >&6; }
b66977f1 22899
b66977f1 22900
7eda51e0 22901 for element in `$PKG_CONFIG --cflags libffi`; do
b66977f1 22902 haveit=
d70419f1 22903 for x in $CPPFLAGS; do
7eda51e0
JF
22904
22905 acl_save_prefix="$prefix"
22906 prefix="$acl_final_prefix"
22907 acl_save_exec_prefix="$exec_prefix"
22908 exec_prefix="$acl_final_exec_prefix"
22909 eval x=\"$x\"
22910 exec_prefix="$acl_save_exec_prefix"
22911 prefix="$acl_save_prefix"
22912
22913 if test "X$x" = "X$element"; then
22914 haveit=yes
22915 break
22916 fi
22917 done
22918 if test -z "$haveit"; then
d70419f1 22919 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7eda51e0
JF
22920 fi
22921 done
22922
22923
7eda51e0
JF
22924 for element in `$PKG_CONFIG --libs libffi`; do
22925 haveit=
22926 for x in $LIBS; do
22927
22928 acl_save_prefix="$prefix"
22929 prefix="$acl_final_prefix"
22930 acl_save_exec_prefix="$exec_prefix"
22931 exec_prefix="$acl_final_exec_prefix"
22932 eval x=\"$x\"
22933 exec_prefix="$acl_save_exec_prefix"
22934 prefix="$acl_save_prefix"
22935
22936 if test "X$x" = "X$element"; then
22937 haveit=yes
22938 break
22939 fi
22940 done
22941 if test -z "$haveit"; then
22942 LIBS="${LIBS}${LIBS:+ }$element"
22943 fi
22944 done
22945
22946
22947fi ;; #(
22948 *) :
22949 ;;
22950esac
22951
22952fi
296ee9a6
JF
22953 LTLIBFFI=$LIBS
22954 LIBS=$cy_save
22955
22956
7eda51e0 22957
def90846
JF
22958
22959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaVM" >&5
22960$as_echo_n "checking for framework JavaVM... " >&6; }
22961if ${ac_cv_framework_JavaVM+:} false; then :
22962 $as_echo_n "(cached) " >&6
22963else
22964
22965 ac_check_framework_save_LIBS=$LIBS
22966 LIBS="-framework JavaVM $LIBS"
22967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22968/* end confdefs.h. */
22969
22970 #include <JavaVM/jni.h>
22971
22972int
22973main ()
22974{
22975JNI_GetCreatedJavaVMs(NULL, 0, NULL);
22976 ;
22977 return 0;
22978}
22979_ACEOF
22980if ac_fn_cxx_try_link "$LINENO"; then :
22981
22982 ac_cv_framework_JavaVM=yes
22983
22984else
22985 ac_cv_framework_JavaVM=no
22986fi
22987rm -f core conftest.err conftest.$ac_objext \
22988 conftest$ac_exeext conftest.$ac_ext
22989 LIBS=$ac_check_framework_save_LIBS
22990
22991fi
22992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaVM" >&5
22993$as_echo "$ac_cv_framework_JavaVM" >&6; }
22994 if test $ac_cv_framework_JavaVM = yes; then :
22995
22996
22997 for element in "-framework JavaVM"; do
22998 haveit=
22999 for x in $LIBS; do
23000
23001 acl_save_prefix="$prefix"
23002 prefix="$acl_final_prefix"
23003 acl_save_exec_prefix="$exec_prefix"
23004 exec_prefix="$acl_final_exec_prefix"
23005 eval x=\"$x\"
23006 exec_prefix="$acl_save_exec_prefix"
23007 prefix="$acl_save_prefix"
23008
23009 if test "X$x" = "X$element"; then
23010 haveit=yes
23011 break
23012 fi
23013 done
23014 if test -z "$haveit"; then
23015 LIBS="${LIBS}${LIBS:+ }$element"
23016 fi
23017 done
23018
23019
23020 CY_JAVA=1
23021
23022
23023
23024else
23025 ac_fn_cxx_check_header_mongrel "$LINENO" "jni.h" "ac_cv_header_jni_h" "$ac_includes_default"
39ed1631
JF
23026if test "x$ac_cv_header_jni_h" = xyes; then :
23027
23028 CY_JAVA=1
23029
23030
23031 cy_save=$LIBS
23032 LIBS=
23033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JNI_GetCreatedJavaVMs" >&5
23034$as_echo_n "checking for library containing JNI_GetCreatedJavaVMs... " >&6; }
23035if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
23036 $as_echo_n "(cached) " >&6
23037else
23038 ac_func_search_save_LIBS=$LIBS
23039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23040/* end confdefs.h. */
23041
23042/* Override any GCC internal prototype to avoid an error.
23043 Use char because int might match the return type of a GCC
23044 builtin and then its argument prototype would still apply. */
23045#ifdef __cplusplus
23046extern "C"
23047#endif
23048char JNI_GetCreatedJavaVMs ();
23049int
23050main ()
23051{
23052return JNI_GetCreatedJavaVMs ();
23053 ;
23054 return 0;
23055}
23056_ACEOF
23057for ac_lib in '' dvm; do
23058 if test -z "$ac_lib"; then
23059 ac_res="none required"
23060 else
23061 ac_res=-l$ac_lib
23062 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23063 fi
23064 if ac_fn_cxx_try_link "$LINENO"; then :
23065 ac_cv_search_JNI_GetCreatedJavaVMs=$ac_res
23066fi
23067rm -f core conftest.err conftest.$ac_objext \
23068 conftest$ac_exeext
23069 if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
23070 break
23071fi
23072done
23073if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
23074
23075else
23076 ac_cv_search_JNI_GetCreatedJavaVMs=no
23077fi
23078rm conftest.$ac_ext
23079LIBS=$ac_func_search_save_LIBS
23080fi
23081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JNI_GetCreatedJavaVMs" >&5
23082$as_echo "$ac_cv_search_JNI_GetCreatedJavaVMs" >&6; }
23083ac_res=$ac_cv_search_JNI_GetCreatedJavaVMs
23084if test "$ac_res" != no; then :
23085 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23086
23087
23088fi
23089
23090 LTJAVA=$LIBS
23091 LIBS=$cy_save
23092
23093
23094
23095else
23096
23097 CY_JAVA=0
23098
23099
23100fi
23101
23102
def90846 23103fi
39ed1631 23104
7eda51e0
JF
23105 ac_ext=mm
23106ac_cpp='$OBJCXXCPP $CPPFLAGS'
23107ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23108ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23109ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
23110
23111
23112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
23113$as_echo_n "checking if we really have Objective C++... " >&6; }
23114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23115/* end confdefs.h. */
23116
23117_ACEOF
23118if ac_fn_objcxx_try_compile "$LINENO"; then :
23119
23120 CY_OBJECTIVEC=1
23121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23122$as_echo "yes" >&6; }
23123
23124else
23125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833ad8 23126$as_echo "no" >&6; }
7eda51e0
JF
23127fi
23128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b66977f1 23129
7eda51e0 23130 if test "x$CY_OBJECTIVEC" = x1; then :
b66977f1 23131
7eda51e0 23132
babf7fe8
JF
23133 cy_save=$LIBS
23134 LIBS=
23135
7eda51e0
JF
23136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
23137$as_echo_n "checking for framework CoreFoundation... " >&6; }
23138if ${ac_cv_framework_CoreFoundation+:} false; then :
b66977f1
DWT
23139 $as_echo_n "(cached) " >&6
23140else
23141
23142 ac_check_framework_save_LIBS=$LIBS
7eda51e0 23143 LIBS="-framework CoreFoundation $LIBS"
b66977f1
DWT
23144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23145/* end confdefs.h. */
23146
7eda51e0 23147 #include <CoreFoundation/CFBase.h>
b66977f1
DWT
23148
23149int
23150main ()
23151{
7eda51e0 23152CFAllocatorGetDefault();
b66977f1
DWT
23153 ;
23154 return 0;
23155}
23156_ACEOF
7eda51e0 23157if ac_fn_objcxx_try_link "$LINENO"; then :
b66977f1 23158
7eda51e0 23159 ac_cv_framework_CoreFoundation=yes
b66977f1
DWT
23160
23161else
7eda51e0 23162 ac_cv_framework_CoreFoundation=no
b66977f1
DWT
23163fi
23164rm -f core conftest.err conftest.$ac_objext \
23165 conftest$ac_exeext conftest.$ac_ext
23166 LIBS=$ac_check_framework_save_LIBS
23167
23168fi
7eda51e0
JF
23169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
23170$as_echo "$ac_cv_framework_CoreFoundation" >&6; }
23171 if test $ac_cv_framework_CoreFoundation = yes; then :
b66977f1
DWT
23172
23173
7eda51e0 23174 for element in "-framework CoreFoundation"; do
b66977f1
DWT
23175 haveit=
23176 for x in $LIBS; do
23177
23178 acl_save_prefix="$prefix"
23179 prefix="$acl_final_prefix"
23180 acl_save_exec_prefix="$exec_prefix"
23181 exec_prefix="$acl_final_exec_prefix"
23182 eval x=\"$x\"
23183 exec_prefix="$acl_save_exec_prefix"
23184 prefix="$acl_save_prefix"
23185
23186 if test "X$x" = "X$element"; then
23187 haveit=yes
23188 break
23189 fi
23190 done
23191 if test -z "$haveit"; then
23192 LIBS="${LIBS}${LIBS:+ }$element"
23193 fi
23194 done
23195
66170b30 23196
66170b30
JF
23197
23198
b66977f1 23199
b66977f1 23200
7eda51e0
JF
23201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
23202$as_echo_n "checking for framework Foundation... " >&6; }
23203if ${ac_cv_framework_Foundation+:} false; then :
23204 $as_echo_n "(cached) " >&6
b66977f1 23205else
b66977f1 23206
7eda51e0
JF
23207 ac_check_framework_save_LIBS=$LIBS
23208 LIBS="-framework Foundation $LIBS"
23209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23210/* end confdefs.h. */
66170b30 23211
7eda51e0 23212 #include <Foundation/NSObject.h>
b66977f1 23213
7eda51e0
JF
23214int
23215main ()
23216{
23217[[NSObject alloc] init];
23218 ;
23219 return 0;
23220}
23221_ACEOF
23222if ac_fn_objcxx_try_link "$LINENO"; then :
b66977f1 23223
7eda51e0 23224 ac_cv_framework_Foundation=yes
b66977f1 23225
7eda51e0
JF
23226else
23227 ac_cv_framework_Foundation=no
23228fi
23229rm -f core conftest.err conftest.$ac_objext \
23230 conftest$ac_exeext conftest.$ac_ext
23231 LIBS=$ac_check_framework_save_LIBS
23232
23233fi
23234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
23235$as_echo "$ac_cv_framework_Foundation" >&6; }
23236 if test $ac_cv_framework_Foundation = yes; then :
b66977f1
DWT
23237
23238
7eda51e0 23239 for element in "-framework Foundation"; do
b66977f1
DWT
23240 haveit=
23241 for x in $LIBS; do
23242
23243 acl_save_prefix="$prefix"
23244 prefix="$acl_final_prefix"
23245 acl_save_exec_prefix="$exec_prefix"
23246 exec_prefix="$acl_final_exec_prefix"
23247 eval x=\"$x\"
23248 exec_prefix="$acl_save_exec_prefix"
23249 prefix="$acl_save_prefix"
23250
23251 if test "X$x" = "X$element"; then
23252 haveit=yes
23253 break
23254 fi
23255 done
23256 if test -z "$haveit"; then
23257 LIBS="${LIBS}${LIBS:+ }$element"
23258 fi
23259 done
23260
7eda51e0
JF
23261 cat >>confdefs.h <<_ACEOF
23262#define HAVE_FRAMEWORK_FOUNDATION 1
23263_ACEOF
23264
b66977f1 23265
7eda51e0 23266fi
b66977f1
DWT
23267
23268
7eda51e0 23269else
b66977f1 23270
b66977f1 23271
7eda51e0
JF
23272 for ac_prog in gnustep-config
23273do
23274 # Extract the first word of "$ac_prog", so it can be a program name with args.
23275set dummy $ac_prog; ac_word=$2
23276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23277$as_echo_n "checking for $ac_word... " >&6; }
23278if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then :
23279 $as_echo_n "(cached) " >&6
b66977f1 23280else
7eda51e0
JF
23281 if test -n "$GNUSTEP_CONFIG"; then
23282 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
b66977f1 23283else
7eda51e0
JF
23284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23285for as_dir in $PATH
23286do
23287 IFS=$as_save_IFS
23288 test -z "$as_dir" && as_dir=.
23289 for ac_exec_ext in '' $ac_executable_extensions; do
23290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23291 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
23292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23293 break 2
23294 fi
23295done
23296 done
23297IFS=$as_save_IFS
b66977f1 23298
b66977f1 23299fi
b66977f1 23300fi
7eda51e0
JF
23301GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
23302if test -n "$GNUSTEP_CONFIG"; then
23303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
23304$as_echo "$GNUSTEP_CONFIG" >&6; }
b66977f1 23305else
7eda51e0 23306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833ad8 23307$as_echo "no" >&6; }
b66977f1 23308fi
66170b30 23309
66170b30 23310
7eda51e0
JF
23311 test -n "$GNUSTEP_CONFIG" && break
23312done
b66977f1 23313
b66977f1 23314
7eda51e0 23315 if test "x$GNUSTEP_CONFIG" != x; then :
b66977f1 23316
b66977f1
DWT
23317
23318
7eda51e0 23319 for element in `$GNUSTEP_CONFIG --objc-flags`; do
b66977f1 23320 haveit=
7eda51e0 23321 for x in $OBJCXXFLAGS; do
b66977f1
DWT
23322
23323 acl_save_prefix="$prefix"
23324 prefix="$acl_final_prefix"
23325 acl_save_exec_prefix="$exec_prefix"
23326 exec_prefix="$acl_final_exec_prefix"
23327 eval x=\"$x\"
23328 exec_prefix="$acl_save_exec_prefix"
23329 prefix="$acl_save_prefix"
23330
23331 if test "X$x" = "X$element"; then
23332 haveit=yes
23333 break
23334 fi
23335 done
babf7fe8
JF
23336 if test -z "$haveit"; then
23337 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
23338 fi
23339 done
a667869d 23340
a667869d 23341
babf7fe8 23342 for element in `$GNUSTEP_CONFIG --base-libs`; do
632b71ea 23343 haveit=
babf7fe8 23344 for x in $LIBS; do
a667869d 23345
632b71ea
DWT
23346 acl_save_prefix="$prefix"
23347 prefix="$acl_final_prefix"
23348 acl_save_exec_prefix="$exec_prefix"
23349 exec_prefix="$acl_final_exec_prefix"
23350 eval x=\"$x\"
23351 exec_prefix="$acl_save_exec_prefix"
23352 prefix="$acl_save_prefix"
23353
23354 if test "X$x" = "X$element"; then
23355 haveit=yes
23356 break
23357 fi
23358 done
23359 if test -z "$haveit"; then
babf7fe8 23360 LIBS="${LIBS}${LIBS:+ }$element"
632b71ea
DWT
23361 fi
23362 done
23363
5053a6d1 23364
babf7fe8
JF
23365else
23366 CY_OBJECTIVEC=0
23367
23368fi
23369
23370fi
23371 LTOBJECTIVEC=$LIBS
23372 LIBS=$cy_save
23373
23374
23375
23376fi
23377
23378 ac_ext=cpp
23379ac_cpp='$CXXCPP $CPPFLAGS'
23380ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23381ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23382ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23383
23384 ;; #(
23385 *) :
23386 ;;
23387esac
23388
39ed1631
JF
23389 if test "x$CY_JAVA" = x1; then
23390 CY_JAVA_TRUE=
23391 CY_JAVA_FALSE='#'
23392else
23393 CY_JAVA_TRUE='#'
23394 CY_JAVA_FALSE=
23395fi
23396
babf7fe8
JF
23397 if test "x$CY_OBJECTIVEC" = x1; then
23398 CY_OBJECTIVEC_TRUE=
23399 CY_OBJECTIVEC_FALSE='#'
23400else
23401 CY_OBJECTIVEC_TRUE='#'
23402 CY_OBJECTIVEC_FALSE=
23403fi
23404
23405
23406
8d20f0f1
JF
23407# Check whether --with-libclang was given.
23408if test "${with_libclang+set}" = set; then :
23409 withval=$with_libclang;
23410else
23411 with_libclang=no
23412fi
23413
23414
23415if test "x$with_libclang" != "xno"; then :
23416
23417 CY_LIBCLANG="$with_libclang"
23418
23419fi
23420 if test "x$with_libclang" != "xno"; then
23421 CY_PRELINK_TRUE=
23422 CY_PRELINK_FALSE='#'
23423else
23424 CY_PRELINK_TRUE='#'
23425 CY_PRELINK_FALSE=
23426fi
23427
23428
23429
babf7fe8
JF
23430 cy_save=$LIBS
23431 LIBS=
23432
23433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
23434$as_echo_n "checking for a readline compatible library... " >&6; }
23435if ${ax_cv_lib_readline+:} false; then :
5053a6d1 23436 $as_echo_n "(cached) " >&6
a667869d 23437else
632b71ea 23438
babf7fe8
JF
23439 ORIG_LIBS="$LIBS"
23440 for readline_lib in readline edit editline; do
23441 for termcap_lib in "" termcap curses ncurses; do
23442 if test -z "$termcap_lib"; then
23443 TRY_LIB="-l$readline_lib"
23444 else
23445 TRY_LIB="-l$readline_lib -l$termcap_lib"
23446 fi
23447 LIBS="$ORIG_LIBS $TRY_LIB"
23448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053a6d1 23449/* end confdefs.h. */
632b71ea 23450
babf7fe8
JF
23451/* Override any GCC internal prototype to avoid an error.
23452 Use char because int might match the return type of a GCC
23453 builtin and then its argument prototype would still apply. */
23454#ifdef __cplusplus
23455extern "C"
23456#endif
23457char readline ();
5053a6d1
DWT
23458int
23459main ()
23460{
babf7fe8 23461return readline ();
5053a6d1
DWT
23462 ;
23463 return 0;
23464}
23465_ACEOF
babf7fe8
JF
23466if ac_fn_cxx_try_link "$LINENO"; then :
23467 ax_cv_lib_readline="$TRY_LIB"
5053a6d1
DWT
23468fi
23469rm -f core conftest.err conftest.$ac_objext \
23470 conftest$ac_exeext conftest.$ac_ext
babf7fe8
JF
23471 if test -n "$ax_cv_lib_readline"; then
23472 break
23473 fi
23474 done
23475 if test -n "$ax_cv_lib_readline"; then
23476 break
23477 fi
23478 done
23479 if test -z "$ax_cv_lib_readline"; then
23480 ax_cv_lib_readline="no"
23481 fi
23482 LIBS="$ORIG_LIBS"
23483
23484fi
23485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
23486$as_echo "$ax_cv_lib_readline" >&6; }
23487
23488 if test "$ax_cv_lib_readline" != "no"; then
23489 LIBS="$LIBS $ax_cv_lib_readline"
23490
23491$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
23492
23493 for ac_header in readline.h readline/readline.h
23494do :
23495 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23496ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23497if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23498 cat >>confdefs.h <<_ACEOF
23499#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23500_ACEOF
23501
23502fi
23503
23504done
23505
23506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
23507$as_echo_n "checking whether readline supports history... " >&6; }
23508if ${ax_cv_lib_readline_history+:} false; then :
23509 $as_echo_n "(cached) " >&6
23510else
23511
23512 ax_cv_lib_readline_history="no"
7eda51e0
JF
23513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23514/* end confdefs.h. */
5053a6d1 23515
babf7fe8
JF
23516/* Override any GCC internal prototype to avoid an error.
23517 Use char because int might match the return type of a GCC
23518 builtin and then its argument prototype would still apply. */
23519#ifdef __cplusplus
23520extern "C"
23521#endif
23522char add_history ();
058f1bc8
DWT
23523int
23524main ()
23525{
babf7fe8 23526return add_history ();
058f1bc8
DWT
23527 ;
23528 return 0;
23529}
23530_ACEOF
babf7fe8
JF
23531if ac_fn_cxx_try_link "$LINENO"; then :
23532 ax_cv_lib_readline_history="yes"
058f1bc8
DWT
23533fi
23534rm -f core conftest.err conftest.$ac_objext \
23535 conftest$ac_exeext conftest.$ac_ext
a667869d 23536
a667869d 23537fi
babf7fe8
JF
23538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
23539$as_echo "$ax_cv_lib_readline_history" >&6; }
23540 if test "$ax_cv_lib_readline_history" = "yes"; then
058f1bc8 23541
babf7fe8 23542$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
058f1bc8 23543
babf7fe8
JF
23544 for ac_header in history.h readline/history.h
23545do :
23546 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23547ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23548if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23549 cat >>confdefs.h <<_ACEOF
23550#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7eda51e0 23551_ACEOF
babf7fe8 23552
7eda51e0 23553fi
058f1bc8 23554
babf7fe8 23555done
058f1bc8 23556
babf7fe8 23557 fi
7eda51e0 23558 fi
058f1bc8 23559
babf7fe8
JF
23560 LTLIBREADLINE=$LIBS
23561 LIBS=$cy_save
058f1bc8 23562
058f1bc8 23563
babf7fe8
JF
23564case $ax_cv_lib_readline in #(
23565 no) :
23566 as_fn_error $? "missing \"libreadline\"" "$LINENO" 5 ;; #(
23567 *) :
23568 ;;
23569esac
058f1bc8
DWT
23570
23571
babf7fe8
JF
23572 cy_save=$LIBS
23573 LIBS=
23574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cur_term" >&5
23575$as_echo_n "checking for library containing cur_term... " >&6; }
23576if ${ac_cv_search_cur_term+:} false; then :
7eda51e0
JF
23577 $as_echo_n "(cached) " >&6
23578else
babf7fe8
JF
23579 ac_func_search_save_LIBS=$LIBS
23580cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7eda51e0
JF
23581/* end confdefs.h. */
23582
babf7fe8
JF
23583/* Override any GCC internal prototype to avoid an error.
23584 Use char because int might match the return type of a GCC
23585 builtin and then its argument prototype would still apply. */
7eda51e0 23586#ifdef __cplusplus
babf7fe8 23587extern "C"
7eda51e0 23588#endif
babf7fe8 23589char cur_term ();
7eda51e0
JF
23590int
23591main ()
23592{
babf7fe8 23593return cur_term ();
7eda51e0
JF
23594 ;
23595 return 0;
23596}
23597_ACEOF
a93f15c0 23598for ac_lib in '' termcap ncurses; do
babf7fe8
JF
23599 if test -z "$ac_lib"; then
23600 ac_res="none required"
23601 else
23602 ac_res=-l$ac_lib
23603 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23604 fi
23605 if ac_fn_cxx_try_link "$LINENO"; then :
23606 ac_cv_search_cur_term=$ac_res
7eda51e0 23607fi
babf7fe8
JF
23608rm -f core conftest.err conftest.$ac_objext \
23609 conftest$ac_exeext
23610 if ${ac_cv_search_cur_term+:} false; then :
23611 break
7eda51e0 23612fi
babf7fe8
JF
23613done
23614if ${ac_cv_search_cur_term+:} false; then :
058f1bc8 23615
babf7fe8
JF
23616else
23617 ac_cv_search_cur_term=no
23618fi
23619rm conftest.$ac_ext
23620LIBS=$ac_func_search_save_LIBS
23621fi
23622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cur_term" >&5
23623$as_echo "$ac_cv_search_cur_term" >&6; }
23624ac_res=$ac_cv_search_cur_term
23625if test "$ac_res" != no; then :
23626 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
058f1bc8 23627
babf7fe8 23628fi
058f1bc8 23629
babf7fe8
JF
23630 LTLIBTERMCAP=$LIBS
23631 LIBS=$cy_save
058f1bc8 23632
058f1bc8 23633
66170b30
JF
23634
23635
3615a2f7
JF
23636
23637
9777bd50
JF
23638SO=$acl_shlibext
23639
e1cce270 23640
a243b558
JF
23641ac_config_files="$ac_config_files Makefile"
23642
9c60689e
DWT
23643cat >confcache <<\_ACEOF
23644# This file is a shell script that caches the results of configure
23645# tests run on this system so they can be shared between configure
23646# scripts and configure runs, see configure's option --config-cache.
23647# It is not useful on other systems. If it contains results you don't
23648# want to keep, you may remove or edit it.
23649#
23650# config.status only pays attention to the cache file if you give it
23651# the --recheck option to rerun configure.
23652#
23653# `ac_cv_env_foo' variables (set or unset) will be overridden when
23654# loading this file, other *unset* `ac_cv_foo' will be assigned the
23655# following values.
23656
23657_ACEOF
23658
23659# The following way of writing the cache mishandles newlines in values,
23660# but we know of no workaround that is simple, portable, and efficient.
23661# So, we kill variables containing newlines.
23662# Ultrix sh set writes to stderr and can't be redirected directly,
23663# and sets the high bit in the cache file unless we assign to the vars.
23664(
23665 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23666 eval ac_val=\$$ac_var
23667 case $ac_val in #(
23668 *${as_nl}*)
23669 case $ac_var in #(
23670 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23671$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23672 esac
23673 case $ac_var in #(
23674 _ | IFS | as_nl) ;; #(
23675 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23676 *) { eval $ac_var=; unset $ac_var;} ;;
23677 esac ;;
23678 esac
23679 done
23680
23681 (set) 2>&1 |
23682 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23683 *${as_nl}ac_space=\ *)
23684 # `set' does not quote correctly, so add quotes: double-quote
23685 # substitution turns \\\\ into \\, and sed turns \\ into \.
23686 sed -n \
23687 "s/'/'\\\\''/g;
23688 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23689 ;; #(
23690 *)
23691 # `set' quotes correctly as required by POSIX, so do not add quotes.
23692 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23693 ;;
23694 esac |
23695 sort
23696) |
23697 sed '
23698 /^ac_cv_env_/b end
23699 t clear
23700 :clear
23701 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23702 t end
23703 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23704 :end' >>confcache
23705if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23706 if test -w "$cache_file"; then
ee134472 23707 if test "x$cache_file" != "x/dev/null"; then
9c60689e
DWT
23708 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23709$as_echo "$as_me: updating cache $cache_file" >&6;}
ee134472
JF
23710 if test ! -f "$cache_file" || test -h "$cache_file"; then
23711 cat confcache >"$cache_file"
23712 else
23713 case $cache_file in #(
23714 */* | ?:*)
23715 mv -f confcache "$cache_file"$$ &&
23716 mv -f "$cache_file"$$ "$cache_file" ;; #(
23717 *)
23718 mv -f confcache "$cache_file" ;;
23719 esac
23720 fi
23721 fi
9c60689e
DWT
23722 else
23723 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23724$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23725 fi
23726fi
23727rm -f confcache
23728
23729test "x$prefix" = xNONE && prefix=$ac_default_prefix
23730# Let make expand exec_prefix.
23731test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23732
296ee9a6 23733DEFS=-DHAVE_CONFIG_H
9c60689e
DWT
23734
23735ac_libobjs=
23736ac_ltlibobjs=
12833ad8 23737U=
9c60689e
DWT
23738for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23739 # 1. Remove the extension, and $U if already installed.
23740 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23741 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
23742 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23743 # will be set to the directory where LIBOBJS objects are built.
23744 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23745 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
23746done
23747LIBOBJS=$ac_libobjs
23748
23749LTLIBOBJS=$ac_ltlibobjs
23750
23751
66170b30
JF
23752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
23753$as_echo_n "checking that generated files are newer than configure... " >&6; }
23754 if test -n "$am_sleep_pid"; then
23755 # Hide warnings about reused PIDs.
23756 wait $am_sleep_pid 2>/dev/null
23757 fi
23758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
23759$as_echo "done" >&6; }
23760 if test -n "$EXEEXT"; then
23761 am__EXEEXT_TRUE=
23762 am__EXEEXT_FALSE='#'
23763else
23764 am__EXEEXT_TRUE='#'
23765 am__EXEEXT_FALSE=
23766fi
23767
babf7fe8
JF
23768if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23769 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
23770Usually this means the macro was only invoked conditionally." "$LINENO" 5
23771fi
66170b30
JF
23772if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23773 as_fn_error $? "conditional \"AMDEP\" was never defined.
23774Usually this means the macro was only invoked conditionally." "$LINENO" 5
23775fi
a93f15c0
JF
23776if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23777 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23778Usually this means the macro was only invoked conditionally." "$LINENO" 5
23779fi
66170b30
JF
23780if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23781 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
23782Usually this means the macro was only invoked conditionally." "$LINENO" 5
23783fi
23784if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then
23785 as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined.
23786Usually this means the macro was only invoked conditionally." "$LINENO" 5
23787fi
8d20f0f1
JF
23788if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23789 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23790Usually this means the macro was only invoked conditionally." "$LINENO" 5
23791fi
23792if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23793 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
23794Usually this means the macro was only invoked conditionally." "$LINENO" 5
23795fi
a93f15c0
JF
23796if test -z "${CY_CONSOLE_TRUE}" && test -z "${CY_CONSOLE_FALSE}"; then
23797 as_fn_error $? "conditional \"CY_CONSOLE\" was never defined.
babf7fe8
JF
23798Usually this means the macro was only invoked conditionally." "$LINENO" 5
23799fi
a4287117
JF
23800if test -z "${CY_ATTACH_TRUE}" && test -z "${CY_ATTACH_FALSE}"; then
23801 as_fn_error $? "conditional \"CY_ATTACH\" was never defined.
23802Usually this means the macro was only invoked conditionally." "$LINENO" 5
23803fi
a243b558
JF
23804if test -z "${CY_EXECUTE_TRUE}" && test -z "${CY_EXECUTE_FALSE}"; then
23805 as_fn_error $? "conditional \"CY_EXECUTE\" was never defined.
23806Usually this means the macro was only invoked conditionally." "$LINENO" 5
23807fi
39ed1631
JF
23808if test -z "${CY_JAVA_TRUE}" && test -z "${CY_JAVA_FALSE}"; then
23809 as_fn_error $? "conditional \"CY_JAVA\" was never defined.
23810Usually this means the macro was only invoked conditionally." "$LINENO" 5
23811fi
a243b558
JF
23812if test -z "${CY_OBJECTIVEC_TRUE}" && test -z "${CY_OBJECTIVEC_FALSE}"; then
23813 as_fn_error $? "conditional \"CY_OBJECTIVEC\" was never defined.
23814Usually this means the macro was only invoked conditionally." "$LINENO" 5
23815fi
8d20f0f1
JF
23816if test -z "${CY_PRELINK_TRUE}" && test -z "${CY_PRELINK_FALSE}"; then
23817 as_fn_error $? "conditional \"CY_PRELINK\" was never defined.
23818Usually this means the macro was only invoked conditionally." "$LINENO" 5
23819fi
9c60689e 23820
ee134472 23821: "${CONFIG_STATUS=./config.status}"
9c60689e
DWT
23822ac_write_fail=0
23823ac_clean_files_save=$ac_clean_files
23824ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23825{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23826$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23827as_write_fail=0
23828cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23829#! $SHELL
23830# Generated by $as_me.
23831# Run this file to recreate the current configuration.
23832# Compiler output produced by configure, useful for debugging
23833# configure, is in config.log if it exists.
23834
23835debug=false
23836ac_cs_recheck=false
23837ac_cs_silent=false
23838
23839SHELL=\${CONFIG_SHELL-$SHELL}
23840export SHELL
23841_ASEOF
23842cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23843## -------------------- ##
23844## M4sh Initialization. ##
23845## -------------------- ##
23846
23847# Be more Bourne compatible
23848DUALCASE=1; export DUALCASE # for MKS sh
23849if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23850 emulate sh
23851 NULLCMD=:
23852 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23853 # is contrary to our usage. Disable this feature.
23854 alias -g '${1+"$@"}'='"$@"'
23855 setopt NO_GLOB_SUBST
23856else
23857 case `(set -o) 2>/dev/null` in #(
23858 *posix*) :
23859 set -o posix ;; #(
23860 *) :
23861 ;;
23862esac
23863fi
23864
23865
23866as_nl='
23867'
23868export as_nl
23869# Printing a long string crashes Solaris 7 /usr/bin/printf.
23870as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23871as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23872as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23873# Prefer a ksh shell builtin over an external printf program on Solaris,
23874# but without wasting forks for bash or zsh.
23875if test -z "$BASH_VERSION$ZSH_VERSION" \
23876 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
23877 as_echo='print -r --'
23878 as_echo_n='print -rn --'
23879elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23880 as_echo='printf %s\n'
23881 as_echo_n='printf %s'
23882else
23883 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23884 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
23885 as_echo_n='/usr/ucb/echo -n'
23886 else
23887 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23888 as_echo_n_body='eval
23889 arg=$1;
23890 case $arg in #(
23891 *"$as_nl"*)
23892 expr "X$arg" : "X\\(.*\\)$as_nl";
23893 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23894 esac;
23895 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
23896 '
23897 export as_echo_n_body
23898 as_echo_n='sh -c $as_echo_n_body as_echo'
23899 fi
23900 export as_echo_body
23901 as_echo='sh -c $as_echo_body as_echo'
23902fi
23903
23904# The user is always right.
23905if test "${PATH_SEPARATOR+set}" != set; then
23906 PATH_SEPARATOR=:
23907 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23908 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23909 PATH_SEPARATOR=';'
23910 }
23911fi
23912
23913
23914# IFS
23915# We need space, tab and new line, in precisely that order. Quoting is
23916# there to prevent editors from complaining about space-tab.
23917# (If _AS_PATH_WALK were called with IFS unset, it would disable word
23918# splitting by setting IFS to empty value.)
23919IFS=" "" $as_nl"
23920
23921# Find who we are. Look in the path if we contain no directory separator.
ee134472 23922as_myself=
9c60689e
DWT
23923case $0 in #((
23924 *[\\/]* ) as_myself=$0 ;;
23925 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23926for as_dir in $PATH
23927do
23928 IFS=$as_save_IFS
23929 test -z "$as_dir" && as_dir=.
23930 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23931 done
23932IFS=$as_save_IFS
23933
23934 ;;
23935esac
23936# We did not find ourselves, most probably we were run as `sh COMMAND'
23937# in which case we are not to be found in the path.
23938if test "x$as_myself" = x; then
23939 as_myself=$0
23940fi
23941if test ! -f "$as_myself"; then
23942 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23943 exit 1
23944fi
23945
23946# Unset variables that we do not need and which cause bugs (e.g. in
23947# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
23948# suppresses any "Segmentation fault" message there. '((' could
23949# trigger a bug in pdksh 5.2.14.
23950for as_var in BASH_ENV ENV MAIL MAILPATH
23951do eval test x\${$as_var+set} = xset \
23952 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23953done
23954PS1='$ '
23955PS2='> '
23956PS4='+ '
23957
23958# NLS nuisances.
23959LC_ALL=C
23960export LC_ALL
23961LANGUAGE=C
23962export LANGUAGE
23963
23964# CDPATH.
23965(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23966
23967
12833ad8
JF
23968# as_fn_error STATUS ERROR [LINENO LOG_FD]
23969# ----------------------------------------
9c60689e
DWT
23970# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23971# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12833ad8 23972# script with STATUS, using 1 if that was 0.
9c60689e
DWT
23973as_fn_error ()
23974{
12833ad8
JF
23975 as_status=$1; test $as_status -eq 0 && as_status=1
23976 if test "$4"; then
23977 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23978 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9c60689e 23979 fi
12833ad8 23980 $as_echo "$as_me: error: $2" >&2
9c60689e
DWT
23981 as_fn_exit $as_status
23982} # as_fn_error
23983
23984
23985# as_fn_set_status STATUS
23986# -----------------------
23987# Set $? to STATUS, without forking.
23988as_fn_set_status ()
23989{
23990 return $1
23991} # as_fn_set_status
23992
23993# as_fn_exit STATUS
23994# -----------------
23995# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23996as_fn_exit ()
23997{
23998 set +e
23999 as_fn_set_status $1
24000 exit $1
24001} # as_fn_exit
24002
24003# as_fn_unset VAR
24004# ---------------
24005# Portably unset VAR.
24006as_fn_unset ()
24007{
24008 { eval $1=; unset $1;}
24009}
24010as_unset=as_fn_unset
24011# as_fn_append VAR VALUE
24012# ----------------------
24013# Append the text in VALUE to the end of the definition contained in VAR. Take
24014# advantage of any shell optimizations that allow amortized linear growth over
24015# repeated appends, instead of the typical quadratic growth present in naive
24016# implementations.
24017if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24018 eval 'as_fn_append ()
24019 {
24020 eval $1+=\$2
24021 }'
24022else
24023 as_fn_append ()
24024 {
24025 eval $1=\$$1\$2
24026 }
24027fi # as_fn_append
24028
24029# as_fn_arith ARG...
24030# ------------------
24031# Perform arithmetic evaluation on the ARGs, and store the result in the
24032# global $as_val. Take advantage of shells that can avoid forks. The arguments
24033# must be portable across $(()) and expr.
24034if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24035 eval 'as_fn_arith ()
24036 {
24037 as_val=$(( $* ))
24038 }'
24039else
24040 as_fn_arith ()
24041 {
24042 as_val=`expr "$@" || test $? -eq 1`
24043 }
24044fi # as_fn_arith
24045
24046
24047if expr a : '\(a\)' >/dev/null 2>&1 &&
24048 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24049 as_expr=expr
24050else
24051 as_expr=false
24052fi
24053
24054if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24055 as_basename=basename
24056else
24057 as_basename=false
24058fi
24059
24060if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24061 as_dirname=dirname
24062else
24063 as_dirname=false
24064fi
24065
24066as_me=`$as_basename -- "$0" ||
24067$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24068 X"$0" : 'X\(//\)$' \| \
24069 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24070$as_echo X/"$0" |
24071 sed '/^.*\/\([^/][^/]*\)\/*$/{
24072 s//\1/
24073 q
24074 }
24075 /^X\/\(\/\/\)$/{
24076 s//\1/
24077 q
24078 }
24079 /^X\/\(\/\).*/{
24080 s//\1/
24081 q
24082 }
24083 s/.*/./; q'`
24084
24085# Avoid depending upon Character Ranges.
24086as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24087as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24088as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24089as_cr_digits='0123456789'
24090as_cr_alnum=$as_cr_Letters$as_cr_digits
24091
24092ECHO_C= ECHO_N= ECHO_T=
24093case `echo -n x` in #(((((
24094-n*)
24095 case `echo 'xy\c'` in
24096 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24097 xy) ECHO_C='\c';;
24098 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
24099 ECHO_T=' ';;
24100 esac;;
24101*)
24102 ECHO_N='-n';;
24103esac
24104
24105rm -f conf$$ conf$$.exe conf$$.file
24106if test -d conf$$.dir; then
24107 rm -f conf$$.dir/conf$$.file
24108else
24109 rm -f conf$$.dir
24110 mkdir conf$$.dir 2>/dev/null
24111fi
24112if (echo >conf$$.file) 2>/dev/null; then
24113 if ln -s conf$$.file conf$$ 2>/dev/null; then
24114 as_ln_s='ln -s'
24115 # ... but there are two gotchas:
24116 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24117 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53ba6704 24118 # In both cases, we have to default to `cp -pR'.
9c60689e 24119 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53ba6704 24120 as_ln_s='cp -pR'
9c60689e
DWT
24121 elif ln conf$$.file conf$$ 2>/dev/null; then
24122 as_ln_s=ln
24123 else
53ba6704 24124 as_ln_s='cp -pR'
9c60689e
DWT
24125 fi
24126else
53ba6704 24127 as_ln_s='cp -pR'
9c60689e
DWT
24128fi
24129rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24130rmdir conf$$.dir 2>/dev/null
24131
24132
24133# as_fn_mkdir_p
24134# -------------
24135# Create "$as_dir" as a directory, including parents if necessary.
24136as_fn_mkdir_p ()
24137{
24138
24139 case $as_dir in #(
24140 -*) as_dir=./$as_dir;;
24141 esac
24142 test -d "$as_dir" || eval $as_mkdir_p || {
24143 as_dirs=
24144 while :; do
24145 case $as_dir in #(
24146 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24147 *) as_qdir=$as_dir;;
24148 esac
24149 as_dirs="'$as_qdir' $as_dirs"
24150 as_dir=`$as_dirname -- "$as_dir" ||
24151$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24152 X"$as_dir" : 'X\(//\)[^/]' \| \
24153 X"$as_dir" : 'X\(//\)$' \| \
24154 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24155$as_echo X"$as_dir" |
24156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24157 s//\1/
24158 q
24159 }
24160 /^X\(\/\/\)[^/].*/{
24161 s//\1/
24162 q
24163 }
24164 /^X\(\/\/\)$/{
24165 s//\1/
24166 q
24167 }
24168 /^X\(\/\).*/{
24169 s//\1/
24170 q
24171 }
24172 s/.*/./; q'`
24173 test -d "$as_dir" && break
24174 done
24175 test -z "$as_dirs" || eval "mkdir $as_dirs"
12833ad8 24176 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9c60689e
DWT
24177
24178
24179} # as_fn_mkdir_p
24180if mkdir -p . 2>/dev/null; then
24181 as_mkdir_p='mkdir -p "$as_dir"'
24182else
24183 test -d ./-p && rmdir ./-p
24184 as_mkdir_p=false
24185fi
24186
53ba6704
JF
24187
24188# as_fn_executable_p FILE
24189# -----------------------
24190# Test if FILE is an executable regular file.
24191as_fn_executable_p ()
24192{
24193 test -f "$1" && test -x "$1"
24194} # as_fn_executable_p
24195as_test_x='test -x'
24196as_executable_p=as_fn_executable_p
9c60689e
DWT
24197
24198# Sed expression to map a string onto a valid CPP name.
24199as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24200
24201# Sed expression to map a string onto a valid variable name.
24202as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24203
24204
24205exec 6>&1
24206## ----------------------------------- ##
24207## Main body of $CONFIG_STATUS script. ##
24208## ----------------------------------- ##
24209_ASEOF
24210test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
24211
24212cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24213# Save the log message, to keep $0 and so on meaningful, and to
24214# report actual input values of CONFIG_FILES etc. instead of their
24215# values after options handling.
24216ac_log="
24217This file was extended by Cycript $as_me 0.9, which was
53ba6704 24218generated by GNU Autoconf 2.69. Invocation command line was
9c60689e
DWT
24219
24220 CONFIG_FILES = $CONFIG_FILES
24221 CONFIG_HEADERS = $CONFIG_HEADERS
24222 CONFIG_LINKS = $CONFIG_LINKS
24223 CONFIG_COMMANDS = $CONFIG_COMMANDS
24224 $ $0 $@
24225
24226on `(hostname || uname -n) 2>/dev/null | sed 1q`
24227"
24228
24229_ACEOF
24230
24231case $ac_config_files in *"
24232"*) set x $ac_config_files; shift; ac_config_files=$*;;
24233esac
24234
296ee9a6
JF
24235case $ac_config_headers in *"
24236"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24237esac
9c60689e
DWT
24238
24239
24240cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24241# Files that config.status was made for.
24242config_files="$ac_config_files"
296ee9a6 24243config_headers="$ac_config_headers"
9c60689e
DWT
24244config_commands="$ac_config_commands"
24245
24246_ACEOF
24247
24248cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24249ac_cs_usage="\
24250\`$as_me' instantiates files and other configuration actions
24251from templates according to the current configuration. Unless the files
24252and actions are specified as TAGs, all are instantiated by default.
24253
24254Usage: $0 [OPTION]... [TAG]...
24255
24256 -h, --help print this help, then exit
24257 -V, --version print version number and configuration settings, then exit
24258 --config print configuration, then exit
24259 -q, --quiet, --silent
24260 do not print progress messages
24261 -d, --debug don't remove temporary files
24262 --recheck update $as_me by reconfiguring in the same conditions
24263 --file=FILE[:TEMPLATE]
24264 instantiate the configuration file FILE
296ee9a6
JF
24265 --header=FILE[:TEMPLATE]
24266 instantiate the configuration header FILE
9c60689e
DWT
24267
24268Configuration files:
24269$config_files
24270
296ee9a6
JF
24271Configuration headers:
24272$config_headers
24273
9c60689e
DWT
24274Configuration commands:
24275$config_commands
24276
24277Report bugs to <saurik@saurik.com>.
24278Cycript home page: <http://www.cycript.org/>."
24279
24280_ACEOF
24281cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24282ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
24283ac_cs_version="\\
24284Cycript config.status 0.9
53ba6704 24285configured by $0, generated by GNU Autoconf 2.69,
9c60689e
DWT
24286 with options \\"\$ac_cs_config\\"
24287
53ba6704 24288Copyright (C) 2012 Free Software Foundation, Inc.
9c60689e
DWT
24289This config.status script is free software; the Free Software Foundation
24290gives unlimited permission to copy, distribute and modify it."
24291
24292ac_pwd='$ac_pwd'
24293srcdir='$srcdir'
24294INSTALL='$INSTALL'
66170b30
JF
24295MKDIR_P='$MKDIR_P'
24296AWK='$AWK'
9c60689e
DWT
24297test -n "\$AWK" || AWK=awk
24298_ACEOF
24299
24300cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24301# The default lists apply if the user does not specify any file.
24302ac_need_defaults=:
24303while test $# != 0
24304do
24305 case $1 in
12833ad8 24306 --*=?*)
9c60689e
DWT
24307 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24308 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24309 ac_shift=:
24310 ;;
12833ad8
JF
24311 --*=)
24312 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24313 ac_optarg=
24314 ac_shift=:
24315 ;;
9c60689e
DWT
24316 *)
24317 ac_option=$1
24318 ac_optarg=$2
24319 ac_shift=shift
24320 ;;
24321 esac
24322
24323 case $ac_option in
24324 # Handling of the options.
24325 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24326 ac_cs_recheck=: ;;
24327 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24328 $as_echo "$ac_cs_version"; exit ;;
24329 --config | --confi | --conf | --con | --co | --c )
24330 $as_echo "$ac_cs_config"; exit ;;
24331 --debug | --debu | --deb | --de | --d | -d )
24332 debug=: ;;
24333 --file | --fil | --fi | --f )
24334 $ac_shift
24335 case $ac_optarg in
24336 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12833ad8 24337 '') as_fn_error $? "missing file argument" ;;
9c60689e
DWT
24338 esac
24339 as_fn_append CONFIG_FILES " '$ac_optarg'"
24340 ac_need_defaults=false;;
296ee9a6
JF
24341 --header | --heade | --head | --hea )
24342 $ac_shift
24343 case $ac_optarg in
24344 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24345 esac
24346 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
24347 ac_need_defaults=false;;
24348 --he | --h)
24349 # Conflict between --help and --header
24350 as_fn_error $? "ambiguous option: \`$1'
24351Try \`$0 --help' for more information.";;
24352 --help | --hel | -h )
9c60689e
DWT
24353 $as_echo "$ac_cs_usage"; exit ;;
24354 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24355 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24356 ac_cs_silent=: ;;
24357
24358 # This is an error.
12833ad8 24359 -*) as_fn_error $? "unrecognized option: \`$1'
9c60689e
DWT
24360Try \`$0 --help' for more information." ;;
24361
24362 *) as_fn_append ac_config_targets " $1"
24363 ac_need_defaults=false ;;
24364
24365 esac
24366 shift
24367done
24368
24369ac_configure_extra_args=
24370
24371if $ac_cs_silent; then
24372 exec 6>/dev/null
24373 ac_configure_extra_args="$ac_configure_extra_args --silent"
24374fi
24375
24376_ACEOF
24377cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24378if \$ac_cs_recheck; then
53ba6704 24379 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9c60689e
DWT
24380 shift
24381 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
24382 CONFIG_SHELL='$SHELL'
24383 export CONFIG_SHELL
24384 exec "\$@"
24385fi
24386
24387_ACEOF
24388cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24389exec 5>>config.log
24390{
24391 echo
24392 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24393## Running $as_me. ##
24394_ASBOX
24395 $as_echo "$ac_log"
24396} >&5
24397
24398_ACEOF
24399cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24400#
24401# INIT-COMMANDS
24402#
66170b30 24403AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9c60689e
DWT
24404
24405
24406# The HP-UX ksh and POSIX shell print the target directory to stdout
24407# if CDPATH is set.
24408(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24409
24410sed_quote_subst='$sed_quote_subst'
24411double_quote_subst='$double_quote_subst'
24412delay_variable_subst='$delay_variable_subst'
ee134472
JF
24413macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
24414macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
24415enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
24416enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
24417pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
24418enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
9d54db95 24419shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
ee134472
JF
24420SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
24421ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
53ba6704 24422PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
ee134472
JF
24423host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
24424host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
24425host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
24426build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
24427build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
24428build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
24429SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
24430Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
24431GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
24432EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
24433FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
24434LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
24435NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
24436LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
24437max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
24438ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
24439exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
24440lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
24441lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
24442lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
24443lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
24444lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
24445reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
24446reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
24447OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
24448deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
24449file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
24450file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
24451want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
24452DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
24453sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
24454AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
24455AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
24456archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
24457STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
24458RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
24459old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24460old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24461old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
24462lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
24463CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
24464CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
24465compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
24466GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
24467lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
24468lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
9d54db95 24469lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
ee134472
JF
24470lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
24471lt_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"`'
9d54db95 24472lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
ee134472
JF
24473nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
24474lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
9d54db95 24475lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
ee134472
JF
24476objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
24477MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
24478lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
24479lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
24480lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
24481lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
24482lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
24483need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
24484MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
24485DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
24486NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
24487LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
24488OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
24489OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
24490libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
24491shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
24492extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24493archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
24494enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
24495export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
24496whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
24497compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
24498old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
24499old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24500archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
24501archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24502module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
24503module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24504with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
24505allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
24506no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
24507hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
ee134472
JF
24508hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
24509hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
24510hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
24511hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
24512hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
24513hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
24514inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
24515link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
24516always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
24517export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
24518exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
24519include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
24520prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
24521postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
24522file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
24523variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
24524need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
24525need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
24526version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
24527runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
24528shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
24529shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
24530libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
24531library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
24532soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
24533install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
24534postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24535postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24536finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
24537finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
24538hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
24539sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
9d54db95
JF
24540configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
24541configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
ee134472
JF
24542hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
24543enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
24544enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
24545enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
24546old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
24547striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
24548compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
24549predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
24550postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
24551predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
24552postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
24553compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
24554LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
24555reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
24556reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24557old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24558compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
24559GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
24560lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
24561lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
24562lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
24563lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
24564lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
24565archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
24566enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
24567export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
24568whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
24569compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
24570old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24571old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24572archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24573archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24574module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24575module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24576with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
24577allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
24578no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
24579hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
ee134472
JF
24580hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
24581hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
24582hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
24583hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
24584hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
24585hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
24586inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
24587link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
24588always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
24589export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24590exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
24591include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
24592prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24593postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24594file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
24595hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
24596compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
24597predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
24598postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
24599predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
24600postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
24601compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
9c60689e
DWT
24602
24603LTCC='$LTCC'
24604LTCFLAGS='$LTCFLAGS'
24605compiler='$compiler_DEFAULT'
24606
ee134472
JF
24607# A function that is used when there is no print builtin or printf.
24608func_fallback_echo ()
24609{
24610 eval 'cat <<_LTECHO_EOF
24611\$1
24612_LTECHO_EOF'
24613}
24614
9c60689e 24615# Quote evaled strings.
ee134472
JF
24616for var in SHELL \
24617ECHO \
53ba6704 24618PATH_SEPARATOR \
ee134472 24619SED \
9c60689e
DWT
24620GREP \
24621EGREP \
24622FGREP \
24623LD \
24624NM \
24625LN_S \
24626lt_SP2NL \
24627lt_NL2SP \
24628reload_flag \
24629OBJDUMP \
24630deplibs_check_method \
24631file_magic_cmd \
ee134472
JF
24632file_magic_glob \
24633want_nocaseglob \
24634DLLTOOL \
24635sharedlib_from_linklib_cmd \
9c60689e
DWT
24636AR \
24637AR_FLAGS \
ee134472 24638archiver_list_spec \
9c60689e
DWT
24639STRIP \
24640RANLIB \
24641CC \
24642CFLAGS \
24643compiler \
24644lt_cv_sys_global_symbol_pipe \
24645lt_cv_sys_global_symbol_to_cdecl \
9d54db95 24646lt_cv_sys_global_symbol_to_import \
9c60689e
DWT
24647lt_cv_sys_global_symbol_to_c_name_address \
24648lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
9d54db95 24649lt_cv_nm_interface \
ee134472 24650nm_file_list_spec \
9d54db95 24651lt_cv_truncate_bin \
9c60689e 24652lt_prog_compiler_no_builtin_flag \
9c60689e 24653lt_prog_compiler_pic \
ee134472 24654lt_prog_compiler_wl \
9c60689e
DWT
24655lt_prog_compiler_static \
24656lt_cv_prog_compiler_c_o \
24657need_locks \
ee134472 24658MANIFEST_TOOL \
9c60689e
DWT
24659DSYMUTIL \
24660NMEDIT \
24661LIPO \
24662OTOOL \
24663OTOOL64 \
24664shrext_cmds \
24665export_dynamic_flag_spec \
24666whole_archive_flag_spec \
24667compiler_needs_object \
24668with_gnu_ld \
24669allow_undefined_flag \
24670no_undefined_flag \
24671hardcode_libdir_flag_spec \
9c60689e 24672hardcode_libdir_separator \
9c60689e
DWT
24673exclude_expsyms \
24674include_expsyms \
24675file_list_spec \
24676variables_saved_for_relink \
24677libname_spec \
24678library_names_spec \
24679soname_spec \
ee134472 24680install_override_mode \
9c60689e
DWT
24681finish_eval \
24682old_striplib \
24683striplib \
24684compiler_lib_search_dirs \
24685predep_objects \
24686postdep_objects \
24687predeps \
24688postdeps \
24689compiler_lib_search_path \
24690LD_CXX \
ee134472 24691reload_flag_CXX \
9c60689e
DWT
24692compiler_CXX \
24693lt_prog_compiler_no_builtin_flag_CXX \
9c60689e 24694lt_prog_compiler_pic_CXX \
ee134472 24695lt_prog_compiler_wl_CXX \
9c60689e
DWT
24696lt_prog_compiler_static_CXX \
24697lt_cv_prog_compiler_c_o_CXX \
24698export_dynamic_flag_spec_CXX \
24699whole_archive_flag_spec_CXX \
24700compiler_needs_object_CXX \
24701with_gnu_ld_CXX \
24702allow_undefined_flag_CXX \
24703no_undefined_flag_CXX \
24704hardcode_libdir_flag_spec_CXX \
9c60689e 24705hardcode_libdir_separator_CXX \
9c60689e
DWT
24706exclude_expsyms_CXX \
24707include_expsyms_CXX \
24708file_list_spec_CXX \
24709compiler_lib_search_dirs_CXX \
24710predep_objects_CXX \
24711postdep_objects_CXX \
24712predeps_CXX \
24713postdeps_CXX \
24714compiler_lib_search_path_CXX; do
ee134472 24715 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
9c60689e 24716 *[\\\\\\\`\\"\\\$]*)
9d54db95 24717 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
9c60689e
DWT
24718 ;;
24719 *)
24720 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24721 ;;
24722 esac
24723done
24724
24725# Double-quote double-evaled strings.
24726for var in reload_cmds \
24727old_postinstall_cmds \
24728old_postuninstall_cmds \
24729old_archive_cmds \
24730extract_expsyms_cmds \
24731old_archive_from_new_cmds \
24732old_archive_from_expsyms_cmds \
24733archive_cmds \
24734archive_expsym_cmds \
24735module_cmds \
24736module_expsym_cmds \
24737export_symbols_cmds \
24738prelink_cmds \
ee134472 24739postlink_cmds \
9c60689e
DWT
24740postinstall_cmds \
24741postuninstall_cmds \
24742finish_cmds \
24743sys_lib_search_path_spec \
9d54db95
JF
24744configure_time_dlsearch_path \
24745configure_time_lt_sys_library_path \
ee134472 24746reload_cmds_CXX \
9c60689e
DWT
24747old_archive_cmds_CXX \
24748old_archive_from_new_cmds_CXX \
24749old_archive_from_expsyms_cmds_CXX \
24750archive_cmds_CXX \
24751archive_expsym_cmds_CXX \
24752module_cmds_CXX \
24753module_expsym_cmds_CXX \
24754export_symbols_cmds_CXX \
ee134472
JF
24755prelink_cmds_CXX \
24756postlink_cmds_CXX; do
24757 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
9c60689e 24758 *[\\\\\\\`\\"\\\$]*)
9d54db95 24759 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
9c60689e
DWT
24760 ;;
24761 *)
24762 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24763 ;;
24764 esac
24765done
24766
9c60689e 24767ac_aux_dir='$ac_aux_dir'
9c60689e 24768
9d54db95 24769# See if we are running on zsh, and set the options that allow our
9c60689e 24770# commands through without removal of \ escapes INIT.
9d54db95 24771if test -n "\${ZSH_VERSION+set}"; then
9c60689e
DWT
24772 setopt NO_GLOB_SUBST
24773fi
24774
24775
24776 PACKAGE='$PACKAGE'
24777 VERSION='$VERSION'
9c60689e
DWT
24778 RM='$RM'
24779 ofile='$ofile'
24780
24781
24782
24783
24784
24785
24786_ACEOF
24787
24788cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24789
24790# Handling of arguments.
24791for ac_config_target in $ac_config_targets
24792do
24793 case $ac_config_target in
296ee9a6 24794 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
66170b30 24795 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9c60689e 24796 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
790e5246 24797 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9c60689e 24798
ee134472 24799 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9c60689e
DWT
24800 esac
24801done
24802
24803
24804# If the user did not use the arguments to specify the items to instantiate,
24805# then the envvar interface is used. Set only those that are not.
24806# We use the long form for the default assignment because of an extremely
24807# bizarre bug on SunOS 4.1.3.
24808if $ac_need_defaults; then
24809 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
296ee9a6 24810 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9c60689e
DWT
24811 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24812fi
24813
24814# Have a temporary directory for convenience. Make it in the build tree
24815# simply because there is no reason against having it here, and in addition,
24816# creating and moving files from /tmp can sometimes cause problems.
24817# Hook for its removal unless debugging.
24818# Note that there is a small window in which the directory will not be cleaned:
24819# after its creation but before its name has been assigned to `$tmp'.
24820$debug ||
24821{
ee134472 24822 tmp= ac_tmp=
9c60689e 24823 trap 'exit_status=$?
ee134472
JF
24824 : "${ac_tmp:=$tmp}"
24825 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9c60689e
DWT
24826' 0
24827 trap 'as_fn_exit 1' 1 2 13 15
24828}
24829# Create a (secure) tmp directory for tmp files.
24830
24831{
24832 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ee134472 24833 test -d "$tmp"
9c60689e
DWT
24834} ||
24835{
24836 tmp=./conf$$-$RANDOM
24837 (umask 077 && mkdir "$tmp")
12833ad8 24838} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ee134472 24839ac_tmp=$tmp
9c60689e
DWT
24840
24841# Set up the scripts for CONFIG_FILES section.
24842# No need to generate them if there are no CONFIG_FILES.
24843# This happens for instance with `./config.status config.h'.
24844if test -n "$CONFIG_FILES"; then
24845
24846
24847ac_cr=`echo X | tr X '\015'`
24848# On cygwin, bash can eat \r inside `` if the user requested igncr.
24849# But we know of no other shell where ac_cr would be empty at this
24850# point, so we can use a bashism as a fallback.
24851if test "x$ac_cr" = x; then
24852 eval ac_cr=\$\'\\r\'
24853fi
24854ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24855if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12833ad8 24856 ac_cs_awk_cr='\\r'
9c60689e
DWT
24857else
24858 ac_cs_awk_cr=$ac_cr
24859fi
24860
ee134472 24861echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9c60689e
DWT
24862_ACEOF
24863
24864
24865{
24866 echo "cat >conf$$subs.awk <<_ACEOF" &&
24867 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24868 echo "_ACEOF"
24869} >conf$$subs.sh ||
12833ad8
JF
24870 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24871ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9c60689e
DWT
24872ac_delim='%!_!# '
24873for ac_last_try in false false false false false :; do
24874 . ./conf$$subs.sh ||
12833ad8 24875 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
24876
24877 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24878 if test $ac_delim_n = $ac_delim_num; then
24879 break
24880 elif $ac_last_try; then
12833ad8 24881 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
24882 else
24883 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24884 fi
24885done
24886rm -f conf$$subs.sh
24887
24888cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ee134472 24889cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9c60689e
DWT
24890_ACEOF
24891sed -n '
24892h
24893s/^/S["/; s/!.*/"]=/
24894p
24895g
24896s/^[^!]*!//
24897:repl
24898t repl
24899s/'"$ac_delim"'$//
24900t delim
24901:nl
24902h
24903s/\(.\{148\}\)..*/\1/
24904t more1
24905s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24906p
24907n
24908b repl
24909:more1
24910s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24911p
24912g
24913s/.\{148\}//
24914t nl
24915:delim
24916h
24917s/\(.\{148\}\)..*/\1/
24918t more2
24919s/["\\]/\\&/g; s/^/"/; s/$/"/
24920p
24921b
24922:more2
24923s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24924p
24925g
24926s/.\{148\}//
24927t delim
24928' <conf$$subs.awk | sed '
24929/^[^""]/{
24930 N
24931 s/\n//
24932}
24933' >>$CONFIG_STATUS || ac_write_fail=1
24934rm -f conf$$subs.awk
24935cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24936_ACAWK
ee134472 24937cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9c60689e
DWT
24938 for (key in S) S_is_set[key] = 1
24939 FS = "\a"
24940
24941}
24942{
24943 line = $ 0
24944 nfields = split(line, field, "@")
24945 substed = 0
24946 len = length(field[1])
24947 for (i = 2; i < nfields; i++) {
24948 key = field[i]
24949 keylen = length(key)
24950 if (S_is_set[key]) {
24951 value = S[key]
24952 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24953 len += length(value) + length(field[++i])
24954 substed = 1
24955 } else
24956 len += 1 + keylen
24957 }
24958
24959 print line
24960}
24961
24962_ACAWK
24963_ACEOF
24964cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24965if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24966 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24967else
24968 cat
ee134472 24969fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12833ad8 24970 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9c60689e
DWT
24971_ACEOF
24972
12833ad8
JF
24973# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
24974# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9c60689e
DWT
24975# trailing colons and then remove the whole line if VPATH becomes empty
24976# (actually we leave an empty line to preserve line numbers).
24977if test "x$srcdir" = x.; then
12833ad8
JF
24978 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
24979h
24980s///
24981s/^/:/
24982s/[ ]*$/:/
24983s/:\$(srcdir):/:/g
24984s/:\${srcdir}:/:/g
24985s/:@srcdir@:/:/g
24986s/^:*//
9c60689e 24987s/:*$//
12833ad8
JF
24988x
24989s/\(=[ ]*\).*/\1/
24990G
24991s/\n//
9c60689e
DWT
24992s/^[^=]*=[ ]*$//
24993}'
24994fi
24995
24996cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24997fi # test -n "$CONFIG_FILES"
24998
296ee9a6
JF
24999# Set up the scripts for CONFIG_HEADERS section.
25000# No need to generate them if there are no CONFIG_HEADERS.
25001# This happens for instance with `./config.status Makefile'.
25002if test -n "$CONFIG_HEADERS"; then
25003cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
25004BEGIN {
25005_ACEOF
25006
25007# Transform confdefs.h into an awk script `defines.awk', embedded as
25008# here-document in config.status, that substitutes the proper values into
25009# config.h.in to produce config.h.
25010
25011# Create a delimiter string that does not exist in confdefs.h, to ease
25012# handling of long lines.
25013ac_delim='%!_!# '
25014for ac_last_try in false false :; do
25015 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
25016 if test -z "$ac_tt"; then
25017 break
25018 elif $ac_last_try; then
25019 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
25020 else
25021 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25022 fi
25023done
25024
25025# For the awk script, D is an array of macro values keyed by name,
25026# likewise P contains macro parameters if any. Preserve backslash
25027# newline sequences.
25028
25029ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25030sed -n '
25031s/.\{148\}/&'"$ac_delim"'/g
25032t rset
25033:rset
25034s/^[ ]*#[ ]*define[ ][ ]*/ /
25035t def
25036d
25037:def
25038s/\\$//
25039t bsnl
25040s/["\\]/\\&/g
25041s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25042D["\1"]=" \3"/p
25043s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25044d
25045:bsnl
25046s/["\\]/\\&/g
25047s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25048D["\1"]=" \3\\\\\\n"\\/p
25049t cont
25050s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25051t cont
25052d
25053:cont
25054n
25055s/.\{148\}/&'"$ac_delim"'/g
25056t clear
25057:clear
25058s/\\$//
25059t bsnlc
25060s/["\\]/\\&/g; s/^/"/; s/$/"/p
25061d
25062:bsnlc
25063s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25064b cont
25065' <confdefs.h | sed '
25066s/'"$ac_delim"'/"\\\
25067"/g' >>$CONFIG_STATUS || ac_write_fail=1
25068
25069cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25070 for (key in D) D_is_set[key] = 1
25071 FS = "\a"
25072}
25073/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25074 line = \$ 0
25075 split(line, arg, " ")
25076 if (arg[1] == "#") {
25077 defundef = arg[2]
25078 mac1 = arg[3]
25079 } else {
25080 defundef = substr(arg[1], 2)
25081 mac1 = arg[2]
25082 }
25083 split(mac1, mac2, "(") #)
25084 macro = mac2[1]
25085 prefix = substr(line, 1, index(line, defundef) - 1)
25086 if (D_is_set[macro]) {
25087 # Preserve the white space surrounding the "#".
25088 print prefix "define", macro P[macro] D[macro]
25089 next
25090 } else {
25091 # Replace #undef with comments. This is necessary, for example,
25092 # in the case of _POSIX_SOURCE, which is predefined and required
25093 # on some systems where configure will not decide to define it.
25094 if (defundef == "undef") {
25095 print "/*", prefix defundef, macro, "*/"
25096 next
25097 }
25098 }
25099}
25100{ print }
25101_ACAWK
25102_ACEOF
25103cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25104 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
25105fi # test -n "$CONFIG_HEADERS"
25106
9c60689e 25107
296ee9a6 25108eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9c60689e
DWT
25109shift
25110for ac_tag
25111do
25112 case $ac_tag in
25113 :[FHLC]) ac_mode=$ac_tag; continue;;
25114 esac
25115 case $ac_mode$ac_tag in
25116 :[FHL]*:*);;
ee134472 25117 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9c60689e
DWT
25118 :[FH]-) ac_tag=-:-;;
25119 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25120 esac
25121 ac_save_IFS=$IFS
25122 IFS=:
25123 set x $ac_tag
25124 IFS=$ac_save_IFS
25125 shift
25126 ac_file=$1
25127 shift
25128
25129 case $ac_mode in
25130 :L) ac_source=$1;;
25131 :[FH])
25132 ac_file_inputs=
25133 for ac_f
25134 do
25135 case $ac_f in
ee134472 25136 -) ac_f="$ac_tmp/stdin";;
9c60689e
DWT
25137 *) # Look for the file first in the build tree, then in the source tree
25138 # (if the path is not absolute). The absolute path cannot be DOS-style,
25139 # because $ac_f cannot contain `:'.
25140 test -f "$ac_f" ||
25141 case $ac_f in
25142 [\\/$]*) false;;
25143 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25144 esac ||
ee134472 25145 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9c60689e
DWT
25146 esac
25147 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25148 as_fn_append ac_file_inputs " '$ac_f'"
25149 done
25150
25151 # Let's still pretend it is `configure' which instantiates (i.e., don't
25152 # use $as_me), people would be surprised to read:
25153 # /* config.h. Generated by config.status. */
25154 configure_input='Generated from '`
25155 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25156 `' by configure.'
25157 if test x"$ac_file" != x-; then
25158 configure_input="$ac_file. $configure_input"
25159 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25160$as_echo "$as_me: creating $ac_file" >&6;}
25161 fi
25162 # Neutralize special characters interpreted by sed in replacement strings.
25163 case $configure_input in #(
25164 *\&* | *\|* | *\\* )
25165 ac_sed_conf_input=`$as_echo "$configure_input" |
25166 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25167 *) ac_sed_conf_input=$configure_input;;
25168 esac
25169
25170 case $ac_tag in
ee134472
JF
25171 *:-:* | *:-) cat >"$ac_tmp/stdin" \
25172 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9c60689e
DWT
25173 esac
25174 ;;
25175 esac
25176
25177 ac_dir=`$as_dirname -- "$ac_file" ||
25178$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25179 X"$ac_file" : 'X\(//\)[^/]' \| \
25180 X"$ac_file" : 'X\(//\)$' \| \
25181 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25182$as_echo X"$ac_file" |
25183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25184 s//\1/
25185 q
25186 }
25187 /^X\(\/\/\)[^/].*/{
25188 s//\1/
25189 q
25190 }
25191 /^X\(\/\/\)$/{
25192 s//\1/
25193 q
25194 }
25195 /^X\(\/\).*/{
25196 s//\1/
25197 q
25198 }
25199 s/.*/./; q'`
25200 as_dir="$ac_dir"; as_fn_mkdir_p
25201 ac_builddir=.
25202
25203case "$ac_dir" in
25204.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25205*)
25206 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25207 # A ".." for each directory in $ac_dir_suffix.
25208 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25209 case $ac_top_builddir_sub in
25210 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25211 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25212 esac ;;
25213esac
25214ac_abs_top_builddir=$ac_pwd
25215ac_abs_builddir=$ac_pwd$ac_dir_suffix
25216# for backward compatibility:
25217ac_top_builddir=$ac_top_build_prefix
35fa52c0 25218
9c60689e
DWT
25219case $srcdir in
25220 .) # We are building in place.
25221 ac_srcdir=.
25222 ac_top_srcdir=$ac_top_builddir_sub
25223 ac_abs_top_srcdir=$ac_pwd ;;
25224 [\\/]* | ?:[\\/]* ) # Absolute name.
25225 ac_srcdir=$srcdir$ac_dir_suffix;
25226 ac_top_srcdir=$srcdir
25227 ac_abs_top_srcdir=$srcdir ;;
25228 *) # Relative name.
25229 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25230 ac_top_srcdir=$ac_top_build_prefix$srcdir
25231 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25232esac
25233ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35fa52c0
DWT
25234
25235
9c60689e
DWT
25236 case $ac_mode in
25237 :F)
25238 #
25239 # CONFIG_FILE
25240 #
35fa52c0 25241
9c60689e
DWT
25242 case $INSTALL in
25243 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25244 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25245 esac
66170b30
JF
25246 ac_MKDIR_P=$MKDIR_P
25247 case $MKDIR_P in
25248 [\\/$]* | ?:[\\/]* ) ;;
25249 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25250 esac
9c60689e 25251_ACEOF
35fa52c0 25252
9c60689e
DWT
25253cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25254# If the template does not know about datarootdir, expand it.
25255# FIXME: This hack should be removed a few years after 2.60.
25256ac_datarootdir_hack=; ac_datarootdir_seen=
25257ac_sed_dataroot='
25258/datarootdir/ {
25259 p
25260 q
25261}
25262/@datadir@/p
25263/@docdir@/p
25264/@infodir@/p
25265/@localedir@/p
25266/@mandir@/p'
25267case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25268*datarootdir*) ac_datarootdir_seen=yes;;
25269*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25271$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25272_ACEOF
25273cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25274 ac_datarootdir_hack='
25275 s&@datadir@&$datadir&g
25276 s&@docdir@&$docdir&g
25277 s&@infodir@&$infodir&g
25278 s&@localedir@&$localedir&g
25279 s&@mandir@&$mandir&g
25280 s&\\\${datarootdir}&$datarootdir&g' ;;
25281esac
25282_ACEOF
35fa52c0 25283
9c60689e
DWT
25284# Neutralize VPATH when `$srcdir' = `.'.
25285# Shell code in configure.ac might set extrasub.
25286# FIXME: do we really want to maintain this feature?
25287cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25288ac_sed_extra="$ac_vpsub
25289$extrasub
25290_ACEOF
25291cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25292:t
25293/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25294s|@configure_input@|$ac_sed_conf_input|;t t
25295s&@top_builddir@&$ac_top_builddir_sub&;t t
25296s&@top_build_prefix@&$ac_top_build_prefix&;t t
25297s&@srcdir@&$ac_srcdir&;t t
25298s&@abs_srcdir@&$ac_abs_srcdir&;t t
25299s&@top_srcdir@&$ac_top_srcdir&;t t
25300s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25301s&@builddir@&$ac_builddir&;t t
25302s&@abs_builddir@&$ac_abs_builddir&;t t
25303s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25304s&@INSTALL@&$ac_INSTALL&;t t
66170b30 25305s&@MKDIR_P@&$ac_MKDIR_P&;t t
9c60689e
DWT
25306$ac_datarootdir_hack
25307"
ee134472
JF
25308eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
25309 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9c60689e
DWT
25310
25311test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
ee134472
JF
25312 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
25313 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
25314 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9c60689e 25315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12833ad8 25316which seems to be undefined. Please make sure it is defined" >&5
9c60689e 25317$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12833ad8 25318which seems to be undefined. Please make sure it is defined" >&2;}
9c60689e 25319
ee134472 25320 rm -f "$ac_tmp/stdin"
9c60689e 25321 case $ac_file in
ee134472
JF
25322 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
25323 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9c60689e 25324 esac \
12833ad8 25325 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9c60689e 25326 ;;
296ee9a6
JF
25327 :H)
25328 #
25329 # CONFIG_HEADER
25330 #
25331 if test x"$ac_file" != x-; then
25332 {
25333 $as_echo "/* $configure_input */" \
25334 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
25335 } >"$ac_tmp/config.h" \
25336 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25337 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
25338 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25339$as_echo "$as_me: $ac_file is unchanged" >&6;}
25340 else
25341 rm -f "$ac_file"
25342 mv "$ac_tmp/config.h" "$ac_file" \
25343 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25344 fi
25345 else
25346 $as_echo "/* $configure_input */" \
25347 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
25348 || as_fn_error $? "could not create -" "$LINENO" 5
25349 fi
25350# Compute "$ac_file"'s index in $config_headers.
25351_am_arg="$ac_file"
25352_am_stamp_count=1
25353for _am_header in $config_headers :; do
25354 case $_am_header in
25355 $_am_arg | $_am_arg:* )
25356 break ;;
25357 * )
25358 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25359 esac
25360done
25361echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25362$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25363 X"$_am_arg" : 'X\(//\)[^/]' \| \
25364 X"$_am_arg" : 'X\(//\)$' \| \
25365 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25366$as_echo X"$_am_arg" |
25367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25368 s//\1/
25369 q
25370 }
25371 /^X\(\/\/\)[^/].*/{
25372 s//\1/
25373 q
25374 }
25375 /^X\(\/\/\)$/{
25376 s//\1/
25377 q
25378 }
25379 /^X\(\/\).*/{
25380 s//\1/
25381 q
25382 }
25383 s/.*/./; q'`/stamp-h$_am_stamp_count
25384 ;;
35fa52c0 25385
9c60689e
DWT
25386 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25387$as_echo "$as_me: executing $ac_file commands" >&6;}
25388 ;;
25389 esac
35fa52c0 25390
35fa52c0 25391
9c60689e 25392 case $ac_file$ac_mode in
66170b30
JF
25393 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
25394 # Older Autoconf quotes --file arguments for eval, but not when files
25395 # are listed without --file. Let's play safe and only enable the eval
25396 # if we detect the quoting.
25397 case $CONFIG_FILES in
25398 *\'*) eval set x "$CONFIG_FILES" ;;
25399 *) set x $CONFIG_FILES ;;
25400 esac
25401 shift
25402 for mf
25403 do
25404 # Strip MF so we end up with the name of the file.
25405 mf=`echo "$mf" | sed -e 's/:.*$//'`
25406 # Check whether this is an Automake generated Makefile or not.
25407 # We used to match only the files named 'Makefile.in', but
25408 # some people rename them; so instead we look at the file content.
25409 # Grep'ing the first line is not enough: some people post-process
25410 # each Makefile.in and add a new line on top of each file to say so.
25411 # Grep'ing the whole file is not good either: AIX grep has a line
25412 # limit of 2048, but all sed's we know have understand at least 4000.
25413 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25414 dirpart=`$as_dirname -- "$mf" ||
25415$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25416 X"$mf" : 'X\(//\)[^/]' \| \
25417 X"$mf" : 'X\(//\)$' \| \
25418 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25419$as_echo X"$mf" |
25420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25421 s//\1/
25422 q
25423 }
25424 /^X\(\/\/\)[^/].*/{
25425 s//\1/
25426 q
25427 }
25428 /^X\(\/\/\)$/{
25429 s//\1/
25430 q
25431 }
25432 /^X\(\/\).*/{
25433 s//\1/
25434 q
25435 }
25436 s/.*/./; q'`
25437 else
25438 continue
25439 fi
25440 # Extract the definition of DEPDIR, am__include, and am__quote
25441 # from the Makefile without running 'make'.
25442 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25443 test -z "$DEPDIR" && continue
25444 am__include=`sed -n 's/^am__include = //p' < "$mf"`
a93f15c0 25445 test -z "$am__include" && continue
66170b30
JF
25446 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25447 # Find all dependency output files, they are included files with
25448 # $(DEPDIR) in their names. We invoke sed twice because it is the
25449 # simplest approach to changing $(DEPDIR) to its actual value in the
25450 # expansion.
25451 for file in `sed -n "
25452 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25453 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
25454 # Make sure the directory exists.
25455 test -f "$dirpart/$file" && continue
25456 fdir=`$as_dirname -- "$file" ||
25457$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25458 X"$file" : 'X\(//\)[^/]' \| \
25459 X"$file" : 'X\(//\)$' \| \
25460 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25461$as_echo X"$file" |
25462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25463 s//\1/
25464 q
25465 }
25466 /^X\(\/\/\)[^/].*/{
25467 s//\1/
25468 q
25469 }
25470 /^X\(\/\/\)$/{
25471 s//\1/
25472 q
25473 }
25474 /^X\(\/\).*/{
25475 s//\1/
25476 q
25477 }
25478 s/.*/./; q'`
25479 as_dir=$dirpart/$fdir; as_fn_mkdir_p
25480 # echo "creating $dirpart/$file"
25481 echo '# dummy' > "$dirpart/$file"
25482 done
25483 done
25484}
25485 ;;
9c60689e
DWT
25486 "libtool":C)
25487
9d54db95 25488 # See if we are running on zsh, and set the options that allow our
9c60689e 25489 # commands through without removal of \ escapes.
9d54db95 25490 if test -n "${ZSH_VERSION+set}"; then
9c60689e 25491 setopt NO_GLOB_SUBST
35fa52c0 25492 fi
35fa52c0 25493
9d54db95 25494 cfgfile=${ofile}T
9c60689e
DWT
25495 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
25496 $RM "$cfgfile"
35fa52c0 25497
9c60689e
DWT
25498 cat <<_LT_EOF >> "$cfgfile"
25499#! $SHELL
9d54db95 25500# Generated automatically by $as_me ($PACKAGE) $VERSION
9c60689e
DWT
25501# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25502# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9d54db95
JF
25503
25504# Provide generalized library-building support services.
25505# Written by Gordon Matzigkeit, 1996
25506
25507# Copyright (C) 2014 Free Software Foundation, Inc.
25508# This is free software; see the source for copying conditions. There is NO
25509# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
25510
25511# GNU Libtool is free software; you can redistribute it and/or modify
25512# it under the terms of the GNU General Public License as published by
25513# the Free Software Foundation; either version 2 of of the License, or
25514# (at your option) any later version.
9c60689e 25515#
9d54db95
JF
25516# As a special exception to the GNU General Public License, if you
25517# distribute this file as part of a program or library that is built
25518# using GNU Libtool, you may include this file under the same
25519# distribution terms that you use for the rest of that program.
9c60689e 25520#
9d54db95
JF
25521# GNU Libtool is distributed in the hope that it will be useful, but
25522# WITHOUT ANY WARRANTY; without even the implied warranty of
9c60689e
DWT
25523# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25524# GNU General Public License for more details.
25525#
25526# You should have received a copy of the GNU General Public License
9d54db95 25527# along with this program. If not, see <http://www.gnu.org/licenses/>.
35fa52c0 25528
35fa52c0 25529
9c60689e 25530# The names of the tagged configurations supported by this script.
9d54db95
JF
25531available_tags='CXX '
25532
25533# Configured defaults for sys_lib_dlsearch_path munging.
25534: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
35fa52c0 25535
9c60689e 25536# ### BEGIN LIBTOOL CONFIG
35fa52c0 25537
9c60689e
DWT
25538# Which release of libtool.m4 was used?
25539macro_version=$macro_version
25540macro_revision=$macro_revision
35fa52c0 25541
9c60689e
DWT
25542# Whether or not to build static libraries.
25543build_old_libs=$enable_static
35fa52c0 25544
549f29b5
DWT
25545# Whether or not to build shared libraries.
25546build_libtool_libs=$enable_shared
25547
9c60689e
DWT
25548# What type of objects to build.
25549pic_mode=$pic_mode
35fa52c0 25550
9c60689e
DWT
25551# Whether or not to optimize for fast installation.
25552fast_install=$enable_fast_install
35fa52c0 25553
9d54db95
JF
25554# Shared archive member basename,for filename based shared library versioning on AIX.
25555shared_archive_member_spec=$shared_archive_member_spec
25556
ee134472
JF
25557# Shell to use when invoking shell scripts.
25558SHELL=$lt_SHELL
25559
25560# An echo program that protects backslashes.
25561ECHO=$lt_ECHO
25562
53ba6704
JF
25563# The PATH separator for the build system.
25564PATH_SEPARATOR=$lt_PATH_SEPARATOR
25565
9c60689e
DWT
25566# The host system.
25567host_alias=$host_alias
25568host=$host
25569host_os=$host_os
35fa52c0 25570
9c60689e
DWT
25571# The build system.
25572build_alias=$build_alias
25573build=$build
25574build_os=$build_os
25575
25576# A sed program that does not truncate output.
25577SED=$lt_SED
25578
25579# Sed that helps us avoid accidentally triggering echo(1) options like -n.
25580Xsed="\$SED -e 1s/^X//"
25581
25582# A grep program that handles long lines.
25583GREP=$lt_GREP
25584
25585# An ERE matcher.
25586EGREP=$lt_EGREP
25587
25588# A literal string matcher.
25589FGREP=$lt_FGREP
25590
25591# A BSD- or MS-compatible name lister.
25592NM=$lt_NM
25593
25594# Whether we need soft or hard links.
25595LN_S=$lt_LN_S
25596
25597# What is the maximum length of a command?
25598max_cmd_len=$max_cmd_len
25599
25600# Object file suffix (normally "o").
25601objext=$ac_objext
25602
25603# Executable file suffix (normally "").
25604exeext=$exeext
25605
25606# whether the shell understands "unset".
25607lt_unset=$lt_unset
25608
25609# turn spaces into newlines.
25610SP2NL=$lt_lt_SP2NL
25611
25612# turn newlines into spaces.
25613NL2SP=$lt_lt_NL2SP
25614
ee134472
JF
25615# convert \$build file names to \$host format.
25616to_host_file_cmd=$lt_cv_to_host_file_cmd
25617
25618# convert \$build files to toolchain format.
25619to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9c60689e
DWT
25620
25621# An object symbol dumper.
25622OBJDUMP=$lt_OBJDUMP
25623
25624# Method to check whether dependent libraries are shared objects.
25625deplibs_check_method=$lt_deplibs_check_method
25626
ee134472 25627# Command to use when deplibs_check_method = "file_magic".
9c60689e
DWT
25628file_magic_cmd=$lt_file_magic_cmd
25629
ee134472
JF
25630# How to find potential files when deplibs_check_method = "file_magic".
25631file_magic_glob=$lt_file_magic_glob
25632
25633# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
25634want_nocaseglob=$lt_want_nocaseglob
25635
25636# DLL creation program.
25637DLLTOOL=$lt_DLLTOOL
25638
25639# Command to associate shared and link libraries.
25640sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
25641
9c60689e
DWT
25642# The archiver.
25643AR=$lt_AR
ee134472
JF
25644
25645# Flags to create an archive.
9c60689e
DWT
25646AR_FLAGS=$lt_AR_FLAGS
25647
ee134472
JF
25648# How to feed a file listing to the archiver.
25649archiver_list_spec=$lt_archiver_list_spec
25650
9c60689e
DWT
25651# A symbol stripping program.
25652STRIP=$lt_STRIP
25653
25654# Commands used to install an old-style archive.
25655RANLIB=$lt_RANLIB
25656old_postinstall_cmds=$lt_old_postinstall_cmds
25657old_postuninstall_cmds=$lt_old_postuninstall_cmds
25658
ee134472
JF
25659# Whether to use a lock for old archive extraction.
25660lock_old_archive_extraction=$lock_old_archive_extraction
25661
9c60689e
DWT
25662# A C compiler.
25663LTCC=$lt_CC
25664
25665# LTCC compiler flags.
25666LTCFLAGS=$lt_CFLAGS
25667
25668# Take the output of nm and produce a listing of raw symbols and C names.
25669global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25670
25671# Transform the output of nm in a proper C declaration.
25672global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25673
9d54db95
JF
25674# Transform the output of nm into a list of symbols to manually relocate.
25675global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
25676
9c60689e
DWT
25677# Transform the output of nm in a C name address pair.
25678global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25679
25680# Transform the output of nm in a C name address pair when lib prefix is needed.
25681global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
25682
9d54db95
JF
25683# The name lister interface.
25684nm_interface=$lt_lt_cv_nm_interface
25685
ee134472
JF
25686# Specify filename containing input files for \$NM.
25687nm_file_list_spec=$lt_nm_file_list_spec
9c60689e 25688
9d54db95 25689# The root where to search for dependent libraries,and where our libraries should be installed.
ee134472 25690lt_sysroot=$lt_sysroot
9c60689e 25691
9d54db95
JF
25692# Command to truncate a binary pipe.
25693lt_truncate_bin=$lt_lt_cv_truncate_bin
25694
ee134472
JF
25695# The name of the directory that contains temporary libtool files.
25696objdir=$objdir
9c60689e
DWT
25697
25698# Used to examine libraries when file_magic_cmd begins with "file".
25699MAGIC_CMD=$MAGIC_CMD
25700
25701# Must we lock files when doing compilation?
25702need_locks=$lt_need_locks
25703
ee134472
JF
25704# Manifest tool.
25705MANIFEST_TOOL=$lt_MANIFEST_TOOL
25706
9c60689e
DWT
25707# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
25708DSYMUTIL=$lt_DSYMUTIL
25709
25710# Tool to change global to local symbols on Mac OS X.
25711NMEDIT=$lt_NMEDIT
25712
25713# Tool to manipulate fat objects and archives on Mac OS X.
25714LIPO=$lt_LIPO
25715
25716# ldd/readelf like tool for Mach-O binaries on Mac OS X.
25717OTOOL=$lt_OTOOL
25718
25719# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
25720OTOOL64=$lt_OTOOL64
25721
25722# Old archive suffix (normally "a").
25723libext=$libext
25724
25725# Shared library suffix (normally ".so").
25726shrext_cmds=$lt_shrext_cmds
35fa52c0 25727
9c60689e
DWT
25728# The commands to extract the exported symbol list from a shared archive.
25729extract_expsyms_cmds=$lt_extract_expsyms_cmds
35fa52c0 25730
9c60689e
DWT
25731# Variables whose values should be saved in libtool wrapper scripts and
25732# restored at link time.
25733variables_saved_for_relink=$lt_variables_saved_for_relink
35fa52c0 25734
9c60689e
DWT
25735# Do we need the "lib" prefix for modules?
25736need_lib_prefix=$need_lib_prefix
35fa52c0 25737
9c60689e
DWT
25738# Do we need a version for libraries?
25739need_version=$need_version
35fa52c0 25740
9c60689e
DWT
25741# Library versioning type.
25742version_type=$version_type
35fa52c0 25743
9c60689e
DWT
25744# Shared library runtime path variable.
25745runpath_var=$runpath_var
35fa52c0 25746
9c60689e
DWT
25747# Shared library path variable.
25748shlibpath_var=$shlibpath_var
35fa52c0 25749
9c60689e
DWT
25750# Is shlibpath searched before the hard-coded library search path?
25751shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35fa52c0 25752
9c60689e
DWT
25753# Format of library name prefix.
25754libname_spec=$lt_libname_spec
35fa52c0 25755
9c60689e
DWT
25756# List of archive names. First name is the real one, the rest are links.
25757# The last name is the one that the linker finds with -lNAME
25758library_names_spec=$lt_library_names_spec
dbadc56a 25759
9c60689e
DWT
25760# The coded name of the library, if different from the real name.
25761soname_spec=$lt_soname_spec
dbadc56a 25762
ee134472
JF
25763# Permission mode override for installation of shared libraries.
25764install_override_mode=$lt_install_override_mode
25765
9c60689e
DWT
25766# Command to use after installation of a shared archive.
25767postinstall_cmds=$lt_postinstall_cmds
35fa52c0 25768
9c60689e
DWT
25769# Command to use after uninstallation of a shared archive.
25770postuninstall_cmds=$lt_postuninstall_cmds
dbadc56a 25771
9c60689e
DWT
25772# Commands used to finish a libtool library installation in a directory.
25773finish_cmds=$lt_finish_cmds
35fa52c0 25774
9c60689e
DWT
25775# As "finish_cmds", except a single script fragment to be evaled but
25776# not shown.
25777finish_eval=$lt_finish_eval
35fa52c0 25778
9c60689e
DWT
25779# Whether we should hardcode library paths into libraries.
25780hardcode_into_libs=$hardcode_into_libs
dbadc56a 25781
9c60689e
DWT
25782# Compile-time system search path for libraries.
25783sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35fa52c0 25784
9d54db95
JF
25785# Detected run-time system search path for libraries.
25786sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
25787
25788# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
25789configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
dbadc56a 25790
9c60689e
DWT
25791# Whether dlopen is supported.
25792dlopen_support=$enable_dlopen
dbadc56a 25793
9c60689e
DWT
25794# Whether dlopen of programs is supported.
25795dlopen_self=$enable_dlopen_self
35fa52c0 25796
9c60689e
DWT
25797# Whether dlopen of statically linked programs is supported.
25798dlopen_self_static=$enable_dlopen_self_static
35fa52c0 25799
9c60689e
DWT
25800# Commands to strip libraries.
25801old_striplib=$lt_old_striplib
25802striplib=$lt_striplib
35fa52c0 25803
35fa52c0 25804
9c60689e
DWT
25805# The linker used to build libraries.
25806LD=$lt_LD
dbadc56a 25807
ee134472
JF
25808# How to create reloadable object files.
25809reload_flag=$lt_reload_flag
25810reload_cmds=$lt_reload_cmds
25811
9c60689e
DWT
25812# Commands used to build an old-style archive.
25813old_archive_cmds=$lt_old_archive_cmds
dbadc56a 25814
9c60689e
DWT
25815# A language specific compiler.
25816CC=$lt_compiler
35fa52c0 25817
9c60689e
DWT
25818# Is the compiler the GNU compiler?
25819with_gcc=$GCC
dbadc56a 25820
9c60689e
DWT
25821# Compiler flag to turn off builtin functions.
25822no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
dbadc56a 25823
9c60689e
DWT
25824# Additional compiler flags for building library objects.
25825pic_flag=$lt_lt_prog_compiler_pic
35fa52c0 25826
ee134472
JF
25827# How to pass a linker flag through the compiler.
25828wl=$lt_lt_prog_compiler_wl
25829
9c60689e
DWT
25830# Compiler flag to prevent dynamic linking.
25831link_static_flag=$lt_lt_prog_compiler_static
35fa52c0 25832
9c60689e
DWT
25833# Does compiler simultaneously support -c and -o options?
25834compiler_c_o=$lt_lt_cv_prog_compiler_c_o
dbadc56a 25835
9c60689e
DWT
25836# Whether or not to add -lc for building shared libraries.
25837build_libtool_need_lc=$archive_cmds_need_lc
35fa52c0 25838
9c60689e
DWT
25839# Whether or not to disallow shared libs when runtime libs are static.
25840allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35fa52c0 25841
9c60689e
DWT
25842# Compiler flag to allow reflexive dlopens.
25843export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35fa52c0 25844
9c60689e
DWT
25845# Compiler flag to generate shared objects directly from archives.
25846whole_archive_flag_spec=$lt_whole_archive_flag_spec
dbadc56a 25847
9c60689e
DWT
25848# Whether the compiler copes with passing no objects directly.
25849compiler_needs_object=$lt_compiler_needs_object
dbadc56a 25850
9c60689e
DWT
25851# Create an old-style archive from a shared archive.
25852old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
dbadc56a 25853
9c60689e
DWT
25854# Create a temporary old-style archive to link instead of a shared archive.
25855old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
dbadc56a 25856
9c60689e
DWT
25857# Commands used to build a shared archive.
25858archive_cmds=$lt_archive_cmds
25859archive_expsym_cmds=$lt_archive_expsym_cmds
35fa52c0 25860
9c60689e
DWT
25861# Commands used to build a loadable module if different from building
25862# a shared archive.
25863module_cmds=$lt_module_cmds
25864module_expsym_cmds=$lt_module_expsym_cmds
dbadc56a 25865
9c60689e
DWT
25866# Whether we are building with GNU ld or not.
25867with_gnu_ld=$lt_with_gnu_ld
6b66678a 25868
9c60689e
DWT
25869# Flag that allows shared libraries with undefined symbols to be built.
25870allow_undefined_flag=$lt_allow_undefined_flag
6b66678a 25871
9c60689e
DWT
25872# Flag that enforces no undefined symbols.
25873no_undefined_flag=$lt_no_undefined_flag
6b66678a 25874
9c60689e
DWT
25875# Flag to hardcode \$libdir into a binary during linking.
25876# This must work even if \$libdir does not exist
25877hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6b66678a 25878
9c60689e
DWT
25879# Whether we need a single "-rpath" flag with a separated argument.
25880hardcode_libdir_separator=$lt_hardcode_libdir_separator
6b66678a 25881
9d54db95 25882# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
9c60689e
DWT
25883# DIR into the resulting binary.
25884hardcode_direct=$hardcode_direct
6b66678a 25885
9d54db95 25886# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
9c60689e 25887# DIR into the resulting binary and the resulting library dependency is
9d54db95 25888# "absolute",i.e impossible to change by setting \$shlibpath_var if the
9c60689e
DWT
25889# library is relocated.
25890hardcode_direct_absolute=$hardcode_direct_absolute
6b66678a 25891
9c60689e
DWT
25892# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25893# into the resulting binary.
25894hardcode_minus_L=$hardcode_minus_L
6b66678a 25895
9c60689e
DWT
25896# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25897# into the resulting binary.
25898hardcode_shlibpath_var=$hardcode_shlibpath_var
6b66678a 25899
9c60689e
DWT
25900# Set to "yes" if building a shared library automatically hardcodes DIR
25901# into the library and all subsequent libraries and executables linked
25902# against it.
25903hardcode_automatic=$hardcode_automatic
6b66678a 25904
9c60689e
DWT
25905# Set to yes if linker adds runtime paths of dependent libraries
25906# to runtime path list.
25907inherit_rpath=$inherit_rpath
6b66678a 25908
9c60689e
DWT
25909# Whether libtool must link a program against all its dependency libraries.
25910link_all_deplibs=$link_all_deplibs
25911
9c60689e
DWT
25912# Set to "yes" if exported symbols are required.
25913always_export_symbols=$always_export_symbols
6b66678a 25914
9c60689e
DWT
25915# The commands to list exported symbols.
25916export_symbols_cmds=$lt_export_symbols_cmds
6b66678a 25917
9c60689e
DWT
25918# Symbols that should not be listed in the preloaded symbols.
25919exclude_expsyms=$lt_exclude_expsyms
6b66678a 25920
9c60689e
DWT
25921# Symbols that must always be exported.
25922include_expsyms=$lt_include_expsyms
6b66678a 25923
9c60689e
DWT
25924# Commands necessary for linking programs (against libraries) with templates.
25925prelink_cmds=$lt_prelink_cmds
6b66678a 25926
ee134472
JF
25927# Commands necessary for finishing linking programs.
25928postlink_cmds=$lt_postlink_cmds
25929
9c60689e
DWT
25930# Specify filename containing input files.
25931file_list_spec=$lt_file_list_spec
6b66678a 25932
9c60689e
DWT
25933# How to hardcode a shared library path into an executable.
25934hardcode_action=$hardcode_action
25935
25936# The directories searched by this compiler when creating a shared library.
25937compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
25938
25939# Dependencies to place before and after the objects being linked to
25940# create a shared library.
25941predep_objects=$lt_predep_objects
25942postdep_objects=$lt_postdep_objects
25943predeps=$lt_predeps
25944postdeps=$lt_postdeps
25945
25946# The library search path used internally by the compiler when linking
25947# a shared library.
25948compiler_lib_search_path=$lt_compiler_lib_search_path
25949
25950# ### END LIBTOOL CONFIG
25951
9d54db95
JF
25952_LT_EOF
25953
25954 cat <<'_LT_EOF' >> "$cfgfile"
25955
25956# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
25957
25958# func_munge_path_list VARIABLE PATH
25959# -----------------------------------
25960# VARIABLE is name of variable containing _space_ separated list of
25961# directories to be munged by the contents of PATH, which is string
25962# having a format:
25963# "DIR[:DIR]:"
25964# string "DIR[ DIR]" will be prepended to VARIABLE
25965# ":DIR[:DIR]"
25966# string "DIR[ DIR]" will be appended to VARIABLE
25967# "DIRP[:DIRP]::[DIRA:]DIRA"
25968# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
25969# "DIRA[ DIRA]" will be appended to VARIABLE
25970# "DIR[:DIR]"
25971# VARIABLE will be replaced by "DIR[ DIR]"
25972func_munge_path_list ()
25973{
25974 case x$2 in
25975 x)
25976 ;;
25977 *:)
25978 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
25979 ;;
25980 x:*)
25981 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
25982 ;;
25983 *::*)
25984 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
25985 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
25986 ;;
25987 *)
25988 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
25989 ;;
25990 esac
25991}
25992
25993
25994# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
25995func_cc_basename ()
25996{
25997 for cc_temp in $*""; do
25998 case $cc_temp in
25999 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26000 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26001 \-*) ;;
26002 *) break;;
26003 esac
26004 done
26005 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
26006}
26007
26008
26009# ### END FUNCTIONS SHARED WITH CONFIGURE
26010
9c60689e
DWT
26011_LT_EOF
26012
26013 case $host_os in
26014 aix3*)
26015 cat <<\_LT_EOF >> "$cfgfile"
26016# AIX sometimes has problems with the GCC collect2 program. For some
26017# reason, if we set the COLLECT_NAMES environment variable, the problems
26018# vanish in a puff of smoke.
9d54db95 26019if test set != "${COLLECT_NAMES+set}"; then
9c60689e
DWT
26020 COLLECT_NAMES=
26021 export COLLECT_NAMES
6b66678a 26022fi
9c60689e
DWT
26023_LT_EOF
26024 ;;
26025 esac
6b66678a
DWT
26026
26027
9d54db95 26028ltmain=$ac_aux_dir/ltmain.sh
6b66678a 26029
9c60689e
DWT
26030
26031 # We use sed instead of cat because bash on DJGPP gets confused if
26032 # if finds mixed CR/LF and LF-only lines. Since sed operates in
26033 # text mode, it properly converts lines to CR/LF. This bash problem
26034 # is reportedly fixed, but why not run on old versions too?
ee134472
JF
26035 sed '$q' "$ltmain" >> "$cfgfile" \
26036 || (rm -f "$cfgfile"; exit 1)
26037
ee134472 26038 mv -f "$cfgfile" "$ofile" ||
9c60689e
DWT
26039 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
26040 chmod +x "$ofile"
26041
26042
26043 cat <<_LT_EOF >> "$ofile"
26044
26045# ### BEGIN LIBTOOL TAG CONFIG: CXX
26046
26047# The linker used to build libraries.
26048LD=$lt_LD_CXX
26049
ee134472
JF
26050# How to create reloadable object files.
26051reload_flag=$lt_reload_flag_CXX
26052reload_cmds=$lt_reload_cmds_CXX
26053
9c60689e
DWT
26054# Commands used to build an old-style archive.
26055old_archive_cmds=$lt_old_archive_cmds_CXX
26056
26057# A language specific compiler.
26058CC=$lt_compiler_CXX
26059
26060# Is the compiler the GNU compiler?
26061with_gcc=$GCC_CXX
26062
26063# Compiler flag to turn off builtin functions.
26064no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
6b66678a 26065
9c60689e
DWT
26066# Additional compiler flags for building library objects.
26067pic_flag=$lt_lt_prog_compiler_pic_CXX
6b66678a 26068
ee134472
JF
26069# How to pass a linker flag through the compiler.
26070wl=$lt_lt_prog_compiler_wl_CXX
26071
9c60689e
DWT
26072# Compiler flag to prevent dynamic linking.
26073link_static_flag=$lt_lt_prog_compiler_static_CXX
6b66678a 26074
9c60689e
DWT
26075# Does compiler simultaneously support -c and -o options?
26076compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
dbadc56a 26077
9c60689e
DWT
26078# Whether or not to add -lc for building shared libraries.
26079build_libtool_need_lc=$archive_cmds_need_lc_CXX
dbadc56a 26080
9c60689e
DWT
26081# Whether or not to disallow shared libs when runtime libs are static.
26082allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35fa52c0 26083
9c60689e
DWT
26084# Compiler flag to allow reflexive dlopens.
26085export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35fa52c0 26086
9c60689e
DWT
26087# Compiler flag to generate shared objects directly from archives.
26088whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35fa52c0 26089
9c60689e
DWT
26090# Whether the compiler copes with passing no objects directly.
26091compiler_needs_object=$lt_compiler_needs_object_CXX
35fa52c0 26092
9c60689e
DWT
26093# Create an old-style archive from a shared archive.
26094old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35fa52c0 26095
9c60689e
DWT
26096# Create a temporary old-style archive to link instead of a shared archive.
26097old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35fa52c0 26098
9c60689e
DWT
26099# Commands used to build a shared archive.
26100archive_cmds=$lt_archive_cmds_CXX
26101archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
6b66678a 26102
9c60689e
DWT
26103# Commands used to build a loadable module if different from building
26104# a shared archive.
26105module_cmds=$lt_module_cmds_CXX
26106module_expsym_cmds=$lt_module_expsym_cmds_CXX
6b66678a 26107
9c60689e
DWT
26108# Whether we are building with GNU ld or not.
26109with_gnu_ld=$lt_with_gnu_ld_CXX
6b66678a 26110
9c60689e
DWT
26111# Flag that allows shared libraries with undefined symbols to be built.
26112allow_undefined_flag=$lt_allow_undefined_flag_CXX
35fa52c0 26113
9c60689e
DWT
26114# Flag that enforces no undefined symbols.
26115no_undefined_flag=$lt_no_undefined_flag_CXX
35fa52c0 26116
9c60689e
DWT
26117# Flag to hardcode \$libdir into a binary during linking.
26118# This must work even if \$libdir does not exist
26119hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
6b66678a 26120
9c60689e
DWT
26121# Whether we need a single "-rpath" flag with a separated argument.
26122hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
6b66678a 26123
9d54db95 26124# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
9c60689e
DWT
26125# DIR into the resulting binary.
26126hardcode_direct=$hardcode_direct_CXX
6b66678a 26127
9d54db95 26128# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
9c60689e 26129# DIR into the resulting binary and the resulting library dependency is
9d54db95 26130# "absolute",i.e impossible to change by setting \$shlibpath_var if the
9c60689e
DWT
26131# library is relocated.
26132hardcode_direct_absolute=$hardcode_direct_absolute_CXX
6b66678a 26133
9c60689e
DWT
26134# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26135# into the resulting binary.
26136hardcode_minus_L=$hardcode_minus_L_CXX
35fa52c0 26137
9c60689e
DWT
26138# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26139# into the resulting binary.
26140hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35fa52c0 26141
9c60689e
DWT
26142# Set to "yes" if building a shared library automatically hardcodes DIR
26143# into the library and all subsequent libraries and executables linked
26144# against it.
26145hardcode_automatic=$hardcode_automatic_CXX
6b66678a 26146
9c60689e
DWT
26147# Set to yes if linker adds runtime paths of dependent libraries
26148# to runtime path list.
26149inherit_rpath=$inherit_rpath_CXX
6b66678a 26150
9c60689e
DWT
26151# Whether libtool must link a program against all its dependency libraries.
26152link_all_deplibs=$link_all_deplibs_CXX
6b66678a 26153
9c60689e
DWT
26154# Set to "yes" if exported symbols are required.
26155always_export_symbols=$always_export_symbols_CXX
6b66678a 26156
9c60689e
DWT
26157# The commands to list exported symbols.
26158export_symbols_cmds=$lt_export_symbols_cmds_CXX
6b66678a 26159
9c60689e
DWT
26160# Symbols that should not be listed in the preloaded symbols.
26161exclude_expsyms=$lt_exclude_expsyms_CXX
6b66678a 26162
9c60689e
DWT
26163# Symbols that must always be exported.
26164include_expsyms=$lt_include_expsyms_CXX
6b66678a 26165
9c60689e
DWT
26166# Commands necessary for linking programs (against libraries) with templates.
26167prelink_cmds=$lt_prelink_cmds_CXX
6b66678a 26168
ee134472
JF
26169# Commands necessary for finishing linking programs.
26170postlink_cmds=$lt_postlink_cmds_CXX
26171
9c60689e
DWT
26172# Specify filename containing input files.
26173file_list_spec=$lt_file_list_spec_CXX
dbadc56a 26174
9c60689e
DWT
26175# How to hardcode a shared library path into an executable.
26176hardcode_action=$hardcode_action_CXX
309b0535 26177
9c60689e
DWT
26178# The directories searched by this compiler when creating a shared library.
26179compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
309b0535 26180
9c60689e
DWT
26181# Dependencies to place before and after the objects being linked to
26182# create a shared library.
26183predep_objects=$lt_predep_objects_CXX
26184postdep_objects=$lt_postdep_objects_CXX
26185predeps=$lt_predeps_CXX
26186postdeps=$lt_postdeps_CXX
309b0535 26187
9c60689e
DWT
26188# The library search path used internally by the compiler when linking
26189# a shared library.
26190compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
26191
26192# ### END LIBTOOL TAG CONFIG: CXX
26193_LT_EOF
26194
26195 ;;
26196
26197 esac
26198done # for ac_tag
26199
26200
26201as_fn_exit 0
26202_ACEOF
26203ac_clean_files=$ac_clean_files_save
26204
26205test $ac_write_fail = 0 ||
12833ad8 26206 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
26207
26208
26209# configure is writing to config.log, and then calls config.status.
26210# config.status does its own redirection, appending to config.log.
26211# Unfortunately, on DOS this fails, as config.log is still kept open
26212# by configure, so config.status won't be able to write to it; its
26213# output is simply discarded. So we exec the FD to /dev/null,
26214# effectively closing config.log, so it can be properly (re)opened and
26215# appended to by config.status. When coming back to configure, we
26216# need to make the FD available again.
26217if test "$no_create" != yes; then
26218 ac_cs_success=:
26219 ac_config_status_args=
26220 test "$silent" = yes &&
26221 ac_config_status_args="$ac_config_status_args --quiet"
26222 exec 5>/dev/null
26223 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26224 exec 5>>config.log
26225 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26226 # would make configure fail if this is the last instruction.
12833ad8 26227 $ac_cs_success || as_fn_exit 1
309b0535 26228fi
9c60689e
DWT
26229if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26231$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
26232fi
26233