]> git.saurik.com Git - cycript.git/blame - configure
Upgrade to automake 1.15 (the latest one in Fink).
[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#
f95d2598 14# Copyright (C) 2009-2014 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
a243b558
JF
646CY_OBJECTIVEC_FALSE
647CY_OBJECTIVEC_TRUE
39ed1631
JF
648CY_JAVA_FALSE
649CY_JAVA_TRUE
babf7fe8 650LTOBJECTIVEC
47aaa820 651GNUSTEP_CONFIG
c823f118 652CY_OBJECTIVEC
39ed1631
JF
653LTJAVA
654CY_JAVA
296ee9a6 655LTLIBFFI
309b0535 656LIBFFI_LIBS
35fa52c0 657LIBFFI_CFLAGS
a243b558
JF
658CY_EXECUTE_FALSE
659CY_EXECUTE_TRUE
a4287117
JF
660CY_ATTACH_FALSE
661CY_ATTACH_TRUE
a93f15c0
JF
662CY_CONSOLE_FALSE
663CY_CONSOLE_TRUE
babf7fe8 664LTJAVASCRIPTCORE
35fa52c0
DWT
665WEBKIT_LIBS
666WEBKIT_CFLAGS
7eda51e0 667CY_EXECUTE
abc804fa 668CY_ARCH
be2fde87
JF
669PTHREAD_CFLAGS
670PTHREAD_LIBS
671PTHREAD_CC
672ax_pthread_config
e9c9a47c 673GNUTAR
e9c9a47c
DWT
674GPERF
675FLEX
676BISON
677TIME
66170b30 678GIT
12833ad8
JF
679PKG_CONFIG_LIBDIR
680PKG_CONFIG_PATH
3fd51f51 681PKG_CONFIG
1771224f 682HAVE_CXX11
a243b558 683CXXCPP
9c60689e 684CPP
9d54db95 685LT_SYS_LIBRARY_PATH
9c60689e
DWT
686OTOOL64
687OTOOL
688LIPO
689NMEDIT
690DSYMUTIL
ee134472 691MANIFEST_TOOL
9c60689e 692RANLIB
ee134472 693DLLTOOL
9c60689e
DWT
694OBJDUMP
695LN_S
696NM
697ac_ct_DUMPBIN
698DUMPBIN
699LD
700FGREP
701EGREP
702GREP
703SED
a243b558
JF
704host_os
705host_vendor
706host_cpu
707host
708build_os
709build_vendor
710build_cpu
711build
712LIBTOOL
a243b558
JF
713ac_ct_AR
714AR
715am__fastdepOBJCXX_FALSE
716am__fastdepOBJCXX_TRUE
717OBJCXXDEPMODE
718ac_ct_OBJCXX
719OBJCXXFLAGS
720OBJCXX
721am__fastdepCXX_FALSE
722am__fastdepCXX_TRUE
723CXXDEPMODE
a93f15c0
JF
724ac_ct_CXX
725CXXFLAGS
726CXX
727am__fastdepCC_FALSE
728am__fastdepCC_TRUE
729CCDEPMODE
66170b30
JF
730am__nodep
731AMDEPBACKSLASH
732AMDEP_FALSE
733AMDEP_TRUE
734am__quote
735am__include
736DEPDIR
35fa52c0
DWT
737OBJEXT
738EXEEXT
a93f15c0 739ac_ct_CC
35fa52c0
DWT
740CPPFLAGS
741LDFLAGS
a93f15c0
JF
742CFLAGS
743CC
babf7fe8
JF
744MAINT
745MAINTAINER_MODE_FALSE
746MAINTAINER_MODE_TRUE
66170b30
JF
747AM_BACKSLASH
748AM_DEFAULT_VERBOSITY
749AM_DEFAULT_V
750AM_V
751am__untar
752am__tar
753AMTAR
754am__leading_dot
755SET_MAKE
756AWK
757mkdir_p
758MKDIR_P
759INSTALL_STRIP_PROGRAM
760STRIP
761install_sh
762MAKEINFO
763AUTOHEADER
764AUTOMAKE
765AUTOCONF
766ACLOCAL
767VERSION
768PACKAGE
769CYGPATH_W
770am__isrc
771INSTALL_DATA
772INSTALL_SCRIPT
773INSTALL_PROGRAM
dbadc56a 774target_alias
c7aa54aa
DWT
775host_alias
776build_alias
777LIBS
778ECHO_T
779ECHO_N
780ECHO_C
781DEFS
782mandir
783localedir
784libdir
785psdir
786pdfdir
787dvidir
788htmldir
789infodir
790docdir
791oldincludedir
792includedir
793localstatedir
794sharedstatedir
795sysconfdir
796datadir
797datarootdir
798libexecdir
799sbindir
800bindir
801program_transform_name
802prefix
803exec_prefix
804PACKAGE_URL
805PACKAGE_BUGREPORT
806PACKAGE_STRING
807PACKAGE_VERSION
808PACKAGE_TARNAME
809PACKAGE_NAME
810PATH_SEPARATOR
811SHELL'
812ac_subst_files=''
813ac_user_opts='
814enable_option_checking
66170b30 815enable_silent_rules
babf7fe8 816enable_maintainer_mode
a243b558 817enable_dependency_tracking
9c60689e 818enable_static
549f29b5 819enable_shared
9c60689e
DWT
820with_pic
821enable_fast_install
9d54db95 822with_aix_soname
35fa52c0 823with_gnu_ld
ee134472 824with_sysroot
9c60689e 825enable_libtool_lock
5053a6d1 826enable_javascript
a93f15c0 827enable_console
a4287117 828enable_attach
c7aa54aa
DWT
829'
830 ac_precious_vars='build_alias
831host_alias
dbadc56a 832target_alias
a93f15c0
JF
833CC
834CFLAGS
dbadc56a
DWT
835LDFLAGS
836LIBS
837CPPFLAGS
a93f15c0
JF
838CXX
839CXXFLAGS
a243b558
JF
840CCC
841OBJCXX
842OBJCXXFLAGS
9d54db95 843LT_SYS_LIBRARY_PATH
9c60689e 844CPP
a243b558 845CXXCPP
3fd51f51 846PKG_CONFIG
12833ad8
JF
847PKG_CONFIG_PATH
848PKG_CONFIG_LIBDIR
e9c9a47c
DWT
849BISON
850FLEX
851GPERF
66170b30 852GNUTAR
35fa52c0
DWT
853WEBKIT_CFLAGS
854WEBKIT_LIBS
a667869d 855LIBFFI_CFLAGS
790e5246
DWT
856LIBFFI_LIBS
857GNUSTEP_CONFIG'
c7aa54aa
DWT
858
859
860# Initialize some variables set by options.
861ac_init_help=
862ac_init_version=false
863ac_unrecognized_opts=
864ac_unrecognized_sep=
865# The variables have the same names as the options, with
866# dashes changed to underlines.
867cache_file=/dev/null
868exec_prefix=NONE
869no_create=
870no_recursion=
871prefix=NONE
872program_prefix=NONE
873program_suffix=NONE
874program_transform_name=s,x,x,
875silent=
876site=
877srcdir=
878verbose=
879x_includes=NONE
880x_libraries=NONE
881
882# Installation directory options.
883# These are left unexpanded so users can "make install exec_prefix=/foo"
884# and all the variables that are supposed to be based on exec_prefix
885# by default will actually change.
886# Use braces instead of parens because sh, perl, etc. also accept them.
887# (The list follows the same order as the GNU Coding Standards.)
888bindir='${exec_prefix}/bin'
889sbindir='${exec_prefix}/sbin'
890libexecdir='${exec_prefix}/libexec'
891datarootdir='${prefix}/share'
892datadir='${datarootdir}'
893sysconfdir='${prefix}/etc'
894sharedstatedir='${prefix}/com'
895localstatedir='${prefix}/var'
896includedir='${prefix}/include'
897oldincludedir='/usr/include'
898docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
899infodir='${datarootdir}/info'
900htmldir='${docdir}'
901dvidir='${docdir}'
902pdfdir='${docdir}'
903psdir='${docdir}'
904libdir='${exec_prefix}/lib'
905localedir='${datarootdir}/locale'
906mandir='${datarootdir}/man'
907
908ac_prev=
909ac_dashdash=
910for ac_option
911do
912 # If the previous option needs an argument, assign it.
913 if test -n "$ac_prev"; then
914 eval $ac_prev=\$ac_option
915 ac_prev=
916 continue
917 fi
918
919 case $ac_option in
12833ad8
JF
920 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
921 *=) ac_optarg= ;;
922 *) ac_optarg=yes ;;
c7aa54aa
DWT
923 esac
924
925 # Accept the important Cygnus configure options, so we can diagnose typos.
926
927 case $ac_dashdash$ac_option in
928 --)
929 ac_dashdash=yes ;;
930
931 -bindir | --bindir | --bindi | --bind | --bin | --bi)
932 ac_prev=bindir ;;
933 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
934 bindir=$ac_optarg ;;
935
936 -build | --build | --buil | --bui | --bu)
937 ac_prev=build_alias ;;
938 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
939 build_alias=$ac_optarg ;;
940
941 -cache-file | --cache-file | --cache-fil | --cache-fi \
942 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
943 ac_prev=cache_file ;;
944 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
945 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
946 cache_file=$ac_optarg ;;
947
948 --config-cache | -C)
949 cache_file=config.cache ;;
950
951 -datadir | --datadir | --datadi | --datad)
952 ac_prev=datadir ;;
953 -datadir=* | --datadir=* | --datadi=* | --datad=*)
954 datadir=$ac_optarg ;;
955
956 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
957 | --dataroo | --dataro | --datar)
958 ac_prev=datarootdir ;;
959 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
960 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
961 datarootdir=$ac_optarg ;;
962
963 -disable-* | --disable-*)
964 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 967 as_fn_error $? "invalid feature name: $ac_useropt"
c7aa54aa
DWT
968 ac_useropt_orig=$ac_useropt
969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
971 *"
972"enable_$ac_useropt"
973"*) ;;
974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
975 ac_unrecognized_sep=', ';;
976 esac
977 eval enable_$ac_useropt=no ;;
978
979 -docdir | --docdir | --docdi | --doc | --do)
980 ac_prev=docdir ;;
981 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
982 docdir=$ac_optarg ;;
983
984 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
985 ac_prev=dvidir ;;
986 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
987 dvidir=$ac_optarg ;;
988
989 -enable-* | --enable-*)
990 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
991 # Reject names that are not valid shell variable names.
992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 993 as_fn_error $? "invalid feature name: $ac_useropt"
c7aa54aa
DWT
994 ac_useropt_orig=$ac_useropt
995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
997 *"
998"enable_$ac_useropt"
999"*) ;;
1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1001 ac_unrecognized_sep=', ';;
1002 esac
1003 eval enable_$ac_useropt=\$ac_optarg ;;
1004
1005 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1006 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1007 | --exec | --exe | --ex)
1008 ac_prev=exec_prefix ;;
1009 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1010 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1011 | --exec=* | --exe=* | --ex=*)
1012 exec_prefix=$ac_optarg ;;
1013
1014 -gas | --gas | --ga | --g)
1015 # Obsolete; use --with-gas.
1016 with_gas=yes ;;
1017
1018 -help | --help | --hel | --he | -h)
1019 ac_init_help=long ;;
1020 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1021 ac_init_help=recursive ;;
1022 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1023 ac_init_help=short ;;
1024
1025 -host | --host | --hos | --ho)
1026 ac_prev=host_alias ;;
1027 -host=* | --host=* | --hos=* | --ho=*)
1028 host_alias=$ac_optarg ;;
1029
1030 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1031 ac_prev=htmldir ;;
1032 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1033 | --ht=*)
1034 htmldir=$ac_optarg ;;
1035
1036 -includedir | --includedir | --includedi | --included | --include \
1037 | --includ | --inclu | --incl | --inc)
1038 ac_prev=includedir ;;
1039 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1040 | --includ=* | --inclu=* | --incl=* | --inc=*)
1041 includedir=$ac_optarg ;;
1042
1043 -infodir | --infodir | --infodi | --infod | --info | --inf)
1044 ac_prev=infodir ;;
1045 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1046 infodir=$ac_optarg ;;
1047
1048 -libdir | --libdir | --libdi | --libd)
1049 ac_prev=libdir ;;
1050 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1051 libdir=$ac_optarg ;;
1052
1053 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1054 | --libexe | --libex | --libe)
1055 ac_prev=libexecdir ;;
1056 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1057 | --libexe=* | --libex=* | --libe=*)
1058 libexecdir=$ac_optarg ;;
1059
1060 -localedir | --localedir | --localedi | --localed | --locale)
1061 ac_prev=localedir ;;
1062 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1063 localedir=$ac_optarg ;;
1064
1065 -localstatedir | --localstatedir | --localstatedi | --localstated \
1066 | --localstate | --localstat | --localsta | --localst | --locals)
1067 ac_prev=localstatedir ;;
1068 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1069 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1070 localstatedir=$ac_optarg ;;
1071
1072 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1073 ac_prev=mandir ;;
1074 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1075 mandir=$ac_optarg ;;
1076
1077 -nfp | --nfp | --nf)
1078 # Obsolete; use --without-fp.
1079 with_fp=no ;;
1080
1081 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1082 | --no-cr | --no-c | -n)
1083 no_create=yes ;;
1084
1085 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1086 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1087 no_recursion=yes ;;
1088
1089 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1090 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1091 | --oldin | --oldi | --old | --ol | --o)
1092 ac_prev=oldincludedir ;;
1093 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1094 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1095 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1096 oldincludedir=$ac_optarg ;;
1097
1098 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1099 ac_prev=prefix ;;
1100 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1101 prefix=$ac_optarg ;;
1102
1103 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1104 | --program-pre | --program-pr | --program-p)
1105 ac_prev=program_prefix ;;
1106 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1107 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1108 program_prefix=$ac_optarg ;;
1109
1110 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1111 | --program-suf | --program-su | --program-s)
1112 ac_prev=program_suffix ;;
1113 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1114 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1115 program_suffix=$ac_optarg ;;
1116
1117 -program-transform-name | --program-transform-name \
1118 | --program-transform-nam | --program-transform-na \
1119 | --program-transform-n | --program-transform- \
1120 | --program-transform | --program-transfor \
1121 | --program-transfo | --program-transf \
1122 | --program-trans | --program-tran \
1123 | --progr-tra | --program-tr | --program-t)
1124 ac_prev=program_transform_name ;;
1125 -program-transform-name=* | --program-transform-name=* \
1126 | --program-transform-nam=* | --program-transform-na=* \
1127 | --program-transform-n=* | --program-transform-=* \
1128 | --program-transform=* | --program-transfor=* \
1129 | --program-transfo=* | --program-transf=* \
1130 | --program-trans=* | --program-tran=* \
1131 | --progr-tra=* | --program-tr=* | --program-t=*)
1132 program_transform_name=$ac_optarg ;;
1133
1134 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1135 ac_prev=pdfdir ;;
1136 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1137 pdfdir=$ac_optarg ;;
1138
1139 -psdir | --psdir | --psdi | --psd | --ps)
1140 ac_prev=psdir ;;
1141 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1142 psdir=$ac_optarg ;;
1143
1144 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1145 | -silent | --silent | --silen | --sile | --sil)
1146 silent=yes ;;
1147
1148 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1149 ac_prev=sbindir ;;
1150 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1151 | --sbi=* | --sb=*)
1152 sbindir=$ac_optarg ;;
1153
1154 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156 | --sharedst | --shareds | --shared | --share | --shar \
1157 | --sha | --sh)
1158 ac_prev=sharedstatedir ;;
1159 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1162 | --sha=* | --sh=*)
1163 sharedstatedir=$ac_optarg ;;
1164
1165 -site | --site | --sit)
1166 ac_prev=site ;;
1167 -site=* | --site=* | --sit=*)
1168 site=$ac_optarg ;;
1169
1170 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1171 ac_prev=srcdir ;;
1172 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1173 srcdir=$ac_optarg ;;
1174
1175 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176 | --syscon | --sysco | --sysc | --sys | --sy)
1177 ac_prev=sysconfdir ;;
1178 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1180 sysconfdir=$ac_optarg ;;
1181
1182 -target | --target | --targe | --targ | --tar | --ta | --t)
1183 ac_prev=target_alias ;;
1184 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1185 target_alias=$ac_optarg ;;
1186
1187 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1188 verbose=yes ;;
1189
1190 -version | --version | --versio | --versi | --vers | -V)
1191 ac_init_version=: ;;
1192
1193 -with-* | --with-*)
1194 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 1197 as_fn_error $? "invalid package name: $ac_useropt"
c7aa54aa
DWT
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1201 *"
1202"with_$ac_useropt"
1203"*) ;;
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1206 esac
1207 eval with_$ac_useropt=\$ac_optarg ;;
1208
1209 -without-* | --without-*)
1210 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 1213 as_fn_error $? "invalid package name: $ac_useropt"
c7aa54aa
DWT
1214 ac_useropt_orig=$ac_useropt
1215 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1216 case $ac_user_opts in
1217 *"
1218"with_$ac_useropt"
1219"*) ;;
1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1221 ac_unrecognized_sep=', ';;
1222 esac
1223 eval with_$ac_useropt=no ;;
1224
1225 --x)
1226 # Obsolete; use --with-x.
1227 with_x=yes ;;
1228
1229 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230 | --x-incl | --x-inc | --x-in | --x-i)
1231 ac_prev=x_includes ;;
1232 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1234 x_includes=$ac_optarg ;;
1235
1236 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238 ac_prev=x_libraries ;;
1239 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1241 x_libraries=$ac_optarg ;;
1242
12833ad8
JF
1243 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1244Try \`$0 --help' for more information"
c7aa54aa
DWT
1245 ;;
1246
1247 *=*)
1248 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249 # Reject names that are not valid shell variable names.
1250 case $ac_envvar in #(
1251 '' | [0-9]* | *[!_$as_cr_alnum]* )
12833ad8 1252 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
c7aa54aa
DWT
1253 esac
1254 eval $ac_envvar=\$ac_optarg
1255 export $ac_envvar ;;
1256
1257 *)
1258 # FIXME: should be removed in autoconf 3.0.
1259 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1260 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ee134472 1262 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
c7aa54aa
DWT
1263 ;;
1264
1265 esac
1266done
1267
1268if test -n "$ac_prev"; then
1269 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
12833ad8 1270 as_fn_error $? "missing argument to $ac_option"
c7aa54aa
DWT
1271fi
1272
1273if test -n "$ac_unrecognized_opts"; then
1274 case $enable_option_checking in
1275 no) ;;
12833ad8 1276 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
c7aa54aa
DWT
1277 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1278 esac
1279fi
1280
1281# Check all directory arguments for consistency.
1282for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283 datadir sysconfdir sharedstatedir localstatedir includedir \
1284 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285 libdir localedir mandir
1286do
1287 eval ac_val=\$$ac_var
1288 # Remove trailing slashes.
1289 case $ac_val in
1290 */ )
1291 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1292 eval $ac_var=\$ac_val;;
1293 esac
1294 # Be sure to have absolute directory names.
1295 case $ac_val in
1296 [\\/$]* | ?:[\\/]* ) continue;;
1297 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1298 esac
12833ad8 1299 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
c7aa54aa
DWT
1300done
1301
1302# There might be people who depend on the old broken behavior: `$host'
1303# used to hold the argument of --host etc.
1304# FIXME: To remove some day.
1305build=$build_alias
1306host=$host_alias
1307target=$target_alias
1308
1309# FIXME: To remove some day.
1310if test "x$host_alias" != x; then
1311 if test "x$build_alias" = x; then
1312 cross_compiling=maybe
c7aa54aa
DWT
1313 elif test "x$build_alias" != "x$host_alias"; then
1314 cross_compiling=yes
1315 fi
1316fi
1317
1318ac_tool_prefix=
1319test -n "$host_alias" && ac_tool_prefix=$host_alias-
1320
1321test "$silent" = yes && exec 6>/dev/null
1322
1323
1324ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325ac_ls_di=`ls -di .` &&
1326ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
12833ad8 1327 as_fn_error $? "working directory cannot be determined"
c7aa54aa 1328test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
12833ad8 1329 as_fn_error $? "pwd does not report name of working directory"
c7aa54aa
DWT
1330
1331
1332# Find the source files, if location was not specified.
1333if test -z "$srcdir"; then
1334 ac_srcdir_defaulted=yes
1335 # Try the directory containing this script, then the parent directory.
1336 ac_confdir=`$as_dirname -- "$as_myself" ||
1337$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338 X"$as_myself" : 'X\(//\)[^/]' \| \
1339 X"$as_myself" : 'X\(//\)$' \| \
1340 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1341$as_echo X"$as_myself" |
1342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\/\)[^/].*/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\/\)$/{
1351 s//\1/
1352 q
1353 }
1354 /^X\(\/\).*/{
1355 s//\1/
1356 q
1357 }
1358 s/.*/./; q'`
1359 srcdir=$ac_confdir
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1361 srcdir=..
1362 fi
1363else
1364 ac_srcdir_defaulted=no
1365fi
1366if test ! -r "$srcdir/$ac_unique_file"; then
1367 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
12833ad8 1368 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
c7aa54aa
DWT
1369fi
1370ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1371ac_abs_confdir=`(
12833ad8 1372 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
c7aa54aa
DWT
1373 pwd)`
1374# When building in place, set srcdir=.
1375if test "$ac_abs_confdir" = "$ac_pwd"; then
1376 srcdir=.
1377fi
1378# Remove unnecessary trailing slashes from srcdir.
1379# Double slashes in file names in object file debugging info
1380# mess up M-x gdb in Emacs.
1381case $srcdir in
1382*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1383esac
1384for ac_var in $ac_precious_vars; do
1385 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_env_${ac_var}_value=\$${ac_var}
1387 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1389done
1390
1391#
1392# Report the --help message.
1393#
1394if test "$ac_init_help" = "long"; then
1395 # Omit some internal or obsolete options to make the list less imposing.
1396 # This message is too long to be a string in the A/UX 3.1 sh.
1397 cat <<_ACEOF
1398\`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1399
1400Usage: $0 [OPTION]... [VAR=VALUE]...
1401
1402To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403VAR=VALUE. See below for descriptions of some of the useful variables.
1404
1405Defaults for the options are specified in brackets.
1406
1407Configuration:
1408 -h, --help display this help and exit
1409 --help=short display options specific to this package
1410 --help=recursive display the short help of all the included packages
1411 -V, --version display version information and exit
12833ad8 1412 -q, --quiet, --silent do not print \`checking ...' messages
c7aa54aa
DWT
1413 --cache-file=FILE cache test results in FILE [disabled]
1414 -C, --config-cache alias for \`--cache-file=config.cache'
1415 -n, --no-create do not create output files
1416 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1417
1418Installation directories:
1419 --prefix=PREFIX install architecture-independent files in PREFIX
1420 [$ac_default_prefix]
1421 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1422 [PREFIX]
1423
1424By default, \`make install' will install all the files in
1425\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1426an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427for instance \`--prefix=\$HOME'.
1428
1429For better control, use the options below.
1430
1431Fine tuning of the installation directories:
1432 --bindir=DIR user executables [EPREFIX/bin]
1433 --sbindir=DIR system admin executables [EPREFIX/sbin]
1434 --libexecdir=DIR program executables [EPREFIX/libexec]
1435 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1436 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1437 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1438 --libdir=DIR object code libraries [EPREFIX/lib]
1439 --includedir=DIR C header files [PREFIX/include]
1440 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1441 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1442 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1443 --infodir=DIR info documentation [DATAROOTDIR/info]
1444 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1445 --mandir=DIR man documentation [DATAROOTDIR/man]
1446 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1447 --htmldir=DIR html documentation [DOCDIR]
1448 --dvidir=DIR dvi documentation [DOCDIR]
1449 --pdfdir=DIR pdf documentation [DOCDIR]
1450 --psdir=DIR ps documentation [DOCDIR]
1451_ACEOF
1452
1453 cat <<\_ACEOF
35fa52c0 1454
66170b30
JF
1455Program names:
1456 --program-prefix=PREFIX prepend PREFIX to installed program names
1457 --program-suffix=SUFFIX append SUFFIX to installed program names
1458 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1459
35fa52c0
DWT
1460System types:
1461 --build=BUILD configure for building on BUILD [guessed]
1462 --host=HOST cross-compile to build programs to run on HOST [BUILD]
c7aa54aa
DWT
1463_ACEOF
1464fi
1465
1466if test -n "$ac_init_help"; then
1467 case $ac_init_help in
1468 short | recursive ) echo "Configuration of Cycript 0.9:";;
1469 esac
1470 cat <<\_ACEOF
1471
35fa52c0
DWT
1472Optional Features:
1473 --disable-option-checking ignore unrecognized --enable/--with options
1474 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1475 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
66170b30
JF
1476 --enable-silent-rules less verbose build output (undo: "make V=1")
1477 --disable-silent-rules verbose build output (undo: "make V=0")
babf7fe8
JF
1478 --enable-maintainer-mode
1479 enable make rules and dependencies not useful (and
1480 sometimes confusing) to the casual installer
66170b30
JF
1481 --enable-dependency-tracking
1482 do not reject slow dependency extractors
1483 --disable-dependency-tracking
1484 speeds up one-time build
a243b558
JF
1485 --enable-static[=PKGS] build static libraries [default=no]
1486 --enable-shared[=PKGS] build shared libraries [default=yes]
1487 --enable-fast-install[=PKGS]
1488 optimize for fast installation [default=yes]
9c60689e 1489 --disable-libtool-lock avoid locking (might break parallel builds)
b66977f1 1490 --enable-javascript[=ENGINE]
790e5246 1491 use a JavaScript runtime (currently the only
b66977f1
DWT
1492 available option for ENGINE is JavaScriptCore)
1493 [default=yes]
a93f15c0 1494 --disable-console disable console
a4287117 1495 --disable-attach disable attach
35fa52c0
DWT
1496
1497Optional Packages:
1498 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1499 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
53ba6704 1500 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
9c60689e 1501 both]
9d54db95
JF
1502 --with-aix-soname=aix|svr4|both
1503 shared library versioning (aka "SONAME") variant to
1504 provide on AIX, [default=aix].
9c60689e 1505 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
9d54db95
JF
1506 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1507 compiler's sysroot if not specified).
35fa52c0 1508
dbadc56a 1509Some influential environment variables:
a93f15c0
JF
1510 CC C compiler command
1511 CFLAGS C compiler flags
dbadc56a
DWT
1512 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1513 nonstandard directory <lib dir>
1514 LIBS libraries to pass to the linker, e.g. -l<library>
9c60689e 1515 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
dbadc56a 1516 you have headers in a nonstandard directory <include dir>
a93f15c0
JF
1517 CXX C++ compiler command
1518 CXXFLAGS C++ compiler flags
a243b558
JF
1519 OBJCXX Objective C++ compiler command
1520 OBJCXXFLAGS Objective C++ compiler flags
9d54db95
JF
1521 LT_SYS_LIBRARY_PATH
1522 User-defined run-time library search path.
9c60689e 1523 CPP C preprocessor
a243b558 1524 CXXCPP C++ preprocessor
3fd51f51 1525 PKG_CONFIG path to pkg-config utility
12833ad8
JF
1526 PKG_CONFIG_PATH
1527 directories to add to pkg-config's search path
1528 PKG_CONFIG_LIBDIR
1529 path overriding pkg-config's built-in search path
e9c9a47c
DWT
1530 BISON GNU Project parser generator (yacc replacement)
1531 FLEX the fast lexical analyser generator
1532 GPERF perfect hash function generator
66170b30 1533 GNUTAR a very sticky lump of files
35fa52c0
DWT
1534 WEBKIT_CFLAGS
1535 C compiler flags for WEBKIT, overriding pkg-config
1536 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
790e5246
DWT
1537 GNUSTEP_CONFIG
1538 prints information about the current gnustep installation
dbadc56a
DWT
1539
1540Use these variables to override the choices made by `configure' or to help
1541it to find libraries and programs with nonstandard names/locations.
1542
c7aa54aa
DWT
1543Report bugs to <saurik@saurik.com>.
1544Cycript home page: <http://www.cycript.org/>.
1545_ACEOF
1546ac_status=$?
1547fi
1548
1549if test "$ac_init_help" = "recursive"; then
1550 # If there are subdirs, report their specific --help.
1551 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1552 test -d "$ac_dir" ||
1553 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1554 continue
1555 ac_builddir=.
1556
1557case "$ac_dir" in
1558.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559*)
1560 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1561 # A ".." for each directory in $ac_dir_suffix.
1562 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1563 case $ac_top_builddir_sub in
1564 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1566 esac ;;
1567esac
1568ac_abs_top_builddir=$ac_pwd
1569ac_abs_builddir=$ac_pwd$ac_dir_suffix
1570# for backward compatibility:
1571ac_top_builddir=$ac_top_build_prefix
1572
1573case $srcdir in
1574 .) # We are building in place.
1575 ac_srcdir=.
1576 ac_top_srcdir=$ac_top_builddir_sub
1577 ac_abs_top_srcdir=$ac_pwd ;;
1578 [\\/]* | ?:[\\/]* ) # Absolute name.
1579 ac_srcdir=$srcdir$ac_dir_suffix;
1580 ac_top_srcdir=$srcdir
1581 ac_abs_top_srcdir=$srcdir ;;
1582 *) # Relative name.
1583 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1584 ac_top_srcdir=$ac_top_build_prefix$srcdir
1585 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1586esac
1587ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1588
1589 cd "$ac_dir" || { ac_status=$?; continue; }
1590 # Check for guested configure.
1591 if test -f "$ac_srcdir/configure.gnu"; then
1592 echo &&
1593 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1594 elif test -f "$ac_srcdir/configure"; then
1595 echo &&
1596 $SHELL "$ac_srcdir/configure" --help=recursive
1597 else
1598 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1599 fi || ac_status=$?
1600 cd "$ac_pwd" || { ac_status=$?; break; }
1601 done
1602fi
1603
1604test -n "$ac_init_help" && exit $ac_status
1605if $ac_init_version; then
1606 cat <<\_ACEOF
1607Cycript configure 0.9
53ba6704 1608generated by GNU Autoconf 2.69
c7aa54aa 1609
53ba6704 1610Copyright (C) 2012 Free Software Foundation, Inc.
c7aa54aa
DWT
1611This configure script is free software; the Free Software Foundation
1612gives unlimited permission to copy, distribute and modify it.
66170b30 1613
f95d2598 1614Copyright (C) 2009-2014 Jay Freeman (saurik)
c7aa54aa
DWT
1615_ACEOF
1616 exit
1617fi
1618
1619## ------------------------ ##
1620## Autoconf initialization. ##
1621## ------------------------ ##
dbadc56a 1622
a93f15c0
JF
1623# ac_fn_c_try_compile LINENO
1624# --------------------------
a243b558 1625# Try to compile conftest.$ac_ext, and return whether this succeeded.
a93f15c0 1626ac_fn_c_try_compile ()
a243b558
JF
1627{
1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629 rm -f conftest.$ac_objext
1630 if { { ac_try="$ac_compile"
1631case "(($ac_try" in
1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633 *) ac_try_echo=$ac_try;;
1634esac
1635eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636$as_echo "$ac_try_echo"; } >&5
1637 (eval "$ac_compile") 2>conftest.err
1638 ac_status=$?
1639 if test -s conftest.err; then
1640 grep -v '^ *+' conftest.err >conftest.er1
1641 cat conftest.er1 >&5
1642 mv -f conftest.er1 conftest.err
1643 fi
1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645 test $ac_status = 0; } && {
a93f15c0 1646 test -z "$ac_c_werror_flag" ||
a243b558
JF
1647 test ! -s conftest.err
1648 } && test -s conftest.$ac_objext; then :
1649 ac_retval=0
1650else
1651 $as_echo "$as_me: failed program was:" >&5
1652sed 's/^/| /' conftest.$ac_ext >&5
1653
1654 ac_retval=1
1655fi
1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657 as_fn_set_status $ac_retval
1658
a93f15c0 1659} # ac_fn_c_try_compile
a243b558 1660
a93f15c0
JF
1661# ac_fn_cxx_try_compile LINENO
1662# ----------------------------
a243b558 1663# Try to compile conftest.$ac_ext, and return whether this succeeded.
a93f15c0 1664ac_fn_cxx_try_compile ()
a243b558
JF
1665{
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 rm -f conftest.$ac_objext
1668 if { { ac_try="$ac_compile"
1669case "(($ac_try" in
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1672esac
1673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674$as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_compile") 2>conftest.err
1676 ac_status=$?
1677 if test -s conftest.err; then
1678 grep -v '^ *+' conftest.err >conftest.er1
1679 cat conftest.er1 >&5
1680 mv -f conftest.er1 conftest.err
1681 fi
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; } && {
a93f15c0 1684 test -z "$ac_cxx_werror_flag" ||
a243b558
JF
1685 test ! -s conftest.err
1686 } && test -s conftest.$ac_objext; then :
1687 ac_retval=0
1688else
1689 $as_echo "$as_me: failed program was:" >&5
1690sed 's/^/| /' conftest.$ac_ext >&5
1691
1692 ac_retval=1
1693fi
1694 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695 as_fn_set_status $ac_retval
1696
a93f15c0 1697} # ac_fn_cxx_try_compile
a243b558 1698
a93f15c0
JF
1699# ac_fn_objcxx_try_compile LINENO
1700# -------------------------------
35fa52c0 1701# Try to compile conftest.$ac_ext, and return whether this succeeded.
a93f15c0 1702ac_fn_objcxx_try_compile ()
35fa52c0
DWT
1703{
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 rm -f conftest.$ac_objext
1706 if { { ac_try="$ac_compile"
1707case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1710esac
1711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712$as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_compile") 2>conftest.err
1714 ac_status=$?
1715 if test -s conftest.err; then
1716 grep -v '^ *+' conftest.err >conftest.er1
1717 cat conftest.er1 >&5
1718 mv -f conftest.er1 conftest.err
1719 fi
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } && {
a93f15c0 1722 test -z "$ac_objcxx_werror_flag" ||
35fa52c0
DWT
1723 test ! -s conftest.err
1724 } && test -s conftest.$ac_objext; then :
1725 ac_retval=0
1726else
1727 $as_echo "$as_me: failed program was:" >&5
1728sed 's/^/| /' conftest.$ac_ext >&5
1729
1730 ac_retval=1
1731fi
ee134472 1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1733 as_fn_set_status $ac_retval
35fa52c0 1734
a93f15c0 1735} # ac_fn_objcxx_try_compile
35fa52c0
DWT
1736
1737# ac_fn_c_try_link LINENO
1738# -----------------------
1739# Try to link conftest.$ac_ext, and return whether this succeeded.
1740ac_fn_c_try_link ()
1741{
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 rm -f conftest.$ac_objext conftest$ac_exeext
1744 if { { ac_try="$ac_link"
1745case "(($ac_try" in
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1748esac
1749eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750$as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_link") 2>conftest.err
1752 ac_status=$?
1753 if test -s conftest.err; then
1754 grep -v '^ *+' conftest.err >conftest.er1
1755 cat conftest.er1 >&5
1756 mv -f conftest.er1 conftest.err
1757 fi
1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; } && {
1760 test -z "$ac_c_werror_flag" ||
1761 test ! -s conftest.err
1762 } && test -s conftest$ac_exeext && {
1763 test "$cross_compiling" = yes ||
53ba6704 1764 test -x conftest$ac_exeext
35fa52c0
DWT
1765 }; then :
1766 ac_retval=0
1767else
1768 $as_echo "$as_me: failed program was:" >&5
1769sed 's/^/| /' conftest.$ac_ext >&5
1770
1771 ac_retval=1
1772fi
1773 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1774 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1775 # interfere with the next link command; also delete a directory that is
1776 # left behind by Apple's compiler. We do this before executing the actions.
1777 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1779 as_fn_set_status $ac_retval
35fa52c0
DWT
1780
1781} # ac_fn_c_try_link
1782
9c60689e
DWT
1783# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1784# -------------------------------------------------------
1785# Tests whether HEADER exists and can be compiled using the include files in
1786# INCLUDES, setting the cache variable VAR accordingly.
1787ac_fn_c_check_header_compile ()
dbadc56a
DWT
1788{
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791$as_echo_n "checking for $2... " >&6; }
ee134472 1792if eval \${$3+:} false; then :
9c60689e
DWT
1793 $as_echo_n "(cached) " >&6
1794else
1795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796/* end confdefs.h. */
1797$4
1798#include <$2>
1799_ACEOF
1800if ac_fn_c_try_compile "$LINENO"; then :
1801 eval "$3=yes"
1802else
1803 eval "$3=no"
1804fi
1805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1806fi
1807eval ac_res=\$$3
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809$as_echo "$ac_res" >&6; }
ee134472 1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
1811
1812} # ac_fn_c_check_header_compile
1813
1814# ac_fn_c_try_cpp LINENO
1815# ----------------------
1816# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1817ac_fn_c_try_cpp ()
1818{
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 if { { ac_try="$ac_cpp conftest.$ac_ext"
dbadc56a
DWT
1821case "(($ac_try" in
1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823 *) ac_try_echo=$ac_try;;
1824esac
1825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826$as_echo "$ac_try_echo"; } >&5
9c60689e 1827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
dbadc56a
DWT
1828 ac_status=$?
1829 if test -s conftest.err; then
1830 grep -v '^ *+' conftest.err >conftest.er1
1831 cat conftest.er1 >&5
1832 mv -f conftest.er1 conftest.err
1833 fi
1834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12833ad8 1835 test $ac_status = 0; } > conftest.i && {
9c60689e 1836 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
dbadc56a 1837 test ! -s conftest.err
9c60689e 1838 }; then :
dbadc56a
DWT
1839 ac_retval=0
1840else
1841 $as_echo "$as_me: failed program was:" >&5
1842sed 's/^/| /' conftest.$ac_ext >&5
1843
9c60689e 1844 ac_retval=1
dbadc56a 1845fi
ee134472 1846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1847 as_fn_set_status $ac_retval
dbadc56a 1848
9c60689e 1849} # ac_fn_c_try_cpp
35fa52c0
DWT
1850
1851# ac_fn_c_try_run LINENO
1852# ----------------------
1853# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1854# that executables *can* be run.
1855ac_fn_c_try_run ()
1856{
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 if { { ac_try="$ac_link"
1859case "(($ac_try" in
1860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1861 *) ac_try_echo=$ac_try;;
1862esac
1863eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864$as_echo "$ac_try_echo"; } >&5
1865 (eval "$ac_link") 2>&5
1866 ac_status=$?
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1869 { { case "(($ac_try" in
1870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871 *) ac_try_echo=$ac_try;;
1872esac
1873eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874$as_echo "$ac_try_echo"; } >&5
1875 (eval "$ac_try") 2>&5
1876 ac_status=$?
1877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878 test $ac_status = 0; }; }; then :
1879 ac_retval=0
1880else
1881 $as_echo "$as_me: program exited with status $ac_status" >&5
1882 $as_echo "$as_me: failed program was:" >&5
1883sed 's/^/| /' conftest.$ac_ext >&5
1884
1885 ac_retval=$ac_status
1886fi
1887 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1889 as_fn_set_status $ac_retval
35fa52c0
DWT
1890
1891} # ac_fn_c_try_run
6b66678a 1892
9c60689e
DWT
1893# ac_fn_c_check_func LINENO FUNC VAR
1894# ----------------------------------
1895# Tests whether FUNC exists, setting the cache variable VAR accordingly
1896ac_fn_c_check_func ()
6b66678a
DWT
1897{
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1900$as_echo_n "checking for $2... " >&6; }
ee134472 1901if eval \${$3+:} false; then :
9c60689e 1902 $as_echo_n "(cached) " >&6
6b66678a 1903else
9c60689e
DWT
1904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905/* end confdefs.h. */
1906/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1908#define $2 innocuous_$2
6b66678a 1909
9c60689e
DWT
1910/* System header to define __stub macros and hopefully few prototypes,
1911 which can conflict with char $2 (); below.
1912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1913 <limits.h> exists even on freestanding compilers. */
1914
1915#ifdef __STDC__
1916# include <limits.h>
1917#else
1918# include <assert.h>
1919#endif
1920
1921#undef $2
1922
1923/* Override any GCC internal prototype to avoid an error.
1924 Use char because int might match the return type of a GCC
1925 builtin and then its argument prototype would still apply. */
1926#ifdef __cplusplus
1927extern "C"
1928#endif
1929char $2 ();
1930/* The GNU C library defines this for functions which it implements
1931 to always fail with ENOSYS. Some functions are actually named
1932 something starting with __ and the normal name is an alias. */
1933#if defined __stub_$2 || defined __stub___$2
1934choke me
1935#endif
1936
1937int
1938main ()
1939{
1940return $2 ();
1941 ;
1942 return 0;
1943}
1944_ACEOF
1945if ac_fn_c_try_link "$LINENO"; then :
1946 eval "$3=yes"
1947else
1948 eval "$3=no"
1949fi
1950rm -f core conftest.err conftest.$ac_objext \
1951 conftest$ac_exeext conftest.$ac_ext
6b66678a 1952fi
9c60689e
DWT
1953eval ac_res=\$$3
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955$as_echo "$ac_res" >&6; }
ee134472 1956 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6b66678a 1957
9c60689e 1958} # ac_fn_c_check_func
6b66678a 1959
9c60689e
DWT
1960# ac_fn_cxx_try_cpp LINENO
1961# ------------------------
1962# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1963ac_fn_cxx_try_cpp ()
1964{
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966 if { { ac_try="$ac_cpp conftest.$ac_ext"
1967case "(($ac_try" in
1968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1969 *) ac_try_echo=$ac_try;;
1970esac
1971eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1972$as_echo "$ac_try_echo"; } >&5
1973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1974 ac_status=$?
1975 if test -s conftest.err; then
1976 grep -v '^ *+' conftest.err >conftest.er1
1977 cat conftest.er1 >&5
1978 mv -f conftest.er1 conftest.err
1979 fi
1980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12833ad8 1981 test $ac_status = 0; } > conftest.i && {
9c60689e
DWT
1982 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1983 test ! -s conftest.err
1984 }; then :
1985 ac_retval=0
1986else
1987 $as_echo "$as_me: failed program was:" >&5
1988sed 's/^/| /' conftest.$ac_ext >&5
1989
1990 ac_retval=1
1991fi
ee134472 1992 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
1993 as_fn_set_status $ac_retval
1994
1995} # ac_fn_cxx_try_cpp
1996
1997# ac_fn_cxx_try_link LINENO
1998# -------------------------
1999# Try to link conftest.$ac_ext, and return whether this succeeded.
2000ac_fn_cxx_try_link ()
2001{
2002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2003 rm -f conftest.$ac_objext conftest$ac_exeext
2004 if { { ac_try="$ac_link"
2005case "(($ac_try" in
2006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2007 *) ac_try_echo=$ac_try;;
2008esac
2009eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2010$as_echo "$ac_try_echo"; } >&5
2011 (eval "$ac_link") 2>conftest.err
2012 ac_status=$?
2013 if test -s conftest.err; then
2014 grep -v '^ *+' conftest.err >conftest.er1
2015 cat conftest.er1 >&5
2016 mv -f conftest.er1 conftest.err
2017 fi
2018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2019 test $ac_status = 0; } && {
2020 test -z "$ac_cxx_werror_flag" ||
2021 test ! -s conftest.err
2022 } && test -s conftest$ac_exeext && {
2023 test "$cross_compiling" = yes ||
53ba6704 2024 test -x conftest$ac_exeext
9c60689e
DWT
2025 }; then :
2026 ac_retval=0
2027else
2028 $as_echo "$as_me: failed program was:" >&5
2029sed 's/^/| /' conftest.$ac_ext >&5
2030
2031 ac_retval=1
2032fi
2033 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2034 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2035 # interfere with the next link command; also delete a directory that is
2036 # left behind by Apple's compiler. We do this before executing the actions.
2037 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 2038 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
2039 as_fn_set_status $ac_retval
2040
2041} # ac_fn_cxx_try_link
2042
47aaa820
DWT
2043# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2044# ---------------------------------------------------------
2045# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2046# the include files in INCLUDES and setting the cache variable VAR
2047# accordingly.
2048ac_fn_cxx_check_header_mongrel ()
2049{
2050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
ee134472 2051 if eval \${$3+:} false; then :
47aaa820
DWT
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2053$as_echo_n "checking for $2... " >&6; }
ee134472 2054if eval \${$3+:} false; then :
47aaa820
DWT
2055 $as_echo_n "(cached) " >&6
2056fi
2057eval ac_res=\$$3
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2059$as_echo "$ac_res" >&6; }
2060else
2061 # Is the header compilable?
2062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2063$as_echo_n "checking $2 usability... " >&6; }
2064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065/* end confdefs.h. */
2066$4
2067#include <$2>
2068_ACEOF
2069if ac_fn_cxx_try_compile "$LINENO"; then :
2070 ac_header_compiler=yes
2071else
2072 ac_header_compiler=no
2073fi
2074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2076$as_echo "$ac_header_compiler" >&6; }
2077
2078# Is the header present?
2079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2080$as_echo_n "checking $2 presence... " >&6; }
2081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082/* end confdefs.h. */
2083#include <$2>
2084_ACEOF
2085if ac_fn_cxx_try_cpp "$LINENO"; then :
2086 ac_header_preproc=yes
2087else
2088 ac_header_preproc=no
2089fi
12833ad8 2090rm -f conftest.err conftest.i conftest.$ac_ext
47aaa820
DWT
2091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2092$as_echo "$ac_header_preproc" >&6; }
2093
2094# So? What about this header?
2095case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2096 yes:no: )
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2098$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2100$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2101 ;;
2102 no:yes:* )
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2104$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2106$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2108$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2110$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2112$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
12833ad8 2113( $as_echo "## -------------------------------- ##
47aaa820 2114## Report this to saurik@saurik.com ##
12833ad8 2115## -------------------------------- ##"
47aaa820
DWT
2116 ) | sed "s/^/$as_me: WARNING: /" >&2
2117 ;;
2118esac
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2120$as_echo_n "checking for $2... " >&6; }
ee134472 2121if eval \${$3+:} false; then :
47aaa820
DWT
2122 $as_echo_n "(cached) " >&6
2123else
2124 eval "$3=\$ac_header_compiler"
2125fi
2126eval ac_res=\$$3
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2128$as_echo "$ac_res" >&6; }
2129fi
ee134472 2130 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
47aaa820
DWT
2131
2132} # ac_fn_cxx_check_header_mongrel
2133
c823f118
DWT
2134# ac_fn_objcxx_try_link LINENO
2135# ----------------------------
2136# Try to link conftest.$ac_ext, and return whether this succeeded.
2137ac_fn_objcxx_try_link ()
2138{
2139 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2140 rm -f conftest.$ac_objext conftest$ac_exeext
2141 if { { ac_try="$ac_link"
2142case "(($ac_try" in
2143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2144 *) ac_try_echo=$ac_try;;
2145esac
2146eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2147$as_echo "$ac_try_echo"; } >&5
2148 (eval "$ac_link") 2>conftest.err
2149 ac_status=$?
2150 if test -s conftest.err; then
2151 grep -v '^ *+' conftest.err >conftest.er1
2152 cat conftest.er1 >&5
2153 mv -f conftest.er1 conftest.err
2154 fi
2155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2156 test $ac_status = 0; } && {
2157 test -z "$ac_objcxx_werror_flag" ||
2158 test ! -s conftest.err
2159 } && test -s conftest$ac_exeext && {
2160 test "$cross_compiling" = yes ||
53ba6704 2161 test -x conftest$ac_exeext
c823f118
DWT
2162 }; then :
2163 ac_retval=0
2164else
2165 $as_echo "$as_me: failed program was:" >&5
2166sed 's/^/| /' conftest.$ac_ext >&5
2167
2168 ac_retval=1
2169fi
2170 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2171 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2172 # interfere with the next link command; also delete a directory that is
2173 # left behind by Apple's compiler. We do this before executing the actions.
2174 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 2175 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
c823f118
DWT
2176 as_fn_set_status $ac_retval
2177
2178} # ac_fn_objcxx_try_link
c7aa54aa
DWT
2179cat >config.log <<_ACEOF
2180This file contains any messages produced by compilers while
2181running configure, to aid debugging if configure makes a mistake.
2182
2183It was created by Cycript $as_me 0.9, which was
53ba6704 2184generated by GNU Autoconf 2.69. Invocation command line was
c7aa54aa
DWT
2185
2186 $ $0 $@
2187
2188_ACEOF
2189exec 5>>config.log
2190{
2191cat <<_ASUNAME
2192## --------- ##
2193## Platform. ##
2194## --------- ##
2195
2196hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2197uname -m = `(uname -m) 2>/dev/null || echo unknown`
2198uname -r = `(uname -r) 2>/dev/null || echo unknown`
2199uname -s = `(uname -s) 2>/dev/null || echo unknown`
2200uname -v = `(uname -v) 2>/dev/null || echo unknown`
2201
2202/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2203/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2204
2205/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2206/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2207/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2208/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2209/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2210/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2211/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2212
2213_ASUNAME
2214
2215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216for as_dir in $PATH
2217do
2218 IFS=$as_save_IFS
2219 test -z "$as_dir" && as_dir=.
2220 $as_echo "PATH: $as_dir"
2221 done
2222IFS=$as_save_IFS
2223
2224} >&5
2225
2226cat >&5 <<_ACEOF
2227
2228
2229## ----------- ##
2230## Core tests. ##
2231## ----------- ##
2232
2233_ACEOF
2234
2235
2236# Keep a trace of the command line.
2237# Strip out --no-create and --no-recursion so they do not pile up.
2238# Strip out --silent because we don't want to record it for future runs.
2239# Also quote any args containing shell meta-characters.
2240# Make two passes to allow for proper duplicate-argument suppression.
2241ac_configure_args=
2242ac_configure_args0=
2243ac_configure_args1=
2244ac_must_keep_next=false
2245for ac_pass in 1 2
2246do
2247 for ac_arg
2248 do
2249 case $ac_arg in
2250 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2251 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2252 | -silent | --silent | --silen | --sile | --sil)
2253 continue ;;
2254 *\'*)
2255 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2256 esac
2257 case $ac_pass in
2258 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2259 2)
2260 as_fn_append ac_configure_args1 " '$ac_arg'"
2261 if test $ac_must_keep_next = true; then
2262 ac_must_keep_next=false # Got value, back to normal.
2263 else
2264 case $ac_arg in
2265 *=* | --config-cache | -C | -disable-* | --disable-* \
2266 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2267 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2268 | -with-* | --with-* | -without-* | --without-* | --x)
2269 case "$ac_configure_args0 " in
2270 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2271 esac
2272 ;;
2273 -* ) ac_must_keep_next=true ;;
2274 esac
2275 fi
2276 as_fn_append ac_configure_args " '$ac_arg'"
2277 ;;
2278 esac
2279 done
2280done
2281{ ac_configure_args0=; unset ac_configure_args0;}
2282{ ac_configure_args1=; unset ac_configure_args1;}
2283
2284# When interrupted or exit'd, cleanup temporary files, and complete
2285# config.log. We remove comments because anyway the quotes in there
2286# would cause problems or look ugly.
2287# WARNING: Use '\'' to represent an apostrophe within the trap.
2288# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2289trap 'exit_status=$?
2290 # Save into config.log some information that might help in debugging.
2291 {
2292 echo
2293
12833ad8 2294 $as_echo "## ---------------- ##
c7aa54aa 2295## Cache variables. ##
12833ad8 2296## ---------------- ##"
c7aa54aa
DWT
2297 echo
2298 # The following way of writing the cache mishandles newlines in values,
2299(
2300 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2301 eval ac_val=\$$ac_var
2302 case $ac_val in #(
2303 *${as_nl}*)
2304 case $ac_var in #(
2305 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2306$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2307 esac
2308 case $ac_var in #(
2309 _ | IFS | as_nl) ;; #(
2310 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2311 *) { eval $ac_var=; unset $ac_var;} ;;
2312 esac ;;
2313 esac
2314 done
2315 (set) 2>&1 |
2316 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2317 *${as_nl}ac_space=\ *)
2318 sed -n \
2319 "s/'\''/'\''\\\\'\'''\''/g;
2320 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2321 ;; #(
2322 *)
2323 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2324 ;;
2325 esac |
2326 sort
2327)
2328 echo
2329
12833ad8 2330 $as_echo "## ----------------- ##
c7aa54aa 2331## Output variables. ##
12833ad8 2332## ----------------- ##"
c7aa54aa
DWT
2333 echo
2334 for ac_var in $ac_subst_vars
2335 do
2336 eval ac_val=\$$ac_var
2337 case $ac_val in
2338 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2339 esac
2340 $as_echo "$ac_var='\''$ac_val'\''"
2341 done | sort
2342 echo
2343
2344 if test -n "$ac_subst_files"; then
12833ad8 2345 $as_echo "## ------------------- ##
c7aa54aa 2346## File substitutions. ##
12833ad8 2347## ------------------- ##"
c7aa54aa
DWT
2348 echo
2349 for ac_var in $ac_subst_files
2350 do
2351 eval ac_val=\$$ac_var
2352 case $ac_val in
2353 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2354 esac
2355 $as_echo "$ac_var='\''$ac_val'\''"
2356 done | sort
2357 echo
2358 fi
2359
2360 if test -s confdefs.h; then
12833ad8 2361 $as_echo "## ----------- ##
c7aa54aa 2362## confdefs.h. ##
12833ad8 2363## ----------- ##"
c7aa54aa
DWT
2364 echo
2365 cat confdefs.h
2366 echo
2367 fi
2368 test "$ac_signal" != 0 &&
2369 $as_echo "$as_me: caught signal $ac_signal"
2370 $as_echo "$as_me: exit $exit_status"
2371 } >&5
2372 rm -f core *.core core.conftest.* &&
2373 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2374 exit $exit_status
2375' 0
2376for ac_signal in 1 2 13 15; do
2377 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2378done
2379ac_signal=0
2380
2381# confdefs.h avoids OS command line length limits that DEFS can exceed.
2382rm -f -r conftest* confdefs.h
2383
2384$as_echo "/* confdefs.h */" > confdefs.h
2385
2386# Predefined preprocessor variables.
2387
2388cat >>confdefs.h <<_ACEOF
2389#define PACKAGE_NAME "$PACKAGE_NAME"
2390_ACEOF
2391
2392cat >>confdefs.h <<_ACEOF
2393#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2394_ACEOF
2395
2396cat >>confdefs.h <<_ACEOF
2397#define PACKAGE_VERSION "$PACKAGE_VERSION"
2398_ACEOF
2399
2400cat >>confdefs.h <<_ACEOF
2401#define PACKAGE_STRING "$PACKAGE_STRING"
2402_ACEOF
2403
2404cat >>confdefs.h <<_ACEOF
2405#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2406_ACEOF
2407
2408cat >>confdefs.h <<_ACEOF
2409#define PACKAGE_URL "$PACKAGE_URL"
2410_ACEOF
2411
2412
2413# Let the site file select an alternate cache file if it wants to.
2414# Prefer an explicitly selected file to automatically selected ones.
2415ac_site_file1=NONE
2416ac_site_file2=NONE
2417if test -n "$CONFIG_SITE"; then
12833ad8
JF
2418 # We do not want a PATH search for config.site.
2419 case $CONFIG_SITE in #((
2420 -*) ac_site_file1=./$CONFIG_SITE;;
2421 */*) ac_site_file1=$CONFIG_SITE;;
2422 *) ac_site_file1=./$CONFIG_SITE;;
2423 esac
c7aa54aa
DWT
2424elif test "x$prefix" != xNONE; then
2425 ac_site_file1=$prefix/share/config.site
2426 ac_site_file2=$prefix/etc/config.site
2427else
2428 ac_site_file1=$ac_default_prefix/share/config.site
2429 ac_site_file2=$ac_default_prefix/etc/config.site
2430fi
2431for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2432do
2433 test "x$ac_site_file" = xNONE && continue
9c60689e 2434 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
c7aa54aa
DWT
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2436$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2437 sed 's/^/| /' "$ac_site_file" >&5
12833ad8
JF
2438 . "$ac_site_file" \
2439 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2440$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2441as_fn_error $? "failed to load site script $ac_site_file
ee134472 2442See \`config.log' for more details" "$LINENO" 5; }
c7aa54aa
DWT
2443 fi
2444done
2445
2446if test -r "$cache_file"; then
9c60689e
DWT
2447 # Some versions of bash will fail to source /dev/null (special files
2448 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2449 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
c7aa54aa
DWT
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2451$as_echo "$as_me: loading cache $cache_file" >&6;}
2452 case $cache_file in
2453 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2454 *) . "./$cache_file";;
2455 esac
2456 fi
2457else
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2459$as_echo "$as_me: creating cache $cache_file" >&6;}
2460 >$cache_file
2461fi
2462
2463# Check that the precious variables saved in the cache have kept the same
2464# value.
2465ac_cache_corrupted=false
2466for ac_var in $ac_precious_vars; do
2467 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2468 eval ac_new_set=\$ac_env_${ac_var}_set
2469 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2470 eval ac_new_val=\$ac_env_${ac_var}_value
2471 case $ac_old_set,$ac_new_set in
2472 set,)
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2474$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2475 ac_cache_corrupted=: ;;
2476 ,set)
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2478$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2479 ac_cache_corrupted=: ;;
2480 ,);;
2481 *)
2482 if test "x$ac_old_val" != "x$ac_new_val"; then
2483 # differences in whitespace do not lead to failure.
2484 ac_old_val_w=`echo x $ac_old_val`
2485 ac_new_val_w=`echo x $ac_new_val`
2486 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2488$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2489 ac_cache_corrupted=:
2490 else
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2492$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2493 eval $ac_var=\$ac_old_val
2494 fi
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2496$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2498$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2499 fi;;
2500 esac
2501 # Pass precious variables to config.status.
2502 if test "$ac_new_set" = set; then
2503 case $ac_new_val in
2504 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2505 *) ac_arg=$ac_var=$ac_new_val ;;
2506 esac
2507 case " $ac_configure_args " in
2508 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2509 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2510 esac
2511 fi
2512done
2513if $ac_cache_corrupted; then
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2515$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2517$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
12833ad8 2518 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
c7aa54aa
DWT
2519fi
2520## -------------------- ##
2521## Main body of script. ##
2522## -------------------- ##
2523
2524ac_ext=c
2525ac_cpp='$CPP $CPPFLAGS'
2526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2528ac_compiler_gnu=$ac_cv_c_compiler_gnu
2529
2530
66170b30
JF
2531
2532
35fa52c0 2533
6b66678a
DWT
2534ac_aux_dir=
2535for ac_dir in . "$srcdir"/.; do
12833ad8
JF
2536 if test -f "$ac_dir/install-sh"; then
2537 ac_aux_dir=$ac_dir
2538 ac_install_sh="$ac_aux_dir/install-sh -c"
2539 break
2540 elif test -f "$ac_dir/install.sh"; then
2541 ac_aux_dir=$ac_dir
2542 ac_install_sh="$ac_aux_dir/install.sh -c"
2543 break
2544 elif test -f "$ac_dir/shtool"; then
2545 ac_aux_dir=$ac_dir
2546 ac_install_sh="$ac_aux_dir/shtool install -c"
2547 break
2548 fi
6b66678a
DWT
2549done
2550if test -z "$ac_aux_dir"; then
12833ad8 2551 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
6b66678a
DWT
2552fi
2553
2554# These three variables are undocumented and unsupported,
2555# and are intended to be withdrawn in a future Autoconf release.
2556# They can cause serious problems if a builder's source tree is in a directory
2557# whose full name contains unusual characters.
2558ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2559ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2560ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2561
2562
9c60689e 2563
296ee9a6
JF
2564ac_config_headers="$ac_config_headers config.h"
2565
9c60689e 2566
795230e5 2567am__api_version='1.15'
9c60689e 2568
66170b30
JF
2569# Find a good install program. We prefer a C program (faster),
2570# so one script is as good as another. But avoid the broken or
2571# incompatible versions:
2572# SysV /etc/install, /usr/sbin/install
2573# SunOS /usr/etc/install
2574# IRIX /sbin/install
2575# AIX /bin/install
2576# AmigaOS /C/install, which installs bootblocks on floppy discs
2577# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2578# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2579# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2580# OS/2's system install, which has a completely different semantic
2581# ./install, which can be erroneously created by make from ./install.sh.
2582# Reject install programs that cannot install multiple files.
2583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2584$as_echo_n "checking for a BSD-compatible install... " >&6; }
2585if test -z "$INSTALL"; then
2586if ${ac_cv_path_install+:} false; then :
2587 $as_echo_n "(cached) " >&6
2588else
2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590for as_dir in $PATH
2591do
2592 IFS=$as_save_IFS
2593 test -z "$as_dir" && as_dir=.
2594 # Account for people who put trailing slashes in PATH elements.
2595case $as_dir/ in #((
2596 ./ | .// | /[cC]/* | \
2597 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2598 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2599 /usr/ucb/* ) ;;
2600 *)
2601 # OSF1 and SCO ODT 3.0 have their own names for install.
2602 # Don't use installbsd from OSF since it installs stuff as root
2603 # by default.
2604 for ac_prog in ginstall scoinst install; do
2605 for ac_exec_ext in '' $ac_executable_extensions; do
2606 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2607 if test $ac_prog = install &&
2608 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2609 # AIX install. It has an incompatible calling convention.
2610 :
2611 elif test $ac_prog = install &&
2612 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2613 # program-specific install script used by HP pwplus--don't use.
2614 :
2615 else
2616 rm -rf conftest.one conftest.two conftest.dir
2617 echo one > conftest.one
2618 echo two > conftest.two
2619 mkdir conftest.dir
2620 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2621 test -s conftest.one && test -s conftest.two &&
2622 test -s conftest.dir/conftest.one &&
2623 test -s conftest.dir/conftest.two
2624 then
2625 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2626 break 3
2627 fi
2628 fi
2629 fi
2630 done
2631 done
2632 ;;
2633esac
9c60689e 2634
66170b30
JF
2635 done
2636IFS=$as_save_IFS
9c60689e 2637
66170b30 2638rm -rf conftest.one conftest.two conftest.dir
9c60689e 2639
66170b30
JF
2640fi
2641 if test "${ac_cv_path_install+set}" = set; then
2642 INSTALL=$ac_cv_path_install
2643 else
2644 # As a last resort, use the slow shell script. Don't cache a
2645 # value for INSTALL within a source directory, because that will
2646 # break other packages using the cache if that directory is
2647 # removed, or if the value is a relative name.
2648 INSTALL=$ac_install_sh
2649 fi
2650fi
2651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2652$as_echo "$INSTALL" >&6; }
9c60689e 2653
66170b30
JF
2654# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2655# It thinks the first close brace ends the variable substitution.
2656test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9c60689e 2657
66170b30 2658test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9c60689e 2659
66170b30 2660test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9c60689e 2661
66170b30
JF
2662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2663$as_echo_n "checking whether build environment is sane... " >&6; }
2664# Reject unsafe characters in $srcdir or the absolute working directory
2665# name. Accept space and tab only in the latter.
2666am_lf='
2667'
2668case `pwd` in
2669 *[\\\"\#\$\&\'\`$am_lf]*)
2670 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2671esac
2672case $srcdir in
2673 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2674 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2675esac
9c60689e 2676
66170b30
JF
2677# Do 'set' in a subshell so we don't clobber the current shell's
2678# arguments. Must try -L first in case configure is actually a
2679# symlink; some systems play weird games with the mod time of symlinks
2680# (eg FreeBSD returns the mod time of the symlink's containing
2681# directory).
2682if (
2683 am_has_slept=no
2684 for am_try in 1 2; do
2685 echo "timestamp, slept: $am_has_slept" > conftest.file
2686 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2687 if test "$*" = "X"; then
2688 # -L didn't work.
2689 set X `ls -t "$srcdir/configure" conftest.file`
2690 fi
2691 if test "$*" != "X $srcdir/configure conftest.file" \
2692 && test "$*" != "X conftest.file $srcdir/configure"; then
2693
2694 # If neither matched, then we have a broken ls. This can happen
2695 # if, for instance, CONFIG_SHELL is bash and it inherits a
2696 # broken ls alias from the environment. This has actually
2697 # happened. Such a system could not be considered "sane".
2698 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2699 alias in your environment" "$LINENO" 5
2700 fi
2701 if test "$2" = conftest.file || test $am_try -eq 2; then
2702 break
2703 fi
2704 # Just in case.
2705 sleep 1
2706 am_has_slept=yes
2707 done
2708 test "$2" = conftest.file
2709 )
2710then
2711 # Ok.
2712 :
2713else
2714 as_fn_error $? "newly created file is older than distributed files!
2715Check your system clock" "$LINENO" 5
2716fi
2717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2718$as_echo "yes" >&6; }
2719# If we didn't sleep, we still need to ensure time stamps of config.status and
2720# generated files are strictly newer.
2721am_sleep_pid=
2722if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2723 ( sleep 1 ) &
2724 am_sleep_pid=$!
2725fi
2726
2727rm -f conftest.file
2728
2729test "$program_prefix" != NONE &&
2730 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2731# Use a double $ so make ignores it.
2732test "$program_suffix" != NONE &&
2733 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2734# Double any \ or $.
2735# By default was `s,x,x', remove it if useless.
2736ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2737program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2738
795230e5
JF
2739# Expand $ac_aux_dir to an absolute path.
2740am_aux_dir=`cd "$ac_aux_dir" && pwd`
66170b30
JF
2741
2742if test x"${MISSING+set}" != xset; then
2743 case $am_aux_dir in
2744 *\ * | *\ *)
2745 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2746 *)
2747 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2748 esac
2749fi
2750# Use eval to expand $SHELL
2751if eval "$MISSING --is-lightweight"; then
2752 am_missing_run="$MISSING "
2753else
2754 am_missing_run=
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2756$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2757fi
9c60689e 2758
795230e5 2759if test x"${install_sh+set}" != xset; then
66170b30
JF
2760 case $am_aux_dir in
2761 *\ * | *\ *)
2762 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2763 *)
2764 install_sh="\${SHELL} $am_aux_dir/install-sh"
2765 esac
2766fi
9c60689e 2767
66170b30
JF
2768# Installed binaries are usually stripped using 'strip' when the user
2769# run "make install-strip". However 'strip' might not be the right
2770# tool to use in cross-compilation environments, therefore Automake
2771# will honor the 'STRIP' environment variable to overrule this program.
2772if test "$cross_compiling" != no; then
2773 if test -n "$ac_tool_prefix"; then
2774 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2775set dummy ${ac_tool_prefix}strip; ac_word=$2
2776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2777$as_echo_n "checking for $ac_word... " >&6; }
2778if ${ac_cv_prog_STRIP+:} false; then :
2779 $as_echo_n "(cached) " >&6
2780else
2781 if test -n "$STRIP"; then
2782 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2783else
2784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785for as_dir in $PATH
2786do
2787 IFS=$as_save_IFS
2788 test -z "$as_dir" && as_dir=.
2789 for ac_exec_ext in '' $ac_executable_extensions; do
2790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2791 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2793 break 2
2794 fi
2795done
2796 done
2797IFS=$as_save_IFS
9c60689e 2798
66170b30
JF
2799fi
2800fi
2801STRIP=$ac_cv_prog_STRIP
2802if test -n "$STRIP"; then
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2804$as_echo "$STRIP" >&6; }
2805else
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2807$as_echo "no" >&6; }
2808fi
9c60689e 2809
9c60689e 2810
66170b30
JF
2811fi
2812if test -z "$ac_cv_prog_STRIP"; then
2813 ac_ct_STRIP=$STRIP
2814 # Extract the first word of "strip", so it can be a program name with args.
2815set dummy strip; ac_word=$2
2816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2817$as_echo_n "checking for $ac_word... " >&6; }
2818if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9c60689e
DWT
2819 $as_echo_n "(cached) " >&6
2820else
66170b30
JF
2821 if test -n "$ac_ct_STRIP"; then
2822 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2823else
2824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825for as_dir in $PATH
2826do
2827 IFS=$as_save_IFS
2828 test -z "$as_dir" && as_dir=.
2829 for ac_exec_ext in '' $ac_executable_extensions; do
2830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2831 ac_cv_prog_ac_ct_STRIP="strip"
2832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2833 break 2
2834 fi
2835done
2836 done
2837IFS=$as_save_IFS
9c60689e
DWT
2838
2839fi
66170b30
JF
2840fi
2841ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2842if test -n "$ac_ct_STRIP"; then
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2844$as_echo "$ac_ct_STRIP" >&6; }
2845else
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2847$as_echo "no" >&6; }
2848fi
2849
2850 if test "x$ac_ct_STRIP" = x; then
2851 STRIP=":"
2852 else
2853 case $cross_compiling:$ac_tool_warned in
2854yes:)
2855{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2856$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2857ac_tool_warned=yes ;;
9c60689e 2858esac
66170b30
JF
2859 STRIP=$ac_ct_STRIP
2860 fi
2861else
2862 STRIP="$ac_cv_prog_STRIP"
2863fi
9c60689e 2864
66170b30
JF
2865fi
2866INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9c60689e 2867
66170b30
JF
2868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2869$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2870if test -z "$MKDIR_P"; then
2871 if ${ac_cv_path_mkdir+:} false; then :
9c60689e
DWT
2872 $as_echo_n "(cached) " >&6
2873else
66170b30
JF
2874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2876do
2877 IFS=$as_save_IFS
2878 test -z "$as_dir" && as_dir=.
2879 for ac_prog in mkdir gmkdir; do
2880 for ac_exec_ext in '' $ac_executable_extensions; do
2881 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2882 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2883 'mkdir (GNU coreutils) '* | \
2884 'mkdir (coreutils) '* | \
2885 'mkdir (fileutils) '4.1*)
2886 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2887 break 3;;
2888 esac
2889 done
2890 done
2891 done
2892IFS=$as_save_IFS
2893
2894fi
2895
2896 test -d ./--version && rmdir ./--version
2897 if test "${ac_cv_path_mkdir+set}" = set; then
2898 MKDIR_P="$ac_cv_path_mkdir -p"
2899 else
2900 # As a last resort, use the slow shell script. Don't cache a
2901 # value for MKDIR_P within a source directory, because that will
2902 # break other packages using the cache if that directory is
2903 # removed, or if the value is a relative name.
2904 MKDIR_P="$ac_install_sh -d"
2905 fi
2906fi
2907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2908$as_echo "$MKDIR_P" >&6; }
2909
2910for ac_prog in gawk mawk nawk awk
2911do
2912 # Extract the first word of "$ac_prog", so it can be a program name with args.
2913set dummy $ac_prog; ac_word=$2
2914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2915$as_echo_n "checking for $ac_word... " >&6; }
2916if ${ac_cv_prog_AWK+:} false; then :
2917 $as_echo_n "(cached) " >&6
2918else
2919 if test -n "$AWK"; then
2920 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2921else
2922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923for as_dir in $PATH
2924do
2925 IFS=$as_save_IFS
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929 ac_cv_prog_AWK="$ac_prog"
2930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 break 2
2932 fi
2933done
2934 done
2935IFS=$as_save_IFS
2936
2937fi
2938fi
2939AWK=$ac_cv_prog_AWK
2940if test -n "$AWK"; then
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2942$as_echo "$AWK" >&6; }
2943else
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2945$as_echo "no" >&6; }
2946fi
2947
2948
2949 test -n "$AWK" && break
2950done
2951
2952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2953$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2954set x ${MAKE-make}
2955ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2956if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2957 $as_echo_n "(cached) " >&6
2958else
2959 cat >conftest.make <<\_ACEOF
2960SHELL = /bin/sh
2961all:
2962 @echo '@@@%%%=$(MAKE)=@@@%%%'
2963_ACEOF
2964# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2965case `${MAKE-make} -f conftest.make 2>/dev/null` in
2966 *@@@%%%=?*=@@@%%%*)
2967 eval ac_cv_prog_make_${ac_make}_set=yes;;
2968 *)
2969 eval ac_cv_prog_make_${ac_make}_set=no;;
2970esac
2971rm -f conftest.make
2972fi
2973if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2975$as_echo "yes" >&6; }
2976 SET_MAKE=
2977else
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2979$as_echo "no" >&6; }
2980 SET_MAKE="MAKE=${MAKE-make}"
2981fi
2982
2983rm -rf .tst 2>/dev/null
2984mkdir .tst 2>/dev/null
2985if test -d .tst; then
2986 am__leading_dot=.
2987else
2988 am__leading_dot=_
2989fi
2990rmdir .tst 2>/dev/null
2991
2992# Check whether --enable-silent-rules was given.
2993if test "${enable_silent_rules+set}" = set; then :
2994 enableval=$enable_silent_rules;
2995fi
2996
2997case $enable_silent_rules in # (((
2998 yes) AM_DEFAULT_VERBOSITY=0;;
2999 no) AM_DEFAULT_VERBOSITY=1;;
3000 *) AM_DEFAULT_VERBOSITY=1;;
3001esac
3002am_make=${MAKE-make}
3003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3004$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3005if ${am_cv_make_support_nested_variables+:} false; then :
3006 $as_echo_n "(cached) " >&6
3007else
3008 if $as_echo 'TRUE=$(BAR$(V))
3009BAR0=false
3010BAR1=true
3011V=1
3012am__doit:
3013 @$(TRUE)
3014.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3015 am_cv_make_support_nested_variables=yes
3016else
3017 am_cv_make_support_nested_variables=no
3018fi
3019fi
3020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3021$as_echo "$am_cv_make_support_nested_variables" >&6; }
3022if test $am_cv_make_support_nested_variables = yes; then
3023 AM_V='$(V)'
3024 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3025else
3026 AM_V=$AM_DEFAULT_VERBOSITY
3027 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3028fi
3029AM_BACKSLASH='\'
3030
3031if test "`cd $srcdir && pwd`" != "`pwd`"; then
3032 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3033 # is not polluted with repeated "-I."
3034 am__isrc=' -I$(srcdir)'
3035 # test to see if srcdir already configured
3036 if test -f $srcdir/config.status; then
3037 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3038 fi
3039fi
3040
3041# test whether we have cygpath
3042if test -z "$CYGPATH_W"; then
3043 if (cygpath --version) >/dev/null 2>/dev/null; then
3044 CYGPATH_W='cygpath -w'
3045 else
3046 CYGPATH_W=echo
3047 fi
3048fi
3049
3050
3051# Define the identity of the package.
3052 PACKAGE='cycript'
3053 VERSION='0.9'
3054
3055
3056cat >>confdefs.h <<_ACEOF
3057#define PACKAGE "$PACKAGE"
3058_ACEOF
3059
3060
3061cat >>confdefs.h <<_ACEOF
3062#define VERSION "$VERSION"
3063_ACEOF
3064
3065# Some tools Automake needs.
3066
3067ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3068
3069
3070AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3071
3072
3073AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3074
3075
3076AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3077
3078
3079MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3080
3081# For better backward compatibility. To be removed once Automake 1.9.x
3082# dies out for good. For more background, see:
3083# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3084# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3085mkdir_p='$(MKDIR_P)'
3086
795230e5
JF
3087# We need awk for the "check" target (and possibly the TAP driver). The
3088# system "awk" is bad on some platforms.
66170b30
JF
3089# Always define AMTAR for backward compatibility. Yes, it's still used
3090# in the wild :-( We should find a proper way to deprecate it ...
3091AMTAR='$${TAR-tar}'
3092
a93f15c0
JF
3093
3094# We'll loop over all known methods to create a tar archive until one works.
3095_am_tools='gnutar pax cpio none'
3096
66170b30
JF
3097am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3098
3099
3100
3101
3102
66170b30 3103
a93f15c0
JF
3104# POSIX will say in a future version that running "rm -f" with no argument
3105# is OK; and we want to be able to make that assumption in our Makefile
3106# recipes. So use an aggressive probe to check that the usage we want is
3107# actually supported "in the wild" to an acceptable degree.
3108# See automake bug#10828.
3109# To make any issue more visible, cause the running configure to be aborted
3110# by default if the 'rm' program in use doesn't match our expectations; the
3111# user can still override this though.
3112if rm -f && rm -fr && rm -rf; then : OK; else
3113 cat >&2 <<'END'
3114Oops!
3115
3116Your 'rm' program seems unable to run without file operands specified
3117on the command line, even when the '-f' option is present. This is contrary
3118to the behaviour of most rm programs out there, and not conforming with
3119the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3120
3121Please tell bug-automake@gnu.org about your system, including the value
3122of your $PATH and any error possibly output before this message. This
3123can help us improve future automake versions.
3124
3125END
3126 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3127 echo 'Configuration will proceed anyway, since you have set the' >&2
3128 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3129 echo >&2
3130 else
3131 cat >&2 <<'END'
3132Aborting the configuration process, to ensure you take notice of the issue.
3133
3134You can download and install GNU coreutils to get an 'rm' implementation
3135that behaves properly: <http://www.gnu.org/software/coreutils/>.
3136
3137If you want to complete the configuration process using your problematic
3138'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3139to "yes", and re-run configure.
3140
3141END
3142 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3143 fi
3144fi
3145
795230e5 3146
babf7fe8
JF
3147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3148$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3149 # Check whether --enable-maintainer-mode was given.
3150if test "${enable_maintainer_mode+set}" = set; then :
3151 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3152else
3153 USE_MAINTAINER_MODE=no
3154fi
3155
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3157$as_echo "$USE_MAINTAINER_MODE" >&6; }
3158 if test $USE_MAINTAINER_MODE = yes; then
3159 MAINTAINER_MODE_TRUE=
3160 MAINTAINER_MODE_FALSE='#'
3161else
3162 MAINTAINER_MODE_TRUE='#'
3163 MAINTAINER_MODE_FALSE=
3164fi
3165
3166 MAINT=$MAINTAINER_MODE_TRUE
3167
3168
3169
a93f15c0
JF
3170ac_ext=c
3171ac_cpp='$CPP $CPPFLAGS'
3172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3174ac_compiler_gnu=$ac_cv_c_compiler_gnu
3175if test -n "$ac_tool_prefix"; then
3176 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3177set dummy ${ac_tool_prefix}gcc; ac_word=$2
dbadc56a
DWT
3178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3179$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 3180if ${ac_cv_prog_CC+:} false; then :
dbadc56a
DWT
3181 $as_echo_n "(cached) " >&6
3182else
a93f15c0
JF
3183 if test -n "$CC"; then
3184 ac_cv_prog_CC="$CC" # Let the user override the test.
dbadc56a
DWT
3185else
3186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187for as_dir in $PATH
3188do
3189 IFS=$as_save_IFS
3190 test -z "$as_dir" && as_dir=.
3191 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 3192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 3193 ac_cv_prog_CC="${ac_tool_prefix}gcc"
dbadc56a
DWT
3194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3195 break 2
3196 fi
3197done
3198 done
3199IFS=$as_save_IFS
3200
3201fi
3202fi
a93f15c0
JF
3203CC=$ac_cv_prog_CC
3204if test -n "$CC"; then
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3206$as_echo "$CC" >&6; }
35fa52c0
DWT
3207else
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209$as_echo "no" >&6; }
3210fi
3211
3212
35fa52c0 3213fi
a93f15c0
JF
3214if test -z "$ac_cv_prog_CC"; then
3215 ac_ct_CC=$CC
3216 # Extract the first word of "gcc", so it can be a program name with args.
3217set dummy gcc; ac_word=$2
35fa52c0
DWT
3218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3219$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 3220if ${ac_cv_prog_ac_ct_CC+:} false; then :
35fa52c0
DWT
3221 $as_echo_n "(cached) " >&6
3222else
a93f15c0
JF
3223 if test -n "$ac_ct_CC"; then
3224 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
35fa52c0
DWT
3225else
3226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227for as_dir in $PATH
3228do
3229 IFS=$as_save_IFS
3230 test -z "$as_dir" && as_dir=.
3231 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 3232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 3233 ac_cv_prog_ac_ct_CC="gcc"
35fa52c0
DWT
3234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3235 break 2
3236 fi
3237done
3238 done
3239IFS=$as_save_IFS
3240
3241fi
3242fi
a93f15c0
JF
3243ac_ct_CC=$ac_cv_prog_ac_ct_CC
3244if test -n "$ac_ct_CC"; then
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3246$as_echo "$ac_ct_CC" >&6; }
35fa52c0
DWT
3247else
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3249$as_echo "no" >&6; }
3250fi
3251
a93f15c0
JF
3252 if test "x$ac_ct_CC" = x; then
3253 CC=""
35fa52c0
DWT
3254 else
3255 case $cross_compiling:$ac_tool_warned in
3256yes:)
3257{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3258$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3259ac_tool_warned=yes ;;
3260esac
a93f15c0 3261 CC=$ac_ct_CC
35fa52c0 3262 fi
a93f15c0
JF
3263else
3264 CC="$ac_cv_prog_CC"
35fa52c0
DWT
3265fi
3266
a93f15c0
JF
3267if test -z "$CC"; then
3268 if test -n "$ac_tool_prefix"; then
3269 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3270set dummy ${ac_tool_prefix}cc; ac_word=$2
3271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3272$as_echo_n "checking for $ac_word... " >&6; }
3273if ${ac_cv_prog_CC+:} false; then :
3274 $as_echo_n "(cached) " >&6
3275else
3276 if test -n "$CC"; then
3277 ac_cv_prog_CC="$CC" # Let the user override the test.
3278else
3279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280for as_dir in $PATH
3281do
3282 IFS=$as_save_IFS
3283 test -z "$as_dir" && as_dir=.
3284 for ac_exec_ext in '' $ac_executable_extensions; do
3285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3286 ac_cv_prog_CC="${ac_tool_prefix}cc"
3287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3288 break 2
a243b558 3289 fi
35fa52c0 3290done
a93f15c0
JF
3291 done
3292IFS=$as_save_IFS
35fa52c0 3293
a93f15c0
JF
3294fi
3295fi
3296CC=$ac_cv_prog_CC
3297if test -n "$CC"; then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3299$as_echo "$CC" >&6; }
3300else
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302$as_echo "no" >&6; }
3303fi
35fa52c0 3304
35fa52c0 3305
a93f15c0
JF
3306 fi
3307fi
3308if test -z "$CC"; then
3309 # Extract the first word of "cc", so it can be a program name with args.
3310set dummy cc; ac_word=$2
3311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3312$as_echo_n "checking for $ac_word... " >&6; }
3313if ${ac_cv_prog_CC+:} false; then :
3314 $as_echo_n "(cached) " >&6
3315else
3316 if test -n "$CC"; then
3317 ac_cv_prog_CC="$CC" # Let the user override the test.
3318else
3319 ac_prog_rejected=no
3320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321for as_dir in $PATH
35fa52c0 3322do
a93f15c0
JF
3323 IFS=$as_save_IFS
3324 test -z "$as_dir" && as_dir=.
3325 for ac_exec_ext in '' $ac_executable_extensions; do
3326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3327 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3328 ac_prog_rejected=yes
3329 continue
3330 fi
3331 ac_cv_prog_CC="cc"
3332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3333 break 2
3334 fi
3335done
3336 done
3337IFS=$as_save_IFS
3338
3339if test $ac_prog_rejected = yes; then
3340 # We found a bogon in the path, so make sure we never use it.
3341 set dummy $ac_cv_prog_CC
3342 shift
3343 if test $# != 0; then
3344 # We chose a different compiler from the bogus one.
3345 # However, it has the same basename, so the bogon will be chosen
3346 # first if we set CC to just the basename; use the full file name.
3347 shift
3348 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3349 fi
3350fi
3351fi
3352fi
3353CC=$ac_cv_prog_CC
3354if test -n "$CC"; then
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3356$as_echo "$CC" >&6; }
3357else
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359$as_echo "no" >&6; }
3360fi
3361
3362
3363fi
3364if test -z "$CC"; then
3365 if test -n "$ac_tool_prefix"; then
3366 for ac_prog in cl.exe
3367 do
3368 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3369set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3371$as_echo_n "checking for $ac_word... " >&6; }
3372if ${ac_cv_prog_CC+:} false; then :
3373 $as_echo_n "(cached) " >&6
3374else
3375 if test -n "$CC"; then
3376 ac_cv_prog_CC="$CC" # Let the user override the test.
3377else
3378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379for as_dir in $PATH
3380do
3381 IFS=$as_save_IFS
3382 test -z "$as_dir" && as_dir=.
3383 for ac_exec_ext in '' $ac_executable_extensions; do
3384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3385 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3387 break 2
3388 fi
3389done
3390 done
3391IFS=$as_save_IFS
3392
3393fi
3394fi
3395CC=$ac_cv_prog_CC
3396if test -n "$CC"; then
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3398$as_echo "$CC" >&6; }
3399else
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3401$as_echo "no" >&6; }
3402fi
3403
3404
3405 test -n "$CC" && break
3406 done
3407fi
3408if test -z "$CC"; then
3409 ac_ct_CC=$CC
3410 for ac_prog in cl.exe
3411do
3412 # Extract the first word of "$ac_prog", so it can be a program name with args.
3413set dummy $ac_prog; ac_word=$2
3414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3415$as_echo_n "checking for $ac_word... " >&6; }
3416if ${ac_cv_prog_ac_ct_CC+:} false; then :
3417 $as_echo_n "(cached) " >&6
3418else
3419 if test -n "$ac_ct_CC"; then
3420 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3421else
3422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3423for as_dir in $PATH
3424do
3425 IFS=$as_save_IFS
3426 test -z "$as_dir" && as_dir=.
3427 for ac_exec_ext in '' $ac_executable_extensions; do
3428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3429 ac_cv_prog_ac_ct_CC="$ac_prog"
3430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3431 break 2
3432 fi
3433done
3434 done
3435IFS=$as_save_IFS
3436
3437fi
3438fi
3439ac_ct_CC=$ac_cv_prog_ac_ct_CC
3440if test -n "$ac_ct_CC"; then
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3442$as_echo "$ac_ct_CC" >&6; }
3443else
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3445$as_echo "no" >&6; }
3446fi
3447
3448
3449 test -n "$ac_ct_CC" && break
3450done
3451
3452 if test "x$ac_ct_CC" = x; then
3453 CC=""
3454 else
3455 case $cross_compiling:$ac_tool_warned in
3456yes:)
3457{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3458$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3459ac_tool_warned=yes ;;
3460esac
3461 CC=$ac_ct_CC
3462 fi
3463fi
3464
3465fi
3466
3467
3468test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3469$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3470as_fn_error $? "no acceptable C compiler found in \$PATH
3471See \`config.log' for more details" "$LINENO" 5; }
3472
3473# Provide some information about the compiler.
3474$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3475set X $ac_compile
3476ac_compiler=$2
3477for ac_option in --version -v -V -qversion; do
3478 { { ac_try="$ac_compiler $ac_option >&5"
3479case "(($ac_try" in
3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481 *) ac_try_echo=$ac_try;;
3482esac
3483eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3484$as_echo "$ac_try_echo"; } >&5
3485 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3486 ac_status=$?
3487 if test -s conftest.err; then
3488 sed '10a\
3489... rest of stderr output deleted ...
3490 10q' conftest.err >conftest.er1
3491 cat conftest.er1 >&5
3492 fi
3493 rm -f conftest.er1 conftest.err
3494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3495 test $ac_status = 0; }
3496done
3497
3498cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499/* end confdefs.h. */
3500
3501int
3502main ()
3503{
3504
3505 ;
3506 return 0;
3507}
3508_ACEOF
3509ac_clean_files_save=$ac_clean_files
3510ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3511# Try to create an executable without -o first, disregard a.out.
3512# It will help us diagnose broken compilers, and finding out an intuition
3513# of exeext.
3514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3515$as_echo_n "checking whether the C compiler works... " >&6; }
3516ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3517
3518# The possible output files:
3519ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3520
3521ac_rmfiles=
3522for ac_file in $ac_files
3523do
3524 case $ac_file in
3525 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3526 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3527 esac
3528done
35fa52c0
DWT
3529rm -f $ac_rmfiles
3530
3531if { { ac_try="$ac_link_default"
3532case "(($ac_try" in
3533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534 *) ac_try_echo=$ac_try;;
3535esac
3536eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3537$as_echo "$ac_try_echo"; } >&5
3538 (eval "$ac_link_default") 2>&5
3539 ac_status=$?
3540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3541 test $ac_status = 0; }; then :
3542 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3543# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3544# in a Makefile. We should not override ac_cv_exeext if it was cached,
3545# so that the user can short-circuit this test for compilers unknown to
3546# Autoconf.
3547for ac_file in $ac_files ''
3548do
3549 test -f "$ac_file" || continue
3550 case $ac_file in
3551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3552 ;;
3553 [ab].out )
3554 # We found the default executable, but exeext='' is most
3555 # certainly right.
3556 break;;
3557 *.* )
3558 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3559 then :; else
3560 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3561 fi
3562 # We set ac_cv_exeext here because the later test for it is not
3563 # safe: cross compilers may not add the suffix if given an `-o'
3564 # argument, so we may need to know it at that point already.
3565 # Even if this section looks crufty: it has the advantage of
3566 # actually working.
3567 break;;
3568 * )
3569 break;;
3570 esac
3571done
3572test "$ac_cv_exeext" = no && ac_cv_exeext=
3573
3574else
3575 ac_file=''
3576fi
35fa52c0 3577if test -z "$ac_file"; then :
9c60689e
DWT
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3579$as_echo "no" >&6; }
3580$as_echo "$as_me: failed program was:" >&5
35fa52c0
DWT
3581sed 's/^/| /' conftest.$ac_ext >&5
3582
3583{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3584$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
a93f15c0 3585as_fn_error 77 "C compiler cannot create executables
ee134472 3586See \`config.log' for more details" "$LINENO" 5; }
9c60689e
DWT
3587else
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3589$as_echo "yes" >&6; }
35fa52c0 3590fi
a93f15c0
JF
3591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3592$as_echo_n "checking for C compiler default output file name... " >&6; }
9c60689e
DWT
3593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3594$as_echo "$ac_file" >&6; }
35fa52c0
DWT
3595ac_exeext=$ac_cv_exeext
3596
9c60689e 3597rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
35fa52c0 3598ac_clean_files=$ac_clean_files_save
35fa52c0
DWT
3599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3600$as_echo_n "checking for suffix of executables... " >&6; }
3601if { { ac_try="$ac_link"
3602case "(($ac_try" in
3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604 *) ac_try_echo=$ac_try;;
3605esac
3606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3607$as_echo "$ac_try_echo"; } >&5
3608 (eval "$ac_link") 2>&5
3609 ac_status=$?
3610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3611 test $ac_status = 0; }; then :
3612 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3613# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3614# work properly (i.e., refer to `conftest.exe'), while it won't with
3615# `rm'.
3616for ac_file in conftest.exe conftest conftest.*; do
3617 test -f "$ac_file" || continue
3618 case $ac_file in
3619 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3620 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3621 break;;
3622 * ) break;;
3623 esac
3624done
3625else
3626 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3627$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833ad8 3628as_fn_error $? "cannot compute suffix of executables: cannot compile and link
ee134472 3629See \`config.log' for more details" "$LINENO" 5; }
35fa52c0 3630fi
9c60689e 3631rm -f conftest conftest$ac_cv_exeext
35fa52c0
DWT
3632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3633$as_echo "$ac_cv_exeext" >&6; }
3634
3635rm -f conftest.$ac_ext
3636EXEEXT=$ac_cv_exeext
3637ac_exeext=$EXEEXT
9c60689e
DWT
3638cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3639/* end confdefs.h. */
3640#include <stdio.h>
3641int
3642main ()
3643{
3644FILE *f = fopen ("conftest.out", "w");
3645 return ferror (f) || fclose (f) != 0;
3646
3647 ;
3648 return 0;
3649}
3650_ACEOF
3651ac_clean_files="$ac_clean_files conftest.out"
3652# Check that the compiler produces executables we can run. If not, either
3653# the compiler is broken, or we cross compile.
3654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3655$as_echo_n "checking whether we are cross compiling... " >&6; }
3656if test "$cross_compiling" != yes; then
3657 { { ac_try="$ac_link"
3658case "(($ac_try" in
3659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660 *) ac_try_echo=$ac_try;;
3661esac
3662eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3663$as_echo "$ac_try_echo"; } >&5
3664 (eval "$ac_link") 2>&5
3665 ac_status=$?
3666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3667 test $ac_status = 0; }
3668 if { ac_try='./conftest$ac_cv_exeext'
3669 { { case "(($ac_try" in
3670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671 *) ac_try_echo=$ac_try;;
3672esac
3673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3674$as_echo "$ac_try_echo"; } >&5
3675 (eval "$ac_try") 2>&5
3676 ac_status=$?
3677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3678 test $ac_status = 0; }; }; then
3679 cross_compiling=no
3680 else
3681 if test "$cross_compiling" = maybe; then
3682 cross_compiling=yes
3683 else
3684 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3685$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
a93f15c0 3686as_fn_error $? "cannot run C compiled programs.
9c60689e 3687If you meant to cross compile, use \`--host'.
ee134472 3688See \`config.log' for more details" "$LINENO" 5; }
9c60689e
DWT
3689 fi
3690 fi
3691fi
3692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3693$as_echo "$cross_compiling" >&6; }
3694
3695rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3696ac_clean_files=$ac_clean_files_save
35fa52c0
DWT
3697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3698$as_echo_n "checking for suffix of object files... " >&6; }
ee134472 3699if ${ac_cv_objext+:} false; then :
35fa52c0
DWT
3700 $as_echo_n "(cached) " >&6
3701else
3702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703/* end confdefs.h. */
3704
3705int
3706main ()
3707{
3708
3709 ;
3710 return 0;
3711}
3712_ACEOF
3713rm -f conftest.o conftest.obj
3714if { { ac_try="$ac_compile"
3715case "(($ac_try" in
3716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3717 *) ac_try_echo=$ac_try;;
3718esac
3719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3720$as_echo "$ac_try_echo"; } >&5
3721 (eval "$ac_compile") 2>&5
3722 ac_status=$?
3723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3724 test $ac_status = 0; }; then :
3725 for ac_file in conftest.o conftest.obj conftest.*; do
3726 test -f "$ac_file" || continue;
3727 case $ac_file in
3728 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3729 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3730 break;;
3731 esac
3732done
3733else
3734 $as_echo "$as_me: failed program was:" >&5
3735sed 's/^/| /' conftest.$ac_ext >&5
3736
3737{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3738$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833ad8 3739as_fn_error $? "cannot compute suffix of object files: cannot compile
ee134472 3740See \`config.log' for more details" "$LINENO" 5; }
35fa52c0
DWT
3741fi
3742rm -f conftest.$ac_cv_objext conftest.$ac_ext
3743fi
3744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3745$as_echo "$ac_cv_objext" >&6; }
3746OBJEXT=$ac_cv_objext
3747ac_objext=$OBJEXT
a93f15c0
JF
3748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3749$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3750if ${ac_cv_c_compiler_gnu+:} false; then :
35fa52c0
DWT
3751 $as_echo_n "(cached) " >&6
3752else
3753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3754/* end confdefs.h. */
3755
3756int
3757main ()
3758{
3759#ifndef __GNUC__
3760 choke me
3761#endif
3762
3763 ;
3764 return 0;
3765}
3766_ACEOF
a93f15c0 3767if ac_fn_c_try_compile "$LINENO"; then :
35fa52c0
DWT
3768 ac_compiler_gnu=yes
3769else
3770 ac_compiler_gnu=no
3771fi
3772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 3773ac_cv_c_compiler_gnu=$ac_compiler_gnu
35fa52c0
DWT
3774
3775fi
a93f15c0
JF
3776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3777$as_echo "$ac_cv_c_compiler_gnu" >&6; }
35fa52c0 3778if test $ac_compiler_gnu = yes; then
a93f15c0 3779 GCC=yes
35fa52c0 3780else
a93f15c0 3781 GCC=
35fa52c0 3782fi
a93f15c0
JF
3783ac_test_CFLAGS=${CFLAGS+set}
3784ac_save_CFLAGS=$CFLAGS
3785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3786$as_echo_n "checking whether $CC accepts -g... " >&6; }
3787if ${ac_cv_prog_cc_g+:} false; then :
35fa52c0
DWT
3788 $as_echo_n "(cached) " >&6
3789else
a93f15c0
JF
3790 ac_save_c_werror_flag=$ac_c_werror_flag
3791 ac_c_werror_flag=yes
3792 ac_cv_prog_cc_g=no
3793 CFLAGS="-g"
35fa52c0
DWT
3794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3795/* end confdefs.h. */
3796
3797int
3798main ()
3799{
3800
3801 ;
3802 return 0;
3803}
3804_ACEOF
a93f15c0
JF
3805if ac_fn_c_try_compile "$LINENO"; then :
3806 ac_cv_prog_cc_g=yes
35fa52c0 3807else
a93f15c0 3808 CFLAGS=""
35fa52c0
DWT
3809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3810/* end confdefs.h. */
3811
3812int
3813main ()
3814{
3815
3816 ;
3817 return 0;
3818}
3819_ACEOF
a93f15c0 3820if ac_fn_c_try_compile "$LINENO"; then :
35fa52c0
DWT
3821
3822else
a93f15c0
JF
3823 ac_c_werror_flag=$ac_save_c_werror_flag
3824 CFLAGS="-g"
35fa52c0
DWT
3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826/* end confdefs.h. */
3827
3828int
3829main ()
3830{
3831
3832 ;
3833 return 0;
3834}
3835_ACEOF
a93f15c0
JF
3836if ac_fn_c_try_compile "$LINENO"; then :
3837 ac_cv_prog_cc_g=yes
35fa52c0
DWT
3838fi
3839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3840fi
3841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3842fi
3843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 3844 ac_c_werror_flag=$ac_save_c_werror_flag
35fa52c0 3845fi
a93f15c0
JF
3846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3847$as_echo "$ac_cv_prog_cc_g" >&6; }
3848if test "$ac_test_CFLAGS" = set; then
3849 CFLAGS=$ac_save_CFLAGS
3850elif test $ac_cv_prog_cc_g = yes; then
3851 if test "$GCC" = yes; then
3852 CFLAGS="-g -O2"
35fa52c0 3853 else
a93f15c0 3854 CFLAGS="-g"
35fa52c0
DWT
3855 fi
3856else
a93f15c0
JF
3857 if test "$GCC" = yes; then
3858 CFLAGS="-O2"
35fa52c0 3859 else
a93f15c0 3860 CFLAGS=
35fa52c0
DWT
3861 fi
3862fi
a93f15c0
JF
3863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3864$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3865if ${ac_cv_prog_cc_c89+:} false; then :
3866 $as_echo_n "(cached) " >&6
3867else
3868 ac_cv_prog_cc_c89=no
3869ac_save_CC=$CC
3870cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871/* end confdefs.h. */
3872#include <stdarg.h>
3873#include <stdio.h>
3874struct stat;
3875/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3876struct buf { int x; };
3877FILE * (*rcsopen) (struct buf *, struct stat *, int);
3878static char *e (p, i)
3879 char **p;
3880 int i;
3881{
3882 return p[i];
3883}
3884static char *f (char * (*g) (char **, int), char **p, ...)
3885{
3886 char *s;
3887 va_list v;
3888 va_start (v,p);
3889 s = g (p, va_arg (v,int));
3890 va_end (v);
3891 return s;
3892}
3893
3894/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3895 function prototypes and stuff, but not '\xHH' hex character constants.
3896 These don't provoke an error unfortunately, instead are silently treated
3897 as 'x'. The following induces an error, until -std is added to get
3898 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3899 array size at least. It's necessary to write '\x00'==0 to get something
3900 that's true only with -std. */
3901int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3902
3903/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3904 inside strings and character constants. */
3905#define FOO(x) 'x'
3906int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3907
3908int test (int i, double x);
3909struct s1 {int (*f) (int a);};
3910struct s2 {int (*f) (double a);};
3911int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3912int argc;
3913char **argv;
3914int
3915main ()
3916{
3917return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3918 ;
3919 return 0;
3920}
3921_ACEOF
3922for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3923 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3924do
3925 CC="$ac_save_CC $ac_arg"
3926 if ac_fn_c_try_compile "$LINENO"; then :
3927 ac_cv_prog_cc_c89=$ac_arg
3928fi
3929rm -f core conftest.err conftest.$ac_objext
3930 test "x$ac_cv_prog_cc_c89" != "xno" && break
3931done
3932rm -f conftest.$ac_ext
3933CC=$ac_save_CC
3934
3935fi
3936# AC_CACHE_VAL
3937case "x$ac_cv_prog_cc_c89" in
3938 x)
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3940$as_echo "none needed" >&6; } ;;
3941 xno)
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3943$as_echo "unsupported" >&6; } ;;
3944 *)
3945 CC="$CC $ac_cv_prog_cc_c89"
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3947$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3948esac
3949if test "x$ac_cv_prog_cc_c89" != xno; then :
3950
3951fi
3952
3953ac_ext=c
3954ac_cpp='$CPP $CPPFLAGS'
3955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3957ac_compiler_gnu=$ac_cv_c_compiler_gnu
3958
3959ac_ext=c
3960ac_cpp='$CPP $CPPFLAGS'
3961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3963ac_compiler_gnu=$ac_cv_c_compiler_gnu
3964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3965$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3966if ${am_cv_prog_cc_c_o+:} false; then :
3967 $as_echo_n "(cached) " >&6
3968else
3969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3970/* end confdefs.h. */
3971
3972int
3973main ()
3974{
3975
3976 ;
3977 return 0;
3978}
3979_ACEOF
3980 # Make sure it works both with $CC and with simple cc.
3981 # Following AC_PROG_CC_C_O, we do the test twice because some
3982 # compilers refuse to overwrite an existing .o file with -o,
3983 # though they will create one.
3984 am_cv_prog_cc_c_o=yes
3985 for am_i in 1 2; do
3986 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3987 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3988 ac_status=$?
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); } \
3991 && test -f conftest2.$ac_objext; then
3992 : OK
3993 else
3994 am_cv_prog_cc_c_o=no
3995 break
3996 fi
3997 done
3998 rm -f core conftest*
3999 unset am_i
4000fi
4001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4002$as_echo "$am_cv_prog_cc_c_o" >&6; }
4003if test "$am_cv_prog_cc_c_o" != yes; then
4004 # Losing compiler, so override with the script.
4005 # FIXME: It is wrong to rewrite CC.
4006 # But if we don't then we get into trouble of one sort or another.
4007 # A longer-term fix would be to have automake use am__CC in this case,
4008 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4009 CC="$am_aux_dir/compile $CC"
4010fi
a243b558
JF
4011ac_ext=c
4012ac_cpp='$CPP $CPPFLAGS'
4013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4015ac_compiler_gnu=$ac_cv_c_compiler_gnu
a93f15c0 4016
a243b558 4017DEPDIR="${am__leading_dot}deps"
35fa52c0 4018
a243b558 4019ac_config_commands="$ac_config_commands depfiles"
35fa52c0 4020
35fa52c0 4021
a243b558
JF
4022am_make=${MAKE-make}
4023cat > confinc << 'END'
4024am__doit:
4025 @echo this is the am__doit target
4026.PHONY: am__doit
4027END
4028# If we don't find an include directive, just comment out the code.
4029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4030$as_echo_n "checking for style of include used by $am_make... " >&6; }
4031am__include="#"
4032am__quote=
4033_am_result=none
4034# First try GNU make style include.
4035echo "include confinc" > confmf
4036# Ignore all kinds of additional output from 'make'.
4037case `$am_make -s -f confmf 2> /dev/null` in #(
4038*the\ am__doit\ target*)
4039 am__include=include
4040 am__quote=
4041 _am_result=GNU
4042 ;;
4043esac
4044# Now try BSD make style include.
4045if test "$am__include" = "#"; then
4046 echo '.include "confinc"' > confmf
4047 case `$am_make -s -f confmf 2> /dev/null` in #(
4048 *the\ am__doit\ target*)
4049 am__include=.include
4050 am__quote="\""
4051 _am_result=BSD
4052 ;;
4053 esac
35fa52c0 4054fi
35fa52c0 4055
a243b558
JF
4056
4057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4058$as_echo "$_am_result" >&6; }
4059rm -f confinc confmf
4060
4061# Check whether --enable-dependency-tracking was given.
4062if test "${enable_dependency_tracking+set}" = set; then :
4063 enableval=$enable_dependency_tracking;
35fa52c0 4064fi
35fa52c0 4065
a243b558
JF
4066if test "x$enable_dependency_tracking" != xno; then
4067 am_depcomp="$ac_aux_dir/depcomp"
4068 AMDEPBACKSLASH='\'
4069 am__nodep='_no'
4070fi
4071 if test "x$enable_dependency_tracking" != xno; then
4072 AMDEP_TRUE=
4073 AMDEP_FALSE='#'
4074else
4075 AMDEP_TRUE='#'
4076 AMDEP_FALSE=
35fa52c0
DWT
4077fi
4078
35fa52c0 4079
a243b558 4080
a93f15c0 4081depcc="$CC" am_compiler_list=
66170b30
JF
4082
4083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4084$as_echo_n "checking dependency style of $depcc... " >&6; }
a93f15c0 4085if ${am_cv_CC_dependencies_compiler_type+:} false; then :
66170b30
JF
4086 $as_echo_n "(cached) " >&6
4087else
4088 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4089 # We make a subdir and do the tests there. Otherwise we can end up
4090 # making bogus files that we don't know about and never remove. For
4091 # instance it was reported that on HP-UX the gcc test will end up
4092 # making a dummy file named 'D' -- because '-MD' means "put the output
4093 # in D".
4094 rm -rf conftest.dir
4095 mkdir conftest.dir
4096 # Copy depcomp to subdir because otherwise we won't find it if we're
4097 # using a relative directory.
4098 cp "$am_depcomp" conftest.dir
4099 cd conftest.dir
4100 # We will build objects and dependencies in a subdirectory because
4101 # it helps to detect inapplicable dependency modes. For instance
4102 # both Tru64's cc and ICC support -MD to output dependencies as a
4103 # side effect of compilation, but ICC will put the dependencies in
4104 # the current directory while Tru64 will put them in the object
4105 # directory.
4106 mkdir sub
4107
a93f15c0 4108 am_cv_CC_dependencies_compiler_type=none
66170b30
JF
4109 if test "$am_compiler_list" = ""; then
4110 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4111 fi
4112 am__universal=false
4113 case " $depcc " in #(
4114 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4115 esac
4116
4117 for depmode in $am_compiler_list; do
4118 # Setup a source with many dependencies, because some compilers
4119 # like to wrap large dependency lists on column 80 (with \), and
4120 # we should not choose a depcomp mode which is confused by this.
4121 #
4122 # We need to recreate these files for each test, as the compiler may
4123 # overwrite some of them when testing with obscure command lines.
4124 # This happens at least with the AIX C compiler.
4125 : > sub/conftest.c
4126 for i in 1 2 3 4 5 6; do
4127 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4128 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4129 # Solaris 10 /bin/sh.
4130 echo '/* dummy */' > sub/conftst$i.h
4131 done
4132 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4133
4134 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4135 # mode. It turns out that the SunPro C++ compiler does not properly
4136 # handle '-M -o', and we need to detect this. Also, some Intel
4137 # versions had trouble with output in subdirs.
4138 am__obj=sub/conftest.${OBJEXT-o}
4139 am__minus_obj="-o $am__obj"
4140 case $depmode in
4141 gcc)
4142 # This depmode causes a compiler race in universal mode.
4143 test "$am__universal" = false || continue
4144 ;;
4145 nosideeffect)
4146 # After this tag, mechanisms are not by side-effect, so they'll
4147 # only be used when explicitly requested.
4148 if test "x$enable_dependency_tracking" = xyes; then
4149 continue
4150 else
4151 break
4152 fi
4153 ;;
4154 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4155 # This compiler won't grok '-c -o', but also, the minuso test has
4156 # not run yet. These depmodes are late enough in the game, and
4157 # so weak that their functioning should not be impacted.
4158 am__obj=conftest.${OBJEXT-o}
4159 am__minus_obj=
4160 ;;
4161 none) break ;;
4162 esac
4163 if depmode=$depmode \
4164 source=sub/conftest.c object=$am__obj \
4165 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4166 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4167 >/dev/null 2>conftest.err &&
4168 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4169 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4170 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4171 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4172 # icc doesn't choke on unknown options, it will just issue warnings
4173 # or remarks (even with -Werror). So we grep stderr for any message
4174 # that says an option was ignored or not supported.
4175 # When given -MP, icc 7.0 and 7.1 complain thusly:
4176 # icc: Command line warning: ignoring option '-M'; no argument required
4177 # The diagnosis changed in icc 8.0:
4178 # icc: Command line remark: option '-MP' not supported
4179 if (grep 'ignoring option' conftest.err ||
4180 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
a93f15c0 4181 am_cv_CC_dependencies_compiler_type=$depmode
66170b30
JF
4182 break
4183 fi
4184 fi
4185 done
4186
4187 cd ..
4188 rm -rf conftest.dir
4189else
a93f15c0 4190 am_cv_CC_dependencies_compiler_type=none
66170b30
JF
4191fi
4192
4193fi
a93f15c0
JF
4194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4195$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4196CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
66170b30
JF
4197
4198 if
4199 test "x$enable_dependency_tracking" != xno \
a93f15c0
JF
4200 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4201 am__fastdepCC_TRUE=
4202 am__fastdepCC_FALSE='#'
66170b30 4203else
a93f15c0
JF
4204 am__fastdepCC_TRUE='#'
4205 am__fastdepCC_FALSE=
66170b30
JF
4206fi
4207
4208
a93f15c0
JF
4209ac_ext=cpp
4210ac_cpp='$CXXCPP $CPPFLAGS'
4211ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4212ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4213ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4214if test -z "$CXX"; then
4215 if test -n "$CCC"; then
4216 CXX=$CCC
4217 else
4218 if test -n "$ac_tool_prefix"; then
4219 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
a243b558
JF
4220 do
4221 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4222set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4224$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4225if ${ac_cv_prog_CXX+:} false; then :
35fa52c0
DWT
4226 $as_echo_n "(cached) " >&6
4227else
a93f15c0
JF
4228 if test -n "$CXX"; then
4229 ac_cv_prog_CXX="$CXX" # Let the user override the test.
a243b558
JF
4230else
4231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232for as_dir in $PATH
4233do
35fa52c0
DWT
4234 IFS=$as_save_IFS
4235 test -z "$as_dir" && as_dir=.
4236 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558 4237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4238 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
a243b558
JF
4239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4240 break 2
4241 fi
4242done
9c60689e
DWT
4243 done
4244IFS=$as_save_IFS
35fa52c0 4245
9c60689e 4246fi
a243b558 4247fi
a93f15c0
JF
4248CXX=$ac_cv_prog_CXX
4249if test -n "$CXX"; then
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4251$as_echo "$CXX" >&6; }
a243b558
JF
4252else
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4254$as_echo "no" >&6; }
4255fi
35fa52c0 4256
35fa52c0 4257
a93f15c0 4258 test -n "$CXX" && break
a243b558
JF
4259 done
4260fi
a93f15c0
JF
4261if test -z "$CXX"; then
4262 ac_ct_CXX=$CXX
4263 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
a243b558
JF
4264do
4265 # Extract the first word of "$ac_prog", so it can be a program name with args.
4266set dummy $ac_prog; ac_word=$2
4267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4268$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4269if ${ac_cv_prog_ac_ct_CXX+:} false; then :
9c60689e
DWT
4270 $as_echo_n "(cached) " >&6
4271else
a93f15c0
JF
4272 if test -n "$ac_ct_CXX"; then
4273 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
a243b558
JF
4274else
4275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276for as_dir in $PATH
9c60689e
DWT
4277do
4278 IFS=$as_save_IFS
4279 test -z "$as_dir" && as_dir=.
9c60689e 4280 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558 4281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4282 ac_cv_prog_ac_ct_CXX="$ac_prog"
a243b558
JF
4283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4284 break 2
4285 fi
4286done
9c60689e
DWT
4287 done
4288IFS=$as_save_IFS
a243b558
JF
4289
4290fi
4291fi
a93f15c0
JF
4292ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4293if test -n "$ac_ct_CXX"; then
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4295$as_echo "$ac_ct_CXX" >&6; }
9c60689e 4296else
a243b558
JF
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4298$as_echo "no" >&6; }
9c60689e 4299fi
6b66678a
DWT
4300
4301
a93f15c0 4302 test -n "$ac_ct_CXX" && break
a243b558 4303done
6b66678a 4304
a93f15c0
JF
4305 if test "x$ac_ct_CXX" = x; then
4306 CXX="g++"
a243b558
JF
4307 else
4308 case $cross_compiling:$ac_tool_warned in
4309yes:)
4310{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4311$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4312ac_tool_warned=yes ;;
9c60689e 4313esac
a93f15c0 4314 CXX=$ac_ct_CXX
9c60689e 4315 fi
9c60689e 4316fi
6b66678a 4317
a93f15c0
JF
4318 fi
4319fi
a243b558 4320# Provide some information about the compiler.
a93f15c0 4321$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
a243b558
JF
4322set X $ac_compile
4323ac_compiler=$2
4324for ac_option in --version -v -V -qversion; do
4325 { { ac_try="$ac_compiler $ac_option >&5"
4326case "(($ac_try" in
4327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4328 *) ac_try_echo=$ac_try;;
4329esac
4330eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4331$as_echo "$ac_try_echo"; } >&5
4332 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4333 ac_status=$?
4334 if test -s conftest.err; then
4335 sed '10a\
4336... rest of stderr output deleted ...
4337 10q' conftest.err >conftest.er1
4338 cat conftest.er1 >&5
4339 fi
4340 rm -f conftest.er1 conftest.err
4341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4342 test $ac_status = 0; }
4343done
6b66678a 4344
a93f15c0
JF
4345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4346$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4347if ${ac_cv_cxx_compiler_gnu+:} false; then :
9c60689e 4348 $as_echo_n "(cached) " >&6
6b66678a 4349else
a243b558
JF
4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351/* end confdefs.h. */
6b66678a 4352
a243b558
JF
4353int
4354main ()
4355{
4356#ifndef __GNUC__
4357 choke me
4358#endif
4359
4360 ;
4361 return 0;
4362}
4363_ACEOF
a93f15c0 4364if ac_fn_cxx_try_compile "$LINENO"; then :
a243b558 4365 ac_compiler_gnu=yes
9c60689e 4366else
a243b558 4367 ac_compiler_gnu=no
6b66678a 4368fi
a243b558 4369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 4370ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6b66678a
DWT
4371
4372fi
a93f15c0
JF
4373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4374$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
a243b558 4375if test $ac_compiler_gnu = yes; then
a93f15c0 4376 GXX=yes
a243b558 4377else
a93f15c0 4378 GXX=
a243b558 4379fi
a93f15c0
JF
4380ac_test_CXXFLAGS=${CXXFLAGS+set}
4381ac_save_CXXFLAGS=$CXXFLAGS
4382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4383$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4384if ${ac_cv_prog_cxx_g+:} false; then :
a243b558
JF
4385 $as_echo_n "(cached) " >&6
4386else
a93f15c0
JF
4387 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4388 ac_cxx_werror_flag=yes
4389 ac_cv_prog_cxx_g=no
4390 CXXFLAGS="-g"
a243b558
JF
4391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4392/* end confdefs.h. */
309b0535 4393
a243b558
JF
4394int
4395main ()
4396{
309b0535 4397
a243b558
JF
4398 ;
4399 return 0;
4400}
4401_ACEOF
a93f15c0
JF
4402if ac_fn_cxx_try_compile "$LINENO"; then :
4403 ac_cv_prog_cxx_g=yes
a243b558 4404else
a93f15c0 4405 CXXFLAGS=""
a243b558
JF
4406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407/* end confdefs.h. */
309b0535 4408
a243b558
JF
4409int
4410main ()
4411{
309b0535 4412
a243b558
JF
4413 ;
4414 return 0;
4415}
4416_ACEOF
a93f15c0 4417if ac_fn_cxx_try_compile "$LINENO"; then :
309b0535 4418
a243b558 4419else
a93f15c0
JF
4420 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4421 CXXFLAGS="-g"
a243b558
JF
4422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4423/* end confdefs.h. */
309b0535 4424
a243b558
JF
4425int
4426main ()
4427{
309b0535 4428
a243b558
JF
4429 ;
4430 return 0;
4431}
4432_ACEOF
a93f15c0
JF
4433if ac_fn_cxx_try_compile "$LINENO"; then :
4434 ac_cv_prog_cxx_g=yes
9c60689e 4435fi
a243b558 4436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 4437fi
a243b558 4438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 4439fi
a243b558 4440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 4441 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9c60689e 4442fi
a93f15c0
JF
4443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4444$as_echo "$ac_cv_prog_cxx_g" >&6; }
4445if test "$ac_test_CXXFLAGS" = set; then
4446 CXXFLAGS=$ac_save_CXXFLAGS
4447elif test $ac_cv_prog_cxx_g = yes; then
4448 if test "$GXX" = yes; then
4449 CXXFLAGS="-g -O2"
a243b558 4450 else
a93f15c0 4451 CXXFLAGS="-g"
a243b558 4452 fi
9c60689e 4453else
a93f15c0
JF
4454 if test "$GXX" = yes; then
4455 CXXFLAGS="-O2"
a243b558 4456 else
a93f15c0 4457 CXXFLAGS=
a243b558 4458 fi
9c60689e 4459fi
a243b558
JF
4460ac_ext=c
4461ac_cpp='$CPP $CPPFLAGS'
4462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4464ac_compiler_gnu=$ac_cv_c_compiler_gnu
309b0535 4465
a93f15c0 4466depcc="$CXX" am_compiler_list=
309b0535 4467
a243b558
JF
4468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4469$as_echo_n "checking dependency style of $depcc... " >&6; }
a93f15c0 4470if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
a243b558
JF
4471 $as_echo_n "(cached) " >&6
4472else
4473 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4474 # We make a subdir and do the tests there. Otherwise we can end up
4475 # making bogus files that we don't know about and never remove. For
4476 # instance it was reported that on HP-UX the gcc test will end up
4477 # making a dummy file named 'D' -- because '-MD' means "put the output
4478 # in D".
4479 rm -rf conftest.dir
4480 mkdir conftest.dir
4481 # Copy depcomp to subdir because otherwise we won't find it if we're
4482 # using a relative directory.
4483 cp "$am_depcomp" conftest.dir
4484 cd conftest.dir
4485 # We will build objects and dependencies in a subdirectory because
4486 # it helps to detect inapplicable dependency modes. For instance
4487 # both Tru64's cc and ICC support -MD to output dependencies as a
4488 # side effect of compilation, but ICC will put the dependencies in
4489 # the current directory while Tru64 will put them in the object
4490 # directory.
4491 mkdir sub
309b0535 4492
a93f15c0 4493 am_cv_CXX_dependencies_compiler_type=none
a243b558
JF
4494 if test "$am_compiler_list" = ""; then
4495 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4496 fi
4497 am__universal=false
a93f15c0
JF
4498 case " $depcc " in #(
4499 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4500 esac
9c60689e 4501
a243b558
JF
4502 for depmode in $am_compiler_list; do
4503 # Setup a source with many dependencies, because some compilers
4504 # like to wrap large dependency lists on column 80 (with \), and
4505 # we should not choose a depcomp mode which is confused by this.
4506 #
4507 # We need to recreate these files for each test, as the compiler may
4508 # overwrite some of them when testing with obscure command lines.
4509 # This happens at least with the AIX C compiler.
4510 : > sub/conftest.c
4511 for i in 1 2 3 4 5 6; do
4512 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4513 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4514 # Solaris 10 /bin/sh.
4515 echo '/* dummy */' > sub/conftst$i.h
4516 done
4517 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9c60689e 4518
a243b558
JF
4519 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4520 # mode. It turns out that the SunPro C++ compiler does not properly
4521 # handle '-M -o', and we need to detect this. Also, some Intel
4522 # versions had trouble with output in subdirs.
4523 am__obj=sub/conftest.${OBJEXT-o}
4524 am__minus_obj="-o $am__obj"
4525 case $depmode in
4526 gcc)
4527 # This depmode causes a compiler race in universal mode.
4528 test "$am__universal" = false || continue
4529 ;;
4530 nosideeffect)
4531 # After this tag, mechanisms are not by side-effect, so they'll
4532 # only be used when explicitly requested.
4533 if test "x$enable_dependency_tracking" = xyes; then
4534 continue
4535 else
4536 break
309b0535 4537 fi
a243b558
JF
4538 ;;
4539 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4540 # This compiler won't grok '-c -o', but also, the minuso test has
4541 # not run yet. These depmodes are late enough in the game, and
4542 # so weak that their functioning should not be impacted.
4543 am__obj=conftest.${OBJEXT-o}
4544 am__minus_obj=
4545 ;;
4546 none) break ;;
4547 esac
4548 if depmode=$depmode \
4549 source=sub/conftest.c object=$am__obj \
4550 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4551 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4552 >/dev/null 2>conftest.err &&
4553 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4554 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4555 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4556 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4557 # icc doesn't choke on unknown options, it will just issue warnings
4558 # or remarks (even with -Werror). So we grep stderr for any message
4559 # that says an option was ignored or not supported.
4560 # When given -MP, icc 7.0 and 7.1 complain thusly:
4561 # icc: Command line warning: ignoring option '-M'; no argument required
4562 # The diagnosis changed in icc 8.0:
4563 # icc: Command line remark: option '-MP' not supported
4564 if (grep 'ignoring option' conftest.err ||
4565 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
a93f15c0 4566 am_cv_CXX_dependencies_compiler_type=$depmode
a243b558
JF
4567 break
4568 fi
4569 fi
309b0535 4570 done
a243b558
JF
4571
4572 cd ..
4573 rm -rf conftest.dir
4574else
a93f15c0 4575 am_cv_CXX_dependencies_compiler_type=none
9c60689e 4576fi
a243b558 4577
9c60689e 4578fi
a93f15c0
JF
4579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4580$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4581CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
a243b558
JF
4582
4583 if
4584 test "x$enable_dependency_tracking" != xno \
a93f15c0
JF
4585 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4586 am__fastdepCXX_TRUE=
4587 am__fastdepCXX_FALSE='#'
9c60689e 4588else
a93f15c0
JF
4589 am__fastdepCXX_TRUE='#'
4590 am__fastdepCXX_FALSE=
a243b558
JF
4591fi
4592
4593
a93f15c0
JF
4594ac_ext=mm
4595ac_cpp='$OBJCXXCPP $CPPFLAGS'
4596ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4597ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4598ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
a243b558 4599if test -n "$ac_tool_prefix"; then
a93f15c0 4600 for ac_prog in g++ objc++ objcxx c++ CXX
a243b558
JF
4601 do
4602 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4603set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4605$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4606if ${ac_cv_prog_OBJCXX+:} false; then :
9c60689e
DWT
4607 $as_echo_n "(cached) " >&6
4608else
a93f15c0
JF
4609 if test -n "$OBJCXX"; then
4610 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
a243b558
JF
4611else
4612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613for as_dir in $PATH
4614do
4615 IFS=$as_save_IFS
4616 test -z "$as_dir" && as_dir=.
4617 for ac_exec_ext in '' $ac_executable_extensions; do
4618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4619 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
a243b558
JF
4620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4621 break 2
9c60689e 4622 fi
a243b558
JF
4623done
4624 done
4625IFS=$as_save_IFS
9c60689e 4626
a243b558
JF
4627fi
4628fi
a93f15c0
JF
4629OBJCXX=$ac_cv_prog_OBJCXX
4630if test -n "$OBJCXX"; then
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
4632$as_echo "$OBJCXX" >&6; }
35fa52c0 4633else
a243b558
JF
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4635$as_echo "no" >&6; }
35fa52c0 4636fi
9c60689e 4637
a243b558 4638
a93f15c0 4639 test -n "$OBJCXX" && break
a243b558
JF
4640 done
4641fi
a93f15c0
JF
4642if test -z "$OBJCXX"; then
4643 ac_ct_OBJCXX=$OBJCXX
4644 for ac_prog in g++ objc++ objcxx c++ CXX
a243b558
JF
4645do
4646 # Extract the first word of "$ac_prog", so it can be a program name with args.
4647set dummy $ac_prog; ac_word=$2
4648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4649$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4650if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then :
35fa52c0
DWT
4651 $as_echo_n "(cached) " >&6
4652else
a93f15c0
JF
4653 if test -n "$ac_ct_OBJCXX"; then
4654 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
a243b558
JF
4655else
4656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657for as_dir in $PATH
4658do
4659 IFS=$as_save_IFS
4660 test -z "$as_dir" && as_dir=.
4661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4663 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
a243b558
JF
4664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4665 break 2
4666 fi
4667done
4668 done
4669IFS=$as_save_IFS
9c60689e 4670
a243b558
JF
4671fi
4672fi
a93f15c0
JF
4673ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
4674if test -n "$ac_ct_OBJCXX"; then
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
4676$as_echo "$ac_ct_OBJCXX" >&6; }
a243b558
JF
4677else
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4679$as_echo "no" >&6; }
4680fi
35fa52c0 4681
35fa52c0 4682
a93f15c0 4683 test -n "$ac_ct_OBJCXX" && break
a243b558 4684done
35fa52c0 4685
a93f15c0
JF
4686 if test "x$ac_ct_OBJCXX" = x; then
4687 OBJCXX="g++"
a243b558
JF
4688 else
4689 case $cross_compiling:$ac_tool_warned in
4690yes:)
4691{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4692$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4693ac_tool_warned=yes ;;
4694esac
a93f15c0 4695 OBJCXX=$ac_ct_OBJCXX
a243b558
JF
4696 fi
4697fi
ee134472 4698
a243b558 4699# Provide some information about the compiler.
a93f15c0 4700$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
a243b558
JF
4701set X $ac_compile
4702ac_compiler=$2
4703for ac_option in --version -v -V -qversion; do
4704 { { ac_try="$ac_compiler $ac_option >&5"
4705case "(($ac_try" in
4706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4707 *) ac_try_echo=$ac_try;;
4708esac
4709eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4710$as_echo "$ac_try_echo"; } >&5
4711 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4712 ac_status=$?
4713 if test -s conftest.err; then
4714 sed '10a\
4715... rest of stderr output deleted ...
4716 10q' conftest.err >conftest.er1
4717 cat conftest.er1 >&5
4718 fi
4719 rm -f conftest.er1 conftest.err
4720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4721 test $ac_status = 0; }
4722done
53ba6704 4723
a93f15c0
JF
4724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
4725$as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
4726if ${ac_cv_objcxx_compiler_gnu+:} false; then :
a243b558
JF
4727 $as_echo_n "(cached) " >&6
4728else
4729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4730/* end confdefs.h. */
35fa52c0 4731
a243b558
JF
4732int
4733main ()
4734{
4735#ifndef __GNUC__
4736 choke me
4737#endif
9c60689e 4738
a243b558
JF
4739 ;
4740 return 0;
4741}
4742_ACEOF
a93f15c0 4743if ac_fn_objcxx_try_compile "$LINENO"; then :
a243b558 4744 ac_compiler_gnu=yes
35fa52c0 4745else
a243b558 4746 ac_compiler_gnu=no
35fa52c0 4747fi
a243b558 4748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 4749ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
9c60689e 4750
a243b558 4751fi
a93f15c0
JF
4752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
4753$as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
a243b558 4754if test $ac_compiler_gnu = yes; then
a93f15c0 4755 GOBJCXX=yes
35fa52c0 4756else
a93f15c0 4757 GOBJCXX=
9c60689e 4758fi
a93f15c0
JF
4759ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
4760ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
4761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
4762$as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
4763if ${ac_cv_prog_objcxx_g+:} false; then :
a243b558
JF
4764 $as_echo_n "(cached) " >&6
4765else
a93f15c0
JF
4766 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
4767 ac_objcxx_werror_flag=yes
4768 ac_cv_prog_objcxx_g=no
4769 OBJCXXFLAGS="-g"
a243b558
JF
4770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4771/* end confdefs.h. */
9c60689e 4772
a243b558
JF
4773int
4774main ()
4775{
9c60689e 4776
a243b558
JF
4777 ;
4778 return 0;
4779}
4780_ACEOF
a93f15c0
JF
4781if ac_fn_objcxx_try_compile "$LINENO"; then :
4782 ac_cv_prog_objcxx_g=yes
a243b558 4783else
a93f15c0 4784 OBJCXXFLAGS=""
a243b558
JF
4785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4786/* end confdefs.h. */
9c60689e 4787
a243b558
JF
4788int
4789main ()
4790{
9c60689e 4791
a243b558
JF
4792 ;
4793 return 0;
4794}
4795_ACEOF
a93f15c0 4796if ac_fn_objcxx_try_compile "$LINENO"; then :
9c60689e 4797
a243b558 4798else
a93f15c0
JF
4799 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
4800 OBJCXXFLAGS="-g"
a243b558 4801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a93f15c0
JF
4802/* end confdefs.h. */
4803
a243b558
JF
4804int
4805main ()
4806{
a93f15c0 4807
a243b558
JF
4808 ;
4809 return 0;
4810}
4811_ACEOF
a93f15c0
JF
4812if ac_fn_objcxx_try_compile "$LINENO"; then :
4813 ac_cv_prog_objcxx_g=yes
a243b558 4814fi
a93f15c0 4815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35fa52c0 4816fi
a93f15c0
JF
4817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4818fi
4819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4820 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
4821fi
4822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
4823$as_echo "$ac_cv_prog_objcxx_g" >&6; }
4824if test "$ac_test_OBJCXXFLAGS" = set; then
4825 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
4826elif test $ac_cv_prog_objcxx_g = yes; then
4827 if test "$GOBJCXX" = yes; then
4828 OBJCXXFLAGS="-g -O2"
4829 else
4830 OBJCXXFLAGS="-g"
4831 fi
4832else
4833 if test "$GOBJCXX" = yes; then
4834 OBJCXXFLAGS="-O2"
4835 else
4836 OBJCXXFLAGS=
4837 fi
35fa52c0 4838fi
a243b558
JF
4839ac_ext=c
4840ac_cpp='$CPP $CPPFLAGS'
4841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4843ac_compiler_gnu=$ac_cv_c_compiler_gnu
4844
a93f15c0 4845depcc="$OBJCXX" am_compiler_list='gcc3 gcc'
9c60689e 4846
a243b558
JF
4847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4848$as_echo_n "checking dependency style of $depcc... " >&6; }
a93f15c0 4849if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then :
35fa52c0
DWT
4850 $as_echo_n "(cached) " >&6
4851else
a243b558
JF
4852 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4853 # We make a subdir and do the tests there. Otherwise we can end up
4854 # making bogus files that we don't know about and never remove. For
4855 # instance it was reported that on HP-UX the gcc test will end up
4856 # making a dummy file named 'D' -- because '-MD' means "put the output
4857 # in D".
4858 rm -rf conftest.dir
4859 mkdir conftest.dir
4860 # Copy depcomp to subdir because otherwise we won't find it if we're
4861 # using a relative directory.
4862 cp "$am_depcomp" conftest.dir
4863 cd conftest.dir
4864 # We will build objects and dependencies in a subdirectory because
4865 # it helps to detect inapplicable dependency modes. For instance
4866 # both Tru64's cc and ICC support -MD to output dependencies as a
4867 # side effect of compilation, but ICC will put the dependencies in
4868 # the current directory while Tru64 will put them in the object
4869 # directory.
4870 mkdir sub
4871
a93f15c0 4872 am_cv_OBJCXX_dependencies_compiler_type=none
a243b558
JF
4873 if test "$am_compiler_list" = ""; then
4874 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4875 fi
4876 am__universal=false
a93f15c0 4877
a243b558
JF
4878
4879 for depmode in $am_compiler_list; do
4880 # Setup a source with many dependencies, because some compilers
4881 # like to wrap large dependency lists on column 80 (with \), and
4882 # we should not choose a depcomp mode which is confused by this.
4883 #
4884 # We need to recreate these files for each test, as the compiler may
4885 # overwrite some of them when testing with obscure command lines.
4886 # This happens at least with the AIX C compiler.
4887 : > sub/conftest.c
4888 for i in 1 2 3 4 5 6; do
4889 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4890 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4891 # Solaris 10 /bin/sh.
4892 echo '/* dummy */' > sub/conftst$i.h
4893 done
4894 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4895
4896 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4897 # mode. It turns out that the SunPro C++ compiler does not properly
4898 # handle '-M -o', and we need to detect this. Also, some Intel
4899 # versions had trouble with output in subdirs.
4900 am__obj=sub/conftest.${OBJEXT-o}
4901 am__minus_obj="-o $am__obj"
4902 case $depmode in
4903 gcc)
4904 # This depmode causes a compiler race in universal mode.
4905 test "$am__universal" = false || continue
4906 ;;
4907 nosideeffect)
4908 # After this tag, mechanisms are not by side-effect, so they'll
4909 # only be used when explicitly requested.
4910 if test "x$enable_dependency_tracking" = xyes; then
4911 continue
4912 else
4913 break
4914 fi
4915 ;;
4916 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4917 # This compiler won't grok '-c -o', but also, the minuso test has
4918 # not run yet. These depmodes are late enough in the game, and
4919 # so weak that their functioning should not be impacted.
4920 am__obj=conftest.${OBJEXT-o}
4921 am__minus_obj=
4922 ;;
4923 none) break ;;
4924 esac
4925 if depmode=$depmode \
4926 source=sub/conftest.c object=$am__obj \
4927 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4928 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4929 >/dev/null 2>conftest.err &&
4930 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4931 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4932 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4933 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4934 # icc doesn't choke on unknown options, it will just issue warnings
4935 # or remarks (even with -Werror). So we grep stderr for any message
4936 # that says an option was ignored or not supported.
4937 # When given -MP, icc 7.0 and 7.1 complain thusly:
4938 # icc: Command line warning: ignoring option '-M'; no argument required
4939 # The diagnosis changed in icc 8.0:
4940 # icc: Command line remark: option '-MP' not supported
4941 if (grep 'ignoring option' conftest.err ||
4942 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
a93f15c0 4943 am_cv_OBJCXX_dependencies_compiler_type=$depmode
a243b558
JF
4944 break
4945 fi
4946 fi
4947 done
9c60689e 4948
a243b558
JF
4949 cd ..
4950 rm -rf conftest.dir
4951else
a93f15c0 4952 am_cv_OBJCXX_dependencies_compiler_type=none
35fa52c0 4953fi
a243b558 4954
35fa52c0 4955fi
a93f15c0
JF
4956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5
4957$as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; }
4958OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type
a243b558
JF
4959
4960 if
4961 test "x$enable_dependency_tracking" != xno \
a93f15c0
JF
4962 && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then
4963 am__fastdepOBJCXX_TRUE=
4964 am__fastdepOBJCXX_FALSE='#'
a243b558 4965else
a93f15c0
JF
4966 am__fastdepOBJCXX_TRUE='#'
4967 am__fastdepOBJCXX_FALSE=
a243b558
JF
4968fi
4969
4970
4971
a93f15c0 4972
a243b558
JF
4973if test -n "$ac_tool_prefix"; then
4974 for ac_prog in ar lib "link -lib"
4975 do
4976 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4977set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4979$as_echo_n "checking for $ac_word... " >&6; }
4980if ${ac_cv_prog_AR+:} false; then :
4981 $as_echo_n "(cached) " >&6
4982else
4983 if test -n "$AR"; then
4984 ac_cv_prog_AR="$AR" # Let the user override the test.
4985else
4986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987for as_dir in $PATH
4988do
4989 IFS=$as_save_IFS
4990 test -z "$as_dir" && as_dir=.
4991 for ac_exec_ext in '' $ac_executable_extensions; do
4992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4993 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4995 break 2
4996 fi
4997done
4998 done
4999IFS=$as_save_IFS
5000
5001fi
5002fi
5003AR=$ac_cv_prog_AR
5004if test -n "$AR"; then
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5006$as_echo "$AR" >&6; }
35fa52c0
DWT
5007else
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5009$as_echo "no" >&6; }
5010fi
9c60689e 5011
a243b558
JF
5012
5013 test -n "$AR" && break
5014 done
5015fi
5016if test -z "$AR"; then
5017 ac_ct_AR=$AR
5018 for ac_prog in ar lib "link -lib"
5019do
5020 # Extract the first word of "$ac_prog", so it can be a program name with args.
5021set dummy $ac_prog; ac_word=$2
5022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5023$as_echo_n "checking for $ac_word... " >&6; }
5024if ${ac_cv_prog_ac_ct_AR+:} false; then :
5025 $as_echo_n "(cached) " >&6
5026else
5027 if test -n "$ac_ct_AR"; then
5028 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5029else
5030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031for as_dir in $PATH
5032do
5033 IFS=$as_save_IFS
5034 test -z "$as_dir" && as_dir=.
5035 for ac_exec_ext in '' $ac_executable_extensions; do
5036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5037 ac_cv_prog_ac_ct_AR="$ac_prog"
5038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5039 break 2
5040 fi
5041done
5042 done
5043IFS=$as_save_IFS
5044
5045fi
5046fi
5047ac_ct_AR=$ac_cv_prog_ac_ct_AR
5048if test -n "$ac_ct_AR"; then
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5050$as_echo "$ac_ct_AR" >&6; }
5051else
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5053$as_echo "no" >&6; }
5054fi
5055
5056
5057 test -n "$ac_ct_AR" && break
5058done
5059
5060 if test "x$ac_ct_AR" = x; then
5061 AR="false"
9c60689e
DWT
5062 else
5063 case $cross_compiling:$ac_tool_warned in
5064yes:)
5065{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5066$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5067ac_tool_warned=yes ;;
35fa52c0 5068esac
a243b558 5069 AR=$ac_ct_AR
9c60689e 5070 fi
a243b558
JF
5071fi
5072
5073: ${AR=ar}
5074
5075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5076$as_echo_n "checking the archiver ($AR) interface... " >&6; }
5077if ${am_cv_ar_interface+:} false; then :
5078 $as_echo_n "(cached) " >&6
9c60689e 5079else
a93f15c0
JF
5080 ac_ext=c
5081ac_cpp='$CPP $CPPFLAGS'
5082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5084ac_compiler_gnu=$ac_cv_c_compiler_gnu
5085
5086 am_cv_ar_interface=ar
a243b558
JF
5087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5088/* end confdefs.h. */
5089int some_variable = 0;
5090_ACEOF
5091if ac_fn_c_try_compile "$LINENO"; then :
5092 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5094 (eval $am_ar_try) 2>&5
5095 ac_status=$?
5096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5097 test $ac_status = 0; }
5098 if test "$ac_status" -eq 0; then
5099 am_cv_ar_interface=ar
5100 else
5101 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5103 (eval $am_ar_try) 2>&5
5104 ac_status=$?
5105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5106 test $ac_status = 0; }
5107 if test "$ac_status" -eq 0; then
5108 am_cv_ar_interface=lib
5109 else
5110 am_cv_ar_interface=unknown
5111 fi
5112 fi
5113 rm -f conftest.lib libconftest.a
5114
35fa52c0 5115fi
a243b558 5116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0
JF
5117 ac_ext=c
5118ac_cpp='$CPP $CPPFLAGS'
5119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5121ac_compiler_gnu=$ac_cv_c_compiler_gnu
35fa52c0 5122
a243b558
JF
5123fi
5124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5125$as_echo "$am_cv_ar_interface" >&6; }
35fa52c0 5126
a243b558
JF
5127case $am_cv_ar_interface in
5128ar)
5129 ;;
5130lib)
5131 # Microsoft lib, so override with the ar-lib wrapper script.
5132 # FIXME: It is wrong to rewrite AR.
5133 # But if we don't then we get into trouble of one sort or another.
5134 # A longer-term fix would be to have automake use am__AR in this case,
5135 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5136 # similar.
5137 AR="$am_aux_dir/ar-lib $AR"
5138 ;;
5139unknown)
5140 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5141 ;;
5142esac
35fa52c0 5143
35fa52c0 5144
35fa52c0 5145
a243b558
JF
5146case `pwd` in
5147 *\ * | *\ *)
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5149$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5150esac
35fa52c0
DWT
5151
5152
5153
9d54db95
JF
5154macro_version='2.4.6'
5155macro_revision='2.4.6'
35fa52c0
DWT
5156
5157
5158
5159
5160
5161
5162
5163
5164
35fa52c0 5165
35fa52c0 5166
ee134472 5167
35fa52c0 5168
9d54db95 5169ltmain=$ac_aux_dir/ltmain.sh
35fa52c0 5170
a243b558
JF
5171# Make sure we can run config.sub.
5172$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5173 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
35fa52c0 5174
a243b558
JF
5175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5176$as_echo_n "checking build system type... " >&6; }
5177if ${ac_cv_build+:} false; then :
5178 $as_echo_n "(cached) " >&6
5179else
5180 ac_build_alias=$build_alias
5181test "x$ac_build_alias" = x &&
5182 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5183test "x$ac_build_alias" = x &&
5184 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5185ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5186 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
35fa52c0 5187
a243b558
JF
5188fi
5189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5190$as_echo "$ac_cv_build" >&6; }
5191case $ac_cv_build in
5192*-*-*) ;;
5193*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5194esac
5195build=$ac_cv_build
5196ac_save_IFS=$IFS; IFS='-'
5197set x $ac_cv_build
5198shift
5199build_cpu=$1
5200build_vendor=$2
5201shift; shift
5202# Remember, the first character of IFS is used to create $*,
5203# except with old shells:
5204build_os=$*
5205IFS=$ac_save_IFS
5206case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
35fa52c0 5207
35fa52c0 5208
a243b558
JF
5209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5210$as_echo_n "checking host system type... " >&6; }
5211if ${ac_cv_host+:} false; then :
5212 $as_echo_n "(cached) " >&6
5213else
5214 if test "x$host_alias" = x; then
5215 ac_cv_host=$ac_cv_build
5216else
5217 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5218 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5219fi
35fa52c0 5220
a243b558
JF
5221fi
5222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5223$as_echo "$ac_cv_host" >&6; }
5224case $ac_cv_host in
5225*-*-*) ;;
5226*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5227esac
5228host=$ac_cv_host
5229ac_save_IFS=$IFS; IFS='-'
5230set x $ac_cv_host
5231shift
5232host_cpu=$1
5233host_vendor=$2
5234shift; shift
5235# Remember, the first character of IFS is used to create $*,
5236# except with old shells:
5237host_os=$*
5238IFS=$ac_save_IFS
5239case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
9c60689e 5240
9c60689e 5241
a243b558
JF
5242# Backslashify metacharacters that are still active within
5243# double-quoted strings.
5244sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9c60689e 5245
a243b558
JF
5246# Same as above, but do not quote variable references.
5247double_quote_subst='s/\(["`\\]\)/\\\1/g'
9c60689e 5248
a243b558
JF
5249# Sed substitution to delay expansion of an escaped shell variable in a
5250# double_quote_subst'ed string.
5251delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9c60689e 5252
a243b558
JF
5253# Sed substitution to delay expansion of an escaped single quote.
5254delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9c60689e 5255
a243b558
JF
5256# Sed substitution to avoid accidental globbing in evaled expressions
5257no_glob_subst='s/\*/\\\*/g'
35fa52c0 5258
a243b558
JF
5259ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5260ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5261ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
ee134472 5262
a243b558
JF
5263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5264$as_echo_n "checking how to print strings... " >&6; }
5265# Test print first, because it will be a builtin if present.
5266if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5267 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5268 ECHO='print -r --'
5269elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5270 ECHO='printf %s\n'
5271else
5272 # Use this function as a fallback that always works.
5273 func_fallback_echo ()
5274 {
5275 eval 'cat <<_LTECHO_EOF
5276$1
5277_LTECHO_EOF'
5278 }
5279 ECHO='func_fallback_echo'
ee134472
JF
5280fi
5281
a243b558
JF
5282# func_echo_all arg...
5283# Invoke $ECHO with all args, space-separated.
5284func_echo_all ()
5285{
5286 $ECHO ""
5287}
35fa52c0 5288
9d54db95 5289case $ECHO in
a243b558
JF
5290 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5291$as_echo "printf" >&6; } ;;
5292 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5293$as_echo "print -r" >&6; } ;;
5294 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5295$as_echo "cat" >&6; } ;;
5296esac
35fa52c0 5297
35fa52c0 5298
ee134472
JF
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
35fa52c0 5309
9c60689e 5310
a243b558
JF
5311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5312$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5313if ${ac_cv_path_SED+:} false; then :
9c60689e
DWT
5314 $as_echo_n "(cached) " >&6
5315else
a243b558
JF
5316 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5317 for ac_i in 1 2 3 4 5 6 7; do
5318 ac_script="$ac_script$as_nl$ac_script"
5319 done
5320 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5321 { ac_script=; unset ac_script;}
5322 if test -z "$SED"; then
5323 ac_path_SED_found=false
5324 # Loop through the user's path and test for each of PROGNAME-LIST
5325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9c60689e
DWT
5326for as_dir in $PATH
5327do
5328 IFS=$as_save_IFS
5329 test -z "$as_dir" && as_dir=.
a243b558 5330 for ac_prog in sed gsed; do
9c60689e 5331 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
5332 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5333 as_fn_executable_p "$ac_path_SED" || continue
5334# Check for GNU ac_path_SED and select it if it is found.
5335 # Check for GNU $ac_path_SED
5336case `"$ac_path_SED" --version 2>&1` in
5337*GNU*)
5338 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5339*)
5340 ac_count=0
5341 $as_echo_n 0123456789 >"conftest.in"
5342 while :
5343 do
5344 cat "conftest.in" "conftest.in" >"conftest.tmp"
5345 mv "conftest.tmp" "conftest.in"
5346 cp "conftest.in" "conftest.nl"
5347 $as_echo '' >> "conftest.nl"
5348 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5349 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5350 as_fn_arith $ac_count + 1 && ac_count=$as_val
5351 if test $ac_count -gt ${ac_path_SED_max-0}; then
5352 # Best one so far, save it but keep looking for a better one
5353 ac_cv_path_SED="$ac_path_SED"
5354 ac_path_SED_max=$ac_count
5355 fi
5356 # 10*(2^10) chars as input seems more than enough
5357 test $ac_count -gt 10 && break
35fa52c0 5358 done
a243b558
JF
5359 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5360esac
9c60689e 5361
a243b558
JF
5362 $ac_path_SED_found && break 3
5363 done
5364 done
9c60689e
DWT
5365 done
5366IFS=$as_save_IFS
a243b558
JF
5367 if test -z "$ac_cv_path_SED"; then
5368 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
9c60689e
DWT
5369 fi
5370else
a243b558 5371 ac_cv_path_SED=$SED
9c60689e
DWT
5372fi
5373
a243b558
JF
5374fi
5375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5376$as_echo "$ac_cv_path_SED" >&6; }
5377 SED="$ac_cv_path_SED"
5378 rm -f conftest.sed
9c60689e 5379
a243b558
JF
5380test -z "$SED" && SED=sed
5381Xsed="$SED -e 1s/^X//"
9c60689e 5382
ee134472 5383
ee134472 5384
9c60689e
DWT
5385
5386
5387
5388
5389
5390
5391
5392
a243b558
JF
5393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5394$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5395if ${ac_cv_path_GREP+:} false; then :
9c60689e
DWT
5396 $as_echo_n "(cached) " >&6
5397else
a243b558
JF
5398 if test -z "$GREP"; then
5399 ac_path_GREP_found=false
5400 # Loop through the user's path and test for each of PROGNAME-LIST
5401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5402for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9c60689e
DWT
5403do
5404 IFS=$as_save_IFS
5405 test -z "$as_dir" && as_dir=.
a243b558 5406 for ac_prog in grep ggrep; do
9c60689e 5407 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
5408 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5409 as_fn_executable_p "$ac_path_GREP" || continue
5410# Check for GNU ac_path_GREP and select it if it is found.
5411 # Check for GNU $ac_path_GREP
5412case `"$ac_path_GREP" --version 2>&1` in
5413*GNU*)
5414 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5415*)
5416 ac_count=0
5417 $as_echo_n 0123456789 >"conftest.in"
5418 while :
5419 do
5420 cat "conftest.in" "conftest.in" >"conftest.tmp"
5421 mv "conftest.tmp" "conftest.in"
5422 cp "conftest.in" "conftest.nl"
5423 $as_echo 'GREP' >> "conftest.nl"
5424 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5425 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5426 as_fn_arith $ac_count + 1 && ac_count=$as_val
5427 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5428 # Best one so far, save it but keep looking for a better one
5429 ac_cv_path_GREP="$ac_path_GREP"
5430 ac_path_GREP_max=$ac_count
5431 fi
5432 # 10*(2^10) chars as input seems more than enough
5433 test $ac_count -gt 10 && break
5434 done
5435 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5436esac
9c60689e 5437
a243b558
JF
5438 $ac_path_GREP_found && break 3
5439 done
ee134472 5440 done
a243b558
JF
5441 done
5442IFS=$as_save_IFS
5443 if test -z "$ac_cv_path_GREP"; then
5444 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5445 fi
5446else
5447 ac_cv_path_GREP=$GREP
9c60689e 5448fi
a243b558
JF
5449
5450fi
5451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5452$as_echo "$ac_cv_path_GREP" >&6; }
5453 GREP="$ac_cv_path_GREP"
5454
5455
5456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5457$as_echo_n "checking for egrep... " >&6; }
5458if ${ac_cv_path_EGREP+:} false; then :
9c60689e
DWT
5459 $as_echo_n "(cached) " >&6
5460else
a243b558
JF
5461 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5462 then ac_cv_path_EGREP="$GREP -E"
5463 else
5464 if test -z "$EGREP"; then
5465 ac_path_EGREP_found=false
5466 # Loop through the user's path and test for each of PROGNAME-LIST
5467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9c60689e
DWT
5469do
5470 IFS=$as_save_IFS
5471 test -z "$as_dir" && as_dir=.
a243b558 5472 for ac_prog in egrep; do
9c60689e 5473 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
5474 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5475 as_fn_executable_p "$ac_path_EGREP" || continue
5476# Check for GNU ac_path_EGREP and select it if it is found.
5477 # Check for GNU $ac_path_EGREP
5478case `"$ac_path_EGREP" --version 2>&1` in
5479*GNU*)
5480 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5481*)
5482 ac_count=0
5483 $as_echo_n 0123456789 >"conftest.in"
5484 while :
5485 do
5486 cat "conftest.in" "conftest.in" >"conftest.tmp"
5487 mv "conftest.tmp" "conftest.in"
5488 cp "conftest.in" "conftest.nl"
5489 $as_echo 'EGREP' >> "conftest.nl"
5490 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5491 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5492 as_fn_arith $ac_count + 1 && ac_count=$as_val
5493 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5494 # Best one so far, save it but keep looking for a better one
5495 ac_cv_path_EGREP="$ac_path_EGREP"
5496 ac_path_EGREP_max=$ac_count
5497 fi
5498 # 10*(2^10) chars as input seems more than enough
5499 test $ac_count -gt 10 && break
9c60689e 5500 done
a243b558
JF
5501 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5502esac
9c60689e 5503
a243b558
JF
5504 $ac_path_EGREP_found && break 3
5505 done
5506 done
5507 done
5508IFS=$as_save_IFS
5509 if test -z "$ac_cv_path_EGREP"; then
5510 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5511 fi
9c60689e 5512else
a243b558 5513 ac_cv_path_EGREP=$EGREP
9c60689e
DWT
5514fi
5515
a243b558
JF
5516 fi
5517fi
5518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5519$as_echo "$ac_cv_path_EGREP" >&6; }
5520 EGREP="$ac_cv_path_EGREP"
ee134472 5521
ee134472 5522
a243b558
JF
5523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5524$as_echo_n "checking for fgrep... " >&6; }
5525if ${ac_cv_path_FGREP+:} false; then :
5526 $as_echo_n "(cached) " >&6
5527else
5528 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5529 then ac_cv_path_FGREP="$GREP -F"
5530 else
5531 if test -z "$FGREP"; then
5532 ac_path_FGREP_found=false
5533 # Loop through the user's path and test for each of PROGNAME-LIST
5534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5536do
5537 IFS=$as_save_IFS
5538 test -z "$as_dir" && as_dir=.
5539 for ac_prog in fgrep; do
5540 for ac_exec_ext in '' $ac_executable_extensions; do
5541 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5542 as_fn_executable_p "$ac_path_FGREP" || continue
5543# Check for GNU ac_path_FGREP and select it if it is found.
5544 # Check for GNU $ac_path_FGREP
5545case `"$ac_path_FGREP" --version 2>&1` in
5546*GNU*)
5547 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5548*)
5549 ac_count=0
5550 $as_echo_n 0123456789 >"conftest.in"
5551 while :
5552 do
5553 cat "conftest.in" "conftest.in" >"conftest.tmp"
5554 mv "conftest.tmp" "conftest.in"
5555 cp "conftest.in" "conftest.nl"
5556 $as_echo 'FGREP' >> "conftest.nl"
5557 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5558 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5559 as_fn_arith $ac_count + 1 && ac_count=$as_val
5560 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5561 # Best one so far, save it but keep looking for a better one
5562 ac_cv_path_FGREP="$ac_path_FGREP"
5563 ac_path_FGREP_max=$ac_count
5564 fi
5565 # 10*(2^10) chars as input seems more than enough
5566 test $ac_count -gt 10 && break
5567 done
5568 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9c60689e 5569esac
a243b558
JF
5570
5571 $ac_path_FGREP_found && break 3
5572 done
5573 done
5574 done
5575IFS=$as_save_IFS
5576 if test -z "$ac_cv_path_FGREP"; then
5577 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
ee134472 5578 fi
a243b558
JF
5579else
5580 ac_cv_path_FGREP=$FGREP
ee134472
JF
5581fi
5582
a243b558
JF
5583 fi
5584fi
5585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5586$as_echo "$ac_cv_path_FGREP" >&6; }
5587 FGREP="$ac_cv_path_FGREP"
ee134472
JF
5588
5589
a243b558 5590test -z "$GREP" && GREP=grep
ee134472
JF
5591
5592
5593
5594
5595
5596
5597
ee134472 5598
ee134472 5599
ee134472 5600
ee134472 5601
ee134472 5602
ee134472
JF
5603
5604
5605
5606
5607
5608
5609
a243b558
JF
5610# Check whether --with-gnu-ld was given.
5611if test "${with_gnu_ld+set}" = set; then :
9d54db95 5612 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
a243b558
JF
5613else
5614 with_gnu_ld=no
5615fi
5616
5617ac_prog=ld
9d54db95 5618if test yes = "$GCC"; then
a243b558
JF
5619 # Check if gcc -print-prog-name=ld gives a path.
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5621$as_echo_n "checking for ld used by $CC... " >&6; }
5622 case $host in
5623 *-*-mingw*)
9d54db95 5624 # gcc leaves a trailing carriage return, which upsets mingw
a243b558
JF
5625 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5626 *)
5627 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5628 esac
5629 case $ac_prog in
5630 # Accept absolute paths.
5631 [\\/]* | ?:[\\/]*)
5632 re_direlt='/[^/][^/]*/\.\./'
5633 # Canonicalize the pathname of ld
5634 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5635 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5636 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5637 done
9d54db95 5638 test -z "$LD" && LD=$ac_prog
a243b558
JF
5639 ;;
5640 "")
5641 # If it fails, then pretend we aren't using GCC.
5642 ac_prog=ld
5643 ;;
5644 *)
5645 # If it is relative, then search for the first ld in PATH.
5646 with_gnu_ld=unknown
5647 ;;
5648 esac
9d54db95 5649elif test yes = "$with_gnu_ld"; then
a243b558
JF
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5651$as_echo_n "checking for GNU ld... " >&6; }
5652else
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5654$as_echo_n "checking for non-GNU ld... " >&6; }
5655fi
5656if ${lt_cv_path_LD+:} false; then :
5657 $as_echo_n "(cached) " >&6
5658else
5659 if test -z "$LD"; then
9d54db95 5660 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
a243b558 5661 for ac_dir in $PATH; do
9d54db95 5662 IFS=$lt_save_ifs
a243b558
JF
5663 test -z "$ac_dir" && ac_dir=.
5664 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9d54db95 5665 lt_cv_path_LD=$ac_dir/$ac_prog
a243b558
JF
5666 # Check to see if the program is GNU ld. I'd rather use --version,
5667 # but apparently some variants of GNU ld only accept -v.
5668 # Break only if it was the GNU/non-GNU ld that we prefer.
5669 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5670 *GNU* | *'with BFD'*)
9d54db95 5671 test no != "$with_gnu_ld" && break
a243b558
JF
5672 ;;
5673 *)
9d54db95 5674 test yes != "$with_gnu_ld" && break
a243b558
JF
5675 ;;
5676 esac
5677 fi
5678 done
9d54db95 5679 IFS=$lt_save_ifs
a243b558 5680else
9d54db95 5681 lt_cv_path_LD=$LD # Let the user override the test with a path.
a243b558
JF
5682fi
5683fi
5684
9d54db95 5685LD=$lt_cv_path_LD
a243b558
JF
5686if test -n "$LD"; then
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5688$as_echo "$LD" >&6; }
5689else
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5691$as_echo "no" >&6; }
5692fi
5693test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5695$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5696if ${lt_cv_prog_gnu_ld+:} false; then :
5697 $as_echo_n "(cached) " >&6
5698else
5699 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5700case `$LD -v 2>&1 </dev/null` in
5701*GNU* | *'with BFD'*)
5702 lt_cv_prog_gnu_ld=yes
5703 ;;
5704*)
5705 lt_cv_prog_gnu_ld=no
5706 ;;
5707esac
5708fi
5709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5710$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5711with_gnu_ld=$lt_cv_prog_gnu_ld
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5722$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5723if ${lt_cv_path_NM+:} false; then :
5724 $as_echo_n "(cached) " >&6
5725else
5726 if test -n "$NM"; then
5727 # Let the user override the test.
9d54db95 5728 lt_cv_path_NM=$NM
a243b558 5729else
9d54db95 5730 lt_nm_to_check=${ac_tool_prefix}nm
a243b558
JF
5731 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5732 lt_nm_to_check="$lt_nm_to_check nm"
5733 fi
5734 for lt_tmp_nm in $lt_nm_to_check; do
9d54db95 5735 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
a243b558 5736 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9d54db95 5737 IFS=$lt_save_ifs
a243b558 5738 test -z "$ac_dir" && ac_dir=.
9d54db95
JF
5739 tmp_nm=$ac_dir/$lt_tmp_nm
5740 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
a243b558 5741 # Check to see if the nm accepts a BSD-compat flag.
9d54db95 5742 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
a243b558
JF
5743 # nm: unknown option "B" ignored
5744 # Tru64's nm complains that /dev/null is an invalid object file
9d54db95
JF
5745 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5746 case $build_os in
5747 mingw*) lt_bad_file=conftest.nm/nofile ;;
5748 *) lt_bad_file=/dev/null ;;
5749 esac
5750 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5751 *$lt_bad_file* | *'Invalid file or object type'*)
a243b558 5752 lt_cv_path_NM="$tmp_nm -B"
9d54db95 5753 break 2
a243b558
JF
5754 ;;
5755 *)
5756 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5757 */dev/null*)
5758 lt_cv_path_NM="$tmp_nm -p"
9d54db95 5759 break 2
a243b558
JF
5760 ;;
5761 *)
5762 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5763 continue # so that we can try to find one that supports BSD flags
5764 ;;
5765 esac
5766 ;;
5767 esac
5768 fi
5769 done
9d54db95 5770 IFS=$lt_save_ifs
a243b558
JF
5771 done
5772 : ${lt_cv_path_NM=no}
5773fi
5774fi
5775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5776$as_echo "$lt_cv_path_NM" >&6; }
9d54db95
JF
5777if test no != "$lt_cv_path_NM"; then
5778 NM=$lt_cv_path_NM
a243b558
JF
5779else
5780 # Didn't find any BSD compatible name lister, look for dumpbin.
5781 if test -n "$DUMPBIN"; then :
5782 # Let the user override the test.
5783 else
5784 if test -n "$ac_tool_prefix"; then
5785 for ac_prog in dumpbin "link -dump"
5786 do
5787 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5788set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ee134472
JF
5789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5790$as_echo_n "checking for $ac_word... " >&6; }
a243b558 5791if ${ac_cv_prog_DUMPBIN+:} false; then :
ee134472
JF
5792 $as_echo_n "(cached) " >&6
5793else
a243b558
JF
5794 if test -n "$DUMPBIN"; then
5795 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ee134472
JF
5796else
5797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5798for as_dir in $PATH
5799do
5800 IFS=$as_save_IFS
5801 test -z "$as_dir" && as_dir=.
5802 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 5803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 5804 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
ee134472
JF
5805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5806 break 2
5807 fi
5808done
5809 done
5810IFS=$as_save_IFS
5811
5812fi
5813fi
a243b558
JF
5814DUMPBIN=$ac_cv_prog_DUMPBIN
5815if test -n "$DUMPBIN"; then
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5817$as_echo "$DUMPBIN" >&6; }
ee134472
JF
5818else
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5820$as_echo "no" >&6; }
5821fi
5822
5823
a243b558
JF
5824 test -n "$DUMPBIN" && break
5825 done
ee134472 5826fi
a243b558
JF
5827if test -z "$DUMPBIN"; then
5828 ac_ct_DUMPBIN=$DUMPBIN
5829 for ac_prog in dumpbin "link -dump"
5830do
5831 # Extract the first word of "$ac_prog", so it can be a program name with args.
5832set dummy $ac_prog; ac_word=$2
ee134472
JF
5833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5834$as_echo_n "checking for $ac_word... " >&6; }
a243b558 5835if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
ee134472
JF
5836 $as_echo_n "(cached) " >&6
5837else
a243b558
JF
5838 if test -n "$ac_ct_DUMPBIN"; then
5839 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ee134472
JF
5840else
5841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5842for as_dir in $PATH
5843do
5844 IFS=$as_save_IFS
5845 test -z "$as_dir" && as_dir=.
5846 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 5847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 5848 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
ee134472
JF
5849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5850 break 2
5851 fi
5852done
5853 done
5854IFS=$as_save_IFS
5855
5856fi
5857fi
a243b558
JF
5858ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5859if test -n "$ac_ct_DUMPBIN"; then
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5861$as_echo "$ac_ct_DUMPBIN" >&6; }
ee134472
JF
5862else
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5864$as_echo "no" >&6; }
5865fi
5866
a243b558
JF
5867
5868 test -n "$ac_ct_DUMPBIN" && break
5869done
5870
5871 if test "x$ac_ct_DUMPBIN" = x; then
5872 DUMPBIN=":"
ee134472
JF
5873 else
5874 case $cross_compiling:$ac_tool_warned in
5875yes:)
5876{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5877$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5878ac_tool_warned=yes ;;
5879esac
a243b558 5880 DUMPBIN=$ac_ct_DUMPBIN
9c60689e 5881 fi
9c60689e
DWT
5882fi
5883
9d54db95 5884 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
a243b558 5885 *COFF*)
9d54db95 5886 DUMPBIN="$DUMPBIN -symbols -headers"
a243b558
JF
5887 ;;
5888 *)
5889 DUMPBIN=:
5890 ;;
5891 esac
5892 fi
9c60689e 5893
9d54db95
JF
5894 if test : != "$DUMPBIN"; then
5895 NM=$DUMPBIN
a243b558
JF
5896 fi
5897fi
5898test -z "$NM" && NM=nm
9c60689e
DWT
5899
5900
5901
5902
5903
a243b558
JF
5904
5905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5906$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5907if ${lt_cv_nm_interface+:} false; then :
9c60689e
DWT
5908 $as_echo_n "(cached) " >&6
5909else
a243b558
JF
5910 lt_cv_nm_interface="BSD nm"
5911 echo "int some_variable = 0;" > conftest.$ac_ext
5912 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5913 (eval "$ac_compile" 2>conftest.err)
5914 cat conftest.err >&5
5915 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5916 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5917 cat conftest.err >&5
5918 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5919 cat conftest.out >&5
5920 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5921 lt_cv_nm_interface="MS dumpbin"
9c60689e 5922 fi
00a96142 5923 rm -rf conftest*
9c60689e 5924fi
a243b558
JF
5925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5926$as_echo "$lt_cv_nm_interface" >&6; }
5927
5928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5929$as_echo_n "checking whether ln -s works... " >&6; }
5930LN_S=$as_ln_s
5931if test "$LN_S" = "ln -s"; then
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5933$as_echo "yes" >&6; }
9c60689e 5934else
a243b558
JF
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5936$as_echo "no, using $LN_S" >&6; }
9c60689e
DWT
5937fi
5938
a243b558
JF
5939# find the maximum length of command line arguments
5940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5941$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5942if ${lt_cv_sys_max_cmd_len+:} false; then :
9c60689e
DWT
5943 $as_echo_n "(cached) " >&6
5944else
a243b558 5945 i=0
9d54db95 5946 teststring=ABCD
9c60689e 5947
a243b558
JF
5948 case $build_os in
5949 msdosdjgpp*)
5950 # On DJGPP, this test can blow up pretty badly due to problems in libc
5951 # (any single argument exceeding 2000 bytes causes a buffer overrun
5952 # during glob expansion). Even if it were fixed, the result of this
5953 # check would be larger than it should be.
5954 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5955 ;;
9c60689e 5956
a243b558
JF
5957 gnu*)
5958 # Under GNU Hurd, this test is not required because there is
5959 # no limit to the length of command line arguments.
5960 # Libtool will interpret -1 as no limit whatsoever
5961 lt_cv_sys_max_cmd_len=-1;
5962 ;;
9c60689e 5963
a243b558
JF
5964 cygwin* | mingw* | cegcc*)
5965 # On Win9x/ME, this test blows up -- it succeeds, but takes
5966 # about 5 minutes as the teststring grows exponentially.
5967 # Worse, since 9x/ME are not pre-emptively multitasking,
5968 # you end up with a "frozen" computer, even though with patience
5969 # the test eventually succeeds (with a max line length of 256k).
5970 # Instead, let's just punt: use the minimum linelength reported by
5971 # all of the supported platforms: 8192 (on NT/2K/XP).
5972 lt_cv_sys_max_cmd_len=8192;
5973 ;;
9c60689e 5974
a243b558
JF
5975 mint*)
5976 # On MiNT this can take a long time and run out of memory.
5977 lt_cv_sys_max_cmd_len=8192;
5978 ;;
9c60689e 5979
a243b558
JF
5980 amigaos*)
5981 # On AmigaOS with pdksh, this test takes hours, literally.
5982 # So we just punt and use a minimum line length of 8192.
5983 lt_cv_sys_max_cmd_len=8192;
5984 ;;
9c60689e 5985
9d54db95 5986 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
a243b558
JF
5987 # This has been around since 386BSD, at least. Likely further.
5988 if test -x /sbin/sysctl; then
5989 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5990 elif test -x /usr/sbin/sysctl; then
5991 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5992 else
5993 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5994 fi
5995 # And add a safety zone
5996 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5997 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5998 ;;
9c60689e 5999
a243b558
JF
6000 interix*)
6001 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6002 lt_cv_sys_max_cmd_len=196608
6003 ;;
9c60689e 6004
a243b558
JF
6005 os2*)
6006 # The test takes a long time on OS/2.
6007 lt_cv_sys_max_cmd_len=8192
6008 ;;
9c60689e 6009
a243b558
JF
6010 osf*)
6011 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6012 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6013 # nice to cause kernel panics so lets avoid the loop below.
6014 # First set a reasonable default.
6015 lt_cv_sys_max_cmd_len=16384
6016 #
6017 if test -x /sbin/sysconfig; then
6018 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6019 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6020 esac
6021 fi
6022 ;;
6023 sco3.2v5*)
6024 lt_cv_sys_max_cmd_len=102400
6025 ;;
6026 sysv5* | sco5v6* | sysv4.2uw2*)
6027 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6028 if test -n "$kargmax"; then
6029 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6030 else
6031 lt_cv_sys_max_cmd_len=32768
6032 fi
9c60689e
DWT
6033 ;;
6034 *)
a243b558 6035 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9d54db95
JF
6036 if test -n "$lt_cv_sys_max_cmd_len" && \
6037 test undefined != "$lt_cv_sys_max_cmd_len"; then
a243b558
JF
6038 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6039 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6040 else
6041 # Make teststring a little bigger before we do anything with it.
6042 # a 1K string should be a reasonable start.
9d54db95 6043 for i in 1 2 3 4 5 6 7 8; do
a243b558
JF
6044 teststring=$teststring$teststring
6045 done
6046 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6047 # If test is not a shell built-in, we'll probably end up computing a
6048 # maximum length that is only half of the actual maximum length, but
6049 # we can't tell.
9d54db95 6050 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
a243b558 6051 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9d54db95 6052 test 17 != "$i" # 1/2 MB should be enough
a243b558
JF
6053 do
6054 i=`expr $i + 1`
6055 teststring=$teststring$teststring
6056 done
6057 # Only check the string length outside the loop.
6058 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6059 teststring=
6060 # Add a significant safety factor because C++ compilers can tack on
6061 # massive amounts of additional arguments before passing them to the
6062 # linker. It appears as though 1/2 is a usable value.
6063 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6064 fi
9c60689e
DWT
6065 ;;
6066 esac
ee134472 6067
a243b558 6068fi
ee134472 6069
9d54db95 6070if test -n "$lt_cv_sys_max_cmd_len"; then
a243b558
JF
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6072$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6073else
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6075$as_echo "none" >&6; }
6076fi
6077max_cmd_len=$lt_cv_sys_max_cmd_len
ee134472
JF
6078
6079
9c60689e
DWT
6080
6081
6082
6083
a243b558
JF
6084: ${CP="cp -f"}
6085: ${MV="mv -f"}
6086: ${RM="rm -f"}
9c60689e 6087
a243b558
JF
6088if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6089 lt_unset=unset
6090else
6091 lt_unset=false
6092fi
9c60689e
DWT
6093
6094
6095
6096
6097
a243b558
JF
6098# test EBCDIC or ASCII
6099case `echo X|tr X '\101'` in
6100 A) # ASCII based system
6101 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6102 lt_SP2NL='tr \040 \012'
6103 lt_NL2SP='tr \015\012 \040\040'
6104 ;;
6105 *) # EBCDIC based system
6106 lt_SP2NL='tr \100 \n'
6107 lt_NL2SP='tr \r\n \100\100'
6108 ;;
6109esac
9c60689e
DWT
6110
6111
6112
6113
6114
6115
6116
6117
6118
a243b558
JF
6119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6120$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6121if ${lt_cv_to_host_file_cmd+:} false; then :
6122 $as_echo_n "(cached) " >&6
6123else
6124 case $host in
6125 *-*-mingw* )
6126 case $build in
6127 *-*-mingw* ) # actually msys
6128 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6129 ;;
6130 *-*-cygwin* )
6131 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6132 ;;
6133 * ) # otherwise, assume *nix
6134 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6135 ;;
6136 esac
6137 ;;
6138 *-*-cygwin* )
6139 case $build in
6140 *-*-mingw* ) # actually msys
6141 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6142 ;;
6143 *-*-cygwin* )
6144 lt_cv_to_host_file_cmd=func_convert_file_noop
6145 ;;
6146 * ) # otherwise, assume *nix
6147 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6148 ;;
6149 esac
6150 ;;
6151 * ) # unhandled hosts (and "normal" native builds)
6152 lt_cv_to_host_file_cmd=func_convert_file_noop
6153 ;;
6154esac
9c60689e 6155
a243b558 6156fi
9c60689e 6157
a243b558
JF
6158to_host_file_cmd=$lt_cv_to_host_file_cmd
6159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6160$as_echo "$lt_cv_to_host_file_cmd" >&6; }
9c60689e
DWT
6161
6162
6163
6164
6165
a243b558
JF
6166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6167$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6168if ${lt_cv_to_tool_file_cmd+:} false; then :
6169 $as_echo_n "(cached) " >&6
6170else
6171 #assume ordinary cross tools, or native build.
6172lt_cv_to_tool_file_cmd=func_convert_file_noop
6173case $host in
6174 *-*-mingw* )
6175 case $build in
6176 *-*-mingw* ) # actually msys
6177 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6178 ;;
6179 esac
6180 ;;
6181esac
9c60689e 6182
a243b558 6183fi
9c60689e 6184
a243b558
JF
6185to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6187$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9c60689e 6188
9c60689e 6189
9c60689e 6190
9c60689e
DWT
6191
6192
a243b558
JF
6193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6194$as_echo_n "checking for $LD option to reload object files... " >&6; }
6195if ${lt_cv_ld_reload_flag+:} false; then :
9c60689e
DWT
6196 $as_echo_n "(cached) " >&6
6197else
a243b558
JF
6198 lt_cv_ld_reload_flag='-r'
6199fi
6200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6201$as_echo "$lt_cv_ld_reload_flag" >&6; }
6202reload_flag=$lt_cv_ld_reload_flag
6203case $reload_flag in
6204"" | " "*) ;;
6205*) reload_flag=" $reload_flag" ;;
6206esac
6207reload_cmds='$LD$reload_flag -o $output$reload_objs'
9c60689e 6208case $host_os in
a243b558 6209 cygwin* | mingw* | pw32* | cegcc*)
9d54db95 6210 if test yes != "$GCC"; then
a243b558
JF
6211 reload_cmds=false
6212 fi
6213 ;;
6214 darwin*)
9d54db95
JF
6215 if test yes = "$GCC"; then
6216 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
a243b558
JF
6217 else
6218 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6219 fi
6220 ;;
9c60689e
DWT
6221esac
6222
9c60689e 6223
9c60689e 6224
9c60689e 6225
9c60689e 6226
9c60689e 6227
9c60689e 6228
9c60689e 6229
9c60689e 6230
a243b558
JF
6231if test -n "$ac_tool_prefix"; then
6232 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6233set dummy ${ac_tool_prefix}objdump; ac_word=$2
6234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6235$as_echo_n "checking for $ac_word... " >&6; }
6236if ${ac_cv_prog_OBJDUMP+:} false; then :
6237 $as_echo_n "(cached) " >&6
6238else
6239 if test -n "$OBJDUMP"; then
6240 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6241else
6242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243for as_dir in $PATH
6244do
6245 IFS=$as_save_IFS
6246 test -z "$as_dir" && as_dir=.
6247 for ac_exec_ext in '' $ac_executable_extensions; do
6248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6249 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6251 break 2
6252 fi
6253done
6254 done
6255IFS=$as_save_IFS
9c60689e 6256
a243b558
JF
6257fi
6258fi
6259OBJDUMP=$ac_cv_prog_OBJDUMP
6260if test -n "$OBJDUMP"; then
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6262$as_echo "$OBJDUMP" >&6; }
6263else
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6265$as_echo "no" >&6; }
6266fi
9c60689e 6267
9c60689e 6268
a243b558
JF
6269fi
6270if test -z "$ac_cv_prog_OBJDUMP"; then
6271 ac_ct_OBJDUMP=$OBJDUMP
6272 # Extract the first word of "objdump", so it can be a program name with args.
6273set dummy objdump; ac_word=$2
6274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6275$as_echo_n "checking for $ac_word... " >&6; }
6276if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6277 $as_echo_n "(cached) " >&6
6278else
6279 if test -n "$ac_ct_OBJDUMP"; then
6280 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6281else
6282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283for as_dir in $PATH
6284do
6285 IFS=$as_save_IFS
6286 test -z "$as_dir" && as_dir=.
6287 for ac_exec_ext in '' $ac_executable_extensions; do
6288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6289 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6291 break 2
9c60689e
DWT
6292 fi
6293done
a243b558
JF
6294 done
6295IFS=$as_save_IFS
9c60689e
DWT
6296
6297fi
9c60689e 6298fi
a243b558
JF
6299ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6300if test -n "$ac_ct_OBJDUMP"; then
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6302$as_echo "$ac_ct_OBJDUMP" >&6; }
9c60689e 6303else
a243b558
JF
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6305$as_echo "no" >&6; }
9c60689e
DWT
6306fi
6307
a243b558
JF
6308 if test "x$ac_ct_OBJDUMP" = x; then
6309 OBJDUMP="false"
6310 else
6311 case $cross_compiling:$ac_tool_warned in
6312yes:)
6313{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6314$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6315ac_tool_warned=yes ;;
6316esac
6317 OBJDUMP=$ac_ct_OBJDUMP
6318 fi
6319else
6320 OBJDUMP="$ac_cv_prog_OBJDUMP"
ee134472
JF
6321fi
6322
a243b558 6323test -z "$OBJDUMP" && OBJDUMP=objdump
ee134472
JF
6324
6325
6326
6327
6328
6329
6330
6331
6332
a243b558
JF
6333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6334$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6335if ${lt_cv_deplibs_check_method+:} false; then :
6336 $as_echo_n "(cached) " >&6
6337else
6338 lt_cv_file_magic_cmd='$MAGIC_CMD'
6339lt_cv_file_magic_test_file=
6340lt_cv_deplibs_check_method='unknown'
6341# Need to set the preceding variable on all platforms that support
6342# interlibrary dependencies.
6343# 'none' -- dependencies not supported.
9d54db95 6344# 'unknown' -- same as none, but documents that we really don't know.
a243b558
JF
6345# 'pass_all' -- all dependencies passed with no checks.
6346# 'test_compile' -- check by making test program.
6347# 'file_magic [[regex]]' -- check by looking for files in library path
9d54db95
JF
6348# that responds to the $file_magic_cmd with a given extended regex.
6349# If you have 'file' or equivalent on your system and you're not sure
6350# whether 'pass_all' will *always* work, you probably want this one.
9c60689e 6351
a243b558
JF
6352case $host_os in
6353aix[4-9]*)
6354 lt_cv_deplibs_check_method=pass_all
6355 ;;
9c60689e 6356
a243b558
JF
6357beos*)
6358 lt_cv_deplibs_check_method=pass_all
6359 ;;
9c60689e 6360
a243b558
JF
6361bsdi[45]*)
6362 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6363 lt_cv_file_magic_cmd='/usr/bin/file -L'
6364 lt_cv_file_magic_test_file=/shlib/libc.so
6365 ;;
9c60689e 6366
a243b558
JF
6367cygwin*)
6368 # func_win32_libid is a shell function defined in ltmain.sh
6369 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6370 lt_cv_file_magic_cmd='func_win32_libid'
6371 ;;
9c60689e 6372
a243b558
JF
6373mingw* | pw32*)
6374 # Base MSYS/MinGW do not provide the 'file' command needed by
6375 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6376 # unless we find 'file', for example because we are cross-compiling.
9d54db95 6377 if ( file / ) >/dev/null 2>&1; then
a243b558
JF
6378 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6379 lt_cv_file_magic_cmd='func_win32_libid'
6380 else
6381 # Keep this pattern in sync with the one in func_win32_libid.
6382 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6383 lt_cv_file_magic_cmd='$OBJDUMP -f'
6384 fi
6385 ;;
9c60689e 6386
a243b558
JF
6387cegcc*)
6388 # use the weaker test based on 'objdump'. See mingw*.
6389 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6390 lt_cv_file_magic_cmd='$OBJDUMP -f'
6391 ;;
9c60689e 6392
a243b558
JF
6393darwin* | rhapsody*)
6394 lt_cv_deplibs_check_method=pass_all
6395 ;;
9c60689e 6396
a243b558
JF
6397freebsd* | dragonfly*)
6398 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6399 case $host_cpu in
6400 i*86 )
6401 # Not sure whether the presence of OpenBSD here was a mistake.
6402 # Let's accept both of them until this is cleared up.
6403 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6404 lt_cv_file_magic_cmd=/usr/bin/file
6405 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6406 ;;
6407 esac
6408 else
6409 lt_cv_deplibs_check_method=pass_all
6410 fi
6411 ;;
9c60689e 6412
a243b558
JF
6413haiku*)
6414 lt_cv_deplibs_check_method=pass_all
6415 ;;
9c60689e 6416
a243b558
JF
6417hpux10.20* | hpux11*)
6418 lt_cv_file_magic_cmd=/usr/bin/file
6419 case $host_cpu in
6420 ia64*)
6421 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6422 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6423 ;;
6424 hppa*64*)
6425 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]'
6426 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6427 ;;
6428 *)
6429 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6430 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6431 ;;
6432 esac
6433 ;;
9c60689e 6434
a243b558
JF
6435interix[3-9]*)
6436 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6437 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6438 ;;
9c60689e 6439
a243b558
JF
6440irix5* | irix6* | nonstopux*)
6441 case $LD in
6442 *-32|*"-32 ") libmagic=32-bit;;
6443 *-n32|*"-n32 ") libmagic=N32;;
6444 *-64|*"-64 ") libmagic=64-bit;;
6445 *) libmagic=never-match;;
6446 esac
6447 lt_cv_deplibs_check_method=pass_all
6448 ;;
9c60689e 6449
a243b558 6450# This must be glibc/ELF.
9d54db95 6451linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
a243b558
JF
6452 lt_cv_deplibs_check_method=pass_all
6453 ;;
9c60689e 6454
a243b558
JF
6455netbsd*)
6456 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6457 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6458 else
6459 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6460 fi
6461 ;;
9c60689e 6462
a243b558
JF
6463newos6*)
6464 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6465 lt_cv_file_magic_cmd=/usr/bin/file
6466 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6467 ;;
9c60689e 6468
a243b558
JF
6469*nto* | *qnx*)
6470 lt_cv_deplibs_check_method=pass_all
6471 ;;
9c60689e 6472
9d54db95
JF
6473openbsd* | bitrig*)
6474 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
a243b558
JF
6475 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6476 else
6477 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6478 fi
6479 ;;
9c60689e 6480
a243b558
JF
6481osf3* | osf4* | osf5*)
6482 lt_cv_deplibs_check_method=pass_all
6483 ;;
9c60689e 6484
a243b558
JF
6485rdos*)
6486 lt_cv_deplibs_check_method=pass_all
9c60689e 6487 ;;
a243b558
JF
6488
6489solaris*)
6490 lt_cv_deplibs_check_method=pass_all
9c60689e
DWT
6491 ;;
6492
a243b558
JF
6493sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6494 lt_cv_deplibs_check_method=pass_all
9c60689e
DWT
6495 ;;
6496
a243b558
JF
6497sysv4 | sysv4.3*)
6498 case $host_vendor in
6499 motorola)
6500 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]'
6501 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6502 ;;
6503 ncr)
6504 lt_cv_deplibs_check_method=pass_all
6505 ;;
6506 sequent)
6507 lt_cv_file_magic_cmd='/bin/file'
6508 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6509 ;;
6510 sni)
6511 lt_cv_file_magic_cmd='/bin/file'
6512 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6513 lt_cv_file_magic_test_file=/lib/libc.so
6514 ;;
6515 siemens)
6516 lt_cv_deplibs_check_method=pass_all
6517 ;;
6518 pc)
6519 lt_cv_deplibs_check_method=pass_all
6520 ;;
6521 esac
6522 ;;
9c60689e 6523
a243b558
JF
6524tpf*)
6525 lt_cv_deplibs_check_method=pass_all
6526 ;;
9d54db95
JF
6527os2*)
6528 lt_cv_deplibs_check_method=pass_all
6529 ;;
a243b558 6530esac
9c60689e 6531
a243b558
JF
6532fi
6533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6534$as_echo "$lt_cv_deplibs_check_method" >&6; }
9c60689e 6535
a243b558
JF
6536file_magic_glob=
6537want_nocaseglob=no
6538if test "$build" = "$host"; then
6539 case $host_os in
6540 mingw* | pw32*)
6541 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6542 want_nocaseglob=yes
6543 else
6544 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6545 fi
6546 ;;
6547 esac
9c60689e 6548fi
9c60689e 6549
a243b558
JF
6550file_magic_cmd=$lt_cv_file_magic_cmd
6551deplibs_check_method=$lt_cv_deplibs_check_method
6552test -z "$deplibs_check_method" && deplibs_check_method=unknown
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
9c60689e 6573
9c60689e 6574
ee134472 6575if test -n "$ac_tool_prefix"; then
a243b558
JF
6576 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6577set dummy ${ac_tool_prefix}dlltool; ac_word=$2
ee134472
JF
6578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6579$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6580if ${ac_cv_prog_DLLTOOL+:} false; then :
ee134472
JF
6581 $as_echo_n "(cached) " >&6
6582else
a243b558
JF
6583 if test -n "$DLLTOOL"; then
6584 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ee134472
JF
6585else
6586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6587for as_dir in $PATH
6588do
6589 IFS=$as_save_IFS
6590 test -z "$as_dir" && as_dir=.
6591 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6593 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
ee134472
JF
6594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6595 break 2
6596 fi
6597done
6598 done
6599IFS=$as_save_IFS
6600
6601fi
6602fi
a243b558
JF
6603DLLTOOL=$ac_cv_prog_DLLTOOL
6604if test -n "$DLLTOOL"; then
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6606$as_echo "$DLLTOOL" >&6; }
ee134472
JF
6607else
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6609$as_echo "no" >&6; }
6610fi
6611
6612
6613fi
a243b558
JF
6614if test -z "$ac_cv_prog_DLLTOOL"; then
6615 ac_ct_DLLTOOL=$DLLTOOL
6616 # Extract the first word of "dlltool", so it can be a program name with args.
6617set dummy dlltool; ac_word=$2
ee134472
JF
6618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6619$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6620if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
ee134472
JF
6621 $as_echo_n "(cached) " >&6
6622else
a243b558
JF
6623 if test -n "$ac_ct_DLLTOOL"; then
6624 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
ee134472
JF
6625else
6626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627for as_dir in $PATH
6628do
6629 IFS=$as_save_IFS
6630 test -z "$as_dir" && as_dir=.
6631 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6633 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
ee134472
JF
6634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6635 break 2
6636 fi
6637done
6638 done
6639IFS=$as_save_IFS
6640
6641fi
6642fi
a243b558
JF
6643ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6644if test -n "$ac_ct_DLLTOOL"; then
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6646$as_echo "$ac_ct_DLLTOOL" >&6; }
ee134472
JF
6647else
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6649$as_echo "no" >&6; }
6650fi
6651
a243b558
JF
6652 if test "x$ac_ct_DLLTOOL" = x; then
6653 DLLTOOL="false"
ee134472
JF
6654 else
6655 case $cross_compiling:$ac_tool_warned in
6656yes:)
6657{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6658$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6659ac_tool_warned=yes ;;
6660esac
a243b558 6661 DLLTOOL=$ac_ct_DLLTOOL
ee134472
JF
6662 fi
6663else
a243b558 6664 DLLTOOL="$ac_cv_prog_DLLTOOL"
ee134472
JF
6665fi
6666
a243b558
JF
6667test -z "$DLLTOOL" && DLLTOOL=dlltool
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6679$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6680if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
ee134472
JF
6681 $as_echo_n "(cached) " >&6
6682else
a243b558
JF
6683 lt_cv_sharedlib_from_linklib_cmd='unknown'
6684
6685case $host_os in
6686cygwin* | mingw* | pw32* | cegcc*)
9d54db95
JF
6687 # two different shell functions defined in ltmain.sh;
6688 # decide which one to use based on capabilities of $DLLTOOL
a243b558
JF
6689 case `$DLLTOOL --help 2>&1` in
6690 *--identify-strict*)
6691 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6692 ;;
6693 *)
6694 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6695 ;;
6696 esac
6697 ;;
6698*)
6699 # fallback: assume linklib IS sharedlib
9d54db95 6700 lt_cv_sharedlib_from_linklib_cmd=$ECHO
a243b558
JF
6701 ;;
6702esac
6703
ee134472 6704fi
a243b558
JF
6705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6706$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6707sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6708test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
ee134472
JF
6709
6710
6711
6712
6713
9c60689e 6714
a243b558
JF
6715
6716if test -n "$ac_tool_prefix"; then
6717 for ac_prog in ar
6718 do
6719 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6720set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9c60689e
DWT
6721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6722$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6723if ${ac_cv_prog_AR+:} false; then :
9c60689e
DWT
6724 $as_echo_n "(cached) " >&6
6725else
a243b558
JF
6726 if test -n "$AR"; then
6727 ac_cv_prog_AR="$AR" # Let the user override the test.
9c60689e
DWT
6728else
6729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730for as_dir in $PATH
6731do
6732 IFS=$as_save_IFS
6733 test -z "$as_dir" && as_dir=.
6734 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6736 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9c60689e
DWT
6737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6738 break 2
6739 fi
6740done
6741 done
6742IFS=$as_save_IFS
6743
6744fi
6745fi
a243b558
JF
6746AR=$ac_cv_prog_AR
6747if test -n "$AR"; then
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6749$as_echo "$AR" >&6; }
9c60689e
DWT
6750else
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6752$as_echo "no" >&6; }
6753fi
6754
6755
a243b558
JF
6756 test -n "$AR" && break
6757 done
9c60689e 6758fi
a243b558
JF
6759if test -z "$AR"; then
6760 ac_ct_AR=$AR
6761 for ac_prog in ar
6762do
6763 # Extract the first word of "$ac_prog", so it can be a program name with args.
6764set dummy $ac_prog; ac_word=$2
9c60689e
DWT
6765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6766$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6767if ${ac_cv_prog_ac_ct_AR+:} false; then :
9c60689e
DWT
6768 $as_echo_n "(cached) " >&6
6769else
a243b558
JF
6770 if test -n "$ac_ct_AR"; then
6771 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9c60689e
DWT
6772else
6773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774for as_dir in $PATH
6775do
6776 IFS=$as_save_IFS
6777 test -z "$as_dir" && as_dir=.
6778 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6780 ac_cv_prog_ac_ct_AR="$ac_prog"
9c60689e
DWT
6781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6782 break 2
6783 fi
6784done
6785 done
6786IFS=$as_save_IFS
6787
6788fi
6789fi
a243b558
JF
6790ac_ct_AR=$ac_cv_prog_ac_ct_AR
6791if test -n "$ac_ct_AR"; then
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6793$as_echo "$ac_ct_AR" >&6; }
9c60689e
DWT
6794else
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6796$as_echo "no" >&6; }
6797fi
6798
a243b558
JF
6799
6800 test -n "$ac_ct_AR" && break
6801done
6802
6803 if test "x$ac_ct_AR" = x; then
6804 AR="false"
9c60689e
DWT
6805 else
6806 case $cross_compiling:$ac_tool_warned in
6807yes:)
6808{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6809$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6810ac_tool_warned=yes ;;
6811esac
a243b558 6812 AR=$ac_ct_AR
9c60689e 6813 fi
a243b558
JF
6814fi
6815
6816: ${AR=ar}
6817: ${AR_FLAGS=cru}
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6830$as_echo_n "checking for archiver @FILE support... " >&6; }
6831if ${lt_cv_ar_at_file+:} false; then :
6832 $as_echo_n "(cached) " >&6
9c60689e 6833else
a243b558
JF
6834 lt_cv_ar_at_file=no
6835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6836/* end confdefs.h. */
6837
6838int
6839main ()
6840{
6841
6842 ;
6843 return 0;
6844}
6845_ACEOF
6846if ac_fn_c_try_compile "$LINENO"; then :
6847 echo conftest.$ac_objext > conftest.lst
6848 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6849 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6850 (eval $lt_ar_try) 2>&5
6851 ac_status=$?
6852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6853 test $ac_status = 0; }
9d54db95 6854 if test 0 -eq "$ac_status"; then
a243b558
JF
6855 # Ensure the archiver fails upon bogus file names.
6856 rm -f conftest.$ac_objext libconftest.a
6857 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6858 (eval $lt_ar_try) 2>&5
6859 ac_status=$?
6860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6861 test $ac_status = 0; }
9d54db95 6862 if test 0 -ne "$ac_status"; then
a243b558
JF
6863 lt_cv_ar_at_file=@
6864 fi
6865 fi
6866 rm -f conftest.* libconftest.a
6867
9c60689e 6868fi
a243b558 6869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 6870
a243b558
JF
6871fi
6872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6873$as_echo "$lt_cv_ar_at_file" >&6; }
6874
9d54db95 6875if test no = "$lt_cv_ar_at_file"; then
a243b558
JF
6876 archiver_list_spec=
6877else
6878 archiver_list_spec=$lt_cv_ar_at_file
6879fi
6880
6881
6882
6883
6884
6885
6886
6887if test -n "$ac_tool_prefix"; then
6888 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6889set dummy ${ac_tool_prefix}strip; ac_word=$2
9c60689e
DWT
6890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6891$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6892if ${ac_cv_prog_STRIP+:} false; then :
9c60689e
DWT
6893 $as_echo_n "(cached) " >&6
6894else
a243b558
JF
6895 if test -n "$STRIP"; then
6896 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9c60689e
DWT
6897else
6898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899for as_dir in $PATH
6900do
6901 IFS=$as_save_IFS
6902 test -z "$as_dir" && as_dir=.
6903 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6905 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9c60689e
DWT
6906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6907 break 2
6908 fi
6909done
6910 done
6911IFS=$as_save_IFS
6912
6913fi
6914fi
a243b558
JF
6915STRIP=$ac_cv_prog_STRIP
6916if test -n "$STRIP"; then
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6918$as_echo "$STRIP" >&6; }
9c60689e
DWT
6919else
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6921$as_echo "no" >&6; }
6922fi
6923
6924
6925fi
a243b558
JF
6926if test -z "$ac_cv_prog_STRIP"; then
6927 ac_ct_STRIP=$STRIP
6928 # Extract the first word of "strip", so it can be a program name with args.
6929set dummy strip; ac_word=$2
9c60689e
DWT
6930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6931$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6932if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9c60689e
DWT
6933 $as_echo_n "(cached) " >&6
6934else
a243b558
JF
6935 if test -n "$ac_ct_STRIP"; then
6936 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9c60689e
DWT
6937else
6938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939for as_dir in $PATH
6940do
6941 IFS=$as_save_IFS
6942 test -z "$as_dir" && as_dir=.
6943 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6945 ac_cv_prog_ac_ct_STRIP="strip"
9c60689e
DWT
6946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6947 break 2
6948 fi
6949done
6950 done
6951IFS=$as_save_IFS
6952
6953fi
6954fi
a243b558
JF
6955ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6956if test -n "$ac_ct_STRIP"; then
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6958$as_echo "$ac_ct_STRIP" >&6; }
9c60689e
DWT
6959else
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6961$as_echo "no" >&6; }
6962fi
6963
a243b558
JF
6964 if test "x$ac_ct_STRIP" = x; then
6965 STRIP=":"
9c60689e
DWT
6966 else
6967 case $cross_compiling:$ac_tool_warned in
6968yes:)
6969{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6970$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6971ac_tool_warned=yes ;;
6972esac
a243b558 6973 STRIP=$ac_ct_STRIP
9c60689e
DWT
6974 fi
6975else
a243b558 6976 STRIP="$ac_cv_prog_STRIP"
9c60689e
DWT
6977fi
6978
a243b558
JF
6979test -z "$STRIP" && STRIP=:
6980
6981
6982
6983
6984
6985
6986if test -n "$ac_tool_prefix"; then
6987 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6988set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9c60689e
DWT
6989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6990$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6991if ${ac_cv_prog_RANLIB+:} false; then :
9c60689e
DWT
6992 $as_echo_n "(cached) " >&6
6993else
a243b558
JF
6994 if test -n "$RANLIB"; then
6995 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9c60689e
DWT
6996else
6997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6998for as_dir in $PATH
6999do
7000 IFS=$as_save_IFS
7001 test -z "$as_dir" && as_dir=.
7002 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 7003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 7004 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9c60689e
DWT
7005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7006 break 2
7007 fi
7008done
7009 done
7010IFS=$as_save_IFS
7011
7012fi
7013fi
a243b558
JF
7014RANLIB=$ac_cv_prog_RANLIB
7015if test -n "$RANLIB"; then
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7017$as_echo "$RANLIB" >&6; }
9c60689e
DWT
7018else
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7020$as_echo "no" >&6; }
7021fi
7022
7023
7024fi
a243b558
JF
7025if test -z "$ac_cv_prog_RANLIB"; then
7026 ac_ct_RANLIB=$RANLIB
7027 # Extract the first word of "ranlib", so it can be a program name with args.
7028set dummy ranlib; ac_word=$2
9c60689e
DWT
7029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7030$as_echo_n "checking for $ac_word... " >&6; }
a243b558 7031if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9c60689e
DWT
7032 $as_echo_n "(cached) " >&6
7033else
a243b558
JF
7034 if test -n "$ac_ct_RANLIB"; then
7035 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9c60689e
DWT
7036else
7037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038for as_dir in $PATH
7039do
7040 IFS=$as_save_IFS
7041 test -z "$as_dir" && as_dir=.
7042 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 7043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 7044 ac_cv_prog_ac_ct_RANLIB="ranlib"
9c60689e
DWT
7045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7046 break 2
7047 fi
7048done
7049 done
7050IFS=$as_save_IFS
7051
7052fi
7053fi
a243b558
JF
7054ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7055if test -n "$ac_ct_RANLIB"; then
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7057$as_echo "$ac_ct_RANLIB" >&6; }
9c60689e
DWT
7058else
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7060$as_echo "no" >&6; }
7061fi
7062
a243b558
JF
7063 if test "x$ac_ct_RANLIB" = x; then
7064 RANLIB=":"
9c60689e
DWT
7065 else
7066 case $cross_compiling:$ac_tool_warned in
7067yes:)
7068{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7069$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7070ac_tool_warned=yes ;;
7071esac
a243b558 7072 RANLIB=$ac_ct_RANLIB
9c60689e
DWT
7073 fi
7074else
a243b558 7075 RANLIB="$ac_cv_prog_RANLIB"
9c60689e
DWT
7076fi
7077
a243b558
JF
7078test -z "$RANLIB" && RANLIB=:
7079
7080
9c60689e 7081
9c60689e
DWT
7082
7083
a243b558
JF
7084
7085# Determine commands to create old-style static archives.
7086old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7087old_postinstall_cmds='chmod 644 $oldlib'
7088old_postuninstall_cmds=
7089
7090if test -n "$RANLIB"; then
7091 case $host_os in
9d54db95 7092 bitrig* | openbsd*)
a243b558
JF
7093 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7094 ;;
7095 *)
7096 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7097 ;;
7098 esac
7099 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9c60689e
DWT
7100fi
7101
a243b558
JF
7102case $host_os in
7103 darwin*)
7104 lock_old_archive_extraction=yes ;;
7105 *)
7106 lock_old_archive_extraction=no ;;
9c60689e 7107esac
9c60689e 7108
9c60689e 7109
9c60689e
DWT
7110
7111
9c60689e 7112
9c60689e 7113
9c60689e
DWT
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
53ba6704 7141
9c60689e 7142
9c60689e 7143
9c60689e 7144
53ba6704 7145
a243b558
JF
7146
7147# If no C compiler was specified, use CC.
7148LTCC=${LTCC-"$CC"}
7149
7150# If no C compiler flags were specified, use CFLAGS.
7151LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7152
7153# Allow CC to be a program name with arguments.
7154compiler=$CC
7155
7156
7157# Check for command to grab the raw symbol name followed by C symbol from nm.
7158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7159$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7160if ${lt_cv_sys_global_symbol_pipe+:} false; then :
ee134472
JF
7161 $as_echo_n "(cached) " >&6
7162else
ee134472 7163
a243b558
JF
7164# These are sane defaults that work on at least a few old systems.
7165# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9c60689e 7166
a243b558
JF
7167# Character class describing NM global symbol codes.
7168symcode='[BCDEGRST]'
9c60689e 7169
a243b558
JF
7170# Regexp to match symbols that can be accessed directly from C.
7171sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9c60689e 7172
a243b558
JF
7173# Define system-specific variables.
7174case $host_os in
7175aix*)
7176 symcode='[BCDT]'
7177 ;;
7178cygwin* | mingw* | pw32* | cegcc*)
7179 symcode='[ABCDGISTW]'
7180 ;;
7181hpux*)
9d54db95 7182 if test ia64 = "$host_cpu"; then
a243b558
JF
7183 symcode='[ABCDEGRST]'
7184 fi
7185 ;;
7186irix* | nonstopux*)
7187 symcode='[BCDEGRST]'
7188 ;;
7189osf*)
7190 symcode='[BCDEGQRST]'
7191 ;;
7192solaris*)
7193 symcode='[BDRT]'
7194 ;;
7195sco3.2v5*)
7196 symcode='[DT]'
7197 ;;
7198sysv4.2uw2*)
7199 symcode='[DT]'
7200 ;;
7201sysv5* | sco5v6* | unixware* | OpenUNIX*)
7202 symcode='[ABDT]'
7203 ;;
7204sysv4)
7205 symcode='[DFNSTU]'
7206 ;;
7207esac
9c60689e 7208
a243b558
JF
7209# If we're using GNU nm, then use its standard symbol codes.
7210case `$NM -V 2>&1` in
7211*GNU* | *'with BFD'*)
7212 symcode='[ABCDGIRSTW]' ;;
7213esac
9c60689e 7214
9d54db95
JF
7215if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7216 # Gets list of data symbols to import.
7217 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7218 # Adjust the below global symbol transforms to fixup imported variables.
7219 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7220 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7221 lt_c_name_lib_hook="\
7222 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7223 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7224else
7225 # Disable hooks by default.
7226 lt_cv_sys_global_symbol_to_import=
7227 lt_cdecl_hook=
7228 lt_c_name_hook=
7229 lt_c_name_lib_hook=
7230fi
7231
a243b558
JF
7232# Transform an extracted symbol line into a proper C declaration.
7233# Some systems (esp. on ia64) link data and code symbols differently,
7234# so use this general approach.
9d54db95
JF
7235lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7236$lt_cdecl_hook\
7237" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7238" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9c60689e 7239
a243b558 7240# Transform an extracted symbol line into symbol name and symbol address
9d54db95
JF
7241lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7242$lt_c_name_hook\
7243" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7244" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7245
7246# Transform an extracted symbol line into symbol name with lib prefix and
7247# symbol address.
7248lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7249$lt_c_name_lib_hook\
7250" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7251" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7252" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9c60689e 7253
a243b558
JF
7254# Handle CRLF in mingw tool chain
7255opt_cr=
7256case $build_os in
7257mingw*)
7258 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7259 ;;
7260esac
9c60689e 7261
a243b558
JF
7262# Try without a prefix underscore, then with it.
7263for ac_symprfx in "" "_"; do
9c60689e 7264
a243b558
JF
7265 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7266 symxfrm="\\1 $ac_symprfx\\2 \\2"
9c60689e 7267
a243b558
JF
7268 # Write the raw and C identifiers.
7269 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9d54db95
JF
7270 # Fake it for dumpbin and say T for any non-static function,
7271 # D for any global variable and I for any imported variable.
a243b558
JF
7272 # Also find C++ and __fastcall symbols from MSVC++,
7273 # which start with @ or ?.
7274 lt_cv_sys_global_symbol_pipe="$AWK '"\
7275" {last_section=section; section=\$ 3};"\
7276" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7277" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9d54db95
JF
7278" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7279" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7280" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
a243b558
JF
7281" \$ 0!~/External *\|/{next};"\
7282" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7283" {if(hide[section]) next};"\
9d54db95
JF
7284" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7285" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7286" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7287" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
a243b558
JF
7288" ' prfx=^$ac_symprfx"
7289 else
7290 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7291 fi
7292 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9c60689e 7293
a243b558
JF
7294 # Check to see that the pipe works correctly.
7295 pipe_works=no
9c60689e 7296
00a96142 7297 rm -rf conftest*
a243b558
JF
7298 cat > conftest.$ac_ext <<_LT_EOF
7299#ifdef __cplusplus
7300extern "C" {
7301#endif
7302char nm_test_var;
7303void nm_test_func(void);
7304void nm_test_func(void){}
7305#ifdef __cplusplus
7306}
7307#endif
7308int main(){nm_test_var='a';nm_test_func();return(0);}
7309_LT_EOF
9c60689e 7310
a243b558
JF
7311 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7312 (eval $ac_compile) 2>&5
7313 ac_status=$?
7314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7315 test $ac_status = 0; }; then
7316 # Now try to grab the symbols.
7317 nlist=conftest.nm
7318 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7319 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7320 ac_status=$?
7321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7322 test $ac_status = 0; } && test -s "$nlist"; then
7323 # Try sorting and uniquifying the output.
7324 if sort "$nlist" | uniq > "$nlist"T; then
7325 mv -f "$nlist"T "$nlist"
7326 else
7327 rm -f "$nlist"T
7328 fi
9c60689e 7329
a243b558
JF
7330 # Make sure that we snagged all the symbols we need.
7331 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7332 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7333 cat <<_LT_EOF > conftest.$ac_ext
7334/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9d54db95
JF
7335#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7336/* DATA imports from DLLs on WIN32 can't be const, because runtime
a243b558
JF
7337 relocations are performed -- see ld's documentation on pseudo-relocs. */
7338# define LT_DLSYM_CONST
9d54db95 7339#elif defined __osf__
a243b558
JF
7340/* This system does not cope well with relocations in const data. */
7341# define LT_DLSYM_CONST
7342#else
7343# define LT_DLSYM_CONST const
7344#endif
9c60689e 7345
a243b558
JF
7346#ifdef __cplusplus
7347extern "C" {
7348#endif
9c60689e 7349
a243b558
JF
7350_LT_EOF
7351 # Now generate the symbol file.
7352 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9c60689e 7353
a243b558 7354 cat <<_LT_EOF >> conftest.$ac_ext
9c60689e 7355
a243b558
JF
7356/* The mapping between symbol names and symbols. */
7357LT_DLSYM_CONST struct {
7358 const char *name;
7359 void *address;
7360}
7361lt__PROGRAM__LTX_preloaded_symbols[] =
7362{
7363 { "@PROGRAM@", (void *) 0 },
7364_LT_EOF
9d54db95 7365 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
a243b558
JF
7366 cat <<\_LT_EOF >> conftest.$ac_ext
7367 {0, (void *) 0}
7368};
9c60689e 7369
a243b558
JF
7370/* This works around a problem in FreeBSD linker */
7371#ifdef FREEBSD_WORKAROUND
7372static const void *lt_preloaded_setup() {
7373 return lt__PROGRAM__LTX_preloaded_symbols;
7374}
7375#endif
9c60689e 7376
a243b558
JF
7377#ifdef __cplusplus
7378}
7379#endif
7380_LT_EOF
7381 # Now try linking the two files.
7382 mv conftest.$ac_objext conftstm.$ac_objext
7383 lt_globsym_save_LIBS=$LIBS
7384 lt_globsym_save_CFLAGS=$CFLAGS
9d54db95 7385 LIBS=conftstm.$ac_objext
a243b558
JF
7386 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7388 (eval $ac_link) 2>&5
7389 ac_status=$?
7390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9d54db95 7391 test $ac_status = 0; } && test -s conftest$ac_exeext; then
a243b558
JF
7392 pipe_works=yes
7393 fi
7394 LIBS=$lt_globsym_save_LIBS
7395 CFLAGS=$lt_globsym_save_CFLAGS
7396 else
7397 echo "cannot find nm_test_func in $nlist" >&5
7398 fi
7399 else
7400 echo "cannot find nm_test_var in $nlist" >&5
7401 fi
7402 else
7403 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7404 fi
7405 else
7406 echo "$progname: failed program was:" >&5
7407 cat conftest.$ac_ext >&5
7408 fi
7409 rm -rf conftest* conftst*
9c60689e 7410
a243b558 7411 # Do not use the global_symbol_pipe unless it works.
9d54db95 7412 if test yes = "$pipe_works"; then
a243b558
JF
7413 break
7414 else
7415 lt_cv_sys_global_symbol_pipe=
7416 fi
7417done
9c60689e 7418
9c60689e 7419fi
9c60689e 7420
a243b558
JF
7421if test -z "$lt_cv_sys_global_symbol_pipe"; then
7422 lt_cv_sys_global_symbol_to_cdecl=
9c60689e 7423fi
a243b558
JF
7424if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7426$as_echo "failed" >&6; }
9c60689e 7427else
a243b558
JF
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7429$as_echo "ok" >&6; }
9c60689e
DWT
7430fi
7431
a243b558
JF
7432# Response file support.
7433if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7434 nm_file_list_spec='@'
7435elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7436 nm_file_list_spec='@'
9c60689e 7437fi
9c60689e 7438
9c60689e 7439
9c60689e 7440
9c60689e 7441
9c60689e 7442
9c60689e
DWT
7443
7444
9c60689e 7445
9c60689e 7446
9c60689e
DWT
7447
7448
7449
ee134472
JF
7450
7451
9c60689e
DWT
7452
7453
9d54db95
JF
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
9c60689e
DWT
7464
7465
7466
7467
7468
7469
7470
549f29b5 7471
549f29b5
DWT
7472
7473
549f29b5 7474
a243b558
JF
7475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7476$as_echo_n "checking for sysroot... " >&6; }
549f29b5 7477
a243b558
JF
7478# Check whether --with-sysroot was given.
7479if test "${with_sysroot+set}" = set; then :
7480 withval=$with_sysroot;
9c60689e 7481else
a243b558 7482 with_sysroot=no
9c60689e
DWT
7483fi
7484
7485
a243b558 7486lt_sysroot=
9d54db95 7487case $with_sysroot in #(
a243b558 7488 yes)
9d54db95 7489 if test yes = "$GCC"; then
a243b558
JF
7490 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7491 fi
7492 ;; #(
7493 /*)
7494 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7495 ;; #(
7496 no|'')
7497 ;; #(
7498 *)
9d54db95
JF
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7500$as_echo "$with_sysroot" >&6; }
a243b558
JF
7501 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7502 ;;
7503esac
9c60689e 7504
a243b558
JF
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7506$as_echo "${lt_sysroot:-no}" >&6; }
9c60689e
DWT
7507
7508
7509
7510
7511
9d54db95
JF
7512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7513$as_echo_n "checking for a working dd... " >&6; }
7514if ${ac_cv_path_lt_DD+:} false; then :
7515 $as_echo_n "(cached) " >&6
7516else
7517 printf 0123456789abcdef0123456789abcdef >conftest.i
7518cat conftest.i conftest.i >conftest2.i
7519: ${lt_DD:=$DD}
7520if test -z "$lt_DD"; then
7521 ac_path_lt_DD_found=false
7522 # Loop through the user's path and test for each of PROGNAME-LIST
7523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7524for as_dir in $PATH
7525do
7526 IFS=$as_save_IFS
7527 test -z "$as_dir" && as_dir=.
7528 for ac_prog in dd; do
7529 for ac_exec_ext in '' $ac_executable_extensions; do
7530 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7531 as_fn_executable_p "$ac_path_lt_DD" || continue
7532if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7533 cmp -s conftest.i conftest.out \
7534 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7535fi
7536 $ac_path_lt_DD_found && break 3
7537 done
7538 done
7539 done
7540IFS=$as_save_IFS
7541 if test -z "$ac_cv_path_lt_DD"; then
7542 :
7543 fi
7544else
7545 ac_cv_path_lt_DD=$lt_DD
7546fi
7547
7548rm -f conftest.i conftest2.i conftest.out
7549fi
7550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7551$as_echo "$ac_cv_path_lt_DD" >&6; }
7552
7553
7554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7555$as_echo_n "checking how to truncate binary pipes... " >&6; }
7556if ${lt_cv_truncate_bin+:} false; then :
7557 $as_echo_n "(cached) " >&6
7558else
7559 printf 0123456789abcdef0123456789abcdef >conftest.i
7560cat conftest.i conftest.i >conftest2.i
7561lt_cv_truncate_bin=
7562if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7563 cmp -s conftest.i conftest.out \
7564 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7565fi
7566rm -f conftest.i conftest2.i conftest.out
7567test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7568fi
7569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7570$as_echo "$lt_cv_truncate_bin" >&6; }
7571
7572
7573
7574
7575
7576
7577
7578# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7579func_cc_basename ()
7580{
7581 for cc_temp in $*""; do
7582 case $cc_temp in
7583 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7584 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7585 \-*) ;;
7586 *) break;;
7587 esac
7588 done
7589 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7590}
7591
a243b558
JF
7592# Check whether --enable-libtool-lock was given.
7593if test "${enable_libtool_lock+set}" = set; then :
7594 enableval=$enable_libtool_lock;
9c60689e
DWT
7595fi
7596
9d54db95 7597test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9c60689e 7598
a243b558
JF
7599# Some flags need to be propagated to the compiler or linker for good
7600# libtool support.
7601case $host in
7602ia64-*-hpux*)
9d54db95
JF
7603 # Find out what ABI is being produced by ac_compile, and set mode
7604 # options accordingly.
a243b558
JF
7605 echo 'int i;' > conftest.$ac_ext
7606 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7607 (eval $ac_compile) 2>&5
7608 ac_status=$?
7609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7610 test $ac_status = 0; }; then
7611 case `/usr/bin/file conftest.$ac_objext` in
7612 *ELF-32*)
9d54db95 7613 HPUX_IA64_MODE=32
a243b558
JF
7614 ;;
7615 *ELF-64*)
9d54db95 7616 HPUX_IA64_MODE=64
a243b558
JF
7617 ;;
7618 esac
7619 fi
7620 rm -rf conftest*
7621 ;;
7622*-*-irix6*)
9d54db95
JF
7623 # Find out what ABI is being produced by ac_compile, and set linker
7624 # options accordingly.
a243b558
JF
7625 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7626 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7627 (eval $ac_compile) 2>&5
7628 ac_status=$?
7629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7630 test $ac_status = 0; }; then
9d54db95 7631 if test yes = "$lt_cv_prog_gnu_ld"; then
a243b558
JF
7632 case `/usr/bin/file conftest.$ac_objext` in
7633 *32-bit*)
7634 LD="${LD-ld} -melf32bsmip"
7635 ;;
7636 *N32*)
7637 LD="${LD-ld} -melf32bmipn32"
7638 ;;
7639 *64-bit*)
7640 LD="${LD-ld} -melf64bmip"
7641 ;;
7642 esac
7643 else
7644 case `/usr/bin/file conftest.$ac_objext` in
7645 *32-bit*)
7646 LD="${LD-ld} -32"
7647 ;;
7648 *N32*)
7649 LD="${LD-ld} -n32"
7650 ;;
7651 *64-bit*)
7652 LD="${LD-ld} -64"
7653 ;;
7654 esac
7655 fi
7656 fi
7657 rm -rf conftest*
7658 ;;
9c60689e 7659
9d54db95
JF
7660mips64*-*linux*)
7661 # Find out what ABI is being produced by ac_compile, and set linker
7662 # options accordingly.
7663 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7665 (eval $ac_compile) 2>&5
7666 ac_status=$?
7667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7668 test $ac_status = 0; }; then
7669 emul=elf
7670 case `/usr/bin/file conftest.$ac_objext` in
7671 *32-bit*)
7672 emul="${emul}32"
7673 ;;
7674 *64-bit*)
7675 emul="${emul}64"
7676 ;;
7677 esac
7678 case `/usr/bin/file conftest.$ac_objext` in
7679 *MSB*)
7680 emul="${emul}btsmip"
7681 ;;
7682 *LSB*)
7683 emul="${emul}ltsmip"
7684 ;;
7685 esac
7686 case `/usr/bin/file conftest.$ac_objext` in
7687 *N32*)
7688 emul="${emul}n32"
7689 ;;
7690 esac
7691 LD="${LD-ld} -m $emul"
7692 fi
7693 rm -rf conftest*
7694 ;;
7695
7696x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
a243b558 7697s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9d54db95
JF
7698 # Find out what ABI is being produced by ac_compile, and set linker
7699 # options accordingly. Note that the listed cases only cover the
7700 # situations where additional linker options are needed (such as when
7701 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7702 # vice versa); the common cases where no linker options are needed do
7703 # not appear in the list.
a243b558
JF
7704 echo 'int i;' > conftest.$ac_ext
7705 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7706 (eval $ac_compile) 2>&5
7707 ac_status=$?
7708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7709 test $ac_status = 0; }; then
7710 case `/usr/bin/file conftest.o` in
7711 *32-bit*)
7712 case $host in
7713 x86_64-*kfreebsd*-gnu)
7714 LD="${LD-ld} -m elf_i386_fbsd"
7715 ;;
7716 x86_64-*linux*)
9d54db95
JF
7717 case `/usr/bin/file conftest.o` in
7718 *x86-64*)
7719 LD="${LD-ld} -m elf32_x86_64"
7720 ;;
7721 *)
7722 LD="${LD-ld} -m elf_i386"
7723 ;;
7724 esac
a243b558 7725 ;;
9d54db95
JF
7726 powerpc64le-*linux*)
7727 LD="${LD-ld} -m elf32lppclinux"
7728 ;;
7729 powerpc64-*linux*)
a243b558
JF
7730 LD="${LD-ld} -m elf32ppclinux"
7731 ;;
7732 s390x-*linux*)
7733 LD="${LD-ld} -m elf_s390"
7734 ;;
7735 sparc64-*linux*)
7736 LD="${LD-ld} -m elf32_sparc"
7737 ;;
7738 esac
7739 ;;
7740 *64-bit*)
7741 case $host in
7742 x86_64-*kfreebsd*-gnu)
7743 LD="${LD-ld} -m elf_x86_64_fbsd"
7744 ;;
7745 x86_64-*linux*)
7746 LD="${LD-ld} -m elf_x86_64"
7747 ;;
9d54db95
JF
7748 powerpcle-*linux*)
7749 LD="${LD-ld} -m elf64lppc"
7750 ;;
7751 powerpc-*linux*)
a243b558
JF
7752 LD="${LD-ld} -m elf64ppc"
7753 ;;
7754 s390*-*linux*|s390*-*tpf*)
7755 LD="${LD-ld} -m elf64_s390"
7756 ;;
7757 sparc*-*linux*)
7758 LD="${LD-ld} -m elf64_sparc"
7759 ;;
7760 esac
7761 ;;
7762 esac
7763 fi
7764 rm -rf conftest*
7765 ;;
9c60689e 7766
a243b558
JF
7767*-*-sco3.2v5*)
7768 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9d54db95 7769 SAVE_CFLAGS=$CFLAGS
a243b558
JF
7770 CFLAGS="$CFLAGS -belf"
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7772$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7773if ${lt_cv_cc_needs_belf+:} false; then :
7774 $as_echo_n "(cached) " >&6
7775else
7776 ac_ext=c
7777ac_cpp='$CPP $CPPFLAGS'
7778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7780ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e 7781
a243b558
JF
7782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7783/* end confdefs.h. */
9c60689e 7784
a243b558
JF
7785int
7786main ()
7787{
9c60689e 7788
a243b558
JF
7789 ;
7790 return 0;
7791}
7792_ACEOF
7793if ac_fn_c_try_link "$LINENO"; then :
7794 lt_cv_cc_needs_belf=yes
9c60689e 7795else
a243b558 7796 lt_cv_cc_needs_belf=no
9c60689e 7797fi
a243b558
JF
7798rm -f core conftest.err conftest.$ac_objext \
7799 conftest$ac_exeext conftest.$ac_ext
7800 ac_ext=c
7801ac_cpp='$CPP $CPPFLAGS'
7802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7804ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e 7805
a243b558
JF
7806fi
7807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7808$as_echo "$lt_cv_cc_needs_belf" >&6; }
9d54db95 7809 if test yes != "$lt_cv_cc_needs_belf"; then
a243b558 7810 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9d54db95 7811 CFLAGS=$SAVE_CFLAGS
a243b558
JF
7812 fi
7813 ;;
7814*-*solaris*)
9d54db95
JF
7815 # Find out what ABI is being produced by ac_compile, and set linker
7816 # options accordingly.
a243b558
JF
7817 echo 'int i;' > conftest.$ac_ext
7818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7819 (eval $ac_compile) 2>&5
7820 ac_status=$?
7821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7822 test $ac_status = 0; }; then
7823 case `/usr/bin/file conftest.o` in
7824 *64-bit*)
7825 case $lt_cv_prog_gnu_ld in
7826 yes*)
7827 case $host in
9d54db95 7828 i?86-*-solaris*|x86_64-*-solaris*)
a243b558
JF
7829 LD="${LD-ld} -m elf_x86_64"
7830 ;;
7831 sparc*-*-solaris*)
7832 LD="${LD-ld} -m elf64_sparc"
7833 ;;
7834 esac
7835 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7836 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9d54db95 7837 LD=${LD-ld}_sol2
a243b558
JF
7838 fi
7839 ;;
7840 *)
7841 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7842 LD="${LD-ld} -64"
7843 fi
7844 ;;
7845 esac
7846 ;;
7847 esac
7848 fi
7849 rm -rf conftest*
7850 ;;
7851esac
9c60689e 7852
9d54db95 7853need_locks=$enable_libtool_lock
9c60689e 7854
a243b558
JF
7855if test -n "$ac_tool_prefix"; then
7856 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7857set dummy ${ac_tool_prefix}mt; ac_word=$2
7858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7859$as_echo_n "checking for $ac_word... " >&6; }
7860if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7861 $as_echo_n "(cached) " >&6
7862else
7863 if test -n "$MANIFEST_TOOL"; then
7864 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7865else
7866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7867for as_dir in $PATH
7868do
7869 IFS=$as_save_IFS
7870 test -z "$as_dir" && as_dir=.
7871 for ac_exec_ext in '' $ac_executable_extensions; do
7872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7873 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7875 break 2
7876 fi
7877done
7878 done
7879IFS=$as_save_IFS
9c60689e 7880
a243b558
JF
7881fi
7882fi
7883MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7884if test -n "$MANIFEST_TOOL"; then
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7886$as_echo "$MANIFEST_TOOL" >&6; }
7887else
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7889$as_echo "no" >&6; }
7890fi
9c60689e
DWT
7891
7892
a243b558
JF
7893fi
7894if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7895 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7896 # Extract the first word of "mt", so it can be a program name with args.
7897set dummy mt; ac_word=$2
7898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7899$as_echo_n "checking for $ac_word... " >&6; }
7900if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7901 $as_echo_n "(cached) " >&6
7902else
7903 if test -n "$ac_ct_MANIFEST_TOOL"; then
7904 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7905else
7906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7907for as_dir in $PATH
7908do
7909 IFS=$as_save_IFS
7910 test -z "$as_dir" && as_dir=.
7911 for ac_exec_ext in '' $ac_executable_extensions; do
7912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7913 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7915 break 2
7916 fi
7917done
7918 done
7919IFS=$as_save_IFS
9c60689e 7920
a243b558
JF
7921fi
7922fi
7923ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7924if test -n "$ac_ct_MANIFEST_TOOL"; then
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7926$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7927else
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7929$as_echo "no" >&6; }
7930fi
9c60689e 7931
a243b558
JF
7932 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7933 MANIFEST_TOOL=":"
7934 else
7935 case $cross_compiling:$ac_tool_warned in
7936yes:)
7937{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7938$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7939ac_tool_warned=yes ;;
7940esac
7941 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7942 fi
7943else
7944 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7945fi
9c60689e 7946
a243b558
JF
7947test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7949$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7950if ${lt_cv_path_mainfest_tool+:} false; then :
7951 $as_echo_n "(cached) " >&6
7952else
7953 lt_cv_path_mainfest_tool=no
7954 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7955 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7956 cat conftest.err >&5
7957 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7958 lt_cv_path_mainfest_tool=yes
7959 fi
00a96142 7960 rm -rf conftest*
a243b558
JF
7961fi
7962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7963$as_echo "$lt_cv_path_mainfest_tool" >&6; }
9d54db95 7964if test yes != "$lt_cv_path_mainfest_tool"; then
a243b558
JF
7965 MANIFEST_TOOL=:
7966fi
9c60689e
DWT
7967
7968
7969
7970
7971
7972
a243b558
JF
7973 case $host_os in
7974 rhapsody* | darwin*)
7975 if test -n "$ac_tool_prefix"; then
7976 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7977set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7979$as_echo_n "checking for $ac_word... " >&6; }
7980if ${ac_cv_prog_DSYMUTIL+:} false; then :
7981 $as_echo_n "(cached) " >&6
7982else
7983 if test -n "$DSYMUTIL"; then
7984 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7985else
7986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7987for as_dir in $PATH
7988do
7989 IFS=$as_save_IFS
7990 test -z "$as_dir" && as_dir=.
7991 for ac_exec_ext in '' $ac_executable_extensions; do
7992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7993 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7995 break 2
7996 fi
7997done
7998 done
7999IFS=$as_save_IFS
9c60689e 8000
a243b558
JF
8001fi
8002fi
8003DSYMUTIL=$ac_cv_prog_DSYMUTIL
8004if test -n "$DSYMUTIL"; then
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8006$as_echo "$DSYMUTIL" >&6; }
8007else
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8009$as_echo "no" >&6; }
8010fi
9c60689e
DWT
8011
8012
9c60689e 8013fi
a243b558
JF
8014if test -z "$ac_cv_prog_DSYMUTIL"; then
8015 ac_ct_DSYMUTIL=$DSYMUTIL
8016 # Extract the first word of "dsymutil", so it can be a program name with args.
8017set dummy dsymutil; ac_word=$2
8018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8019$as_echo_n "checking for $ac_word... " >&6; }
8020if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9c60689e
DWT
8021 $as_echo_n "(cached) " >&6
8022else
a243b558
JF
8023 if test -n "$ac_ct_DSYMUTIL"; then
8024 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9c60689e 8025else
a243b558
JF
8026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027for as_dir in $PATH
8028do
8029 IFS=$as_save_IFS
8030 test -z "$as_dir" && as_dir=.
8031 for ac_exec_ext in '' $ac_executable_extensions; do
8032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8033 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8035 break 2
8036 fi
8037done
8038 done
8039IFS=$as_save_IFS
8040
9c60689e 8041fi
9c60689e 8042fi
a243b558
JF
8043ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8044if test -n "$ac_ct_DSYMUTIL"; then
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8046$as_echo "$ac_ct_DSYMUTIL" >&6; }
8047else
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8049$as_echo "no" >&6; }
8050fi
9c60689e 8051
a243b558
JF
8052 if test "x$ac_ct_DSYMUTIL" = x; then
8053 DSYMUTIL=":"
8054 else
8055 case $cross_compiling:$ac_tool_warned in
8056yes:)
8057{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8058$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8059ac_tool_warned=yes ;;
9c60689e 8060esac
a243b558
JF
8061 DSYMUTIL=$ac_ct_DSYMUTIL
8062 fi
8063else
8064 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8065fi
9c60689e 8066
a243b558
JF
8067 if test -n "$ac_tool_prefix"; then
8068 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8069set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8071$as_echo_n "checking for $ac_word... " >&6; }
8072if ${ac_cv_prog_NMEDIT+:} false; then :
9c60689e
DWT
8073 $as_echo_n "(cached) " >&6
8074else
a243b558
JF
8075 if test -n "$NMEDIT"; then
8076 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8077else
8078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8079for as_dir in $PATH
8080do
8081 IFS=$as_save_IFS
8082 test -z "$as_dir" && as_dir=.
8083 for ac_exec_ext in '' $ac_executable_extensions; do
8084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8085 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8087 break 2
8088 fi
8089done
9c60689e 8090 done
a243b558 8091IFS=$as_save_IFS
9c60689e 8092
a243b558
JF
8093fi
8094fi
8095NMEDIT=$ac_cv_prog_NMEDIT
8096if test -n "$NMEDIT"; then
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8098$as_echo "$NMEDIT" >&6; }
9c60689e
DWT
8099else
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8101$as_echo "no" >&6; }
8102fi
8103
8104
a243b558
JF
8105fi
8106if test -z "$ac_cv_prog_NMEDIT"; then
8107 ac_ct_NMEDIT=$NMEDIT
8108 # Extract the first word of "nmedit", so it can be a program name with args.
8109set dummy nmedit; ac_word=$2
8110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8111$as_echo_n "checking for $ac_word... " >&6; }
8112if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9c60689e
DWT
8113 $as_echo_n "(cached) " >&6
8114else
a243b558
JF
8115 if test -n "$ac_ct_NMEDIT"; then
8116 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8117else
8118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8119for as_dir in $PATH
8120do
8121 IFS=$as_save_IFS
8122 test -z "$as_dir" && as_dir=.
8123 for ac_exec_ext in '' $ac_executable_extensions; do
8124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8125 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8127 break 2
8128 fi
8129done
9c60689e 8130 done
a243b558 8131IFS=$as_save_IFS
9c60689e 8132
a243b558
JF
8133fi
8134fi
8135ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8136if test -n "$ac_ct_NMEDIT"; then
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8138$as_echo "$ac_ct_NMEDIT" >&6; }
9c60689e
DWT
8139else
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8141$as_echo "no" >&6; }
8142fi
8143
a243b558
JF
8144 if test "x$ac_ct_NMEDIT" = x; then
8145 NMEDIT=":"
9c60689e 8146 else
a243b558
JF
8147 case $cross_compiling:$ac_tool_warned in
8148yes:)
8149{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8150$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8151ac_tool_warned=yes ;;
8152esac
8153 NMEDIT=$ac_ct_NMEDIT
9c60689e 8154 fi
a243b558
JF
8155else
8156 NMEDIT="$ac_cv_prog_NMEDIT"
9c60689e
DWT
8157fi
8158
a243b558
JF
8159 if test -n "$ac_tool_prefix"; then
8160 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8161set dummy ${ac_tool_prefix}lipo; ac_word=$2
8162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8163$as_echo_n "checking for $ac_word... " >&6; }
8164if ${ac_cv_prog_LIPO+:} false; then :
8165 $as_echo_n "(cached) " >&6
8166else
8167 if test -n "$LIPO"; then
8168 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8169else
8170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8171for as_dir in $PATH
8172do
8173 IFS=$as_save_IFS
8174 test -z "$as_dir" && as_dir=.
8175 for ac_exec_ext in '' $ac_executable_extensions; do
8176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8177 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8179 break 2
8180 fi
8181done
8182 done
8183IFS=$as_save_IFS
9c60689e 8184
a243b558
JF
8185fi
8186fi
8187LIPO=$ac_cv_prog_LIPO
8188if test -n "$LIPO"; then
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8190$as_echo "$LIPO" >&6; }
8191else
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8193$as_echo "no" >&6; }
8194fi
9c60689e 8195
9c60689e 8196
a243b558
JF
8197fi
8198if test -z "$ac_cv_prog_LIPO"; then
8199 ac_ct_LIPO=$LIPO
8200 # Extract the first word of "lipo", so it can be a program name with args.
8201set dummy lipo; ac_word=$2
8202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8203$as_echo_n "checking for $ac_word... " >&6; }
8204if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9c60689e
DWT
8205 $as_echo_n "(cached) " >&6
8206else
a243b558
JF
8207 if test -n "$ac_ct_LIPO"; then
8208 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8209else
8210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8211for as_dir in $PATH
8212do
8213 IFS=$as_save_IFS
8214 test -z "$as_dir" && as_dir=.
8215 for ac_exec_ext in '' $ac_executable_extensions; do
8216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8217 ac_cv_prog_ac_ct_LIPO="lipo"
8218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8219 break 2
8220 fi
8221done
8222 done
8223IFS=$as_save_IFS
9c60689e
DWT
8224
8225fi
a243b558
JF
8226fi
8227ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8228if test -n "$ac_ct_LIPO"; then
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8230$as_echo "$ac_ct_LIPO" >&6; }
9c60689e 8231else
a243b558
JF
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8233$as_echo "no" >&6; }
9c60689e
DWT
8234fi
8235
a243b558
JF
8236 if test "x$ac_ct_LIPO" = x; then
8237 LIPO=":"
8238 else
8239 case $cross_compiling:$ac_tool_warned in
8240yes:)
8241{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8242$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8243ac_tool_warned=yes ;;
8244esac
8245 LIPO=$ac_ct_LIPO
8246 fi
8247else
8248 LIPO="$ac_cv_prog_LIPO"
9c60689e
DWT
8249fi
8250
a243b558
JF
8251 if test -n "$ac_tool_prefix"; then
8252 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8253set dummy ${ac_tool_prefix}otool; ac_word=$2
8254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8255$as_echo_n "checking for $ac_word... " >&6; }
8256if ${ac_cv_prog_OTOOL+:} false; then :
8257 $as_echo_n "(cached) " >&6
8258else
8259 if test -n "$OTOOL"; then
8260 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8261else
8262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8263for as_dir in $PATH
8264do
8265 IFS=$as_save_IFS
8266 test -z "$as_dir" && as_dir=.
8267 for ac_exec_ext in '' $ac_executable_extensions; do
8268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8269 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8271 break 2
8272 fi
8273done
8274 done
8275IFS=$as_save_IFS
9c60689e 8276
a243b558
JF
8277fi
8278fi
8279OTOOL=$ac_cv_prog_OTOOL
8280if test -n "$OTOOL"; then
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8282$as_echo "$OTOOL" >&6; }
8283else
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8285$as_echo "no" >&6; }
8286fi
9c60689e
DWT
8287
8288
a243b558
JF
8289fi
8290if test -z "$ac_cv_prog_OTOOL"; then
8291 ac_ct_OTOOL=$OTOOL
8292 # Extract the first word of "otool", so it can be a program name with args.
8293set dummy otool; ac_word=$2
8294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8295$as_echo_n "checking for $ac_word... " >&6; }
8296if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8297 $as_echo_n "(cached) " >&6
8298else
8299 if test -n "$ac_ct_OTOOL"; then
8300 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8301else
8302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8303for as_dir in $PATH
8304do
8305 IFS=$as_save_IFS
8306 test -z "$as_dir" && as_dir=.
8307 for ac_exec_ext in '' $ac_executable_extensions; do
8308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8309 ac_cv_prog_ac_ct_OTOOL="otool"
8310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8311 break 2
8312 fi
8313done
8314 done
8315IFS=$as_save_IFS
9c60689e 8316
a243b558
JF
8317fi
8318fi
8319ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8320if test -n "$ac_ct_OTOOL"; then
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8322$as_echo "$ac_ct_OTOOL" >&6; }
8323else
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8325$as_echo "no" >&6; }
8326fi
9c60689e 8327
a243b558
JF
8328 if test "x$ac_ct_OTOOL" = x; then
8329 OTOOL=":"
8330 else
8331 case $cross_compiling:$ac_tool_warned in
8332yes:)
8333{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8334$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8335ac_tool_warned=yes ;;
8336esac
8337 OTOOL=$ac_ct_OTOOL
8338 fi
8339else
8340 OTOOL="$ac_cv_prog_OTOOL"
8341fi
9c60689e 8342
a243b558
JF
8343 if test -n "$ac_tool_prefix"; then
8344 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8345set dummy ${ac_tool_prefix}otool64; ac_word=$2
8346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8347$as_echo_n "checking for $ac_word... " >&6; }
8348if ${ac_cv_prog_OTOOL64+:} false; then :
8349 $as_echo_n "(cached) " >&6
8350else
8351 if test -n "$OTOOL64"; then
8352 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8353else
8354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8355for as_dir in $PATH
8356do
8357 IFS=$as_save_IFS
8358 test -z "$as_dir" && as_dir=.
8359 for ac_exec_ext in '' $ac_executable_extensions; do
8360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8361 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8363 break 2
8364 fi
8365done
8366 done
8367IFS=$as_save_IFS
9c60689e 8368
a243b558
JF
8369fi
8370fi
8371OTOOL64=$ac_cv_prog_OTOOL64
8372if test -n "$OTOOL64"; then
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8374$as_echo "$OTOOL64" >&6; }
8375else
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8377$as_echo "no" >&6; }
8378fi
9c60689e 8379
9c60689e 8380
a243b558
JF
8381fi
8382if test -z "$ac_cv_prog_OTOOL64"; then
8383 ac_ct_OTOOL64=$OTOOL64
8384 # Extract the first word of "otool64", so it can be a program name with args.
8385set dummy otool64; ac_word=$2
8386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8387$as_echo_n "checking for $ac_word... " >&6; }
8388if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8389 $as_echo_n "(cached) " >&6
8390else
8391 if test -n "$ac_ct_OTOOL64"; then
8392 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8393else
8394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8395for as_dir in $PATH
8396do
8397 IFS=$as_save_IFS
8398 test -z "$as_dir" && as_dir=.
8399 for ac_exec_ext in '' $ac_executable_extensions; do
8400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8401 ac_cv_prog_ac_ct_OTOOL64="otool64"
8402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8403 break 2
8404 fi
8405done
8406 done
8407IFS=$as_save_IFS
9c60689e 8408
a243b558
JF
8409fi
8410fi
8411ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8412if test -n "$ac_ct_OTOOL64"; then
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8414$as_echo "$ac_ct_OTOOL64" >&6; }
8415else
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417$as_echo "no" >&6; }
8418fi
9c60689e 8419
a243b558
JF
8420 if test "x$ac_ct_OTOOL64" = x; then
8421 OTOOL64=":"
8422 else
8423 case $cross_compiling:$ac_tool_warned in
8424yes:)
8425{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8426$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8427ac_tool_warned=yes ;;
8428esac
8429 OTOOL64=$ac_ct_OTOOL64
8430 fi
8431else
8432 OTOOL64="$ac_cv_prog_OTOOL64"
8433fi
ee134472 8434
9c60689e 8435
9c60689e 8436
9c60689e 8437
9c60689e 8438
9c60689e 8439
ee134472 8440
9c60689e 8441
9c60689e 8442
9c60689e 8443
9c60689e 8444
9c60689e 8445
9c60689e 8446
9c60689e 8447
9c60689e 8448
9c60689e 8449
9c60689e 8450
9c60689e 8451
9c60689e 8452
9c60689e 8453
9c60689e 8454
9c60689e 8455
9c60689e 8456
9c60689e 8457
9c60689e 8458
a243b558
JF
8459
8460
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8462$as_echo_n "checking for -single_module linker flag... " >&6; }
8463if ${lt_cv_apple_cc_single_mod+:} false; then :
ee134472
JF
8464 $as_echo_n "(cached) " >&6
8465else
a243b558 8466 lt_cv_apple_cc_single_mod=no
9d54db95 8467 if test -z "$LT_MULTI_MODULE"; then
a243b558
JF
8468 # By default we will add the -single_module flag. You can override
8469 # by either setting the environment variable LT_MULTI_MODULE
8470 # non-empty at configure time, or by adding -multi_module to the
8471 # link flags.
8472 rm -rf libconftest.dylib*
8473 echo "int foo(void){return 1;}" > conftest.c
8474 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8475-dynamiclib -Wl,-single_module conftest.c" >&5
8476 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8477 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8478 _lt_result=$?
8479 # If there is a non-empty error log, and "single_module"
8480 # appears in it, assume the flag caused a linker warning
8481 if test -s conftest.err && $GREP single_module conftest.err; then
8482 cat conftest.err >&5
8483 # Otherwise, if the output was created with a 0 exit code from
8484 # the compiler, it worked.
9d54db95 8485 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
a243b558
JF
8486 lt_cv_apple_cc_single_mod=yes
8487 else
8488 cat conftest.err >&5
8489 fi
8490 rm -rf libconftest.dylib*
8491 rm -f conftest.*
8492 fi
ee134472 8493fi
a243b558
JF
8494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8495$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9c60689e 8496
a243b558
JF
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8498$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8499if ${lt_cv_ld_exported_symbols_list+:} false; then :
9c60689e
DWT
8500 $as_echo_n "(cached) " >&6
8501else
a243b558
JF
8502 lt_cv_ld_exported_symbols_list=no
8503 save_LDFLAGS=$LDFLAGS
8504 echo "_main" > conftest.sym
8505 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8507/* end confdefs.h. */
9c60689e 8508
a243b558
JF
8509int
8510main ()
8511{
9c60689e 8512
a243b558
JF
8513 ;
8514 return 0;
8515}
8516_ACEOF
8517if ac_fn_c_try_link "$LINENO"; then :
8518 lt_cv_ld_exported_symbols_list=yes
9c60689e 8519else
a243b558 8520 lt_cv_ld_exported_symbols_list=no
9c60689e 8521fi
a243b558
JF
8522rm -f core conftest.err conftest.$ac_objext \
8523 conftest$ac_exeext conftest.$ac_ext
9d54db95 8524 LDFLAGS=$save_LDFLAGS
9c60689e
DWT
8525
8526fi
a243b558
JF
8527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8528$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9c60689e 8529
a243b558
JF
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8531$as_echo_n "checking for -force_load linker flag... " >&6; }
8532if ${lt_cv_ld_force_load+:} false; then :
9c60689e
DWT
8533 $as_echo_n "(cached) " >&6
8534else
a243b558
JF
8535 lt_cv_ld_force_load=no
8536 cat > conftest.c << _LT_EOF
8537int forced_loaded() { return 2;}
8538_LT_EOF
8539 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8540 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8541 echo "$AR cru libconftest.a conftest.o" >&5
8542 $AR cru libconftest.a conftest.o 2>&5
8543 echo "$RANLIB libconftest.a" >&5
8544 $RANLIB libconftest.a 2>&5
8545 cat > conftest.c << _LT_EOF
8546int main() { return 0;}
8547_LT_EOF
8548 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8549 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8550 _lt_result=$?
8551 if test -s conftest.err && $GREP force_load conftest.err; then
8552 cat conftest.err >&5
9d54db95 8553 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
a243b558
JF
8554 lt_cv_ld_force_load=yes
8555 else
8556 cat conftest.err >&5
8557 fi
8558 rm -f conftest.err libconftest.a conftest conftest.c
8559 rm -rf conftest.dSYM
9c60689e
DWT
8560
8561fi
a243b558
JF
8562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8563$as_echo "$lt_cv_ld_force_load" >&6; }
8564 case $host_os in
8565 rhapsody* | darwin1.[012])
9d54db95 8566 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
a243b558 8567 darwin1.*)
9d54db95 8568 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
a243b558
JF
8569 darwin*) # darwin 5.x on
8570 # if running on 10.5 or later, the deployment target defaults
8571 # to the OS version, if on x86, and 10.4, the deployment
8572 # target defaults to 10.4. Don't you love it?
8573 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8574 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9d54db95
JF
8575 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8576 10.[012][,.]*)
8577 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
a243b558 8578 10.*)
9d54db95 8579 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
a243b558
JF
8580 esac
8581 ;;
8582 esac
9d54db95 8583 if test yes = "$lt_cv_apple_cc_single_mod"; then
a243b558
JF
8584 _lt_dar_single_mod='$single_module'
8585 fi
9d54db95
JF
8586 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8587 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
a243b558 8588 else
9d54db95 8589 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
a243b558 8590 fi
9d54db95 8591 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
a243b558
JF
8592 _lt_dsymutil='~$DSYMUTIL $lib || :'
8593 else
8594 _lt_dsymutil=
8595 fi
8596 ;;
8597 esac
9c60689e 8598
9d54db95
JF
8599# func_munge_path_list VARIABLE PATH
8600# -----------------------------------
8601# VARIABLE is name of variable containing _space_ separated list of
8602# directories to be munged by the contents of PATH, which is string
8603# having a format:
8604# "DIR[:DIR]:"
8605# string "DIR[ DIR]" will be prepended to VARIABLE
8606# ":DIR[:DIR]"
8607# string "DIR[ DIR]" will be appended to VARIABLE
8608# "DIRP[:DIRP]::[DIRA:]DIRA"
8609# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8610# "DIRA[ DIRA]" will be appended to VARIABLE
8611# "DIR[:DIR]"
8612# VARIABLE will be replaced by "DIR[ DIR]"
8613func_munge_path_list ()
8614{
8615 case x$2 in
8616 x)
8617 ;;
8618 *:)
8619 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8620 ;;
8621 x:*)
8622 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8623 ;;
8624 *::*)
8625 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8626 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8627 ;;
8628 *)
8629 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8630 ;;
8631 esac
8632}
8633
a243b558
JF
8634ac_ext=c
8635ac_cpp='$CPP $CPPFLAGS'
8636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8638ac_compiler_gnu=$ac_cv_c_compiler_gnu
8639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8640$as_echo_n "checking how to run the C preprocessor... " >&6; }
8641# On Suns, sometimes $CPP names a directory.
8642if test -n "$CPP" && test -d "$CPP"; then
8643 CPP=
9c60689e 8644fi
a243b558
JF
8645if test -z "$CPP"; then
8646 if ${ac_cv_prog_CPP+:} false; then :
8647 $as_echo_n "(cached) " >&6
8648else
8649 # Double quotes because CPP needs to be expanded
8650 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8651 do
8652 ac_preproc_ok=false
8653for ac_c_preproc_warn_flag in '' yes
8654do
8655 # Use a header file that comes with gcc, so configuring glibc
8656 # with a fresh cross-compiler works.
8657 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8658 # <limits.h> exists even on freestanding compilers.
8659 # On the NeXT, cc -E runs the code through the compiler's parser,
8660 # not just through cpp. "Syntax error" is here to catch this case.
8661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8662/* end confdefs.h. */
8663#ifdef __STDC__
8664# include <limits.h>
8665#else
8666# include <assert.h>
8667#endif
8668 Syntax error
8669_ACEOF
8670if ac_fn_c_try_cpp "$LINENO"; then :
9c60689e 8671
a243b558
JF
8672else
8673 # Broken: fails on valid input.
8674continue
8675fi
8676rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8677
a243b558
JF
8678 # OK, works on sane cases. Now check whether nonexistent headers
8679 # can be detected and how.
8680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8681/* end confdefs.h. */
8682#include <ac_nonexistent.h>
8683_ACEOF
8684if ac_fn_c_try_cpp "$LINENO"; then :
8685 # Broken: success on invalid input.
8686continue
8687else
8688 # Passes both tests.
8689ac_preproc_ok=:
8690break
8691fi
8692rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8693
a243b558
JF
8694done
8695# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8696rm -f conftest.i conftest.err conftest.$ac_ext
8697if $ac_preproc_ok; then :
8698 break
8699fi
9c60689e 8700
a243b558
JF
8701 done
8702 ac_cv_prog_CPP=$CPP
9c60689e 8703
a243b558
JF
8704fi
8705 CPP=$ac_cv_prog_CPP
9c60689e 8706else
a243b558
JF
8707 ac_cv_prog_CPP=$CPP
8708fi
8709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8710$as_echo "$CPP" >&6; }
8711ac_preproc_ok=false
8712for ac_c_preproc_warn_flag in '' yes
8713do
8714 # Use a header file that comes with gcc, so configuring glibc
8715 # with a fresh cross-compiler works.
8716 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8717 # <limits.h> exists even on freestanding compilers.
8718 # On the NeXT, cc -E runs the code through the compiler's parser,
8719 # not just through cpp. "Syntax error" is here to catch this case.
8720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8721/* end confdefs.h. */
8722#ifdef __STDC__
8723# include <limits.h>
8724#else
8725# include <assert.h>
8726#endif
8727 Syntax error
8728_ACEOF
8729if ac_fn_c_try_cpp "$LINENO"; then :
9c60689e 8730
a243b558
JF
8731else
8732 # Broken: fails on valid input.
8733continue
9c60689e 8734fi
a243b558 8735rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8736
a243b558
JF
8737 # OK, works on sane cases. Now check whether nonexistent headers
8738 # can be detected and how.
8739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8740/* end confdefs.h. */
8741#include <ac_nonexistent.h>
8742_ACEOF
8743if ac_fn_c_try_cpp "$LINENO"; then :
8744 # Broken: success on invalid input.
8745continue
8746else
8747 # Passes both tests.
8748ac_preproc_ok=:
8749break
8750fi
8751rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8752
a243b558
JF
8753done
8754# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8755rm -f conftest.i conftest.err conftest.$ac_ext
8756if $ac_preproc_ok; then :
9c60689e 8757
a243b558
JF
8758else
8759 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8760$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8761as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8762See \`config.log' for more details" "$LINENO" 5; }
8763fi
9c60689e 8764
a243b558
JF
8765ac_ext=c
8766ac_cpp='$CPP $CPPFLAGS'
8767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8769ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e
DWT
8770
8771
a243b558
JF
8772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8773$as_echo_n "checking for ANSI C header files... " >&6; }
8774if ${ac_cv_header_stdc+:} false; then :
9c60689e
DWT
8775 $as_echo_n "(cached) " >&6
8776else
a243b558
JF
8777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8778/* end confdefs.h. */
8779#include <stdlib.h>
8780#include <stdarg.h>
8781#include <string.h>
8782#include <float.h>
9c60689e 8783
a243b558
JF
8784int
8785main ()
8786{
9c60689e 8787
a243b558
JF
8788 ;
8789 return 0;
8790}
8791_ACEOF
8792if ac_fn_c_try_compile "$LINENO"; then :
8793 ac_cv_header_stdc=yes
8794else
8795 ac_cv_header_stdc=no
9c60689e 8796fi
a243b558
JF
8797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8798
8799if test $ac_cv_header_stdc = yes; then
8800 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8802/* end confdefs.h. */
8803#include <string.h>
9c60689e 8804
a243b558
JF
8805_ACEOF
8806if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8807 $EGREP "memchr" >/dev/null 2>&1; then :
9c60689e 8808
a243b558
JF
8809else
8810 ac_cv_header_stdc=no
8811fi
8812rm -f conftest*
9c60689e 8813
a243b558
JF
8814fi
8815
8816if test $ac_cv_header_stdc = yes; then
8817 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8819/* end confdefs.h. */
8820#include <stdlib.h>
8821
8822_ACEOF
8823if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8824 $EGREP "free" >/dev/null 2>&1; then :
9c60689e 8825
9c60689e 8826else
a243b558 8827 ac_cv_header_stdc=no
9c60689e 8828fi
a243b558 8829rm -f conftest*
9c60689e 8830
a243b558 8831fi
9c60689e 8832
a243b558
JF
8833if test $ac_cv_header_stdc = yes; then
8834 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8835 if test "$cross_compiling" = yes; then :
8836 :
8837else
8838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8839/* end confdefs.h. */
8840#include <ctype.h>
8841#include <stdlib.h>
8842#if ((' ' & 0x0FF) == 0x020)
8843# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8844# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8845#else
8846# define ISLOWER(c) \
8847 (('a' <= (c) && (c) <= 'i') \
8848 || ('j' <= (c) && (c) <= 'r') \
8849 || ('s' <= (c) && (c) <= 'z'))
8850# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8851#endif
9c60689e 8852
a243b558
JF
8853#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8854int
8855main ()
8856{
8857 int i;
8858 for (i = 0; i < 256; i++)
8859 if (XOR (islower (i), ISLOWER (i))
8860 || toupper (i) != TOUPPER (i))
8861 return 2;
8862 return 0;
8863}
8864_ACEOF
8865if ac_fn_c_try_run "$LINENO"; then :
9c60689e 8866
a243b558
JF
8867else
8868 ac_cv_header_stdc=no
8869fi
8870rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8871 conftest.$ac_objext conftest.beam conftest.$ac_ext
8872fi
9c60689e 8873
a243b558
JF
8874fi
8875fi
8876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8877$as_echo "$ac_cv_header_stdc" >&6; }
8878if test $ac_cv_header_stdc = yes; then
9c60689e 8879
a243b558 8880$as_echo "#define STDC_HEADERS 1" >>confdefs.h
9c60689e 8881
a243b558 8882fi
9c60689e 8883
a243b558
JF
8884# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8885for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8886 inttypes.h stdint.h unistd.h
8887do :
8888 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8889ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8890"
8891if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8892 cat >>confdefs.h <<_ACEOF
8893#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8894_ACEOF
9c60689e 8895
a243b558 8896fi
ee134472 8897
a243b558 8898done
ee134472 8899
9c60689e 8900
a243b558
JF
8901for ac_header in dlfcn.h
8902do :
8903 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8904"
8905if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8906 cat >>confdefs.h <<_ACEOF
8907#define HAVE_DLFCN_H 1
8908_ACEOF
9c60689e 8909
a243b558 8910fi
9c60689e 8911
a243b558 8912done
9c60689e 8913
9c60689e 8914
9c60689e 8915
9c60689e 8916
a243b558
JF
8917func_stripname_cnf ()
8918{
9d54db95
JF
8919 case $2 in
8920 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8921 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
a243b558
JF
8922 esac
8923} # func_stripname_cnf
9c60689e 8924
9c60689e 8925
ee134472 8926
a243b558
JF
8927
8928
8929# Set options
8930# Check whether --enable-static was given.
8931if test "${enable_static+set}" = set; then :
8932 enableval=$enable_static; p=${PACKAGE-default}
8933 case $enableval in
8934 yes) enable_static=yes ;;
8935 no) enable_static=no ;;
8936 *)
8937 enable_static=no
8938 # Look at the argument we got. We use all the common list separators.
9d54db95 8939 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
a243b558 8940 for pkg in $enableval; do
9d54db95 8941 IFS=$lt_save_ifs
a243b558
JF
8942 if test "X$pkg" = "X$p"; then
8943 enable_static=yes
8944 fi
8945 done
9d54db95 8946 IFS=$lt_save_ifs
9c60689e 8947 ;;
a243b558
JF
8948 esac
8949else
8950 enable_static=no
8951fi
9c60689e 8952
9c60689e 8953
9c60689e 8954
9c60689e 8955
9c60689e 8956
9c60689e 8957
9c60689e 8958
9c60689e 8959
9c60689e 8960
9c60689e 8961
a243b558 8962 enable_dlopen=no
9c60689e 8963
9c60689e 8964
a243b558
JF
8965 enable_win32_dll=no
8966
8967
8968 # Check whether --enable-shared was given.
8969if test "${enable_shared+set}" = set; then :
8970 enableval=$enable_shared; p=${PACKAGE-default}
8971 case $enableval in
8972 yes) enable_shared=yes ;;
8973 no) enable_shared=no ;;
9c60689e 8974 *)
a243b558
JF
8975 enable_shared=no
8976 # Look at the argument we got. We use all the common list separators.
9d54db95 8977 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
a243b558 8978 for pkg in $enableval; do
9d54db95 8979 IFS=$lt_save_ifs
a243b558
JF
8980 if test "X$pkg" = "X$p"; then
8981 enable_shared=yes
8982 fi
8983 done
9d54db95 8984 IFS=$lt_save_ifs
9c60689e
DWT
8985 ;;
8986 esac
a243b558
JF
8987else
8988 enable_shared=yes
8989fi
9c60689e 8990
9c60689e 8991
9c60689e 8992
9c60689e 8993
9c60689e 8994
9c60689e 8995
9c60689e 8996
9c60689e 8997
9c60689e 8998
9c60689e 8999
9c60689e 9000
a243b558
JF
9001# Check whether --with-pic was given.
9002if test "${with_pic+set}" = set; then :
9003 withval=$with_pic; lt_p=${PACKAGE-default}
9004 case $withval in
9005 yes|no) pic_mode=$withval ;;
9006 *)
9007 pic_mode=default
9008 # Look at the argument we got. We use all the common list separators.
9d54db95 9009 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
a243b558 9010 for lt_pkg in $withval; do
9d54db95 9011 IFS=$lt_save_ifs
a243b558
JF
9012 if test "X$lt_pkg" = "X$lt_p"; then
9013 pic_mode=yes
9014 fi
9015 done
9d54db95 9016 IFS=$lt_save_ifs
a243b558
JF
9017 ;;
9018 esac
9019else
9020 pic_mode=default
9c60689e 9021fi
ee134472 9022
ee134472 9023
9c60689e 9024
9c60689e 9025
9c60689e 9026
ee134472 9027
ee134472 9028
9c60689e 9029
a243b558
JF
9030 # Check whether --enable-fast-install was given.
9031if test "${enable_fast_install+set}" = set; then :
9032 enableval=$enable_fast_install; p=${PACKAGE-default}
9033 case $enableval in
9034 yes) enable_fast_install=yes ;;
9035 no) enable_fast_install=no ;;
9036 *)
9037 enable_fast_install=no
9038 # Look at the argument we got. We use all the common list separators.
9d54db95 9039 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
a243b558 9040 for pkg in $enableval; do
9d54db95 9041 IFS=$lt_save_ifs
a243b558
JF
9042 if test "X$pkg" = "X$p"; then
9043 enable_fast_install=yes
9c60689e 9044 fi
a243b558 9045 done
9d54db95 9046 IFS=$lt_save_ifs
9c60689e 9047 ;;
a243b558
JF
9048 esac
9049else
9050 enable_fast_install=yes
9051fi
9c60689e 9052
9c60689e 9053
9c60689e 9054
9c60689e 9055
9c60689e
DWT
9056
9057
53ba6704 9058
9c60689e 9059
9d54db95
JF
9060 shared_archive_member_spec=
9061case $host,$enable_shared in
9062power*-*-aix[5-9]*,yes)
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9064$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9065
9066# Check whether --with-aix-soname was given.
9067if test "${with_aix_soname+set}" = set; then :
9068 withval=$with_aix_soname; case $withval in
9069 aix|svr4|both)
9070 ;;
9071 *)
9072 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9073 ;;
9074 esac
9075 lt_cv_with_aix_soname=$with_aix_soname
9076else
9077 if ${lt_cv_with_aix_soname+:} false; then :
9078 $as_echo_n "(cached) " >&6
9079else
9080 lt_cv_with_aix_soname=aix
9081fi
9082
9083 with_aix_soname=$lt_cv_with_aix_soname
9084fi
9085
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9087$as_echo "$with_aix_soname" >&6; }
9088 if test aix != "$with_aix_soname"; then
9089 # For the AIX way of multilib, we name the shared archive member
9090 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9091 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9092 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9093 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9094 if test 64 = "${OBJECT_MODE-32}"; then
9095 shared_archive_member_spec=shr_64
9096 else
9097 shared_archive_member_spec=shr
9098 fi
9099 fi
9100 ;;
9101*)
9102 with_aix_soname=aix
9103 ;;
9104esac
9105
9106
9107
9108
9109
9110
9111
9c60689e 9112
9c60689e 9113
9c60689e 9114
a243b558 9115# This can be used to rebuild libtool when needed
9d54db95 9116LIBTOOL_DEPS=$ltmain
9c60689e 9117
a243b558
JF
9118# Always use our own libtool.
9119LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9c60689e 9120
9c60689e 9121
9c60689e 9122
9c60689e 9123
9c60689e 9124
ee134472 9125
ee134472 9126
ee134472 9127
ee134472 9128
9c60689e 9129
9c60689e 9130
9c60689e 9131
9c60689e 9132
9c60689e 9133
9c60689e 9134
9c60689e 9135
9c60689e 9136
9c60689e 9137
9c60689e 9138
9c60689e 9139
9c60689e 9140
9c60689e 9141
9c60689e 9142
9c60689e 9143
9c60689e 9144
9c60689e 9145
9c60689e 9146
9c60689e 9147
9c60689e 9148
9c60689e 9149
a243b558 9150test -z "$LN_S" && LN_S="ln -s"
9c60689e
DWT
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9d54db95 9165if test -n "${ZSH_VERSION+set}"; then
a243b558
JF
9166 setopt NO_GLOB_SUBST
9167fi
9c60689e 9168
a243b558
JF
9169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9170$as_echo_n "checking for objdir... " >&6; }
9171if ${lt_cv_objdir+:} false; then :
ee134472
JF
9172 $as_echo_n "(cached) " >&6
9173else
a243b558
JF
9174 rm -f .libs 2>/dev/null
9175mkdir .libs 2>/dev/null
9176if test -d .libs; then
9177 lt_cv_objdir=.libs
9178else
9179 # MS-DOS does not allow filenames that begin with a dot.
9180 lt_cv_objdir=_libs
ee134472 9181fi
a243b558
JF
9182rmdir .libs 2>/dev/null
9183fi
9184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9185$as_echo "$lt_cv_objdir" >&6; }
9186objdir=$lt_cv_objdir
9c60689e
DWT
9187
9188
9189
9190
9191
a243b558
JF
9192cat >>confdefs.h <<_ACEOF
9193#define LT_OBJDIR "$lt_cv_objdir/"
9194_ACEOF
9c60689e
DWT
9195
9196
9197
9198
a243b558
JF
9199case $host_os in
9200aix3*)
9201 # AIX sometimes has problems with the GCC collect2 program. For some
9202 # reason, if we set the COLLECT_NAMES environment variable, the problems
9203 # vanish in a puff of smoke.
9d54db95 9204 if test set != "${COLLECT_NAMES+set}"; then
a243b558
JF
9205 COLLECT_NAMES=
9206 export COLLECT_NAMES
9207 fi
9208 ;;
9209esac
9c60689e 9210
a243b558
JF
9211# Global variables:
9212ofile=libtool
9213can_build_shared=yes
9c60689e 9214
9d54db95 9215# All known linkers require a '.a' archive for static linking (except MSVC,
a243b558
JF
9216# which needs '.lib').
9217libext=a
9c60689e 9218
9d54db95 9219with_gnu_ld=$lt_cv_prog_gnu_ld
9c60689e 9220
9d54db95
JF
9221old_CC=$CC
9222old_CFLAGS=$CFLAGS
9c60689e 9223
a243b558
JF
9224# Set sane defaults for various variables
9225test -z "$CC" && CC=cc
9226test -z "$LTCC" && LTCC=$CC
9227test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9228test -z "$LD" && LD=ld
9229test -z "$ac_objext" && ac_objext=o
9c60689e 9230
9d54db95
JF
9231func_cc_basename $compiler
9232cc_basename=$func_cc_basename_result
9c60689e
DWT
9233
9234
a243b558
JF
9235# Only perform the check for file, if the check method requires it
9236test -z "$MAGIC_CMD" && MAGIC_CMD=file
9237case $deplibs_check_method in
9238file_magic*)
9239 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9241$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9242if ${lt_cv_path_MAGIC_CMD+:} false; then :
9243 $as_echo_n "(cached) " >&6
9244else
9245 case $MAGIC_CMD in
9246[\\/*] | ?:[\\/]*)
9d54db95 9247 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
a243b558
JF
9248 ;;
9249*)
9d54db95
JF
9250 lt_save_MAGIC_CMD=$MAGIC_CMD
9251 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
a243b558
JF
9252 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9253 for ac_dir in $ac_dummy; do
9d54db95 9254 IFS=$lt_save_ifs
a243b558 9255 test -z "$ac_dir" && ac_dir=.
9d54db95
JF
9256 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9257 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
a243b558
JF
9258 if test -n "$file_magic_test_file"; then
9259 case $deplibs_check_method in
9260 "file_magic "*)
9261 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9d54db95 9262 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
a243b558
JF
9263 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9264 $EGREP "$file_magic_regex" > /dev/null; then
9265 :
9266 else
9267 cat <<_LT_EOF 1>&2
9c60689e 9268
a243b558
JF
9269*** Warning: the command libtool uses to detect shared libraries,
9270*** $file_magic_cmd, produces output that libtool cannot recognize.
9271*** The result is that libtool may fail to recognize shared libraries
9272*** as such. This will affect the creation of libtool libraries that
9273*** depend on shared libraries, but programs linked with such libtool
9274*** libraries will work regardless of this problem. Nevertheless, you
9275*** may want to report the problem to your system manager and/or to
9276*** bug-libtool@gnu.org
9c60689e 9277
a243b558
JF
9278_LT_EOF
9279 fi ;;
9280 esac
9281 fi
9282 break
9283 fi
9284 done
9d54db95
JF
9285 IFS=$lt_save_ifs
9286 MAGIC_CMD=$lt_save_MAGIC_CMD
a243b558
JF
9287 ;;
9288esac
9289fi
9c60689e 9290
9d54db95 9291MAGIC_CMD=$lt_cv_path_MAGIC_CMD
a243b558
JF
9292if test -n "$MAGIC_CMD"; then
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9294$as_echo "$MAGIC_CMD" >&6; }
9295else
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9297$as_echo "no" >&6; }
9298fi
9c60689e
DWT
9299
9300
9301
9302
9303
a243b558
JF
9304if test -z "$lt_cv_path_MAGIC_CMD"; then
9305 if test -n "$ac_tool_prefix"; then
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9307$as_echo_n "checking for file... " >&6; }
9308if ${lt_cv_path_MAGIC_CMD+:} false; then :
9309 $as_echo_n "(cached) " >&6
9310else
9311 case $MAGIC_CMD in
9312[\\/*] | ?:[\\/]*)
9d54db95 9313 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
a243b558
JF
9314 ;;
9315*)
9d54db95
JF
9316 lt_save_MAGIC_CMD=$MAGIC_CMD
9317 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
a243b558
JF
9318 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9319 for ac_dir in $ac_dummy; do
9d54db95 9320 IFS=$lt_save_ifs
a243b558 9321 test -z "$ac_dir" && ac_dir=.
9d54db95
JF
9322 if test -f "$ac_dir/file"; then
9323 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
a243b558
JF
9324 if test -n "$file_magic_test_file"; then
9325 case $deplibs_check_method in
9326 "file_magic "*)
9327 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9d54db95 9328 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
a243b558
JF
9329 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9330 $EGREP "$file_magic_regex" > /dev/null; then
9331 :
9332 else
9333 cat <<_LT_EOF 1>&2
9c60689e 9334
a243b558
JF
9335*** Warning: the command libtool uses to detect shared libraries,
9336*** $file_magic_cmd, produces output that libtool cannot recognize.
9337*** The result is that libtool may fail to recognize shared libraries
9338*** as such. This will affect the creation of libtool libraries that
9339*** depend on shared libraries, but programs linked with such libtool
9340*** libraries will work regardless of this problem. Nevertheless, you
9341*** may want to report the problem to your system manager and/or to
9342*** bug-libtool@gnu.org
9c60689e 9343
a243b558
JF
9344_LT_EOF
9345 fi ;;
9346 esac
9347 fi
9348 break
9349 fi
9350 done
9d54db95
JF
9351 IFS=$lt_save_ifs
9352 MAGIC_CMD=$lt_save_MAGIC_CMD
a243b558
JF
9353 ;;
9354esac
9355fi
9c60689e 9356
9d54db95 9357MAGIC_CMD=$lt_cv_path_MAGIC_CMD
a243b558
JF
9358if test -n "$MAGIC_CMD"; then
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9360$as_echo "$MAGIC_CMD" >&6; }
9361else
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9363$as_echo "no" >&6; }
9364fi
9c60689e
DWT
9365
9366
a243b558
JF
9367 else
9368 MAGIC_CMD=:
9369 fi
9370fi
9c60689e 9371
a243b558
JF
9372 fi
9373 ;;
9374esac
9c60689e 9375
a243b558 9376# Use C for the default configuration in the libtool script
9c60689e 9377
9d54db95 9378lt_save_CC=$CC
a243b558
JF
9379ac_ext=c
9380ac_cpp='$CPP $CPPFLAGS'
9381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9383ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e
DWT
9384
9385
a243b558
JF
9386# Source file extension for C test sources.
9387ac_ext=c
9c60689e 9388
a243b558
JF
9389# Object file extension for compiled C test sources.
9390objext=o
9391objext=$objext
9c60689e 9392
a243b558
JF
9393# Code to be used in simple compile tests
9394lt_simple_compile_test_code="int some_variable = 0;"
9c60689e 9395
a243b558
JF
9396# Code to be used in simple link tests
9397lt_simple_link_test_code='int main(){return(0);}'
9c60689e
DWT
9398
9399
9400
9401
9402
9403
9404
a243b558
JF
9405# If no C compiler was specified, use CC.
9406LTCC=${LTCC-"$CC"}
9c60689e 9407
a243b558
JF
9408# If no C compiler flags were specified, use CFLAGS.
9409LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9c60689e 9410
a243b558
JF
9411# Allow CC to be a program name with arguments.
9412compiler=$CC
9c60689e 9413
a243b558
JF
9414# Save the default compiler, since it gets overwritten when the other
9415# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9416compiler_DEFAULT=$CC
9c60689e 9417
a243b558
JF
9418# save warnings/boilerplate of simple test code
9419ac_outfile=conftest.$ac_objext
9420echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9421eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9422_lt_compiler_boilerplate=`cat conftest.err`
00a96142 9423$RM -r conftest*
9c60689e 9424
a243b558
JF
9425ac_outfile=conftest.$ac_objext
9426echo "$lt_simple_link_test_code" >conftest.$ac_ext
9427eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9428_lt_linker_boilerplate=`cat conftest.err`
9429$RM -r conftest*
9c60689e
DWT
9430
9431
a243b558
JF
9432## CAVEAT EMPTOR:
9433## There is no encapsulation within the following macros, do not change
9434## the running order or otherwise move them around unless you know exactly
9435## what you are doing...
9436if test -n "$compiler"; then
9c60689e 9437
a243b558 9438lt_prog_compiler_no_builtin_flag=
9c60689e 9439
9d54db95 9440if test yes = "$GCC"; then
a243b558
JF
9441 case $cc_basename in
9442 nvcc*)
9443 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9444 *)
9445 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9446 esac
9c60689e 9447
a243b558
JF
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9449$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9450if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9451 $as_echo_n "(cached) " >&6
9452else
9453 lt_cv_prog_compiler_rtti_exceptions=no
9454 ac_outfile=conftest.$ac_objext
9455 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9d54db95 9456 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
a243b558
JF
9457 # Insert the option either (1) after the last *FLAGS variable, or
9458 # (2) before a word containing "conftest.", or (3) at the end.
9459 # Note that $ac_compile itself does not contain backslashes and begins
9460 # with a dollar sign (not a hyphen), so the echo should work correctly.
9461 # The option is referenced via a variable to avoid confusing sed.
9462 lt_compile=`echo "$ac_compile" | $SED \
9463 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9464 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9465 -e 's:$: $lt_compiler_flag:'`
9466 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9467 (eval "$lt_compile" 2>conftest.err)
9468 ac_status=$?
9469 cat conftest.err >&5
9470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471 if (exit $ac_status) && test -s "$ac_outfile"; then
9472 # The compiler can only warn and ignore the option if not recognized
9473 # So say no if there are warnings other than the usual output.
9474 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9475 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9476 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9477 lt_cv_prog_compiler_rtti_exceptions=yes
9478 fi
9479 fi
00a96142 9480 $RM -r conftest*
9c60689e 9481
a243b558
JF
9482fi
9483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9484$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9c60689e 9485
9d54db95 9486if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
a243b558
JF
9487 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9488else
9489 :
9490fi
9c60689e 9491
a243b558 9492fi
9c60689e
DWT
9493
9494
9495
9496
9497
9498
a243b558
JF
9499 lt_prog_compiler_wl=
9500lt_prog_compiler_pic=
9501lt_prog_compiler_static=
9c60689e
DWT
9502
9503
9d54db95 9504 if test yes = "$GCC"; then
a243b558
JF
9505 lt_prog_compiler_wl='-Wl,'
9506 lt_prog_compiler_static='-static'
9c60689e 9507
a243b558
JF
9508 case $host_os in
9509 aix*)
9510 # All AIX code is PIC.
9d54db95 9511 if test ia64 = "$host_cpu"; then
a243b558
JF
9512 # AIX 5 now supports IA64 processor
9513 lt_prog_compiler_static='-Bstatic'
9514 fi
9d54db95 9515 lt_prog_compiler_pic='-fPIC'
a243b558 9516 ;;
9c60689e 9517
a243b558
JF
9518 amigaos*)
9519 case $host_cpu in
9520 powerpc)
9521 # see comment about AmigaOS4 .so support
9522 lt_prog_compiler_pic='-fPIC'
9523 ;;
9524 m68k)
9525 # FIXME: we need at least 68020 code to build shared libraries, but
9d54db95
JF
9526 # adding the '-m68020' flag to GCC prevents building anything better,
9527 # like '-m68040'.
a243b558
JF
9528 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9529 ;;
9530 esac
9531 ;;
9c60689e 9532
a243b558
JF
9533 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9534 # PIC is the default for these OSes.
9535 ;;
9c60689e 9536
a243b558
JF
9537 mingw* | cygwin* | pw32* | os2* | cegcc*)
9538 # This hack is so that the source file can tell whether it is being
9539 # built for inclusion in a dll (and should export symbols for example).
9540 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9541 # (--disable-auto-import) libraries
9542 lt_prog_compiler_pic='-DDLL_EXPORT'
9d54db95
JF
9543 case $host_os in
9544 os2*)
9545 lt_prog_compiler_static='$wl-static'
9546 ;;
9547 esac
a243b558 9548 ;;
9c60689e 9549
a243b558
JF
9550 darwin* | rhapsody*)
9551 # PIC is the default on this platform
9552 # Common symbols not allowed in MH_DYLIB files
9553 lt_prog_compiler_pic='-fno-common'
9554 ;;
9c60689e 9555
a243b558
JF
9556 haiku*)
9557 # PIC is the default for Haiku.
9558 # The "-static" flag exists, but is broken.
9559 lt_prog_compiler_static=
9560 ;;
9c60689e 9561
a243b558
JF
9562 hpux*)
9563 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9564 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9565 # sets the default TLS model and affects inlining.
9566 case $host_cpu in
9567 hppa*64*)
9568 # +Z the default
9569 ;;
9570 *)
9571 lt_prog_compiler_pic='-fPIC'
9572 ;;
9573 esac
9574 ;;
9c60689e 9575
a243b558
JF
9576 interix[3-9]*)
9577 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9578 # Instead, we relocate shared libraries at runtime.
9579 ;;
9c60689e 9580
a243b558
JF
9581 msdosdjgpp*)
9582 # Just because we use GCC doesn't mean we suddenly get shared libraries
9583 # on systems that don't support them.
9584 lt_prog_compiler_can_build_shared=no
9585 enable_shared=no
9586 ;;
9c60689e 9587
a243b558
JF
9588 *nto* | *qnx*)
9589 # QNX uses GNU C++, but need to define -shared option too, otherwise
9590 # it will coredump.
9591 lt_prog_compiler_pic='-fPIC -shared'
9592 ;;
9c60689e 9593
a243b558
JF
9594 sysv4*MP*)
9595 if test -d /usr/nec; then
9596 lt_prog_compiler_pic=-Kconform_pic
9597 fi
9598 ;;
9c60689e 9599
a243b558
JF
9600 *)
9601 lt_prog_compiler_pic='-fPIC'
9602 ;;
9603 esac
9c60689e 9604
a243b558
JF
9605 case $cc_basename in
9606 nvcc*) # Cuda Compiler Driver 2.2
9607 lt_prog_compiler_wl='-Xlinker '
9608 if test -n "$lt_prog_compiler_pic"; then
9609 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9610 fi
9611 ;;
9612 esac
9613 else
9614 # PORTME Check for flag to pass linker flags through the system compiler.
9615 case $host_os in
9616 aix*)
9617 lt_prog_compiler_wl='-Wl,'
9d54db95 9618 if test ia64 = "$host_cpu"; then
a243b558
JF
9619 # AIX 5 now supports IA64 processor
9620 lt_prog_compiler_static='-Bstatic'
9621 else
9622 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9623 fi
9624 ;;
9c60689e 9625
9d54db95
JF
9626 darwin* | rhapsody*)
9627 # PIC is the default on this platform
9628 # Common symbols not allowed in MH_DYLIB files
9629 lt_prog_compiler_pic='-fno-common'
9630 case $cc_basename in
9631 nagfor*)
9632 # NAG Fortran compiler
9633 lt_prog_compiler_wl='-Wl,-Wl,,'
9634 lt_prog_compiler_pic='-PIC'
9635 lt_prog_compiler_static='-Bstatic'
9636 ;;
9637 esac
9638 ;;
9639
a243b558
JF
9640 mingw* | cygwin* | pw32* | os2* | cegcc*)
9641 # This hack is so that the source file can tell whether it is being
9642 # built for inclusion in a dll (and should export symbols for example).
9643 lt_prog_compiler_pic='-DDLL_EXPORT'
9d54db95
JF
9644 case $host_os in
9645 os2*)
9646 lt_prog_compiler_static='$wl-static'
9647 ;;
9648 esac
a243b558 9649 ;;
9c60689e 9650
a243b558
JF
9651 hpux9* | hpux10* | hpux11*)
9652 lt_prog_compiler_wl='-Wl,'
9653 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9654 # not for PA HP-UX.
9655 case $host_cpu in
9656 hppa*64*|ia64*)
9657 # +Z the default
9658 ;;
9659 *)
9660 lt_prog_compiler_pic='+Z'
9661 ;;
9662 esac
9663 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9d54db95 9664 lt_prog_compiler_static='$wl-a ${wl}archive'
a243b558 9665 ;;
9c60689e 9666
a243b558
JF
9667 irix5* | irix6* | nonstopux*)
9668 lt_prog_compiler_wl='-Wl,'
9669 # PIC (with -KPIC) is the default.
9670 lt_prog_compiler_static='-non_shared'
9671 ;;
9c60689e 9672
9d54db95 9673 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
a243b558 9674 case $cc_basename in
9d54db95 9675 # old Intel for x86_64, which still supported -KPIC.
a243b558
JF
9676 ecc*)
9677 lt_prog_compiler_wl='-Wl,'
9678 lt_prog_compiler_pic='-KPIC'
9679 lt_prog_compiler_static='-static'
9680 ;;
9681 # icc used to be incompatible with GCC.
9682 # ICC 10 doesn't accept -KPIC any more.
9683 icc* | ifort*)
9684 lt_prog_compiler_wl='-Wl,'
9685 lt_prog_compiler_pic='-fPIC'
9686 lt_prog_compiler_static='-static'
9687 ;;
9688 # Lahey Fortran 8.1.
9689 lf95*)
9690 lt_prog_compiler_wl='-Wl,'
9691 lt_prog_compiler_pic='--shared'
9692 lt_prog_compiler_static='--static'
9693 ;;
9694 nagfor*)
9695 # NAG Fortran compiler
9696 lt_prog_compiler_wl='-Wl,-Wl,,'
9697 lt_prog_compiler_pic='-PIC'
9698 lt_prog_compiler_static='-Bstatic'
9699 ;;
9d54db95
JF
9700 tcc*)
9701 # Fabrice Bellard et al's Tiny C Compiler
9702 lt_prog_compiler_wl='-Wl,'
9703 lt_prog_compiler_pic='-fPIC'
9704 lt_prog_compiler_static='-static'
9705 ;;
a243b558
JF
9706 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9707 # Portland Group compilers (*not* the Pentium gcc compiler,
9708 # which looks to be a dead project)
9709 lt_prog_compiler_wl='-Wl,'
9710 lt_prog_compiler_pic='-fpic'
9711 lt_prog_compiler_static='-Bstatic'
9712 ;;
9713 ccc*)
9714 lt_prog_compiler_wl='-Wl,'
9715 # All Alpha code is PIC.
9716 lt_prog_compiler_static='-non_shared'
9717 ;;
9718 xl* | bgxl* | bgf* | mpixl*)
9719 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9720 lt_prog_compiler_wl='-Wl,'
9721 lt_prog_compiler_pic='-qpic'
9722 lt_prog_compiler_static='-qstaticlink'
9723 ;;
9724 *)
9725 case `$CC -V 2>&1 | sed 5q` in
9726 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9727 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9728 lt_prog_compiler_pic='-KPIC'
9729 lt_prog_compiler_static='-Bstatic'
9730 lt_prog_compiler_wl=''
9731 ;;
9732 *Sun\ F* | *Sun*Fortran*)
9733 lt_prog_compiler_pic='-KPIC'
9734 lt_prog_compiler_static='-Bstatic'
9735 lt_prog_compiler_wl='-Qoption ld '
9736 ;;
9737 *Sun\ C*)
9738 # Sun C 5.9
9739 lt_prog_compiler_pic='-KPIC'
9740 lt_prog_compiler_static='-Bstatic'
9741 lt_prog_compiler_wl='-Wl,'
9742 ;;
9743 *Intel*\ [CF]*Compiler*)
9744 lt_prog_compiler_wl='-Wl,'
9745 lt_prog_compiler_pic='-fPIC'
9746 lt_prog_compiler_static='-static'
9747 ;;
9748 *Portland\ Group*)
9749 lt_prog_compiler_wl='-Wl,'
9750 lt_prog_compiler_pic='-fpic'
9751 lt_prog_compiler_static='-Bstatic'
9752 ;;
9753 esac
9754 ;;
9755 esac
9756 ;;
9c60689e 9757
a243b558
JF
9758 newsos6)
9759 lt_prog_compiler_pic='-KPIC'
9760 lt_prog_compiler_static='-Bstatic'
9761 ;;
9c60689e 9762
a243b558
JF
9763 *nto* | *qnx*)
9764 # QNX uses GNU C++, but need to define -shared option too, otherwise
9765 # it will coredump.
9766 lt_prog_compiler_pic='-fPIC -shared'
9767 ;;
9c60689e 9768
a243b558
JF
9769 osf3* | osf4* | osf5*)
9770 lt_prog_compiler_wl='-Wl,'
9771 # All OSF/1 code is PIC.
9772 lt_prog_compiler_static='-non_shared'
9773 ;;
9c60689e 9774
a243b558
JF
9775 rdos*)
9776 lt_prog_compiler_static='-non_shared'
9777 ;;
9c60689e 9778
a243b558
JF
9779 solaris*)
9780 lt_prog_compiler_pic='-KPIC'
9781 lt_prog_compiler_static='-Bstatic'
9782 case $cc_basename in
9783 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9784 lt_prog_compiler_wl='-Qoption ld ';;
9785 *)
9786 lt_prog_compiler_wl='-Wl,';;
9787 esac
9788 ;;
9c60689e 9789
a243b558
JF
9790 sunos4*)
9791 lt_prog_compiler_wl='-Qoption ld '
9792 lt_prog_compiler_pic='-PIC'
9793 lt_prog_compiler_static='-Bstatic'
9794 ;;
9c60689e 9795
a243b558
JF
9796 sysv4 | sysv4.2uw2* | sysv4.3*)
9797 lt_prog_compiler_wl='-Wl,'
9798 lt_prog_compiler_pic='-KPIC'
9799 lt_prog_compiler_static='-Bstatic'
9800 ;;
9c60689e 9801
a243b558 9802 sysv4*MP*)
9d54db95 9803 if test -d /usr/nec; then
a243b558
JF
9804 lt_prog_compiler_pic='-Kconform_pic'
9805 lt_prog_compiler_static='-Bstatic'
9806 fi
9807 ;;
9c60689e 9808
a243b558
JF
9809 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9810 lt_prog_compiler_wl='-Wl,'
9811 lt_prog_compiler_pic='-KPIC'
9812 lt_prog_compiler_static='-Bstatic'
9813 ;;
9c60689e 9814
a243b558
JF
9815 unicos*)
9816 lt_prog_compiler_wl='-Wl,'
9817 lt_prog_compiler_can_build_shared=no
9818 ;;
9c60689e 9819
a243b558
JF
9820 uts4*)
9821 lt_prog_compiler_pic='-pic'
9822 lt_prog_compiler_static='-Bstatic'
9823 ;;
9c60689e 9824
a243b558
JF
9825 *)
9826 lt_prog_compiler_can_build_shared=no
9827 ;;
9828 esac
9829 fi
9c60689e 9830
a243b558 9831case $host_os in
9d54db95 9832 # For platforms that do not support PIC, -DPIC is meaningless:
a243b558
JF
9833 *djgpp*)
9834 lt_prog_compiler_pic=
9835 ;;
9836 *)
9837 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9838 ;;
9839esac
9c60689e 9840
a243b558
JF
9841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9842$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9843if ${lt_cv_prog_compiler_pic+:} false; then :
9844 $as_echo_n "(cached) " >&6
9845else
9846 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9847fi
9848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9849$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9850lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9c60689e 9851
a243b558
JF
9852#
9853# Check to make sure the PIC flag actually works.
9854#
9855if test -n "$lt_prog_compiler_pic"; then
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9857$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9858if ${lt_cv_prog_compiler_pic_works+:} false; then :
9859 $as_echo_n "(cached) " >&6
9860else
9861 lt_cv_prog_compiler_pic_works=no
9862 ac_outfile=conftest.$ac_objext
9863 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9d54db95 9864 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
a243b558
JF
9865 # Insert the option either (1) after the last *FLAGS variable, or
9866 # (2) before a word containing "conftest.", or (3) at the end.
9867 # Note that $ac_compile itself does not contain backslashes and begins
9868 # with a dollar sign (not a hyphen), so the echo should work correctly.
9869 # The option is referenced via a variable to avoid confusing sed.
9870 lt_compile=`echo "$ac_compile" | $SED \
9871 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9872 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9873 -e 's:$: $lt_compiler_flag:'`
9874 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9875 (eval "$lt_compile" 2>conftest.err)
9876 ac_status=$?
9877 cat conftest.err >&5
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 if (exit $ac_status) && test -s "$ac_outfile"; then
9880 # The compiler can only warn and ignore the option if not recognized
9881 # So say no if there are warnings other than the usual output.
9882 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9883 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9884 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9885 lt_cv_prog_compiler_pic_works=yes
9886 fi
9887 fi
00a96142 9888 $RM -r conftest*
9c60689e 9889
a243b558
JF
9890fi
9891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9892$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9c60689e 9893
9d54db95 9894if test yes = "$lt_cv_prog_compiler_pic_works"; then
a243b558
JF
9895 case $lt_prog_compiler_pic in
9896 "" | " "*) ;;
9897 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9898 esac
9899else
9900 lt_prog_compiler_pic=
9901 lt_prog_compiler_can_build_shared=no
9902fi
9c60689e 9903
a243b558 9904fi
9c60689e
DWT
9905
9906
9907
9908
9909
9910
9c60689e
DWT
9911
9912
9913
9914
9915
a243b558
JF
9916#
9917# Check to make sure the static flag actually works.
9918#
9919wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9921$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9922if ${lt_cv_prog_compiler_static_works+:} false; then :
9923 $as_echo_n "(cached) " >&6
9924else
9925 lt_cv_prog_compiler_static_works=no
9d54db95 9926 save_LDFLAGS=$LDFLAGS
a243b558
JF
9927 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9928 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9929 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9930 # The linker can only warn and ignore the option if not recognized
9931 # So say no if there are warnings
9932 if test -s conftest.err; then
9933 # Append any errors to the config.log.
9934 cat conftest.err 1>&5
9935 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9936 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9937 if diff conftest.exp conftest.er2 >/dev/null; then
9938 lt_cv_prog_compiler_static_works=yes
9939 fi
9940 else
9941 lt_cv_prog_compiler_static_works=yes
9942 fi
9943 fi
9944 $RM -r conftest*
9d54db95 9945 LDFLAGS=$save_LDFLAGS
9c60689e 9946
a243b558
JF
9947fi
9948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9949$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9c60689e 9950
9d54db95 9951if test yes = "$lt_cv_prog_compiler_static_works"; then
a243b558 9952 :
9c60689e 9953else
a243b558 9954 lt_prog_compiler_static=
9c60689e 9955fi
9c60689e 9956
9c60689e 9957
9c60689e 9958
9c60689e 9959
9c60689e 9960
9c60689e 9961
9c60689e 9962
a243b558
JF
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9964$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9965if ${lt_cv_prog_compiler_c_o+:} false; then :
9966 $as_echo_n "(cached) " >&6
9967else
9968 lt_cv_prog_compiler_c_o=no
9969 $RM -r conftest 2>/dev/null
9970 mkdir conftest
9971 cd conftest
9972 mkdir out
9973 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9c60689e 9974
a243b558
JF
9975 lt_compiler_flag="-o out/conftest2.$ac_objext"
9976 # Insert the option either (1) after the last *FLAGS variable, or
9977 # (2) before a word containing "conftest.", or (3) at the end.
9978 # Note that $ac_compile itself does not contain backslashes and begins
9979 # with a dollar sign (not a hyphen), so the echo should work correctly.
9980 lt_compile=`echo "$ac_compile" | $SED \
9981 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9982 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9983 -e 's:$: $lt_compiler_flag:'`
9984 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9985 (eval "$lt_compile" 2>out/conftest.err)
9986 ac_status=$?
9987 cat out/conftest.err >&5
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9990 then
9991 # The compiler can only warn and ignore the option if not recognized
9992 # So say no if there are warnings
9993 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9994 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9995 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9996 lt_cv_prog_compiler_c_o=yes
9997 fi
9998 fi
9999 chmod u+w . 2>&5
00a96142 10000 $RM -r conftest*
a243b558
JF
10001 # SGI C++ compiler will create directory out/ii_files/ for
10002 # template instantiation
10003 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10004 $RM out/* && rmdir out
10005 cd ..
10006 $RM -r conftest
00a96142 10007 $RM -r conftest*
9c60689e 10008
a243b558
JF
10009fi
10010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10011$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9c60689e 10012
ee134472 10013
ee134472 10014
ee134472 10015
ee134472 10016
9c60689e 10017
a243b558
JF
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10019$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10020if ${lt_cv_prog_compiler_c_o+:} false; then :
10021 $as_echo_n "(cached) " >&6
10022else
10023 lt_cv_prog_compiler_c_o=no
10024 $RM -r conftest 2>/dev/null
10025 mkdir conftest
10026 cd conftest
10027 mkdir out
10028 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9c60689e 10029
a243b558
JF
10030 lt_compiler_flag="-o out/conftest2.$ac_objext"
10031 # Insert the option either (1) after the last *FLAGS variable, or
10032 # (2) before a word containing "conftest.", or (3) at the end.
10033 # Note that $ac_compile itself does not contain backslashes and begins
10034 # with a dollar sign (not a hyphen), so the echo should work correctly.
10035 lt_compile=`echo "$ac_compile" | $SED \
10036 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10037 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10038 -e 's:$: $lt_compiler_flag:'`
10039 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10040 (eval "$lt_compile" 2>out/conftest.err)
10041 ac_status=$?
10042 cat out/conftest.err >&5
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10045 then
10046 # The compiler can only warn and ignore the option if not recognized
10047 # So say no if there are warnings
10048 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10049 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10050 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10051 lt_cv_prog_compiler_c_o=yes
10052 fi
10053 fi
10054 chmod u+w . 2>&5
00a96142 10055 $RM -r conftest*
a243b558
JF
10056 # SGI C++ compiler will create directory out/ii_files/ for
10057 # template instantiation
10058 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10059 $RM out/* && rmdir out
10060 cd ..
10061 $RM -r conftest
00a96142 10062 $RM -r conftest*
9c60689e 10063
a243b558
JF
10064fi
10065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10066$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9c60689e 10067
9c60689e 10068
a243b558
JF
10069
10070
9d54db95
JF
10071hard_links=nottested
10072if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
a243b558
JF
10073 # do not overwrite the value of need_locks provided by the user
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10075$as_echo_n "checking if we can lock with hard links... " >&6; }
10076 hard_links=yes
00a96142 10077 $RM -r conftest*
a243b558
JF
10078 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10079 touch conftest.a
10080 ln conftest.a conftest.b 2>&5 || hard_links=no
10081 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10083$as_echo "$hard_links" >&6; }
9d54db95
JF
10084 if test no = "$hard_links"; then
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10086$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
a243b558 10087 need_locks=warn
9c60689e 10088 fi
a243b558
JF
10089else
10090 need_locks=no
10091fi
9c60689e 10092
ee134472 10093
9c60689e 10094
9c60689e 10095
9c60689e 10096
a243b558
JF
10097
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10099$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10100
10101 runpath_var=
10102 allow_undefined_flag=
10103 always_export_symbols=no
10104 archive_cmds=
10105 archive_expsym_cmds=
10106 compiler_needs_object=no
10107 enable_shared_with_static_runtimes=no
10108 export_dynamic_flag_spec=
10109 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10110 hardcode_automatic=no
10111 hardcode_direct=no
10112 hardcode_direct_absolute=no
10113 hardcode_libdir_flag_spec=
10114 hardcode_libdir_separator=
10115 hardcode_minus_L=no
10116 hardcode_shlibpath_var=unsupported
10117 inherit_rpath=no
10118 link_all_deplibs=unknown
10119 module_cmds=
10120 module_expsym_cmds=
10121 old_archive_from_new_cmds=
10122 old_archive_from_expsyms_cmds=
10123 thread_safe_flag_spec=
10124 whole_archive_flag_spec=
10125 # include_expsyms should be a list of space-separated symbols to be *always*
10126 # included in the symbol list
10127 include_expsyms=
10128 # exclude_expsyms can be an extended regexp of symbols to exclude
9d54db95
JF
10129 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10130 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10131 # as well as any symbol that contains 'd'.
a243b558
JF
10132 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10133 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10134 # platforms (ab)use it in PIC code, but their linkers get confused if
10135 # the symbol is explicitly referenced. Since portable code cannot
10136 # rely on this symbol name, it's probably fine to never include it in
10137 # preloaded symbol tables.
10138 # Exclude shared library initialization/finalization symbols.
10139 extract_expsyms_cmds=
10140
9c60689e 10141 case $host_os in
a243b558
JF
10142 cygwin* | mingw* | pw32* | cegcc*)
10143 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10144 # When not using gcc, we currently assume that we are using
10145 # Microsoft Visual C++.
9d54db95 10146 if test yes != "$GCC"; then
a243b558
JF
10147 with_gnu_ld=no
10148 fi
9c60689e 10149 ;;
a243b558
JF
10150 interix*)
10151 # we just hope/assume this is gcc and not c89 (= MSVC++)
10152 with_gnu_ld=yes
10153 ;;
9d54db95 10154 openbsd* | bitrig*)
a243b558 10155 with_gnu_ld=no
9c60689e
DWT
10156 ;;
10157 esac
9c60689e 10158
a243b558 10159 ld_shlibs=yes
ee134472 10160
a243b558
JF
10161 # On some targets, GNU ld is compatible enough with the native linker
10162 # that we're better off using the native interface for both.
10163 lt_use_gnu_ld_interface=no
9d54db95 10164 if test yes = "$with_gnu_ld"; then
a243b558
JF
10165 case $host_os in
10166 aix*)
10167 # The AIX port of GNU ld has always aspired to compatibility
10168 # with the native linker. However, as the warning in the GNU ld
10169 # block says, versions before 2.19.5* couldn't really create working
10170 # shared libraries, regardless of the interface used.
10171 case `$LD -v 2>&1` in
10172 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10173 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10174 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10175 *)
10176 lt_use_gnu_ld_interface=yes
10177 ;;
10178 esac
10179 ;;
10180 *)
10181 lt_use_gnu_ld_interface=yes
10182 ;;
10183 esac
10184 fi
9c60689e 10185
9d54db95 10186 if test yes = "$lt_use_gnu_ld_interface"; then
a243b558 10187 # If archive_cmds runs LD, not CC, wlarc should be empty
9d54db95 10188 wlarc='$wl'
9c60689e 10189
a243b558
JF
10190 # Set some defaults for GNU ld with shared library support. These
10191 # are reset later if shared libraries are not supported. Putting them
10192 # here allows them to be overridden if necessary.
10193 runpath_var=LD_RUN_PATH
9d54db95
JF
10194 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10195 export_dynamic_flag_spec='$wl--export-dynamic'
a243b558
JF
10196 # ancient GNU ld didn't support --whole-archive et. al.
10197 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9d54db95 10198 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
a243b558
JF
10199 else
10200 whole_archive_flag_spec=
10201 fi
10202 supports_anon_versioning=no
9d54db95 10203 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
a243b558
JF
10204 *GNU\ gold*) supports_anon_versioning=yes ;;
10205 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10206 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10207 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10208 *\ 2.11.*) ;; # other 2.11 versions
10209 *) supports_anon_versioning=yes ;;
10210 esac
ee134472 10211
a243b558
JF
10212 # See if GNU ld supports shared libraries.
10213 case $host_os in
10214 aix[3-9]*)
10215 # On AIX/PPC, the GNU linker is very broken
9d54db95 10216 if test ia64 != "$host_cpu"; then
a243b558
JF
10217 ld_shlibs=no
10218 cat <<_LT_EOF 1>&2
ee134472 10219
a243b558
JF
10220*** Warning: the GNU linker, at least up to release 2.19, is reported
10221*** to be unable to reliably create shared libraries on AIX.
10222*** Therefore, libtool is disabling shared libraries support. If you
10223*** really care for shared libraries, you may want to install binutils
10224*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10225*** You will then need to restart the configuration process.
9c60689e 10226
a243b558
JF
10227_LT_EOF
10228 fi
10229 ;;
9c60689e 10230
a243b558
JF
10231 amigaos*)
10232 case $host_cpu in
10233 powerpc)
10234 # see comment about AmigaOS4 .so support
9d54db95 10235 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
a243b558
JF
10236 archive_expsym_cmds=''
10237 ;;
10238 m68k)
10239 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)'
10240 hardcode_libdir_flag_spec='-L$libdir'
10241 hardcode_minus_L=yes
10242 ;;
10243 esac
10244 ;;
9c60689e 10245
a243b558
JF
10246 beos*)
10247 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10248 allow_undefined_flag=unsupported
10249 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10250 # support --undefined. This deserves some investigation. FIXME
9d54db95 10251 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
a243b558
JF
10252 else
10253 ld_shlibs=no
10254 fi
10255 ;;
9c60689e 10256
a243b558
JF
10257 cygwin* | mingw* | pw32* | cegcc*)
10258 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10259 # as there is no search path for DLLs.
10260 hardcode_libdir_flag_spec='-L$libdir'
9d54db95 10261 export_dynamic_flag_spec='$wl--export-all-symbols'
a243b558
JF
10262 allow_undefined_flag=unsupported
10263 always_export_symbols=no
10264 enable_shared_with_static_runtimes=yes
10265 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'
10266 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9c60689e 10267
a243b558 10268 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9d54db95
JF
10269 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10270 # If the export-symbols file already is a .def file, use it as
10271 # is; otherwise, prepend EXPORTS...
10272 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10273 cp $export_symbols $output_objdir/$soname.def;
10274 else
10275 echo EXPORTS > $output_objdir/$soname.def;
10276 cat $export_symbols >> $output_objdir/$soname.def;
10277 fi~
10278 $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
10279 else
10280 ld_shlibs=no
10281 fi
10282 ;;
9c60689e 10283
a243b558 10284 haiku*)
9d54db95 10285 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
a243b558
JF
10286 link_all_deplibs=yes
10287 ;;
9c60689e 10288
9d54db95
JF
10289 os2*)
10290 hardcode_libdir_flag_spec='-L$libdir'
10291 hardcode_minus_L=yes
10292 allow_undefined_flag=unsupported
10293 shrext_cmds=.dll
10294 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10295 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10296 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10297 $ECHO EXPORTS >> $output_objdir/$libname.def~
10298 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10299 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10300 emximp -o $lib $output_objdir/$libname.def'
10301 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10302 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10303 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10304 $ECHO EXPORTS >> $output_objdir/$libname.def~
10305 prefix_cmds="$SED"~
10306 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10307 prefix_cmds="$prefix_cmds -e 1d";
10308 fi~
10309 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10310 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10311 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10312 emximp -o $lib $output_objdir/$libname.def'
10313 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10314 enable_shared_with_static_runtimes=yes
10315 ;;
10316
a243b558
JF
10317 interix[3-9]*)
10318 hardcode_direct=no
10319 hardcode_shlibpath_var=no
9d54db95
JF
10320 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10321 export_dynamic_flag_spec='$wl-E'
a243b558
JF
10322 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10323 # Instead, shared libraries are loaded at an image base (0x10000000 by
10324 # default) and relocated if they conflict, which is a slow very memory
10325 # consuming and fragmenting process. To avoid this, we pick a random,
10326 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10327 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9d54db95
JF
10328 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10329 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 10330 ;;
9c60689e 10331
a243b558
JF
10332 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10333 tmp_diet=no
9d54db95 10334 if test linux-dietlibc = "$host_os"; then
a243b558
JF
10335 case $cc_basename in
10336 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10337 esac
10338 fi
10339 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9d54db95 10340 && test no = "$tmp_diet"
a243b558
JF
10341 then
10342 tmp_addflag=' $pic_flag'
10343 tmp_sharedflag='-shared'
10344 case $cc_basename,$host_cpu in
10345 pgcc*) # Portland Group C compiler
9d54db95 10346 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
10347 tmp_addflag=' $pic_flag'
10348 ;;
10349 pgf77* | pgf90* | pgf95* | pgfortran*)
10350 # Portland Group f77 and f90 compilers
9d54db95 10351 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
10352 tmp_addflag=' $pic_flag -Mnomain' ;;
10353 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10354 tmp_addflag=' -i_dynamic' ;;
10355 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10356 tmp_addflag=' -i_dynamic -nofor_main' ;;
10357 ifc* | ifort*) # Intel Fortran compiler
10358 tmp_addflag=' -nofor_main' ;;
10359 lf95*) # Lahey Fortran 8.1
10360 whole_archive_flag_spec=
10361 tmp_sharedflag='--shared' ;;
9d54db95
JF
10362 nagfor*) # NAGFOR 5.3
10363 tmp_sharedflag='-Wl,-shared' ;;
a243b558
JF
10364 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10365 tmp_sharedflag='-qmkshrobj'
10366 tmp_addflag= ;;
10367 nvcc*) # Cuda Compiler Driver 2.2
9d54db95 10368 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
10369 compiler_needs_object=yes
10370 ;;
10371 esac
10372 case `$CC -V 2>&1 | sed 5q` in
10373 *Sun\ C*) # Sun C 5.9
9d54db95 10374 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
10375 compiler_needs_object=yes
10376 tmp_sharedflag='-G' ;;
10377 *Sun\ F*) # Sun Fortran 8.3
10378 tmp_sharedflag='-G' ;;
10379 esac
9d54db95 10380 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9c60689e 10381
9d54db95 10382 if test yes = "$supports_anon_versioning"; then
a243b558 10383 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9d54db95
JF
10384 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10385 echo "local: *; };" >> $output_objdir/$libname.ver~
10386 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
a243b558 10387 fi
9c60689e 10388
a243b558 10389 case $cc_basename in
9d54db95
JF
10390 tcc*)
10391 export_dynamic_flag_spec='-rdynamic'
10392 ;;
a243b558
JF
10393 xlf* | bgf* | bgxlf* | mpixlf*)
10394 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10395 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9d54db95 10396 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a243b558 10397 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9d54db95 10398 if test yes = "$supports_anon_versioning"; then
a243b558 10399 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9d54db95
JF
10400 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10401 echo "local: *; };" >> $output_objdir/$libname.ver~
10402 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
a243b558
JF
10403 fi
10404 ;;
10405 esac
10406 else
10407 ld_shlibs=no
10408 fi
10409 ;;
9c60689e 10410
a243b558
JF
10411 netbsd*)
10412 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10413 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10414 wlarc=
10415 else
9d54db95
JF
10416 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10417 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
10418 fi
10419 ;;
9c60689e 10420
a243b558
JF
10421 solaris*)
10422 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10423 ld_shlibs=no
10424 cat <<_LT_EOF 1>&2
9c60689e 10425
a243b558
JF
10426*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10427*** create shared libraries on Solaris systems. Therefore, libtool
10428*** is disabling shared libraries support. We urge you to upgrade GNU
10429*** binutils to release 2.9.1 or newer. Another option is to modify
10430*** your PATH or compiler configuration so that the native linker is
10431*** used, and then restart.
9c60689e 10432
a243b558
JF
10433_LT_EOF
10434 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9d54db95
JF
10435 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10436 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
10437 else
10438 ld_shlibs=no
10439 fi
10440 ;;
9c60689e 10441
a243b558
JF
10442 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10443 case `$LD -v 2>&1` in
10444 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10445 ld_shlibs=no
10446 cat <<_LT_EOF 1>&2
9c60689e 10447
9d54db95 10448*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
a243b558
JF
10449*** reliably create shared libraries on SCO systems. Therefore, libtool
10450*** is disabling shared libraries support. We urge you to upgrade GNU
10451*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10452*** your PATH or compiler configuration so that the native linker is
10453*** used, and then restart.
9c60689e 10454
a243b558
JF
10455_LT_EOF
10456 ;;
10457 *)
10458 # For security reasons, it is highly recommended that you always
10459 # use absolute paths for naming shared libraries, and exclude the
10460 # DT_RUNPATH tag from executables and libraries. But doing so
10461 # requires that you compile everything twice, which is a pain.
10462 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9d54db95
JF
10463 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10464 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10465 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
a243b558
JF
10466 else
10467 ld_shlibs=no
10468 fi
10469 ;;
10470 esac
10471 ;;
9c60689e 10472
a243b558
JF
10473 sunos4*)
10474 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10475 wlarc=
10476 hardcode_direct=yes
10477 hardcode_shlibpath_var=no
10478 ;;
9c60689e 10479
a243b558
JF
10480 *)
10481 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9d54db95
JF
10482 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10483 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
10484 else
10485 ld_shlibs=no
10486 fi
10487 ;;
10488 esac
9c60689e 10489
9d54db95 10490 if test no = "$ld_shlibs"; then
a243b558
JF
10491 runpath_var=
10492 hardcode_libdir_flag_spec=
10493 export_dynamic_flag_spec=
10494 whole_archive_flag_spec=
10495 fi
10496 else
10497 # PORTME fill in a description of your system's linker (not GNU ld)
10498 case $host_os in
10499 aix3*)
10500 allow_undefined_flag=unsupported
10501 always_export_symbols=yes
10502 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'
10503 # Note: this linker hardcodes the directories in LIBPATH if there
10504 # are no directories specified by -L.
10505 hardcode_minus_L=yes
9d54db95 10506 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
a243b558
JF
10507 # Neither direct hardcoding nor static linking is supported with a
10508 # broken collect2.
10509 hardcode_direct=unsupported
10510 fi
10511 ;;
9c60689e 10512
a243b558 10513 aix[4-9]*)
9d54db95 10514 if test ia64 = "$host_cpu"; then
a243b558
JF
10515 # On IA64, the linker does run time linking by default, so we don't
10516 # have to do anything special.
10517 aix_use_runtimelinking=no
10518 exp_sym_flag='-Bexport'
9d54db95 10519 no_entry_flag=
a243b558
JF
10520 else
10521 # If we're using GNU nm, then we don't want the "-C" option.
9d54db95
JF
10522 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10523 # Without the "-l" option, or with the "-B" option, AIX nm treats
10524 # weak defined symbols like other global defined symbols, whereas
10525 # GNU nm marks them as "W".
10526 # While the 'weak' keyword is ignored in the Export File, we need
10527 # it in the Import File for the 'aix-soname' feature, so we have
10528 # to replace the "-B" option with "-P" for AIX nm.
a243b558 10529 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9d54db95 10530 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 10531 else
9d54db95 10532 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
10533 fi
10534 aix_use_runtimelinking=no
9c60689e 10535
a243b558
JF
10536 # Test if we are trying to use run time linking or normal
10537 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9d54db95
JF
10538 # have runtime linking enabled, and use it for executables.
10539 # For shared libraries, we enable/disable runtime linking
10540 # depending on the kind of the shared library created -
10541 # when "with_aix_soname,aix_use_runtimelinking" is:
10542 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10543 # "aix,yes" lib.so shared, rtl:yes, for executables
10544 # lib.a static archive
10545 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10546 # lib.a(lib.so.V) shared, rtl:no, for executables
10547 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10548 # lib.a(lib.so.V) shared, rtl:no
10549 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10550 # lib.a static archive
a243b558
JF
10551 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10552 for ld_flag in $LDFLAGS; do
9d54db95 10553 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
a243b558
JF
10554 aix_use_runtimelinking=yes
10555 break
10556 fi
10557 done
9d54db95
JF
10558 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10559 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10560 # so we don't have lib.a shared libs to link our executables.
10561 # We have to force runtime linking in this case.
10562 aix_use_runtimelinking=yes
10563 LDFLAGS="$LDFLAGS -Wl,-brtl"
10564 fi
a243b558
JF
10565 ;;
10566 esac
9c60689e 10567
a243b558
JF
10568 exp_sym_flag='-bexport'
10569 no_entry_flag='-bnoentry'
10570 fi
9c60689e 10571
a243b558
JF
10572 # When large executables or shared objects are built, AIX ld can
10573 # have problems creating the table of contents. If linking a library
10574 # or program results in "error TOC overflow" add -mminimal-toc to
10575 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10576 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9c60689e 10577
a243b558
JF
10578 archive_cmds=''
10579 hardcode_direct=yes
10580 hardcode_direct_absolute=yes
10581 hardcode_libdir_separator=':'
10582 link_all_deplibs=yes
9d54db95
JF
10583 file_list_spec='$wl-f,'
10584 case $with_aix_soname,$aix_use_runtimelinking in
10585 aix,*) ;; # traditional, no import file
10586 svr4,* | *,yes) # use import file
10587 # The Import File defines what to hardcode.
10588 hardcode_direct=no
10589 hardcode_direct_absolute=no
10590 ;;
10591 esac
9c60689e 10592
9d54db95 10593 if test yes = "$GCC"; then
a243b558
JF
10594 case $host_os in aix4.[012]|aix4.[012].*)
10595 # We only want to do this on AIX 4.2 and lower, the check
10596 # below for broken collect2 doesn't work under 4.3+
9d54db95 10597 collect2name=`$CC -print-prog-name=collect2`
a243b558
JF
10598 if test -f "$collect2name" &&
10599 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10600 then
10601 # We have reworked collect2
10602 :
10603 else
10604 # We have old collect2
10605 hardcode_direct=unsupported
10606 # It fails to find uninstalled libraries when the uninstalled
10607 # path is not listed in the libpath. Setting hardcode_minus_L
10608 # to unsupported forces relinking
10609 hardcode_minus_L=yes
10610 hardcode_libdir_flag_spec='-L$libdir'
10611 hardcode_libdir_separator=
10612 fi
10613 ;;
10614 esac
10615 shared_flag='-shared'
9d54db95
JF
10616 if test yes = "$aix_use_runtimelinking"; then
10617 shared_flag="$shared_flag "'$wl-G'
a243b558 10618 fi
9d54db95
JF
10619 # Need to ensure runtime linking is disabled for the traditional
10620 # shared library, or the linker may eventually find shared libraries
10621 # /with/ Import File - we do not want to mix them.
10622 shared_flag_aix='-shared'
10623 shared_flag_svr4='-shared $wl-G'
a243b558
JF
10624 else
10625 # not using gcc
9d54db95 10626 if test ia64 = "$host_cpu"; then
a243b558
JF
10627 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10628 # chokes on -Wl,-G. The following line is correct:
10629 shared_flag='-G'
10630 else
9d54db95
JF
10631 if test yes = "$aix_use_runtimelinking"; then
10632 shared_flag='$wl-G'
a243b558 10633 else
9d54db95 10634 shared_flag='$wl-bM:SRE'
a243b558 10635 fi
9d54db95
JF
10636 shared_flag_aix='$wl-bM:SRE'
10637 shared_flag_svr4='$wl-G'
a243b558
JF
10638 fi
10639 fi
9c60689e 10640
9d54db95 10641 export_dynamic_flag_spec='$wl-bexpall'
a243b558
JF
10642 # It seems that -bexpall does not export symbols beginning with
10643 # underscore (_), so it is better to generate a list of symbols to export.
10644 always_export_symbols=yes
9d54db95 10645 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
a243b558
JF
10646 # Warning - without using the other runtime loading flags (-brtl),
10647 # -berok will link without error, but may produce a broken library.
10648 allow_undefined_flag='-berok'
10649 # Determine the default libpath from the value encoded in an
10650 # empty executable.
9d54db95 10651 if test set = "${lt_cv_aix_libpath+set}"; then
a243b558 10652 aix_libpath=$lt_cv_aix_libpath
9c60689e 10653else
a243b558 10654 if ${lt_cv_aix_libpath_+:} false; then :
9c60689e
DWT
10655 $as_echo_n "(cached) " >&6
10656else
a243b558 10657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
10658/* end confdefs.h. */
10659
9c60689e
DWT
10660int
10661main ()
10662{
a243b558 10663
9c60689e
DWT
10664 ;
10665 return 0;
10666}
10667_ACEOF
10668if ac_fn_c_try_link "$LINENO"; then :
a243b558
JF
10669
10670 lt_aix_libpath_sed='
10671 /Import File Strings/,/^$/ {
10672 /^0/ {
10673 s/^0 *\([^ ]*\) *$/\1/
10674 p
10675 }
10676 }'
10677 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10678 # Check for a 64-bit object if we didn't find anything.
10679 if test -z "$lt_cv_aix_libpath_"; then
10680 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10681 fi
9c60689e
DWT
10682fi
10683rm -f core conftest.err conftest.$ac_objext \
10684 conftest$ac_exeext conftest.$ac_ext
a243b558 10685 if test -z "$lt_cv_aix_libpath_"; then
9d54db95 10686 lt_cv_aix_libpath_=/usr/lib:/lib
a243b558 10687 fi
9c60689e
DWT
10688
10689fi
10690
a243b558
JF
10691 aix_libpath=$lt_cv_aix_libpath_
10692fi
9c60689e 10693
9d54db95
JF
10694 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10695 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 10696 else
9d54db95
JF
10697 if test ia64 = "$host_cpu"; then
10698 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
a243b558 10699 allow_undefined_flag="-z nodefs"
9d54db95 10700 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
10701 else
10702 # Determine the default libpath from the value encoded in an
10703 # empty executable.
9d54db95 10704 if test set = "${lt_cv_aix_libpath+set}"; then
a243b558 10705 aix_libpath=$lt_cv_aix_libpath
9c60689e 10706else
a243b558 10707 if ${lt_cv_aix_libpath_+:} false; then :
9c60689e
DWT
10708 $as_echo_n "(cached) " >&6
10709else
a243b558 10710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
10711/* end confdefs.h. */
10712
9c60689e
DWT
10713int
10714main ()
10715{
a243b558 10716
9c60689e
DWT
10717 ;
10718 return 0;
10719}
10720_ACEOF
10721if ac_fn_c_try_link "$LINENO"; then :
9c60689e 10722
a243b558
JF
10723 lt_aix_libpath_sed='
10724 /Import File Strings/,/^$/ {
10725 /^0/ {
10726 s/^0 *\([^ ]*\) *$/\1/
10727 p
10728 }
10729 }'
10730 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10731 # Check for a 64-bit object if we didn't find anything.
10732 if test -z "$lt_cv_aix_libpath_"; then
10733 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10734 fi
9c60689e
DWT
10735fi
10736rm -f core conftest.err conftest.$ac_objext \
10737 conftest$ac_exeext conftest.$ac_ext
a243b558 10738 if test -z "$lt_cv_aix_libpath_"; then
9d54db95 10739 lt_cv_aix_libpath_=/usr/lib:/lib
a243b558
JF
10740 fi
10741
9c60689e 10742fi
9c60689e 10743
a243b558
JF
10744 aix_libpath=$lt_cv_aix_libpath_
10745fi
10746
9d54db95 10747 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
a243b558
JF
10748 # Warning - without using the other run time loading flags,
10749 # -berok will link without error, but may produce a broken library.
9d54db95
JF
10750 no_undefined_flag=' $wl-bernotok'
10751 allow_undefined_flag=' $wl-berok'
10752 if test yes = "$with_gnu_ld"; then
a243b558 10753 # We only use this code for GNU lds that support --whole-archive.
9d54db95 10754 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
a243b558
JF
10755 else
10756 # Exported symbols can be pulled into shared objects from archives
10757 whole_archive_flag_spec='$convenience'
10758 fi
10759 archive_cmds_need_lc=yes
9d54db95
JF
10760 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10761 # -brtl affects multiple linker settings, -berok does not and is overridden later
10762 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10763 if test svr4 != "$with_aix_soname"; then
10764 # This is similar to how AIX traditionally builds its shared libraries.
10765 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'
10766 fi
10767 if test aix != "$with_aix_soname"; then
10768 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'
10769 else
10770 # used by -dlpreopen to get the symbols
10771 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10772 fi
10773 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
a243b558
JF
10774 fi
10775 fi
10776 ;;
10777
10778 amigaos*)
10779 case $host_cpu in
10780 powerpc)
10781 # see comment about AmigaOS4 .so support
9d54db95 10782 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
a243b558
JF
10783 archive_expsym_cmds=''
10784 ;;
10785 m68k)
10786 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)'
10787 hardcode_libdir_flag_spec='-L$libdir'
10788 hardcode_minus_L=yes
10789 ;;
10790 esac
10791 ;;
10792
10793 bsdi[45]*)
10794 export_dynamic_flag_spec=-rdynamic
10795 ;;
10796
10797 cygwin* | mingw* | pw32* | cegcc*)
10798 # When not using gcc, we currently assume that we are using
10799 # Microsoft Visual C++.
10800 # hardcode_libdir_flag_spec is actually meaningless, as there is
10801 # no search path for DLLs.
10802 case $cc_basename in
10803 cl*)
10804 # Native MSVC
10805 hardcode_libdir_flag_spec=' '
10806 allow_undefined_flag=unsupported
10807 always_export_symbols=yes
10808 file_list_spec='@'
10809 # Tell ltmain to make .lib files, not .a files.
10810 libext=lib
10811 # Tell ltmain to make .dll files, not .so files.
9d54db95 10812 shrext_cmds=.dll
a243b558 10813 # FIXME: Setting linknames here is a bad hack.
9d54db95
JF
10814 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10815 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10816 cp "$export_symbols" "$output_objdir/$soname.def";
10817 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10818 else
10819 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10820 fi~
10821 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10822 linknames='
a243b558
JF
10823 # The linker will not automatically build a static lib if we build a DLL.
10824 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10825 enable_shared_with_static_runtimes=yes
10826 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10827 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10828 # Don't use ranlib
10829 old_postinstall_cmds='chmod 644 $oldlib'
10830 postlink_cmds='lt_outputfile="@OUTPUT@"~
9d54db95
JF
10831 lt_tool_outputfile="@TOOL_OUTPUT@"~
10832 case $lt_outputfile in
10833 *.exe|*.EXE) ;;
10834 *)
10835 lt_outputfile=$lt_outputfile.exe
10836 lt_tool_outputfile=$lt_tool_outputfile.exe
10837 ;;
10838 esac~
10839 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10840 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10841 $RM "$lt_outputfile.manifest";
10842 fi'
a243b558
JF
10843 ;;
10844 *)
10845 # Assume MSVC wrapper
10846 hardcode_libdir_flag_spec=' '
10847 allow_undefined_flag=unsupported
10848 # Tell ltmain to make .lib files, not .a files.
10849 libext=lib
10850 # Tell ltmain to make .dll files, not .so files.
9d54db95 10851 shrext_cmds=.dll
a243b558
JF
10852 # FIXME: Setting linknames here is a bad hack.
10853 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10854 # The linker will automatically build a .lib file if we build a DLL.
10855 old_archive_from_new_cmds='true'
10856 # FIXME: Should let the user specify the lib program.
10857 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10858 enable_shared_with_static_runtimes=yes
10859 ;;
10860 esac
10861 ;;
10862
10863 darwin* | rhapsody*)
10864
10865
10866 archive_cmds_need_lc=no
10867 hardcode_direct=no
10868 hardcode_automatic=yes
10869 hardcode_shlibpath_var=unsupported
9d54db95
JF
10870 if test yes = "$lt_cv_ld_force_load"; then
10871 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
10872
10873 else
10874 whole_archive_flag_spec=''
10875 fi
10876 link_all_deplibs=yes
9d54db95 10877 allow_undefined_flag=$_lt_dar_allow_undefined
a243b558 10878 case $cc_basename in
9d54db95 10879 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
a243b558
JF
10880 *) _lt_dar_can_shared=$GCC ;;
10881 esac
9d54db95 10882 if test yes = "$_lt_dar_can_shared"; then
a243b558 10883 output_verbose_link_cmd=func_echo_all
9d54db95
JF
10884 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10885 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10886 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"
10887 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
10888
10889 else
10890 ld_shlibs=no
10891 fi
10892
10893 ;;
10894
10895 dgux*)
10896 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10897 hardcode_libdir_flag_spec='-L$libdir'
10898 hardcode_shlibpath_var=no
10899 ;;
10900
10901 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10902 # support. Future versions do this automatically, but an explicit c++rt0.o
10903 # does not break anything, and helps significantly (at the cost of a little
10904 # extra space).
10905 freebsd2.2*)
10906 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10907 hardcode_libdir_flag_spec='-R$libdir'
10908 hardcode_direct=yes
10909 hardcode_shlibpath_var=no
10910 ;;
10911
10912 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10913 freebsd2.*)
10914 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10915 hardcode_direct=yes
10916 hardcode_minus_L=yes
10917 hardcode_shlibpath_var=no
10918 ;;
10919
10920 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10921 freebsd* | dragonfly*)
10922 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10923 hardcode_libdir_flag_spec='-R$libdir'
10924 hardcode_direct=yes
10925 hardcode_shlibpath_var=no
10926 ;;
10927
10928 hpux9*)
9d54db95
JF
10929 if test yes = "$GCC"; then
10930 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 10931 else
9d54db95 10932 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 10933 fi
9d54db95 10934 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
a243b558
JF
10935 hardcode_libdir_separator=:
10936 hardcode_direct=yes
10937
10938 # hardcode_minus_L: Not really in the search PATH,
10939 # but as the default location of the library.
10940 hardcode_minus_L=yes
9d54db95 10941 export_dynamic_flag_spec='$wl-E'
a243b558
JF
10942 ;;
10943
10944 hpux10*)
9d54db95
JF
10945 if test yes,no = "$GCC,$with_gnu_ld"; then
10946 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
10947 else
10948 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10949 fi
9d54db95
JF
10950 if test no = "$with_gnu_ld"; then
10951 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
a243b558
JF
10952 hardcode_libdir_separator=:
10953 hardcode_direct=yes
10954 hardcode_direct_absolute=yes
9d54db95 10955 export_dynamic_flag_spec='$wl-E'
a243b558
JF
10956 # hardcode_minus_L: Not really in the search PATH,
10957 # but as the default location of the library.
10958 hardcode_minus_L=yes
10959 fi
10960 ;;
10961
10962 hpux11*)
9d54db95 10963 if test yes,no = "$GCC,$with_gnu_ld"; then
a243b558
JF
10964 case $host_cpu in
10965 hppa*64*)
9d54db95 10966 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
10967 ;;
10968 ia64*)
9d54db95 10969 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
10970 ;;
10971 *)
9d54db95 10972 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
10973 ;;
10974 esac
10975 else
10976 case $host_cpu in
10977 hppa*64*)
9d54db95 10978 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
10979 ;;
10980 ia64*)
9d54db95 10981 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
10982 ;;
10983 *)
10984
10985 # Older versions of the 11.00 compiler do not understand -b yet
10986 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10988$as_echo_n "checking if $CC understands -b... " >&6; }
10989if ${lt_cv_prog_compiler__b+:} false; then :
10990 $as_echo_n "(cached) " >&6
10991else
10992 lt_cv_prog_compiler__b=no
9d54db95 10993 save_LDFLAGS=$LDFLAGS
a243b558
JF
10994 LDFLAGS="$LDFLAGS -b"
10995 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10996 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10997 # The linker can only warn and ignore the option if not recognized
10998 # So say no if there are warnings
10999 if test -s conftest.err; then
11000 # Append any errors to the config.log.
11001 cat conftest.err 1>&5
11002 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11003 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11004 if diff conftest.exp conftest.er2 >/dev/null; then
11005 lt_cv_prog_compiler__b=yes
11006 fi
11007 else
11008 lt_cv_prog_compiler__b=yes
11009 fi
11010 fi
11011 $RM -r conftest*
9d54db95 11012 LDFLAGS=$save_LDFLAGS
a243b558
JF
11013
11014fi
11015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11016$as_echo "$lt_cv_prog_compiler__b" >&6; }
11017
9d54db95
JF
11018if test yes = "$lt_cv_prog_compiler__b"; then
11019 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
11020else
11021 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11022fi
11023
11024 ;;
11025 esac
11026 fi
9d54db95
JF
11027 if test no = "$with_gnu_ld"; then
11028 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
a243b558
JF
11029 hardcode_libdir_separator=:
11030
11031 case $host_cpu in
11032 hppa*64*|ia64*)
11033 hardcode_direct=no
11034 hardcode_shlibpath_var=no
11035 ;;
11036 *)
11037 hardcode_direct=yes
11038 hardcode_direct_absolute=yes
9d54db95 11039 export_dynamic_flag_spec='$wl-E'
a243b558
JF
11040
11041 # hardcode_minus_L: Not really in the search PATH,
11042 # but as the default location of the library.
11043 hardcode_minus_L=yes
11044 ;;
11045 esac
11046 fi
11047 ;;
11048
11049 irix5* | irix6* | nonstopux*)
9d54db95
JF
11050 if test yes = "$GCC"; then
11051 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
11052 # Try to use the -exported_symbol ld option, if it does not
11053 # work, assume that -exports_file does not work either and
11054 # implicitly export all symbols.
11055 # This should be the same for all languages, so no per-tag cache variable.
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11057$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11058if ${lt_cv_irix_exported_symbol+:} false; then :
11059 $as_echo_n "(cached) " >&6
11060else
9d54db95
JF
11061 save_LDFLAGS=$LDFLAGS
11062 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
a243b558
JF
11063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11064/* end confdefs.h. */
11065int foo (void) { return 0; }
11066_ACEOF
11067if ac_fn_c_try_link "$LINENO"; then :
11068 lt_cv_irix_exported_symbol=yes
11069else
11070 lt_cv_irix_exported_symbol=no
11071fi
11072rm -f core conftest.err conftest.$ac_objext \
11073 conftest$ac_exeext conftest.$ac_ext
9d54db95 11074 LDFLAGS=$save_LDFLAGS
a243b558
JF
11075fi
11076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11077$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9d54db95
JF
11078 if test yes = "$lt_cv_irix_exported_symbol"; then
11079 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
11080 fi
11081 else
9d54db95
JF
11082 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'
11083 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
11084 fi
11085 archive_cmds_need_lc='no'
9d54db95 11086 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a243b558
JF
11087 hardcode_libdir_separator=:
11088 inherit_rpath=yes
11089 link_all_deplibs=yes
11090 ;;
11091
9d54db95
JF
11092 linux*)
11093 case $cc_basename in
11094 tcc*)
11095 # Fabrice Bellard et al's Tiny C Compiler
11096 ld_shlibs=yes
11097 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11098 ;;
11099 esac
11100 ;;
11101
a243b558
JF
11102 netbsd*)
11103 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11104 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11105 else
11106 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11107 fi
11108 hardcode_libdir_flag_spec='-R$libdir'
11109 hardcode_direct=yes
11110 hardcode_shlibpath_var=no
11111 ;;
11112
11113 newsos6)
11114 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11115 hardcode_direct=yes
9d54db95 11116 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a243b558
JF
11117 hardcode_libdir_separator=:
11118 hardcode_shlibpath_var=no
11119 ;;
11120
11121 *nto* | *qnx*)
11122 ;;
11123
9d54db95 11124 openbsd* | bitrig*)
a243b558
JF
11125 if test -f /usr/libexec/ld.so; then
11126 hardcode_direct=yes
11127 hardcode_shlibpath_var=no
11128 hardcode_direct_absolute=yes
9d54db95 11129 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
a243b558 11130 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9d54db95
JF
11131 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11132 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11133 export_dynamic_flag_spec='$wl-E'
a243b558 11134 else
9d54db95
JF
11135 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11136 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
a243b558
JF
11137 fi
11138 else
11139 ld_shlibs=no
11140 fi
11141 ;;
11142
11143 os2*)
11144 hardcode_libdir_flag_spec='-L$libdir'
11145 hardcode_minus_L=yes
11146 allow_undefined_flag=unsupported
9d54db95
JF
11147 shrext_cmds=.dll
11148 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11149 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11150 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11151 $ECHO EXPORTS >> $output_objdir/$libname.def~
11152 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11153 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11154 emximp -o $lib $output_objdir/$libname.def'
11155 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11156 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11157 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11158 $ECHO EXPORTS >> $output_objdir/$libname.def~
11159 prefix_cmds="$SED"~
11160 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11161 prefix_cmds="$prefix_cmds -e 1d";
11162 fi~
11163 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11164 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11165 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11166 emximp -o $lib $output_objdir/$libname.def'
11167 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11168 enable_shared_with_static_runtimes=yes
a243b558
JF
11169 ;;
11170
11171 osf3*)
9d54db95
JF
11172 if test yes = "$GCC"; then
11173 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11174 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
11175 else
11176 allow_undefined_flag=' -expect_unresolved \*'
9d54db95 11177 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
11178 fi
11179 archive_cmds_need_lc='no'
9d54db95 11180 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a243b558
JF
11181 hardcode_libdir_separator=:
11182 ;;
11183
11184 osf4* | osf5*) # as osf3* with the addition of -msym flag
9d54db95
JF
11185 if test yes = "$GCC"; then
11186 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11187 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'
11188 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a243b558
JF
11189 else
11190 allow_undefined_flag=' -expect_unresolved \*'
9d54db95 11191 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 11192 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 11193 $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
11194
11195 # Both c and cxx compiler support -rpath directly
11196 hardcode_libdir_flag_spec='-rpath $libdir'
11197 fi
11198 archive_cmds_need_lc='no'
11199 hardcode_libdir_separator=:
11200 ;;
11201
11202 solaris*)
11203 no_undefined_flag=' -z defs'
9d54db95
JF
11204 if test yes = "$GCC"; then
11205 wlarc='$wl'
11206 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558 11207 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9d54db95 11208 $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
11209 else
11210 case `$CC -V 2>&1` in
11211 *"Compilers 5.0"*)
11212 wlarc=''
9d54db95 11213 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
a243b558 11214 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9d54db95 11215 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
a243b558
JF
11216 ;;
11217 *)
9d54db95
JF
11218 wlarc='$wl'
11219 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558 11220 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9d54db95 11221 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
a243b558
JF
11222 ;;
11223 esac
11224 fi
11225 hardcode_libdir_flag_spec='-R$libdir'
11226 hardcode_shlibpath_var=no
11227 case $host_os in
11228 solaris2.[0-5] | solaris2.[0-5].*) ;;
11229 *)
11230 # The compiler driver will combine and reorder linker options,
9d54db95 11231 # but understands '-z linker_flag'. GCC discards it without '$wl',
a243b558
JF
11232 # but is careful enough not to reorder.
11233 # Supported since Solaris 2.6 (maybe 2.5.1?)
9d54db95
JF
11234 if test yes = "$GCC"; then
11235 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
a243b558
JF
11236 else
11237 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11238 fi
11239 ;;
11240 esac
11241 link_all_deplibs=yes
11242 ;;
11243
11244 sunos4*)
9d54db95 11245 if test sequent = "$host_vendor"; then
a243b558
JF
11246 # Use $CC to link under sequent, because it throws in some extra .o
11247 # files that make .init and .fini sections work.
9d54db95 11248 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
11249 else
11250 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11251 fi
11252 hardcode_libdir_flag_spec='-L$libdir'
11253 hardcode_direct=yes
11254 hardcode_minus_L=yes
11255 hardcode_shlibpath_var=no
11256 ;;
11257
11258 sysv4)
11259 case $host_vendor in
11260 sni)
11261 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11262 hardcode_direct=yes # is this really true???
11263 ;;
11264 siemens)
11265 ## LD is ld it makes a PLAMLIB
11266 ## CC just makes a GrossModule.
11267 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11268 reload_cmds='$CC -r -o $output$reload_objs'
11269 hardcode_direct=no
11270 ;;
11271 motorola)
11272 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11273 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11274 ;;
11275 esac
11276 runpath_var='LD_RUN_PATH'
11277 hardcode_shlibpath_var=no
11278 ;;
11279
11280 sysv4.3*)
11281 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11282 hardcode_shlibpath_var=no
11283 export_dynamic_flag_spec='-Bexport'
11284 ;;
11285
11286 sysv4*MP*)
11287 if test -d /usr/nec; then
11288 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11289 hardcode_shlibpath_var=no
11290 runpath_var=LD_RUN_PATH
11291 hardcode_runpath_var=yes
11292 ld_shlibs=yes
11293 fi
11294 ;;
11295
11296 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9d54db95 11297 no_undefined_flag='$wl-z,text'
a243b558
JF
11298 archive_cmds_need_lc=no
11299 hardcode_shlibpath_var=no
11300 runpath_var='LD_RUN_PATH'
11301
9d54db95
JF
11302 if test yes = "$GCC"; then
11303 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11304 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558 11305 else
9d54db95
JF
11306 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11307 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
11308 fi
11309 ;;
11310
11311 sysv5* | sco3.2v5* | sco5v6*)
9d54db95 11312 # Note: We CANNOT use -z defs as we might desire, because we do not
a243b558
JF
11313 # link with -lc, and that would cause any symbols used from libc to
11314 # always be unresolved, which means just about no library would
11315 # ever link correctly. If we're not using GNU ld we use -z text
11316 # though, which does catch some bad symbols but isn't as heavy-handed
11317 # as -z defs.
9d54db95
JF
11318 no_undefined_flag='$wl-z,text'
11319 allow_undefined_flag='$wl-z,nodefs'
a243b558
JF
11320 archive_cmds_need_lc=no
11321 hardcode_shlibpath_var=no
9d54db95 11322 hardcode_libdir_flag_spec='$wl-R,$libdir'
a243b558
JF
11323 hardcode_libdir_separator=':'
11324 link_all_deplibs=yes
9d54db95 11325 export_dynamic_flag_spec='$wl-Bexport'
a243b558
JF
11326 runpath_var='LD_RUN_PATH'
11327
9d54db95
JF
11328 if test yes = "$GCC"; then
11329 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11330 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558 11331 else
9d54db95
JF
11332 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11333 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
11334 fi
11335 ;;
11336
11337 uts4*)
11338 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11339 hardcode_libdir_flag_spec='-L$libdir'
11340 hardcode_shlibpath_var=no
11341 ;;
11342
11343 *)
11344 ld_shlibs=no
11345 ;;
11346 esac
11347
9d54db95 11348 if test sni = "$host_vendor"; then
a243b558
JF
11349 case $host in
11350 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9d54db95 11351 export_dynamic_flag_spec='$wl-Blargedynsym'
a243b558
JF
11352 ;;
11353 esac
11354 fi
11355 fi
11356
11357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11358$as_echo "$ld_shlibs" >&6; }
9d54db95 11359test no = "$ld_shlibs" && can_build_shared=no
a243b558
JF
11360
11361with_gnu_ld=$with_gnu_ld
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377#
11378# Do we need to explicitly link libc?
11379#
11380case "x$archive_cmds_need_lc" in
11381x|xyes)
11382 # Assume -lc should be added
11383 archive_cmds_need_lc=yes
11384
9d54db95 11385 if test yes,yes = "$GCC,$enable_shared"; then
a243b558
JF
11386 case $archive_cmds in
11387 *'~'*)
11388 # FIXME: we may have to deal with multi-command sequences.
11389 ;;
11390 '$CC '*)
11391 # Test whether the compiler implicitly links with -lc since on some
11392 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11393 # to ld, don't add -lc before -lgcc.
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11395$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11396if ${lt_cv_archive_cmds_need_lc+:} false; then :
11397 $as_echo_n "(cached) " >&6
11398else
00a96142 11399 $RM -r conftest*
a243b558
JF
11400 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11401
11402 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11403 (eval $ac_compile) 2>&5
11404 ac_status=$?
11405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11406 test $ac_status = 0; } 2>conftest.err; then
11407 soname=conftest
11408 lib=conftest
11409 libobjs=conftest.$ac_objext
11410 deplibs=
11411 wl=$lt_prog_compiler_wl
11412 pic_flag=$lt_prog_compiler_pic
11413 compiler_flags=-v
11414 linker_flags=-v
11415 verstring=
11416 output_objdir=.
11417 libname=conftest
11418 lt_save_allow_undefined_flag=$allow_undefined_flag
11419 allow_undefined_flag=
11420 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11421 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11422 ac_status=$?
11423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11424 test $ac_status = 0; }
11425 then
11426 lt_cv_archive_cmds_need_lc=no
11427 else
11428 lt_cv_archive_cmds_need_lc=yes
11429 fi
11430 allow_undefined_flag=$lt_save_allow_undefined_flag
11431 else
11432 cat conftest.err 1>&5
11433 fi
00a96142 11434 $RM -r conftest*
a243b558
JF
11435
11436fi
11437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11438$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11439 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11440 ;;
11441 esac
11442 fi
11443 ;;
11444esac
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11598$as_echo_n "checking dynamic linker characteristics... " >&6; }
11599
9d54db95 11600if test yes = "$GCC"; then
a243b558 11601 case $host_os in
9d54db95
JF
11602 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11603 *) lt_awk_arg='/^libraries:/' ;;
a243b558
JF
11604 esac
11605 case $host_os in
9d54db95
JF
11606 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11607 *) lt_sed_strip_eq='s|=/|/|g' ;;
a243b558
JF
11608 esac
11609 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11610 case $lt_search_path_spec in
11611 *\;*)
11612 # if the path contains ";" then we assume it to be the separator
11613 # otherwise default to the standard path separator (i.e. ":") - it is
11614 # assumed that no part of a normal pathname contains ";" but that should
11615 # okay in the real world where ";" in dirpaths is itself problematic.
11616 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11617 ;;
11618 *)
11619 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11620 ;;
11621 esac
11622 # Ok, now we have the path, separated by spaces, we can step through it
9d54db95 11623 # and add multilib dir if necessary...
a243b558 11624 lt_tmp_lt_search_path_spec=
9d54db95
JF
11625 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11626 # ...but if some path component already ends with the multilib dir we assume
11627 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11628 case "$lt_multi_os_dir; $lt_search_path_spec " in
11629 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11630 lt_multi_os_dir=
11631 ;;
11632 esac
a243b558 11633 for lt_sys_path in $lt_search_path_spec; do
9d54db95
JF
11634 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11635 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11636 elif test -n "$lt_multi_os_dir"; then
a243b558
JF
11637 test -d "$lt_sys_path" && \
11638 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11639 fi
11640 done
11641 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9d54db95
JF
11642BEGIN {RS = " "; FS = "/|\n";} {
11643 lt_foo = "";
11644 lt_count = 0;
a243b558
JF
11645 for (lt_i = NF; lt_i > 0; lt_i--) {
11646 if ($lt_i != "" && $lt_i != ".") {
11647 if ($lt_i == "..") {
11648 lt_count++;
11649 } else {
11650 if (lt_count == 0) {
9d54db95 11651 lt_foo = "/" $lt_i lt_foo;
a243b558
JF
11652 } else {
11653 lt_count--;
11654 }
11655 }
11656 }
11657 }
11658 if (lt_foo != "") { lt_freq[lt_foo]++; }
11659 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11660}'`
11661 # AWK program above erroneously prepends '/' to C:/dos/paths
11662 # for these hosts.
11663 case $host_os in
11664 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9d54db95 11665 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
a243b558
JF
11666 esac
11667 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11668else
11669 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11670fi
11671library_names_spec=
11672libname_spec='lib$name'
11673soname_spec=
9d54db95 11674shrext_cmds=.so
a243b558
JF
11675postinstall_cmds=
11676postuninstall_cmds=
11677finish_cmds=
11678finish_eval=
11679shlibpath_var=
11680shlibpath_overrides_runpath=unknown
11681version_type=none
11682dynamic_linker="$host_os ld.so"
11683sys_lib_dlsearch_path_spec="/lib /usr/lib"
11684need_lib_prefix=unknown
11685hardcode_into_libs=no
11686
11687# when you set need_version to no, make sure it does not cause -set_version
11688# flags to be left without arguments
11689need_version=unknown
11690
9d54db95
JF
11691
11692
a243b558
JF
11693case $host_os in
11694aix3*)
11695 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95 11696 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
a243b558
JF
11697 shlibpath_var=LIBPATH
11698
11699 # AIX 3 has no versioning support, so we append a major version to the name.
9d54db95 11700 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
11701 ;;
11702
11703aix[4-9]*)
11704 version_type=linux # correct to gnu/linux during the next big refactor
11705 need_lib_prefix=no
11706 need_version=no
11707 hardcode_into_libs=yes
9d54db95 11708 if test ia64 = "$host_cpu"; then
a243b558 11709 # AIX 5 supports IA64
9d54db95 11710 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
a243b558
JF
11711 shlibpath_var=LD_LIBRARY_PATH
11712 else
11713 # With GCC up to 2.95.x, collect2 would create an import file
11714 # for dependence libraries. The import file would start with
9d54db95
JF
11715 # the line '#! .'. This would cause the generated library to
11716 # depend on '.', always an invalid library. This was fixed in
a243b558
JF
11717 # development snapshots of GCC prior to 3.0.
11718 case $host_os in
11719 aix4 | aix4.[01] | aix4.[01].*)
11720 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11721 echo ' yes '
9d54db95 11722 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
a243b558
JF
11723 :
11724 else
11725 can_build_shared=no
11726 fi
11727 ;;
11728 esac
9d54db95
JF
11729 # Using Import Files as archive members, it is possible to support
11730 # filename-based versioning of shared library archives on AIX. While
11731 # this would work for both with and without runtime linking, it will
11732 # prevent static linking of such archives. So we do filename-based
11733 # shared library versioning with .so extension only, which is used
11734 # when both runtime linking and shared linking is enabled.
11735 # Unfortunately, runtime linking may impact performance, so we do
11736 # not want this to be the default eventually. Also, we use the
11737 # versioned .so libs for executables only if there is the -brtl
11738 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11739 # To allow for filename-based versioning support, we need to create
11740 # libNAME.so.V as an archive file, containing:
11741 # *) an Import File, referring to the versioned filename of the
11742 # archive as well as the shared archive member, telling the
11743 # bitwidth (32 or 64) of that shared object, and providing the
11744 # list of exported symbols of that shared object, eventually
11745 # decorated with the 'weak' keyword
11746 # *) the shared object with the F_LOADONLY flag set, to really avoid
11747 # it being seen by the linker.
11748 # At run time we better use the real file rather than another symlink,
11749 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11750
11751 case $with_aix_soname,$aix_use_runtimelinking in
11752 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
a243b558
JF
11753 # soname into executable. Probably we can add versioning support to
11754 # collect2, so additional links can be useful in future.
9d54db95
JF
11755 aix,yes) # traditional libtool
11756 dynamic_linker='AIX unversionable lib.so'
a243b558
JF
11757 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11758 # instead of lib<name>.a to let people know that these are not
11759 # typical AIX shared libraries.
9d54db95
JF
11760 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11761 ;;
11762 aix,no) # traditional AIX only
11763 dynamic_linker='AIX lib.a(lib.so.V)'
a243b558
JF
11764 # We preserve .a as extension for shared libraries through AIX4.2
11765 # and later when we are not doing run time linking.
9d54db95
JF
11766 library_names_spec='$libname$release.a $libname.a'
11767 soname_spec='$libname$release$shared_ext$major'
11768 ;;
11769 svr4,*) # full svr4 only
11770 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11771 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11772 # We do not specify a path in Import Files, so LIBPATH fires.
11773 shlibpath_overrides_runpath=yes
11774 ;;
11775 *,yes) # both, prefer svr4
11776 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11777 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11778 # unpreferred sharedlib libNAME.a needs extra handling
11779 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"'
11780 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"'
11781 # We do not specify a path in Import Files, so LIBPATH fires.
11782 shlibpath_overrides_runpath=yes
11783 ;;
11784 *,no) # both, prefer aix
11785 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11786 library_names_spec='$libname$release.a $libname.a'
11787 soname_spec='$libname$release$shared_ext$major'
11788 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11789 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)'
11790 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"'
11791 ;;
11792 esac
a243b558
JF
11793 shlibpath_var=LIBPATH
11794 fi
11795 ;;
11796
11797amigaos*)
11798 case $host_cpu in
11799 powerpc)
11800 # Since July 2007 AmigaOS4 officially supports .so libraries.
11801 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9d54db95 11802 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
a243b558
JF
11803 ;;
11804 m68k)
11805 library_names_spec='$libname.ixlibrary $libname.a'
11806 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9d54db95 11807 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
11808 ;;
11809 esac
11810 ;;
11811
11812beos*)
9d54db95 11813 library_names_spec='$libname$shared_ext'
a243b558
JF
11814 dynamic_linker="$host_os ld.so"
11815 shlibpath_var=LIBRARY_PATH
11816 ;;
11817
11818bsdi[45]*)
11819 version_type=linux # correct to gnu/linux during the next big refactor
11820 need_version=no
9d54db95
JF
11821 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11822 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
11823 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11824 shlibpath_var=LD_LIBRARY_PATH
11825 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11826 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11827 # the default ld.so.conf also contains /usr/contrib/lib and
11828 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11829 # libtool to hard-code these into programs
11830 ;;
11831
11832cygwin* | mingw* | pw32* | cegcc*)
11833 version_type=windows
9d54db95 11834 shrext_cmds=.dll
a243b558
JF
11835 need_version=no
11836 need_lib_prefix=no
9c60689e 11837
a243b558
JF
11838 case $GCC,$cc_basename in
11839 yes,*)
11840 # gcc
11841 library_names_spec='$libname.dll.a'
11842 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9d54db95
JF
11843 postinstall_cmds='base_file=`basename \$file`~
11844 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
a243b558
JF
11845 dldir=$destdir/`dirname \$dlpath`~
11846 test -d \$dldir || mkdir -p \$dldir~
11847 $install_prog $dir/$dlname \$dldir/$dlname~
11848 chmod a+x \$dldir/$dlname~
11849 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11850 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11851 fi'
11852 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11853 dlpath=$dir/\$dldll~
11854 $RM \$dlpath'
11855 shlibpath_overrides_runpath=yes
9c60689e 11856
a243b558
JF
11857 case $host_os in
11858 cygwin*)
11859 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9d54db95 11860 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
9c60689e 11861
a243b558
JF
11862 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11863 ;;
11864 mingw* | cegcc*)
11865 # MinGW DLLs use traditional 'lib' prefix
9d54db95 11866 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
a243b558
JF
11867 ;;
11868 pw32*)
11869 # pw32 DLLs use 'pw' prefix rather than 'lib'
9d54db95 11870 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
a243b558
JF
11871 ;;
11872 esac
11873 dynamic_linker='Win32 ld.exe'
11874 ;;
9c60689e 11875
a243b558
JF
11876 *,cl*)
11877 # Native MSVC
11878 libname_spec='$name'
9d54db95
JF
11879 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11880 library_names_spec='$libname.dll.lib'
9c60689e 11881
a243b558
JF
11882 case $build_os in
11883 mingw*)
11884 sys_lib_search_path_spec=
11885 lt_save_ifs=$IFS
11886 IFS=';'
11887 for lt_path in $LIB
11888 do
11889 IFS=$lt_save_ifs
11890 # Let DOS variable expansion print the short 8.3 style file name.
11891 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11892 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11893 done
11894 IFS=$lt_save_ifs
11895 # Convert to MSYS style.
11896 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11897 ;;
11898 cygwin*)
11899 # Convert to unix form, then to dos form, then back to unix form
11900 # but this time dos style (no spaces!) so that the unix form looks
11901 # like /cygdrive/c/PROGRA~1:/cygdr...
11902 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11903 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11904 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11905 ;;
11906 *)
9d54db95 11907 sys_lib_search_path_spec=$LIB
a243b558
JF
11908 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11909 # It is most probably a Windows format PATH.
11910 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11911 else
11912 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11913 fi
11914 # FIXME: find the short name or the path components, as spaces are
11915 # common. (e.g. "Program Files" -> "PROGRA~1")
11916 ;;
11917 esac
11918
11919 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9d54db95
JF
11920 postinstall_cmds='base_file=`basename \$file`~
11921 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
a243b558
JF
11922 dldir=$destdir/`dirname \$dlpath`~
11923 test -d \$dldir || mkdir -p \$dldir~
11924 $install_prog $dir/$dlname \$dldir/$dlname'
11925 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11926 dlpath=$dir/\$dldll~
11927 $RM \$dlpath'
11928 shlibpath_overrides_runpath=yes
11929 dynamic_linker='Win32 link.exe'
11930 ;;
9c60689e 11931
a243b558
JF
11932 *)
11933 # Assume MSVC wrapper
9d54db95 11934 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
a243b558
JF
11935 dynamic_linker='Win32 ld.exe'
11936 ;;
11937 esac
11938 # FIXME: first we should search . and the directory the executable is in
11939 shlibpath_var=PATH
11940 ;;
9c60689e 11941
a243b558
JF
11942darwin* | rhapsody*)
11943 dynamic_linker="$host_os dyld"
11944 version_type=darwin
11945 need_lib_prefix=no
11946 need_version=no
9d54db95
JF
11947 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11948 soname_spec='$libname$release$major$shared_ext'
a243b558
JF
11949 shlibpath_overrides_runpath=yes
11950 shlibpath_var=DYLD_LIBRARY_PATH
11951 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9c60689e 11952
a243b558
JF
11953 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11954 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11955 ;;
9c60689e 11956
a243b558
JF
11957dgux*)
11958 version_type=linux # correct to gnu/linux during the next big refactor
11959 need_lib_prefix=no
11960 need_version=no
9d54db95
JF
11961 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11962 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
11963 shlibpath_var=LD_LIBRARY_PATH
11964 ;;
11965
11966freebsd* | dragonfly*)
11967 # DragonFly does not have aout. When/if they implement a new
11968 # versioning mechanism, adjust this.
11969 if test -x /usr/bin/objformat; then
11970 objformat=`/usr/bin/objformat`
11971 else
11972 case $host_os in
11973 freebsd[23].*) objformat=aout ;;
11974 *) objformat=elf ;;
11975 esac
11976 fi
11977 version_type=freebsd-$objformat
11978 case $version_type in
11979 freebsd-elf*)
9d54db95
JF
11980 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11981 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
11982 need_version=no
11983 need_lib_prefix=no
11984 ;;
11985 freebsd-*)
9d54db95 11986 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
a243b558
JF
11987 need_version=yes
11988 ;;
11989 esac
11990 shlibpath_var=LD_LIBRARY_PATH
11991 case $host_os in
11992 freebsd2.*)
11993 shlibpath_overrides_runpath=yes
11994 ;;
11995 freebsd3.[01]* | freebsdelf3.[01]*)
11996 shlibpath_overrides_runpath=yes
11997 hardcode_into_libs=yes
11998 ;;
11999 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12000 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12001 shlibpath_overrides_runpath=no
12002 hardcode_into_libs=yes
12003 ;;
12004 *) # from 4.6 on, and DragonFly
12005 shlibpath_overrides_runpath=yes
12006 hardcode_into_libs=yes
12007 ;;
12008 esac
12009 ;;
9c60689e 12010
a243b558
JF
12011haiku*)
12012 version_type=linux # correct to gnu/linux during the next big refactor
12013 need_lib_prefix=no
12014 need_version=no
12015 dynamic_linker="$host_os runtime_loader"
9d54db95
JF
12016 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12017 soname_spec='$libname$release$shared_ext$major'
a243b558 12018 shlibpath_var=LIBRARY_PATH
9d54db95 12019 shlibpath_overrides_runpath=no
a243b558
JF
12020 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12021 hardcode_into_libs=yes
12022 ;;
9c60689e 12023
a243b558
JF
12024hpux9* | hpux10* | hpux11*)
12025 # Give a soname corresponding to the major version so that dld.sl refuses to
12026 # link against other versions.
12027 version_type=sunos
12028 need_lib_prefix=no
12029 need_version=no
12030 case $host_cpu in
12031 ia64*)
12032 shrext_cmds='.so'
12033 hardcode_into_libs=yes
12034 dynamic_linker="$host_os dld.so"
12035 shlibpath_var=LD_LIBRARY_PATH
12036 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9d54db95
JF
12037 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12038 soname_spec='$libname$release$shared_ext$major'
12039 if test 32 = "$HPUX_IA64_MODE"; then
a243b558 12040 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9d54db95 12041 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
a243b558
JF
12042 else
12043 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9d54db95 12044 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
a243b558 12045 fi
a243b558
JF
12046 ;;
12047 hppa*64*)
12048 shrext_cmds='.sl'
12049 hardcode_into_libs=yes
12050 dynamic_linker="$host_os dld.sl"
12051 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12052 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9d54db95
JF
12053 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12054 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
12055 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12056 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12057 ;;
12058 *)
12059 shrext_cmds='.sl'
12060 dynamic_linker="$host_os dld.sl"
12061 shlibpath_var=SHLIB_PATH
12062 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9d54db95
JF
12063 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12064 soname_spec='$libname$release$shared_ext$major'
9c60689e
DWT
12065 ;;
12066 esac
a243b558
JF
12067 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12068 postinstall_cmds='chmod 555 $lib'
12069 # or fails outright, so override atomically:
12070 install_override_mode=555
12071 ;;
9c60689e 12072
a243b558
JF
12073interix[3-9]*)
12074 version_type=linux # correct to gnu/linux during the next big refactor
12075 need_lib_prefix=no
12076 need_version=no
9d54db95
JF
12077 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12078 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
12079 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12080 shlibpath_var=LD_LIBRARY_PATH
12081 shlibpath_overrides_runpath=no
12082 hardcode_into_libs=yes
12083 ;;
9c60689e 12084
a243b558
JF
12085irix5* | irix6* | nonstopux*)
12086 case $host_os in
12087 nonstopux*) version_type=nonstopux ;;
12088 *)
9d54db95 12089 if test yes = "$lt_cv_prog_gnu_ld"; then
a243b558
JF
12090 version_type=linux # correct to gnu/linux during the next big refactor
12091 else
12092 version_type=irix
12093 fi ;;
12094 esac
12095 need_lib_prefix=no
12096 need_version=no
9d54db95
JF
12097 soname_spec='$libname$release$shared_ext$major'
12098 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
a243b558
JF
12099 case $host_os in
12100 irix5* | nonstopux*)
12101 libsuff= shlibsuff=
12102 ;;
12103 *)
12104 case $LD in # libtool.m4 will add one of these switches to LD
12105 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12106 libsuff= shlibsuff= libmagic=32-bit;;
12107 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12108 libsuff=32 shlibsuff=N32 libmagic=N32;;
12109 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12110 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12111 *) libsuff= shlibsuff= libmagic=never-match;;
12112 esac
12113 ;;
12114 esac
12115 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12116 shlibpath_overrides_runpath=no
9d54db95
JF
12117 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12118 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
a243b558
JF
12119 hardcode_into_libs=yes
12120 ;;
9c60689e 12121
a243b558
JF
12122# No shared lib support for Linux oldld, aout, or coff.
12123linux*oldld* | linux*aout* | linux*coff*)
12124 dynamic_linker=no
12125 ;;
9c60689e 12126
9d54db95
JF
12127linux*android*)
12128 version_type=none # Android doesn't support versioned libraries.
12129 need_lib_prefix=no
12130 need_version=no
12131 library_names_spec='$libname$release$shared_ext'
12132 soname_spec='$libname$release$shared_ext'
12133 finish_cmds=
12134 shlibpath_var=LD_LIBRARY_PATH
12135 shlibpath_overrides_runpath=yes
12136
12137 # This implies no fast_install, which is unacceptable.
12138 # Some rework will be needed to allow for fast_install
12139 # before this can be enabled.
12140 hardcode_into_libs=yes
12141
12142 dynamic_linker='Android linker'
12143 # Don't embed -rpath directories since the linker doesn't support them.
12144 hardcode_libdir_flag_spec='-L$libdir'
12145 ;;
12146
a243b558 12147# This must be glibc/ELF.
9d54db95 12148linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
a243b558
JF
12149 version_type=linux # correct to gnu/linux during the next big refactor
12150 need_lib_prefix=no
12151 need_version=no
9d54db95
JF
12152 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12153 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
12154 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12155 shlibpath_var=LD_LIBRARY_PATH
12156 shlibpath_overrides_runpath=no
9c60689e 12157
a243b558
JF
12158 # Some binutils ld are patched to set DT_RUNPATH
12159 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
9c60689e
DWT
12160 $as_echo_n "(cached) " >&6
12161else
a243b558
JF
12162 lt_cv_shlibpath_overrides_runpath=no
12163 save_LDFLAGS=$LDFLAGS
12164 save_libdir=$libdir
12165 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12166 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12168/* end confdefs.h. */
ee134472 12169
a243b558
JF
12170int
12171main ()
9c60689e 12172{
9c60689e 12173
a243b558
JF
12174 ;
12175 return 0;
12176}
12177_ACEOF
12178if ac_fn_c_try_link "$LINENO"; then :
12179 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12180 lt_cv_shlibpath_overrides_runpath=yes
12181fi
12182fi
12183rm -f core conftest.err conftest.$ac_objext \
12184 conftest$ac_exeext conftest.$ac_ext
12185 LDFLAGS=$save_LDFLAGS
12186 libdir=$save_libdir
9c60689e 12187
a243b558 12188fi
9c60689e 12189
a243b558 12190 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9c60689e 12191
a243b558
JF
12192 # This implies no fast_install, which is unacceptable.
12193 # Some rework will be needed to allow for fast_install
12194 # before this can be enabled.
12195 hardcode_into_libs=yes
9c60689e 12196
9d54db95
JF
12197 # Ideally, we could use ldconfig to report *all* directores which are
12198 # searched for libraries, however this is still not possible. Aside from not
12199 # being certain /sbin/ldconfig is available, command
12200 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12201 # even though it is searched at run-time. Try to do the best guess by
12202 # appending ld.so.conf contents (and includes) to the search path.
a243b558
JF
12203 if test -f /etc/ld.so.conf; then
12204 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' ' '`
12205 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12206 fi
ee134472 12207
a243b558
JF
12208 # We used to test for /lib/ld.so.1 and disable shared libraries on
12209 # powerpc, because MkLinux only supported shared libraries with the
12210 # GNU dynamic linker. Since this was broken with cross compilers,
12211 # most powerpc-linux boxes support dynamic linking these days and
12212 # people can always --disable-shared, the test was removed, and we
12213 # assume the GNU/Linux dynamic linker is in use.
12214 dynamic_linker='GNU/Linux ld.so'
12215 ;;
9c60689e 12216
a243b558
JF
12217netbsd*)
12218 version_type=sunos
12219 need_lib_prefix=no
12220 need_version=no
12221 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9d54db95 12222 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
a243b558
JF
12223 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12224 dynamic_linker='NetBSD (a.out) ld.so'
9c60689e 12225 else
9d54db95
JF
12226 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12227 soname_spec='$libname$release$shared_ext$major'
a243b558 12228 dynamic_linker='NetBSD ld.elf_so'
9c60689e 12229 fi
a243b558
JF
12230 shlibpath_var=LD_LIBRARY_PATH
12231 shlibpath_overrides_runpath=yes
12232 hardcode_into_libs=yes
12233 ;;
9c60689e 12234
a243b558
JF
12235newsos6)
12236 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95 12237 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
a243b558
JF
12238 shlibpath_var=LD_LIBRARY_PATH
12239 shlibpath_overrides_runpath=yes
12240 ;;
9c60689e 12241
a243b558
JF
12242*nto* | *qnx*)
12243 version_type=qnx
12244 need_lib_prefix=no
12245 need_version=no
9d54db95
JF
12246 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12247 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
12248 shlibpath_var=LD_LIBRARY_PATH
12249 shlibpath_overrides_runpath=no
12250 hardcode_into_libs=yes
12251 dynamic_linker='ldqnx.so'
12252 ;;
9c60689e 12253
9d54db95 12254openbsd* | bitrig*)
a243b558 12255 version_type=sunos
9d54db95 12256 sys_lib_dlsearch_path_spec=/usr/lib
a243b558 12257 need_lib_prefix=no
9d54db95
JF
12258 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12259 need_version=no
a243b558 12260 else
9d54db95 12261 need_version=yes
a243b558 12262 fi
9d54db95
JF
12263 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12264 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12265 shlibpath_var=LD_LIBRARY_PATH
12266 shlibpath_overrides_runpath=yes
a243b558 12267 ;;
9c60689e 12268
a243b558
JF
12269os2*)
12270 libname_spec='$name'
9d54db95
JF
12271 version_type=windows
12272 shrext_cmds=.dll
12273 need_version=no
a243b558 12274 need_lib_prefix=no
9d54db95
JF
12275 # OS/2 can only load a DLL with a base name of 8 characters or less.
12276 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12277 v=$($ECHO $release$versuffix | tr -d .-);
12278 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12279 $ECHO $n$v`$shared_ext'
12280 library_names_spec='${libname}_dll.$libext'
a243b558 12281 dynamic_linker='OS/2 ld.exe'
9d54db95
JF
12282 shlibpath_var=BEGINLIBPATH
12283 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12284 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12285 postinstall_cmds='base_file=`basename \$file`~
12286 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12287 dldir=$destdir/`dirname \$dlpath`~
12288 test -d \$dldir || mkdir -p \$dldir~
12289 $install_prog $dir/$dlname \$dldir/$dlname~
12290 chmod a+x \$dldir/$dlname~
12291 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12292 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12293 fi'
12294 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12295 dlpath=$dir/\$dldll~
12296 $RM \$dlpath'
a243b558 12297 ;;
9c60689e 12298
a243b558
JF
12299osf3* | osf4* | osf5*)
12300 version_type=osf
12301 need_lib_prefix=no
12302 need_version=no
9d54db95
JF
12303 soname_spec='$libname$release$shared_ext$major'
12304 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
a243b558
JF
12305 shlibpath_var=LD_LIBRARY_PATH
12306 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9d54db95 12307 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
a243b558
JF
12308 ;;
12309
12310rdos*)
12311 dynamic_linker=no
12312 ;;
12313
12314solaris*)
12315 version_type=linux # correct to gnu/linux during the next big refactor
12316 need_lib_prefix=no
12317 need_version=no
9d54db95
JF
12318 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12319 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
12320 shlibpath_var=LD_LIBRARY_PATH
12321 shlibpath_overrides_runpath=yes
12322 hardcode_into_libs=yes
12323 # ldd complains unless libraries are executable
12324 postinstall_cmds='chmod +x $lib'
12325 ;;
9c60689e 12326
a243b558
JF
12327sunos4*)
12328 version_type=sunos
9d54db95 12329 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
a243b558
JF
12330 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12331 shlibpath_var=LD_LIBRARY_PATH
12332 shlibpath_overrides_runpath=yes
9d54db95 12333 if test yes = "$with_gnu_ld"; then
a243b558
JF
12334 need_lib_prefix=no
12335 fi
12336 need_version=yes
12337 ;;
9c60689e 12338
a243b558
JF
12339sysv4 | sysv4.3*)
12340 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95
JF
12341 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12342 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
12343 shlibpath_var=LD_LIBRARY_PATH
12344 case $host_vendor in
12345 sni)
12346 shlibpath_overrides_runpath=no
12347 need_lib_prefix=no
12348 runpath_var=LD_RUN_PATH
12349 ;;
12350 siemens)
12351 need_lib_prefix=no
12352 ;;
12353 motorola)
12354 need_lib_prefix=no
12355 need_version=no
12356 shlibpath_overrides_runpath=no
12357 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12358 ;;
12359 esac
12360 ;;
9c60689e 12361
a243b558 12362sysv4*MP*)
9d54db95 12363 if test -d /usr/nec; then
a243b558 12364 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95
JF
12365 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12366 soname_spec='$libname$shared_ext.$major'
a243b558
JF
12367 shlibpath_var=LD_LIBRARY_PATH
12368 fi
12369 ;;
9c60689e 12370
a243b558 12371sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9d54db95 12372 version_type=sco
a243b558
JF
12373 need_lib_prefix=no
12374 need_version=no
9d54db95
JF
12375 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12376 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
12377 shlibpath_var=LD_LIBRARY_PATH
12378 shlibpath_overrides_runpath=yes
12379 hardcode_into_libs=yes
9d54db95 12380 if test yes = "$with_gnu_ld"; then
a243b558
JF
12381 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12382 else
12383 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12384 case $host_os in
12385 sco3.2v5*)
12386 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12387 ;;
12388 esac
12389 fi
12390 sys_lib_dlsearch_path_spec='/usr/lib'
12391 ;;
9c60689e 12392
a243b558
JF
12393tpf*)
12394 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12395 version_type=linux # correct to gnu/linux during the next big refactor
12396 need_lib_prefix=no
12397 need_version=no
9d54db95 12398 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
a243b558
JF
12399 shlibpath_var=LD_LIBRARY_PATH
12400 shlibpath_overrides_runpath=no
12401 hardcode_into_libs=yes
12402 ;;
9c60689e 12403
a243b558
JF
12404uts4*)
12405 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95
JF
12406 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12407 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
12408 shlibpath_var=LD_LIBRARY_PATH
12409 ;;
9c60689e 12410
a243b558
JF
12411*)
12412 dynamic_linker=no
12413 ;;
12414esac
12415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12416$as_echo "$dynamic_linker" >&6; }
9d54db95 12417test no = "$dynamic_linker" && can_build_shared=no
9c60689e 12418
a243b558 12419variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9d54db95 12420if test yes = "$GCC"; then
a243b558
JF
12421 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12422fi
9c60689e 12423
9d54db95
JF
12424if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12425 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
a243b558 12426fi
9d54db95
JF
12427
12428if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12429 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
a243b558 12430fi
9c60689e 12431
9d54db95
JF
12432# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12433configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12434
12435# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12436func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12437
12438# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12439configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12440
12441
12442
12443
12444
12445
9c60689e
DWT
12446
12447
12448
12449
12450
12451
12452
9c60689e
DWT
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
9c60689e 12465
9c60689e 12466
9c60689e 12467
9c60689e 12468
9c60689e
DWT
12469
12470
12471
12472
9c60689e 12473
9c60689e
DWT
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
53ba6704
JF
12487
12488
9c60689e
DWT
12489
12490
12491
12492
9c60689e
DWT
12493
12494
3fd51f51 12495
66170b30
JF
12496
12497
12498
3fd51f51 12499
12833ad8
JF
12500
12501
12502
12503
3fd51f51 12504
3fd51f51
DWT
12505
12506
3fd51f51 12507
3fd51f51 12508
3fd51f51 12509
66170b30 12510
632b71ea 12511
632b71ea
DWT
12512
12513
790e5246 12514
66170b30 12515
9c60689e 12516
9c60689e
DWT
12517
12518
9c60689e 12519
9c60689e
DWT
12520
12521
66170b30 12522
66170b30 12523
9c60689e 12524
e9c9a47c
DWT
12525
12526
12527
66170b30
JF
12528
12529
66170b30 12530
e9c9a47c 12531
a243b558
JF
12532
12533
12534
12535
12536
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12538$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12539hardcode_action=
12540if test -n "$hardcode_libdir_flag_spec" ||
12541 test -n "$runpath_var" ||
9d54db95 12542 test yes = "$hardcode_automatic"; then
a243b558
JF
12543
12544 # We can hardcode non-existent directories.
9d54db95 12545 if test no != "$hardcode_direct" &&
a243b558
JF
12546 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12547 # have to relink, otherwise we might link with an installed library
12548 # when we should be linking with a yet-to-be-installed one
9d54db95
JF
12549 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12550 test no != "$hardcode_minus_L"; then
a243b558
JF
12551 # Linking always hardcodes the temporary library directory.
12552 hardcode_action=relink
12553 else
12554 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12555 hardcode_action=immediate
9c60689e 12556 fi
e9c9a47c 12557else
a243b558
JF
12558 # We cannot hardcode anything, or else we can only hardcode existing
12559 # directories.
12560 hardcode_action=unsupported
12561fi
12562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12563$as_echo "$hardcode_action" >&6; }
12564
9d54db95
JF
12565if test relink = "$hardcode_action" ||
12566 test yes = "$inherit_rpath"; then
a243b558
JF
12567 # Fast installation is not supported
12568 enable_fast_install=no
9d54db95
JF
12569elif test yes = "$shlibpath_overrides_runpath" ||
12570 test no = "$enable_shared"; then
a243b558
JF
12571 # Fast installation is not necessary
12572 enable_fast_install=needless
9c60689e 12573fi
9c60689e 12574
9c60689e 12575
66170b30 12576
66170b30 12577
9c60689e 12578
a243b558 12579
9d54db95 12580 if test yes != "$enable_dlopen"; then
a243b558
JF
12581 enable_dlopen=unknown
12582 enable_dlopen_self=unknown
12583 enable_dlopen_self_static=unknown
66170b30 12584else
a243b558
JF
12585 lt_cv_dlopen=no
12586 lt_cv_dlopen_libs=
66170b30 12587
a243b558
JF
12588 case $host_os in
12589 beos*)
9d54db95 12590 lt_cv_dlopen=load_add_on
a243b558
JF
12591 lt_cv_dlopen_libs=
12592 lt_cv_dlopen_self=yes
12593 ;;
66170b30 12594
a243b558 12595 mingw* | pw32* | cegcc*)
9d54db95 12596 lt_cv_dlopen=LoadLibrary
a243b558
JF
12597 lt_cv_dlopen_libs=
12598 ;;
66170b30 12599
a243b558 12600 cygwin*)
9d54db95 12601 lt_cv_dlopen=dlopen
a243b558
JF
12602 lt_cv_dlopen_libs=
12603 ;;
66170b30 12604
a243b558 12605 darwin*)
9d54db95 12606 # if libdl is installed we need to link against it
a243b558
JF
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12608$as_echo_n "checking for dlopen in -ldl... " >&6; }
12609if ${ac_cv_lib_dl_dlopen+:} false; then :
12610 $as_echo_n "(cached) " >&6
12611else
12612 ac_check_lib_save_LIBS=$LIBS
12613LIBS="-ldl $LIBS"
12614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12615/* end confdefs.h. */
66170b30 12616
a243b558
JF
12617/* Override any GCC internal prototype to avoid an error.
12618 Use char because int might match the return type of a GCC
12619 builtin and then its argument prototype would still apply. */
12620#ifdef __cplusplus
12621extern "C"
12622#endif
12623char dlopen ();
12624int
12625main ()
12626{
12627return dlopen ();
12628 ;
12629 return 0;
12630}
12631_ACEOF
12632if ac_fn_c_try_link "$LINENO"; then :
12633 ac_cv_lib_dl_dlopen=yes
12634else
12635 ac_cv_lib_dl_dlopen=no
66170b30 12636fi
a243b558
JF
12637rm -f core conftest.err conftest.$ac_objext \
12638 conftest$ac_exeext conftest.$ac_ext
12639LIBS=$ac_check_lib_save_LIBS
66170b30 12640fi
a243b558
JF
12641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12642$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12643if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9d54db95 12644 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
a243b558 12645else
66170b30 12646
9d54db95 12647 lt_cv_dlopen=dyld
a243b558
JF
12648 lt_cv_dlopen_libs=
12649 lt_cv_dlopen_self=yes
66170b30 12650
a243b558 12651fi
9c60689e 12652
a243b558 12653 ;;
9c60689e 12654
9d54db95
JF
12655 tpf*)
12656 # Don't try to run any link tests for TPF. We know it's impossible
12657 # because TPF is a cross-compiler, and we know how we open DSOs.
12658 lt_cv_dlopen=dlopen
12659 lt_cv_dlopen_libs=
12660 lt_cv_dlopen_self=no
12661 ;;
12662
a243b558
JF
12663 *)
12664 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12665if test "x$ac_cv_func_shl_load" = xyes; then :
9d54db95 12666 lt_cv_dlopen=shl_load
a243b558
JF
12667else
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12669$as_echo_n "checking for shl_load in -ldld... " >&6; }
12670if ${ac_cv_lib_dld_shl_load+:} false; then :
12671 $as_echo_n "(cached) " >&6
12672else
12673 ac_check_lib_save_LIBS=$LIBS
12674LIBS="-ldld $LIBS"
12675cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12676/* end confdefs.h. */
66170b30 12677
a243b558
JF
12678/* Override any GCC internal prototype to avoid an error.
12679 Use char because int might match the return type of a GCC
12680 builtin and then its argument prototype would still apply. */
12681#ifdef __cplusplus
12682extern "C"
12683#endif
12684char shl_load ();
12685int
12686main ()
12687{
12688return shl_load ();
12689 ;
12690 return 0;
12691}
12692_ACEOF
12693if ac_fn_c_try_link "$LINENO"; then :
12694 ac_cv_lib_dld_shl_load=yes
66170b30 12695else
a243b558
JF
12696 ac_cv_lib_dld_shl_load=no
12697fi
12698rm -f core conftest.err conftest.$ac_objext \
12699 conftest$ac_exeext conftest.$ac_ext
12700LIBS=$ac_check_lib_save_LIBS
66170b30 12701fi
a243b558
JF
12702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12703$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12704if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9d54db95 12705 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
a243b558
JF
12706else
12707 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12708if test "x$ac_cv_func_dlopen" = xyes; then :
9d54db95 12709 lt_cv_dlopen=dlopen
a243b558
JF
12710else
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12712$as_echo_n "checking for dlopen in -ldl... " >&6; }
12713if ${ac_cv_lib_dl_dlopen+:} false; then :
12714 $as_echo_n "(cached) " >&6
12715else
12716 ac_check_lib_save_LIBS=$LIBS
12717LIBS="-ldl $LIBS"
12718cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12719/* end confdefs.h. */
e9c9a47c 12720
a243b558
JF
12721/* Override any GCC internal prototype to avoid an error.
12722 Use char because int might match the return type of a GCC
12723 builtin and then its argument prototype would still apply. */
12724#ifdef __cplusplus
12725extern "C"
12726#endif
12727char dlopen ();
12728int
12729main ()
12730{
12731return dlopen ();
12732 ;
12733 return 0;
12734}
12735_ACEOF
12736if ac_fn_c_try_link "$LINENO"; then :
12737 ac_cv_lib_dl_dlopen=yes
12738else
12739 ac_cv_lib_dl_dlopen=no
12740fi
12741rm -f core conftest.err conftest.$ac_objext \
12742 conftest$ac_exeext conftest.$ac_ext
12743LIBS=$ac_check_lib_save_LIBS
12744fi
12745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12746$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12747if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9d54db95 12748 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
a243b558
JF
12749else
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12751$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12752if ${ac_cv_lib_svld_dlopen+:} false; then :
12753 $as_echo_n "(cached) " >&6
12754else
12755 ac_check_lib_save_LIBS=$LIBS
12756LIBS="-lsvld $LIBS"
12757cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12758/* end confdefs.h. */
12759
12760/* Override any GCC internal prototype to avoid an error.
12761 Use char because int might match the return type of a GCC
12762 builtin and then its argument prototype would still apply. */
12763#ifdef __cplusplus
12764extern "C"
12765#endif
12766char dlopen ();
12767int
12768main ()
12769{
12770return dlopen ();
12771 ;
12772 return 0;
12773}
12774_ACEOF
12775if ac_fn_c_try_link "$LINENO"; then :
12776 ac_cv_lib_svld_dlopen=yes
12777else
12778 ac_cv_lib_svld_dlopen=no
12779fi
12780rm -f core conftest.err conftest.$ac_objext \
12781 conftest$ac_exeext conftest.$ac_ext
12782LIBS=$ac_check_lib_save_LIBS
12783fi
12784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12785$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12786if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9d54db95 12787 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
a243b558
JF
12788else
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12790$as_echo_n "checking for dld_link in -ldld... " >&6; }
12791if ${ac_cv_lib_dld_dld_link+:} false; then :
12792 $as_echo_n "(cached) " >&6
12793else
12794 ac_check_lib_save_LIBS=$LIBS
12795LIBS="-ldld $LIBS"
12796cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12797/* end confdefs.h. */
12798
12799/* Override any GCC internal prototype to avoid an error.
12800 Use char because int might match the return type of a GCC
12801 builtin and then its argument prototype would still apply. */
12802#ifdef __cplusplus
12803extern "C"
12804#endif
12805char dld_link ();
12806int
12807main ()
12808{
12809return dld_link ();
12810 ;
12811 return 0;
12812}
12813_ACEOF
12814if ac_fn_c_try_link "$LINENO"; then :
12815 ac_cv_lib_dld_dld_link=yes
9c60689e 12816else
a243b558
JF
12817 ac_cv_lib_dld_dld_link=no
12818fi
12819rm -f core conftest.err conftest.$ac_objext \
12820 conftest$ac_exeext conftest.$ac_ext
12821LIBS=$ac_check_lib_save_LIBS
12822fi
12823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12824$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12825if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9d54db95 12826 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
9c60689e
DWT
12827fi
12828
12829
a243b558 12830fi
66170b30 12831
66170b30 12832
a243b558 12833fi
66170b30 12834
66170b30
JF
12835
12836fi
e9c9a47c 12837
66170b30 12838
a243b558 12839fi
66170b30 12840
66170b30 12841
66170b30 12842fi
e9c9a47c 12843
a243b558
JF
12844 ;;
12845 esac
9c60689e 12846
9d54db95 12847 if test no = "$lt_cv_dlopen"; then
a243b558 12848 enable_dlopen=no
9d54db95
JF
12849 else
12850 enable_dlopen=yes
a243b558 12851 fi
9c60689e 12852
a243b558
JF
12853 case $lt_cv_dlopen in
12854 dlopen)
9d54db95
JF
12855 save_CPPFLAGS=$CPPFLAGS
12856 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
66170b30 12857
9d54db95 12858 save_LDFLAGS=$LDFLAGS
a243b558 12859 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
66170b30 12860
9d54db95 12861 save_LIBS=$LIBS
a243b558 12862 LIBS="$lt_cv_dlopen_libs $LIBS"
3fd51f51 12863
a243b558
JF
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12865$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12866if ${lt_cv_dlopen_self+:} false; then :
12867 $as_echo_n "(cached) " >&6
e9c9a47c 12868else
9d54db95 12869 if test yes = "$cross_compiling"; then :
a243b558
JF
12870 lt_cv_dlopen_self=cross
12871else
12872 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12873 lt_status=$lt_dlunknown
12874 cat > conftest.$ac_ext <<_LT_EOF
12875#line $LINENO "configure"
12876#include "confdefs.h"
e9c9a47c 12877
a243b558
JF
12878#if HAVE_DLFCN_H
12879#include <dlfcn.h>
12880#endif
e9c9a47c 12881
a243b558 12882#include <stdio.h>
66170b30 12883
a243b558
JF
12884#ifdef RTLD_GLOBAL
12885# define LT_DLGLOBAL RTLD_GLOBAL
12886#else
12887# ifdef DL_GLOBAL
12888# define LT_DLGLOBAL DL_GLOBAL
12889# else
12890# define LT_DLGLOBAL 0
12891# endif
12892#endif
66170b30 12893
a243b558
JF
12894/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12895 find out it does not work in some platform. */
12896#ifndef LT_DLLAZY_OR_NOW
12897# ifdef RTLD_LAZY
12898# define LT_DLLAZY_OR_NOW RTLD_LAZY
12899# else
12900# ifdef DL_LAZY
12901# define LT_DLLAZY_OR_NOW DL_LAZY
12902# else
12903# ifdef RTLD_NOW
12904# define LT_DLLAZY_OR_NOW RTLD_NOW
12905# else
12906# ifdef DL_NOW
12907# define LT_DLLAZY_OR_NOW DL_NOW
12908# else
12909# define LT_DLLAZY_OR_NOW 0
12910# endif
12911# endif
12912# endif
12913# endif
12914#endif
e9c9a47c 12915
9d54db95 12916/* When -fvisibility=hidden is used, assume the code has been annotated
a243b558 12917 correspondingly for the symbols needed. */
9d54db95 12918#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
a243b558
JF
12919int fnord () __attribute__((visibility("default")));
12920#endif
e9c9a47c 12921
a243b558
JF
12922int fnord () { return 42; }
12923int main ()
12924{
12925 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12926 int status = $lt_dlunknown;
e9c9a47c 12927
a243b558
JF
12928 if (self)
12929 {
12930 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12931 else
12932 {
12933 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12934 else puts (dlerror ());
12935 }
12936 /* dlclose (self); */
12937 }
12938 else
12939 puts (dlerror ());
e9c9a47c 12940
a243b558
JF
12941 return status;
12942}
12943_LT_EOF
12944 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12945 (eval $ac_link) 2>&5
12946 ac_status=$?
12947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9d54db95 12948 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
a243b558
JF
12949 (./conftest; exit; ) >&5 2>/dev/null
12950 lt_status=$?
12951 case x$lt_status in
12952 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12953 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12954 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12955 esac
12956 else :
12957 # compilation failed
12958 lt_cv_dlopen_self=no
12959 fi
12960fi
12961rm -fr conftest*
e9c9a47c 12962
e9c9a47c 12963
e9c9a47c 12964fi
a243b558
JF
12965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12966$as_echo "$lt_cv_dlopen_self" >&6; }
e9c9a47c 12967
9d54db95 12968 if test yes = "$lt_cv_dlopen_self"; then
a243b558
JF
12969 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12971$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12972if ${lt_cv_dlopen_self_static+:} false; then :
12973 $as_echo_n "(cached) " >&6
e9c9a47c 12974else
9d54db95 12975 if test yes = "$cross_compiling"; then :
a243b558
JF
12976 lt_cv_dlopen_self_static=cross
12977else
12978 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12979 lt_status=$lt_dlunknown
12980 cat > conftest.$ac_ext <<_LT_EOF
12981#line $LINENO "configure"
12982#include "confdefs.h"
12983
12984#if HAVE_DLFCN_H
12985#include <dlfcn.h>
12986#endif
12987
12988#include <stdio.h>
e9c9a47c 12989
a243b558
JF
12990#ifdef RTLD_GLOBAL
12991# define LT_DLGLOBAL RTLD_GLOBAL
12992#else
12993# ifdef DL_GLOBAL
12994# define LT_DLGLOBAL DL_GLOBAL
12995# else
12996# define LT_DLGLOBAL 0
12997# endif
12998#endif
e9c9a47c 12999
a243b558
JF
13000/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13001 find out it does not work in some platform. */
13002#ifndef LT_DLLAZY_OR_NOW
13003# ifdef RTLD_LAZY
13004# define LT_DLLAZY_OR_NOW RTLD_LAZY
13005# else
13006# ifdef DL_LAZY
13007# define LT_DLLAZY_OR_NOW DL_LAZY
13008# else
13009# ifdef RTLD_NOW
13010# define LT_DLLAZY_OR_NOW RTLD_NOW
13011# else
13012# ifdef DL_NOW
13013# define LT_DLLAZY_OR_NOW DL_NOW
13014# else
13015# define LT_DLLAZY_OR_NOW 0
13016# endif
13017# endif
13018# endif
13019# endif
13020#endif
66170b30 13021
9d54db95 13022/* When -fvisibility=hidden is used, assume the code has been annotated
a243b558 13023 correspondingly for the symbols needed. */
9d54db95 13024#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
a243b558
JF
13025int fnord () __attribute__((visibility("default")));
13026#endif
e9c9a47c 13027
a243b558
JF
13028int fnord () { return 42; }
13029int main ()
13030{
13031 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13032 int status = $lt_dlunknown;
e9c9a47c 13033
a243b558
JF
13034 if (self)
13035 {
13036 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13037 else
13038 {
13039 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13040 else puts (dlerror ());
13041 }
13042 /* dlclose (self); */
13043 }
13044 else
13045 puts (dlerror ());
e9c9a47c 13046
a243b558
JF
13047 return status;
13048}
13049_LT_EOF
13050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13051 (eval $ac_link) 2>&5
13052 ac_status=$?
13053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9d54db95 13054 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
a243b558
JF
13055 (./conftest; exit; ) >&5 2>/dev/null
13056 lt_status=$?
13057 case x$lt_status in
13058 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13059 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13060 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13061 esac
13062 else :
13063 # compilation failed
13064 lt_cv_dlopen_self_static=no
13065 fi
13066fi
13067rm -fr conftest*
e9c9a47c 13068
b65019fe 13069
a243b558
JF
13070fi
13071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13072$as_echo "$lt_cv_dlopen_self_static" >&6; }
13073 fi
66170b30 13074
9d54db95
JF
13075 CPPFLAGS=$save_CPPFLAGS
13076 LDFLAGS=$save_LDFLAGS
13077 LIBS=$save_LIBS
a243b558
JF
13078 ;;
13079 esac
66170b30 13080
a243b558
JF
13081 case $lt_cv_dlopen_self in
13082 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13083 *) enable_dlopen_self=unknown ;;
13084 esac
13085
13086 case $lt_cv_dlopen_self_static in
13087 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13088 *) enable_dlopen_self_static=unknown ;;
13089 esac
b65019fe
DWT
13090fi
13091
13092
66170b30 13093
b65019fe 13094
e9c9a47c 13095
e9c9a47c
DWT
13096
13097
e9c9a47c 13098
e9c9a47c
DWT
13099
13100
e9c9a47c 13101
e9c9a47c 13102
3530897b 13103
47aaa820 13104
47aaa820 13105
a243b558
JF
13106
13107
13108striplib=
13109old_striplib=
13110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13111$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13112if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13113 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13114 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13116$as_echo "yes" >&6; }
47aaa820 13117else
a243b558
JF
13118# FIXME - insert some real tests, host_os isn't really good enough
13119 case $host_os in
13120 darwin*)
9d54db95 13121 if test -n "$STRIP"; then
a243b558
JF
13122 striplib="$STRIP -x"
13123 old_striplib="$STRIP -S"
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13125$as_echo "yes" >&6; }
13126 else
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13128$as_echo "no" >&6; }
13129 fi
13130 ;;
13131 *)
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13133$as_echo "no" >&6; }
13134 ;;
13135 esac
3530897b 13136fi
47aaa820 13137
3530897b
DWT
13138
13139
9c60689e 13140
9c60689e 13141
9c60689e 13142
9c60689e 13143
9c60689e 13144
66170b30 13145
66170b30 13146
66170b30 13147
66170b30 13148
9d54db95 13149 # Report what library types will actually be built
a243b558
JF
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13151$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13153$as_echo "$can_build_shared" >&6; }
66170b30 13154
a243b558
JF
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13156$as_echo_n "checking whether to build shared libraries... " >&6; }
9d54db95 13157 test no = "$can_build_shared" && enable_shared=no
66170b30 13158
a243b558
JF
13159 # On AIX, shared libraries and static libraries use the same namespace, and
13160 # are all built from PIC.
13161 case $host_os in
13162 aix3*)
9d54db95 13163 test yes = "$enable_shared" && enable_static=no
a243b558
JF
13164 if test -n "$RANLIB"; then
13165 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13166 postinstall_cmds='$RANLIB $lib'
13167 fi
13168 ;;
66170b30 13169
a243b558 13170 aix[4-9]*)
9d54db95
JF
13171 if test ia64 != "$host_cpu"; then
13172 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13173 yes,aix,yes) ;; # shared object as lib.so file only
13174 yes,svr4,*) ;; # shared object as lib.so archive member only
13175 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13176 esac
a243b558
JF
13177 fi
13178 ;;
13179 esac
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13181$as_echo "$enable_shared" >&6; }
66170b30 13182
a243b558
JF
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13184$as_echo_n "checking whether to build static libraries... " >&6; }
13185 # Make sure either enable_shared or enable_static is yes.
9d54db95 13186 test yes = "$enable_shared" || enable_static=yes
a243b558
JF
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13188$as_echo "$enable_static" >&6; }
66170b30 13189
9c60689e 13190
e9c9a47c 13191
9c60689e 13192
a243b558
JF
13193fi
13194ac_ext=c
13195ac_cpp='$CPP $CPPFLAGS'
13196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13198ac_compiler_gnu=$ac_cv_c_compiler_gnu
13199
9d54db95 13200CC=$lt_save_CC
e9c9a47c 13201
9d54db95
JF
13202 if test -n "$CXX" && ( test no != "$CXX" &&
13203 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13204 (test g++ != "$CXX"))); then
e9c9a47c
DWT
13205 ac_ext=cpp
13206ac_cpp='$CXXCPP $CPPFLAGS'
13207ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13208ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13209ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13211$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13212if test -z "$CXXCPP"; then
ee134472 13213 if ${ac_cv_prog_CXXCPP+:} false; then :
e9c9a47c
DWT
13214 $as_echo_n "(cached) " >&6
13215else
13216 # Double quotes because CXXCPP needs to be expanded
13217 for CXXCPP in "$CXX -E" "/lib/cpp"
13218 do
13219 ac_preproc_ok=false
13220for ac_cxx_preproc_warn_flag in '' yes
13221do
13222 # Use a header file that comes with gcc, so configuring glibc
13223 # with a fresh cross-compiler works.
13224 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13225 # <limits.h> exists even on freestanding compilers.
13226 # On the NeXT, cc -E runs the code through the compiler's parser,
13227 # not just through cpp. "Syntax error" is here to catch this case.
13228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13229/* end confdefs.h. */
13230#ifdef __STDC__
13231# include <limits.h>
13232#else
13233# include <assert.h>
13234#endif
13235 Syntax error
13236_ACEOF
13237if ac_fn_cxx_try_cpp "$LINENO"; then :
13238
13239else
13240 # Broken: fails on valid input.
13241continue
13242fi
12833ad8 13243rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
13244
13245 # OK, works on sane cases. Now check whether nonexistent headers
13246 # can be detected and how.
13247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13248/* end confdefs.h. */
13249#include <ac_nonexistent.h>
13250_ACEOF
13251if ac_fn_cxx_try_cpp "$LINENO"; then :
13252 # Broken: success on invalid input.
13253continue
13254else
13255 # Passes both tests.
13256ac_preproc_ok=:
13257break
13258fi
12833ad8 13259rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
13260
13261done
13262# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12833ad8 13263rm -f conftest.i conftest.err conftest.$ac_ext
e9c9a47c
DWT
13264if $ac_preproc_ok; then :
13265 break
13266fi
13267
13268 done
13269 ac_cv_prog_CXXCPP=$CXXCPP
13270
13271fi
13272 CXXCPP=$ac_cv_prog_CXXCPP
13273else
13274 ac_cv_prog_CXXCPP=$CXXCPP
13275fi
13276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13277$as_echo "$CXXCPP" >&6; }
13278ac_preproc_ok=false
13279for ac_cxx_preproc_warn_flag in '' yes
13280do
13281 # Use a header file that comes with gcc, so configuring glibc
13282 # with a fresh cross-compiler works.
13283 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13284 # <limits.h> exists even on freestanding compilers.
13285 # On the NeXT, cc -E runs the code through the compiler's parser,
13286 # not just through cpp. "Syntax error" is here to catch this case.
13287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13288/* end confdefs.h. */
13289#ifdef __STDC__
13290# include <limits.h>
13291#else
13292# include <assert.h>
13293#endif
13294 Syntax error
13295_ACEOF
13296if ac_fn_cxx_try_cpp "$LINENO"; then :
13297
13298else
13299 # Broken: fails on valid input.
13300continue
13301fi
12833ad8 13302rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
13303
13304 # OK, works on sane cases. Now check whether nonexistent headers
13305 # can be detected and how.
13306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13307/* end confdefs.h. */
13308#include <ac_nonexistent.h>
13309_ACEOF
13310if ac_fn_cxx_try_cpp "$LINENO"; then :
13311 # Broken: success on invalid input.
13312continue
13313else
13314 # Passes both tests.
13315ac_preproc_ok=:
13316break
13317fi
12833ad8 13318rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
13319
13320done
13321# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12833ad8 13322rm -f conftest.i conftest.err conftest.$ac_ext
e9c9a47c
DWT
13323if $ac_preproc_ok; then :
13324
13325else
13326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13327$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ee134472
JF
13328as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13329See \`config.log' for more details" "$LINENO" 5; }
e9c9a47c
DWT
13330fi
13331
a243b558
JF
13332ac_ext=c
13333ac_cpp='$CPP $CPPFLAGS'
13334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13336ac_compiler_gnu=$ac_cv_c_compiler_gnu
66170b30
JF
13337
13338else
e9c9a47c
DWT
13339 _lt_caught_CXX_error=yes
13340fi
13341
9c60689e
DWT
13342ac_ext=cpp
13343ac_cpp='$CXXCPP $CPPFLAGS'
13344ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13345ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13346ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9c60689e 13347
47aaa820
DWT
13348archive_cmds_need_lc_CXX=no
13349allow_undefined_flag_CXX=
13350always_export_symbols_CXX=no
13351archive_expsym_cmds_CXX=
13352compiler_needs_object_CXX=no
13353export_dynamic_flag_spec_CXX=
13354hardcode_direct_CXX=no
13355hardcode_direct_absolute_CXX=no
13356hardcode_libdir_flag_spec_CXX=
47aaa820
DWT
13357hardcode_libdir_separator_CXX=
13358hardcode_minus_L_CXX=no
13359hardcode_shlibpath_var_CXX=unsupported
13360hardcode_automatic_CXX=no
13361inherit_rpath_CXX=no
13362module_cmds_CXX=
13363module_expsym_cmds_CXX=
13364link_all_deplibs_CXX=unknown
13365old_archive_cmds_CXX=$old_archive_cmds
ee134472
JF
13366reload_flag_CXX=$reload_flag
13367reload_cmds_CXX=$reload_cmds
47aaa820
DWT
13368no_undefined_flag_CXX=
13369whole_archive_flag_spec_CXX=
13370enable_shared_with_static_runtimes_CXX=no
9c60689e 13371
47aaa820
DWT
13372# Source file extension for C++ test sources.
13373ac_ext=cpp
9c60689e 13374
47aaa820
DWT
13375# Object file extension for compiled C++ test sources.
13376objext=o
13377objext_CXX=$objext
9c60689e 13378
47aaa820
DWT
13379# No sense in running all these tests if we already determined that
13380# the CXX compiler isn't working. Some variables (like enable_shared)
13381# are currently assumed to apply to all compilers on this platform,
13382# and will be corrupted by setting them based on a non-working compiler.
9d54db95 13383if test yes != "$_lt_caught_CXX_error"; then
47aaa820
DWT
13384 # Code to be used in simple compile tests
13385 lt_simple_compile_test_code="int some_variable = 0;"
9c60689e 13386
47aaa820
DWT
13387 # Code to be used in simple link tests
13388 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
9c60689e 13389
47aaa820 13390 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9c60689e 13391
9c60689e 13392
9c60689e 13393
9c60689e 13394
9c60689e 13395
9c60689e 13396
47aaa820
DWT
13397# If no C compiler was specified, use CC.
13398LTCC=${LTCC-"$CC"}
9c60689e 13399
47aaa820
DWT
13400# If no C compiler flags were specified, use CFLAGS.
13401LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9c60689e 13402
47aaa820
DWT
13403# Allow CC to be a program name with arguments.
13404compiler=$CC
9c60689e 13405
9c60689e 13406
47aaa820
DWT
13407 # save warnings/boilerplate of simple test code
13408 ac_outfile=conftest.$ac_objext
13409echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13410eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13411_lt_compiler_boilerplate=`cat conftest.err`
00a96142 13412$RM -r conftest*
9c60689e 13413
47aaa820
DWT
13414 ac_outfile=conftest.$ac_objext
13415echo "$lt_simple_link_test_code" >conftest.$ac_ext
13416eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13417_lt_linker_boilerplate=`cat conftest.err`
13418$RM -r conftest*
9c60689e 13419
9c60689e 13420
47aaa820
DWT
13421 # Allow CC to be a program name with arguments.
13422 lt_save_CC=$CC
ee134472 13423 lt_save_CFLAGS=$CFLAGS
47aaa820
DWT
13424 lt_save_LD=$LD
13425 lt_save_GCC=$GCC
13426 GCC=$GXX
13427 lt_save_with_gnu_ld=$with_gnu_ld
13428 lt_save_path_LD=$lt_cv_path_LD
13429 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13430 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9c60689e 13431 else
47aaa820 13432 $as_unset lt_cv_prog_gnu_ld
9c60689e 13433 fi
47aaa820
DWT
13434 if test -n "${lt_cv_path_LDCXX+set}"; then
13435 lt_cv_path_LD=$lt_cv_path_LDCXX
9c60689e 13436 else
47aaa820 13437 $as_unset lt_cv_path_LD
9c60689e 13438 fi
47aaa820
DWT
13439 test -z "${LDCXX+set}" || LD=$LDCXX
13440 CC=${CXX-"c++"}
ee134472 13441 CFLAGS=$CXXFLAGS
47aaa820
DWT
13442 compiler=$CC
13443 compiler_CXX=$CC
9d54db95
JF
13444 func_cc_basename $compiler
13445cc_basename=$func_cc_basename_result
9c60689e
DWT
13446
13447
47aaa820
DWT
13448 if test -n "$compiler"; then
13449 # We don't want -fno-exception when compiling C++ code, so set the
13450 # no_builtin_flag separately
9d54db95 13451 if test yes = "$GXX"; then
47aaa820
DWT
13452 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13453 else
13454 lt_prog_compiler_no_builtin_flag_CXX=
13455 fi
9c60689e 13456
9d54db95 13457 if test yes = "$GXX"; then
47aaa820
DWT
13458 # Set up default GNU C++ configuration
13459
13460
13461
13462# Check whether --with-gnu-ld was given.
13463if test "${with_gnu_ld+set}" = set; then :
9d54db95 13464 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
9c60689e 13465else
47aaa820 13466 with_gnu_ld=no
9c60689e
DWT
13467fi
13468
47aaa820 13469ac_prog=ld
9d54db95 13470if test yes = "$GCC"; then
47aaa820
DWT
13471 # Check if gcc -print-prog-name=ld gives a path.
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13473$as_echo_n "checking for ld used by $CC... " >&6; }
13474 case $host in
13475 *-*-mingw*)
9d54db95 13476 # gcc leaves a trailing carriage return, which upsets mingw
47aaa820
DWT
13477 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13478 *)
13479 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13480 esac
13481 case $ac_prog in
13482 # Accept absolute paths.
13483 [\\/]* | ?:[\\/]*)
13484 re_direlt='/[^/][^/]*/\.\./'
13485 # Canonicalize the pathname of ld
13486 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13487 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13488 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13489 done
9d54db95 13490 test -z "$LD" && LD=$ac_prog
47aaa820
DWT
13491 ;;
13492 "")
13493 # If it fails, then pretend we aren't using GCC.
13494 ac_prog=ld
13495 ;;
13496 *)
13497 # If it is relative, then search for the first ld in PATH.
13498 with_gnu_ld=unknown
13499 ;;
13500 esac
9d54db95 13501elif test yes = "$with_gnu_ld"; then
47aaa820
DWT
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13503$as_echo_n "checking for GNU ld... " >&6; }
13504else
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13506$as_echo_n "checking for non-GNU ld... " >&6; }
9c60689e 13507fi
ee134472 13508if ${lt_cv_path_LD+:} false; then :
9c60689e
DWT
13509 $as_echo_n "(cached) " >&6
13510else
47aaa820 13511 if test -z "$LD"; then
9d54db95 13512 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
47aaa820 13513 for ac_dir in $PATH; do
9d54db95 13514 IFS=$lt_save_ifs
47aaa820
DWT
13515 test -z "$ac_dir" && ac_dir=.
13516 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9d54db95 13517 lt_cv_path_LD=$ac_dir/$ac_prog
47aaa820
DWT
13518 # Check to see if the program is GNU ld. I'd rather use --version,
13519 # but apparently some variants of GNU ld only accept -v.
13520 # Break only if it was the GNU/non-GNU ld that we prefer.
13521 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13522 *GNU* | *'with BFD'*)
9d54db95 13523 test no != "$with_gnu_ld" && break
47aaa820
DWT
13524 ;;
13525 *)
9d54db95 13526 test yes != "$with_gnu_ld" && break
47aaa820
DWT
13527 ;;
13528 esac
13529 fi
9c60689e 13530 done
9d54db95 13531 IFS=$lt_save_ifs
47aaa820 13532else
9d54db95 13533 lt_cv_path_LD=$LD # Let the user override the test with a path.
9c60689e
DWT
13534fi
13535fi
47aaa820 13536
9d54db95 13537LD=$lt_cv_path_LD
47aaa820
DWT
13538if test -n "$LD"; then
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13540$as_echo "$LD" >&6; }
9c60689e
DWT
13541else
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13543$as_echo "no" >&6; }
13544fi
12833ad8 13545test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
47aaa820
DWT
13546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13547$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
ee134472 13548if ${lt_cv_prog_gnu_ld+:} false; then :
47aaa820
DWT
13549 $as_echo_n "(cached) " >&6
13550else
13551 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13552case `$LD -v 2>&1 </dev/null` in
13553*GNU* | *'with BFD'*)
13554 lt_cv_prog_gnu_ld=yes
13555 ;;
13556*)
13557 lt_cv_prog_gnu_ld=no
13558 ;;
13559esac
13560fi
13561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13562$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13563with_gnu_ld=$lt_cv_prog_gnu_ld
9c60689e
DWT
13564
13565
9c60689e 13566
9c60689e 13567
9c60689e 13568
9c60689e 13569
9c60689e 13570
47aaa820
DWT
13571 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13572 # archiving commands below assume that GNU ld is being used.
9d54db95
JF
13573 if test yes = "$with_gnu_ld"; then
13574 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13575 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 13576
9d54db95
JF
13577 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13578 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
9c60689e 13579
47aaa820
DWT
13580 # If archive_cmds runs LD, not CC, wlarc should be empty
13581 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13582 # investigate it a little bit more. (MM)
9d54db95 13583 wlarc='$wl'
9c60689e 13584
47aaa820
DWT
13585 # ancient GNU ld didn't support --whole-archive et. al.
13586 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13587 $GREP 'no-whole-archive' > /dev/null; then
9d54db95 13588 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
47aaa820
DWT
13589 else
13590 whole_archive_flag_spec_CXX=
13591 fi
13592 else
13593 with_gnu_ld=no
13594 wlarc=
13595
13596 # A generic and very simple default shared library creation
13597 # command for GNU C++ for the case where it uses the native
13598 # linker, instead of GNU ld. If possible, this setting should
13599 # overridden to take advantage of the native linker features on
13600 # the platform it is being used on.
13601 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13602 fi
13603
13604 # Commands to make compiler produce verbose output that lists
13605 # what "hidden" libraries, object files and flags are used when
13606 # linking a shared library.
ee134472 13607 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820
DWT
13608
13609 else
13610 GXX=no
13611 with_gnu_ld=no
13612 wlarc=
13613 fi
13614
13615 # PORTME: fill in a description of your system's C++ link characteristics
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13617$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13618 ld_shlibs_CXX=yes
13619 case $host_os in
13620 aix3*)
13621 # FIXME: insert proper C++ library support
13622 ld_shlibs_CXX=no
13623 ;;
13624 aix[4-9]*)
9d54db95 13625 if test ia64 = "$host_cpu"; then
47aaa820
DWT
13626 # On IA64, the linker does run time linking by default, so we don't
13627 # have to do anything special.
13628 aix_use_runtimelinking=no
13629 exp_sym_flag='-Bexport'
9d54db95 13630 no_entry_flag=
47aaa820
DWT
13631 else
13632 aix_use_runtimelinking=no
13633
13634 # Test if we are trying to use run time linking or normal
13635 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9d54db95
JF
13636 # have runtime linking enabled, and use it for executables.
13637 # For shared libraries, we enable/disable runtime linking
13638 # depending on the kind of the shared library created -
13639 # when "with_aix_soname,aix_use_runtimelinking" is:
13640 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13641 # "aix,yes" lib.so shared, rtl:yes, for executables
13642 # lib.a static archive
13643 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13644 # lib.a(lib.so.V) shared, rtl:no, for executables
13645 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13646 # lib.a(lib.so.V) shared, rtl:no
13647 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13648 # lib.a static archive
47aaa820
DWT
13649 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13650 for ld_flag in $LDFLAGS; do
13651 case $ld_flag in
13652 *-brtl*)
13653 aix_use_runtimelinking=yes
13654 break
13655 ;;
13656 esac
13657 done
9d54db95
JF
13658 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13659 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13660 # so we don't have lib.a shared libs to link our executables.
13661 # We have to force runtime linking in this case.
13662 aix_use_runtimelinking=yes
13663 LDFLAGS="$LDFLAGS -Wl,-brtl"
13664 fi
47aaa820
DWT
13665 ;;
13666 esac
13667
13668 exp_sym_flag='-bexport'
13669 no_entry_flag='-bnoentry'
13670 fi
13671
13672 # When large executables or shared objects are built, AIX ld can
13673 # have problems creating the table of contents. If linking a library
13674 # or program results in "error TOC overflow" add -mminimal-toc to
13675 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13676 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13677
13678 archive_cmds_CXX=''
13679 hardcode_direct_CXX=yes
13680 hardcode_direct_absolute_CXX=yes
13681 hardcode_libdir_separator_CXX=':'
13682 link_all_deplibs_CXX=yes
9d54db95
JF
13683 file_list_spec_CXX='$wl-f,'
13684 case $with_aix_soname,$aix_use_runtimelinking in
13685 aix,*) ;; # no import file
13686 svr4,* | *,yes) # use import file
13687 # The Import File defines what to hardcode.
13688 hardcode_direct_CXX=no
13689 hardcode_direct_absolute_CXX=no
13690 ;;
13691 esac
47aaa820 13692
9d54db95 13693 if test yes = "$GXX"; then
47aaa820
DWT
13694 case $host_os in aix4.[012]|aix4.[012].*)
13695 # We only want to do this on AIX 4.2 and lower, the check
13696 # below for broken collect2 doesn't work under 4.3+
9d54db95 13697 collect2name=`$CC -print-prog-name=collect2`
47aaa820
DWT
13698 if test -f "$collect2name" &&
13699 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13700 then
13701 # We have reworked collect2
13702 :
13703 else
13704 # We have old collect2
13705 hardcode_direct_CXX=unsupported
13706 # It fails to find uninstalled libraries when the uninstalled
13707 # path is not listed in the libpath. Setting hardcode_minus_L
13708 # to unsupported forces relinking
13709 hardcode_minus_L_CXX=yes
13710 hardcode_libdir_flag_spec_CXX='-L$libdir'
13711 hardcode_libdir_separator_CXX=
13712 fi
13713 esac
13714 shared_flag='-shared'
9d54db95
JF
13715 if test yes = "$aix_use_runtimelinking"; then
13716 shared_flag=$shared_flag' $wl-G'
47aaa820 13717 fi
9d54db95
JF
13718 # Need to ensure runtime linking is disabled for the traditional
13719 # shared library, or the linker may eventually find shared libraries
13720 # /with/ Import File - we do not want to mix them.
13721 shared_flag_aix='-shared'
13722 shared_flag_svr4='-shared $wl-G'
47aaa820
DWT
13723 else
13724 # not using gcc
9d54db95 13725 if test ia64 = "$host_cpu"; then
47aaa820
DWT
13726 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13727 # chokes on -Wl,-G. The following line is correct:
13728 shared_flag='-G'
13729 else
9d54db95
JF
13730 if test yes = "$aix_use_runtimelinking"; then
13731 shared_flag='$wl-G'
47aaa820 13732 else
9d54db95 13733 shared_flag='$wl-bM:SRE'
47aaa820 13734 fi
9d54db95
JF
13735 shared_flag_aix='$wl-bM:SRE'
13736 shared_flag_svr4='$wl-G'
47aaa820
DWT
13737 fi
13738 fi
13739
9d54db95 13740 export_dynamic_flag_spec_CXX='$wl-bexpall'
47aaa820
DWT
13741 # It seems that -bexpall does not export symbols beginning with
13742 # underscore (_), so it is better to generate a list of symbols to
13743 # export.
13744 always_export_symbols_CXX=yes
9d54db95 13745 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
47aaa820
DWT
13746 # Warning - without using the other runtime loading flags (-brtl),
13747 # -berok will link without error, but may produce a broken library.
9d54db95
JF
13748 # The "-G" linker flag allows undefined symbols.
13749 no_undefined_flag_CXX='-bernotok'
47aaa820
DWT
13750 # Determine the default libpath from the value encoded in an empty
13751 # executable.
9d54db95 13752 if test set = "${lt_cv_aix_libpath+set}"; then
ee134472
JF
13753 aix_libpath=$lt_cv_aix_libpath
13754else
13755 if ${lt_cv_aix_libpath__CXX+:} false; then :
13756 $as_echo_n "(cached) " >&6
13757else
13758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
13759/* end confdefs.h. */
13760
13761int
13762main ()
13763{
13764
13765 ;
13766 return 0;
13767}
13768_ACEOF
47aaa820 13769if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e 13770
ee134472
JF
13771 lt_aix_libpath_sed='
13772 /Import File Strings/,/^$/ {
13773 /^0/ {
13774 s/^0 *\([^ ]*\) *$/\1/
13775 p
13776 }
13777 }'
13778 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13779 # Check for a 64-bit object if we didn't find anything.
13780 if test -z "$lt_cv_aix_libpath__CXX"; then
13781 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13782 fi
47aaa820
DWT
13783fi
13784rm -f core conftest.err conftest.$ac_objext \
13785 conftest$ac_exeext conftest.$ac_ext
ee134472 13786 if test -z "$lt_cv_aix_libpath__CXX"; then
9d54db95 13787 lt_cv_aix_libpath__CXX=/usr/lib:/lib
ee134472
JF
13788 fi
13789
13790fi
13791
13792 aix_libpath=$lt_cv_aix_libpath__CXX
13793fi
47aaa820 13794
9d54db95 13795 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
47aaa820 13796
9d54db95 13797 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 13798 else
9d54db95
JF
13799 if test ia64 = "$host_cpu"; then
13800 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
47aaa820 13801 allow_undefined_flag_CXX="-z nodefs"
9d54db95 13802 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
13803 else
13804 # Determine the default libpath from the value encoded in an
13805 # empty executable.
9d54db95 13806 if test set = "${lt_cv_aix_libpath+set}"; then
ee134472
JF
13807 aix_libpath=$lt_cv_aix_libpath
13808else
13809 if ${lt_cv_aix_libpath__CXX+:} false; then :
13810 $as_echo_n "(cached) " >&6
13811else
13812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
13813/* end confdefs.h. */
13814
13815int
13816main ()
13817{
13818
13819 ;
13820 return 0;
13821}
13822_ACEOF
47aaa820 13823if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e 13824
ee134472
JF
13825 lt_aix_libpath_sed='
13826 /Import File Strings/,/^$/ {
13827 /^0/ {
13828 s/^0 *\([^ ]*\) *$/\1/
13829 p
13830 }
13831 }'
13832 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13833 # Check for a 64-bit object if we didn't find anything.
13834 if test -z "$lt_cv_aix_libpath__CXX"; then
13835 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13836 fi
9c60689e 13837fi
47aaa820
DWT
13838rm -f core conftest.err conftest.$ac_objext \
13839 conftest$ac_exeext conftest.$ac_ext
ee134472 13840 if test -z "$lt_cv_aix_libpath__CXX"; then
9d54db95 13841 lt_cv_aix_libpath__CXX=/usr/lib:/lib
ee134472
JF
13842 fi
13843
13844fi
13845
13846 aix_libpath=$lt_cv_aix_libpath__CXX
13847fi
9c60689e 13848
9d54db95 13849 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
47aaa820
DWT
13850 # Warning - without using the other run time loading flags,
13851 # -berok will link without error, but may produce a broken library.
9d54db95
JF
13852 no_undefined_flag_CXX=' $wl-bernotok'
13853 allow_undefined_flag_CXX=' $wl-berok'
13854 if test yes = "$with_gnu_ld"; then
ee134472 13855 # We only use this code for GNU lds that support --whole-archive.
9d54db95 13856 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
ee134472
JF
13857 else
13858 # Exported symbols can be pulled into shared objects from archives
13859 whole_archive_flag_spec_CXX='$convenience'
13860 fi
47aaa820 13861 archive_cmds_need_lc_CXX=yes
9d54db95
JF
13862 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13863 # -brtl affects multiple linker settings, -berok does not and is overridden later
13864 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13865 if test svr4 != "$with_aix_soname"; then
13866 # This is similar to how AIX traditionally builds its shared
13867 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13868 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'
13869 fi
13870 if test aix != "$with_aix_soname"; then
13871 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'
13872 else
13873 # used by -dlpreopen to get the symbols
13874 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13875 fi
13876 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
47aaa820
DWT
13877 fi
13878 fi
13879 ;;
9c60689e 13880
47aaa820
DWT
13881 beos*)
13882 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13883 allow_undefined_flag_CXX=unsupported
13884 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13885 # support --undefined. This deserves some investigation. FIXME
9d54db95 13886 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
47aaa820
DWT
13887 else
13888 ld_shlibs_CXX=no
13889 fi
13890 ;;
9c60689e 13891
47aaa820
DWT
13892 chorus*)
13893 case $cc_basename in
13894 *)
13895 # FIXME: insert proper C++ library support
13896 ld_shlibs_CXX=no
13897 ;;
13898 esac
13899 ;;
9c60689e 13900
47aaa820 13901 cygwin* | mingw* | pw32* | cegcc*)
ee134472
JF
13902 case $GXX,$cc_basename in
13903 ,cl* | no,cl*)
13904 # Native MSVC
13905 # hardcode_libdir_flag_spec is actually meaningless, as there is
13906 # no search path for DLLs.
13907 hardcode_libdir_flag_spec_CXX=' '
13908 allow_undefined_flag_CXX=unsupported
13909 always_export_symbols_CXX=yes
13910 file_list_spec_CXX='@'
13911 # Tell ltmain to make .lib files, not .a files.
13912 libext=lib
13913 # Tell ltmain to make .dll files, not .so files.
9d54db95 13914 shrext_cmds=.dll
ee134472 13915 # FIXME: Setting linknames here is a bad hack.
9d54db95
JF
13916 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13917 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13918 cp "$export_symbols" "$output_objdir/$soname.def";
13919 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13920 else
13921 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13922 fi~
13923 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13924 linknames='
ee134472
JF
13925 # The linker will not automatically build a static lib if we build a DLL.
13926 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13927 enable_shared_with_static_runtimes_CXX=yes
13928 # Don't use ranlib
13929 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13930 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
9d54db95
JF
13931 lt_tool_outputfile="@TOOL_OUTPUT@"~
13932 case $lt_outputfile in
13933 *.exe|*.EXE) ;;
13934 *)
13935 lt_outputfile=$lt_outputfile.exe
13936 lt_tool_outputfile=$lt_tool_outputfile.exe
13937 ;;
13938 esac~
13939 func_to_tool_file "$lt_outputfile"~
13940 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13941 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13942 $RM "$lt_outputfile.manifest";
13943 fi'
ee134472
JF
13944 ;;
13945 *)
13946 # g++
13947 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13948 # as there is no search path for DLLs.
13949 hardcode_libdir_flag_spec_CXX='-L$libdir'
9d54db95 13950 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
ee134472
JF
13951 allow_undefined_flag_CXX=unsupported
13952 always_export_symbols_CXX=no
13953 enable_shared_with_static_runtimes_CXX=yes
13954
13955 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9d54db95
JF
13956 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'
13957 # If the export-symbols file already is a .def file, use it as
13958 # is; otherwise, prepend EXPORTS...
13959 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13960 cp $export_symbols $output_objdir/$soname.def;
13961 else
13962 echo EXPORTS > $output_objdir/$soname.def;
13963 cat $export_symbols >> $output_objdir/$soname.def;
13964 fi~
13965 $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
13966 else
13967 ld_shlibs_CXX=no
13968 fi
13969 ;;
13970 esac
13971 ;;
47aaa820 13972 darwin* | rhapsody*)
9c60689e 13973
9c60689e 13974
47aaa820
DWT
13975 archive_cmds_need_lc_CXX=no
13976 hardcode_direct_CXX=no
13977 hardcode_automatic_CXX=yes
13978 hardcode_shlibpath_var_CXX=unsupported
9d54db95
JF
13979 if test yes = "$lt_cv_ld_force_load"; then
13980 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 13981
ee134472
JF
13982 else
13983 whole_archive_flag_spec_CXX=''
13984 fi
47aaa820 13985 link_all_deplibs_CXX=yes
9d54db95 13986 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
47aaa820 13987 case $cc_basename in
9d54db95 13988 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
47aaa820
DWT
13989 *) _lt_dar_can_shared=$GCC ;;
13990 esac
9d54db95 13991 if test yes = "$_lt_dar_can_shared"; then
ee134472 13992 output_verbose_link_cmd=func_echo_all
9d54db95
JF
13993 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"
13994 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13995 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"
13996 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"
13997 if test yes != "$lt_cv_apple_cc_single_mod"; then
13998 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"
13999 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 14000 fi
9c60689e 14001
47aaa820
DWT
14002 else
14003 ld_shlibs_CXX=no
14004 fi
9c60689e 14005
47aaa820 14006 ;;
9c60689e 14007
9d54db95
JF
14008 os2*)
14009 hardcode_libdir_flag_spec_CXX='-L$libdir'
14010 hardcode_minus_L_CXX=yes
14011 allow_undefined_flag_CXX=unsupported
14012 shrext_cmds=.dll
14013 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14014 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14015 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14016 $ECHO EXPORTS >> $output_objdir/$libname.def~
14017 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14018 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14019 emximp -o $lib $output_objdir/$libname.def'
14020 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14021 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14022 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14023 $ECHO EXPORTS >> $output_objdir/$libname.def~
14024 prefix_cmds="$SED"~
14025 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14026 prefix_cmds="$prefix_cmds -e 1d";
14027 fi~
14028 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14029 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14030 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14031 emximp -o $lib $output_objdir/$libname.def'
14032 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14033 enable_shared_with_static_runtimes_CXX=yes
14034 ;;
14035
47aaa820
DWT
14036 dgux*)
14037 case $cc_basename in
14038 ec++*)
14039 # FIXME: insert proper C++ library support
14040 ld_shlibs_CXX=no
14041 ;;
14042 ghcx*)
14043 # Green Hills C++ Compiler
14044 # FIXME: insert proper C++ library support
14045 ld_shlibs_CXX=no
14046 ;;
14047 *)
14048 # FIXME: insert proper C++ library support
14049 ld_shlibs_CXX=no
14050 ;;
14051 esac
14052 ;;
9c60689e 14053
53ba6704 14054 freebsd2.*)
47aaa820
DWT
14055 # C++ shared libraries reported to be fairly broken before
14056 # switch to ELF
14057 ld_shlibs_CXX=no
14058 ;;
9c60689e 14059
47aaa820
DWT
14060 freebsd-elf*)
14061 archive_cmds_need_lc_CXX=no
14062 ;;
9c60689e 14063
47aaa820
DWT
14064 freebsd* | dragonfly*)
14065 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14066 # conventions
14067 ld_shlibs_CXX=yes
14068 ;;
9c60689e 14069
ee134472 14070 haiku*)
9d54db95 14071 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
ee134472
JF
14072 link_all_deplibs_CXX=yes
14073 ;;
14074
47aaa820 14075 hpux9*)
9d54db95 14076 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
47aaa820 14077 hardcode_libdir_separator_CXX=:
9d54db95 14078 export_dynamic_flag_spec_CXX='$wl-E'
47aaa820
DWT
14079 hardcode_direct_CXX=yes
14080 hardcode_minus_L_CXX=yes # Not in the search PATH,
14081 # but as the default
14082 # location of the library.
9c60689e 14083
47aaa820
DWT
14084 case $cc_basename in
14085 CC*)
14086 # FIXME: insert proper C++ library support
14087 ld_shlibs_CXX=no
14088 ;;
14089 aCC*)
9d54db95 14090 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
14091 # Commands to make compiler produce verbose output that lists
14092 # what "hidden" libraries, object files and flags are used when
14093 # linking a shared library.
14094 #
14095 # There doesn't appear to be a way to prevent this compiler from
14096 # explicitly linking system object files so we need to strip them
14097 # from the output so that they don't get included in the library
14098 # dependencies.
9d54db95 14099 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
14100 ;;
14101 *)
9d54db95
JF
14102 if test yes = "$GXX"; then
14103 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
14104 else
14105 # FIXME: insert proper C++ library support
14106 ld_shlibs_CXX=no
14107 fi
14108 ;;
14109 esac
14110 ;;
9c60689e 14111
47aaa820 14112 hpux10*|hpux11*)
9d54db95
JF
14113 if test no = "$with_gnu_ld"; then
14114 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
47aaa820 14115 hardcode_libdir_separator_CXX=:
9c60689e 14116
47aaa820
DWT
14117 case $host_cpu in
14118 hppa*64*|ia64*)
14119 ;;
14120 *)
9d54db95 14121 export_dynamic_flag_spec_CXX='$wl-E'
47aaa820
DWT
14122 ;;
14123 esac
14124 fi
14125 case $host_cpu in
14126 hppa*64*|ia64*)
14127 hardcode_direct_CXX=no
14128 hardcode_shlibpath_var_CXX=no
14129 ;;
14130 *)
14131 hardcode_direct_CXX=yes
14132 hardcode_direct_absolute_CXX=yes
14133 hardcode_minus_L_CXX=yes # Not in the search PATH,
14134 # but as the default
14135 # location of the library.
14136 ;;
14137 esac
9c60689e 14138
47aaa820
DWT
14139 case $cc_basename in
14140 CC*)
14141 # FIXME: insert proper C++ library support
14142 ld_shlibs_CXX=no
14143 ;;
14144 aCC*)
14145 case $host_cpu in
14146 hppa*64*)
9d54db95 14147 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
47aaa820
DWT
14148 ;;
14149 ia64*)
9d54db95 14150 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
47aaa820
DWT
14151 ;;
14152 *)
9d54db95 14153 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
14154 ;;
14155 esac
14156 # Commands to make compiler produce verbose output that lists
14157 # what "hidden" libraries, object files and flags are used when
14158 # linking a shared library.
14159 #
14160 # There doesn't appear to be a way to prevent this compiler from
14161 # explicitly linking system object files so we need to strip them
14162 # from the output so that they don't get included in the library
14163 # dependencies.
9d54db95 14164 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
14165 ;;
14166 *)
9d54db95
JF
14167 if test yes = "$GXX"; then
14168 if test no = "$with_gnu_ld"; then
47aaa820
DWT
14169 case $host_cpu in
14170 hppa*64*)
9d54db95 14171 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
47aaa820
DWT
14172 ;;
14173 ia64*)
9d54db95 14174 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
14175 ;;
14176 *)
9d54db95 14177 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
14178 ;;
14179 esac
14180 fi
14181 else
14182 # FIXME: insert proper C++ library support
14183 ld_shlibs_CXX=no
14184 fi
14185 ;;
14186 esac
14187 ;;
9c60689e 14188
47aaa820
DWT
14189 interix[3-9]*)
14190 hardcode_direct_CXX=no
14191 hardcode_shlibpath_var_CXX=no
9d54db95
JF
14192 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14193 export_dynamic_flag_spec_CXX='$wl-E'
47aaa820
DWT
14194 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14195 # Instead, shared libraries are loaded at an image base (0x10000000 by
14196 # default) and relocated if they conflict, which is a slow very memory
14197 # consuming and fragmenting process. To avoid this, we pick a random,
14198 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14199 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9d54db95
JF
14200 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'
14201 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
14202 ;;
14203 irix5* | irix6*)
14204 case $cc_basename in
14205 CC*)
14206 # SGI C++
9d54db95 14207 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 14208
47aaa820
DWT
14209 # Archives containing C++ object files must be created using
14210 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14211 # necessary to make sure instantiated templates are included
14212 # in the archive.
14213 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14214 ;;
14215 *)
9d54db95
JF
14216 if test yes = "$GXX"; then
14217 if test no = "$with_gnu_ld"; then
14218 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 14219 else
9d54db95 14220 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
14221 fi
14222 fi
14223 link_all_deplibs_CXX=yes
14224 ;;
14225 esac
9d54db95 14226 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
47aaa820
DWT
14227 hardcode_libdir_separator_CXX=:
14228 inherit_rpath_CXX=yes
14229 ;;
9c60689e 14230
9d54db95 14231 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
47aaa820
DWT
14232 case $cc_basename in
14233 KCC*)
14234 # Kuck and Associates, Inc. (KAI) C++ Compiler
9c60689e 14235
47aaa820
DWT
14236 # KCC will only create a shared library if the output file
14237 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14238 # to its proper name (with version) after linking.
9d54db95
JF
14239 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'
14240 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
14241 # Commands to make compiler produce verbose output that lists
14242 # what "hidden" libraries, object files and flags are used when
14243 # linking a shared library.
14244 #
14245 # There doesn't appear to be a way to prevent this compiler from
14246 # explicitly linking system object files so we need to strip them
14247 # from the output so that they don't get included in the library
14248 # dependencies.
9d54db95 14249 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 14250
9d54db95
JF
14251 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14252 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
9c60689e 14253
47aaa820
DWT
14254 # Archives containing C++ object files must be created using
14255 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14256 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14257 ;;
14258 icpc* | ecpc* )
14259 # Intel C++
14260 with_gnu_ld=yes
14261 # version 8.0 and above of icpc choke on multiply defined symbols
14262 # if we add $predep_objects and $postdep_objects, however 7.1 and
14263 # earlier do not add the objects themselves.
14264 case `$CC -V 2>&1` in
14265 *"Version 7."*)
9d54db95
JF
14266 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14267 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
14268 ;;
14269 *) # Version 8.0 or newer
14270 tmp_idyn=
14271 case $host_cpu in
14272 ia64*) tmp_idyn=' -i_dynamic';;
14273 esac
9d54db95
JF
14274 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14275 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
14276 ;;
14277 esac
14278 archive_cmds_need_lc_CXX=no
9d54db95
JF
14279 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14280 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14281 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
47aaa820
DWT
14282 ;;
14283 pgCC* | pgcpp*)
14284 # Portland Group C++ compiler
14285 case `$CC -V` in
ee134472 14286 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
47aaa820 14287 prelink_cmds_CXX='tpldir=Template.dir~
9d54db95
JF
14288 rm -rf $tpldir~
14289 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14290 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
47aaa820 14291 old_archive_cmds_CXX='tpldir=Template.dir~
9d54db95
JF
14292 rm -rf $tpldir~
14293 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14294 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14295 $RANLIB $oldlib'
47aaa820 14296 archive_cmds_CXX='tpldir=Template.dir~
9d54db95
JF
14297 rm -rf $tpldir~
14298 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14299 $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 14300 archive_expsym_cmds_CXX='tpldir=Template.dir~
9d54db95
JF
14301 rm -rf $tpldir~
14302 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14303 $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 14304 ;;
ee134472 14305 *) # Version 6 and above use weak symbols
9d54db95
JF
14306 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14307 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
14308 ;;
14309 esac
9c60689e 14310
9d54db95
JF
14311 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14312 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14313 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
14314 ;;
14315 cxx*)
14316 # Compaq C++
9d54db95
JF
14317 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14318 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 14319
47aaa820
DWT
14320 runpath_var=LD_RUN_PATH
14321 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14322 hardcode_libdir_separator_CXX=:
9c60689e 14323
47aaa820
DWT
14324 # Commands to make compiler produce verbose output that lists
14325 # what "hidden" libraries, object files and flags are used when
14326 # linking a shared library.
14327 #
14328 # There doesn't appear to be a way to prevent this compiler from
14329 # explicitly linking system object files so we need to strip them
14330 # from the output so that they don't get included in the library
14331 # dependencies.
9d54db95 14332 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 14333 ;;
ee134472 14334 xl* | mpixl* | bgxl*)
47aaa820 14335 # IBM XL 8.0 on PPC, with GNU ld
9d54db95
JF
14336 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14337 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14338 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14339 if test yes = "$supports_anon_versioning"; then
47aaa820 14340 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
9d54db95
JF
14341 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14342 echo "local: *; };" >> $output_objdir/$libname.ver~
14343 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
47aaa820
DWT
14344 fi
14345 ;;
14346 *)
14347 case `$CC -V 2>&1 | sed 5q` in
14348 *Sun\ C*)
14349 # Sun C++ 5.9
14350 no_undefined_flag_CXX=' -zdefs'
9d54db95
JF
14351 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14352 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 14353 hardcode_libdir_flag_spec_CXX='-R$libdir'
9d54db95 14354 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 14355 compiler_needs_object_CXX=yes
9c60689e 14356
47aaa820
DWT
14357 # Not sure whether something based on
14358 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14359 # would be better.
ee134472 14360 output_verbose_link_cmd='func_echo_all'
9c60689e 14361
47aaa820
DWT
14362 # Archives containing C++ object files must be created using
14363 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14364 # necessary to make sure instantiated templates are included
14365 # in the archive.
14366 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14367 ;;
14368 esac
14369 ;;
14370 esac
14371 ;;
9c60689e 14372
47aaa820
DWT
14373 lynxos*)
14374 # FIXME: insert proper C++ library support
14375 ld_shlibs_CXX=no
14376 ;;
9c60689e 14377
47aaa820
DWT
14378 m88k*)
14379 # FIXME: insert proper C++ library support
14380 ld_shlibs_CXX=no
14381 ;;
9c60689e 14382
47aaa820
DWT
14383 mvs*)
14384 case $cc_basename in
14385 cxx*)
14386 # FIXME: insert proper C++ library support
14387 ld_shlibs_CXX=no
14388 ;;
14389 *)
14390 # FIXME: insert proper C++ library support
14391 ld_shlibs_CXX=no
14392 ;;
14393 esac
14394 ;;
9c60689e 14395
47aaa820
DWT
14396 netbsd*)
14397 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14398 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14399 wlarc=
14400 hardcode_libdir_flag_spec_CXX='-R$libdir'
14401 hardcode_direct_CXX=yes
14402 hardcode_shlibpath_var_CXX=no
14403 fi
14404 # Workaround some broken pre-1.5 toolchains
14405 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9c60689e 14406 ;;
47aaa820
DWT
14407
14408 *nto* | *qnx*)
14409 ld_shlibs_CXX=yes
9c60689e 14410 ;;
9c60689e 14411
9d54db95 14412 openbsd* | bitrig*)
47aaa820
DWT
14413 if test -f /usr/libexec/ld.so; then
14414 hardcode_direct_CXX=yes
14415 hardcode_shlibpath_var_CXX=no
14416 hardcode_direct_absolute_CXX=yes
14417 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9d54db95
JF
14418 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14419 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14420 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14421 export_dynamic_flag_spec_CXX='$wl-E'
14422 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
47aaa820 14423 fi
ee134472 14424 output_verbose_link_cmd=func_echo_all
47aaa820
DWT
14425 else
14426 ld_shlibs_CXX=no
14427 fi
14428 ;;
9c60689e 14429
47aaa820
DWT
14430 osf3* | osf4* | osf5*)
14431 case $cc_basename in
14432 KCC*)
14433 # Kuck and Associates, Inc. (KAI) C++ Compiler
9c60689e 14434
47aaa820
DWT
14435 # KCC will only create a shared library if the output file
14436 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14437 # to its proper name (with version) after linking.
9d54db95 14438 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 14439
9d54db95 14440 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
47aaa820 14441 hardcode_libdir_separator_CXX=:
9c60689e 14442
47aaa820
DWT
14443 # Archives containing C++ object files must be created using
14444 # the KAI C++ compiler.
14445 case $host in
14446 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14447 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14448 esac
14449 ;;
14450 RCC*)
14451 # Rational C++ 2.4.1
14452 # FIXME: insert proper C++ library support
14453 ld_shlibs_CXX=no
14454 ;;
14455 cxx*)
14456 case $host in
14457 osf3*)
9d54db95
JF
14458 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14459 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'
14460 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
47aaa820
DWT
14461 ;;
14462 *)
14463 allow_undefined_flag_CXX=' -expect_unresolved \*'
9d54db95 14464 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 14465 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9d54db95
JF
14466 echo "-hidden">> $lib.exp~
14467 $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~
14468 $RM $lib.exp'
47aaa820
DWT
14469 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14470 ;;
14471 esac
9c60689e 14472
47aaa820 14473 hardcode_libdir_separator_CXX=:
9c60689e 14474
47aaa820
DWT
14475 # Commands to make compiler produce verbose output that lists
14476 # what "hidden" libraries, object files and flags are used when
14477 # linking a shared library.
14478 #
14479 # There doesn't appear to be a way to prevent this compiler from
14480 # explicitly linking system object files so we need to strip them
14481 # from the output so that they don't get included in the library
14482 # dependencies.
9d54db95 14483 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
14484 ;;
14485 *)
9d54db95
JF
14486 if test yes,no = "$GXX,$with_gnu_ld"; then
14487 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
47aaa820
DWT
14488 case $host in
14489 osf3*)
9d54db95 14490 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
14491 ;;
14492 *)
9d54db95 14493 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
14494 ;;
14495 esac
9c60689e 14496
9d54db95 14497 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
47aaa820 14498 hardcode_libdir_separator_CXX=:
9c60689e 14499
47aaa820
DWT
14500 # Commands to make compiler produce verbose output that lists
14501 # what "hidden" libraries, object files and flags are used when
14502 # linking a shared library.
ee134472 14503 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
9c60689e 14504
47aaa820
DWT
14505 else
14506 # FIXME: insert proper C++ library support
14507 ld_shlibs_CXX=no
14508 fi
14509 ;;
14510 esac
14511 ;;
9c60689e 14512
47aaa820 14513 psos*)
9c60689e
DWT
14514 # FIXME: insert proper C++ library support
14515 ld_shlibs_CXX=no
14516 ;;
9c60689e 14517
47aaa820
DWT
14518 sunos4*)
14519 case $cc_basename in
14520 CC*)
14521 # Sun C++ 4.x
14522 # FIXME: insert proper C++ library support
14523 ld_shlibs_CXX=no
9c60689e 14524 ;;
47aaa820
DWT
14525 lcc*)
14526 # Lucid
14527 # FIXME: insert proper C++ library support
14528 ld_shlibs_CXX=no
14529 ;;
14530 *)
14531 # FIXME: insert proper C++ library support
14532 ld_shlibs_CXX=no
14533 ;;
14534 esac
14535 ;;
9c60689e 14536
47aaa820
DWT
14537 solaris*)
14538 case $cc_basename in
ee134472 14539 CC* | sunCC*)
47aaa820
DWT
14540 # Sun C++ 4.2, 5.x and Centerline C++
14541 archive_cmds_need_lc_CXX=yes
14542 no_undefined_flag_CXX=' -zdefs'
9d54db95 14543 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
47aaa820 14544 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9d54db95 14545 $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 14546
47aaa820
DWT
14547 hardcode_libdir_flag_spec_CXX='-R$libdir'
14548 hardcode_shlibpath_var_CXX=no
14549 case $host_os in
14550 solaris2.[0-5] | solaris2.[0-5].*) ;;
14551 *)
14552 # The compiler driver will combine and reorder linker options,
9d54db95 14553 # but understands '-z linker_flag'.
47aaa820
DWT
14554 # Supported since Solaris 2.6 (maybe 2.5.1?)
14555 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14556 ;;
14557 esac
14558 link_all_deplibs_CXX=yes
9c60689e 14559
ee134472 14560 output_verbose_link_cmd='func_echo_all'
9c60689e 14561
47aaa820
DWT
14562 # Archives containing C++ object files must be created using
14563 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14564 # necessary to make sure instantiated templates are included
14565 # in the archive.
14566 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14567 ;;
14568 gcx*)
14569 # Green Hills C++ Compiler
9d54db95 14570 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
9c60689e 14571
47aaa820
DWT
14572 # The C++ compiler must be used to create the archive.
14573 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14574 ;;
14575 *)
14576 # GNU C++ compiler with Solaris linker
9d54db95
JF
14577 if test yes,no = "$GXX,$with_gnu_ld"; then
14578 no_undefined_flag_CXX=' $wl-z ${wl}defs'
47aaa820 14579 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
9d54db95 14580 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
47aaa820 14581 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9d54db95 14582 $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 14583
47aaa820
DWT
14584 # Commands to make compiler produce verbose output that lists
14585 # what "hidden" libraries, object files and flags are used when
14586 # linking a shared library.
ee134472 14587 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820 14588 else
9d54db95 14589 # g++ 2.7 appears to require '-G' NOT '-shared' on this
47aaa820 14590 # platform.
9d54db95 14591 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
47aaa820 14592 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9d54db95 14593 $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 14594
47aaa820
DWT
14595 # Commands to make compiler produce verbose output that lists
14596 # what "hidden" libraries, object files and flags are used when
14597 # linking a shared library.
ee134472 14598 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820 14599 fi
9c60689e 14600
9d54db95 14601 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
47aaa820
DWT
14602 case $host_os in
14603 solaris2.[0-5] | solaris2.[0-5].*) ;;
14604 *)
9d54db95 14605 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
47aaa820
DWT
14606 ;;
14607 esac
14608 fi
14609 ;;
14610 esac
14611 ;;
9c60689e 14612
47aaa820 14613 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9d54db95 14614 no_undefined_flag_CXX='$wl-z,text'
47aaa820
DWT
14615 archive_cmds_need_lc_CXX=no
14616 hardcode_shlibpath_var_CXX=no
14617 runpath_var='LD_RUN_PATH'
9c60689e 14618
47aaa820
DWT
14619 case $cc_basename in
14620 CC*)
9d54db95
JF
14621 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14622 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
47aaa820
DWT
14623 ;;
14624 *)
9d54db95
JF
14625 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14626 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
47aaa820
DWT
14627 ;;
14628 esac
14629 ;;
9c60689e 14630
47aaa820 14631 sysv5* | sco3.2v5* | sco5v6*)
9d54db95 14632 # Note: We CANNOT use -z defs as we might desire, because we do not
47aaa820
DWT
14633 # link with -lc, and that would cause any symbols used from libc to
14634 # always be unresolved, which means just about no library would
14635 # ever link correctly. If we're not using GNU ld we use -z text
14636 # though, which does catch some bad symbols but isn't as heavy-handed
14637 # as -z defs.
9d54db95
JF
14638 no_undefined_flag_CXX='$wl-z,text'
14639 allow_undefined_flag_CXX='$wl-z,nodefs'
47aaa820
DWT
14640 archive_cmds_need_lc_CXX=no
14641 hardcode_shlibpath_var_CXX=no
9d54db95 14642 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
47aaa820
DWT
14643 hardcode_libdir_separator_CXX=':'
14644 link_all_deplibs_CXX=yes
9d54db95 14645 export_dynamic_flag_spec_CXX='$wl-Bexport'
47aaa820 14646 runpath_var='LD_RUN_PATH'
9c60689e 14647
47aaa820
DWT
14648 case $cc_basename in
14649 CC*)
9d54db95
JF
14650 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14651 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
ee134472 14652 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
9d54db95 14653 '"$old_archive_cmds_CXX"
ee134472 14654 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
9d54db95 14655 '"$reload_cmds_CXX"
47aaa820
DWT
14656 ;;
14657 *)
9d54db95
JF
14658 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14659 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
47aaa820
DWT
14660 ;;
14661 esac
14662 ;;
9c60689e 14663
47aaa820 14664 tandem*)
9c60689e 14665 case $cc_basename in
47aaa820
DWT
14666 NCC*)
14667 # NonStop-UX NCC 3.20
14668 # FIXME: insert proper C++ library support
14669 ld_shlibs_CXX=no
14670 ;;
9c60689e 14671 *)
47aaa820
DWT
14672 # FIXME: insert proper C++ library support
14673 ld_shlibs_CXX=no
14674 ;;
9c60689e
DWT
14675 esac
14676 ;;
14677
47aaa820
DWT
14678 vxworks*)
14679 # FIXME: insert proper C++ library support
14680 ld_shlibs_CXX=no
14681 ;;
9c60689e 14682
47aaa820
DWT
14683 *)
14684 # FIXME: insert proper C++ library support
14685 ld_shlibs_CXX=no
9c60689e 14686 ;;
47aaa820 14687 esac
9c60689e 14688
47aaa820
DWT
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14690$as_echo "$ld_shlibs_CXX" >&6; }
9d54db95 14691 test no = "$ld_shlibs_CXX" && can_build_shared=no
9c60689e 14692
9d54db95
JF
14693 GCC_CXX=$GXX
14694 LD_CXX=$LD
9c60689e 14695
47aaa820
DWT
14696 ## CAVEAT EMPTOR:
14697 ## There is no encapsulation within the following macros, do not change
14698 ## the running order or otherwise move them around unless you know exactly
14699 ## what you are doing...
14700 # Dependencies to place before and after the object being linked:
14701predep_objects_CXX=
14702postdep_objects_CXX=
14703predeps_CXX=
14704postdeps_CXX=
14705compiler_lib_search_path_CXX=
9c60689e 14706
47aaa820
DWT
14707cat > conftest.$ac_ext <<_LT_EOF
14708class Foo
14709{
14710public:
14711 Foo (void) { a = 0; }
14712private:
14713 int a;
14714};
14715_LT_EOF
9c60689e 14716
ee134472
JF
14717
14718_lt_libdeps_save_CFLAGS=$CFLAGS
14719case "$CC $CFLAGS " in #(
14720*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14721*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
53ba6704 14722*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
ee134472
JF
14723esac
14724
47aaa820
DWT
14725if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14726 (eval $ac_compile) 2>&5
14727 ac_status=$?
14728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14729 test $ac_status = 0; }; then
14730 # Parse the compiler output and extract the necessary
14731 # objects, libraries and library flags.
9c60689e 14732
47aaa820
DWT
14733 # Sentinel used to keep track of whether or not we are before
14734 # the conftest object file.
14735 pre_test_object_deps_done=no
9c60689e 14736
47aaa820 14737 for p in `eval "$output_verbose_link_cmd"`; do
9d54db95 14738 case $prev$p in
9c60689e 14739
47aaa820
DWT
14740 -L* | -R* | -l*)
14741 # Some compilers place space between "-{L,R}" and the path.
14742 # Remove the space.
9d54db95
JF
14743 if test x-L = "$p" ||
14744 test x-R = "$p"; then
47aaa820
DWT
14745 prev=$p
14746 continue
47aaa820 14747 fi
9c60689e 14748
ee134472
JF
14749 # Expand the sysroot to ease extracting the directories later.
14750 if test -z "$prev"; then
14751 case $p in
14752 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14753 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14754 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14755 esac
14756 fi
14757 case $p in
14758 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14759 esac
9d54db95
JF
14760 if test no = "$pre_test_object_deps_done"; then
14761 case $prev in
ee134472 14762 -L | -R)
47aaa820
DWT
14763 # Internal compiler library paths should come after those
14764 # provided the user. The postdeps already come after the
14765 # user supplied libs so there is no need to process them.
14766 if test -z "$compiler_lib_search_path_CXX"; then
9d54db95 14767 compiler_lib_search_path_CXX=$prev$p
47aaa820 14768 else
9d54db95 14769 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
47aaa820
DWT
14770 fi
14771 ;;
14772 # The "-l" case would never come before the object being
14773 # linked, so don't bother handling this case.
14774 esac
14775 else
14776 if test -z "$postdeps_CXX"; then
9d54db95 14777 postdeps_CXX=$prev$p
47aaa820 14778 else
9d54db95 14779 postdeps_CXX="${postdeps_CXX} $prev$p"
47aaa820
DWT
14780 fi
14781 fi
ee134472 14782 prev=
47aaa820 14783 ;;
9c60689e 14784
ee134472 14785 *.lto.$objext) ;; # Ignore GCC LTO objects
47aaa820
DWT
14786 *.$objext)
14787 # This assumes that the test object file only shows up
14788 # once in the compiler output.
14789 if test "$p" = "conftest.$objext"; then
14790 pre_test_object_deps_done=yes
14791 continue
14792 fi
9c60689e 14793
9d54db95 14794 if test no = "$pre_test_object_deps_done"; then
47aaa820 14795 if test -z "$predep_objects_CXX"; then
9d54db95 14796 predep_objects_CXX=$p
47aaa820
DWT
14797 else
14798 predep_objects_CXX="$predep_objects_CXX $p"
14799 fi
14800 else
14801 if test -z "$postdep_objects_CXX"; then
9d54db95 14802 postdep_objects_CXX=$p
47aaa820
DWT
14803 else
14804 postdep_objects_CXX="$postdep_objects_CXX $p"
14805 fi
14806 fi
14807 ;;
9c60689e 14808
47aaa820 14809 *) ;; # Ignore the rest.
9c60689e 14810
47aaa820
DWT
14811 esac
14812 done
9c60689e 14813
47aaa820
DWT
14814 # Clean up.
14815 rm -f a.out a.exe
14816else
14817 echo "libtool.m4: error: problem compiling CXX test program"
14818fi
9c60689e 14819
47aaa820 14820$RM -f confest.$objext
ee134472 14821CFLAGS=$_lt_libdeps_save_CFLAGS
9c60689e 14822
47aaa820
DWT
14823# PORTME: override above test on systems where it is broken
14824case $host_os in
14825interix[3-9]*)
14826 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14827 # hack all around it, let's just trust "g++" to DTRT.
14828 predep_objects_CXX=
14829 postdep_objects_CXX=
14830 postdeps_CXX=
14831 ;;
47aaa820 14832esac
9c60689e 14833
9c60689e 14834
47aaa820
DWT
14835case " $postdeps_CXX " in
14836*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14837esac
14838 compiler_lib_search_dirs_CXX=
14839if test -n "${compiler_lib_search_path_CXX}"; then
9d54db95 14840 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
47aaa820 14841fi
9c60689e 14842
9c60689e 14843
9c60689e 14844
9c60689e 14845
9c60689e 14846
9c60689e 14847
9c60689e 14848
9c60689e 14849
9c60689e 14850
9c60689e 14851
9c60689e 14852
9c60689e 14853
9c60689e 14854
9c60689e 14855
9c60689e 14856
9c60689e 14857
9c60689e 14858
9c60689e 14859
9c60689e 14860
9c60689e 14861
9c60689e 14862
9c60689e 14863
9c60689e 14864
9c60689e 14865
9c60689e 14866
9c60689e 14867
9c60689e 14868
9c60689e 14869
9c60689e 14870
9c60689e 14871
9c60689e 14872
47aaa820
DWT
14873 lt_prog_compiler_wl_CXX=
14874lt_prog_compiler_pic_CXX=
14875lt_prog_compiler_static_CXX=
9c60689e 14876
9c60689e
DWT
14877
14878 # C++ specific cases for pic, static, wl, etc.
9d54db95 14879 if test yes = "$GXX"; then
9c60689e
DWT
14880 lt_prog_compiler_wl_CXX='-Wl,'
14881 lt_prog_compiler_static_CXX='-static'
14882
14883 case $host_os in
14884 aix*)
14885 # All AIX code is PIC.
9d54db95 14886 if test ia64 = "$host_cpu"; then
9c60689e
DWT
14887 # AIX 5 now supports IA64 processor
14888 lt_prog_compiler_static_CXX='-Bstatic'
14889 fi
9d54db95 14890 lt_prog_compiler_pic_CXX='-fPIC'
9c60689e
DWT
14891 ;;
14892
14893 amigaos*)
14894 case $host_cpu in
14895 powerpc)
14896 # see comment about AmigaOS4 .so support
14897 lt_prog_compiler_pic_CXX='-fPIC'
14898 ;;
14899 m68k)
14900 # FIXME: we need at least 68020 code to build shared libraries, but
9d54db95
JF
14901 # adding the '-m68020' flag to GCC prevents building anything better,
14902 # like '-m68040'.
9c60689e
DWT
14903 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14904 ;;
14905 esac
14906 ;;
14907
14908 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14909 # PIC is the default for these OSes.
14910 ;;
14911 mingw* | cygwin* | os2* | pw32* | cegcc*)
14912 # This hack is so that the source file can tell whether it is being
14913 # built for inclusion in a dll (and should export symbols for example).
14914 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14915 # (--disable-auto-import) libraries
14916 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
9d54db95
JF
14917 case $host_os in
14918 os2*)
14919 lt_prog_compiler_static_CXX='$wl-static'
14920 ;;
14921 esac
9c60689e
DWT
14922 ;;
14923 darwin* | rhapsody*)
14924 # PIC is the default on this platform
14925 # Common symbols not allowed in MH_DYLIB files
14926 lt_prog_compiler_pic_CXX='-fno-common'
14927 ;;
14928 *djgpp*)
14929 # DJGPP does not support shared libraries at all
14930 lt_prog_compiler_pic_CXX=
14931 ;;
ee134472
JF
14932 haiku*)
14933 # PIC is the default for Haiku.
14934 # The "-static" flag exists, but is broken.
14935 lt_prog_compiler_static_CXX=
14936 ;;
9c60689e
DWT
14937 interix[3-9]*)
14938 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14939 # Instead, we relocate shared libraries at runtime.
14940 ;;
14941 sysv4*MP*)
14942 if test -d /usr/nec; then
14943 lt_prog_compiler_pic_CXX=-Kconform_pic
14944 fi
14945 ;;
14946 hpux*)
14947 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14948 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14949 # sets the default TLS model and affects inlining.
14950 case $host_cpu in
14951 hppa*64*)
14952 ;;
14953 *)
14954 lt_prog_compiler_pic_CXX='-fPIC'
14955 ;;
14956 esac
14957 ;;
14958 *qnx* | *nto*)
14959 # QNX uses GNU C++, but need to define -shared option too, otherwise
14960 # it will coredump.
14961 lt_prog_compiler_pic_CXX='-fPIC -shared'
14962 ;;
14963 *)
14964 lt_prog_compiler_pic_CXX='-fPIC'
14965 ;;
14966 esac
14967 else
14968 case $host_os in
14969 aix[4-9]*)
14970 # All AIX code is PIC.
9d54db95 14971 if test ia64 = "$host_cpu"; then
9c60689e
DWT
14972 # AIX 5 now supports IA64 processor
14973 lt_prog_compiler_static_CXX='-Bstatic'
14974 else
14975 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14976 fi
14977 ;;
14978 chorus*)
14979 case $cc_basename in
14980 cxch68*)
14981 # Green Hills C++ Compiler
14982 # _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"
14983 ;;
14984 esac
14985 ;;
ee134472
JF
14986 mingw* | cygwin* | os2* | pw32* | cegcc*)
14987 # This hack is so that the source file can tell whether it is being
14988 # built for inclusion in a dll (and should export symbols for example).
14989 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14990 ;;
9c60689e
DWT
14991 dgux*)
14992 case $cc_basename in
14993 ec++*)
14994 lt_prog_compiler_pic_CXX='-KPIC'
14995 ;;
14996 ghcx*)
14997 # Green Hills C++ Compiler
14998 lt_prog_compiler_pic_CXX='-pic'
14999 ;;
15000 *)
15001 ;;
15002 esac
15003 ;;
15004 freebsd* | dragonfly*)
15005 # FreeBSD uses GNU C++
15006 ;;
15007 hpux9* | hpux10* | hpux11*)
15008 case $cc_basename in
15009 CC*)
15010 lt_prog_compiler_wl_CXX='-Wl,'
9d54db95
JF
15011 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15012 if test ia64 != "$host_cpu"; then
9c60689e
DWT
15013 lt_prog_compiler_pic_CXX='+Z'
15014 fi
15015 ;;
15016 aCC*)
15017 lt_prog_compiler_wl_CXX='-Wl,'
9d54db95 15018 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
9c60689e
DWT
15019 case $host_cpu in
15020 hppa*64*|ia64*)
15021 # +Z the default
15022 ;;
15023 *)
15024 lt_prog_compiler_pic_CXX='+Z'
15025 ;;
15026 esac
15027 ;;
15028 *)
15029 ;;
15030 esac
15031 ;;
15032 interix*)
15033 # This is c89, which is MS Visual C++ (no shared libs)
15034 # Anyone wants to do a port?
15035 ;;
15036 irix5* | irix6* | nonstopux*)
15037 case $cc_basename in
15038 CC*)
15039 lt_prog_compiler_wl_CXX='-Wl,'
15040 lt_prog_compiler_static_CXX='-non_shared'
15041 # CC pic flag -KPIC is the default.
15042 ;;
15043 *)
15044 ;;
15045 esac
15046 ;;
9d54db95 15047 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9c60689e
DWT
15048 case $cc_basename in
15049 KCC*)
15050 # KAI C++ Compiler
15051 lt_prog_compiler_wl_CXX='--backend -Wl,'
15052 lt_prog_compiler_pic_CXX='-fPIC'
15053 ;;
15054 ecpc* )
9d54db95 15055 # old Intel C++ for x86_64, which still supported -KPIC.
9c60689e
DWT
15056 lt_prog_compiler_wl_CXX='-Wl,'
15057 lt_prog_compiler_pic_CXX='-KPIC'
15058 lt_prog_compiler_static_CXX='-static'
15059 ;;
15060 icpc* )
15061 # Intel C++, used to be incompatible with GCC.
15062 # ICC 10 doesn't accept -KPIC any more.
15063 lt_prog_compiler_wl_CXX='-Wl,'
15064 lt_prog_compiler_pic_CXX='-fPIC'
15065 lt_prog_compiler_static_CXX='-static'
15066 ;;
15067 pgCC* | pgcpp*)
15068 # Portland Group C++ compiler
15069 lt_prog_compiler_wl_CXX='-Wl,'
15070 lt_prog_compiler_pic_CXX='-fpic'
15071 lt_prog_compiler_static_CXX='-Bstatic'
15072 ;;
15073 cxx*)
15074 # Compaq C++
15075 # Make sure the PIC flag is empty. It appears that all Alpha
15076 # Linux and Compaq Tru64 Unix objects are PIC.
15077 lt_prog_compiler_pic_CXX=
15078 lt_prog_compiler_static_CXX='-non_shared'
15079 ;;
ee134472
JF
15080 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15081 # IBM XL 8.0, 9.0 on PPC and BlueGene
9c60689e
DWT
15082 lt_prog_compiler_wl_CXX='-Wl,'
15083 lt_prog_compiler_pic_CXX='-qpic'
15084 lt_prog_compiler_static_CXX='-qstaticlink'
15085 ;;
15086 *)
15087 case `$CC -V 2>&1 | sed 5q` in
15088 *Sun\ C*)
15089 # Sun C++ 5.9
15090 lt_prog_compiler_pic_CXX='-KPIC'
15091 lt_prog_compiler_static_CXX='-Bstatic'
15092 lt_prog_compiler_wl_CXX='-Qoption ld '
15093 ;;
15094 esac
15095 ;;
15096 esac
15097 ;;
15098 lynxos*)
15099 ;;
15100 m88k*)
15101 ;;
15102 mvs*)
15103 case $cc_basename in
15104 cxx*)
15105 lt_prog_compiler_pic_CXX='-W c,exportall'
15106 ;;
15107 *)
15108 ;;
15109 esac
15110 ;;
53ba6704 15111 netbsd*)
9c60689e
DWT
15112 ;;
15113 *qnx* | *nto*)
15114 # QNX uses GNU C++, but need to define -shared option too, otherwise
15115 # it will coredump.
15116 lt_prog_compiler_pic_CXX='-fPIC -shared'
15117 ;;
15118 osf3* | osf4* | osf5*)
15119 case $cc_basename in
15120 KCC*)
15121 lt_prog_compiler_wl_CXX='--backend -Wl,'
15122 ;;
15123 RCC*)
15124 # Rational C++ 2.4.1
15125 lt_prog_compiler_pic_CXX='-pic'
15126 ;;
15127 cxx*)
15128 # Digital/Compaq C++
15129 lt_prog_compiler_wl_CXX='-Wl,'
15130 # Make sure the PIC flag is empty. It appears that all Alpha
15131 # Linux and Compaq Tru64 Unix objects are PIC.
15132 lt_prog_compiler_pic_CXX=
15133 lt_prog_compiler_static_CXX='-non_shared'
15134 ;;
15135 *)
15136 ;;
15137 esac
15138 ;;
15139 psos*)
15140 ;;
15141 solaris*)
15142 case $cc_basename in
ee134472 15143 CC* | sunCC*)
9c60689e
DWT
15144 # Sun C++ 4.2, 5.x and Centerline C++
15145 lt_prog_compiler_pic_CXX='-KPIC'
15146 lt_prog_compiler_static_CXX='-Bstatic'
15147 lt_prog_compiler_wl_CXX='-Qoption ld '
15148 ;;
15149 gcx*)
15150 # Green Hills C++ Compiler
15151 lt_prog_compiler_pic_CXX='-PIC'
15152 ;;
15153 *)
15154 ;;
15155 esac
15156 ;;
15157 sunos4*)
15158 case $cc_basename in
15159 CC*)
15160 # Sun C++ 4.x
15161 lt_prog_compiler_pic_CXX='-pic'
15162 lt_prog_compiler_static_CXX='-Bstatic'
15163 ;;
15164 lcc*)
15165 # Lucid
15166 lt_prog_compiler_pic_CXX='-pic'
15167 ;;
15168 *)
15169 ;;
15170 esac
15171 ;;
15172 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15173 case $cc_basename in
15174 CC*)
15175 lt_prog_compiler_wl_CXX='-Wl,'
15176 lt_prog_compiler_pic_CXX='-KPIC'
15177 lt_prog_compiler_static_CXX='-Bstatic'
15178 ;;
15179 esac
15180 ;;
15181 tandem*)
15182 case $cc_basename in
15183 NCC*)
15184 # NonStop-UX NCC 3.20
15185 lt_prog_compiler_pic_CXX='-KPIC'
15186 ;;
15187 *)
15188 ;;
15189 esac
15190 ;;
15191 vxworks*)
15192 ;;
15193 *)
15194 lt_prog_compiler_can_build_shared_CXX=no
15195 ;;
15196 esac
15197 fi
15198
15199case $host_os in
9d54db95 15200 # For platforms that do not support PIC, -DPIC is meaningless:
9c60689e
DWT
15201 *djgpp*)
15202 lt_prog_compiler_pic_CXX=
15203 ;;
15204 *)
15205 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15206 ;;
15207esac
9c60689e 15208
ee134472
JF
15209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15210$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15211if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15212 $as_echo_n "(cached) " >&6
15213else
15214 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15215fi
15216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15217$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15218lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
9c60689e
DWT
15219
15220#
15221# Check to make sure the PIC flag actually works.
15222#
15223if test -n "$lt_prog_compiler_pic_CXX"; then
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15225$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
ee134472 15226if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
9c60689e
DWT
15227 $as_echo_n "(cached) " >&6
15228else
15229 lt_cv_prog_compiler_pic_works_CXX=no
15230 ac_outfile=conftest.$ac_objext
15231 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9d54db95 15232 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
9c60689e
DWT
15233 # Insert the option either (1) after the last *FLAGS variable, or
15234 # (2) before a word containing "conftest.", or (3) at the end.
15235 # Note that $ac_compile itself does not contain backslashes and begins
15236 # with a dollar sign (not a hyphen), so the echo should work correctly.
15237 # The option is referenced via a variable to avoid confusing sed.
15238 lt_compile=`echo "$ac_compile" | $SED \
15239 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15240 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15241 -e 's:$: $lt_compiler_flag:'`
ee134472 15242 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9c60689e
DWT
15243 (eval "$lt_compile" 2>conftest.err)
15244 ac_status=$?
15245 cat conftest.err >&5
ee134472 15246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9c60689e
DWT
15247 if (exit $ac_status) && test -s "$ac_outfile"; then
15248 # The compiler can only warn and ignore the option if not recognized
15249 # So say no if there are warnings other than the usual output.
ee134472 15250 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9c60689e
DWT
15251 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15252 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15253 lt_cv_prog_compiler_pic_works_CXX=yes
15254 fi
15255 fi
00a96142 15256 $RM -r conftest*
9c60689e
DWT
15257
15258fi
15259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15260$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15261
9d54db95 15262if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
9c60689e
DWT
15263 case $lt_prog_compiler_pic_CXX in
15264 "" | " "*) ;;
15265 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15266 esac
15267else
15268 lt_prog_compiler_pic_CXX=
15269 lt_prog_compiler_can_build_shared_CXX=no
15270fi
15271
15272fi
15273
15274
15275
ee134472
JF
15276
15277
47aaa820
DWT
15278#
15279# Check to make sure the static flag actually works.
15280#
15281wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15283$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
ee134472 15284if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
47aaa820
DWT
15285 $as_echo_n "(cached) " >&6
15286else
15287 lt_cv_prog_compiler_static_works_CXX=no
9d54db95 15288 save_LDFLAGS=$LDFLAGS
47aaa820
DWT
15289 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15290 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15291 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15292 # The linker can only warn and ignore the option if not recognized
15293 # So say no if there are warnings
15294 if test -s conftest.err; then
15295 # Append any errors to the config.log.
15296 cat conftest.err 1>&5
ee134472 15297 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
47aaa820
DWT
15298 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15299 if diff conftest.exp conftest.er2 >/dev/null; then
15300 lt_cv_prog_compiler_static_works_CXX=yes
15301 fi
15302 else
15303 lt_cv_prog_compiler_static_works_CXX=yes
15304 fi
15305 fi
15306 $RM -r conftest*
9d54db95 15307 LDFLAGS=$save_LDFLAGS
47aaa820
DWT
15308
15309fi
15310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15311$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15312
9d54db95 15313if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
47aaa820
DWT
15314 :
15315else
15316 lt_prog_compiler_static_CXX=
15317fi
15318
15319
15320
15321
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15323$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ee134472 15324if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
47aaa820
DWT
15325 $as_echo_n "(cached) " >&6
15326else
15327 lt_cv_prog_compiler_c_o_CXX=no
15328 $RM -r conftest 2>/dev/null
15329 mkdir conftest
15330 cd conftest
15331 mkdir out
15332 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15333
15334 lt_compiler_flag="-o out/conftest2.$ac_objext"
15335 # Insert the option either (1) after the last *FLAGS variable, or
15336 # (2) before a word containing "conftest.", or (3) at the end.
15337 # Note that $ac_compile itself does not contain backslashes and begins
15338 # with a dollar sign (not a hyphen), so the echo should work correctly.
15339 lt_compile=`echo "$ac_compile" | $SED \
15340 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15341 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15342 -e 's:$: $lt_compiler_flag:'`
ee134472 15343 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
47aaa820
DWT
15344 (eval "$lt_compile" 2>out/conftest.err)
15345 ac_status=$?
15346 cat out/conftest.err >&5
ee134472 15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47aaa820
DWT
15348 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15349 then
15350 # The compiler can only warn and ignore the option if not recognized
15351 # So say no if there are warnings
ee134472 15352 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
47aaa820
DWT
15353 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15354 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15355 lt_cv_prog_compiler_c_o_CXX=yes
15356 fi
15357 fi
15358 chmod u+w . 2>&5
00a96142 15359 $RM -r conftest*
47aaa820
DWT
15360 # SGI C++ compiler will create directory out/ii_files/ for
15361 # template instantiation
15362 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15363 $RM out/* && rmdir out
15364 cd ..
15365 $RM -r conftest
00a96142 15366 $RM -r conftest*
47aaa820
DWT
15367
15368fi
15369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15370$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15371
15372
15373
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15375$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ee134472 15376if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
47aaa820
DWT
15377 $as_echo_n "(cached) " >&6
15378else
15379 lt_cv_prog_compiler_c_o_CXX=no
15380 $RM -r conftest 2>/dev/null
15381 mkdir conftest
15382 cd conftest
15383 mkdir out
15384 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15385
15386 lt_compiler_flag="-o out/conftest2.$ac_objext"
15387 # Insert the option either (1) after the last *FLAGS variable, or
15388 # (2) before a word containing "conftest.", or (3) at the end.
15389 # Note that $ac_compile itself does not contain backslashes and begins
15390 # with a dollar sign (not a hyphen), so the echo should work correctly.
15391 lt_compile=`echo "$ac_compile" | $SED \
15392 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15393 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15394 -e 's:$: $lt_compiler_flag:'`
ee134472 15395 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
47aaa820
DWT
15396 (eval "$lt_compile" 2>out/conftest.err)
15397 ac_status=$?
15398 cat out/conftest.err >&5
ee134472 15399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47aaa820
DWT
15400 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15401 then
15402 # The compiler can only warn and ignore the option if not recognized
15403 # So say no if there are warnings
ee134472 15404 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
47aaa820
DWT
15405 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15406 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15407 lt_cv_prog_compiler_c_o_CXX=yes
15408 fi
15409 fi
15410 chmod u+w . 2>&5
00a96142 15411 $RM -r conftest*
47aaa820
DWT
15412 # SGI C++ compiler will create directory out/ii_files/ for
15413 # template instantiation
15414 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15415 $RM out/* && rmdir out
15416 cd ..
15417 $RM -r conftest
00a96142 15418 $RM -r conftest*
47aaa820
DWT
15419
15420fi
15421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15422$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15423
15424
15425
15426
9d54db95
JF
15427hard_links=nottested
15428if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
47aaa820
DWT
15429 # do not overwrite the value of need_locks provided by the user
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15431$as_echo_n "checking if we can lock with hard links... " >&6; }
15432 hard_links=yes
00a96142 15433 $RM -r conftest*
47aaa820
DWT
15434 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15435 touch conftest.a
15436 ln conftest.a conftest.b 2>&5 || hard_links=no
15437 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15439$as_echo "$hard_links" >&6; }
9d54db95
JF
15440 if test no = "$hard_links"; then
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15442$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
47aaa820
DWT
15443 need_locks=warn
15444 fi
15445else
15446 need_locks=no
15447fi
15448
15449
15450
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15452$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15453
15454 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
ee134472 15455 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
47aaa820
DWT
15456 case $host_os in
15457 aix[4-9]*)
15458 # If we're using GNU nm, then we don't want the "-C" option.
9d54db95
JF
15459 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15460 # Without the "-l" option, or with the "-B" option, AIX nm treats
15461 # weak defined symbols like other global defined symbols, whereas
15462 # GNU nm marks them as "W".
15463 # While the 'weak' keyword is ignored in the Export File, we need
15464 # it in the Import File for the 'aix-soname' feature, so we have
15465 # to replace the "-B" option with "-P" for AIX nm.
47aaa820 15466 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9d54db95 15467 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 15468 else
9d54db95 15469 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
15470 fi
15471 ;;
15472 pw32*)
9d54db95 15473 export_symbols_cmds_CXX=$ltdll_cmds
ee134472 15474 ;;
47aaa820 15475 cygwin* | mingw* | cegcc*)
ee134472 15476 case $cc_basename in
53ba6704
JF
15477 cl*)
15478 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15479 ;;
ee134472
JF
15480 *)
15481 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'
15482 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15483 ;;
15484 esac
15485 ;;
47aaa820
DWT
15486 *)
15487 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
ee134472 15488 ;;
47aaa820 15489 esac
47aaa820
DWT
15490
15491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15492$as_echo "$ld_shlibs_CXX" >&6; }
9d54db95 15493test no = "$ld_shlibs_CXX" && can_build_shared=no
47aaa820
DWT
15494
15495with_gnu_ld_CXX=$with_gnu_ld
15496
15497
15498
15499
15500
15501
15502#
15503# Do we need to explicitly link libc?
15504#
15505case "x$archive_cmds_need_lc_CXX" in
15506x|xyes)
15507 # Assume -lc should be added
15508 archive_cmds_need_lc_CXX=yes
15509
9d54db95 15510 if test yes,yes = "$GCC,$enable_shared"; then
47aaa820
DWT
15511 case $archive_cmds_CXX in
15512 *'~'*)
15513 # FIXME: we may have to deal with multi-command sequences.
15514 ;;
15515 '$CC '*)
15516 # Test whether the compiler implicitly links with -lc since on some
15517 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15518 # to ld, don't add -lc before -lgcc.
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15520$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
ee134472
JF
15521if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15522 $as_echo_n "(cached) " >&6
15523else
00a96142 15524 $RM -r conftest*
ee134472 15525 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
47aaa820 15526
ee134472 15527 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
47aaa820
DWT
15528 (eval $ac_compile) 2>&5
15529 ac_status=$?
15530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15531 test $ac_status = 0; } 2>conftest.err; then
ee134472
JF
15532 soname=conftest
15533 lib=conftest
15534 libobjs=conftest.$ac_objext
15535 deplibs=
15536 wl=$lt_prog_compiler_wl_CXX
15537 pic_flag=$lt_prog_compiler_pic_CXX
15538 compiler_flags=-v
15539 linker_flags=-v
15540 verstring=
15541 output_objdir=.
15542 libname=conftest
15543 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15544 allow_undefined_flag_CXX=
15545 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
47aaa820
DWT
15546 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15547 ac_status=$?
15548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15549 test $ac_status = 0; }
ee134472
JF
15550 then
15551 lt_cv_archive_cmds_need_lc_CXX=no
15552 else
15553 lt_cv_archive_cmds_need_lc_CXX=yes
15554 fi
15555 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15556 else
15557 cat conftest.err 1>&5
15558 fi
00a96142 15559 $RM -r conftest*
ee134472
JF
15560
15561fi
15562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15563$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15564 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
47aaa820
DWT
15565 ;;
15566 esac
15567 fi
15568 ;;
15569esac
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
47aaa820
DWT
15629
15630
15631
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15633$as_echo_n "checking dynamic linker characteristics... " >&6; }
15634
15635library_names_spec=
15636libname_spec='lib$name'
15637soname_spec=
9d54db95 15638shrext_cmds=.so
47aaa820
DWT
15639postinstall_cmds=
15640postuninstall_cmds=
15641finish_cmds=
15642finish_eval=
15643shlibpath_var=
15644shlibpath_overrides_runpath=unknown
15645version_type=none
15646dynamic_linker="$host_os ld.so"
15647sys_lib_dlsearch_path_spec="/lib /usr/lib"
15648need_lib_prefix=unknown
15649hardcode_into_libs=no
15650
15651# when you set need_version to no, make sure it does not cause -set_version
15652# flags to be left without arguments
15653need_version=unknown
15654
9d54db95
JF
15655
15656
47aaa820
DWT
15657case $host_os in
15658aix3*)
53ba6704 15659 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95 15660 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
47aaa820
DWT
15661 shlibpath_var=LIBPATH
15662
15663 # AIX 3 has no versioning support, so we append a major version to the name.
9d54db95 15664 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
15665 ;;
15666
15667aix[4-9]*)
53ba6704 15668 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15669 need_lib_prefix=no
15670 need_version=no
15671 hardcode_into_libs=yes
9d54db95 15672 if test ia64 = "$host_cpu"; then
47aaa820 15673 # AIX 5 supports IA64
9d54db95 15674 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
47aaa820
DWT
15675 shlibpath_var=LD_LIBRARY_PATH
15676 else
15677 # With GCC up to 2.95.x, collect2 would create an import file
15678 # for dependence libraries. The import file would start with
9d54db95
JF
15679 # the line '#! .'. This would cause the generated library to
15680 # depend on '.', always an invalid library. This was fixed in
47aaa820
DWT
15681 # development snapshots of GCC prior to 3.0.
15682 case $host_os in
15683 aix4 | aix4.[01] | aix4.[01].*)
15684 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15685 echo ' yes '
9d54db95 15686 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
47aaa820
DWT
15687 :
15688 else
15689 can_build_shared=no
15690 fi
15691 ;;
15692 esac
9d54db95
JF
15693 # Using Import Files as archive members, it is possible to support
15694 # filename-based versioning of shared library archives on AIX. While
15695 # this would work for both with and without runtime linking, it will
15696 # prevent static linking of such archives. So we do filename-based
15697 # shared library versioning with .so extension only, which is used
15698 # when both runtime linking and shared linking is enabled.
15699 # Unfortunately, runtime linking may impact performance, so we do
15700 # not want this to be the default eventually. Also, we use the
15701 # versioned .so libs for executables only if there is the -brtl
15702 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15703 # To allow for filename-based versioning support, we need to create
15704 # libNAME.so.V as an archive file, containing:
15705 # *) an Import File, referring to the versioned filename of the
15706 # archive as well as the shared archive member, telling the
15707 # bitwidth (32 or 64) of that shared object, and providing the
15708 # list of exported symbols of that shared object, eventually
15709 # decorated with the 'weak' keyword
15710 # *) the shared object with the F_LOADONLY flag set, to really avoid
15711 # it being seen by the linker.
15712 # At run time we better use the real file rather than another symlink,
15713 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15714
15715 case $with_aix_soname,$aix_use_runtimelinking in
15716 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
47aaa820
DWT
15717 # soname into executable. Probably we can add versioning support to
15718 # collect2, so additional links can be useful in future.
9d54db95
JF
15719 aix,yes) # traditional libtool
15720 dynamic_linker='AIX unversionable lib.so'
47aaa820
DWT
15721 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15722 # instead of lib<name>.a to let people know that these are not
15723 # typical AIX shared libraries.
9d54db95
JF
15724 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15725 ;;
15726 aix,no) # traditional AIX only
15727 dynamic_linker='AIX lib.a(lib.so.V)'
47aaa820
DWT
15728 # We preserve .a as extension for shared libraries through AIX4.2
15729 # and later when we are not doing run time linking.
9d54db95
JF
15730 library_names_spec='$libname$release.a $libname.a'
15731 soname_spec='$libname$release$shared_ext$major'
15732 ;;
15733 svr4,*) # full svr4 only
15734 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15735 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15736 # We do not specify a path in Import Files, so LIBPATH fires.
15737 shlibpath_overrides_runpath=yes
15738 ;;
15739 *,yes) # both, prefer svr4
15740 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15741 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15742 # unpreferred sharedlib libNAME.a needs extra handling
15743 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"'
15744 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"'
15745 # We do not specify a path in Import Files, so LIBPATH fires.
15746 shlibpath_overrides_runpath=yes
15747 ;;
15748 *,no) # both, prefer aix
15749 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15750 library_names_spec='$libname$release.a $libname.a'
15751 soname_spec='$libname$release$shared_ext$major'
15752 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15753 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)'
15754 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"'
15755 ;;
15756 esac
47aaa820
DWT
15757 shlibpath_var=LIBPATH
15758 fi
15759 ;;
15760
15761amigaos*)
15762 case $host_cpu in
15763 powerpc)
15764 # Since July 2007 AmigaOS4 officially supports .so libraries.
15765 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9d54db95 15766 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
47aaa820
DWT
15767 ;;
15768 m68k)
15769 library_names_spec='$libname.ixlibrary $libname.a'
15770 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9d54db95 15771 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
15772 ;;
15773 esac
15774 ;;
15775
15776beos*)
9d54db95 15777 library_names_spec='$libname$shared_ext'
47aaa820
DWT
15778 dynamic_linker="$host_os ld.so"
15779 shlibpath_var=LIBRARY_PATH
15780 ;;
15781
15782bsdi[45]*)
53ba6704 15783 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820 15784 need_version=no
9d54db95
JF
15785 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15786 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
15787 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15788 shlibpath_var=LD_LIBRARY_PATH
15789 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15790 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15791 # the default ld.so.conf also contains /usr/contrib/lib and
15792 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15793 # libtool to hard-code these into programs
15794 ;;
9c60689e 15795
47aaa820
DWT
15796cygwin* | mingw* | pw32* | cegcc*)
15797 version_type=windows
9d54db95 15798 shrext_cmds=.dll
47aaa820
DWT
15799 need_version=no
15800 need_lib_prefix=no
9c60689e 15801
ee134472
JF
15802 case $GCC,$cc_basename in
15803 yes,*)
15804 # gcc
47aaa820
DWT
15805 library_names_spec='$libname.dll.a'
15806 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9d54db95
JF
15807 postinstall_cmds='base_file=`basename \$file`~
15808 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
47aaa820
DWT
15809 dldir=$destdir/`dirname \$dlpath`~
15810 test -d \$dldir || mkdir -p \$dldir~
15811 $install_prog $dir/$dlname \$dldir/$dlname~
15812 chmod a+x \$dldir/$dlname~
15813 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15814 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15815 fi'
15816 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15817 dlpath=$dir/\$dldll~
15818 $RM \$dlpath'
15819 shlibpath_overrides_runpath=yes
9c60689e 15820
47aaa820
DWT
15821 case $host_os in
15822 cygwin*)
15823 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9d54db95 15824 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
ee134472 15825
47aaa820
DWT
15826 ;;
15827 mingw* | cegcc*)
15828 # MinGW DLLs use traditional 'lib' prefix
9d54db95 15829 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
47aaa820
DWT
15830 ;;
15831 pw32*)
15832 # pw32 DLLs use 'pw' prefix rather than 'lib'
9d54db95 15833 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
47aaa820
DWT
15834 ;;
15835 esac
ee134472
JF
15836 dynamic_linker='Win32 ld.exe'
15837 ;;
15838
15839 *,cl*)
15840 # Native MSVC
15841 libname_spec='$name'
9d54db95
JF
15842 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15843 library_names_spec='$libname.dll.lib'
ee134472
JF
15844
15845 case $build_os in
15846 mingw*)
15847 sys_lib_search_path_spec=
15848 lt_save_ifs=$IFS
15849 IFS=';'
15850 for lt_path in $LIB
15851 do
15852 IFS=$lt_save_ifs
15853 # Let DOS variable expansion print the short 8.3 style file name.
15854 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15855 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15856 done
15857 IFS=$lt_save_ifs
15858 # Convert to MSYS style.
15859 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15860 ;;
15861 cygwin*)
15862 # Convert to unix form, then to dos form, then back to unix form
15863 # but this time dos style (no spaces!) so that the unix form looks
15864 # like /cygdrive/c/PROGRA~1:/cygdr...
15865 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15866 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15867 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15868 ;;
15869 *)
9d54db95 15870 sys_lib_search_path_spec=$LIB
ee134472
JF
15871 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15872 # It is most probably a Windows format PATH.
15873 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15874 else
15875 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15876 fi
15877 # FIXME: find the short name or the path components, as spaces are
15878 # common. (e.g. "Program Files" -> "PROGRA~1")
15879 ;;
15880 esac
15881
15882 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9d54db95
JF
15883 postinstall_cmds='base_file=`basename \$file`~
15884 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
ee134472
JF
15885 dldir=$destdir/`dirname \$dlpath`~
15886 test -d \$dldir || mkdir -p \$dldir~
15887 $install_prog $dir/$dlname \$dldir/$dlname'
15888 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15889 dlpath=$dir/\$dldll~
15890 $RM \$dlpath'
15891 shlibpath_overrides_runpath=yes
15892 dynamic_linker='Win32 link.exe'
47aaa820 15893 ;;
9c60689e 15894
47aaa820 15895 *)
ee134472 15896 # Assume MSVC wrapper
9d54db95 15897 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
ee134472 15898 dynamic_linker='Win32 ld.exe'
47aaa820
DWT
15899 ;;
15900 esac
47aaa820
DWT
15901 # FIXME: first we should search . and the directory the executable is in
15902 shlibpath_var=PATH
15903 ;;
9c60689e 15904
47aaa820
DWT
15905darwin* | rhapsody*)
15906 dynamic_linker="$host_os dyld"
15907 version_type=darwin
15908 need_lib_prefix=no
15909 need_version=no
9d54db95
JF
15910 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15911 soname_spec='$libname$release$major$shared_ext'
47aaa820
DWT
15912 shlibpath_overrides_runpath=yes
15913 shlibpath_var=DYLD_LIBRARY_PATH
15914 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9c60689e 15915
47aaa820
DWT
15916 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15917 ;;
9c60689e 15918
47aaa820 15919dgux*)
53ba6704 15920 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15921 need_lib_prefix=no
15922 need_version=no
9d54db95
JF
15923 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15924 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
15925 shlibpath_var=LD_LIBRARY_PATH
15926 ;;
9c60689e 15927
47aaa820
DWT
15928freebsd* | dragonfly*)
15929 # DragonFly does not have aout. When/if they implement a new
15930 # versioning mechanism, adjust this.
15931 if test -x /usr/bin/objformat; then
15932 objformat=`/usr/bin/objformat`
15933 else
15934 case $host_os in
53ba6704 15935 freebsd[23].*) objformat=aout ;;
47aaa820
DWT
15936 *) objformat=elf ;;
15937 esac
15938 fi
15939 version_type=freebsd-$objformat
15940 case $version_type in
15941 freebsd-elf*)
9d54db95
JF
15942 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15943 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
15944 need_version=no
15945 need_lib_prefix=no
15946 ;;
15947 freebsd-*)
9d54db95 15948 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
47aaa820
DWT
15949 need_version=yes
15950 ;;
15951 esac
15952 shlibpath_var=LD_LIBRARY_PATH
15953 case $host_os in
53ba6704 15954 freebsd2.*)
47aaa820
DWT
15955 shlibpath_overrides_runpath=yes
15956 ;;
15957 freebsd3.[01]* | freebsdelf3.[01]*)
15958 shlibpath_overrides_runpath=yes
15959 hardcode_into_libs=yes
15960 ;;
15961 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15962 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15963 shlibpath_overrides_runpath=no
15964 hardcode_into_libs=yes
15965 ;;
15966 *) # from 4.6 on, and DragonFly
15967 shlibpath_overrides_runpath=yes
15968 hardcode_into_libs=yes
15969 ;;
15970 esac
15971 ;;
9c60689e 15972
ee134472 15973haiku*)
53ba6704 15974 version_type=linux # correct to gnu/linux during the next big refactor
ee134472
JF
15975 need_lib_prefix=no
15976 need_version=no
15977 dynamic_linker="$host_os runtime_loader"
9d54db95
JF
15978 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15979 soname_spec='$libname$release$shared_ext$major'
ee134472 15980 shlibpath_var=LIBRARY_PATH
9d54db95 15981 shlibpath_overrides_runpath=no
ee134472 15982 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
47aaa820
DWT
15983 hardcode_into_libs=yes
15984 ;;
9c60689e 15985
47aaa820
DWT
15986hpux9* | hpux10* | hpux11*)
15987 # Give a soname corresponding to the major version so that dld.sl refuses to
15988 # link against other versions.
15989 version_type=sunos
15990 need_lib_prefix=no
15991 need_version=no
15992 case $host_cpu in
15993 ia64*)
15994 shrext_cmds='.so'
15995 hardcode_into_libs=yes
15996 dynamic_linker="$host_os dld.so"
15997 shlibpath_var=LD_LIBRARY_PATH
15998 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9d54db95
JF
15999 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16000 soname_spec='$libname$release$shared_ext$major'
16001 if test 32 = "$HPUX_IA64_MODE"; then
47aaa820 16002 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9d54db95 16003 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
47aaa820
DWT
16004 else
16005 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9d54db95 16006 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
47aaa820 16007 fi
47aaa820
DWT
16008 ;;
16009 hppa*64*)
16010 shrext_cmds='.sl'
16011 hardcode_into_libs=yes
16012 dynamic_linker="$host_os dld.sl"
16013 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16014 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9d54db95
JF
16015 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16016 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
16017 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16018 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16019 ;;
16020 *)
16021 shrext_cmds='.sl'
16022 dynamic_linker="$host_os dld.sl"
16023 shlibpath_var=SHLIB_PATH
16024 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9d54db95
JF
16025 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16026 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
16027 ;;
16028 esac
ee134472 16029 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
47aaa820 16030 postinstall_cmds='chmod 555 $lib'
ee134472
JF
16031 # or fails outright, so override atomically:
16032 install_override_mode=555
47aaa820 16033 ;;
9c60689e 16034
47aaa820 16035interix[3-9]*)
53ba6704 16036 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
16037 need_lib_prefix=no
16038 need_version=no
9d54db95
JF
16039 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16040 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
16041 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16042 shlibpath_var=LD_LIBRARY_PATH
16043 shlibpath_overrides_runpath=no
16044 hardcode_into_libs=yes
16045 ;;
9c60689e 16046
47aaa820
DWT
16047irix5* | irix6* | nonstopux*)
16048 case $host_os in
16049 nonstopux*) version_type=nonstopux ;;
16050 *)
9d54db95 16051 if test yes = "$lt_cv_prog_gnu_ld"; then
53ba6704 16052 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
16053 else
16054 version_type=irix
16055 fi ;;
16056 esac
16057 need_lib_prefix=no
16058 need_version=no
9d54db95
JF
16059 soname_spec='$libname$release$shared_ext$major'
16060 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
47aaa820
DWT
16061 case $host_os in
16062 irix5* | nonstopux*)
16063 libsuff= shlibsuff=
16064 ;;
16065 *)
16066 case $LD in # libtool.m4 will add one of these switches to LD
16067 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16068 libsuff= shlibsuff= libmagic=32-bit;;
16069 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16070 libsuff=32 shlibsuff=N32 libmagic=N32;;
16071 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16072 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16073 *) libsuff= shlibsuff= libmagic=never-match;;
16074 esac
16075 ;;
16076 esac
16077 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16078 shlibpath_overrides_runpath=no
9d54db95
JF
16079 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16080 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
47aaa820
DWT
16081 hardcode_into_libs=yes
16082 ;;
9c60689e 16083
47aaa820
DWT
16084# No shared lib support for Linux oldld, aout, or coff.
16085linux*oldld* | linux*aout* | linux*coff*)
16086 dynamic_linker=no
16087 ;;
9c60689e 16088
9d54db95
JF
16089linux*android*)
16090 version_type=none # Android doesn't support versioned libraries.
16091 need_lib_prefix=no
16092 need_version=no
16093 library_names_spec='$libname$release$shared_ext'
16094 soname_spec='$libname$release$shared_ext'
16095 finish_cmds=
16096 shlibpath_var=LD_LIBRARY_PATH
16097 shlibpath_overrides_runpath=yes
16098
16099 # This implies no fast_install, which is unacceptable.
16100 # Some rework will be needed to allow for fast_install
16101 # before this can be enabled.
16102 hardcode_into_libs=yes
16103
16104 dynamic_linker='Android linker'
16105 # Don't embed -rpath directories since the linker doesn't support them.
16106 hardcode_libdir_flag_spec_CXX='-L$libdir'
16107 ;;
16108
53ba6704 16109# This must be glibc/ELF.
9d54db95 16110linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
53ba6704 16111 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
16112 need_lib_prefix=no
16113 need_version=no
9d54db95
JF
16114 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16115 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
16116 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16117 shlibpath_var=LD_LIBRARY_PATH
16118 shlibpath_overrides_runpath=no
ee134472 16119
47aaa820 16120 # Some binutils ld are patched to set DT_RUNPATH
ee134472
JF
16121 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16122 $as_echo_n "(cached) " >&6
16123else
16124 lt_cv_shlibpath_overrides_runpath=no
16125 save_LDFLAGS=$LDFLAGS
16126 save_libdir=$libdir
16127 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16128 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47aaa820 16130/* end confdefs.h. */
9c60689e 16131
47aaa820
DWT
16132int
16133main ()
16134{
9c60689e 16135
47aaa820
DWT
16136 ;
16137 return 0;
16138}
16139_ACEOF
16140if ac_fn_cxx_try_link "$LINENO"; then :
16141 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
ee134472 16142 lt_cv_shlibpath_overrides_runpath=yes
9c60689e 16143fi
47aaa820
DWT
16144fi
16145rm -f core conftest.err conftest.$ac_objext \
16146 conftest$ac_exeext conftest.$ac_ext
ee134472
JF
16147 LDFLAGS=$save_LDFLAGS
16148 libdir=$save_libdir
16149
16150fi
16151
16152 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9c60689e 16153
47aaa820
DWT
16154 # This implies no fast_install, which is unacceptable.
16155 # Some rework will be needed to allow for fast_install
16156 # before this can be enabled.
16157 hardcode_into_libs=yes
9c60689e 16158
9d54db95
JF
16159 # Ideally, we could use ldconfig to report *all* directores which are
16160 # searched for libraries, however this is still not possible. Aside from not
16161 # being certain /sbin/ldconfig is available, command
16162 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16163 # even though it is searched at run-time. Try to do the best guess by
16164 # appending ld.so.conf contents (and includes) to the search path.
47aaa820 16165 if test -f /etc/ld.so.conf; then
ee134472 16166 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
16167 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16168 fi
9c60689e 16169
47aaa820
DWT
16170 # We used to test for /lib/ld.so.1 and disable shared libraries on
16171 # powerpc, because MkLinux only supported shared libraries with the
16172 # GNU dynamic linker. Since this was broken with cross compilers,
16173 # most powerpc-linux boxes support dynamic linking these days and
16174 # people can always --disable-shared, the test was removed, and we
16175 # assume the GNU/Linux dynamic linker is in use.
16176 dynamic_linker='GNU/Linux ld.so'
9c60689e 16177 ;;
47aaa820 16178
47aaa820
DWT
16179netbsd*)
16180 version_type=sunos
16181 need_lib_prefix=no
16182 need_version=no
16183 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9d54db95 16184 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
47aaa820
DWT
16185 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16186 dynamic_linker='NetBSD (a.out) ld.so'
16187 else
9d54db95
JF
16188 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16189 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
16190 dynamic_linker='NetBSD ld.elf_so'
16191 fi
16192 shlibpath_var=LD_LIBRARY_PATH
16193 shlibpath_overrides_runpath=yes
16194 hardcode_into_libs=yes
9c60689e 16195 ;;
9c60689e 16196
47aaa820 16197newsos6)
53ba6704 16198 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95 16199 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
47aaa820
DWT
16200 shlibpath_var=LD_LIBRARY_PATH
16201 shlibpath_overrides_runpath=yes
16202 ;;
9c60689e 16203
47aaa820
DWT
16204*nto* | *qnx*)
16205 version_type=qnx
16206 need_lib_prefix=no
16207 need_version=no
9d54db95
JF
16208 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16209 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
16210 shlibpath_var=LD_LIBRARY_PATH
16211 shlibpath_overrides_runpath=no
16212 hardcode_into_libs=yes
16213 dynamic_linker='ldqnx.so'
16214 ;;
9c60689e 16215
9d54db95 16216openbsd* | bitrig*)
47aaa820 16217 version_type=sunos
9d54db95 16218 sys_lib_dlsearch_path_spec=/usr/lib
47aaa820 16219 need_lib_prefix=no
9d54db95
JF
16220 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16221 need_version=no
47aaa820 16222 else
9d54db95 16223 need_version=yes
47aaa820 16224 fi
9d54db95
JF
16225 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16226 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16227 shlibpath_var=LD_LIBRARY_PATH
16228 shlibpath_overrides_runpath=yes
47aaa820 16229 ;;
9c60689e 16230
47aaa820
DWT
16231os2*)
16232 libname_spec='$name'
9d54db95
JF
16233 version_type=windows
16234 shrext_cmds=.dll
16235 need_version=no
47aaa820 16236 need_lib_prefix=no
9d54db95
JF
16237 # OS/2 can only load a DLL with a base name of 8 characters or less.
16238 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16239 v=$($ECHO $release$versuffix | tr -d .-);
16240 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16241 $ECHO $n$v`$shared_ext'
16242 library_names_spec='${libname}_dll.$libext'
47aaa820 16243 dynamic_linker='OS/2 ld.exe'
9d54db95
JF
16244 shlibpath_var=BEGINLIBPATH
16245 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16246 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16247 postinstall_cmds='base_file=`basename \$file`~
16248 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16249 dldir=$destdir/`dirname \$dlpath`~
16250 test -d \$dldir || mkdir -p \$dldir~
16251 $install_prog $dir/$dlname \$dldir/$dlname~
16252 chmod a+x \$dldir/$dlname~
16253 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16254 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16255 fi'
16256 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16257 dlpath=$dir/\$dldll~
16258 $RM \$dlpath'
47aaa820 16259 ;;
9c60689e 16260
47aaa820
DWT
16261osf3* | osf4* | osf5*)
16262 version_type=osf
16263 need_lib_prefix=no
16264 need_version=no
9d54db95
JF
16265 soname_spec='$libname$release$shared_ext$major'
16266 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
47aaa820
DWT
16267 shlibpath_var=LD_LIBRARY_PATH
16268 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9d54db95 16269 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
47aaa820 16270 ;;
9c60689e 16271
47aaa820
DWT
16272rdos*)
16273 dynamic_linker=no
16274 ;;
9c60689e 16275
47aaa820 16276solaris*)
53ba6704 16277 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
16278 need_lib_prefix=no
16279 need_version=no
9d54db95
JF
16280 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16281 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
16282 shlibpath_var=LD_LIBRARY_PATH
16283 shlibpath_overrides_runpath=yes
16284 hardcode_into_libs=yes
16285 # ldd complains unless libraries are executable
16286 postinstall_cmds='chmod +x $lib'
16287 ;;
9c60689e 16288
47aaa820
DWT
16289sunos4*)
16290 version_type=sunos
9d54db95 16291 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
47aaa820
DWT
16292 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16293 shlibpath_var=LD_LIBRARY_PATH
16294 shlibpath_overrides_runpath=yes
9d54db95 16295 if test yes = "$with_gnu_ld"; then
47aaa820
DWT
16296 need_lib_prefix=no
16297 fi
16298 need_version=yes
16299 ;;
9c60689e 16300
47aaa820 16301sysv4 | sysv4.3*)
53ba6704 16302 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95
JF
16303 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16304 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
16305 shlibpath_var=LD_LIBRARY_PATH
16306 case $host_vendor in
16307 sni)
16308 shlibpath_overrides_runpath=no
16309 need_lib_prefix=no
16310 runpath_var=LD_RUN_PATH
9c60689e 16311 ;;
47aaa820
DWT
16312 siemens)
16313 need_lib_prefix=no
9c60689e 16314 ;;
47aaa820
DWT
16315 motorola)
16316 need_lib_prefix=no
16317 need_version=no
16318 shlibpath_overrides_runpath=no
16319 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16320 ;;
16321 esac
9c60689e 16322 ;;
9c60689e 16323
47aaa820 16324sysv4*MP*)
9d54db95 16325 if test -d /usr/nec; then
53ba6704 16326 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95
JF
16327 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16328 soname_spec='$libname$shared_ext.$major'
47aaa820
DWT
16329 shlibpath_var=LD_LIBRARY_PATH
16330 fi
16331 ;;
9c60689e 16332
47aaa820 16333sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9d54db95 16334 version_type=sco
47aaa820
DWT
16335 need_lib_prefix=no
16336 need_version=no
9d54db95
JF
16337 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16338 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
16339 shlibpath_var=LD_LIBRARY_PATH
16340 shlibpath_overrides_runpath=yes
16341 hardcode_into_libs=yes
9d54db95 16342 if test yes = "$with_gnu_ld"; then
47aaa820
DWT
16343 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16344 else
16345 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16346 case $host_os in
16347 sco3.2v5*)
16348 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16349 ;;
16350 esac
16351 fi
16352 sys_lib_dlsearch_path_spec='/usr/lib'
16353 ;;
9c60689e 16354
47aaa820
DWT
16355tpf*)
16356 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
53ba6704 16357 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
16358 need_lib_prefix=no
16359 need_version=no
9d54db95 16360 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
47aaa820
DWT
16361 shlibpath_var=LD_LIBRARY_PATH
16362 shlibpath_overrides_runpath=no
16363 hardcode_into_libs=yes
16364 ;;
9c60689e 16365
47aaa820 16366uts4*)
53ba6704 16367 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95
JF
16368 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16369 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
16370 shlibpath_var=LD_LIBRARY_PATH
16371 ;;
9c60689e 16372
47aaa820
DWT
16373*)
16374 dynamic_linker=no
e9c9a47c
DWT
16375 ;;
16376esac
16377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16378$as_echo "$dynamic_linker" >&6; }
9d54db95 16379test no = "$dynamic_linker" && can_build_shared=no
e9c9a47c
DWT
16380
16381variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9d54db95 16382if test yes = "$GCC"; then
e9c9a47c 16383 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
47aaa820 16384fi
9c60689e 16385
9d54db95
JF
16386if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16387 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
47aaa820 16388fi
9d54db95
JF
16389
16390if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16391 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
47aaa820 16392fi
9c60689e 16393
9d54db95
JF
16394# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16395configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16396
16397# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16398func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16399
16400# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16401configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16402
16403
16404
9c60689e 16405
9c60689e 16406
9c60689e 16407
47aaa820 16408
47aaa820 16409
47aaa820 16410
9c60689e 16411
9c60689e 16412
47aaa820 16413
47aaa820 16414
47aaa820 16415
47aaa820 16416
47aaa820 16417
47aaa820 16418
47aaa820 16419
47aaa820 16420
9c60689e 16421
9c60689e 16422
9c60689e 16423
9c60689e 16424
9c60689e 16425
e9c9a47c
DWT
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
ee134472
JF
16437
16438
e9c9a47c
DWT
16439
16440
16441
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16443$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16444hardcode_action_CXX=
16445if test -n "$hardcode_libdir_flag_spec_CXX" ||
16446 test -n "$runpath_var_CXX" ||
9d54db95 16447 test yes = "$hardcode_automatic_CXX"; then
e9c9a47c
DWT
16448
16449 # We can hardcode non-existent directories.
9d54db95 16450 if test no != "$hardcode_direct_CXX" &&
e9c9a47c
DWT
16451 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16452 # have to relink, otherwise we might link with an installed library
16453 # when we should be linking with a yet-to-be-installed one
9d54db95
JF
16454 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16455 test no != "$hardcode_minus_L_CXX"; then
e9c9a47c
DWT
16456 # Linking always hardcodes the temporary library directory.
16457 hardcode_action_CXX=relink
16458 else
16459 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16460 hardcode_action_CXX=immediate
16461 fi
16462else
16463 # We cannot hardcode anything, or else we can only hardcode existing
16464 # directories.
16465 hardcode_action_CXX=unsupported
16466fi
16467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16468$as_echo "$hardcode_action_CXX" >&6; }
16469
9d54db95
JF
16470if test relink = "$hardcode_action_CXX" ||
16471 test yes = "$inherit_rpath_CXX"; then
e9c9a47c
DWT
16472 # Fast installation is not supported
16473 enable_fast_install=no
9d54db95
JF
16474elif test yes = "$shlibpath_overrides_runpath" ||
16475 test no = "$enable_shared"; then
e9c9a47c
DWT
16476 # Fast installation is not necessary
16477 enable_fast_install=needless
47aaa820 16478fi
9c60689e 16479
47aaa820 16480
47aaa820 16481
e9c9a47c
DWT
16482
16483
16484
16485
a243b558
JF
16486 fi # test -n "$compiler"
16487
16488 CC=$lt_save_CC
16489 CFLAGS=$lt_save_CFLAGS
16490 LDCXX=$LD
16491 LD=$lt_save_LD
16492 GCC=$lt_save_GCC
16493 with_gnu_ld=$lt_save_with_gnu_ld
16494 lt_cv_path_LDCXX=$lt_cv_path_LD
16495 lt_cv_path_LD=$lt_save_path_LD
16496 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16497 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
9d54db95 16498fi # test yes != "$_lt_caught_CXX_error"
a243b558
JF
16499
16500ac_ext=c
16501ac_cpp='$CPP $CPPFLAGS'
16502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16504ac_compiler_gnu=$ac_cv_c_compiler_gnu
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520 ac_config_commands="$ac_config_commands libtool"
16521
16522
16523
16524
16525# Only expand once:
16526
16527
16528
16529ac_ext=cpp
16530ac_cpp='$CXXCPP $CPPFLAGS'
16531ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16532ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16533ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16534
16535
1771224f
JF
16536 ax_cxx_compile_cxx11_required=true
16537 ac_ext=cpp
16538ac_cpp='$CXXCPP $CPPFLAGS'
16539ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16540ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16541ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16542 ac_success=no
16543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
16544$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
16545if ${ax_cv_cxx_compile_cxx11+:} false; then :
16546 $as_echo_n "(cached) " >&6
16547else
16548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16549/* end confdefs.h. */
16550
16551 template <typename T>
16552 struct check
16553 {
16554 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16555 };
16556
16557 struct Base {
16558 virtual void f() {}
16559 };
16560 struct Child : public Base {
16561 virtual void f() override {}
16562 };
16563
16564 typedef check<check<bool>> right_angle_brackets;
16565
16566 int a;
16567 decltype(a) b;
16568
16569 typedef check<int> check_type;
16570 check_type c;
16571 check_type&& cr = static_cast<check_type&&>(c);
16572
16573 auto d = a;
16574 auto l = [](){};
16575
16576_ACEOF
16577if ac_fn_cxx_try_compile "$LINENO"; then :
16578 ax_cv_cxx_compile_cxx11=yes
16579else
16580 ax_cv_cxx_compile_cxx11=no
16581fi
16582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16583fi
16584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
16585$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
16586 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
16587 ac_success=yes
16588 fi
16589
16590 if test x$ac_success = xno; then
16591 for switch in -std=gnu++11 -std=gnu++0x; do
16592 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
16594$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
16595if eval \${$cachevar+:} false; then :
16596 $as_echo_n "(cached) " >&6
16597else
16598 ac_save_CXXFLAGS="$CXXFLAGS"
16599 CXXFLAGS="$CXXFLAGS $switch"
16600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16601/* end confdefs.h. */
16602
16603 template <typename T>
16604 struct check
16605 {
16606 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16607 };
16608
16609 struct Base {
16610 virtual void f() {}
16611 };
16612 struct Child : public Base {
16613 virtual void f() override {}
16614 };
16615
16616 typedef check<check<bool>> right_angle_brackets;
16617
16618 int a;
16619 decltype(a) b;
16620
16621 typedef check<int> check_type;
16622 check_type c;
16623 check_type&& cr = static_cast<check_type&&>(c);
16624
16625 auto d = a;
16626 auto l = [](){};
16627
16628_ACEOF
16629if ac_fn_cxx_try_compile "$LINENO"; then :
16630 eval $cachevar=yes
16631else
16632 eval $cachevar=no
16633fi
16634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16635 CXXFLAGS="$ac_save_CXXFLAGS"
16636fi
16637eval ac_res=\$$cachevar
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16639$as_echo "$ac_res" >&6; }
16640 if eval test x\$$cachevar = xyes; then
16641 CXXFLAGS="$CXXFLAGS $switch"
16642 ac_success=yes
16643 break
16644 fi
16645 done
16646 fi
16647
16648
16649 ac_ext=cpp
16650ac_cpp='$CXXCPP $CPPFLAGS'
16651ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16652ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16653ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16654
16655 if test x$ax_cxx_compile_cxx11_required = xtrue; then
16656 if test x$ac_success = xno; then
16657 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
16658 fi
16659 else
16660 if test x$ac_success = xno; then
16661 HAVE_CXX11=0
16662 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
16663$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
16664 else
16665 HAVE_CXX11=1
16666
16667$as_echo "#define HAVE_CXX11 1" >>confdefs.h
16668
16669 fi
16670
16671
16672 fi
16673
16674OBJCXXFLAGS="${OBJCXXFLAGS} ${CXXFLAGS##*' '}"
16675
a243b558
JF
16676
16677
16678
16679
16680
16681
83c6fec8 16682
a243b558
JF
16683if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16684 if test -n "$ac_tool_prefix"; then
16685 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16686set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16688$as_echo_n "checking for $ac_word... " >&6; }
16689if ${ac_cv_path_PKG_CONFIG+:} false; then :
16690 $as_echo_n "(cached) " >&6
16691else
16692 case $PKG_CONFIG in
16693 [\\/]* | ?:[\\/]*)
16694 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16695 ;;
16696 *)
16697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16698for as_dir in $PATH
16699do
16700 IFS=$as_save_IFS
16701 test -z "$as_dir" && as_dir=.
16702 for ac_exec_ext in '' $ac_executable_extensions; do
16703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16704 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16706 break 2
16707 fi
16708done
16709 done
16710IFS=$as_save_IFS
16711
16712 ;;
16713esac
16714fi
16715PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16716if test -n "$PKG_CONFIG"; then
16717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16718$as_echo "$PKG_CONFIG" >&6; }
16719else
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16721$as_echo "no" >&6; }
16722fi
16723
16724
16725fi
16726if test -z "$ac_cv_path_PKG_CONFIG"; then
16727 ac_pt_PKG_CONFIG=$PKG_CONFIG
16728 # Extract the first word of "pkg-config", so it can be a program name with args.
16729set dummy pkg-config; ac_word=$2
16730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16731$as_echo_n "checking for $ac_word... " >&6; }
16732if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16733 $as_echo_n "(cached) " >&6
16734else
16735 case $ac_pt_PKG_CONFIG in
16736 [\\/]* | ?:[\\/]*)
16737 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16738 ;;
16739 *)
16740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16741for as_dir in $PATH
16742do
16743 IFS=$as_save_IFS
16744 test -z "$as_dir" && as_dir=.
16745 for ac_exec_ext in '' $ac_executable_extensions; do
16746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16747 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16749 break 2
16750 fi
16751done
16752 done
16753IFS=$as_save_IFS
16754
16755 ;;
16756esac
16757fi
16758ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16759if test -n "$ac_pt_PKG_CONFIG"; then
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16761$as_echo "$ac_pt_PKG_CONFIG" >&6; }
16762else
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16764$as_echo "no" >&6; }
16765fi
16766
16767 if test "x$ac_pt_PKG_CONFIG" = x; then
16768 PKG_CONFIG=""
16769 else
16770 case $cross_compiling:$ac_tool_warned in
16771yes:)
16772{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16773$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16774ac_tool_warned=yes ;;
16775esac
16776 PKG_CONFIG=$ac_pt_PKG_CONFIG
16777 fi
16778else
16779 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16780fi
16781
16782fi
16783if test -n "$PKG_CONFIG"; then
16784 _pkg_min_version=0.22
16785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16786$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16787 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16789$as_echo "yes" >&6; }
16790 else
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16792$as_echo "no" >&6; }
16793 PKG_CONFIG=""
16794 fi
16795fi
16796
a243b558
JF
16797# Extract the first word of "git", so it can be a program name with args.
16798set dummy git; ac_word=$2
16799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16800$as_echo_n "checking for $ac_word... " >&6; }
16801if ${ac_cv_path_GIT+:} false; then :
16802 $as_echo_n "(cached) " >&6
16803else
16804 case $GIT in
16805 [\\/]* | ?:[\\/]*)
16806 ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
16807 ;;
16808 *)
16809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16810for as_dir in $PATH
16811do
16812 IFS=$as_save_IFS
16813 test -z "$as_dir" && as_dir=.
16814 for ac_exec_ext in '' $ac_executable_extensions; do
16815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16816 ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
16817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16818 break 2
16819 fi
16820done
16821 done
16822IFS=$as_save_IFS
e9c9a47c 16823
a243b558
JF
16824 ;;
16825esac
16826fi
16827GIT=$ac_cv_path_GIT
16828if test -n "$GIT"; then
16829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
16830$as_echo "$GIT" >&6; }
16831else
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16833$as_echo "no" >&6; }
16834fi
e9c9a47c
DWT
16835
16836
a243b558
JF
16837# Extract the first word of "time", so it can be a program name with args.
16838set dummy time; ac_word=$2
632b71ea
DWT
16839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16840$as_echo_n "checking for $ac_word... " >&6; }
a243b558 16841if ${ac_cv_path_TIME+:} false; then :
632b71ea
DWT
16842 $as_echo_n "(cached) " >&6
16843else
a243b558
JF
16844 case $TIME in
16845 [\\/]* | ?:[\\/]*)
16846 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
16847 ;;
16848 *)
16849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
632b71ea
DWT
16850for as_dir in $PATH
16851do
16852 IFS=$as_save_IFS
16853 test -z "$as_dir" && as_dir=.
16854 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 16855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 16856 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
632b71ea
DWT
16857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16858 break 2
16859 fi
16860done
16861 done
16862IFS=$as_save_IFS
16863
a243b558
JF
16864 ;;
16865esac
632b71ea 16866fi
a243b558
JF
16867TIME=$ac_cv_path_TIME
16868if test -n "$TIME"; then
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
16870$as_echo "$TIME" >&6; }
632b71ea
DWT
16871else
16872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16873$as_echo "no" >&6; }
16874fi
16875
16876
a243b558
JF
16877
16878
16879
16880
16881
6ce9ac92
JF
16882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 3.0" >&5
16883$as_echo_n "checking for bison >= 3.0... " >&6; }
a243b558
JF
16884 if test -z "$BISON"; then
16885 ac_path_BISON_found=false
16886 # Loop through the user's path and test for each of PROGNAME-LIST
16887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16888for as_dir in $PATH
16889do
16890 IFS=$as_save_IFS
16891 test -z "$as_dir" && as_dir=.
16892 for ac_prog in bison; do
16893 for ac_exec_ext in '' $ac_executable_extensions; do
16894 ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext"
16895 as_fn_executable_p "$ac_path_BISON" || continue
16896version=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'`
16897 if ${version:+false} :; then :
16898
16899else
16900 as_awk_strverscmp='
16901 # Use only awk features that work with 7th edition Unix awk (1978).
16902 # My, what an old awk you have, Mr. Solaris!
16903 END {
16904 while (length(v1) && length(v2)) {
16905 # Set d1 to be the next thing to compare from v1, and likewise for d2.
16906 # Normally this is a single character, but if v1 and v2 contain digits,
16907 # compare them as integers and fractions as strverscmp does.
16908 if (v1 ~ /^0-9/ && v2 ~ /^0-9/) {
16909 # Split v1 and v2 into their leading digit string components d1 and d2,
16910 # and advance v1 and v2 past the leading digit strings.
16911 for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue
16912 for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue
16913 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
16914 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
16915 if (d1 ~ /^0/) {
16916 if (d2 ~ /^0/) {
16917 # Compare two fractions.
16918 while (d1 ~ /^0/ && d2 ~ /^0/) {
16919 d1 = substr(d1, 2); len1--
16920 d2 = substr(d2, 2); len2--
16921 }
16922 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
16923 # The two components differ in length, and the common prefix
16924 # contains only leading zeros. Consider the longer to be less.
16925 d1 = -len1
16926 d2 = -len2
16927 } else {
16928 # Otherwise, compare as strings.
16929 d1 = "x" d1
16930 d2 = "x" d2
16931 }
16932 } else {
16933 # A fraction is less than an integer.
16934 exit 1
16935 }
16936 } else {
16937 if (d2 ~ /^0/) {
16938 # An integer is greater than a fraction.
16939 exit 2
16940 } else {
16941 # Compare two integers.
16942 d1 += 0
16943 d2 += 0
16944 }
16945 }
16946 } else {
16947 # The normal case, without worrying about digits.
16948 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
16949 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
16950 }
16951 if (d1 < d2) exit 1
16952 if (d1 > d2) exit 2
16953 }
16954 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
16955 # which mishandles some comparisons of empty strings to integers.
16956 if (length(v2)) exit 1
16957 if (length(v1)) exit 2
16958 }
16959'
16960as_arg_v1=$version
6ce9ac92 16961as_arg_v2=3.0
a243b558
JF
16962awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16963case $? in #(
16964 1) :
16965 ;; #(
16966 0) :
16967 ac_cv_path_BISON=$ac_path_BISON ;; #(
16968 2) :
16969 ac_cv_path_BISON=$ac_path_BISON ;; #(
16970 *) :
16971 ;;
16972esac
16973fi
16974
16975 $ac_path_BISON_found && break 3
16976 done
16977 done
e9c9a47c 16978 done
a243b558
JF
16979IFS=$as_save_IFS
16980 if test -z "$ac_cv_path_BISON"; then
16981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16982$as_echo "no" >&6; }
16983 fi
16984else
16985 ac_cv_path_BISON=$BISON
632b71ea 16986fi
a243b558
JF
16987
16988
16989 if true; then :
16990
16991 BISON=$ac_cv_path_BISON
16992
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
16994$as_echo "$BISON" >&6; }
16995
47aaa820 16996else
a243b558
JF
16997 if true; then :
16998
6ce9ac92 16999 as_fn_error $? "You need bison 3.0 or greater" "$LINENO" 5
a243b558 17000
47aaa820 17001else
a243b558
JF
17002
17003 BISON=:
17004
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17006$as_echo "no" >&6; }
17007
17008fi
17009fi
17010
17011
17012
17013
17014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5
17015$as_echo_n "checking for flex >= 2.5.33... " >&6; }
17016 if test -z "$FLEX"; then
17017 ac_path_FLEX_found=false
17018 # Loop through the user's path and test for each of PROGNAME-LIST
17019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47aaa820
DWT
17020for as_dir in $PATH
17021do
17022 IFS=$as_save_IFS
17023 test -z "$as_dir" && as_dir=.
a243b558 17024 for ac_prog in flex; do
47aaa820 17025 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
17026 ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext"
17027 as_fn_executable_p "$ac_path_FLEX" || continue
17028version=`$ac_path_FLEX --version | $SED -e '1 s/^[^0-9.]* \([0-9.]*\).*$/\1/p;d'`
17029 if ${version:+false} :; then :
9c60689e 17030
47aaa820 17031else
a243b558
JF
17032 as_arg_v1=$version
17033as_arg_v2=2.5.33
17034awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
17035case $? in #(
17036 1) :
17037 ;; #(
17038 0) :
17039 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
17040 2) :
17041 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
17042 *) :
17043 ;;
17044esac
17045fi
17046
17047 $ac_path_FLEX_found && break 3
17048 done
17049 done
17050 done
17051IFS=$as_save_IFS
17052 if test -z "$ac_cv_path_FLEX"; then
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47aaa820 17054$as_echo "no" >&6; }
a243b558
JF
17055 fi
17056else
17057 ac_cv_path_FLEX=$FLEX
9c60689e
DWT
17058fi
17059
17060
a243b558 17061 if true; then :
e9c9a47c 17062
a243b558 17063 FLEX=$ac_cv_path_FLEX
e9c9a47c 17064
a243b558
JF
17065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
17066$as_echo "$FLEX" >&6; }
9c60689e 17067
632b71ea 17068else
a243b558 17069 if true; then :
e9c9a47c 17070
a243b558 17071 as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5
e9c9a47c 17072
e9c9a47c 17073else
a243b558
JF
17074
17075 FLEX=:
17076
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17078$as_echo "no" >&6; }
9c60689e 17079
632b71ea 17080fi
a243b558
JF
17081fi
17082
17083
17084
17085
17086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5
17087$as_echo_n "checking for gperf >= 3.0.3... " >&6; }
17088 if test -z "$GPERF"; then
17089 ac_path_GPERF_found=false
17090 # Loop through the user's path and test for each of PROGNAME-LIST
17091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17092for as_dir in $PATH
17093do
17094 IFS=$as_save_IFS
17095 test -z "$as_dir" && as_dir=.
17096 for ac_prog in gperf; do
17097 for ac_exec_ext in '' $ac_executable_extensions; do
17098 ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext"
17099 as_fn_executable_p "$ac_path_GPERF" || continue
17100version=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
17101 if ${version:+false} :; then :
17102
e9c9a47c 17103else
a243b558
JF
17104 as_arg_v1=$version
17105as_arg_v2=3.0.3
17106awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
17107case $? in #(
17108 1) :
17109 ;; #(
17110 0) :
17111 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
17112 2) :
17113 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
17114 *) :
17115 ;;
17116esac
632b71ea 17117fi
a243b558
JF
17118
17119 $ac_path_GPERF_found && break 3
17120 done
17121 done
17122 done
17123IFS=$as_save_IFS
17124 if test -z "$ac_cv_path_GPERF"; then
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17126$as_echo "no" >&6; }
17127 fi
47aaa820 17128else
a243b558
JF
17129 ac_cv_path_GPERF=$GPERF
17130fi
9c60689e
DWT
17131
17132
a243b558 17133 if true; then :
9c60689e 17134
a243b558 17135 GPERF=$ac_cv_path_GPERF
9c60689e 17136
a243b558
JF
17137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
17138$as_echo "$GPERF" >&6; }
9c60689e 17139
47aaa820 17140else
a243b558 17141 if true; then :
9c60689e 17142
a243b558
JF
17143 as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5
17144
17145else
17146
17147 GPERF=:
17148
17149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17150$as_echo "no" >&6; }
9c60689e 17151
47aaa820 17152fi
47aaa820 17153fi
a243b558
JF
17154
17155
17156
17157
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar gtar gnutar >= 1.19" >&5
17159$as_echo_n "checking for tar gtar gnutar >= 1.19... " >&6; }
17160 if test -z "$GNUTAR"; then
17161 ac_path_GNUTAR_found=false
17162 # Loop through the user's path and test for each of PROGNAME-LIST
17163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17164for as_dir in $PATH
17165do
17166 IFS=$as_save_IFS
17167 test -z "$as_dir" && as_dir=.
17168 for ac_prog in tar gtar gnutar; do
17169 for ac_exec_ext in '' $ac_executable_extensions; do
17170 ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext"
17171 as_fn_executable_p "$ac_path_GNUTAR" || continue
17172version=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'`
17173 if ${version:+false} :; then :
17174
17175else
17176 as_arg_v1=$version
17177as_arg_v2=1.19
17178awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
17179case $? in #(
17180 1) :
17181 ;; #(
17182 0) :
17183 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
17184 2) :
17185 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
17186 *) :
17187 ;;
17188esac
790e5246 17189fi
a243b558
JF
17190
17191 $ac_path_GNUTAR_found && break 3
17192 done
17193 done
17194 done
17195IFS=$as_save_IFS
17196 if test -z "$ac_cv_path_GNUTAR"; then
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17198$as_echo "no" >&6; }
632b71ea 17199 fi
632b71ea 17200else
a243b558 17201 ac_cv_path_GNUTAR=$GNUTAR
632b71ea 17202fi
66170b30 17203
66170b30 17204
a243b558 17205 if true; then :
66170b30 17206
a243b558 17207 GNUTAR=$ac_cv_path_GNUTAR
66170b30 17208
a243b558
JF
17209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
17210$as_echo "$GNUTAR" >&6; }
66170b30 17211
a243b558
JF
17212else
17213 if true; then :
66170b30 17214
a243b558 17215 as_fn_error $? "You need tar gtar gnutar 1.19 or greater" "$LINENO" 5
66170b30 17216
66170b30 17217else
66170b30 17218
a243b558 17219 GNUTAR=:
66170b30 17220
a243b558
JF
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17222$as_echo "no" >&6; }
66170b30 17223
a243b558
JF
17224fi
17225fi
66170b30
JF
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
e9c9a47c
DWT
17236ac_ext=c
17237ac_cpp='$CPP $CPPFLAGS'
17238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17240ac_compiler_gnu=$ac_cv_c_compiler_gnu
632b71ea 17241
66170b30
JF
17242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
17243$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
17244if ${ac_cv_cflags_warn_all+:} false; then :
17245 $as_echo_n "(cached) " >&6
17246else
17247 ac_cv_cflags_warn_all="no, unknown"
17248ac_save_CFLAGS="$CFLAGS"
17249for 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" #
17250do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
17251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17252/* end confdefs.h. */
17253
17254int
17255main ()
17256{
17257
17258 ;
17259 return 0;
17260}
17261_ACEOF
17262if ac_fn_c_try_compile "$LINENO"; then :
17263 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
17264fi
17265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17266done
17267CFLAGS="$ac_save_CFLAGS"
17268
17269fi
17270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
17271$as_echo "$ac_cv_cflags_warn_all" >&6; }
17272
83c6fec8 17273
66170b30
JF
17274case ".$ac_cv_cflags_warn_all" in
17275 .ok|.ok,*) ;;
17276 .|.no|.no,*) ;;
17277 *) if ${CFLAGS+:} false; then :
17278 case " $CFLAGS " in
17279 *" $ac_cv_cflags_warn_all "*)
17280 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
17281 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
17282 ac_status=$?
17283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17284 test $ac_status = 0; }
17285 ;;
17286 *)
17287 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
17288 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
17289 ac_status=$?
17290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17291 test $ac_status = 0; }
17292 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
17293 ;;
17294 esac
17295else
17296 CFLAGS="$ac_cv_cflags_warn_all"
17297fi
17298 ;;
17299esac
17300
b816329d
JF
17301ac_ext=cpp
17302ac_cpp='$CXXCPP $CPPFLAGS'
17303ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17304ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17305ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17306
9c60689e 17307
66170b30
JF
17308ac_ext=cpp
17309ac_cpp='$CXXCPP $CPPFLAGS'
17310ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17311ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17312ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1504c9b8 17313
66170b30
JF
17314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
17315$as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
17316if ${ac_cv_cxxflags_warn_all+:} false; then :
17317 $as_echo_n "(cached) " >&6
17318else
17319 ac_cv_cxxflags_warn_all="no, unknown"
17320ac_save_CXXFLAGS="$CXXFLAGS"
17321for 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" #
17322do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
17323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17324/* end confdefs.h. */
1504c9b8 17325
66170b30
JF
17326int
17327main ()
17328{
1504c9b8 17329
66170b30
JF
17330 ;
17331 return 0;
17332}
17333_ACEOF
17334if ac_fn_cxx_try_compile "$LINENO"; then :
17335 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
17336fi
17337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17338done
17339CXXFLAGS="$ac_save_CXXFLAGS"
1504c9b8 17340
66170b30
JF
17341fi
17342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
17343$as_echo "$ac_cv_cxxflags_warn_all" >&6; }
17344
83c6fec8 17345
66170b30
JF
17346case ".$ac_cv_cxxflags_warn_all" in
17347 .ok|.ok,*) ;;
17348 .|.no|.no,*) ;;
17349 *) if ${CXXFLAGS+:} false; then :
17350 case " $CXXFLAGS " in
17351 *" $ac_cv_cxxflags_warn_all "*)
17352 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
17353 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
17354 ac_status=$?
17355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17356 test $ac_status = 0; }
17357 ;;
17358 *)
17359 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
17360 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
17361 ac_status=$?
17362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17363 test $ac_status = 0; }
17364 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
17365 ;;
17366 esac
17367else
17368 CXXFLAGS="$ac_cv_cxxflags_warn_all"
17369fi
17370 ;;
17371esac
17372
17373ac_ext=cpp
17374ac_cpp='$CXXCPP $CPPFLAGS'
17375ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17376ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17377ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17378
17379
babf7fe8
JF
17380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
17381$as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
17382if ${ac_cv_cxxflags_warn_all+:} false; then :
17383 $as_echo_n "(cached) " >&6
17384else
17385 ac_cv_cxxflags_warn_all="no, unknown"
17386ac_save_CXXFLAGS="$CXXFLAGS"
17387for 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" #
17388do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
17389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17390/* end confdefs.h. */
17391
17392int
17393main ()
17394{
17395
17396 ;
17397 return 0;
17398}
17399_ACEOF
17400if ac_fn_cxx_try_compile "$LINENO"; then :
17401 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
17402fi
17403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17404done
17405CXXFLAGS="$ac_save_CXXFLAGS"
17406
17407fi
17408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
17409$as_echo "$ac_cv_cxxflags_warn_all" >&6; }
17410
83c6fec8 17411
babf7fe8
JF
17412case ".$ac_cv_cxxflags_warn_all" in
17413 .ok|.ok,*) ;;
17414 .|.no|.no,*) ;;
17415 *) if ${CXXFLAGS+:} false; then :
17416 case " $CXXFLAGS " in
17417 *" $ac_cv_cxxflags_warn_all "*)
17418 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
17419 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
17420 ac_status=$?
17421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17422 test $ac_status = 0; }
17423 ;;
17424 *)
17425 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
17426 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
17427 ac_status=$?
17428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17429 test $ac_status = 0; }
17430 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
17431 ;;
17432 esac
17433else
17434 CXXFLAGS="$ac_cv_cxxflags_warn_all"
17435fi
17436 ;;
17437esac
17438
66170b30
JF
17439
17440
66170b30 17441
66170b30 17442
c10a2228
JF
17443 ac_ext=c
17444ac_cpp='$CPP $CPPFLAGS'
17445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17447ac_compiler_gnu=$ac_cv_c_compiler_gnu
17448
babf7fe8
JF
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Werror" >&5
17450$as_echo_n "checking for cc -Werror... " >&6; }
c10a2228
JF
17451
17452 cy_save=$CFLAGS
17453
babf7fe8 17454 for element in -Werror; do
c10a2228
JF
17455 haveit=
17456 for x in $CFLAGS; do
17457
17458 acl_save_prefix="$prefix"
17459 prefix="$acl_final_prefix"
17460 acl_save_exec_prefix="$exec_prefix"
17461 exec_prefix="$acl_final_exec_prefix"
17462 eval x=\"$x\"
17463 exec_prefix="$acl_save_exec_prefix"
17464 prefix="$acl_save_prefix"
17465
17466 if test "X$x" = "X$element"; then
17467 haveit=yes
17468 break
17469 fi
17470 done
17471 if test -z "$haveit"; then
17472 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17473 fi
17474 done
17475
17476
17477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17478/* end confdefs.h. */
17479
17480_ACEOF
17481if ac_fn_c_try_compile "$LINENO"; then :
17482 cy_good=1
17483else
17484 cy_good=0
17485fi
17486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17487
17488 CFLAGS=$cy_save
17489 if test "x$cy_good" = x1; then :
17490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17491$as_echo "yes" >&6; }
17492
babf7fe8 17493 for element in -Werror; do
c10a2228
JF
17494 haveit=
17495 for x in $CFLAGS; do
17496
17497 acl_save_prefix="$prefix"
17498 prefix="$acl_final_prefix"
17499 acl_save_exec_prefix="$exec_prefix"
17500 exec_prefix="$acl_final_exec_prefix"
17501 eval x=\"$x\"
17502 exec_prefix="$acl_save_exec_prefix"
17503 prefix="$acl_save_prefix"
17504
17505 if test "X$x" = "X$element"; then
17506 haveit=yes
17507 break
17508 fi
17509 done
17510 if test -z "$haveit"; then
17511 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17512 fi
17513 done
17514
17515
17516else
17517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17518$as_echo "no" >&6; }
17519fi
17520
17521 ac_ext=cpp
17522ac_cpp='$CXXCPP $CPPFLAGS'
17523ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17524ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17525ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17526
17527
17528
17529 ac_ext=cpp
17530ac_cpp='$CXXCPP $CPPFLAGS'
17531ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17532ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17533ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17534
babf7fe8
JF
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Werror" >&5
17536$as_echo_n "checking for c++ -Werror... " >&6; }
c10a2228
JF
17537
17538 cy_save=$CXXFLAGS
17539
babf7fe8 17540 for element in -Werror; do
c10a2228
JF
17541 haveit=
17542 for x in $CXXFLAGS; do
17543
17544 acl_save_prefix="$prefix"
17545 prefix="$acl_final_prefix"
17546 acl_save_exec_prefix="$exec_prefix"
17547 exec_prefix="$acl_final_exec_prefix"
17548 eval x=\"$x\"
17549 exec_prefix="$acl_save_exec_prefix"
17550 prefix="$acl_save_prefix"
17551
17552 if test "X$x" = "X$element"; then
17553 haveit=yes
17554 break
17555 fi
17556 done
17557 if test -z "$haveit"; then
17558 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17559 fi
17560 done
17561
17562
17563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17564/* end confdefs.h. */
17565
17566_ACEOF
17567if ac_fn_cxx_try_compile "$LINENO"; then :
17568 cy_good=1
17569else
17570 cy_good=0
17571fi
17572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17573
17574 CXXFLAGS=$cy_save
17575 if test "x$cy_good" = x1; then :
17576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17577$as_echo "yes" >&6; }
17578
babf7fe8 17579 for element in -Werror; do
c10a2228
JF
17580 haveit=
17581 for x in $CXXFLAGS; do
17582
17583 acl_save_prefix="$prefix"
17584 prefix="$acl_final_prefix"
17585 acl_save_exec_prefix="$exec_prefix"
17586 exec_prefix="$acl_final_exec_prefix"
17587 eval x=\"$x\"
17588 exec_prefix="$acl_save_exec_prefix"
17589 prefix="$acl_save_prefix"
17590
17591 if test "X$x" = "X$element"; then
17592 haveit=yes
17593 break
17594 fi
17595 done
17596 if test -z "$haveit"; then
17597 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17598 fi
17599 done
17600
17601
17602else
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17604$as_echo "no" >&6; }
17605fi
17606
17607 ac_ext=cpp
17608ac_cpp='$CXXCPP $CPPFLAGS'
17609ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17610ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17611ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17612
17613
17614
17615 ac_ext=mm
17616ac_cpp='$OBJCXXCPP $CPPFLAGS'
17617ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17618ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17619ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17620
babf7fe8
JF
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Werror" >&5
17622$as_echo_n "checking for c++ -ObjC -Werror... " >&6; }
c10a2228
JF
17623
17624 cy_save=$OBJCXXFLAGS
17625
babf7fe8 17626 for element in -Werror; do
c10a2228
JF
17627 haveit=
17628 for x in $OBJCXXFLAGS; do
17629
17630 acl_save_prefix="$prefix"
17631 prefix="$acl_final_prefix"
17632 acl_save_exec_prefix="$exec_prefix"
17633 exec_prefix="$acl_final_exec_prefix"
17634 eval x=\"$x\"
17635 exec_prefix="$acl_save_exec_prefix"
17636 prefix="$acl_save_prefix"
17637
17638 if test "X$x" = "X$element"; then
17639 haveit=yes
17640 break
17641 fi
17642 done
17643 if test -z "$haveit"; then
17644 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17645 fi
17646 done
17647
17648
17649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17650/* end confdefs.h. */
17651
17652_ACEOF
17653if ac_fn_objcxx_try_compile "$LINENO"; then :
17654 cy_good=1
17655else
17656 cy_good=0
17657fi
17658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17659
17660 OBJCXXFLAGS=$cy_save
17661 if test "x$cy_good" = x1; then :
17662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17663$as_echo "yes" >&6; }
17664
babf7fe8 17665 for element in -Werror; do
c10a2228
JF
17666 haveit=
17667 for x in $OBJCXXFLAGS; do
17668
17669 acl_save_prefix="$prefix"
17670 prefix="$acl_final_prefix"
17671 acl_save_exec_prefix="$exec_prefix"
17672 exec_prefix="$acl_final_exec_prefix"
17673 eval x=\"$x\"
17674 exec_prefix="$acl_save_exec_prefix"
17675 prefix="$acl_save_prefix"
17676
17677 if test "X$x" = "X$element"; then
17678 haveit=yes
17679 break
17680 fi
17681 done
17682 if test -z "$haveit"; then
17683 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17684 fi
17685 done
17686
17687
17688else
17689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17690$as_echo "no" >&6; }
17691fi
17692
17693 ac_ext=cpp
17694ac_cpp='$CXXCPP $CPPFLAGS'
17695ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17696ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17697ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17698
17699
17700
17701
17702
17703
17704 ac_ext=c
17705ac_cpp='$CPP $CPPFLAGS'
17706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17708ac_compiler_gnu=$ac_cv_c_compiler_gnu
17709
babf7fe8
JF
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-deprecated-declarations" >&5
17711$as_echo_n "checking for cc -Wno-deprecated-declarations... " >&6; }
c10a2228
JF
17712
17713 cy_save=$CFLAGS
17714
babf7fe8 17715 for element in -Wno-deprecated-declarations; do
c10a2228
JF
17716 haveit=
17717 for x in $CFLAGS; do
17718
17719 acl_save_prefix="$prefix"
17720 prefix="$acl_final_prefix"
17721 acl_save_exec_prefix="$exec_prefix"
17722 exec_prefix="$acl_final_exec_prefix"
17723 eval x=\"$x\"
17724 exec_prefix="$acl_save_exec_prefix"
17725 prefix="$acl_save_prefix"
17726
17727 if test "X$x" = "X$element"; then
17728 haveit=yes
17729 break
17730 fi
17731 done
17732 if test -z "$haveit"; then
17733 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17734 fi
17735 done
17736
17737
17738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17739/* end confdefs.h. */
17740
17741_ACEOF
17742if ac_fn_c_try_compile "$LINENO"; then :
17743 cy_good=1
17744else
17745 cy_good=0
17746fi
17747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17748
17749 CFLAGS=$cy_save
17750 if test "x$cy_good" = x1; then :
17751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17752$as_echo "yes" >&6; }
17753
babf7fe8 17754 for element in -Wno-deprecated-declarations; do
c10a2228
JF
17755 haveit=
17756 for x in $CFLAGS; do
17757
17758 acl_save_prefix="$prefix"
17759 prefix="$acl_final_prefix"
17760 acl_save_exec_prefix="$exec_prefix"
17761 exec_prefix="$acl_final_exec_prefix"
17762 eval x=\"$x\"
17763 exec_prefix="$acl_save_exec_prefix"
17764 prefix="$acl_save_prefix"
17765
17766 if test "X$x" = "X$element"; then
17767 haveit=yes
17768 break
17769 fi
17770 done
17771 if test -z "$haveit"; then
17772 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17773 fi
17774 done
17775
17776
17777else
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17779$as_echo "no" >&6; }
17780fi
17781
17782 ac_ext=cpp
17783ac_cpp='$CXXCPP $CPPFLAGS'
17784ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17785ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17786ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17787
17788
17789
17790 ac_ext=cpp
17791ac_cpp='$CXXCPP $CPPFLAGS'
17792ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17793ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17794ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17795
babf7fe8
JF
17796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-deprecated-declarations" >&5
17797$as_echo_n "checking for c++ -Wno-deprecated-declarations... " >&6; }
c10a2228
JF
17798
17799 cy_save=$CXXFLAGS
17800
babf7fe8 17801 for element in -Wno-deprecated-declarations; do
c10a2228
JF
17802 haveit=
17803 for x in $CXXFLAGS; do
17804
17805 acl_save_prefix="$prefix"
17806 prefix="$acl_final_prefix"
17807 acl_save_exec_prefix="$exec_prefix"
17808 exec_prefix="$acl_final_exec_prefix"
17809 eval x=\"$x\"
17810 exec_prefix="$acl_save_exec_prefix"
17811 prefix="$acl_save_prefix"
17812
17813 if test "X$x" = "X$element"; then
17814 haveit=yes
17815 break
17816 fi
17817 done
17818 if test -z "$haveit"; then
17819 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17820 fi
17821 done
17822
17823
17824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17825/* end confdefs.h. */
17826
17827_ACEOF
17828if ac_fn_cxx_try_compile "$LINENO"; then :
17829 cy_good=1
17830else
17831 cy_good=0
17832fi
17833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17834
17835 CXXFLAGS=$cy_save
17836 if test "x$cy_good" = x1; then :
17837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17838$as_echo "yes" >&6; }
17839
babf7fe8 17840 for element in -Wno-deprecated-declarations; do
c10a2228
JF
17841 haveit=
17842 for x in $CXXFLAGS; do
17843
17844 acl_save_prefix="$prefix"
17845 prefix="$acl_final_prefix"
17846 acl_save_exec_prefix="$exec_prefix"
17847 exec_prefix="$acl_final_exec_prefix"
17848 eval x=\"$x\"
17849 exec_prefix="$acl_save_exec_prefix"
17850 prefix="$acl_save_prefix"
17851
17852 if test "X$x" = "X$element"; then
17853 haveit=yes
17854 break
17855 fi
17856 done
17857 if test -z "$haveit"; then
17858 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17859 fi
17860 done
17861
17862
17863else
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17865$as_echo "no" >&6; }
17866fi
17867
17868 ac_ext=cpp
17869ac_cpp='$CXXCPP $CPPFLAGS'
17870ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17871ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17872ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17873
17874
17875
17876 ac_ext=mm
17877ac_cpp='$OBJCXXCPP $CPPFLAGS'
17878ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17879ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17880ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17881
babf7fe8
JF
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-deprecated-declarations" >&5
17883$as_echo_n "checking for c++ -ObjC -Wno-deprecated-declarations... " >&6; }
c10a2228
JF
17884
17885 cy_save=$OBJCXXFLAGS
17886
babf7fe8 17887 for element in -Wno-deprecated-declarations; do
c10a2228
JF
17888 haveit=
17889 for x in $OBJCXXFLAGS; do
17890
17891 acl_save_prefix="$prefix"
17892 prefix="$acl_final_prefix"
17893 acl_save_exec_prefix="$exec_prefix"
17894 exec_prefix="$acl_final_exec_prefix"
17895 eval x=\"$x\"
17896 exec_prefix="$acl_save_exec_prefix"
17897 prefix="$acl_save_prefix"
17898
17899 if test "X$x" = "X$element"; then
17900 haveit=yes
17901 break
17902 fi
17903 done
17904 if test -z "$haveit"; then
17905 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17906 fi
17907 done
17908
17909
17910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17911/* end confdefs.h. */
17912
17913_ACEOF
17914if ac_fn_objcxx_try_compile "$LINENO"; then :
17915 cy_good=1
17916else
17917 cy_good=0
17918fi
17919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17920
17921 OBJCXXFLAGS=$cy_save
17922 if test "x$cy_good" = x1; then :
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17924$as_echo "yes" >&6; }
17925
babf7fe8 17926 for element in -Wno-deprecated-declarations; do
c10a2228
JF
17927 haveit=
17928 for x in $OBJCXXFLAGS; do
17929
17930 acl_save_prefix="$prefix"
17931 prefix="$acl_final_prefix"
17932 acl_save_exec_prefix="$exec_prefix"
17933 exec_prefix="$acl_final_exec_prefix"
17934 eval x=\"$x\"
17935 exec_prefix="$acl_save_exec_prefix"
17936 prefix="$acl_save_prefix"
17937
17938 if test "X$x" = "X$element"; then
17939 haveit=yes
17940 break
17941 fi
17942 done
17943 if test -z "$haveit"; then
17944 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17945 fi
17946 done
17947
17948
17949else
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17951$as_echo "no" >&6; }
17952fi
17953
17954 ac_ext=cpp
17955ac_cpp='$CXXCPP $CPPFLAGS'
17956ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17957ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17958ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17959
17960
17961
17962
17963
babf7fe8 17964
c10a2228
JF
17965 ac_ext=c
17966ac_cpp='$CPP $CPPFLAGS'
17967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17969ac_compiler_gnu=$ac_cv_c_compiler_gnu
17970
babf7fe8
JF
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-dangling-else" >&5
17972$as_echo_n "checking for cc -Wno-dangling-else... " >&6; }
c10a2228
JF
17973
17974 cy_save=$CFLAGS
17975
babf7fe8 17976 for element in -Wno-dangling-else; do
c10a2228
JF
17977 haveit=
17978 for x in $CFLAGS; do
17979
17980 acl_save_prefix="$prefix"
17981 prefix="$acl_final_prefix"
17982 acl_save_exec_prefix="$exec_prefix"
17983 exec_prefix="$acl_final_exec_prefix"
17984 eval x=\"$x\"
17985 exec_prefix="$acl_save_exec_prefix"
17986 prefix="$acl_save_prefix"
17987
17988 if test "X$x" = "X$element"; then
17989 haveit=yes
17990 break
17991 fi
17992 done
17993 if test -z "$haveit"; then
17994 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17995 fi
17996 done
17997
17998
17999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18000/* end confdefs.h. */
18001
18002_ACEOF
18003if ac_fn_c_try_compile "$LINENO"; then :
18004 cy_good=1
18005else
18006 cy_good=0
18007fi
18008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18009
18010 CFLAGS=$cy_save
18011 if test "x$cy_good" = x1; then :
18012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18013$as_echo "yes" >&6; }
18014
babf7fe8 18015 for element in -Wno-dangling-else; do
c10a2228
JF
18016 haveit=
18017 for x in $CFLAGS; do
18018
18019 acl_save_prefix="$prefix"
18020 prefix="$acl_final_prefix"
18021 acl_save_exec_prefix="$exec_prefix"
18022 exec_prefix="$acl_final_exec_prefix"
18023 eval x=\"$x\"
18024 exec_prefix="$acl_save_exec_prefix"
18025 prefix="$acl_save_prefix"
18026
18027 if test "X$x" = "X$element"; then
18028 haveit=yes
18029 break
18030 fi
18031 done
18032 if test -z "$haveit"; then
18033 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18034 fi
18035 done
18036
18037
18038else
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18040$as_echo "no" >&6; }
18041fi
18042
18043 ac_ext=cpp
18044ac_cpp='$CXXCPP $CPPFLAGS'
18045ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18046ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18047ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18048
18049
18050
18051 ac_ext=cpp
18052ac_cpp='$CXXCPP $CPPFLAGS'
18053ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18054ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18055ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18056
babf7fe8
JF
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-dangling-else" >&5
18058$as_echo_n "checking for c++ -Wno-dangling-else... " >&6; }
c10a2228
JF
18059
18060 cy_save=$CXXFLAGS
18061
babf7fe8 18062 for element in -Wno-dangling-else; do
c10a2228
JF
18063 haveit=
18064 for x in $CXXFLAGS; do
18065
18066 acl_save_prefix="$prefix"
18067 prefix="$acl_final_prefix"
18068 acl_save_exec_prefix="$exec_prefix"
18069 exec_prefix="$acl_final_exec_prefix"
18070 eval x=\"$x\"
18071 exec_prefix="$acl_save_exec_prefix"
18072 prefix="$acl_save_prefix"
18073
18074 if test "X$x" = "X$element"; then
18075 haveit=yes
18076 break
18077 fi
18078 done
18079 if test -z "$haveit"; then
18080 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18081 fi
18082 done
18083
18084
18085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18086/* end confdefs.h. */
18087
18088_ACEOF
18089if ac_fn_cxx_try_compile "$LINENO"; then :
18090 cy_good=1
18091else
18092 cy_good=0
18093fi
18094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18095
18096 CXXFLAGS=$cy_save
18097 if test "x$cy_good" = x1; then :
18098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18099$as_echo "yes" >&6; }
18100
babf7fe8 18101 for element in -Wno-dangling-else; do
c10a2228
JF
18102 haveit=
18103 for x in $CXXFLAGS; do
18104
18105 acl_save_prefix="$prefix"
18106 prefix="$acl_final_prefix"
18107 acl_save_exec_prefix="$exec_prefix"
18108 exec_prefix="$acl_final_exec_prefix"
18109 eval x=\"$x\"
18110 exec_prefix="$acl_save_exec_prefix"
18111 prefix="$acl_save_prefix"
18112
18113 if test "X$x" = "X$element"; then
18114 haveit=yes
18115 break
18116 fi
18117 done
18118 if test -z "$haveit"; then
18119 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18120 fi
18121 done
18122
18123
18124else
18125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18126$as_echo "no" >&6; }
18127fi
18128
18129 ac_ext=cpp
18130ac_cpp='$CXXCPP $CPPFLAGS'
18131ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18132ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18133ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18134
18135
18136
18137 ac_ext=mm
18138ac_cpp='$OBJCXXCPP $CPPFLAGS'
18139ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18140ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18141ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18142
babf7fe8
JF
18143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-dangling-else" >&5
18144$as_echo_n "checking for c++ -ObjC -Wno-dangling-else... " >&6; }
c10a2228
JF
18145
18146 cy_save=$OBJCXXFLAGS
18147
babf7fe8 18148 for element in -Wno-dangling-else; do
c10a2228
JF
18149 haveit=
18150 for x in $OBJCXXFLAGS; do
18151
18152 acl_save_prefix="$prefix"
18153 prefix="$acl_final_prefix"
18154 acl_save_exec_prefix="$exec_prefix"
18155 exec_prefix="$acl_final_exec_prefix"
18156 eval x=\"$x\"
18157 exec_prefix="$acl_save_exec_prefix"
18158 prefix="$acl_save_prefix"
18159
18160 if test "X$x" = "X$element"; then
18161 haveit=yes
18162 break
18163 fi
18164 done
18165 if test -z "$haveit"; then
18166 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18167 fi
18168 done
18169
18170
18171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18172/* end confdefs.h. */
18173
18174_ACEOF
18175if ac_fn_objcxx_try_compile "$LINENO"; then :
18176 cy_good=1
18177else
18178 cy_good=0
18179fi
18180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18181
18182 OBJCXXFLAGS=$cy_save
18183 if test "x$cy_good" = x1; then :
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18185$as_echo "yes" >&6; }
18186
babf7fe8 18187 for element in -Wno-dangling-else; do
c10a2228
JF
18188 haveit=
18189 for x in $OBJCXXFLAGS; do
18190
18191 acl_save_prefix="$prefix"
18192 prefix="$acl_final_prefix"
18193 acl_save_exec_prefix="$exec_prefix"
18194 exec_prefix="$acl_final_exec_prefix"
18195 eval x=\"$x\"
18196 exec_prefix="$acl_save_exec_prefix"
18197 prefix="$acl_save_prefix"
18198
18199 if test "X$x" = "X$element"; then
18200 haveit=yes
18201 break
18202 fi
18203 done
18204 if test -z "$haveit"; then
18205 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18206 fi
18207 done
18208
18209
18210else
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18212$as_echo "no" >&6; }
18213fi
18214
18215 ac_ext=cpp
18216ac_cpp='$CXXCPP $CPPFLAGS'
18217ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18218ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18219ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18220
18221
18222
18223
18224
18225 ac_ext=c
18226ac_cpp='$CPP $CPPFLAGS'
18227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18229ac_compiler_gnu=$ac_cv_c_compiler_gnu
18230
babf7fe8
JF
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-overloaded-virtual" >&5
18232$as_echo_n "checking for cc -Wno-overloaded-virtual... " >&6; }
c10a2228
JF
18233
18234 cy_save=$CFLAGS
18235
babf7fe8 18236 for element in -Wno-overloaded-virtual; do
1504c9b8 18237 haveit=
c10a2228 18238 for x in $CFLAGS; do
1504c9b8
DWT
18239
18240 acl_save_prefix="$prefix"
18241 prefix="$acl_final_prefix"
18242 acl_save_exec_prefix="$exec_prefix"
18243 exec_prefix="$acl_final_exec_prefix"
18244 eval x=\"$x\"
18245 exec_prefix="$acl_save_exec_prefix"
18246 prefix="$acl_save_prefix"
18247
18248 if test "X$x" = "X$element"; then
18249 haveit=yes
18250 break
18251 fi
18252 done
18253 if test -z "$haveit"; then
c10a2228 18254 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
1504c9b8
DWT
18255 fi
18256 done
18257
66170b30
JF
18258
18259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1504c9b8
DWT
18260/* end confdefs.h. */
18261
66170b30 18262_ACEOF
c10a2228 18263if ac_fn_c_try_compile "$LINENO"; then :
66170b30
JF
18264 cy_good=1
18265else
18266 cy_good=0
18267fi
18268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18269
c10a2228 18270 CFLAGS=$cy_save
66170b30
JF
18271 if test "x$cy_good" = x1; then :
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18273$as_echo "yes" >&6; }
18274
babf7fe8 18275 for element in -Wno-overloaded-virtual; do
66170b30
JF
18276 haveit=
18277 for x in $CFLAGS; do
18278
18279 acl_save_prefix="$prefix"
18280 prefix="$acl_final_prefix"
18281 acl_save_exec_prefix="$exec_prefix"
18282 exec_prefix="$acl_final_exec_prefix"
18283 eval x=\"$x\"
18284 exec_prefix="$acl_save_exec_prefix"
18285 prefix="$acl_save_prefix"
18286
18287 if test "X$x" = "X$element"; then
18288 haveit=yes
18289 break
18290 fi
18291 done
18292 if test -z "$haveit"; then
18293 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18294 fi
18295 done
18296
18297
c10a2228
JF
18298else
18299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18300$as_echo "no" >&6; }
18301fi
18302
18303 ac_ext=cpp
18304ac_cpp='$CXXCPP $CPPFLAGS'
18305ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18306ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18307ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18308
18309
18310
18311 ac_ext=cpp
18312ac_cpp='$CXXCPP $CPPFLAGS'
18313ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18314ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18315ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18316
babf7fe8
JF
18317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-overloaded-virtual" >&5
18318$as_echo_n "checking for c++ -Wno-overloaded-virtual... " >&6; }
c10a2228
JF
18319
18320 cy_save=$CXXFLAGS
18321
babf7fe8 18322 for element in -Wno-overloaded-virtual; do
66170b30
JF
18323 haveit=
18324 for x in $CXXFLAGS; do
18325
18326 acl_save_prefix="$prefix"
18327 prefix="$acl_final_prefix"
18328 acl_save_exec_prefix="$exec_prefix"
18329 exec_prefix="$acl_final_exec_prefix"
18330 eval x=\"$x\"
18331 exec_prefix="$acl_save_exec_prefix"
18332 prefix="$acl_save_prefix"
18333
18334 if test "X$x" = "X$element"; then
18335 haveit=yes
18336 break
18337 fi
18338 done
18339 if test -z "$haveit"; then
18340 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18341 fi
18342 done
18343
18344
c10a2228
JF
18345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18346/* end confdefs.h. */
18347
18348_ACEOF
18349if ac_fn_cxx_try_compile "$LINENO"; then :
18350 cy_good=1
18351else
18352 cy_good=0
18353fi
18354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18355
18356 CXXFLAGS=$cy_save
18357 if test "x$cy_good" = x1; then :
18358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18359$as_echo "yes" >&6; }
18360
babf7fe8 18361 for element in -Wno-overloaded-virtual; do
66170b30 18362 haveit=
c10a2228 18363 for x in $CXXFLAGS; do
66170b30
JF
18364
18365 acl_save_prefix="$prefix"
18366 prefix="$acl_final_prefix"
18367 acl_save_exec_prefix="$exec_prefix"
18368 exec_prefix="$acl_final_exec_prefix"
18369 eval x=\"$x\"
18370 exec_prefix="$acl_save_exec_prefix"
18371 prefix="$acl_save_prefix"
18372
18373 if test "X$x" = "X$element"; then
18374 haveit=yes
18375 break
18376 fi
18377 done
18378 if test -z "$haveit"; then
c10a2228 18379 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
66170b30
JF
18380 fi
18381 done
18382
18383
66170b30
JF
18384else
18385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18386$as_echo "no" >&6; }
18387fi
18388
c10a2228
JF
18389 ac_ext=cpp
18390ac_cpp='$CXXCPP $CPPFLAGS'
18391ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18392ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18393ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18394
66170b30
JF
18395
18396
c10a2228
JF
18397 ac_ext=mm
18398ac_cpp='$OBJCXXCPP $CPPFLAGS'
18399ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18400ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18401ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18402
babf7fe8
JF
18403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-overloaded-virtual" >&5
18404$as_echo_n "checking for c++ -ObjC -Wno-overloaded-virtual... " >&6; }
66170b30 18405
c10a2228 18406 cy_save=$OBJCXXFLAGS
66170b30 18407
babf7fe8 18408 for element in -Wno-overloaded-virtual; do
66170b30 18409 haveit=
c10a2228 18410 for x in $OBJCXXFLAGS; do
66170b30
JF
18411
18412 acl_save_prefix="$prefix"
18413 prefix="$acl_final_prefix"
18414 acl_save_exec_prefix="$exec_prefix"
18415 exec_prefix="$acl_final_exec_prefix"
18416 eval x=\"$x\"
18417 exec_prefix="$acl_save_exec_prefix"
18418 prefix="$acl_save_prefix"
18419
18420 if test "X$x" = "X$element"; then
18421 haveit=yes
18422 break
18423 fi
18424 done
18425 if test -z "$haveit"; then
c10a2228 18426 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
66170b30
JF
18427 fi
18428 done
18429
18430
18431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18432/* end confdefs.h. */
1504c9b8 18433
1504c9b8 18434_ACEOF
c10a2228 18435if ac_fn_objcxx_try_compile "$LINENO"; then :
66170b30
JF
18436 cy_good=1
18437else
18438 cy_good=0
18439fi
18440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18441
c10a2228 18442 OBJCXXFLAGS=$cy_save
66170b30
JF
18443 if test "x$cy_good" = x1; then :
18444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18445$as_echo "yes" >&6; }
1504c9b8 18446
babf7fe8 18447 for element in -Wno-overloaded-virtual; do
1504c9b8 18448 haveit=
c10a2228 18449 for x in $OBJCXXFLAGS; do
1504c9b8
DWT
18450
18451 acl_save_prefix="$prefix"
18452 prefix="$acl_final_prefix"
18453 acl_save_exec_prefix="$exec_prefix"
18454 exec_prefix="$acl_final_exec_prefix"
18455 eval x=\"$x\"
18456 exec_prefix="$acl_save_exec_prefix"
18457 prefix="$acl_save_prefix"
18458
18459 if test "X$x" = "X$element"; then
18460 haveit=yes
18461 break
18462 fi
18463 done
18464 if test -z "$haveit"; then
c10a2228 18465 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
1504c9b8
DWT
18466 fi
18467 done
18468
18469
c10a2228
JF
18470else
18471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18472$as_echo "no" >&6; }
18473fi
18474
18475 ac_ext=cpp
18476ac_cpp='$CXXCPP $CPPFLAGS'
18477ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18478ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18479ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18480
18481
18482
18483
18484
18485 ac_ext=c
18486ac_cpp='$CPP $CPPFLAGS'
18487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18489ac_compiler_gnu=$ac_cv_c_compiler_gnu
18490
babf7fe8
JF
18491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-parentheses" >&5
18492$as_echo_n "checking for cc -Wno-parentheses... " >&6; }
c10a2228
JF
18493
18494 cy_save=$CFLAGS
18495
babf7fe8 18496 for element in -Wno-parentheses; do
66170b30 18497 haveit=
c10a2228 18498 for x in $CFLAGS; do
66170b30
JF
18499
18500 acl_save_prefix="$prefix"
18501 prefix="$acl_final_prefix"
18502 acl_save_exec_prefix="$exec_prefix"
18503 exec_prefix="$acl_final_exec_prefix"
18504 eval x=\"$x\"
18505 exec_prefix="$acl_save_exec_prefix"
18506 prefix="$acl_save_prefix"
18507
18508 if test "X$x" = "X$element"; then
18509 haveit=yes
18510 break
18511 fi
18512 done
18513 if test -z "$haveit"; then
c10a2228 18514 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
66170b30
JF
18515 fi
18516 done
18517
18518
c10a2228
JF
18519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18520/* end confdefs.h. */
18521
18522_ACEOF
18523if ac_fn_c_try_compile "$LINENO"; then :
18524 cy_good=1
18525else
18526 cy_good=0
18527fi
18528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18529
18530 CFLAGS=$cy_save
18531 if test "x$cy_good" = x1; then :
18532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18533$as_echo "yes" >&6; }
18534
babf7fe8 18535 for element in -Wno-parentheses; do
66170b30 18536 haveit=
c10a2228 18537 for x in $CFLAGS; do
66170b30
JF
18538
18539 acl_save_prefix="$prefix"
18540 prefix="$acl_final_prefix"
18541 acl_save_exec_prefix="$exec_prefix"
18542 exec_prefix="$acl_final_exec_prefix"
18543 eval x=\"$x\"
18544 exec_prefix="$acl_save_exec_prefix"
18545 prefix="$acl_save_prefix"
18546
18547 if test "X$x" = "X$element"; then
18548 haveit=yes
18549 break
18550 fi
18551 done
18552 if test -z "$haveit"; then
c10a2228 18553 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
66170b30
JF
18554 fi
18555 done
18556
18557
66170b30
JF
18558else
18559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18560$as_echo "no" >&6; }
18561fi
18562
c10a2228
JF
18563 ac_ext=cpp
18564ac_cpp='$CXXCPP $CPPFLAGS'
18565ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18566ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18567ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18568
66170b30
JF
18569
18570
c10a2228
JF
18571 ac_ext=cpp
18572ac_cpp='$CXXCPP $CPPFLAGS'
18573ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18574ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18575ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18576
babf7fe8
JF
18577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-parentheses" >&5
18578$as_echo_n "checking for c++ -Wno-parentheses... " >&6; }
66170b30
JF
18579
18580 cy_save=$CXXFLAGS
18581
babf7fe8 18582 for element in -Wno-parentheses; do
66170b30
JF
18583 haveit=
18584 for x in $CXXFLAGS; do
18585
18586 acl_save_prefix="$prefix"
18587 prefix="$acl_final_prefix"
18588 acl_save_exec_prefix="$exec_prefix"
18589 exec_prefix="$acl_final_exec_prefix"
18590 eval x=\"$x\"
18591 exec_prefix="$acl_save_exec_prefix"
18592 prefix="$acl_save_prefix"
18593
18594 if test "X$x" = "X$element"; then
18595 haveit=yes
18596 break
18597 fi
18598 done
18599 if test -z "$haveit"; then
18600 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18601 fi
18602 done
18603
18604
18605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18606/* end confdefs.h. */
18607
18608_ACEOF
18609if ac_fn_cxx_try_compile "$LINENO"; then :
18610 cy_good=1
18611else
18612 cy_good=0
18613fi
18614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18615
18616 CXXFLAGS=$cy_save
18617 if test "x$cy_good" = x1; then :
18618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18619$as_echo "yes" >&6; }
18620
babf7fe8 18621 for element in -Wno-parentheses; do
1504c9b8 18622 haveit=
c10a2228 18623 for x in $CXXFLAGS; do
1504c9b8
DWT
18624
18625 acl_save_prefix="$prefix"
18626 prefix="$acl_final_prefix"
18627 acl_save_exec_prefix="$exec_prefix"
18628 exec_prefix="$acl_final_exec_prefix"
18629 eval x=\"$x\"
18630 exec_prefix="$acl_save_exec_prefix"
18631 prefix="$acl_save_prefix"
18632
18633 if test "X$x" = "X$element"; then
18634 haveit=yes
18635 break
18636 fi
18637 done
18638 if test -z "$haveit"; then
c10a2228 18639 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
1504c9b8
DWT
18640 fi
18641 done
18642
18643
c10a2228
JF
18644else
18645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18646$as_echo "no" >&6; }
18647fi
18648
18649 ac_ext=cpp
18650ac_cpp='$CXXCPP $CPPFLAGS'
18651ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18652ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18653ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18654
18655
18656
18657 ac_ext=mm
18658ac_cpp='$OBJCXXCPP $CPPFLAGS'
18659ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18660ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18661ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18662
babf7fe8
JF
18663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-parentheses" >&5
18664$as_echo_n "checking for c++ -ObjC -Wno-parentheses... " >&6; }
c10a2228
JF
18665
18666 cy_save=$OBJCXXFLAGS
18667
babf7fe8 18668 for element in -Wno-parentheses; do
1504c9b8 18669 haveit=
c10a2228 18670 for x in $OBJCXXFLAGS; do
1504c9b8
DWT
18671
18672 acl_save_prefix="$prefix"
18673 prefix="$acl_final_prefix"
18674 acl_save_exec_prefix="$exec_prefix"
18675 exec_prefix="$acl_final_exec_prefix"
18676 eval x=\"$x\"
18677 exec_prefix="$acl_save_exec_prefix"
18678 prefix="$acl_save_prefix"
18679
18680 if test "X$x" = "X$element"; then
18681 haveit=yes
18682 break
18683 fi
18684 done
18685 if test -z "$haveit"; then
c10a2228 18686 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
1504c9b8
DWT
18687 fi
18688 done
18689
18690
c10a2228
JF
18691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18692/* end confdefs.h. */
18693
18694_ACEOF
18695if ac_fn_objcxx_try_compile "$LINENO"; then :
18696 cy_good=1
18697else
18698 cy_good=0
18699fi
18700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18701
18702 OBJCXXFLAGS=$cy_save
18703 if test "x$cy_good" = x1; then :
18704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18705$as_echo "yes" >&6; }
18706
babf7fe8 18707 for element in -Wno-parentheses; do
1504c9b8 18708 haveit=
c10a2228 18709 for x in $OBJCXXFLAGS; do
1504c9b8
DWT
18710
18711 acl_save_prefix="$prefix"
18712 prefix="$acl_final_prefix"
18713 acl_save_exec_prefix="$exec_prefix"
18714 exec_prefix="$acl_final_exec_prefix"
18715 eval x=\"$x\"
18716 exec_prefix="$acl_save_exec_prefix"
18717 prefix="$acl_save_prefix"
18718
18719 if test "X$x" = "X$element"; then
18720 haveit=yes
18721 break
18722 fi
18723 done
18724 if test -z "$haveit"; then
c10a2228 18725 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
1504c9b8
DWT
18726 fi
18727 done
18728
18729
66170b30
JF
18730else
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18732$as_echo "no" >&6; }
1504c9b8 18733fi
1504c9b8 18734
c10a2228
JF
18735 ac_ext=cpp
18736ac_cpp='$CXXCPP $CPPFLAGS'
18737ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18738ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18739ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18740
18741
1504c9b8 18742
1504c9b8 18743
1504c9b8 18744
babf7fe8
JF
18745 ac_ext=c
18746ac_cpp='$CPP $CPPFLAGS'
18747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18749ac_compiler_gnu=$ac_cv_c_compiler_gnu
1504c9b8 18750
babf7fe8
JF
18751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-unneeded-internal-declaration" >&5
18752$as_echo_n "checking for cc -Wno-unneeded-internal-declaration... " >&6; }
18753
18754 cy_save=$CFLAGS
18755
18756 for element in -Wno-unneeded-internal-declaration; do
1504c9b8 18757 haveit=
babf7fe8 18758 for x in $CFLAGS; do
1504c9b8
DWT
18759
18760 acl_save_prefix="$prefix"
18761 prefix="$acl_final_prefix"
18762 acl_save_exec_prefix="$exec_prefix"
18763 exec_prefix="$acl_final_exec_prefix"
18764 eval x=\"$x\"
18765 exec_prefix="$acl_save_exec_prefix"
18766 prefix="$acl_save_prefix"
18767
18768 if test "X$x" = "X$element"; then
18769 haveit=yes
18770 break
18771 fi
18772 done
18773 if test -z "$haveit"; then
babf7fe8 18774 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
1504c9b8
DWT
18775 fi
18776 done
18777
66170b30
JF
18778
18779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1504c9b8
DWT
18780/* end confdefs.h. */
18781
a243b558 18782_ACEOF
babf7fe8 18783if ac_fn_c_try_compile "$LINENO"; then :
a243b558
JF
18784 cy_good=1
18785else
18786 cy_good=0
18787fi
babf7fe8 18788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1504c9b8 18789
babf7fe8 18790 CFLAGS=$cy_save
a243b558
JF
18791 if test "x$cy_good" = x1; then :
18792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18793$as_echo "yes" >&6; }
66170b30 18794
babf7fe8 18795 for element in -Wno-unneeded-internal-declaration; do
1504c9b8 18796 haveit=
babf7fe8 18797 for x in $CFLAGS; do
1504c9b8
DWT
18798
18799 acl_save_prefix="$prefix"
18800 prefix="$acl_final_prefix"
18801 acl_save_exec_prefix="$exec_prefix"
18802 exec_prefix="$acl_final_exec_prefix"
18803 eval x=\"$x\"
18804 exec_prefix="$acl_save_exec_prefix"
18805 prefix="$acl_save_prefix"
18806
18807 if test "X$x" = "X$element"; then
18808 haveit=yes
18809 break
18810 fi
18811 done
18812 if test -z "$haveit"; then
babf7fe8 18813 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
1504c9b8
DWT
18814 fi
18815 done
18816
18817
18818else
66170b30
JF
18819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18820$as_echo "no" >&6; }
1504c9b8
DWT
18821fi
18822
babf7fe8
JF
18823 ac_ext=cpp
18824ac_cpp='$CXXCPP $CPPFLAGS'
18825ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18826ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18827ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
296ee9a6 18828
9c60689e 18829
632b71ea 18830
babf7fe8
JF
18831 ac_ext=cpp
18832ac_cpp='$CXXCPP $CPPFLAGS'
18833ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18834ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18835ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
632b71ea 18836
babf7fe8
JF
18837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-unneeded-internal-declaration" >&5
18838$as_echo_n "checking for c++ -Wno-unneeded-internal-declaration... " >&6; }
9c60689e 18839
babf7fe8 18840 cy_save=$CXXFLAGS
9c60689e 18841
babf7fe8
JF
18842 for element in -Wno-unneeded-internal-declaration; do
18843 haveit=
18844 for x in $CXXFLAGS; do
9c60689e 18845
babf7fe8
JF
18846 acl_save_prefix="$prefix"
18847 prefix="$acl_final_prefix"
18848 acl_save_exec_prefix="$exec_prefix"
18849 exec_prefix="$acl_final_exec_prefix"
18850 eval x=\"$x\"
18851 exec_prefix="$acl_save_exec_prefix"
18852 prefix="$acl_save_prefix"
66170b30 18853
babf7fe8
JF
18854 if test "X$x" = "X$element"; then
18855 haveit=yes
18856 break
18857 fi
18858 done
18859 if test -z "$haveit"; then
18860 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18861 fi
18862 done
7eda51e0 18863
7eda51e0 18864
babf7fe8
JF
18865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18866/* end confdefs.h. */
7eda51e0 18867
7eda51e0 18868_ACEOF
babf7fe8
JF
18869if ac_fn_cxx_try_compile "$LINENO"; then :
18870 cy_good=1
9c60689e 18871else
babf7fe8 18872 cy_good=0
9c60689e 18873fi
babf7fe8 18874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7eda51e0 18875
babf7fe8
JF
18876 CXXFLAGS=$cy_save
18877 if test "x$cy_good" = x1; then :
18878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18879$as_echo "yes" >&6; }
7eda51e0 18880
babf7fe8 18881 for element in -Wno-unneeded-internal-declaration; do
7eda51e0 18882 haveit=
babf7fe8 18883 for x in $CXXFLAGS; do
9c60689e 18884
7eda51e0
JF
18885 acl_save_prefix="$prefix"
18886 prefix="$acl_final_prefix"
18887 acl_save_exec_prefix="$exec_prefix"
18888 exec_prefix="$acl_final_exec_prefix"
18889 eval x=\"$x\"
18890 exec_prefix="$acl_save_exec_prefix"
18891 prefix="$acl_save_prefix"
9c60689e 18892
7eda51e0
JF
18893 if test "X$x" = "X$element"; then
18894 haveit=yes
18895 break
18896 fi
18897 done
18898 if test -z "$haveit"; then
babf7fe8 18899 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
7eda51e0
JF
18900 fi
18901 done
9c60689e 18902
9c60689e 18903
5053a6d1 18904else
babf7fe8
JF
18905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18906$as_echo "no" >&6; }
632b71ea
DWT
18907fi
18908
babf7fe8
JF
18909 ac_ext=cpp
18910ac_cpp='$CXXCPP $CPPFLAGS'
18911ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18912ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18913ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
632b71ea
DWT
18914
18915
5053a6d1 18916
babf7fe8
JF
18917 ac_ext=mm
18918ac_cpp='$OBJCXXCPP $CPPFLAGS'
18919ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18920ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18921ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
5053a6d1 18922
babf7fe8
JF
18923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-unneeded-internal-declaration" >&5
18924$as_echo_n "checking for c++ -ObjC -Wno-unneeded-internal-declaration... " >&6; }
632b71ea 18925
babf7fe8 18926 cy_save=$OBJCXXFLAGS
632b71ea 18927
babf7fe8 18928 for element in -Wno-unneeded-internal-declaration; do
5053a6d1 18929 haveit=
babf7fe8 18930 for x in $OBJCXXFLAGS; do
632b71ea
DWT
18931
18932 acl_save_prefix="$prefix"
18933 prefix="$acl_final_prefix"
18934 acl_save_exec_prefix="$exec_prefix"
18935 exec_prefix="$acl_final_exec_prefix"
5053a6d1 18936 eval x=\"$x\"
632b71ea
DWT
18937 exec_prefix="$acl_save_exec_prefix"
18938 prefix="$acl_save_prefix"
18939
5053a6d1
DWT
18940 if test "X$x" = "X$element"; then
18941 haveit=yes
18942 break
18943 fi
18944 done
18945 if test -z "$haveit"; then
babf7fe8 18946 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
5053a6d1
DWT
18947 fi
18948 done
18949
66170b30 18950
babf7fe8
JF
18951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18952/* end confdefs.h. */
18953
18954_ACEOF
18955if ac_fn_objcxx_try_compile "$LINENO"; then :
18956 cy_good=1
18957else
18958 cy_good=0
18959fi
18960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18961
18962 OBJCXXFLAGS=$cy_save
18963 if test "x$cy_good" = x1; then :
18964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18965$as_echo "yes" >&6; }
18966
18967 for element in -Wno-unneeded-internal-declaration; do
7eda51e0 18968 haveit=
babf7fe8 18969 for x in $OBJCXXFLAGS; do
7eda51e0
JF
18970
18971 acl_save_prefix="$prefix"
18972 prefix="$acl_final_prefix"
18973 acl_save_exec_prefix="$exec_prefix"
18974 exec_prefix="$acl_final_exec_prefix"
18975 eval x=\"$x\"
18976 exec_prefix="$acl_save_exec_prefix"
18977 prefix="$acl_save_prefix"
18978
18979 if test "X$x" = "X$element"; then
18980 haveit=yes
18981 break
18982 fi
18983 done
18984 if test -z "$haveit"; then
babf7fe8 18985 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
7eda51e0
JF
18986 fi
18987 done
66170b30
JF
18988
18989
babf7fe8
JF
18990else
18991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18992$as_echo "no" >&6; }
5053a6d1 18993fi
7eda51e0 18994
babf7fe8
JF
18995 ac_ext=cpp
18996ac_cpp='$CXXCPP $CPPFLAGS'
18997ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18998ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18999ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5053a6d1 19000
5053a6d1
DWT
19001
19002
5053a6d1 19003
babf7fe8
JF
19004
19005
2ca4dab3 19006
be2fde87
JF
19007ac_ext=c
19008ac_cpp='$CPP $CPPFLAGS'
19009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19011ac_compiler_gnu=$ac_cv_c_compiler_gnu
19012
19013ax_pthread_ok=no
19014
19015# We used to check for pthread.h first, but this fails if pthread.h
2ca4dab3 19016# requires special compiler flags (e.g. on Tru64 or Sequent).
be2fde87
JF
19017# It gets checked for in the link test anyway.
19018
19019# First of all, check if the user has set any of the PTHREAD_LIBS,
19020# etcetera environment variables, and if threads linking works using
19021# them:
19022if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
19023 save_CFLAGS="$CFLAGS"
19024 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19025 save_LIBS="$LIBS"
19026 LIBS="$PTHREAD_LIBS $LIBS"
2ca4dab3
JF
19027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
19028$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
be2fde87
JF
19029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19030/* end confdefs.h. */
19031
19032/* Override any GCC internal prototype to avoid an error.
19033 Use char because int might match the return type of a GCC
19034 builtin and then its argument prototype would still apply. */
19035#ifdef __cplusplus
19036extern "C"
19037#endif
19038char pthread_join ();
19039int
19040main ()
19041{
19042return pthread_join ();
19043 ;
19044 return 0;
19045}
19046_ACEOF
19047if ac_fn_c_try_link "$LINENO"; then :
19048 ax_pthread_ok=yes
19049fi
19050rm -f core conftest.err conftest.$ac_objext \
19051 conftest$ac_exeext conftest.$ac_ext
19052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19053$as_echo "$ax_pthread_ok" >&6; }
19054 if test x"$ax_pthread_ok" = xno; then
19055 PTHREAD_LIBS=""
19056 PTHREAD_CFLAGS=""
19057 fi
19058 LIBS="$save_LIBS"
19059 CFLAGS="$save_CFLAGS"
19060fi
19061
19062# We must check for the threads library under a number of different
19063# names; the ordering is very important because some systems
19064# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19065# libraries is broken (non-POSIX).
19066
19067# Create a list of thread flags to try. Items starting with a "-" are
19068# C compiler flags, and other items are library names, except for "none"
19069# which indicates that we try without any flags at all, and "pthread-config"
19070# which is a program returning the flags for the Pth emulation library.
19071
2ca4dab3 19072ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mt -mthreads pthread --thread-safe pthread-config"
be2fde87
JF
19073
19074# The ordering *is* (sometimes) important. Some notes on the
19075# individual items follow:
19076
19077# pthreads: AIX (must check this before -lpthread)
19078# none: in case threads are in libc; should be tried before -Kthread and
19079# other compiler flags to prevent continual compiler warnings
19080# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19081# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19082# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
2ca4dab3 19083# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
be2fde87 19084# -pthreads: Solaris/gcc
be2fde87 19085# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
2ca4dab3
JF
19086# doesn't hurt to check since this sometimes defines pthreads and
19087# -D_REENTRANT too), HP C (must be checked before -lpthread, which
19088# is present but should not be used directly)
19089# -mthreads: Mingw32/gcc, Lynx/gcc
be2fde87
JF
19090# pthread: Linux, etcetera
19091# --thread-safe: KAI C++
19092# pthread-config: use pthread-config program (for GNU Pth library)
19093
2ca4dab3
JF
19094case $host_os in
19095
19096 hpux*)
19097
19098 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
19099 # multi-threading and also sets -lpthread."
19100
19101 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
19102 ;;
19103
19104 openedition*)
19105
19106 # IBM z/OS requires a feature-test macro to be defined in order to
19107 # enable POSIX threads at all, so give the user a hint if this is
19108 # not set. (We don't define these ourselves, as they can affect
19109 # other portions of the system API in unpredictable ways.)
19110
19111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19112/* end confdefs.h. */
19113
19114# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
19115 AX_PTHREAD_ZOS_MISSING
19116# endif
19117
19118_ACEOF
19119if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19120 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
19121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
19122$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
19123fi
19124rm -f conftest*
19125
19126 ;;
19127
be2fde87
JF
19128 solaris*)
19129
2ca4dab3
JF
19130 # Newer versions of Solaris require the "-mt -lpthread" pair, and we
19131 # check that first. On some older versions, libc contains stubbed
be2fde87
JF
19132 # (non-functional) versions of the pthreads routines, so link-based
19133 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
19134 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
19135 # a function called by this macro, so we could check for that, but
2ca4dab3
JF
19136 # who knows whether they'll stub that too in a future libc.) So
19137 # we'll look for -pthreads and -lpthread shortly thereafter.
be2fde87 19138
2ca4dab3 19139 ax_pthread_flags="-mt,pthread -pthreads -pthread pthread $ax_pthread_flags"
be2fde87
JF
19140 ;;
19141esac
19142
2ca4dab3
JF
19143# Older versions of Clang only give a warning instead of an error for an
19144# unrecognized option, unless we specify -Werror. (We throw in some extra
19145# Clang warning flags for good measure.)
be2fde87 19146
2ca4dab3
JF
19147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs certain flags to reject unknown flags" >&5
19148$as_echo_n "checking if compiler needs certain flags to reject unknown flags... " >&6; }
19149if ${ax_cv_PTHREAD_REJECT_UNKNOWN+:} false; then :
19150 $as_echo_n "(cached) " >&6
19151else
19152 ax_cv_PTHREAD_REJECT_UNKNOWN=unknown
19153 save_CFLAGS="$CFLAGS"
19154 ax_pthread_extra_flags="-Wunknown-warning-option -Wunused-command-line-argument"
19155 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wfoobaz -foobaz"
19156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
be2fde87
JF
19157/* end confdefs.h. */
19158int foo(void);
19159int
19160main ()
19161{
19162foo()
19163 ;
19164 return 0;
19165}
19166_ACEOF
19167if ac_fn_c_try_compile "$LINENO"; then :
2ca4dab3 19168 ax_cv_PTHREAD_REJECT_UNKNOWN="-Werror $ax_pthread_extra_flags"
be2fde87 19169else
2ca4dab3 19170 ax_cv_PTHREAD_REJECT_UNKNOWN=no
be2fde87
JF
19171fi
19172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2ca4dab3
JF
19173 CFLAGS="$save_CFLAGS"
19174
19175fi
19176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_REJECT_UNKNOWN" >&5
19177$as_echo "$ax_cv_PTHREAD_REJECT_UNKNOWN" >&6; }
19178ax_pthread_extra_flags=
19179if test "x$ax_cv_PTHREAD_REJECT_UNKNOWN" != "xno"; then :
19180 ax_pthread_extra_flags="$ax_cv_PTHREAD_REJECT_UNKNOWN"
19181fi
be2fde87
JF
19182
19183if test x"$ax_pthread_ok" = xno; then
19184for flag in $ax_pthread_flags; do
19185
19186 case $flag in
19187 none)
19188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
19189$as_echo_n "checking whether pthreads work without any flags... " >&6; }
19190 ;;
19191
2ca4dab3
JF
19192 -mt,pthread)
19193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
19194$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
19195 PTHREAD_CFLAGS="-mt"
19196 PTHREAD_LIBS="-lpthread"
19197 ;;
19198
be2fde87
JF
19199 -*)
19200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
19201$as_echo_n "checking whether pthreads work with $flag... " >&6; }
19202 PTHREAD_CFLAGS="$flag"
19203 ;;
19204
19205 pthread-config)
19206 # Extract the first word of "pthread-config", so it can be a program name with args.
19207set dummy pthread-config; ac_word=$2
19208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19209$as_echo_n "checking for $ac_word... " >&6; }
19210if ${ac_cv_prog_ax_pthread_config+:} false; then :
19211 $as_echo_n "(cached) " >&6
19212else
19213 if test -n "$ax_pthread_config"; then
19214 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
19215else
19216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19217for as_dir in $PATH
19218do
19219 IFS=$as_save_IFS
19220 test -z "$as_dir" && as_dir=.
19221 for ac_exec_ext in '' $ac_executable_extensions; do
19222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19223 ac_cv_prog_ax_pthread_config="yes"
19224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19225 break 2
19226 fi
19227done
19228 done
19229IFS=$as_save_IFS
19230
19231 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
19232fi
19233fi
19234ax_pthread_config=$ac_cv_prog_ax_pthread_config
19235if test -n "$ax_pthread_config"; then
19236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
19237$as_echo "$ax_pthread_config" >&6; }
19238else
19239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19240$as_echo "no" >&6; }
19241fi
19242
19243
19244 if test x"$ax_pthread_config" = xno; then continue; fi
19245 PTHREAD_CFLAGS="`pthread-config --cflags`"
19246 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19247 ;;
19248
19249 *)
19250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
19251$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
19252 PTHREAD_LIBS="-l$flag"
19253 ;;
19254 esac
19255
19256 save_LIBS="$LIBS"
19257 save_CFLAGS="$CFLAGS"
19258 LIBS="$PTHREAD_LIBS $LIBS"
19259 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
19260
19261 # Check for various functions. We must include pthread.h,
19262 # since some functions may be macros. (On the Sequent, we
19263 # need a special flag -Kthread to make this header compile.)
19264 # We check for pthread_join because it is in -lpthread on IRIX
19265 # while pthread_create is in libc. We check for pthread_attr_init
19266 # due to DEC craziness with -lpthreads. We check for
19267 # pthread_cleanup_push because it is one of the few pthread
19268 # functions on Solaris that doesn't have a non-functional libc stub.
19269 # We try pthread_create on general principles.
19270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19271/* end confdefs.h. */
19272#include <pthread.h>
19273 static void routine(void *a) { a = 0; }
19274 static void *start_routine(void *a) { return a; }
19275int
19276main ()
19277{
19278pthread_t th; pthread_attr_t attr;
19279 pthread_create(&th, 0, start_routine, 0);
19280 pthread_join(th, 0);
19281 pthread_attr_init(&attr);
19282 pthread_cleanup_push(routine, 0);
19283 pthread_cleanup_pop(0) /* ; */
19284 ;
19285 return 0;
19286}
19287_ACEOF
19288if ac_fn_c_try_link "$LINENO"; then :
19289 ax_pthread_ok=yes
19290fi
19291rm -f core conftest.err conftest.$ac_objext \
19292 conftest$ac_exeext conftest.$ac_ext
19293
19294 LIBS="$save_LIBS"
19295 CFLAGS="$save_CFLAGS"
19296
19297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19298$as_echo "$ax_pthread_ok" >&6; }
19299 if test "x$ax_pthread_ok" = xyes; then
19300 break;
19301 fi
19302
19303 PTHREAD_LIBS=""
19304 PTHREAD_CFLAGS=""
19305done
19306fi
19307
19308# Various other checks:
19309if test "x$ax_pthread_ok" = xyes; then
19310 save_LIBS="$LIBS"
19311 LIBS="$PTHREAD_LIBS $LIBS"
19312 save_CFLAGS="$CFLAGS"
19313 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19314
19315 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
19316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
19317$as_echo_n "checking for joinable pthread attribute... " >&6; }
2ca4dab3
JF
19318if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
19319 $as_echo_n "(cached) " >&6
19320else
19321 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
19322 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
19323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
be2fde87
JF
19324/* end confdefs.h. */
19325#include <pthread.h>
19326int
19327main ()
19328{
19329int attr = $attr; return attr /* ; */
19330 ;
19331 return 0;
19332}
19333_ACEOF
19334if ac_fn_c_try_link "$LINENO"; then :
2ca4dab3 19335 ax_cv_PTHREAD_JOINABLE_ATTR=$attr; break
be2fde87
JF
19336fi
19337rm -f core conftest.err conftest.$ac_objext \
19338 conftest$ac_exeext conftest.$ac_ext
2ca4dab3
JF
19339 done
19340
19341fi
19342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
19343$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
19344 if test "$ax_cv_PTHREAD_JOINABLE_ATTR" != unknown && \
19345 test "$ax_cv_PTHREAD_JOINABLE_ATTR" != PTHREAD_CREATE_JOINABLE; then :
be2fde87
JF
19346
19347cat >>confdefs.h <<_ACEOF
2ca4dab3 19348#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
be2fde87
JF
19349_ACEOF
19350
2ca4dab3 19351fi
be2fde87
JF
19352
19353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
19354$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
2ca4dab3
JF
19355if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
19356 $as_echo_n "(cached) " >&6
19357else
19358 ax_cv_PTHREAD_SPECIAL_FLAGS=no
19359 ax_pthread_special_flags_added=no
19360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19361/* end confdefs.h. */
19362
19363# if !defined(_REENTRANT) && !defined(_THREAD_SAFE)
19364 AX_PTHREAD_NEED_SPECIAL_FLAG
19365# endif
19366
19367_ACEOF
19368if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19369 $EGREP "AX_PTHREAD_NEED_SPECIAL_FLAG" >/dev/null 2>&1; then :
19370 case $host_os in
19371 aix* | freebsd*)
19372 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_THREAD_SAFE"
19373 ;;
19374 darwin* | hpux* | osf* | solaris*)
19375 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_REENTRANT"
19376 ;;
19377 esac
19378
19379fi
19380rm -f conftest*
19381
19382
19383fi
19384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
19385$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
19386 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
19387 test "x$ax_pthread_special_flags_added" != "xyes"; then :
19388 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
19389 ax_pthread_special_flags_added=yes
19390fi
be2fde87
JF
19391
19392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
19393$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
19394if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
19395 $as_echo_n "(cached) " >&6
19396else
2ca4dab3 19397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
be2fde87
JF
19398/* end confdefs.h. */
19399#include <pthread.h>
19400int
19401main ()
19402{
19403int i = PTHREAD_PRIO_INHERIT;
19404 ;
19405 return 0;
19406}
19407_ACEOF
19408if ac_fn_c_try_link "$LINENO"; then :
19409 ax_cv_PTHREAD_PRIO_INHERIT=yes
19410else
19411 ax_cv_PTHREAD_PRIO_INHERIT=no
19412fi
19413rm -f core conftest.err conftest.$ac_objext \
19414 conftest$ac_exeext conftest.$ac_ext
19415
19416fi
19417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
19418$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
19419 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
19420
19421$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
19422
19423fi
19424
19425 LIBS="$save_LIBS"
19426 CFLAGS="$save_CFLAGS"
19427
19428 # More AIX lossage: compile with *_r variant
19429 if test "x$GCC" != xyes; then
19430 case $host_os in
19431 aix*)
19432 case "x/$CC" in #(
19433 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
19434 #handle absolute path differently from PATH based program lookup
19435 case "x$CC" in #(
19436 x/*) :
19437 if as_fn_executable_p ${CC}_r; then :
19438 PTHREAD_CC="${CC}_r"
19439fi ;; #(
19440 *) :
19441 for ac_prog in ${CC}_r
19442do
19443 # Extract the first word of "$ac_prog", so it can be a program name with args.
19444set dummy $ac_prog; ac_word=$2
19445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19446$as_echo_n "checking for $ac_word... " >&6; }
19447if ${ac_cv_prog_PTHREAD_CC+:} false; then :
19448 $as_echo_n "(cached) " >&6
19449else
19450 if test -n "$PTHREAD_CC"; then
19451 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19452else
19453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19454for as_dir in $PATH
19455do
19456 IFS=$as_save_IFS
19457 test -z "$as_dir" && as_dir=.
19458 for ac_exec_ext in '' $ac_executable_extensions; do
19459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19460 ac_cv_prog_PTHREAD_CC="$ac_prog"
19461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19462 break 2
19463 fi
19464done
19465 done
19466IFS=$as_save_IFS
19467
19468fi
19469fi
19470PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19471if test -n "$PTHREAD_CC"; then
19472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
19473$as_echo "$PTHREAD_CC" >&6; }
19474else
19475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19476$as_echo "no" >&6; }
19477fi
19478
19479
19480 test -n "$PTHREAD_CC" && break
19481done
19482test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
19483 ;;
19484esac ;; #(
19485 *) :
19486 ;;
19487esac
19488 ;;
19489 esac
19490 fi
19491fi
19492
19493test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
19494
19495
19496
19497
19498
19499# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19500if test x"$ax_pthread_ok" = xyes; then
19501
19502$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
19503
19504 :
19505else
19506 ax_pthread_ok=no
19507
19508fi
19509ac_ext=cpp
19510ac_cpp='$CXXCPP $CPPFLAGS'
19511ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19512ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19513ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19514
19515
19516
19517
19518
3615a2f7 19519for cy_arch in ppc ppc64 i386 x86_64 armv6 arm64; do
abc804fa
JF
19520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -arch $cy_arch" >&5
19521$as_echo_n "checking for -arch $cy_arch... " >&6; }
19522
19523 cy_save=$CXXFLAGS
19524
19525 for element in "-arch $cy_arch"; do
19526 haveit=
19527 for x in $CXXFLAGS; do
19528
19529 acl_save_prefix="$prefix"
19530 prefix="$acl_final_prefix"
19531 acl_save_exec_prefix="$exec_prefix"
19532 exec_prefix="$acl_final_exec_prefix"
19533 eval x=\"$x\"
19534 exec_prefix="$acl_save_exec_prefix"
19535 prefix="$acl_save_prefix"
19536
19537 if test "X$x" = "X$element"; then
19538 haveit=yes
19539 break
19540 fi
19541 done
19542 if test -z "$haveit"; then
19543 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19544 fi
19545 done
19546
19547
19548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19549/* end confdefs.h. */
19550
19551int
19552main ()
19553{
19554
19555 ;
19556 return 0;
19557}
19558_ACEOF
19559if ac_fn_cxx_try_link "$LINENO"; then :
19560 cy_good=1
19561else
19562 cy_good=0
19563fi
19564rm -f core conftest.err conftest.$ac_objext \
19565 conftest$ac_exeext conftest.$ac_ext
19566
19567 CXXFLAGS=$cy_save
19568 if test "x$cy_good" = x1; then :
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19570$as_echo "yes" >&6; }
19571
19572 for element in "-arch $cy_arch"; do
19573 haveit=
19574 for x in $CY_ARCH; do
19575
19576 acl_save_prefix="$prefix"
19577 prefix="$acl_final_prefix"
19578 acl_save_exec_prefix="$exec_prefix"
19579 exec_prefix="$acl_final_exec_prefix"
19580 eval x=\"$x\"
19581 exec_prefix="$acl_save_exec_prefix"
19582 prefix="$acl_save_prefix"
19583
19584 if test "X$x" = "X$element"; then
19585 haveit=yes
19586 break
19587 fi
19588 done
19589 if test -z "$haveit"; then
19590 CY_ARCH="${CY_ARCH}${CY_ARCH:+ }$element"
19591 fi
19592 done
19593
19594
19595else
19596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19597$as_echo "no" >&6; }
19598fi
19599
19600done
19601
19602
babf7fe8
JF
19603
19604
19605
19606
19607# Check whether --enable-javascript was given.
19608if test "${enable_javascript+set}" = set; then :
19609 enableval=$enable_javascript;
19610 case $enableval in #(
19611 yes) :
19612
19613
19614
19615
19616 cy_save=$LIBS
19617 LIBS=
9918a0fa
JF
19618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
19619$as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
19620if ${ac_cv_search_JSEvaluateScript+:} false; then :
19621 $as_echo_n "(cached) " >&6
19622else
19623 ac_func_search_save_LIBS=$LIBS
19624cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19625/* end confdefs.h. */
19626
19627/* Override any GCC internal prototype to avoid an error.
19628 Use char because int might match the return type of a GCC
19629 builtin and then its argument prototype would still apply. */
19630#ifdef __cplusplus
19631extern "C"
19632#endif
19633char JSEvaluateScript ();
19634int
19635main ()
19636{
19637return JSEvaluateScript ();
19638 ;
19639 return 0;
19640}
19641_ACEOF
19642for ac_lib in '' JavaScriptCore; do
19643 if test -z "$ac_lib"; then
19644 ac_res="none required"
19645 else
19646 ac_res=-l$ac_lib
19647 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19648 fi
19649 if ac_fn_cxx_try_link "$LINENO"; then :
19650 ac_cv_search_JSEvaluateScript=$ac_res
19651fi
19652rm -f core conftest.err conftest.$ac_objext \
19653 conftest$ac_exeext
19654 if ${ac_cv_search_JSEvaluateScript+:} false; then :
19655 break
19656fi
19657done
19658if ${ac_cv_search_JSEvaluateScript+:} false; then :
19659
19660else
19661 ac_cv_search_JSEvaluateScript=no
19662fi
19663rm conftest.$ac_ext
19664LIBS=$ac_func_search_save_LIBS
19665fi
19666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
19667$as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
19668ac_res=$ac_cv_search_JSEvaluateScript
19669if test "$ac_res" != no; then :
19670 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19671
19672 CY_EXECUTE=1
19673
19674
19675else
babf7fe8
JF
19676
19677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
19678$as_echo_n "checking for framework JavaScriptCore... " >&6; }
19679if ${ac_cv_framework_JavaScriptCore+:} false; then :
19680 $as_echo_n "(cached) " >&6
19681else
19682
19683 ac_check_framework_save_LIBS=$LIBS
19684 LIBS="-framework JavaScriptCore $LIBS"
19685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19686/* end confdefs.h. */
19687
19688 #include <JavaScriptCore/JSBase.h>
19689
19690int
19691main ()
19692{
19693
19694 JSEvaluateScript(0, 0, 0, 0, 0, 0);
19695
19696 ;
19697 return 0;
19698}
19699_ACEOF
19700if ac_fn_cxx_try_link "$LINENO"; then :
19701
19702 ac_cv_framework_JavaScriptCore=yes
19703
19704else
19705 ac_cv_framework_JavaScriptCore=no
19706fi
19707rm -f core conftest.err conftest.$ac_objext \
19708 conftest$ac_exeext conftest.$ac_ext
19709 LIBS=$ac_check_framework_save_LIBS
19710
19711fi
19712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
19713$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
19714 if test $ac_cv_framework_JavaScriptCore = yes; then :
19715
19716
19717 for element in "-framework JavaScriptCore"; do
19718 haveit=
19719 for x in $LIBS; do
19720
19721 acl_save_prefix="$prefix"
19722 prefix="$acl_final_prefix"
19723 acl_save_exec_prefix="$exec_prefix"
19724 exec_prefix="$acl_final_exec_prefix"
19725 eval x=\"$x\"
19726 exec_prefix="$acl_save_exec_prefix"
19727 prefix="$acl_save_prefix"
19728
19729 if test "X$x" = "X$element"; then
19730 haveit=yes
19731 break
19732 fi
19733 done
19734 if test -z "$haveit"; then
19735 LIBS="${LIBS}${LIBS:+ }$element"
19736 fi
19737 done
19738
19739
19740 CY_EXECUTE=1
19741
19742
19743
19744else
19745
19746 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
19747
19748pkg_failed=no
19749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
7eda51e0 19750$as_echo_n "checking for WEBKIT... " >&6; }
5053a6d1 19751
7eda51e0
JF
19752if test -n "$WEBKIT_CFLAGS"; then
19753 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
19754 elif test -n "$PKG_CONFIG"; then
19755 if test -n "$PKG_CONFIG" && \
19756 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
19757 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
19758 ac_status=$?
19759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19760 test $ac_status = 0; }; then
19761 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
83c6fec8 19762 test "x$?" != "x0" && pkg_failed=yes
7eda51e0
JF
19763else
19764 pkg_failed=yes
19765fi
19766 else
19767 pkg_failed=untried
19768fi
19769if test -n "$WEBKIT_LIBS"; then
19770 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
19771 elif test -n "$PKG_CONFIG"; then
19772 if test -n "$PKG_CONFIG" && \
19773 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
19774 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
19775 ac_status=$?
19776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19777 test $ac_status = 0; }; then
19778 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
83c6fec8 19779 test "x$?" != "x0" && pkg_failed=yes
7eda51e0
JF
19780else
19781 pkg_failed=yes
19782fi
19783 else
19784 pkg_failed=untried
19785fi
632b71ea 19786
7eda51e0
JF
19787
19788
19789if test $pkg_failed = yes; then
19790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19791$as_echo "no" >&6; }
19792
19793if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19794 _pkg_short_errors_supported=yes
19795else
19796 _pkg_short_errors_supported=no
19797fi
19798 if test $_pkg_short_errors_supported = yes; then
83c6fec8 19799 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
7eda51e0 19800 else
83c6fec8 19801 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
7eda51e0
JF
19802 fi
19803 # Put the nasty error message in config.log where it belongs
19804 echo "$WEBKIT_PKG_ERRORS" >&5
19805
19806 :
19807elif test $pkg_failed = untried; then
19808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19809$as_echo "no" >&6; }
19810 :
19811else
19812 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
19813 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
19814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19815$as_echo "yes" >&6; }
19816
19817 CY_EXECUTE=1
19818
19819
7eda51e0
JF
19820 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
19821 haveit=
d70419f1 19822 for x in $CPPFLAGS; do
5053a6d1 19823
7eda51e0
JF
19824 acl_save_prefix="$prefix"
19825 prefix="$acl_final_prefix"
19826 acl_save_exec_prefix="$exec_prefix"
19827 exec_prefix="$acl_final_exec_prefix"
19828 eval x=\"$x\"
19829 exec_prefix="$acl_save_exec_prefix"
19830 prefix="$acl_save_prefix"
5053a6d1 19831
7eda51e0
JF
19832 if test "X$x" = "X$element"; then
19833 haveit=yes
19834 break
19835 fi
19836 done
19837 if test -z "$haveit"; then
d70419f1 19838 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7eda51e0
JF
19839 fi
19840 done
5053a6d1 19841
5053a6d1 19842
7eda51e0 19843 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
632b71ea 19844 haveit=
5053a6d1 19845 for x in $LIBS; do
9c60689e 19846
632b71ea
DWT
19847 acl_save_prefix="$prefix"
19848 prefix="$acl_final_prefix"
19849 acl_save_exec_prefix="$exec_prefix"
19850 exec_prefix="$acl_final_exec_prefix"
19851 eval x=\"$x\"
19852 exec_prefix="$acl_save_exec_prefix"
19853 prefix="$acl_save_prefix"
19854
19855 if test "X$x" = "X$element"; then
19856 haveit=yes
19857 break
19858 fi
19859 done
19860 if test -z "$haveit"; then
5053a6d1 19861 LIBS="${LIBS}${LIBS:+ }$element"
632b71ea
DWT
19862 fi
19863 done
b128dfee 19864
66170b30 19865
7eda51e0
JF
19866fi; if test "x$CY_EXECUTE" = x1; then break; fi
19867 done
5053a6d1
DWT
19868
19869fi
9918a0fa
JF
19870fi
19871
babf7fe8
JF
19872 LTJAVASCRIPTCORE=$LIBS
19873 LIBS=$cy_save
19874
19875
7eda51e0 19876 ;; #(
babf7fe8 19877 no) :
7eda51e0 19878
babf7fe8
JF
19879 CY_EXECUTE=0
19880 ;; #(
19881 JavaScriptCore) :
c823f118 19882
5053a6d1
DWT
19883
19884
babf7fe8
JF
19885 cy_save=$LIBS
19886 LIBS=
9918a0fa
JF
19887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
19888$as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
19889if ${ac_cv_search_JSEvaluateScript+:} false; then :
19890 $as_echo_n "(cached) " >&6
19891else
19892 ac_func_search_save_LIBS=$LIBS
19893cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19894/* end confdefs.h. */
19895
19896/* Override any GCC internal prototype to avoid an error.
19897 Use char because int might match the return type of a GCC
19898 builtin and then its argument prototype would still apply. */
19899#ifdef __cplusplus
19900extern "C"
19901#endif
19902char JSEvaluateScript ();
19903int
19904main ()
19905{
19906return JSEvaluateScript ();
19907 ;
19908 return 0;
19909}
19910_ACEOF
19911for ac_lib in '' JavaScriptCore; do
19912 if test -z "$ac_lib"; then
19913 ac_res="none required"
19914 else
19915 ac_res=-l$ac_lib
19916 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19917 fi
19918 if ac_fn_cxx_try_link "$LINENO"; then :
19919 ac_cv_search_JSEvaluateScript=$ac_res
19920fi
19921rm -f core conftest.err conftest.$ac_objext \
19922 conftest$ac_exeext
19923 if ${ac_cv_search_JSEvaluateScript+:} false; then :
19924 break
19925fi
19926done
19927if ${ac_cv_search_JSEvaluateScript+:} false; then :
19928
19929else
19930 ac_cv_search_JSEvaluateScript=no
19931fi
19932rm conftest.$ac_ext
19933LIBS=$ac_func_search_save_LIBS
19934fi
19935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
19936$as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
19937ac_res=$ac_cv_search_JSEvaluateScript
19938if test "$ac_res" != no; then :
19939 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19940
19941 CY_EXECUTE=1
19942
19943
19944else
babf7fe8 19945
5053a6d1
DWT
19946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
19947$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 19948if ${ac_cv_framework_JavaScriptCore+:} false; then :
c823f118
DWT
19949 $as_echo_n "(cached) " >&6
19950else
19951
5053a6d1
DWT
19952 ac_check_framework_save_LIBS=$LIBS
19953 LIBS="-framework JavaScriptCore $LIBS"
19954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
632b71ea 19955/* end confdefs.h. */
5053a6d1 19956
7eda51e0 19957 #include <JavaScriptCore/JSBase.h>
5053a6d1 19958
632b71ea
DWT
19959int
19960main ()
19961{
66170b30 19962
7eda51e0 19963 JSEvaluateScript(0, 0, 0, 0, 0, 0);
66170b30 19964
632b71ea
DWT
19965 ;
19966 return 0;
19967}
19968_ACEOF
5053a6d1
DWT
19969if ac_fn_cxx_try_link "$LINENO"; then :
19970
19971 ac_cv_framework_JavaScriptCore=yes
19972
19973else
19974 ac_cv_framework_JavaScriptCore=no
632b71ea
DWT
19975fi
19976rm -f core conftest.err conftest.$ac_objext \
19977 conftest$ac_exeext conftest.$ac_ext
5053a6d1 19978 LIBS=$ac_check_framework_save_LIBS
b128dfee 19979
c823f118 19980fi
5053a6d1
DWT
19981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
19982$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
19983 if test $ac_cv_framework_JavaScriptCore = yes; then :
c823f118
DWT
19984
19985
7eda51e0 19986 for element in "-framework JavaScriptCore"; do
5053a6d1
DWT
19987 haveit=
19988 for x in $LIBS; do
19989
19990 acl_save_prefix="$prefix"
19991 prefix="$acl_final_prefix"
19992 acl_save_exec_prefix="$exec_prefix"
19993 exec_prefix="$acl_final_exec_prefix"
19994 eval x=\"$x\"
19995 exec_prefix="$acl_save_exec_prefix"
19996 prefix="$acl_save_prefix"
19997
19998 if test "X$x" = "X$element"; then
19999 haveit=yes
20000 break
20001 fi
20002 done
20003 if test -z "$haveit"; then
20004 LIBS="${LIBS}${LIBS:+ }$element"
20005 fi
20006 done
c823f118 20007
66170b30 20008
7eda51e0
JF
20009 CY_EXECUTE=1
20010
20011
20012
20013else
20014
20015 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
20016
20017pkg_failed=no
20018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
20019$as_echo_n "checking for WEBKIT... " >&6; }
20020
20021if test -n "$WEBKIT_CFLAGS"; then
20022 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
20023 elif test -n "$PKG_CONFIG"; then
20024 if test -n "$PKG_CONFIG" && \
20025 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
20026 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
20027 ac_status=$?
20028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20029 test $ac_status = 0; }; then
20030 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
83c6fec8 20031 test "x$?" != "x0" && pkg_failed=yes
7eda51e0
JF
20032else
20033 pkg_failed=yes
20034fi
20035 else
20036 pkg_failed=untried
20037fi
20038if test -n "$WEBKIT_LIBS"; then
20039 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
20040 elif test -n "$PKG_CONFIG"; then
20041 if test -n "$PKG_CONFIG" && \
20042 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
20043 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
20044 ac_status=$?
20045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20046 test $ac_status = 0; }; then
20047 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
83c6fec8 20048 test "x$?" != "x0" && pkg_failed=yes
7eda51e0
JF
20049else
20050 pkg_failed=yes
20051fi
20052 else
20053 pkg_failed=untried
20054fi
20055
66170b30
JF
20056
20057
7eda51e0
JF
20058if test $pkg_failed = yes; then
20059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20060$as_echo "no" >&6; }
b128dfee 20061
7eda51e0
JF
20062if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20063 _pkg_short_errors_supported=yes
20064else
20065 _pkg_short_errors_supported=no
632b71ea 20066fi
7eda51e0 20067 if test $_pkg_short_errors_supported = yes; then
83c6fec8 20068 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
7eda51e0 20069 else
83c6fec8 20070 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
7eda51e0
JF
20071 fi
20072 # Put the nasty error message in config.log where it belongs
20073 echo "$WEBKIT_PKG_ERRORS" >&5
c823f118 20074
7eda51e0
JF
20075 :
20076elif test $pkg_failed = untried; then
20077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20078$as_echo "no" >&6; }
20079 :
5053a6d1
DWT
20080else
20081 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
20082 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
20083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20084$as_echo "yes" >&6; }
c823f118 20085
7eda51e0
JF
20086 CY_EXECUTE=1
20087
66170b30 20088
7eda51e0 20089 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
5053a6d1 20090 haveit=
d70419f1 20091 for x in $CPPFLAGS; do
c823f118 20092
5053a6d1
DWT
20093 acl_save_prefix="$prefix"
20094 prefix="$acl_final_prefix"
20095 acl_save_exec_prefix="$exec_prefix"
20096 exec_prefix="$acl_final_exec_prefix"
20097 eval x=\"$x\"
20098 exec_prefix="$acl_save_exec_prefix"
20099 prefix="$acl_save_prefix"
c823f118 20100
5053a6d1
DWT
20101 if test "X$x" = "X$element"; then
20102 haveit=yes
20103 break
20104 fi
20105 done
20106 if test -z "$haveit"; then
d70419f1 20107 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5053a6d1
DWT
20108 fi
20109 done
c823f118 20110
b66977f1 20111
7eda51e0 20112 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
5053a6d1
DWT
20113 haveit=
20114 for x in $LIBS; do
20115
20116 acl_save_prefix="$prefix"
20117 prefix="$acl_final_prefix"
20118 acl_save_exec_prefix="$exec_prefix"
20119 exec_prefix="$acl_final_exec_prefix"
20120 eval x=\"$x\"
20121 exec_prefix="$acl_save_exec_prefix"
20122 prefix="$acl_save_prefix"
20123
20124 if test "X$x" = "X$element"; then
20125 haveit=yes
20126 break
20127 fi
20128 done
20129 if test -z "$haveit"; then
20130 LIBS="${LIBS}${LIBS:+ }$element"
20131 fi
20132 done
20133
20134
7eda51e0
JF
20135fi; if test "x$CY_EXECUTE" = x1; then break; fi
20136 done
20137
5053a6d1 20138fi
9918a0fa
JF
20139fi
20140
babf7fe8
JF
20141 LTJAVASCRIPTCORE=$LIBS
20142 LIBS=$cy_save
5053a6d1 20143
b66977f1 20144
babf7fe8
JF
20145 ;; #(
20146 *) :
20147 as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;;
20148esac
b66977f1 20149
babf7fe8 20150else
b66977f1 20151
7eda51e0 20152
7eda51e0 20153
babf7fe8
JF
20154 cy_save=$LIBS
20155 LIBS=
9918a0fa
JF
20156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
20157$as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
20158if ${ac_cv_search_JSEvaluateScript+:} false; then :
20159 $as_echo_n "(cached) " >&6
20160else
20161 ac_func_search_save_LIBS=$LIBS
20162cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20163/* end confdefs.h. */
20164
20165/* Override any GCC internal prototype to avoid an error.
20166 Use char because int might match the return type of a GCC
20167 builtin and then its argument prototype would still apply. */
20168#ifdef __cplusplus
20169extern "C"
20170#endif
20171char JSEvaluateScript ();
20172int
20173main ()
20174{
20175return JSEvaluateScript ();
20176 ;
20177 return 0;
20178}
20179_ACEOF
20180for ac_lib in '' JavaScriptCore; do
20181 if test -z "$ac_lib"; then
20182 ac_res="none required"
20183 else
20184 ac_res=-l$ac_lib
20185 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20186 fi
20187 if ac_fn_cxx_try_link "$LINENO"; then :
20188 ac_cv_search_JSEvaluateScript=$ac_res
20189fi
20190rm -f core conftest.err conftest.$ac_objext \
20191 conftest$ac_exeext
20192 if ${ac_cv_search_JSEvaluateScript+:} false; then :
20193 break
20194fi
20195done
20196if ${ac_cv_search_JSEvaluateScript+:} false; then :
20197
20198else
20199 ac_cv_search_JSEvaluateScript=no
20200fi
20201rm conftest.$ac_ext
20202LIBS=$ac_func_search_save_LIBS
20203fi
20204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
20205$as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
20206ac_res=$ac_cv_search_JSEvaluateScript
20207if test "$ac_res" != no; then :
20208 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20209
20210 CY_EXECUTE=1
20211
20212
20213else
7eda51e0 20214
babf7fe8
JF
20215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
20216$as_echo_n "checking for framework JavaScriptCore... " >&6; }
20217if ${ac_cv_framework_JavaScriptCore+:} false; then :
20218 $as_echo_n "(cached) " >&6
20219else
7eda51e0 20220
babf7fe8
JF
20221 ac_check_framework_save_LIBS=$LIBS
20222 LIBS="-framework JavaScriptCore $LIBS"
20223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20224/* end confdefs.h. */
7eda51e0 20225
babf7fe8 20226 #include <JavaScriptCore/JSBase.h>
7eda51e0 20227
babf7fe8
JF
20228int
20229main ()
20230{
7eda51e0 20231
babf7fe8 20232 JSEvaluateScript(0, 0, 0, 0, 0, 0);
7eda51e0 20233
babf7fe8
JF
20234 ;
20235 return 0;
20236}
20237_ACEOF
20238if ac_fn_cxx_try_link "$LINENO"; then :
7eda51e0 20239
babf7fe8 20240 ac_cv_framework_JavaScriptCore=yes
b66977f1 20241
b66977f1 20242else
babf7fe8
JF
20243 ac_cv_framework_JavaScriptCore=no
20244fi
20245rm -f core conftest.err conftest.$ac_objext \
20246 conftest$ac_exeext conftest.$ac_ext
20247 LIBS=$ac_check_framework_save_LIBS
7eda51e0 20248
babf7fe8
JF
20249fi
20250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
20251$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
20252 if test $ac_cv_framework_JavaScriptCore = yes; then :
7eda51e0 20253
7eda51e0 20254
babf7fe8
JF
20255 for element in "-framework JavaScriptCore"; do
20256 haveit=
20257 for x in $LIBS; do
20258
20259 acl_save_prefix="$prefix"
20260 prefix="$acl_final_prefix"
20261 acl_save_exec_prefix="$exec_prefix"
20262 exec_prefix="$acl_final_exec_prefix"
20263 eval x=\"$x\"
20264 exec_prefix="$acl_save_exec_prefix"
20265 prefix="$acl_save_prefix"
20266
20267 if test "X$x" = "X$element"; then
20268 haveit=yes
20269 break
20270 fi
20271 done
20272 if test -z "$haveit"; then
20273 LIBS="${LIBS}${LIBS:+ }$element"
20274 fi
20275 done
20276
20277
20278 CY_EXECUTE=1
20279
20280
20281
20282else
20283
20284 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
20285
20286pkg_failed=no
20287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
20288$as_echo_n "checking for WEBKIT... " >&6; }
20289
20290if test -n "$WEBKIT_CFLAGS"; then
20291 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
20292 elif test -n "$PKG_CONFIG"; then
20293 if test -n "$PKG_CONFIG" && \
20294 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
20295 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
20296 ac_status=$?
20297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20298 test $ac_status = 0; }; then
20299 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
83c6fec8 20300 test "x$?" != "x0" && pkg_failed=yes
babf7fe8
JF
20301else
20302 pkg_failed=yes
20303fi
20304 else
20305 pkg_failed=untried
20306fi
20307if test -n "$WEBKIT_LIBS"; then
20308 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
20309 elif test -n "$PKG_CONFIG"; then
20310 if test -n "$PKG_CONFIG" && \
20311 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
20312 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
20313 ac_status=$?
20314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20315 test $ac_status = 0; }; then
20316 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
83c6fec8 20317 test "x$?" != "x0" && pkg_failed=yes
babf7fe8
JF
20318else
20319 pkg_failed=yes
20320fi
20321 else
20322 pkg_failed=untried
20323fi
20324
20325
20326
20327if test $pkg_failed = yes; then
20328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20329$as_echo "no" >&6; }
20330
20331if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20332 _pkg_short_errors_supported=yes
20333else
20334 _pkg_short_errors_supported=no
20335fi
20336 if test $_pkg_short_errors_supported = yes; then
83c6fec8 20337 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
babf7fe8 20338 else
83c6fec8 20339 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
babf7fe8
JF
20340 fi
20341 # Put the nasty error message in config.log where it belongs
20342 echo "$WEBKIT_PKG_ERRORS" >&5
20343
20344 :
20345elif test $pkg_failed = untried; then
20346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20347$as_echo "no" >&6; }
20348 :
20349else
20350 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
20351 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
20352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20353$as_echo "yes" >&6; }
20354
20355 CY_EXECUTE=1
20356
20357
20358 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
20359 haveit=
20360 for x in $CPPFLAGS; do
20361
20362 acl_save_prefix="$prefix"
20363 prefix="$acl_final_prefix"
20364 acl_save_exec_prefix="$exec_prefix"
20365 exec_prefix="$acl_final_exec_prefix"
20366 eval x=\"$x\"
20367 exec_prefix="$acl_save_exec_prefix"
20368 prefix="$acl_save_prefix"
20369
20370 if test "X$x" = "X$element"; then
20371 haveit=yes
20372 break
20373 fi
20374 done
20375 if test -z "$haveit"; then
20376 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20377 fi
20378 done
20379
20380
20381 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
20382 haveit=
20383 for x in $LIBS; do
20384
20385 acl_save_prefix="$prefix"
20386 prefix="$acl_final_prefix"
20387 acl_save_exec_prefix="$exec_prefix"
20388 exec_prefix="$acl_final_exec_prefix"
20389 eval x=\"$x\"
20390 exec_prefix="$acl_save_exec_prefix"
20391 prefix="$acl_save_prefix"
20392
20393 if test "X$x" = "X$element"; then
20394 haveit=yes
20395 break
20396 fi
20397 done
20398 if test -z "$haveit"; then
20399 LIBS="${LIBS}${LIBS:+ }$element"
20400 fi
20401 done
20402
20403
20404fi; if test "x$CY_EXECUTE" = x1; then break; fi
20405 done
20406
20407fi
9918a0fa
JF
20408fi
20409
babf7fe8
JF
20410 LTJAVASCRIPTCORE=$LIBS
20411 LIBS=$cy_save
20412
20413
20414
20415fi
20416
20417
a93f15c0
JF
20418# Check whether --enable-console was given.
20419if test "${enable_console+set}" = set; then :
20420 enableval=$enable_console;
20421fi
20422
20423 if test "x$enable_console" != "xno"; then
20424 CY_CONSOLE_TRUE=
20425 CY_CONSOLE_FALSE='#'
20426else
20427 CY_CONSOLE_TRUE='#'
20428 CY_CONSOLE_FALSE=
20429fi
20430
20431
a4287117
JF
20432# Check whether --enable-attach was given.
20433if test "${enable_attach+set}" = set; then :
20434 enableval=$enable_attach;
20435fi
20436
20437 if test "x$enable_attach" != "xno" -a "x$CY_EXECUTE" = x1; then
20438 CY_ATTACH_TRUE=
20439 CY_ATTACH_FALSE='#'
20440else
20441 CY_ATTACH_TRUE='#'
20442 CY_ATTACH_FALSE=
20443fi
20444
20445
7eda51e0
JF
20446
20447
20448 if test "x$CY_EXECUTE" = x1; then
20449 CY_EXECUTE_TRUE=
20450 CY_EXECUTE_FALSE='#'
b66977f1 20451else
7eda51e0
JF
20452 CY_EXECUTE_TRUE='#'
20453 CY_EXECUTE_FALSE=
b66977f1
DWT
20454fi
20455
20456
20457
7eda51e0
JF
20458case $CY_EXECUTE in #(
20459 1) :
20460
20461 for ac_header in ffi.h ffi/ffi.h
20462do :
20463 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20464ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20465if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20466 cat >>confdefs.h <<_ACEOF
20467#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20468_ACEOF
20469 break
b66977f1 20470fi
7eda51e0
JF
20471
20472done
20473
296ee9a6
JF
20474
20475
20476 cy_save=$LIBS
20477 LIBS=
7eda51e0 20478 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
b66977f1 20479
b66977f1 20480
296ee9a6
JF
20481 LIBFFI_CFLAGS
20482 C compiler flags for LIBFFI, overriding pkg-config
20483 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
b66977f1
DWT
20484
20485pkg_failed=no
7eda51e0
JF
20486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
20487$as_echo_n "checking for LIBFFI... " >&6; }
b66977f1 20488
7eda51e0
JF
20489if test -n "$LIBFFI_CFLAGS"; then
20490 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
12833ad8
JF
20491 elif test -n "$PKG_CONFIG"; then
20492 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
20493 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
20494 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
20495 ac_status=$?
20496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20497 test $ac_status = 0; }; then
7eda51e0 20498 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
83c6fec8 20499 test "x$?" != "x0" && pkg_failed=yes
b66977f1
DWT
20500else
20501 pkg_failed=yes
20502fi
12833ad8
JF
20503 else
20504 pkg_failed=untried
b66977f1 20505fi
7eda51e0
JF
20506if test -n "$LIBFFI_LIBS"; then
20507 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
12833ad8
JF
20508 elif test -n "$PKG_CONFIG"; then
20509 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
20510 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
20511 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
20512 ac_status=$?
20513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20514 test $ac_status = 0; }; then
7eda51e0 20515 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
83c6fec8 20516 test "x$?" != "x0" && pkg_failed=yes
b66977f1
DWT
20517else
20518 pkg_failed=yes
20519fi
12833ad8
JF
20520 else
20521 pkg_failed=untried
b66977f1
DWT
20522fi
20523
20524
20525
20526if test $pkg_failed = yes; then
12833ad8
JF
20527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20528$as_echo "no" >&6; }
b66977f1
DWT
20529
20530if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20531 _pkg_short_errors_supported=yes
20532else
20533 _pkg_short_errors_supported=no
20534fi
20535 if test $_pkg_short_errors_supported = yes; then
83c6fec8 20536 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
b66977f1 20537 else
83c6fec8 20538 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
b66977f1
DWT
20539 fi
20540 # Put the nasty error message in config.log where it belongs
7eda51e0 20541 echo "$LIBFFI_PKG_ERRORS" >&5
b66977f1 20542
7eda51e0
JF
20543 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
20544elif test $pkg_failed = untried; then
20545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20546$as_echo "no" >&6; }
20547 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
20548else
20549 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
20550 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
20551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20552$as_echo "yes" >&6; }
b66977f1
DWT
20553
20554
7eda51e0 20555 for element in `$PKG_CONFIG --cflags libffi`; do
b66977f1 20556 haveit=
d70419f1 20557 for x in $CPPFLAGS; do
b66977f1
DWT
20558
20559 acl_save_prefix="$prefix"
20560 prefix="$acl_final_prefix"
20561 acl_save_exec_prefix="$exec_prefix"
20562 exec_prefix="$acl_final_exec_prefix"
20563 eval x=\"$x\"
20564 exec_prefix="$acl_save_exec_prefix"
20565 prefix="$acl_save_prefix"
20566
20567 if test "X$x" = "X$element"; then
20568 haveit=yes
20569 break
20570 fi
20571 done
20572 if test -z "$haveit"; then
d70419f1 20573 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
b66977f1
DWT
20574 fi
20575 done
20576
20577
7eda51e0 20578 for element in `$PKG_CONFIG --libs libffi`; do
b66977f1
DWT
20579 haveit=
20580 for x in $LIBS; do
20581
20582 acl_save_prefix="$prefix"
20583 prefix="$acl_final_prefix"
20584 acl_save_exec_prefix="$exec_prefix"
20585 exec_prefix="$acl_final_exec_prefix"
20586 eval x=\"$x\"
20587 exec_prefix="$acl_save_exec_prefix"
20588 prefix="$acl_save_prefix"
20589
20590 if test "X$x" = "X$element"; then
20591 haveit=yes
20592 break
20593 fi
20594 done
20595 if test -z "$haveit"; then
20596 LIBS="${LIBS}${LIBS:+ }$element"
20597 fi
20598 done
20599
20600
20601fi
20602
7eda51e0
JF
20603else
20604
20605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
20606$as_echo_n "checking for library containing ffi_call... " >&6; }
20607if ${ac_cv_search_ffi_call+:} false; then :
20608 $as_echo_n "(cached) " >&6
20609else
20610 ac_func_search_save_LIBS=$LIBS
20611cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20612/* end confdefs.h. */
20613
20614/* Override any GCC internal prototype to avoid an error.
20615 Use char because int might match the return type of a GCC
20616 builtin and then its argument prototype would still apply. */
20617#ifdef __cplusplus
20618extern "C"
20619#endif
20620char ffi_call ();
20621int
20622main ()
20623{
20624return ffi_call ();
20625 ;
20626 return 0;
20627}
20628_ACEOF
20629for ac_lib in '' ffi; do
20630 if test -z "$ac_lib"; then
20631 ac_res="none required"
20632 else
20633 ac_res=-l$ac_lib
20634 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20635 fi
20636 if ac_fn_cxx_try_link "$LINENO"; then :
20637 ac_cv_search_ffi_call=$ac_res
20638fi
20639rm -f core conftest.err conftest.$ac_objext \
20640 conftest$ac_exeext
20641 if ${ac_cv_search_ffi_call+:} false; then :
20642 break
20643fi
20644done
20645if ${ac_cv_search_ffi_call+:} false; then :
20646
20647else
20648 ac_cv_search_ffi_call=no
20649fi
20650rm conftest.$ac_ext
20651LIBS=$ac_func_search_save_LIBS
20652fi
20653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
20654$as_echo "$ac_cv_search_ffi_call" >&6; }
20655ac_res=$ac_cv_search_ffi_call
20656if test "$ac_res" != no; then :
20657 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20658
20659fi
20660
20661 case $ac_cv_search_ffi_call in #(
20662 no) :
b66977f1
DWT
20663
20664
20665pkg_failed=no
7eda51e0
JF
20666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
20667$as_echo_n "checking for LIBFFI... " >&6; }
b66977f1 20668
7eda51e0
JF
20669if test -n "$LIBFFI_CFLAGS"; then
20670 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
12833ad8
JF
20671 elif test -n "$PKG_CONFIG"; then
20672 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
20673 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
20674 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
20675 ac_status=$?
20676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20677 test $ac_status = 0; }; then
7eda51e0 20678 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
83c6fec8 20679 test "x$?" != "x0" && pkg_failed=yes
b66977f1
DWT
20680else
20681 pkg_failed=yes
20682fi
12833ad8
JF
20683 else
20684 pkg_failed=untried
b66977f1 20685fi
7eda51e0
JF
20686if test -n "$LIBFFI_LIBS"; then
20687 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
12833ad8
JF
20688 elif test -n "$PKG_CONFIG"; then
20689 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
20690 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
20691 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
20692 ac_status=$?
20693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20694 test $ac_status = 0; }; then
7eda51e0 20695 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
83c6fec8 20696 test "x$?" != "x0" && pkg_failed=yes
b66977f1
DWT
20697else
20698 pkg_failed=yes
20699fi
12833ad8
JF
20700 else
20701 pkg_failed=untried
b66977f1
DWT
20702fi
20703
20704
20705
20706if test $pkg_failed = yes; then
12833ad8
JF
20707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20708$as_echo "no" >&6; }
b66977f1
DWT
20709
20710if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20711 _pkg_short_errors_supported=yes
20712else
20713 _pkg_short_errors_supported=no
20714fi
20715 if test $_pkg_short_errors_supported = yes; then
83c6fec8 20716 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
b66977f1 20717 else
83c6fec8 20718 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
b66977f1
DWT
20719 fi
20720 # Put the nasty error message in config.log where it belongs
7eda51e0 20721 echo "$LIBFFI_PKG_ERRORS" >&5
b66977f1 20722
7eda51e0
JF
20723 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
20724elif test $pkg_failed = untried; then
20725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20726$as_echo "no" >&6; }
20727 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
b66977f1 20728else
7eda51e0
JF
20729 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
20730 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
20731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20732$as_echo "yes" >&6; }
b66977f1 20733
b66977f1 20734
7eda51e0 20735 for element in `$PKG_CONFIG --cflags libffi`; do
b66977f1 20736 haveit=
d70419f1 20737 for x in $CPPFLAGS; do
7eda51e0
JF
20738
20739 acl_save_prefix="$prefix"
20740 prefix="$acl_final_prefix"
20741 acl_save_exec_prefix="$exec_prefix"
20742 exec_prefix="$acl_final_exec_prefix"
20743 eval x=\"$x\"
20744 exec_prefix="$acl_save_exec_prefix"
20745 prefix="$acl_save_prefix"
20746
20747 if test "X$x" = "X$element"; then
20748 haveit=yes
20749 break
20750 fi
20751 done
20752 if test -z "$haveit"; then
d70419f1 20753 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7eda51e0
JF
20754 fi
20755 done
20756
20757
7eda51e0
JF
20758 for element in `$PKG_CONFIG --libs libffi`; do
20759 haveit=
20760 for x in $LIBS; do
20761
20762 acl_save_prefix="$prefix"
20763 prefix="$acl_final_prefix"
20764 acl_save_exec_prefix="$exec_prefix"
20765 exec_prefix="$acl_final_exec_prefix"
20766 eval x=\"$x\"
20767 exec_prefix="$acl_save_exec_prefix"
20768 prefix="$acl_save_prefix"
20769
20770 if test "X$x" = "X$element"; then
20771 haveit=yes
20772 break
20773 fi
20774 done
20775 if test -z "$haveit"; then
20776 LIBS="${LIBS}${LIBS:+ }$element"
20777 fi
20778 done
20779
20780
20781fi ;; #(
20782 *) :
20783 ;;
20784esac
20785
20786fi
296ee9a6
JF
20787 LTLIBFFI=$LIBS
20788 LIBS=$cy_save
20789
20790
7eda51e0 20791
39ed1631
JF
20792 ac_fn_cxx_check_header_mongrel "$LINENO" "jni.h" "ac_cv_header_jni_h" "$ac_includes_default"
20793if test "x$ac_cv_header_jni_h" = xyes; then :
20794
20795 CY_JAVA=1
20796
20797
20798 cy_save=$LIBS
20799 LIBS=
20800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JNI_GetCreatedJavaVMs" >&5
20801$as_echo_n "checking for library containing JNI_GetCreatedJavaVMs... " >&6; }
20802if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
20803 $as_echo_n "(cached) " >&6
20804else
20805 ac_func_search_save_LIBS=$LIBS
20806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20807/* end confdefs.h. */
20808
20809/* Override any GCC internal prototype to avoid an error.
20810 Use char because int might match the return type of a GCC
20811 builtin and then its argument prototype would still apply. */
20812#ifdef __cplusplus
20813extern "C"
20814#endif
20815char JNI_GetCreatedJavaVMs ();
20816int
20817main ()
20818{
20819return JNI_GetCreatedJavaVMs ();
20820 ;
20821 return 0;
20822}
20823_ACEOF
20824for ac_lib in '' dvm; do
20825 if test -z "$ac_lib"; then
20826 ac_res="none required"
20827 else
20828 ac_res=-l$ac_lib
20829 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20830 fi
20831 if ac_fn_cxx_try_link "$LINENO"; then :
20832 ac_cv_search_JNI_GetCreatedJavaVMs=$ac_res
20833fi
20834rm -f core conftest.err conftest.$ac_objext \
20835 conftest$ac_exeext
20836 if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
20837 break
20838fi
20839done
20840if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
20841
20842else
20843 ac_cv_search_JNI_GetCreatedJavaVMs=no
20844fi
20845rm conftest.$ac_ext
20846LIBS=$ac_func_search_save_LIBS
20847fi
20848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JNI_GetCreatedJavaVMs" >&5
20849$as_echo "$ac_cv_search_JNI_GetCreatedJavaVMs" >&6; }
20850ac_res=$ac_cv_search_JNI_GetCreatedJavaVMs
20851if test "$ac_res" != no; then :
20852 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20853
20854
20855fi
20856
20857 LTJAVA=$LIBS
20858 LIBS=$cy_save
20859
20860
20861
20862else
20863
20864 CY_JAVA=0
20865
20866
20867fi
20868
20869
20870
7eda51e0
JF
20871 ac_ext=mm
20872ac_cpp='$OBJCXXCPP $CPPFLAGS'
20873ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20874ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20875ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
20876
20877
20878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
20879$as_echo_n "checking if we really have Objective C++... " >&6; }
20880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20881/* end confdefs.h. */
20882
20883_ACEOF
20884if ac_fn_objcxx_try_compile "$LINENO"; then :
20885
20886 CY_OBJECTIVEC=1
20887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20888$as_echo "yes" >&6; }
20889
20890else
20891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833ad8 20892$as_echo "no" >&6; }
7eda51e0
JF
20893fi
20894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b66977f1 20895
7eda51e0 20896 if test "x$CY_OBJECTIVEC" = x1; then :
b66977f1 20897
7eda51e0 20898
babf7fe8
JF
20899 cy_save=$LIBS
20900 LIBS=
20901
7eda51e0
JF
20902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
20903$as_echo_n "checking for framework CoreFoundation... " >&6; }
20904if ${ac_cv_framework_CoreFoundation+:} false; then :
b66977f1
DWT
20905 $as_echo_n "(cached) " >&6
20906else
20907
20908 ac_check_framework_save_LIBS=$LIBS
7eda51e0 20909 LIBS="-framework CoreFoundation $LIBS"
b66977f1
DWT
20910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20911/* end confdefs.h. */
20912
7eda51e0 20913 #include <CoreFoundation/CFBase.h>
b66977f1
DWT
20914
20915int
20916main ()
20917{
7eda51e0 20918CFAllocatorGetDefault();
b66977f1
DWT
20919 ;
20920 return 0;
20921}
20922_ACEOF
7eda51e0 20923if ac_fn_objcxx_try_link "$LINENO"; then :
b66977f1 20924
7eda51e0 20925 ac_cv_framework_CoreFoundation=yes
b66977f1
DWT
20926
20927else
7eda51e0 20928 ac_cv_framework_CoreFoundation=no
b66977f1
DWT
20929fi
20930rm -f core conftest.err conftest.$ac_objext \
20931 conftest$ac_exeext conftest.$ac_ext
20932 LIBS=$ac_check_framework_save_LIBS
20933
20934fi
7eda51e0
JF
20935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
20936$as_echo "$ac_cv_framework_CoreFoundation" >&6; }
20937 if test $ac_cv_framework_CoreFoundation = yes; then :
b66977f1
DWT
20938
20939
7eda51e0 20940 for element in "-framework CoreFoundation"; do
b66977f1
DWT
20941 haveit=
20942 for x in $LIBS; do
20943
20944 acl_save_prefix="$prefix"
20945 prefix="$acl_final_prefix"
20946 acl_save_exec_prefix="$exec_prefix"
20947 exec_prefix="$acl_final_exec_prefix"
20948 eval x=\"$x\"
20949 exec_prefix="$acl_save_exec_prefix"
20950 prefix="$acl_save_prefix"
20951
20952 if test "X$x" = "X$element"; then
20953 haveit=yes
20954 break
20955 fi
20956 done
20957 if test -z "$haveit"; then
20958 LIBS="${LIBS}${LIBS:+ }$element"
20959 fi
20960 done
20961
66170b30 20962
66170b30
JF
20963
20964
b66977f1 20965
b66977f1 20966
7eda51e0
JF
20967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
20968$as_echo_n "checking for framework Foundation... " >&6; }
20969if ${ac_cv_framework_Foundation+:} false; then :
20970 $as_echo_n "(cached) " >&6
b66977f1 20971else
b66977f1 20972
7eda51e0
JF
20973 ac_check_framework_save_LIBS=$LIBS
20974 LIBS="-framework Foundation $LIBS"
20975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20976/* end confdefs.h. */
66170b30 20977
7eda51e0 20978 #include <Foundation/NSObject.h>
b66977f1 20979
7eda51e0
JF
20980int
20981main ()
20982{
20983[[NSObject alloc] init];
20984 ;
20985 return 0;
20986}
20987_ACEOF
20988if ac_fn_objcxx_try_link "$LINENO"; then :
b66977f1 20989
7eda51e0 20990 ac_cv_framework_Foundation=yes
b66977f1 20991
7eda51e0
JF
20992else
20993 ac_cv_framework_Foundation=no
20994fi
20995rm -f core conftest.err conftest.$ac_objext \
20996 conftest$ac_exeext conftest.$ac_ext
20997 LIBS=$ac_check_framework_save_LIBS
20998
20999fi
21000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
21001$as_echo "$ac_cv_framework_Foundation" >&6; }
21002 if test $ac_cv_framework_Foundation = yes; then :
b66977f1
DWT
21003
21004
7eda51e0 21005 for element in "-framework Foundation"; do
b66977f1
DWT
21006 haveit=
21007 for x in $LIBS; do
21008
21009 acl_save_prefix="$prefix"
21010 prefix="$acl_final_prefix"
21011 acl_save_exec_prefix="$exec_prefix"
21012 exec_prefix="$acl_final_exec_prefix"
21013 eval x=\"$x\"
21014 exec_prefix="$acl_save_exec_prefix"
21015 prefix="$acl_save_prefix"
21016
21017 if test "X$x" = "X$element"; then
21018 haveit=yes
21019 break
21020 fi
21021 done
21022 if test -z "$haveit"; then
21023 LIBS="${LIBS}${LIBS:+ }$element"
21024 fi
21025 done
21026
7eda51e0
JF
21027 cat >>confdefs.h <<_ACEOF
21028#define HAVE_FRAMEWORK_FOUNDATION 1
21029_ACEOF
21030
b66977f1 21031
7eda51e0 21032fi
b66977f1
DWT
21033
21034
7eda51e0 21035else
b66977f1 21036
b66977f1 21037
7eda51e0
JF
21038 for ac_prog in gnustep-config
21039do
21040 # Extract the first word of "$ac_prog", so it can be a program name with args.
21041set dummy $ac_prog; ac_word=$2
21042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21043$as_echo_n "checking for $ac_word... " >&6; }
21044if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then :
21045 $as_echo_n "(cached) " >&6
b66977f1 21046else
7eda51e0
JF
21047 if test -n "$GNUSTEP_CONFIG"; then
21048 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
b66977f1 21049else
7eda51e0
JF
21050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21051for as_dir in $PATH
21052do
21053 IFS=$as_save_IFS
21054 test -z "$as_dir" && as_dir=.
21055 for ac_exec_ext in '' $ac_executable_extensions; do
21056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21057 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
21058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21059 break 2
21060 fi
21061done
21062 done
21063IFS=$as_save_IFS
b66977f1 21064
b66977f1 21065fi
b66977f1 21066fi
7eda51e0
JF
21067GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
21068if test -n "$GNUSTEP_CONFIG"; then
21069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
21070$as_echo "$GNUSTEP_CONFIG" >&6; }
b66977f1 21071else
7eda51e0 21072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833ad8 21073$as_echo "no" >&6; }
b66977f1 21074fi
66170b30 21075
66170b30 21076
7eda51e0
JF
21077 test -n "$GNUSTEP_CONFIG" && break
21078done
b66977f1 21079
b66977f1 21080
7eda51e0 21081 if test "x$GNUSTEP_CONFIG" != x; then :
b66977f1 21082
b66977f1
DWT
21083
21084
7eda51e0 21085 for element in `$GNUSTEP_CONFIG --objc-flags`; do
b66977f1 21086 haveit=
7eda51e0 21087 for x in $OBJCXXFLAGS; do
b66977f1
DWT
21088
21089 acl_save_prefix="$prefix"
21090 prefix="$acl_final_prefix"
21091 acl_save_exec_prefix="$exec_prefix"
21092 exec_prefix="$acl_final_exec_prefix"
21093 eval x=\"$x\"
21094 exec_prefix="$acl_save_exec_prefix"
21095 prefix="$acl_save_prefix"
21096
21097 if test "X$x" = "X$element"; then
21098 haveit=yes
21099 break
21100 fi
21101 done
babf7fe8
JF
21102 if test -z "$haveit"; then
21103 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
21104 fi
21105 done
a667869d 21106
a667869d 21107
babf7fe8 21108 for element in `$GNUSTEP_CONFIG --base-libs`; do
632b71ea 21109 haveit=
babf7fe8 21110 for x in $LIBS; do
a667869d 21111
632b71ea
DWT
21112 acl_save_prefix="$prefix"
21113 prefix="$acl_final_prefix"
21114 acl_save_exec_prefix="$exec_prefix"
21115 exec_prefix="$acl_final_exec_prefix"
21116 eval x=\"$x\"
21117 exec_prefix="$acl_save_exec_prefix"
21118 prefix="$acl_save_prefix"
21119
21120 if test "X$x" = "X$element"; then
21121 haveit=yes
21122 break
21123 fi
21124 done
21125 if test -z "$haveit"; then
babf7fe8 21126 LIBS="${LIBS}${LIBS:+ }$element"
632b71ea
DWT
21127 fi
21128 done
21129
5053a6d1 21130
babf7fe8
JF
21131else
21132 CY_OBJECTIVEC=0
21133
21134fi
21135
21136fi
21137 LTOBJECTIVEC=$LIBS
21138 LIBS=$cy_save
21139
21140
21141
21142fi
21143
21144 ac_ext=cpp
21145ac_cpp='$CXXCPP $CPPFLAGS'
21146ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21147ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21148ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21149
21150 ;; #(
21151 *) :
21152 ;;
21153esac
21154
39ed1631
JF
21155 if test "x$CY_JAVA" = x1; then
21156 CY_JAVA_TRUE=
21157 CY_JAVA_FALSE='#'
21158else
21159 CY_JAVA_TRUE='#'
21160 CY_JAVA_FALSE=
21161fi
21162
babf7fe8
JF
21163 if test "x$CY_OBJECTIVEC" = x1; then
21164 CY_OBJECTIVEC_TRUE=
21165 CY_OBJECTIVEC_FALSE='#'
21166else
21167 CY_OBJECTIVEC_TRUE='#'
21168 CY_OBJECTIVEC_FALSE=
21169fi
21170
21171
21172
21173 cy_save=$LIBS
21174 LIBS=
21175
21176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
21177$as_echo_n "checking for a readline compatible library... " >&6; }
21178if ${ax_cv_lib_readline+:} false; then :
5053a6d1 21179 $as_echo_n "(cached) " >&6
a667869d 21180else
632b71ea 21181
babf7fe8
JF
21182 ORIG_LIBS="$LIBS"
21183 for readline_lib in readline edit editline; do
21184 for termcap_lib in "" termcap curses ncurses; do
21185 if test -z "$termcap_lib"; then
21186 TRY_LIB="-l$readline_lib"
21187 else
21188 TRY_LIB="-l$readline_lib -l$termcap_lib"
21189 fi
21190 LIBS="$ORIG_LIBS $TRY_LIB"
21191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053a6d1 21192/* end confdefs.h. */
632b71ea 21193
babf7fe8
JF
21194/* Override any GCC internal prototype to avoid an error.
21195 Use char because int might match the return type of a GCC
21196 builtin and then its argument prototype would still apply. */
21197#ifdef __cplusplus
21198extern "C"
21199#endif
21200char readline ();
5053a6d1
DWT
21201int
21202main ()
21203{
babf7fe8 21204return readline ();
5053a6d1
DWT
21205 ;
21206 return 0;
21207}
21208_ACEOF
babf7fe8
JF
21209if ac_fn_cxx_try_link "$LINENO"; then :
21210 ax_cv_lib_readline="$TRY_LIB"
5053a6d1
DWT
21211fi
21212rm -f core conftest.err conftest.$ac_objext \
21213 conftest$ac_exeext conftest.$ac_ext
babf7fe8
JF
21214 if test -n "$ax_cv_lib_readline"; then
21215 break
21216 fi
21217 done
21218 if test -n "$ax_cv_lib_readline"; then
21219 break
21220 fi
21221 done
21222 if test -z "$ax_cv_lib_readline"; then
21223 ax_cv_lib_readline="no"
21224 fi
21225 LIBS="$ORIG_LIBS"
21226
21227fi
21228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
21229$as_echo "$ax_cv_lib_readline" >&6; }
21230
21231 if test "$ax_cv_lib_readline" != "no"; then
21232 LIBS="$LIBS $ax_cv_lib_readline"
21233
21234$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
21235
21236 for ac_header in readline.h readline/readline.h
21237do :
21238 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21239ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21240if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21241 cat >>confdefs.h <<_ACEOF
21242#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21243_ACEOF
21244
21245fi
21246
21247done
21248
21249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
21250$as_echo_n "checking whether readline supports history... " >&6; }
21251if ${ax_cv_lib_readline_history+:} false; then :
21252 $as_echo_n "(cached) " >&6
21253else
21254
21255 ax_cv_lib_readline_history="no"
7eda51e0
JF
21256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21257/* end confdefs.h. */
5053a6d1 21258
babf7fe8
JF
21259/* Override any GCC internal prototype to avoid an error.
21260 Use char because int might match the return type of a GCC
21261 builtin and then its argument prototype would still apply. */
21262#ifdef __cplusplus
21263extern "C"
21264#endif
21265char add_history ();
058f1bc8
DWT
21266int
21267main ()
21268{
babf7fe8 21269return add_history ();
058f1bc8
DWT
21270 ;
21271 return 0;
21272}
21273_ACEOF
babf7fe8
JF
21274if ac_fn_cxx_try_link "$LINENO"; then :
21275 ax_cv_lib_readline_history="yes"
058f1bc8
DWT
21276fi
21277rm -f core conftest.err conftest.$ac_objext \
21278 conftest$ac_exeext conftest.$ac_ext
a667869d 21279
a667869d 21280fi
babf7fe8
JF
21281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
21282$as_echo "$ax_cv_lib_readline_history" >&6; }
21283 if test "$ax_cv_lib_readline_history" = "yes"; then
058f1bc8 21284
babf7fe8 21285$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
058f1bc8 21286
babf7fe8
JF
21287 for ac_header in history.h readline/history.h
21288do :
21289 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21290ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21291if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21292 cat >>confdefs.h <<_ACEOF
21293#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7eda51e0 21294_ACEOF
babf7fe8 21295
7eda51e0 21296fi
058f1bc8 21297
babf7fe8 21298done
058f1bc8 21299
babf7fe8 21300 fi
7eda51e0 21301 fi
058f1bc8 21302
babf7fe8
JF
21303 LTLIBREADLINE=$LIBS
21304 LIBS=$cy_save
058f1bc8 21305
058f1bc8 21306
babf7fe8
JF
21307case $ax_cv_lib_readline in #(
21308 no) :
21309 as_fn_error $? "missing \"libreadline\"" "$LINENO" 5 ;; #(
21310 *) :
21311 ;;
21312esac
058f1bc8
DWT
21313
21314
babf7fe8
JF
21315 cy_save=$LIBS
21316 LIBS=
21317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cur_term" >&5
21318$as_echo_n "checking for library containing cur_term... " >&6; }
21319if ${ac_cv_search_cur_term+:} false; then :
7eda51e0
JF
21320 $as_echo_n "(cached) " >&6
21321else
babf7fe8
JF
21322 ac_func_search_save_LIBS=$LIBS
21323cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7eda51e0
JF
21324/* end confdefs.h. */
21325
babf7fe8
JF
21326/* Override any GCC internal prototype to avoid an error.
21327 Use char because int might match the return type of a GCC
21328 builtin and then its argument prototype would still apply. */
7eda51e0 21329#ifdef __cplusplus
babf7fe8 21330extern "C"
7eda51e0 21331#endif
babf7fe8 21332char cur_term ();
7eda51e0
JF
21333int
21334main ()
21335{
babf7fe8 21336return cur_term ();
7eda51e0
JF
21337 ;
21338 return 0;
21339}
21340_ACEOF
a93f15c0 21341for ac_lib in '' termcap ncurses; do
babf7fe8
JF
21342 if test -z "$ac_lib"; then
21343 ac_res="none required"
21344 else
21345 ac_res=-l$ac_lib
21346 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21347 fi
21348 if ac_fn_cxx_try_link "$LINENO"; then :
21349 ac_cv_search_cur_term=$ac_res
7eda51e0 21350fi
babf7fe8
JF
21351rm -f core conftest.err conftest.$ac_objext \
21352 conftest$ac_exeext
21353 if ${ac_cv_search_cur_term+:} false; then :
21354 break
7eda51e0 21355fi
babf7fe8
JF
21356done
21357if ${ac_cv_search_cur_term+:} false; then :
058f1bc8 21358
babf7fe8
JF
21359else
21360 ac_cv_search_cur_term=no
21361fi
21362rm conftest.$ac_ext
21363LIBS=$ac_func_search_save_LIBS
21364fi
21365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cur_term" >&5
21366$as_echo "$ac_cv_search_cur_term" >&6; }
21367ac_res=$ac_cv_search_cur_term
21368if test "$ac_res" != no; then :
21369 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
058f1bc8 21370
babf7fe8 21371fi
058f1bc8 21372
babf7fe8
JF
21373 LTLIBTERMCAP=$LIBS
21374 LIBS=$cy_save
058f1bc8 21375
058f1bc8 21376
66170b30
JF
21377
21378
3615a2f7
JF
21379
21380
9777bd50
JF
21381SO=$acl_shlibext
21382
e1cce270 21383
a243b558
JF
21384ac_config_files="$ac_config_files Makefile"
21385
9c60689e
DWT
21386cat >confcache <<\_ACEOF
21387# This file is a shell script that caches the results of configure
21388# tests run on this system so they can be shared between configure
21389# scripts and configure runs, see configure's option --config-cache.
21390# It is not useful on other systems. If it contains results you don't
21391# want to keep, you may remove or edit it.
21392#
21393# config.status only pays attention to the cache file if you give it
21394# the --recheck option to rerun configure.
21395#
21396# `ac_cv_env_foo' variables (set or unset) will be overridden when
21397# loading this file, other *unset* `ac_cv_foo' will be assigned the
21398# following values.
21399
21400_ACEOF
21401
21402# The following way of writing the cache mishandles newlines in values,
21403# but we know of no workaround that is simple, portable, and efficient.
21404# So, we kill variables containing newlines.
21405# Ultrix sh set writes to stderr and can't be redirected directly,
21406# and sets the high bit in the cache file unless we assign to the vars.
21407(
21408 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21409 eval ac_val=\$$ac_var
21410 case $ac_val in #(
21411 *${as_nl}*)
21412 case $ac_var in #(
21413 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21414$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21415 esac
21416 case $ac_var in #(
21417 _ | IFS | as_nl) ;; #(
21418 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21419 *) { eval $ac_var=; unset $ac_var;} ;;
21420 esac ;;
21421 esac
21422 done
21423
21424 (set) 2>&1 |
21425 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21426 *${as_nl}ac_space=\ *)
21427 # `set' does not quote correctly, so add quotes: double-quote
21428 # substitution turns \\\\ into \\, and sed turns \\ into \.
21429 sed -n \
21430 "s/'/'\\\\''/g;
21431 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21432 ;; #(
21433 *)
21434 # `set' quotes correctly as required by POSIX, so do not add quotes.
21435 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21436 ;;
21437 esac |
21438 sort
21439) |
21440 sed '
21441 /^ac_cv_env_/b end
21442 t clear
21443 :clear
21444 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21445 t end
21446 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21447 :end' >>confcache
21448if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21449 if test -w "$cache_file"; then
ee134472 21450 if test "x$cache_file" != "x/dev/null"; then
9c60689e
DWT
21451 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21452$as_echo "$as_me: updating cache $cache_file" >&6;}
ee134472
JF
21453 if test ! -f "$cache_file" || test -h "$cache_file"; then
21454 cat confcache >"$cache_file"
21455 else
21456 case $cache_file in #(
21457 */* | ?:*)
21458 mv -f confcache "$cache_file"$$ &&
21459 mv -f "$cache_file"$$ "$cache_file" ;; #(
21460 *)
21461 mv -f confcache "$cache_file" ;;
21462 esac
21463 fi
21464 fi
9c60689e
DWT
21465 else
21466 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21467$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21468 fi
21469fi
21470rm -f confcache
21471
21472test "x$prefix" = xNONE && prefix=$ac_default_prefix
21473# Let make expand exec_prefix.
21474test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21475
296ee9a6 21476DEFS=-DHAVE_CONFIG_H
9c60689e
DWT
21477
21478ac_libobjs=
21479ac_ltlibobjs=
12833ad8 21480U=
9c60689e
DWT
21481for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21482 # 1. Remove the extension, and $U if already installed.
21483 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21484 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21485 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21486 # will be set to the directory where LIBOBJS objects are built.
21487 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21488 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21489done
21490LIBOBJS=$ac_libobjs
21491
21492LTLIBOBJS=$ac_ltlibobjs
21493
21494
66170b30
JF
21495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21496$as_echo_n "checking that generated files are newer than configure... " >&6; }
21497 if test -n "$am_sleep_pid"; then
21498 # Hide warnings about reused PIDs.
21499 wait $am_sleep_pid 2>/dev/null
21500 fi
21501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21502$as_echo "done" >&6; }
21503 if test -n "$EXEEXT"; then
21504 am__EXEEXT_TRUE=
21505 am__EXEEXT_FALSE='#'
21506else
21507 am__EXEEXT_TRUE='#'
21508 am__EXEEXT_FALSE=
21509fi
21510
babf7fe8
JF
21511if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21512 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
21513Usually this means the macro was only invoked conditionally." "$LINENO" 5
21514fi
66170b30
JF
21515if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21516 as_fn_error $? "conditional \"AMDEP\" was never defined.
21517Usually this means the macro was only invoked conditionally." "$LINENO" 5
21518fi
a93f15c0
JF
21519if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21520 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21521Usually this means the macro was only invoked conditionally." "$LINENO" 5
21522fi
66170b30
JF
21523if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21524 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
21525Usually this means the macro was only invoked conditionally." "$LINENO" 5
21526fi
21527if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then
21528 as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined.
21529Usually this means the macro was only invoked conditionally." "$LINENO" 5
21530fi
a93f15c0
JF
21531if test -z "${CY_CONSOLE_TRUE}" && test -z "${CY_CONSOLE_FALSE}"; then
21532 as_fn_error $? "conditional \"CY_CONSOLE\" was never defined.
babf7fe8
JF
21533Usually this means the macro was only invoked conditionally." "$LINENO" 5
21534fi
a4287117
JF
21535if test -z "${CY_ATTACH_TRUE}" && test -z "${CY_ATTACH_FALSE}"; then
21536 as_fn_error $? "conditional \"CY_ATTACH\" was never defined.
21537Usually this means the macro was only invoked conditionally." "$LINENO" 5
21538fi
a243b558
JF
21539if test -z "${CY_EXECUTE_TRUE}" && test -z "${CY_EXECUTE_FALSE}"; then
21540 as_fn_error $? "conditional \"CY_EXECUTE\" was never defined.
21541Usually this means the macro was only invoked conditionally." "$LINENO" 5
21542fi
39ed1631
JF
21543if test -z "${CY_JAVA_TRUE}" && test -z "${CY_JAVA_FALSE}"; then
21544 as_fn_error $? "conditional \"CY_JAVA\" was never defined.
21545Usually this means the macro was only invoked conditionally." "$LINENO" 5
21546fi
a243b558
JF
21547if test -z "${CY_OBJECTIVEC_TRUE}" && test -z "${CY_OBJECTIVEC_FALSE}"; then
21548 as_fn_error $? "conditional \"CY_OBJECTIVEC\" was never defined.
21549Usually this means the macro was only invoked conditionally." "$LINENO" 5
21550fi
9c60689e 21551
ee134472 21552: "${CONFIG_STATUS=./config.status}"
9c60689e
DWT
21553ac_write_fail=0
21554ac_clean_files_save=$ac_clean_files
21555ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21556{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21557$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21558as_write_fail=0
21559cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21560#! $SHELL
21561# Generated by $as_me.
21562# Run this file to recreate the current configuration.
21563# Compiler output produced by configure, useful for debugging
21564# configure, is in config.log if it exists.
21565
21566debug=false
21567ac_cs_recheck=false
21568ac_cs_silent=false
21569
21570SHELL=\${CONFIG_SHELL-$SHELL}
21571export SHELL
21572_ASEOF
21573cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21574## -------------------- ##
21575## M4sh Initialization. ##
21576## -------------------- ##
21577
21578# Be more Bourne compatible
21579DUALCASE=1; export DUALCASE # for MKS sh
21580if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21581 emulate sh
21582 NULLCMD=:
21583 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21584 # is contrary to our usage. Disable this feature.
21585 alias -g '${1+"$@"}'='"$@"'
21586 setopt NO_GLOB_SUBST
21587else
21588 case `(set -o) 2>/dev/null` in #(
21589 *posix*) :
21590 set -o posix ;; #(
21591 *) :
21592 ;;
21593esac
21594fi
21595
21596
21597as_nl='
21598'
21599export as_nl
21600# Printing a long string crashes Solaris 7 /usr/bin/printf.
21601as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21602as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21603as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21604# Prefer a ksh shell builtin over an external printf program on Solaris,
21605# but without wasting forks for bash or zsh.
21606if test -z "$BASH_VERSION$ZSH_VERSION" \
21607 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21608 as_echo='print -r --'
21609 as_echo_n='print -rn --'
21610elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21611 as_echo='printf %s\n'
21612 as_echo_n='printf %s'
21613else
21614 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21615 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21616 as_echo_n='/usr/ucb/echo -n'
21617 else
21618 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21619 as_echo_n_body='eval
21620 arg=$1;
21621 case $arg in #(
21622 *"$as_nl"*)
21623 expr "X$arg" : "X\\(.*\\)$as_nl";
21624 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21625 esac;
21626 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21627 '
21628 export as_echo_n_body
21629 as_echo_n='sh -c $as_echo_n_body as_echo'
21630 fi
21631 export as_echo_body
21632 as_echo='sh -c $as_echo_body as_echo'
21633fi
21634
21635# The user is always right.
21636if test "${PATH_SEPARATOR+set}" != set; then
21637 PATH_SEPARATOR=:
21638 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21639 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21640 PATH_SEPARATOR=';'
21641 }
21642fi
21643
21644
21645# IFS
21646# We need space, tab and new line, in precisely that order. Quoting is
21647# there to prevent editors from complaining about space-tab.
21648# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21649# splitting by setting IFS to empty value.)
21650IFS=" "" $as_nl"
21651
21652# Find who we are. Look in the path if we contain no directory separator.
ee134472 21653as_myself=
9c60689e
DWT
21654case $0 in #((
21655 *[\\/]* ) as_myself=$0 ;;
21656 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21657for as_dir in $PATH
21658do
21659 IFS=$as_save_IFS
21660 test -z "$as_dir" && as_dir=.
21661 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21662 done
21663IFS=$as_save_IFS
21664
21665 ;;
21666esac
21667# We did not find ourselves, most probably we were run as `sh COMMAND'
21668# in which case we are not to be found in the path.
21669if test "x$as_myself" = x; then
21670 as_myself=$0
21671fi
21672if test ! -f "$as_myself"; then
21673 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21674 exit 1
21675fi
21676
21677# Unset variables that we do not need and which cause bugs (e.g. in
21678# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21679# suppresses any "Segmentation fault" message there. '((' could
21680# trigger a bug in pdksh 5.2.14.
21681for as_var in BASH_ENV ENV MAIL MAILPATH
21682do eval test x\${$as_var+set} = xset \
21683 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21684done
21685PS1='$ '
21686PS2='> '
21687PS4='+ '
21688
21689# NLS nuisances.
21690LC_ALL=C
21691export LC_ALL
21692LANGUAGE=C
21693export LANGUAGE
21694
21695# CDPATH.
21696(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21697
21698
12833ad8
JF
21699# as_fn_error STATUS ERROR [LINENO LOG_FD]
21700# ----------------------------------------
9c60689e
DWT
21701# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21702# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12833ad8 21703# script with STATUS, using 1 if that was 0.
9c60689e
DWT
21704as_fn_error ()
21705{
12833ad8
JF
21706 as_status=$1; test $as_status -eq 0 && as_status=1
21707 if test "$4"; then
21708 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21709 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9c60689e 21710 fi
12833ad8 21711 $as_echo "$as_me: error: $2" >&2
9c60689e
DWT
21712 as_fn_exit $as_status
21713} # as_fn_error
21714
21715
21716# as_fn_set_status STATUS
21717# -----------------------
21718# Set $? to STATUS, without forking.
21719as_fn_set_status ()
21720{
21721 return $1
21722} # as_fn_set_status
21723
21724# as_fn_exit STATUS
21725# -----------------
21726# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21727as_fn_exit ()
21728{
21729 set +e
21730 as_fn_set_status $1
21731 exit $1
21732} # as_fn_exit
21733
21734# as_fn_unset VAR
21735# ---------------
21736# Portably unset VAR.
21737as_fn_unset ()
21738{
21739 { eval $1=; unset $1;}
21740}
21741as_unset=as_fn_unset
21742# as_fn_append VAR VALUE
21743# ----------------------
21744# Append the text in VALUE to the end of the definition contained in VAR. Take
21745# advantage of any shell optimizations that allow amortized linear growth over
21746# repeated appends, instead of the typical quadratic growth present in naive
21747# implementations.
21748if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21749 eval 'as_fn_append ()
21750 {
21751 eval $1+=\$2
21752 }'
21753else
21754 as_fn_append ()
21755 {
21756 eval $1=\$$1\$2
21757 }
21758fi # as_fn_append
21759
21760# as_fn_arith ARG...
21761# ------------------
21762# Perform arithmetic evaluation on the ARGs, and store the result in the
21763# global $as_val. Take advantage of shells that can avoid forks. The arguments
21764# must be portable across $(()) and expr.
21765if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21766 eval 'as_fn_arith ()
21767 {
21768 as_val=$(( $* ))
21769 }'
21770else
21771 as_fn_arith ()
21772 {
21773 as_val=`expr "$@" || test $? -eq 1`
21774 }
21775fi # as_fn_arith
21776
21777
21778if expr a : '\(a\)' >/dev/null 2>&1 &&
21779 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21780 as_expr=expr
21781else
21782 as_expr=false
21783fi
21784
21785if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21786 as_basename=basename
21787else
21788 as_basename=false
21789fi
21790
21791if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21792 as_dirname=dirname
21793else
21794 as_dirname=false
21795fi
21796
21797as_me=`$as_basename -- "$0" ||
21798$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21799 X"$0" : 'X\(//\)$' \| \
21800 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21801$as_echo X/"$0" |
21802 sed '/^.*\/\([^/][^/]*\)\/*$/{
21803 s//\1/
21804 q
21805 }
21806 /^X\/\(\/\/\)$/{
21807 s//\1/
21808 q
21809 }
21810 /^X\/\(\/\).*/{
21811 s//\1/
21812 q
21813 }
21814 s/.*/./; q'`
21815
21816# Avoid depending upon Character Ranges.
21817as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21818as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21819as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21820as_cr_digits='0123456789'
21821as_cr_alnum=$as_cr_Letters$as_cr_digits
21822
21823ECHO_C= ECHO_N= ECHO_T=
21824case `echo -n x` in #(((((
21825-n*)
21826 case `echo 'xy\c'` in
21827 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21828 xy) ECHO_C='\c';;
21829 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21830 ECHO_T=' ';;
21831 esac;;
21832*)
21833 ECHO_N='-n';;
21834esac
21835
21836rm -f conf$$ conf$$.exe conf$$.file
21837if test -d conf$$.dir; then
21838 rm -f conf$$.dir/conf$$.file
21839else
21840 rm -f conf$$.dir
21841 mkdir conf$$.dir 2>/dev/null
21842fi
21843if (echo >conf$$.file) 2>/dev/null; then
21844 if ln -s conf$$.file conf$$ 2>/dev/null; then
21845 as_ln_s='ln -s'
21846 # ... but there are two gotchas:
21847 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21848 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53ba6704 21849 # In both cases, we have to default to `cp -pR'.
9c60689e 21850 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53ba6704 21851 as_ln_s='cp -pR'
9c60689e
DWT
21852 elif ln conf$$.file conf$$ 2>/dev/null; then
21853 as_ln_s=ln
21854 else
53ba6704 21855 as_ln_s='cp -pR'
9c60689e
DWT
21856 fi
21857else
53ba6704 21858 as_ln_s='cp -pR'
9c60689e
DWT
21859fi
21860rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21861rmdir conf$$.dir 2>/dev/null
21862
21863
21864# as_fn_mkdir_p
21865# -------------
21866# Create "$as_dir" as a directory, including parents if necessary.
21867as_fn_mkdir_p ()
21868{
21869
21870 case $as_dir in #(
21871 -*) as_dir=./$as_dir;;
21872 esac
21873 test -d "$as_dir" || eval $as_mkdir_p || {
21874 as_dirs=
21875 while :; do
21876 case $as_dir in #(
21877 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21878 *) as_qdir=$as_dir;;
21879 esac
21880 as_dirs="'$as_qdir' $as_dirs"
21881 as_dir=`$as_dirname -- "$as_dir" ||
21882$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21883 X"$as_dir" : 'X\(//\)[^/]' \| \
21884 X"$as_dir" : 'X\(//\)$' \| \
21885 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21886$as_echo X"$as_dir" |
21887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21888 s//\1/
21889 q
21890 }
21891 /^X\(\/\/\)[^/].*/{
21892 s//\1/
21893 q
21894 }
21895 /^X\(\/\/\)$/{
21896 s//\1/
21897 q
21898 }
21899 /^X\(\/\).*/{
21900 s//\1/
21901 q
21902 }
21903 s/.*/./; q'`
21904 test -d "$as_dir" && break
21905 done
21906 test -z "$as_dirs" || eval "mkdir $as_dirs"
12833ad8 21907 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9c60689e
DWT
21908
21909
21910} # as_fn_mkdir_p
21911if mkdir -p . 2>/dev/null; then
21912 as_mkdir_p='mkdir -p "$as_dir"'
21913else
21914 test -d ./-p && rmdir ./-p
21915 as_mkdir_p=false
21916fi
21917
53ba6704
JF
21918
21919# as_fn_executable_p FILE
21920# -----------------------
21921# Test if FILE is an executable regular file.
21922as_fn_executable_p ()
21923{
21924 test -f "$1" && test -x "$1"
21925} # as_fn_executable_p
21926as_test_x='test -x'
21927as_executable_p=as_fn_executable_p
9c60689e
DWT
21928
21929# Sed expression to map a string onto a valid CPP name.
21930as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21931
21932# Sed expression to map a string onto a valid variable name.
21933as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21934
21935
21936exec 6>&1
21937## ----------------------------------- ##
21938## Main body of $CONFIG_STATUS script. ##
21939## ----------------------------------- ##
21940_ASEOF
21941test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21942
21943cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21944# Save the log message, to keep $0 and so on meaningful, and to
21945# report actual input values of CONFIG_FILES etc. instead of their
21946# values after options handling.
21947ac_log="
21948This file was extended by Cycript $as_me 0.9, which was
53ba6704 21949generated by GNU Autoconf 2.69. Invocation command line was
9c60689e
DWT
21950
21951 CONFIG_FILES = $CONFIG_FILES
21952 CONFIG_HEADERS = $CONFIG_HEADERS
21953 CONFIG_LINKS = $CONFIG_LINKS
21954 CONFIG_COMMANDS = $CONFIG_COMMANDS
21955 $ $0 $@
21956
21957on `(hostname || uname -n) 2>/dev/null | sed 1q`
21958"
21959
21960_ACEOF
21961
21962case $ac_config_files in *"
21963"*) set x $ac_config_files; shift; ac_config_files=$*;;
21964esac
21965
296ee9a6
JF
21966case $ac_config_headers in *"
21967"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21968esac
9c60689e
DWT
21969
21970
21971cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21972# Files that config.status was made for.
21973config_files="$ac_config_files"
296ee9a6 21974config_headers="$ac_config_headers"
9c60689e
DWT
21975config_commands="$ac_config_commands"
21976
21977_ACEOF
21978
21979cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21980ac_cs_usage="\
21981\`$as_me' instantiates files and other configuration actions
21982from templates according to the current configuration. Unless the files
21983and actions are specified as TAGs, all are instantiated by default.
21984
21985Usage: $0 [OPTION]... [TAG]...
21986
21987 -h, --help print this help, then exit
21988 -V, --version print version number and configuration settings, then exit
21989 --config print configuration, then exit
21990 -q, --quiet, --silent
21991 do not print progress messages
21992 -d, --debug don't remove temporary files
21993 --recheck update $as_me by reconfiguring in the same conditions
21994 --file=FILE[:TEMPLATE]
21995 instantiate the configuration file FILE
296ee9a6
JF
21996 --header=FILE[:TEMPLATE]
21997 instantiate the configuration header FILE
9c60689e
DWT
21998
21999Configuration files:
22000$config_files
22001
296ee9a6
JF
22002Configuration headers:
22003$config_headers
22004
9c60689e
DWT
22005Configuration commands:
22006$config_commands
22007
22008Report bugs to <saurik@saurik.com>.
22009Cycript home page: <http://www.cycript.org/>."
22010
22011_ACEOF
22012cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22013ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22014ac_cs_version="\\
22015Cycript config.status 0.9
53ba6704 22016configured by $0, generated by GNU Autoconf 2.69,
9c60689e
DWT
22017 with options \\"\$ac_cs_config\\"
22018
53ba6704 22019Copyright (C) 2012 Free Software Foundation, Inc.
9c60689e
DWT
22020This config.status script is free software; the Free Software Foundation
22021gives unlimited permission to copy, distribute and modify it."
22022
22023ac_pwd='$ac_pwd'
22024srcdir='$srcdir'
22025INSTALL='$INSTALL'
66170b30
JF
22026MKDIR_P='$MKDIR_P'
22027AWK='$AWK'
9c60689e
DWT
22028test -n "\$AWK" || AWK=awk
22029_ACEOF
22030
22031cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22032# The default lists apply if the user does not specify any file.
22033ac_need_defaults=:
22034while test $# != 0
22035do
22036 case $1 in
12833ad8 22037 --*=?*)
9c60689e
DWT
22038 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22039 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22040 ac_shift=:
22041 ;;
12833ad8
JF
22042 --*=)
22043 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22044 ac_optarg=
22045 ac_shift=:
22046 ;;
9c60689e
DWT
22047 *)
22048 ac_option=$1
22049 ac_optarg=$2
22050 ac_shift=shift
22051 ;;
22052 esac
22053
22054 case $ac_option in
22055 # Handling of the options.
22056 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22057 ac_cs_recheck=: ;;
22058 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22059 $as_echo "$ac_cs_version"; exit ;;
22060 --config | --confi | --conf | --con | --co | --c )
22061 $as_echo "$ac_cs_config"; exit ;;
22062 --debug | --debu | --deb | --de | --d | -d )
22063 debug=: ;;
22064 --file | --fil | --fi | --f )
22065 $ac_shift
22066 case $ac_optarg in
22067 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12833ad8 22068 '') as_fn_error $? "missing file argument" ;;
9c60689e
DWT
22069 esac
22070 as_fn_append CONFIG_FILES " '$ac_optarg'"
22071 ac_need_defaults=false;;
296ee9a6
JF
22072 --header | --heade | --head | --hea )
22073 $ac_shift
22074 case $ac_optarg in
22075 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22076 esac
22077 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22078 ac_need_defaults=false;;
22079 --he | --h)
22080 # Conflict between --help and --header
22081 as_fn_error $? "ambiguous option: \`$1'
22082Try \`$0 --help' for more information.";;
22083 --help | --hel | -h )
9c60689e
DWT
22084 $as_echo "$ac_cs_usage"; exit ;;
22085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22086 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22087 ac_cs_silent=: ;;
22088
22089 # This is an error.
12833ad8 22090 -*) as_fn_error $? "unrecognized option: \`$1'
9c60689e
DWT
22091Try \`$0 --help' for more information." ;;
22092
22093 *) as_fn_append ac_config_targets " $1"
22094 ac_need_defaults=false ;;
22095
22096 esac
22097 shift
22098done
22099
22100ac_configure_extra_args=
22101
22102if $ac_cs_silent; then
22103 exec 6>/dev/null
22104 ac_configure_extra_args="$ac_configure_extra_args --silent"
22105fi
22106
22107_ACEOF
22108cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22109if \$ac_cs_recheck; then
53ba6704 22110 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9c60689e
DWT
22111 shift
22112 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22113 CONFIG_SHELL='$SHELL'
22114 export CONFIG_SHELL
22115 exec "\$@"
22116fi
22117
22118_ACEOF
22119cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22120exec 5>>config.log
22121{
22122 echo
22123 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22124## Running $as_me. ##
22125_ASBOX
22126 $as_echo "$ac_log"
22127} >&5
22128
22129_ACEOF
22130cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22131#
22132# INIT-COMMANDS
22133#
66170b30 22134AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9c60689e
DWT
22135
22136
22137# The HP-UX ksh and POSIX shell print the target directory to stdout
22138# if CDPATH is set.
22139(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22140
22141sed_quote_subst='$sed_quote_subst'
22142double_quote_subst='$double_quote_subst'
22143delay_variable_subst='$delay_variable_subst'
ee134472
JF
22144macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22145macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22146enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22147enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22148pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22149enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
9d54db95 22150shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
ee134472
JF
22151SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22152ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
53ba6704 22153PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
ee134472
JF
22154host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22155host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22156host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22157build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22158build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22159build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22160SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22161Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22162GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22163EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22164FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22165LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22166NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22167LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22168max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22169ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22170exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22171lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22172lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22173lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22174lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22175lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22176reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22177reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22178OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22179deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22180file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22181file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22182want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22183DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22184sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22185AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22186AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22187archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22188STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22189RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22190old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22191old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22192old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22193lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22194CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22195CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22196compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22197GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22198lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22199lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
9d54db95 22200lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
ee134472
JF
22201lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22202lt_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 22203lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
ee134472
JF
22204nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22205lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
9d54db95 22206lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
ee134472
JF
22207objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22208MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22209lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22210lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22211lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22212lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22213lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22214need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22215MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22216DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22217NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22218LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22219OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22220OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22221libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22222shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22223extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22224archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22225enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22226export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22227whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22228compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22229old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22230old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22231archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22232archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22233module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22234module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22235with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22236allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22237no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22238hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
ee134472
JF
22239hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22240hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22241hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22242hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22243hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22244hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22245inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22246link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22247always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22248export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22249exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22250include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22251prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22252postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22253file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22254variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22255need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22256need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22257version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22258runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22259shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22260shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22261libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22262library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22263soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22264install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22265postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22266postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22267finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22268finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22269hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22270sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
9d54db95
JF
22271configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22272configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
ee134472
JF
22273hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22274enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22275enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22276enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22277old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22278striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22279compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22280predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22281postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22282predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22283postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22284compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22285LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
22286reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
22287reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22288old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22289compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
22290GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
22291lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
22292lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
22293lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
22294lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
22295lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
22296archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
22297enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
22298export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22299whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22300compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
22301old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22302old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22303archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22304archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22305module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22306module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22307with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
22308allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22309no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22310hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
ee134472
JF
22311hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
22312hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
22313hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
22314hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
22315hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
22316hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
22317inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
22318link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
22319always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
22320export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22321exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22322include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22323prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22324postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22325file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
22326hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
22327compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
22328predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22329postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22330predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
22331postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
22332compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
9c60689e
DWT
22333
22334LTCC='$LTCC'
22335LTCFLAGS='$LTCFLAGS'
22336compiler='$compiler_DEFAULT'
22337
ee134472
JF
22338# A function that is used when there is no print builtin or printf.
22339func_fallback_echo ()
22340{
22341 eval 'cat <<_LTECHO_EOF
22342\$1
22343_LTECHO_EOF'
22344}
22345
9c60689e 22346# Quote evaled strings.
ee134472
JF
22347for var in SHELL \
22348ECHO \
53ba6704 22349PATH_SEPARATOR \
ee134472 22350SED \
9c60689e
DWT
22351GREP \
22352EGREP \
22353FGREP \
22354LD \
22355NM \
22356LN_S \
22357lt_SP2NL \
22358lt_NL2SP \
22359reload_flag \
22360OBJDUMP \
22361deplibs_check_method \
22362file_magic_cmd \
ee134472
JF
22363file_magic_glob \
22364want_nocaseglob \
22365DLLTOOL \
22366sharedlib_from_linklib_cmd \
9c60689e
DWT
22367AR \
22368AR_FLAGS \
ee134472 22369archiver_list_spec \
9c60689e
DWT
22370STRIP \
22371RANLIB \
22372CC \
22373CFLAGS \
22374compiler \
22375lt_cv_sys_global_symbol_pipe \
22376lt_cv_sys_global_symbol_to_cdecl \
9d54db95 22377lt_cv_sys_global_symbol_to_import \
9c60689e
DWT
22378lt_cv_sys_global_symbol_to_c_name_address \
22379lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
9d54db95 22380lt_cv_nm_interface \
ee134472 22381nm_file_list_spec \
9d54db95 22382lt_cv_truncate_bin \
9c60689e 22383lt_prog_compiler_no_builtin_flag \
9c60689e 22384lt_prog_compiler_pic \
ee134472 22385lt_prog_compiler_wl \
9c60689e
DWT
22386lt_prog_compiler_static \
22387lt_cv_prog_compiler_c_o \
22388need_locks \
ee134472 22389MANIFEST_TOOL \
9c60689e
DWT
22390DSYMUTIL \
22391NMEDIT \
22392LIPO \
22393OTOOL \
22394OTOOL64 \
22395shrext_cmds \
22396export_dynamic_flag_spec \
22397whole_archive_flag_spec \
22398compiler_needs_object \
22399with_gnu_ld \
22400allow_undefined_flag \
22401no_undefined_flag \
22402hardcode_libdir_flag_spec \
9c60689e 22403hardcode_libdir_separator \
9c60689e
DWT
22404exclude_expsyms \
22405include_expsyms \
22406file_list_spec \
22407variables_saved_for_relink \
22408libname_spec \
22409library_names_spec \
22410soname_spec \
ee134472 22411install_override_mode \
9c60689e
DWT
22412finish_eval \
22413old_striplib \
22414striplib \
22415compiler_lib_search_dirs \
22416predep_objects \
22417postdep_objects \
22418predeps \
22419postdeps \
22420compiler_lib_search_path \
22421LD_CXX \
ee134472 22422reload_flag_CXX \
9c60689e
DWT
22423compiler_CXX \
22424lt_prog_compiler_no_builtin_flag_CXX \
9c60689e 22425lt_prog_compiler_pic_CXX \
ee134472 22426lt_prog_compiler_wl_CXX \
9c60689e
DWT
22427lt_prog_compiler_static_CXX \
22428lt_cv_prog_compiler_c_o_CXX \
22429export_dynamic_flag_spec_CXX \
22430whole_archive_flag_spec_CXX \
22431compiler_needs_object_CXX \
22432with_gnu_ld_CXX \
22433allow_undefined_flag_CXX \
22434no_undefined_flag_CXX \
22435hardcode_libdir_flag_spec_CXX \
9c60689e 22436hardcode_libdir_separator_CXX \
9c60689e
DWT
22437exclude_expsyms_CXX \
22438include_expsyms_CXX \
22439file_list_spec_CXX \
22440compiler_lib_search_dirs_CXX \
22441predep_objects_CXX \
22442postdep_objects_CXX \
22443predeps_CXX \
22444postdeps_CXX \
22445compiler_lib_search_path_CXX; do
ee134472 22446 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
9c60689e 22447 *[\\\\\\\`\\"\\\$]*)
9d54db95 22448 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
9c60689e
DWT
22449 ;;
22450 *)
22451 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22452 ;;
22453 esac
22454done
22455
22456# Double-quote double-evaled strings.
22457for var in reload_cmds \
22458old_postinstall_cmds \
22459old_postuninstall_cmds \
22460old_archive_cmds \
22461extract_expsyms_cmds \
22462old_archive_from_new_cmds \
22463old_archive_from_expsyms_cmds \
22464archive_cmds \
22465archive_expsym_cmds \
22466module_cmds \
22467module_expsym_cmds \
22468export_symbols_cmds \
22469prelink_cmds \
ee134472 22470postlink_cmds \
9c60689e
DWT
22471postinstall_cmds \
22472postuninstall_cmds \
22473finish_cmds \
22474sys_lib_search_path_spec \
9d54db95
JF
22475configure_time_dlsearch_path \
22476configure_time_lt_sys_library_path \
ee134472 22477reload_cmds_CXX \
9c60689e
DWT
22478old_archive_cmds_CXX \
22479old_archive_from_new_cmds_CXX \
22480old_archive_from_expsyms_cmds_CXX \
22481archive_cmds_CXX \
22482archive_expsym_cmds_CXX \
22483module_cmds_CXX \
22484module_expsym_cmds_CXX \
22485export_symbols_cmds_CXX \
ee134472
JF
22486prelink_cmds_CXX \
22487postlink_cmds_CXX; do
22488 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
9c60689e 22489 *[\\\\\\\`\\"\\\$]*)
9d54db95 22490 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
22491 ;;
22492 *)
22493 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22494 ;;
22495 esac
22496done
22497
9c60689e 22498ac_aux_dir='$ac_aux_dir'
9c60689e 22499
9d54db95 22500# See if we are running on zsh, and set the options that allow our
9c60689e 22501# commands through without removal of \ escapes INIT.
9d54db95 22502if test -n "\${ZSH_VERSION+set}"; then
9c60689e
DWT
22503 setopt NO_GLOB_SUBST
22504fi
22505
22506
22507 PACKAGE='$PACKAGE'
22508 VERSION='$VERSION'
9c60689e
DWT
22509 RM='$RM'
22510 ofile='$ofile'
22511
22512
22513
22514
22515
22516
22517_ACEOF
22518
22519cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22520
22521# Handling of arguments.
22522for ac_config_target in $ac_config_targets
22523do
22524 case $ac_config_target in
296ee9a6 22525 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
66170b30 22526 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9c60689e 22527 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
790e5246 22528 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9c60689e 22529
ee134472 22530 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9c60689e
DWT
22531 esac
22532done
22533
22534
22535# If the user did not use the arguments to specify the items to instantiate,
22536# then the envvar interface is used. Set only those that are not.
22537# We use the long form for the default assignment because of an extremely
22538# bizarre bug on SunOS 4.1.3.
22539if $ac_need_defaults; then
22540 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
296ee9a6 22541 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9c60689e
DWT
22542 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22543fi
22544
22545# Have a temporary directory for convenience. Make it in the build tree
22546# simply because there is no reason against having it here, and in addition,
22547# creating and moving files from /tmp can sometimes cause problems.
22548# Hook for its removal unless debugging.
22549# Note that there is a small window in which the directory will not be cleaned:
22550# after its creation but before its name has been assigned to `$tmp'.
22551$debug ||
22552{
ee134472 22553 tmp= ac_tmp=
9c60689e 22554 trap 'exit_status=$?
ee134472
JF
22555 : "${ac_tmp:=$tmp}"
22556 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9c60689e
DWT
22557' 0
22558 trap 'as_fn_exit 1' 1 2 13 15
22559}
22560# Create a (secure) tmp directory for tmp files.
22561
22562{
22563 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ee134472 22564 test -d "$tmp"
9c60689e
DWT
22565} ||
22566{
22567 tmp=./conf$$-$RANDOM
22568 (umask 077 && mkdir "$tmp")
12833ad8 22569} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ee134472 22570ac_tmp=$tmp
9c60689e
DWT
22571
22572# Set up the scripts for CONFIG_FILES section.
22573# No need to generate them if there are no CONFIG_FILES.
22574# This happens for instance with `./config.status config.h'.
22575if test -n "$CONFIG_FILES"; then
22576
22577
22578ac_cr=`echo X | tr X '\015'`
22579# On cygwin, bash can eat \r inside `` if the user requested igncr.
22580# But we know of no other shell where ac_cr would be empty at this
22581# point, so we can use a bashism as a fallback.
22582if test "x$ac_cr" = x; then
22583 eval ac_cr=\$\'\\r\'
22584fi
22585ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22586if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12833ad8 22587 ac_cs_awk_cr='\\r'
9c60689e
DWT
22588else
22589 ac_cs_awk_cr=$ac_cr
22590fi
22591
ee134472 22592echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9c60689e
DWT
22593_ACEOF
22594
22595
22596{
22597 echo "cat >conf$$subs.awk <<_ACEOF" &&
22598 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22599 echo "_ACEOF"
22600} >conf$$subs.sh ||
12833ad8
JF
22601 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22602ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9c60689e
DWT
22603ac_delim='%!_!# '
22604for ac_last_try in false false false false false :; do
22605 . ./conf$$subs.sh ||
12833ad8 22606 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
22607
22608 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22609 if test $ac_delim_n = $ac_delim_num; then
22610 break
22611 elif $ac_last_try; then
12833ad8 22612 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
22613 else
22614 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22615 fi
22616done
22617rm -f conf$$subs.sh
22618
22619cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ee134472 22620cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9c60689e
DWT
22621_ACEOF
22622sed -n '
22623h
22624s/^/S["/; s/!.*/"]=/
22625p
22626g
22627s/^[^!]*!//
22628:repl
22629t repl
22630s/'"$ac_delim"'$//
22631t delim
22632:nl
22633h
22634s/\(.\{148\}\)..*/\1/
22635t more1
22636s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22637p
22638n
22639b repl
22640:more1
22641s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22642p
22643g
22644s/.\{148\}//
22645t nl
22646:delim
22647h
22648s/\(.\{148\}\)..*/\1/
22649t more2
22650s/["\\]/\\&/g; s/^/"/; s/$/"/
22651p
22652b
22653:more2
22654s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22655p
22656g
22657s/.\{148\}//
22658t delim
22659' <conf$$subs.awk | sed '
22660/^[^""]/{
22661 N
22662 s/\n//
22663}
22664' >>$CONFIG_STATUS || ac_write_fail=1
22665rm -f conf$$subs.awk
22666cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22667_ACAWK
ee134472 22668cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9c60689e
DWT
22669 for (key in S) S_is_set[key] = 1
22670 FS = "\a"
22671
22672}
22673{
22674 line = $ 0
22675 nfields = split(line, field, "@")
22676 substed = 0
22677 len = length(field[1])
22678 for (i = 2; i < nfields; i++) {
22679 key = field[i]
22680 keylen = length(key)
22681 if (S_is_set[key]) {
22682 value = S[key]
22683 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22684 len += length(value) + length(field[++i])
22685 substed = 1
22686 } else
22687 len += 1 + keylen
22688 }
22689
22690 print line
22691}
22692
22693_ACAWK
22694_ACEOF
22695cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22696if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22697 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22698else
22699 cat
ee134472 22700fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12833ad8 22701 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9c60689e
DWT
22702_ACEOF
22703
12833ad8
JF
22704# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22705# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9c60689e
DWT
22706# trailing colons and then remove the whole line if VPATH becomes empty
22707# (actually we leave an empty line to preserve line numbers).
22708if test "x$srcdir" = x.; then
12833ad8
JF
22709 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22710h
22711s///
22712s/^/:/
22713s/[ ]*$/:/
22714s/:\$(srcdir):/:/g
22715s/:\${srcdir}:/:/g
22716s/:@srcdir@:/:/g
22717s/^:*//
9c60689e 22718s/:*$//
12833ad8
JF
22719x
22720s/\(=[ ]*\).*/\1/
22721G
22722s/\n//
9c60689e
DWT
22723s/^[^=]*=[ ]*$//
22724}'
22725fi
22726
22727cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22728fi # test -n "$CONFIG_FILES"
22729
296ee9a6
JF
22730# Set up the scripts for CONFIG_HEADERS section.
22731# No need to generate them if there are no CONFIG_HEADERS.
22732# This happens for instance with `./config.status Makefile'.
22733if test -n "$CONFIG_HEADERS"; then
22734cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22735BEGIN {
22736_ACEOF
22737
22738# Transform confdefs.h into an awk script `defines.awk', embedded as
22739# here-document in config.status, that substitutes the proper values into
22740# config.h.in to produce config.h.
22741
22742# Create a delimiter string that does not exist in confdefs.h, to ease
22743# handling of long lines.
22744ac_delim='%!_!# '
22745for ac_last_try in false false :; do
22746 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22747 if test -z "$ac_tt"; then
22748 break
22749 elif $ac_last_try; then
22750 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22751 else
22752 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22753 fi
22754done
22755
22756# For the awk script, D is an array of macro values keyed by name,
22757# likewise P contains macro parameters if any. Preserve backslash
22758# newline sequences.
22759
22760ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22761sed -n '
22762s/.\{148\}/&'"$ac_delim"'/g
22763t rset
22764:rset
22765s/^[ ]*#[ ]*define[ ][ ]*/ /
22766t def
22767d
22768:def
22769s/\\$//
22770t bsnl
22771s/["\\]/\\&/g
22772s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22773D["\1"]=" \3"/p
22774s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22775d
22776:bsnl
22777s/["\\]/\\&/g
22778s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22779D["\1"]=" \3\\\\\\n"\\/p
22780t cont
22781s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22782t cont
22783d
22784:cont
22785n
22786s/.\{148\}/&'"$ac_delim"'/g
22787t clear
22788:clear
22789s/\\$//
22790t bsnlc
22791s/["\\]/\\&/g; s/^/"/; s/$/"/p
22792d
22793:bsnlc
22794s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22795b cont
22796' <confdefs.h | sed '
22797s/'"$ac_delim"'/"\\\
22798"/g' >>$CONFIG_STATUS || ac_write_fail=1
22799
22800cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22801 for (key in D) D_is_set[key] = 1
22802 FS = "\a"
22803}
22804/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22805 line = \$ 0
22806 split(line, arg, " ")
22807 if (arg[1] == "#") {
22808 defundef = arg[2]
22809 mac1 = arg[3]
22810 } else {
22811 defundef = substr(arg[1], 2)
22812 mac1 = arg[2]
22813 }
22814 split(mac1, mac2, "(") #)
22815 macro = mac2[1]
22816 prefix = substr(line, 1, index(line, defundef) - 1)
22817 if (D_is_set[macro]) {
22818 # Preserve the white space surrounding the "#".
22819 print prefix "define", macro P[macro] D[macro]
22820 next
22821 } else {
22822 # Replace #undef with comments. This is necessary, for example,
22823 # in the case of _POSIX_SOURCE, which is predefined and required
22824 # on some systems where configure will not decide to define it.
22825 if (defundef == "undef") {
22826 print "/*", prefix defundef, macro, "*/"
22827 next
22828 }
22829 }
22830}
22831{ print }
22832_ACAWK
22833_ACEOF
22834cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22835 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22836fi # test -n "$CONFIG_HEADERS"
22837
9c60689e 22838
296ee9a6 22839eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9c60689e
DWT
22840shift
22841for ac_tag
22842do
22843 case $ac_tag in
22844 :[FHLC]) ac_mode=$ac_tag; continue;;
22845 esac
22846 case $ac_mode$ac_tag in
22847 :[FHL]*:*);;
ee134472 22848 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9c60689e
DWT
22849 :[FH]-) ac_tag=-:-;;
22850 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22851 esac
22852 ac_save_IFS=$IFS
22853 IFS=:
22854 set x $ac_tag
22855 IFS=$ac_save_IFS
22856 shift
22857 ac_file=$1
22858 shift
22859
22860 case $ac_mode in
22861 :L) ac_source=$1;;
22862 :[FH])
22863 ac_file_inputs=
22864 for ac_f
22865 do
22866 case $ac_f in
ee134472 22867 -) ac_f="$ac_tmp/stdin";;
9c60689e
DWT
22868 *) # Look for the file first in the build tree, then in the source tree
22869 # (if the path is not absolute). The absolute path cannot be DOS-style,
22870 # because $ac_f cannot contain `:'.
22871 test -f "$ac_f" ||
22872 case $ac_f in
22873 [\\/$]*) false;;
22874 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22875 esac ||
ee134472 22876 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9c60689e
DWT
22877 esac
22878 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22879 as_fn_append ac_file_inputs " '$ac_f'"
22880 done
22881
22882 # Let's still pretend it is `configure' which instantiates (i.e., don't
22883 # use $as_me), people would be surprised to read:
22884 # /* config.h. Generated by config.status. */
22885 configure_input='Generated from '`
22886 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22887 `' by configure.'
22888 if test x"$ac_file" != x-; then
22889 configure_input="$ac_file. $configure_input"
22890 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22891$as_echo "$as_me: creating $ac_file" >&6;}
22892 fi
22893 # Neutralize special characters interpreted by sed in replacement strings.
22894 case $configure_input in #(
22895 *\&* | *\|* | *\\* )
22896 ac_sed_conf_input=`$as_echo "$configure_input" |
22897 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22898 *) ac_sed_conf_input=$configure_input;;
22899 esac
22900
22901 case $ac_tag in
ee134472
JF
22902 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22903 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9c60689e
DWT
22904 esac
22905 ;;
22906 esac
22907
22908 ac_dir=`$as_dirname -- "$ac_file" ||
22909$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22910 X"$ac_file" : 'X\(//\)[^/]' \| \
22911 X"$ac_file" : 'X\(//\)$' \| \
22912 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22913$as_echo X"$ac_file" |
22914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22915 s//\1/
22916 q
22917 }
22918 /^X\(\/\/\)[^/].*/{
22919 s//\1/
22920 q
22921 }
22922 /^X\(\/\/\)$/{
22923 s//\1/
22924 q
22925 }
22926 /^X\(\/\).*/{
22927 s//\1/
22928 q
22929 }
22930 s/.*/./; q'`
22931 as_dir="$ac_dir"; as_fn_mkdir_p
22932 ac_builddir=.
22933
22934case "$ac_dir" in
22935.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22936*)
22937 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22938 # A ".." for each directory in $ac_dir_suffix.
22939 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22940 case $ac_top_builddir_sub in
22941 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22942 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22943 esac ;;
22944esac
22945ac_abs_top_builddir=$ac_pwd
22946ac_abs_builddir=$ac_pwd$ac_dir_suffix
22947# for backward compatibility:
22948ac_top_builddir=$ac_top_build_prefix
35fa52c0 22949
9c60689e
DWT
22950case $srcdir in
22951 .) # We are building in place.
22952 ac_srcdir=.
22953 ac_top_srcdir=$ac_top_builddir_sub
22954 ac_abs_top_srcdir=$ac_pwd ;;
22955 [\\/]* | ?:[\\/]* ) # Absolute name.
22956 ac_srcdir=$srcdir$ac_dir_suffix;
22957 ac_top_srcdir=$srcdir
22958 ac_abs_top_srcdir=$srcdir ;;
22959 *) # Relative name.
22960 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22961 ac_top_srcdir=$ac_top_build_prefix$srcdir
22962 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22963esac
22964ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35fa52c0
DWT
22965
22966
9c60689e
DWT
22967 case $ac_mode in
22968 :F)
22969 #
22970 # CONFIG_FILE
22971 #
35fa52c0 22972
9c60689e
DWT
22973 case $INSTALL in
22974 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22975 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22976 esac
66170b30
JF
22977 ac_MKDIR_P=$MKDIR_P
22978 case $MKDIR_P in
22979 [\\/$]* | ?:[\\/]* ) ;;
22980 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22981 esac
9c60689e 22982_ACEOF
35fa52c0 22983
9c60689e
DWT
22984cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22985# If the template does not know about datarootdir, expand it.
22986# FIXME: This hack should be removed a few years after 2.60.
22987ac_datarootdir_hack=; ac_datarootdir_seen=
22988ac_sed_dataroot='
22989/datarootdir/ {
22990 p
22991 q
22992}
22993/@datadir@/p
22994/@docdir@/p
22995/@infodir@/p
22996/@localedir@/p
22997/@mandir@/p'
22998case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22999*datarootdir*) ac_datarootdir_seen=yes;;
23000*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23002$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23003_ACEOF
23004cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23005 ac_datarootdir_hack='
23006 s&@datadir@&$datadir&g
23007 s&@docdir@&$docdir&g
23008 s&@infodir@&$infodir&g
23009 s&@localedir@&$localedir&g
23010 s&@mandir@&$mandir&g
23011 s&\\\${datarootdir}&$datarootdir&g' ;;
23012esac
23013_ACEOF
35fa52c0 23014
9c60689e
DWT
23015# Neutralize VPATH when `$srcdir' = `.'.
23016# Shell code in configure.ac might set extrasub.
23017# FIXME: do we really want to maintain this feature?
23018cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23019ac_sed_extra="$ac_vpsub
23020$extrasub
23021_ACEOF
23022cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23023:t
23024/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23025s|@configure_input@|$ac_sed_conf_input|;t t
23026s&@top_builddir@&$ac_top_builddir_sub&;t t
23027s&@top_build_prefix@&$ac_top_build_prefix&;t t
23028s&@srcdir@&$ac_srcdir&;t t
23029s&@abs_srcdir@&$ac_abs_srcdir&;t t
23030s&@top_srcdir@&$ac_top_srcdir&;t t
23031s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23032s&@builddir@&$ac_builddir&;t t
23033s&@abs_builddir@&$ac_abs_builddir&;t t
23034s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23035s&@INSTALL@&$ac_INSTALL&;t t
66170b30 23036s&@MKDIR_P@&$ac_MKDIR_P&;t t
9c60689e
DWT
23037$ac_datarootdir_hack
23038"
ee134472
JF
23039eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23040 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9c60689e
DWT
23041
23042test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
ee134472
JF
23043 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23044 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23045 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9c60689e 23046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12833ad8 23047which seems to be undefined. Please make sure it is defined" >&5
9c60689e 23048$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12833ad8 23049which seems to be undefined. Please make sure it is defined" >&2;}
9c60689e 23050
ee134472 23051 rm -f "$ac_tmp/stdin"
9c60689e 23052 case $ac_file in
ee134472
JF
23053 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23054 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9c60689e 23055 esac \
12833ad8 23056 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9c60689e 23057 ;;
296ee9a6
JF
23058 :H)
23059 #
23060 # CONFIG_HEADER
23061 #
23062 if test x"$ac_file" != x-; then
23063 {
23064 $as_echo "/* $configure_input */" \
23065 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23066 } >"$ac_tmp/config.h" \
23067 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23068 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23069 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23070$as_echo "$as_me: $ac_file is unchanged" >&6;}
23071 else
23072 rm -f "$ac_file"
23073 mv "$ac_tmp/config.h" "$ac_file" \
23074 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23075 fi
23076 else
23077 $as_echo "/* $configure_input */" \
23078 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23079 || as_fn_error $? "could not create -" "$LINENO" 5
23080 fi
23081# Compute "$ac_file"'s index in $config_headers.
23082_am_arg="$ac_file"
23083_am_stamp_count=1
23084for _am_header in $config_headers :; do
23085 case $_am_header in
23086 $_am_arg | $_am_arg:* )
23087 break ;;
23088 * )
23089 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23090 esac
23091done
23092echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23093$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23094 X"$_am_arg" : 'X\(//\)[^/]' \| \
23095 X"$_am_arg" : 'X\(//\)$' \| \
23096 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23097$as_echo X"$_am_arg" |
23098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23099 s//\1/
23100 q
23101 }
23102 /^X\(\/\/\)[^/].*/{
23103 s//\1/
23104 q
23105 }
23106 /^X\(\/\/\)$/{
23107 s//\1/
23108 q
23109 }
23110 /^X\(\/\).*/{
23111 s//\1/
23112 q
23113 }
23114 s/.*/./; q'`/stamp-h$_am_stamp_count
23115 ;;
35fa52c0 23116
9c60689e
DWT
23117 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23118$as_echo "$as_me: executing $ac_file commands" >&6;}
23119 ;;
23120 esac
35fa52c0 23121
35fa52c0 23122
9c60689e 23123 case $ac_file$ac_mode in
66170b30
JF
23124 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23125 # Older Autoconf quotes --file arguments for eval, but not when files
23126 # are listed without --file. Let's play safe and only enable the eval
23127 # if we detect the quoting.
23128 case $CONFIG_FILES in
23129 *\'*) eval set x "$CONFIG_FILES" ;;
23130 *) set x $CONFIG_FILES ;;
23131 esac
23132 shift
23133 for mf
23134 do
23135 # Strip MF so we end up with the name of the file.
23136 mf=`echo "$mf" | sed -e 's/:.*$//'`
23137 # Check whether this is an Automake generated Makefile or not.
23138 # We used to match only the files named 'Makefile.in', but
23139 # some people rename them; so instead we look at the file content.
23140 # Grep'ing the first line is not enough: some people post-process
23141 # each Makefile.in and add a new line on top of each file to say so.
23142 # Grep'ing the whole file is not good either: AIX grep has a line
23143 # limit of 2048, but all sed's we know have understand at least 4000.
23144 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23145 dirpart=`$as_dirname -- "$mf" ||
23146$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23147 X"$mf" : 'X\(//\)[^/]' \| \
23148 X"$mf" : 'X\(//\)$' \| \
23149 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23150$as_echo X"$mf" |
23151 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23152 s//\1/
23153 q
23154 }
23155 /^X\(\/\/\)[^/].*/{
23156 s//\1/
23157 q
23158 }
23159 /^X\(\/\/\)$/{
23160 s//\1/
23161 q
23162 }
23163 /^X\(\/\).*/{
23164 s//\1/
23165 q
23166 }
23167 s/.*/./; q'`
23168 else
23169 continue
23170 fi
23171 # Extract the definition of DEPDIR, am__include, and am__quote
23172 # from the Makefile without running 'make'.
23173 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23174 test -z "$DEPDIR" && continue
23175 am__include=`sed -n 's/^am__include = //p' < "$mf"`
a93f15c0 23176 test -z "$am__include" && continue
66170b30
JF
23177 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23178 # Find all dependency output files, they are included files with
23179 # $(DEPDIR) in their names. We invoke sed twice because it is the
23180 # simplest approach to changing $(DEPDIR) to its actual value in the
23181 # expansion.
23182 for file in `sed -n "
23183 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23184 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
23185 # Make sure the directory exists.
23186 test -f "$dirpart/$file" && continue
23187 fdir=`$as_dirname -- "$file" ||
23188$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23189 X"$file" : 'X\(//\)[^/]' \| \
23190 X"$file" : 'X\(//\)$' \| \
23191 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23192$as_echo X"$file" |
23193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23194 s//\1/
23195 q
23196 }
23197 /^X\(\/\/\)[^/].*/{
23198 s//\1/
23199 q
23200 }
23201 /^X\(\/\/\)$/{
23202 s//\1/
23203 q
23204 }
23205 /^X\(\/\).*/{
23206 s//\1/
23207 q
23208 }
23209 s/.*/./; q'`
23210 as_dir=$dirpart/$fdir; as_fn_mkdir_p
23211 # echo "creating $dirpart/$file"
23212 echo '# dummy' > "$dirpart/$file"
23213 done
23214 done
23215}
23216 ;;
9c60689e
DWT
23217 "libtool":C)
23218
9d54db95 23219 # See if we are running on zsh, and set the options that allow our
9c60689e 23220 # commands through without removal of \ escapes.
9d54db95 23221 if test -n "${ZSH_VERSION+set}"; then
9c60689e 23222 setopt NO_GLOB_SUBST
35fa52c0 23223 fi
35fa52c0 23224
9d54db95 23225 cfgfile=${ofile}T
9c60689e
DWT
23226 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23227 $RM "$cfgfile"
35fa52c0 23228
9c60689e
DWT
23229 cat <<_LT_EOF >> "$cfgfile"
23230#! $SHELL
9d54db95 23231# Generated automatically by $as_me ($PACKAGE) $VERSION
9c60689e
DWT
23232# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23233# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9d54db95
JF
23234
23235# Provide generalized library-building support services.
23236# Written by Gordon Matzigkeit, 1996
23237
23238# Copyright (C) 2014 Free Software Foundation, Inc.
23239# This is free software; see the source for copying conditions. There is NO
23240# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23241
23242# GNU Libtool is free software; you can redistribute it and/or modify
23243# it under the terms of the GNU General Public License as published by
23244# the Free Software Foundation; either version 2 of of the License, or
23245# (at your option) any later version.
9c60689e 23246#
9d54db95
JF
23247# As a special exception to the GNU General Public License, if you
23248# distribute this file as part of a program or library that is built
23249# using GNU Libtool, you may include this file under the same
23250# distribution terms that you use for the rest of that program.
9c60689e 23251#
9d54db95
JF
23252# GNU Libtool is distributed in the hope that it will be useful, but
23253# WITHOUT ANY WARRANTY; without even the implied warranty of
9c60689e
DWT
23254# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23255# GNU General Public License for more details.
23256#
23257# You should have received a copy of the GNU General Public License
9d54db95 23258# along with this program. If not, see <http://www.gnu.org/licenses/>.
35fa52c0 23259
35fa52c0 23260
9c60689e 23261# The names of the tagged configurations supported by this script.
9d54db95
JF
23262available_tags='CXX '
23263
23264# Configured defaults for sys_lib_dlsearch_path munging.
23265: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
35fa52c0 23266
9c60689e 23267# ### BEGIN LIBTOOL CONFIG
35fa52c0 23268
9c60689e
DWT
23269# Which release of libtool.m4 was used?
23270macro_version=$macro_version
23271macro_revision=$macro_revision
35fa52c0 23272
9c60689e
DWT
23273# Whether or not to build static libraries.
23274build_old_libs=$enable_static
35fa52c0 23275
549f29b5
DWT
23276# Whether or not to build shared libraries.
23277build_libtool_libs=$enable_shared
23278
9c60689e
DWT
23279# What type of objects to build.
23280pic_mode=$pic_mode
35fa52c0 23281
9c60689e
DWT
23282# Whether or not to optimize for fast installation.
23283fast_install=$enable_fast_install
35fa52c0 23284
9d54db95
JF
23285# Shared archive member basename,for filename based shared library versioning on AIX.
23286shared_archive_member_spec=$shared_archive_member_spec
23287
ee134472
JF
23288# Shell to use when invoking shell scripts.
23289SHELL=$lt_SHELL
23290
23291# An echo program that protects backslashes.
23292ECHO=$lt_ECHO
23293
53ba6704
JF
23294# The PATH separator for the build system.
23295PATH_SEPARATOR=$lt_PATH_SEPARATOR
23296
9c60689e
DWT
23297# The host system.
23298host_alias=$host_alias
23299host=$host
23300host_os=$host_os
35fa52c0 23301
9c60689e
DWT
23302# The build system.
23303build_alias=$build_alias
23304build=$build
23305build_os=$build_os
23306
23307# A sed program that does not truncate output.
23308SED=$lt_SED
23309
23310# Sed that helps us avoid accidentally triggering echo(1) options like -n.
23311Xsed="\$SED -e 1s/^X//"
23312
23313# A grep program that handles long lines.
23314GREP=$lt_GREP
23315
23316# An ERE matcher.
23317EGREP=$lt_EGREP
23318
23319# A literal string matcher.
23320FGREP=$lt_FGREP
23321
23322# A BSD- or MS-compatible name lister.
23323NM=$lt_NM
23324
23325# Whether we need soft or hard links.
23326LN_S=$lt_LN_S
23327
23328# What is the maximum length of a command?
23329max_cmd_len=$max_cmd_len
23330
23331# Object file suffix (normally "o").
23332objext=$ac_objext
23333
23334# Executable file suffix (normally "").
23335exeext=$exeext
23336
23337# whether the shell understands "unset".
23338lt_unset=$lt_unset
23339
23340# turn spaces into newlines.
23341SP2NL=$lt_lt_SP2NL
23342
23343# turn newlines into spaces.
23344NL2SP=$lt_lt_NL2SP
23345
ee134472
JF
23346# convert \$build file names to \$host format.
23347to_host_file_cmd=$lt_cv_to_host_file_cmd
23348
23349# convert \$build files to toolchain format.
23350to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9c60689e
DWT
23351
23352# An object symbol dumper.
23353OBJDUMP=$lt_OBJDUMP
23354
23355# Method to check whether dependent libraries are shared objects.
23356deplibs_check_method=$lt_deplibs_check_method
23357
ee134472 23358# Command to use when deplibs_check_method = "file_magic".
9c60689e
DWT
23359file_magic_cmd=$lt_file_magic_cmd
23360
ee134472
JF
23361# How to find potential files when deplibs_check_method = "file_magic".
23362file_magic_glob=$lt_file_magic_glob
23363
23364# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23365want_nocaseglob=$lt_want_nocaseglob
23366
23367# DLL creation program.
23368DLLTOOL=$lt_DLLTOOL
23369
23370# Command to associate shared and link libraries.
23371sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23372
9c60689e
DWT
23373# The archiver.
23374AR=$lt_AR
ee134472
JF
23375
23376# Flags to create an archive.
9c60689e
DWT
23377AR_FLAGS=$lt_AR_FLAGS
23378
ee134472
JF
23379# How to feed a file listing to the archiver.
23380archiver_list_spec=$lt_archiver_list_spec
23381
9c60689e
DWT
23382# A symbol stripping program.
23383STRIP=$lt_STRIP
23384
23385# Commands used to install an old-style archive.
23386RANLIB=$lt_RANLIB
23387old_postinstall_cmds=$lt_old_postinstall_cmds
23388old_postuninstall_cmds=$lt_old_postuninstall_cmds
23389
ee134472
JF
23390# Whether to use a lock for old archive extraction.
23391lock_old_archive_extraction=$lock_old_archive_extraction
23392
9c60689e
DWT
23393# A C compiler.
23394LTCC=$lt_CC
23395
23396# LTCC compiler flags.
23397LTCFLAGS=$lt_CFLAGS
23398
23399# Take the output of nm and produce a listing of raw symbols and C names.
23400global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23401
23402# Transform the output of nm in a proper C declaration.
23403global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23404
9d54db95
JF
23405# Transform the output of nm into a list of symbols to manually relocate.
23406global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23407
9c60689e
DWT
23408# Transform the output of nm in a C name address pair.
23409global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23410
23411# Transform the output of nm in a C name address pair when lib prefix is needed.
23412global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23413
9d54db95
JF
23414# The name lister interface.
23415nm_interface=$lt_lt_cv_nm_interface
23416
ee134472
JF
23417# Specify filename containing input files for \$NM.
23418nm_file_list_spec=$lt_nm_file_list_spec
9c60689e 23419
9d54db95 23420# The root where to search for dependent libraries,and where our libraries should be installed.
ee134472 23421lt_sysroot=$lt_sysroot
9c60689e 23422
9d54db95
JF
23423# Command to truncate a binary pipe.
23424lt_truncate_bin=$lt_lt_cv_truncate_bin
23425
ee134472
JF
23426# The name of the directory that contains temporary libtool files.
23427objdir=$objdir
9c60689e
DWT
23428
23429# Used to examine libraries when file_magic_cmd begins with "file".
23430MAGIC_CMD=$MAGIC_CMD
23431
23432# Must we lock files when doing compilation?
23433need_locks=$lt_need_locks
23434
ee134472
JF
23435# Manifest tool.
23436MANIFEST_TOOL=$lt_MANIFEST_TOOL
23437
9c60689e
DWT
23438# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23439DSYMUTIL=$lt_DSYMUTIL
23440
23441# Tool to change global to local symbols on Mac OS X.
23442NMEDIT=$lt_NMEDIT
23443
23444# Tool to manipulate fat objects and archives on Mac OS X.
23445LIPO=$lt_LIPO
23446
23447# ldd/readelf like tool for Mach-O binaries on Mac OS X.
23448OTOOL=$lt_OTOOL
23449
23450# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23451OTOOL64=$lt_OTOOL64
23452
23453# Old archive suffix (normally "a").
23454libext=$libext
23455
23456# Shared library suffix (normally ".so").
23457shrext_cmds=$lt_shrext_cmds
35fa52c0 23458
9c60689e
DWT
23459# The commands to extract the exported symbol list from a shared archive.
23460extract_expsyms_cmds=$lt_extract_expsyms_cmds
35fa52c0 23461
9c60689e
DWT
23462# Variables whose values should be saved in libtool wrapper scripts and
23463# restored at link time.
23464variables_saved_for_relink=$lt_variables_saved_for_relink
35fa52c0 23465
9c60689e
DWT
23466# Do we need the "lib" prefix for modules?
23467need_lib_prefix=$need_lib_prefix
35fa52c0 23468
9c60689e
DWT
23469# Do we need a version for libraries?
23470need_version=$need_version
35fa52c0 23471
9c60689e
DWT
23472# Library versioning type.
23473version_type=$version_type
35fa52c0 23474
9c60689e
DWT
23475# Shared library runtime path variable.
23476runpath_var=$runpath_var
35fa52c0 23477
9c60689e
DWT
23478# Shared library path variable.
23479shlibpath_var=$shlibpath_var
35fa52c0 23480
9c60689e
DWT
23481# Is shlibpath searched before the hard-coded library search path?
23482shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35fa52c0 23483
9c60689e
DWT
23484# Format of library name prefix.
23485libname_spec=$lt_libname_spec
35fa52c0 23486
9c60689e
DWT
23487# List of archive names. First name is the real one, the rest are links.
23488# The last name is the one that the linker finds with -lNAME
23489library_names_spec=$lt_library_names_spec
dbadc56a 23490
9c60689e
DWT
23491# The coded name of the library, if different from the real name.
23492soname_spec=$lt_soname_spec
dbadc56a 23493
ee134472
JF
23494# Permission mode override for installation of shared libraries.
23495install_override_mode=$lt_install_override_mode
23496
9c60689e
DWT
23497# Command to use after installation of a shared archive.
23498postinstall_cmds=$lt_postinstall_cmds
35fa52c0 23499
9c60689e
DWT
23500# Command to use after uninstallation of a shared archive.
23501postuninstall_cmds=$lt_postuninstall_cmds
dbadc56a 23502
9c60689e
DWT
23503# Commands used to finish a libtool library installation in a directory.
23504finish_cmds=$lt_finish_cmds
35fa52c0 23505
9c60689e
DWT
23506# As "finish_cmds", except a single script fragment to be evaled but
23507# not shown.
23508finish_eval=$lt_finish_eval
35fa52c0 23509
9c60689e
DWT
23510# Whether we should hardcode library paths into libraries.
23511hardcode_into_libs=$hardcode_into_libs
dbadc56a 23512
9c60689e
DWT
23513# Compile-time system search path for libraries.
23514sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35fa52c0 23515
9d54db95
JF
23516# Detected run-time system search path for libraries.
23517sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23518
23519# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23520configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
dbadc56a 23521
9c60689e
DWT
23522# Whether dlopen is supported.
23523dlopen_support=$enable_dlopen
dbadc56a 23524
9c60689e
DWT
23525# Whether dlopen of programs is supported.
23526dlopen_self=$enable_dlopen_self
35fa52c0 23527
9c60689e
DWT
23528# Whether dlopen of statically linked programs is supported.
23529dlopen_self_static=$enable_dlopen_self_static
35fa52c0 23530
9c60689e
DWT
23531# Commands to strip libraries.
23532old_striplib=$lt_old_striplib
23533striplib=$lt_striplib
35fa52c0 23534
35fa52c0 23535
9c60689e
DWT
23536# The linker used to build libraries.
23537LD=$lt_LD
dbadc56a 23538
ee134472
JF
23539# How to create reloadable object files.
23540reload_flag=$lt_reload_flag
23541reload_cmds=$lt_reload_cmds
23542
9c60689e
DWT
23543# Commands used to build an old-style archive.
23544old_archive_cmds=$lt_old_archive_cmds
dbadc56a 23545
9c60689e
DWT
23546# A language specific compiler.
23547CC=$lt_compiler
35fa52c0 23548
9c60689e
DWT
23549# Is the compiler the GNU compiler?
23550with_gcc=$GCC
dbadc56a 23551
9c60689e
DWT
23552# Compiler flag to turn off builtin functions.
23553no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
dbadc56a 23554
9c60689e
DWT
23555# Additional compiler flags for building library objects.
23556pic_flag=$lt_lt_prog_compiler_pic
35fa52c0 23557
ee134472
JF
23558# How to pass a linker flag through the compiler.
23559wl=$lt_lt_prog_compiler_wl
23560
9c60689e
DWT
23561# Compiler flag to prevent dynamic linking.
23562link_static_flag=$lt_lt_prog_compiler_static
35fa52c0 23563
9c60689e
DWT
23564# Does compiler simultaneously support -c and -o options?
23565compiler_c_o=$lt_lt_cv_prog_compiler_c_o
dbadc56a 23566
9c60689e
DWT
23567# Whether or not to add -lc for building shared libraries.
23568build_libtool_need_lc=$archive_cmds_need_lc
35fa52c0 23569
9c60689e
DWT
23570# Whether or not to disallow shared libs when runtime libs are static.
23571allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35fa52c0 23572
9c60689e
DWT
23573# Compiler flag to allow reflexive dlopens.
23574export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35fa52c0 23575
9c60689e
DWT
23576# Compiler flag to generate shared objects directly from archives.
23577whole_archive_flag_spec=$lt_whole_archive_flag_spec
dbadc56a 23578
9c60689e
DWT
23579# Whether the compiler copes with passing no objects directly.
23580compiler_needs_object=$lt_compiler_needs_object
dbadc56a 23581
9c60689e
DWT
23582# Create an old-style archive from a shared archive.
23583old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
dbadc56a 23584
9c60689e
DWT
23585# Create a temporary old-style archive to link instead of a shared archive.
23586old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
dbadc56a 23587
9c60689e
DWT
23588# Commands used to build a shared archive.
23589archive_cmds=$lt_archive_cmds
23590archive_expsym_cmds=$lt_archive_expsym_cmds
35fa52c0 23591
9c60689e
DWT
23592# Commands used to build a loadable module if different from building
23593# a shared archive.
23594module_cmds=$lt_module_cmds
23595module_expsym_cmds=$lt_module_expsym_cmds
dbadc56a 23596
9c60689e
DWT
23597# Whether we are building with GNU ld or not.
23598with_gnu_ld=$lt_with_gnu_ld
6b66678a 23599
9c60689e
DWT
23600# Flag that allows shared libraries with undefined symbols to be built.
23601allow_undefined_flag=$lt_allow_undefined_flag
6b66678a 23602
9c60689e
DWT
23603# Flag that enforces no undefined symbols.
23604no_undefined_flag=$lt_no_undefined_flag
6b66678a 23605
9c60689e
DWT
23606# Flag to hardcode \$libdir into a binary during linking.
23607# This must work even if \$libdir does not exist
23608hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6b66678a 23609
9c60689e
DWT
23610# Whether we need a single "-rpath" flag with a separated argument.
23611hardcode_libdir_separator=$lt_hardcode_libdir_separator
6b66678a 23612
9d54db95 23613# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
9c60689e
DWT
23614# DIR into the resulting binary.
23615hardcode_direct=$hardcode_direct
6b66678a 23616
9d54db95 23617# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
9c60689e 23618# DIR into the resulting binary and the resulting library dependency is
9d54db95 23619# "absolute",i.e impossible to change by setting \$shlibpath_var if the
9c60689e
DWT
23620# library is relocated.
23621hardcode_direct_absolute=$hardcode_direct_absolute
6b66678a 23622
9c60689e
DWT
23623# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23624# into the resulting binary.
23625hardcode_minus_L=$hardcode_minus_L
6b66678a 23626
9c60689e
DWT
23627# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23628# into the resulting binary.
23629hardcode_shlibpath_var=$hardcode_shlibpath_var
6b66678a 23630
9c60689e
DWT
23631# Set to "yes" if building a shared library automatically hardcodes DIR
23632# into the library and all subsequent libraries and executables linked
23633# against it.
23634hardcode_automatic=$hardcode_automatic
6b66678a 23635
9c60689e
DWT
23636# Set to yes if linker adds runtime paths of dependent libraries
23637# to runtime path list.
23638inherit_rpath=$inherit_rpath
6b66678a 23639
9c60689e
DWT
23640# Whether libtool must link a program against all its dependency libraries.
23641link_all_deplibs=$link_all_deplibs
23642
9c60689e
DWT
23643# Set to "yes" if exported symbols are required.
23644always_export_symbols=$always_export_symbols
6b66678a 23645
9c60689e
DWT
23646# The commands to list exported symbols.
23647export_symbols_cmds=$lt_export_symbols_cmds
6b66678a 23648
9c60689e
DWT
23649# Symbols that should not be listed in the preloaded symbols.
23650exclude_expsyms=$lt_exclude_expsyms
6b66678a 23651
9c60689e
DWT
23652# Symbols that must always be exported.
23653include_expsyms=$lt_include_expsyms
6b66678a 23654
9c60689e
DWT
23655# Commands necessary for linking programs (against libraries) with templates.
23656prelink_cmds=$lt_prelink_cmds
6b66678a 23657
ee134472
JF
23658# Commands necessary for finishing linking programs.
23659postlink_cmds=$lt_postlink_cmds
23660
9c60689e
DWT
23661# Specify filename containing input files.
23662file_list_spec=$lt_file_list_spec
6b66678a 23663
9c60689e
DWT
23664# How to hardcode a shared library path into an executable.
23665hardcode_action=$hardcode_action
23666
23667# The directories searched by this compiler when creating a shared library.
23668compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23669
23670# Dependencies to place before and after the objects being linked to
23671# create a shared library.
23672predep_objects=$lt_predep_objects
23673postdep_objects=$lt_postdep_objects
23674predeps=$lt_predeps
23675postdeps=$lt_postdeps
23676
23677# The library search path used internally by the compiler when linking
23678# a shared library.
23679compiler_lib_search_path=$lt_compiler_lib_search_path
23680
23681# ### END LIBTOOL CONFIG
23682
9d54db95
JF
23683_LT_EOF
23684
23685 cat <<'_LT_EOF' >> "$cfgfile"
23686
23687# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23688
23689# func_munge_path_list VARIABLE PATH
23690# -----------------------------------
23691# VARIABLE is name of variable containing _space_ separated list of
23692# directories to be munged by the contents of PATH, which is string
23693# having a format:
23694# "DIR[:DIR]:"
23695# string "DIR[ DIR]" will be prepended to VARIABLE
23696# ":DIR[:DIR]"
23697# string "DIR[ DIR]" will be appended to VARIABLE
23698# "DIRP[:DIRP]::[DIRA:]DIRA"
23699# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23700# "DIRA[ DIRA]" will be appended to VARIABLE
23701# "DIR[:DIR]"
23702# VARIABLE will be replaced by "DIR[ DIR]"
23703func_munge_path_list ()
23704{
23705 case x$2 in
23706 x)
23707 ;;
23708 *:)
23709 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23710 ;;
23711 x:*)
23712 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23713 ;;
23714 *::*)
23715 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23716 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23717 ;;
23718 *)
23719 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23720 ;;
23721 esac
23722}
23723
23724
23725# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23726func_cc_basename ()
23727{
23728 for cc_temp in $*""; do
23729 case $cc_temp in
23730 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23731 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23732 \-*) ;;
23733 *) break;;
23734 esac
23735 done
23736 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23737}
23738
23739
23740# ### END FUNCTIONS SHARED WITH CONFIGURE
23741
9c60689e
DWT
23742_LT_EOF
23743
23744 case $host_os in
23745 aix3*)
23746 cat <<\_LT_EOF >> "$cfgfile"
23747# AIX sometimes has problems with the GCC collect2 program. For some
23748# reason, if we set the COLLECT_NAMES environment variable, the problems
23749# vanish in a puff of smoke.
9d54db95 23750if test set != "${COLLECT_NAMES+set}"; then
9c60689e
DWT
23751 COLLECT_NAMES=
23752 export COLLECT_NAMES
6b66678a 23753fi
9c60689e
DWT
23754_LT_EOF
23755 ;;
23756 esac
6b66678a
DWT
23757
23758
9d54db95 23759ltmain=$ac_aux_dir/ltmain.sh
6b66678a 23760
9c60689e
DWT
23761
23762 # We use sed instead of cat because bash on DJGPP gets confused if
23763 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23764 # text mode, it properly converts lines to CR/LF. This bash problem
23765 # is reportedly fixed, but why not run on old versions too?
ee134472
JF
23766 sed '$q' "$ltmain" >> "$cfgfile" \
23767 || (rm -f "$cfgfile"; exit 1)
23768
ee134472 23769 mv -f "$cfgfile" "$ofile" ||
9c60689e
DWT
23770 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23771 chmod +x "$ofile"
23772
23773
23774 cat <<_LT_EOF >> "$ofile"
23775
23776# ### BEGIN LIBTOOL TAG CONFIG: CXX
23777
23778# The linker used to build libraries.
23779LD=$lt_LD_CXX
23780
ee134472
JF
23781# How to create reloadable object files.
23782reload_flag=$lt_reload_flag_CXX
23783reload_cmds=$lt_reload_cmds_CXX
23784
9c60689e
DWT
23785# Commands used to build an old-style archive.
23786old_archive_cmds=$lt_old_archive_cmds_CXX
23787
23788# A language specific compiler.
23789CC=$lt_compiler_CXX
23790
23791# Is the compiler the GNU compiler?
23792with_gcc=$GCC_CXX
23793
23794# Compiler flag to turn off builtin functions.
23795no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
6b66678a 23796
9c60689e
DWT
23797# Additional compiler flags for building library objects.
23798pic_flag=$lt_lt_prog_compiler_pic_CXX
6b66678a 23799
ee134472
JF
23800# How to pass a linker flag through the compiler.
23801wl=$lt_lt_prog_compiler_wl_CXX
23802
9c60689e
DWT
23803# Compiler flag to prevent dynamic linking.
23804link_static_flag=$lt_lt_prog_compiler_static_CXX
6b66678a 23805
9c60689e
DWT
23806# Does compiler simultaneously support -c and -o options?
23807compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
dbadc56a 23808
9c60689e
DWT
23809# Whether or not to add -lc for building shared libraries.
23810build_libtool_need_lc=$archive_cmds_need_lc_CXX
dbadc56a 23811
9c60689e
DWT
23812# Whether or not to disallow shared libs when runtime libs are static.
23813allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35fa52c0 23814
9c60689e
DWT
23815# Compiler flag to allow reflexive dlopens.
23816export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35fa52c0 23817
9c60689e
DWT
23818# Compiler flag to generate shared objects directly from archives.
23819whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35fa52c0 23820
9c60689e
DWT
23821# Whether the compiler copes with passing no objects directly.
23822compiler_needs_object=$lt_compiler_needs_object_CXX
35fa52c0 23823
9c60689e
DWT
23824# Create an old-style archive from a shared archive.
23825old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35fa52c0 23826
9c60689e
DWT
23827# Create a temporary old-style archive to link instead of a shared archive.
23828old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35fa52c0 23829
9c60689e
DWT
23830# Commands used to build a shared archive.
23831archive_cmds=$lt_archive_cmds_CXX
23832archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
6b66678a 23833
9c60689e
DWT
23834# Commands used to build a loadable module if different from building
23835# a shared archive.
23836module_cmds=$lt_module_cmds_CXX
23837module_expsym_cmds=$lt_module_expsym_cmds_CXX
6b66678a 23838
9c60689e
DWT
23839# Whether we are building with GNU ld or not.
23840with_gnu_ld=$lt_with_gnu_ld_CXX
6b66678a 23841
9c60689e
DWT
23842# Flag that allows shared libraries with undefined symbols to be built.
23843allow_undefined_flag=$lt_allow_undefined_flag_CXX
35fa52c0 23844
9c60689e
DWT
23845# Flag that enforces no undefined symbols.
23846no_undefined_flag=$lt_no_undefined_flag_CXX
35fa52c0 23847
9c60689e
DWT
23848# Flag to hardcode \$libdir into a binary during linking.
23849# This must work even if \$libdir does not exist
23850hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
6b66678a 23851
9c60689e
DWT
23852# Whether we need a single "-rpath" flag with a separated argument.
23853hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
6b66678a 23854
9d54db95 23855# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
9c60689e
DWT
23856# DIR into the resulting binary.
23857hardcode_direct=$hardcode_direct_CXX
6b66678a 23858
9d54db95 23859# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
9c60689e 23860# DIR into the resulting binary and the resulting library dependency is
9d54db95 23861# "absolute",i.e impossible to change by setting \$shlibpath_var if the
9c60689e
DWT
23862# library is relocated.
23863hardcode_direct_absolute=$hardcode_direct_absolute_CXX
6b66678a 23864
9c60689e
DWT
23865# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23866# into the resulting binary.
23867hardcode_minus_L=$hardcode_minus_L_CXX
35fa52c0 23868
9c60689e
DWT
23869# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23870# into the resulting binary.
23871hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35fa52c0 23872
9c60689e
DWT
23873# Set to "yes" if building a shared library automatically hardcodes DIR
23874# into the library and all subsequent libraries and executables linked
23875# against it.
23876hardcode_automatic=$hardcode_automatic_CXX
6b66678a 23877
9c60689e
DWT
23878# Set to yes if linker adds runtime paths of dependent libraries
23879# to runtime path list.
23880inherit_rpath=$inherit_rpath_CXX
6b66678a 23881
9c60689e
DWT
23882# Whether libtool must link a program against all its dependency libraries.
23883link_all_deplibs=$link_all_deplibs_CXX
6b66678a 23884
9c60689e
DWT
23885# Set to "yes" if exported symbols are required.
23886always_export_symbols=$always_export_symbols_CXX
6b66678a 23887
9c60689e
DWT
23888# The commands to list exported symbols.
23889export_symbols_cmds=$lt_export_symbols_cmds_CXX
6b66678a 23890
9c60689e
DWT
23891# Symbols that should not be listed in the preloaded symbols.
23892exclude_expsyms=$lt_exclude_expsyms_CXX
6b66678a 23893
9c60689e
DWT
23894# Symbols that must always be exported.
23895include_expsyms=$lt_include_expsyms_CXX
6b66678a 23896
9c60689e
DWT
23897# Commands necessary for linking programs (against libraries) with templates.
23898prelink_cmds=$lt_prelink_cmds_CXX
6b66678a 23899
ee134472
JF
23900# Commands necessary for finishing linking programs.
23901postlink_cmds=$lt_postlink_cmds_CXX
23902
9c60689e
DWT
23903# Specify filename containing input files.
23904file_list_spec=$lt_file_list_spec_CXX
dbadc56a 23905
9c60689e
DWT
23906# How to hardcode a shared library path into an executable.
23907hardcode_action=$hardcode_action_CXX
309b0535 23908
9c60689e
DWT
23909# The directories searched by this compiler when creating a shared library.
23910compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
309b0535 23911
9c60689e
DWT
23912# Dependencies to place before and after the objects being linked to
23913# create a shared library.
23914predep_objects=$lt_predep_objects_CXX
23915postdep_objects=$lt_postdep_objects_CXX
23916predeps=$lt_predeps_CXX
23917postdeps=$lt_postdeps_CXX
309b0535 23918
9c60689e
DWT
23919# The library search path used internally by the compiler when linking
23920# a shared library.
23921compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23922
23923# ### END LIBTOOL TAG CONFIG: CXX
23924_LT_EOF
23925
23926 ;;
23927
23928 esac
23929done # for ac_tag
23930
23931
23932as_fn_exit 0
23933_ACEOF
23934ac_clean_files=$ac_clean_files_save
23935
23936test $ac_write_fail = 0 ||
12833ad8 23937 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
23938
23939
23940# configure is writing to config.log, and then calls config.status.
23941# config.status does its own redirection, appending to config.log.
23942# Unfortunately, on DOS this fails, as config.log is still kept open
23943# by configure, so config.status won't be able to write to it; its
23944# output is simply discarded. So we exec the FD to /dev/null,
23945# effectively closing config.log, so it can be properly (re)opened and
23946# appended to by config.status. When coming back to configure, we
23947# need to make the FD available again.
23948if test "$no_create" != yes; then
23949 ac_cs_success=:
23950 ac_config_status_args=
23951 test "$silent" = yes &&
23952 ac_config_status_args="$ac_config_status_args --quiet"
23953 exec 5>/dev/null
23954 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23955 exec 5>>config.log
23956 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23957 # would make configure fail if this is the last instruction.
12833ad8 23958 $ac_cs_success || as_fn_exit 1
309b0535 23959fi
9c60689e
DWT
23960if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23962$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23963fi
23964