]> git.saurik.com Git - cycript.git/blame - configure
Upgrade to a more recent build of libtool 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
a243b558
JF
641CY_MACH_FALSE
642CY_MACH_TRUE
66170b30 643CY_MACH
7eda51e0 644CY_ATTACH_GROUP
a243b558
JF
645ac_ct__OTOOL
646_OTOOL
794e88e7
DWT
647ac_ct__NM
648_NM
649ac_ct__LIPO
650_LIPO
9777bd50 651SO
66170b30 652LTFLAGS
3615a2f7 653LTLIBGCC
6f9aea2b
JF
654LTLIBTERMCAP
655LTLIBREADLINE
a243b558
JF
656CY_OBJECTIVEC_FALSE
657CY_OBJECTIVEC_TRUE
39ed1631
JF
658CY_JAVA_FALSE
659CY_JAVA_TRUE
babf7fe8 660LTOBJECTIVEC
47aaa820 661GNUSTEP_CONFIG
c823f118 662CY_OBJECTIVEC
39ed1631
JF
663LTJAVA
664CY_JAVA
296ee9a6 665LTLIBFFI
309b0535 666LIBFFI_LIBS
35fa52c0 667LIBFFI_CFLAGS
a243b558
JF
668CY_EXECUTE_FALSE
669CY_EXECUTE_TRUE
a93f15c0
JF
670CY_CONSOLE_FALSE
671CY_CONSOLE_TRUE
babf7fe8 672LTJAVASCRIPTCORE
35fa52c0
DWT
673WEBKIT_LIBS
674WEBKIT_CFLAGS
7eda51e0 675CY_EXECUTE
abc804fa 676CY_ARCH
9228a43a 677CY_FILTERS
e9c9a47c 678GNUTAR
e9c9a47c
DWT
679GPERF
680FLEX
681BISON
682TIME
66170b30 683GIT
12833ad8
JF
684PKG_CONFIG_LIBDIR
685PKG_CONFIG_PATH
3fd51f51 686PKG_CONFIG
1771224f 687HAVE_CXX11
a243b558 688CXXCPP
9c60689e 689CPP
9d54db95 690LT_SYS_LIBRARY_PATH
9c60689e
DWT
691OTOOL64
692OTOOL
693LIPO
694NMEDIT
695DSYMUTIL
ee134472 696MANIFEST_TOOL
9c60689e 697RANLIB
ee134472 698DLLTOOL
9c60689e
DWT
699OBJDUMP
700LN_S
701NM
702ac_ct_DUMPBIN
703DUMPBIN
704LD
705FGREP
706EGREP
707GREP
708SED
a243b558
JF
709host_os
710host_vendor
711host_cpu
712host
713build_os
714build_vendor
715build_cpu
716build
717LIBTOOL
a243b558
JF
718ac_ct_AR
719AR
720am__fastdepOBJCXX_FALSE
721am__fastdepOBJCXX_TRUE
722OBJCXXDEPMODE
723ac_ct_OBJCXX
724OBJCXXFLAGS
725OBJCXX
726am__fastdepCXX_FALSE
727am__fastdepCXX_TRUE
728CXXDEPMODE
a93f15c0
JF
729ac_ct_CXX
730CXXFLAGS
731CXX
732am__fastdepCC_FALSE
733am__fastdepCC_TRUE
734CCDEPMODE
66170b30
JF
735am__nodep
736AMDEPBACKSLASH
737AMDEP_FALSE
738AMDEP_TRUE
739am__quote
740am__include
741DEPDIR
35fa52c0
DWT
742OBJEXT
743EXEEXT
a93f15c0 744ac_ct_CC
35fa52c0
DWT
745CPPFLAGS
746LDFLAGS
a93f15c0
JF
747CFLAGS
748CC
babf7fe8
JF
749MAINT
750MAINTAINER_MODE_FALSE
751MAINTAINER_MODE_TRUE
66170b30
JF
752AM_BACKSLASH
753AM_DEFAULT_VERBOSITY
754AM_DEFAULT_V
755AM_V
756am__untar
757am__tar
758AMTAR
759am__leading_dot
760SET_MAKE
761AWK
762mkdir_p
763MKDIR_P
764INSTALL_STRIP_PROGRAM
765STRIP
766install_sh
767MAKEINFO
768AUTOHEADER
769AUTOMAKE
770AUTOCONF
771ACLOCAL
772VERSION
773PACKAGE
774CYGPATH_W
775am__isrc
776INSTALL_DATA
777INSTALL_SCRIPT
778INSTALL_PROGRAM
dbadc56a 779target_alias
c7aa54aa
DWT
780host_alias
781build_alias
782LIBS
783ECHO_T
784ECHO_N
785ECHO_C
786DEFS
787mandir
788localedir
789libdir
790psdir
791pdfdir
792dvidir
793htmldir
794infodir
795docdir
796oldincludedir
797includedir
798localstatedir
799sharedstatedir
800sysconfdir
801datadir
802datarootdir
803libexecdir
804sbindir
805bindir
806program_transform_name
807prefix
808exec_prefix
809PACKAGE_URL
810PACKAGE_BUGREPORT
811PACKAGE_STRING
812PACKAGE_VERSION
813PACKAGE_TARNAME
814PACKAGE_NAME
815PATH_SEPARATOR
816SHELL'
817ac_subst_files=''
818ac_user_opts='
819enable_option_checking
66170b30 820enable_silent_rules
babf7fe8 821enable_maintainer_mode
a243b558 822enable_dependency_tracking
9c60689e 823enable_static
549f29b5 824enable_shared
9c60689e
DWT
825with_pic
826enable_fast_install
9d54db95 827with_aix_soname
35fa52c0 828with_gnu_ld
ee134472 829with_sysroot
9c60689e 830enable_libtool_lock
5053a6d1 831enable_javascript
a93f15c0 832enable_console
c7aa54aa
DWT
833'
834 ac_precious_vars='build_alias
835host_alias
dbadc56a 836target_alias
a93f15c0
JF
837CC
838CFLAGS
dbadc56a
DWT
839LDFLAGS
840LIBS
841CPPFLAGS
a93f15c0
JF
842CXX
843CXXFLAGS
a243b558
JF
844CCC
845OBJCXX
846OBJCXXFLAGS
9d54db95 847LT_SYS_LIBRARY_PATH
9c60689e 848CPP
a243b558 849CXXCPP
3fd51f51 850PKG_CONFIG
12833ad8
JF
851PKG_CONFIG_PATH
852PKG_CONFIG_LIBDIR
e9c9a47c
DWT
853BISON
854FLEX
855GPERF
66170b30 856GNUTAR
35fa52c0
DWT
857WEBKIT_CFLAGS
858WEBKIT_LIBS
a667869d 859LIBFFI_CFLAGS
790e5246
DWT
860LIBFFI_LIBS
861GNUSTEP_CONFIG'
c7aa54aa
DWT
862
863
864# Initialize some variables set by options.
865ac_init_help=
866ac_init_version=false
867ac_unrecognized_opts=
868ac_unrecognized_sep=
869# The variables have the same names as the options, with
870# dashes changed to underlines.
871cache_file=/dev/null
872exec_prefix=NONE
873no_create=
874no_recursion=
875prefix=NONE
876program_prefix=NONE
877program_suffix=NONE
878program_transform_name=s,x,x,
879silent=
880site=
881srcdir=
882verbose=
883x_includes=NONE
884x_libraries=NONE
885
886# Installation directory options.
887# These are left unexpanded so users can "make install exec_prefix=/foo"
888# and all the variables that are supposed to be based on exec_prefix
889# by default will actually change.
890# Use braces instead of parens because sh, perl, etc. also accept them.
891# (The list follows the same order as the GNU Coding Standards.)
892bindir='${exec_prefix}/bin'
893sbindir='${exec_prefix}/sbin'
894libexecdir='${exec_prefix}/libexec'
895datarootdir='${prefix}/share'
896datadir='${datarootdir}'
897sysconfdir='${prefix}/etc'
898sharedstatedir='${prefix}/com'
899localstatedir='${prefix}/var'
900includedir='${prefix}/include'
901oldincludedir='/usr/include'
902docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
903infodir='${datarootdir}/info'
904htmldir='${docdir}'
905dvidir='${docdir}'
906pdfdir='${docdir}'
907psdir='${docdir}'
908libdir='${exec_prefix}/lib'
909localedir='${datarootdir}/locale'
910mandir='${datarootdir}/man'
911
912ac_prev=
913ac_dashdash=
914for ac_option
915do
916 # If the previous option needs an argument, assign it.
917 if test -n "$ac_prev"; then
918 eval $ac_prev=\$ac_option
919 ac_prev=
920 continue
921 fi
922
923 case $ac_option in
12833ad8
JF
924 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
925 *=) ac_optarg= ;;
926 *) ac_optarg=yes ;;
c7aa54aa
DWT
927 esac
928
929 # Accept the important Cygnus configure options, so we can diagnose typos.
930
931 case $ac_dashdash$ac_option in
932 --)
933 ac_dashdash=yes ;;
934
935 -bindir | --bindir | --bindi | --bind | --bin | --bi)
936 ac_prev=bindir ;;
937 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
938 bindir=$ac_optarg ;;
939
940 -build | --build | --buil | --bui | --bu)
941 ac_prev=build_alias ;;
942 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
943 build_alias=$ac_optarg ;;
944
945 -cache-file | --cache-file | --cache-fil | --cache-fi \
946 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
947 ac_prev=cache_file ;;
948 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
949 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
950 cache_file=$ac_optarg ;;
951
952 --config-cache | -C)
953 cache_file=config.cache ;;
954
955 -datadir | --datadir | --datadi | --datad)
956 ac_prev=datadir ;;
957 -datadir=* | --datadir=* | --datadi=* | --datad=*)
958 datadir=$ac_optarg ;;
959
960 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
961 | --dataroo | --dataro | --datar)
962 ac_prev=datarootdir ;;
963 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
964 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
965 datarootdir=$ac_optarg ;;
966
967 -disable-* | --disable-*)
968 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 971 as_fn_error $? "invalid feature name: $ac_useropt"
c7aa54aa
DWT
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
975 *"
976"enable_$ac_useropt"
977"*) ;;
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
980 esac
981 eval enable_$ac_useropt=no ;;
982
983 -docdir | --docdir | --docdi | --doc | --do)
984 ac_prev=docdir ;;
985 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
986 docdir=$ac_optarg ;;
987
988 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
989 ac_prev=dvidir ;;
990 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
991 dvidir=$ac_optarg ;;
992
993 -enable-* | --enable-*)
994 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
995 # Reject names that are not valid shell variable names.
996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 997 as_fn_error $? "invalid feature name: $ac_useropt"
c7aa54aa
DWT
998 ac_useropt_orig=$ac_useropt
999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1001 *"
1002"enable_$ac_useropt"
1003"*) ;;
1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1005 ac_unrecognized_sep=', ';;
1006 esac
1007 eval enable_$ac_useropt=\$ac_optarg ;;
1008
1009 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1010 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1011 | --exec | --exe | --ex)
1012 ac_prev=exec_prefix ;;
1013 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1014 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1015 | --exec=* | --exe=* | --ex=*)
1016 exec_prefix=$ac_optarg ;;
1017
1018 -gas | --gas | --ga | --g)
1019 # Obsolete; use --with-gas.
1020 with_gas=yes ;;
1021
1022 -help | --help | --hel | --he | -h)
1023 ac_init_help=long ;;
1024 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1025 ac_init_help=recursive ;;
1026 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1027 ac_init_help=short ;;
1028
1029 -host | --host | --hos | --ho)
1030 ac_prev=host_alias ;;
1031 -host=* | --host=* | --hos=* | --ho=*)
1032 host_alias=$ac_optarg ;;
1033
1034 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1035 ac_prev=htmldir ;;
1036 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1037 | --ht=*)
1038 htmldir=$ac_optarg ;;
1039
1040 -includedir | --includedir | --includedi | --included | --include \
1041 | --includ | --inclu | --incl | --inc)
1042 ac_prev=includedir ;;
1043 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1044 | --includ=* | --inclu=* | --incl=* | --inc=*)
1045 includedir=$ac_optarg ;;
1046
1047 -infodir | --infodir | --infodi | --infod | --info | --inf)
1048 ac_prev=infodir ;;
1049 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1050 infodir=$ac_optarg ;;
1051
1052 -libdir | --libdir | --libdi | --libd)
1053 ac_prev=libdir ;;
1054 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1055 libdir=$ac_optarg ;;
1056
1057 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1058 | --libexe | --libex | --libe)
1059 ac_prev=libexecdir ;;
1060 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1061 | --libexe=* | --libex=* | --libe=*)
1062 libexecdir=$ac_optarg ;;
1063
1064 -localedir | --localedir | --localedi | --localed | --locale)
1065 ac_prev=localedir ;;
1066 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1067 localedir=$ac_optarg ;;
1068
1069 -localstatedir | --localstatedir | --localstatedi | --localstated \
1070 | --localstate | --localstat | --localsta | --localst | --locals)
1071 ac_prev=localstatedir ;;
1072 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1073 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1074 localstatedir=$ac_optarg ;;
1075
1076 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1077 ac_prev=mandir ;;
1078 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1079 mandir=$ac_optarg ;;
1080
1081 -nfp | --nfp | --nf)
1082 # Obsolete; use --without-fp.
1083 with_fp=no ;;
1084
1085 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1086 | --no-cr | --no-c | -n)
1087 no_create=yes ;;
1088
1089 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1090 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1091 no_recursion=yes ;;
1092
1093 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1094 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1095 | --oldin | --oldi | --old | --ol | --o)
1096 ac_prev=oldincludedir ;;
1097 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1098 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1099 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1100 oldincludedir=$ac_optarg ;;
1101
1102 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1103 ac_prev=prefix ;;
1104 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1105 prefix=$ac_optarg ;;
1106
1107 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1108 | --program-pre | --program-pr | --program-p)
1109 ac_prev=program_prefix ;;
1110 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1111 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1112 program_prefix=$ac_optarg ;;
1113
1114 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1115 | --program-suf | --program-su | --program-s)
1116 ac_prev=program_suffix ;;
1117 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1118 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1119 program_suffix=$ac_optarg ;;
1120
1121 -program-transform-name | --program-transform-name \
1122 | --program-transform-nam | --program-transform-na \
1123 | --program-transform-n | --program-transform- \
1124 | --program-transform | --program-transfor \
1125 | --program-transfo | --program-transf \
1126 | --program-trans | --program-tran \
1127 | --progr-tra | --program-tr | --program-t)
1128 ac_prev=program_transform_name ;;
1129 -program-transform-name=* | --program-transform-name=* \
1130 | --program-transform-nam=* | --program-transform-na=* \
1131 | --program-transform-n=* | --program-transform-=* \
1132 | --program-transform=* | --program-transfor=* \
1133 | --program-transfo=* | --program-transf=* \
1134 | --program-trans=* | --program-tran=* \
1135 | --progr-tra=* | --program-tr=* | --program-t=*)
1136 program_transform_name=$ac_optarg ;;
1137
1138 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1139 ac_prev=pdfdir ;;
1140 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1141 pdfdir=$ac_optarg ;;
1142
1143 -psdir | --psdir | --psdi | --psd | --ps)
1144 ac_prev=psdir ;;
1145 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1146 psdir=$ac_optarg ;;
1147
1148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1149 | -silent | --silent | --silen | --sile | --sil)
1150 silent=yes ;;
1151
1152 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1153 ac_prev=sbindir ;;
1154 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1155 | --sbi=* | --sb=*)
1156 sbindir=$ac_optarg ;;
1157
1158 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1159 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1160 | --sharedst | --shareds | --shared | --share | --shar \
1161 | --sha | --sh)
1162 ac_prev=sharedstatedir ;;
1163 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1164 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1165 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1166 | --sha=* | --sh=*)
1167 sharedstatedir=$ac_optarg ;;
1168
1169 -site | --site | --sit)
1170 ac_prev=site ;;
1171 -site=* | --site=* | --sit=*)
1172 site=$ac_optarg ;;
1173
1174 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1175 ac_prev=srcdir ;;
1176 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1177 srcdir=$ac_optarg ;;
1178
1179 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1180 | --syscon | --sysco | --sysc | --sys | --sy)
1181 ac_prev=sysconfdir ;;
1182 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1183 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1184 sysconfdir=$ac_optarg ;;
1185
1186 -target | --target | --targe | --targ | --tar | --ta | --t)
1187 ac_prev=target_alias ;;
1188 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1189 target_alias=$ac_optarg ;;
1190
1191 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1192 verbose=yes ;;
1193
1194 -version | --version | --versio | --versi | --vers | -V)
1195 ac_init_version=: ;;
1196
1197 -with-* | --with-*)
1198 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 1201 as_fn_error $? "invalid package name: $ac_useropt"
c7aa54aa
DWT
1202 ac_useropt_orig=$ac_useropt
1203 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1205 *"
1206"with_$ac_useropt"
1207"*) ;;
1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1209 ac_unrecognized_sep=', ';;
1210 esac
1211 eval with_$ac_useropt=\$ac_optarg ;;
1212
1213 -without-* | --without-*)
1214 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 1217 as_fn_error $? "invalid package name: $ac_useropt"
c7aa54aa
DWT
1218 ac_useropt_orig=$ac_useropt
1219 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1221 *"
1222"with_$ac_useropt"
1223"*) ;;
1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1225 ac_unrecognized_sep=', ';;
1226 esac
1227 eval with_$ac_useropt=no ;;
1228
1229 --x)
1230 # Obsolete; use --with-x.
1231 with_x=yes ;;
1232
1233 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1234 | --x-incl | --x-inc | --x-in | --x-i)
1235 ac_prev=x_includes ;;
1236 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1237 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1238 x_includes=$ac_optarg ;;
1239
1240 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1241 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1242 ac_prev=x_libraries ;;
1243 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1244 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1245 x_libraries=$ac_optarg ;;
1246
12833ad8
JF
1247 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1248Try \`$0 --help' for more information"
c7aa54aa
DWT
1249 ;;
1250
1251 *=*)
1252 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1253 # Reject names that are not valid shell variable names.
1254 case $ac_envvar in #(
1255 '' | [0-9]* | *[!_$as_cr_alnum]* )
12833ad8 1256 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
c7aa54aa
DWT
1257 esac
1258 eval $ac_envvar=\$ac_optarg
1259 export $ac_envvar ;;
1260
1261 *)
1262 # FIXME: should be removed in autoconf 3.0.
1263 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1264 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ee134472 1266 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
c7aa54aa
DWT
1267 ;;
1268
1269 esac
1270done
1271
1272if test -n "$ac_prev"; then
1273 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
12833ad8 1274 as_fn_error $? "missing argument to $ac_option"
c7aa54aa
DWT
1275fi
1276
1277if test -n "$ac_unrecognized_opts"; then
1278 case $enable_option_checking in
1279 no) ;;
12833ad8 1280 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
c7aa54aa
DWT
1281 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1282 esac
1283fi
1284
1285# Check all directory arguments for consistency.
1286for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287 datadir sysconfdir sharedstatedir localstatedir includedir \
1288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289 libdir localedir mandir
1290do
1291 eval ac_val=\$$ac_var
1292 # Remove trailing slashes.
1293 case $ac_val in
1294 */ )
1295 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1296 eval $ac_var=\$ac_val;;
1297 esac
1298 # Be sure to have absolute directory names.
1299 case $ac_val in
1300 [\\/$]* | ?:[\\/]* ) continue;;
1301 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1302 esac
12833ad8 1303 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
c7aa54aa
DWT
1304done
1305
1306# There might be people who depend on the old broken behavior: `$host'
1307# used to hold the argument of --host etc.
1308# FIXME: To remove some day.
1309build=$build_alias
1310host=$host_alias
1311target=$target_alias
1312
1313# FIXME: To remove some day.
1314if test "x$host_alias" != x; then
1315 if test "x$build_alias" = x; then
1316 cross_compiling=maybe
c7aa54aa
DWT
1317 elif test "x$build_alias" != "x$host_alias"; then
1318 cross_compiling=yes
1319 fi
1320fi
1321
1322ac_tool_prefix=
1323test -n "$host_alias" && ac_tool_prefix=$host_alias-
1324
1325test "$silent" = yes && exec 6>/dev/null
1326
1327
1328ac_pwd=`pwd` && test -n "$ac_pwd" &&
1329ac_ls_di=`ls -di .` &&
1330ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
12833ad8 1331 as_fn_error $? "working directory cannot be determined"
c7aa54aa 1332test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
12833ad8 1333 as_fn_error $? "pwd does not report name of working directory"
c7aa54aa
DWT
1334
1335
1336# Find the source files, if location was not specified.
1337if test -z "$srcdir"; then
1338 ac_srcdir_defaulted=yes
1339 # Try the directory containing this script, then the parent directory.
1340 ac_confdir=`$as_dirname -- "$as_myself" ||
1341$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1342 X"$as_myself" : 'X\(//\)[^/]' \| \
1343 X"$as_myself" : 'X\(//\)$' \| \
1344 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1345$as_echo X"$as_myself" |
1346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\/\)[^/].*/{
1351 s//\1/
1352 q
1353 }
1354 /^X\(\/\/\)$/{
1355 s//\1/
1356 q
1357 }
1358 /^X\(\/\).*/{
1359 s//\1/
1360 q
1361 }
1362 s/.*/./; q'`
1363 srcdir=$ac_confdir
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1365 srcdir=..
1366 fi
1367else
1368 ac_srcdir_defaulted=no
1369fi
1370if test ! -r "$srcdir/$ac_unique_file"; then
1371 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
12833ad8 1372 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
c7aa54aa
DWT
1373fi
1374ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1375ac_abs_confdir=`(
12833ad8 1376 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
c7aa54aa
DWT
1377 pwd)`
1378# When building in place, set srcdir=.
1379if test "$ac_abs_confdir" = "$ac_pwd"; then
1380 srcdir=.
1381fi
1382# Remove unnecessary trailing slashes from srcdir.
1383# Double slashes in file names in object file debugging info
1384# mess up M-x gdb in Emacs.
1385case $srcdir in
1386*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1387esac
1388for ac_var in $ac_precious_vars; do
1389 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1390 eval ac_env_${ac_var}_value=\$${ac_var}
1391 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1393done
1394
1395#
1396# Report the --help message.
1397#
1398if test "$ac_init_help" = "long"; then
1399 # Omit some internal or obsolete options to make the list less imposing.
1400 # This message is too long to be a string in the A/UX 3.1 sh.
1401 cat <<_ACEOF
1402\`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1403
1404Usage: $0 [OPTION]... [VAR=VALUE]...
1405
1406To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407VAR=VALUE. See below for descriptions of some of the useful variables.
1408
1409Defaults for the options are specified in brackets.
1410
1411Configuration:
1412 -h, --help display this help and exit
1413 --help=short display options specific to this package
1414 --help=recursive display the short help of all the included packages
1415 -V, --version display version information and exit
12833ad8 1416 -q, --quiet, --silent do not print \`checking ...' messages
c7aa54aa
DWT
1417 --cache-file=FILE cache test results in FILE [disabled]
1418 -C, --config-cache alias for \`--cache-file=config.cache'
1419 -n, --no-create do not create output files
1420 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1421
1422Installation directories:
1423 --prefix=PREFIX install architecture-independent files in PREFIX
1424 [$ac_default_prefix]
1425 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1426 [PREFIX]
1427
1428By default, \`make install' will install all the files in
1429\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1430an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431for instance \`--prefix=\$HOME'.
1432
1433For better control, use the options below.
1434
1435Fine tuning of the installation directories:
1436 --bindir=DIR user executables [EPREFIX/bin]
1437 --sbindir=DIR system admin executables [EPREFIX/sbin]
1438 --libexecdir=DIR program executables [EPREFIX/libexec]
1439 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1440 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1441 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1442 --libdir=DIR object code libraries [EPREFIX/lib]
1443 --includedir=DIR C header files [PREFIX/include]
1444 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1445 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1446 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1447 --infodir=DIR info documentation [DATAROOTDIR/info]
1448 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1449 --mandir=DIR man documentation [DATAROOTDIR/man]
1450 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1451 --htmldir=DIR html documentation [DOCDIR]
1452 --dvidir=DIR dvi documentation [DOCDIR]
1453 --pdfdir=DIR pdf documentation [DOCDIR]
1454 --psdir=DIR ps documentation [DOCDIR]
1455_ACEOF
1456
1457 cat <<\_ACEOF
35fa52c0 1458
66170b30
JF
1459Program names:
1460 --program-prefix=PREFIX prepend PREFIX to installed program names
1461 --program-suffix=SUFFIX append SUFFIX to installed program names
1462 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1463
35fa52c0
DWT
1464System types:
1465 --build=BUILD configure for building on BUILD [guessed]
1466 --host=HOST cross-compile to build programs to run on HOST [BUILD]
c7aa54aa
DWT
1467_ACEOF
1468fi
1469
1470if test -n "$ac_init_help"; then
1471 case $ac_init_help in
1472 short | recursive ) echo "Configuration of Cycript 0.9:";;
1473 esac
1474 cat <<\_ACEOF
1475
35fa52c0
DWT
1476Optional Features:
1477 --disable-option-checking ignore unrecognized --enable/--with options
1478 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1479 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
66170b30
JF
1480 --enable-silent-rules less verbose build output (undo: "make V=1")
1481 --disable-silent-rules verbose build output (undo: "make V=0")
babf7fe8
JF
1482 --enable-maintainer-mode
1483 enable make rules and dependencies not useful (and
1484 sometimes confusing) to the casual installer
66170b30
JF
1485 --enable-dependency-tracking
1486 do not reject slow dependency extractors
1487 --disable-dependency-tracking
1488 speeds up one-time build
a243b558
JF
1489 --enable-static[=PKGS] build static libraries [default=no]
1490 --enable-shared[=PKGS] build shared libraries [default=yes]
1491 --enable-fast-install[=PKGS]
1492 optimize for fast installation [default=yes]
9c60689e 1493 --disable-libtool-lock avoid locking (might break parallel builds)
b66977f1 1494 --enable-javascript[=ENGINE]
790e5246 1495 use a JavaScript runtime (currently the only
b66977f1
DWT
1496 available option for ENGINE is JavaScriptCore)
1497 [default=yes]
a93f15c0 1498 --disable-console disable console
35fa52c0
DWT
1499
1500Optional Packages:
1501 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1502 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
53ba6704 1503 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
9c60689e 1504 both]
9d54db95
JF
1505 --with-aix-soname=aix|svr4|both
1506 shared library versioning (aka "SONAME") variant to
1507 provide on AIX, [default=aix].
9c60689e 1508 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
9d54db95
JF
1509 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1510 compiler's sysroot if not specified).
35fa52c0 1511
dbadc56a 1512Some influential environment variables:
a93f15c0
JF
1513 CC C compiler command
1514 CFLAGS C compiler flags
dbadc56a
DWT
1515 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1516 nonstandard directory <lib dir>
1517 LIBS libraries to pass to the linker, e.g. -l<library>
9c60689e 1518 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
dbadc56a 1519 you have headers in a nonstandard directory <include dir>
a93f15c0
JF
1520 CXX C++ compiler command
1521 CXXFLAGS C++ compiler flags
a243b558
JF
1522 OBJCXX Objective C++ compiler command
1523 OBJCXXFLAGS Objective C++ compiler flags
9d54db95
JF
1524 LT_SYS_LIBRARY_PATH
1525 User-defined run-time library search path.
9c60689e 1526 CPP C preprocessor
a243b558 1527 CXXCPP C++ preprocessor
3fd51f51 1528 PKG_CONFIG path to pkg-config utility
12833ad8
JF
1529 PKG_CONFIG_PATH
1530 directories to add to pkg-config's search path
1531 PKG_CONFIG_LIBDIR
1532 path overriding pkg-config's built-in search path
e9c9a47c
DWT
1533 BISON GNU Project parser generator (yacc replacement)
1534 FLEX the fast lexical analyser generator
1535 GPERF perfect hash function generator
66170b30 1536 GNUTAR a very sticky lump of files
35fa52c0
DWT
1537 WEBKIT_CFLAGS
1538 C compiler flags for WEBKIT, overriding pkg-config
1539 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
790e5246
DWT
1540 GNUSTEP_CONFIG
1541 prints information about the current gnustep installation
dbadc56a
DWT
1542
1543Use these variables to override the choices made by `configure' or to help
1544it to find libraries and programs with nonstandard names/locations.
1545
c7aa54aa
DWT
1546Report bugs to <saurik@saurik.com>.
1547Cycript home page: <http://www.cycript.org/>.
1548_ACEOF
1549ac_status=$?
1550fi
1551
1552if test "$ac_init_help" = "recursive"; then
1553 # If there are subdirs, report their specific --help.
1554 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1555 test -d "$ac_dir" ||
1556 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1557 continue
1558 ac_builddir=.
1559
1560case "$ac_dir" in
1561.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562*)
1563 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1564 # A ".." for each directory in $ac_dir_suffix.
1565 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1566 case $ac_top_builddir_sub in
1567 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1569 esac ;;
1570esac
1571ac_abs_top_builddir=$ac_pwd
1572ac_abs_builddir=$ac_pwd$ac_dir_suffix
1573# for backward compatibility:
1574ac_top_builddir=$ac_top_build_prefix
1575
1576case $srcdir in
1577 .) # We are building in place.
1578 ac_srcdir=.
1579 ac_top_srcdir=$ac_top_builddir_sub
1580 ac_abs_top_srcdir=$ac_pwd ;;
1581 [\\/]* | ?:[\\/]* ) # Absolute name.
1582 ac_srcdir=$srcdir$ac_dir_suffix;
1583 ac_top_srcdir=$srcdir
1584 ac_abs_top_srcdir=$srcdir ;;
1585 *) # Relative name.
1586 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1587 ac_top_srcdir=$ac_top_build_prefix$srcdir
1588 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1589esac
1590ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1591
1592 cd "$ac_dir" || { ac_status=$?; continue; }
1593 # Check for guested configure.
1594 if test -f "$ac_srcdir/configure.gnu"; then
1595 echo &&
1596 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1597 elif test -f "$ac_srcdir/configure"; then
1598 echo &&
1599 $SHELL "$ac_srcdir/configure" --help=recursive
1600 else
1601 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1602 fi || ac_status=$?
1603 cd "$ac_pwd" || { ac_status=$?; break; }
1604 done
1605fi
1606
1607test -n "$ac_init_help" && exit $ac_status
1608if $ac_init_version; then
1609 cat <<\_ACEOF
1610Cycript configure 0.9
53ba6704 1611generated by GNU Autoconf 2.69
c7aa54aa 1612
53ba6704 1613Copyright (C) 2012 Free Software Foundation, Inc.
c7aa54aa
DWT
1614This configure script is free software; the Free Software Foundation
1615gives unlimited permission to copy, distribute and modify it.
66170b30 1616
f95d2598 1617Copyright (C) 2009-2014 Jay Freeman (saurik)
c7aa54aa
DWT
1618_ACEOF
1619 exit
1620fi
1621
1622## ------------------------ ##
1623## Autoconf initialization. ##
1624## ------------------------ ##
dbadc56a 1625
a93f15c0
JF
1626# ac_fn_c_try_compile LINENO
1627# --------------------------
a243b558 1628# Try to compile conftest.$ac_ext, and return whether this succeeded.
a93f15c0 1629ac_fn_c_try_compile ()
a243b558
JF
1630{
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 rm -f conftest.$ac_objext
1633 if { { ac_try="$ac_compile"
1634case "(($ac_try" in
1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636 *) ac_try_echo=$ac_try;;
1637esac
1638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639$as_echo "$ac_try_echo"; } >&5
1640 (eval "$ac_compile") 2>conftest.err
1641 ac_status=$?
1642 if test -s conftest.err; then
1643 grep -v '^ *+' conftest.err >conftest.er1
1644 cat conftest.er1 >&5
1645 mv -f conftest.er1 conftest.err
1646 fi
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; } && {
a93f15c0 1649 test -z "$ac_c_werror_flag" ||
a243b558
JF
1650 test ! -s conftest.err
1651 } && test -s conftest.$ac_objext; then :
1652 ac_retval=0
1653else
1654 $as_echo "$as_me: failed program was:" >&5
1655sed 's/^/| /' conftest.$ac_ext >&5
1656
1657 ac_retval=1
1658fi
1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660 as_fn_set_status $ac_retval
1661
a93f15c0 1662} # ac_fn_c_try_compile
a243b558 1663
a93f15c0
JF
1664# ac_fn_cxx_try_compile LINENO
1665# ----------------------------
a243b558 1666# Try to compile conftest.$ac_ext, and return whether this succeeded.
a93f15c0 1667ac_fn_cxx_try_compile ()
a243b558
JF
1668{
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 rm -f conftest.$ac_objext
1671 if { { ac_try="$ac_compile"
1672case "(($ac_try" in
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1675esac
1676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677$as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_compile") 2>conftest.err
1679 ac_status=$?
1680 if test -s conftest.err; then
1681 grep -v '^ *+' conftest.err >conftest.er1
1682 cat conftest.er1 >&5
1683 mv -f conftest.er1 conftest.err
1684 fi
1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; } && {
a93f15c0 1687 test -z "$ac_cxx_werror_flag" ||
a243b558
JF
1688 test ! -s conftest.err
1689 } && test -s conftest.$ac_objext; then :
1690 ac_retval=0
1691else
1692 $as_echo "$as_me: failed program was:" >&5
1693sed 's/^/| /' conftest.$ac_ext >&5
1694
1695 ac_retval=1
1696fi
1697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698 as_fn_set_status $ac_retval
1699
a93f15c0 1700} # ac_fn_cxx_try_compile
a243b558 1701
a93f15c0
JF
1702# ac_fn_objcxx_try_compile LINENO
1703# -------------------------------
35fa52c0 1704# Try to compile conftest.$ac_ext, and return whether this succeeded.
a93f15c0 1705ac_fn_objcxx_try_compile ()
35fa52c0
DWT
1706{
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 rm -f conftest.$ac_objext
1709 if { { ac_try="$ac_compile"
1710case "(($ac_try" in
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1713esac
1714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715$as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_compile") 2>conftest.err
1717 ac_status=$?
1718 if test -s conftest.err; then
1719 grep -v '^ *+' conftest.err >conftest.er1
1720 cat conftest.er1 >&5
1721 mv -f conftest.er1 conftest.err
1722 fi
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } && {
a93f15c0 1725 test -z "$ac_objcxx_werror_flag" ||
35fa52c0
DWT
1726 test ! -s conftest.err
1727 } && test -s conftest.$ac_objext; then :
1728 ac_retval=0
1729else
1730 $as_echo "$as_me: failed program was:" >&5
1731sed 's/^/| /' conftest.$ac_ext >&5
1732
1733 ac_retval=1
1734fi
ee134472 1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1736 as_fn_set_status $ac_retval
35fa52c0 1737
a93f15c0 1738} # ac_fn_objcxx_try_compile
35fa52c0
DWT
1739
1740# ac_fn_c_try_link LINENO
1741# -----------------------
1742# Try to link conftest.$ac_ext, and return whether this succeeded.
1743ac_fn_c_try_link ()
1744{
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 rm -f conftest.$ac_objext conftest$ac_exeext
1747 if { { ac_try="$ac_link"
1748case "(($ac_try" in
1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750 *) ac_try_echo=$ac_try;;
1751esac
1752eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753$as_echo "$ac_try_echo"; } >&5
1754 (eval "$ac_link") 2>conftest.err
1755 ac_status=$?
1756 if test -s conftest.err; then
1757 grep -v '^ *+' conftest.err >conftest.er1
1758 cat conftest.er1 >&5
1759 mv -f conftest.er1 conftest.err
1760 fi
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; } && {
1763 test -z "$ac_c_werror_flag" ||
1764 test ! -s conftest.err
1765 } && test -s conftest$ac_exeext && {
1766 test "$cross_compiling" = yes ||
53ba6704 1767 test -x conftest$ac_exeext
35fa52c0
DWT
1768 }; then :
1769 ac_retval=0
1770else
1771 $as_echo "$as_me: failed program was:" >&5
1772sed 's/^/| /' conftest.$ac_ext >&5
1773
1774 ac_retval=1
1775fi
1776 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1777 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1778 # interfere with the next link command; also delete a directory that is
1779 # left behind by Apple's compiler. We do this before executing the actions.
1780 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1782 as_fn_set_status $ac_retval
35fa52c0
DWT
1783
1784} # ac_fn_c_try_link
1785
9c60689e
DWT
1786# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1787# -------------------------------------------------------
1788# Tests whether HEADER exists and can be compiled using the include files in
1789# INCLUDES, setting the cache variable VAR accordingly.
1790ac_fn_c_check_header_compile ()
dbadc56a
DWT
1791{
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794$as_echo_n "checking for $2... " >&6; }
ee134472 1795if eval \${$3+:} false; then :
9c60689e
DWT
1796 $as_echo_n "(cached) " >&6
1797else
1798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799/* end confdefs.h. */
1800$4
1801#include <$2>
1802_ACEOF
1803if ac_fn_c_try_compile "$LINENO"; then :
1804 eval "$3=yes"
1805else
1806 eval "$3=no"
1807fi
1808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1809fi
1810eval ac_res=\$$3
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1812$as_echo "$ac_res" >&6; }
ee134472 1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
1814
1815} # ac_fn_c_check_header_compile
1816
1817# ac_fn_c_try_cpp LINENO
1818# ----------------------
1819# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1820ac_fn_c_try_cpp ()
1821{
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 if { { ac_try="$ac_cpp conftest.$ac_ext"
dbadc56a
DWT
1824case "(($ac_try" in
1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1827esac
1828eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829$as_echo "$ac_try_echo"; } >&5
9c60689e 1830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
dbadc56a
DWT
1831 ac_status=$?
1832 if test -s conftest.err; then
1833 grep -v '^ *+' conftest.err >conftest.er1
1834 cat conftest.er1 >&5
1835 mv -f conftest.er1 conftest.err
1836 fi
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12833ad8 1838 test $ac_status = 0; } > conftest.i && {
9c60689e 1839 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
dbadc56a 1840 test ! -s conftest.err
9c60689e 1841 }; then :
dbadc56a
DWT
1842 ac_retval=0
1843else
1844 $as_echo "$as_me: failed program was:" >&5
1845sed 's/^/| /' conftest.$ac_ext >&5
1846
9c60689e 1847 ac_retval=1
dbadc56a 1848fi
ee134472 1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1850 as_fn_set_status $ac_retval
dbadc56a 1851
9c60689e 1852} # ac_fn_c_try_cpp
35fa52c0
DWT
1853
1854# ac_fn_c_try_run LINENO
1855# ----------------------
1856# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1857# that executables *can* be run.
1858ac_fn_c_try_run ()
1859{
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 if { { ac_try="$ac_link"
1862case "(($ac_try" in
1863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1864 *) ac_try_echo=$ac_try;;
1865esac
1866eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867$as_echo "$ac_try_echo"; } >&5
1868 (eval "$ac_link") 2>&5
1869 ac_status=$?
1870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1872 { { case "(($ac_try" in
1873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874 *) ac_try_echo=$ac_try;;
1875esac
1876eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877$as_echo "$ac_try_echo"; } >&5
1878 (eval "$ac_try") 2>&5
1879 ac_status=$?
1880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881 test $ac_status = 0; }; }; then :
1882 ac_retval=0
1883else
1884 $as_echo "$as_me: program exited with status $ac_status" >&5
1885 $as_echo "$as_me: failed program was:" >&5
1886sed 's/^/| /' conftest.$ac_ext >&5
1887
1888 ac_retval=$ac_status
1889fi
1890 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 1891 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1892 as_fn_set_status $ac_retval
35fa52c0
DWT
1893
1894} # ac_fn_c_try_run
6b66678a 1895
9c60689e
DWT
1896# ac_fn_c_check_func LINENO FUNC VAR
1897# ----------------------------------
1898# Tests whether FUNC exists, setting the cache variable VAR accordingly
1899ac_fn_c_check_func ()
6b66678a
DWT
1900{
1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1903$as_echo_n "checking for $2... " >&6; }
ee134472 1904if eval \${$3+:} false; then :
9c60689e 1905 $as_echo_n "(cached) " >&6
6b66678a 1906else
9c60689e
DWT
1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908/* end confdefs.h. */
1909/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1911#define $2 innocuous_$2
6b66678a 1912
9c60689e
DWT
1913/* System header to define __stub macros and hopefully few prototypes,
1914 which can conflict with char $2 (); below.
1915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1916 <limits.h> exists even on freestanding compilers. */
1917
1918#ifdef __STDC__
1919# include <limits.h>
1920#else
1921# include <assert.h>
1922#endif
1923
1924#undef $2
1925
1926/* Override any GCC internal prototype to avoid an error.
1927 Use char because int might match the return type of a GCC
1928 builtin and then its argument prototype would still apply. */
1929#ifdef __cplusplus
1930extern "C"
1931#endif
1932char $2 ();
1933/* The GNU C library defines this for functions which it implements
1934 to always fail with ENOSYS. Some functions are actually named
1935 something starting with __ and the normal name is an alias. */
1936#if defined __stub_$2 || defined __stub___$2
1937choke me
1938#endif
1939
1940int
1941main ()
1942{
1943return $2 ();
1944 ;
1945 return 0;
1946}
1947_ACEOF
1948if ac_fn_c_try_link "$LINENO"; then :
1949 eval "$3=yes"
1950else
1951 eval "$3=no"
1952fi
1953rm -f core conftest.err conftest.$ac_objext \
1954 conftest$ac_exeext conftest.$ac_ext
6b66678a 1955fi
9c60689e
DWT
1956eval ac_res=\$$3
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1958$as_echo "$ac_res" >&6; }
ee134472 1959 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6b66678a 1960
9c60689e 1961} # ac_fn_c_check_func
6b66678a 1962
9c60689e
DWT
1963# ac_fn_cxx_try_cpp LINENO
1964# ------------------------
1965# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1966ac_fn_cxx_try_cpp ()
1967{
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 if { { ac_try="$ac_cpp conftest.$ac_ext"
1970case "(($ac_try" in
1971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1972 *) ac_try_echo=$ac_try;;
1973esac
1974eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1975$as_echo "$ac_try_echo"; } >&5
1976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1977 ac_status=$?
1978 if test -s conftest.err; then
1979 grep -v '^ *+' conftest.err >conftest.er1
1980 cat conftest.er1 >&5
1981 mv -f conftest.er1 conftest.err
1982 fi
1983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12833ad8 1984 test $ac_status = 0; } > conftest.i && {
9c60689e
DWT
1985 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1986 test ! -s conftest.err
1987 }; then :
1988 ac_retval=0
1989else
1990 $as_echo "$as_me: failed program was:" >&5
1991sed 's/^/| /' conftest.$ac_ext >&5
1992
1993 ac_retval=1
1994fi
ee134472 1995 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
1996 as_fn_set_status $ac_retval
1997
1998} # ac_fn_cxx_try_cpp
1999
2000# ac_fn_cxx_try_link LINENO
2001# -------------------------
2002# Try to link conftest.$ac_ext, and return whether this succeeded.
2003ac_fn_cxx_try_link ()
2004{
2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006 rm -f conftest.$ac_objext conftest$ac_exeext
2007 if { { ac_try="$ac_link"
2008case "(($ac_try" in
2009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2010 *) ac_try_echo=$ac_try;;
2011esac
2012eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2013$as_echo "$ac_try_echo"; } >&5
2014 (eval "$ac_link") 2>conftest.err
2015 ac_status=$?
2016 if test -s conftest.err; then
2017 grep -v '^ *+' conftest.err >conftest.er1
2018 cat conftest.er1 >&5
2019 mv -f conftest.er1 conftest.err
2020 fi
2021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2022 test $ac_status = 0; } && {
2023 test -z "$ac_cxx_werror_flag" ||
2024 test ! -s conftest.err
2025 } && test -s conftest$ac_exeext && {
2026 test "$cross_compiling" = yes ||
53ba6704 2027 test -x conftest$ac_exeext
9c60689e
DWT
2028 }; then :
2029 ac_retval=0
2030else
2031 $as_echo "$as_me: failed program was:" >&5
2032sed 's/^/| /' conftest.$ac_ext >&5
2033
2034 ac_retval=1
2035fi
2036 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2037 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2038 # interfere with the next link command; also delete a directory that is
2039 # left behind by Apple's compiler. We do this before executing the actions.
2040 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 2041 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
2042 as_fn_set_status $ac_retval
2043
2044} # ac_fn_cxx_try_link
2045
47aaa820
DWT
2046# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2047# ---------------------------------------------------------
2048# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2049# the include files in INCLUDES and setting the cache variable VAR
2050# accordingly.
2051ac_fn_cxx_check_header_mongrel ()
2052{
2053 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
ee134472 2054 if eval \${$3+:} false; then :
47aaa820
DWT
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2056$as_echo_n "checking for $2... " >&6; }
ee134472 2057if eval \${$3+:} false; then :
47aaa820
DWT
2058 $as_echo_n "(cached) " >&6
2059fi
2060eval ac_res=\$$3
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2062$as_echo "$ac_res" >&6; }
2063else
2064 # Is the header compilable?
2065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2066$as_echo_n "checking $2 usability... " >&6; }
2067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068/* end confdefs.h. */
2069$4
2070#include <$2>
2071_ACEOF
2072if ac_fn_cxx_try_compile "$LINENO"; then :
2073 ac_header_compiler=yes
2074else
2075 ac_header_compiler=no
2076fi
2077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2079$as_echo "$ac_header_compiler" >&6; }
2080
2081# Is the header present?
2082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2083$as_echo_n "checking $2 presence... " >&6; }
2084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085/* end confdefs.h. */
2086#include <$2>
2087_ACEOF
2088if ac_fn_cxx_try_cpp "$LINENO"; then :
2089 ac_header_preproc=yes
2090else
2091 ac_header_preproc=no
2092fi
12833ad8 2093rm -f conftest.err conftest.i conftest.$ac_ext
47aaa820
DWT
2094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2095$as_echo "$ac_header_preproc" >&6; }
2096
2097# So? What about this header?
2098case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2099 yes:no: )
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2101$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2103$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2104 ;;
2105 no:yes:* )
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2107$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2109$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2111$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2113$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2115$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
12833ad8 2116( $as_echo "## -------------------------------- ##
47aaa820 2117## Report this to saurik@saurik.com ##
12833ad8 2118## -------------------------------- ##"
47aaa820
DWT
2119 ) | sed "s/^/$as_me: WARNING: /" >&2
2120 ;;
2121esac
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2123$as_echo_n "checking for $2... " >&6; }
ee134472 2124if eval \${$3+:} false; then :
47aaa820
DWT
2125 $as_echo_n "(cached) " >&6
2126else
2127 eval "$3=\$ac_header_compiler"
2128fi
2129eval ac_res=\$$3
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2131$as_echo "$ac_res" >&6; }
2132fi
ee134472 2133 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
47aaa820
DWT
2134
2135} # ac_fn_cxx_check_header_mongrel
2136
c823f118
DWT
2137# ac_fn_objcxx_try_link LINENO
2138# ----------------------------
2139# Try to link conftest.$ac_ext, and return whether this succeeded.
2140ac_fn_objcxx_try_link ()
2141{
2142 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2143 rm -f conftest.$ac_objext conftest$ac_exeext
2144 if { { ac_try="$ac_link"
2145case "(($ac_try" in
2146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2147 *) ac_try_echo=$ac_try;;
2148esac
2149eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2150$as_echo "$ac_try_echo"; } >&5
2151 (eval "$ac_link") 2>conftest.err
2152 ac_status=$?
2153 if test -s conftest.err; then
2154 grep -v '^ *+' conftest.err >conftest.er1
2155 cat conftest.er1 >&5
2156 mv -f conftest.er1 conftest.err
2157 fi
2158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2159 test $ac_status = 0; } && {
2160 test -z "$ac_objcxx_werror_flag" ||
2161 test ! -s conftest.err
2162 } && test -s conftest$ac_exeext && {
2163 test "$cross_compiling" = yes ||
53ba6704 2164 test -x conftest$ac_exeext
c823f118
DWT
2165 }; then :
2166 ac_retval=0
2167else
2168 $as_echo "$as_me: failed program was:" >&5
2169sed 's/^/| /' conftest.$ac_ext >&5
2170
2171 ac_retval=1
2172fi
2173 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2174 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2175 # interfere with the next link command; also delete a directory that is
2176 # left behind by Apple's compiler. We do this before executing the actions.
2177 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 2178 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
c823f118
DWT
2179 as_fn_set_status $ac_retval
2180
2181} # ac_fn_objcxx_try_link
c7aa54aa
DWT
2182cat >config.log <<_ACEOF
2183This file contains any messages produced by compilers while
2184running configure, to aid debugging if configure makes a mistake.
2185
2186It was created by Cycript $as_me 0.9, which was
53ba6704 2187generated by GNU Autoconf 2.69. Invocation command line was
c7aa54aa
DWT
2188
2189 $ $0 $@
2190
2191_ACEOF
2192exec 5>>config.log
2193{
2194cat <<_ASUNAME
2195## --------- ##
2196## Platform. ##
2197## --------- ##
2198
2199hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2200uname -m = `(uname -m) 2>/dev/null || echo unknown`
2201uname -r = `(uname -r) 2>/dev/null || echo unknown`
2202uname -s = `(uname -s) 2>/dev/null || echo unknown`
2203uname -v = `(uname -v) 2>/dev/null || echo unknown`
2204
2205/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2206/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2207
2208/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2209/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2210/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2211/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2212/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2213/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2214/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2215
2216_ASUNAME
2217
2218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2219for as_dir in $PATH
2220do
2221 IFS=$as_save_IFS
2222 test -z "$as_dir" && as_dir=.
2223 $as_echo "PATH: $as_dir"
2224 done
2225IFS=$as_save_IFS
2226
2227} >&5
2228
2229cat >&5 <<_ACEOF
2230
2231
2232## ----------- ##
2233## Core tests. ##
2234## ----------- ##
2235
2236_ACEOF
2237
2238
2239# Keep a trace of the command line.
2240# Strip out --no-create and --no-recursion so they do not pile up.
2241# Strip out --silent because we don't want to record it for future runs.
2242# Also quote any args containing shell meta-characters.
2243# Make two passes to allow for proper duplicate-argument suppression.
2244ac_configure_args=
2245ac_configure_args0=
2246ac_configure_args1=
2247ac_must_keep_next=false
2248for ac_pass in 1 2
2249do
2250 for ac_arg
2251 do
2252 case $ac_arg in
2253 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2254 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2255 | -silent | --silent | --silen | --sile | --sil)
2256 continue ;;
2257 *\'*)
2258 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2259 esac
2260 case $ac_pass in
2261 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2262 2)
2263 as_fn_append ac_configure_args1 " '$ac_arg'"
2264 if test $ac_must_keep_next = true; then
2265 ac_must_keep_next=false # Got value, back to normal.
2266 else
2267 case $ac_arg in
2268 *=* | --config-cache | -C | -disable-* | --disable-* \
2269 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2270 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2271 | -with-* | --with-* | -without-* | --without-* | --x)
2272 case "$ac_configure_args0 " in
2273 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2274 esac
2275 ;;
2276 -* ) ac_must_keep_next=true ;;
2277 esac
2278 fi
2279 as_fn_append ac_configure_args " '$ac_arg'"
2280 ;;
2281 esac
2282 done
2283done
2284{ ac_configure_args0=; unset ac_configure_args0;}
2285{ ac_configure_args1=; unset ac_configure_args1;}
2286
2287# When interrupted or exit'd, cleanup temporary files, and complete
2288# config.log. We remove comments because anyway the quotes in there
2289# would cause problems or look ugly.
2290# WARNING: Use '\'' to represent an apostrophe within the trap.
2291# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2292trap 'exit_status=$?
2293 # Save into config.log some information that might help in debugging.
2294 {
2295 echo
2296
12833ad8 2297 $as_echo "## ---------------- ##
c7aa54aa 2298## Cache variables. ##
12833ad8 2299## ---------------- ##"
c7aa54aa
DWT
2300 echo
2301 # The following way of writing the cache mishandles newlines in values,
2302(
2303 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2304 eval ac_val=\$$ac_var
2305 case $ac_val in #(
2306 *${as_nl}*)
2307 case $ac_var in #(
2308 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2309$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2310 esac
2311 case $ac_var in #(
2312 _ | IFS | as_nl) ;; #(
2313 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2314 *) { eval $ac_var=; unset $ac_var;} ;;
2315 esac ;;
2316 esac
2317 done
2318 (set) 2>&1 |
2319 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2320 *${as_nl}ac_space=\ *)
2321 sed -n \
2322 "s/'\''/'\''\\\\'\'''\''/g;
2323 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2324 ;; #(
2325 *)
2326 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2327 ;;
2328 esac |
2329 sort
2330)
2331 echo
2332
12833ad8 2333 $as_echo "## ----------------- ##
c7aa54aa 2334## Output variables. ##
12833ad8 2335## ----------------- ##"
c7aa54aa
DWT
2336 echo
2337 for ac_var in $ac_subst_vars
2338 do
2339 eval ac_val=\$$ac_var
2340 case $ac_val in
2341 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2342 esac
2343 $as_echo "$ac_var='\''$ac_val'\''"
2344 done | sort
2345 echo
2346
2347 if test -n "$ac_subst_files"; then
12833ad8 2348 $as_echo "## ------------------- ##
c7aa54aa 2349## File substitutions. ##
12833ad8 2350## ------------------- ##"
c7aa54aa
DWT
2351 echo
2352 for ac_var in $ac_subst_files
2353 do
2354 eval ac_val=\$$ac_var
2355 case $ac_val in
2356 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2357 esac
2358 $as_echo "$ac_var='\''$ac_val'\''"
2359 done | sort
2360 echo
2361 fi
2362
2363 if test -s confdefs.h; then
12833ad8 2364 $as_echo "## ----------- ##
c7aa54aa 2365## confdefs.h. ##
12833ad8 2366## ----------- ##"
c7aa54aa
DWT
2367 echo
2368 cat confdefs.h
2369 echo
2370 fi
2371 test "$ac_signal" != 0 &&
2372 $as_echo "$as_me: caught signal $ac_signal"
2373 $as_echo "$as_me: exit $exit_status"
2374 } >&5
2375 rm -f core *.core core.conftest.* &&
2376 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2377 exit $exit_status
2378' 0
2379for ac_signal in 1 2 13 15; do
2380 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2381done
2382ac_signal=0
2383
2384# confdefs.h avoids OS command line length limits that DEFS can exceed.
2385rm -f -r conftest* confdefs.h
2386
2387$as_echo "/* confdefs.h */" > confdefs.h
2388
2389# Predefined preprocessor variables.
2390
2391cat >>confdefs.h <<_ACEOF
2392#define PACKAGE_NAME "$PACKAGE_NAME"
2393_ACEOF
2394
2395cat >>confdefs.h <<_ACEOF
2396#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2397_ACEOF
2398
2399cat >>confdefs.h <<_ACEOF
2400#define PACKAGE_VERSION "$PACKAGE_VERSION"
2401_ACEOF
2402
2403cat >>confdefs.h <<_ACEOF
2404#define PACKAGE_STRING "$PACKAGE_STRING"
2405_ACEOF
2406
2407cat >>confdefs.h <<_ACEOF
2408#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2409_ACEOF
2410
2411cat >>confdefs.h <<_ACEOF
2412#define PACKAGE_URL "$PACKAGE_URL"
2413_ACEOF
2414
2415
2416# Let the site file select an alternate cache file if it wants to.
2417# Prefer an explicitly selected file to automatically selected ones.
2418ac_site_file1=NONE
2419ac_site_file2=NONE
2420if test -n "$CONFIG_SITE"; then
12833ad8
JF
2421 # We do not want a PATH search for config.site.
2422 case $CONFIG_SITE in #((
2423 -*) ac_site_file1=./$CONFIG_SITE;;
2424 */*) ac_site_file1=$CONFIG_SITE;;
2425 *) ac_site_file1=./$CONFIG_SITE;;
2426 esac
c7aa54aa
DWT
2427elif test "x$prefix" != xNONE; then
2428 ac_site_file1=$prefix/share/config.site
2429 ac_site_file2=$prefix/etc/config.site
2430else
2431 ac_site_file1=$ac_default_prefix/share/config.site
2432 ac_site_file2=$ac_default_prefix/etc/config.site
2433fi
2434for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2435do
2436 test "x$ac_site_file" = xNONE && continue
9c60689e 2437 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
c7aa54aa
DWT
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2439$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2440 sed 's/^/| /' "$ac_site_file" >&5
12833ad8
JF
2441 . "$ac_site_file" \
2442 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2443$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2444as_fn_error $? "failed to load site script $ac_site_file
ee134472 2445See \`config.log' for more details" "$LINENO" 5; }
c7aa54aa
DWT
2446 fi
2447done
2448
2449if test -r "$cache_file"; then
9c60689e
DWT
2450 # Some versions of bash will fail to source /dev/null (special files
2451 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2452 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
c7aa54aa
DWT
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2454$as_echo "$as_me: loading cache $cache_file" >&6;}
2455 case $cache_file in
2456 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2457 *) . "./$cache_file";;
2458 esac
2459 fi
2460else
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2462$as_echo "$as_me: creating cache $cache_file" >&6;}
2463 >$cache_file
2464fi
2465
2466# Check that the precious variables saved in the cache have kept the same
2467# value.
2468ac_cache_corrupted=false
2469for ac_var in $ac_precious_vars; do
2470 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2471 eval ac_new_set=\$ac_env_${ac_var}_set
2472 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2473 eval ac_new_val=\$ac_env_${ac_var}_value
2474 case $ac_old_set,$ac_new_set in
2475 set,)
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2477$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2478 ac_cache_corrupted=: ;;
2479 ,set)
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2481$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2482 ac_cache_corrupted=: ;;
2483 ,);;
2484 *)
2485 if test "x$ac_old_val" != "x$ac_new_val"; then
2486 # differences in whitespace do not lead to failure.
2487 ac_old_val_w=`echo x $ac_old_val`
2488 ac_new_val_w=`echo x $ac_new_val`
2489 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2491$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2492 ac_cache_corrupted=:
2493 else
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2495$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2496 eval $ac_var=\$ac_old_val
2497 fi
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2499$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2501$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2502 fi;;
2503 esac
2504 # Pass precious variables to config.status.
2505 if test "$ac_new_set" = set; then
2506 case $ac_new_val in
2507 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2508 *) ac_arg=$ac_var=$ac_new_val ;;
2509 esac
2510 case " $ac_configure_args " in
2511 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2512 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2513 esac
2514 fi
2515done
2516if $ac_cache_corrupted; then
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2518$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2520$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
12833ad8 2521 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
c7aa54aa
DWT
2522fi
2523## -------------------- ##
2524## Main body of script. ##
2525## -------------------- ##
2526
2527ac_ext=c
2528ac_cpp='$CPP $CPPFLAGS'
2529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2531ac_compiler_gnu=$ac_cv_c_compiler_gnu
2532
2533
66170b30
JF
2534
2535
35fa52c0 2536
6b66678a
DWT
2537ac_aux_dir=
2538for ac_dir in . "$srcdir"/.; do
12833ad8
JF
2539 if test -f "$ac_dir/install-sh"; then
2540 ac_aux_dir=$ac_dir
2541 ac_install_sh="$ac_aux_dir/install-sh -c"
2542 break
2543 elif test -f "$ac_dir/install.sh"; then
2544 ac_aux_dir=$ac_dir
2545 ac_install_sh="$ac_aux_dir/install.sh -c"
2546 break
2547 elif test -f "$ac_dir/shtool"; then
2548 ac_aux_dir=$ac_dir
2549 ac_install_sh="$ac_aux_dir/shtool install -c"
2550 break
2551 fi
6b66678a
DWT
2552done
2553if test -z "$ac_aux_dir"; then
12833ad8 2554 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
6b66678a
DWT
2555fi
2556
2557# These three variables are undocumented and unsupported,
2558# and are intended to be withdrawn in a future Autoconf release.
2559# They can cause serious problems if a builder's source tree is in a directory
2560# whose full name contains unusual characters.
2561ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2562ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2563ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2564
2565
9c60689e 2566
296ee9a6
JF
2567ac_config_headers="$ac_config_headers config.h"
2568
9c60689e 2569
a93f15c0 2570am__api_version='1.14'
9c60689e 2571
66170b30
JF
2572# Find a good install program. We prefer a C program (faster),
2573# so one script is as good as another. But avoid the broken or
2574# incompatible versions:
2575# SysV /etc/install, /usr/sbin/install
2576# SunOS /usr/etc/install
2577# IRIX /sbin/install
2578# AIX /bin/install
2579# AmigaOS /C/install, which installs bootblocks on floppy discs
2580# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2581# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2582# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2583# OS/2's system install, which has a completely different semantic
2584# ./install, which can be erroneously created by make from ./install.sh.
2585# Reject install programs that cannot install multiple files.
2586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2587$as_echo_n "checking for a BSD-compatible install... " >&6; }
2588if test -z "$INSTALL"; then
2589if ${ac_cv_path_install+:} false; then :
2590 $as_echo_n "(cached) " >&6
2591else
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593for as_dir in $PATH
2594do
2595 IFS=$as_save_IFS
2596 test -z "$as_dir" && as_dir=.
2597 # Account for people who put trailing slashes in PATH elements.
2598case $as_dir/ in #((
2599 ./ | .// | /[cC]/* | \
2600 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2601 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2602 /usr/ucb/* ) ;;
2603 *)
2604 # OSF1 and SCO ODT 3.0 have their own names for install.
2605 # Don't use installbsd from OSF since it installs stuff as root
2606 # by default.
2607 for ac_prog in ginstall scoinst install; do
2608 for ac_exec_ext in '' $ac_executable_extensions; do
2609 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2610 if test $ac_prog = install &&
2611 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2612 # AIX install. It has an incompatible calling convention.
2613 :
2614 elif test $ac_prog = install &&
2615 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2616 # program-specific install script used by HP pwplus--don't use.
2617 :
2618 else
2619 rm -rf conftest.one conftest.two conftest.dir
2620 echo one > conftest.one
2621 echo two > conftest.two
2622 mkdir conftest.dir
2623 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2624 test -s conftest.one && test -s conftest.two &&
2625 test -s conftest.dir/conftest.one &&
2626 test -s conftest.dir/conftest.two
2627 then
2628 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2629 break 3
2630 fi
2631 fi
2632 fi
2633 done
2634 done
2635 ;;
2636esac
9c60689e 2637
66170b30
JF
2638 done
2639IFS=$as_save_IFS
9c60689e 2640
66170b30 2641rm -rf conftest.one conftest.two conftest.dir
9c60689e 2642
66170b30
JF
2643fi
2644 if test "${ac_cv_path_install+set}" = set; then
2645 INSTALL=$ac_cv_path_install
2646 else
2647 # As a last resort, use the slow shell script. Don't cache a
2648 # value for INSTALL within a source directory, because that will
2649 # break other packages using the cache if that directory is
2650 # removed, or if the value is a relative name.
2651 INSTALL=$ac_install_sh
2652 fi
2653fi
2654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2655$as_echo "$INSTALL" >&6; }
9c60689e 2656
66170b30
JF
2657# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2658# It thinks the first close brace ends the variable substitution.
2659test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9c60689e 2660
66170b30 2661test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9c60689e 2662
66170b30 2663test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9c60689e 2664
66170b30
JF
2665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2666$as_echo_n "checking whether build environment is sane... " >&6; }
2667# Reject unsafe characters in $srcdir or the absolute working directory
2668# name. Accept space and tab only in the latter.
2669am_lf='
2670'
2671case `pwd` in
2672 *[\\\"\#\$\&\'\`$am_lf]*)
2673 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2674esac
2675case $srcdir in
2676 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2677 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2678esac
9c60689e 2679
66170b30
JF
2680# Do 'set' in a subshell so we don't clobber the current shell's
2681# arguments. Must try -L first in case configure is actually a
2682# symlink; some systems play weird games with the mod time of symlinks
2683# (eg FreeBSD returns the mod time of the symlink's containing
2684# directory).
2685if (
2686 am_has_slept=no
2687 for am_try in 1 2; do
2688 echo "timestamp, slept: $am_has_slept" > conftest.file
2689 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2690 if test "$*" = "X"; then
2691 # -L didn't work.
2692 set X `ls -t "$srcdir/configure" conftest.file`
2693 fi
2694 if test "$*" != "X $srcdir/configure conftest.file" \
2695 && test "$*" != "X conftest.file $srcdir/configure"; then
2696
2697 # If neither matched, then we have a broken ls. This can happen
2698 # if, for instance, CONFIG_SHELL is bash and it inherits a
2699 # broken ls alias from the environment. This has actually
2700 # happened. Such a system could not be considered "sane".
2701 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2702 alias in your environment" "$LINENO" 5
2703 fi
2704 if test "$2" = conftest.file || test $am_try -eq 2; then
2705 break
2706 fi
2707 # Just in case.
2708 sleep 1
2709 am_has_slept=yes
2710 done
2711 test "$2" = conftest.file
2712 )
2713then
2714 # Ok.
2715 :
2716else
2717 as_fn_error $? "newly created file is older than distributed files!
2718Check your system clock" "$LINENO" 5
2719fi
2720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2721$as_echo "yes" >&6; }
2722# If we didn't sleep, we still need to ensure time stamps of config.status and
2723# generated files are strictly newer.
2724am_sleep_pid=
2725if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2726 ( sleep 1 ) &
2727 am_sleep_pid=$!
2728fi
2729
2730rm -f conftest.file
2731
2732test "$program_prefix" != NONE &&
2733 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2734# Use a double $ so make ignores it.
2735test "$program_suffix" != NONE &&
2736 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2737# Double any \ or $.
2738# By default was `s,x,x', remove it if useless.
2739ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2740program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2741
2742# expand $ac_aux_dir to an absolute path
2743am_aux_dir=`cd $ac_aux_dir && pwd`
2744
2745if test x"${MISSING+set}" != xset; then
2746 case $am_aux_dir in
2747 *\ * | *\ *)
2748 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2749 *)
2750 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2751 esac
2752fi
2753# Use eval to expand $SHELL
2754if eval "$MISSING --is-lightweight"; then
2755 am_missing_run="$MISSING "
2756else
2757 am_missing_run=
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2759$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2760fi
9c60689e 2761
66170b30
JF
2762if test x"${install_sh}" != xset; then
2763 case $am_aux_dir in
2764 *\ * | *\ *)
2765 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2766 *)
2767 install_sh="\${SHELL} $am_aux_dir/install-sh"
2768 esac
2769fi
9c60689e 2770
66170b30
JF
2771# Installed binaries are usually stripped using 'strip' when the user
2772# run "make install-strip". However 'strip' might not be the right
2773# tool to use in cross-compilation environments, therefore Automake
2774# will honor the 'STRIP' environment variable to overrule this program.
2775if test "$cross_compiling" != no; then
2776 if test -n "$ac_tool_prefix"; then
2777 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2778set dummy ${ac_tool_prefix}strip; ac_word=$2
2779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2780$as_echo_n "checking for $ac_word... " >&6; }
2781if ${ac_cv_prog_STRIP+:} false; then :
2782 $as_echo_n "(cached) " >&6
2783else
2784 if test -n "$STRIP"; then
2785 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2786else
2787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788for as_dir in $PATH
2789do
2790 IFS=$as_save_IFS
2791 test -z "$as_dir" && as_dir=.
2792 for ac_exec_ext in '' $ac_executable_extensions; do
2793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2794 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2796 break 2
2797 fi
2798done
2799 done
2800IFS=$as_save_IFS
9c60689e 2801
66170b30
JF
2802fi
2803fi
2804STRIP=$ac_cv_prog_STRIP
2805if test -n "$STRIP"; then
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2807$as_echo "$STRIP" >&6; }
2808else
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2810$as_echo "no" >&6; }
2811fi
9c60689e 2812
9c60689e 2813
66170b30
JF
2814fi
2815if test -z "$ac_cv_prog_STRIP"; then
2816 ac_ct_STRIP=$STRIP
2817 # Extract the first word of "strip", so it can be a program name with args.
2818set dummy strip; ac_word=$2
2819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2820$as_echo_n "checking for $ac_word... " >&6; }
2821if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9c60689e
DWT
2822 $as_echo_n "(cached) " >&6
2823else
66170b30
JF
2824 if test -n "$ac_ct_STRIP"; then
2825 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2826else
2827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828for as_dir in $PATH
2829do
2830 IFS=$as_save_IFS
2831 test -z "$as_dir" && as_dir=.
2832 for ac_exec_ext in '' $ac_executable_extensions; do
2833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2834 ac_cv_prog_ac_ct_STRIP="strip"
2835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2836 break 2
2837 fi
2838done
2839 done
2840IFS=$as_save_IFS
9c60689e
DWT
2841
2842fi
66170b30
JF
2843fi
2844ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2845if test -n "$ac_ct_STRIP"; then
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2847$as_echo "$ac_ct_STRIP" >&6; }
2848else
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2850$as_echo "no" >&6; }
2851fi
2852
2853 if test "x$ac_ct_STRIP" = x; then
2854 STRIP=":"
2855 else
2856 case $cross_compiling:$ac_tool_warned in
2857yes:)
2858{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2859$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2860ac_tool_warned=yes ;;
9c60689e 2861esac
66170b30
JF
2862 STRIP=$ac_ct_STRIP
2863 fi
2864else
2865 STRIP="$ac_cv_prog_STRIP"
2866fi
9c60689e 2867
66170b30
JF
2868fi
2869INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9c60689e 2870
66170b30
JF
2871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2872$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2873if test -z "$MKDIR_P"; then
2874 if ${ac_cv_path_mkdir+:} false; then :
9c60689e
DWT
2875 $as_echo_n "(cached) " >&6
2876else
66170b30
JF
2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2879do
2880 IFS=$as_save_IFS
2881 test -z "$as_dir" && as_dir=.
2882 for ac_prog in mkdir gmkdir; do
2883 for ac_exec_ext in '' $ac_executable_extensions; do
2884 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2885 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2886 'mkdir (GNU coreutils) '* | \
2887 'mkdir (coreutils) '* | \
2888 'mkdir (fileutils) '4.1*)
2889 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2890 break 3;;
2891 esac
2892 done
2893 done
2894 done
2895IFS=$as_save_IFS
2896
2897fi
2898
2899 test -d ./--version && rmdir ./--version
2900 if test "${ac_cv_path_mkdir+set}" = set; then
2901 MKDIR_P="$ac_cv_path_mkdir -p"
2902 else
2903 # As a last resort, use the slow shell script. Don't cache a
2904 # value for MKDIR_P within a source directory, because that will
2905 # break other packages using the cache if that directory is
2906 # removed, or if the value is a relative name.
2907 MKDIR_P="$ac_install_sh -d"
2908 fi
2909fi
2910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2911$as_echo "$MKDIR_P" >&6; }
2912
2913for ac_prog in gawk mawk nawk awk
2914do
2915 # Extract the first word of "$ac_prog", so it can be a program name with args.
2916set dummy $ac_prog; ac_word=$2
2917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2918$as_echo_n "checking for $ac_word... " >&6; }
2919if ${ac_cv_prog_AWK+:} false; then :
2920 $as_echo_n "(cached) " >&6
2921else
2922 if test -n "$AWK"; then
2923 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2924else
2925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926for as_dir in $PATH
2927do
2928 IFS=$as_save_IFS
2929 test -z "$as_dir" && as_dir=.
2930 for ac_exec_ext in '' $ac_executable_extensions; do
2931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2932 ac_cv_prog_AWK="$ac_prog"
2933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2934 break 2
2935 fi
2936done
2937 done
2938IFS=$as_save_IFS
2939
2940fi
2941fi
2942AWK=$ac_cv_prog_AWK
2943if test -n "$AWK"; then
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2945$as_echo "$AWK" >&6; }
2946else
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2948$as_echo "no" >&6; }
2949fi
2950
2951
2952 test -n "$AWK" && break
2953done
2954
2955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2956$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2957set x ${MAKE-make}
2958ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2959if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2960 $as_echo_n "(cached) " >&6
2961else
2962 cat >conftest.make <<\_ACEOF
2963SHELL = /bin/sh
2964all:
2965 @echo '@@@%%%=$(MAKE)=@@@%%%'
2966_ACEOF
2967# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2968case `${MAKE-make} -f conftest.make 2>/dev/null` in
2969 *@@@%%%=?*=@@@%%%*)
2970 eval ac_cv_prog_make_${ac_make}_set=yes;;
2971 *)
2972 eval ac_cv_prog_make_${ac_make}_set=no;;
2973esac
2974rm -f conftest.make
2975fi
2976if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2978$as_echo "yes" >&6; }
2979 SET_MAKE=
2980else
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982$as_echo "no" >&6; }
2983 SET_MAKE="MAKE=${MAKE-make}"
2984fi
2985
2986rm -rf .tst 2>/dev/null
2987mkdir .tst 2>/dev/null
2988if test -d .tst; then
2989 am__leading_dot=.
2990else
2991 am__leading_dot=_
2992fi
2993rmdir .tst 2>/dev/null
2994
2995# Check whether --enable-silent-rules was given.
2996if test "${enable_silent_rules+set}" = set; then :
2997 enableval=$enable_silent_rules;
2998fi
2999
3000case $enable_silent_rules in # (((
3001 yes) AM_DEFAULT_VERBOSITY=0;;
3002 no) AM_DEFAULT_VERBOSITY=1;;
3003 *) AM_DEFAULT_VERBOSITY=1;;
3004esac
3005am_make=${MAKE-make}
3006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3007$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3008if ${am_cv_make_support_nested_variables+:} false; then :
3009 $as_echo_n "(cached) " >&6
3010else
3011 if $as_echo 'TRUE=$(BAR$(V))
3012BAR0=false
3013BAR1=true
3014V=1
3015am__doit:
3016 @$(TRUE)
3017.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3018 am_cv_make_support_nested_variables=yes
3019else
3020 am_cv_make_support_nested_variables=no
3021fi
3022fi
3023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3024$as_echo "$am_cv_make_support_nested_variables" >&6; }
3025if test $am_cv_make_support_nested_variables = yes; then
3026 AM_V='$(V)'
3027 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3028else
3029 AM_V=$AM_DEFAULT_VERBOSITY
3030 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3031fi
3032AM_BACKSLASH='\'
3033
3034if test "`cd $srcdir && pwd`" != "`pwd`"; then
3035 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3036 # is not polluted with repeated "-I."
3037 am__isrc=' -I$(srcdir)'
3038 # test to see if srcdir already configured
3039 if test -f $srcdir/config.status; then
3040 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3041 fi
3042fi
3043
3044# test whether we have cygpath
3045if test -z "$CYGPATH_W"; then
3046 if (cygpath --version) >/dev/null 2>/dev/null; then
3047 CYGPATH_W='cygpath -w'
3048 else
3049 CYGPATH_W=echo
3050 fi
3051fi
3052
3053
3054# Define the identity of the package.
3055 PACKAGE='cycript'
3056 VERSION='0.9'
3057
3058
3059cat >>confdefs.h <<_ACEOF
3060#define PACKAGE "$PACKAGE"
3061_ACEOF
3062
3063
3064cat >>confdefs.h <<_ACEOF
3065#define VERSION "$VERSION"
3066_ACEOF
3067
3068# Some tools Automake needs.
3069
3070ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3071
3072
3073AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3074
3075
3076AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3077
3078
3079AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3080
3081
3082MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3083
3084# For better backward compatibility. To be removed once Automake 1.9.x
3085# dies out for good. For more background, see:
3086# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3087# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3088mkdir_p='$(MKDIR_P)'
3089
3090# We need awk for the "check" target. The system "awk" is bad on
3091# some platforms.
3092# Always define AMTAR for backward compatibility. Yes, it's still used
3093# in the wild :-( We should find a proper way to deprecate it ...
3094AMTAR='$${TAR-tar}'
3095
a93f15c0
JF
3096
3097# We'll loop over all known methods to create a tar archive until one works.
3098_am_tools='gnutar pax cpio none'
3099
66170b30
JF
3100am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3101
3102
3103
3104
3105
66170b30 3106
a93f15c0
JF
3107# POSIX will say in a future version that running "rm -f" with no argument
3108# is OK; and we want to be able to make that assumption in our Makefile
3109# recipes. So use an aggressive probe to check that the usage we want is
3110# actually supported "in the wild" to an acceptable degree.
3111# See automake bug#10828.
3112# To make any issue more visible, cause the running configure to be aborted
3113# by default if the 'rm' program in use doesn't match our expectations; the
3114# user can still override this though.
3115if rm -f && rm -fr && rm -rf; then : OK; else
3116 cat >&2 <<'END'
3117Oops!
3118
3119Your 'rm' program seems unable to run without file operands specified
3120on the command line, even when the '-f' option is present. This is contrary
3121to the behaviour of most rm programs out there, and not conforming with
3122the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3123
3124Please tell bug-automake@gnu.org about your system, including the value
3125of your $PATH and any error possibly output before this message. This
3126can help us improve future automake versions.
3127
3128END
3129 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3130 echo 'Configuration will proceed anyway, since you have set the' >&2
3131 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3132 echo >&2
3133 else
3134 cat >&2 <<'END'
3135Aborting the configuration process, to ensure you take notice of the issue.
3136
3137You can download and install GNU coreutils to get an 'rm' implementation
3138that behaves properly: <http://www.gnu.org/software/coreutils/>.
3139
3140If you want to complete the configuration process using your problematic
3141'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3142to "yes", and re-run configure.
3143
3144END
3145 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3146 fi
3147fi
3148
babf7fe8
JF
3149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3150$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3151 # Check whether --enable-maintainer-mode was given.
3152if test "${enable_maintainer_mode+set}" = set; then :
3153 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3154else
3155 USE_MAINTAINER_MODE=no
3156fi
3157
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3159$as_echo "$USE_MAINTAINER_MODE" >&6; }
3160 if test $USE_MAINTAINER_MODE = yes; then
3161 MAINTAINER_MODE_TRUE=
3162 MAINTAINER_MODE_FALSE='#'
3163else
3164 MAINTAINER_MODE_TRUE='#'
3165 MAINTAINER_MODE_FALSE=
3166fi
3167
3168 MAINT=$MAINTAINER_MODE_TRUE
3169
3170
3171
a93f15c0
JF
3172ac_ext=c
3173ac_cpp='$CPP $CPPFLAGS'
3174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3176ac_compiler_gnu=$ac_cv_c_compiler_gnu
3177if test -n "$ac_tool_prefix"; then
3178 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3179set dummy ${ac_tool_prefix}gcc; ac_word=$2
dbadc56a
DWT
3180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3181$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 3182if ${ac_cv_prog_CC+:} false; then :
dbadc56a
DWT
3183 $as_echo_n "(cached) " >&6
3184else
a93f15c0
JF
3185 if test -n "$CC"; then
3186 ac_cv_prog_CC="$CC" # Let the user override the test.
dbadc56a
DWT
3187else
3188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3189for as_dir in $PATH
3190do
3191 IFS=$as_save_IFS
3192 test -z "$as_dir" && as_dir=.
3193 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 3194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 3195 ac_cv_prog_CC="${ac_tool_prefix}gcc"
dbadc56a
DWT
3196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3197 break 2
3198 fi
3199done
3200 done
3201IFS=$as_save_IFS
3202
3203fi
3204fi
a93f15c0
JF
3205CC=$ac_cv_prog_CC
3206if test -n "$CC"; then
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3208$as_echo "$CC" >&6; }
35fa52c0
DWT
3209else
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211$as_echo "no" >&6; }
3212fi
3213
3214
35fa52c0 3215fi
a93f15c0
JF
3216if test -z "$ac_cv_prog_CC"; then
3217 ac_ct_CC=$CC
3218 # Extract the first word of "gcc", so it can be a program name with args.
3219set dummy gcc; ac_word=$2
35fa52c0
DWT
3220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3221$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 3222if ${ac_cv_prog_ac_ct_CC+:} false; then :
35fa52c0
DWT
3223 $as_echo_n "(cached) " >&6
3224else
a93f15c0
JF
3225 if test -n "$ac_ct_CC"; then
3226 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
35fa52c0
DWT
3227else
3228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229for as_dir in $PATH
3230do
3231 IFS=$as_save_IFS
3232 test -z "$as_dir" && as_dir=.
3233 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 3234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 3235 ac_cv_prog_ac_ct_CC="gcc"
35fa52c0
DWT
3236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3237 break 2
3238 fi
3239done
3240 done
3241IFS=$as_save_IFS
3242
3243fi
3244fi
a93f15c0
JF
3245ac_ct_CC=$ac_cv_prog_ac_ct_CC
3246if test -n "$ac_ct_CC"; then
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3248$as_echo "$ac_ct_CC" >&6; }
35fa52c0
DWT
3249else
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3251$as_echo "no" >&6; }
3252fi
3253
a93f15c0
JF
3254 if test "x$ac_ct_CC" = x; then
3255 CC=""
35fa52c0
DWT
3256 else
3257 case $cross_compiling:$ac_tool_warned in
3258yes:)
3259{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3260$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3261ac_tool_warned=yes ;;
3262esac
a93f15c0 3263 CC=$ac_ct_CC
35fa52c0 3264 fi
a93f15c0
JF
3265else
3266 CC="$ac_cv_prog_CC"
35fa52c0
DWT
3267fi
3268
a93f15c0
JF
3269if test -z "$CC"; then
3270 if test -n "$ac_tool_prefix"; then
3271 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3272set dummy ${ac_tool_prefix}cc; ac_word=$2
3273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3274$as_echo_n "checking for $ac_word... " >&6; }
3275if ${ac_cv_prog_CC+:} false; then :
3276 $as_echo_n "(cached) " >&6
3277else
3278 if test -n "$CC"; then
3279 ac_cv_prog_CC="$CC" # Let the user override the test.
3280else
3281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282for as_dir in $PATH
3283do
3284 IFS=$as_save_IFS
3285 test -z "$as_dir" && as_dir=.
3286 for ac_exec_ext in '' $ac_executable_extensions; do
3287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3288 ac_cv_prog_CC="${ac_tool_prefix}cc"
3289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3290 break 2
a243b558 3291 fi
35fa52c0 3292done
a93f15c0
JF
3293 done
3294IFS=$as_save_IFS
35fa52c0 3295
a93f15c0
JF
3296fi
3297fi
3298CC=$ac_cv_prog_CC
3299if test -n "$CC"; then
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3301$as_echo "$CC" >&6; }
3302else
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3304$as_echo "no" >&6; }
3305fi
35fa52c0 3306
35fa52c0 3307
a93f15c0
JF
3308 fi
3309fi
3310if test -z "$CC"; then
3311 # Extract the first word of "cc", so it can be a program name with args.
3312set dummy cc; ac_word=$2
3313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3314$as_echo_n "checking for $ac_word... " >&6; }
3315if ${ac_cv_prog_CC+:} false; then :
3316 $as_echo_n "(cached) " >&6
3317else
3318 if test -n "$CC"; then
3319 ac_cv_prog_CC="$CC" # Let the user override the test.
3320else
3321 ac_prog_rejected=no
3322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323for as_dir in $PATH
35fa52c0 3324do
a93f15c0
JF
3325 IFS=$as_save_IFS
3326 test -z "$as_dir" && as_dir=.
3327 for ac_exec_ext in '' $ac_executable_extensions; do
3328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3329 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3330 ac_prog_rejected=yes
3331 continue
3332 fi
3333 ac_cv_prog_CC="cc"
3334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3335 break 2
3336 fi
3337done
3338 done
3339IFS=$as_save_IFS
3340
3341if test $ac_prog_rejected = yes; then
3342 # We found a bogon in the path, so make sure we never use it.
3343 set dummy $ac_cv_prog_CC
3344 shift
3345 if test $# != 0; then
3346 # We chose a different compiler from the bogus one.
3347 # However, it has the same basename, so the bogon will be chosen
3348 # first if we set CC to just the basename; use the full file name.
3349 shift
3350 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3351 fi
3352fi
3353fi
3354fi
3355CC=$ac_cv_prog_CC
3356if test -n "$CC"; then
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3358$as_echo "$CC" >&6; }
3359else
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3361$as_echo "no" >&6; }
3362fi
3363
3364
3365fi
3366if test -z "$CC"; then
3367 if test -n "$ac_tool_prefix"; then
3368 for ac_prog in cl.exe
3369 do
3370 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3371set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3373$as_echo_n "checking for $ac_word... " >&6; }
3374if ${ac_cv_prog_CC+:} false; then :
3375 $as_echo_n "(cached) " >&6
3376else
3377 if test -n "$CC"; then
3378 ac_cv_prog_CC="$CC" # Let the user override the test.
3379else
3380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381for as_dir in $PATH
3382do
3383 IFS=$as_save_IFS
3384 test -z "$as_dir" && as_dir=.
3385 for ac_exec_ext in '' $ac_executable_extensions; do
3386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3387 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3389 break 2
3390 fi
3391done
3392 done
3393IFS=$as_save_IFS
3394
3395fi
3396fi
3397CC=$ac_cv_prog_CC
3398if test -n "$CC"; then
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3400$as_echo "$CC" >&6; }
3401else
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3403$as_echo "no" >&6; }
3404fi
3405
3406
3407 test -n "$CC" && break
3408 done
3409fi
3410if test -z "$CC"; then
3411 ac_ct_CC=$CC
3412 for ac_prog in cl.exe
3413do
3414 # Extract the first word of "$ac_prog", so it can be a program name with args.
3415set dummy $ac_prog; ac_word=$2
3416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3417$as_echo_n "checking for $ac_word... " >&6; }
3418if ${ac_cv_prog_ac_ct_CC+:} false; then :
3419 $as_echo_n "(cached) " >&6
3420else
3421 if test -n "$ac_ct_CC"; then
3422 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3423else
3424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3425for as_dir in $PATH
3426do
3427 IFS=$as_save_IFS
3428 test -z "$as_dir" && as_dir=.
3429 for ac_exec_ext in '' $ac_executable_extensions; do
3430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3431 ac_cv_prog_ac_ct_CC="$ac_prog"
3432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3433 break 2
3434 fi
3435done
3436 done
3437IFS=$as_save_IFS
3438
3439fi
3440fi
3441ac_ct_CC=$ac_cv_prog_ac_ct_CC
3442if test -n "$ac_ct_CC"; then
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3444$as_echo "$ac_ct_CC" >&6; }
3445else
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3447$as_echo "no" >&6; }
3448fi
3449
3450
3451 test -n "$ac_ct_CC" && break
3452done
3453
3454 if test "x$ac_ct_CC" = x; then
3455 CC=""
3456 else
3457 case $cross_compiling:$ac_tool_warned in
3458yes:)
3459{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3460$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3461ac_tool_warned=yes ;;
3462esac
3463 CC=$ac_ct_CC
3464 fi
3465fi
3466
3467fi
3468
3469
3470test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3471$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3472as_fn_error $? "no acceptable C compiler found in \$PATH
3473See \`config.log' for more details" "$LINENO" 5; }
3474
3475# Provide some information about the compiler.
3476$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3477set X $ac_compile
3478ac_compiler=$2
3479for ac_option in --version -v -V -qversion; do
3480 { { ac_try="$ac_compiler $ac_option >&5"
3481case "(($ac_try" in
3482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483 *) ac_try_echo=$ac_try;;
3484esac
3485eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3486$as_echo "$ac_try_echo"; } >&5
3487 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3488 ac_status=$?
3489 if test -s conftest.err; then
3490 sed '10a\
3491... rest of stderr output deleted ...
3492 10q' conftest.err >conftest.er1
3493 cat conftest.er1 >&5
3494 fi
3495 rm -f conftest.er1 conftest.err
3496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3497 test $ac_status = 0; }
3498done
3499
3500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3501/* end confdefs.h. */
3502
3503int
3504main ()
3505{
3506
3507 ;
3508 return 0;
3509}
3510_ACEOF
3511ac_clean_files_save=$ac_clean_files
3512ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3513# Try to create an executable without -o first, disregard a.out.
3514# It will help us diagnose broken compilers, and finding out an intuition
3515# of exeext.
3516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3517$as_echo_n "checking whether the C compiler works... " >&6; }
3518ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3519
3520# The possible output files:
3521ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3522
3523ac_rmfiles=
3524for ac_file in $ac_files
3525do
3526 case $ac_file in
3527 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3528 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3529 esac
3530done
35fa52c0
DWT
3531rm -f $ac_rmfiles
3532
3533if { { ac_try="$ac_link_default"
3534case "(($ac_try" in
3535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536 *) ac_try_echo=$ac_try;;
3537esac
3538eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3539$as_echo "$ac_try_echo"; } >&5
3540 (eval "$ac_link_default") 2>&5
3541 ac_status=$?
3542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3543 test $ac_status = 0; }; then :
3544 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3545# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3546# in a Makefile. We should not override ac_cv_exeext if it was cached,
3547# so that the user can short-circuit this test for compilers unknown to
3548# Autoconf.
3549for ac_file in $ac_files ''
3550do
3551 test -f "$ac_file" || continue
3552 case $ac_file in
3553 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3554 ;;
3555 [ab].out )
3556 # We found the default executable, but exeext='' is most
3557 # certainly right.
3558 break;;
3559 *.* )
3560 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3561 then :; else
3562 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3563 fi
3564 # We set ac_cv_exeext here because the later test for it is not
3565 # safe: cross compilers may not add the suffix if given an `-o'
3566 # argument, so we may need to know it at that point already.
3567 # Even if this section looks crufty: it has the advantage of
3568 # actually working.
3569 break;;
3570 * )
3571 break;;
3572 esac
3573done
3574test "$ac_cv_exeext" = no && ac_cv_exeext=
3575
3576else
3577 ac_file=''
3578fi
35fa52c0 3579if test -z "$ac_file"; then :
9c60689e
DWT
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3581$as_echo "no" >&6; }
3582$as_echo "$as_me: failed program was:" >&5
35fa52c0
DWT
3583sed 's/^/| /' conftest.$ac_ext >&5
3584
3585{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3586$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
a93f15c0 3587as_fn_error 77 "C compiler cannot create executables
ee134472 3588See \`config.log' for more details" "$LINENO" 5; }
9c60689e
DWT
3589else
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3591$as_echo "yes" >&6; }
35fa52c0 3592fi
a93f15c0
JF
3593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3594$as_echo_n "checking for C compiler default output file name... " >&6; }
9c60689e
DWT
3595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3596$as_echo "$ac_file" >&6; }
35fa52c0
DWT
3597ac_exeext=$ac_cv_exeext
3598
9c60689e 3599rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
35fa52c0 3600ac_clean_files=$ac_clean_files_save
35fa52c0
DWT
3601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3602$as_echo_n "checking for suffix of executables... " >&6; }
3603if { { ac_try="$ac_link"
3604case "(($ac_try" in
3605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606 *) ac_try_echo=$ac_try;;
3607esac
3608eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3609$as_echo "$ac_try_echo"; } >&5
3610 (eval "$ac_link") 2>&5
3611 ac_status=$?
3612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3613 test $ac_status = 0; }; then :
3614 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3615# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3616# work properly (i.e., refer to `conftest.exe'), while it won't with
3617# `rm'.
3618for ac_file in conftest.exe conftest conftest.*; do
3619 test -f "$ac_file" || continue
3620 case $ac_file in
3621 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3622 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3623 break;;
3624 * ) break;;
3625 esac
3626done
3627else
3628 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3629$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833ad8 3630as_fn_error $? "cannot compute suffix of executables: cannot compile and link
ee134472 3631See \`config.log' for more details" "$LINENO" 5; }
35fa52c0 3632fi
9c60689e 3633rm -f conftest conftest$ac_cv_exeext
35fa52c0
DWT
3634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3635$as_echo "$ac_cv_exeext" >&6; }
3636
3637rm -f conftest.$ac_ext
3638EXEEXT=$ac_cv_exeext
3639ac_exeext=$EXEEXT
9c60689e
DWT
3640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3641/* end confdefs.h. */
3642#include <stdio.h>
3643int
3644main ()
3645{
3646FILE *f = fopen ("conftest.out", "w");
3647 return ferror (f) || fclose (f) != 0;
3648
3649 ;
3650 return 0;
3651}
3652_ACEOF
3653ac_clean_files="$ac_clean_files conftest.out"
3654# Check that the compiler produces executables we can run. If not, either
3655# the compiler is broken, or we cross compile.
3656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3657$as_echo_n "checking whether we are cross compiling... " >&6; }
3658if test "$cross_compiling" != yes; then
3659 { { ac_try="$ac_link"
3660case "(($ac_try" in
3661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3662 *) ac_try_echo=$ac_try;;
3663esac
3664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3665$as_echo "$ac_try_echo"; } >&5
3666 (eval "$ac_link") 2>&5
3667 ac_status=$?
3668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3669 test $ac_status = 0; }
3670 if { ac_try='./conftest$ac_cv_exeext'
3671 { { case "(($ac_try" in
3672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673 *) ac_try_echo=$ac_try;;
3674esac
3675eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3676$as_echo "$ac_try_echo"; } >&5
3677 (eval "$ac_try") 2>&5
3678 ac_status=$?
3679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3680 test $ac_status = 0; }; }; then
3681 cross_compiling=no
3682 else
3683 if test "$cross_compiling" = maybe; then
3684 cross_compiling=yes
3685 else
3686 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3687$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
a93f15c0 3688as_fn_error $? "cannot run C compiled programs.
9c60689e 3689If you meant to cross compile, use \`--host'.
ee134472 3690See \`config.log' for more details" "$LINENO" 5; }
9c60689e
DWT
3691 fi
3692 fi
3693fi
3694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3695$as_echo "$cross_compiling" >&6; }
3696
3697rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3698ac_clean_files=$ac_clean_files_save
35fa52c0
DWT
3699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3700$as_echo_n "checking for suffix of object files... " >&6; }
ee134472 3701if ${ac_cv_objext+:} false; then :
35fa52c0
DWT
3702 $as_echo_n "(cached) " >&6
3703else
3704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3705/* end confdefs.h. */
3706
3707int
3708main ()
3709{
3710
3711 ;
3712 return 0;
3713}
3714_ACEOF
3715rm -f conftest.o conftest.obj
3716if { { ac_try="$ac_compile"
3717case "(($ac_try" in
3718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3719 *) ac_try_echo=$ac_try;;
3720esac
3721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3722$as_echo "$ac_try_echo"; } >&5
3723 (eval "$ac_compile") 2>&5
3724 ac_status=$?
3725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3726 test $ac_status = 0; }; then :
3727 for ac_file in conftest.o conftest.obj conftest.*; do
3728 test -f "$ac_file" || continue;
3729 case $ac_file in
3730 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3731 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3732 break;;
3733 esac
3734done
3735else
3736 $as_echo "$as_me: failed program was:" >&5
3737sed 's/^/| /' conftest.$ac_ext >&5
3738
3739{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3740$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833ad8 3741as_fn_error $? "cannot compute suffix of object files: cannot compile
ee134472 3742See \`config.log' for more details" "$LINENO" 5; }
35fa52c0
DWT
3743fi
3744rm -f conftest.$ac_cv_objext conftest.$ac_ext
3745fi
3746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3747$as_echo "$ac_cv_objext" >&6; }
3748OBJEXT=$ac_cv_objext
3749ac_objext=$OBJEXT
a93f15c0
JF
3750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3751$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3752if ${ac_cv_c_compiler_gnu+:} false; then :
35fa52c0
DWT
3753 $as_echo_n "(cached) " >&6
3754else
3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756/* end confdefs.h. */
3757
3758int
3759main ()
3760{
3761#ifndef __GNUC__
3762 choke me
3763#endif
3764
3765 ;
3766 return 0;
3767}
3768_ACEOF
a93f15c0 3769if ac_fn_c_try_compile "$LINENO"; then :
35fa52c0
DWT
3770 ac_compiler_gnu=yes
3771else
3772 ac_compiler_gnu=no
3773fi
3774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 3775ac_cv_c_compiler_gnu=$ac_compiler_gnu
35fa52c0
DWT
3776
3777fi
a93f15c0
JF
3778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3779$as_echo "$ac_cv_c_compiler_gnu" >&6; }
35fa52c0 3780if test $ac_compiler_gnu = yes; then
a93f15c0 3781 GCC=yes
35fa52c0 3782else
a93f15c0 3783 GCC=
35fa52c0 3784fi
a93f15c0
JF
3785ac_test_CFLAGS=${CFLAGS+set}
3786ac_save_CFLAGS=$CFLAGS
3787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3788$as_echo_n "checking whether $CC accepts -g... " >&6; }
3789if ${ac_cv_prog_cc_g+:} false; then :
35fa52c0
DWT
3790 $as_echo_n "(cached) " >&6
3791else
a93f15c0
JF
3792 ac_save_c_werror_flag=$ac_c_werror_flag
3793 ac_c_werror_flag=yes
3794 ac_cv_prog_cc_g=no
3795 CFLAGS="-g"
35fa52c0
DWT
3796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797/* end confdefs.h. */
3798
3799int
3800main ()
3801{
3802
3803 ;
3804 return 0;
3805}
3806_ACEOF
a93f15c0
JF
3807if ac_fn_c_try_compile "$LINENO"; then :
3808 ac_cv_prog_cc_g=yes
35fa52c0 3809else
a93f15c0 3810 CFLAGS=""
35fa52c0
DWT
3811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3812/* end confdefs.h. */
3813
3814int
3815main ()
3816{
3817
3818 ;
3819 return 0;
3820}
3821_ACEOF
a93f15c0 3822if ac_fn_c_try_compile "$LINENO"; then :
35fa52c0
DWT
3823
3824else
a93f15c0
JF
3825 ac_c_werror_flag=$ac_save_c_werror_flag
3826 CFLAGS="-g"
35fa52c0
DWT
3827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3828/* end confdefs.h. */
3829
3830int
3831main ()
3832{
3833
3834 ;
3835 return 0;
3836}
3837_ACEOF
a93f15c0
JF
3838if ac_fn_c_try_compile "$LINENO"; then :
3839 ac_cv_prog_cc_g=yes
35fa52c0
DWT
3840fi
3841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3842fi
3843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3844fi
3845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 3846 ac_c_werror_flag=$ac_save_c_werror_flag
35fa52c0 3847fi
a93f15c0
JF
3848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3849$as_echo "$ac_cv_prog_cc_g" >&6; }
3850if test "$ac_test_CFLAGS" = set; then
3851 CFLAGS=$ac_save_CFLAGS
3852elif test $ac_cv_prog_cc_g = yes; then
3853 if test "$GCC" = yes; then
3854 CFLAGS="-g -O2"
35fa52c0 3855 else
a93f15c0 3856 CFLAGS="-g"
35fa52c0
DWT
3857 fi
3858else
a93f15c0
JF
3859 if test "$GCC" = yes; then
3860 CFLAGS="-O2"
35fa52c0 3861 else
a93f15c0 3862 CFLAGS=
35fa52c0
DWT
3863 fi
3864fi
a93f15c0
JF
3865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3866$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3867if ${ac_cv_prog_cc_c89+:} false; then :
3868 $as_echo_n "(cached) " >&6
3869else
3870 ac_cv_prog_cc_c89=no
3871ac_save_CC=$CC
3872cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873/* end confdefs.h. */
3874#include <stdarg.h>
3875#include <stdio.h>
3876struct stat;
3877/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3878struct buf { int x; };
3879FILE * (*rcsopen) (struct buf *, struct stat *, int);
3880static char *e (p, i)
3881 char **p;
3882 int i;
3883{
3884 return p[i];
3885}
3886static char *f (char * (*g) (char **, int), char **p, ...)
3887{
3888 char *s;
3889 va_list v;
3890 va_start (v,p);
3891 s = g (p, va_arg (v,int));
3892 va_end (v);
3893 return s;
3894}
3895
3896/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3897 function prototypes and stuff, but not '\xHH' hex character constants.
3898 These don't provoke an error unfortunately, instead are silently treated
3899 as 'x'. The following induces an error, until -std is added to get
3900 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3901 array size at least. It's necessary to write '\x00'==0 to get something
3902 that's true only with -std. */
3903int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3904
3905/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3906 inside strings and character constants. */
3907#define FOO(x) 'x'
3908int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3909
3910int test (int i, double x);
3911struct s1 {int (*f) (int a);};
3912struct s2 {int (*f) (double a);};
3913int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3914int argc;
3915char **argv;
3916int
3917main ()
3918{
3919return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3920 ;
3921 return 0;
3922}
3923_ACEOF
3924for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3925 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3926do
3927 CC="$ac_save_CC $ac_arg"
3928 if ac_fn_c_try_compile "$LINENO"; then :
3929 ac_cv_prog_cc_c89=$ac_arg
3930fi
3931rm -f core conftest.err conftest.$ac_objext
3932 test "x$ac_cv_prog_cc_c89" != "xno" && break
3933done
3934rm -f conftest.$ac_ext
3935CC=$ac_save_CC
3936
3937fi
3938# AC_CACHE_VAL
3939case "x$ac_cv_prog_cc_c89" in
3940 x)
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3942$as_echo "none needed" >&6; } ;;
3943 xno)
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3945$as_echo "unsupported" >&6; } ;;
3946 *)
3947 CC="$CC $ac_cv_prog_cc_c89"
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3949$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3950esac
3951if test "x$ac_cv_prog_cc_c89" != xno; then :
3952
3953fi
3954
3955ac_ext=c
3956ac_cpp='$CPP $CPPFLAGS'
3957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3959ac_compiler_gnu=$ac_cv_c_compiler_gnu
3960
3961ac_ext=c
3962ac_cpp='$CPP $CPPFLAGS'
3963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3965ac_compiler_gnu=$ac_cv_c_compiler_gnu
3966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3967$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3968if ${am_cv_prog_cc_c_o+:} false; then :
3969 $as_echo_n "(cached) " >&6
3970else
3971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3972/* end confdefs.h. */
3973
3974int
3975main ()
3976{
3977
3978 ;
3979 return 0;
3980}
3981_ACEOF
3982 # Make sure it works both with $CC and with simple cc.
3983 # Following AC_PROG_CC_C_O, we do the test twice because some
3984 # compilers refuse to overwrite an existing .o file with -o,
3985 # though they will create one.
3986 am_cv_prog_cc_c_o=yes
3987 for am_i in 1 2; do
3988 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3989 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3990 ac_status=$?
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); } \
3993 && test -f conftest2.$ac_objext; then
3994 : OK
3995 else
3996 am_cv_prog_cc_c_o=no
3997 break
3998 fi
3999 done
4000 rm -f core conftest*
4001 unset am_i
4002fi
4003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4004$as_echo "$am_cv_prog_cc_c_o" >&6; }
4005if test "$am_cv_prog_cc_c_o" != yes; then
4006 # Losing compiler, so override with the script.
4007 # FIXME: It is wrong to rewrite CC.
4008 # But if we don't then we get into trouble of one sort or another.
4009 # A longer-term fix would be to have automake use am__CC in this case,
4010 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4011 CC="$am_aux_dir/compile $CC"
4012fi
a243b558
JF
4013ac_ext=c
4014ac_cpp='$CPP $CPPFLAGS'
4015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4017ac_compiler_gnu=$ac_cv_c_compiler_gnu
a93f15c0 4018
a243b558 4019DEPDIR="${am__leading_dot}deps"
35fa52c0 4020
a243b558 4021ac_config_commands="$ac_config_commands depfiles"
35fa52c0 4022
35fa52c0 4023
a243b558
JF
4024am_make=${MAKE-make}
4025cat > confinc << 'END'
4026am__doit:
4027 @echo this is the am__doit target
4028.PHONY: am__doit
4029END
4030# If we don't find an include directive, just comment out the code.
4031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4032$as_echo_n "checking for style of include used by $am_make... " >&6; }
4033am__include="#"
4034am__quote=
4035_am_result=none
4036# First try GNU make style include.
4037echo "include confinc" > confmf
4038# Ignore all kinds of additional output from 'make'.
4039case `$am_make -s -f confmf 2> /dev/null` in #(
4040*the\ am__doit\ target*)
4041 am__include=include
4042 am__quote=
4043 _am_result=GNU
4044 ;;
4045esac
4046# Now try BSD make style include.
4047if test "$am__include" = "#"; then
4048 echo '.include "confinc"' > confmf
4049 case `$am_make -s -f confmf 2> /dev/null` in #(
4050 *the\ am__doit\ target*)
4051 am__include=.include
4052 am__quote="\""
4053 _am_result=BSD
4054 ;;
4055 esac
35fa52c0 4056fi
35fa52c0 4057
a243b558
JF
4058
4059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4060$as_echo "$_am_result" >&6; }
4061rm -f confinc confmf
4062
4063# Check whether --enable-dependency-tracking was given.
4064if test "${enable_dependency_tracking+set}" = set; then :
4065 enableval=$enable_dependency_tracking;
35fa52c0 4066fi
35fa52c0 4067
a243b558
JF
4068if test "x$enable_dependency_tracking" != xno; then
4069 am_depcomp="$ac_aux_dir/depcomp"
4070 AMDEPBACKSLASH='\'
4071 am__nodep='_no'
4072fi
4073 if test "x$enable_dependency_tracking" != xno; then
4074 AMDEP_TRUE=
4075 AMDEP_FALSE='#'
4076else
4077 AMDEP_TRUE='#'
4078 AMDEP_FALSE=
35fa52c0
DWT
4079fi
4080
35fa52c0 4081
a243b558 4082
a93f15c0 4083depcc="$CC" am_compiler_list=
66170b30
JF
4084
4085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4086$as_echo_n "checking dependency style of $depcc... " >&6; }
a93f15c0 4087if ${am_cv_CC_dependencies_compiler_type+:} false; then :
66170b30
JF
4088 $as_echo_n "(cached) " >&6
4089else
4090 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4091 # We make a subdir and do the tests there. Otherwise we can end up
4092 # making bogus files that we don't know about and never remove. For
4093 # instance it was reported that on HP-UX the gcc test will end up
4094 # making a dummy file named 'D' -- because '-MD' means "put the output
4095 # in D".
4096 rm -rf conftest.dir
4097 mkdir conftest.dir
4098 # Copy depcomp to subdir because otherwise we won't find it if we're
4099 # using a relative directory.
4100 cp "$am_depcomp" conftest.dir
4101 cd conftest.dir
4102 # We will build objects and dependencies in a subdirectory because
4103 # it helps to detect inapplicable dependency modes. For instance
4104 # both Tru64's cc and ICC support -MD to output dependencies as a
4105 # side effect of compilation, but ICC will put the dependencies in
4106 # the current directory while Tru64 will put them in the object
4107 # directory.
4108 mkdir sub
4109
a93f15c0 4110 am_cv_CC_dependencies_compiler_type=none
66170b30
JF
4111 if test "$am_compiler_list" = ""; then
4112 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4113 fi
4114 am__universal=false
4115 case " $depcc " in #(
4116 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4117 esac
4118
4119 for depmode in $am_compiler_list; do
4120 # Setup a source with many dependencies, because some compilers
4121 # like to wrap large dependency lists on column 80 (with \), and
4122 # we should not choose a depcomp mode which is confused by this.
4123 #
4124 # We need to recreate these files for each test, as the compiler may
4125 # overwrite some of them when testing with obscure command lines.
4126 # This happens at least with the AIX C compiler.
4127 : > sub/conftest.c
4128 for i in 1 2 3 4 5 6; do
4129 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4130 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4131 # Solaris 10 /bin/sh.
4132 echo '/* dummy */' > sub/conftst$i.h
4133 done
4134 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4135
4136 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4137 # mode. It turns out that the SunPro C++ compiler does not properly
4138 # handle '-M -o', and we need to detect this. Also, some Intel
4139 # versions had trouble with output in subdirs.
4140 am__obj=sub/conftest.${OBJEXT-o}
4141 am__minus_obj="-o $am__obj"
4142 case $depmode in
4143 gcc)
4144 # This depmode causes a compiler race in universal mode.
4145 test "$am__universal" = false || continue
4146 ;;
4147 nosideeffect)
4148 # After this tag, mechanisms are not by side-effect, so they'll
4149 # only be used when explicitly requested.
4150 if test "x$enable_dependency_tracking" = xyes; then
4151 continue
4152 else
4153 break
4154 fi
4155 ;;
4156 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4157 # This compiler won't grok '-c -o', but also, the minuso test has
4158 # not run yet. These depmodes are late enough in the game, and
4159 # so weak that their functioning should not be impacted.
4160 am__obj=conftest.${OBJEXT-o}
4161 am__minus_obj=
4162 ;;
4163 none) break ;;
4164 esac
4165 if depmode=$depmode \
4166 source=sub/conftest.c object=$am__obj \
4167 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4168 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4169 >/dev/null 2>conftest.err &&
4170 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4171 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4172 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4173 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4174 # icc doesn't choke on unknown options, it will just issue warnings
4175 # or remarks (even with -Werror). So we grep stderr for any message
4176 # that says an option was ignored or not supported.
4177 # When given -MP, icc 7.0 and 7.1 complain thusly:
4178 # icc: Command line warning: ignoring option '-M'; no argument required
4179 # The diagnosis changed in icc 8.0:
4180 # icc: Command line remark: option '-MP' not supported
4181 if (grep 'ignoring option' conftest.err ||
4182 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
a93f15c0 4183 am_cv_CC_dependencies_compiler_type=$depmode
66170b30
JF
4184 break
4185 fi
4186 fi
4187 done
4188
4189 cd ..
4190 rm -rf conftest.dir
4191else
a93f15c0 4192 am_cv_CC_dependencies_compiler_type=none
66170b30
JF
4193fi
4194
4195fi
a93f15c0
JF
4196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4197$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4198CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
66170b30
JF
4199
4200 if
4201 test "x$enable_dependency_tracking" != xno \
a93f15c0
JF
4202 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4203 am__fastdepCC_TRUE=
4204 am__fastdepCC_FALSE='#'
66170b30 4205else
a93f15c0
JF
4206 am__fastdepCC_TRUE='#'
4207 am__fastdepCC_FALSE=
66170b30
JF
4208fi
4209
4210
a93f15c0
JF
4211ac_ext=cpp
4212ac_cpp='$CXXCPP $CPPFLAGS'
4213ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4214ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4215ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4216if test -z "$CXX"; then
4217 if test -n "$CCC"; then
4218 CXX=$CCC
4219 else
4220 if test -n "$ac_tool_prefix"; then
4221 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
a243b558
JF
4222 do
4223 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4224set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4226$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4227if ${ac_cv_prog_CXX+:} false; then :
35fa52c0
DWT
4228 $as_echo_n "(cached) " >&6
4229else
a93f15c0
JF
4230 if test -n "$CXX"; then
4231 ac_cv_prog_CXX="$CXX" # Let the user override the test.
a243b558
JF
4232else
4233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234for as_dir in $PATH
4235do
35fa52c0
DWT
4236 IFS=$as_save_IFS
4237 test -z "$as_dir" && as_dir=.
4238 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558 4239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4240 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
a243b558
JF
4241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4242 break 2
4243 fi
4244done
9c60689e
DWT
4245 done
4246IFS=$as_save_IFS
35fa52c0 4247
9c60689e 4248fi
a243b558 4249fi
a93f15c0
JF
4250CXX=$ac_cv_prog_CXX
4251if test -n "$CXX"; then
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4253$as_echo "$CXX" >&6; }
a243b558
JF
4254else
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4256$as_echo "no" >&6; }
4257fi
35fa52c0 4258
35fa52c0 4259
a93f15c0 4260 test -n "$CXX" && break
a243b558
JF
4261 done
4262fi
a93f15c0
JF
4263if test -z "$CXX"; then
4264 ac_ct_CXX=$CXX
4265 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
a243b558
JF
4266do
4267 # Extract the first word of "$ac_prog", so it can be a program name with args.
4268set dummy $ac_prog; ac_word=$2
4269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4270$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4271if ${ac_cv_prog_ac_ct_CXX+:} false; then :
9c60689e
DWT
4272 $as_echo_n "(cached) " >&6
4273else
a93f15c0
JF
4274 if test -n "$ac_ct_CXX"; then
4275 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
a243b558
JF
4276else
4277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278for as_dir in $PATH
9c60689e
DWT
4279do
4280 IFS=$as_save_IFS
4281 test -z "$as_dir" && as_dir=.
9c60689e 4282 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558 4283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4284 ac_cv_prog_ac_ct_CXX="$ac_prog"
a243b558
JF
4285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4286 break 2
4287 fi
4288done
9c60689e
DWT
4289 done
4290IFS=$as_save_IFS
a243b558
JF
4291
4292fi
4293fi
a93f15c0
JF
4294ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4295if test -n "$ac_ct_CXX"; then
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4297$as_echo "$ac_ct_CXX" >&6; }
9c60689e 4298else
a243b558
JF
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4300$as_echo "no" >&6; }
9c60689e 4301fi
6b66678a
DWT
4302
4303
a93f15c0 4304 test -n "$ac_ct_CXX" && break
a243b558 4305done
6b66678a 4306
a93f15c0
JF
4307 if test "x$ac_ct_CXX" = x; then
4308 CXX="g++"
a243b558
JF
4309 else
4310 case $cross_compiling:$ac_tool_warned in
4311yes:)
4312{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4313$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4314ac_tool_warned=yes ;;
9c60689e 4315esac
a93f15c0 4316 CXX=$ac_ct_CXX
9c60689e 4317 fi
9c60689e 4318fi
6b66678a 4319
a93f15c0
JF
4320 fi
4321fi
a243b558 4322# Provide some information about the compiler.
a93f15c0 4323$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
a243b558
JF
4324set X $ac_compile
4325ac_compiler=$2
4326for ac_option in --version -v -V -qversion; do
4327 { { ac_try="$ac_compiler $ac_option >&5"
4328case "(($ac_try" in
4329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330 *) ac_try_echo=$ac_try;;
4331esac
4332eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4333$as_echo "$ac_try_echo"; } >&5
4334 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4335 ac_status=$?
4336 if test -s conftest.err; then
4337 sed '10a\
4338... rest of stderr output deleted ...
4339 10q' conftest.err >conftest.er1
4340 cat conftest.er1 >&5
4341 fi
4342 rm -f conftest.er1 conftest.err
4343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4344 test $ac_status = 0; }
4345done
6b66678a 4346
a93f15c0
JF
4347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4348$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4349if ${ac_cv_cxx_compiler_gnu+:} false; then :
9c60689e 4350 $as_echo_n "(cached) " >&6
6b66678a 4351else
a243b558
JF
4352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4353/* end confdefs.h. */
6b66678a 4354
a243b558
JF
4355int
4356main ()
4357{
4358#ifndef __GNUC__
4359 choke me
4360#endif
4361
4362 ;
4363 return 0;
4364}
4365_ACEOF
a93f15c0 4366if ac_fn_cxx_try_compile "$LINENO"; then :
a243b558 4367 ac_compiler_gnu=yes
9c60689e 4368else
a243b558 4369 ac_compiler_gnu=no
6b66678a 4370fi
a243b558 4371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 4372ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6b66678a
DWT
4373
4374fi
a93f15c0
JF
4375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4376$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
a243b558 4377if test $ac_compiler_gnu = yes; then
a93f15c0 4378 GXX=yes
a243b558 4379else
a93f15c0 4380 GXX=
a243b558 4381fi
a93f15c0
JF
4382ac_test_CXXFLAGS=${CXXFLAGS+set}
4383ac_save_CXXFLAGS=$CXXFLAGS
4384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4385$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4386if ${ac_cv_prog_cxx_g+:} false; then :
a243b558
JF
4387 $as_echo_n "(cached) " >&6
4388else
a93f15c0
JF
4389 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4390 ac_cxx_werror_flag=yes
4391 ac_cv_prog_cxx_g=no
4392 CXXFLAGS="-g"
a243b558
JF
4393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4394/* end confdefs.h. */
309b0535 4395
a243b558
JF
4396int
4397main ()
4398{
309b0535 4399
a243b558
JF
4400 ;
4401 return 0;
4402}
4403_ACEOF
a93f15c0
JF
4404if ac_fn_cxx_try_compile "$LINENO"; then :
4405 ac_cv_prog_cxx_g=yes
a243b558 4406else
a93f15c0 4407 CXXFLAGS=""
a243b558
JF
4408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4409/* end confdefs.h. */
309b0535 4410
a243b558
JF
4411int
4412main ()
4413{
309b0535 4414
a243b558
JF
4415 ;
4416 return 0;
4417}
4418_ACEOF
a93f15c0 4419if ac_fn_cxx_try_compile "$LINENO"; then :
309b0535 4420
a243b558 4421else
a93f15c0
JF
4422 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4423 CXXFLAGS="-g"
a243b558
JF
4424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425/* end confdefs.h. */
309b0535 4426
a243b558
JF
4427int
4428main ()
4429{
309b0535 4430
a243b558
JF
4431 ;
4432 return 0;
4433}
4434_ACEOF
a93f15c0
JF
4435if ac_fn_cxx_try_compile "$LINENO"; then :
4436 ac_cv_prog_cxx_g=yes
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
9c60689e 4441fi
a243b558 4442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 4443 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9c60689e 4444fi
a93f15c0
JF
4445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4446$as_echo "$ac_cv_prog_cxx_g" >&6; }
4447if test "$ac_test_CXXFLAGS" = set; then
4448 CXXFLAGS=$ac_save_CXXFLAGS
4449elif test $ac_cv_prog_cxx_g = yes; then
4450 if test "$GXX" = yes; then
4451 CXXFLAGS="-g -O2"
a243b558 4452 else
a93f15c0 4453 CXXFLAGS="-g"
a243b558 4454 fi
9c60689e 4455else
a93f15c0
JF
4456 if test "$GXX" = yes; then
4457 CXXFLAGS="-O2"
a243b558 4458 else
a93f15c0 4459 CXXFLAGS=
a243b558 4460 fi
9c60689e 4461fi
a243b558
JF
4462ac_ext=c
4463ac_cpp='$CPP $CPPFLAGS'
4464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4466ac_compiler_gnu=$ac_cv_c_compiler_gnu
309b0535 4467
a93f15c0 4468depcc="$CXX" am_compiler_list=
309b0535 4469
a243b558
JF
4470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4471$as_echo_n "checking dependency style of $depcc... " >&6; }
a93f15c0 4472if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
a243b558
JF
4473 $as_echo_n "(cached) " >&6
4474else
4475 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4476 # We make a subdir and do the tests there. Otherwise we can end up
4477 # making bogus files that we don't know about and never remove. For
4478 # instance it was reported that on HP-UX the gcc test will end up
4479 # making a dummy file named 'D' -- because '-MD' means "put the output
4480 # in D".
4481 rm -rf conftest.dir
4482 mkdir conftest.dir
4483 # Copy depcomp to subdir because otherwise we won't find it if we're
4484 # using a relative directory.
4485 cp "$am_depcomp" conftest.dir
4486 cd conftest.dir
4487 # We will build objects and dependencies in a subdirectory because
4488 # it helps to detect inapplicable dependency modes. For instance
4489 # both Tru64's cc and ICC support -MD to output dependencies as a
4490 # side effect of compilation, but ICC will put the dependencies in
4491 # the current directory while Tru64 will put them in the object
4492 # directory.
4493 mkdir sub
309b0535 4494
a93f15c0 4495 am_cv_CXX_dependencies_compiler_type=none
a243b558
JF
4496 if test "$am_compiler_list" = ""; then
4497 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4498 fi
4499 am__universal=false
a93f15c0
JF
4500 case " $depcc " in #(
4501 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4502 esac
9c60689e 4503
a243b558
JF
4504 for depmode in $am_compiler_list; do
4505 # Setup a source with many dependencies, because some compilers
4506 # like to wrap large dependency lists on column 80 (with \), and
4507 # we should not choose a depcomp mode which is confused by this.
4508 #
4509 # We need to recreate these files for each test, as the compiler may
4510 # overwrite some of them when testing with obscure command lines.
4511 # This happens at least with the AIX C compiler.
4512 : > sub/conftest.c
4513 for i in 1 2 3 4 5 6; do
4514 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4515 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4516 # Solaris 10 /bin/sh.
4517 echo '/* dummy */' > sub/conftst$i.h
4518 done
4519 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9c60689e 4520
a243b558
JF
4521 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4522 # mode. It turns out that the SunPro C++ compiler does not properly
4523 # handle '-M -o', and we need to detect this. Also, some Intel
4524 # versions had trouble with output in subdirs.
4525 am__obj=sub/conftest.${OBJEXT-o}
4526 am__minus_obj="-o $am__obj"
4527 case $depmode in
4528 gcc)
4529 # This depmode causes a compiler race in universal mode.
4530 test "$am__universal" = false || continue
4531 ;;
4532 nosideeffect)
4533 # After this tag, mechanisms are not by side-effect, so they'll
4534 # only be used when explicitly requested.
4535 if test "x$enable_dependency_tracking" = xyes; then
4536 continue
4537 else
4538 break
309b0535 4539 fi
a243b558
JF
4540 ;;
4541 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4542 # This compiler won't grok '-c -o', but also, the minuso test has
4543 # not run yet. These depmodes are late enough in the game, and
4544 # so weak that their functioning should not be impacted.
4545 am__obj=conftest.${OBJEXT-o}
4546 am__minus_obj=
4547 ;;
4548 none) break ;;
4549 esac
4550 if depmode=$depmode \
4551 source=sub/conftest.c object=$am__obj \
4552 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4553 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4554 >/dev/null 2>conftest.err &&
4555 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4556 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4557 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4558 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4559 # icc doesn't choke on unknown options, it will just issue warnings
4560 # or remarks (even with -Werror). So we grep stderr for any message
4561 # that says an option was ignored or not supported.
4562 # When given -MP, icc 7.0 and 7.1 complain thusly:
4563 # icc: Command line warning: ignoring option '-M'; no argument required
4564 # The diagnosis changed in icc 8.0:
4565 # icc: Command line remark: option '-MP' not supported
4566 if (grep 'ignoring option' conftest.err ||
4567 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
a93f15c0 4568 am_cv_CXX_dependencies_compiler_type=$depmode
a243b558
JF
4569 break
4570 fi
4571 fi
309b0535 4572 done
a243b558
JF
4573
4574 cd ..
4575 rm -rf conftest.dir
4576else
a93f15c0 4577 am_cv_CXX_dependencies_compiler_type=none
9c60689e 4578fi
a243b558 4579
9c60689e 4580fi
a93f15c0
JF
4581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4582$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4583CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
a243b558
JF
4584
4585 if
4586 test "x$enable_dependency_tracking" != xno \
a93f15c0
JF
4587 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4588 am__fastdepCXX_TRUE=
4589 am__fastdepCXX_FALSE='#'
9c60689e 4590else
a93f15c0
JF
4591 am__fastdepCXX_TRUE='#'
4592 am__fastdepCXX_FALSE=
a243b558
JF
4593fi
4594
4595
a93f15c0
JF
4596ac_ext=mm
4597ac_cpp='$OBJCXXCPP $CPPFLAGS'
4598ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4599ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4600ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
a243b558 4601if test -n "$ac_tool_prefix"; then
a93f15c0 4602 for ac_prog in g++ objc++ objcxx c++ CXX
a243b558
JF
4603 do
4604 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4605set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4607$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4608if ${ac_cv_prog_OBJCXX+:} false; then :
9c60689e
DWT
4609 $as_echo_n "(cached) " >&6
4610else
a93f15c0
JF
4611 if test -n "$OBJCXX"; then
4612 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
a243b558
JF
4613else
4614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615for as_dir in $PATH
4616do
4617 IFS=$as_save_IFS
4618 test -z "$as_dir" && as_dir=.
4619 for ac_exec_ext in '' $ac_executable_extensions; do
4620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4621 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
a243b558
JF
4622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4623 break 2
9c60689e 4624 fi
a243b558
JF
4625done
4626 done
4627IFS=$as_save_IFS
9c60689e 4628
a243b558
JF
4629fi
4630fi
a93f15c0
JF
4631OBJCXX=$ac_cv_prog_OBJCXX
4632if test -n "$OBJCXX"; then
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
4634$as_echo "$OBJCXX" >&6; }
35fa52c0 4635else
a243b558
JF
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4637$as_echo "no" >&6; }
35fa52c0 4638fi
9c60689e 4639
a243b558 4640
a93f15c0 4641 test -n "$OBJCXX" && break
a243b558
JF
4642 done
4643fi
a93f15c0
JF
4644if test -z "$OBJCXX"; then
4645 ac_ct_OBJCXX=$OBJCXX
4646 for ac_prog in g++ objc++ objcxx c++ CXX
a243b558
JF
4647do
4648 # Extract the first word of "$ac_prog", so it can be a program name with args.
4649set dummy $ac_prog; ac_word=$2
4650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4651$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4652if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then :
35fa52c0
DWT
4653 $as_echo_n "(cached) " >&6
4654else
a93f15c0
JF
4655 if test -n "$ac_ct_OBJCXX"; then
4656 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
a243b558
JF
4657else
4658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659for as_dir in $PATH
4660do
4661 IFS=$as_save_IFS
4662 test -z "$as_dir" && as_dir=.
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4665 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
a243b558
JF
4666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4667 break 2
4668 fi
4669done
4670 done
4671IFS=$as_save_IFS
9c60689e 4672
a243b558
JF
4673fi
4674fi
a93f15c0
JF
4675ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
4676if test -n "$ac_ct_OBJCXX"; then
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
4678$as_echo "$ac_ct_OBJCXX" >&6; }
a243b558
JF
4679else
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4681$as_echo "no" >&6; }
4682fi
35fa52c0 4683
35fa52c0 4684
a93f15c0 4685 test -n "$ac_ct_OBJCXX" && break
a243b558 4686done
35fa52c0 4687
a93f15c0
JF
4688 if test "x$ac_ct_OBJCXX" = x; then
4689 OBJCXX="g++"
a243b558
JF
4690 else
4691 case $cross_compiling:$ac_tool_warned in
4692yes:)
4693{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4694$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4695ac_tool_warned=yes ;;
4696esac
a93f15c0 4697 OBJCXX=$ac_ct_OBJCXX
a243b558
JF
4698 fi
4699fi
ee134472 4700
a243b558 4701# Provide some information about the compiler.
a93f15c0 4702$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
a243b558
JF
4703set X $ac_compile
4704ac_compiler=$2
4705for ac_option in --version -v -V -qversion; do
4706 { { ac_try="$ac_compiler $ac_option >&5"
4707case "(($ac_try" in
4708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4709 *) ac_try_echo=$ac_try;;
4710esac
4711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4712$as_echo "$ac_try_echo"; } >&5
4713 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4714 ac_status=$?
4715 if test -s conftest.err; then
4716 sed '10a\
4717... rest of stderr output deleted ...
4718 10q' conftest.err >conftest.er1
4719 cat conftest.er1 >&5
4720 fi
4721 rm -f conftest.er1 conftest.err
4722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4723 test $ac_status = 0; }
4724done
53ba6704 4725
a93f15c0
JF
4726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
4727$as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
4728if ${ac_cv_objcxx_compiler_gnu+:} false; then :
a243b558
JF
4729 $as_echo_n "(cached) " >&6
4730else
4731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4732/* end confdefs.h. */
35fa52c0 4733
a243b558
JF
4734int
4735main ()
4736{
4737#ifndef __GNUC__
4738 choke me
4739#endif
9c60689e 4740
a243b558
JF
4741 ;
4742 return 0;
4743}
4744_ACEOF
a93f15c0 4745if ac_fn_objcxx_try_compile "$LINENO"; then :
a243b558 4746 ac_compiler_gnu=yes
35fa52c0 4747else
a243b558 4748 ac_compiler_gnu=no
35fa52c0 4749fi
a243b558 4750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 4751ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
9c60689e 4752
a243b558 4753fi
a93f15c0
JF
4754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
4755$as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
a243b558 4756if test $ac_compiler_gnu = yes; then
a93f15c0 4757 GOBJCXX=yes
35fa52c0 4758else
a93f15c0 4759 GOBJCXX=
9c60689e 4760fi
a93f15c0
JF
4761ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
4762ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
4763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
4764$as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
4765if ${ac_cv_prog_objcxx_g+:} false; then :
a243b558
JF
4766 $as_echo_n "(cached) " >&6
4767else
a93f15c0
JF
4768 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
4769 ac_objcxx_werror_flag=yes
4770 ac_cv_prog_objcxx_g=no
4771 OBJCXXFLAGS="-g"
a243b558
JF
4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773/* end confdefs.h. */
9c60689e 4774
a243b558
JF
4775int
4776main ()
4777{
9c60689e 4778
a243b558
JF
4779 ;
4780 return 0;
4781}
4782_ACEOF
a93f15c0
JF
4783if ac_fn_objcxx_try_compile "$LINENO"; then :
4784 ac_cv_prog_objcxx_g=yes
a243b558 4785else
a93f15c0 4786 OBJCXXFLAGS=""
a243b558
JF
4787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4788/* end confdefs.h. */
9c60689e 4789
a243b558
JF
4790int
4791main ()
4792{
9c60689e 4793
a243b558
JF
4794 ;
4795 return 0;
4796}
4797_ACEOF
a93f15c0 4798if ac_fn_objcxx_try_compile "$LINENO"; then :
9c60689e 4799
a243b558 4800else
a93f15c0
JF
4801 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
4802 OBJCXXFLAGS="-g"
a243b558 4803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a93f15c0
JF
4804/* end confdefs.h. */
4805
a243b558
JF
4806int
4807main ()
4808{
a93f15c0 4809
a243b558
JF
4810 ;
4811 return 0;
4812}
4813_ACEOF
a93f15c0
JF
4814if ac_fn_objcxx_try_compile "$LINENO"; then :
4815 ac_cv_prog_objcxx_g=yes
a243b558 4816fi
a93f15c0 4817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35fa52c0 4818fi
a93f15c0
JF
4819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4820fi
4821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4822 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
4823fi
4824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
4825$as_echo "$ac_cv_prog_objcxx_g" >&6; }
4826if test "$ac_test_OBJCXXFLAGS" = set; then
4827 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
4828elif test $ac_cv_prog_objcxx_g = yes; then
4829 if test "$GOBJCXX" = yes; then
4830 OBJCXXFLAGS="-g -O2"
4831 else
4832 OBJCXXFLAGS="-g"
4833 fi
4834else
4835 if test "$GOBJCXX" = yes; then
4836 OBJCXXFLAGS="-O2"
4837 else
4838 OBJCXXFLAGS=
4839 fi
35fa52c0 4840fi
a243b558
JF
4841ac_ext=c
4842ac_cpp='$CPP $CPPFLAGS'
4843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4845ac_compiler_gnu=$ac_cv_c_compiler_gnu
4846
a93f15c0 4847depcc="$OBJCXX" am_compiler_list='gcc3 gcc'
9c60689e 4848
a243b558
JF
4849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4850$as_echo_n "checking dependency style of $depcc... " >&6; }
a93f15c0 4851if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then :
35fa52c0
DWT
4852 $as_echo_n "(cached) " >&6
4853else
a243b558
JF
4854 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4855 # We make a subdir and do the tests there. Otherwise we can end up
4856 # making bogus files that we don't know about and never remove. For
4857 # instance it was reported that on HP-UX the gcc test will end up
4858 # making a dummy file named 'D' -- because '-MD' means "put the output
4859 # in D".
4860 rm -rf conftest.dir
4861 mkdir conftest.dir
4862 # Copy depcomp to subdir because otherwise we won't find it if we're
4863 # using a relative directory.
4864 cp "$am_depcomp" conftest.dir
4865 cd conftest.dir
4866 # We will build objects and dependencies in a subdirectory because
4867 # it helps to detect inapplicable dependency modes. For instance
4868 # both Tru64's cc and ICC support -MD to output dependencies as a
4869 # side effect of compilation, but ICC will put the dependencies in
4870 # the current directory while Tru64 will put them in the object
4871 # directory.
4872 mkdir sub
4873
a93f15c0 4874 am_cv_OBJCXX_dependencies_compiler_type=none
a243b558
JF
4875 if test "$am_compiler_list" = ""; then
4876 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4877 fi
4878 am__universal=false
a93f15c0 4879
a243b558
JF
4880
4881 for depmode in $am_compiler_list; do
4882 # Setup a source with many dependencies, because some compilers
4883 # like to wrap large dependency lists on column 80 (with \), and
4884 # we should not choose a depcomp mode which is confused by this.
4885 #
4886 # We need to recreate these files for each test, as the compiler may
4887 # overwrite some of them when testing with obscure command lines.
4888 # This happens at least with the AIX C compiler.
4889 : > sub/conftest.c
4890 for i in 1 2 3 4 5 6; do
4891 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4892 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4893 # Solaris 10 /bin/sh.
4894 echo '/* dummy */' > sub/conftst$i.h
4895 done
4896 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4897
4898 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4899 # mode. It turns out that the SunPro C++ compiler does not properly
4900 # handle '-M -o', and we need to detect this. Also, some Intel
4901 # versions had trouble with output in subdirs.
4902 am__obj=sub/conftest.${OBJEXT-o}
4903 am__minus_obj="-o $am__obj"
4904 case $depmode in
4905 gcc)
4906 # This depmode causes a compiler race in universal mode.
4907 test "$am__universal" = false || continue
4908 ;;
4909 nosideeffect)
4910 # After this tag, mechanisms are not by side-effect, so they'll
4911 # only be used when explicitly requested.
4912 if test "x$enable_dependency_tracking" = xyes; then
4913 continue
4914 else
4915 break
4916 fi
4917 ;;
4918 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4919 # This compiler won't grok '-c -o', but also, the minuso test has
4920 # not run yet. These depmodes are late enough in the game, and
4921 # so weak that their functioning should not be impacted.
4922 am__obj=conftest.${OBJEXT-o}
4923 am__minus_obj=
4924 ;;
4925 none) break ;;
4926 esac
4927 if depmode=$depmode \
4928 source=sub/conftest.c object=$am__obj \
4929 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4930 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4931 >/dev/null 2>conftest.err &&
4932 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4933 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4934 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4935 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4936 # icc doesn't choke on unknown options, it will just issue warnings
4937 # or remarks (even with -Werror). So we grep stderr for any message
4938 # that says an option was ignored or not supported.
4939 # When given -MP, icc 7.0 and 7.1 complain thusly:
4940 # icc: Command line warning: ignoring option '-M'; no argument required
4941 # The diagnosis changed in icc 8.0:
4942 # icc: Command line remark: option '-MP' not supported
4943 if (grep 'ignoring option' conftest.err ||
4944 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
a93f15c0 4945 am_cv_OBJCXX_dependencies_compiler_type=$depmode
a243b558
JF
4946 break
4947 fi
4948 fi
4949 done
9c60689e 4950
a243b558
JF
4951 cd ..
4952 rm -rf conftest.dir
4953else
a93f15c0 4954 am_cv_OBJCXX_dependencies_compiler_type=none
35fa52c0 4955fi
a243b558 4956
35fa52c0 4957fi
a93f15c0
JF
4958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5
4959$as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; }
4960OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type
a243b558
JF
4961
4962 if
4963 test "x$enable_dependency_tracking" != xno \
a93f15c0
JF
4964 && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then
4965 am__fastdepOBJCXX_TRUE=
4966 am__fastdepOBJCXX_FALSE='#'
a243b558 4967else
a93f15c0
JF
4968 am__fastdepOBJCXX_TRUE='#'
4969 am__fastdepOBJCXX_FALSE=
a243b558
JF
4970fi
4971
4972
4973
a93f15c0 4974
a243b558
JF
4975if test -n "$ac_tool_prefix"; then
4976 for ac_prog in ar lib "link -lib"
4977 do
4978 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4979set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4981$as_echo_n "checking for $ac_word... " >&6; }
4982if ${ac_cv_prog_AR+:} false; then :
4983 $as_echo_n "(cached) " >&6
4984else
4985 if test -n "$AR"; then
4986 ac_cv_prog_AR="$AR" # Let the user override the test.
4987else
4988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989for as_dir in $PATH
4990do
4991 IFS=$as_save_IFS
4992 test -z "$as_dir" && as_dir=.
4993 for ac_exec_ext in '' $ac_executable_extensions; do
4994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4995 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4997 break 2
4998 fi
4999done
5000 done
5001IFS=$as_save_IFS
5002
5003fi
5004fi
5005AR=$ac_cv_prog_AR
5006if test -n "$AR"; then
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5008$as_echo "$AR" >&6; }
35fa52c0
DWT
5009else
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5011$as_echo "no" >&6; }
5012fi
9c60689e 5013
a243b558
JF
5014
5015 test -n "$AR" && break
5016 done
5017fi
5018if test -z "$AR"; then
5019 ac_ct_AR=$AR
5020 for ac_prog in ar lib "link -lib"
5021do
5022 # Extract the first word of "$ac_prog", so it can be a program name with args.
5023set dummy $ac_prog; ac_word=$2
5024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5025$as_echo_n "checking for $ac_word... " >&6; }
5026if ${ac_cv_prog_ac_ct_AR+:} false; then :
5027 $as_echo_n "(cached) " >&6
5028else
5029 if test -n "$ac_ct_AR"; then
5030 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5031else
5032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033for as_dir in $PATH
5034do
5035 IFS=$as_save_IFS
5036 test -z "$as_dir" && as_dir=.
5037 for ac_exec_ext in '' $ac_executable_extensions; do
5038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5039 ac_cv_prog_ac_ct_AR="$ac_prog"
5040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5041 break 2
5042 fi
5043done
5044 done
5045IFS=$as_save_IFS
5046
5047fi
5048fi
5049ac_ct_AR=$ac_cv_prog_ac_ct_AR
5050if test -n "$ac_ct_AR"; then
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5052$as_echo "$ac_ct_AR" >&6; }
5053else
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5055$as_echo "no" >&6; }
5056fi
5057
5058
5059 test -n "$ac_ct_AR" && break
5060done
5061
5062 if test "x$ac_ct_AR" = x; then
5063 AR="false"
9c60689e
DWT
5064 else
5065 case $cross_compiling:$ac_tool_warned in
5066yes:)
5067{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5068$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5069ac_tool_warned=yes ;;
35fa52c0 5070esac
a243b558 5071 AR=$ac_ct_AR
9c60689e 5072 fi
a243b558
JF
5073fi
5074
5075: ${AR=ar}
5076
5077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5078$as_echo_n "checking the archiver ($AR) interface... " >&6; }
5079if ${am_cv_ar_interface+:} false; then :
5080 $as_echo_n "(cached) " >&6
9c60689e 5081else
a93f15c0
JF
5082 ac_ext=c
5083ac_cpp='$CPP $CPPFLAGS'
5084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5086ac_compiler_gnu=$ac_cv_c_compiler_gnu
5087
5088 am_cv_ar_interface=ar
a243b558
JF
5089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5090/* end confdefs.h. */
5091int some_variable = 0;
5092_ACEOF
5093if ac_fn_c_try_compile "$LINENO"; then :
5094 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5096 (eval $am_ar_try) 2>&5
5097 ac_status=$?
5098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5099 test $ac_status = 0; }
5100 if test "$ac_status" -eq 0; then
5101 am_cv_ar_interface=ar
5102 else
5103 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5105 (eval $am_ar_try) 2>&5
5106 ac_status=$?
5107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5108 test $ac_status = 0; }
5109 if test "$ac_status" -eq 0; then
5110 am_cv_ar_interface=lib
5111 else
5112 am_cv_ar_interface=unknown
5113 fi
5114 fi
5115 rm -f conftest.lib libconftest.a
5116
35fa52c0 5117fi
a243b558 5118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0
JF
5119 ac_ext=c
5120ac_cpp='$CPP $CPPFLAGS'
5121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5123ac_compiler_gnu=$ac_cv_c_compiler_gnu
35fa52c0 5124
a243b558
JF
5125fi
5126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5127$as_echo "$am_cv_ar_interface" >&6; }
35fa52c0 5128
a243b558
JF
5129case $am_cv_ar_interface in
5130ar)
5131 ;;
5132lib)
5133 # Microsoft lib, so override with the ar-lib wrapper script.
5134 # FIXME: It is wrong to rewrite AR.
5135 # But if we don't then we get into trouble of one sort or another.
5136 # A longer-term fix would be to have automake use am__AR in this case,
5137 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5138 # similar.
5139 AR="$am_aux_dir/ar-lib $AR"
5140 ;;
5141unknown)
5142 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5143 ;;
5144esac
35fa52c0 5145
35fa52c0 5146
35fa52c0 5147
a243b558
JF
5148case `pwd` in
5149 *\ * | *\ *)
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5151$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5152esac
35fa52c0
DWT
5153
5154
5155
9d54db95
JF
5156macro_version='2.4.6'
5157macro_revision='2.4.6'
35fa52c0
DWT
5158
5159
5160
5161
5162
5163
5164
5165
5166
35fa52c0 5167
35fa52c0 5168
ee134472 5169
35fa52c0 5170
9d54db95 5171ltmain=$ac_aux_dir/ltmain.sh
35fa52c0 5172
a243b558
JF
5173# Make sure we can run config.sub.
5174$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5175 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
35fa52c0 5176
a243b558
JF
5177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5178$as_echo_n "checking build system type... " >&6; }
5179if ${ac_cv_build+:} false; then :
5180 $as_echo_n "(cached) " >&6
5181else
5182 ac_build_alias=$build_alias
5183test "x$ac_build_alias" = x &&
5184 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5185test "x$ac_build_alias" = x &&
5186 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5187ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5188 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
35fa52c0 5189
a243b558
JF
5190fi
5191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5192$as_echo "$ac_cv_build" >&6; }
5193case $ac_cv_build in
5194*-*-*) ;;
5195*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5196esac
5197build=$ac_cv_build
5198ac_save_IFS=$IFS; IFS='-'
5199set x $ac_cv_build
5200shift
5201build_cpu=$1
5202build_vendor=$2
5203shift; shift
5204# Remember, the first character of IFS is used to create $*,
5205# except with old shells:
5206build_os=$*
5207IFS=$ac_save_IFS
5208case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
35fa52c0 5209
35fa52c0 5210
a243b558
JF
5211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5212$as_echo_n "checking host system type... " >&6; }
5213if ${ac_cv_host+:} false; then :
5214 $as_echo_n "(cached) " >&6
5215else
5216 if test "x$host_alias" = x; then
5217 ac_cv_host=$ac_cv_build
5218else
5219 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5220 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5221fi
35fa52c0 5222
a243b558
JF
5223fi
5224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5225$as_echo "$ac_cv_host" >&6; }
5226case $ac_cv_host in
5227*-*-*) ;;
5228*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5229esac
5230host=$ac_cv_host
5231ac_save_IFS=$IFS; IFS='-'
5232set x $ac_cv_host
5233shift
5234host_cpu=$1
5235host_vendor=$2
5236shift; shift
5237# Remember, the first character of IFS is used to create $*,
5238# except with old shells:
5239host_os=$*
5240IFS=$ac_save_IFS
5241case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
9c60689e 5242
9c60689e 5243
a243b558
JF
5244# Backslashify metacharacters that are still active within
5245# double-quoted strings.
5246sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9c60689e 5247
a243b558
JF
5248# Same as above, but do not quote variable references.
5249double_quote_subst='s/\(["`\\]\)/\\\1/g'
9c60689e 5250
a243b558
JF
5251# Sed substitution to delay expansion of an escaped shell variable in a
5252# double_quote_subst'ed string.
5253delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9c60689e 5254
a243b558
JF
5255# Sed substitution to delay expansion of an escaped single quote.
5256delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9c60689e 5257
a243b558
JF
5258# Sed substitution to avoid accidental globbing in evaled expressions
5259no_glob_subst='s/\*/\\\*/g'
35fa52c0 5260
a243b558
JF
5261ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5262ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5263ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
ee134472 5264
a243b558
JF
5265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5266$as_echo_n "checking how to print strings... " >&6; }
5267# Test print first, because it will be a builtin if present.
5268if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5269 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5270 ECHO='print -r --'
5271elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5272 ECHO='printf %s\n'
5273else
5274 # Use this function as a fallback that always works.
5275 func_fallback_echo ()
5276 {
5277 eval 'cat <<_LTECHO_EOF
5278$1
5279_LTECHO_EOF'
5280 }
5281 ECHO='func_fallback_echo'
ee134472
JF
5282fi
5283
a243b558
JF
5284# func_echo_all arg...
5285# Invoke $ECHO with all args, space-separated.
5286func_echo_all ()
5287{
5288 $ECHO ""
5289}
35fa52c0 5290
9d54db95 5291case $ECHO in
a243b558
JF
5292 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5293$as_echo "printf" >&6; } ;;
5294 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5295$as_echo "print -r" >&6; } ;;
5296 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5297$as_echo "cat" >&6; } ;;
5298esac
35fa52c0 5299
35fa52c0 5300
ee134472
JF
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
35fa52c0 5311
9c60689e 5312
a243b558
JF
5313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5314$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5315if ${ac_cv_path_SED+:} false; then :
9c60689e
DWT
5316 $as_echo_n "(cached) " >&6
5317else
a243b558
JF
5318 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5319 for ac_i in 1 2 3 4 5 6 7; do
5320 ac_script="$ac_script$as_nl$ac_script"
5321 done
5322 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5323 { ac_script=; unset ac_script;}
5324 if test -z "$SED"; then
5325 ac_path_SED_found=false
5326 # Loop through the user's path and test for each of PROGNAME-LIST
5327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9c60689e
DWT
5328for as_dir in $PATH
5329do
5330 IFS=$as_save_IFS
5331 test -z "$as_dir" && as_dir=.
a243b558 5332 for ac_prog in sed gsed; do
9c60689e 5333 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
5334 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5335 as_fn_executable_p "$ac_path_SED" || continue
5336# Check for GNU ac_path_SED and select it if it is found.
5337 # Check for GNU $ac_path_SED
5338case `"$ac_path_SED" --version 2>&1` in
5339*GNU*)
5340 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5341*)
5342 ac_count=0
5343 $as_echo_n 0123456789 >"conftest.in"
5344 while :
5345 do
5346 cat "conftest.in" "conftest.in" >"conftest.tmp"
5347 mv "conftest.tmp" "conftest.in"
5348 cp "conftest.in" "conftest.nl"
5349 $as_echo '' >> "conftest.nl"
5350 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5351 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5352 as_fn_arith $ac_count + 1 && ac_count=$as_val
5353 if test $ac_count -gt ${ac_path_SED_max-0}; then
5354 # Best one so far, save it but keep looking for a better one
5355 ac_cv_path_SED="$ac_path_SED"
5356 ac_path_SED_max=$ac_count
5357 fi
5358 # 10*(2^10) chars as input seems more than enough
5359 test $ac_count -gt 10 && break
35fa52c0 5360 done
a243b558
JF
5361 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5362esac
9c60689e 5363
a243b558
JF
5364 $ac_path_SED_found && break 3
5365 done
5366 done
9c60689e
DWT
5367 done
5368IFS=$as_save_IFS
a243b558
JF
5369 if test -z "$ac_cv_path_SED"; then
5370 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
9c60689e
DWT
5371 fi
5372else
a243b558 5373 ac_cv_path_SED=$SED
9c60689e
DWT
5374fi
5375
a243b558
JF
5376fi
5377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5378$as_echo "$ac_cv_path_SED" >&6; }
5379 SED="$ac_cv_path_SED"
5380 rm -f conftest.sed
9c60689e 5381
a243b558
JF
5382test -z "$SED" && SED=sed
5383Xsed="$SED -e 1s/^X//"
9c60689e 5384
ee134472 5385
ee134472 5386
9c60689e
DWT
5387
5388
5389
5390
5391
5392
5393
5394
a243b558
JF
5395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5396$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5397if ${ac_cv_path_GREP+:} false; then :
9c60689e
DWT
5398 $as_echo_n "(cached) " >&6
5399else
a243b558
JF
5400 if test -z "$GREP"; then
5401 ac_path_GREP_found=false
5402 # Loop through the user's path and test for each of PROGNAME-LIST
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9c60689e
DWT
5405do
5406 IFS=$as_save_IFS
5407 test -z "$as_dir" && as_dir=.
a243b558 5408 for ac_prog in grep ggrep; do
9c60689e 5409 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
5410 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5411 as_fn_executable_p "$ac_path_GREP" || continue
5412# Check for GNU ac_path_GREP and select it if it is found.
5413 # Check for GNU $ac_path_GREP
5414case `"$ac_path_GREP" --version 2>&1` in
5415*GNU*)
5416 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5417*)
5418 ac_count=0
5419 $as_echo_n 0123456789 >"conftest.in"
5420 while :
5421 do
5422 cat "conftest.in" "conftest.in" >"conftest.tmp"
5423 mv "conftest.tmp" "conftest.in"
5424 cp "conftest.in" "conftest.nl"
5425 $as_echo 'GREP' >> "conftest.nl"
5426 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5427 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5428 as_fn_arith $ac_count + 1 && ac_count=$as_val
5429 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5430 # Best one so far, save it but keep looking for a better one
5431 ac_cv_path_GREP="$ac_path_GREP"
5432 ac_path_GREP_max=$ac_count
5433 fi
5434 # 10*(2^10) chars as input seems more than enough
5435 test $ac_count -gt 10 && break
5436 done
5437 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5438esac
9c60689e 5439
a243b558
JF
5440 $ac_path_GREP_found && break 3
5441 done
ee134472 5442 done
a243b558
JF
5443 done
5444IFS=$as_save_IFS
5445 if test -z "$ac_cv_path_GREP"; then
5446 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5447 fi
5448else
5449 ac_cv_path_GREP=$GREP
9c60689e 5450fi
a243b558
JF
5451
5452fi
5453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5454$as_echo "$ac_cv_path_GREP" >&6; }
5455 GREP="$ac_cv_path_GREP"
5456
5457
5458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5459$as_echo_n "checking for egrep... " >&6; }
5460if ${ac_cv_path_EGREP+:} false; then :
9c60689e
DWT
5461 $as_echo_n "(cached) " >&6
5462else
a243b558
JF
5463 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5464 then ac_cv_path_EGREP="$GREP -E"
5465 else
5466 if test -z "$EGREP"; then
5467 ac_path_EGREP_found=false
5468 # Loop through the user's path and test for each of PROGNAME-LIST
5469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9c60689e
DWT
5471do
5472 IFS=$as_save_IFS
5473 test -z "$as_dir" && as_dir=.
a243b558 5474 for ac_prog in egrep; do
9c60689e 5475 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
5476 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5477 as_fn_executable_p "$ac_path_EGREP" || continue
5478# Check for GNU ac_path_EGREP and select it if it is found.
5479 # Check for GNU $ac_path_EGREP
5480case `"$ac_path_EGREP" --version 2>&1` in
5481*GNU*)
5482 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5483*)
5484 ac_count=0
5485 $as_echo_n 0123456789 >"conftest.in"
5486 while :
5487 do
5488 cat "conftest.in" "conftest.in" >"conftest.tmp"
5489 mv "conftest.tmp" "conftest.in"
5490 cp "conftest.in" "conftest.nl"
5491 $as_echo 'EGREP' >> "conftest.nl"
5492 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5493 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5494 as_fn_arith $ac_count + 1 && ac_count=$as_val
5495 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5496 # Best one so far, save it but keep looking for a better one
5497 ac_cv_path_EGREP="$ac_path_EGREP"
5498 ac_path_EGREP_max=$ac_count
5499 fi
5500 # 10*(2^10) chars as input seems more than enough
5501 test $ac_count -gt 10 && break
9c60689e 5502 done
a243b558
JF
5503 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5504esac
9c60689e 5505
a243b558
JF
5506 $ac_path_EGREP_found && break 3
5507 done
5508 done
5509 done
5510IFS=$as_save_IFS
5511 if test -z "$ac_cv_path_EGREP"; then
5512 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5513 fi
9c60689e 5514else
a243b558 5515 ac_cv_path_EGREP=$EGREP
9c60689e
DWT
5516fi
5517
a243b558
JF
5518 fi
5519fi
5520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5521$as_echo "$ac_cv_path_EGREP" >&6; }
5522 EGREP="$ac_cv_path_EGREP"
ee134472 5523
ee134472 5524
a243b558
JF
5525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5526$as_echo_n "checking for fgrep... " >&6; }
5527if ${ac_cv_path_FGREP+:} false; then :
5528 $as_echo_n "(cached) " >&6
5529else
5530 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5531 then ac_cv_path_FGREP="$GREP -F"
5532 else
5533 if test -z "$FGREP"; then
5534 ac_path_FGREP_found=false
5535 # Loop through the user's path and test for each of PROGNAME-LIST
5536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5537for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5538do
5539 IFS=$as_save_IFS
5540 test -z "$as_dir" && as_dir=.
5541 for ac_prog in fgrep; do
5542 for ac_exec_ext in '' $ac_executable_extensions; do
5543 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5544 as_fn_executable_p "$ac_path_FGREP" || continue
5545# Check for GNU ac_path_FGREP and select it if it is found.
5546 # Check for GNU $ac_path_FGREP
5547case `"$ac_path_FGREP" --version 2>&1` in
5548*GNU*)
5549 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5550*)
5551 ac_count=0
5552 $as_echo_n 0123456789 >"conftest.in"
5553 while :
5554 do
5555 cat "conftest.in" "conftest.in" >"conftest.tmp"
5556 mv "conftest.tmp" "conftest.in"
5557 cp "conftest.in" "conftest.nl"
5558 $as_echo 'FGREP' >> "conftest.nl"
5559 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5560 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5561 as_fn_arith $ac_count + 1 && ac_count=$as_val
5562 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5563 # Best one so far, save it but keep looking for a better one
5564 ac_cv_path_FGREP="$ac_path_FGREP"
5565 ac_path_FGREP_max=$ac_count
5566 fi
5567 # 10*(2^10) chars as input seems more than enough
5568 test $ac_count -gt 10 && break
5569 done
5570 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9c60689e 5571esac
a243b558
JF
5572
5573 $ac_path_FGREP_found && break 3
5574 done
5575 done
5576 done
5577IFS=$as_save_IFS
5578 if test -z "$ac_cv_path_FGREP"; then
5579 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
ee134472 5580 fi
a243b558
JF
5581else
5582 ac_cv_path_FGREP=$FGREP
ee134472
JF
5583fi
5584
a243b558
JF
5585 fi
5586fi
5587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5588$as_echo "$ac_cv_path_FGREP" >&6; }
5589 FGREP="$ac_cv_path_FGREP"
ee134472
JF
5590
5591
a243b558 5592test -z "$GREP" && GREP=grep
ee134472
JF
5593
5594
5595
5596
5597
5598
5599
ee134472 5600
ee134472 5601
ee134472 5602
ee134472 5603
ee134472 5604
ee134472
JF
5605
5606
5607
5608
5609
5610
5611
a243b558
JF
5612# Check whether --with-gnu-ld was given.
5613if test "${with_gnu_ld+set}" = set; then :
9d54db95 5614 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
a243b558
JF
5615else
5616 with_gnu_ld=no
5617fi
5618
5619ac_prog=ld
9d54db95 5620if test yes = "$GCC"; then
a243b558
JF
5621 # Check if gcc -print-prog-name=ld gives a path.
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5623$as_echo_n "checking for ld used by $CC... " >&6; }
5624 case $host in
5625 *-*-mingw*)
9d54db95 5626 # gcc leaves a trailing carriage return, which upsets mingw
a243b558
JF
5627 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5628 *)
5629 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5630 esac
5631 case $ac_prog in
5632 # Accept absolute paths.
5633 [\\/]* | ?:[\\/]*)
5634 re_direlt='/[^/][^/]*/\.\./'
5635 # Canonicalize the pathname of ld
5636 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5637 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5638 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5639 done
9d54db95 5640 test -z "$LD" && LD=$ac_prog
a243b558
JF
5641 ;;
5642 "")
5643 # If it fails, then pretend we aren't using GCC.
5644 ac_prog=ld
5645 ;;
5646 *)
5647 # If it is relative, then search for the first ld in PATH.
5648 with_gnu_ld=unknown
5649 ;;
5650 esac
9d54db95 5651elif test yes = "$with_gnu_ld"; then
a243b558
JF
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5653$as_echo_n "checking for GNU ld... " >&6; }
5654else
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5656$as_echo_n "checking for non-GNU ld... " >&6; }
5657fi
5658if ${lt_cv_path_LD+:} false; then :
5659 $as_echo_n "(cached) " >&6
5660else
5661 if test -z "$LD"; then
9d54db95 5662 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
a243b558 5663 for ac_dir in $PATH; do
9d54db95 5664 IFS=$lt_save_ifs
a243b558
JF
5665 test -z "$ac_dir" && ac_dir=.
5666 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9d54db95 5667 lt_cv_path_LD=$ac_dir/$ac_prog
a243b558
JF
5668 # Check to see if the program is GNU ld. I'd rather use --version,
5669 # but apparently some variants of GNU ld only accept -v.
5670 # Break only if it was the GNU/non-GNU ld that we prefer.
5671 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5672 *GNU* | *'with BFD'*)
9d54db95 5673 test no != "$with_gnu_ld" && break
a243b558
JF
5674 ;;
5675 *)
9d54db95 5676 test yes != "$with_gnu_ld" && break
a243b558
JF
5677 ;;
5678 esac
5679 fi
5680 done
9d54db95 5681 IFS=$lt_save_ifs
a243b558 5682else
9d54db95 5683 lt_cv_path_LD=$LD # Let the user override the test with a path.
a243b558
JF
5684fi
5685fi
5686
9d54db95 5687LD=$lt_cv_path_LD
a243b558
JF
5688if test -n "$LD"; then
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5690$as_echo "$LD" >&6; }
5691else
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5693$as_echo "no" >&6; }
5694fi
5695test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5697$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5698if ${lt_cv_prog_gnu_ld+:} false; then :
5699 $as_echo_n "(cached) " >&6
5700else
5701 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5702case `$LD -v 2>&1 </dev/null` in
5703*GNU* | *'with BFD'*)
5704 lt_cv_prog_gnu_ld=yes
5705 ;;
5706*)
5707 lt_cv_prog_gnu_ld=no
5708 ;;
5709esac
5710fi
5711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5712$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5713with_gnu_ld=$lt_cv_prog_gnu_ld
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5724$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5725if ${lt_cv_path_NM+:} false; then :
5726 $as_echo_n "(cached) " >&6
5727else
5728 if test -n "$NM"; then
5729 # Let the user override the test.
9d54db95 5730 lt_cv_path_NM=$NM
a243b558 5731else
9d54db95 5732 lt_nm_to_check=${ac_tool_prefix}nm
a243b558
JF
5733 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5734 lt_nm_to_check="$lt_nm_to_check nm"
5735 fi
5736 for lt_tmp_nm in $lt_nm_to_check; do
9d54db95 5737 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
a243b558 5738 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9d54db95 5739 IFS=$lt_save_ifs
a243b558 5740 test -z "$ac_dir" && ac_dir=.
9d54db95
JF
5741 tmp_nm=$ac_dir/$lt_tmp_nm
5742 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
a243b558 5743 # Check to see if the nm accepts a BSD-compat flag.
9d54db95 5744 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
a243b558
JF
5745 # nm: unknown option "B" ignored
5746 # Tru64's nm complains that /dev/null is an invalid object file
9d54db95
JF
5747 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5748 case $build_os in
5749 mingw*) lt_bad_file=conftest.nm/nofile ;;
5750 *) lt_bad_file=/dev/null ;;
5751 esac
5752 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5753 *$lt_bad_file* | *'Invalid file or object type'*)
a243b558 5754 lt_cv_path_NM="$tmp_nm -B"
9d54db95 5755 break 2
a243b558
JF
5756 ;;
5757 *)
5758 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5759 */dev/null*)
5760 lt_cv_path_NM="$tmp_nm -p"
9d54db95 5761 break 2
a243b558
JF
5762 ;;
5763 *)
5764 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5765 continue # so that we can try to find one that supports BSD flags
5766 ;;
5767 esac
5768 ;;
5769 esac
5770 fi
5771 done
9d54db95 5772 IFS=$lt_save_ifs
a243b558
JF
5773 done
5774 : ${lt_cv_path_NM=no}
5775fi
5776fi
5777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5778$as_echo "$lt_cv_path_NM" >&6; }
9d54db95
JF
5779if test no != "$lt_cv_path_NM"; then
5780 NM=$lt_cv_path_NM
a243b558
JF
5781else
5782 # Didn't find any BSD compatible name lister, look for dumpbin.
5783 if test -n "$DUMPBIN"; then :
5784 # Let the user override the test.
5785 else
5786 if test -n "$ac_tool_prefix"; then
5787 for ac_prog in dumpbin "link -dump"
5788 do
5789 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5790set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ee134472
JF
5791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5792$as_echo_n "checking for $ac_word... " >&6; }
a243b558 5793if ${ac_cv_prog_DUMPBIN+:} false; then :
ee134472
JF
5794 $as_echo_n "(cached) " >&6
5795else
a243b558
JF
5796 if test -n "$DUMPBIN"; then
5797 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ee134472
JF
5798else
5799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800for as_dir in $PATH
5801do
5802 IFS=$as_save_IFS
5803 test -z "$as_dir" && as_dir=.
5804 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 5805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 5806 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
ee134472
JF
5807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5808 break 2
5809 fi
5810done
5811 done
5812IFS=$as_save_IFS
5813
5814fi
5815fi
a243b558
JF
5816DUMPBIN=$ac_cv_prog_DUMPBIN
5817if test -n "$DUMPBIN"; then
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5819$as_echo "$DUMPBIN" >&6; }
ee134472
JF
5820else
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5822$as_echo "no" >&6; }
5823fi
5824
5825
a243b558
JF
5826 test -n "$DUMPBIN" && break
5827 done
ee134472 5828fi
a243b558
JF
5829if test -z "$DUMPBIN"; then
5830 ac_ct_DUMPBIN=$DUMPBIN
5831 for ac_prog in dumpbin "link -dump"
5832do
5833 # Extract the first word of "$ac_prog", so it can be a program name with args.
5834set dummy $ac_prog; ac_word=$2
ee134472
JF
5835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5836$as_echo_n "checking for $ac_word... " >&6; }
a243b558 5837if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
ee134472
JF
5838 $as_echo_n "(cached) " >&6
5839else
a243b558
JF
5840 if test -n "$ac_ct_DUMPBIN"; then
5841 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ee134472
JF
5842else
5843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844for as_dir in $PATH
5845do
5846 IFS=$as_save_IFS
5847 test -z "$as_dir" && as_dir=.
5848 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 5849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 5850 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
ee134472
JF
5851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5852 break 2
5853 fi
5854done
5855 done
5856IFS=$as_save_IFS
5857
5858fi
5859fi
a243b558
JF
5860ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5861if test -n "$ac_ct_DUMPBIN"; then
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5863$as_echo "$ac_ct_DUMPBIN" >&6; }
ee134472
JF
5864else
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5866$as_echo "no" >&6; }
5867fi
5868
a243b558
JF
5869
5870 test -n "$ac_ct_DUMPBIN" && break
5871done
5872
5873 if test "x$ac_ct_DUMPBIN" = x; then
5874 DUMPBIN=":"
ee134472
JF
5875 else
5876 case $cross_compiling:$ac_tool_warned in
5877yes:)
5878{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5879$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5880ac_tool_warned=yes ;;
5881esac
a243b558 5882 DUMPBIN=$ac_ct_DUMPBIN
9c60689e 5883 fi
9c60689e
DWT
5884fi
5885
9d54db95 5886 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
a243b558 5887 *COFF*)
9d54db95 5888 DUMPBIN="$DUMPBIN -symbols -headers"
a243b558
JF
5889 ;;
5890 *)
5891 DUMPBIN=:
5892 ;;
5893 esac
5894 fi
9c60689e 5895
9d54db95
JF
5896 if test : != "$DUMPBIN"; then
5897 NM=$DUMPBIN
a243b558
JF
5898 fi
5899fi
5900test -z "$NM" && NM=nm
9c60689e
DWT
5901
5902
5903
5904
5905
a243b558
JF
5906
5907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5908$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5909if ${lt_cv_nm_interface+:} false; then :
9c60689e
DWT
5910 $as_echo_n "(cached) " >&6
5911else
a243b558
JF
5912 lt_cv_nm_interface="BSD nm"
5913 echo "int some_variable = 0;" > conftest.$ac_ext
5914 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5915 (eval "$ac_compile" 2>conftest.err)
5916 cat conftest.err >&5
5917 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5918 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5919 cat conftest.err >&5
5920 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5921 cat conftest.out >&5
5922 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5923 lt_cv_nm_interface="MS dumpbin"
9c60689e 5924 fi
00a96142 5925 rm -rf conftest*
9c60689e 5926fi
a243b558
JF
5927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5928$as_echo "$lt_cv_nm_interface" >&6; }
5929
5930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5931$as_echo_n "checking whether ln -s works... " >&6; }
5932LN_S=$as_ln_s
5933if test "$LN_S" = "ln -s"; then
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5935$as_echo "yes" >&6; }
9c60689e 5936else
a243b558
JF
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5938$as_echo "no, using $LN_S" >&6; }
9c60689e
DWT
5939fi
5940
a243b558
JF
5941# find the maximum length of command line arguments
5942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5943$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5944if ${lt_cv_sys_max_cmd_len+:} false; then :
9c60689e
DWT
5945 $as_echo_n "(cached) " >&6
5946else
a243b558 5947 i=0
9d54db95 5948 teststring=ABCD
9c60689e 5949
a243b558
JF
5950 case $build_os in
5951 msdosdjgpp*)
5952 # On DJGPP, this test can blow up pretty badly due to problems in libc
5953 # (any single argument exceeding 2000 bytes causes a buffer overrun
5954 # during glob expansion). Even if it were fixed, the result of this
5955 # check would be larger than it should be.
5956 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5957 ;;
9c60689e 5958
a243b558
JF
5959 gnu*)
5960 # Under GNU Hurd, this test is not required because there is
5961 # no limit to the length of command line arguments.
5962 # Libtool will interpret -1 as no limit whatsoever
5963 lt_cv_sys_max_cmd_len=-1;
5964 ;;
9c60689e 5965
a243b558
JF
5966 cygwin* | mingw* | cegcc*)
5967 # On Win9x/ME, this test blows up -- it succeeds, but takes
5968 # about 5 minutes as the teststring grows exponentially.
5969 # Worse, since 9x/ME are not pre-emptively multitasking,
5970 # you end up with a "frozen" computer, even though with patience
5971 # the test eventually succeeds (with a max line length of 256k).
5972 # Instead, let's just punt: use the minimum linelength reported by
5973 # all of the supported platforms: 8192 (on NT/2K/XP).
5974 lt_cv_sys_max_cmd_len=8192;
5975 ;;
9c60689e 5976
a243b558
JF
5977 mint*)
5978 # On MiNT this can take a long time and run out of memory.
5979 lt_cv_sys_max_cmd_len=8192;
5980 ;;
9c60689e 5981
a243b558
JF
5982 amigaos*)
5983 # On AmigaOS with pdksh, this test takes hours, literally.
5984 # So we just punt and use a minimum line length of 8192.
5985 lt_cv_sys_max_cmd_len=8192;
5986 ;;
9c60689e 5987
9d54db95 5988 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
a243b558
JF
5989 # This has been around since 386BSD, at least. Likely further.
5990 if test -x /sbin/sysctl; then
5991 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5992 elif test -x /usr/sbin/sysctl; then
5993 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5994 else
5995 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5996 fi
5997 # And add a safety zone
5998 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5999 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6000 ;;
9c60689e 6001
a243b558
JF
6002 interix*)
6003 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6004 lt_cv_sys_max_cmd_len=196608
6005 ;;
9c60689e 6006
a243b558
JF
6007 os2*)
6008 # The test takes a long time on OS/2.
6009 lt_cv_sys_max_cmd_len=8192
6010 ;;
9c60689e 6011
a243b558
JF
6012 osf*)
6013 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6014 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6015 # nice to cause kernel panics so lets avoid the loop below.
6016 # First set a reasonable default.
6017 lt_cv_sys_max_cmd_len=16384
6018 #
6019 if test -x /sbin/sysconfig; then
6020 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6021 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6022 esac
6023 fi
6024 ;;
6025 sco3.2v5*)
6026 lt_cv_sys_max_cmd_len=102400
6027 ;;
6028 sysv5* | sco5v6* | sysv4.2uw2*)
6029 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6030 if test -n "$kargmax"; then
6031 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6032 else
6033 lt_cv_sys_max_cmd_len=32768
6034 fi
9c60689e
DWT
6035 ;;
6036 *)
a243b558 6037 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9d54db95
JF
6038 if test -n "$lt_cv_sys_max_cmd_len" && \
6039 test undefined != "$lt_cv_sys_max_cmd_len"; then
a243b558
JF
6040 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6041 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6042 else
6043 # Make teststring a little bigger before we do anything with it.
6044 # a 1K string should be a reasonable start.
9d54db95 6045 for i in 1 2 3 4 5 6 7 8; do
a243b558
JF
6046 teststring=$teststring$teststring
6047 done
6048 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6049 # If test is not a shell built-in, we'll probably end up computing a
6050 # maximum length that is only half of the actual maximum length, but
6051 # we can't tell.
9d54db95 6052 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
a243b558 6053 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9d54db95 6054 test 17 != "$i" # 1/2 MB should be enough
a243b558
JF
6055 do
6056 i=`expr $i + 1`
6057 teststring=$teststring$teststring
6058 done
6059 # Only check the string length outside the loop.
6060 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6061 teststring=
6062 # Add a significant safety factor because C++ compilers can tack on
6063 # massive amounts of additional arguments before passing them to the
6064 # linker. It appears as though 1/2 is a usable value.
6065 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6066 fi
9c60689e
DWT
6067 ;;
6068 esac
ee134472 6069
a243b558 6070fi
ee134472 6071
9d54db95 6072if test -n "$lt_cv_sys_max_cmd_len"; then
a243b558
JF
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6074$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6075else
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6077$as_echo "none" >&6; }
6078fi
6079max_cmd_len=$lt_cv_sys_max_cmd_len
ee134472
JF
6080
6081
9c60689e
DWT
6082
6083
6084
6085
a243b558
JF
6086: ${CP="cp -f"}
6087: ${MV="mv -f"}
6088: ${RM="rm -f"}
9c60689e 6089
a243b558
JF
6090if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6091 lt_unset=unset
6092else
6093 lt_unset=false
6094fi
9c60689e
DWT
6095
6096
6097
6098
6099
a243b558
JF
6100# test EBCDIC or ASCII
6101case `echo X|tr X '\101'` in
6102 A) # ASCII based system
6103 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6104 lt_SP2NL='tr \040 \012'
6105 lt_NL2SP='tr \015\012 \040\040'
6106 ;;
6107 *) # EBCDIC based system
6108 lt_SP2NL='tr \100 \n'
6109 lt_NL2SP='tr \r\n \100\100'
6110 ;;
6111esac
9c60689e
DWT
6112
6113
6114
6115
6116
6117
6118
6119
6120
a243b558
JF
6121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6122$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6123if ${lt_cv_to_host_file_cmd+:} false; then :
6124 $as_echo_n "(cached) " >&6
6125else
6126 case $host in
6127 *-*-mingw* )
6128 case $build in
6129 *-*-mingw* ) # actually msys
6130 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6131 ;;
6132 *-*-cygwin* )
6133 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6134 ;;
6135 * ) # otherwise, assume *nix
6136 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6137 ;;
6138 esac
6139 ;;
6140 *-*-cygwin* )
6141 case $build in
6142 *-*-mingw* ) # actually msys
6143 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6144 ;;
6145 *-*-cygwin* )
6146 lt_cv_to_host_file_cmd=func_convert_file_noop
6147 ;;
6148 * ) # otherwise, assume *nix
6149 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6150 ;;
6151 esac
6152 ;;
6153 * ) # unhandled hosts (and "normal" native builds)
6154 lt_cv_to_host_file_cmd=func_convert_file_noop
6155 ;;
6156esac
9c60689e 6157
a243b558 6158fi
9c60689e 6159
a243b558
JF
6160to_host_file_cmd=$lt_cv_to_host_file_cmd
6161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6162$as_echo "$lt_cv_to_host_file_cmd" >&6; }
9c60689e
DWT
6163
6164
6165
6166
6167
a243b558
JF
6168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6169$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6170if ${lt_cv_to_tool_file_cmd+:} false; then :
6171 $as_echo_n "(cached) " >&6
6172else
6173 #assume ordinary cross tools, or native build.
6174lt_cv_to_tool_file_cmd=func_convert_file_noop
6175case $host in
6176 *-*-mingw* )
6177 case $build in
6178 *-*-mingw* ) # actually msys
6179 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6180 ;;
6181 esac
6182 ;;
6183esac
9c60689e 6184
a243b558 6185fi
9c60689e 6186
a243b558
JF
6187to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6189$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9c60689e 6190
9c60689e 6191
9c60689e 6192
9c60689e
DWT
6193
6194
a243b558
JF
6195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6196$as_echo_n "checking for $LD option to reload object files... " >&6; }
6197if ${lt_cv_ld_reload_flag+:} false; then :
9c60689e
DWT
6198 $as_echo_n "(cached) " >&6
6199else
a243b558
JF
6200 lt_cv_ld_reload_flag='-r'
6201fi
6202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6203$as_echo "$lt_cv_ld_reload_flag" >&6; }
6204reload_flag=$lt_cv_ld_reload_flag
6205case $reload_flag in
6206"" | " "*) ;;
6207*) reload_flag=" $reload_flag" ;;
6208esac
6209reload_cmds='$LD$reload_flag -o $output$reload_objs'
9c60689e 6210case $host_os in
a243b558 6211 cygwin* | mingw* | pw32* | cegcc*)
9d54db95 6212 if test yes != "$GCC"; then
a243b558
JF
6213 reload_cmds=false
6214 fi
6215 ;;
6216 darwin*)
9d54db95
JF
6217 if test yes = "$GCC"; then
6218 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
a243b558
JF
6219 else
6220 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6221 fi
6222 ;;
9c60689e
DWT
6223esac
6224
9c60689e 6225
9c60689e 6226
9c60689e 6227
9c60689e 6228
9c60689e 6229
9c60689e 6230
9c60689e 6231
9c60689e 6232
a243b558
JF
6233if test -n "$ac_tool_prefix"; then
6234 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6235set dummy ${ac_tool_prefix}objdump; ac_word=$2
6236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6237$as_echo_n "checking for $ac_word... " >&6; }
6238if ${ac_cv_prog_OBJDUMP+:} false; then :
6239 $as_echo_n "(cached) " >&6
6240else
6241 if test -n "$OBJDUMP"; then
6242 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6243else
6244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245for as_dir in $PATH
6246do
6247 IFS=$as_save_IFS
6248 test -z "$as_dir" && as_dir=.
6249 for ac_exec_ext in '' $ac_executable_extensions; do
6250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6251 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6253 break 2
6254 fi
6255done
6256 done
6257IFS=$as_save_IFS
9c60689e 6258
a243b558
JF
6259fi
6260fi
6261OBJDUMP=$ac_cv_prog_OBJDUMP
6262if test -n "$OBJDUMP"; then
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6264$as_echo "$OBJDUMP" >&6; }
6265else
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6267$as_echo "no" >&6; }
6268fi
9c60689e 6269
9c60689e 6270
a243b558
JF
6271fi
6272if test -z "$ac_cv_prog_OBJDUMP"; then
6273 ac_ct_OBJDUMP=$OBJDUMP
6274 # Extract the first word of "objdump", so it can be a program name with args.
6275set dummy objdump; ac_word=$2
6276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6277$as_echo_n "checking for $ac_word... " >&6; }
6278if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6279 $as_echo_n "(cached) " >&6
6280else
6281 if test -n "$ac_ct_OBJDUMP"; then
6282 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6283else
6284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285for as_dir in $PATH
6286do
6287 IFS=$as_save_IFS
6288 test -z "$as_dir" && as_dir=.
6289 for ac_exec_ext in '' $ac_executable_extensions; do
6290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6291 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6293 break 2
9c60689e
DWT
6294 fi
6295done
a243b558
JF
6296 done
6297IFS=$as_save_IFS
9c60689e
DWT
6298
6299fi
9c60689e 6300fi
a243b558
JF
6301ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6302if test -n "$ac_ct_OBJDUMP"; then
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6304$as_echo "$ac_ct_OBJDUMP" >&6; }
9c60689e 6305else
a243b558
JF
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6307$as_echo "no" >&6; }
9c60689e
DWT
6308fi
6309
a243b558
JF
6310 if test "x$ac_ct_OBJDUMP" = x; then
6311 OBJDUMP="false"
6312 else
6313 case $cross_compiling:$ac_tool_warned in
6314yes:)
6315{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6316$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6317ac_tool_warned=yes ;;
6318esac
6319 OBJDUMP=$ac_ct_OBJDUMP
6320 fi
6321else
6322 OBJDUMP="$ac_cv_prog_OBJDUMP"
ee134472
JF
6323fi
6324
a243b558 6325test -z "$OBJDUMP" && OBJDUMP=objdump
ee134472
JF
6326
6327
6328
6329
6330
6331
6332
6333
6334
a243b558
JF
6335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6336$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6337if ${lt_cv_deplibs_check_method+:} false; then :
6338 $as_echo_n "(cached) " >&6
6339else
6340 lt_cv_file_magic_cmd='$MAGIC_CMD'
6341lt_cv_file_magic_test_file=
6342lt_cv_deplibs_check_method='unknown'
6343# Need to set the preceding variable on all platforms that support
6344# interlibrary dependencies.
6345# 'none' -- dependencies not supported.
9d54db95 6346# 'unknown' -- same as none, but documents that we really don't know.
a243b558
JF
6347# 'pass_all' -- all dependencies passed with no checks.
6348# 'test_compile' -- check by making test program.
6349# 'file_magic [[regex]]' -- check by looking for files in library path
9d54db95
JF
6350# that responds to the $file_magic_cmd with a given extended regex.
6351# If you have 'file' or equivalent on your system and you're not sure
6352# whether 'pass_all' will *always* work, you probably want this one.
9c60689e 6353
a243b558
JF
6354case $host_os in
6355aix[4-9]*)
6356 lt_cv_deplibs_check_method=pass_all
6357 ;;
9c60689e 6358
a243b558
JF
6359beos*)
6360 lt_cv_deplibs_check_method=pass_all
6361 ;;
9c60689e 6362
a243b558
JF
6363bsdi[45]*)
6364 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6365 lt_cv_file_magic_cmd='/usr/bin/file -L'
6366 lt_cv_file_magic_test_file=/shlib/libc.so
6367 ;;
9c60689e 6368
a243b558
JF
6369cygwin*)
6370 # func_win32_libid is a shell function defined in ltmain.sh
6371 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6372 lt_cv_file_magic_cmd='func_win32_libid'
6373 ;;
9c60689e 6374
a243b558
JF
6375mingw* | pw32*)
6376 # Base MSYS/MinGW do not provide the 'file' command needed by
6377 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6378 # unless we find 'file', for example because we are cross-compiling.
9d54db95 6379 if ( file / ) >/dev/null 2>&1; then
a243b558
JF
6380 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6381 lt_cv_file_magic_cmd='func_win32_libid'
6382 else
6383 # Keep this pattern in sync with the one in func_win32_libid.
6384 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6385 lt_cv_file_magic_cmd='$OBJDUMP -f'
6386 fi
6387 ;;
9c60689e 6388
a243b558
JF
6389cegcc*)
6390 # use the weaker test based on 'objdump'. See mingw*.
6391 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6392 lt_cv_file_magic_cmd='$OBJDUMP -f'
6393 ;;
9c60689e 6394
a243b558
JF
6395darwin* | rhapsody*)
6396 lt_cv_deplibs_check_method=pass_all
6397 ;;
9c60689e 6398
a243b558
JF
6399freebsd* | dragonfly*)
6400 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6401 case $host_cpu in
6402 i*86 )
6403 # Not sure whether the presence of OpenBSD here was a mistake.
6404 # Let's accept both of them until this is cleared up.
6405 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6406 lt_cv_file_magic_cmd=/usr/bin/file
6407 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6408 ;;
6409 esac
6410 else
6411 lt_cv_deplibs_check_method=pass_all
6412 fi
6413 ;;
9c60689e 6414
a243b558
JF
6415haiku*)
6416 lt_cv_deplibs_check_method=pass_all
6417 ;;
9c60689e 6418
a243b558
JF
6419hpux10.20* | hpux11*)
6420 lt_cv_file_magic_cmd=/usr/bin/file
6421 case $host_cpu in
6422 ia64*)
6423 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6424 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6425 ;;
6426 hppa*64*)
6427 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]'
6428 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6429 ;;
6430 *)
6431 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6432 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6433 ;;
6434 esac
6435 ;;
9c60689e 6436
a243b558
JF
6437interix[3-9]*)
6438 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6439 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6440 ;;
9c60689e 6441
a243b558
JF
6442irix5* | irix6* | nonstopux*)
6443 case $LD in
6444 *-32|*"-32 ") libmagic=32-bit;;
6445 *-n32|*"-n32 ") libmagic=N32;;
6446 *-64|*"-64 ") libmagic=64-bit;;
6447 *) libmagic=never-match;;
6448 esac
6449 lt_cv_deplibs_check_method=pass_all
6450 ;;
9c60689e 6451
a243b558 6452# This must be glibc/ELF.
9d54db95 6453linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
a243b558
JF
6454 lt_cv_deplibs_check_method=pass_all
6455 ;;
9c60689e 6456
a243b558
JF
6457netbsd*)
6458 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6459 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6460 else
6461 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6462 fi
6463 ;;
9c60689e 6464
a243b558
JF
6465newos6*)
6466 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6467 lt_cv_file_magic_cmd=/usr/bin/file
6468 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6469 ;;
9c60689e 6470
a243b558
JF
6471*nto* | *qnx*)
6472 lt_cv_deplibs_check_method=pass_all
6473 ;;
9c60689e 6474
9d54db95
JF
6475openbsd* | bitrig*)
6476 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
a243b558
JF
6477 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6478 else
6479 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6480 fi
6481 ;;
9c60689e 6482
a243b558
JF
6483osf3* | osf4* | osf5*)
6484 lt_cv_deplibs_check_method=pass_all
6485 ;;
9c60689e 6486
a243b558
JF
6487rdos*)
6488 lt_cv_deplibs_check_method=pass_all
9c60689e 6489 ;;
a243b558
JF
6490
6491solaris*)
6492 lt_cv_deplibs_check_method=pass_all
9c60689e
DWT
6493 ;;
6494
a243b558
JF
6495sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6496 lt_cv_deplibs_check_method=pass_all
9c60689e
DWT
6497 ;;
6498
a243b558
JF
6499sysv4 | sysv4.3*)
6500 case $host_vendor in
6501 motorola)
6502 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]'
6503 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6504 ;;
6505 ncr)
6506 lt_cv_deplibs_check_method=pass_all
6507 ;;
6508 sequent)
6509 lt_cv_file_magic_cmd='/bin/file'
6510 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6511 ;;
6512 sni)
6513 lt_cv_file_magic_cmd='/bin/file'
6514 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6515 lt_cv_file_magic_test_file=/lib/libc.so
6516 ;;
6517 siemens)
6518 lt_cv_deplibs_check_method=pass_all
6519 ;;
6520 pc)
6521 lt_cv_deplibs_check_method=pass_all
6522 ;;
6523 esac
6524 ;;
9c60689e 6525
a243b558
JF
6526tpf*)
6527 lt_cv_deplibs_check_method=pass_all
6528 ;;
9d54db95
JF
6529os2*)
6530 lt_cv_deplibs_check_method=pass_all
6531 ;;
a243b558 6532esac
9c60689e 6533
a243b558
JF
6534fi
6535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6536$as_echo "$lt_cv_deplibs_check_method" >&6; }
9c60689e 6537
a243b558
JF
6538file_magic_glob=
6539want_nocaseglob=no
6540if test "$build" = "$host"; then
6541 case $host_os in
6542 mingw* | pw32*)
6543 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6544 want_nocaseglob=yes
6545 else
6546 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6547 fi
6548 ;;
6549 esac
9c60689e 6550fi
9c60689e 6551
a243b558
JF
6552file_magic_cmd=$lt_cv_file_magic_cmd
6553deplibs_check_method=$lt_cv_deplibs_check_method
6554test -z "$deplibs_check_method" && deplibs_check_method=unknown
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
9c60689e 6575
9c60689e 6576
ee134472 6577if test -n "$ac_tool_prefix"; then
a243b558
JF
6578 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6579set dummy ${ac_tool_prefix}dlltool; ac_word=$2
ee134472
JF
6580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6581$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6582if ${ac_cv_prog_DLLTOOL+:} false; then :
ee134472
JF
6583 $as_echo_n "(cached) " >&6
6584else
a243b558
JF
6585 if test -n "$DLLTOOL"; then
6586 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ee134472
JF
6587else
6588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6589for as_dir in $PATH
6590do
6591 IFS=$as_save_IFS
6592 test -z "$as_dir" && as_dir=.
6593 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6595 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
ee134472
JF
6596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6597 break 2
6598 fi
6599done
6600 done
6601IFS=$as_save_IFS
6602
6603fi
6604fi
a243b558
JF
6605DLLTOOL=$ac_cv_prog_DLLTOOL
6606if test -n "$DLLTOOL"; then
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6608$as_echo "$DLLTOOL" >&6; }
ee134472
JF
6609else
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6611$as_echo "no" >&6; }
6612fi
6613
6614
6615fi
a243b558
JF
6616if test -z "$ac_cv_prog_DLLTOOL"; then
6617 ac_ct_DLLTOOL=$DLLTOOL
6618 # Extract the first word of "dlltool", so it can be a program name with args.
6619set dummy dlltool; ac_word=$2
ee134472
JF
6620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6621$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6622if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
ee134472
JF
6623 $as_echo_n "(cached) " >&6
6624else
a243b558
JF
6625 if test -n "$ac_ct_DLLTOOL"; then
6626 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
ee134472
JF
6627else
6628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6629for as_dir in $PATH
6630do
6631 IFS=$as_save_IFS
6632 test -z "$as_dir" && as_dir=.
6633 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6635 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
ee134472
JF
6636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6637 break 2
6638 fi
6639done
6640 done
6641IFS=$as_save_IFS
6642
6643fi
6644fi
a243b558
JF
6645ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6646if test -n "$ac_ct_DLLTOOL"; then
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6648$as_echo "$ac_ct_DLLTOOL" >&6; }
ee134472
JF
6649else
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6651$as_echo "no" >&6; }
6652fi
6653
a243b558
JF
6654 if test "x$ac_ct_DLLTOOL" = x; then
6655 DLLTOOL="false"
ee134472
JF
6656 else
6657 case $cross_compiling:$ac_tool_warned in
6658yes:)
6659{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6660$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6661ac_tool_warned=yes ;;
6662esac
a243b558 6663 DLLTOOL=$ac_ct_DLLTOOL
ee134472
JF
6664 fi
6665else
a243b558 6666 DLLTOOL="$ac_cv_prog_DLLTOOL"
ee134472
JF
6667fi
6668
a243b558
JF
6669test -z "$DLLTOOL" && DLLTOOL=dlltool
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6681$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6682if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
ee134472
JF
6683 $as_echo_n "(cached) " >&6
6684else
a243b558
JF
6685 lt_cv_sharedlib_from_linklib_cmd='unknown'
6686
6687case $host_os in
6688cygwin* | mingw* | pw32* | cegcc*)
9d54db95
JF
6689 # two different shell functions defined in ltmain.sh;
6690 # decide which one to use based on capabilities of $DLLTOOL
a243b558
JF
6691 case `$DLLTOOL --help 2>&1` in
6692 *--identify-strict*)
6693 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6694 ;;
6695 *)
6696 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6697 ;;
6698 esac
6699 ;;
6700*)
6701 # fallback: assume linklib IS sharedlib
9d54db95 6702 lt_cv_sharedlib_from_linklib_cmd=$ECHO
a243b558
JF
6703 ;;
6704esac
6705
ee134472 6706fi
a243b558
JF
6707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6708$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6709sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6710test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
ee134472
JF
6711
6712
6713
6714
6715
9c60689e 6716
a243b558
JF
6717
6718if test -n "$ac_tool_prefix"; then
6719 for ac_prog in ar
6720 do
6721 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6722set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9c60689e
DWT
6723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6724$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6725if ${ac_cv_prog_AR+:} false; then :
9c60689e
DWT
6726 $as_echo_n "(cached) " >&6
6727else
a243b558
JF
6728 if test -n "$AR"; then
6729 ac_cv_prog_AR="$AR" # Let the user override the test.
9c60689e
DWT
6730else
6731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732for as_dir in $PATH
6733do
6734 IFS=$as_save_IFS
6735 test -z "$as_dir" && as_dir=.
6736 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6738 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9c60689e
DWT
6739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6740 break 2
6741 fi
6742done
6743 done
6744IFS=$as_save_IFS
6745
6746fi
6747fi
a243b558
JF
6748AR=$ac_cv_prog_AR
6749if test -n "$AR"; then
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6751$as_echo "$AR" >&6; }
9c60689e
DWT
6752else
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6754$as_echo "no" >&6; }
6755fi
6756
6757
a243b558
JF
6758 test -n "$AR" && break
6759 done
9c60689e 6760fi
a243b558
JF
6761if test -z "$AR"; then
6762 ac_ct_AR=$AR
6763 for ac_prog in ar
6764do
6765 # Extract the first word of "$ac_prog", so it can be a program name with args.
6766set dummy $ac_prog; ac_word=$2
9c60689e
DWT
6767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6768$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6769if ${ac_cv_prog_ac_ct_AR+:} false; then :
9c60689e
DWT
6770 $as_echo_n "(cached) " >&6
6771else
a243b558
JF
6772 if test -n "$ac_ct_AR"; then
6773 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9c60689e
DWT
6774else
6775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776for as_dir in $PATH
6777do
6778 IFS=$as_save_IFS
6779 test -z "$as_dir" && as_dir=.
6780 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6782 ac_cv_prog_ac_ct_AR="$ac_prog"
9c60689e
DWT
6783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6784 break 2
6785 fi
6786done
6787 done
6788IFS=$as_save_IFS
6789
6790fi
6791fi
a243b558
JF
6792ac_ct_AR=$ac_cv_prog_ac_ct_AR
6793if test -n "$ac_ct_AR"; then
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6795$as_echo "$ac_ct_AR" >&6; }
9c60689e
DWT
6796else
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6798$as_echo "no" >&6; }
6799fi
6800
a243b558
JF
6801
6802 test -n "$ac_ct_AR" && break
6803done
6804
6805 if test "x$ac_ct_AR" = x; then
6806 AR="false"
9c60689e
DWT
6807 else
6808 case $cross_compiling:$ac_tool_warned in
6809yes:)
6810{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6811$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6812ac_tool_warned=yes ;;
6813esac
a243b558 6814 AR=$ac_ct_AR
9c60689e 6815 fi
a243b558
JF
6816fi
6817
6818: ${AR=ar}
6819: ${AR_FLAGS=cru}
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6832$as_echo_n "checking for archiver @FILE support... " >&6; }
6833if ${lt_cv_ar_at_file+:} false; then :
6834 $as_echo_n "(cached) " >&6
9c60689e 6835else
a243b558
JF
6836 lt_cv_ar_at_file=no
6837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6838/* end confdefs.h. */
6839
6840int
6841main ()
6842{
6843
6844 ;
6845 return 0;
6846}
6847_ACEOF
6848if ac_fn_c_try_compile "$LINENO"; then :
6849 echo conftest.$ac_objext > conftest.lst
6850 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6851 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6852 (eval $lt_ar_try) 2>&5
6853 ac_status=$?
6854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6855 test $ac_status = 0; }
9d54db95 6856 if test 0 -eq "$ac_status"; then
a243b558
JF
6857 # Ensure the archiver fails upon bogus file names.
6858 rm -f conftest.$ac_objext libconftest.a
6859 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6860 (eval $lt_ar_try) 2>&5
6861 ac_status=$?
6862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6863 test $ac_status = 0; }
9d54db95 6864 if test 0 -ne "$ac_status"; then
a243b558
JF
6865 lt_cv_ar_at_file=@
6866 fi
6867 fi
6868 rm -f conftest.* libconftest.a
6869
9c60689e 6870fi
a243b558 6871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 6872
a243b558
JF
6873fi
6874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6875$as_echo "$lt_cv_ar_at_file" >&6; }
6876
9d54db95 6877if test no = "$lt_cv_ar_at_file"; then
a243b558
JF
6878 archiver_list_spec=
6879else
6880 archiver_list_spec=$lt_cv_ar_at_file
6881fi
6882
6883
6884
6885
6886
6887
6888
6889if test -n "$ac_tool_prefix"; then
6890 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6891set dummy ${ac_tool_prefix}strip; ac_word=$2
9c60689e
DWT
6892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6893$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6894if ${ac_cv_prog_STRIP+:} false; then :
9c60689e
DWT
6895 $as_echo_n "(cached) " >&6
6896else
a243b558
JF
6897 if test -n "$STRIP"; then
6898 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9c60689e
DWT
6899else
6900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901for as_dir in $PATH
6902do
6903 IFS=$as_save_IFS
6904 test -z "$as_dir" && as_dir=.
6905 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6907 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9c60689e
DWT
6908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6909 break 2
6910 fi
6911done
6912 done
6913IFS=$as_save_IFS
6914
6915fi
6916fi
a243b558
JF
6917STRIP=$ac_cv_prog_STRIP
6918if test -n "$STRIP"; then
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6920$as_echo "$STRIP" >&6; }
9c60689e
DWT
6921else
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6923$as_echo "no" >&6; }
6924fi
6925
6926
6927fi
a243b558
JF
6928if test -z "$ac_cv_prog_STRIP"; then
6929 ac_ct_STRIP=$STRIP
6930 # Extract the first word of "strip", so it can be a program name with args.
6931set dummy strip; ac_word=$2
9c60689e
DWT
6932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6933$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6934if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9c60689e
DWT
6935 $as_echo_n "(cached) " >&6
6936else
a243b558
JF
6937 if test -n "$ac_ct_STRIP"; then
6938 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9c60689e
DWT
6939else
6940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941for as_dir in $PATH
6942do
6943 IFS=$as_save_IFS
6944 test -z "$as_dir" && as_dir=.
6945 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 6946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 6947 ac_cv_prog_ac_ct_STRIP="strip"
9c60689e
DWT
6948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6949 break 2
6950 fi
6951done
6952 done
6953IFS=$as_save_IFS
6954
6955fi
6956fi
a243b558
JF
6957ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6958if test -n "$ac_ct_STRIP"; then
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6960$as_echo "$ac_ct_STRIP" >&6; }
9c60689e
DWT
6961else
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6963$as_echo "no" >&6; }
6964fi
6965
a243b558
JF
6966 if test "x$ac_ct_STRIP" = x; then
6967 STRIP=":"
9c60689e
DWT
6968 else
6969 case $cross_compiling:$ac_tool_warned in
6970yes:)
6971{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6972$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6973ac_tool_warned=yes ;;
6974esac
a243b558 6975 STRIP=$ac_ct_STRIP
9c60689e
DWT
6976 fi
6977else
a243b558 6978 STRIP="$ac_cv_prog_STRIP"
9c60689e
DWT
6979fi
6980
a243b558
JF
6981test -z "$STRIP" && STRIP=:
6982
6983
6984
6985
6986
6987
6988if test -n "$ac_tool_prefix"; then
6989 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6990set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9c60689e
DWT
6991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6992$as_echo_n "checking for $ac_word... " >&6; }
a243b558 6993if ${ac_cv_prog_RANLIB+:} false; then :
9c60689e
DWT
6994 $as_echo_n "(cached) " >&6
6995else
a243b558
JF
6996 if test -n "$RANLIB"; then
6997 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9c60689e
DWT
6998else
6999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000for as_dir in $PATH
7001do
7002 IFS=$as_save_IFS
7003 test -z "$as_dir" && as_dir=.
7004 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 7005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 7006 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9c60689e
DWT
7007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7008 break 2
7009 fi
7010done
7011 done
7012IFS=$as_save_IFS
7013
7014fi
7015fi
a243b558
JF
7016RANLIB=$ac_cv_prog_RANLIB
7017if test -n "$RANLIB"; then
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7019$as_echo "$RANLIB" >&6; }
9c60689e
DWT
7020else
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7022$as_echo "no" >&6; }
7023fi
7024
7025
7026fi
a243b558
JF
7027if test -z "$ac_cv_prog_RANLIB"; then
7028 ac_ct_RANLIB=$RANLIB
7029 # Extract the first word of "ranlib", so it can be a program name with args.
7030set dummy ranlib; ac_word=$2
9c60689e
DWT
7031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7032$as_echo_n "checking for $ac_word... " >&6; }
a243b558 7033if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9c60689e
DWT
7034 $as_echo_n "(cached) " >&6
7035else
a243b558
JF
7036 if test -n "$ac_ct_RANLIB"; then
7037 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9c60689e
DWT
7038else
7039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040for as_dir in $PATH
7041do
7042 IFS=$as_save_IFS
7043 test -z "$as_dir" && as_dir=.
7044 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 7045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 7046 ac_cv_prog_ac_ct_RANLIB="ranlib"
9c60689e
DWT
7047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7048 break 2
7049 fi
7050done
7051 done
7052IFS=$as_save_IFS
7053
7054fi
7055fi
a243b558
JF
7056ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7057if test -n "$ac_ct_RANLIB"; then
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7059$as_echo "$ac_ct_RANLIB" >&6; }
9c60689e
DWT
7060else
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7062$as_echo "no" >&6; }
7063fi
7064
a243b558
JF
7065 if test "x$ac_ct_RANLIB" = x; then
7066 RANLIB=":"
9c60689e
DWT
7067 else
7068 case $cross_compiling:$ac_tool_warned in
7069yes:)
7070{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7071$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7072ac_tool_warned=yes ;;
7073esac
a243b558 7074 RANLIB=$ac_ct_RANLIB
9c60689e
DWT
7075 fi
7076else
a243b558 7077 RANLIB="$ac_cv_prog_RANLIB"
9c60689e
DWT
7078fi
7079
a243b558
JF
7080test -z "$RANLIB" && RANLIB=:
7081
7082
9c60689e 7083
9c60689e
DWT
7084
7085
a243b558
JF
7086
7087# Determine commands to create old-style static archives.
7088old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7089old_postinstall_cmds='chmod 644 $oldlib'
7090old_postuninstall_cmds=
7091
7092if test -n "$RANLIB"; then
7093 case $host_os in
9d54db95 7094 bitrig* | openbsd*)
a243b558
JF
7095 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7096 ;;
7097 *)
7098 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7099 ;;
7100 esac
7101 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9c60689e
DWT
7102fi
7103
a243b558
JF
7104case $host_os in
7105 darwin*)
7106 lock_old_archive_extraction=yes ;;
7107 *)
7108 lock_old_archive_extraction=no ;;
9c60689e 7109esac
9c60689e 7110
9c60689e 7111
9c60689e
DWT
7112
7113
9c60689e 7114
9c60689e 7115
9c60689e
DWT
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
7141
7142
53ba6704 7143
9c60689e 7144
9c60689e 7145
9c60689e 7146
53ba6704 7147
a243b558
JF
7148
7149# If no C compiler was specified, use CC.
7150LTCC=${LTCC-"$CC"}
7151
7152# If no C compiler flags were specified, use CFLAGS.
7153LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7154
7155# Allow CC to be a program name with arguments.
7156compiler=$CC
7157
7158
7159# Check for command to grab the raw symbol name followed by C symbol from nm.
7160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7161$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7162if ${lt_cv_sys_global_symbol_pipe+:} false; then :
ee134472
JF
7163 $as_echo_n "(cached) " >&6
7164else
ee134472 7165
a243b558
JF
7166# These are sane defaults that work on at least a few old systems.
7167# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9c60689e 7168
a243b558
JF
7169# Character class describing NM global symbol codes.
7170symcode='[BCDEGRST]'
9c60689e 7171
a243b558
JF
7172# Regexp to match symbols that can be accessed directly from C.
7173sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9c60689e 7174
a243b558
JF
7175# Define system-specific variables.
7176case $host_os in
7177aix*)
7178 symcode='[BCDT]'
7179 ;;
7180cygwin* | mingw* | pw32* | cegcc*)
7181 symcode='[ABCDGISTW]'
7182 ;;
7183hpux*)
9d54db95 7184 if test ia64 = "$host_cpu"; then
a243b558
JF
7185 symcode='[ABCDEGRST]'
7186 fi
7187 ;;
7188irix* | nonstopux*)
7189 symcode='[BCDEGRST]'
7190 ;;
7191osf*)
7192 symcode='[BCDEGQRST]'
7193 ;;
7194solaris*)
7195 symcode='[BDRT]'
7196 ;;
7197sco3.2v5*)
7198 symcode='[DT]'
7199 ;;
7200sysv4.2uw2*)
7201 symcode='[DT]'
7202 ;;
7203sysv5* | sco5v6* | unixware* | OpenUNIX*)
7204 symcode='[ABDT]'
7205 ;;
7206sysv4)
7207 symcode='[DFNSTU]'
7208 ;;
7209esac
9c60689e 7210
a243b558
JF
7211# If we're using GNU nm, then use its standard symbol codes.
7212case `$NM -V 2>&1` in
7213*GNU* | *'with BFD'*)
7214 symcode='[ABCDGIRSTW]' ;;
7215esac
9c60689e 7216
9d54db95
JF
7217if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7218 # Gets list of data symbols to import.
7219 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7220 # Adjust the below global symbol transforms to fixup imported variables.
7221 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7222 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7223 lt_c_name_lib_hook="\
7224 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7225 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7226else
7227 # Disable hooks by default.
7228 lt_cv_sys_global_symbol_to_import=
7229 lt_cdecl_hook=
7230 lt_c_name_hook=
7231 lt_c_name_lib_hook=
7232fi
7233
a243b558
JF
7234# Transform an extracted symbol line into a proper C declaration.
7235# Some systems (esp. on ia64) link data and code symbols differently,
7236# so use this general approach.
9d54db95
JF
7237lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7238$lt_cdecl_hook\
7239" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7240" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9c60689e 7241
a243b558 7242# Transform an extracted symbol line into symbol name and symbol address
9d54db95
JF
7243lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7244$lt_c_name_hook\
7245" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7246" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7247
7248# Transform an extracted symbol line into symbol name with lib prefix and
7249# symbol address.
7250lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7251$lt_c_name_lib_hook\
7252" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7253" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7254" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9c60689e 7255
a243b558
JF
7256# Handle CRLF in mingw tool chain
7257opt_cr=
7258case $build_os in
7259mingw*)
7260 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7261 ;;
7262esac
9c60689e 7263
a243b558
JF
7264# Try without a prefix underscore, then with it.
7265for ac_symprfx in "" "_"; do
9c60689e 7266
a243b558
JF
7267 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7268 symxfrm="\\1 $ac_symprfx\\2 \\2"
9c60689e 7269
a243b558
JF
7270 # Write the raw and C identifiers.
7271 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9d54db95
JF
7272 # Fake it for dumpbin and say T for any non-static function,
7273 # D for any global variable and I for any imported variable.
a243b558
JF
7274 # Also find C++ and __fastcall symbols from MSVC++,
7275 # which start with @ or ?.
7276 lt_cv_sys_global_symbol_pipe="$AWK '"\
7277" {last_section=section; section=\$ 3};"\
7278" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7279" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9d54db95
JF
7280" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7281" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7282" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
a243b558
JF
7283" \$ 0!~/External *\|/{next};"\
7284" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7285" {if(hide[section]) next};"\
9d54db95
JF
7286" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7287" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7288" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7289" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
a243b558
JF
7290" ' prfx=^$ac_symprfx"
7291 else
7292 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7293 fi
7294 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9c60689e 7295
a243b558
JF
7296 # Check to see that the pipe works correctly.
7297 pipe_works=no
9c60689e 7298
00a96142 7299 rm -rf conftest*
a243b558
JF
7300 cat > conftest.$ac_ext <<_LT_EOF
7301#ifdef __cplusplus
7302extern "C" {
7303#endif
7304char nm_test_var;
7305void nm_test_func(void);
7306void nm_test_func(void){}
7307#ifdef __cplusplus
7308}
7309#endif
7310int main(){nm_test_var='a';nm_test_func();return(0);}
7311_LT_EOF
9c60689e 7312
a243b558
JF
7313 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7314 (eval $ac_compile) 2>&5
7315 ac_status=$?
7316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7317 test $ac_status = 0; }; then
7318 # Now try to grab the symbols.
7319 nlist=conftest.nm
7320 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7321 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7322 ac_status=$?
7323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7324 test $ac_status = 0; } && test -s "$nlist"; then
7325 # Try sorting and uniquifying the output.
7326 if sort "$nlist" | uniq > "$nlist"T; then
7327 mv -f "$nlist"T "$nlist"
7328 else
7329 rm -f "$nlist"T
7330 fi
9c60689e 7331
a243b558
JF
7332 # Make sure that we snagged all the symbols we need.
7333 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7334 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7335 cat <<_LT_EOF > conftest.$ac_ext
7336/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9d54db95
JF
7337#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7338/* DATA imports from DLLs on WIN32 can't be const, because runtime
a243b558
JF
7339 relocations are performed -- see ld's documentation on pseudo-relocs. */
7340# define LT_DLSYM_CONST
9d54db95 7341#elif defined __osf__
a243b558
JF
7342/* This system does not cope well with relocations in const data. */
7343# define LT_DLSYM_CONST
7344#else
7345# define LT_DLSYM_CONST const
7346#endif
9c60689e 7347
a243b558
JF
7348#ifdef __cplusplus
7349extern "C" {
7350#endif
9c60689e 7351
a243b558
JF
7352_LT_EOF
7353 # Now generate the symbol file.
7354 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9c60689e 7355
a243b558 7356 cat <<_LT_EOF >> conftest.$ac_ext
9c60689e 7357
a243b558
JF
7358/* The mapping between symbol names and symbols. */
7359LT_DLSYM_CONST struct {
7360 const char *name;
7361 void *address;
7362}
7363lt__PROGRAM__LTX_preloaded_symbols[] =
7364{
7365 { "@PROGRAM@", (void *) 0 },
7366_LT_EOF
9d54db95 7367 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
a243b558
JF
7368 cat <<\_LT_EOF >> conftest.$ac_ext
7369 {0, (void *) 0}
7370};
9c60689e 7371
a243b558
JF
7372/* This works around a problem in FreeBSD linker */
7373#ifdef FREEBSD_WORKAROUND
7374static const void *lt_preloaded_setup() {
7375 return lt__PROGRAM__LTX_preloaded_symbols;
7376}
7377#endif
9c60689e 7378
a243b558
JF
7379#ifdef __cplusplus
7380}
7381#endif
7382_LT_EOF
7383 # Now try linking the two files.
7384 mv conftest.$ac_objext conftstm.$ac_objext
7385 lt_globsym_save_LIBS=$LIBS
7386 lt_globsym_save_CFLAGS=$CFLAGS
9d54db95 7387 LIBS=conftstm.$ac_objext
a243b558
JF
7388 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7390 (eval $ac_link) 2>&5
7391 ac_status=$?
7392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9d54db95 7393 test $ac_status = 0; } && test -s conftest$ac_exeext; then
a243b558
JF
7394 pipe_works=yes
7395 fi
7396 LIBS=$lt_globsym_save_LIBS
7397 CFLAGS=$lt_globsym_save_CFLAGS
7398 else
7399 echo "cannot find nm_test_func in $nlist" >&5
7400 fi
7401 else
7402 echo "cannot find nm_test_var in $nlist" >&5
7403 fi
7404 else
7405 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7406 fi
7407 else
7408 echo "$progname: failed program was:" >&5
7409 cat conftest.$ac_ext >&5
7410 fi
7411 rm -rf conftest* conftst*
9c60689e 7412
a243b558 7413 # Do not use the global_symbol_pipe unless it works.
9d54db95 7414 if test yes = "$pipe_works"; then
a243b558
JF
7415 break
7416 else
7417 lt_cv_sys_global_symbol_pipe=
7418 fi
7419done
9c60689e 7420
9c60689e 7421fi
9c60689e 7422
a243b558
JF
7423if test -z "$lt_cv_sys_global_symbol_pipe"; then
7424 lt_cv_sys_global_symbol_to_cdecl=
9c60689e 7425fi
a243b558
JF
7426if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7428$as_echo "failed" >&6; }
9c60689e 7429else
a243b558
JF
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7431$as_echo "ok" >&6; }
9c60689e
DWT
7432fi
7433
a243b558
JF
7434# Response file support.
7435if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7436 nm_file_list_spec='@'
7437elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7438 nm_file_list_spec='@'
9c60689e 7439fi
9c60689e 7440
9c60689e 7441
9c60689e 7442
9c60689e 7443
9c60689e 7444
9c60689e
DWT
7445
7446
9c60689e 7447
9c60689e 7448
9c60689e
DWT
7449
7450
7451
ee134472
JF
7452
7453
9c60689e
DWT
7454
7455
9d54db95
JF
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
9c60689e
DWT
7466
7467
7468
7469
7470
7471
7472
549f29b5 7473
549f29b5
DWT
7474
7475
549f29b5 7476
a243b558
JF
7477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7478$as_echo_n "checking for sysroot... " >&6; }
549f29b5 7479
a243b558
JF
7480# Check whether --with-sysroot was given.
7481if test "${with_sysroot+set}" = set; then :
7482 withval=$with_sysroot;
9c60689e 7483else
a243b558 7484 with_sysroot=no
9c60689e
DWT
7485fi
7486
7487
a243b558 7488lt_sysroot=
9d54db95 7489case $with_sysroot in #(
a243b558 7490 yes)
9d54db95 7491 if test yes = "$GCC"; then
a243b558
JF
7492 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7493 fi
7494 ;; #(
7495 /*)
7496 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7497 ;; #(
7498 no|'')
7499 ;; #(
7500 *)
9d54db95
JF
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7502$as_echo "$with_sysroot" >&6; }
a243b558
JF
7503 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7504 ;;
7505esac
9c60689e 7506
a243b558
JF
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7508$as_echo "${lt_sysroot:-no}" >&6; }
9c60689e
DWT
7509
7510
7511
7512
7513
9d54db95
JF
7514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7515$as_echo_n "checking for a working dd... " >&6; }
7516if ${ac_cv_path_lt_DD+:} false; then :
7517 $as_echo_n "(cached) " >&6
7518else
7519 printf 0123456789abcdef0123456789abcdef >conftest.i
7520cat conftest.i conftest.i >conftest2.i
7521: ${lt_DD:=$DD}
7522if test -z "$lt_DD"; then
7523 ac_path_lt_DD_found=false
7524 # Loop through the user's path and test for each of PROGNAME-LIST
7525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526for as_dir in $PATH
7527do
7528 IFS=$as_save_IFS
7529 test -z "$as_dir" && as_dir=.
7530 for ac_prog in dd; do
7531 for ac_exec_ext in '' $ac_executable_extensions; do
7532 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7533 as_fn_executable_p "$ac_path_lt_DD" || continue
7534if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7535 cmp -s conftest.i conftest.out \
7536 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7537fi
7538 $ac_path_lt_DD_found && break 3
7539 done
7540 done
7541 done
7542IFS=$as_save_IFS
7543 if test -z "$ac_cv_path_lt_DD"; then
7544 :
7545 fi
7546else
7547 ac_cv_path_lt_DD=$lt_DD
7548fi
7549
7550rm -f conftest.i conftest2.i conftest.out
7551fi
7552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7553$as_echo "$ac_cv_path_lt_DD" >&6; }
7554
7555
7556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7557$as_echo_n "checking how to truncate binary pipes... " >&6; }
7558if ${lt_cv_truncate_bin+:} false; then :
7559 $as_echo_n "(cached) " >&6
7560else
7561 printf 0123456789abcdef0123456789abcdef >conftest.i
7562cat conftest.i conftest.i >conftest2.i
7563lt_cv_truncate_bin=
7564if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7565 cmp -s conftest.i conftest.out \
7566 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7567fi
7568rm -f conftest.i conftest2.i conftest.out
7569test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7570fi
7571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7572$as_echo "$lt_cv_truncate_bin" >&6; }
7573
7574
7575
7576
7577
7578
7579
7580# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7581func_cc_basename ()
7582{
7583 for cc_temp in $*""; do
7584 case $cc_temp in
7585 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7586 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7587 \-*) ;;
7588 *) break;;
7589 esac
7590 done
7591 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7592}
7593
a243b558
JF
7594# Check whether --enable-libtool-lock was given.
7595if test "${enable_libtool_lock+set}" = set; then :
7596 enableval=$enable_libtool_lock;
9c60689e
DWT
7597fi
7598
9d54db95 7599test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9c60689e 7600
a243b558
JF
7601# Some flags need to be propagated to the compiler or linker for good
7602# libtool support.
7603case $host in
7604ia64-*-hpux*)
9d54db95
JF
7605 # Find out what ABI is being produced by ac_compile, and set mode
7606 # options accordingly.
a243b558
JF
7607 echo 'int i;' > conftest.$ac_ext
7608 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7609 (eval $ac_compile) 2>&5
7610 ac_status=$?
7611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7612 test $ac_status = 0; }; then
7613 case `/usr/bin/file conftest.$ac_objext` in
7614 *ELF-32*)
9d54db95 7615 HPUX_IA64_MODE=32
a243b558
JF
7616 ;;
7617 *ELF-64*)
9d54db95 7618 HPUX_IA64_MODE=64
a243b558
JF
7619 ;;
7620 esac
7621 fi
7622 rm -rf conftest*
7623 ;;
7624*-*-irix6*)
9d54db95
JF
7625 # Find out what ABI is being produced by ac_compile, and set linker
7626 # options accordingly.
a243b558
JF
7627 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7629 (eval $ac_compile) 2>&5
7630 ac_status=$?
7631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7632 test $ac_status = 0; }; then
9d54db95 7633 if test yes = "$lt_cv_prog_gnu_ld"; then
a243b558
JF
7634 case `/usr/bin/file conftest.$ac_objext` in
7635 *32-bit*)
7636 LD="${LD-ld} -melf32bsmip"
7637 ;;
7638 *N32*)
7639 LD="${LD-ld} -melf32bmipn32"
7640 ;;
7641 *64-bit*)
7642 LD="${LD-ld} -melf64bmip"
7643 ;;
7644 esac
7645 else
7646 case `/usr/bin/file conftest.$ac_objext` in
7647 *32-bit*)
7648 LD="${LD-ld} -32"
7649 ;;
7650 *N32*)
7651 LD="${LD-ld} -n32"
7652 ;;
7653 *64-bit*)
7654 LD="${LD-ld} -64"
7655 ;;
7656 esac
7657 fi
7658 fi
7659 rm -rf conftest*
7660 ;;
9c60689e 7661
9d54db95
JF
7662mips64*-*linux*)
7663 # Find out what ABI is being produced by ac_compile, and set linker
7664 # options accordingly.
7665 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7666 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7667 (eval $ac_compile) 2>&5
7668 ac_status=$?
7669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7670 test $ac_status = 0; }; then
7671 emul=elf
7672 case `/usr/bin/file conftest.$ac_objext` in
7673 *32-bit*)
7674 emul="${emul}32"
7675 ;;
7676 *64-bit*)
7677 emul="${emul}64"
7678 ;;
7679 esac
7680 case `/usr/bin/file conftest.$ac_objext` in
7681 *MSB*)
7682 emul="${emul}btsmip"
7683 ;;
7684 *LSB*)
7685 emul="${emul}ltsmip"
7686 ;;
7687 esac
7688 case `/usr/bin/file conftest.$ac_objext` in
7689 *N32*)
7690 emul="${emul}n32"
7691 ;;
7692 esac
7693 LD="${LD-ld} -m $emul"
7694 fi
7695 rm -rf conftest*
7696 ;;
7697
7698x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
a243b558 7699s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9d54db95
JF
7700 # Find out what ABI is being produced by ac_compile, and set linker
7701 # options accordingly. Note that the listed cases only cover the
7702 # situations where additional linker options are needed (such as when
7703 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7704 # vice versa); the common cases where no linker options are needed do
7705 # not appear in the list.
a243b558
JF
7706 echo 'int i;' > conftest.$ac_ext
7707 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7708 (eval $ac_compile) 2>&5
7709 ac_status=$?
7710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7711 test $ac_status = 0; }; then
7712 case `/usr/bin/file conftest.o` in
7713 *32-bit*)
7714 case $host in
7715 x86_64-*kfreebsd*-gnu)
7716 LD="${LD-ld} -m elf_i386_fbsd"
7717 ;;
7718 x86_64-*linux*)
9d54db95
JF
7719 case `/usr/bin/file conftest.o` in
7720 *x86-64*)
7721 LD="${LD-ld} -m elf32_x86_64"
7722 ;;
7723 *)
7724 LD="${LD-ld} -m elf_i386"
7725 ;;
7726 esac
a243b558 7727 ;;
9d54db95
JF
7728 powerpc64le-*linux*)
7729 LD="${LD-ld} -m elf32lppclinux"
7730 ;;
7731 powerpc64-*linux*)
a243b558
JF
7732 LD="${LD-ld} -m elf32ppclinux"
7733 ;;
7734 s390x-*linux*)
7735 LD="${LD-ld} -m elf_s390"
7736 ;;
7737 sparc64-*linux*)
7738 LD="${LD-ld} -m elf32_sparc"
7739 ;;
7740 esac
7741 ;;
7742 *64-bit*)
7743 case $host in
7744 x86_64-*kfreebsd*-gnu)
7745 LD="${LD-ld} -m elf_x86_64_fbsd"
7746 ;;
7747 x86_64-*linux*)
7748 LD="${LD-ld} -m elf_x86_64"
7749 ;;
9d54db95
JF
7750 powerpcle-*linux*)
7751 LD="${LD-ld} -m elf64lppc"
7752 ;;
7753 powerpc-*linux*)
a243b558
JF
7754 LD="${LD-ld} -m elf64ppc"
7755 ;;
7756 s390*-*linux*|s390*-*tpf*)
7757 LD="${LD-ld} -m elf64_s390"
7758 ;;
7759 sparc*-*linux*)
7760 LD="${LD-ld} -m elf64_sparc"
7761 ;;
7762 esac
7763 ;;
7764 esac
7765 fi
7766 rm -rf conftest*
7767 ;;
9c60689e 7768
a243b558
JF
7769*-*-sco3.2v5*)
7770 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9d54db95 7771 SAVE_CFLAGS=$CFLAGS
a243b558
JF
7772 CFLAGS="$CFLAGS -belf"
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7774$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7775if ${lt_cv_cc_needs_belf+:} false; then :
7776 $as_echo_n "(cached) " >&6
7777else
7778 ac_ext=c
7779ac_cpp='$CPP $CPPFLAGS'
7780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7782ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e 7783
a243b558
JF
7784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7785/* end confdefs.h. */
9c60689e 7786
a243b558
JF
7787int
7788main ()
7789{
9c60689e 7790
a243b558
JF
7791 ;
7792 return 0;
7793}
7794_ACEOF
7795if ac_fn_c_try_link "$LINENO"; then :
7796 lt_cv_cc_needs_belf=yes
9c60689e 7797else
a243b558 7798 lt_cv_cc_needs_belf=no
9c60689e 7799fi
a243b558
JF
7800rm -f core conftest.err conftest.$ac_objext \
7801 conftest$ac_exeext conftest.$ac_ext
7802 ac_ext=c
7803ac_cpp='$CPP $CPPFLAGS'
7804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7806ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e 7807
a243b558
JF
7808fi
7809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7810$as_echo "$lt_cv_cc_needs_belf" >&6; }
9d54db95 7811 if test yes != "$lt_cv_cc_needs_belf"; then
a243b558 7812 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9d54db95 7813 CFLAGS=$SAVE_CFLAGS
a243b558
JF
7814 fi
7815 ;;
7816*-*solaris*)
9d54db95
JF
7817 # Find out what ABI is being produced by ac_compile, and set linker
7818 # options accordingly.
a243b558
JF
7819 echo 'int i;' > conftest.$ac_ext
7820 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7821 (eval $ac_compile) 2>&5
7822 ac_status=$?
7823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7824 test $ac_status = 0; }; then
7825 case `/usr/bin/file conftest.o` in
7826 *64-bit*)
7827 case $lt_cv_prog_gnu_ld in
7828 yes*)
7829 case $host in
9d54db95 7830 i?86-*-solaris*|x86_64-*-solaris*)
a243b558
JF
7831 LD="${LD-ld} -m elf_x86_64"
7832 ;;
7833 sparc*-*-solaris*)
7834 LD="${LD-ld} -m elf64_sparc"
7835 ;;
7836 esac
7837 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7838 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9d54db95 7839 LD=${LD-ld}_sol2
a243b558
JF
7840 fi
7841 ;;
7842 *)
7843 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7844 LD="${LD-ld} -64"
7845 fi
7846 ;;
7847 esac
7848 ;;
7849 esac
7850 fi
7851 rm -rf conftest*
7852 ;;
7853esac
9c60689e 7854
9d54db95 7855need_locks=$enable_libtool_lock
9c60689e 7856
a243b558
JF
7857if test -n "$ac_tool_prefix"; then
7858 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7859set dummy ${ac_tool_prefix}mt; ac_word=$2
7860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7861$as_echo_n "checking for $ac_word... " >&6; }
7862if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7863 $as_echo_n "(cached) " >&6
7864else
7865 if test -n "$MANIFEST_TOOL"; then
7866 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7867else
7868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7869for as_dir in $PATH
7870do
7871 IFS=$as_save_IFS
7872 test -z "$as_dir" && as_dir=.
7873 for ac_exec_ext in '' $ac_executable_extensions; do
7874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7875 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7877 break 2
7878 fi
7879done
7880 done
7881IFS=$as_save_IFS
9c60689e 7882
a243b558
JF
7883fi
7884fi
7885MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7886if test -n "$MANIFEST_TOOL"; then
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7888$as_echo "$MANIFEST_TOOL" >&6; }
7889else
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7891$as_echo "no" >&6; }
7892fi
9c60689e
DWT
7893
7894
a243b558
JF
7895fi
7896if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7897 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7898 # Extract the first word of "mt", so it can be a program name with args.
7899set dummy mt; ac_word=$2
7900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7901$as_echo_n "checking for $ac_word... " >&6; }
7902if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7903 $as_echo_n "(cached) " >&6
7904else
7905 if test -n "$ac_ct_MANIFEST_TOOL"; then
7906 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7907else
7908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7909for as_dir in $PATH
7910do
7911 IFS=$as_save_IFS
7912 test -z "$as_dir" && as_dir=.
7913 for ac_exec_ext in '' $ac_executable_extensions; do
7914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7915 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7917 break 2
7918 fi
7919done
7920 done
7921IFS=$as_save_IFS
9c60689e 7922
a243b558
JF
7923fi
7924fi
7925ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7926if test -n "$ac_ct_MANIFEST_TOOL"; then
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7928$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7929else
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7931$as_echo "no" >&6; }
7932fi
9c60689e 7933
a243b558
JF
7934 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7935 MANIFEST_TOOL=":"
7936 else
7937 case $cross_compiling:$ac_tool_warned in
7938yes:)
7939{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7940$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7941ac_tool_warned=yes ;;
7942esac
7943 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7944 fi
7945else
7946 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7947fi
9c60689e 7948
a243b558
JF
7949test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7951$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7952if ${lt_cv_path_mainfest_tool+:} false; then :
7953 $as_echo_n "(cached) " >&6
7954else
7955 lt_cv_path_mainfest_tool=no
7956 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7957 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7958 cat conftest.err >&5
7959 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7960 lt_cv_path_mainfest_tool=yes
7961 fi
00a96142 7962 rm -rf conftest*
a243b558
JF
7963fi
7964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7965$as_echo "$lt_cv_path_mainfest_tool" >&6; }
9d54db95 7966if test yes != "$lt_cv_path_mainfest_tool"; then
a243b558
JF
7967 MANIFEST_TOOL=:
7968fi
9c60689e
DWT
7969
7970
7971
7972
7973
7974
a243b558
JF
7975 case $host_os in
7976 rhapsody* | darwin*)
7977 if test -n "$ac_tool_prefix"; then
7978 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7979set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7981$as_echo_n "checking for $ac_word... " >&6; }
7982if ${ac_cv_prog_DSYMUTIL+:} false; then :
7983 $as_echo_n "(cached) " >&6
7984else
7985 if test -n "$DSYMUTIL"; then
7986 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7987else
7988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7989for as_dir in $PATH
7990do
7991 IFS=$as_save_IFS
7992 test -z "$as_dir" && as_dir=.
7993 for ac_exec_ext in '' $ac_executable_extensions; do
7994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7995 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7997 break 2
7998 fi
7999done
8000 done
8001IFS=$as_save_IFS
9c60689e 8002
a243b558
JF
8003fi
8004fi
8005DSYMUTIL=$ac_cv_prog_DSYMUTIL
8006if test -n "$DSYMUTIL"; then
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8008$as_echo "$DSYMUTIL" >&6; }
8009else
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8011$as_echo "no" >&6; }
8012fi
9c60689e
DWT
8013
8014
9c60689e 8015fi
a243b558
JF
8016if test -z "$ac_cv_prog_DSYMUTIL"; then
8017 ac_ct_DSYMUTIL=$DSYMUTIL
8018 # Extract the first word of "dsymutil", so it can be a program name with args.
8019set dummy dsymutil; ac_word=$2
8020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8021$as_echo_n "checking for $ac_word... " >&6; }
8022if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9c60689e
DWT
8023 $as_echo_n "(cached) " >&6
8024else
a243b558
JF
8025 if test -n "$ac_ct_DSYMUTIL"; then
8026 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9c60689e 8027else
a243b558
JF
8028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8029for as_dir in $PATH
8030do
8031 IFS=$as_save_IFS
8032 test -z "$as_dir" && as_dir=.
8033 for ac_exec_ext in '' $ac_executable_extensions; do
8034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8035 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8037 break 2
8038 fi
8039done
8040 done
8041IFS=$as_save_IFS
8042
9c60689e 8043fi
9c60689e 8044fi
a243b558
JF
8045ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8046if test -n "$ac_ct_DSYMUTIL"; then
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8048$as_echo "$ac_ct_DSYMUTIL" >&6; }
8049else
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8051$as_echo "no" >&6; }
8052fi
9c60689e 8053
a243b558
JF
8054 if test "x$ac_ct_DSYMUTIL" = x; then
8055 DSYMUTIL=":"
8056 else
8057 case $cross_compiling:$ac_tool_warned in
8058yes:)
8059{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8060$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8061ac_tool_warned=yes ;;
9c60689e 8062esac
a243b558
JF
8063 DSYMUTIL=$ac_ct_DSYMUTIL
8064 fi
8065else
8066 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8067fi
9c60689e 8068
a243b558
JF
8069 if test -n "$ac_tool_prefix"; then
8070 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8071set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8073$as_echo_n "checking for $ac_word... " >&6; }
8074if ${ac_cv_prog_NMEDIT+:} false; then :
9c60689e
DWT
8075 $as_echo_n "(cached) " >&6
8076else
a243b558
JF
8077 if test -n "$NMEDIT"; then
8078 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8079else
8080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8081for as_dir in $PATH
8082do
8083 IFS=$as_save_IFS
8084 test -z "$as_dir" && as_dir=.
8085 for ac_exec_ext in '' $ac_executable_extensions; do
8086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8087 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8089 break 2
8090 fi
8091done
9c60689e 8092 done
a243b558 8093IFS=$as_save_IFS
9c60689e 8094
a243b558
JF
8095fi
8096fi
8097NMEDIT=$ac_cv_prog_NMEDIT
8098if test -n "$NMEDIT"; then
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8100$as_echo "$NMEDIT" >&6; }
9c60689e
DWT
8101else
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8103$as_echo "no" >&6; }
8104fi
8105
8106
a243b558
JF
8107fi
8108if test -z "$ac_cv_prog_NMEDIT"; then
8109 ac_ct_NMEDIT=$NMEDIT
8110 # Extract the first word of "nmedit", so it can be a program name with args.
8111set dummy nmedit; ac_word=$2
8112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8113$as_echo_n "checking for $ac_word... " >&6; }
8114if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9c60689e
DWT
8115 $as_echo_n "(cached) " >&6
8116else
a243b558
JF
8117 if test -n "$ac_ct_NMEDIT"; then
8118 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8119else
8120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8121for as_dir in $PATH
8122do
8123 IFS=$as_save_IFS
8124 test -z "$as_dir" && as_dir=.
8125 for ac_exec_ext in '' $ac_executable_extensions; do
8126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8127 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8129 break 2
8130 fi
8131done
9c60689e 8132 done
a243b558 8133IFS=$as_save_IFS
9c60689e 8134
a243b558
JF
8135fi
8136fi
8137ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8138if test -n "$ac_ct_NMEDIT"; then
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8140$as_echo "$ac_ct_NMEDIT" >&6; }
9c60689e
DWT
8141else
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8143$as_echo "no" >&6; }
8144fi
8145
a243b558
JF
8146 if test "x$ac_ct_NMEDIT" = x; then
8147 NMEDIT=":"
9c60689e 8148 else
a243b558
JF
8149 case $cross_compiling:$ac_tool_warned in
8150yes:)
8151{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8152$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8153ac_tool_warned=yes ;;
8154esac
8155 NMEDIT=$ac_ct_NMEDIT
9c60689e 8156 fi
a243b558
JF
8157else
8158 NMEDIT="$ac_cv_prog_NMEDIT"
9c60689e
DWT
8159fi
8160
a243b558
JF
8161 if test -n "$ac_tool_prefix"; then
8162 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8163set dummy ${ac_tool_prefix}lipo; ac_word=$2
8164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8165$as_echo_n "checking for $ac_word... " >&6; }
8166if ${ac_cv_prog_LIPO+:} false; then :
8167 $as_echo_n "(cached) " >&6
8168else
8169 if test -n "$LIPO"; then
8170 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8171else
8172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8173for as_dir in $PATH
8174do
8175 IFS=$as_save_IFS
8176 test -z "$as_dir" && as_dir=.
8177 for ac_exec_ext in '' $ac_executable_extensions; do
8178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8179 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8181 break 2
8182 fi
8183done
8184 done
8185IFS=$as_save_IFS
9c60689e 8186
a243b558
JF
8187fi
8188fi
8189LIPO=$ac_cv_prog_LIPO
8190if test -n "$LIPO"; then
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8192$as_echo "$LIPO" >&6; }
8193else
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8195$as_echo "no" >&6; }
8196fi
9c60689e 8197
9c60689e 8198
a243b558
JF
8199fi
8200if test -z "$ac_cv_prog_LIPO"; then
8201 ac_ct_LIPO=$LIPO
8202 # Extract the first word of "lipo", so it can be a program name with args.
8203set dummy lipo; ac_word=$2
8204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8205$as_echo_n "checking for $ac_word... " >&6; }
8206if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9c60689e
DWT
8207 $as_echo_n "(cached) " >&6
8208else
a243b558
JF
8209 if test -n "$ac_ct_LIPO"; then
8210 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8211else
8212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8213for as_dir in $PATH
8214do
8215 IFS=$as_save_IFS
8216 test -z "$as_dir" && as_dir=.
8217 for ac_exec_ext in '' $ac_executable_extensions; do
8218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8219 ac_cv_prog_ac_ct_LIPO="lipo"
8220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8221 break 2
8222 fi
8223done
8224 done
8225IFS=$as_save_IFS
9c60689e
DWT
8226
8227fi
a243b558
JF
8228fi
8229ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8230if test -n "$ac_ct_LIPO"; then
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8232$as_echo "$ac_ct_LIPO" >&6; }
9c60689e 8233else
a243b558
JF
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8235$as_echo "no" >&6; }
9c60689e
DWT
8236fi
8237
a243b558
JF
8238 if test "x$ac_ct_LIPO" = x; then
8239 LIPO=":"
8240 else
8241 case $cross_compiling:$ac_tool_warned in
8242yes:)
8243{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8244$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8245ac_tool_warned=yes ;;
8246esac
8247 LIPO=$ac_ct_LIPO
8248 fi
8249else
8250 LIPO="$ac_cv_prog_LIPO"
9c60689e
DWT
8251fi
8252
a243b558
JF
8253 if test -n "$ac_tool_prefix"; then
8254 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8255set dummy ${ac_tool_prefix}otool; ac_word=$2
8256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8257$as_echo_n "checking for $ac_word... " >&6; }
8258if ${ac_cv_prog_OTOOL+:} false; then :
8259 $as_echo_n "(cached) " >&6
8260else
8261 if test -n "$OTOOL"; then
8262 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8263else
8264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8265for as_dir in $PATH
8266do
8267 IFS=$as_save_IFS
8268 test -z "$as_dir" && as_dir=.
8269 for ac_exec_ext in '' $ac_executable_extensions; do
8270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8271 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8273 break 2
8274 fi
8275done
8276 done
8277IFS=$as_save_IFS
9c60689e 8278
a243b558
JF
8279fi
8280fi
8281OTOOL=$ac_cv_prog_OTOOL
8282if test -n "$OTOOL"; then
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8284$as_echo "$OTOOL" >&6; }
8285else
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8287$as_echo "no" >&6; }
8288fi
9c60689e
DWT
8289
8290
a243b558
JF
8291fi
8292if test -z "$ac_cv_prog_OTOOL"; then
8293 ac_ct_OTOOL=$OTOOL
8294 # Extract the first word of "otool", so it can be a program name with args.
8295set dummy otool; ac_word=$2
8296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8297$as_echo_n "checking for $ac_word... " >&6; }
8298if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8299 $as_echo_n "(cached) " >&6
8300else
8301 if test -n "$ac_ct_OTOOL"; then
8302 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8303else
8304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305for as_dir in $PATH
8306do
8307 IFS=$as_save_IFS
8308 test -z "$as_dir" && as_dir=.
8309 for ac_exec_ext in '' $ac_executable_extensions; do
8310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8311 ac_cv_prog_ac_ct_OTOOL="otool"
8312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8313 break 2
8314 fi
8315done
8316 done
8317IFS=$as_save_IFS
9c60689e 8318
a243b558
JF
8319fi
8320fi
8321ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8322if test -n "$ac_ct_OTOOL"; then
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8324$as_echo "$ac_ct_OTOOL" >&6; }
8325else
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8327$as_echo "no" >&6; }
8328fi
9c60689e 8329
a243b558
JF
8330 if test "x$ac_ct_OTOOL" = x; then
8331 OTOOL=":"
8332 else
8333 case $cross_compiling:$ac_tool_warned in
8334yes:)
8335{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8336$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8337ac_tool_warned=yes ;;
8338esac
8339 OTOOL=$ac_ct_OTOOL
8340 fi
8341else
8342 OTOOL="$ac_cv_prog_OTOOL"
8343fi
9c60689e 8344
a243b558
JF
8345 if test -n "$ac_tool_prefix"; then
8346 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8347set dummy ${ac_tool_prefix}otool64; ac_word=$2
8348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8349$as_echo_n "checking for $ac_word... " >&6; }
8350if ${ac_cv_prog_OTOOL64+:} false; then :
8351 $as_echo_n "(cached) " >&6
8352else
8353 if test -n "$OTOOL64"; then
8354 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8355else
8356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8357for as_dir in $PATH
8358do
8359 IFS=$as_save_IFS
8360 test -z "$as_dir" && as_dir=.
8361 for ac_exec_ext in '' $ac_executable_extensions; do
8362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8363 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8365 break 2
8366 fi
8367done
8368 done
8369IFS=$as_save_IFS
9c60689e 8370
a243b558
JF
8371fi
8372fi
8373OTOOL64=$ac_cv_prog_OTOOL64
8374if test -n "$OTOOL64"; then
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8376$as_echo "$OTOOL64" >&6; }
8377else
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8379$as_echo "no" >&6; }
8380fi
9c60689e 8381
9c60689e 8382
a243b558
JF
8383fi
8384if test -z "$ac_cv_prog_OTOOL64"; then
8385 ac_ct_OTOOL64=$OTOOL64
8386 # Extract the first word of "otool64", so it can be a program name with args.
8387set dummy otool64; ac_word=$2
8388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8389$as_echo_n "checking for $ac_word... " >&6; }
8390if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8391 $as_echo_n "(cached) " >&6
8392else
8393 if test -n "$ac_ct_OTOOL64"; then
8394 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8395else
8396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8397for as_dir in $PATH
8398do
8399 IFS=$as_save_IFS
8400 test -z "$as_dir" && as_dir=.
8401 for ac_exec_ext in '' $ac_executable_extensions; do
8402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8403 ac_cv_prog_ac_ct_OTOOL64="otool64"
8404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8405 break 2
8406 fi
8407done
8408 done
8409IFS=$as_save_IFS
9c60689e 8410
a243b558
JF
8411fi
8412fi
8413ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8414if test -n "$ac_ct_OTOOL64"; then
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8416$as_echo "$ac_ct_OTOOL64" >&6; }
8417else
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8419$as_echo "no" >&6; }
8420fi
9c60689e 8421
a243b558
JF
8422 if test "x$ac_ct_OTOOL64" = x; then
8423 OTOOL64=":"
8424 else
8425 case $cross_compiling:$ac_tool_warned in
8426yes:)
8427{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8428$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8429ac_tool_warned=yes ;;
8430esac
8431 OTOOL64=$ac_ct_OTOOL64
8432 fi
8433else
8434 OTOOL64="$ac_cv_prog_OTOOL64"
8435fi
ee134472 8436
9c60689e 8437
9c60689e 8438
9c60689e 8439
9c60689e 8440
9c60689e 8441
ee134472 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
9c60689e 8459
9c60689e 8460
a243b558
JF
8461
8462
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8464$as_echo_n "checking for -single_module linker flag... " >&6; }
8465if ${lt_cv_apple_cc_single_mod+:} false; then :
ee134472
JF
8466 $as_echo_n "(cached) " >&6
8467else
a243b558 8468 lt_cv_apple_cc_single_mod=no
9d54db95 8469 if test -z "$LT_MULTI_MODULE"; then
a243b558
JF
8470 # By default we will add the -single_module flag. You can override
8471 # by either setting the environment variable LT_MULTI_MODULE
8472 # non-empty at configure time, or by adding -multi_module to the
8473 # link flags.
8474 rm -rf libconftest.dylib*
8475 echo "int foo(void){return 1;}" > conftest.c
8476 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8477-dynamiclib -Wl,-single_module conftest.c" >&5
8478 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8479 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8480 _lt_result=$?
8481 # If there is a non-empty error log, and "single_module"
8482 # appears in it, assume the flag caused a linker warning
8483 if test -s conftest.err && $GREP single_module conftest.err; then
8484 cat conftest.err >&5
8485 # Otherwise, if the output was created with a 0 exit code from
8486 # the compiler, it worked.
9d54db95 8487 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
a243b558
JF
8488 lt_cv_apple_cc_single_mod=yes
8489 else
8490 cat conftest.err >&5
8491 fi
8492 rm -rf libconftest.dylib*
8493 rm -f conftest.*
8494 fi
ee134472 8495fi
a243b558
JF
8496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8497$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9c60689e 8498
a243b558
JF
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8500$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8501if ${lt_cv_ld_exported_symbols_list+:} false; then :
9c60689e
DWT
8502 $as_echo_n "(cached) " >&6
8503else
a243b558
JF
8504 lt_cv_ld_exported_symbols_list=no
8505 save_LDFLAGS=$LDFLAGS
8506 echo "_main" > conftest.sym
8507 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8509/* end confdefs.h. */
9c60689e 8510
a243b558
JF
8511int
8512main ()
8513{
9c60689e 8514
a243b558
JF
8515 ;
8516 return 0;
8517}
8518_ACEOF
8519if ac_fn_c_try_link "$LINENO"; then :
8520 lt_cv_ld_exported_symbols_list=yes
9c60689e 8521else
a243b558 8522 lt_cv_ld_exported_symbols_list=no
9c60689e 8523fi
a243b558
JF
8524rm -f core conftest.err conftest.$ac_objext \
8525 conftest$ac_exeext conftest.$ac_ext
9d54db95 8526 LDFLAGS=$save_LDFLAGS
9c60689e
DWT
8527
8528fi
a243b558
JF
8529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8530$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9c60689e 8531
a243b558
JF
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8533$as_echo_n "checking for -force_load linker flag... " >&6; }
8534if ${lt_cv_ld_force_load+:} false; then :
9c60689e
DWT
8535 $as_echo_n "(cached) " >&6
8536else
a243b558
JF
8537 lt_cv_ld_force_load=no
8538 cat > conftest.c << _LT_EOF
8539int forced_loaded() { return 2;}
8540_LT_EOF
8541 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8542 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8543 echo "$AR cru libconftest.a conftest.o" >&5
8544 $AR cru libconftest.a conftest.o 2>&5
8545 echo "$RANLIB libconftest.a" >&5
8546 $RANLIB libconftest.a 2>&5
8547 cat > conftest.c << _LT_EOF
8548int main() { return 0;}
8549_LT_EOF
8550 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8551 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8552 _lt_result=$?
8553 if test -s conftest.err && $GREP force_load conftest.err; then
8554 cat conftest.err >&5
9d54db95 8555 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
a243b558
JF
8556 lt_cv_ld_force_load=yes
8557 else
8558 cat conftest.err >&5
8559 fi
8560 rm -f conftest.err libconftest.a conftest conftest.c
8561 rm -rf conftest.dSYM
9c60689e
DWT
8562
8563fi
a243b558
JF
8564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8565$as_echo "$lt_cv_ld_force_load" >&6; }
8566 case $host_os in
8567 rhapsody* | darwin1.[012])
9d54db95 8568 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
a243b558 8569 darwin1.*)
9d54db95 8570 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
a243b558
JF
8571 darwin*) # darwin 5.x on
8572 # if running on 10.5 or later, the deployment target defaults
8573 # to the OS version, if on x86, and 10.4, the deployment
8574 # target defaults to 10.4. Don't you love it?
8575 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8576 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9d54db95
JF
8577 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8578 10.[012][,.]*)
8579 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
a243b558 8580 10.*)
9d54db95 8581 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
a243b558
JF
8582 esac
8583 ;;
8584 esac
9d54db95 8585 if test yes = "$lt_cv_apple_cc_single_mod"; then
a243b558
JF
8586 _lt_dar_single_mod='$single_module'
8587 fi
9d54db95
JF
8588 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8589 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
a243b558 8590 else
9d54db95 8591 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
a243b558 8592 fi
9d54db95 8593 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
a243b558
JF
8594 _lt_dsymutil='~$DSYMUTIL $lib || :'
8595 else
8596 _lt_dsymutil=
8597 fi
8598 ;;
8599 esac
9c60689e 8600
9d54db95
JF
8601# func_munge_path_list VARIABLE PATH
8602# -----------------------------------
8603# VARIABLE is name of variable containing _space_ separated list of
8604# directories to be munged by the contents of PATH, which is string
8605# having a format:
8606# "DIR[:DIR]:"
8607# string "DIR[ DIR]" will be prepended to VARIABLE
8608# ":DIR[:DIR]"
8609# string "DIR[ DIR]" will be appended to VARIABLE
8610# "DIRP[:DIRP]::[DIRA:]DIRA"
8611# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8612# "DIRA[ DIRA]" will be appended to VARIABLE
8613# "DIR[:DIR]"
8614# VARIABLE will be replaced by "DIR[ DIR]"
8615func_munge_path_list ()
8616{
8617 case x$2 in
8618 x)
8619 ;;
8620 *:)
8621 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8622 ;;
8623 x:*)
8624 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8625 ;;
8626 *::*)
8627 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8628 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8629 ;;
8630 *)
8631 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8632 ;;
8633 esac
8634}
8635
a243b558
JF
8636ac_ext=c
8637ac_cpp='$CPP $CPPFLAGS'
8638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8640ac_compiler_gnu=$ac_cv_c_compiler_gnu
8641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8642$as_echo_n "checking how to run the C preprocessor... " >&6; }
8643# On Suns, sometimes $CPP names a directory.
8644if test -n "$CPP" && test -d "$CPP"; then
8645 CPP=
9c60689e 8646fi
a243b558
JF
8647if test -z "$CPP"; then
8648 if ${ac_cv_prog_CPP+:} false; then :
8649 $as_echo_n "(cached) " >&6
8650else
8651 # Double quotes because CPP needs to be expanded
8652 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8653 do
8654 ac_preproc_ok=false
8655for ac_c_preproc_warn_flag in '' yes
8656do
8657 # Use a header file that comes with gcc, so configuring glibc
8658 # with a fresh cross-compiler works.
8659 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8660 # <limits.h> exists even on freestanding compilers.
8661 # On the NeXT, cc -E runs the code through the compiler's parser,
8662 # not just through cpp. "Syntax error" is here to catch this case.
8663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8664/* end confdefs.h. */
8665#ifdef __STDC__
8666# include <limits.h>
8667#else
8668# include <assert.h>
8669#endif
8670 Syntax error
8671_ACEOF
8672if ac_fn_c_try_cpp "$LINENO"; then :
9c60689e 8673
a243b558
JF
8674else
8675 # Broken: fails on valid input.
8676continue
8677fi
8678rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8679
a243b558
JF
8680 # OK, works on sane cases. Now check whether nonexistent headers
8681 # can be detected and how.
8682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8683/* end confdefs.h. */
8684#include <ac_nonexistent.h>
8685_ACEOF
8686if ac_fn_c_try_cpp "$LINENO"; then :
8687 # Broken: success on invalid input.
8688continue
8689else
8690 # Passes both tests.
8691ac_preproc_ok=:
8692break
8693fi
8694rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8695
a243b558
JF
8696done
8697# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8698rm -f conftest.i conftest.err conftest.$ac_ext
8699if $ac_preproc_ok; then :
8700 break
8701fi
9c60689e 8702
a243b558
JF
8703 done
8704 ac_cv_prog_CPP=$CPP
9c60689e 8705
a243b558
JF
8706fi
8707 CPP=$ac_cv_prog_CPP
9c60689e 8708else
a243b558
JF
8709 ac_cv_prog_CPP=$CPP
8710fi
8711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8712$as_echo "$CPP" >&6; }
8713ac_preproc_ok=false
8714for ac_c_preproc_warn_flag in '' yes
8715do
8716 # Use a header file that comes with gcc, so configuring glibc
8717 # with a fresh cross-compiler works.
8718 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8719 # <limits.h> exists even on freestanding compilers.
8720 # On the NeXT, cc -E runs the code through the compiler's parser,
8721 # not just through cpp. "Syntax error" is here to catch this case.
8722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8723/* end confdefs.h. */
8724#ifdef __STDC__
8725# include <limits.h>
8726#else
8727# include <assert.h>
8728#endif
8729 Syntax error
8730_ACEOF
8731if ac_fn_c_try_cpp "$LINENO"; then :
9c60689e 8732
a243b558
JF
8733else
8734 # Broken: fails on valid input.
8735continue
9c60689e 8736fi
a243b558 8737rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8738
a243b558
JF
8739 # OK, works on sane cases. Now check whether nonexistent headers
8740 # can be detected and how.
8741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8742/* end confdefs.h. */
8743#include <ac_nonexistent.h>
8744_ACEOF
8745if ac_fn_c_try_cpp "$LINENO"; then :
8746 # Broken: success on invalid input.
8747continue
8748else
8749 # Passes both tests.
8750ac_preproc_ok=:
8751break
8752fi
8753rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 8754
a243b558
JF
8755done
8756# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8757rm -f conftest.i conftest.err conftest.$ac_ext
8758if $ac_preproc_ok; then :
9c60689e 8759
a243b558
JF
8760else
8761 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8762$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8763as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8764See \`config.log' for more details" "$LINENO" 5; }
8765fi
9c60689e 8766
a243b558
JF
8767ac_ext=c
8768ac_cpp='$CPP $CPPFLAGS'
8769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8771ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e
DWT
8772
8773
a243b558
JF
8774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8775$as_echo_n "checking for ANSI C header files... " >&6; }
8776if ${ac_cv_header_stdc+:} false; then :
9c60689e
DWT
8777 $as_echo_n "(cached) " >&6
8778else
a243b558
JF
8779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8780/* end confdefs.h. */
8781#include <stdlib.h>
8782#include <stdarg.h>
8783#include <string.h>
8784#include <float.h>
9c60689e 8785
a243b558
JF
8786int
8787main ()
8788{
9c60689e 8789
a243b558
JF
8790 ;
8791 return 0;
8792}
8793_ACEOF
8794if ac_fn_c_try_compile "$LINENO"; then :
8795 ac_cv_header_stdc=yes
8796else
8797 ac_cv_header_stdc=no
9c60689e 8798fi
a243b558
JF
8799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8800
8801if test $ac_cv_header_stdc = yes; then
8802 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8804/* end confdefs.h. */
8805#include <string.h>
9c60689e 8806
a243b558
JF
8807_ACEOF
8808if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8809 $EGREP "memchr" >/dev/null 2>&1; then :
9c60689e 8810
a243b558
JF
8811else
8812 ac_cv_header_stdc=no
8813fi
8814rm -f conftest*
9c60689e 8815
a243b558
JF
8816fi
8817
8818if test $ac_cv_header_stdc = yes; then
8819 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8821/* end confdefs.h. */
8822#include <stdlib.h>
8823
8824_ACEOF
8825if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8826 $EGREP "free" >/dev/null 2>&1; then :
9c60689e 8827
9c60689e 8828else
a243b558 8829 ac_cv_header_stdc=no
9c60689e 8830fi
a243b558 8831rm -f conftest*
9c60689e 8832
a243b558 8833fi
9c60689e 8834
a243b558
JF
8835if test $ac_cv_header_stdc = yes; then
8836 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8837 if test "$cross_compiling" = yes; then :
8838 :
8839else
8840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8841/* end confdefs.h. */
8842#include <ctype.h>
8843#include <stdlib.h>
8844#if ((' ' & 0x0FF) == 0x020)
8845# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8846# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8847#else
8848# define ISLOWER(c) \
8849 (('a' <= (c) && (c) <= 'i') \
8850 || ('j' <= (c) && (c) <= 'r') \
8851 || ('s' <= (c) && (c) <= 'z'))
8852# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8853#endif
9c60689e 8854
a243b558
JF
8855#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8856int
8857main ()
8858{
8859 int i;
8860 for (i = 0; i < 256; i++)
8861 if (XOR (islower (i), ISLOWER (i))
8862 || toupper (i) != TOUPPER (i))
8863 return 2;
8864 return 0;
8865}
8866_ACEOF
8867if ac_fn_c_try_run "$LINENO"; then :
9c60689e 8868
a243b558
JF
8869else
8870 ac_cv_header_stdc=no
8871fi
8872rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8873 conftest.$ac_objext conftest.beam conftest.$ac_ext
8874fi
9c60689e 8875
a243b558
JF
8876fi
8877fi
8878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8879$as_echo "$ac_cv_header_stdc" >&6; }
8880if test $ac_cv_header_stdc = yes; then
9c60689e 8881
a243b558 8882$as_echo "#define STDC_HEADERS 1" >>confdefs.h
9c60689e 8883
a243b558 8884fi
9c60689e 8885
a243b558
JF
8886# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8887for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8888 inttypes.h stdint.h unistd.h
8889do :
8890 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8891ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8892"
8893if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8894 cat >>confdefs.h <<_ACEOF
8895#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8896_ACEOF
9c60689e 8897
a243b558 8898fi
ee134472 8899
a243b558 8900done
ee134472 8901
9c60689e 8902
a243b558
JF
8903for ac_header in dlfcn.h
8904do :
8905 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8906"
8907if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8908 cat >>confdefs.h <<_ACEOF
8909#define HAVE_DLFCN_H 1
8910_ACEOF
9c60689e 8911
a243b558 8912fi
9c60689e 8913
a243b558 8914done
9c60689e 8915
9c60689e 8916
9c60689e 8917
9c60689e 8918
a243b558
JF
8919func_stripname_cnf ()
8920{
9d54db95
JF
8921 case $2 in
8922 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8923 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
a243b558
JF
8924 esac
8925} # func_stripname_cnf
9c60689e 8926
9c60689e 8927
ee134472 8928
a243b558
JF
8929
8930
8931# Set options
8932# Check whether --enable-static was given.
8933if test "${enable_static+set}" = set; then :
8934 enableval=$enable_static; p=${PACKAGE-default}
8935 case $enableval in
8936 yes) enable_static=yes ;;
8937 no) enable_static=no ;;
8938 *)
8939 enable_static=no
8940 # Look at the argument we got. We use all the common list separators.
9d54db95 8941 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
a243b558 8942 for pkg in $enableval; do
9d54db95 8943 IFS=$lt_save_ifs
a243b558
JF
8944 if test "X$pkg" = "X$p"; then
8945 enable_static=yes
8946 fi
8947 done
9d54db95 8948 IFS=$lt_save_ifs
9c60689e 8949 ;;
a243b558
JF
8950 esac
8951else
8952 enable_static=no
8953fi
9c60689e 8954
9c60689e 8955
9c60689e 8956
9c60689e 8957
9c60689e 8958
9c60689e 8959
9c60689e 8960
9c60689e 8961
9c60689e 8962
9c60689e 8963
a243b558 8964 enable_dlopen=no
9c60689e 8965
9c60689e 8966
a243b558
JF
8967 enable_win32_dll=no
8968
8969
8970 # Check whether --enable-shared was given.
8971if test "${enable_shared+set}" = set; then :
8972 enableval=$enable_shared; p=${PACKAGE-default}
8973 case $enableval in
8974 yes) enable_shared=yes ;;
8975 no) enable_shared=no ;;
9c60689e 8976 *)
a243b558
JF
8977 enable_shared=no
8978 # Look at the argument we got. We use all the common list separators.
9d54db95 8979 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
a243b558 8980 for pkg in $enableval; do
9d54db95 8981 IFS=$lt_save_ifs
a243b558
JF
8982 if test "X$pkg" = "X$p"; then
8983 enable_shared=yes
8984 fi
8985 done
9d54db95 8986 IFS=$lt_save_ifs
9c60689e
DWT
8987 ;;
8988 esac
a243b558
JF
8989else
8990 enable_shared=yes
8991fi
9c60689e 8992
9c60689e 8993
9c60689e 8994
9c60689e 8995
9c60689e 8996
9c60689e 8997
9c60689e 8998
9c60689e 8999
9c60689e 9000
9c60689e 9001
9c60689e 9002
a243b558
JF
9003# Check whether --with-pic was given.
9004if test "${with_pic+set}" = set; then :
9005 withval=$with_pic; lt_p=${PACKAGE-default}
9006 case $withval in
9007 yes|no) pic_mode=$withval ;;
9008 *)
9009 pic_mode=default
9010 # Look at the argument we got. We use all the common list separators.
9d54db95 9011 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
a243b558 9012 for lt_pkg in $withval; do
9d54db95 9013 IFS=$lt_save_ifs
a243b558
JF
9014 if test "X$lt_pkg" = "X$lt_p"; then
9015 pic_mode=yes
9016 fi
9017 done
9d54db95 9018 IFS=$lt_save_ifs
a243b558
JF
9019 ;;
9020 esac
9021else
9022 pic_mode=default
9c60689e 9023fi
ee134472 9024
ee134472 9025
9c60689e 9026
9c60689e 9027
9c60689e 9028
ee134472 9029
ee134472 9030
9c60689e 9031
a243b558
JF
9032 # Check whether --enable-fast-install was given.
9033if test "${enable_fast_install+set}" = set; then :
9034 enableval=$enable_fast_install; p=${PACKAGE-default}
9035 case $enableval in
9036 yes) enable_fast_install=yes ;;
9037 no) enable_fast_install=no ;;
9038 *)
9039 enable_fast_install=no
9040 # Look at the argument we got. We use all the common list separators.
9d54db95 9041 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
a243b558 9042 for pkg in $enableval; do
9d54db95 9043 IFS=$lt_save_ifs
a243b558
JF
9044 if test "X$pkg" = "X$p"; then
9045 enable_fast_install=yes
9c60689e 9046 fi
a243b558 9047 done
9d54db95 9048 IFS=$lt_save_ifs
9c60689e 9049 ;;
a243b558
JF
9050 esac
9051else
9052 enable_fast_install=yes
9053fi
9c60689e 9054
9c60689e 9055
9c60689e 9056
9c60689e 9057
9c60689e
DWT
9058
9059
53ba6704 9060
9c60689e 9061
9d54db95
JF
9062 shared_archive_member_spec=
9063case $host,$enable_shared in
9064power*-*-aix[5-9]*,yes)
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9066$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9067
9068# Check whether --with-aix-soname was given.
9069if test "${with_aix_soname+set}" = set; then :
9070 withval=$with_aix_soname; case $withval in
9071 aix|svr4|both)
9072 ;;
9073 *)
9074 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9075 ;;
9076 esac
9077 lt_cv_with_aix_soname=$with_aix_soname
9078else
9079 if ${lt_cv_with_aix_soname+:} false; then :
9080 $as_echo_n "(cached) " >&6
9081else
9082 lt_cv_with_aix_soname=aix
9083fi
9084
9085 with_aix_soname=$lt_cv_with_aix_soname
9086fi
9087
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9089$as_echo "$with_aix_soname" >&6; }
9090 if test aix != "$with_aix_soname"; then
9091 # For the AIX way of multilib, we name the shared archive member
9092 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9093 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9094 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9095 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9096 if test 64 = "${OBJECT_MODE-32}"; then
9097 shared_archive_member_spec=shr_64
9098 else
9099 shared_archive_member_spec=shr
9100 fi
9101 fi
9102 ;;
9103*)
9104 with_aix_soname=aix
9105 ;;
9106esac
9107
9108
9109
9110
9111
9112
9113
9c60689e 9114
9c60689e 9115
9c60689e 9116
a243b558 9117# This can be used to rebuild libtool when needed
9d54db95 9118LIBTOOL_DEPS=$ltmain
9c60689e 9119
a243b558
JF
9120# Always use our own libtool.
9121LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9c60689e 9122
9c60689e 9123
9c60689e 9124
9c60689e 9125
9c60689e 9126
ee134472 9127
ee134472 9128
ee134472 9129
ee134472 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
9c60689e 9150
9c60689e 9151
a243b558 9152test -z "$LN_S" && LN_S="ln -s"
9c60689e
DWT
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9d54db95 9167if test -n "${ZSH_VERSION+set}"; then
a243b558
JF
9168 setopt NO_GLOB_SUBST
9169fi
9c60689e 9170
a243b558
JF
9171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9172$as_echo_n "checking for objdir... " >&6; }
9173if ${lt_cv_objdir+:} false; then :
ee134472
JF
9174 $as_echo_n "(cached) " >&6
9175else
a243b558
JF
9176 rm -f .libs 2>/dev/null
9177mkdir .libs 2>/dev/null
9178if test -d .libs; then
9179 lt_cv_objdir=.libs
9180else
9181 # MS-DOS does not allow filenames that begin with a dot.
9182 lt_cv_objdir=_libs
ee134472 9183fi
a243b558
JF
9184rmdir .libs 2>/dev/null
9185fi
9186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9187$as_echo "$lt_cv_objdir" >&6; }
9188objdir=$lt_cv_objdir
9c60689e
DWT
9189
9190
9191
9192
9193
a243b558
JF
9194cat >>confdefs.h <<_ACEOF
9195#define LT_OBJDIR "$lt_cv_objdir/"
9196_ACEOF
9c60689e
DWT
9197
9198
9199
9200
a243b558
JF
9201case $host_os in
9202aix3*)
9203 # AIX sometimes has problems with the GCC collect2 program. For some
9204 # reason, if we set the COLLECT_NAMES environment variable, the problems
9205 # vanish in a puff of smoke.
9d54db95 9206 if test set != "${COLLECT_NAMES+set}"; then
a243b558
JF
9207 COLLECT_NAMES=
9208 export COLLECT_NAMES
9209 fi
9210 ;;
9211esac
9c60689e 9212
a243b558
JF
9213# Global variables:
9214ofile=libtool
9215can_build_shared=yes
9c60689e 9216
9d54db95 9217# All known linkers require a '.a' archive for static linking (except MSVC,
a243b558
JF
9218# which needs '.lib').
9219libext=a
9c60689e 9220
9d54db95 9221with_gnu_ld=$lt_cv_prog_gnu_ld
9c60689e 9222
9d54db95
JF
9223old_CC=$CC
9224old_CFLAGS=$CFLAGS
9c60689e 9225
a243b558
JF
9226# Set sane defaults for various variables
9227test -z "$CC" && CC=cc
9228test -z "$LTCC" && LTCC=$CC
9229test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9230test -z "$LD" && LD=ld
9231test -z "$ac_objext" && ac_objext=o
9c60689e 9232
9d54db95
JF
9233func_cc_basename $compiler
9234cc_basename=$func_cc_basename_result
9c60689e
DWT
9235
9236
a243b558
JF
9237# Only perform the check for file, if the check method requires it
9238test -z "$MAGIC_CMD" && MAGIC_CMD=file
9239case $deplibs_check_method in
9240file_magic*)
9241 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9243$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9244if ${lt_cv_path_MAGIC_CMD+:} false; then :
9245 $as_echo_n "(cached) " >&6
9246else
9247 case $MAGIC_CMD in
9248[\\/*] | ?:[\\/]*)
9d54db95 9249 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
a243b558
JF
9250 ;;
9251*)
9d54db95
JF
9252 lt_save_MAGIC_CMD=$MAGIC_CMD
9253 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
a243b558
JF
9254 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9255 for ac_dir in $ac_dummy; do
9d54db95 9256 IFS=$lt_save_ifs
a243b558 9257 test -z "$ac_dir" && ac_dir=.
9d54db95
JF
9258 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9259 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
a243b558
JF
9260 if test -n "$file_magic_test_file"; then
9261 case $deplibs_check_method in
9262 "file_magic "*)
9263 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9d54db95 9264 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
a243b558
JF
9265 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9266 $EGREP "$file_magic_regex" > /dev/null; then
9267 :
9268 else
9269 cat <<_LT_EOF 1>&2
9c60689e 9270
a243b558
JF
9271*** Warning: the command libtool uses to detect shared libraries,
9272*** $file_magic_cmd, produces output that libtool cannot recognize.
9273*** The result is that libtool may fail to recognize shared libraries
9274*** as such. This will affect the creation of libtool libraries that
9275*** depend on shared libraries, but programs linked with such libtool
9276*** libraries will work regardless of this problem. Nevertheless, you
9277*** may want to report the problem to your system manager and/or to
9278*** bug-libtool@gnu.org
9c60689e 9279
a243b558
JF
9280_LT_EOF
9281 fi ;;
9282 esac
9283 fi
9284 break
9285 fi
9286 done
9d54db95
JF
9287 IFS=$lt_save_ifs
9288 MAGIC_CMD=$lt_save_MAGIC_CMD
a243b558
JF
9289 ;;
9290esac
9291fi
9c60689e 9292
9d54db95 9293MAGIC_CMD=$lt_cv_path_MAGIC_CMD
a243b558
JF
9294if test -n "$MAGIC_CMD"; then
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9296$as_echo "$MAGIC_CMD" >&6; }
9297else
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9299$as_echo "no" >&6; }
9300fi
9c60689e
DWT
9301
9302
9303
9304
9305
a243b558
JF
9306if test -z "$lt_cv_path_MAGIC_CMD"; then
9307 if test -n "$ac_tool_prefix"; then
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9309$as_echo_n "checking for file... " >&6; }
9310if ${lt_cv_path_MAGIC_CMD+:} false; then :
9311 $as_echo_n "(cached) " >&6
9312else
9313 case $MAGIC_CMD in
9314[\\/*] | ?:[\\/]*)
9d54db95 9315 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
a243b558
JF
9316 ;;
9317*)
9d54db95
JF
9318 lt_save_MAGIC_CMD=$MAGIC_CMD
9319 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
a243b558
JF
9320 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9321 for ac_dir in $ac_dummy; do
9d54db95 9322 IFS=$lt_save_ifs
a243b558 9323 test -z "$ac_dir" && ac_dir=.
9d54db95
JF
9324 if test -f "$ac_dir/file"; then
9325 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
a243b558
JF
9326 if test -n "$file_magic_test_file"; then
9327 case $deplibs_check_method in
9328 "file_magic "*)
9329 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9d54db95 9330 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
a243b558
JF
9331 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9332 $EGREP "$file_magic_regex" > /dev/null; then
9333 :
9334 else
9335 cat <<_LT_EOF 1>&2
9c60689e 9336
a243b558
JF
9337*** Warning: the command libtool uses to detect shared libraries,
9338*** $file_magic_cmd, produces output that libtool cannot recognize.
9339*** The result is that libtool may fail to recognize shared libraries
9340*** as such. This will affect the creation of libtool libraries that
9341*** depend on shared libraries, but programs linked with such libtool
9342*** libraries will work regardless of this problem. Nevertheless, you
9343*** may want to report the problem to your system manager and/or to
9344*** bug-libtool@gnu.org
9c60689e 9345
a243b558
JF
9346_LT_EOF
9347 fi ;;
9348 esac
9349 fi
9350 break
9351 fi
9352 done
9d54db95
JF
9353 IFS=$lt_save_ifs
9354 MAGIC_CMD=$lt_save_MAGIC_CMD
a243b558
JF
9355 ;;
9356esac
9357fi
9c60689e 9358
9d54db95 9359MAGIC_CMD=$lt_cv_path_MAGIC_CMD
a243b558
JF
9360if test -n "$MAGIC_CMD"; then
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9362$as_echo "$MAGIC_CMD" >&6; }
9363else
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9365$as_echo "no" >&6; }
9366fi
9c60689e
DWT
9367
9368
a243b558
JF
9369 else
9370 MAGIC_CMD=:
9371 fi
9372fi
9c60689e 9373
a243b558
JF
9374 fi
9375 ;;
9376esac
9c60689e 9377
a243b558 9378# Use C for the default configuration in the libtool script
9c60689e 9379
9d54db95 9380lt_save_CC=$CC
a243b558
JF
9381ac_ext=c
9382ac_cpp='$CPP $CPPFLAGS'
9383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9385ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e
DWT
9386
9387
a243b558
JF
9388# Source file extension for C test sources.
9389ac_ext=c
9c60689e 9390
a243b558
JF
9391# Object file extension for compiled C test sources.
9392objext=o
9393objext=$objext
9c60689e 9394
a243b558
JF
9395# Code to be used in simple compile tests
9396lt_simple_compile_test_code="int some_variable = 0;"
9c60689e 9397
a243b558
JF
9398# Code to be used in simple link tests
9399lt_simple_link_test_code='int main(){return(0);}'
9c60689e
DWT
9400
9401
9402
9403
9404
9405
9406
a243b558
JF
9407# If no C compiler was specified, use CC.
9408LTCC=${LTCC-"$CC"}
9c60689e 9409
a243b558
JF
9410# If no C compiler flags were specified, use CFLAGS.
9411LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9c60689e 9412
a243b558
JF
9413# Allow CC to be a program name with arguments.
9414compiler=$CC
9c60689e 9415
a243b558
JF
9416# Save the default compiler, since it gets overwritten when the other
9417# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9418compiler_DEFAULT=$CC
9c60689e 9419
a243b558
JF
9420# save warnings/boilerplate of simple test code
9421ac_outfile=conftest.$ac_objext
9422echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9423eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9424_lt_compiler_boilerplate=`cat conftest.err`
00a96142 9425$RM -r conftest*
9c60689e 9426
a243b558
JF
9427ac_outfile=conftest.$ac_objext
9428echo "$lt_simple_link_test_code" >conftest.$ac_ext
9429eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9430_lt_linker_boilerplate=`cat conftest.err`
9431$RM -r conftest*
9c60689e
DWT
9432
9433
a243b558
JF
9434## CAVEAT EMPTOR:
9435## There is no encapsulation within the following macros, do not change
9436## the running order or otherwise move them around unless you know exactly
9437## what you are doing...
9438if test -n "$compiler"; then
9c60689e 9439
a243b558 9440lt_prog_compiler_no_builtin_flag=
9c60689e 9441
9d54db95 9442if test yes = "$GCC"; then
a243b558
JF
9443 case $cc_basename in
9444 nvcc*)
9445 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9446 *)
9447 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9448 esac
9c60689e 9449
a243b558
JF
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9451$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9452if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9453 $as_echo_n "(cached) " >&6
9454else
9455 lt_cv_prog_compiler_rtti_exceptions=no
9456 ac_outfile=conftest.$ac_objext
9457 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9d54db95 9458 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
a243b558
JF
9459 # Insert the option either (1) after the last *FLAGS variable, or
9460 # (2) before a word containing "conftest.", or (3) at the end.
9461 # Note that $ac_compile itself does not contain backslashes and begins
9462 # with a dollar sign (not a hyphen), so the echo should work correctly.
9463 # The option is referenced via a variable to avoid confusing sed.
9464 lt_compile=`echo "$ac_compile" | $SED \
9465 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9466 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9467 -e 's:$: $lt_compiler_flag:'`
9468 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9469 (eval "$lt_compile" 2>conftest.err)
9470 ac_status=$?
9471 cat conftest.err >&5
9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473 if (exit $ac_status) && test -s "$ac_outfile"; then
9474 # The compiler can only warn and ignore the option if not recognized
9475 # So say no if there are warnings other than the usual output.
9476 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9477 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9478 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9479 lt_cv_prog_compiler_rtti_exceptions=yes
9480 fi
9481 fi
00a96142 9482 $RM -r conftest*
9c60689e 9483
a243b558
JF
9484fi
9485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9486$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9c60689e 9487
9d54db95 9488if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
a243b558
JF
9489 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9490else
9491 :
9492fi
9c60689e 9493
a243b558 9494fi
9c60689e
DWT
9495
9496
9497
9498
9499
9500
a243b558
JF
9501 lt_prog_compiler_wl=
9502lt_prog_compiler_pic=
9503lt_prog_compiler_static=
9c60689e
DWT
9504
9505
9d54db95 9506 if test yes = "$GCC"; then
a243b558
JF
9507 lt_prog_compiler_wl='-Wl,'
9508 lt_prog_compiler_static='-static'
9c60689e 9509
a243b558
JF
9510 case $host_os in
9511 aix*)
9512 # All AIX code is PIC.
9d54db95 9513 if test ia64 = "$host_cpu"; then
a243b558
JF
9514 # AIX 5 now supports IA64 processor
9515 lt_prog_compiler_static='-Bstatic'
9516 fi
9d54db95 9517 lt_prog_compiler_pic='-fPIC'
a243b558 9518 ;;
9c60689e 9519
a243b558
JF
9520 amigaos*)
9521 case $host_cpu in
9522 powerpc)
9523 # see comment about AmigaOS4 .so support
9524 lt_prog_compiler_pic='-fPIC'
9525 ;;
9526 m68k)
9527 # FIXME: we need at least 68020 code to build shared libraries, but
9d54db95
JF
9528 # adding the '-m68020' flag to GCC prevents building anything better,
9529 # like '-m68040'.
a243b558
JF
9530 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9531 ;;
9532 esac
9533 ;;
9c60689e 9534
a243b558
JF
9535 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9536 # PIC is the default for these OSes.
9537 ;;
9c60689e 9538
a243b558
JF
9539 mingw* | cygwin* | pw32* | os2* | cegcc*)
9540 # This hack is so that the source file can tell whether it is being
9541 # built for inclusion in a dll (and should export symbols for example).
9542 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9543 # (--disable-auto-import) libraries
9544 lt_prog_compiler_pic='-DDLL_EXPORT'
9d54db95
JF
9545 case $host_os in
9546 os2*)
9547 lt_prog_compiler_static='$wl-static'
9548 ;;
9549 esac
a243b558 9550 ;;
9c60689e 9551
a243b558
JF
9552 darwin* | rhapsody*)
9553 # PIC is the default on this platform
9554 # Common symbols not allowed in MH_DYLIB files
9555 lt_prog_compiler_pic='-fno-common'
9556 ;;
9c60689e 9557
a243b558
JF
9558 haiku*)
9559 # PIC is the default for Haiku.
9560 # The "-static" flag exists, but is broken.
9561 lt_prog_compiler_static=
9562 ;;
9c60689e 9563
a243b558
JF
9564 hpux*)
9565 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9566 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9567 # sets the default TLS model and affects inlining.
9568 case $host_cpu in
9569 hppa*64*)
9570 # +Z the default
9571 ;;
9572 *)
9573 lt_prog_compiler_pic='-fPIC'
9574 ;;
9575 esac
9576 ;;
9c60689e 9577
a243b558
JF
9578 interix[3-9]*)
9579 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9580 # Instead, we relocate shared libraries at runtime.
9581 ;;
9c60689e 9582
a243b558
JF
9583 msdosdjgpp*)
9584 # Just because we use GCC doesn't mean we suddenly get shared libraries
9585 # on systems that don't support them.
9586 lt_prog_compiler_can_build_shared=no
9587 enable_shared=no
9588 ;;
9c60689e 9589
a243b558
JF
9590 *nto* | *qnx*)
9591 # QNX uses GNU C++, but need to define -shared option too, otherwise
9592 # it will coredump.
9593 lt_prog_compiler_pic='-fPIC -shared'
9594 ;;
9c60689e 9595
a243b558
JF
9596 sysv4*MP*)
9597 if test -d /usr/nec; then
9598 lt_prog_compiler_pic=-Kconform_pic
9599 fi
9600 ;;
9c60689e 9601
a243b558
JF
9602 *)
9603 lt_prog_compiler_pic='-fPIC'
9604 ;;
9605 esac
9c60689e 9606
a243b558
JF
9607 case $cc_basename in
9608 nvcc*) # Cuda Compiler Driver 2.2
9609 lt_prog_compiler_wl='-Xlinker '
9610 if test -n "$lt_prog_compiler_pic"; then
9611 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9612 fi
9613 ;;
9614 esac
9615 else
9616 # PORTME Check for flag to pass linker flags through the system compiler.
9617 case $host_os in
9618 aix*)
9619 lt_prog_compiler_wl='-Wl,'
9d54db95 9620 if test ia64 = "$host_cpu"; then
a243b558
JF
9621 # AIX 5 now supports IA64 processor
9622 lt_prog_compiler_static='-Bstatic'
9623 else
9624 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9625 fi
9626 ;;
9c60689e 9627
9d54db95
JF
9628 darwin* | rhapsody*)
9629 # PIC is the default on this platform
9630 # Common symbols not allowed in MH_DYLIB files
9631 lt_prog_compiler_pic='-fno-common'
9632 case $cc_basename in
9633 nagfor*)
9634 # NAG Fortran compiler
9635 lt_prog_compiler_wl='-Wl,-Wl,,'
9636 lt_prog_compiler_pic='-PIC'
9637 lt_prog_compiler_static='-Bstatic'
9638 ;;
9639 esac
9640 ;;
9641
a243b558
JF
9642 mingw* | cygwin* | pw32* | os2* | cegcc*)
9643 # This hack is so that the source file can tell whether it is being
9644 # built for inclusion in a dll (and should export symbols for example).
9645 lt_prog_compiler_pic='-DDLL_EXPORT'
9d54db95
JF
9646 case $host_os in
9647 os2*)
9648 lt_prog_compiler_static='$wl-static'
9649 ;;
9650 esac
a243b558 9651 ;;
9c60689e 9652
a243b558
JF
9653 hpux9* | hpux10* | hpux11*)
9654 lt_prog_compiler_wl='-Wl,'
9655 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9656 # not for PA HP-UX.
9657 case $host_cpu in
9658 hppa*64*|ia64*)
9659 # +Z the default
9660 ;;
9661 *)
9662 lt_prog_compiler_pic='+Z'
9663 ;;
9664 esac
9665 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9d54db95 9666 lt_prog_compiler_static='$wl-a ${wl}archive'
a243b558 9667 ;;
9c60689e 9668
a243b558
JF
9669 irix5* | irix6* | nonstopux*)
9670 lt_prog_compiler_wl='-Wl,'
9671 # PIC (with -KPIC) is the default.
9672 lt_prog_compiler_static='-non_shared'
9673 ;;
9c60689e 9674
9d54db95 9675 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
a243b558 9676 case $cc_basename in
9d54db95 9677 # old Intel for x86_64, which still supported -KPIC.
a243b558
JF
9678 ecc*)
9679 lt_prog_compiler_wl='-Wl,'
9680 lt_prog_compiler_pic='-KPIC'
9681 lt_prog_compiler_static='-static'
9682 ;;
9683 # icc used to be incompatible with GCC.
9684 # ICC 10 doesn't accept -KPIC any more.
9685 icc* | ifort*)
9686 lt_prog_compiler_wl='-Wl,'
9687 lt_prog_compiler_pic='-fPIC'
9688 lt_prog_compiler_static='-static'
9689 ;;
9690 # Lahey Fortran 8.1.
9691 lf95*)
9692 lt_prog_compiler_wl='-Wl,'
9693 lt_prog_compiler_pic='--shared'
9694 lt_prog_compiler_static='--static'
9695 ;;
9696 nagfor*)
9697 # NAG Fortran compiler
9698 lt_prog_compiler_wl='-Wl,-Wl,,'
9699 lt_prog_compiler_pic='-PIC'
9700 lt_prog_compiler_static='-Bstatic'
9701 ;;
9d54db95
JF
9702 tcc*)
9703 # Fabrice Bellard et al's Tiny C Compiler
9704 lt_prog_compiler_wl='-Wl,'
9705 lt_prog_compiler_pic='-fPIC'
9706 lt_prog_compiler_static='-static'
9707 ;;
a243b558
JF
9708 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9709 # Portland Group compilers (*not* the Pentium gcc compiler,
9710 # which looks to be a dead project)
9711 lt_prog_compiler_wl='-Wl,'
9712 lt_prog_compiler_pic='-fpic'
9713 lt_prog_compiler_static='-Bstatic'
9714 ;;
9715 ccc*)
9716 lt_prog_compiler_wl='-Wl,'
9717 # All Alpha code is PIC.
9718 lt_prog_compiler_static='-non_shared'
9719 ;;
9720 xl* | bgxl* | bgf* | mpixl*)
9721 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9722 lt_prog_compiler_wl='-Wl,'
9723 lt_prog_compiler_pic='-qpic'
9724 lt_prog_compiler_static='-qstaticlink'
9725 ;;
9726 *)
9727 case `$CC -V 2>&1 | sed 5q` in
9728 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9729 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9730 lt_prog_compiler_pic='-KPIC'
9731 lt_prog_compiler_static='-Bstatic'
9732 lt_prog_compiler_wl=''
9733 ;;
9734 *Sun\ F* | *Sun*Fortran*)
9735 lt_prog_compiler_pic='-KPIC'
9736 lt_prog_compiler_static='-Bstatic'
9737 lt_prog_compiler_wl='-Qoption ld '
9738 ;;
9739 *Sun\ C*)
9740 # Sun C 5.9
9741 lt_prog_compiler_pic='-KPIC'
9742 lt_prog_compiler_static='-Bstatic'
9743 lt_prog_compiler_wl='-Wl,'
9744 ;;
9745 *Intel*\ [CF]*Compiler*)
9746 lt_prog_compiler_wl='-Wl,'
9747 lt_prog_compiler_pic='-fPIC'
9748 lt_prog_compiler_static='-static'
9749 ;;
9750 *Portland\ Group*)
9751 lt_prog_compiler_wl='-Wl,'
9752 lt_prog_compiler_pic='-fpic'
9753 lt_prog_compiler_static='-Bstatic'
9754 ;;
9755 esac
9756 ;;
9757 esac
9758 ;;
9c60689e 9759
a243b558
JF
9760 newsos6)
9761 lt_prog_compiler_pic='-KPIC'
9762 lt_prog_compiler_static='-Bstatic'
9763 ;;
9c60689e 9764
a243b558
JF
9765 *nto* | *qnx*)
9766 # QNX uses GNU C++, but need to define -shared option too, otherwise
9767 # it will coredump.
9768 lt_prog_compiler_pic='-fPIC -shared'
9769 ;;
9c60689e 9770
a243b558
JF
9771 osf3* | osf4* | osf5*)
9772 lt_prog_compiler_wl='-Wl,'
9773 # All OSF/1 code is PIC.
9774 lt_prog_compiler_static='-non_shared'
9775 ;;
9c60689e 9776
a243b558
JF
9777 rdos*)
9778 lt_prog_compiler_static='-non_shared'
9779 ;;
9c60689e 9780
a243b558
JF
9781 solaris*)
9782 lt_prog_compiler_pic='-KPIC'
9783 lt_prog_compiler_static='-Bstatic'
9784 case $cc_basename in
9785 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9786 lt_prog_compiler_wl='-Qoption ld ';;
9787 *)
9788 lt_prog_compiler_wl='-Wl,';;
9789 esac
9790 ;;
9c60689e 9791
a243b558
JF
9792 sunos4*)
9793 lt_prog_compiler_wl='-Qoption ld '
9794 lt_prog_compiler_pic='-PIC'
9795 lt_prog_compiler_static='-Bstatic'
9796 ;;
9c60689e 9797
a243b558
JF
9798 sysv4 | sysv4.2uw2* | sysv4.3*)
9799 lt_prog_compiler_wl='-Wl,'
9800 lt_prog_compiler_pic='-KPIC'
9801 lt_prog_compiler_static='-Bstatic'
9802 ;;
9c60689e 9803
a243b558 9804 sysv4*MP*)
9d54db95 9805 if test -d /usr/nec; then
a243b558
JF
9806 lt_prog_compiler_pic='-Kconform_pic'
9807 lt_prog_compiler_static='-Bstatic'
9808 fi
9809 ;;
9c60689e 9810
a243b558
JF
9811 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9812 lt_prog_compiler_wl='-Wl,'
9813 lt_prog_compiler_pic='-KPIC'
9814 lt_prog_compiler_static='-Bstatic'
9815 ;;
9c60689e 9816
a243b558
JF
9817 unicos*)
9818 lt_prog_compiler_wl='-Wl,'
9819 lt_prog_compiler_can_build_shared=no
9820 ;;
9c60689e 9821
a243b558
JF
9822 uts4*)
9823 lt_prog_compiler_pic='-pic'
9824 lt_prog_compiler_static='-Bstatic'
9825 ;;
9c60689e 9826
a243b558
JF
9827 *)
9828 lt_prog_compiler_can_build_shared=no
9829 ;;
9830 esac
9831 fi
9c60689e 9832
a243b558 9833case $host_os in
9d54db95 9834 # For platforms that do not support PIC, -DPIC is meaningless:
a243b558
JF
9835 *djgpp*)
9836 lt_prog_compiler_pic=
9837 ;;
9838 *)
9839 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9840 ;;
9841esac
9c60689e 9842
a243b558
JF
9843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9844$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9845if ${lt_cv_prog_compiler_pic+:} false; then :
9846 $as_echo_n "(cached) " >&6
9847else
9848 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9849fi
9850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9851$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9852lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9c60689e 9853
a243b558
JF
9854#
9855# Check to make sure the PIC flag actually works.
9856#
9857if test -n "$lt_prog_compiler_pic"; then
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9859$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9860if ${lt_cv_prog_compiler_pic_works+:} false; then :
9861 $as_echo_n "(cached) " >&6
9862else
9863 lt_cv_prog_compiler_pic_works=no
9864 ac_outfile=conftest.$ac_objext
9865 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9d54db95 9866 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
a243b558
JF
9867 # Insert the option either (1) after the last *FLAGS variable, or
9868 # (2) before a word containing "conftest.", or (3) at the end.
9869 # Note that $ac_compile itself does not contain backslashes and begins
9870 # with a dollar sign (not a hyphen), so the echo should work correctly.
9871 # The option is referenced via a variable to avoid confusing sed.
9872 lt_compile=`echo "$ac_compile" | $SED \
9873 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9874 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9875 -e 's:$: $lt_compiler_flag:'`
9876 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9877 (eval "$lt_compile" 2>conftest.err)
9878 ac_status=$?
9879 cat conftest.err >&5
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 if (exit $ac_status) && test -s "$ac_outfile"; then
9882 # The compiler can only warn and ignore the option if not recognized
9883 # So say no if there are warnings other than the usual output.
9884 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9885 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9886 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9887 lt_cv_prog_compiler_pic_works=yes
9888 fi
9889 fi
00a96142 9890 $RM -r conftest*
9c60689e 9891
a243b558
JF
9892fi
9893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9894$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9c60689e 9895
9d54db95 9896if test yes = "$lt_cv_prog_compiler_pic_works"; then
a243b558
JF
9897 case $lt_prog_compiler_pic in
9898 "" | " "*) ;;
9899 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9900 esac
9901else
9902 lt_prog_compiler_pic=
9903 lt_prog_compiler_can_build_shared=no
9904fi
9c60689e 9905
a243b558 9906fi
9c60689e
DWT
9907
9908
9909
9910
9911
9912
9c60689e
DWT
9913
9914
9915
9916
9917
a243b558
JF
9918#
9919# Check to make sure the static flag actually works.
9920#
9921wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9923$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9924if ${lt_cv_prog_compiler_static_works+:} false; then :
9925 $as_echo_n "(cached) " >&6
9926else
9927 lt_cv_prog_compiler_static_works=no
9d54db95 9928 save_LDFLAGS=$LDFLAGS
a243b558
JF
9929 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9930 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9931 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9932 # The linker can only warn and ignore the option if not recognized
9933 # So say no if there are warnings
9934 if test -s conftest.err; then
9935 # Append any errors to the config.log.
9936 cat conftest.err 1>&5
9937 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9938 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9939 if diff conftest.exp conftest.er2 >/dev/null; then
9940 lt_cv_prog_compiler_static_works=yes
9941 fi
9942 else
9943 lt_cv_prog_compiler_static_works=yes
9944 fi
9945 fi
9946 $RM -r conftest*
9d54db95 9947 LDFLAGS=$save_LDFLAGS
9c60689e 9948
a243b558
JF
9949fi
9950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9951$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9c60689e 9952
9d54db95 9953if test yes = "$lt_cv_prog_compiler_static_works"; then
a243b558 9954 :
9c60689e 9955else
a243b558 9956 lt_prog_compiler_static=
9c60689e 9957fi
9c60689e 9958
9c60689e 9959
9c60689e 9960
9c60689e 9961
9c60689e 9962
9c60689e 9963
9c60689e 9964
a243b558
JF
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9966$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9967if ${lt_cv_prog_compiler_c_o+:} false; then :
9968 $as_echo_n "(cached) " >&6
9969else
9970 lt_cv_prog_compiler_c_o=no
9971 $RM -r conftest 2>/dev/null
9972 mkdir conftest
9973 cd conftest
9974 mkdir out
9975 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9c60689e 9976
a243b558
JF
9977 lt_compiler_flag="-o out/conftest2.$ac_objext"
9978 # Insert the option either (1) after the last *FLAGS variable, or
9979 # (2) before a word containing "conftest.", or (3) at the end.
9980 # Note that $ac_compile itself does not contain backslashes and begins
9981 # with a dollar sign (not a hyphen), so the echo should work correctly.
9982 lt_compile=`echo "$ac_compile" | $SED \
9983 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9984 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9985 -e 's:$: $lt_compiler_flag:'`
9986 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9987 (eval "$lt_compile" 2>out/conftest.err)
9988 ac_status=$?
9989 cat out/conftest.err >&5
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9992 then
9993 # The compiler can only warn and ignore the option if not recognized
9994 # So say no if there are warnings
9995 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9996 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9997 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9998 lt_cv_prog_compiler_c_o=yes
9999 fi
10000 fi
10001 chmod u+w . 2>&5
00a96142 10002 $RM -r conftest*
a243b558
JF
10003 # SGI C++ compiler will create directory out/ii_files/ for
10004 # template instantiation
10005 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10006 $RM out/* && rmdir out
10007 cd ..
10008 $RM -r conftest
00a96142 10009 $RM -r conftest*
9c60689e 10010
a243b558
JF
10011fi
10012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10013$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9c60689e 10014
ee134472 10015
ee134472 10016
ee134472 10017
ee134472 10018
9c60689e 10019
a243b558
JF
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10021$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10022if ${lt_cv_prog_compiler_c_o+:} false; then :
10023 $as_echo_n "(cached) " >&6
10024else
10025 lt_cv_prog_compiler_c_o=no
10026 $RM -r conftest 2>/dev/null
10027 mkdir conftest
10028 cd conftest
10029 mkdir out
10030 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9c60689e 10031
a243b558
JF
10032 lt_compiler_flag="-o out/conftest2.$ac_objext"
10033 # Insert the option either (1) after the last *FLAGS variable, or
10034 # (2) before a word containing "conftest.", or (3) at the end.
10035 # Note that $ac_compile itself does not contain backslashes and begins
10036 # with a dollar sign (not a hyphen), so the echo should work correctly.
10037 lt_compile=`echo "$ac_compile" | $SED \
10038 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10039 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10040 -e 's:$: $lt_compiler_flag:'`
10041 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10042 (eval "$lt_compile" 2>out/conftest.err)
10043 ac_status=$?
10044 cat out/conftest.err >&5
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10047 then
10048 # The compiler can only warn and ignore the option if not recognized
10049 # So say no if there are warnings
10050 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10051 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10052 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10053 lt_cv_prog_compiler_c_o=yes
10054 fi
10055 fi
10056 chmod u+w . 2>&5
00a96142 10057 $RM -r conftest*
a243b558
JF
10058 # SGI C++ compiler will create directory out/ii_files/ for
10059 # template instantiation
10060 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10061 $RM out/* && rmdir out
10062 cd ..
10063 $RM -r conftest
00a96142 10064 $RM -r conftest*
9c60689e 10065
a243b558
JF
10066fi
10067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10068$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9c60689e 10069
9c60689e 10070
a243b558
JF
10071
10072
9d54db95
JF
10073hard_links=nottested
10074if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
a243b558
JF
10075 # do not overwrite the value of need_locks provided by the user
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10077$as_echo_n "checking if we can lock with hard links... " >&6; }
10078 hard_links=yes
00a96142 10079 $RM -r conftest*
a243b558
JF
10080 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10081 touch conftest.a
10082 ln conftest.a conftest.b 2>&5 || hard_links=no
10083 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10085$as_echo "$hard_links" >&6; }
9d54db95
JF
10086 if test no = "$hard_links"; then
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10088$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
a243b558 10089 need_locks=warn
9c60689e 10090 fi
a243b558
JF
10091else
10092 need_locks=no
10093fi
9c60689e 10094
ee134472 10095
9c60689e 10096
9c60689e 10097
9c60689e 10098
a243b558
JF
10099
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10101$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10102
10103 runpath_var=
10104 allow_undefined_flag=
10105 always_export_symbols=no
10106 archive_cmds=
10107 archive_expsym_cmds=
10108 compiler_needs_object=no
10109 enable_shared_with_static_runtimes=no
10110 export_dynamic_flag_spec=
10111 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10112 hardcode_automatic=no
10113 hardcode_direct=no
10114 hardcode_direct_absolute=no
10115 hardcode_libdir_flag_spec=
10116 hardcode_libdir_separator=
10117 hardcode_minus_L=no
10118 hardcode_shlibpath_var=unsupported
10119 inherit_rpath=no
10120 link_all_deplibs=unknown
10121 module_cmds=
10122 module_expsym_cmds=
10123 old_archive_from_new_cmds=
10124 old_archive_from_expsyms_cmds=
10125 thread_safe_flag_spec=
10126 whole_archive_flag_spec=
10127 # include_expsyms should be a list of space-separated symbols to be *always*
10128 # included in the symbol list
10129 include_expsyms=
10130 # exclude_expsyms can be an extended regexp of symbols to exclude
9d54db95
JF
10131 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10132 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10133 # as well as any symbol that contains 'd'.
a243b558
JF
10134 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10135 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10136 # platforms (ab)use it in PIC code, but their linkers get confused if
10137 # the symbol is explicitly referenced. Since portable code cannot
10138 # rely on this symbol name, it's probably fine to never include it in
10139 # preloaded symbol tables.
10140 # Exclude shared library initialization/finalization symbols.
10141 extract_expsyms_cmds=
10142
9c60689e 10143 case $host_os in
a243b558
JF
10144 cygwin* | mingw* | pw32* | cegcc*)
10145 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10146 # When not using gcc, we currently assume that we are using
10147 # Microsoft Visual C++.
9d54db95 10148 if test yes != "$GCC"; then
a243b558
JF
10149 with_gnu_ld=no
10150 fi
9c60689e 10151 ;;
a243b558
JF
10152 interix*)
10153 # we just hope/assume this is gcc and not c89 (= MSVC++)
10154 with_gnu_ld=yes
10155 ;;
9d54db95 10156 openbsd* | bitrig*)
a243b558 10157 with_gnu_ld=no
9c60689e
DWT
10158 ;;
10159 esac
9c60689e 10160
a243b558 10161 ld_shlibs=yes
ee134472 10162
a243b558
JF
10163 # On some targets, GNU ld is compatible enough with the native linker
10164 # that we're better off using the native interface for both.
10165 lt_use_gnu_ld_interface=no
9d54db95 10166 if test yes = "$with_gnu_ld"; then
a243b558
JF
10167 case $host_os in
10168 aix*)
10169 # The AIX port of GNU ld has always aspired to compatibility
10170 # with the native linker. However, as the warning in the GNU ld
10171 # block says, versions before 2.19.5* couldn't really create working
10172 # shared libraries, regardless of the interface used.
10173 case `$LD -v 2>&1` in
10174 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10175 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10176 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10177 *)
10178 lt_use_gnu_ld_interface=yes
10179 ;;
10180 esac
10181 ;;
10182 *)
10183 lt_use_gnu_ld_interface=yes
10184 ;;
10185 esac
10186 fi
9c60689e 10187
9d54db95 10188 if test yes = "$lt_use_gnu_ld_interface"; then
a243b558 10189 # If archive_cmds runs LD, not CC, wlarc should be empty
9d54db95 10190 wlarc='$wl'
9c60689e 10191
a243b558
JF
10192 # Set some defaults for GNU ld with shared library support. These
10193 # are reset later if shared libraries are not supported. Putting them
10194 # here allows them to be overridden if necessary.
10195 runpath_var=LD_RUN_PATH
9d54db95
JF
10196 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10197 export_dynamic_flag_spec='$wl--export-dynamic'
a243b558
JF
10198 # ancient GNU ld didn't support --whole-archive et. al.
10199 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9d54db95 10200 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
a243b558
JF
10201 else
10202 whole_archive_flag_spec=
10203 fi
10204 supports_anon_versioning=no
9d54db95 10205 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
a243b558
JF
10206 *GNU\ gold*) supports_anon_versioning=yes ;;
10207 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10208 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10209 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10210 *\ 2.11.*) ;; # other 2.11 versions
10211 *) supports_anon_versioning=yes ;;
10212 esac
ee134472 10213
a243b558
JF
10214 # See if GNU ld supports shared libraries.
10215 case $host_os in
10216 aix[3-9]*)
10217 # On AIX/PPC, the GNU linker is very broken
9d54db95 10218 if test ia64 != "$host_cpu"; then
a243b558
JF
10219 ld_shlibs=no
10220 cat <<_LT_EOF 1>&2
ee134472 10221
a243b558
JF
10222*** Warning: the GNU linker, at least up to release 2.19, is reported
10223*** to be unable to reliably create shared libraries on AIX.
10224*** Therefore, libtool is disabling shared libraries support. If you
10225*** really care for shared libraries, you may want to install binutils
10226*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10227*** You will then need to restart the configuration process.
9c60689e 10228
a243b558
JF
10229_LT_EOF
10230 fi
10231 ;;
9c60689e 10232
a243b558
JF
10233 amigaos*)
10234 case $host_cpu in
10235 powerpc)
10236 # see comment about AmigaOS4 .so support
9d54db95 10237 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
a243b558
JF
10238 archive_expsym_cmds=''
10239 ;;
10240 m68k)
10241 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)'
10242 hardcode_libdir_flag_spec='-L$libdir'
10243 hardcode_minus_L=yes
10244 ;;
10245 esac
10246 ;;
9c60689e 10247
a243b558
JF
10248 beos*)
10249 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10250 allow_undefined_flag=unsupported
10251 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10252 # support --undefined. This deserves some investigation. FIXME
9d54db95 10253 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
a243b558
JF
10254 else
10255 ld_shlibs=no
10256 fi
10257 ;;
9c60689e 10258
a243b558
JF
10259 cygwin* | mingw* | pw32* | cegcc*)
10260 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10261 # as there is no search path for DLLs.
10262 hardcode_libdir_flag_spec='-L$libdir'
9d54db95 10263 export_dynamic_flag_spec='$wl--export-all-symbols'
a243b558
JF
10264 allow_undefined_flag=unsupported
10265 always_export_symbols=no
10266 enable_shared_with_static_runtimes=yes
10267 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'
10268 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9c60689e 10269
a243b558 10270 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9d54db95
JF
10271 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10272 # If the export-symbols file already is a .def file, use it as
10273 # is; otherwise, prepend EXPORTS...
10274 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10275 cp $export_symbols $output_objdir/$soname.def;
10276 else
10277 echo EXPORTS > $output_objdir/$soname.def;
10278 cat $export_symbols >> $output_objdir/$soname.def;
10279 fi~
10280 $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
10281 else
10282 ld_shlibs=no
10283 fi
10284 ;;
9c60689e 10285
a243b558 10286 haiku*)
9d54db95 10287 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
a243b558
JF
10288 link_all_deplibs=yes
10289 ;;
9c60689e 10290
9d54db95
JF
10291 os2*)
10292 hardcode_libdir_flag_spec='-L$libdir'
10293 hardcode_minus_L=yes
10294 allow_undefined_flag=unsupported
10295 shrext_cmds=.dll
10296 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10297 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10298 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10299 $ECHO EXPORTS >> $output_objdir/$libname.def~
10300 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10301 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10302 emximp -o $lib $output_objdir/$libname.def'
10303 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10304 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10305 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10306 $ECHO EXPORTS >> $output_objdir/$libname.def~
10307 prefix_cmds="$SED"~
10308 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10309 prefix_cmds="$prefix_cmds -e 1d";
10310 fi~
10311 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10312 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10313 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10314 emximp -o $lib $output_objdir/$libname.def'
10315 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10316 enable_shared_with_static_runtimes=yes
10317 ;;
10318
a243b558
JF
10319 interix[3-9]*)
10320 hardcode_direct=no
10321 hardcode_shlibpath_var=no
9d54db95
JF
10322 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10323 export_dynamic_flag_spec='$wl-E'
a243b558
JF
10324 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10325 # Instead, shared libraries are loaded at an image base (0x10000000 by
10326 # default) and relocated if they conflict, which is a slow very memory
10327 # consuming and fragmenting process. To avoid this, we pick a random,
10328 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10329 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9d54db95
JF
10330 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10331 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 10332 ;;
9c60689e 10333
a243b558
JF
10334 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10335 tmp_diet=no
9d54db95 10336 if test linux-dietlibc = "$host_os"; then
a243b558
JF
10337 case $cc_basename in
10338 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10339 esac
10340 fi
10341 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9d54db95 10342 && test no = "$tmp_diet"
a243b558
JF
10343 then
10344 tmp_addflag=' $pic_flag'
10345 tmp_sharedflag='-shared'
10346 case $cc_basename,$host_cpu in
10347 pgcc*) # Portland Group C compiler
9d54db95 10348 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
10349 tmp_addflag=' $pic_flag'
10350 ;;
10351 pgf77* | pgf90* | pgf95* | pgfortran*)
10352 # Portland Group f77 and f90 compilers
9d54db95 10353 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
10354 tmp_addflag=' $pic_flag -Mnomain' ;;
10355 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10356 tmp_addflag=' -i_dynamic' ;;
10357 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10358 tmp_addflag=' -i_dynamic -nofor_main' ;;
10359 ifc* | ifort*) # Intel Fortran compiler
10360 tmp_addflag=' -nofor_main' ;;
10361 lf95*) # Lahey Fortran 8.1
10362 whole_archive_flag_spec=
10363 tmp_sharedflag='--shared' ;;
9d54db95
JF
10364 nagfor*) # NAGFOR 5.3
10365 tmp_sharedflag='-Wl,-shared' ;;
a243b558
JF
10366 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10367 tmp_sharedflag='-qmkshrobj'
10368 tmp_addflag= ;;
10369 nvcc*) # Cuda Compiler Driver 2.2
9d54db95 10370 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
10371 compiler_needs_object=yes
10372 ;;
10373 esac
10374 case `$CC -V 2>&1 | sed 5q` in
10375 *Sun\ C*) # Sun C 5.9
9d54db95 10376 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
10377 compiler_needs_object=yes
10378 tmp_sharedflag='-G' ;;
10379 *Sun\ F*) # Sun Fortran 8.3
10380 tmp_sharedflag='-G' ;;
10381 esac
9d54db95 10382 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9c60689e 10383
9d54db95 10384 if test yes = "$supports_anon_versioning"; then
a243b558 10385 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9d54db95
JF
10386 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10387 echo "local: *; };" >> $output_objdir/$libname.ver~
10388 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
a243b558 10389 fi
9c60689e 10390
a243b558 10391 case $cc_basename in
9d54db95
JF
10392 tcc*)
10393 export_dynamic_flag_spec='-rdynamic'
10394 ;;
a243b558
JF
10395 xlf* | bgf* | bgxlf* | mpixlf*)
10396 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10397 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9d54db95 10398 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a243b558 10399 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9d54db95 10400 if test yes = "$supports_anon_versioning"; then
a243b558 10401 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9d54db95
JF
10402 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10403 echo "local: *; };" >> $output_objdir/$libname.ver~
10404 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
a243b558
JF
10405 fi
10406 ;;
10407 esac
10408 else
10409 ld_shlibs=no
10410 fi
10411 ;;
9c60689e 10412
a243b558
JF
10413 netbsd*)
10414 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10415 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10416 wlarc=
10417 else
9d54db95
JF
10418 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10419 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
10420 fi
10421 ;;
9c60689e 10422
a243b558
JF
10423 solaris*)
10424 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10425 ld_shlibs=no
10426 cat <<_LT_EOF 1>&2
9c60689e 10427
a243b558
JF
10428*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10429*** create shared libraries on Solaris systems. Therefore, libtool
10430*** is disabling shared libraries support. We urge you to upgrade GNU
10431*** binutils to release 2.9.1 or newer. Another option is to modify
10432*** your PATH or compiler configuration so that the native linker is
10433*** used, and then restart.
9c60689e 10434
a243b558
JF
10435_LT_EOF
10436 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9d54db95
JF
10437 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10438 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
10439 else
10440 ld_shlibs=no
10441 fi
10442 ;;
9c60689e 10443
a243b558
JF
10444 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10445 case `$LD -v 2>&1` in
10446 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10447 ld_shlibs=no
10448 cat <<_LT_EOF 1>&2
9c60689e 10449
9d54db95 10450*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
a243b558
JF
10451*** reliably create shared libraries on SCO systems. Therefore, libtool
10452*** is disabling shared libraries support. We urge you to upgrade GNU
10453*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10454*** your PATH or compiler configuration so that the native linker is
10455*** used, and then restart.
9c60689e 10456
a243b558
JF
10457_LT_EOF
10458 ;;
10459 *)
10460 # For security reasons, it is highly recommended that you always
10461 # use absolute paths for naming shared libraries, and exclude the
10462 # DT_RUNPATH tag from executables and libraries. But doing so
10463 # requires that you compile everything twice, which is a pain.
10464 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9d54db95
JF
10465 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10466 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10467 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
a243b558
JF
10468 else
10469 ld_shlibs=no
10470 fi
10471 ;;
10472 esac
10473 ;;
9c60689e 10474
a243b558
JF
10475 sunos4*)
10476 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10477 wlarc=
10478 hardcode_direct=yes
10479 hardcode_shlibpath_var=no
10480 ;;
9c60689e 10481
a243b558
JF
10482 *)
10483 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9d54db95
JF
10484 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10485 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
10486 else
10487 ld_shlibs=no
10488 fi
10489 ;;
10490 esac
9c60689e 10491
9d54db95 10492 if test no = "$ld_shlibs"; then
a243b558
JF
10493 runpath_var=
10494 hardcode_libdir_flag_spec=
10495 export_dynamic_flag_spec=
10496 whole_archive_flag_spec=
10497 fi
10498 else
10499 # PORTME fill in a description of your system's linker (not GNU ld)
10500 case $host_os in
10501 aix3*)
10502 allow_undefined_flag=unsupported
10503 always_export_symbols=yes
10504 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'
10505 # Note: this linker hardcodes the directories in LIBPATH if there
10506 # are no directories specified by -L.
10507 hardcode_minus_L=yes
9d54db95 10508 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
a243b558
JF
10509 # Neither direct hardcoding nor static linking is supported with a
10510 # broken collect2.
10511 hardcode_direct=unsupported
10512 fi
10513 ;;
9c60689e 10514
a243b558 10515 aix[4-9]*)
9d54db95 10516 if test ia64 = "$host_cpu"; then
a243b558
JF
10517 # On IA64, the linker does run time linking by default, so we don't
10518 # have to do anything special.
10519 aix_use_runtimelinking=no
10520 exp_sym_flag='-Bexport'
9d54db95 10521 no_entry_flag=
a243b558
JF
10522 else
10523 # If we're using GNU nm, then we don't want the "-C" option.
9d54db95
JF
10524 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10525 # Without the "-l" option, or with the "-B" option, AIX nm treats
10526 # weak defined symbols like other global defined symbols, whereas
10527 # GNU nm marks them as "W".
10528 # While the 'weak' keyword is ignored in the Export File, we need
10529 # it in the Import File for the 'aix-soname' feature, so we have
10530 # to replace the "-B" option with "-P" for AIX nm.
a243b558 10531 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9d54db95 10532 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 10533 else
9d54db95 10534 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
10535 fi
10536 aix_use_runtimelinking=no
9c60689e 10537
a243b558
JF
10538 # Test if we are trying to use run time linking or normal
10539 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9d54db95
JF
10540 # have runtime linking enabled, and use it for executables.
10541 # For shared libraries, we enable/disable runtime linking
10542 # depending on the kind of the shared library created -
10543 # when "with_aix_soname,aix_use_runtimelinking" is:
10544 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10545 # "aix,yes" lib.so shared, rtl:yes, for executables
10546 # lib.a static archive
10547 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10548 # lib.a(lib.so.V) shared, rtl:no, for executables
10549 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10550 # lib.a(lib.so.V) shared, rtl:no
10551 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10552 # lib.a static archive
a243b558
JF
10553 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10554 for ld_flag in $LDFLAGS; do
9d54db95 10555 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
a243b558
JF
10556 aix_use_runtimelinking=yes
10557 break
10558 fi
10559 done
9d54db95
JF
10560 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10561 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10562 # so we don't have lib.a shared libs to link our executables.
10563 # We have to force runtime linking in this case.
10564 aix_use_runtimelinking=yes
10565 LDFLAGS="$LDFLAGS -Wl,-brtl"
10566 fi
a243b558
JF
10567 ;;
10568 esac
9c60689e 10569
a243b558
JF
10570 exp_sym_flag='-bexport'
10571 no_entry_flag='-bnoentry'
10572 fi
9c60689e 10573
a243b558
JF
10574 # When large executables or shared objects are built, AIX ld can
10575 # have problems creating the table of contents. If linking a library
10576 # or program results in "error TOC overflow" add -mminimal-toc to
10577 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10578 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9c60689e 10579
a243b558
JF
10580 archive_cmds=''
10581 hardcode_direct=yes
10582 hardcode_direct_absolute=yes
10583 hardcode_libdir_separator=':'
10584 link_all_deplibs=yes
9d54db95
JF
10585 file_list_spec='$wl-f,'
10586 case $with_aix_soname,$aix_use_runtimelinking in
10587 aix,*) ;; # traditional, no import file
10588 svr4,* | *,yes) # use import file
10589 # The Import File defines what to hardcode.
10590 hardcode_direct=no
10591 hardcode_direct_absolute=no
10592 ;;
10593 esac
9c60689e 10594
9d54db95 10595 if test yes = "$GCC"; then
a243b558
JF
10596 case $host_os in aix4.[012]|aix4.[012].*)
10597 # We only want to do this on AIX 4.2 and lower, the check
10598 # below for broken collect2 doesn't work under 4.3+
9d54db95 10599 collect2name=`$CC -print-prog-name=collect2`
a243b558
JF
10600 if test -f "$collect2name" &&
10601 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10602 then
10603 # We have reworked collect2
10604 :
10605 else
10606 # We have old collect2
10607 hardcode_direct=unsupported
10608 # It fails to find uninstalled libraries when the uninstalled
10609 # path is not listed in the libpath. Setting hardcode_minus_L
10610 # to unsupported forces relinking
10611 hardcode_minus_L=yes
10612 hardcode_libdir_flag_spec='-L$libdir'
10613 hardcode_libdir_separator=
10614 fi
10615 ;;
10616 esac
10617 shared_flag='-shared'
9d54db95
JF
10618 if test yes = "$aix_use_runtimelinking"; then
10619 shared_flag="$shared_flag "'$wl-G'
a243b558 10620 fi
9d54db95
JF
10621 # Need to ensure runtime linking is disabled for the traditional
10622 # shared library, or the linker may eventually find shared libraries
10623 # /with/ Import File - we do not want to mix them.
10624 shared_flag_aix='-shared'
10625 shared_flag_svr4='-shared $wl-G'
a243b558
JF
10626 else
10627 # not using gcc
9d54db95 10628 if test ia64 = "$host_cpu"; then
a243b558
JF
10629 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10630 # chokes on -Wl,-G. The following line is correct:
10631 shared_flag='-G'
10632 else
9d54db95
JF
10633 if test yes = "$aix_use_runtimelinking"; then
10634 shared_flag='$wl-G'
a243b558 10635 else
9d54db95 10636 shared_flag='$wl-bM:SRE'
a243b558 10637 fi
9d54db95
JF
10638 shared_flag_aix='$wl-bM:SRE'
10639 shared_flag_svr4='$wl-G'
a243b558
JF
10640 fi
10641 fi
9c60689e 10642
9d54db95 10643 export_dynamic_flag_spec='$wl-bexpall'
a243b558
JF
10644 # It seems that -bexpall does not export symbols beginning with
10645 # underscore (_), so it is better to generate a list of symbols to export.
10646 always_export_symbols=yes
9d54db95 10647 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
a243b558
JF
10648 # Warning - without using the other runtime loading flags (-brtl),
10649 # -berok will link without error, but may produce a broken library.
10650 allow_undefined_flag='-berok'
10651 # Determine the default libpath from the value encoded in an
10652 # empty executable.
9d54db95 10653 if test set = "${lt_cv_aix_libpath+set}"; then
a243b558 10654 aix_libpath=$lt_cv_aix_libpath
9c60689e 10655else
a243b558 10656 if ${lt_cv_aix_libpath_+:} false; then :
9c60689e
DWT
10657 $as_echo_n "(cached) " >&6
10658else
a243b558 10659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
10660/* end confdefs.h. */
10661
9c60689e
DWT
10662int
10663main ()
10664{
a243b558 10665
9c60689e
DWT
10666 ;
10667 return 0;
10668}
10669_ACEOF
10670if ac_fn_c_try_link "$LINENO"; then :
a243b558
JF
10671
10672 lt_aix_libpath_sed='
10673 /Import File Strings/,/^$/ {
10674 /^0/ {
10675 s/^0 *\([^ ]*\) *$/\1/
10676 p
10677 }
10678 }'
10679 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10680 # Check for a 64-bit object if we didn't find anything.
10681 if test -z "$lt_cv_aix_libpath_"; then
10682 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10683 fi
9c60689e
DWT
10684fi
10685rm -f core conftest.err conftest.$ac_objext \
10686 conftest$ac_exeext conftest.$ac_ext
a243b558 10687 if test -z "$lt_cv_aix_libpath_"; then
9d54db95 10688 lt_cv_aix_libpath_=/usr/lib:/lib
a243b558 10689 fi
9c60689e
DWT
10690
10691fi
10692
a243b558
JF
10693 aix_libpath=$lt_cv_aix_libpath_
10694fi
9c60689e 10695
9d54db95
JF
10696 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10697 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 10698 else
9d54db95
JF
10699 if test ia64 = "$host_cpu"; then
10700 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
a243b558 10701 allow_undefined_flag="-z nodefs"
9d54db95 10702 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
10703 else
10704 # Determine the default libpath from the value encoded in an
10705 # empty executable.
9d54db95 10706 if test set = "${lt_cv_aix_libpath+set}"; then
a243b558 10707 aix_libpath=$lt_cv_aix_libpath
9c60689e 10708else
a243b558 10709 if ${lt_cv_aix_libpath_+:} false; then :
9c60689e
DWT
10710 $as_echo_n "(cached) " >&6
10711else
a243b558 10712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
10713/* end confdefs.h. */
10714
9c60689e
DWT
10715int
10716main ()
10717{
a243b558 10718
9c60689e
DWT
10719 ;
10720 return 0;
10721}
10722_ACEOF
10723if ac_fn_c_try_link "$LINENO"; then :
9c60689e 10724
a243b558
JF
10725 lt_aix_libpath_sed='
10726 /Import File Strings/,/^$/ {
10727 /^0/ {
10728 s/^0 *\([^ ]*\) *$/\1/
10729 p
10730 }
10731 }'
10732 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10733 # Check for a 64-bit object if we didn't find anything.
10734 if test -z "$lt_cv_aix_libpath_"; then
10735 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10736 fi
9c60689e
DWT
10737fi
10738rm -f core conftest.err conftest.$ac_objext \
10739 conftest$ac_exeext conftest.$ac_ext
a243b558 10740 if test -z "$lt_cv_aix_libpath_"; then
9d54db95 10741 lt_cv_aix_libpath_=/usr/lib:/lib
a243b558
JF
10742 fi
10743
9c60689e 10744fi
9c60689e 10745
a243b558
JF
10746 aix_libpath=$lt_cv_aix_libpath_
10747fi
10748
9d54db95 10749 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
a243b558
JF
10750 # Warning - without using the other run time loading flags,
10751 # -berok will link without error, but may produce a broken library.
9d54db95
JF
10752 no_undefined_flag=' $wl-bernotok'
10753 allow_undefined_flag=' $wl-berok'
10754 if test yes = "$with_gnu_ld"; then
a243b558 10755 # We only use this code for GNU lds that support --whole-archive.
9d54db95 10756 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
a243b558
JF
10757 else
10758 # Exported symbols can be pulled into shared objects from archives
10759 whole_archive_flag_spec='$convenience'
10760 fi
10761 archive_cmds_need_lc=yes
9d54db95
JF
10762 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10763 # -brtl affects multiple linker settings, -berok does not and is overridden later
10764 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10765 if test svr4 != "$with_aix_soname"; then
10766 # This is similar to how AIX traditionally builds its shared libraries.
10767 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'
10768 fi
10769 if test aix != "$with_aix_soname"; then
10770 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'
10771 else
10772 # used by -dlpreopen to get the symbols
10773 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10774 fi
10775 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
a243b558
JF
10776 fi
10777 fi
10778 ;;
10779
10780 amigaos*)
10781 case $host_cpu in
10782 powerpc)
10783 # see comment about AmigaOS4 .so support
9d54db95 10784 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
a243b558
JF
10785 archive_expsym_cmds=''
10786 ;;
10787 m68k)
10788 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)'
10789 hardcode_libdir_flag_spec='-L$libdir'
10790 hardcode_minus_L=yes
10791 ;;
10792 esac
10793 ;;
10794
10795 bsdi[45]*)
10796 export_dynamic_flag_spec=-rdynamic
10797 ;;
10798
10799 cygwin* | mingw* | pw32* | cegcc*)
10800 # When not using gcc, we currently assume that we are using
10801 # Microsoft Visual C++.
10802 # hardcode_libdir_flag_spec is actually meaningless, as there is
10803 # no search path for DLLs.
10804 case $cc_basename in
10805 cl*)
10806 # Native MSVC
10807 hardcode_libdir_flag_spec=' '
10808 allow_undefined_flag=unsupported
10809 always_export_symbols=yes
10810 file_list_spec='@'
10811 # Tell ltmain to make .lib files, not .a files.
10812 libext=lib
10813 # Tell ltmain to make .dll files, not .so files.
9d54db95 10814 shrext_cmds=.dll
a243b558 10815 # FIXME: Setting linknames here is a bad hack.
9d54db95
JF
10816 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10817 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10818 cp "$export_symbols" "$output_objdir/$soname.def";
10819 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10820 else
10821 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10822 fi~
10823 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10824 linknames='
a243b558
JF
10825 # The linker will not automatically build a static lib if we build a DLL.
10826 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10827 enable_shared_with_static_runtimes=yes
10828 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10829 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10830 # Don't use ranlib
10831 old_postinstall_cmds='chmod 644 $oldlib'
10832 postlink_cmds='lt_outputfile="@OUTPUT@"~
9d54db95
JF
10833 lt_tool_outputfile="@TOOL_OUTPUT@"~
10834 case $lt_outputfile in
10835 *.exe|*.EXE) ;;
10836 *)
10837 lt_outputfile=$lt_outputfile.exe
10838 lt_tool_outputfile=$lt_tool_outputfile.exe
10839 ;;
10840 esac~
10841 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10842 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10843 $RM "$lt_outputfile.manifest";
10844 fi'
a243b558
JF
10845 ;;
10846 *)
10847 # Assume MSVC wrapper
10848 hardcode_libdir_flag_spec=' '
10849 allow_undefined_flag=unsupported
10850 # Tell ltmain to make .lib files, not .a files.
10851 libext=lib
10852 # Tell ltmain to make .dll files, not .so files.
9d54db95 10853 shrext_cmds=.dll
a243b558
JF
10854 # FIXME: Setting linknames here is a bad hack.
10855 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10856 # The linker will automatically build a .lib file if we build a DLL.
10857 old_archive_from_new_cmds='true'
10858 # FIXME: Should let the user specify the lib program.
10859 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10860 enable_shared_with_static_runtimes=yes
10861 ;;
10862 esac
10863 ;;
10864
10865 darwin* | rhapsody*)
10866
10867
10868 archive_cmds_need_lc=no
10869 hardcode_direct=no
10870 hardcode_automatic=yes
10871 hardcode_shlibpath_var=unsupported
9d54db95
JF
10872 if test yes = "$lt_cv_ld_force_load"; then
10873 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
10874
10875 else
10876 whole_archive_flag_spec=''
10877 fi
10878 link_all_deplibs=yes
9d54db95 10879 allow_undefined_flag=$_lt_dar_allow_undefined
a243b558 10880 case $cc_basename in
9d54db95 10881 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
a243b558
JF
10882 *) _lt_dar_can_shared=$GCC ;;
10883 esac
9d54db95 10884 if test yes = "$_lt_dar_can_shared"; then
a243b558 10885 output_verbose_link_cmd=func_echo_all
9d54db95
JF
10886 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10887 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10888 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"
10889 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
10890
10891 else
10892 ld_shlibs=no
10893 fi
10894
10895 ;;
10896
10897 dgux*)
10898 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10899 hardcode_libdir_flag_spec='-L$libdir'
10900 hardcode_shlibpath_var=no
10901 ;;
10902
10903 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10904 # support. Future versions do this automatically, but an explicit c++rt0.o
10905 # does not break anything, and helps significantly (at the cost of a little
10906 # extra space).
10907 freebsd2.2*)
10908 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10909 hardcode_libdir_flag_spec='-R$libdir'
10910 hardcode_direct=yes
10911 hardcode_shlibpath_var=no
10912 ;;
10913
10914 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10915 freebsd2.*)
10916 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10917 hardcode_direct=yes
10918 hardcode_minus_L=yes
10919 hardcode_shlibpath_var=no
10920 ;;
10921
10922 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10923 freebsd* | dragonfly*)
10924 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10925 hardcode_libdir_flag_spec='-R$libdir'
10926 hardcode_direct=yes
10927 hardcode_shlibpath_var=no
10928 ;;
10929
10930 hpux9*)
9d54db95
JF
10931 if test yes = "$GCC"; then
10932 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 10933 else
9d54db95 10934 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 10935 fi
9d54db95 10936 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
a243b558
JF
10937 hardcode_libdir_separator=:
10938 hardcode_direct=yes
10939
10940 # hardcode_minus_L: Not really in the search PATH,
10941 # but as the default location of the library.
10942 hardcode_minus_L=yes
9d54db95 10943 export_dynamic_flag_spec='$wl-E'
a243b558
JF
10944 ;;
10945
10946 hpux10*)
9d54db95
JF
10947 if test yes,no = "$GCC,$with_gnu_ld"; then
10948 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
10949 else
10950 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10951 fi
9d54db95
JF
10952 if test no = "$with_gnu_ld"; then
10953 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
a243b558
JF
10954 hardcode_libdir_separator=:
10955 hardcode_direct=yes
10956 hardcode_direct_absolute=yes
9d54db95 10957 export_dynamic_flag_spec='$wl-E'
a243b558
JF
10958 # hardcode_minus_L: Not really in the search PATH,
10959 # but as the default location of the library.
10960 hardcode_minus_L=yes
10961 fi
10962 ;;
10963
10964 hpux11*)
9d54db95 10965 if test yes,no = "$GCC,$with_gnu_ld"; then
a243b558
JF
10966 case $host_cpu in
10967 hppa*64*)
9d54db95 10968 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
10969 ;;
10970 ia64*)
9d54db95 10971 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
10972 ;;
10973 *)
9d54db95 10974 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
10975 ;;
10976 esac
10977 else
10978 case $host_cpu in
10979 hppa*64*)
9d54db95 10980 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
10981 ;;
10982 ia64*)
9d54db95 10983 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
10984 ;;
10985 *)
10986
10987 # Older versions of the 11.00 compiler do not understand -b yet
10988 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10990$as_echo_n "checking if $CC understands -b... " >&6; }
10991if ${lt_cv_prog_compiler__b+:} false; then :
10992 $as_echo_n "(cached) " >&6
10993else
10994 lt_cv_prog_compiler__b=no
9d54db95 10995 save_LDFLAGS=$LDFLAGS
a243b558
JF
10996 LDFLAGS="$LDFLAGS -b"
10997 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10998 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10999 # The linker can only warn and ignore the option if not recognized
11000 # So say no if there are warnings
11001 if test -s conftest.err; then
11002 # Append any errors to the config.log.
11003 cat conftest.err 1>&5
11004 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11005 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11006 if diff conftest.exp conftest.er2 >/dev/null; then
11007 lt_cv_prog_compiler__b=yes
11008 fi
11009 else
11010 lt_cv_prog_compiler__b=yes
11011 fi
11012 fi
11013 $RM -r conftest*
9d54db95 11014 LDFLAGS=$save_LDFLAGS
a243b558
JF
11015
11016fi
11017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11018$as_echo "$lt_cv_prog_compiler__b" >&6; }
11019
9d54db95
JF
11020if test yes = "$lt_cv_prog_compiler__b"; then
11021 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
11022else
11023 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11024fi
11025
11026 ;;
11027 esac
11028 fi
9d54db95
JF
11029 if test no = "$with_gnu_ld"; then
11030 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
a243b558
JF
11031 hardcode_libdir_separator=:
11032
11033 case $host_cpu in
11034 hppa*64*|ia64*)
11035 hardcode_direct=no
11036 hardcode_shlibpath_var=no
11037 ;;
11038 *)
11039 hardcode_direct=yes
11040 hardcode_direct_absolute=yes
9d54db95 11041 export_dynamic_flag_spec='$wl-E'
a243b558
JF
11042
11043 # hardcode_minus_L: Not really in the search PATH,
11044 # but as the default location of the library.
11045 hardcode_minus_L=yes
11046 ;;
11047 esac
11048 fi
11049 ;;
11050
11051 irix5* | irix6* | nonstopux*)
9d54db95
JF
11052 if test yes = "$GCC"; then
11053 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
11054 # Try to use the -exported_symbol ld option, if it does not
11055 # work, assume that -exports_file does not work either and
11056 # implicitly export all symbols.
11057 # This should be the same for all languages, so no per-tag cache variable.
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11059$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11060if ${lt_cv_irix_exported_symbol+:} false; then :
11061 $as_echo_n "(cached) " >&6
11062else
9d54db95
JF
11063 save_LDFLAGS=$LDFLAGS
11064 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
a243b558
JF
11065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11066/* end confdefs.h. */
11067int foo (void) { return 0; }
11068_ACEOF
11069if ac_fn_c_try_link "$LINENO"; then :
11070 lt_cv_irix_exported_symbol=yes
11071else
11072 lt_cv_irix_exported_symbol=no
11073fi
11074rm -f core conftest.err conftest.$ac_objext \
11075 conftest$ac_exeext conftest.$ac_ext
9d54db95 11076 LDFLAGS=$save_LDFLAGS
a243b558
JF
11077fi
11078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11079$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9d54db95
JF
11080 if test yes = "$lt_cv_irix_exported_symbol"; then
11081 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
11082 fi
11083 else
9d54db95
JF
11084 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'
11085 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
11086 fi
11087 archive_cmds_need_lc='no'
9d54db95 11088 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a243b558
JF
11089 hardcode_libdir_separator=:
11090 inherit_rpath=yes
11091 link_all_deplibs=yes
11092 ;;
11093
9d54db95
JF
11094 linux*)
11095 case $cc_basename in
11096 tcc*)
11097 # Fabrice Bellard et al's Tiny C Compiler
11098 ld_shlibs=yes
11099 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11100 ;;
11101 esac
11102 ;;
11103
a243b558
JF
11104 netbsd*)
11105 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11106 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11107 else
11108 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11109 fi
11110 hardcode_libdir_flag_spec='-R$libdir'
11111 hardcode_direct=yes
11112 hardcode_shlibpath_var=no
11113 ;;
11114
11115 newsos6)
11116 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11117 hardcode_direct=yes
9d54db95 11118 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a243b558
JF
11119 hardcode_libdir_separator=:
11120 hardcode_shlibpath_var=no
11121 ;;
11122
11123 *nto* | *qnx*)
11124 ;;
11125
9d54db95 11126 openbsd* | bitrig*)
a243b558
JF
11127 if test -f /usr/libexec/ld.so; then
11128 hardcode_direct=yes
11129 hardcode_shlibpath_var=no
11130 hardcode_direct_absolute=yes
9d54db95 11131 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
a243b558 11132 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9d54db95
JF
11133 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11134 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11135 export_dynamic_flag_spec='$wl-E'
a243b558 11136 else
9d54db95
JF
11137 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11138 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
a243b558
JF
11139 fi
11140 else
11141 ld_shlibs=no
11142 fi
11143 ;;
11144
11145 os2*)
11146 hardcode_libdir_flag_spec='-L$libdir'
11147 hardcode_minus_L=yes
11148 allow_undefined_flag=unsupported
9d54db95
JF
11149 shrext_cmds=.dll
11150 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11151 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11152 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11153 $ECHO EXPORTS >> $output_objdir/$libname.def~
11154 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11155 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11156 emximp -o $lib $output_objdir/$libname.def'
11157 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11158 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11159 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11160 $ECHO EXPORTS >> $output_objdir/$libname.def~
11161 prefix_cmds="$SED"~
11162 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11163 prefix_cmds="$prefix_cmds -e 1d";
11164 fi~
11165 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11166 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11167 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11168 emximp -o $lib $output_objdir/$libname.def'
11169 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11170 enable_shared_with_static_runtimes=yes
a243b558
JF
11171 ;;
11172
11173 osf3*)
9d54db95
JF
11174 if test yes = "$GCC"; then
11175 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11176 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
11177 else
11178 allow_undefined_flag=' -expect_unresolved \*'
9d54db95 11179 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
11180 fi
11181 archive_cmds_need_lc='no'
9d54db95 11182 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a243b558
JF
11183 hardcode_libdir_separator=:
11184 ;;
11185
11186 osf4* | osf5*) # as osf3* with the addition of -msym flag
9d54db95
JF
11187 if test yes = "$GCC"; then
11188 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11189 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'
11190 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a243b558
JF
11191 else
11192 allow_undefined_flag=' -expect_unresolved \*'
9d54db95 11193 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 11194 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 11195 $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
11196
11197 # Both c and cxx compiler support -rpath directly
11198 hardcode_libdir_flag_spec='-rpath $libdir'
11199 fi
11200 archive_cmds_need_lc='no'
11201 hardcode_libdir_separator=:
11202 ;;
11203
11204 solaris*)
11205 no_undefined_flag=' -z defs'
9d54db95
JF
11206 if test yes = "$GCC"; then
11207 wlarc='$wl'
11208 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558 11209 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9d54db95 11210 $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
11211 else
11212 case `$CC -V 2>&1` in
11213 *"Compilers 5.0"*)
11214 wlarc=''
9d54db95 11215 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
a243b558 11216 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9d54db95 11217 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
a243b558
JF
11218 ;;
11219 *)
9d54db95
JF
11220 wlarc='$wl'
11221 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558 11222 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9d54db95 11223 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
a243b558
JF
11224 ;;
11225 esac
11226 fi
11227 hardcode_libdir_flag_spec='-R$libdir'
11228 hardcode_shlibpath_var=no
11229 case $host_os in
11230 solaris2.[0-5] | solaris2.[0-5].*) ;;
11231 *)
11232 # The compiler driver will combine and reorder linker options,
9d54db95 11233 # but understands '-z linker_flag'. GCC discards it without '$wl',
a243b558
JF
11234 # but is careful enough not to reorder.
11235 # Supported since Solaris 2.6 (maybe 2.5.1?)
9d54db95
JF
11236 if test yes = "$GCC"; then
11237 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
a243b558
JF
11238 else
11239 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11240 fi
11241 ;;
11242 esac
11243 link_all_deplibs=yes
11244 ;;
11245
11246 sunos4*)
9d54db95 11247 if test sequent = "$host_vendor"; then
a243b558
JF
11248 # Use $CC to link under sequent, because it throws in some extra .o
11249 # files that make .init and .fini sections work.
9d54db95 11250 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
11251 else
11252 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11253 fi
11254 hardcode_libdir_flag_spec='-L$libdir'
11255 hardcode_direct=yes
11256 hardcode_minus_L=yes
11257 hardcode_shlibpath_var=no
11258 ;;
11259
11260 sysv4)
11261 case $host_vendor in
11262 sni)
11263 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11264 hardcode_direct=yes # is this really true???
11265 ;;
11266 siemens)
11267 ## LD is ld it makes a PLAMLIB
11268 ## CC just makes a GrossModule.
11269 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11270 reload_cmds='$CC -r -o $output$reload_objs'
11271 hardcode_direct=no
11272 ;;
11273 motorola)
11274 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11275 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11276 ;;
11277 esac
11278 runpath_var='LD_RUN_PATH'
11279 hardcode_shlibpath_var=no
11280 ;;
11281
11282 sysv4.3*)
11283 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11284 hardcode_shlibpath_var=no
11285 export_dynamic_flag_spec='-Bexport'
11286 ;;
11287
11288 sysv4*MP*)
11289 if test -d /usr/nec; then
11290 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11291 hardcode_shlibpath_var=no
11292 runpath_var=LD_RUN_PATH
11293 hardcode_runpath_var=yes
11294 ld_shlibs=yes
11295 fi
11296 ;;
11297
11298 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9d54db95 11299 no_undefined_flag='$wl-z,text'
a243b558
JF
11300 archive_cmds_need_lc=no
11301 hardcode_shlibpath_var=no
11302 runpath_var='LD_RUN_PATH'
11303
9d54db95
JF
11304 if test yes = "$GCC"; then
11305 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11306 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558 11307 else
9d54db95
JF
11308 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11309 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
11310 fi
11311 ;;
11312
11313 sysv5* | sco3.2v5* | sco5v6*)
9d54db95 11314 # Note: We CANNOT use -z defs as we might desire, because we do not
a243b558
JF
11315 # link with -lc, and that would cause any symbols used from libc to
11316 # always be unresolved, which means just about no library would
11317 # ever link correctly. If we're not using GNU ld we use -z text
11318 # though, which does catch some bad symbols but isn't as heavy-handed
11319 # as -z defs.
9d54db95
JF
11320 no_undefined_flag='$wl-z,text'
11321 allow_undefined_flag='$wl-z,nodefs'
a243b558
JF
11322 archive_cmds_need_lc=no
11323 hardcode_shlibpath_var=no
9d54db95 11324 hardcode_libdir_flag_spec='$wl-R,$libdir'
a243b558
JF
11325 hardcode_libdir_separator=':'
11326 link_all_deplibs=yes
9d54db95 11327 export_dynamic_flag_spec='$wl-Bexport'
a243b558
JF
11328 runpath_var='LD_RUN_PATH'
11329
9d54db95
JF
11330 if test yes = "$GCC"; then
11331 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11332 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558 11333 else
9d54db95
JF
11334 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11335 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
11336 fi
11337 ;;
11338
11339 uts4*)
11340 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11341 hardcode_libdir_flag_spec='-L$libdir'
11342 hardcode_shlibpath_var=no
11343 ;;
11344
11345 *)
11346 ld_shlibs=no
11347 ;;
11348 esac
11349
9d54db95 11350 if test sni = "$host_vendor"; then
a243b558
JF
11351 case $host in
11352 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9d54db95 11353 export_dynamic_flag_spec='$wl-Blargedynsym'
a243b558
JF
11354 ;;
11355 esac
11356 fi
11357 fi
11358
11359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11360$as_echo "$ld_shlibs" >&6; }
9d54db95 11361test no = "$ld_shlibs" && can_build_shared=no
a243b558
JF
11362
11363with_gnu_ld=$with_gnu_ld
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379#
11380# Do we need to explicitly link libc?
11381#
11382case "x$archive_cmds_need_lc" in
11383x|xyes)
11384 # Assume -lc should be added
11385 archive_cmds_need_lc=yes
11386
9d54db95 11387 if test yes,yes = "$GCC,$enable_shared"; then
a243b558
JF
11388 case $archive_cmds in
11389 *'~'*)
11390 # FIXME: we may have to deal with multi-command sequences.
11391 ;;
11392 '$CC '*)
11393 # Test whether the compiler implicitly links with -lc since on some
11394 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11395 # to ld, don't add -lc before -lgcc.
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11397$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11398if ${lt_cv_archive_cmds_need_lc+:} false; then :
11399 $as_echo_n "(cached) " >&6
11400else
00a96142 11401 $RM -r conftest*
a243b558
JF
11402 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11403
11404 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11405 (eval $ac_compile) 2>&5
11406 ac_status=$?
11407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11408 test $ac_status = 0; } 2>conftest.err; then
11409 soname=conftest
11410 lib=conftest
11411 libobjs=conftest.$ac_objext
11412 deplibs=
11413 wl=$lt_prog_compiler_wl
11414 pic_flag=$lt_prog_compiler_pic
11415 compiler_flags=-v
11416 linker_flags=-v
11417 verstring=
11418 output_objdir=.
11419 libname=conftest
11420 lt_save_allow_undefined_flag=$allow_undefined_flag
11421 allow_undefined_flag=
11422 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11423 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11424 ac_status=$?
11425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11426 test $ac_status = 0; }
11427 then
11428 lt_cv_archive_cmds_need_lc=no
11429 else
11430 lt_cv_archive_cmds_need_lc=yes
11431 fi
11432 allow_undefined_flag=$lt_save_allow_undefined_flag
11433 else
11434 cat conftest.err 1>&5
11435 fi
00a96142 11436 $RM -r conftest*
a243b558
JF
11437
11438fi
11439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11440$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11441 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11442 ;;
11443 esac
11444 fi
11445 ;;
11446esac
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
11598
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11600$as_echo_n "checking dynamic linker characteristics... " >&6; }
11601
9d54db95 11602if test yes = "$GCC"; then
a243b558 11603 case $host_os in
9d54db95
JF
11604 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11605 *) lt_awk_arg='/^libraries:/' ;;
a243b558
JF
11606 esac
11607 case $host_os in
9d54db95
JF
11608 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11609 *) lt_sed_strip_eq='s|=/|/|g' ;;
a243b558
JF
11610 esac
11611 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11612 case $lt_search_path_spec in
11613 *\;*)
11614 # if the path contains ";" then we assume it to be the separator
11615 # otherwise default to the standard path separator (i.e. ":") - it is
11616 # assumed that no part of a normal pathname contains ";" but that should
11617 # okay in the real world where ";" in dirpaths is itself problematic.
11618 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11619 ;;
11620 *)
11621 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11622 ;;
11623 esac
11624 # Ok, now we have the path, separated by spaces, we can step through it
9d54db95 11625 # and add multilib dir if necessary...
a243b558 11626 lt_tmp_lt_search_path_spec=
9d54db95
JF
11627 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11628 # ...but if some path component already ends with the multilib dir we assume
11629 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11630 case "$lt_multi_os_dir; $lt_search_path_spec " in
11631 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11632 lt_multi_os_dir=
11633 ;;
11634 esac
a243b558 11635 for lt_sys_path in $lt_search_path_spec; do
9d54db95
JF
11636 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11637 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11638 elif test -n "$lt_multi_os_dir"; then
a243b558
JF
11639 test -d "$lt_sys_path" && \
11640 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11641 fi
11642 done
11643 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9d54db95
JF
11644BEGIN {RS = " "; FS = "/|\n";} {
11645 lt_foo = "";
11646 lt_count = 0;
a243b558
JF
11647 for (lt_i = NF; lt_i > 0; lt_i--) {
11648 if ($lt_i != "" && $lt_i != ".") {
11649 if ($lt_i == "..") {
11650 lt_count++;
11651 } else {
11652 if (lt_count == 0) {
9d54db95 11653 lt_foo = "/" $lt_i lt_foo;
a243b558
JF
11654 } else {
11655 lt_count--;
11656 }
11657 }
11658 }
11659 }
11660 if (lt_foo != "") { lt_freq[lt_foo]++; }
11661 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11662}'`
11663 # AWK program above erroneously prepends '/' to C:/dos/paths
11664 # for these hosts.
11665 case $host_os in
11666 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9d54db95 11667 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
a243b558
JF
11668 esac
11669 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11670else
11671 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11672fi
11673library_names_spec=
11674libname_spec='lib$name'
11675soname_spec=
9d54db95 11676shrext_cmds=.so
a243b558
JF
11677postinstall_cmds=
11678postuninstall_cmds=
11679finish_cmds=
11680finish_eval=
11681shlibpath_var=
11682shlibpath_overrides_runpath=unknown
11683version_type=none
11684dynamic_linker="$host_os ld.so"
11685sys_lib_dlsearch_path_spec="/lib /usr/lib"
11686need_lib_prefix=unknown
11687hardcode_into_libs=no
11688
11689# when you set need_version to no, make sure it does not cause -set_version
11690# flags to be left without arguments
11691need_version=unknown
11692
9d54db95
JF
11693
11694
a243b558
JF
11695case $host_os in
11696aix3*)
11697 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95 11698 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
a243b558
JF
11699 shlibpath_var=LIBPATH
11700
11701 # AIX 3 has no versioning support, so we append a major version to the name.
9d54db95 11702 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
11703 ;;
11704
11705aix[4-9]*)
11706 version_type=linux # correct to gnu/linux during the next big refactor
11707 need_lib_prefix=no
11708 need_version=no
11709 hardcode_into_libs=yes
9d54db95 11710 if test ia64 = "$host_cpu"; then
a243b558 11711 # AIX 5 supports IA64
9d54db95 11712 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
a243b558
JF
11713 shlibpath_var=LD_LIBRARY_PATH
11714 else
11715 # With GCC up to 2.95.x, collect2 would create an import file
11716 # for dependence libraries. The import file would start with
9d54db95
JF
11717 # the line '#! .'. This would cause the generated library to
11718 # depend on '.', always an invalid library. This was fixed in
a243b558
JF
11719 # development snapshots of GCC prior to 3.0.
11720 case $host_os in
11721 aix4 | aix4.[01] | aix4.[01].*)
11722 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11723 echo ' yes '
9d54db95 11724 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
a243b558
JF
11725 :
11726 else
11727 can_build_shared=no
11728 fi
11729 ;;
11730 esac
9d54db95
JF
11731 # Using Import Files as archive members, it is possible to support
11732 # filename-based versioning of shared library archives on AIX. While
11733 # this would work for both with and without runtime linking, it will
11734 # prevent static linking of such archives. So we do filename-based
11735 # shared library versioning with .so extension only, which is used
11736 # when both runtime linking and shared linking is enabled.
11737 # Unfortunately, runtime linking may impact performance, so we do
11738 # not want this to be the default eventually. Also, we use the
11739 # versioned .so libs for executables only if there is the -brtl
11740 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11741 # To allow for filename-based versioning support, we need to create
11742 # libNAME.so.V as an archive file, containing:
11743 # *) an Import File, referring to the versioned filename of the
11744 # archive as well as the shared archive member, telling the
11745 # bitwidth (32 or 64) of that shared object, and providing the
11746 # list of exported symbols of that shared object, eventually
11747 # decorated with the 'weak' keyword
11748 # *) the shared object with the F_LOADONLY flag set, to really avoid
11749 # it being seen by the linker.
11750 # At run time we better use the real file rather than another symlink,
11751 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11752
11753 case $with_aix_soname,$aix_use_runtimelinking in
11754 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
a243b558
JF
11755 # soname into executable. Probably we can add versioning support to
11756 # collect2, so additional links can be useful in future.
9d54db95
JF
11757 aix,yes) # traditional libtool
11758 dynamic_linker='AIX unversionable lib.so'
a243b558
JF
11759 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11760 # instead of lib<name>.a to let people know that these are not
11761 # typical AIX shared libraries.
9d54db95
JF
11762 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11763 ;;
11764 aix,no) # traditional AIX only
11765 dynamic_linker='AIX lib.a(lib.so.V)'
a243b558
JF
11766 # We preserve .a as extension for shared libraries through AIX4.2
11767 # and later when we are not doing run time linking.
9d54db95
JF
11768 library_names_spec='$libname$release.a $libname.a'
11769 soname_spec='$libname$release$shared_ext$major'
11770 ;;
11771 svr4,*) # full svr4 only
11772 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11773 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11774 # We do not specify a path in Import Files, so LIBPATH fires.
11775 shlibpath_overrides_runpath=yes
11776 ;;
11777 *,yes) # both, prefer svr4
11778 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11779 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11780 # unpreferred sharedlib libNAME.a needs extra handling
11781 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"'
11782 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"'
11783 # We do not specify a path in Import Files, so LIBPATH fires.
11784 shlibpath_overrides_runpath=yes
11785 ;;
11786 *,no) # both, prefer aix
11787 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11788 library_names_spec='$libname$release.a $libname.a'
11789 soname_spec='$libname$release$shared_ext$major'
11790 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11791 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)'
11792 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"'
11793 ;;
11794 esac
a243b558
JF
11795 shlibpath_var=LIBPATH
11796 fi
11797 ;;
11798
11799amigaos*)
11800 case $host_cpu in
11801 powerpc)
11802 # Since July 2007 AmigaOS4 officially supports .so libraries.
11803 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9d54db95 11804 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
a243b558
JF
11805 ;;
11806 m68k)
11807 library_names_spec='$libname.ixlibrary $libname.a'
11808 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9d54db95 11809 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
11810 ;;
11811 esac
11812 ;;
11813
11814beos*)
9d54db95 11815 library_names_spec='$libname$shared_ext'
a243b558
JF
11816 dynamic_linker="$host_os ld.so"
11817 shlibpath_var=LIBRARY_PATH
11818 ;;
11819
11820bsdi[45]*)
11821 version_type=linux # correct to gnu/linux during the next big refactor
11822 need_version=no
9d54db95
JF
11823 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11824 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
11825 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11826 shlibpath_var=LD_LIBRARY_PATH
11827 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11828 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11829 # the default ld.so.conf also contains /usr/contrib/lib and
11830 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11831 # libtool to hard-code these into programs
11832 ;;
11833
11834cygwin* | mingw* | pw32* | cegcc*)
11835 version_type=windows
9d54db95 11836 shrext_cmds=.dll
a243b558
JF
11837 need_version=no
11838 need_lib_prefix=no
9c60689e 11839
a243b558
JF
11840 case $GCC,$cc_basename in
11841 yes,*)
11842 # gcc
11843 library_names_spec='$libname.dll.a'
11844 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9d54db95
JF
11845 postinstall_cmds='base_file=`basename \$file`~
11846 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
a243b558
JF
11847 dldir=$destdir/`dirname \$dlpath`~
11848 test -d \$dldir || mkdir -p \$dldir~
11849 $install_prog $dir/$dlname \$dldir/$dlname~
11850 chmod a+x \$dldir/$dlname~
11851 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11852 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11853 fi'
11854 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11855 dlpath=$dir/\$dldll~
11856 $RM \$dlpath'
11857 shlibpath_overrides_runpath=yes
9c60689e 11858
a243b558
JF
11859 case $host_os in
11860 cygwin*)
11861 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9d54db95 11862 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
9c60689e 11863
a243b558
JF
11864 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11865 ;;
11866 mingw* | cegcc*)
11867 # MinGW DLLs use traditional 'lib' prefix
9d54db95 11868 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
a243b558
JF
11869 ;;
11870 pw32*)
11871 # pw32 DLLs use 'pw' prefix rather than 'lib'
9d54db95 11872 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
a243b558
JF
11873 ;;
11874 esac
11875 dynamic_linker='Win32 ld.exe'
11876 ;;
9c60689e 11877
a243b558
JF
11878 *,cl*)
11879 # Native MSVC
11880 libname_spec='$name'
9d54db95
JF
11881 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11882 library_names_spec='$libname.dll.lib'
9c60689e 11883
a243b558
JF
11884 case $build_os in
11885 mingw*)
11886 sys_lib_search_path_spec=
11887 lt_save_ifs=$IFS
11888 IFS=';'
11889 for lt_path in $LIB
11890 do
11891 IFS=$lt_save_ifs
11892 # Let DOS variable expansion print the short 8.3 style file name.
11893 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11894 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11895 done
11896 IFS=$lt_save_ifs
11897 # Convert to MSYS style.
11898 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11899 ;;
11900 cygwin*)
11901 # Convert to unix form, then to dos form, then back to unix form
11902 # but this time dos style (no spaces!) so that the unix form looks
11903 # like /cygdrive/c/PROGRA~1:/cygdr...
11904 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11905 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11906 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11907 ;;
11908 *)
9d54db95 11909 sys_lib_search_path_spec=$LIB
a243b558
JF
11910 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11911 # It is most probably a Windows format PATH.
11912 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11913 else
11914 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11915 fi
11916 # FIXME: find the short name or the path components, as spaces are
11917 # common. (e.g. "Program Files" -> "PROGRA~1")
11918 ;;
11919 esac
11920
11921 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9d54db95
JF
11922 postinstall_cmds='base_file=`basename \$file`~
11923 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
a243b558
JF
11924 dldir=$destdir/`dirname \$dlpath`~
11925 test -d \$dldir || mkdir -p \$dldir~
11926 $install_prog $dir/$dlname \$dldir/$dlname'
11927 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11928 dlpath=$dir/\$dldll~
11929 $RM \$dlpath'
11930 shlibpath_overrides_runpath=yes
11931 dynamic_linker='Win32 link.exe'
11932 ;;
9c60689e 11933
a243b558
JF
11934 *)
11935 # Assume MSVC wrapper
9d54db95 11936 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
a243b558
JF
11937 dynamic_linker='Win32 ld.exe'
11938 ;;
11939 esac
11940 # FIXME: first we should search . and the directory the executable is in
11941 shlibpath_var=PATH
11942 ;;
9c60689e 11943
a243b558
JF
11944darwin* | rhapsody*)
11945 dynamic_linker="$host_os dyld"
11946 version_type=darwin
11947 need_lib_prefix=no
11948 need_version=no
9d54db95
JF
11949 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11950 soname_spec='$libname$release$major$shared_ext'
a243b558
JF
11951 shlibpath_overrides_runpath=yes
11952 shlibpath_var=DYLD_LIBRARY_PATH
11953 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9c60689e 11954
a243b558
JF
11955 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11956 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11957 ;;
9c60689e 11958
a243b558
JF
11959dgux*)
11960 version_type=linux # correct to gnu/linux during the next big refactor
11961 need_lib_prefix=no
11962 need_version=no
9d54db95
JF
11963 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11964 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
11965 shlibpath_var=LD_LIBRARY_PATH
11966 ;;
11967
11968freebsd* | dragonfly*)
11969 # DragonFly does not have aout. When/if they implement a new
11970 # versioning mechanism, adjust this.
11971 if test -x /usr/bin/objformat; then
11972 objformat=`/usr/bin/objformat`
11973 else
11974 case $host_os in
11975 freebsd[23].*) objformat=aout ;;
11976 *) objformat=elf ;;
11977 esac
11978 fi
11979 version_type=freebsd-$objformat
11980 case $version_type in
11981 freebsd-elf*)
9d54db95
JF
11982 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11983 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
11984 need_version=no
11985 need_lib_prefix=no
11986 ;;
11987 freebsd-*)
9d54db95 11988 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
a243b558
JF
11989 need_version=yes
11990 ;;
11991 esac
11992 shlibpath_var=LD_LIBRARY_PATH
11993 case $host_os in
11994 freebsd2.*)
11995 shlibpath_overrides_runpath=yes
11996 ;;
11997 freebsd3.[01]* | freebsdelf3.[01]*)
11998 shlibpath_overrides_runpath=yes
11999 hardcode_into_libs=yes
12000 ;;
12001 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12002 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12003 shlibpath_overrides_runpath=no
12004 hardcode_into_libs=yes
12005 ;;
12006 *) # from 4.6 on, and DragonFly
12007 shlibpath_overrides_runpath=yes
12008 hardcode_into_libs=yes
12009 ;;
12010 esac
12011 ;;
9c60689e 12012
a243b558
JF
12013haiku*)
12014 version_type=linux # correct to gnu/linux during the next big refactor
12015 need_lib_prefix=no
12016 need_version=no
12017 dynamic_linker="$host_os runtime_loader"
9d54db95
JF
12018 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12019 soname_spec='$libname$release$shared_ext$major'
a243b558 12020 shlibpath_var=LIBRARY_PATH
9d54db95 12021 shlibpath_overrides_runpath=no
a243b558
JF
12022 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12023 hardcode_into_libs=yes
12024 ;;
9c60689e 12025
a243b558
JF
12026hpux9* | hpux10* | hpux11*)
12027 # Give a soname corresponding to the major version so that dld.sl refuses to
12028 # link against other versions.
12029 version_type=sunos
12030 need_lib_prefix=no
12031 need_version=no
12032 case $host_cpu in
12033 ia64*)
12034 shrext_cmds='.so'
12035 hardcode_into_libs=yes
12036 dynamic_linker="$host_os dld.so"
12037 shlibpath_var=LD_LIBRARY_PATH
12038 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9d54db95
JF
12039 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12040 soname_spec='$libname$release$shared_ext$major'
12041 if test 32 = "$HPUX_IA64_MODE"; then
a243b558 12042 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9d54db95 12043 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
a243b558
JF
12044 else
12045 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9d54db95 12046 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
a243b558 12047 fi
a243b558
JF
12048 ;;
12049 hppa*64*)
12050 shrext_cmds='.sl'
12051 hardcode_into_libs=yes
12052 dynamic_linker="$host_os dld.sl"
12053 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12054 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9d54db95
JF
12055 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12056 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
12057 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12058 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12059 ;;
12060 *)
12061 shrext_cmds='.sl'
12062 dynamic_linker="$host_os dld.sl"
12063 shlibpath_var=SHLIB_PATH
12064 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9d54db95
JF
12065 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12066 soname_spec='$libname$release$shared_ext$major'
9c60689e
DWT
12067 ;;
12068 esac
a243b558
JF
12069 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12070 postinstall_cmds='chmod 555 $lib'
12071 # or fails outright, so override atomically:
12072 install_override_mode=555
12073 ;;
9c60689e 12074
a243b558
JF
12075interix[3-9]*)
12076 version_type=linux # correct to gnu/linux during the next big refactor
12077 need_lib_prefix=no
12078 need_version=no
9d54db95
JF
12079 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12080 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
12081 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12082 shlibpath_var=LD_LIBRARY_PATH
12083 shlibpath_overrides_runpath=no
12084 hardcode_into_libs=yes
12085 ;;
9c60689e 12086
a243b558
JF
12087irix5* | irix6* | nonstopux*)
12088 case $host_os in
12089 nonstopux*) version_type=nonstopux ;;
12090 *)
9d54db95 12091 if test yes = "$lt_cv_prog_gnu_ld"; then
a243b558
JF
12092 version_type=linux # correct to gnu/linux during the next big refactor
12093 else
12094 version_type=irix
12095 fi ;;
12096 esac
12097 need_lib_prefix=no
12098 need_version=no
9d54db95
JF
12099 soname_spec='$libname$release$shared_ext$major'
12100 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
a243b558
JF
12101 case $host_os in
12102 irix5* | nonstopux*)
12103 libsuff= shlibsuff=
12104 ;;
12105 *)
12106 case $LD in # libtool.m4 will add one of these switches to LD
12107 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12108 libsuff= shlibsuff= libmagic=32-bit;;
12109 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12110 libsuff=32 shlibsuff=N32 libmagic=N32;;
12111 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12112 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12113 *) libsuff= shlibsuff= libmagic=never-match;;
12114 esac
12115 ;;
12116 esac
12117 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12118 shlibpath_overrides_runpath=no
9d54db95
JF
12119 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12120 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
a243b558
JF
12121 hardcode_into_libs=yes
12122 ;;
9c60689e 12123
a243b558
JF
12124# No shared lib support for Linux oldld, aout, or coff.
12125linux*oldld* | linux*aout* | linux*coff*)
12126 dynamic_linker=no
12127 ;;
9c60689e 12128
9d54db95
JF
12129linux*android*)
12130 version_type=none # Android doesn't support versioned libraries.
12131 need_lib_prefix=no
12132 need_version=no
12133 library_names_spec='$libname$release$shared_ext'
12134 soname_spec='$libname$release$shared_ext'
12135 finish_cmds=
12136 shlibpath_var=LD_LIBRARY_PATH
12137 shlibpath_overrides_runpath=yes
12138
12139 # This implies no fast_install, which is unacceptable.
12140 # Some rework will be needed to allow for fast_install
12141 # before this can be enabled.
12142 hardcode_into_libs=yes
12143
12144 dynamic_linker='Android linker'
12145 # Don't embed -rpath directories since the linker doesn't support them.
12146 hardcode_libdir_flag_spec='-L$libdir'
12147 ;;
12148
a243b558 12149# This must be glibc/ELF.
9d54db95 12150linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
a243b558
JF
12151 version_type=linux # correct to gnu/linux during the next big refactor
12152 need_lib_prefix=no
12153 need_version=no
9d54db95
JF
12154 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12155 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
12156 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12157 shlibpath_var=LD_LIBRARY_PATH
12158 shlibpath_overrides_runpath=no
9c60689e 12159
a243b558
JF
12160 # Some binutils ld are patched to set DT_RUNPATH
12161 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
9c60689e
DWT
12162 $as_echo_n "(cached) " >&6
12163else
a243b558
JF
12164 lt_cv_shlibpath_overrides_runpath=no
12165 save_LDFLAGS=$LDFLAGS
12166 save_libdir=$libdir
12167 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12168 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12170/* end confdefs.h. */
ee134472 12171
a243b558
JF
12172int
12173main ()
9c60689e 12174{
9c60689e 12175
a243b558
JF
12176 ;
12177 return 0;
12178}
12179_ACEOF
12180if ac_fn_c_try_link "$LINENO"; then :
12181 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12182 lt_cv_shlibpath_overrides_runpath=yes
12183fi
12184fi
12185rm -f core conftest.err conftest.$ac_objext \
12186 conftest$ac_exeext conftest.$ac_ext
12187 LDFLAGS=$save_LDFLAGS
12188 libdir=$save_libdir
9c60689e 12189
a243b558 12190fi
9c60689e 12191
a243b558 12192 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9c60689e 12193
a243b558
JF
12194 # This implies no fast_install, which is unacceptable.
12195 # Some rework will be needed to allow for fast_install
12196 # before this can be enabled.
12197 hardcode_into_libs=yes
9c60689e 12198
9d54db95
JF
12199 # Ideally, we could use ldconfig to report *all* directores which are
12200 # searched for libraries, however this is still not possible. Aside from not
12201 # being certain /sbin/ldconfig is available, command
12202 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12203 # even though it is searched at run-time. Try to do the best guess by
12204 # appending ld.so.conf contents (and includes) to the search path.
a243b558
JF
12205 if test -f /etc/ld.so.conf; then
12206 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' ' '`
12207 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12208 fi
ee134472 12209
a243b558
JF
12210 # We used to test for /lib/ld.so.1 and disable shared libraries on
12211 # powerpc, because MkLinux only supported shared libraries with the
12212 # GNU dynamic linker. Since this was broken with cross compilers,
12213 # most powerpc-linux boxes support dynamic linking these days and
12214 # people can always --disable-shared, the test was removed, and we
12215 # assume the GNU/Linux dynamic linker is in use.
12216 dynamic_linker='GNU/Linux ld.so'
12217 ;;
9c60689e 12218
a243b558
JF
12219netbsd*)
12220 version_type=sunos
12221 need_lib_prefix=no
12222 need_version=no
12223 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9d54db95 12224 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
a243b558
JF
12225 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12226 dynamic_linker='NetBSD (a.out) ld.so'
9c60689e 12227 else
9d54db95
JF
12228 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12229 soname_spec='$libname$release$shared_ext$major'
a243b558 12230 dynamic_linker='NetBSD ld.elf_so'
9c60689e 12231 fi
a243b558
JF
12232 shlibpath_var=LD_LIBRARY_PATH
12233 shlibpath_overrides_runpath=yes
12234 hardcode_into_libs=yes
12235 ;;
9c60689e 12236
a243b558
JF
12237newsos6)
12238 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95 12239 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
a243b558
JF
12240 shlibpath_var=LD_LIBRARY_PATH
12241 shlibpath_overrides_runpath=yes
12242 ;;
9c60689e 12243
a243b558
JF
12244*nto* | *qnx*)
12245 version_type=qnx
12246 need_lib_prefix=no
12247 need_version=no
9d54db95
JF
12248 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12249 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
12250 shlibpath_var=LD_LIBRARY_PATH
12251 shlibpath_overrides_runpath=no
12252 hardcode_into_libs=yes
12253 dynamic_linker='ldqnx.so'
12254 ;;
9c60689e 12255
9d54db95 12256openbsd* | bitrig*)
a243b558 12257 version_type=sunos
9d54db95 12258 sys_lib_dlsearch_path_spec=/usr/lib
a243b558 12259 need_lib_prefix=no
9d54db95
JF
12260 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12261 need_version=no
a243b558 12262 else
9d54db95 12263 need_version=yes
a243b558 12264 fi
9d54db95
JF
12265 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12266 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12267 shlibpath_var=LD_LIBRARY_PATH
12268 shlibpath_overrides_runpath=yes
a243b558 12269 ;;
9c60689e 12270
a243b558
JF
12271os2*)
12272 libname_spec='$name'
9d54db95
JF
12273 version_type=windows
12274 shrext_cmds=.dll
12275 need_version=no
a243b558 12276 need_lib_prefix=no
9d54db95
JF
12277 # OS/2 can only load a DLL with a base name of 8 characters or less.
12278 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12279 v=$($ECHO $release$versuffix | tr -d .-);
12280 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12281 $ECHO $n$v`$shared_ext'
12282 library_names_spec='${libname}_dll.$libext'
a243b558 12283 dynamic_linker='OS/2 ld.exe'
9d54db95
JF
12284 shlibpath_var=BEGINLIBPATH
12285 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12286 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12287 postinstall_cmds='base_file=`basename \$file`~
12288 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12289 dldir=$destdir/`dirname \$dlpath`~
12290 test -d \$dldir || mkdir -p \$dldir~
12291 $install_prog $dir/$dlname \$dldir/$dlname~
12292 chmod a+x \$dldir/$dlname~
12293 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12294 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12295 fi'
12296 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12297 dlpath=$dir/\$dldll~
12298 $RM \$dlpath'
a243b558 12299 ;;
9c60689e 12300
a243b558
JF
12301osf3* | osf4* | osf5*)
12302 version_type=osf
12303 need_lib_prefix=no
12304 need_version=no
9d54db95
JF
12305 soname_spec='$libname$release$shared_ext$major'
12306 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
a243b558
JF
12307 shlibpath_var=LD_LIBRARY_PATH
12308 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9d54db95 12309 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
a243b558
JF
12310 ;;
12311
12312rdos*)
12313 dynamic_linker=no
12314 ;;
12315
12316solaris*)
12317 version_type=linux # correct to gnu/linux during the next big refactor
12318 need_lib_prefix=no
12319 need_version=no
9d54db95
JF
12320 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12321 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
12322 shlibpath_var=LD_LIBRARY_PATH
12323 shlibpath_overrides_runpath=yes
12324 hardcode_into_libs=yes
12325 # ldd complains unless libraries are executable
12326 postinstall_cmds='chmod +x $lib'
12327 ;;
9c60689e 12328
a243b558
JF
12329sunos4*)
12330 version_type=sunos
9d54db95 12331 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
a243b558
JF
12332 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12333 shlibpath_var=LD_LIBRARY_PATH
12334 shlibpath_overrides_runpath=yes
9d54db95 12335 if test yes = "$with_gnu_ld"; then
a243b558
JF
12336 need_lib_prefix=no
12337 fi
12338 need_version=yes
12339 ;;
9c60689e 12340
a243b558
JF
12341sysv4 | sysv4.3*)
12342 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95
JF
12343 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12344 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
12345 shlibpath_var=LD_LIBRARY_PATH
12346 case $host_vendor in
12347 sni)
12348 shlibpath_overrides_runpath=no
12349 need_lib_prefix=no
12350 runpath_var=LD_RUN_PATH
12351 ;;
12352 siemens)
12353 need_lib_prefix=no
12354 ;;
12355 motorola)
12356 need_lib_prefix=no
12357 need_version=no
12358 shlibpath_overrides_runpath=no
12359 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12360 ;;
12361 esac
12362 ;;
9c60689e 12363
a243b558 12364sysv4*MP*)
9d54db95 12365 if test -d /usr/nec; then
a243b558 12366 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95
JF
12367 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12368 soname_spec='$libname$shared_ext.$major'
a243b558
JF
12369 shlibpath_var=LD_LIBRARY_PATH
12370 fi
12371 ;;
9c60689e 12372
a243b558 12373sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9d54db95 12374 version_type=sco
a243b558
JF
12375 need_lib_prefix=no
12376 need_version=no
9d54db95
JF
12377 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12378 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
12379 shlibpath_var=LD_LIBRARY_PATH
12380 shlibpath_overrides_runpath=yes
12381 hardcode_into_libs=yes
9d54db95 12382 if test yes = "$with_gnu_ld"; then
a243b558
JF
12383 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12384 else
12385 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12386 case $host_os in
12387 sco3.2v5*)
12388 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12389 ;;
12390 esac
12391 fi
12392 sys_lib_dlsearch_path_spec='/usr/lib'
12393 ;;
9c60689e 12394
a243b558
JF
12395tpf*)
12396 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12397 version_type=linux # correct to gnu/linux during the next big refactor
12398 need_lib_prefix=no
12399 need_version=no
9d54db95 12400 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
a243b558
JF
12401 shlibpath_var=LD_LIBRARY_PATH
12402 shlibpath_overrides_runpath=no
12403 hardcode_into_libs=yes
12404 ;;
9c60689e 12405
a243b558
JF
12406uts4*)
12407 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95
JF
12408 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12409 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
12410 shlibpath_var=LD_LIBRARY_PATH
12411 ;;
9c60689e 12412
a243b558
JF
12413*)
12414 dynamic_linker=no
12415 ;;
12416esac
12417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12418$as_echo "$dynamic_linker" >&6; }
9d54db95 12419test no = "$dynamic_linker" && can_build_shared=no
9c60689e 12420
a243b558 12421variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9d54db95 12422if test yes = "$GCC"; then
a243b558
JF
12423 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12424fi
9c60689e 12425
9d54db95
JF
12426if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12427 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
a243b558 12428fi
9d54db95
JF
12429
12430if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12431 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
a243b558 12432fi
9c60689e 12433
9d54db95
JF
12434# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12435configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12436
12437# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12438func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12439
12440# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12441configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12442
12443
12444
12445
12446
12447
9c60689e
DWT
12448
12449
12450
12451
12452
12453
12454
9c60689e
DWT
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
9c60689e 12467
9c60689e 12468
9c60689e 12469
9c60689e 12470
9c60689e
DWT
12471
12472
12473
12474
9c60689e 12475
9c60689e
DWT
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
53ba6704
JF
12489
12490
9c60689e
DWT
12491
12492
12493
12494
9c60689e
DWT
12495
12496
3fd51f51 12497
66170b30
JF
12498
12499
12500
3fd51f51 12501
12833ad8
JF
12502
12503
12504
12505
3fd51f51 12506
3fd51f51
DWT
12507
12508
3fd51f51 12509
3fd51f51 12510
3fd51f51 12511
66170b30 12512
632b71ea 12513
632b71ea
DWT
12514
12515
790e5246 12516
66170b30 12517
9c60689e 12518
9c60689e
DWT
12519
12520
9c60689e 12521
9c60689e
DWT
12522
12523
66170b30 12524
66170b30 12525
9c60689e 12526
e9c9a47c
DWT
12527
12528
12529
66170b30
JF
12530
12531
66170b30 12532
e9c9a47c 12533
a243b558
JF
12534
12535
12536
12537
12538
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12540$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12541hardcode_action=
12542if test -n "$hardcode_libdir_flag_spec" ||
12543 test -n "$runpath_var" ||
9d54db95 12544 test yes = "$hardcode_automatic"; then
a243b558
JF
12545
12546 # We can hardcode non-existent directories.
9d54db95 12547 if test no != "$hardcode_direct" &&
a243b558
JF
12548 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12549 # have to relink, otherwise we might link with an installed library
12550 # when we should be linking with a yet-to-be-installed one
9d54db95
JF
12551 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12552 test no != "$hardcode_minus_L"; then
a243b558
JF
12553 # Linking always hardcodes the temporary library directory.
12554 hardcode_action=relink
12555 else
12556 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12557 hardcode_action=immediate
9c60689e 12558 fi
e9c9a47c 12559else
a243b558
JF
12560 # We cannot hardcode anything, or else we can only hardcode existing
12561 # directories.
12562 hardcode_action=unsupported
12563fi
12564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12565$as_echo "$hardcode_action" >&6; }
12566
9d54db95
JF
12567if test relink = "$hardcode_action" ||
12568 test yes = "$inherit_rpath"; then
a243b558
JF
12569 # Fast installation is not supported
12570 enable_fast_install=no
9d54db95
JF
12571elif test yes = "$shlibpath_overrides_runpath" ||
12572 test no = "$enable_shared"; then
a243b558
JF
12573 # Fast installation is not necessary
12574 enable_fast_install=needless
9c60689e 12575fi
9c60689e 12576
9c60689e 12577
66170b30 12578
66170b30 12579
9c60689e 12580
a243b558 12581
9d54db95 12582 if test yes != "$enable_dlopen"; then
a243b558
JF
12583 enable_dlopen=unknown
12584 enable_dlopen_self=unknown
12585 enable_dlopen_self_static=unknown
66170b30 12586else
a243b558
JF
12587 lt_cv_dlopen=no
12588 lt_cv_dlopen_libs=
66170b30 12589
a243b558
JF
12590 case $host_os in
12591 beos*)
9d54db95 12592 lt_cv_dlopen=load_add_on
a243b558
JF
12593 lt_cv_dlopen_libs=
12594 lt_cv_dlopen_self=yes
12595 ;;
66170b30 12596
a243b558 12597 mingw* | pw32* | cegcc*)
9d54db95 12598 lt_cv_dlopen=LoadLibrary
a243b558
JF
12599 lt_cv_dlopen_libs=
12600 ;;
66170b30 12601
a243b558 12602 cygwin*)
9d54db95 12603 lt_cv_dlopen=dlopen
a243b558
JF
12604 lt_cv_dlopen_libs=
12605 ;;
66170b30 12606
a243b558 12607 darwin*)
9d54db95 12608 # if libdl is installed we need to link against it
a243b558
JF
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12610$as_echo_n "checking for dlopen in -ldl... " >&6; }
12611if ${ac_cv_lib_dl_dlopen+:} false; then :
12612 $as_echo_n "(cached) " >&6
12613else
12614 ac_check_lib_save_LIBS=$LIBS
12615LIBS="-ldl $LIBS"
12616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12617/* end confdefs.h. */
66170b30 12618
a243b558
JF
12619/* Override any GCC internal prototype to avoid an error.
12620 Use char because int might match the return type of a GCC
12621 builtin and then its argument prototype would still apply. */
12622#ifdef __cplusplus
12623extern "C"
12624#endif
12625char dlopen ();
12626int
12627main ()
12628{
12629return dlopen ();
12630 ;
12631 return 0;
12632}
12633_ACEOF
12634if ac_fn_c_try_link "$LINENO"; then :
12635 ac_cv_lib_dl_dlopen=yes
12636else
12637 ac_cv_lib_dl_dlopen=no
66170b30 12638fi
a243b558
JF
12639rm -f core conftest.err conftest.$ac_objext \
12640 conftest$ac_exeext conftest.$ac_ext
12641LIBS=$ac_check_lib_save_LIBS
66170b30 12642fi
a243b558
JF
12643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12644$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12645if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9d54db95 12646 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
a243b558 12647else
66170b30 12648
9d54db95 12649 lt_cv_dlopen=dyld
a243b558
JF
12650 lt_cv_dlopen_libs=
12651 lt_cv_dlopen_self=yes
66170b30 12652
a243b558 12653fi
9c60689e 12654
a243b558 12655 ;;
9c60689e 12656
9d54db95
JF
12657 tpf*)
12658 # Don't try to run any link tests for TPF. We know it's impossible
12659 # because TPF is a cross-compiler, and we know how we open DSOs.
12660 lt_cv_dlopen=dlopen
12661 lt_cv_dlopen_libs=
12662 lt_cv_dlopen_self=no
12663 ;;
12664
a243b558
JF
12665 *)
12666 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12667if test "x$ac_cv_func_shl_load" = xyes; then :
9d54db95 12668 lt_cv_dlopen=shl_load
a243b558
JF
12669else
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12671$as_echo_n "checking for shl_load in -ldld... " >&6; }
12672if ${ac_cv_lib_dld_shl_load+:} false; then :
12673 $as_echo_n "(cached) " >&6
12674else
12675 ac_check_lib_save_LIBS=$LIBS
12676LIBS="-ldld $LIBS"
12677cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12678/* end confdefs.h. */
66170b30 12679
a243b558
JF
12680/* Override any GCC internal prototype to avoid an error.
12681 Use char because int might match the return type of a GCC
12682 builtin and then its argument prototype would still apply. */
12683#ifdef __cplusplus
12684extern "C"
12685#endif
12686char shl_load ();
12687int
12688main ()
12689{
12690return shl_load ();
12691 ;
12692 return 0;
12693}
12694_ACEOF
12695if ac_fn_c_try_link "$LINENO"; then :
12696 ac_cv_lib_dld_shl_load=yes
66170b30 12697else
a243b558
JF
12698 ac_cv_lib_dld_shl_load=no
12699fi
12700rm -f core conftest.err conftest.$ac_objext \
12701 conftest$ac_exeext conftest.$ac_ext
12702LIBS=$ac_check_lib_save_LIBS
66170b30 12703fi
a243b558
JF
12704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12705$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12706if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9d54db95 12707 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
a243b558
JF
12708else
12709 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12710if test "x$ac_cv_func_dlopen" = xyes; then :
9d54db95 12711 lt_cv_dlopen=dlopen
a243b558
JF
12712else
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12714$as_echo_n "checking for dlopen in -ldl... " >&6; }
12715if ${ac_cv_lib_dl_dlopen+:} false; then :
12716 $as_echo_n "(cached) " >&6
12717else
12718 ac_check_lib_save_LIBS=$LIBS
12719LIBS="-ldl $LIBS"
12720cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12721/* end confdefs.h. */
e9c9a47c 12722
a243b558
JF
12723/* Override any GCC internal prototype to avoid an error.
12724 Use char because int might match the return type of a GCC
12725 builtin and then its argument prototype would still apply. */
12726#ifdef __cplusplus
12727extern "C"
12728#endif
12729char dlopen ();
12730int
12731main ()
12732{
12733return dlopen ();
12734 ;
12735 return 0;
12736}
12737_ACEOF
12738if ac_fn_c_try_link "$LINENO"; then :
12739 ac_cv_lib_dl_dlopen=yes
12740else
12741 ac_cv_lib_dl_dlopen=no
12742fi
12743rm -f core conftest.err conftest.$ac_objext \
12744 conftest$ac_exeext conftest.$ac_ext
12745LIBS=$ac_check_lib_save_LIBS
12746fi
12747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12748$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12749if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9d54db95 12750 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
a243b558
JF
12751else
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12753$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12754if ${ac_cv_lib_svld_dlopen+:} false; then :
12755 $as_echo_n "(cached) " >&6
12756else
12757 ac_check_lib_save_LIBS=$LIBS
12758LIBS="-lsvld $LIBS"
12759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12760/* end confdefs.h. */
12761
12762/* Override any GCC internal prototype to avoid an error.
12763 Use char because int might match the return type of a GCC
12764 builtin and then its argument prototype would still apply. */
12765#ifdef __cplusplus
12766extern "C"
12767#endif
12768char dlopen ();
12769int
12770main ()
12771{
12772return dlopen ();
12773 ;
12774 return 0;
12775}
12776_ACEOF
12777if ac_fn_c_try_link "$LINENO"; then :
12778 ac_cv_lib_svld_dlopen=yes
12779else
12780 ac_cv_lib_svld_dlopen=no
12781fi
12782rm -f core conftest.err conftest.$ac_objext \
12783 conftest$ac_exeext conftest.$ac_ext
12784LIBS=$ac_check_lib_save_LIBS
12785fi
12786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12787$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12788if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9d54db95 12789 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
a243b558
JF
12790else
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12792$as_echo_n "checking for dld_link in -ldld... " >&6; }
12793if ${ac_cv_lib_dld_dld_link+:} false; then :
12794 $as_echo_n "(cached) " >&6
12795else
12796 ac_check_lib_save_LIBS=$LIBS
12797LIBS="-ldld $LIBS"
12798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12799/* end confdefs.h. */
12800
12801/* Override any GCC internal prototype to avoid an error.
12802 Use char because int might match the return type of a GCC
12803 builtin and then its argument prototype would still apply. */
12804#ifdef __cplusplus
12805extern "C"
12806#endif
12807char dld_link ();
12808int
12809main ()
12810{
12811return dld_link ();
12812 ;
12813 return 0;
12814}
12815_ACEOF
12816if ac_fn_c_try_link "$LINENO"; then :
12817 ac_cv_lib_dld_dld_link=yes
9c60689e 12818else
a243b558
JF
12819 ac_cv_lib_dld_dld_link=no
12820fi
12821rm -f core conftest.err conftest.$ac_objext \
12822 conftest$ac_exeext conftest.$ac_ext
12823LIBS=$ac_check_lib_save_LIBS
12824fi
12825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12826$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12827if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9d54db95 12828 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
9c60689e
DWT
12829fi
12830
12831
a243b558 12832fi
66170b30 12833
66170b30 12834
a243b558 12835fi
66170b30 12836
66170b30
JF
12837
12838fi
e9c9a47c 12839
66170b30 12840
a243b558 12841fi
66170b30 12842
66170b30 12843
66170b30 12844fi
e9c9a47c 12845
a243b558
JF
12846 ;;
12847 esac
9c60689e 12848
9d54db95 12849 if test no = "$lt_cv_dlopen"; then
a243b558 12850 enable_dlopen=no
9d54db95
JF
12851 else
12852 enable_dlopen=yes
a243b558 12853 fi
9c60689e 12854
a243b558
JF
12855 case $lt_cv_dlopen in
12856 dlopen)
9d54db95
JF
12857 save_CPPFLAGS=$CPPFLAGS
12858 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
66170b30 12859
9d54db95 12860 save_LDFLAGS=$LDFLAGS
a243b558 12861 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
66170b30 12862
9d54db95 12863 save_LIBS=$LIBS
a243b558 12864 LIBS="$lt_cv_dlopen_libs $LIBS"
3fd51f51 12865
a243b558
JF
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12867$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12868if ${lt_cv_dlopen_self+:} false; then :
12869 $as_echo_n "(cached) " >&6
e9c9a47c 12870else
9d54db95 12871 if test yes = "$cross_compiling"; then :
a243b558
JF
12872 lt_cv_dlopen_self=cross
12873else
12874 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12875 lt_status=$lt_dlunknown
12876 cat > conftest.$ac_ext <<_LT_EOF
12877#line $LINENO "configure"
12878#include "confdefs.h"
e9c9a47c 12879
a243b558
JF
12880#if HAVE_DLFCN_H
12881#include <dlfcn.h>
12882#endif
e9c9a47c 12883
a243b558 12884#include <stdio.h>
66170b30 12885
a243b558
JF
12886#ifdef RTLD_GLOBAL
12887# define LT_DLGLOBAL RTLD_GLOBAL
12888#else
12889# ifdef DL_GLOBAL
12890# define LT_DLGLOBAL DL_GLOBAL
12891# else
12892# define LT_DLGLOBAL 0
12893# endif
12894#endif
66170b30 12895
a243b558
JF
12896/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12897 find out it does not work in some platform. */
12898#ifndef LT_DLLAZY_OR_NOW
12899# ifdef RTLD_LAZY
12900# define LT_DLLAZY_OR_NOW RTLD_LAZY
12901# else
12902# ifdef DL_LAZY
12903# define LT_DLLAZY_OR_NOW DL_LAZY
12904# else
12905# ifdef RTLD_NOW
12906# define LT_DLLAZY_OR_NOW RTLD_NOW
12907# else
12908# ifdef DL_NOW
12909# define LT_DLLAZY_OR_NOW DL_NOW
12910# else
12911# define LT_DLLAZY_OR_NOW 0
12912# endif
12913# endif
12914# endif
12915# endif
12916#endif
e9c9a47c 12917
9d54db95 12918/* When -fvisibility=hidden is used, assume the code has been annotated
a243b558 12919 correspondingly for the symbols needed. */
9d54db95 12920#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
a243b558
JF
12921int fnord () __attribute__((visibility("default")));
12922#endif
e9c9a47c 12923
a243b558
JF
12924int fnord () { return 42; }
12925int main ()
12926{
12927 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12928 int status = $lt_dlunknown;
e9c9a47c 12929
a243b558
JF
12930 if (self)
12931 {
12932 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12933 else
12934 {
12935 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12936 else puts (dlerror ());
12937 }
12938 /* dlclose (self); */
12939 }
12940 else
12941 puts (dlerror ());
e9c9a47c 12942
a243b558
JF
12943 return status;
12944}
12945_LT_EOF
12946 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12947 (eval $ac_link) 2>&5
12948 ac_status=$?
12949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9d54db95 12950 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
a243b558
JF
12951 (./conftest; exit; ) >&5 2>/dev/null
12952 lt_status=$?
12953 case x$lt_status in
12954 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12955 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12956 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12957 esac
12958 else :
12959 # compilation failed
12960 lt_cv_dlopen_self=no
12961 fi
12962fi
12963rm -fr conftest*
e9c9a47c 12964
e9c9a47c 12965
e9c9a47c 12966fi
a243b558
JF
12967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12968$as_echo "$lt_cv_dlopen_self" >&6; }
e9c9a47c 12969
9d54db95 12970 if test yes = "$lt_cv_dlopen_self"; then
a243b558
JF
12971 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12973$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12974if ${lt_cv_dlopen_self_static+:} false; then :
12975 $as_echo_n "(cached) " >&6
e9c9a47c 12976else
9d54db95 12977 if test yes = "$cross_compiling"; then :
a243b558
JF
12978 lt_cv_dlopen_self_static=cross
12979else
12980 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12981 lt_status=$lt_dlunknown
12982 cat > conftest.$ac_ext <<_LT_EOF
12983#line $LINENO "configure"
12984#include "confdefs.h"
12985
12986#if HAVE_DLFCN_H
12987#include <dlfcn.h>
12988#endif
12989
12990#include <stdio.h>
e9c9a47c 12991
a243b558
JF
12992#ifdef RTLD_GLOBAL
12993# define LT_DLGLOBAL RTLD_GLOBAL
12994#else
12995# ifdef DL_GLOBAL
12996# define LT_DLGLOBAL DL_GLOBAL
12997# else
12998# define LT_DLGLOBAL 0
12999# endif
13000#endif
e9c9a47c 13001
a243b558
JF
13002/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13003 find out it does not work in some platform. */
13004#ifndef LT_DLLAZY_OR_NOW
13005# ifdef RTLD_LAZY
13006# define LT_DLLAZY_OR_NOW RTLD_LAZY
13007# else
13008# ifdef DL_LAZY
13009# define LT_DLLAZY_OR_NOW DL_LAZY
13010# else
13011# ifdef RTLD_NOW
13012# define LT_DLLAZY_OR_NOW RTLD_NOW
13013# else
13014# ifdef DL_NOW
13015# define LT_DLLAZY_OR_NOW DL_NOW
13016# else
13017# define LT_DLLAZY_OR_NOW 0
13018# endif
13019# endif
13020# endif
13021# endif
13022#endif
66170b30 13023
9d54db95 13024/* When -fvisibility=hidden is used, assume the code has been annotated
a243b558 13025 correspondingly for the symbols needed. */
9d54db95 13026#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
a243b558
JF
13027int fnord () __attribute__((visibility("default")));
13028#endif
e9c9a47c 13029
a243b558
JF
13030int fnord () { return 42; }
13031int main ()
13032{
13033 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13034 int status = $lt_dlunknown;
e9c9a47c 13035
a243b558
JF
13036 if (self)
13037 {
13038 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13039 else
13040 {
13041 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13042 else puts (dlerror ());
13043 }
13044 /* dlclose (self); */
13045 }
13046 else
13047 puts (dlerror ());
e9c9a47c 13048
a243b558
JF
13049 return status;
13050}
13051_LT_EOF
13052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13053 (eval $ac_link) 2>&5
13054 ac_status=$?
13055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9d54db95 13056 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
a243b558
JF
13057 (./conftest; exit; ) >&5 2>/dev/null
13058 lt_status=$?
13059 case x$lt_status in
13060 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13061 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13062 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13063 esac
13064 else :
13065 # compilation failed
13066 lt_cv_dlopen_self_static=no
13067 fi
13068fi
13069rm -fr conftest*
e9c9a47c 13070
b65019fe 13071
a243b558
JF
13072fi
13073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13074$as_echo "$lt_cv_dlopen_self_static" >&6; }
13075 fi
66170b30 13076
9d54db95
JF
13077 CPPFLAGS=$save_CPPFLAGS
13078 LDFLAGS=$save_LDFLAGS
13079 LIBS=$save_LIBS
a243b558
JF
13080 ;;
13081 esac
66170b30 13082
a243b558
JF
13083 case $lt_cv_dlopen_self in
13084 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13085 *) enable_dlopen_self=unknown ;;
13086 esac
13087
13088 case $lt_cv_dlopen_self_static in
13089 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13090 *) enable_dlopen_self_static=unknown ;;
13091 esac
b65019fe
DWT
13092fi
13093
13094
66170b30 13095
b65019fe 13096
e9c9a47c 13097
e9c9a47c
DWT
13098
13099
e9c9a47c 13100
e9c9a47c
DWT
13101
13102
e9c9a47c 13103
e9c9a47c 13104
3530897b 13105
47aaa820 13106
47aaa820 13107
a243b558
JF
13108
13109
13110striplib=
13111old_striplib=
13112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13113$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13114if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13115 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13116 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13118$as_echo "yes" >&6; }
47aaa820 13119else
a243b558
JF
13120# FIXME - insert some real tests, host_os isn't really good enough
13121 case $host_os in
13122 darwin*)
9d54db95 13123 if test -n "$STRIP"; then
a243b558
JF
13124 striplib="$STRIP -x"
13125 old_striplib="$STRIP -S"
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13127$as_echo "yes" >&6; }
13128 else
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13130$as_echo "no" >&6; }
13131 fi
13132 ;;
13133 *)
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13135$as_echo "no" >&6; }
13136 ;;
13137 esac
3530897b 13138fi
47aaa820 13139
3530897b
DWT
13140
13141
9c60689e 13142
9c60689e 13143
9c60689e 13144
9c60689e 13145
9c60689e 13146
66170b30 13147
66170b30 13148
66170b30 13149
66170b30 13150
9d54db95 13151 # Report what library types will actually be built
a243b558
JF
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13153$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13155$as_echo "$can_build_shared" >&6; }
66170b30 13156
a243b558
JF
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13158$as_echo_n "checking whether to build shared libraries... " >&6; }
9d54db95 13159 test no = "$can_build_shared" && enable_shared=no
66170b30 13160
a243b558
JF
13161 # On AIX, shared libraries and static libraries use the same namespace, and
13162 # are all built from PIC.
13163 case $host_os in
13164 aix3*)
9d54db95 13165 test yes = "$enable_shared" && enable_static=no
a243b558
JF
13166 if test -n "$RANLIB"; then
13167 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13168 postinstall_cmds='$RANLIB $lib'
13169 fi
13170 ;;
66170b30 13171
a243b558 13172 aix[4-9]*)
9d54db95
JF
13173 if test ia64 != "$host_cpu"; then
13174 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13175 yes,aix,yes) ;; # shared object as lib.so file only
13176 yes,svr4,*) ;; # shared object as lib.so archive member only
13177 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13178 esac
a243b558
JF
13179 fi
13180 ;;
13181 esac
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13183$as_echo "$enable_shared" >&6; }
66170b30 13184
a243b558
JF
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13186$as_echo_n "checking whether to build static libraries... " >&6; }
13187 # Make sure either enable_shared or enable_static is yes.
9d54db95 13188 test yes = "$enable_shared" || enable_static=yes
a243b558
JF
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13190$as_echo "$enable_static" >&6; }
66170b30 13191
9c60689e 13192
e9c9a47c 13193
9c60689e 13194
a243b558
JF
13195fi
13196ac_ext=c
13197ac_cpp='$CPP $CPPFLAGS'
13198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13200ac_compiler_gnu=$ac_cv_c_compiler_gnu
13201
9d54db95 13202CC=$lt_save_CC
e9c9a47c 13203
9d54db95
JF
13204 if test -n "$CXX" && ( test no != "$CXX" &&
13205 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13206 (test g++ != "$CXX"))); then
e9c9a47c
DWT
13207 ac_ext=cpp
13208ac_cpp='$CXXCPP $CPPFLAGS'
13209ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13210ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13211ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13213$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13214if test -z "$CXXCPP"; then
ee134472 13215 if ${ac_cv_prog_CXXCPP+:} false; then :
e9c9a47c
DWT
13216 $as_echo_n "(cached) " >&6
13217else
13218 # Double quotes because CXXCPP needs to be expanded
13219 for CXXCPP in "$CXX -E" "/lib/cpp"
13220 do
13221 ac_preproc_ok=false
13222for ac_cxx_preproc_warn_flag in '' yes
13223do
13224 # Use a header file that comes with gcc, so configuring glibc
13225 # with a fresh cross-compiler works.
13226 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13227 # <limits.h> exists even on freestanding compilers.
13228 # On the NeXT, cc -E runs the code through the compiler's parser,
13229 # not just through cpp. "Syntax error" is here to catch this case.
13230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13231/* end confdefs.h. */
13232#ifdef __STDC__
13233# include <limits.h>
13234#else
13235# include <assert.h>
13236#endif
13237 Syntax error
13238_ACEOF
13239if ac_fn_cxx_try_cpp "$LINENO"; then :
13240
13241else
13242 # Broken: fails on valid input.
13243continue
13244fi
12833ad8 13245rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
13246
13247 # OK, works on sane cases. Now check whether nonexistent headers
13248 # can be detected and how.
13249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13250/* end confdefs.h. */
13251#include <ac_nonexistent.h>
13252_ACEOF
13253if ac_fn_cxx_try_cpp "$LINENO"; then :
13254 # Broken: success on invalid input.
13255continue
13256else
13257 # Passes both tests.
13258ac_preproc_ok=:
13259break
13260fi
12833ad8 13261rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
13262
13263done
13264# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12833ad8 13265rm -f conftest.i conftest.err conftest.$ac_ext
e9c9a47c
DWT
13266if $ac_preproc_ok; then :
13267 break
13268fi
13269
13270 done
13271 ac_cv_prog_CXXCPP=$CXXCPP
13272
13273fi
13274 CXXCPP=$ac_cv_prog_CXXCPP
13275else
13276 ac_cv_prog_CXXCPP=$CXXCPP
13277fi
13278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13279$as_echo "$CXXCPP" >&6; }
13280ac_preproc_ok=false
13281for ac_cxx_preproc_warn_flag in '' yes
13282do
13283 # Use a header file that comes with gcc, so configuring glibc
13284 # with a fresh cross-compiler works.
13285 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13286 # <limits.h> exists even on freestanding compilers.
13287 # On the NeXT, cc -E runs the code through the compiler's parser,
13288 # not just through cpp. "Syntax error" is here to catch this case.
13289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13290/* end confdefs.h. */
13291#ifdef __STDC__
13292# include <limits.h>
13293#else
13294# include <assert.h>
13295#endif
13296 Syntax error
13297_ACEOF
13298if ac_fn_cxx_try_cpp "$LINENO"; then :
13299
13300else
13301 # Broken: fails on valid input.
13302continue
13303fi
12833ad8 13304rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
13305
13306 # OK, works on sane cases. Now check whether nonexistent headers
13307 # can be detected and how.
13308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13309/* end confdefs.h. */
13310#include <ac_nonexistent.h>
13311_ACEOF
13312if ac_fn_cxx_try_cpp "$LINENO"; then :
13313 # Broken: success on invalid input.
13314continue
13315else
13316 # Passes both tests.
13317ac_preproc_ok=:
13318break
13319fi
12833ad8 13320rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
13321
13322done
13323# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12833ad8 13324rm -f conftest.i conftest.err conftest.$ac_ext
e9c9a47c
DWT
13325if $ac_preproc_ok; then :
13326
13327else
13328 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13329$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ee134472
JF
13330as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13331See \`config.log' for more details" "$LINENO" 5; }
e9c9a47c
DWT
13332fi
13333
a243b558
JF
13334ac_ext=c
13335ac_cpp='$CPP $CPPFLAGS'
13336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13338ac_compiler_gnu=$ac_cv_c_compiler_gnu
66170b30
JF
13339
13340else
e9c9a47c
DWT
13341 _lt_caught_CXX_error=yes
13342fi
13343
9c60689e
DWT
13344ac_ext=cpp
13345ac_cpp='$CXXCPP $CPPFLAGS'
13346ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13347ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13348ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9c60689e 13349
47aaa820
DWT
13350archive_cmds_need_lc_CXX=no
13351allow_undefined_flag_CXX=
13352always_export_symbols_CXX=no
13353archive_expsym_cmds_CXX=
13354compiler_needs_object_CXX=no
13355export_dynamic_flag_spec_CXX=
13356hardcode_direct_CXX=no
13357hardcode_direct_absolute_CXX=no
13358hardcode_libdir_flag_spec_CXX=
47aaa820
DWT
13359hardcode_libdir_separator_CXX=
13360hardcode_minus_L_CXX=no
13361hardcode_shlibpath_var_CXX=unsupported
13362hardcode_automatic_CXX=no
13363inherit_rpath_CXX=no
13364module_cmds_CXX=
13365module_expsym_cmds_CXX=
13366link_all_deplibs_CXX=unknown
13367old_archive_cmds_CXX=$old_archive_cmds
ee134472
JF
13368reload_flag_CXX=$reload_flag
13369reload_cmds_CXX=$reload_cmds
47aaa820
DWT
13370no_undefined_flag_CXX=
13371whole_archive_flag_spec_CXX=
13372enable_shared_with_static_runtimes_CXX=no
9c60689e 13373
47aaa820
DWT
13374# Source file extension for C++ test sources.
13375ac_ext=cpp
9c60689e 13376
47aaa820
DWT
13377# Object file extension for compiled C++ test sources.
13378objext=o
13379objext_CXX=$objext
9c60689e 13380
47aaa820
DWT
13381# No sense in running all these tests if we already determined that
13382# the CXX compiler isn't working. Some variables (like enable_shared)
13383# are currently assumed to apply to all compilers on this platform,
13384# and will be corrupted by setting them based on a non-working compiler.
9d54db95 13385if test yes != "$_lt_caught_CXX_error"; then
47aaa820
DWT
13386 # Code to be used in simple compile tests
13387 lt_simple_compile_test_code="int some_variable = 0;"
9c60689e 13388
47aaa820
DWT
13389 # Code to be used in simple link tests
13390 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
9c60689e 13391
47aaa820 13392 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9c60689e 13393
9c60689e 13394
9c60689e 13395
9c60689e 13396
9c60689e 13397
9c60689e 13398
47aaa820
DWT
13399# If no C compiler was specified, use CC.
13400LTCC=${LTCC-"$CC"}
9c60689e 13401
47aaa820
DWT
13402# If no C compiler flags were specified, use CFLAGS.
13403LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9c60689e 13404
47aaa820
DWT
13405# Allow CC to be a program name with arguments.
13406compiler=$CC
9c60689e 13407
9c60689e 13408
47aaa820
DWT
13409 # save warnings/boilerplate of simple test code
13410 ac_outfile=conftest.$ac_objext
13411echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13412eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13413_lt_compiler_boilerplate=`cat conftest.err`
00a96142 13414$RM -r conftest*
9c60689e 13415
47aaa820
DWT
13416 ac_outfile=conftest.$ac_objext
13417echo "$lt_simple_link_test_code" >conftest.$ac_ext
13418eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13419_lt_linker_boilerplate=`cat conftest.err`
13420$RM -r conftest*
9c60689e 13421
9c60689e 13422
47aaa820
DWT
13423 # Allow CC to be a program name with arguments.
13424 lt_save_CC=$CC
ee134472 13425 lt_save_CFLAGS=$CFLAGS
47aaa820
DWT
13426 lt_save_LD=$LD
13427 lt_save_GCC=$GCC
13428 GCC=$GXX
13429 lt_save_with_gnu_ld=$with_gnu_ld
13430 lt_save_path_LD=$lt_cv_path_LD
13431 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13432 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9c60689e 13433 else
47aaa820 13434 $as_unset lt_cv_prog_gnu_ld
9c60689e 13435 fi
47aaa820
DWT
13436 if test -n "${lt_cv_path_LDCXX+set}"; then
13437 lt_cv_path_LD=$lt_cv_path_LDCXX
9c60689e 13438 else
47aaa820 13439 $as_unset lt_cv_path_LD
9c60689e 13440 fi
47aaa820
DWT
13441 test -z "${LDCXX+set}" || LD=$LDCXX
13442 CC=${CXX-"c++"}
ee134472 13443 CFLAGS=$CXXFLAGS
47aaa820
DWT
13444 compiler=$CC
13445 compiler_CXX=$CC
9d54db95
JF
13446 func_cc_basename $compiler
13447cc_basename=$func_cc_basename_result
9c60689e
DWT
13448
13449
47aaa820
DWT
13450 if test -n "$compiler"; then
13451 # We don't want -fno-exception when compiling C++ code, so set the
13452 # no_builtin_flag separately
9d54db95 13453 if test yes = "$GXX"; then
47aaa820
DWT
13454 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13455 else
13456 lt_prog_compiler_no_builtin_flag_CXX=
13457 fi
9c60689e 13458
9d54db95 13459 if test yes = "$GXX"; then
47aaa820
DWT
13460 # Set up default GNU C++ configuration
13461
13462
13463
13464# Check whether --with-gnu-ld was given.
13465if test "${with_gnu_ld+set}" = set; then :
9d54db95 13466 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
9c60689e 13467else
47aaa820 13468 with_gnu_ld=no
9c60689e
DWT
13469fi
13470
47aaa820 13471ac_prog=ld
9d54db95 13472if test yes = "$GCC"; then
47aaa820
DWT
13473 # Check if gcc -print-prog-name=ld gives a path.
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13475$as_echo_n "checking for ld used by $CC... " >&6; }
13476 case $host in
13477 *-*-mingw*)
9d54db95 13478 # gcc leaves a trailing carriage return, which upsets mingw
47aaa820
DWT
13479 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13480 *)
13481 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13482 esac
13483 case $ac_prog in
13484 # Accept absolute paths.
13485 [\\/]* | ?:[\\/]*)
13486 re_direlt='/[^/][^/]*/\.\./'
13487 # Canonicalize the pathname of ld
13488 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13489 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13490 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13491 done
9d54db95 13492 test -z "$LD" && LD=$ac_prog
47aaa820
DWT
13493 ;;
13494 "")
13495 # If it fails, then pretend we aren't using GCC.
13496 ac_prog=ld
13497 ;;
13498 *)
13499 # If it is relative, then search for the first ld in PATH.
13500 with_gnu_ld=unknown
13501 ;;
13502 esac
9d54db95 13503elif test yes = "$with_gnu_ld"; then
47aaa820
DWT
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13505$as_echo_n "checking for GNU ld... " >&6; }
13506else
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13508$as_echo_n "checking for non-GNU ld... " >&6; }
9c60689e 13509fi
ee134472 13510if ${lt_cv_path_LD+:} false; then :
9c60689e
DWT
13511 $as_echo_n "(cached) " >&6
13512else
47aaa820 13513 if test -z "$LD"; then
9d54db95 13514 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
47aaa820 13515 for ac_dir in $PATH; do
9d54db95 13516 IFS=$lt_save_ifs
47aaa820
DWT
13517 test -z "$ac_dir" && ac_dir=.
13518 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9d54db95 13519 lt_cv_path_LD=$ac_dir/$ac_prog
47aaa820
DWT
13520 # Check to see if the program is GNU ld. I'd rather use --version,
13521 # but apparently some variants of GNU ld only accept -v.
13522 # Break only if it was the GNU/non-GNU ld that we prefer.
13523 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13524 *GNU* | *'with BFD'*)
9d54db95 13525 test no != "$with_gnu_ld" && break
47aaa820
DWT
13526 ;;
13527 *)
9d54db95 13528 test yes != "$with_gnu_ld" && break
47aaa820
DWT
13529 ;;
13530 esac
13531 fi
9c60689e 13532 done
9d54db95 13533 IFS=$lt_save_ifs
47aaa820 13534else
9d54db95 13535 lt_cv_path_LD=$LD # Let the user override the test with a path.
9c60689e
DWT
13536fi
13537fi
47aaa820 13538
9d54db95 13539LD=$lt_cv_path_LD
47aaa820
DWT
13540if test -n "$LD"; then
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13542$as_echo "$LD" >&6; }
9c60689e
DWT
13543else
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13545$as_echo "no" >&6; }
13546fi
12833ad8 13547test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
47aaa820
DWT
13548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13549$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
ee134472 13550if ${lt_cv_prog_gnu_ld+:} false; then :
47aaa820
DWT
13551 $as_echo_n "(cached) " >&6
13552else
13553 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13554case `$LD -v 2>&1 </dev/null` in
13555*GNU* | *'with BFD'*)
13556 lt_cv_prog_gnu_ld=yes
13557 ;;
13558*)
13559 lt_cv_prog_gnu_ld=no
13560 ;;
13561esac
13562fi
13563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13564$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13565with_gnu_ld=$lt_cv_prog_gnu_ld
9c60689e
DWT
13566
13567
9c60689e 13568
9c60689e 13569
9c60689e 13570
9c60689e 13571
9c60689e 13572
47aaa820
DWT
13573 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13574 # archiving commands below assume that GNU ld is being used.
9d54db95
JF
13575 if test yes = "$with_gnu_ld"; then
13576 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13577 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 13578
9d54db95
JF
13579 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13580 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
9c60689e 13581
47aaa820
DWT
13582 # If archive_cmds runs LD, not CC, wlarc should be empty
13583 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13584 # investigate it a little bit more. (MM)
9d54db95 13585 wlarc='$wl'
9c60689e 13586
47aaa820
DWT
13587 # ancient GNU ld didn't support --whole-archive et. al.
13588 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13589 $GREP 'no-whole-archive' > /dev/null; then
9d54db95 13590 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
47aaa820
DWT
13591 else
13592 whole_archive_flag_spec_CXX=
13593 fi
13594 else
13595 with_gnu_ld=no
13596 wlarc=
13597
13598 # A generic and very simple default shared library creation
13599 # command for GNU C++ for the case where it uses the native
13600 # linker, instead of GNU ld. If possible, this setting should
13601 # overridden to take advantage of the native linker features on
13602 # the platform it is being used on.
13603 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13604 fi
13605
13606 # Commands to make compiler produce verbose output that lists
13607 # what "hidden" libraries, object files and flags are used when
13608 # linking a shared library.
ee134472 13609 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820
DWT
13610
13611 else
13612 GXX=no
13613 with_gnu_ld=no
13614 wlarc=
13615 fi
13616
13617 # PORTME: fill in a description of your system's C++ link characteristics
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13619$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13620 ld_shlibs_CXX=yes
13621 case $host_os in
13622 aix3*)
13623 # FIXME: insert proper C++ library support
13624 ld_shlibs_CXX=no
13625 ;;
13626 aix[4-9]*)
9d54db95 13627 if test ia64 = "$host_cpu"; then
47aaa820
DWT
13628 # On IA64, the linker does run time linking by default, so we don't
13629 # have to do anything special.
13630 aix_use_runtimelinking=no
13631 exp_sym_flag='-Bexport'
9d54db95 13632 no_entry_flag=
47aaa820
DWT
13633 else
13634 aix_use_runtimelinking=no
13635
13636 # Test if we are trying to use run time linking or normal
13637 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9d54db95
JF
13638 # have runtime linking enabled, and use it for executables.
13639 # For shared libraries, we enable/disable runtime linking
13640 # depending on the kind of the shared library created -
13641 # when "with_aix_soname,aix_use_runtimelinking" is:
13642 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13643 # "aix,yes" lib.so shared, rtl:yes, for executables
13644 # lib.a static archive
13645 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13646 # lib.a(lib.so.V) shared, rtl:no, for executables
13647 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13648 # lib.a(lib.so.V) shared, rtl:no
13649 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13650 # lib.a static archive
47aaa820
DWT
13651 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13652 for ld_flag in $LDFLAGS; do
13653 case $ld_flag in
13654 *-brtl*)
13655 aix_use_runtimelinking=yes
13656 break
13657 ;;
13658 esac
13659 done
9d54db95
JF
13660 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13661 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13662 # so we don't have lib.a shared libs to link our executables.
13663 # We have to force runtime linking in this case.
13664 aix_use_runtimelinking=yes
13665 LDFLAGS="$LDFLAGS -Wl,-brtl"
13666 fi
47aaa820
DWT
13667 ;;
13668 esac
13669
13670 exp_sym_flag='-bexport'
13671 no_entry_flag='-bnoentry'
13672 fi
13673
13674 # When large executables or shared objects are built, AIX ld can
13675 # have problems creating the table of contents. If linking a library
13676 # or program results in "error TOC overflow" add -mminimal-toc to
13677 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13678 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13679
13680 archive_cmds_CXX=''
13681 hardcode_direct_CXX=yes
13682 hardcode_direct_absolute_CXX=yes
13683 hardcode_libdir_separator_CXX=':'
13684 link_all_deplibs_CXX=yes
9d54db95
JF
13685 file_list_spec_CXX='$wl-f,'
13686 case $with_aix_soname,$aix_use_runtimelinking in
13687 aix,*) ;; # no import file
13688 svr4,* | *,yes) # use import file
13689 # The Import File defines what to hardcode.
13690 hardcode_direct_CXX=no
13691 hardcode_direct_absolute_CXX=no
13692 ;;
13693 esac
47aaa820 13694
9d54db95 13695 if test yes = "$GXX"; then
47aaa820
DWT
13696 case $host_os in aix4.[012]|aix4.[012].*)
13697 # We only want to do this on AIX 4.2 and lower, the check
13698 # below for broken collect2 doesn't work under 4.3+
9d54db95 13699 collect2name=`$CC -print-prog-name=collect2`
47aaa820
DWT
13700 if test -f "$collect2name" &&
13701 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13702 then
13703 # We have reworked collect2
13704 :
13705 else
13706 # We have old collect2
13707 hardcode_direct_CXX=unsupported
13708 # It fails to find uninstalled libraries when the uninstalled
13709 # path is not listed in the libpath. Setting hardcode_minus_L
13710 # to unsupported forces relinking
13711 hardcode_minus_L_CXX=yes
13712 hardcode_libdir_flag_spec_CXX='-L$libdir'
13713 hardcode_libdir_separator_CXX=
13714 fi
13715 esac
13716 shared_flag='-shared'
9d54db95
JF
13717 if test yes = "$aix_use_runtimelinking"; then
13718 shared_flag=$shared_flag' $wl-G'
47aaa820 13719 fi
9d54db95
JF
13720 # Need to ensure runtime linking is disabled for the traditional
13721 # shared library, or the linker may eventually find shared libraries
13722 # /with/ Import File - we do not want to mix them.
13723 shared_flag_aix='-shared'
13724 shared_flag_svr4='-shared $wl-G'
47aaa820
DWT
13725 else
13726 # not using gcc
9d54db95 13727 if test ia64 = "$host_cpu"; then
47aaa820
DWT
13728 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13729 # chokes on -Wl,-G. The following line is correct:
13730 shared_flag='-G'
13731 else
9d54db95
JF
13732 if test yes = "$aix_use_runtimelinking"; then
13733 shared_flag='$wl-G'
47aaa820 13734 else
9d54db95 13735 shared_flag='$wl-bM:SRE'
47aaa820 13736 fi
9d54db95
JF
13737 shared_flag_aix='$wl-bM:SRE'
13738 shared_flag_svr4='$wl-G'
47aaa820
DWT
13739 fi
13740 fi
13741
9d54db95 13742 export_dynamic_flag_spec_CXX='$wl-bexpall'
47aaa820
DWT
13743 # It seems that -bexpall does not export symbols beginning with
13744 # underscore (_), so it is better to generate a list of symbols to
13745 # export.
13746 always_export_symbols_CXX=yes
9d54db95 13747 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
47aaa820
DWT
13748 # Warning - without using the other runtime loading flags (-brtl),
13749 # -berok will link without error, but may produce a broken library.
9d54db95
JF
13750 # The "-G" linker flag allows undefined symbols.
13751 no_undefined_flag_CXX='-bernotok'
47aaa820
DWT
13752 # Determine the default libpath from the value encoded in an empty
13753 # executable.
9d54db95 13754 if test set = "${lt_cv_aix_libpath+set}"; then
ee134472
JF
13755 aix_libpath=$lt_cv_aix_libpath
13756else
13757 if ${lt_cv_aix_libpath__CXX+:} false; then :
13758 $as_echo_n "(cached) " >&6
13759else
13760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
13761/* end confdefs.h. */
13762
13763int
13764main ()
13765{
13766
13767 ;
13768 return 0;
13769}
13770_ACEOF
47aaa820 13771if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e 13772
ee134472
JF
13773 lt_aix_libpath_sed='
13774 /Import File Strings/,/^$/ {
13775 /^0/ {
13776 s/^0 *\([^ ]*\) *$/\1/
13777 p
13778 }
13779 }'
13780 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13781 # Check for a 64-bit object if we didn't find anything.
13782 if test -z "$lt_cv_aix_libpath__CXX"; then
13783 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13784 fi
47aaa820
DWT
13785fi
13786rm -f core conftest.err conftest.$ac_objext \
13787 conftest$ac_exeext conftest.$ac_ext
ee134472 13788 if test -z "$lt_cv_aix_libpath__CXX"; then
9d54db95 13789 lt_cv_aix_libpath__CXX=/usr/lib:/lib
ee134472
JF
13790 fi
13791
13792fi
13793
13794 aix_libpath=$lt_cv_aix_libpath__CXX
13795fi
47aaa820 13796
9d54db95 13797 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
47aaa820 13798
9d54db95 13799 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 13800 else
9d54db95
JF
13801 if test ia64 = "$host_cpu"; then
13802 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
47aaa820 13803 allow_undefined_flag_CXX="-z nodefs"
9d54db95 13804 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
13805 else
13806 # Determine the default libpath from the value encoded in an
13807 # empty executable.
9d54db95 13808 if test set = "${lt_cv_aix_libpath+set}"; then
ee134472
JF
13809 aix_libpath=$lt_cv_aix_libpath
13810else
13811 if ${lt_cv_aix_libpath__CXX+:} false; then :
13812 $as_echo_n "(cached) " >&6
13813else
13814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
13815/* end confdefs.h. */
13816
13817int
13818main ()
13819{
13820
13821 ;
13822 return 0;
13823}
13824_ACEOF
47aaa820 13825if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e 13826
ee134472
JF
13827 lt_aix_libpath_sed='
13828 /Import File Strings/,/^$/ {
13829 /^0/ {
13830 s/^0 *\([^ ]*\) *$/\1/
13831 p
13832 }
13833 }'
13834 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13835 # Check for a 64-bit object if we didn't find anything.
13836 if test -z "$lt_cv_aix_libpath__CXX"; then
13837 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13838 fi
9c60689e 13839fi
47aaa820
DWT
13840rm -f core conftest.err conftest.$ac_objext \
13841 conftest$ac_exeext conftest.$ac_ext
ee134472 13842 if test -z "$lt_cv_aix_libpath__CXX"; then
9d54db95 13843 lt_cv_aix_libpath__CXX=/usr/lib:/lib
ee134472
JF
13844 fi
13845
13846fi
13847
13848 aix_libpath=$lt_cv_aix_libpath__CXX
13849fi
9c60689e 13850
9d54db95 13851 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
47aaa820
DWT
13852 # Warning - without using the other run time loading flags,
13853 # -berok will link without error, but may produce a broken library.
9d54db95
JF
13854 no_undefined_flag_CXX=' $wl-bernotok'
13855 allow_undefined_flag_CXX=' $wl-berok'
13856 if test yes = "$with_gnu_ld"; then
ee134472 13857 # We only use this code for GNU lds that support --whole-archive.
9d54db95 13858 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
ee134472
JF
13859 else
13860 # Exported symbols can be pulled into shared objects from archives
13861 whole_archive_flag_spec_CXX='$convenience'
13862 fi
47aaa820 13863 archive_cmds_need_lc_CXX=yes
9d54db95
JF
13864 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13865 # -brtl affects multiple linker settings, -berok does not and is overridden later
13866 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13867 if test svr4 != "$with_aix_soname"; then
13868 # This is similar to how AIX traditionally builds its shared
13869 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13870 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'
13871 fi
13872 if test aix != "$with_aix_soname"; then
13873 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'
13874 else
13875 # used by -dlpreopen to get the symbols
13876 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13877 fi
13878 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
47aaa820
DWT
13879 fi
13880 fi
13881 ;;
9c60689e 13882
47aaa820
DWT
13883 beos*)
13884 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13885 allow_undefined_flag_CXX=unsupported
13886 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13887 # support --undefined. This deserves some investigation. FIXME
9d54db95 13888 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
47aaa820
DWT
13889 else
13890 ld_shlibs_CXX=no
13891 fi
13892 ;;
9c60689e 13893
47aaa820
DWT
13894 chorus*)
13895 case $cc_basename in
13896 *)
13897 # FIXME: insert proper C++ library support
13898 ld_shlibs_CXX=no
13899 ;;
13900 esac
13901 ;;
9c60689e 13902
47aaa820 13903 cygwin* | mingw* | pw32* | cegcc*)
ee134472
JF
13904 case $GXX,$cc_basename in
13905 ,cl* | no,cl*)
13906 # Native MSVC
13907 # hardcode_libdir_flag_spec is actually meaningless, as there is
13908 # no search path for DLLs.
13909 hardcode_libdir_flag_spec_CXX=' '
13910 allow_undefined_flag_CXX=unsupported
13911 always_export_symbols_CXX=yes
13912 file_list_spec_CXX='@'
13913 # Tell ltmain to make .lib files, not .a files.
13914 libext=lib
13915 # Tell ltmain to make .dll files, not .so files.
9d54db95 13916 shrext_cmds=.dll
ee134472 13917 # FIXME: Setting linknames here is a bad hack.
9d54db95
JF
13918 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13919 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13920 cp "$export_symbols" "$output_objdir/$soname.def";
13921 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13922 else
13923 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13924 fi~
13925 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13926 linknames='
ee134472
JF
13927 # The linker will not automatically build a static lib if we build a DLL.
13928 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13929 enable_shared_with_static_runtimes_CXX=yes
13930 # Don't use ranlib
13931 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13932 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
9d54db95
JF
13933 lt_tool_outputfile="@TOOL_OUTPUT@"~
13934 case $lt_outputfile in
13935 *.exe|*.EXE) ;;
13936 *)
13937 lt_outputfile=$lt_outputfile.exe
13938 lt_tool_outputfile=$lt_tool_outputfile.exe
13939 ;;
13940 esac~
13941 func_to_tool_file "$lt_outputfile"~
13942 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13943 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13944 $RM "$lt_outputfile.manifest";
13945 fi'
ee134472
JF
13946 ;;
13947 *)
13948 # g++
13949 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13950 # as there is no search path for DLLs.
13951 hardcode_libdir_flag_spec_CXX='-L$libdir'
9d54db95 13952 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
ee134472
JF
13953 allow_undefined_flag_CXX=unsupported
13954 always_export_symbols_CXX=no
13955 enable_shared_with_static_runtimes_CXX=yes
13956
13957 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9d54db95
JF
13958 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'
13959 # If the export-symbols file already is a .def file, use it as
13960 # is; otherwise, prepend EXPORTS...
13961 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13962 cp $export_symbols $output_objdir/$soname.def;
13963 else
13964 echo EXPORTS > $output_objdir/$soname.def;
13965 cat $export_symbols >> $output_objdir/$soname.def;
13966 fi~
13967 $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
13968 else
13969 ld_shlibs_CXX=no
13970 fi
13971 ;;
13972 esac
13973 ;;
47aaa820 13974 darwin* | rhapsody*)
9c60689e 13975
9c60689e 13976
47aaa820
DWT
13977 archive_cmds_need_lc_CXX=no
13978 hardcode_direct_CXX=no
13979 hardcode_automatic_CXX=yes
13980 hardcode_shlibpath_var_CXX=unsupported
9d54db95
JF
13981 if test yes = "$lt_cv_ld_force_load"; then
13982 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 13983
ee134472
JF
13984 else
13985 whole_archive_flag_spec_CXX=''
13986 fi
47aaa820 13987 link_all_deplibs_CXX=yes
9d54db95 13988 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
47aaa820 13989 case $cc_basename in
9d54db95 13990 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
47aaa820
DWT
13991 *) _lt_dar_can_shared=$GCC ;;
13992 esac
9d54db95 13993 if test yes = "$_lt_dar_can_shared"; then
ee134472 13994 output_verbose_link_cmd=func_echo_all
9d54db95
JF
13995 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"
13996 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13997 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"
13998 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"
13999 if test yes != "$lt_cv_apple_cc_single_mod"; then
14000 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"
14001 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 14002 fi
9c60689e 14003
47aaa820
DWT
14004 else
14005 ld_shlibs_CXX=no
14006 fi
9c60689e 14007
47aaa820 14008 ;;
9c60689e 14009
9d54db95
JF
14010 os2*)
14011 hardcode_libdir_flag_spec_CXX='-L$libdir'
14012 hardcode_minus_L_CXX=yes
14013 allow_undefined_flag_CXX=unsupported
14014 shrext_cmds=.dll
14015 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14016 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14017 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14018 $ECHO EXPORTS >> $output_objdir/$libname.def~
14019 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14020 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14021 emximp -o $lib $output_objdir/$libname.def'
14022 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14023 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14024 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14025 $ECHO EXPORTS >> $output_objdir/$libname.def~
14026 prefix_cmds="$SED"~
14027 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14028 prefix_cmds="$prefix_cmds -e 1d";
14029 fi~
14030 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14031 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14032 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14033 emximp -o $lib $output_objdir/$libname.def'
14034 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14035 enable_shared_with_static_runtimes_CXX=yes
14036 ;;
14037
47aaa820
DWT
14038 dgux*)
14039 case $cc_basename in
14040 ec++*)
14041 # FIXME: insert proper C++ library support
14042 ld_shlibs_CXX=no
14043 ;;
14044 ghcx*)
14045 # Green Hills C++ Compiler
14046 # FIXME: insert proper C++ library support
14047 ld_shlibs_CXX=no
14048 ;;
14049 *)
14050 # FIXME: insert proper C++ library support
14051 ld_shlibs_CXX=no
14052 ;;
14053 esac
14054 ;;
9c60689e 14055
53ba6704 14056 freebsd2.*)
47aaa820
DWT
14057 # C++ shared libraries reported to be fairly broken before
14058 # switch to ELF
14059 ld_shlibs_CXX=no
14060 ;;
9c60689e 14061
47aaa820
DWT
14062 freebsd-elf*)
14063 archive_cmds_need_lc_CXX=no
14064 ;;
9c60689e 14065
47aaa820
DWT
14066 freebsd* | dragonfly*)
14067 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14068 # conventions
14069 ld_shlibs_CXX=yes
14070 ;;
9c60689e 14071
ee134472 14072 haiku*)
9d54db95 14073 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
ee134472
JF
14074 link_all_deplibs_CXX=yes
14075 ;;
14076
47aaa820 14077 hpux9*)
9d54db95 14078 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
47aaa820 14079 hardcode_libdir_separator_CXX=:
9d54db95 14080 export_dynamic_flag_spec_CXX='$wl-E'
47aaa820
DWT
14081 hardcode_direct_CXX=yes
14082 hardcode_minus_L_CXX=yes # Not in the search PATH,
14083 # but as the default
14084 # location of the library.
9c60689e 14085
47aaa820
DWT
14086 case $cc_basename in
14087 CC*)
14088 # FIXME: insert proper C++ library support
14089 ld_shlibs_CXX=no
14090 ;;
14091 aCC*)
9d54db95 14092 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
14093 # Commands to make compiler produce verbose output that lists
14094 # what "hidden" libraries, object files and flags are used when
14095 # linking a shared library.
14096 #
14097 # There doesn't appear to be a way to prevent this compiler from
14098 # explicitly linking system object files so we need to strip them
14099 # from the output so that they don't get included in the library
14100 # dependencies.
9d54db95 14101 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
14102 ;;
14103 *)
9d54db95
JF
14104 if test yes = "$GXX"; then
14105 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
14106 else
14107 # FIXME: insert proper C++ library support
14108 ld_shlibs_CXX=no
14109 fi
14110 ;;
14111 esac
14112 ;;
9c60689e 14113
47aaa820 14114 hpux10*|hpux11*)
9d54db95
JF
14115 if test no = "$with_gnu_ld"; then
14116 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
47aaa820 14117 hardcode_libdir_separator_CXX=:
9c60689e 14118
47aaa820
DWT
14119 case $host_cpu in
14120 hppa*64*|ia64*)
14121 ;;
14122 *)
9d54db95 14123 export_dynamic_flag_spec_CXX='$wl-E'
47aaa820
DWT
14124 ;;
14125 esac
14126 fi
14127 case $host_cpu in
14128 hppa*64*|ia64*)
14129 hardcode_direct_CXX=no
14130 hardcode_shlibpath_var_CXX=no
14131 ;;
14132 *)
14133 hardcode_direct_CXX=yes
14134 hardcode_direct_absolute_CXX=yes
14135 hardcode_minus_L_CXX=yes # Not in the search PATH,
14136 # but as the default
14137 # location of the library.
14138 ;;
14139 esac
9c60689e 14140
47aaa820
DWT
14141 case $cc_basename in
14142 CC*)
14143 # FIXME: insert proper C++ library support
14144 ld_shlibs_CXX=no
14145 ;;
14146 aCC*)
14147 case $host_cpu in
14148 hppa*64*)
9d54db95 14149 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
47aaa820
DWT
14150 ;;
14151 ia64*)
9d54db95 14152 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
47aaa820
DWT
14153 ;;
14154 *)
9d54db95 14155 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
14156 ;;
14157 esac
14158 # Commands to make compiler produce verbose output that lists
14159 # what "hidden" libraries, object files and flags are used when
14160 # linking a shared library.
14161 #
14162 # There doesn't appear to be a way to prevent this compiler from
14163 # explicitly linking system object files so we need to strip them
14164 # from the output so that they don't get included in the library
14165 # dependencies.
9d54db95 14166 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
14167 ;;
14168 *)
9d54db95
JF
14169 if test yes = "$GXX"; then
14170 if test no = "$with_gnu_ld"; then
47aaa820
DWT
14171 case $host_cpu in
14172 hppa*64*)
9d54db95 14173 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
47aaa820
DWT
14174 ;;
14175 ia64*)
9d54db95 14176 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
14177 ;;
14178 *)
9d54db95 14179 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
14180 ;;
14181 esac
14182 fi
14183 else
14184 # FIXME: insert proper C++ library support
14185 ld_shlibs_CXX=no
14186 fi
14187 ;;
14188 esac
14189 ;;
9c60689e 14190
47aaa820
DWT
14191 interix[3-9]*)
14192 hardcode_direct_CXX=no
14193 hardcode_shlibpath_var_CXX=no
9d54db95
JF
14194 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14195 export_dynamic_flag_spec_CXX='$wl-E'
47aaa820
DWT
14196 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14197 # Instead, shared libraries are loaded at an image base (0x10000000 by
14198 # default) and relocated if they conflict, which is a slow very memory
14199 # consuming and fragmenting process. To avoid this, we pick a random,
14200 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14201 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9d54db95
JF
14202 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'
14203 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
14204 ;;
14205 irix5* | irix6*)
14206 case $cc_basename in
14207 CC*)
14208 # SGI C++
9d54db95 14209 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 14210
47aaa820
DWT
14211 # Archives containing C++ object files must be created using
14212 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14213 # necessary to make sure instantiated templates are included
14214 # in the archive.
14215 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14216 ;;
14217 *)
9d54db95
JF
14218 if test yes = "$GXX"; then
14219 if test no = "$with_gnu_ld"; then
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"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
47aaa820 14221 else
9d54db95 14222 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
14223 fi
14224 fi
14225 link_all_deplibs_CXX=yes
14226 ;;
14227 esac
9d54db95 14228 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
47aaa820
DWT
14229 hardcode_libdir_separator_CXX=:
14230 inherit_rpath_CXX=yes
14231 ;;
9c60689e 14232
9d54db95 14233 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
47aaa820
DWT
14234 case $cc_basename in
14235 KCC*)
14236 # Kuck and Associates, Inc. (KAI) C++ Compiler
9c60689e 14237
47aaa820
DWT
14238 # KCC will only create a shared library if the output file
14239 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14240 # to its proper name (with version) after linking.
9d54db95
JF
14241 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'
14242 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
14243 # Commands to make compiler produce verbose output that lists
14244 # what "hidden" libraries, object files and flags are used when
14245 # linking a shared library.
14246 #
14247 # There doesn't appear to be a way to prevent this compiler from
14248 # explicitly linking system object files so we need to strip them
14249 # from the output so that they don't get included in the library
14250 # dependencies.
9d54db95 14251 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 14252
9d54db95
JF
14253 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14254 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
9c60689e 14255
47aaa820
DWT
14256 # Archives containing C++ object files must be created using
14257 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14258 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14259 ;;
14260 icpc* | ecpc* )
14261 # Intel C++
14262 with_gnu_ld=yes
14263 # version 8.0 and above of icpc choke on multiply defined symbols
14264 # if we add $predep_objects and $postdep_objects, however 7.1 and
14265 # earlier do not add the objects themselves.
14266 case `$CC -V 2>&1` in
14267 *"Version 7."*)
9d54db95
JF
14268 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14269 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
14270 ;;
14271 *) # Version 8.0 or newer
14272 tmp_idyn=
14273 case $host_cpu in
14274 ia64*) tmp_idyn=' -i_dynamic';;
14275 esac
9d54db95
JF
14276 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14277 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
14278 ;;
14279 esac
14280 archive_cmds_need_lc_CXX=no
9d54db95
JF
14281 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14282 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14283 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
47aaa820
DWT
14284 ;;
14285 pgCC* | pgcpp*)
14286 # Portland Group C++ compiler
14287 case `$CC -V` in
ee134472 14288 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
47aaa820 14289 prelink_cmds_CXX='tpldir=Template.dir~
9d54db95
JF
14290 rm -rf $tpldir~
14291 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14292 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
47aaa820 14293 old_archive_cmds_CXX='tpldir=Template.dir~
9d54db95
JF
14294 rm -rf $tpldir~
14295 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14296 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14297 $RANLIB $oldlib'
47aaa820 14298 archive_cmds_CXX='tpldir=Template.dir~
9d54db95
JF
14299 rm -rf $tpldir~
14300 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14301 $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 14302 archive_expsym_cmds_CXX='tpldir=Template.dir~
9d54db95
JF
14303 rm -rf $tpldir~
14304 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14305 $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 14306 ;;
ee134472 14307 *) # Version 6 and above use weak symbols
9d54db95
JF
14308 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14309 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
14310 ;;
14311 esac
9c60689e 14312
9d54db95
JF
14313 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14314 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14315 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
14316 ;;
14317 cxx*)
14318 # Compaq C++
9d54db95
JF
14319 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14320 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 14321
47aaa820
DWT
14322 runpath_var=LD_RUN_PATH
14323 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14324 hardcode_libdir_separator_CXX=:
9c60689e 14325
47aaa820
DWT
14326 # Commands to make compiler produce verbose output that lists
14327 # what "hidden" libraries, object files and flags are used when
14328 # linking a shared library.
14329 #
14330 # There doesn't appear to be a way to prevent this compiler from
14331 # explicitly linking system object files so we need to strip them
14332 # from the output so that they don't get included in the library
14333 # dependencies.
9d54db95 14334 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 14335 ;;
ee134472 14336 xl* | mpixl* | bgxl*)
47aaa820 14337 # IBM XL 8.0 on PPC, with GNU ld
9d54db95
JF
14338 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14339 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14340 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14341 if test yes = "$supports_anon_versioning"; then
47aaa820 14342 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
9d54db95
JF
14343 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14344 echo "local: *; };" >> $output_objdir/$libname.ver~
14345 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
47aaa820
DWT
14346 fi
14347 ;;
14348 *)
14349 case `$CC -V 2>&1 | sed 5q` in
14350 *Sun\ C*)
14351 # Sun C++ 5.9
14352 no_undefined_flag_CXX=' -zdefs'
9d54db95
JF
14353 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14354 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 14355 hardcode_libdir_flag_spec_CXX='-R$libdir'
9d54db95 14356 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 14357 compiler_needs_object_CXX=yes
9c60689e 14358
47aaa820
DWT
14359 # Not sure whether something based on
14360 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14361 # would be better.
ee134472 14362 output_verbose_link_cmd='func_echo_all'
9c60689e 14363
47aaa820
DWT
14364 # Archives containing C++ object files must be created using
14365 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14366 # necessary to make sure instantiated templates are included
14367 # in the archive.
14368 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14369 ;;
14370 esac
14371 ;;
14372 esac
14373 ;;
9c60689e 14374
47aaa820
DWT
14375 lynxos*)
14376 # FIXME: insert proper C++ library support
14377 ld_shlibs_CXX=no
14378 ;;
9c60689e 14379
47aaa820
DWT
14380 m88k*)
14381 # FIXME: insert proper C++ library support
14382 ld_shlibs_CXX=no
14383 ;;
9c60689e 14384
47aaa820
DWT
14385 mvs*)
14386 case $cc_basename in
14387 cxx*)
14388 # FIXME: insert proper C++ library support
14389 ld_shlibs_CXX=no
14390 ;;
14391 *)
14392 # FIXME: insert proper C++ library support
14393 ld_shlibs_CXX=no
14394 ;;
14395 esac
14396 ;;
9c60689e 14397
47aaa820
DWT
14398 netbsd*)
14399 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14400 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14401 wlarc=
14402 hardcode_libdir_flag_spec_CXX='-R$libdir'
14403 hardcode_direct_CXX=yes
14404 hardcode_shlibpath_var_CXX=no
14405 fi
14406 # Workaround some broken pre-1.5 toolchains
14407 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9c60689e 14408 ;;
47aaa820
DWT
14409
14410 *nto* | *qnx*)
14411 ld_shlibs_CXX=yes
9c60689e 14412 ;;
9c60689e 14413
9d54db95 14414 openbsd* | bitrig*)
47aaa820
DWT
14415 if test -f /usr/libexec/ld.so; then
14416 hardcode_direct_CXX=yes
14417 hardcode_shlibpath_var_CXX=no
14418 hardcode_direct_absolute_CXX=yes
14419 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9d54db95
JF
14420 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14421 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14422 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14423 export_dynamic_flag_spec_CXX='$wl-E'
14424 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
47aaa820 14425 fi
ee134472 14426 output_verbose_link_cmd=func_echo_all
47aaa820
DWT
14427 else
14428 ld_shlibs_CXX=no
14429 fi
14430 ;;
9c60689e 14431
47aaa820
DWT
14432 osf3* | osf4* | osf5*)
14433 case $cc_basename in
14434 KCC*)
14435 # Kuck and Associates, Inc. (KAI) C++ Compiler
9c60689e 14436
47aaa820
DWT
14437 # KCC will only create a shared library if the output file
14438 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14439 # to its proper name (with version) after linking.
9d54db95 14440 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 14441
9d54db95 14442 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
47aaa820 14443 hardcode_libdir_separator_CXX=:
9c60689e 14444
47aaa820
DWT
14445 # Archives containing C++ object files must be created using
14446 # the KAI C++ compiler.
14447 case $host in
14448 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14449 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14450 esac
14451 ;;
14452 RCC*)
14453 # Rational C++ 2.4.1
14454 # FIXME: insert proper C++ library support
14455 ld_shlibs_CXX=no
14456 ;;
14457 cxx*)
14458 case $host in
14459 osf3*)
9d54db95
JF
14460 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14461 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'
14462 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
47aaa820
DWT
14463 ;;
14464 *)
14465 allow_undefined_flag_CXX=' -expect_unresolved \*'
9d54db95 14466 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 14467 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9d54db95
JF
14468 echo "-hidden">> $lib.exp~
14469 $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~
14470 $RM $lib.exp'
47aaa820
DWT
14471 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14472 ;;
14473 esac
9c60689e 14474
47aaa820 14475 hardcode_libdir_separator_CXX=:
9c60689e 14476
47aaa820
DWT
14477 # Commands to make compiler produce verbose output that lists
14478 # what "hidden" libraries, object files and flags are used when
14479 # linking a shared library.
14480 #
14481 # There doesn't appear to be a way to prevent this compiler from
14482 # explicitly linking system object files so we need to strip them
14483 # from the output so that they don't get included in the library
14484 # dependencies.
9d54db95 14485 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
14486 ;;
14487 *)
9d54db95
JF
14488 if test yes,no = "$GXX,$with_gnu_ld"; then
14489 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
47aaa820
DWT
14490 case $host in
14491 osf3*)
9d54db95 14492 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
14493 ;;
14494 *)
9d54db95 14495 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
14496 ;;
14497 esac
9c60689e 14498
9d54db95 14499 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
47aaa820 14500 hardcode_libdir_separator_CXX=:
9c60689e 14501
47aaa820
DWT
14502 # Commands to make compiler produce verbose output that lists
14503 # what "hidden" libraries, object files and flags are used when
14504 # linking a shared library.
ee134472 14505 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
9c60689e 14506
47aaa820
DWT
14507 else
14508 # FIXME: insert proper C++ library support
14509 ld_shlibs_CXX=no
14510 fi
14511 ;;
14512 esac
14513 ;;
9c60689e 14514
47aaa820 14515 psos*)
9c60689e
DWT
14516 # FIXME: insert proper C++ library support
14517 ld_shlibs_CXX=no
14518 ;;
9c60689e 14519
47aaa820
DWT
14520 sunos4*)
14521 case $cc_basename in
14522 CC*)
14523 # Sun C++ 4.x
14524 # FIXME: insert proper C++ library support
14525 ld_shlibs_CXX=no
9c60689e 14526 ;;
47aaa820
DWT
14527 lcc*)
14528 # Lucid
14529 # FIXME: insert proper C++ library support
14530 ld_shlibs_CXX=no
14531 ;;
14532 *)
14533 # FIXME: insert proper C++ library support
14534 ld_shlibs_CXX=no
14535 ;;
14536 esac
14537 ;;
9c60689e 14538
47aaa820
DWT
14539 solaris*)
14540 case $cc_basename in
ee134472 14541 CC* | sunCC*)
47aaa820
DWT
14542 # Sun C++ 4.2, 5.x and Centerline C++
14543 archive_cmds_need_lc_CXX=yes
14544 no_undefined_flag_CXX=' -zdefs'
9d54db95 14545 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
47aaa820 14546 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9d54db95 14547 $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 14548
47aaa820
DWT
14549 hardcode_libdir_flag_spec_CXX='-R$libdir'
14550 hardcode_shlibpath_var_CXX=no
14551 case $host_os in
14552 solaris2.[0-5] | solaris2.[0-5].*) ;;
14553 *)
14554 # The compiler driver will combine and reorder linker options,
9d54db95 14555 # but understands '-z linker_flag'.
47aaa820
DWT
14556 # Supported since Solaris 2.6 (maybe 2.5.1?)
14557 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14558 ;;
14559 esac
14560 link_all_deplibs_CXX=yes
9c60689e 14561
ee134472 14562 output_verbose_link_cmd='func_echo_all'
9c60689e 14563
47aaa820
DWT
14564 # Archives containing C++ object files must be created using
14565 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14566 # necessary to make sure instantiated templates are included
14567 # in the archive.
14568 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14569 ;;
14570 gcx*)
14571 # Green Hills C++ Compiler
9d54db95 14572 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
9c60689e 14573
47aaa820
DWT
14574 # The C++ compiler must be used to create the archive.
14575 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14576 ;;
14577 *)
14578 # GNU C++ compiler with Solaris linker
9d54db95
JF
14579 if test yes,no = "$GXX,$with_gnu_ld"; then
14580 no_undefined_flag_CXX=' $wl-z ${wl}defs'
47aaa820 14581 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
9d54db95 14582 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
47aaa820 14583 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9d54db95 14584 $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 14585
47aaa820
DWT
14586 # Commands to make compiler produce verbose output that lists
14587 # what "hidden" libraries, object files and flags are used when
14588 # linking a shared library.
ee134472 14589 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820 14590 else
9d54db95 14591 # g++ 2.7 appears to require '-G' NOT '-shared' on this
47aaa820 14592 # platform.
9d54db95 14593 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
47aaa820 14594 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9d54db95 14595 $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 14596
47aaa820
DWT
14597 # Commands to make compiler produce verbose output that lists
14598 # what "hidden" libraries, object files and flags are used when
14599 # linking a shared library.
ee134472 14600 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820 14601 fi
9c60689e 14602
9d54db95 14603 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
47aaa820
DWT
14604 case $host_os in
14605 solaris2.[0-5] | solaris2.[0-5].*) ;;
14606 *)
9d54db95 14607 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
47aaa820
DWT
14608 ;;
14609 esac
14610 fi
14611 ;;
14612 esac
14613 ;;
9c60689e 14614
47aaa820 14615 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9d54db95 14616 no_undefined_flag_CXX='$wl-z,text'
47aaa820
DWT
14617 archive_cmds_need_lc_CXX=no
14618 hardcode_shlibpath_var_CXX=no
14619 runpath_var='LD_RUN_PATH'
9c60689e 14620
47aaa820
DWT
14621 case $cc_basename in
14622 CC*)
9d54db95
JF
14623 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14624 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
47aaa820
DWT
14625 ;;
14626 *)
9d54db95
JF
14627 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14628 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
47aaa820
DWT
14629 ;;
14630 esac
14631 ;;
9c60689e 14632
47aaa820 14633 sysv5* | sco3.2v5* | sco5v6*)
9d54db95 14634 # Note: We CANNOT use -z defs as we might desire, because we do not
47aaa820
DWT
14635 # link with -lc, and that would cause any symbols used from libc to
14636 # always be unresolved, which means just about no library would
14637 # ever link correctly. If we're not using GNU ld we use -z text
14638 # though, which does catch some bad symbols but isn't as heavy-handed
14639 # as -z defs.
9d54db95
JF
14640 no_undefined_flag_CXX='$wl-z,text'
14641 allow_undefined_flag_CXX='$wl-z,nodefs'
47aaa820
DWT
14642 archive_cmds_need_lc_CXX=no
14643 hardcode_shlibpath_var_CXX=no
9d54db95 14644 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
47aaa820
DWT
14645 hardcode_libdir_separator_CXX=':'
14646 link_all_deplibs_CXX=yes
9d54db95 14647 export_dynamic_flag_spec_CXX='$wl-Bexport'
47aaa820 14648 runpath_var='LD_RUN_PATH'
9c60689e 14649
47aaa820
DWT
14650 case $cc_basename in
14651 CC*)
9d54db95
JF
14652 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14653 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
ee134472 14654 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
9d54db95 14655 '"$old_archive_cmds_CXX"
ee134472 14656 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
9d54db95 14657 '"$reload_cmds_CXX"
47aaa820
DWT
14658 ;;
14659 *)
9d54db95
JF
14660 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14661 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
47aaa820
DWT
14662 ;;
14663 esac
14664 ;;
9c60689e 14665
47aaa820 14666 tandem*)
9c60689e 14667 case $cc_basename in
47aaa820
DWT
14668 NCC*)
14669 # NonStop-UX NCC 3.20
14670 # FIXME: insert proper C++ library support
14671 ld_shlibs_CXX=no
14672 ;;
9c60689e 14673 *)
47aaa820
DWT
14674 # FIXME: insert proper C++ library support
14675 ld_shlibs_CXX=no
14676 ;;
9c60689e
DWT
14677 esac
14678 ;;
14679
47aaa820
DWT
14680 vxworks*)
14681 # FIXME: insert proper C++ library support
14682 ld_shlibs_CXX=no
14683 ;;
9c60689e 14684
47aaa820
DWT
14685 *)
14686 # FIXME: insert proper C++ library support
14687 ld_shlibs_CXX=no
9c60689e 14688 ;;
47aaa820 14689 esac
9c60689e 14690
47aaa820
DWT
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14692$as_echo "$ld_shlibs_CXX" >&6; }
9d54db95 14693 test no = "$ld_shlibs_CXX" && can_build_shared=no
9c60689e 14694
9d54db95
JF
14695 GCC_CXX=$GXX
14696 LD_CXX=$LD
9c60689e 14697
47aaa820
DWT
14698 ## CAVEAT EMPTOR:
14699 ## There is no encapsulation within the following macros, do not change
14700 ## the running order or otherwise move them around unless you know exactly
14701 ## what you are doing...
14702 # Dependencies to place before and after the object being linked:
14703predep_objects_CXX=
14704postdep_objects_CXX=
14705predeps_CXX=
14706postdeps_CXX=
14707compiler_lib_search_path_CXX=
9c60689e 14708
47aaa820
DWT
14709cat > conftest.$ac_ext <<_LT_EOF
14710class Foo
14711{
14712public:
14713 Foo (void) { a = 0; }
14714private:
14715 int a;
14716};
14717_LT_EOF
9c60689e 14718
ee134472
JF
14719
14720_lt_libdeps_save_CFLAGS=$CFLAGS
14721case "$CC $CFLAGS " in #(
14722*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14723*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
53ba6704 14724*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
ee134472
JF
14725esac
14726
47aaa820
DWT
14727if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14728 (eval $ac_compile) 2>&5
14729 ac_status=$?
14730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14731 test $ac_status = 0; }; then
14732 # Parse the compiler output and extract the necessary
14733 # objects, libraries and library flags.
9c60689e 14734
47aaa820
DWT
14735 # Sentinel used to keep track of whether or not we are before
14736 # the conftest object file.
14737 pre_test_object_deps_done=no
9c60689e 14738
47aaa820 14739 for p in `eval "$output_verbose_link_cmd"`; do
9d54db95 14740 case $prev$p in
9c60689e 14741
47aaa820
DWT
14742 -L* | -R* | -l*)
14743 # Some compilers place space between "-{L,R}" and the path.
14744 # Remove the space.
9d54db95
JF
14745 if test x-L = "$p" ||
14746 test x-R = "$p"; then
47aaa820
DWT
14747 prev=$p
14748 continue
47aaa820 14749 fi
9c60689e 14750
ee134472
JF
14751 # Expand the sysroot to ease extracting the directories later.
14752 if test -z "$prev"; then
14753 case $p in
14754 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14755 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14756 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14757 esac
14758 fi
14759 case $p in
14760 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14761 esac
9d54db95
JF
14762 if test no = "$pre_test_object_deps_done"; then
14763 case $prev in
ee134472 14764 -L | -R)
47aaa820
DWT
14765 # Internal compiler library paths should come after those
14766 # provided the user. The postdeps already come after the
14767 # user supplied libs so there is no need to process them.
14768 if test -z "$compiler_lib_search_path_CXX"; then
9d54db95 14769 compiler_lib_search_path_CXX=$prev$p
47aaa820 14770 else
9d54db95 14771 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
47aaa820
DWT
14772 fi
14773 ;;
14774 # The "-l" case would never come before the object being
14775 # linked, so don't bother handling this case.
14776 esac
14777 else
14778 if test -z "$postdeps_CXX"; then
9d54db95 14779 postdeps_CXX=$prev$p
47aaa820 14780 else
9d54db95 14781 postdeps_CXX="${postdeps_CXX} $prev$p"
47aaa820
DWT
14782 fi
14783 fi
ee134472 14784 prev=
47aaa820 14785 ;;
9c60689e 14786
ee134472 14787 *.lto.$objext) ;; # Ignore GCC LTO objects
47aaa820
DWT
14788 *.$objext)
14789 # This assumes that the test object file only shows up
14790 # once in the compiler output.
14791 if test "$p" = "conftest.$objext"; then
14792 pre_test_object_deps_done=yes
14793 continue
14794 fi
9c60689e 14795
9d54db95 14796 if test no = "$pre_test_object_deps_done"; then
47aaa820 14797 if test -z "$predep_objects_CXX"; then
9d54db95 14798 predep_objects_CXX=$p
47aaa820
DWT
14799 else
14800 predep_objects_CXX="$predep_objects_CXX $p"
14801 fi
14802 else
14803 if test -z "$postdep_objects_CXX"; then
9d54db95 14804 postdep_objects_CXX=$p
47aaa820
DWT
14805 else
14806 postdep_objects_CXX="$postdep_objects_CXX $p"
14807 fi
14808 fi
14809 ;;
9c60689e 14810
47aaa820 14811 *) ;; # Ignore the rest.
9c60689e 14812
47aaa820
DWT
14813 esac
14814 done
9c60689e 14815
47aaa820
DWT
14816 # Clean up.
14817 rm -f a.out a.exe
14818else
14819 echo "libtool.m4: error: problem compiling CXX test program"
14820fi
9c60689e 14821
47aaa820 14822$RM -f confest.$objext
ee134472 14823CFLAGS=$_lt_libdeps_save_CFLAGS
9c60689e 14824
47aaa820
DWT
14825# PORTME: override above test on systems where it is broken
14826case $host_os in
14827interix[3-9]*)
14828 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14829 # hack all around it, let's just trust "g++" to DTRT.
14830 predep_objects_CXX=
14831 postdep_objects_CXX=
14832 postdeps_CXX=
14833 ;;
47aaa820 14834esac
9c60689e 14835
9c60689e 14836
47aaa820
DWT
14837case " $postdeps_CXX " in
14838*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14839esac
14840 compiler_lib_search_dirs_CXX=
14841if test -n "${compiler_lib_search_path_CXX}"; then
9d54db95 14842 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
47aaa820 14843fi
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
9c60689e 14873
9c60689e 14874
47aaa820
DWT
14875 lt_prog_compiler_wl_CXX=
14876lt_prog_compiler_pic_CXX=
14877lt_prog_compiler_static_CXX=
9c60689e 14878
9c60689e
DWT
14879
14880 # C++ specific cases for pic, static, wl, etc.
9d54db95 14881 if test yes = "$GXX"; then
9c60689e
DWT
14882 lt_prog_compiler_wl_CXX='-Wl,'
14883 lt_prog_compiler_static_CXX='-static'
14884
14885 case $host_os in
14886 aix*)
14887 # All AIX code is PIC.
9d54db95 14888 if test ia64 = "$host_cpu"; then
9c60689e
DWT
14889 # AIX 5 now supports IA64 processor
14890 lt_prog_compiler_static_CXX='-Bstatic'
14891 fi
9d54db95 14892 lt_prog_compiler_pic_CXX='-fPIC'
9c60689e
DWT
14893 ;;
14894
14895 amigaos*)
14896 case $host_cpu in
14897 powerpc)
14898 # see comment about AmigaOS4 .so support
14899 lt_prog_compiler_pic_CXX='-fPIC'
14900 ;;
14901 m68k)
14902 # FIXME: we need at least 68020 code to build shared libraries, but
9d54db95
JF
14903 # adding the '-m68020' flag to GCC prevents building anything better,
14904 # like '-m68040'.
9c60689e
DWT
14905 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14906 ;;
14907 esac
14908 ;;
14909
14910 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14911 # PIC is the default for these OSes.
14912 ;;
14913 mingw* | cygwin* | os2* | pw32* | cegcc*)
14914 # This hack is so that the source file can tell whether it is being
14915 # built for inclusion in a dll (and should export symbols for example).
14916 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14917 # (--disable-auto-import) libraries
14918 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
9d54db95
JF
14919 case $host_os in
14920 os2*)
14921 lt_prog_compiler_static_CXX='$wl-static'
14922 ;;
14923 esac
9c60689e
DWT
14924 ;;
14925 darwin* | rhapsody*)
14926 # PIC is the default on this platform
14927 # Common symbols not allowed in MH_DYLIB files
14928 lt_prog_compiler_pic_CXX='-fno-common'
14929 ;;
14930 *djgpp*)
14931 # DJGPP does not support shared libraries at all
14932 lt_prog_compiler_pic_CXX=
14933 ;;
ee134472
JF
14934 haiku*)
14935 # PIC is the default for Haiku.
14936 # The "-static" flag exists, but is broken.
14937 lt_prog_compiler_static_CXX=
14938 ;;
9c60689e
DWT
14939 interix[3-9]*)
14940 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14941 # Instead, we relocate shared libraries at runtime.
14942 ;;
14943 sysv4*MP*)
14944 if test -d /usr/nec; then
14945 lt_prog_compiler_pic_CXX=-Kconform_pic
14946 fi
14947 ;;
14948 hpux*)
14949 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14950 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14951 # sets the default TLS model and affects inlining.
14952 case $host_cpu in
14953 hppa*64*)
14954 ;;
14955 *)
14956 lt_prog_compiler_pic_CXX='-fPIC'
14957 ;;
14958 esac
14959 ;;
14960 *qnx* | *nto*)
14961 # QNX uses GNU C++, but need to define -shared option too, otherwise
14962 # it will coredump.
14963 lt_prog_compiler_pic_CXX='-fPIC -shared'
14964 ;;
14965 *)
14966 lt_prog_compiler_pic_CXX='-fPIC'
14967 ;;
14968 esac
14969 else
14970 case $host_os in
14971 aix[4-9]*)
14972 # All AIX code is PIC.
9d54db95 14973 if test ia64 = "$host_cpu"; then
9c60689e
DWT
14974 # AIX 5 now supports IA64 processor
14975 lt_prog_compiler_static_CXX='-Bstatic'
14976 else
14977 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14978 fi
14979 ;;
14980 chorus*)
14981 case $cc_basename in
14982 cxch68*)
14983 # Green Hills C++ Compiler
14984 # _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"
14985 ;;
14986 esac
14987 ;;
ee134472
JF
14988 mingw* | cygwin* | os2* | pw32* | cegcc*)
14989 # This hack is so that the source file can tell whether it is being
14990 # built for inclusion in a dll (and should export symbols for example).
14991 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14992 ;;
9c60689e
DWT
14993 dgux*)
14994 case $cc_basename in
14995 ec++*)
14996 lt_prog_compiler_pic_CXX='-KPIC'
14997 ;;
14998 ghcx*)
14999 # Green Hills C++ Compiler
15000 lt_prog_compiler_pic_CXX='-pic'
15001 ;;
15002 *)
15003 ;;
15004 esac
15005 ;;
15006 freebsd* | dragonfly*)
15007 # FreeBSD uses GNU C++
15008 ;;
15009 hpux9* | hpux10* | hpux11*)
15010 case $cc_basename in
15011 CC*)
15012 lt_prog_compiler_wl_CXX='-Wl,'
9d54db95
JF
15013 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15014 if test ia64 != "$host_cpu"; then
9c60689e
DWT
15015 lt_prog_compiler_pic_CXX='+Z'
15016 fi
15017 ;;
15018 aCC*)
15019 lt_prog_compiler_wl_CXX='-Wl,'
9d54db95 15020 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
9c60689e
DWT
15021 case $host_cpu in
15022 hppa*64*|ia64*)
15023 # +Z the default
15024 ;;
15025 *)
15026 lt_prog_compiler_pic_CXX='+Z'
15027 ;;
15028 esac
15029 ;;
15030 *)
15031 ;;
15032 esac
15033 ;;
15034 interix*)
15035 # This is c89, which is MS Visual C++ (no shared libs)
15036 # Anyone wants to do a port?
15037 ;;
15038 irix5* | irix6* | nonstopux*)
15039 case $cc_basename in
15040 CC*)
15041 lt_prog_compiler_wl_CXX='-Wl,'
15042 lt_prog_compiler_static_CXX='-non_shared'
15043 # CC pic flag -KPIC is the default.
15044 ;;
15045 *)
15046 ;;
15047 esac
15048 ;;
9d54db95 15049 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9c60689e
DWT
15050 case $cc_basename in
15051 KCC*)
15052 # KAI C++ Compiler
15053 lt_prog_compiler_wl_CXX='--backend -Wl,'
15054 lt_prog_compiler_pic_CXX='-fPIC'
15055 ;;
15056 ecpc* )
9d54db95 15057 # old Intel C++ for x86_64, which still supported -KPIC.
9c60689e
DWT
15058 lt_prog_compiler_wl_CXX='-Wl,'
15059 lt_prog_compiler_pic_CXX='-KPIC'
15060 lt_prog_compiler_static_CXX='-static'
15061 ;;
15062 icpc* )
15063 # Intel C++, used to be incompatible with GCC.
15064 # ICC 10 doesn't accept -KPIC any more.
15065 lt_prog_compiler_wl_CXX='-Wl,'
15066 lt_prog_compiler_pic_CXX='-fPIC'
15067 lt_prog_compiler_static_CXX='-static'
15068 ;;
15069 pgCC* | pgcpp*)
15070 # Portland Group C++ compiler
15071 lt_prog_compiler_wl_CXX='-Wl,'
15072 lt_prog_compiler_pic_CXX='-fpic'
15073 lt_prog_compiler_static_CXX='-Bstatic'
15074 ;;
15075 cxx*)
15076 # Compaq C++
15077 # Make sure the PIC flag is empty. It appears that all Alpha
15078 # Linux and Compaq Tru64 Unix objects are PIC.
15079 lt_prog_compiler_pic_CXX=
15080 lt_prog_compiler_static_CXX='-non_shared'
15081 ;;
ee134472
JF
15082 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15083 # IBM XL 8.0, 9.0 on PPC and BlueGene
9c60689e
DWT
15084 lt_prog_compiler_wl_CXX='-Wl,'
15085 lt_prog_compiler_pic_CXX='-qpic'
15086 lt_prog_compiler_static_CXX='-qstaticlink'
15087 ;;
15088 *)
15089 case `$CC -V 2>&1 | sed 5q` in
15090 *Sun\ C*)
15091 # Sun C++ 5.9
15092 lt_prog_compiler_pic_CXX='-KPIC'
15093 lt_prog_compiler_static_CXX='-Bstatic'
15094 lt_prog_compiler_wl_CXX='-Qoption ld '
15095 ;;
15096 esac
15097 ;;
15098 esac
15099 ;;
15100 lynxos*)
15101 ;;
15102 m88k*)
15103 ;;
15104 mvs*)
15105 case $cc_basename in
15106 cxx*)
15107 lt_prog_compiler_pic_CXX='-W c,exportall'
15108 ;;
15109 *)
15110 ;;
15111 esac
15112 ;;
53ba6704 15113 netbsd*)
9c60689e
DWT
15114 ;;
15115 *qnx* | *nto*)
15116 # QNX uses GNU C++, but need to define -shared option too, otherwise
15117 # it will coredump.
15118 lt_prog_compiler_pic_CXX='-fPIC -shared'
15119 ;;
15120 osf3* | osf4* | osf5*)
15121 case $cc_basename in
15122 KCC*)
15123 lt_prog_compiler_wl_CXX='--backend -Wl,'
15124 ;;
15125 RCC*)
15126 # Rational C++ 2.4.1
15127 lt_prog_compiler_pic_CXX='-pic'
15128 ;;
15129 cxx*)
15130 # Digital/Compaq C++
15131 lt_prog_compiler_wl_CXX='-Wl,'
15132 # Make sure the PIC flag is empty. It appears that all Alpha
15133 # Linux and Compaq Tru64 Unix objects are PIC.
15134 lt_prog_compiler_pic_CXX=
15135 lt_prog_compiler_static_CXX='-non_shared'
15136 ;;
15137 *)
15138 ;;
15139 esac
15140 ;;
15141 psos*)
15142 ;;
15143 solaris*)
15144 case $cc_basename in
ee134472 15145 CC* | sunCC*)
9c60689e
DWT
15146 # Sun C++ 4.2, 5.x and Centerline C++
15147 lt_prog_compiler_pic_CXX='-KPIC'
15148 lt_prog_compiler_static_CXX='-Bstatic'
15149 lt_prog_compiler_wl_CXX='-Qoption ld '
15150 ;;
15151 gcx*)
15152 # Green Hills C++ Compiler
15153 lt_prog_compiler_pic_CXX='-PIC'
15154 ;;
15155 *)
15156 ;;
15157 esac
15158 ;;
15159 sunos4*)
15160 case $cc_basename in
15161 CC*)
15162 # Sun C++ 4.x
15163 lt_prog_compiler_pic_CXX='-pic'
15164 lt_prog_compiler_static_CXX='-Bstatic'
15165 ;;
15166 lcc*)
15167 # Lucid
15168 lt_prog_compiler_pic_CXX='-pic'
15169 ;;
15170 *)
15171 ;;
15172 esac
15173 ;;
15174 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15175 case $cc_basename in
15176 CC*)
15177 lt_prog_compiler_wl_CXX='-Wl,'
15178 lt_prog_compiler_pic_CXX='-KPIC'
15179 lt_prog_compiler_static_CXX='-Bstatic'
15180 ;;
15181 esac
15182 ;;
15183 tandem*)
15184 case $cc_basename in
15185 NCC*)
15186 # NonStop-UX NCC 3.20
15187 lt_prog_compiler_pic_CXX='-KPIC'
15188 ;;
15189 *)
15190 ;;
15191 esac
15192 ;;
15193 vxworks*)
15194 ;;
15195 *)
15196 lt_prog_compiler_can_build_shared_CXX=no
15197 ;;
15198 esac
15199 fi
15200
15201case $host_os in
9d54db95 15202 # For platforms that do not support PIC, -DPIC is meaningless:
9c60689e
DWT
15203 *djgpp*)
15204 lt_prog_compiler_pic_CXX=
15205 ;;
15206 *)
15207 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15208 ;;
15209esac
9c60689e 15210
ee134472
JF
15211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15212$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15213if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15214 $as_echo_n "(cached) " >&6
15215else
15216 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15217fi
15218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15219$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15220lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
9c60689e
DWT
15221
15222#
15223# Check to make sure the PIC flag actually works.
15224#
15225if test -n "$lt_prog_compiler_pic_CXX"; then
15226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15227$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
ee134472 15228if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
9c60689e
DWT
15229 $as_echo_n "(cached) " >&6
15230else
15231 lt_cv_prog_compiler_pic_works_CXX=no
15232 ac_outfile=conftest.$ac_objext
15233 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9d54db95 15234 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
9c60689e
DWT
15235 # Insert the option either (1) after the last *FLAGS variable, or
15236 # (2) before a word containing "conftest.", or (3) at the end.
15237 # Note that $ac_compile itself does not contain backslashes and begins
15238 # with a dollar sign (not a hyphen), so the echo should work correctly.
15239 # The option is referenced via a variable to avoid confusing sed.
15240 lt_compile=`echo "$ac_compile" | $SED \
15241 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15242 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15243 -e 's:$: $lt_compiler_flag:'`
ee134472 15244 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9c60689e
DWT
15245 (eval "$lt_compile" 2>conftest.err)
15246 ac_status=$?
15247 cat conftest.err >&5
ee134472 15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9c60689e
DWT
15249 if (exit $ac_status) && test -s "$ac_outfile"; then
15250 # The compiler can only warn and ignore the option if not recognized
15251 # So say no if there are warnings other than the usual output.
ee134472 15252 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9c60689e
DWT
15253 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15254 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15255 lt_cv_prog_compiler_pic_works_CXX=yes
15256 fi
15257 fi
00a96142 15258 $RM -r conftest*
9c60689e
DWT
15259
15260fi
15261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15262$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15263
9d54db95 15264if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
9c60689e
DWT
15265 case $lt_prog_compiler_pic_CXX in
15266 "" | " "*) ;;
15267 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15268 esac
15269else
15270 lt_prog_compiler_pic_CXX=
15271 lt_prog_compiler_can_build_shared_CXX=no
15272fi
15273
15274fi
15275
15276
15277
ee134472
JF
15278
15279
47aaa820
DWT
15280#
15281# Check to make sure the static flag actually works.
15282#
15283wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15285$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
ee134472 15286if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
47aaa820
DWT
15287 $as_echo_n "(cached) " >&6
15288else
15289 lt_cv_prog_compiler_static_works_CXX=no
9d54db95 15290 save_LDFLAGS=$LDFLAGS
47aaa820
DWT
15291 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15292 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15293 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15294 # The linker can only warn and ignore the option if not recognized
15295 # So say no if there are warnings
15296 if test -s conftest.err; then
15297 # Append any errors to the config.log.
15298 cat conftest.err 1>&5
ee134472 15299 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
47aaa820
DWT
15300 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15301 if diff conftest.exp conftest.er2 >/dev/null; then
15302 lt_cv_prog_compiler_static_works_CXX=yes
15303 fi
15304 else
15305 lt_cv_prog_compiler_static_works_CXX=yes
15306 fi
15307 fi
15308 $RM -r conftest*
9d54db95 15309 LDFLAGS=$save_LDFLAGS
47aaa820
DWT
15310
15311fi
15312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15313$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15314
9d54db95 15315if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
47aaa820
DWT
15316 :
15317else
15318 lt_prog_compiler_static_CXX=
15319fi
15320
15321
15322
15323
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15325$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ee134472 15326if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
47aaa820
DWT
15327 $as_echo_n "(cached) " >&6
15328else
15329 lt_cv_prog_compiler_c_o_CXX=no
15330 $RM -r conftest 2>/dev/null
15331 mkdir conftest
15332 cd conftest
15333 mkdir out
15334 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15335
15336 lt_compiler_flag="-o out/conftest2.$ac_objext"
15337 # Insert the option either (1) after the last *FLAGS variable, or
15338 # (2) before a word containing "conftest.", or (3) at the end.
15339 # Note that $ac_compile itself does not contain backslashes and begins
15340 # with a dollar sign (not a hyphen), so the echo should work correctly.
15341 lt_compile=`echo "$ac_compile" | $SED \
15342 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15343 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15344 -e 's:$: $lt_compiler_flag:'`
ee134472 15345 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
47aaa820
DWT
15346 (eval "$lt_compile" 2>out/conftest.err)
15347 ac_status=$?
15348 cat out/conftest.err >&5
ee134472 15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47aaa820
DWT
15350 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15351 then
15352 # The compiler can only warn and ignore the option if not recognized
15353 # So say no if there are warnings
ee134472 15354 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
47aaa820
DWT
15355 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15356 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15357 lt_cv_prog_compiler_c_o_CXX=yes
15358 fi
15359 fi
15360 chmod u+w . 2>&5
00a96142 15361 $RM -r conftest*
47aaa820
DWT
15362 # SGI C++ compiler will create directory out/ii_files/ for
15363 # template instantiation
15364 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15365 $RM out/* && rmdir out
15366 cd ..
15367 $RM -r conftest
00a96142 15368 $RM -r conftest*
47aaa820
DWT
15369
15370fi
15371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15372$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15373
15374
15375
15376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15377$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ee134472 15378if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
47aaa820
DWT
15379 $as_echo_n "(cached) " >&6
15380else
15381 lt_cv_prog_compiler_c_o_CXX=no
15382 $RM -r conftest 2>/dev/null
15383 mkdir conftest
15384 cd conftest
15385 mkdir out
15386 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15387
15388 lt_compiler_flag="-o out/conftest2.$ac_objext"
15389 # Insert the option either (1) after the last *FLAGS variable, or
15390 # (2) before a word containing "conftest.", or (3) at the end.
15391 # Note that $ac_compile itself does not contain backslashes and begins
15392 # with a dollar sign (not a hyphen), so the echo should work correctly.
15393 lt_compile=`echo "$ac_compile" | $SED \
15394 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15395 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15396 -e 's:$: $lt_compiler_flag:'`
ee134472 15397 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
47aaa820
DWT
15398 (eval "$lt_compile" 2>out/conftest.err)
15399 ac_status=$?
15400 cat out/conftest.err >&5
ee134472 15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47aaa820
DWT
15402 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15403 then
15404 # The compiler can only warn and ignore the option if not recognized
15405 # So say no if there are warnings
ee134472 15406 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
47aaa820
DWT
15407 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15408 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15409 lt_cv_prog_compiler_c_o_CXX=yes
15410 fi
15411 fi
15412 chmod u+w . 2>&5
00a96142 15413 $RM -r conftest*
47aaa820
DWT
15414 # SGI C++ compiler will create directory out/ii_files/ for
15415 # template instantiation
15416 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15417 $RM out/* && rmdir out
15418 cd ..
15419 $RM -r conftest
00a96142 15420 $RM -r conftest*
47aaa820
DWT
15421
15422fi
15423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15424$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15425
15426
15427
15428
9d54db95
JF
15429hard_links=nottested
15430if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
47aaa820
DWT
15431 # do not overwrite the value of need_locks provided by the user
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15433$as_echo_n "checking if we can lock with hard links... " >&6; }
15434 hard_links=yes
00a96142 15435 $RM -r conftest*
47aaa820
DWT
15436 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15437 touch conftest.a
15438 ln conftest.a conftest.b 2>&5 || hard_links=no
15439 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15441$as_echo "$hard_links" >&6; }
9d54db95
JF
15442 if test no = "$hard_links"; then
15443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15444$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
47aaa820
DWT
15445 need_locks=warn
15446 fi
15447else
15448 need_locks=no
15449fi
15450
15451
15452
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15454$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15455
15456 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
ee134472 15457 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
47aaa820
DWT
15458 case $host_os in
15459 aix[4-9]*)
15460 # If we're using GNU nm, then we don't want the "-C" option.
9d54db95
JF
15461 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15462 # Without the "-l" option, or with the "-B" option, AIX nm treats
15463 # weak defined symbols like other global defined symbols, whereas
15464 # GNU nm marks them as "W".
15465 # While the 'weak' keyword is ignored in the Export File, we need
15466 # it in the Import File for the 'aix-soname' feature, so we have
15467 # to replace the "-B" option with "-P" for AIX nm.
47aaa820 15468 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9d54db95 15469 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 15470 else
9d54db95 15471 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
15472 fi
15473 ;;
15474 pw32*)
9d54db95 15475 export_symbols_cmds_CXX=$ltdll_cmds
ee134472 15476 ;;
47aaa820 15477 cygwin* | mingw* | cegcc*)
ee134472 15478 case $cc_basename in
53ba6704
JF
15479 cl*)
15480 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15481 ;;
ee134472
JF
15482 *)
15483 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'
15484 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15485 ;;
15486 esac
15487 ;;
47aaa820
DWT
15488 *)
15489 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
ee134472 15490 ;;
47aaa820 15491 esac
47aaa820
DWT
15492
15493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15494$as_echo "$ld_shlibs_CXX" >&6; }
9d54db95 15495test no = "$ld_shlibs_CXX" && can_build_shared=no
47aaa820
DWT
15496
15497with_gnu_ld_CXX=$with_gnu_ld
15498
15499
15500
15501
15502
15503
15504#
15505# Do we need to explicitly link libc?
15506#
15507case "x$archive_cmds_need_lc_CXX" in
15508x|xyes)
15509 # Assume -lc should be added
15510 archive_cmds_need_lc_CXX=yes
15511
9d54db95 15512 if test yes,yes = "$GCC,$enable_shared"; then
47aaa820
DWT
15513 case $archive_cmds_CXX in
15514 *'~'*)
15515 # FIXME: we may have to deal with multi-command sequences.
15516 ;;
15517 '$CC '*)
15518 # Test whether the compiler implicitly links with -lc since on some
15519 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15520 # to ld, don't add -lc before -lgcc.
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15522$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
ee134472
JF
15523if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15524 $as_echo_n "(cached) " >&6
15525else
00a96142 15526 $RM -r conftest*
ee134472 15527 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
47aaa820 15528
ee134472 15529 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
47aaa820
DWT
15530 (eval $ac_compile) 2>&5
15531 ac_status=$?
15532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15533 test $ac_status = 0; } 2>conftest.err; then
ee134472
JF
15534 soname=conftest
15535 lib=conftest
15536 libobjs=conftest.$ac_objext
15537 deplibs=
15538 wl=$lt_prog_compiler_wl_CXX
15539 pic_flag=$lt_prog_compiler_pic_CXX
15540 compiler_flags=-v
15541 linker_flags=-v
15542 verstring=
15543 output_objdir=.
15544 libname=conftest
15545 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15546 allow_undefined_flag_CXX=
15547 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
47aaa820
DWT
15548 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15549 ac_status=$?
15550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15551 test $ac_status = 0; }
ee134472
JF
15552 then
15553 lt_cv_archive_cmds_need_lc_CXX=no
15554 else
15555 lt_cv_archive_cmds_need_lc_CXX=yes
15556 fi
15557 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15558 else
15559 cat conftest.err 1>&5
15560 fi
00a96142 15561 $RM -r conftest*
ee134472
JF
15562
15563fi
15564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15565$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15566 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
47aaa820
DWT
15567 ;;
15568 esac
15569 fi
15570 ;;
15571esac
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
15629
15630
47aaa820
DWT
15631
15632
15633
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15635$as_echo_n "checking dynamic linker characteristics... " >&6; }
15636
15637library_names_spec=
15638libname_spec='lib$name'
15639soname_spec=
9d54db95 15640shrext_cmds=.so
47aaa820
DWT
15641postinstall_cmds=
15642postuninstall_cmds=
15643finish_cmds=
15644finish_eval=
15645shlibpath_var=
15646shlibpath_overrides_runpath=unknown
15647version_type=none
15648dynamic_linker="$host_os ld.so"
15649sys_lib_dlsearch_path_spec="/lib /usr/lib"
15650need_lib_prefix=unknown
15651hardcode_into_libs=no
15652
15653# when you set need_version to no, make sure it does not cause -set_version
15654# flags to be left without arguments
15655need_version=unknown
15656
9d54db95
JF
15657
15658
47aaa820
DWT
15659case $host_os in
15660aix3*)
53ba6704 15661 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95 15662 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
47aaa820
DWT
15663 shlibpath_var=LIBPATH
15664
15665 # AIX 3 has no versioning support, so we append a major version to the name.
9d54db95 15666 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
15667 ;;
15668
15669aix[4-9]*)
53ba6704 15670 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15671 need_lib_prefix=no
15672 need_version=no
15673 hardcode_into_libs=yes
9d54db95 15674 if test ia64 = "$host_cpu"; then
47aaa820 15675 # AIX 5 supports IA64
9d54db95 15676 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
47aaa820
DWT
15677 shlibpath_var=LD_LIBRARY_PATH
15678 else
15679 # With GCC up to 2.95.x, collect2 would create an import file
15680 # for dependence libraries. The import file would start with
9d54db95
JF
15681 # the line '#! .'. This would cause the generated library to
15682 # depend on '.', always an invalid library. This was fixed in
47aaa820
DWT
15683 # development snapshots of GCC prior to 3.0.
15684 case $host_os in
15685 aix4 | aix4.[01] | aix4.[01].*)
15686 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15687 echo ' yes '
9d54db95 15688 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
47aaa820
DWT
15689 :
15690 else
15691 can_build_shared=no
15692 fi
15693 ;;
15694 esac
9d54db95
JF
15695 # Using Import Files as archive members, it is possible to support
15696 # filename-based versioning of shared library archives on AIX. While
15697 # this would work for both with and without runtime linking, it will
15698 # prevent static linking of such archives. So we do filename-based
15699 # shared library versioning with .so extension only, which is used
15700 # when both runtime linking and shared linking is enabled.
15701 # Unfortunately, runtime linking may impact performance, so we do
15702 # not want this to be the default eventually. Also, we use the
15703 # versioned .so libs for executables only if there is the -brtl
15704 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15705 # To allow for filename-based versioning support, we need to create
15706 # libNAME.so.V as an archive file, containing:
15707 # *) an Import File, referring to the versioned filename of the
15708 # archive as well as the shared archive member, telling the
15709 # bitwidth (32 or 64) of that shared object, and providing the
15710 # list of exported symbols of that shared object, eventually
15711 # decorated with the 'weak' keyword
15712 # *) the shared object with the F_LOADONLY flag set, to really avoid
15713 # it being seen by the linker.
15714 # At run time we better use the real file rather than another symlink,
15715 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15716
15717 case $with_aix_soname,$aix_use_runtimelinking in
15718 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
47aaa820
DWT
15719 # soname into executable. Probably we can add versioning support to
15720 # collect2, so additional links can be useful in future.
9d54db95
JF
15721 aix,yes) # traditional libtool
15722 dynamic_linker='AIX unversionable lib.so'
47aaa820
DWT
15723 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15724 # instead of lib<name>.a to let people know that these are not
15725 # typical AIX shared libraries.
9d54db95
JF
15726 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15727 ;;
15728 aix,no) # traditional AIX only
15729 dynamic_linker='AIX lib.a(lib.so.V)'
47aaa820
DWT
15730 # We preserve .a as extension for shared libraries through AIX4.2
15731 # and later when we are not doing run time linking.
9d54db95
JF
15732 library_names_spec='$libname$release.a $libname.a'
15733 soname_spec='$libname$release$shared_ext$major'
15734 ;;
15735 svr4,*) # full svr4 only
15736 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15737 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15738 # We do not specify a path in Import Files, so LIBPATH fires.
15739 shlibpath_overrides_runpath=yes
15740 ;;
15741 *,yes) # both, prefer svr4
15742 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15743 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15744 # unpreferred sharedlib libNAME.a needs extra handling
15745 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"'
15746 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"'
15747 # We do not specify a path in Import Files, so LIBPATH fires.
15748 shlibpath_overrides_runpath=yes
15749 ;;
15750 *,no) # both, prefer aix
15751 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15752 library_names_spec='$libname$release.a $libname.a'
15753 soname_spec='$libname$release$shared_ext$major'
15754 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15755 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)'
15756 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"'
15757 ;;
15758 esac
47aaa820
DWT
15759 shlibpath_var=LIBPATH
15760 fi
15761 ;;
15762
15763amigaos*)
15764 case $host_cpu in
15765 powerpc)
15766 # Since July 2007 AmigaOS4 officially supports .so libraries.
15767 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9d54db95 15768 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
47aaa820
DWT
15769 ;;
15770 m68k)
15771 library_names_spec='$libname.ixlibrary $libname.a'
15772 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9d54db95 15773 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
15774 ;;
15775 esac
15776 ;;
15777
15778beos*)
9d54db95 15779 library_names_spec='$libname$shared_ext'
47aaa820
DWT
15780 dynamic_linker="$host_os ld.so"
15781 shlibpath_var=LIBRARY_PATH
15782 ;;
15783
15784bsdi[45]*)
53ba6704 15785 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820 15786 need_version=no
9d54db95
JF
15787 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15788 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
15789 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15790 shlibpath_var=LD_LIBRARY_PATH
15791 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15792 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15793 # the default ld.so.conf also contains /usr/contrib/lib and
15794 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15795 # libtool to hard-code these into programs
15796 ;;
9c60689e 15797
47aaa820
DWT
15798cygwin* | mingw* | pw32* | cegcc*)
15799 version_type=windows
9d54db95 15800 shrext_cmds=.dll
47aaa820
DWT
15801 need_version=no
15802 need_lib_prefix=no
9c60689e 15803
ee134472
JF
15804 case $GCC,$cc_basename in
15805 yes,*)
15806 # gcc
47aaa820
DWT
15807 library_names_spec='$libname.dll.a'
15808 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9d54db95
JF
15809 postinstall_cmds='base_file=`basename \$file`~
15810 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
47aaa820
DWT
15811 dldir=$destdir/`dirname \$dlpath`~
15812 test -d \$dldir || mkdir -p \$dldir~
15813 $install_prog $dir/$dlname \$dldir/$dlname~
15814 chmod a+x \$dldir/$dlname~
15815 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15816 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15817 fi'
15818 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15819 dlpath=$dir/\$dldll~
15820 $RM \$dlpath'
15821 shlibpath_overrides_runpath=yes
9c60689e 15822
47aaa820
DWT
15823 case $host_os in
15824 cygwin*)
15825 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9d54db95 15826 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
ee134472 15827
47aaa820
DWT
15828 ;;
15829 mingw* | cegcc*)
15830 # MinGW DLLs use traditional 'lib' prefix
9d54db95 15831 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
47aaa820
DWT
15832 ;;
15833 pw32*)
15834 # pw32 DLLs use 'pw' prefix rather than 'lib'
9d54db95 15835 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
47aaa820
DWT
15836 ;;
15837 esac
ee134472
JF
15838 dynamic_linker='Win32 ld.exe'
15839 ;;
15840
15841 *,cl*)
15842 # Native MSVC
15843 libname_spec='$name'
9d54db95
JF
15844 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15845 library_names_spec='$libname.dll.lib'
ee134472
JF
15846
15847 case $build_os in
15848 mingw*)
15849 sys_lib_search_path_spec=
15850 lt_save_ifs=$IFS
15851 IFS=';'
15852 for lt_path in $LIB
15853 do
15854 IFS=$lt_save_ifs
15855 # Let DOS variable expansion print the short 8.3 style file name.
15856 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15857 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15858 done
15859 IFS=$lt_save_ifs
15860 # Convert to MSYS style.
15861 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15862 ;;
15863 cygwin*)
15864 # Convert to unix form, then to dos form, then back to unix form
15865 # but this time dos style (no spaces!) so that the unix form looks
15866 # like /cygdrive/c/PROGRA~1:/cygdr...
15867 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15868 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15869 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15870 ;;
15871 *)
9d54db95 15872 sys_lib_search_path_spec=$LIB
ee134472
JF
15873 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15874 # It is most probably a Windows format PATH.
15875 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15876 else
15877 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15878 fi
15879 # FIXME: find the short name or the path components, as spaces are
15880 # common. (e.g. "Program Files" -> "PROGRA~1")
15881 ;;
15882 esac
15883
15884 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9d54db95
JF
15885 postinstall_cmds='base_file=`basename \$file`~
15886 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
ee134472
JF
15887 dldir=$destdir/`dirname \$dlpath`~
15888 test -d \$dldir || mkdir -p \$dldir~
15889 $install_prog $dir/$dlname \$dldir/$dlname'
15890 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15891 dlpath=$dir/\$dldll~
15892 $RM \$dlpath'
15893 shlibpath_overrides_runpath=yes
15894 dynamic_linker='Win32 link.exe'
47aaa820 15895 ;;
9c60689e 15896
47aaa820 15897 *)
ee134472 15898 # Assume MSVC wrapper
9d54db95 15899 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
ee134472 15900 dynamic_linker='Win32 ld.exe'
47aaa820
DWT
15901 ;;
15902 esac
47aaa820
DWT
15903 # FIXME: first we should search . and the directory the executable is in
15904 shlibpath_var=PATH
15905 ;;
9c60689e 15906
47aaa820
DWT
15907darwin* | rhapsody*)
15908 dynamic_linker="$host_os dyld"
15909 version_type=darwin
15910 need_lib_prefix=no
15911 need_version=no
9d54db95
JF
15912 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15913 soname_spec='$libname$release$major$shared_ext'
47aaa820
DWT
15914 shlibpath_overrides_runpath=yes
15915 shlibpath_var=DYLD_LIBRARY_PATH
15916 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9c60689e 15917
47aaa820
DWT
15918 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15919 ;;
9c60689e 15920
47aaa820 15921dgux*)
53ba6704 15922 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
15923 need_lib_prefix=no
15924 need_version=no
9d54db95
JF
15925 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15926 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
15927 shlibpath_var=LD_LIBRARY_PATH
15928 ;;
9c60689e 15929
47aaa820
DWT
15930freebsd* | dragonfly*)
15931 # DragonFly does not have aout. When/if they implement a new
15932 # versioning mechanism, adjust this.
15933 if test -x /usr/bin/objformat; then
15934 objformat=`/usr/bin/objformat`
15935 else
15936 case $host_os in
53ba6704 15937 freebsd[23].*) objformat=aout ;;
47aaa820
DWT
15938 *) objformat=elf ;;
15939 esac
15940 fi
15941 version_type=freebsd-$objformat
15942 case $version_type in
15943 freebsd-elf*)
9d54db95
JF
15944 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15945 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
15946 need_version=no
15947 need_lib_prefix=no
15948 ;;
15949 freebsd-*)
9d54db95 15950 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
47aaa820
DWT
15951 need_version=yes
15952 ;;
15953 esac
15954 shlibpath_var=LD_LIBRARY_PATH
15955 case $host_os in
53ba6704 15956 freebsd2.*)
47aaa820
DWT
15957 shlibpath_overrides_runpath=yes
15958 ;;
15959 freebsd3.[01]* | freebsdelf3.[01]*)
15960 shlibpath_overrides_runpath=yes
15961 hardcode_into_libs=yes
15962 ;;
15963 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15964 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15965 shlibpath_overrides_runpath=no
15966 hardcode_into_libs=yes
15967 ;;
15968 *) # from 4.6 on, and DragonFly
15969 shlibpath_overrides_runpath=yes
15970 hardcode_into_libs=yes
15971 ;;
15972 esac
15973 ;;
9c60689e 15974
ee134472 15975haiku*)
53ba6704 15976 version_type=linux # correct to gnu/linux during the next big refactor
ee134472
JF
15977 need_lib_prefix=no
15978 need_version=no
15979 dynamic_linker="$host_os runtime_loader"
9d54db95
JF
15980 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15981 soname_spec='$libname$release$shared_ext$major'
ee134472 15982 shlibpath_var=LIBRARY_PATH
9d54db95 15983 shlibpath_overrides_runpath=no
ee134472 15984 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
47aaa820
DWT
15985 hardcode_into_libs=yes
15986 ;;
9c60689e 15987
47aaa820
DWT
15988hpux9* | hpux10* | hpux11*)
15989 # Give a soname corresponding to the major version so that dld.sl refuses to
15990 # link against other versions.
15991 version_type=sunos
15992 need_lib_prefix=no
15993 need_version=no
15994 case $host_cpu in
15995 ia64*)
15996 shrext_cmds='.so'
15997 hardcode_into_libs=yes
15998 dynamic_linker="$host_os dld.so"
15999 shlibpath_var=LD_LIBRARY_PATH
16000 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9d54db95
JF
16001 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16002 soname_spec='$libname$release$shared_ext$major'
16003 if test 32 = "$HPUX_IA64_MODE"; then
47aaa820 16004 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9d54db95 16005 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
47aaa820
DWT
16006 else
16007 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9d54db95 16008 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
47aaa820 16009 fi
47aaa820
DWT
16010 ;;
16011 hppa*64*)
16012 shrext_cmds='.sl'
16013 hardcode_into_libs=yes
16014 dynamic_linker="$host_os dld.sl"
16015 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16016 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9d54db95
JF
16017 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16018 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
16019 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16020 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16021 ;;
16022 *)
16023 shrext_cmds='.sl'
16024 dynamic_linker="$host_os dld.sl"
16025 shlibpath_var=SHLIB_PATH
16026 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9d54db95
JF
16027 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16028 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
16029 ;;
16030 esac
ee134472 16031 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
47aaa820 16032 postinstall_cmds='chmod 555 $lib'
ee134472
JF
16033 # or fails outright, so override atomically:
16034 install_override_mode=555
47aaa820 16035 ;;
9c60689e 16036
47aaa820 16037interix[3-9]*)
53ba6704 16038 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
16039 need_lib_prefix=no
16040 need_version=no
9d54db95
JF
16041 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16042 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
16043 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16044 shlibpath_var=LD_LIBRARY_PATH
16045 shlibpath_overrides_runpath=no
16046 hardcode_into_libs=yes
16047 ;;
9c60689e 16048
47aaa820
DWT
16049irix5* | irix6* | nonstopux*)
16050 case $host_os in
16051 nonstopux*) version_type=nonstopux ;;
16052 *)
9d54db95 16053 if test yes = "$lt_cv_prog_gnu_ld"; then
53ba6704 16054 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
16055 else
16056 version_type=irix
16057 fi ;;
16058 esac
16059 need_lib_prefix=no
16060 need_version=no
9d54db95
JF
16061 soname_spec='$libname$release$shared_ext$major'
16062 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
47aaa820
DWT
16063 case $host_os in
16064 irix5* | nonstopux*)
16065 libsuff= shlibsuff=
16066 ;;
16067 *)
16068 case $LD in # libtool.m4 will add one of these switches to LD
16069 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16070 libsuff= shlibsuff= libmagic=32-bit;;
16071 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16072 libsuff=32 shlibsuff=N32 libmagic=N32;;
16073 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16074 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16075 *) libsuff= shlibsuff= libmagic=never-match;;
16076 esac
16077 ;;
16078 esac
16079 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16080 shlibpath_overrides_runpath=no
9d54db95
JF
16081 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16082 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
47aaa820
DWT
16083 hardcode_into_libs=yes
16084 ;;
9c60689e 16085
47aaa820
DWT
16086# No shared lib support for Linux oldld, aout, or coff.
16087linux*oldld* | linux*aout* | linux*coff*)
16088 dynamic_linker=no
16089 ;;
9c60689e 16090
9d54db95
JF
16091linux*android*)
16092 version_type=none # Android doesn't support versioned libraries.
16093 need_lib_prefix=no
16094 need_version=no
16095 library_names_spec='$libname$release$shared_ext'
16096 soname_spec='$libname$release$shared_ext'
16097 finish_cmds=
16098 shlibpath_var=LD_LIBRARY_PATH
16099 shlibpath_overrides_runpath=yes
16100
16101 # This implies no fast_install, which is unacceptable.
16102 # Some rework will be needed to allow for fast_install
16103 # before this can be enabled.
16104 hardcode_into_libs=yes
16105
16106 dynamic_linker='Android linker'
16107 # Don't embed -rpath directories since the linker doesn't support them.
16108 hardcode_libdir_flag_spec_CXX='-L$libdir'
16109 ;;
16110
53ba6704 16111# This must be glibc/ELF.
9d54db95 16112linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
53ba6704 16113 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
16114 need_lib_prefix=no
16115 need_version=no
9d54db95
JF
16116 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16117 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
16118 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16119 shlibpath_var=LD_LIBRARY_PATH
16120 shlibpath_overrides_runpath=no
ee134472 16121
47aaa820 16122 # Some binutils ld are patched to set DT_RUNPATH
ee134472
JF
16123 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16124 $as_echo_n "(cached) " >&6
16125else
16126 lt_cv_shlibpath_overrides_runpath=no
16127 save_LDFLAGS=$LDFLAGS
16128 save_libdir=$libdir
16129 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16130 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47aaa820 16132/* end confdefs.h. */
9c60689e 16133
47aaa820
DWT
16134int
16135main ()
16136{
9c60689e 16137
47aaa820
DWT
16138 ;
16139 return 0;
16140}
16141_ACEOF
16142if ac_fn_cxx_try_link "$LINENO"; then :
16143 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
ee134472 16144 lt_cv_shlibpath_overrides_runpath=yes
9c60689e 16145fi
47aaa820
DWT
16146fi
16147rm -f core conftest.err conftest.$ac_objext \
16148 conftest$ac_exeext conftest.$ac_ext
ee134472
JF
16149 LDFLAGS=$save_LDFLAGS
16150 libdir=$save_libdir
16151
16152fi
16153
16154 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9c60689e 16155
47aaa820
DWT
16156 # This implies no fast_install, which is unacceptable.
16157 # Some rework will be needed to allow for fast_install
16158 # before this can be enabled.
16159 hardcode_into_libs=yes
9c60689e 16160
9d54db95
JF
16161 # Ideally, we could use ldconfig to report *all* directores which are
16162 # searched for libraries, however this is still not possible. Aside from not
16163 # being certain /sbin/ldconfig is available, command
16164 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16165 # even though it is searched at run-time. Try to do the best guess by
16166 # appending ld.so.conf contents (and includes) to the search path.
47aaa820 16167 if test -f /etc/ld.so.conf; then
ee134472 16168 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
16169 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16170 fi
9c60689e 16171
47aaa820
DWT
16172 # We used to test for /lib/ld.so.1 and disable shared libraries on
16173 # powerpc, because MkLinux only supported shared libraries with the
16174 # GNU dynamic linker. Since this was broken with cross compilers,
16175 # most powerpc-linux boxes support dynamic linking these days and
16176 # people can always --disable-shared, the test was removed, and we
16177 # assume the GNU/Linux dynamic linker is in use.
16178 dynamic_linker='GNU/Linux ld.so'
9c60689e 16179 ;;
47aaa820 16180
47aaa820
DWT
16181netbsd*)
16182 version_type=sunos
16183 need_lib_prefix=no
16184 need_version=no
16185 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9d54db95 16186 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
47aaa820
DWT
16187 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16188 dynamic_linker='NetBSD (a.out) ld.so'
16189 else
9d54db95
JF
16190 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16191 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
16192 dynamic_linker='NetBSD ld.elf_so'
16193 fi
16194 shlibpath_var=LD_LIBRARY_PATH
16195 shlibpath_overrides_runpath=yes
16196 hardcode_into_libs=yes
9c60689e 16197 ;;
9c60689e 16198
47aaa820 16199newsos6)
53ba6704 16200 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95 16201 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
47aaa820
DWT
16202 shlibpath_var=LD_LIBRARY_PATH
16203 shlibpath_overrides_runpath=yes
16204 ;;
9c60689e 16205
47aaa820
DWT
16206*nto* | *qnx*)
16207 version_type=qnx
16208 need_lib_prefix=no
16209 need_version=no
9d54db95
JF
16210 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16211 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
16212 shlibpath_var=LD_LIBRARY_PATH
16213 shlibpath_overrides_runpath=no
16214 hardcode_into_libs=yes
16215 dynamic_linker='ldqnx.so'
16216 ;;
9c60689e 16217
9d54db95 16218openbsd* | bitrig*)
47aaa820 16219 version_type=sunos
9d54db95 16220 sys_lib_dlsearch_path_spec=/usr/lib
47aaa820 16221 need_lib_prefix=no
9d54db95
JF
16222 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16223 need_version=no
47aaa820 16224 else
9d54db95 16225 need_version=yes
47aaa820 16226 fi
9d54db95
JF
16227 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16228 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16229 shlibpath_var=LD_LIBRARY_PATH
16230 shlibpath_overrides_runpath=yes
47aaa820 16231 ;;
9c60689e 16232
47aaa820
DWT
16233os2*)
16234 libname_spec='$name'
9d54db95
JF
16235 version_type=windows
16236 shrext_cmds=.dll
16237 need_version=no
47aaa820 16238 need_lib_prefix=no
9d54db95
JF
16239 # OS/2 can only load a DLL with a base name of 8 characters or less.
16240 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16241 v=$($ECHO $release$versuffix | tr -d .-);
16242 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16243 $ECHO $n$v`$shared_ext'
16244 library_names_spec='${libname}_dll.$libext'
47aaa820 16245 dynamic_linker='OS/2 ld.exe'
9d54db95
JF
16246 shlibpath_var=BEGINLIBPATH
16247 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16248 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16249 postinstall_cmds='base_file=`basename \$file`~
16250 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16251 dldir=$destdir/`dirname \$dlpath`~
16252 test -d \$dldir || mkdir -p \$dldir~
16253 $install_prog $dir/$dlname \$dldir/$dlname~
16254 chmod a+x \$dldir/$dlname~
16255 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16256 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16257 fi'
16258 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16259 dlpath=$dir/\$dldll~
16260 $RM \$dlpath'
47aaa820 16261 ;;
9c60689e 16262
47aaa820
DWT
16263osf3* | osf4* | osf5*)
16264 version_type=osf
16265 need_lib_prefix=no
16266 need_version=no
9d54db95
JF
16267 soname_spec='$libname$release$shared_ext$major'
16268 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
47aaa820
DWT
16269 shlibpath_var=LD_LIBRARY_PATH
16270 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9d54db95 16271 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
47aaa820 16272 ;;
9c60689e 16273
47aaa820
DWT
16274rdos*)
16275 dynamic_linker=no
16276 ;;
9c60689e 16277
47aaa820 16278solaris*)
53ba6704 16279 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
16280 need_lib_prefix=no
16281 need_version=no
9d54db95
JF
16282 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16283 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
16284 shlibpath_var=LD_LIBRARY_PATH
16285 shlibpath_overrides_runpath=yes
16286 hardcode_into_libs=yes
16287 # ldd complains unless libraries are executable
16288 postinstall_cmds='chmod +x $lib'
16289 ;;
9c60689e 16290
47aaa820
DWT
16291sunos4*)
16292 version_type=sunos
9d54db95 16293 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
47aaa820
DWT
16294 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16295 shlibpath_var=LD_LIBRARY_PATH
16296 shlibpath_overrides_runpath=yes
9d54db95 16297 if test yes = "$with_gnu_ld"; then
47aaa820
DWT
16298 need_lib_prefix=no
16299 fi
16300 need_version=yes
16301 ;;
9c60689e 16302
47aaa820 16303sysv4 | sysv4.3*)
53ba6704 16304 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95
JF
16305 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16306 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
16307 shlibpath_var=LD_LIBRARY_PATH
16308 case $host_vendor in
16309 sni)
16310 shlibpath_overrides_runpath=no
16311 need_lib_prefix=no
16312 runpath_var=LD_RUN_PATH
9c60689e 16313 ;;
47aaa820
DWT
16314 siemens)
16315 need_lib_prefix=no
9c60689e 16316 ;;
47aaa820
DWT
16317 motorola)
16318 need_lib_prefix=no
16319 need_version=no
16320 shlibpath_overrides_runpath=no
16321 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16322 ;;
16323 esac
9c60689e 16324 ;;
9c60689e 16325
47aaa820 16326sysv4*MP*)
9d54db95 16327 if test -d /usr/nec; then
53ba6704 16328 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95
JF
16329 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16330 soname_spec='$libname$shared_ext.$major'
47aaa820
DWT
16331 shlibpath_var=LD_LIBRARY_PATH
16332 fi
16333 ;;
9c60689e 16334
47aaa820 16335sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9d54db95 16336 version_type=sco
47aaa820
DWT
16337 need_lib_prefix=no
16338 need_version=no
9d54db95
JF
16339 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16340 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
16341 shlibpath_var=LD_LIBRARY_PATH
16342 shlibpath_overrides_runpath=yes
16343 hardcode_into_libs=yes
9d54db95 16344 if test yes = "$with_gnu_ld"; then
47aaa820
DWT
16345 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16346 else
16347 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16348 case $host_os in
16349 sco3.2v5*)
16350 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16351 ;;
16352 esac
16353 fi
16354 sys_lib_dlsearch_path_spec='/usr/lib'
16355 ;;
9c60689e 16356
47aaa820
DWT
16357tpf*)
16358 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
53ba6704 16359 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
16360 need_lib_prefix=no
16361 need_version=no
9d54db95 16362 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
47aaa820
DWT
16363 shlibpath_var=LD_LIBRARY_PATH
16364 shlibpath_overrides_runpath=no
16365 hardcode_into_libs=yes
16366 ;;
9c60689e 16367
47aaa820 16368uts4*)
53ba6704 16369 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95
JF
16370 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16371 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
16372 shlibpath_var=LD_LIBRARY_PATH
16373 ;;
9c60689e 16374
47aaa820
DWT
16375*)
16376 dynamic_linker=no
e9c9a47c
DWT
16377 ;;
16378esac
16379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16380$as_echo "$dynamic_linker" >&6; }
9d54db95 16381test no = "$dynamic_linker" && can_build_shared=no
e9c9a47c
DWT
16382
16383variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9d54db95 16384if test yes = "$GCC"; then
e9c9a47c 16385 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
47aaa820 16386fi
9c60689e 16387
9d54db95
JF
16388if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16389 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
47aaa820 16390fi
9d54db95
JF
16391
16392if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16393 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
47aaa820 16394fi
9c60689e 16395
9d54db95
JF
16396# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16397configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16398
16399# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16400func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16401
16402# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16403configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16404
16405
16406
9c60689e 16407
9c60689e 16408
9c60689e 16409
47aaa820 16410
47aaa820 16411
47aaa820 16412
9c60689e 16413
9c60689e 16414
47aaa820 16415
47aaa820 16416
47aaa820 16417
47aaa820 16418
47aaa820 16419
47aaa820 16420
47aaa820 16421
47aaa820 16422
9c60689e 16423
9c60689e 16424
9c60689e 16425
9c60689e 16426
9c60689e 16427
e9c9a47c
DWT
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
ee134472
JF
16439
16440
e9c9a47c
DWT
16441
16442
16443
16444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16445$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16446hardcode_action_CXX=
16447if test -n "$hardcode_libdir_flag_spec_CXX" ||
16448 test -n "$runpath_var_CXX" ||
9d54db95 16449 test yes = "$hardcode_automatic_CXX"; then
e9c9a47c
DWT
16450
16451 # We can hardcode non-existent directories.
9d54db95 16452 if test no != "$hardcode_direct_CXX" &&
e9c9a47c
DWT
16453 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16454 # have to relink, otherwise we might link with an installed library
16455 # when we should be linking with a yet-to-be-installed one
9d54db95
JF
16456 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16457 test no != "$hardcode_minus_L_CXX"; then
e9c9a47c
DWT
16458 # Linking always hardcodes the temporary library directory.
16459 hardcode_action_CXX=relink
16460 else
16461 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16462 hardcode_action_CXX=immediate
16463 fi
16464else
16465 # We cannot hardcode anything, or else we can only hardcode existing
16466 # directories.
16467 hardcode_action_CXX=unsupported
16468fi
16469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16470$as_echo "$hardcode_action_CXX" >&6; }
16471
9d54db95
JF
16472if test relink = "$hardcode_action_CXX" ||
16473 test yes = "$inherit_rpath_CXX"; then
e9c9a47c
DWT
16474 # Fast installation is not supported
16475 enable_fast_install=no
9d54db95
JF
16476elif test yes = "$shlibpath_overrides_runpath" ||
16477 test no = "$enable_shared"; then
e9c9a47c
DWT
16478 # Fast installation is not necessary
16479 enable_fast_install=needless
47aaa820 16480fi
9c60689e 16481
47aaa820 16482
47aaa820 16483
e9c9a47c
DWT
16484
16485
16486
16487
a243b558
JF
16488 fi # test -n "$compiler"
16489
16490 CC=$lt_save_CC
16491 CFLAGS=$lt_save_CFLAGS
16492 LDCXX=$LD
16493 LD=$lt_save_LD
16494 GCC=$lt_save_GCC
16495 with_gnu_ld=$lt_save_with_gnu_ld
16496 lt_cv_path_LDCXX=$lt_cv_path_LD
16497 lt_cv_path_LD=$lt_save_path_LD
16498 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16499 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
9d54db95 16500fi # test yes != "$_lt_caught_CXX_error"
a243b558
JF
16501
16502ac_ext=c
16503ac_cpp='$CPP $CPPFLAGS'
16504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16506ac_compiler_gnu=$ac_cv_c_compiler_gnu
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522 ac_config_commands="$ac_config_commands libtool"
16523
16524
16525
16526
16527# Only expand once:
16528
16529
16530
16531ac_ext=cpp
16532ac_cpp='$CXXCPP $CPPFLAGS'
16533ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16534ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16535ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16536
16537
1771224f
JF
16538 ax_cxx_compile_cxx11_required=true
16539 ac_ext=cpp
16540ac_cpp='$CXXCPP $CPPFLAGS'
16541ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16542ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16543ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16544 ac_success=no
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
16546$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
16547if ${ax_cv_cxx_compile_cxx11+:} false; then :
16548 $as_echo_n "(cached) " >&6
16549else
16550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16551/* end confdefs.h. */
16552
16553 template <typename T>
16554 struct check
16555 {
16556 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16557 };
16558
16559 struct Base {
16560 virtual void f() {}
16561 };
16562 struct Child : public Base {
16563 virtual void f() override {}
16564 };
16565
16566 typedef check<check<bool>> right_angle_brackets;
16567
16568 int a;
16569 decltype(a) b;
16570
16571 typedef check<int> check_type;
16572 check_type c;
16573 check_type&& cr = static_cast<check_type&&>(c);
16574
16575 auto d = a;
16576 auto l = [](){};
16577
16578_ACEOF
16579if ac_fn_cxx_try_compile "$LINENO"; then :
16580 ax_cv_cxx_compile_cxx11=yes
16581else
16582 ax_cv_cxx_compile_cxx11=no
16583fi
16584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16585fi
16586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
16587$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
16588 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
16589 ac_success=yes
16590 fi
16591
16592 if test x$ac_success = xno; then
16593 for switch in -std=gnu++11 -std=gnu++0x; do
16594 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
16596$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
16597if eval \${$cachevar+:} false; then :
16598 $as_echo_n "(cached) " >&6
16599else
16600 ac_save_CXXFLAGS="$CXXFLAGS"
16601 CXXFLAGS="$CXXFLAGS $switch"
16602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16603/* end confdefs.h. */
16604
16605 template <typename T>
16606 struct check
16607 {
16608 static_assert(sizeof(int) <= sizeof(T), "not big enough");
16609 };
16610
16611 struct Base {
16612 virtual void f() {}
16613 };
16614 struct Child : public Base {
16615 virtual void f() override {}
16616 };
16617
16618 typedef check<check<bool>> right_angle_brackets;
16619
16620 int a;
16621 decltype(a) b;
16622
16623 typedef check<int> check_type;
16624 check_type c;
16625 check_type&& cr = static_cast<check_type&&>(c);
16626
16627 auto d = a;
16628 auto l = [](){};
16629
16630_ACEOF
16631if ac_fn_cxx_try_compile "$LINENO"; then :
16632 eval $cachevar=yes
16633else
16634 eval $cachevar=no
16635fi
16636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16637 CXXFLAGS="$ac_save_CXXFLAGS"
16638fi
16639eval ac_res=\$$cachevar
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16641$as_echo "$ac_res" >&6; }
16642 if eval test x\$$cachevar = xyes; then
16643 CXXFLAGS="$CXXFLAGS $switch"
16644 ac_success=yes
16645 break
16646 fi
16647 done
16648 fi
16649
16650
16651 ac_ext=cpp
16652ac_cpp='$CXXCPP $CPPFLAGS'
16653ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16654ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16655ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16656
16657 if test x$ax_cxx_compile_cxx11_required = xtrue; then
16658 if test x$ac_success = xno; then
16659 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
16660 fi
16661 else
16662 if test x$ac_success = xno; then
16663 HAVE_CXX11=0
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
16665$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
16666 else
16667 HAVE_CXX11=1
16668
16669$as_echo "#define HAVE_CXX11 1" >>confdefs.h
16670
16671 fi
16672
16673
16674 fi
16675
16676OBJCXXFLAGS="${OBJCXXFLAGS} ${CXXFLAGS##*' '}"
16677
a243b558
JF
16678
16679
16680
16681
16682
16683
83c6fec8 16684
a243b558
JF
16685if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16686 if test -n "$ac_tool_prefix"; then
16687 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16688set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16690$as_echo_n "checking for $ac_word... " >&6; }
16691if ${ac_cv_path_PKG_CONFIG+:} false; then :
16692 $as_echo_n "(cached) " >&6
16693else
16694 case $PKG_CONFIG in
16695 [\\/]* | ?:[\\/]*)
16696 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16697 ;;
16698 *)
16699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16700for as_dir in $PATH
16701do
16702 IFS=$as_save_IFS
16703 test -z "$as_dir" && as_dir=.
16704 for ac_exec_ext in '' $ac_executable_extensions; do
16705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16706 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16708 break 2
16709 fi
16710done
16711 done
16712IFS=$as_save_IFS
16713
16714 ;;
16715esac
16716fi
16717PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16718if test -n "$PKG_CONFIG"; then
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16720$as_echo "$PKG_CONFIG" >&6; }
16721else
16722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16723$as_echo "no" >&6; }
16724fi
16725
16726
16727fi
16728if test -z "$ac_cv_path_PKG_CONFIG"; then
16729 ac_pt_PKG_CONFIG=$PKG_CONFIG
16730 # Extract the first word of "pkg-config", so it can be a program name with args.
16731set dummy pkg-config; ac_word=$2
16732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16733$as_echo_n "checking for $ac_word... " >&6; }
16734if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16735 $as_echo_n "(cached) " >&6
16736else
16737 case $ac_pt_PKG_CONFIG in
16738 [\\/]* | ?:[\\/]*)
16739 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16740 ;;
16741 *)
16742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16743for as_dir in $PATH
16744do
16745 IFS=$as_save_IFS
16746 test -z "$as_dir" && as_dir=.
16747 for ac_exec_ext in '' $ac_executable_extensions; do
16748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16749 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16751 break 2
16752 fi
16753done
16754 done
16755IFS=$as_save_IFS
16756
16757 ;;
16758esac
16759fi
16760ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16761if test -n "$ac_pt_PKG_CONFIG"; then
16762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16763$as_echo "$ac_pt_PKG_CONFIG" >&6; }
16764else
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16766$as_echo "no" >&6; }
16767fi
16768
16769 if test "x$ac_pt_PKG_CONFIG" = x; then
16770 PKG_CONFIG=""
16771 else
16772 case $cross_compiling:$ac_tool_warned in
16773yes:)
16774{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16775$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16776ac_tool_warned=yes ;;
16777esac
16778 PKG_CONFIG=$ac_pt_PKG_CONFIG
16779 fi
16780else
16781 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16782fi
16783
16784fi
16785if test -n "$PKG_CONFIG"; then
16786 _pkg_min_version=0.22
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16788$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16789 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16791$as_echo "yes" >&6; }
16792 else
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16794$as_echo "no" >&6; }
16795 PKG_CONFIG=""
16796 fi
16797fi
16798
a243b558
JF
16799# Extract the first word of "git", so it can be a program name with args.
16800set dummy git; ac_word=$2
16801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16802$as_echo_n "checking for $ac_word... " >&6; }
16803if ${ac_cv_path_GIT+:} false; then :
16804 $as_echo_n "(cached) " >&6
16805else
16806 case $GIT in
16807 [\\/]* | ?:[\\/]*)
16808 ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
16809 ;;
16810 *)
16811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16812for as_dir in $PATH
16813do
16814 IFS=$as_save_IFS
16815 test -z "$as_dir" && as_dir=.
16816 for ac_exec_ext in '' $ac_executable_extensions; do
16817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16818 ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
16819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16820 break 2
16821 fi
16822done
16823 done
16824IFS=$as_save_IFS
e9c9a47c 16825
a243b558
JF
16826 ;;
16827esac
16828fi
16829GIT=$ac_cv_path_GIT
16830if test -n "$GIT"; then
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
16832$as_echo "$GIT" >&6; }
16833else
16834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16835$as_echo "no" >&6; }
16836fi
e9c9a47c
DWT
16837
16838
a243b558
JF
16839# Extract the first word of "time", so it can be a program name with args.
16840set dummy time; ac_word=$2
632b71ea
DWT
16841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16842$as_echo_n "checking for $ac_word... " >&6; }
a243b558 16843if ${ac_cv_path_TIME+:} false; then :
632b71ea
DWT
16844 $as_echo_n "(cached) " >&6
16845else
a243b558
JF
16846 case $TIME in
16847 [\\/]* | ?:[\\/]*)
16848 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
16849 ;;
16850 *)
16851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
632b71ea
DWT
16852for as_dir in $PATH
16853do
16854 IFS=$as_save_IFS
16855 test -z "$as_dir" && as_dir=.
16856 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 16857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 16858 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
632b71ea
DWT
16859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16860 break 2
16861 fi
16862done
16863 done
16864IFS=$as_save_IFS
16865
a243b558
JF
16866 ;;
16867esac
632b71ea 16868fi
a243b558
JF
16869TIME=$ac_cv_path_TIME
16870if test -n "$TIME"; then
16871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
16872$as_echo "$TIME" >&6; }
632b71ea
DWT
16873else
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16875$as_echo "no" >&6; }
16876fi
16877
16878
a243b558
JF
16879
16880
16881
16882
16883
16884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 2.3" >&5
16885$as_echo_n "checking for bison >= 2.3... " >&6; }
16886 if test -z "$BISON"; then
16887 ac_path_BISON_found=false
16888 # Loop through the user's path and test for each of PROGNAME-LIST
16889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16890for as_dir in $PATH
16891do
16892 IFS=$as_save_IFS
16893 test -z "$as_dir" && as_dir=.
16894 for ac_prog in bison; do
16895 for ac_exec_ext in '' $ac_executable_extensions; do
16896 ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext"
16897 as_fn_executable_p "$ac_path_BISON" || continue
16898version=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'`
16899 if ${version:+false} :; then :
16900
16901else
16902 as_awk_strverscmp='
16903 # Use only awk features that work with 7th edition Unix awk (1978).
16904 # My, what an old awk you have, Mr. Solaris!
16905 END {
16906 while (length(v1) && length(v2)) {
16907 # Set d1 to be the next thing to compare from v1, and likewise for d2.
16908 # Normally this is a single character, but if v1 and v2 contain digits,
16909 # compare them as integers and fractions as strverscmp does.
16910 if (v1 ~ /^0-9/ && v2 ~ /^0-9/) {
16911 # Split v1 and v2 into their leading digit string components d1 and d2,
16912 # and advance v1 and v2 past the leading digit strings.
16913 for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue
16914 for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue
16915 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
16916 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
16917 if (d1 ~ /^0/) {
16918 if (d2 ~ /^0/) {
16919 # Compare two fractions.
16920 while (d1 ~ /^0/ && d2 ~ /^0/) {
16921 d1 = substr(d1, 2); len1--
16922 d2 = substr(d2, 2); len2--
16923 }
16924 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
16925 # The two components differ in length, and the common prefix
16926 # contains only leading zeros. Consider the longer to be less.
16927 d1 = -len1
16928 d2 = -len2
16929 } else {
16930 # Otherwise, compare as strings.
16931 d1 = "x" d1
16932 d2 = "x" d2
16933 }
16934 } else {
16935 # A fraction is less than an integer.
16936 exit 1
16937 }
16938 } else {
16939 if (d2 ~ /^0/) {
16940 # An integer is greater than a fraction.
16941 exit 2
16942 } else {
16943 # Compare two integers.
16944 d1 += 0
16945 d2 += 0
16946 }
16947 }
16948 } else {
16949 # The normal case, without worrying about digits.
16950 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
16951 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
16952 }
16953 if (d1 < d2) exit 1
16954 if (d1 > d2) exit 2
16955 }
16956 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
16957 # which mishandles some comparisons of empty strings to integers.
16958 if (length(v2)) exit 1
16959 if (length(v1)) exit 2
16960 }
16961'
16962as_arg_v1=$version
16963as_arg_v2=2.3
16964awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
16965case $? in #(
16966 1) :
16967 ;; #(
16968 0) :
16969 ac_cv_path_BISON=$ac_path_BISON ;; #(
16970 2) :
16971 ac_cv_path_BISON=$ac_path_BISON ;; #(
16972 *) :
16973 ;;
16974esac
16975fi
16976
16977 $ac_path_BISON_found && break 3
16978 done
16979 done
e9c9a47c 16980 done
a243b558
JF
16981IFS=$as_save_IFS
16982 if test -z "$ac_cv_path_BISON"; then
16983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16984$as_echo "no" >&6; }
16985 fi
16986else
16987 ac_cv_path_BISON=$BISON
632b71ea 16988fi
a243b558
JF
16989
16990
16991 if true; then :
16992
16993 BISON=$ac_cv_path_BISON
16994
16995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
16996$as_echo "$BISON" >&6; }
16997
47aaa820 16998else
a243b558
JF
16999 if true; then :
17000
17001 as_fn_error $? "You need bison 2.3 or greater" "$LINENO" 5
17002
47aaa820 17003else
a243b558
JF
17004
17005 BISON=:
17006
17007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17008$as_echo "no" >&6; }
17009
17010fi
17011fi
17012
17013
17014
17015
17016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5
17017$as_echo_n "checking for flex >= 2.5.33... " >&6; }
17018 if test -z "$FLEX"; then
17019 ac_path_FLEX_found=false
17020 # Loop through the user's path and test for each of PROGNAME-LIST
17021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47aaa820
DWT
17022for as_dir in $PATH
17023do
17024 IFS=$as_save_IFS
17025 test -z "$as_dir" && as_dir=.
a243b558 17026 for ac_prog in flex; do
47aaa820 17027 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
17028 ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext"
17029 as_fn_executable_p "$ac_path_FLEX" || continue
17030version=`$ac_path_FLEX --version | $SED -e '1 s/^[^0-9.]* \([0-9.]*\).*$/\1/p;d'`
17031 if ${version:+false} :; then :
9c60689e 17032
47aaa820 17033else
a243b558
JF
17034 as_arg_v1=$version
17035as_arg_v2=2.5.33
17036awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
17037case $? in #(
17038 1) :
17039 ;; #(
17040 0) :
17041 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
17042 2) :
17043 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
17044 *) :
17045 ;;
17046esac
17047fi
17048
17049 $ac_path_FLEX_found && break 3
17050 done
17051 done
17052 done
17053IFS=$as_save_IFS
17054 if test -z "$ac_cv_path_FLEX"; then
17055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47aaa820 17056$as_echo "no" >&6; }
a243b558
JF
17057 fi
17058else
17059 ac_cv_path_FLEX=$FLEX
9c60689e
DWT
17060fi
17061
17062
a243b558 17063 if true; then :
e9c9a47c 17064
a243b558 17065 FLEX=$ac_cv_path_FLEX
e9c9a47c 17066
a243b558
JF
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
17068$as_echo "$FLEX" >&6; }
9c60689e 17069
632b71ea 17070else
a243b558 17071 if true; then :
e9c9a47c 17072
a243b558 17073 as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5
e9c9a47c 17074
e9c9a47c 17075else
a243b558
JF
17076
17077 FLEX=:
17078
17079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17080$as_echo "no" >&6; }
9c60689e 17081
632b71ea 17082fi
a243b558
JF
17083fi
17084
17085
17086
17087
17088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5
17089$as_echo_n "checking for gperf >= 3.0.3... " >&6; }
17090 if test -z "$GPERF"; then
17091 ac_path_GPERF_found=false
17092 # Loop through the user's path and test for each of PROGNAME-LIST
17093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17094for as_dir in $PATH
17095do
17096 IFS=$as_save_IFS
17097 test -z "$as_dir" && as_dir=.
17098 for ac_prog in gperf; do
17099 for ac_exec_ext in '' $ac_executable_extensions; do
17100 ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext"
17101 as_fn_executable_p "$ac_path_GPERF" || continue
17102version=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
17103 if ${version:+false} :; then :
17104
e9c9a47c 17105else
a243b558
JF
17106 as_arg_v1=$version
17107as_arg_v2=3.0.3
17108awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
17109case $? in #(
17110 1) :
17111 ;; #(
17112 0) :
17113 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
17114 2) :
17115 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
17116 *) :
17117 ;;
17118esac
632b71ea 17119fi
a243b558
JF
17120
17121 $ac_path_GPERF_found && break 3
17122 done
17123 done
17124 done
17125IFS=$as_save_IFS
17126 if test -z "$ac_cv_path_GPERF"; then
17127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17128$as_echo "no" >&6; }
17129 fi
47aaa820 17130else
a243b558
JF
17131 ac_cv_path_GPERF=$GPERF
17132fi
9c60689e
DWT
17133
17134
a243b558 17135 if true; then :
9c60689e 17136
a243b558 17137 GPERF=$ac_cv_path_GPERF
9c60689e 17138
a243b558
JF
17139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
17140$as_echo "$GPERF" >&6; }
9c60689e 17141
47aaa820 17142else
a243b558 17143 if true; then :
9c60689e 17144
a243b558
JF
17145 as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5
17146
17147else
17148
17149 GPERF=:
17150
17151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17152$as_echo "no" >&6; }
9c60689e 17153
47aaa820 17154fi
47aaa820 17155fi
a243b558
JF
17156
17157
17158
17159
17160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar gtar gnutar >= 1.19" >&5
17161$as_echo_n "checking for tar gtar gnutar >= 1.19... " >&6; }
17162 if test -z "$GNUTAR"; then
17163 ac_path_GNUTAR_found=false
17164 # Loop through the user's path and test for each of PROGNAME-LIST
17165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17166for as_dir in $PATH
17167do
17168 IFS=$as_save_IFS
17169 test -z "$as_dir" && as_dir=.
17170 for ac_prog in tar gtar gnutar; do
17171 for ac_exec_ext in '' $ac_executable_extensions; do
17172 ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext"
17173 as_fn_executable_p "$ac_path_GNUTAR" || continue
17174version=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'`
17175 if ${version:+false} :; then :
17176
17177else
17178 as_arg_v1=$version
17179as_arg_v2=1.19
17180awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
17181case $? in #(
17182 1) :
17183 ;; #(
17184 0) :
17185 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
17186 2) :
17187 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
17188 *) :
17189 ;;
17190esac
790e5246 17191fi
a243b558
JF
17192
17193 $ac_path_GNUTAR_found && break 3
17194 done
17195 done
17196 done
17197IFS=$as_save_IFS
17198 if test -z "$ac_cv_path_GNUTAR"; then
17199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17200$as_echo "no" >&6; }
632b71ea 17201 fi
632b71ea 17202else
a243b558 17203 ac_cv_path_GNUTAR=$GNUTAR
632b71ea 17204fi
66170b30 17205
66170b30 17206
a243b558 17207 if true; then :
66170b30 17208
a243b558 17209 GNUTAR=$ac_cv_path_GNUTAR
66170b30 17210
a243b558
JF
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
17212$as_echo "$GNUTAR" >&6; }
66170b30 17213
a243b558
JF
17214else
17215 if true; then :
66170b30 17216
a243b558 17217 as_fn_error $? "You need tar gtar gnutar 1.19 or greater" "$LINENO" 5
66170b30 17218
66170b30 17219else
66170b30 17220
a243b558 17221 GNUTAR=:
66170b30 17222
a243b558
JF
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17224$as_echo "no" >&6; }
66170b30 17225
a243b558
JF
17226fi
17227fi
66170b30
JF
17228
17229
9228a43a
JF
17230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking bison for %code{}" >&5
17231$as_echo_n "checking bison for %code{}... " >&6; }
17232echo '%code{}%%_:' >conftest.y
17233if $BISON conftest.y -o/dev/null 2>/dev/null; then
17234
17235 for element in Bison24; do
17236 haveit=
17237 for x in $CY_FILTERS; do
17238
17239 acl_save_prefix="$prefix"
17240 prefix="$acl_final_prefix"
17241 acl_save_exec_prefix="$exec_prefix"
17242 exec_prefix="$acl_final_exec_prefix"
17243 eval x=\"$x\"
17244 exec_prefix="$acl_save_exec_prefix"
17245 prefix="$acl_save_prefix"
17246
17247 if test "X$x" = "X$element"; then
17248 haveit=yes
17249 break
17250 fi
17251 done
17252 if test -z "$haveit"; then
17253 CY_FILTERS="${CY_FILTERS}${CY_FILTERS:+ }$element"
17254 fi
17255 done
17256
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17258$as_echo "yes" >&6; }
17259else
17260
17261 for element in Bison23; do
17262 haveit=
17263 for x in $CY_FILTERS; do
17264
17265 acl_save_prefix="$prefix"
17266 prefix="$acl_final_prefix"
17267 acl_save_exec_prefix="$exec_prefix"
17268 exec_prefix="$acl_final_exec_prefix"
17269 eval x=\"$x\"
17270 exec_prefix="$acl_save_exec_prefix"
17271 prefix="$acl_save_prefix"
17272
17273 if test "X$x" = "X$element"; then
17274 haveit=yes
17275 break
17276 fi
17277 done
17278 if test -z "$haveit"; then
17279 CY_FILTERS="${CY_FILTERS}${CY_FILTERS:+ }$element"
17280 fi
17281 done
17282
17283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17284$as_echo "no" >&6; }
17285fi
17286
17287rm -f conftest.y
17288
17289
66170b30
JF
17290
17291
17292
17293
17294
17295
17296
17297
e9c9a47c
DWT
17298ac_ext=c
17299ac_cpp='$CPP $CPPFLAGS'
17300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17302ac_compiler_gnu=$ac_cv_c_compiler_gnu
632b71ea 17303
66170b30
JF
17304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
17305$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
17306if ${ac_cv_cflags_warn_all+:} false; then :
17307 $as_echo_n "(cached) " >&6
17308else
17309 ac_cv_cflags_warn_all="no, unknown"
17310ac_save_CFLAGS="$CFLAGS"
17311for 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" #
17312do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
17313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17314/* end confdefs.h. */
17315
17316int
17317main ()
17318{
17319
17320 ;
17321 return 0;
17322}
17323_ACEOF
17324if ac_fn_c_try_compile "$LINENO"; then :
17325 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
17326fi
17327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17328done
17329CFLAGS="$ac_save_CFLAGS"
17330
17331fi
17332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
17333$as_echo "$ac_cv_cflags_warn_all" >&6; }
17334
83c6fec8 17335
66170b30
JF
17336case ".$ac_cv_cflags_warn_all" in
17337 .ok|.ok,*) ;;
17338 .|.no|.no,*) ;;
17339 *) if ${CFLAGS+:} false; then :
17340 case " $CFLAGS " in
17341 *" $ac_cv_cflags_warn_all "*)
17342 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
17343 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
17344 ac_status=$?
17345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17346 test $ac_status = 0; }
17347 ;;
17348 *)
17349 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
17350 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
17351 ac_status=$?
17352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17353 test $ac_status = 0; }
17354 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
17355 ;;
17356 esac
17357else
17358 CFLAGS="$ac_cv_cflags_warn_all"
17359fi
17360 ;;
17361esac
17362
b816329d
JF
17363ac_ext=cpp
17364ac_cpp='$CXXCPP $CPPFLAGS'
17365ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17366ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17367ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17368
9c60689e 17369
66170b30
JF
17370ac_ext=cpp
17371ac_cpp='$CXXCPP $CPPFLAGS'
17372ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17373ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17374ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1504c9b8 17375
66170b30
JF
17376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
17377$as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
17378if ${ac_cv_cxxflags_warn_all+:} false; then :
17379 $as_echo_n "(cached) " >&6
17380else
17381 ac_cv_cxxflags_warn_all="no, unknown"
17382ac_save_CXXFLAGS="$CXXFLAGS"
17383for 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" #
17384do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
17385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17386/* end confdefs.h. */
1504c9b8 17387
66170b30
JF
17388int
17389main ()
17390{
1504c9b8 17391
66170b30
JF
17392 ;
17393 return 0;
17394}
17395_ACEOF
17396if ac_fn_cxx_try_compile "$LINENO"; then :
17397 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
17398fi
17399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17400done
17401CXXFLAGS="$ac_save_CXXFLAGS"
1504c9b8 17402
66170b30
JF
17403fi
17404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
17405$as_echo "$ac_cv_cxxflags_warn_all" >&6; }
17406
83c6fec8 17407
66170b30
JF
17408case ".$ac_cv_cxxflags_warn_all" in
17409 .ok|.ok,*) ;;
17410 .|.no|.no,*) ;;
17411 *) if ${CXXFLAGS+:} false; then :
17412 case " $CXXFLAGS " in
17413 *" $ac_cv_cxxflags_warn_all "*)
17414 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
17415 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
17416 ac_status=$?
17417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17418 test $ac_status = 0; }
17419 ;;
17420 *)
17421 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
17422 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
17423 ac_status=$?
17424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17425 test $ac_status = 0; }
17426 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
17427 ;;
17428 esac
17429else
17430 CXXFLAGS="$ac_cv_cxxflags_warn_all"
17431fi
17432 ;;
17433esac
17434
17435ac_ext=cpp
17436ac_cpp='$CXXCPP $CPPFLAGS'
17437ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17438ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17439ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17440
17441
babf7fe8
JF
17442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
17443$as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
17444if ${ac_cv_cxxflags_warn_all+:} false; then :
17445 $as_echo_n "(cached) " >&6
17446else
17447 ac_cv_cxxflags_warn_all="no, unknown"
17448ac_save_CXXFLAGS="$CXXFLAGS"
17449for 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" #
17450do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
17451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17452/* end confdefs.h. */
17453
17454int
17455main ()
17456{
17457
17458 ;
17459 return 0;
17460}
17461_ACEOF
17462if ac_fn_cxx_try_compile "$LINENO"; then :
17463 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
17464fi
17465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17466done
17467CXXFLAGS="$ac_save_CXXFLAGS"
17468
17469fi
17470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
17471$as_echo "$ac_cv_cxxflags_warn_all" >&6; }
17472
83c6fec8 17473
babf7fe8
JF
17474case ".$ac_cv_cxxflags_warn_all" in
17475 .ok|.ok,*) ;;
17476 .|.no|.no,*) ;;
17477 *) if ${CXXFLAGS+:} false; then :
17478 case " $CXXFLAGS " in
17479 *" $ac_cv_cxxflags_warn_all "*)
17480 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
17481 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
17482 ac_status=$?
17483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17484 test $ac_status = 0; }
17485 ;;
17486 *)
17487 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
17488 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
17489 ac_status=$?
17490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17491 test $ac_status = 0; }
17492 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
17493 ;;
17494 esac
17495else
17496 CXXFLAGS="$ac_cv_cxxflags_warn_all"
17497fi
17498 ;;
17499esac
17500
66170b30
JF
17501
17502
66170b30 17503
66170b30 17504
c10a2228
JF
17505 ac_ext=c
17506ac_cpp='$CPP $CPPFLAGS'
17507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17509ac_compiler_gnu=$ac_cv_c_compiler_gnu
17510
babf7fe8
JF
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Werror" >&5
17512$as_echo_n "checking for cc -Werror... " >&6; }
c10a2228
JF
17513
17514 cy_save=$CFLAGS
17515
babf7fe8 17516 for element in -Werror; do
c10a2228
JF
17517 haveit=
17518 for x in $CFLAGS; do
17519
17520 acl_save_prefix="$prefix"
17521 prefix="$acl_final_prefix"
17522 acl_save_exec_prefix="$exec_prefix"
17523 exec_prefix="$acl_final_exec_prefix"
17524 eval x=\"$x\"
17525 exec_prefix="$acl_save_exec_prefix"
17526 prefix="$acl_save_prefix"
17527
17528 if test "X$x" = "X$element"; then
17529 haveit=yes
17530 break
17531 fi
17532 done
17533 if test -z "$haveit"; then
17534 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17535 fi
17536 done
17537
17538
17539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17540/* end confdefs.h. */
17541
17542_ACEOF
17543if ac_fn_c_try_compile "$LINENO"; then :
17544 cy_good=1
17545else
17546 cy_good=0
17547fi
17548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17549
17550 CFLAGS=$cy_save
17551 if test "x$cy_good" = x1; then :
17552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17553$as_echo "yes" >&6; }
17554
babf7fe8 17555 for element in -Werror; do
c10a2228
JF
17556 haveit=
17557 for x in $CFLAGS; do
17558
17559 acl_save_prefix="$prefix"
17560 prefix="$acl_final_prefix"
17561 acl_save_exec_prefix="$exec_prefix"
17562 exec_prefix="$acl_final_exec_prefix"
17563 eval x=\"$x\"
17564 exec_prefix="$acl_save_exec_prefix"
17565 prefix="$acl_save_prefix"
17566
17567 if test "X$x" = "X$element"; then
17568 haveit=yes
17569 break
17570 fi
17571 done
17572 if test -z "$haveit"; then
17573 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17574 fi
17575 done
17576
17577
17578else
17579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17580$as_echo "no" >&6; }
17581fi
17582
17583 ac_ext=cpp
17584ac_cpp='$CXXCPP $CPPFLAGS'
17585ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17586ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17587ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17588
17589
17590
17591 ac_ext=cpp
17592ac_cpp='$CXXCPP $CPPFLAGS'
17593ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17594ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17595ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17596
babf7fe8
JF
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Werror" >&5
17598$as_echo_n "checking for c++ -Werror... " >&6; }
c10a2228
JF
17599
17600 cy_save=$CXXFLAGS
17601
babf7fe8 17602 for element in -Werror; do
c10a2228
JF
17603 haveit=
17604 for x in $CXXFLAGS; do
17605
17606 acl_save_prefix="$prefix"
17607 prefix="$acl_final_prefix"
17608 acl_save_exec_prefix="$exec_prefix"
17609 exec_prefix="$acl_final_exec_prefix"
17610 eval x=\"$x\"
17611 exec_prefix="$acl_save_exec_prefix"
17612 prefix="$acl_save_prefix"
17613
17614 if test "X$x" = "X$element"; then
17615 haveit=yes
17616 break
17617 fi
17618 done
17619 if test -z "$haveit"; then
17620 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17621 fi
17622 done
17623
17624
17625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17626/* end confdefs.h. */
17627
17628_ACEOF
17629if ac_fn_cxx_try_compile "$LINENO"; then :
17630 cy_good=1
17631else
17632 cy_good=0
17633fi
17634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17635
17636 CXXFLAGS=$cy_save
17637 if test "x$cy_good" = x1; then :
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17639$as_echo "yes" >&6; }
17640
babf7fe8 17641 for element in -Werror; do
c10a2228
JF
17642 haveit=
17643 for x in $CXXFLAGS; do
17644
17645 acl_save_prefix="$prefix"
17646 prefix="$acl_final_prefix"
17647 acl_save_exec_prefix="$exec_prefix"
17648 exec_prefix="$acl_final_exec_prefix"
17649 eval x=\"$x\"
17650 exec_prefix="$acl_save_exec_prefix"
17651 prefix="$acl_save_prefix"
17652
17653 if test "X$x" = "X$element"; then
17654 haveit=yes
17655 break
17656 fi
17657 done
17658 if test -z "$haveit"; then
17659 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17660 fi
17661 done
17662
17663
17664else
17665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17666$as_echo "no" >&6; }
17667fi
17668
17669 ac_ext=cpp
17670ac_cpp='$CXXCPP $CPPFLAGS'
17671ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17672ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17673ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17674
17675
17676
17677 ac_ext=mm
17678ac_cpp='$OBJCXXCPP $CPPFLAGS'
17679ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17680ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17681ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17682
babf7fe8
JF
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Werror" >&5
17684$as_echo_n "checking for c++ -ObjC -Werror... " >&6; }
c10a2228
JF
17685
17686 cy_save=$OBJCXXFLAGS
17687
babf7fe8 17688 for element in -Werror; do
c10a2228
JF
17689 haveit=
17690 for x in $OBJCXXFLAGS; do
17691
17692 acl_save_prefix="$prefix"
17693 prefix="$acl_final_prefix"
17694 acl_save_exec_prefix="$exec_prefix"
17695 exec_prefix="$acl_final_exec_prefix"
17696 eval x=\"$x\"
17697 exec_prefix="$acl_save_exec_prefix"
17698 prefix="$acl_save_prefix"
17699
17700 if test "X$x" = "X$element"; then
17701 haveit=yes
17702 break
17703 fi
17704 done
17705 if test -z "$haveit"; then
17706 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17707 fi
17708 done
17709
17710
17711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17712/* end confdefs.h. */
17713
17714_ACEOF
17715if ac_fn_objcxx_try_compile "$LINENO"; then :
17716 cy_good=1
17717else
17718 cy_good=0
17719fi
17720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17721
17722 OBJCXXFLAGS=$cy_save
17723 if test "x$cy_good" = x1; then :
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17725$as_echo "yes" >&6; }
17726
babf7fe8 17727 for element in -Werror; do
c10a2228
JF
17728 haveit=
17729 for x in $OBJCXXFLAGS; do
17730
17731 acl_save_prefix="$prefix"
17732 prefix="$acl_final_prefix"
17733 acl_save_exec_prefix="$exec_prefix"
17734 exec_prefix="$acl_final_exec_prefix"
17735 eval x=\"$x\"
17736 exec_prefix="$acl_save_exec_prefix"
17737 prefix="$acl_save_prefix"
17738
17739 if test "X$x" = "X$element"; then
17740 haveit=yes
17741 break
17742 fi
17743 done
17744 if test -z "$haveit"; then
17745 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17746 fi
17747 done
17748
17749
17750else
17751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17752$as_echo "no" >&6; }
17753fi
17754
17755 ac_ext=cpp
17756ac_cpp='$CXXCPP $CPPFLAGS'
17757ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17758ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17759ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17760
17761
17762
17763
17764
17765
17766 ac_ext=c
17767ac_cpp='$CPP $CPPFLAGS'
17768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17770ac_compiler_gnu=$ac_cv_c_compiler_gnu
17771
babf7fe8
JF
17772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-deprecated-declarations" >&5
17773$as_echo_n "checking for cc -Wno-deprecated-declarations... " >&6; }
c10a2228
JF
17774
17775 cy_save=$CFLAGS
17776
babf7fe8 17777 for element in -Wno-deprecated-declarations; do
c10a2228
JF
17778 haveit=
17779 for x in $CFLAGS; do
17780
17781 acl_save_prefix="$prefix"
17782 prefix="$acl_final_prefix"
17783 acl_save_exec_prefix="$exec_prefix"
17784 exec_prefix="$acl_final_exec_prefix"
17785 eval x=\"$x\"
17786 exec_prefix="$acl_save_exec_prefix"
17787 prefix="$acl_save_prefix"
17788
17789 if test "X$x" = "X$element"; then
17790 haveit=yes
17791 break
17792 fi
17793 done
17794 if test -z "$haveit"; then
17795 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17796 fi
17797 done
17798
17799
17800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17801/* end confdefs.h. */
17802
17803_ACEOF
17804if ac_fn_c_try_compile "$LINENO"; then :
17805 cy_good=1
17806else
17807 cy_good=0
17808fi
17809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17810
17811 CFLAGS=$cy_save
17812 if test "x$cy_good" = x1; then :
17813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17814$as_echo "yes" >&6; }
17815
babf7fe8 17816 for element in -Wno-deprecated-declarations; do
c10a2228
JF
17817 haveit=
17818 for x in $CFLAGS; do
17819
17820 acl_save_prefix="$prefix"
17821 prefix="$acl_final_prefix"
17822 acl_save_exec_prefix="$exec_prefix"
17823 exec_prefix="$acl_final_exec_prefix"
17824 eval x=\"$x\"
17825 exec_prefix="$acl_save_exec_prefix"
17826 prefix="$acl_save_prefix"
17827
17828 if test "X$x" = "X$element"; then
17829 haveit=yes
17830 break
17831 fi
17832 done
17833 if test -z "$haveit"; then
17834 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
17835 fi
17836 done
17837
17838
17839else
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17841$as_echo "no" >&6; }
17842fi
17843
17844 ac_ext=cpp
17845ac_cpp='$CXXCPP $CPPFLAGS'
17846ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17847ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17848ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17849
17850
17851
17852 ac_ext=cpp
17853ac_cpp='$CXXCPP $CPPFLAGS'
17854ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17855ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17856ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17857
babf7fe8
JF
17858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-deprecated-declarations" >&5
17859$as_echo_n "checking for c++ -Wno-deprecated-declarations... " >&6; }
c10a2228
JF
17860
17861 cy_save=$CXXFLAGS
17862
babf7fe8 17863 for element in -Wno-deprecated-declarations; do
c10a2228
JF
17864 haveit=
17865 for x in $CXXFLAGS; do
17866
17867 acl_save_prefix="$prefix"
17868 prefix="$acl_final_prefix"
17869 acl_save_exec_prefix="$exec_prefix"
17870 exec_prefix="$acl_final_exec_prefix"
17871 eval x=\"$x\"
17872 exec_prefix="$acl_save_exec_prefix"
17873 prefix="$acl_save_prefix"
17874
17875 if test "X$x" = "X$element"; then
17876 haveit=yes
17877 break
17878 fi
17879 done
17880 if test -z "$haveit"; then
17881 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17882 fi
17883 done
17884
17885
17886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17887/* end confdefs.h. */
17888
17889_ACEOF
17890if ac_fn_cxx_try_compile "$LINENO"; then :
17891 cy_good=1
17892else
17893 cy_good=0
17894fi
17895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17896
17897 CXXFLAGS=$cy_save
17898 if test "x$cy_good" = x1; then :
17899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17900$as_echo "yes" >&6; }
17901
babf7fe8 17902 for element in -Wno-deprecated-declarations; do
c10a2228
JF
17903 haveit=
17904 for x in $CXXFLAGS; do
17905
17906 acl_save_prefix="$prefix"
17907 prefix="$acl_final_prefix"
17908 acl_save_exec_prefix="$exec_prefix"
17909 exec_prefix="$acl_final_exec_prefix"
17910 eval x=\"$x\"
17911 exec_prefix="$acl_save_exec_prefix"
17912 prefix="$acl_save_prefix"
17913
17914 if test "X$x" = "X$element"; then
17915 haveit=yes
17916 break
17917 fi
17918 done
17919 if test -z "$haveit"; then
17920 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
17921 fi
17922 done
17923
17924
17925else
17926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17927$as_echo "no" >&6; }
17928fi
17929
17930 ac_ext=cpp
17931ac_cpp='$CXXCPP $CPPFLAGS'
17932ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17933ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17934ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17935
17936
17937
17938 ac_ext=mm
17939ac_cpp='$OBJCXXCPP $CPPFLAGS'
17940ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17941ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17942ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
17943
babf7fe8
JF
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-deprecated-declarations" >&5
17945$as_echo_n "checking for c++ -ObjC -Wno-deprecated-declarations... " >&6; }
c10a2228
JF
17946
17947 cy_save=$OBJCXXFLAGS
17948
babf7fe8 17949 for element in -Wno-deprecated-declarations; do
c10a2228
JF
17950 haveit=
17951 for x in $OBJCXXFLAGS; do
17952
17953 acl_save_prefix="$prefix"
17954 prefix="$acl_final_prefix"
17955 acl_save_exec_prefix="$exec_prefix"
17956 exec_prefix="$acl_final_exec_prefix"
17957 eval x=\"$x\"
17958 exec_prefix="$acl_save_exec_prefix"
17959 prefix="$acl_save_prefix"
17960
17961 if test "X$x" = "X$element"; then
17962 haveit=yes
17963 break
17964 fi
17965 done
17966 if test -z "$haveit"; then
17967 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
17968 fi
17969 done
17970
17971
17972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17973/* end confdefs.h. */
17974
17975_ACEOF
17976if ac_fn_objcxx_try_compile "$LINENO"; then :
17977 cy_good=1
17978else
17979 cy_good=0
17980fi
17981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17982
17983 OBJCXXFLAGS=$cy_save
17984 if test "x$cy_good" = x1; then :
17985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17986$as_echo "yes" >&6; }
17987
babf7fe8 17988 for element in -Wno-deprecated-declarations; do
c10a2228
JF
17989 haveit=
17990 for x in $OBJCXXFLAGS; do
17991
17992 acl_save_prefix="$prefix"
17993 prefix="$acl_final_prefix"
17994 acl_save_exec_prefix="$exec_prefix"
17995 exec_prefix="$acl_final_exec_prefix"
17996 eval x=\"$x\"
17997 exec_prefix="$acl_save_exec_prefix"
17998 prefix="$acl_save_prefix"
17999
18000 if test "X$x" = "X$element"; then
18001 haveit=yes
18002 break
18003 fi
18004 done
18005 if test -z "$haveit"; then
18006 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18007 fi
18008 done
18009
18010
18011else
18012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18013$as_echo "no" >&6; }
18014fi
18015
18016 ac_ext=cpp
18017ac_cpp='$CXXCPP $CPPFLAGS'
18018ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18019ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18020ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18021
18022
18023
18024
18025
babf7fe8 18026
c10a2228
JF
18027 ac_ext=c
18028ac_cpp='$CPP $CPPFLAGS'
18029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18031ac_compiler_gnu=$ac_cv_c_compiler_gnu
18032
babf7fe8
JF
18033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-dangling-else" >&5
18034$as_echo_n "checking for cc -Wno-dangling-else... " >&6; }
c10a2228
JF
18035
18036 cy_save=$CFLAGS
18037
babf7fe8 18038 for element in -Wno-dangling-else; do
c10a2228
JF
18039 haveit=
18040 for x in $CFLAGS; do
18041
18042 acl_save_prefix="$prefix"
18043 prefix="$acl_final_prefix"
18044 acl_save_exec_prefix="$exec_prefix"
18045 exec_prefix="$acl_final_exec_prefix"
18046 eval x=\"$x\"
18047 exec_prefix="$acl_save_exec_prefix"
18048 prefix="$acl_save_prefix"
18049
18050 if test "X$x" = "X$element"; then
18051 haveit=yes
18052 break
18053 fi
18054 done
18055 if test -z "$haveit"; then
18056 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18057 fi
18058 done
18059
18060
18061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18062/* end confdefs.h. */
18063
18064_ACEOF
18065if ac_fn_c_try_compile "$LINENO"; then :
18066 cy_good=1
18067else
18068 cy_good=0
18069fi
18070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18071
18072 CFLAGS=$cy_save
18073 if test "x$cy_good" = x1; then :
18074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18075$as_echo "yes" >&6; }
18076
babf7fe8 18077 for element in -Wno-dangling-else; do
c10a2228
JF
18078 haveit=
18079 for x in $CFLAGS; do
18080
18081 acl_save_prefix="$prefix"
18082 prefix="$acl_final_prefix"
18083 acl_save_exec_prefix="$exec_prefix"
18084 exec_prefix="$acl_final_exec_prefix"
18085 eval x=\"$x\"
18086 exec_prefix="$acl_save_exec_prefix"
18087 prefix="$acl_save_prefix"
18088
18089 if test "X$x" = "X$element"; then
18090 haveit=yes
18091 break
18092 fi
18093 done
18094 if test -z "$haveit"; then
18095 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18096 fi
18097 done
18098
18099
18100else
18101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18102$as_echo "no" >&6; }
18103fi
18104
18105 ac_ext=cpp
18106ac_cpp='$CXXCPP $CPPFLAGS'
18107ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18108ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18109ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18110
18111
18112
18113 ac_ext=cpp
18114ac_cpp='$CXXCPP $CPPFLAGS'
18115ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18116ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18117ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18118
babf7fe8
JF
18119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-dangling-else" >&5
18120$as_echo_n "checking for c++ -Wno-dangling-else... " >&6; }
c10a2228
JF
18121
18122 cy_save=$CXXFLAGS
18123
babf7fe8 18124 for element in -Wno-dangling-else; do
c10a2228
JF
18125 haveit=
18126 for x in $CXXFLAGS; do
18127
18128 acl_save_prefix="$prefix"
18129 prefix="$acl_final_prefix"
18130 acl_save_exec_prefix="$exec_prefix"
18131 exec_prefix="$acl_final_exec_prefix"
18132 eval x=\"$x\"
18133 exec_prefix="$acl_save_exec_prefix"
18134 prefix="$acl_save_prefix"
18135
18136 if test "X$x" = "X$element"; then
18137 haveit=yes
18138 break
18139 fi
18140 done
18141 if test -z "$haveit"; then
18142 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18143 fi
18144 done
18145
18146
18147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18148/* end confdefs.h. */
18149
18150_ACEOF
18151if ac_fn_cxx_try_compile "$LINENO"; then :
18152 cy_good=1
18153else
18154 cy_good=0
18155fi
18156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18157
18158 CXXFLAGS=$cy_save
18159 if test "x$cy_good" = x1; then :
18160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18161$as_echo "yes" >&6; }
18162
babf7fe8 18163 for element in -Wno-dangling-else; do
c10a2228
JF
18164 haveit=
18165 for x in $CXXFLAGS; do
18166
18167 acl_save_prefix="$prefix"
18168 prefix="$acl_final_prefix"
18169 acl_save_exec_prefix="$exec_prefix"
18170 exec_prefix="$acl_final_exec_prefix"
18171 eval x=\"$x\"
18172 exec_prefix="$acl_save_exec_prefix"
18173 prefix="$acl_save_prefix"
18174
18175 if test "X$x" = "X$element"; then
18176 haveit=yes
18177 break
18178 fi
18179 done
18180 if test -z "$haveit"; then
18181 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18182 fi
18183 done
18184
18185
18186else
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18188$as_echo "no" >&6; }
18189fi
18190
18191 ac_ext=cpp
18192ac_cpp='$CXXCPP $CPPFLAGS'
18193ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18194ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18195ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18196
18197
18198
18199 ac_ext=mm
18200ac_cpp='$OBJCXXCPP $CPPFLAGS'
18201ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18202ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18203ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18204
babf7fe8
JF
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-dangling-else" >&5
18206$as_echo_n "checking for c++ -ObjC -Wno-dangling-else... " >&6; }
c10a2228
JF
18207
18208 cy_save=$OBJCXXFLAGS
18209
babf7fe8 18210 for element in -Wno-dangling-else; do
c10a2228
JF
18211 haveit=
18212 for x in $OBJCXXFLAGS; do
18213
18214 acl_save_prefix="$prefix"
18215 prefix="$acl_final_prefix"
18216 acl_save_exec_prefix="$exec_prefix"
18217 exec_prefix="$acl_final_exec_prefix"
18218 eval x=\"$x\"
18219 exec_prefix="$acl_save_exec_prefix"
18220 prefix="$acl_save_prefix"
18221
18222 if test "X$x" = "X$element"; then
18223 haveit=yes
18224 break
18225 fi
18226 done
18227 if test -z "$haveit"; then
18228 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18229 fi
18230 done
18231
18232
18233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18234/* end confdefs.h. */
18235
18236_ACEOF
18237if ac_fn_objcxx_try_compile "$LINENO"; then :
18238 cy_good=1
18239else
18240 cy_good=0
18241fi
18242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18243
18244 OBJCXXFLAGS=$cy_save
18245 if test "x$cy_good" = x1; then :
18246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18247$as_echo "yes" >&6; }
18248
babf7fe8 18249 for element in -Wno-dangling-else; do
c10a2228
JF
18250 haveit=
18251 for x in $OBJCXXFLAGS; do
18252
18253 acl_save_prefix="$prefix"
18254 prefix="$acl_final_prefix"
18255 acl_save_exec_prefix="$exec_prefix"
18256 exec_prefix="$acl_final_exec_prefix"
18257 eval x=\"$x\"
18258 exec_prefix="$acl_save_exec_prefix"
18259 prefix="$acl_save_prefix"
18260
18261 if test "X$x" = "X$element"; then
18262 haveit=yes
18263 break
18264 fi
18265 done
18266 if test -z "$haveit"; then
18267 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
18268 fi
18269 done
18270
18271
18272else
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18274$as_echo "no" >&6; }
18275fi
18276
18277 ac_ext=cpp
18278ac_cpp='$CXXCPP $CPPFLAGS'
18279ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18280ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18281ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18282
18283
18284
18285
18286
18287 ac_ext=c
18288ac_cpp='$CPP $CPPFLAGS'
18289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18291ac_compiler_gnu=$ac_cv_c_compiler_gnu
18292
babf7fe8
JF
18293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-overloaded-virtual" >&5
18294$as_echo_n "checking for cc -Wno-overloaded-virtual... " >&6; }
c10a2228
JF
18295
18296 cy_save=$CFLAGS
18297
babf7fe8 18298 for element in -Wno-overloaded-virtual; do
1504c9b8 18299 haveit=
c10a2228 18300 for x in $CFLAGS; do
1504c9b8
DWT
18301
18302 acl_save_prefix="$prefix"
18303 prefix="$acl_final_prefix"
18304 acl_save_exec_prefix="$exec_prefix"
18305 exec_prefix="$acl_final_exec_prefix"
18306 eval x=\"$x\"
18307 exec_prefix="$acl_save_exec_prefix"
18308 prefix="$acl_save_prefix"
18309
18310 if test "X$x" = "X$element"; then
18311 haveit=yes
18312 break
18313 fi
18314 done
18315 if test -z "$haveit"; then
c10a2228 18316 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
1504c9b8
DWT
18317 fi
18318 done
18319
66170b30
JF
18320
18321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1504c9b8
DWT
18322/* end confdefs.h. */
18323
66170b30 18324_ACEOF
c10a2228 18325if ac_fn_c_try_compile "$LINENO"; then :
66170b30
JF
18326 cy_good=1
18327else
18328 cy_good=0
18329fi
18330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18331
c10a2228 18332 CFLAGS=$cy_save
66170b30
JF
18333 if test "x$cy_good" = x1; then :
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18335$as_echo "yes" >&6; }
18336
babf7fe8 18337 for element in -Wno-overloaded-virtual; do
66170b30
JF
18338 haveit=
18339 for x in $CFLAGS; do
18340
18341 acl_save_prefix="$prefix"
18342 prefix="$acl_final_prefix"
18343 acl_save_exec_prefix="$exec_prefix"
18344 exec_prefix="$acl_final_exec_prefix"
18345 eval x=\"$x\"
18346 exec_prefix="$acl_save_exec_prefix"
18347 prefix="$acl_save_prefix"
18348
18349 if test "X$x" = "X$element"; then
18350 haveit=yes
18351 break
18352 fi
18353 done
18354 if test -z "$haveit"; then
18355 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
18356 fi
18357 done
18358
18359
c10a2228
JF
18360else
18361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18362$as_echo "no" >&6; }
18363fi
18364
18365 ac_ext=cpp
18366ac_cpp='$CXXCPP $CPPFLAGS'
18367ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18368ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18369ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18370
18371
18372
18373 ac_ext=cpp
18374ac_cpp='$CXXCPP $CPPFLAGS'
18375ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18376ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18377ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18378
babf7fe8
JF
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-overloaded-virtual" >&5
18380$as_echo_n "checking for c++ -Wno-overloaded-virtual... " >&6; }
c10a2228
JF
18381
18382 cy_save=$CXXFLAGS
18383
babf7fe8 18384 for element in -Wno-overloaded-virtual; do
66170b30
JF
18385 haveit=
18386 for x in $CXXFLAGS; do
18387
18388 acl_save_prefix="$prefix"
18389 prefix="$acl_final_prefix"
18390 acl_save_exec_prefix="$exec_prefix"
18391 exec_prefix="$acl_final_exec_prefix"
18392 eval x=\"$x\"
18393 exec_prefix="$acl_save_exec_prefix"
18394 prefix="$acl_save_prefix"
18395
18396 if test "X$x" = "X$element"; then
18397 haveit=yes
18398 break
18399 fi
18400 done
18401 if test -z "$haveit"; then
18402 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18403 fi
18404 done
18405
18406
c10a2228
JF
18407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18408/* end confdefs.h. */
18409
18410_ACEOF
18411if ac_fn_cxx_try_compile "$LINENO"; then :
18412 cy_good=1
18413else
18414 cy_good=0
18415fi
18416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18417
18418 CXXFLAGS=$cy_save
18419 if test "x$cy_good" = x1; then :
18420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18421$as_echo "yes" >&6; }
18422
babf7fe8 18423 for element in -Wno-overloaded-virtual; do
66170b30 18424 haveit=
c10a2228 18425 for x in $CXXFLAGS; do
66170b30
JF
18426
18427 acl_save_prefix="$prefix"
18428 prefix="$acl_final_prefix"
18429 acl_save_exec_prefix="$exec_prefix"
18430 exec_prefix="$acl_final_exec_prefix"
18431 eval x=\"$x\"
18432 exec_prefix="$acl_save_exec_prefix"
18433 prefix="$acl_save_prefix"
18434
18435 if test "X$x" = "X$element"; then
18436 haveit=yes
18437 break
18438 fi
18439 done
18440 if test -z "$haveit"; then
c10a2228 18441 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
66170b30
JF
18442 fi
18443 done
18444
18445
66170b30
JF
18446else
18447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18448$as_echo "no" >&6; }
18449fi
18450
c10a2228
JF
18451 ac_ext=cpp
18452ac_cpp='$CXXCPP $CPPFLAGS'
18453ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18454ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18455ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18456
66170b30
JF
18457
18458
c10a2228
JF
18459 ac_ext=mm
18460ac_cpp='$OBJCXXCPP $CPPFLAGS'
18461ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18462ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18463ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18464
babf7fe8
JF
18465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-overloaded-virtual" >&5
18466$as_echo_n "checking for c++ -ObjC -Wno-overloaded-virtual... " >&6; }
66170b30 18467
c10a2228 18468 cy_save=$OBJCXXFLAGS
66170b30 18469
babf7fe8 18470 for element in -Wno-overloaded-virtual; do
66170b30 18471 haveit=
c10a2228 18472 for x in $OBJCXXFLAGS; do
66170b30
JF
18473
18474 acl_save_prefix="$prefix"
18475 prefix="$acl_final_prefix"
18476 acl_save_exec_prefix="$exec_prefix"
18477 exec_prefix="$acl_final_exec_prefix"
18478 eval x=\"$x\"
18479 exec_prefix="$acl_save_exec_prefix"
18480 prefix="$acl_save_prefix"
18481
18482 if test "X$x" = "X$element"; then
18483 haveit=yes
18484 break
18485 fi
18486 done
18487 if test -z "$haveit"; then
c10a2228 18488 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
66170b30
JF
18489 fi
18490 done
18491
18492
18493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18494/* end confdefs.h. */
1504c9b8 18495
1504c9b8 18496_ACEOF
c10a2228 18497if ac_fn_objcxx_try_compile "$LINENO"; then :
66170b30
JF
18498 cy_good=1
18499else
18500 cy_good=0
18501fi
18502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18503
c10a2228 18504 OBJCXXFLAGS=$cy_save
66170b30
JF
18505 if test "x$cy_good" = x1; then :
18506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18507$as_echo "yes" >&6; }
1504c9b8 18508
babf7fe8 18509 for element in -Wno-overloaded-virtual; do
1504c9b8 18510 haveit=
c10a2228 18511 for x in $OBJCXXFLAGS; do
1504c9b8
DWT
18512
18513 acl_save_prefix="$prefix"
18514 prefix="$acl_final_prefix"
18515 acl_save_exec_prefix="$exec_prefix"
18516 exec_prefix="$acl_final_exec_prefix"
18517 eval x=\"$x\"
18518 exec_prefix="$acl_save_exec_prefix"
18519 prefix="$acl_save_prefix"
18520
18521 if test "X$x" = "X$element"; then
18522 haveit=yes
18523 break
18524 fi
18525 done
18526 if test -z "$haveit"; then
c10a2228 18527 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
1504c9b8
DWT
18528 fi
18529 done
18530
18531
c10a2228
JF
18532else
18533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18534$as_echo "no" >&6; }
18535fi
18536
18537 ac_ext=cpp
18538ac_cpp='$CXXCPP $CPPFLAGS'
18539ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18540ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18541ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18542
18543
18544
18545
18546
18547 ac_ext=c
18548ac_cpp='$CPP $CPPFLAGS'
18549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18551ac_compiler_gnu=$ac_cv_c_compiler_gnu
18552
babf7fe8
JF
18553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-parentheses" >&5
18554$as_echo_n "checking for cc -Wno-parentheses... " >&6; }
c10a2228
JF
18555
18556 cy_save=$CFLAGS
18557
babf7fe8 18558 for element in -Wno-parentheses; do
66170b30 18559 haveit=
c10a2228 18560 for x in $CFLAGS; do
66170b30
JF
18561
18562 acl_save_prefix="$prefix"
18563 prefix="$acl_final_prefix"
18564 acl_save_exec_prefix="$exec_prefix"
18565 exec_prefix="$acl_final_exec_prefix"
18566 eval x=\"$x\"
18567 exec_prefix="$acl_save_exec_prefix"
18568 prefix="$acl_save_prefix"
18569
18570 if test "X$x" = "X$element"; then
18571 haveit=yes
18572 break
18573 fi
18574 done
18575 if test -z "$haveit"; then
c10a2228 18576 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
66170b30
JF
18577 fi
18578 done
18579
18580
c10a2228
JF
18581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18582/* end confdefs.h. */
18583
18584_ACEOF
18585if ac_fn_c_try_compile "$LINENO"; then :
18586 cy_good=1
18587else
18588 cy_good=0
18589fi
18590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18591
18592 CFLAGS=$cy_save
18593 if test "x$cy_good" = x1; then :
18594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18595$as_echo "yes" >&6; }
18596
babf7fe8 18597 for element in -Wno-parentheses; do
66170b30 18598 haveit=
c10a2228 18599 for x in $CFLAGS; do
66170b30
JF
18600
18601 acl_save_prefix="$prefix"
18602 prefix="$acl_final_prefix"
18603 acl_save_exec_prefix="$exec_prefix"
18604 exec_prefix="$acl_final_exec_prefix"
18605 eval x=\"$x\"
18606 exec_prefix="$acl_save_exec_prefix"
18607 prefix="$acl_save_prefix"
18608
18609 if test "X$x" = "X$element"; then
18610 haveit=yes
18611 break
18612 fi
18613 done
18614 if test -z "$haveit"; then
c10a2228 18615 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
66170b30
JF
18616 fi
18617 done
18618
18619
66170b30
JF
18620else
18621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18622$as_echo "no" >&6; }
18623fi
18624
c10a2228
JF
18625 ac_ext=cpp
18626ac_cpp='$CXXCPP $CPPFLAGS'
18627ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18628ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18629ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18630
66170b30
JF
18631
18632
c10a2228
JF
18633 ac_ext=cpp
18634ac_cpp='$CXXCPP $CPPFLAGS'
18635ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18636ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18637ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18638
babf7fe8
JF
18639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-parentheses" >&5
18640$as_echo_n "checking for c++ -Wno-parentheses... " >&6; }
66170b30
JF
18641
18642 cy_save=$CXXFLAGS
18643
babf7fe8 18644 for element in -Wno-parentheses; do
66170b30
JF
18645 haveit=
18646 for x in $CXXFLAGS; do
18647
18648 acl_save_prefix="$prefix"
18649 prefix="$acl_final_prefix"
18650 acl_save_exec_prefix="$exec_prefix"
18651 exec_prefix="$acl_final_exec_prefix"
18652 eval x=\"$x\"
18653 exec_prefix="$acl_save_exec_prefix"
18654 prefix="$acl_save_prefix"
18655
18656 if test "X$x" = "X$element"; then
18657 haveit=yes
18658 break
18659 fi
18660 done
18661 if test -z "$haveit"; then
18662 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18663 fi
18664 done
18665
18666
18667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18668/* end confdefs.h. */
18669
18670_ACEOF
18671if ac_fn_cxx_try_compile "$LINENO"; then :
18672 cy_good=1
18673else
18674 cy_good=0
18675fi
18676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18677
18678 CXXFLAGS=$cy_save
18679 if test "x$cy_good" = x1; then :
18680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18681$as_echo "yes" >&6; }
18682
babf7fe8 18683 for element in -Wno-parentheses; do
1504c9b8 18684 haveit=
c10a2228 18685 for x in $CXXFLAGS; do
1504c9b8
DWT
18686
18687 acl_save_prefix="$prefix"
18688 prefix="$acl_final_prefix"
18689 acl_save_exec_prefix="$exec_prefix"
18690 exec_prefix="$acl_final_exec_prefix"
18691 eval x=\"$x\"
18692 exec_prefix="$acl_save_exec_prefix"
18693 prefix="$acl_save_prefix"
18694
18695 if test "X$x" = "X$element"; then
18696 haveit=yes
18697 break
18698 fi
18699 done
18700 if test -z "$haveit"; then
c10a2228 18701 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
1504c9b8
DWT
18702 fi
18703 done
18704
18705
c10a2228
JF
18706else
18707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18708$as_echo "no" >&6; }
18709fi
18710
18711 ac_ext=cpp
18712ac_cpp='$CXXCPP $CPPFLAGS'
18713ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18714ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18715ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18716
18717
18718
18719 ac_ext=mm
18720ac_cpp='$OBJCXXCPP $CPPFLAGS'
18721ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18722ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18723ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
18724
babf7fe8
JF
18725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-parentheses" >&5
18726$as_echo_n "checking for c++ -ObjC -Wno-parentheses... " >&6; }
c10a2228
JF
18727
18728 cy_save=$OBJCXXFLAGS
18729
babf7fe8 18730 for element in -Wno-parentheses; do
1504c9b8 18731 haveit=
c10a2228 18732 for x in $OBJCXXFLAGS; do
1504c9b8
DWT
18733
18734 acl_save_prefix="$prefix"
18735 prefix="$acl_final_prefix"
18736 acl_save_exec_prefix="$exec_prefix"
18737 exec_prefix="$acl_final_exec_prefix"
18738 eval x=\"$x\"
18739 exec_prefix="$acl_save_exec_prefix"
18740 prefix="$acl_save_prefix"
18741
18742 if test "X$x" = "X$element"; then
18743 haveit=yes
18744 break
18745 fi
18746 done
18747 if test -z "$haveit"; then
c10a2228 18748 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
1504c9b8
DWT
18749 fi
18750 done
18751
18752
c10a2228
JF
18753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18754/* end confdefs.h. */
18755
18756_ACEOF
18757if ac_fn_objcxx_try_compile "$LINENO"; then :
18758 cy_good=1
18759else
18760 cy_good=0
18761fi
18762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18763
18764 OBJCXXFLAGS=$cy_save
18765 if test "x$cy_good" = x1; then :
18766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18767$as_echo "yes" >&6; }
18768
babf7fe8 18769 for element in -Wno-parentheses; do
1504c9b8 18770 haveit=
c10a2228 18771 for x in $OBJCXXFLAGS; do
1504c9b8
DWT
18772
18773 acl_save_prefix="$prefix"
18774 prefix="$acl_final_prefix"
18775 acl_save_exec_prefix="$exec_prefix"
18776 exec_prefix="$acl_final_exec_prefix"
18777 eval x=\"$x\"
18778 exec_prefix="$acl_save_exec_prefix"
18779 prefix="$acl_save_prefix"
18780
18781 if test "X$x" = "X$element"; then
18782 haveit=yes
18783 break
18784 fi
18785 done
18786 if test -z "$haveit"; then
c10a2228 18787 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
1504c9b8
DWT
18788 fi
18789 done
18790
18791
66170b30
JF
18792else
18793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18794$as_echo "no" >&6; }
1504c9b8 18795fi
1504c9b8 18796
c10a2228
JF
18797 ac_ext=cpp
18798ac_cpp='$CXXCPP $CPPFLAGS'
18799ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18800ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18801ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18802
18803
1504c9b8 18804
1504c9b8 18805
1504c9b8 18806
babf7fe8
JF
18807 ac_ext=c
18808ac_cpp='$CPP $CPPFLAGS'
18809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18811ac_compiler_gnu=$ac_cv_c_compiler_gnu
1504c9b8 18812
babf7fe8
JF
18813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-unneeded-internal-declaration" >&5
18814$as_echo_n "checking for cc -Wno-unneeded-internal-declaration... " >&6; }
18815
18816 cy_save=$CFLAGS
18817
18818 for element in -Wno-unneeded-internal-declaration; do
1504c9b8 18819 haveit=
babf7fe8 18820 for x in $CFLAGS; do
1504c9b8
DWT
18821
18822 acl_save_prefix="$prefix"
18823 prefix="$acl_final_prefix"
18824 acl_save_exec_prefix="$exec_prefix"
18825 exec_prefix="$acl_final_exec_prefix"
18826 eval x=\"$x\"
18827 exec_prefix="$acl_save_exec_prefix"
18828 prefix="$acl_save_prefix"
18829
18830 if test "X$x" = "X$element"; then
18831 haveit=yes
18832 break
18833 fi
18834 done
18835 if test -z "$haveit"; then
babf7fe8 18836 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
1504c9b8
DWT
18837 fi
18838 done
18839
66170b30
JF
18840
18841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1504c9b8
DWT
18842/* end confdefs.h. */
18843
a243b558 18844_ACEOF
babf7fe8 18845if ac_fn_c_try_compile "$LINENO"; then :
a243b558
JF
18846 cy_good=1
18847else
18848 cy_good=0
18849fi
babf7fe8 18850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1504c9b8 18851
babf7fe8 18852 CFLAGS=$cy_save
a243b558
JF
18853 if test "x$cy_good" = x1; then :
18854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18855$as_echo "yes" >&6; }
66170b30 18856
babf7fe8 18857 for element in -Wno-unneeded-internal-declaration; do
1504c9b8 18858 haveit=
babf7fe8 18859 for x in $CFLAGS; do
1504c9b8
DWT
18860
18861 acl_save_prefix="$prefix"
18862 prefix="$acl_final_prefix"
18863 acl_save_exec_prefix="$exec_prefix"
18864 exec_prefix="$acl_final_exec_prefix"
18865 eval x=\"$x\"
18866 exec_prefix="$acl_save_exec_prefix"
18867 prefix="$acl_save_prefix"
18868
18869 if test "X$x" = "X$element"; then
18870 haveit=yes
18871 break
18872 fi
18873 done
18874 if test -z "$haveit"; then
babf7fe8 18875 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
1504c9b8
DWT
18876 fi
18877 done
18878
18879
18880else
66170b30
JF
18881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18882$as_echo "no" >&6; }
1504c9b8
DWT
18883fi
18884
babf7fe8
JF
18885 ac_ext=cpp
18886ac_cpp='$CXXCPP $CPPFLAGS'
18887ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18888ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18889ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
296ee9a6 18890
9c60689e 18891
632b71ea 18892
babf7fe8
JF
18893 ac_ext=cpp
18894ac_cpp='$CXXCPP $CPPFLAGS'
18895ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18896ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18897ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
632b71ea 18898
babf7fe8
JF
18899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-unneeded-internal-declaration" >&5
18900$as_echo_n "checking for c++ -Wno-unneeded-internal-declaration... " >&6; }
9c60689e 18901
babf7fe8 18902 cy_save=$CXXFLAGS
9c60689e 18903
babf7fe8
JF
18904 for element in -Wno-unneeded-internal-declaration; do
18905 haveit=
18906 for x in $CXXFLAGS; do
9c60689e 18907
babf7fe8
JF
18908 acl_save_prefix="$prefix"
18909 prefix="$acl_final_prefix"
18910 acl_save_exec_prefix="$exec_prefix"
18911 exec_prefix="$acl_final_exec_prefix"
18912 eval x=\"$x\"
18913 exec_prefix="$acl_save_exec_prefix"
18914 prefix="$acl_save_prefix"
66170b30 18915
babf7fe8
JF
18916 if test "X$x" = "X$element"; then
18917 haveit=yes
18918 break
18919 fi
18920 done
18921 if test -z "$haveit"; then
18922 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
18923 fi
18924 done
7eda51e0 18925
7eda51e0 18926
babf7fe8
JF
18927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18928/* end confdefs.h. */
7eda51e0 18929
7eda51e0 18930_ACEOF
babf7fe8
JF
18931if ac_fn_cxx_try_compile "$LINENO"; then :
18932 cy_good=1
9c60689e 18933else
babf7fe8 18934 cy_good=0
9c60689e 18935fi
babf7fe8 18936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7eda51e0 18937
babf7fe8
JF
18938 CXXFLAGS=$cy_save
18939 if test "x$cy_good" = x1; then :
18940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18941$as_echo "yes" >&6; }
7eda51e0 18942
babf7fe8 18943 for element in -Wno-unneeded-internal-declaration; do
7eda51e0 18944 haveit=
babf7fe8 18945 for x in $CXXFLAGS; do
9c60689e 18946
7eda51e0
JF
18947 acl_save_prefix="$prefix"
18948 prefix="$acl_final_prefix"
18949 acl_save_exec_prefix="$exec_prefix"
18950 exec_prefix="$acl_final_exec_prefix"
18951 eval x=\"$x\"
18952 exec_prefix="$acl_save_exec_prefix"
18953 prefix="$acl_save_prefix"
9c60689e 18954
7eda51e0
JF
18955 if test "X$x" = "X$element"; then
18956 haveit=yes
18957 break
18958 fi
18959 done
18960 if test -z "$haveit"; then
babf7fe8 18961 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
7eda51e0
JF
18962 fi
18963 done
9c60689e 18964
9c60689e 18965
5053a6d1 18966else
babf7fe8
JF
18967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18968$as_echo "no" >&6; }
632b71ea
DWT
18969fi
18970
babf7fe8
JF
18971 ac_ext=cpp
18972ac_cpp='$CXXCPP $CPPFLAGS'
18973ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18974ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18975ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
632b71ea
DWT
18976
18977
5053a6d1 18978
babf7fe8
JF
18979 ac_ext=mm
18980ac_cpp='$OBJCXXCPP $CPPFLAGS'
18981ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18982ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18983ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
5053a6d1 18984
babf7fe8
JF
18985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-unneeded-internal-declaration" >&5
18986$as_echo_n "checking for c++ -ObjC -Wno-unneeded-internal-declaration... " >&6; }
632b71ea 18987
babf7fe8 18988 cy_save=$OBJCXXFLAGS
632b71ea 18989
babf7fe8 18990 for element in -Wno-unneeded-internal-declaration; do
5053a6d1 18991 haveit=
babf7fe8 18992 for x in $OBJCXXFLAGS; do
632b71ea
DWT
18993
18994 acl_save_prefix="$prefix"
18995 prefix="$acl_final_prefix"
18996 acl_save_exec_prefix="$exec_prefix"
18997 exec_prefix="$acl_final_exec_prefix"
5053a6d1 18998 eval x=\"$x\"
632b71ea
DWT
18999 exec_prefix="$acl_save_exec_prefix"
19000 prefix="$acl_save_prefix"
19001
5053a6d1
DWT
19002 if test "X$x" = "X$element"; then
19003 haveit=yes
19004 break
19005 fi
19006 done
19007 if test -z "$haveit"; then
babf7fe8 19008 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
5053a6d1
DWT
19009 fi
19010 done
19011
66170b30 19012
babf7fe8
JF
19013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19014/* end confdefs.h. */
19015
19016_ACEOF
19017if ac_fn_objcxx_try_compile "$LINENO"; then :
19018 cy_good=1
19019else
19020 cy_good=0
19021fi
19022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19023
19024 OBJCXXFLAGS=$cy_save
19025 if test "x$cy_good" = x1; then :
19026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19027$as_echo "yes" >&6; }
19028
19029 for element in -Wno-unneeded-internal-declaration; do
7eda51e0 19030 haveit=
babf7fe8 19031 for x in $OBJCXXFLAGS; do
7eda51e0
JF
19032
19033 acl_save_prefix="$prefix"
19034 prefix="$acl_final_prefix"
19035 acl_save_exec_prefix="$exec_prefix"
19036 exec_prefix="$acl_final_exec_prefix"
19037 eval x=\"$x\"
19038 exec_prefix="$acl_save_exec_prefix"
19039 prefix="$acl_save_prefix"
19040
19041 if test "X$x" = "X$element"; then
19042 haveit=yes
19043 break
19044 fi
19045 done
19046 if test -z "$haveit"; then
babf7fe8 19047 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
7eda51e0
JF
19048 fi
19049 done
66170b30
JF
19050
19051
babf7fe8
JF
19052else
19053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19054$as_echo "no" >&6; }
5053a6d1 19055fi
7eda51e0 19056
babf7fe8
JF
19057 ac_ext=cpp
19058ac_cpp='$CXXCPP $CPPFLAGS'
19059ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19060ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19061ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5053a6d1 19062
5053a6d1
DWT
19063
19064
5053a6d1 19065
babf7fe8
JF
19066
19067
3615a2f7 19068for cy_arch in ppc ppc64 i386 x86_64 armv6 arm64; do
abc804fa
JF
19069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -arch $cy_arch" >&5
19070$as_echo_n "checking for -arch $cy_arch... " >&6; }
19071
19072 cy_save=$CXXFLAGS
19073
19074 for element in "-arch $cy_arch"; do
19075 haveit=
19076 for x in $CXXFLAGS; do
19077
19078 acl_save_prefix="$prefix"
19079 prefix="$acl_final_prefix"
19080 acl_save_exec_prefix="$exec_prefix"
19081 exec_prefix="$acl_final_exec_prefix"
19082 eval x=\"$x\"
19083 exec_prefix="$acl_save_exec_prefix"
19084 prefix="$acl_save_prefix"
19085
19086 if test "X$x" = "X$element"; then
19087 haveit=yes
19088 break
19089 fi
19090 done
19091 if test -z "$haveit"; then
19092 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19093 fi
19094 done
19095
19096
19097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19098/* end confdefs.h. */
19099
19100int
19101main ()
19102{
19103
19104 ;
19105 return 0;
19106}
19107_ACEOF
19108if ac_fn_cxx_try_link "$LINENO"; then :
19109 cy_good=1
19110else
19111 cy_good=0
19112fi
19113rm -f core conftest.err conftest.$ac_objext \
19114 conftest$ac_exeext conftest.$ac_ext
19115
19116 CXXFLAGS=$cy_save
19117 if test "x$cy_good" = x1; then :
19118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19119$as_echo "yes" >&6; }
19120
19121 for element in "-arch $cy_arch"; do
19122 haveit=
19123 for x in $CY_ARCH; do
19124
19125 acl_save_prefix="$prefix"
19126 prefix="$acl_final_prefix"
19127 acl_save_exec_prefix="$exec_prefix"
19128 exec_prefix="$acl_final_exec_prefix"
19129 eval x=\"$x\"
19130 exec_prefix="$acl_save_exec_prefix"
19131 prefix="$acl_save_prefix"
19132
19133 if test "X$x" = "X$element"; then
19134 haveit=yes
19135 break
19136 fi
19137 done
19138 if test -z "$haveit"; then
19139 CY_ARCH="${CY_ARCH}${CY_ARCH:+ }$element"
19140 fi
19141 done
19142
19143
19144else
19145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19146$as_echo "no" >&6; }
19147fi
19148
19149done
19150
19151
babf7fe8
JF
19152
19153
19154
19155
19156# Check whether --enable-javascript was given.
19157if test "${enable_javascript+set}" = set; then :
19158 enableval=$enable_javascript;
19159 case $enableval in #(
19160 yes) :
19161
19162
19163
19164
19165 cy_save=$LIBS
19166 LIBS=
9918a0fa
JF
19167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
19168$as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
19169if ${ac_cv_search_JSEvaluateScript+:} false; then :
19170 $as_echo_n "(cached) " >&6
19171else
19172 ac_func_search_save_LIBS=$LIBS
19173cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19174/* end confdefs.h. */
19175
19176/* Override any GCC internal prototype to avoid an error.
19177 Use char because int might match the return type of a GCC
19178 builtin and then its argument prototype would still apply. */
19179#ifdef __cplusplus
19180extern "C"
19181#endif
19182char JSEvaluateScript ();
19183int
19184main ()
19185{
19186return JSEvaluateScript ();
19187 ;
19188 return 0;
19189}
19190_ACEOF
19191for ac_lib in '' JavaScriptCore; do
19192 if test -z "$ac_lib"; then
19193 ac_res="none required"
19194 else
19195 ac_res=-l$ac_lib
19196 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19197 fi
19198 if ac_fn_cxx_try_link "$LINENO"; then :
19199 ac_cv_search_JSEvaluateScript=$ac_res
19200fi
19201rm -f core conftest.err conftest.$ac_objext \
19202 conftest$ac_exeext
19203 if ${ac_cv_search_JSEvaluateScript+:} false; then :
19204 break
19205fi
19206done
19207if ${ac_cv_search_JSEvaluateScript+:} false; then :
19208
19209else
19210 ac_cv_search_JSEvaluateScript=no
19211fi
19212rm conftest.$ac_ext
19213LIBS=$ac_func_search_save_LIBS
19214fi
19215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
19216$as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
19217ac_res=$ac_cv_search_JSEvaluateScript
19218if test "$ac_res" != no; then :
19219 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19220
19221 CY_EXECUTE=1
19222
19223
19224else
babf7fe8
JF
19225
19226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
19227$as_echo_n "checking for framework JavaScriptCore... " >&6; }
19228if ${ac_cv_framework_JavaScriptCore+:} false; then :
19229 $as_echo_n "(cached) " >&6
19230else
19231
19232 ac_check_framework_save_LIBS=$LIBS
19233 LIBS="-framework JavaScriptCore $LIBS"
19234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19235/* end confdefs.h. */
19236
19237 #include <JavaScriptCore/JSBase.h>
19238
19239int
19240main ()
19241{
19242
19243 JSEvaluateScript(0, 0, 0, 0, 0, 0);
19244
19245 ;
19246 return 0;
19247}
19248_ACEOF
19249if ac_fn_cxx_try_link "$LINENO"; then :
19250
19251 ac_cv_framework_JavaScriptCore=yes
19252
19253else
19254 ac_cv_framework_JavaScriptCore=no
19255fi
19256rm -f core conftest.err conftest.$ac_objext \
19257 conftest$ac_exeext conftest.$ac_ext
19258 LIBS=$ac_check_framework_save_LIBS
19259
19260fi
19261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
19262$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
19263 if test $ac_cv_framework_JavaScriptCore = yes; then :
19264
19265
19266 for element in "-framework JavaScriptCore"; do
19267 haveit=
19268 for x in $LIBS; do
19269
19270 acl_save_prefix="$prefix"
19271 prefix="$acl_final_prefix"
19272 acl_save_exec_prefix="$exec_prefix"
19273 exec_prefix="$acl_final_exec_prefix"
19274 eval x=\"$x\"
19275 exec_prefix="$acl_save_exec_prefix"
19276 prefix="$acl_save_prefix"
19277
19278 if test "X$x" = "X$element"; then
19279 haveit=yes
19280 break
19281 fi
19282 done
19283 if test -z "$haveit"; then
19284 LIBS="${LIBS}${LIBS:+ }$element"
19285 fi
19286 done
19287
19288
19289 CY_EXECUTE=1
19290
19291
19292
19293else
19294
19295 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
19296
19297pkg_failed=no
19298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
7eda51e0 19299$as_echo_n "checking for WEBKIT... " >&6; }
5053a6d1 19300
7eda51e0
JF
19301if test -n "$WEBKIT_CFLAGS"; then
19302 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
19303 elif test -n "$PKG_CONFIG"; then
19304 if test -n "$PKG_CONFIG" && \
19305 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
19306 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
19307 ac_status=$?
19308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19309 test $ac_status = 0; }; then
19310 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
83c6fec8 19311 test "x$?" != "x0" && pkg_failed=yes
7eda51e0
JF
19312else
19313 pkg_failed=yes
19314fi
19315 else
19316 pkg_failed=untried
19317fi
19318if test -n "$WEBKIT_LIBS"; then
19319 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
19320 elif test -n "$PKG_CONFIG"; then
19321 if test -n "$PKG_CONFIG" && \
19322 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
19323 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
19324 ac_status=$?
19325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19326 test $ac_status = 0; }; then
19327 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
83c6fec8 19328 test "x$?" != "x0" && pkg_failed=yes
7eda51e0
JF
19329else
19330 pkg_failed=yes
19331fi
19332 else
19333 pkg_failed=untried
19334fi
632b71ea 19335
7eda51e0
JF
19336
19337
19338if test $pkg_failed = yes; then
19339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19340$as_echo "no" >&6; }
19341
19342if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19343 _pkg_short_errors_supported=yes
19344else
19345 _pkg_short_errors_supported=no
19346fi
19347 if test $_pkg_short_errors_supported = yes; then
83c6fec8 19348 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
7eda51e0 19349 else
83c6fec8 19350 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
7eda51e0
JF
19351 fi
19352 # Put the nasty error message in config.log where it belongs
19353 echo "$WEBKIT_PKG_ERRORS" >&5
19354
19355 :
19356elif test $pkg_failed = untried; then
19357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19358$as_echo "no" >&6; }
19359 :
19360else
19361 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
19362 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
19363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19364$as_echo "yes" >&6; }
19365
19366 CY_EXECUTE=1
19367
19368
7eda51e0
JF
19369 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
19370 haveit=
d70419f1 19371 for x in $CPPFLAGS; do
5053a6d1 19372
7eda51e0
JF
19373 acl_save_prefix="$prefix"
19374 prefix="$acl_final_prefix"
19375 acl_save_exec_prefix="$exec_prefix"
19376 exec_prefix="$acl_final_exec_prefix"
19377 eval x=\"$x\"
19378 exec_prefix="$acl_save_exec_prefix"
19379 prefix="$acl_save_prefix"
5053a6d1 19380
7eda51e0
JF
19381 if test "X$x" = "X$element"; then
19382 haveit=yes
19383 break
19384 fi
19385 done
19386 if test -z "$haveit"; then
d70419f1 19387 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7eda51e0
JF
19388 fi
19389 done
5053a6d1 19390
5053a6d1 19391
7eda51e0 19392 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
632b71ea 19393 haveit=
5053a6d1 19394 for x in $LIBS; do
9c60689e 19395
632b71ea
DWT
19396 acl_save_prefix="$prefix"
19397 prefix="$acl_final_prefix"
19398 acl_save_exec_prefix="$exec_prefix"
19399 exec_prefix="$acl_final_exec_prefix"
19400 eval x=\"$x\"
19401 exec_prefix="$acl_save_exec_prefix"
19402 prefix="$acl_save_prefix"
19403
19404 if test "X$x" = "X$element"; then
19405 haveit=yes
19406 break
19407 fi
19408 done
19409 if test -z "$haveit"; then
5053a6d1 19410 LIBS="${LIBS}${LIBS:+ }$element"
632b71ea
DWT
19411 fi
19412 done
b128dfee 19413
66170b30 19414
7eda51e0
JF
19415fi; if test "x$CY_EXECUTE" = x1; then break; fi
19416 done
5053a6d1
DWT
19417
19418fi
9918a0fa
JF
19419fi
19420
babf7fe8
JF
19421 LTJAVASCRIPTCORE=$LIBS
19422 LIBS=$cy_save
19423
19424
7eda51e0 19425 ;; #(
babf7fe8 19426 no) :
7eda51e0 19427
babf7fe8
JF
19428 CY_EXECUTE=0
19429 ;; #(
19430 JavaScriptCore) :
c823f118 19431
5053a6d1
DWT
19432
19433
babf7fe8
JF
19434 cy_save=$LIBS
19435 LIBS=
9918a0fa
JF
19436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
19437$as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
19438if ${ac_cv_search_JSEvaluateScript+:} false; then :
19439 $as_echo_n "(cached) " >&6
19440else
19441 ac_func_search_save_LIBS=$LIBS
19442cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19443/* end confdefs.h. */
19444
19445/* Override any GCC internal prototype to avoid an error.
19446 Use char because int might match the return type of a GCC
19447 builtin and then its argument prototype would still apply. */
19448#ifdef __cplusplus
19449extern "C"
19450#endif
19451char JSEvaluateScript ();
19452int
19453main ()
19454{
19455return JSEvaluateScript ();
19456 ;
19457 return 0;
19458}
19459_ACEOF
19460for ac_lib in '' JavaScriptCore; do
19461 if test -z "$ac_lib"; then
19462 ac_res="none required"
19463 else
19464 ac_res=-l$ac_lib
19465 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19466 fi
19467 if ac_fn_cxx_try_link "$LINENO"; then :
19468 ac_cv_search_JSEvaluateScript=$ac_res
19469fi
19470rm -f core conftest.err conftest.$ac_objext \
19471 conftest$ac_exeext
19472 if ${ac_cv_search_JSEvaluateScript+:} false; then :
19473 break
19474fi
19475done
19476if ${ac_cv_search_JSEvaluateScript+:} false; then :
19477
19478else
19479 ac_cv_search_JSEvaluateScript=no
19480fi
19481rm conftest.$ac_ext
19482LIBS=$ac_func_search_save_LIBS
19483fi
19484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
19485$as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
19486ac_res=$ac_cv_search_JSEvaluateScript
19487if test "$ac_res" != no; then :
19488 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19489
19490 CY_EXECUTE=1
19491
19492
19493else
babf7fe8 19494
5053a6d1
DWT
19495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
19496$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 19497if ${ac_cv_framework_JavaScriptCore+:} false; then :
c823f118
DWT
19498 $as_echo_n "(cached) " >&6
19499else
19500
5053a6d1
DWT
19501 ac_check_framework_save_LIBS=$LIBS
19502 LIBS="-framework JavaScriptCore $LIBS"
19503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
632b71ea 19504/* end confdefs.h. */
5053a6d1 19505
7eda51e0 19506 #include <JavaScriptCore/JSBase.h>
5053a6d1 19507
632b71ea
DWT
19508int
19509main ()
19510{
66170b30 19511
7eda51e0 19512 JSEvaluateScript(0, 0, 0, 0, 0, 0);
66170b30 19513
632b71ea
DWT
19514 ;
19515 return 0;
19516}
19517_ACEOF
5053a6d1
DWT
19518if ac_fn_cxx_try_link "$LINENO"; then :
19519
19520 ac_cv_framework_JavaScriptCore=yes
19521
19522else
19523 ac_cv_framework_JavaScriptCore=no
632b71ea
DWT
19524fi
19525rm -f core conftest.err conftest.$ac_objext \
19526 conftest$ac_exeext conftest.$ac_ext
5053a6d1 19527 LIBS=$ac_check_framework_save_LIBS
b128dfee 19528
c823f118 19529fi
5053a6d1
DWT
19530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
19531$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
19532 if test $ac_cv_framework_JavaScriptCore = yes; then :
c823f118
DWT
19533
19534
7eda51e0 19535 for element in "-framework JavaScriptCore"; do
5053a6d1
DWT
19536 haveit=
19537 for x in $LIBS; do
19538
19539 acl_save_prefix="$prefix"
19540 prefix="$acl_final_prefix"
19541 acl_save_exec_prefix="$exec_prefix"
19542 exec_prefix="$acl_final_exec_prefix"
19543 eval x=\"$x\"
19544 exec_prefix="$acl_save_exec_prefix"
19545 prefix="$acl_save_prefix"
19546
19547 if test "X$x" = "X$element"; then
19548 haveit=yes
19549 break
19550 fi
19551 done
19552 if test -z "$haveit"; then
19553 LIBS="${LIBS}${LIBS:+ }$element"
19554 fi
19555 done
c823f118 19556
66170b30 19557
7eda51e0
JF
19558 CY_EXECUTE=1
19559
19560
19561
19562else
19563
19564 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
19565
19566pkg_failed=no
19567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
19568$as_echo_n "checking for WEBKIT... " >&6; }
19569
19570if test -n "$WEBKIT_CFLAGS"; then
19571 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
19572 elif test -n "$PKG_CONFIG"; then
19573 if test -n "$PKG_CONFIG" && \
19574 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
19575 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
19576 ac_status=$?
19577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19578 test $ac_status = 0; }; then
19579 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
83c6fec8 19580 test "x$?" != "x0" && pkg_failed=yes
7eda51e0
JF
19581else
19582 pkg_failed=yes
19583fi
19584 else
19585 pkg_failed=untried
19586fi
19587if test -n "$WEBKIT_LIBS"; then
19588 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
19589 elif test -n "$PKG_CONFIG"; then
19590 if test -n "$PKG_CONFIG" && \
19591 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
19592 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
19593 ac_status=$?
19594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19595 test $ac_status = 0; }; then
19596 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
83c6fec8 19597 test "x$?" != "x0" && pkg_failed=yes
7eda51e0
JF
19598else
19599 pkg_failed=yes
19600fi
19601 else
19602 pkg_failed=untried
19603fi
19604
66170b30
JF
19605
19606
7eda51e0
JF
19607if test $pkg_failed = yes; then
19608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19609$as_echo "no" >&6; }
b128dfee 19610
7eda51e0
JF
19611if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19612 _pkg_short_errors_supported=yes
19613else
19614 _pkg_short_errors_supported=no
632b71ea 19615fi
7eda51e0 19616 if test $_pkg_short_errors_supported = yes; then
83c6fec8 19617 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
7eda51e0 19618 else
83c6fec8 19619 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
7eda51e0
JF
19620 fi
19621 # Put the nasty error message in config.log where it belongs
19622 echo "$WEBKIT_PKG_ERRORS" >&5
c823f118 19623
7eda51e0
JF
19624 :
19625elif test $pkg_failed = untried; then
19626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19627$as_echo "no" >&6; }
19628 :
5053a6d1
DWT
19629else
19630 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
19631 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
19632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19633$as_echo "yes" >&6; }
c823f118 19634
7eda51e0
JF
19635 CY_EXECUTE=1
19636
66170b30 19637
7eda51e0 19638 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
5053a6d1 19639 haveit=
d70419f1 19640 for x in $CPPFLAGS; do
c823f118 19641
5053a6d1
DWT
19642 acl_save_prefix="$prefix"
19643 prefix="$acl_final_prefix"
19644 acl_save_exec_prefix="$exec_prefix"
19645 exec_prefix="$acl_final_exec_prefix"
19646 eval x=\"$x\"
19647 exec_prefix="$acl_save_exec_prefix"
19648 prefix="$acl_save_prefix"
c823f118 19649
5053a6d1
DWT
19650 if test "X$x" = "X$element"; then
19651 haveit=yes
19652 break
19653 fi
19654 done
19655 if test -z "$haveit"; then
d70419f1 19656 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5053a6d1
DWT
19657 fi
19658 done
c823f118 19659
b66977f1 19660
7eda51e0 19661 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
5053a6d1
DWT
19662 haveit=
19663 for x in $LIBS; do
19664
19665 acl_save_prefix="$prefix"
19666 prefix="$acl_final_prefix"
19667 acl_save_exec_prefix="$exec_prefix"
19668 exec_prefix="$acl_final_exec_prefix"
19669 eval x=\"$x\"
19670 exec_prefix="$acl_save_exec_prefix"
19671 prefix="$acl_save_prefix"
19672
19673 if test "X$x" = "X$element"; then
19674 haveit=yes
19675 break
19676 fi
19677 done
19678 if test -z "$haveit"; then
19679 LIBS="${LIBS}${LIBS:+ }$element"
19680 fi
19681 done
19682
19683
7eda51e0
JF
19684fi; if test "x$CY_EXECUTE" = x1; then break; fi
19685 done
19686
5053a6d1 19687fi
9918a0fa
JF
19688fi
19689
babf7fe8
JF
19690 LTJAVASCRIPTCORE=$LIBS
19691 LIBS=$cy_save
5053a6d1 19692
b66977f1 19693
babf7fe8
JF
19694 ;; #(
19695 *) :
19696 as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;;
19697esac
b66977f1 19698
babf7fe8 19699else
b66977f1 19700
7eda51e0 19701
7eda51e0 19702
babf7fe8
JF
19703 cy_save=$LIBS
19704 LIBS=
9918a0fa
JF
19705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
19706$as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
19707if ${ac_cv_search_JSEvaluateScript+:} false; then :
19708 $as_echo_n "(cached) " >&6
19709else
19710 ac_func_search_save_LIBS=$LIBS
19711cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19712/* end confdefs.h. */
19713
19714/* Override any GCC internal prototype to avoid an error.
19715 Use char because int might match the return type of a GCC
19716 builtin and then its argument prototype would still apply. */
19717#ifdef __cplusplus
19718extern "C"
19719#endif
19720char JSEvaluateScript ();
19721int
19722main ()
19723{
19724return JSEvaluateScript ();
19725 ;
19726 return 0;
19727}
19728_ACEOF
19729for ac_lib in '' JavaScriptCore; do
19730 if test -z "$ac_lib"; then
19731 ac_res="none required"
19732 else
19733 ac_res=-l$ac_lib
19734 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19735 fi
19736 if ac_fn_cxx_try_link "$LINENO"; then :
19737 ac_cv_search_JSEvaluateScript=$ac_res
19738fi
19739rm -f core conftest.err conftest.$ac_objext \
19740 conftest$ac_exeext
19741 if ${ac_cv_search_JSEvaluateScript+:} false; then :
19742 break
19743fi
19744done
19745if ${ac_cv_search_JSEvaluateScript+:} false; then :
19746
19747else
19748 ac_cv_search_JSEvaluateScript=no
19749fi
19750rm conftest.$ac_ext
19751LIBS=$ac_func_search_save_LIBS
19752fi
19753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
19754$as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
19755ac_res=$ac_cv_search_JSEvaluateScript
19756if test "$ac_res" != no; then :
19757 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19758
19759 CY_EXECUTE=1
19760
19761
19762else
7eda51e0 19763
babf7fe8
JF
19764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
19765$as_echo_n "checking for framework JavaScriptCore... " >&6; }
19766if ${ac_cv_framework_JavaScriptCore+:} false; then :
19767 $as_echo_n "(cached) " >&6
19768else
7eda51e0 19769
babf7fe8
JF
19770 ac_check_framework_save_LIBS=$LIBS
19771 LIBS="-framework JavaScriptCore $LIBS"
19772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19773/* end confdefs.h. */
7eda51e0 19774
babf7fe8 19775 #include <JavaScriptCore/JSBase.h>
7eda51e0 19776
babf7fe8
JF
19777int
19778main ()
19779{
7eda51e0 19780
babf7fe8 19781 JSEvaluateScript(0, 0, 0, 0, 0, 0);
7eda51e0 19782
babf7fe8
JF
19783 ;
19784 return 0;
19785}
19786_ACEOF
19787if ac_fn_cxx_try_link "$LINENO"; then :
7eda51e0 19788
babf7fe8 19789 ac_cv_framework_JavaScriptCore=yes
b66977f1 19790
b66977f1 19791else
babf7fe8
JF
19792 ac_cv_framework_JavaScriptCore=no
19793fi
19794rm -f core conftest.err conftest.$ac_objext \
19795 conftest$ac_exeext conftest.$ac_ext
19796 LIBS=$ac_check_framework_save_LIBS
7eda51e0 19797
babf7fe8
JF
19798fi
19799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
19800$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
19801 if test $ac_cv_framework_JavaScriptCore = yes; then :
7eda51e0 19802
7eda51e0 19803
babf7fe8
JF
19804 for element in "-framework JavaScriptCore"; do
19805 haveit=
19806 for x in $LIBS; do
19807
19808 acl_save_prefix="$prefix"
19809 prefix="$acl_final_prefix"
19810 acl_save_exec_prefix="$exec_prefix"
19811 exec_prefix="$acl_final_exec_prefix"
19812 eval x=\"$x\"
19813 exec_prefix="$acl_save_exec_prefix"
19814 prefix="$acl_save_prefix"
19815
19816 if test "X$x" = "X$element"; then
19817 haveit=yes
19818 break
19819 fi
19820 done
19821 if test -z "$haveit"; then
19822 LIBS="${LIBS}${LIBS:+ }$element"
19823 fi
19824 done
19825
19826
19827 CY_EXECUTE=1
19828
19829
19830
19831else
19832
19833 for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do
19834
19835pkg_failed=no
19836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
19837$as_echo_n "checking for WEBKIT... " >&6; }
19838
19839if test -n "$WEBKIT_CFLAGS"; then
19840 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
19841 elif test -n "$PKG_CONFIG"; then
19842 if test -n "$PKG_CONFIG" && \
19843 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
19844 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
19845 ac_status=$?
19846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19847 test $ac_status = 0; }; then
19848 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
83c6fec8 19849 test "x$?" != "x0" && pkg_failed=yes
babf7fe8
JF
19850else
19851 pkg_failed=yes
19852fi
19853 else
19854 pkg_failed=untried
19855fi
19856if test -n "$WEBKIT_LIBS"; then
19857 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
19858 elif test -n "$PKG_CONFIG"; then
19859 if test -n "$PKG_CONFIG" && \
19860 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
19861 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
19862 ac_status=$?
19863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19864 test $ac_status = 0; }; then
19865 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
83c6fec8 19866 test "x$?" != "x0" && pkg_failed=yes
babf7fe8
JF
19867else
19868 pkg_failed=yes
19869fi
19870 else
19871 pkg_failed=untried
19872fi
19873
19874
19875
19876if test $pkg_failed = yes; then
19877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19878$as_echo "no" >&6; }
19879
19880if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19881 _pkg_short_errors_supported=yes
19882else
19883 _pkg_short_errors_supported=no
19884fi
19885 if test $_pkg_short_errors_supported = yes; then
83c6fec8 19886 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
babf7fe8 19887 else
83c6fec8 19888 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
babf7fe8
JF
19889 fi
19890 # Put the nasty error message in config.log where it belongs
19891 echo "$WEBKIT_PKG_ERRORS" >&5
19892
19893 :
19894elif test $pkg_failed = untried; then
19895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19896$as_echo "no" >&6; }
19897 :
19898else
19899 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
19900 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
19901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19902$as_echo "yes" >&6; }
19903
19904 CY_EXECUTE=1
19905
19906
19907 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
19908 haveit=
19909 for x in $CPPFLAGS; do
19910
19911 acl_save_prefix="$prefix"
19912 prefix="$acl_final_prefix"
19913 acl_save_exec_prefix="$exec_prefix"
19914 exec_prefix="$acl_final_exec_prefix"
19915 eval x=\"$x\"
19916 exec_prefix="$acl_save_exec_prefix"
19917 prefix="$acl_save_prefix"
19918
19919 if test "X$x" = "X$element"; then
19920 haveit=yes
19921 break
19922 fi
19923 done
19924 if test -z "$haveit"; then
19925 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19926 fi
19927 done
19928
19929
19930 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
19931 haveit=
19932 for x in $LIBS; do
19933
19934 acl_save_prefix="$prefix"
19935 prefix="$acl_final_prefix"
19936 acl_save_exec_prefix="$exec_prefix"
19937 exec_prefix="$acl_final_exec_prefix"
19938 eval x=\"$x\"
19939 exec_prefix="$acl_save_exec_prefix"
19940 prefix="$acl_save_prefix"
19941
19942 if test "X$x" = "X$element"; then
19943 haveit=yes
19944 break
19945 fi
19946 done
19947 if test -z "$haveit"; then
19948 LIBS="${LIBS}${LIBS:+ }$element"
19949 fi
19950 done
19951
19952
19953fi; if test "x$CY_EXECUTE" = x1; then break; fi
19954 done
19955
19956fi
9918a0fa
JF
19957fi
19958
babf7fe8
JF
19959 LTJAVASCRIPTCORE=$LIBS
19960 LIBS=$cy_save
19961
19962
19963
19964fi
19965
19966
a93f15c0
JF
19967# Check whether --enable-console was given.
19968if test "${enable_console+set}" = set; then :
19969 enableval=$enable_console;
19970fi
19971
19972 if test "x$enable_console" != "xno"; then
19973 CY_CONSOLE_TRUE=
19974 CY_CONSOLE_FALSE='#'
19975else
19976 CY_CONSOLE_TRUE='#'
19977 CY_CONSOLE_FALSE=
19978fi
19979
19980
7eda51e0
JF
19981
19982
19983 if test "x$CY_EXECUTE" = x1; then
19984 CY_EXECUTE_TRUE=
19985 CY_EXECUTE_FALSE='#'
b66977f1 19986else
7eda51e0
JF
19987 CY_EXECUTE_TRUE='#'
19988 CY_EXECUTE_FALSE=
b66977f1
DWT
19989fi
19990
19991
19992
7eda51e0
JF
19993case $CY_EXECUTE in #(
19994 1) :
19995
19996 for ac_header in ffi.h ffi/ffi.h
19997do :
19998 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19999ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20000if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20001 cat >>confdefs.h <<_ACEOF
20002#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20003_ACEOF
20004 break
b66977f1 20005fi
7eda51e0
JF
20006
20007done
20008
296ee9a6
JF
20009
20010
20011 cy_save=$LIBS
20012 LIBS=
7eda51e0 20013 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
b66977f1 20014
b66977f1 20015
296ee9a6
JF
20016 LIBFFI_CFLAGS
20017 C compiler flags for LIBFFI, overriding pkg-config
20018 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
b66977f1
DWT
20019
20020pkg_failed=no
7eda51e0
JF
20021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
20022$as_echo_n "checking for LIBFFI... " >&6; }
b66977f1 20023
7eda51e0
JF
20024if test -n "$LIBFFI_CFLAGS"; then
20025 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
12833ad8
JF
20026 elif test -n "$PKG_CONFIG"; then
20027 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
20028 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
20029 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
20030 ac_status=$?
20031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20032 test $ac_status = 0; }; then
7eda51e0 20033 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
83c6fec8 20034 test "x$?" != "x0" && pkg_failed=yes
b66977f1
DWT
20035else
20036 pkg_failed=yes
20037fi
12833ad8
JF
20038 else
20039 pkg_failed=untried
b66977f1 20040fi
7eda51e0
JF
20041if test -n "$LIBFFI_LIBS"; then
20042 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
12833ad8
JF
20043 elif test -n "$PKG_CONFIG"; then
20044 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
20045 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
20046 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
20047 ac_status=$?
20048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20049 test $ac_status = 0; }; then
7eda51e0 20050 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
83c6fec8 20051 test "x$?" != "x0" && pkg_failed=yes
b66977f1
DWT
20052else
20053 pkg_failed=yes
20054fi
12833ad8
JF
20055 else
20056 pkg_failed=untried
b66977f1
DWT
20057fi
20058
20059
20060
20061if test $pkg_failed = yes; then
12833ad8
JF
20062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20063$as_echo "no" >&6; }
b66977f1
DWT
20064
20065if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20066 _pkg_short_errors_supported=yes
20067else
20068 _pkg_short_errors_supported=no
20069fi
20070 if test $_pkg_short_errors_supported = yes; then
83c6fec8 20071 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
b66977f1 20072 else
83c6fec8 20073 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
b66977f1
DWT
20074 fi
20075 # Put the nasty error message in config.log where it belongs
7eda51e0 20076 echo "$LIBFFI_PKG_ERRORS" >&5
b66977f1 20077
7eda51e0
JF
20078 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
20079elif test $pkg_failed = untried; then
20080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20081$as_echo "no" >&6; }
20082 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
20083else
20084 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
20085 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
20086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20087$as_echo "yes" >&6; }
b66977f1
DWT
20088
20089
7eda51e0 20090 for element in `$PKG_CONFIG --cflags libffi`; do
b66977f1 20091 haveit=
d70419f1 20092 for x in $CPPFLAGS; do
b66977f1
DWT
20093
20094 acl_save_prefix="$prefix"
20095 prefix="$acl_final_prefix"
20096 acl_save_exec_prefix="$exec_prefix"
20097 exec_prefix="$acl_final_exec_prefix"
20098 eval x=\"$x\"
20099 exec_prefix="$acl_save_exec_prefix"
20100 prefix="$acl_save_prefix"
20101
20102 if test "X$x" = "X$element"; then
20103 haveit=yes
20104 break
20105 fi
20106 done
20107 if test -z "$haveit"; then
d70419f1 20108 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
b66977f1
DWT
20109 fi
20110 done
20111
20112
7eda51e0 20113 for element in `$PKG_CONFIG --libs libffi`; do
b66977f1
DWT
20114 haveit=
20115 for x in $LIBS; do
20116
20117 acl_save_prefix="$prefix"
20118 prefix="$acl_final_prefix"
20119 acl_save_exec_prefix="$exec_prefix"
20120 exec_prefix="$acl_final_exec_prefix"
20121 eval x=\"$x\"
20122 exec_prefix="$acl_save_exec_prefix"
20123 prefix="$acl_save_prefix"
20124
20125 if test "X$x" = "X$element"; then
20126 haveit=yes
20127 break
20128 fi
20129 done
20130 if test -z "$haveit"; then
20131 LIBS="${LIBS}${LIBS:+ }$element"
20132 fi
20133 done
20134
20135
20136fi
20137
7eda51e0
JF
20138else
20139
20140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
20141$as_echo_n "checking for library containing ffi_call... " >&6; }
20142if ${ac_cv_search_ffi_call+:} false; then :
20143 $as_echo_n "(cached) " >&6
20144else
20145 ac_func_search_save_LIBS=$LIBS
20146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20147/* end confdefs.h. */
20148
20149/* Override any GCC internal prototype to avoid an error.
20150 Use char because int might match the return type of a GCC
20151 builtin and then its argument prototype would still apply. */
20152#ifdef __cplusplus
20153extern "C"
20154#endif
20155char ffi_call ();
20156int
20157main ()
20158{
20159return ffi_call ();
20160 ;
20161 return 0;
20162}
20163_ACEOF
20164for ac_lib in '' ffi; do
20165 if test -z "$ac_lib"; then
20166 ac_res="none required"
20167 else
20168 ac_res=-l$ac_lib
20169 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20170 fi
20171 if ac_fn_cxx_try_link "$LINENO"; then :
20172 ac_cv_search_ffi_call=$ac_res
20173fi
20174rm -f core conftest.err conftest.$ac_objext \
20175 conftest$ac_exeext
20176 if ${ac_cv_search_ffi_call+:} false; then :
20177 break
20178fi
20179done
20180if ${ac_cv_search_ffi_call+:} false; then :
20181
20182else
20183 ac_cv_search_ffi_call=no
20184fi
20185rm conftest.$ac_ext
20186LIBS=$ac_func_search_save_LIBS
20187fi
20188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
20189$as_echo "$ac_cv_search_ffi_call" >&6; }
20190ac_res=$ac_cv_search_ffi_call
20191if test "$ac_res" != no; then :
20192 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20193
20194fi
20195
20196 case $ac_cv_search_ffi_call in #(
20197 no) :
b66977f1
DWT
20198
20199
20200pkg_failed=no
7eda51e0
JF
20201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
20202$as_echo_n "checking for LIBFFI... " >&6; }
b66977f1 20203
7eda51e0
JF
20204if test -n "$LIBFFI_CFLAGS"; then
20205 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
12833ad8
JF
20206 elif test -n "$PKG_CONFIG"; then
20207 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
20208 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
20209 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
20210 ac_status=$?
20211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20212 test $ac_status = 0; }; then
7eda51e0 20213 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
83c6fec8 20214 test "x$?" != "x0" && pkg_failed=yes
b66977f1
DWT
20215else
20216 pkg_failed=yes
20217fi
12833ad8
JF
20218 else
20219 pkg_failed=untried
b66977f1 20220fi
7eda51e0
JF
20221if test -n "$LIBFFI_LIBS"; then
20222 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
12833ad8
JF
20223 elif test -n "$PKG_CONFIG"; then
20224 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
20225 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
20226 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
20227 ac_status=$?
20228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20229 test $ac_status = 0; }; then
7eda51e0 20230 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
83c6fec8 20231 test "x$?" != "x0" && pkg_failed=yes
b66977f1
DWT
20232else
20233 pkg_failed=yes
20234fi
12833ad8
JF
20235 else
20236 pkg_failed=untried
b66977f1
DWT
20237fi
20238
20239
20240
20241if test $pkg_failed = yes; then
12833ad8
JF
20242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20243$as_echo "no" >&6; }
b66977f1
DWT
20244
20245if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20246 _pkg_short_errors_supported=yes
20247else
20248 _pkg_short_errors_supported=no
20249fi
20250 if test $_pkg_short_errors_supported = yes; then
83c6fec8 20251 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
b66977f1 20252 else
83c6fec8 20253 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
b66977f1
DWT
20254 fi
20255 # Put the nasty error message in config.log where it belongs
7eda51e0 20256 echo "$LIBFFI_PKG_ERRORS" >&5
b66977f1 20257
7eda51e0
JF
20258 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
20259elif test $pkg_failed = untried; then
20260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20261$as_echo "no" >&6; }
20262 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
b66977f1 20263else
7eda51e0
JF
20264 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
20265 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
20266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20267$as_echo "yes" >&6; }
b66977f1 20268
b66977f1 20269
7eda51e0 20270 for element in `$PKG_CONFIG --cflags libffi`; do
b66977f1 20271 haveit=
d70419f1 20272 for x in $CPPFLAGS; do
7eda51e0
JF
20273
20274 acl_save_prefix="$prefix"
20275 prefix="$acl_final_prefix"
20276 acl_save_exec_prefix="$exec_prefix"
20277 exec_prefix="$acl_final_exec_prefix"
20278 eval x=\"$x\"
20279 exec_prefix="$acl_save_exec_prefix"
20280 prefix="$acl_save_prefix"
20281
20282 if test "X$x" = "X$element"; then
20283 haveit=yes
20284 break
20285 fi
20286 done
20287 if test -z "$haveit"; then
d70419f1 20288 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7eda51e0
JF
20289 fi
20290 done
20291
20292
7eda51e0
JF
20293 for element in `$PKG_CONFIG --libs libffi`; do
20294 haveit=
20295 for x in $LIBS; do
20296
20297 acl_save_prefix="$prefix"
20298 prefix="$acl_final_prefix"
20299 acl_save_exec_prefix="$exec_prefix"
20300 exec_prefix="$acl_final_exec_prefix"
20301 eval x=\"$x\"
20302 exec_prefix="$acl_save_exec_prefix"
20303 prefix="$acl_save_prefix"
20304
20305 if test "X$x" = "X$element"; then
20306 haveit=yes
20307 break
20308 fi
20309 done
20310 if test -z "$haveit"; then
20311 LIBS="${LIBS}${LIBS:+ }$element"
20312 fi
20313 done
20314
20315
20316fi ;; #(
20317 *) :
20318 ;;
20319esac
20320
20321fi
296ee9a6
JF
20322 LTLIBFFI=$LIBS
20323 LIBS=$cy_save
20324
20325
7eda51e0 20326
39ed1631
JF
20327 ac_fn_cxx_check_header_mongrel "$LINENO" "jni.h" "ac_cv_header_jni_h" "$ac_includes_default"
20328if test "x$ac_cv_header_jni_h" = xyes; then :
20329
20330 CY_JAVA=1
20331
20332
20333 cy_save=$LIBS
20334 LIBS=
20335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JNI_GetCreatedJavaVMs" >&5
20336$as_echo_n "checking for library containing JNI_GetCreatedJavaVMs... " >&6; }
20337if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
20338 $as_echo_n "(cached) " >&6
20339else
20340 ac_func_search_save_LIBS=$LIBS
20341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20342/* end confdefs.h. */
20343
20344/* Override any GCC internal prototype to avoid an error.
20345 Use char because int might match the return type of a GCC
20346 builtin and then its argument prototype would still apply. */
20347#ifdef __cplusplus
20348extern "C"
20349#endif
20350char JNI_GetCreatedJavaVMs ();
20351int
20352main ()
20353{
20354return JNI_GetCreatedJavaVMs ();
20355 ;
20356 return 0;
20357}
20358_ACEOF
20359for ac_lib in '' dvm; do
20360 if test -z "$ac_lib"; then
20361 ac_res="none required"
20362 else
20363 ac_res=-l$ac_lib
20364 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20365 fi
20366 if ac_fn_cxx_try_link "$LINENO"; then :
20367 ac_cv_search_JNI_GetCreatedJavaVMs=$ac_res
20368fi
20369rm -f core conftest.err conftest.$ac_objext \
20370 conftest$ac_exeext
20371 if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
20372 break
20373fi
20374done
20375if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
20376
20377else
20378 ac_cv_search_JNI_GetCreatedJavaVMs=no
20379fi
20380rm conftest.$ac_ext
20381LIBS=$ac_func_search_save_LIBS
20382fi
20383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JNI_GetCreatedJavaVMs" >&5
20384$as_echo "$ac_cv_search_JNI_GetCreatedJavaVMs" >&6; }
20385ac_res=$ac_cv_search_JNI_GetCreatedJavaVMs
20386if test "$ac_res" != no; then :
20387 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20388
20389
20390fi
20391
20392 LTJAVA=$LIBS
20393 LIBS=$cy_save
20394
20395
20396
20397else
20398
20399 CY_JAVA=0
20400
20401
20402fi
20403
20404
20405
7eda51e0
JF
20406 ac_ext=mm
20407ac_cpp='$OBJCXXCPP $CPPFLAGS'
20408ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20409ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20410ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
20411
20412
20413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
20414$as_echo_n "checking if we really have Objective C++... " >&6; }
20415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20416/* end confdefs.h. */
20417
20418_ACEOF
20419if ac_fn_objcxx_try_compile "$LINENO"; then :
20420
20421 CY_OBJECTIVEC=1
20422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20423$as_echo "yes" >&6; }
20424
20425else
20426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833ad8 20427$as_echo "no" >&6; }
7eda51e0
JF
20428fi
20429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b66977f1 20430
7eda51e0 20431 if test "x$CY_OBJECTIVEC" = x1; then :
b66977f1 20432
7eda51e0 20433
babf7fe8
JF
20434 cy_save=$LIBS
20435 LIBS=
20436
7eda51e0
JF
20437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
20438$as_echo_n "checking for framework CoreFoundation... " >&6; }
20439if ${ac_cv_framework_CoreFoundation+:} false; then :
b66977f1
DWT
20440 $as_echo_n "(cached) " >&6
20441else
20442
20443 ac_check_framework_save_LIBS=$LIBS
7eda51e0 20444 LIBS="-framework CoreFoundation $LIBS"
b66977f1
DWT
20445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20446/* end confdefs.h. */
20447
7eda51e0 20448 #include <CoreFoundation/CFBase.h>
b66977f1
DWT
20449
20450int
20451main ()
20452{
7eda51e0 20453CFAllocatorGetDefault();
b66977f1
DWT
20454 ;
20455 return 0;
20456}
20457_ACEOF
7eda51e0 20458if ac_fn_objcxx_try_link "$LINENO"; then :
b66977f1 20459
7eda51e0 20460 ac_cv_framework_CoreFoundation=yes
b66977f1
DWT
20461
20462else
7eda51e0 20463 ac_cv_framework_CoreFoundation=no
b66977f1
DWT
20464fi
20465rm -f core conftest.err conftest.$ac_objext \
20466 conftest$ac_exeext conftest.$ac_ext
20467 LIBS=$ac_check_framework_save_LIBS
20468
20469fi
7eda51e0
JF
20470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
20471$as_echo "$ac_cv_framework_CoreFoundation" >&6; }
20472 if test $ac_cv_framework_CoreFoundation = yes; then :
b66977f1
DWT
20473
20474
7eda51e0 20475 for element in "-framework CoreFoundation"; do
b66977f1
DWT
20476 haveit=
20477 for x in $LIBS; do
20478
20479 acl_save_prefix="$prefix"
20480 prefix="$acl_final_prefix"
20481 acl_save_exec_prefix="$exec_prefix"
20482 exec_prefix="$acl_final_exec_prefix"
20483 eval x=\"$x\"
20484 exec_prefix="$acl_save_exec_prefix"
20485 prefix="$acl_save_prefix"
20486
20487 if test "X$x" = "X$element"; then
20488 haveit=yes
20489 break
20490 fi
20491 done
20492 if test -z "$haveit"; then
20493 LIBS="${LIBS}${LIBS:+ }$element"
20494 fi
20495 done
20496
66170b30 20497
66170b30
JF
20498
20499
b66977f1 20500
b66977f1 20501
7eda51e0
JF
20502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
20503$as_echo_n "checking for framework Foundation... " >&6; }
20504if ${ac_cv_framework_Foundation+:} false; then :
20505 $as_echo_n "(cached) " >&6
b66977f1 20506else
b66977f1 20507
7eda51e0
JF
20508 ac_check_framework_save_LIBS=$LIBS
20509 LIBS="-framework Foundation $LIBS"
20510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20511/* end confdefs.h. */
66170b30 20512
7eda51e0 20513 #include <Foundation/NSObject.h>
b66977f1 20514
7eda51e0
JF
20515int
20516main ()
20517{
20518[[NSObject alloc] init];
20519 ;
20520 return 0;
20521}
20522_ACEOF
20523if ac_fn_objcxx_try_link "$LINENO"; then :
b66977f1 20524
7eda51e0 20525 ac_cv_framework_Foundation=yes
b66977f1 20526
7eda51e0
JF
20527else
20528 ac_cv_framework_Foundation=no
20529fi
20530rm -f core conftest.err conftest.$ac_objext \
20531 conftest$ac_exeext conftest.$ac_ext
20532 LIBS=$ac_check_framework_save_LIBS
20533
20534fi
20535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
20536$as_echo "$ac_cv_framework_Foundation" >&6; }
20537 if test $ac_cv_framework_Foundation = yes; then :
b66977f1
DWT
20538
20539
7eda51e0 20540 for element in "-framework Foundation"; do
b66977f1
DWT
20541 haveit=
20542 for x in $LIBS; do
20543
20544 acl_save_prefix="$prefix"
20545 prefix="$acl_final_prefix"
20546 acl_save_exec_prefix="$exec_prefix"
20547 exec_prefix="$acl_final_exec_prefix"
20548 eval x=\"$x\"
20549 exec_prefix="$acl_save_exec_prefix"
20550 prefix="$acl_save_prefix"
20551
20552 if test "X$x" = "X$element"; then
20553 haveit=yes
20554 break
20555 fi
20556 done
20557 if test -z "$haveit"; then
20558 LIBS="${LIBS}${LIBS:+ }$element"
20559 fi
20560 done
20561
7eda51e0
JF
20562 cat >>confdefs.h <<_ACEOF
20563#define HAVE_FRAMEWORK_FOUNDATION 1
20564_ACEOF
20565
b66977f1 20566
7eda51e0 20567fi
b66977f1
DWT
20568
20569
7eda51e0 20570else
b66977f1 20571
b66977f1 20572
7eda51e0
JF
20573 for ac_prog in gnustep-config
20574do
20575 # Extract the first word of "$ac_prog", so it can be a program name with args.
20576set dummy $ac_prog; ac_word=$2
20577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20578$as_echo_n "checking for $ac_word... " >&6; }
20579if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then :
20580 $as_echo_n "(cached) " >&6
b66977f1 20581else
7eda51e0
JF
20582 if test -n "$GNUSTEP_CONFIG"; then
20583 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
b66977f1 20584else
7eda51e0
JF
20585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20586for as_dir in $PATH
20587do
20588 IFS=$as_save_IFS
20589 test -z "$as_dir" && as_dir=.
20590 for ac_exec_ext in '' $ac_executable_extensions; do
20591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20592 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
20593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20594 break 2
20595 fi
20596done
20597 done
20598IFS=$as_save_IFS
b66977f1 20599
b66977f1 20600fi
b66977f1 20601fi
7eda51e0
JF
20602GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
20603if test -n "$GNUSTEP_CONFIG"; then
20604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
20605$as_echo "$GNUSTEP_CONFIG" >&6; }
b66977f1 20606else
7eda51e0 20607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833ad8 20608$as_echo "no" >&6; }
b66977f1 20609fi
66170b30 20610
66170b30 20611
7eda51e0
JF
20612 test -n "$GNUSTEP_CONFIG" && break
20613done
b66977f1 20614
b66977f1 20615
7eda51e0 20616 if test "x$GNUSTEP_CONFIG" != x; then :
b66977f1 20617
b66977f1
DWT
20618
20619
7eda51e0 20620 for element in `$GNUSTEP_CONFIG --objc-flags`; do
b66977f1 20621 haveit=
7eda51e0 20622 for x in $OBJCXXFLAGS; do
b66977f1
DWT
20623
20624 acl_save_prefix="$prefix"
20625 prefix="$acl_final_prefix"
20626 acl_save_exec_prefix="$exec_prefix"
20627 exec_prefix="$acl_final_exec_prefix"
20628 eval x=\"$x\"
20629 exec_prefix="$acl_save_exec_prefix"
20630 prefix="$acl_save_prefix"
20631
20632 if test "X$x" = "X$element"; then
20633 haveit=yes
20634 break
20635 fi
20636 done
babf7fe8
JF
20637 if test -z "$haveit"; then
20638 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
20639 fi
20640 done
a667869d 20641
a667869d 20642
babf7fe8 20643 for element in `$GNUSTEP_CONFIG --base-libs`; do
632b71ea 20644 haveit=
babf7fe8 20645 for x in $LIBS; do
a667869d 20646
632b71ea
DWT
20647 acl_save_prefix="$prefix"
20648 prefix="$acl_final_prefix"
20649 acl_save_exec_prefix="$exec_prefix"
20650 exec_prefix="$acl_final_exec_prefix"
20651 eval x=\"$x\"
20652 exec_prefix="$acl_save_exec_prefix"
20653 prefix="$acl_save_prefix"
20654
20655 if test "X$x" = "X$element"; then
20656 haveit=yes
20657 break
20658 fi
20659 done
20660 if test -z "$haveit"; then
babf7fe8 20661 LIBS="${LIBS}${LIBS:+ }$element"
632b71ea
DWT
20662 fi
20663 done
20664
5053a6d1 20665
babf7fe8
JF
20666else
20667 CY_OBJECTIVEC=0
20668
20669fi
20670
20671fi
20672 LTOBJECTIVEC=$LIBS
20673 LIBS=$cy_save
20674
20675
20676
20677fi
20678
20679 ac_ext=cpp
20680ac_cpp='$CXXCPP $CPPFLAGS'
20681ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20682ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20683ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20684
20685 ;; #(
20686 *) :
20687 ;;
20688esac
20689
39ed1631
JF
20690 if test "x$CY_JAVA" = x1; then
20691 CY_JAVA_TRUE=
20692 CY_JAVA_FALSE='#'
20693else
20694 CY_JAVA_TRUE='#'
20695 CY_JAVA_FALSE=
20696fi
20697
babf7fe8
JF
20698 if test "x$CY_OBJECTIVEC" = x1; then
20699 CY_OBJECTIVEC_TRUE=
20700 CY_OBJECTIVEC_FALSE='#'
20701else
20702 CY_OBJECTIVEC_TRUE='#'
20703 CY_OBJECTIVEC_FALSE=
20704fi
20705
20706
20707
20708 cy_save=$LIBS
20709 LIBS=
20710
20711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
20712$as_echo_n "checking for a readline compatible library... " >&6; }
20713if ${ax_cv_lib_readline+:} false; then :
5053a6d1 20714 $as_echo_n "(cached) " >&6
a667869d 20715else
632b71ea 20716
babf7fe8
JF
20717 ORIG_LIBS="$LIBS"
20718 for readline_lib in readline edit editline; do
20719 for termcap_lib in "" termcap curses ncurses; do
20720 if test -z "$termcap_lib"; then
20721 TRY_LIB="-l$readline_lib"
20722 else
20723 TRY_LIB="-l$readline_lib -l$termcap_lib"
20724 fi
20725 LIBS="$ORIG_LIBS $TRY_LIB"
20726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053a6d1 20727/* end confdefs.h. */
632b71ea 20728
babf7fe8
JF
20729/* Override any GCC internal prototype to avoid an error.
20730 Use char because int might match the return type of a GCC
20731 builtin and then its argument prototype would still apply. */
20732#ifdef __cplusplus
20733extern "C"
20734#endif
20735char readline ();
5053a6d1
DWT
20736int
20737main ()
20738{
babf7fe8 20739return readline ();
5053a6d1
DWT
20740 ;
20741 return 0;
20742}
20743_ACEOF
babf7fe8
JF
20744if ac_fn_cxx_try_link "$LINENO"; then :
20745 ax_cv_lib_readline="$TRY_LIB"
5053a6d1
DWT
20746fi
20747rm -f core conftest.err conftest.$ac_objext \
20748 conftest$ac_exeext conftest.$ac_ext
babf7fe8
JF
20749 if test -n "$ax_cv_lib_readline"; then
20750 break
20751 fi
20752 done
20753 if test -n "$ax_cv_lib_readline"; then
20754 break
20755 fi
20756 done
20757 if test -z "$ax_cv_lib_readline"; then
20758 ax_cv_lib_readline="no"
20759 fi
20760 LIBS="$ORIG_LIBS"
20761
20762fi
20763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
20764$as_echo "$ax_cv_lib_readline" >&6; }
20765
20766 if test "$ax_cv_lib_readline" != "no"; then
20767 LIBS="$LIBS $ax_cv_lib_readline"
20768
20769$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
20770
20771 for ac_header in readline.h readline/readline.h
20772do :
20773 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20774ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20775if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20776 cat >>confdefs.h <<_ACEOF
20777#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20778_ACEOF
20779
20780fi
20781
20782done
20783
20784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
20785$as_echo_n "checking whether readline supports history... " >&6; }
20786if ${ax_cv_lib_readline_history+:} false; then :
20787 $as_echo_n "(cached) " >&6
20788else
20789
20790 ax_cv_lib_readline_history="no"
7eda51e0
JF
20791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20792/* end confdefs.h. */
5053a6d1 20793
babf7fe8
JF
20794/* Override any GCC internal prototype to avoid an error.
20795 Use char because int might match the return type of a GCC
20796 builtin and then its argument prototype would still apply. */
20797#ifdef __cplusplus
20798extern "C"
20799#endif
20800char add_history ();
058f1bc8
DWT
20801int
20802main ()
20803{
babf7fe8 20804return add_history ();
058f1bc8
DWT
20805 ;
20806 return 0;
20807}
20808_ACEOF
babf7fe8
JF
20809if ac_fn_cxx_try_link "$LINENO"; then :
20810 ax_cv_lib_readline_history="yes"
058f1bc8
DWT
20811fi
20812rm -f core conftest.err conftest.$ac_objext \
20813 conftest$ac_exeext conftest.$ac_ext
a667869d 20814
a667869d 20815fi
babf7fe8
JF
20816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
20817$as_echo "$ax_cv_lib_readline_history" >&6; }
20818 if test "$ax_cv_lib_readline_history" = "yes"; then
058f1bc8 20819
babf7fe8 20820$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
058f1bc8 20821
babf7fe8
JF
20822 for ac_header in history.h readline/history.h
20823do :
20824 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20825ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20826if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20827 cat >>confdefs.h <<_ACEOF
20828#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7eda51e0 20829_ACEOF
babf7fe8 20830
7eda51e0 20831fi
058f1bc8 20832
babf7fe8 20833done
058f1bc8 20834
babf7fe8 20835 fi
7eda51e0 20836 fi
058f1bc8 20837
babf7fe8
JF
20838 LTLIBREADLINE=$LIBS
20839 LIBS=$cy_save
058f1bc8 20840
058f1bc8 20841
babf7fe8
JF
20842case $ax_cv_lib_readline in #(
20843 no) :
20844 as_fn_error $? "missing \"libreadline\"" "$LINENO" 5 ;; #(
20845 *) :
20846 ;;
20847esac
058f1bc8
DWT
20848
20849
babf7fe8
JF
20850 cy_save=$LIBS
20851 LIBS=
20852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cur_term" >&5
20853$as_echo_n "checking for library containing cur_term... " >&6; }
20854if ${ac_cv_search_cur_term+:} false; then :
7eda51e0
JF
20855 $as_echo_n "(cached) " >&6
20856else
babf7fe8
JF
20857 ac_func_search_save_LIBS=$LIBS
20858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7eda51e0
JF
20859/* end confdefs.h. */
20860
babf7fe8
JF
20861/* Override any GCC internal prototype to avoid an error.
20862 Use char because int might match the return type of a GCC
20863 builtin and then its argument prototype would still apply. */
7eda51e0 20864#ifdef __cplusplus
babf7fe8 20865extern "C"
7eda51e0 20866#endif
babf7fe8 20867char cur_term ();
7eda51e0
JF
20868int
20869main ()
20870{
babf7fe8 20871return cur_term ();
7eda51e0
JF
20872 ;
20873 return 0;
20874}
20875_ACEOF
a93f15c0 20876for ac_lib in '' termcap ncurses; do
babf7fe8
JF
20877 if test -z "$ac_lib"; then
20878 ac_res="none required"
20879 else
20880 ac_res=-l$ac_lib
20881 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20882 fi
20883 if ac_fn_cxx_try_link "$LINENO"; then :
20884 ac_cv_search_cur_term=$ac_res
7eda51e0 20885fi
babf7fe8
JF
20886rm -f core conftest.err conftest.$ac_objext \
20887 conftest$ac_exeext
20888 if ${ac_cv_search_cur_term+:} false; then :
20889 break
7eda51e0 20890fi
babf7fe8
JF
20891done
20892if ${ac_cv_search_cur_term+:} false; then :
058f1bc8 20893
babf7fe8
JF
20894else
20895 ac_cv_search_cur_term=no
20896fi
20897rm conftest.$ac_ext
20898LIBS=$ac_func_search_save_LIBS
20899fi
20900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cur_term" >&5
20901$as_echo "$ac_cv_search_cur_term" >&6; }
20902ac_res=$ac_cv_search_cur_term
20903if test "$ac_res" != no; then :
20904 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
058f1bc8 20905
babf7fe8 20906fi
058f1bc8 20907
babf7fe8
JF
20908 LTLIBTERMCAP=$LIBS
20909 LIBS=$cy_save
058f1bc8 20910
058f1bc8 20911
66170b30
JF
20912
20913
3615a2f7
JF
20914
20915
9777bd50
JF
20916SO=$acl_shlibext
20917
e1cce270 20918
7eda51e0
JF
20919if test "x$CY_EXECUTE" = x1; then :
20920
20921 ac_fn_cxx_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
ee134472 20922if test "x$ac_cv_header_mach_mach_h" = xyes; then :
e1cce270 20923
7eda51e0 20924 if test -n "$ac_tool_prefix"; then
a243b558 20925 for ac_prog in lipo
794e88e7
DWT
20926 do
20927 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20928set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20930$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20931if ${ac_cv_prog__LIPO+:} false; then :
794e88e7
DWT
20932 $as_echo_n "(cached) " >&6
20933else
a243b558
JF
20934 if test -n "$_LIPO"; then
20935 ac_cv_prog__LIPO="$_LIPO" # Let the user override the test.
794e88e7
DWT
20936else
20937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20938for as_dir in $PATH
20939do
20940 IFS=$as_save_IFS
20941 test -z "$as_dir" && as_dir=.
20942 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20944 ac_cv_prog__LIPO="$ac_tool_prefix$ac_prog"
794e88e7
DWT
20945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20946 break 2
20947 fi
20948done
20949 done
20950IFS=$as_save_IFS
20951
20952fi
20953fi
a243b558
JF
20954_LIPO=$ac_cv_prog__LIPO
20955if test -n "$_LIPO"; then
20956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_LIPO" >&5
20957$as_echo "$_LIPO" >&6; }
794e88e7
DWT
20958else
20959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20960$as_echo "no" >&6; }
20961fi
20962
20963
a243b558 20964 test -n "$_LIPO" && break
794e88e7
DWT
20965 done
20966fi
a243b558
JF
20967if test -z "$_LIPO"; then
20968 ac_ct__LIPO=$_LIPO
20969 for ac_prog in lipo
794e88e7
DWT
20970do
20971 # Extract the first word of "$ac_prog", so it can be a program name with args.
20972set dummy $ac_prog; ac_word=$2
20973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20974$as_echo_n "checking for $ac_word... " >&6; }
a243b558 20975if ${ac_cv_prog_ac_ct__LIPO+:} false; then :
794e88e7
DWT
20976 $as_echo_n "(cached) " >&6
20977else
a243b558
JF
20978 if test -n "$ac_ct__LIPO"; then
20979 ac_cv_prog_ac_ct__LIPO="$ac_ct__LIPO" # Let the user override the test.
794e88e7
DWT
20980else
20981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20982for as_dir in $PATH
20983do
20984 IFS=$as_save_IFS
20985 test -z "$as_dir" && as_dir=.
20986 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 20987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 20988 ac_cv_prog_ac_ct__LIPO="$ac_prog"
794e88e7
DWT
20989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20990 break 2
20991 fi
20992done
20993 done
20994IFS=$as_save_IFS
20995
20996fi
20997fi
a243b558
JF
20998ac_ct__LIPO=$ac_cv_prog_ac_ct__LIPO
20999if test -n "$ac_ct__LIPO"; then
21000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__LIPO" >&5
21001$as_echo "$ac_ct__LIPO" >&6; }
794e88e7
DWT
21002else
21003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21004$as_echo "no" >&6; }
21005fi
21006
21007
a243b558 21008 test -n "$ac_ct__LIPO" && break
794e88e7
DWT
21009done
21010
a243b558
JF
21011 if test "x$ac_ct__LIPO" = x; then
21012 _LIPO="as_fn_error $? "missing \"lipo\"" "$LINENO" 5"
794e88e7
DWT
21013 else
21014 case $cross_compiling:$ac_tool_warned in
21015yes:)
21016{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21017$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21018ac_tool_warned=yes ;;
e1cce270 21019esac
a243b558 21020 _LIPO=$ac_ct__LIPO
794e88e7
DWT
21021 fi
21022fi
21023
7eda51e0 21024 if test -n "$ac_tool_prefix"; then
a243b558 21025 for ac_prog in nm
794e88e7
DWT
21026 do
21027 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21028set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21030$as_echo_n "checking for $ac_word... " >&6; }
a243b558 21031if ${ac_cv_prog__NM+:} false; then :
794e88e7
DWT
21032 $as_echo_n "(cached) " >&6
21033else
a243b558
JF
21034 if test -n "$_NM"; then
21035 ac_cv_prog__NM="$_NM" # Let the user override the test.
794e88e7
DWT
21036else
21037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21038for as_dir in $PATH
21039do
21040 IFS=$as_save_IFS
21041 test -z "$as_dir" && as_dir=.
21042 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 21043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 21044 ac_cv_prog__NM="$ac_tool_prefix$ac_prog"
794e88e7
DWT
21045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21046 break 2
21047 fi
21048done
21049 done
21050IFS=$as_save_IFS
21051
21052fi
21053fi
a243b558
JF
21054_NM=$ac_cv_prog__NM
21055if test -n "$_NM"; then
21056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_NM" >&5
21057$as_echo "$_NM" >&6; }
794e88e7
DWT
21058else
21059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21060$as_echo "no" >&6; }
21061fi
21062
21063
a243b558 21064 test -n "$_NM" && break
794e88e7
DWT
21065 done
21066fi
a243b558
JF
21067if test -z "$_NM"; then
21068 ac_ct__NM=$_NM
21069 for ac_prog in nm
794e88e7
DWT
21070do
21071 # Extract the first word of "$ac_prog", so it can be a program name with args.
21072set dummy $ac_prog; ac_word=$2
21073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21074$as_echo_n "checking for $ac_word... " >&6; }
a243b558 21075if ${ac_cv_prog_ac_ct__NM+:} false; then :
794e88e7
DWT
21076 $as_echo_n "(cached) " >&6
21077else
a243b558
JF
21078 if test -n "$ac_ct__NM"; then
21079 ac_cv_prog_ac_ct__NM="$ac_ct__NM" # Let the user override the test.
794e88e7
DWT
21080else
21081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21082for as_dir in $PATH
21083do
21084 IFS=$as_save_IFS
21085 test -z "$as_dir" && as_dir=.
21086 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 21087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 21088 ac_cv_prog_ac_ct__NM="$ac_prog"
794e88e7
DWT
21089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21090 break 2
21091 fi
21092done
21093 done
21094IFS=$as_save_IFS
21095
21096fi
21097fi
a243b558
JF
21098ac_ct__NM=$ac_cv_prog_ac_ct__NM
21099if test -n "$ac_ct__NM"; then
21100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__NM" >&5
21101$as_echo "$ac_ct__NM" >&6; }
794e88e7
DWT
21102else
21103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21104$as_echo "no" >&6; }
21105fi
21106
21107
a243b558 21108 test -n "$ac_ct__NM" && break
794e88e7
DWT
21109done
21110
a243b558
JF
21111 if test "x$ac_ct__NM" = x; then
21112 _NM="as_fn_error $? "missing \"nm\"" "$LINENO" 5"
794e88e7
DWT
21113 else
21114 case $cross_compiling:$ac_tool_warned in
21115yes:)
21116{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21117$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21118ac_tool_warned=yes ;;
21119esac
a243b558 21120 _NM=$ac_ct__NM
794e88e7
DWT
21121 fi
21122fi
21123
7eda51e0 21124 if test -n "$ac_tool_prefix"; then
a243b558 21125 for ac_prog in otool
794e88e7
DWT
21126 do
21127 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21128set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21130$as_echo_n "checking for $ac_word... " >&6; }
a243b558 21131if ${ac_cv_prog__OTOOL+:} false; then :
794e88e7
DWT
21132 $as_echo_n "(cached) " >&6
21133else
a243b558
JF
21134 if test -n "$_OTOOL"; then
21135 ac_cv_prog__OTOOL="$_OTOOL" # Let the user override the test.
794e88e7
DWT
21136else
21137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21138for as_dir in $PATH
21139do
21140 IFS=$as_save_IFS
21141 test -z "$as_dir" && as_dir=.
21142 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 21143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 21144 ac_cv_prog__OTOOL="$ac_tool_prefix$ac_prog"
794e88e7
DWT
21145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21146 break 2
21147 fi
21148done
21149 done
21150IFS=$as_save_IFS
21151
21152fi
21153fi
a243b558
JF
21154_OTOOL=$ac_cv_prog__OTOOL
21155if test -n "$_OTOOL"; then
21156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_OTOOL" >&5
21157$as_echo "$_OTOOL" >&6; }
794e88e7
DWT
21158else
21159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21160$as_echo "no" >&6; }
21161fi
21162
21163
a243b558 21164 test -n "$_OTOOL" && break
794e88e7
DWT
21165 done
21166fi
a243b558
JF
21167if test -z "$_OTOOL"; then
21168 ac_ct__OTOOL=$_OTOOL
21169 for ac_prog in otool
794e88e7
DWT
21170do
21171 # Extract the first word of "$ac_prog", so it can be a program name with args.
21172set dummy $ac_prog; ac_word=$2
21173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21174$as_echo_n "checking for $ac_word... " >&6; }
a243b558 21175if ${ac_cv_prog_ac_ct__OTOOL+:} false; then :
794e88e7
DWT
21176 $as_echo_n "(cached) " >&6
21177else
a243b558
JF
21178 if test -n "$ac_ct__OTOOL"; then
21179 ac_cv_prog_ac_ct__OTOOL="$ac_ct__OTOOL" # Let the user override the test.
794e88e7
DWT
21180else
21181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21182for as_dir in $PATH
21183do
21184 IFS=$as_save_IFS
21185 test -z "$as_dir" && as_dir=.
21186 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 21187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 21188 ac_cv_prog_ac_ct__OTOOL="$ac_prog"
794e88e7
DWT
21189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21190 break 2
21191 fi
21192done
21193 done
21194IFS=$as_save_IFS
21195
21196fi
21197fi
a243b558
JF
21198ac_ct__OTOOL=$ac_cv_prog_ac_ct__OTOOL
21199if test -n "$ac_ct__OTOOL"; then
21200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct__OTOOL" >&5
21201$as_echo "$ac_ct__OTOOL" >&6; }
794e88e7
DWT
21202else
21203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21204$as_echo "no" >&6; }
21205fi
21206
21207
a243b558 21208 test -n "$ac_ct__OTOOL" && break
794e88e7
DWT
21209done
21210
a243b558
JF
21211 if test "x$ac_ct__OTOOL" = x; then
21212 _OTOOL="as_fn_error $? "missing \"otool\"" "$LINENO" 5"
794e88e7
DWT
21213 else
21214 case $cross_compiling:$ac_tool_warned in
21215yes:)
21216{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21217$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21218ac_tool_warned=yes ;;
21219esac
a243b558 21220 _OTOOL=$ac_ct__OTOOL
794e88e7
DWT
21221 fi
21222fi
21223
7eda51e0 21224 CY_ATTACH_GROUP=procmod
794e88e7 21225
7eda51e0 21226 CY_MACH=1
e1cce270
DWT
21227
21228fi
21229
21230
7eda51e0 21231fi
a243b558
JF
21232 if test "x$CY_MACH" = x1; then
21233 CY_MACH_TRUE=
21234 CY_MACH_FALSE='#'
21235else
21236 CY_MACH_TRUE='#'
21237 CY_MACH_FALSE=
47aaa820 21238fi
9c60689e 21239
66170b30 21240
a243b558
JF
21241ac_config_files="$ac_config_files Makefile"
21242
9c60689e
DWT
21243cat >confcache <<\_ACEOF
21244# This file is a shell script that caches the results of configure
21245# tests run on this system so they can be shared between configure
21246# scripts and configure runs, see configure's option --config-cache.
21247# It is not useful on other systems. If it contains results you don't
21248# want to keep, you may remove or edit it.
21249#
21250# config.status only pays attention to the cache file if you give it
21251# the --recheck option to rerun configure.
21252#
21253# `ac_cv_env_foo' variables (set or unset) will be overridden when
21254# loading this file, other *unset* `ac_cv_foo' will be assigned the
21255# following values.
21256
21257_ACEOF
21258
21259# The following way of writing the cache mishandles newlines in values,
21260# but we know of no workaround that is simple, portable, and efficient.
21261# So, we kill variables containing newlines.
21262# Ultrix sh set writes to stderr and can't be redirected directly,
21263# and sets the high bit in the cache file unless we assign to the vars.
21264(
21265 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21266 eval ac_val=\$$ac_var
21267 case $ac_val in #(
21268 *${as_nl}*)
21269 case $ac_var in #(
21270 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21271$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21272 esac
21273 case $ac_var in #(
21274 _ | IFS | as_nl) ;; #(
21275 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21276 *) { eval $ac_var=; unset $ac_var;} ;;
21277 esac ;;
21278 esac
21279 done
21280
21281 (set) 2>&1 |
21282 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21283 *${as_nl}ac_space=\ *)
21284 # `set' does not quote correctly, so add quotes: double-quote
21285 # substitution turns \\\\ into \\, and sed turns \\ into \.
21286 sed -n \
21287 "s/'/'\\\\''/g;
21288 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21289 ;; #(
21290 *)
21291 # `set' quotes correctly as required by POSIX, so do not add quotes.
21292 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21293 ;;
21294 esac |
21295 sort
21296) |
21297 sed '
21298 /^ac_cv_env_/b end
21299 t clear
21300 :clear
21301 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21302 t end
21303 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21304 :end' >>confcache
21305if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21306 if test -w "$cache_file"; then
ee134472 21307 if test "x$cache_file" != "x/dev/null"; then
9c60689e
DWT
21308 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21309$as_echo "$as_me: updating cache $cache_file" >&6;}
ee134472
JF
21310 if test ! -f "$cache_file" || test -h "$cache_file"; then
21311 cat confcache >"$cache_file"
21312 else
21313 case $cache_file in #(
21314 */* | ?:*)
21315 mv -f confcache "$cache_file"$$ &&
21316 mv -f "$cache_file"$$ "$cache_file" ;; #(
21317 *)
21318 mv -f confcache "$cache_file" ;;
21319 esac
21320 fi
21321 fi
9c60689e
DWT
21322 else
21323 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21324$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21325 fi
21326fi
21327rm -f confcache
21328
21329test "x$prefix" = xNONE && prefix=$ac_default_prefix
21330# Let make expand exec_prefix.
21331test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21332
296ee9a6 21333DEFS=-DHAVE_CONFIG_H
9c60689e
DWT
21334
21335ac_libobjs=
21336ac_ltlibobjs=
12833ad8 21337U=
9c60689e
DWT
21338for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21339 # 1. Remove the extension, and $U if already installed.
21340 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21341 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21342 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21343 # will be set to the directory where LIBOBJS objects are built.
21344 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21345 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21346done
21347LIBOBJS=$ac_libobjs
21348
21349LTLIBOBJS=$ac_ltlibobjs
21350
21351
66170b30
JF
21352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21353$as_echo_n "checking that generated files are newer than configure... " >&6; }
21354 if test -n "$am_sleep_pid"; then
21355 # Hide warnings about reused PIDs.
21356 wait $am_sleep_pid 2>/dev/null
21357 fi
21358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21359$as_echo "done" >&6; }
21360 if test -n "$EXEEXT"; then
21361 am__EXEEXT_TRUE=
21362 am__EXEEXT_FALSE='#'
21363else
21364 am__EXEEXT_TRUE='#'
21365 am__EXEEXT_FALSE=
21366fi
21367
babf7fe8
JF
21368if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21369 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
21370Usually this means the macro was only invoked conditionally." "$LINENO" 5
21371fi
66170b30
JF
21372if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21373 as_fn_error $? "conditional \"AMDEP\" was never defined.
21374Usually this means the macro was only invoked conditionally." "$LINENO" 5
21375fi
a93f15c0
JF
21376if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21377 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21378Usually this means the macro was only invoked conditionally." "$LINENO" 5
21379fi
66170b30
JF
21380if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21381 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
21382Usually this means the macro was only invoked conditionally." "$LINENO" 5
21383fi
21384if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then
21385 as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined.
21386Usually this means the macro was only invoked conditionally." "$LINENO" 5
21387fi
a93f15c0
JF
21388if test -z "${CY_CONSOLE_TRUE}" && test -z "${CY_CONSOLE_FALSE}"; then
21389 as_fn_error $? "conditional \"CY_CONSOLE\" was never defined.
babf7fe8
JF
21390Usually this means the macro was only invoked conditionally." "$LINENO" 5
21391fi
a243b558
JF
21392if test -z "${CY_EXECUTE_TRUE}" && test -z "${CY_EXECUTE_FALSE}"; then
21393 as_fn_error $? "conditional \"CY_EXECUTE\" was never defined.
21394Usually this means the macro was only invoked conditionally." "$LINENO" 5
21395fi
39ed1631
JF
21396if test -z "${CY_JAVA_TRUE}" && test -z "${CY_JAVA_FALSE}"; then
21397 as_fn_error $? "conditional \"CY_JAVA\" was never defined.
21398Usually this means the macro was only invoked conditionally." "$LINENO" 5
21399fi
a243b558
JF
21400if test -z "${CY_OBJECTIVEC_TRUE}" && test -z "${CY_OBJECTIVEC_FALSE}"; then
21401 as_fn_error $? "conditional \"CY_OBJECTIVEC\" was never defined.
21402Usually this means the macro was only invoked conditionally." "$LINENO" 5
21403fi
21404if test -z "${CY_MACH_TRUE}" && test -z "${CY_MACH_FALSE}"; then
21405 as_fn_error $? "conditional \"CY_MACH\" was never defined.
21406Usually this means the macro was only invoked conditionally." "$LINENO" 5
21407fi
9c60689e 21408
ee134472 21409: "${CONFIG_STATUS=./config.status}"
9c60689e
DWT
21410ac_write_fail=0
21411ac_clean_files_save=$ac_clean_files
21412ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21413{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21414$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21415as_write_fail=0
21416cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21417#! $SHELL
21418# Generated by $as_me.
21419# Run this file to recreate the current configuration.
21420# Compiler output produced by configure, useful for debugging
21421# configure, is in config.log if it exists.
21422
21423debug=false
21424ac_cs_recheck=false
21425ac_cs_silent=false
21426
21427SHELL=\${CONFIG_SHELL-$SHELL}
21428export SHELL
21429_ASEOF
21430cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21431## -------------------- ##
21432## M4sh Initialization. ##
21433## -------------------- ##
21434
21435# Be more Bourne compatible
21436DUALCASE=1; export DUALCASE # for MKS sh
21437if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21438 emulate sh
21439 NULLCMD=:
21440 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21441 # is contrary to our usage. Disable this feature.
21442 alias -g '${1+"$@"}'='"$@"'
21443 setopt NO_GLOB_SUBST
21444else
21445 case `(set -o) 2>/dev/null` in #(
21446 *posix*) :
21447 set -o posix ;; #(
21448 *) :
21449 ;;
21450esac
21451fi
21452
21453
21454as_nl='
21455'
21456export as_nl
21457# Printing a long string crashes Solaris 7 /usr/bin/printf.
21458as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21459as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21460as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21461# Prefer a ksh shell builtin over an external printf program on Solaris,
21462# but without wasting forks for bash or zsh.
21463if test -z "$BASH_VERSION$ZSH_VERSION" \
21464 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21465 as_echo='print -r --'
21466 as_echo_n='print -rn --'
21467elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21468 as_echo='printf %s\n'
21469 as_echo_n='printf %s'
21470else
21471 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21472 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21473 as_echo_n='/usr/ucb/echo -n'
21474 else
21475 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21476 as_echo_n_body='eval
21477 arg=$1;
21478 case $arg in #(
21479 *"$as_nl"*)
21480 expr "X$arg" : "X\\(.*\\)$as_nl";
21481 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21482 esac;
21483 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21484 '
21485 export as_echo_n_body
21486 as_echo_n='sh -c $as_echo_n_body as_echo'
21487 fi
21488 export as_echo_body
21489 as_echo='sh -c $as_echo_body as_echo'
21490fi
21491
21492# The user is always right.
21493if test "${PATH_SEPARATOR+set}" != set; then
21494 PATH_SEPARATOR=:
21495 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21496 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21497 PATH_SEPARATOR=';'
21498 }
21499fi
21500
21501
21502# IFS
21503# We need space, tab and new line, in precisely that order. Quoting is
21504# there to prevent editors from complaining about space-tab.
21505# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21506# splitting by setting IFS to empty value.)
21507IFS=" "" $as_nl"
21508
21509# Find who we are. Look in the path if we contain no directory separator.
ee134472 21510as_myself=
9c60689e
DWT
21511case $0 in #((
21512 *[\\/]* ) as_myself=$0 ;;
21513 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21514for as_dir in $PATH
21515do
21516 IFS=$as_save_IFS
21517 test -z "$as_dir" && as_dir=.
21518 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21519 done
21520IFS=$as_save_IFS
21521
21522 ;;
21523esac
21524# We did not find ourselves, most probably we were run as `sh COMMAND'
21525# in which case we are not to be found in the path.
21526if test "x$as_myself" = x; then
21527 as_myself=$0
21528fi
21529if test ! -f "$as_myself"; then
21530 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21531 exit 1
21532fi
21533
21534# Unset variables that we do not need and which cause bugs (e.g. in
21535# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21536# suppresses any "Segmentation fault" message there. '((' could
21537# trigger a bug in pdksh 5.2.14.
21538for as_var in BASH_ENV ENV MAIL MAILPATH
21539do eval test x\${$as_var+set} = xset \
21540 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21541done
21542PS1='$ '
21543PS2='> '
21544PS4='+ '
21545
21546# NLS nuisances.
21547LC_ALL=C
21548export LC_ALL
21549LANGUAGE=C
21550export LANGUAGE
21551
21552# CDPATH.
21553(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21554
21555
12833ad8
JF
21556# as_fn_error STATUS ERROR [LINENO LOG_FD]
21557# ----------------------------------------
9c60689e
DWT
21558# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21559# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12833ad8 21560# script with STATUS, using 1 if that was 0.
9c60689e
DWT
21561as_fn_error ()
21562{
12833ad8
JF
21563 as_status=$1; test $as_status -eq 0 && as_status=1
21564 if test "$4"; then
21565 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21566 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9c60689e 21567 fi
12833ad8 21568 $as_echo "$as_me: error: $2" >&2
9c60689e
DWT
21569 as_fn_exit $as_status
21570} # as_fn_error
21571
21572
21573# as_fn_set_status STATUS
21574# -----------------------
21575# Set $? to STATUS, without forking.
21576as_fn_set_status ()
21577{
21578 return $1
21579} # as_fn_set_status
21580
21581# as_fn_exit STATUS
21582# -----------------
21583# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21584as_fn_exit ()
21585{
21586 set +e
21587 as_fn_set_status $1
21588 exit $1
21589} # as_fn_exit
21590
21591# as_fn_unset VAR
21592# ---------------
21593# Portably unset VAR.
21594as_fn_unset ()
21595{
21596 { eval $1=; unset $1;}
21597}
21598as_unset=as_fn_unset
21599# as_fn_append VAR VALUE
21600# ----------------------
21601# Append the text in VALUE to the end of the definition contained in VAR. Take
21602# advantage of any shell optimizations that allow amortized linear growth over
21603# repeated appends, instead of the typical quadratic growth present in naive
21604# implementations.
21605if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21606 eval 'as_fn_append ()
21607 {
21608 eval $1+=\$2
21609 }'
21610else
21611 as_fn_append ()
21612 {
21613 eval $1=\$$1\$2
21614 }
21615fi # as_fn_append
21616
21617# as_fn_arith ARG...
21618# ------------------
21619# Perform arithmetic evaluation on the ARGs, and store the result in the
21620# global $as_val. Take advantage of shells that can avoid forks. The arguments
21621# must be portable across $(()) and expr.
21622if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21623 eval 'as_fn_arith ()
21624 {
21625 as_val=$(( $* ))
21626 }'
21627else
21628 as_fn_arith ()
21629 {
21630 as_val=`expr "$@" || test $? -eq 1`
21631 }
21632fi # as_fn_arith
21633
21634
21635if expr a : '\(a\)' >/dev/null 2>&1 &&
21636 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21637 as_expr=expr
21638else
21639 as_expr=false
21640fi
21641
21642if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21643 as_basename=basename
21644else
21645 as_basename=false
21646fi
21647
21648if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21649 as_dirname=dirname
21650else
21651 as_dirname=false
21652fi
21653
21654as_me=`$as_basename -- "$0" ||
21655$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21656 X"$0" : 'X\(//\)$' \| \
21657 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21658$as_echo X/"$0" |
21659 sed '/^.*\/\([^/][^/]*\)\/*$/{
21660 s//\1/
21661 q
21662 }
21663 /^X\/\(\/\/\)$/{
21664 s//\1/
21665 q
21666 }
21667 /^X\/\(\/\).*/{
21668 s//\1/
21669 q
21670 }
21671 s/.*/./; q'`
21672
21673# Avoid depending upon Character Ranges.
21674as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21675as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21676as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21677as_cr_digits='0123456789'
21678as_cr_alnum=$as_cr_Letters$as_cr_digits
21679
21680ECHO_C= ECHO_N= ECHO_T=
21681case `echo -n x` in #(((((
21682-n*)
21683 case `echo 'xy\c'` in
21684 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21685 xy) ECHO_C='\c';;
21686 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21687 ECHO_T=' ';;
21688 esac;;
21689*)
21690 ECHO_N='-n';;
21691esac
21692
21693rm -f conf$$ conf$$.exe conf$$.file
21694if test -d conf$$.dir; then
21695 rm -f conf$$.dir/conf$$.file
21696else
21697 rm -f conf$$.dir
21698 mkdir conf$$.dir 2>/dev/null
21699fi
21700if (echo >conf$$.file) 2>/dev/null; then
21701 if ln -s conf$$.file conf$$ 2>/dev/null; then
21702 as_ln_s='ln -s'
21703 # ... but there are two gotchas:
21704 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21705 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53ba6704 21706 # In both cases, we have to default to `cp -pR'.
9c60689e 21707 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53ba6704 21708 as_ln_s='cp -pR'
9c60689e
DWT
21709 elif ln conf$$.file conf$$ 2>/dev/null; then
21710 as_ln_s=ln
21711 else
53ba6704 21712 as_ln_s='cp -pR'
9c60689e
DWT
21713 fi
21714else
53ba6704 21715 as_ln_s='cp -pR'
9c60689e
DWT
21716fi
21717rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21718rmdir conf$$.dir 2>/dev/null
21719
21720
21721# as_fn_mkdir_p
21722# -------------
21723# Create "$as_dir" as a directory, including parents if necessary.
21724as_fn_mkdir_p ()
21725{
21726
21727 case $as_dir in #(
21728 -*) as_dir=./$as_dir;;
21729 esac
21730 test -d "$as_dir" || eval $as_mkdir_p || {
21731 as_dirs=
21732 while :; do
21733 case $as_dir in #(
21734 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21735 *) as_qdir=$as_dir;;
21736 esac
21737 as_dirs="'$as_qdir' $as_dirs"
21738 as_dir=`$as_dirname -- "$as_dir" ||
21739$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21740 X"$as_dir" : 'X\(//\)[^/]' \| \
21741 X"$as_dir" : 'X\(//\)$' \| \
21742 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21743$as_echo X"$as_dir" |
21744 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21745 s//\1/
21746 q
21747 }
21748 /^X\(\/\/\)[^/].*/{
21749 s//\1/
21750 q
21751 }
21752 /^X\(\/\/\)$/{
21753 s//\1/
21754 q
21755 }
21756 /^X\(\/\).*/{
21757 s//\1/
21758 q
21759 }
21760 s/.*/./; q'`
21761 test -d "$as_dir" && break
21762 done
21763 test -z "$as_dirs" || eval "mkdir $as_dirs"
12833ad8 21764 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9c60689e
DWT
21765
21766
21767} # as_fn_mkdir_p
21768if mkdir -p . 2>/dev/null; then
21769 as_mkdir_p='mkdir -p "$as_dir"'
21770else
21771 test -d ./-p && rmdir ./-p
21772 as_mkdir_p=false
21773fi
21774
53ba6704
JF
21775
21776# as_fn_executable_p FILE
21777# -----------------------
21778# Test if FILE is an executable regular file.
21779as_fn_executable_p ()
21780{
21781 test -f "$1" && test -x "$1"
21782} # as_fn_executable_p
21783as_test_x='test -x'
21784as_executable_p=as_fn_executable_p
9c60689e
DWT
21785
21786# Sed expression to map a string onto a valid CPP name.
21787as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21788
21789# Sed expression to map a string onto a valid variable name.
21790as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21791
21792
21793exec 6>&1
21794## ----------------------------------- ##
21795## Main body of $CONFIG_STATUS script. ##
21796## ----------------------------------- ##
21797_ASEOF
21798test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21799
21800cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21801# Save the log message, to keep $0 and so on meaningful, and to
21802# report actual input values of CONFIG_FILES etc. instead of their
21803# values after options handling.
21804ac_log="
21805This file was extended by Cycript $as_me 0.9, which was
53ba6704 21806generated by GNU Autoconf 2.69. Invocation command line was
9c60689e
DWT
21807
21808 CONFIG_FILES = $CONFIG_FILES
21809 CONFIG_HEADERS = $CONFIG_HEADERS
21810 CONFIG_LINKS = $CONFIG_LINKS
21811 CONFIG_COMMANDS = $CONFIG_COMMANDS
21812 $ $0 $@
21813
21814on `(hostname || uname -n) 2>/dev/null | sed 1q`
21815"
21816
21817_ACEOF
21818
21819case $ac_config_files in *"
21820"*) set x $ac_config_files; shift; ac_config_files=$*;;
21821esac
21822
296ee9a6
JF
21823case $ac_config_headers in *"
21824"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21825esac
9c60689e
DWT
21826
21827
21828cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21829# Files that config.status was made for.
21830config_files="$ac_config_files"
296ee9a6 21831config_headers="$ac_config_headers"
9c60689e
DWT
21832config_commands="$ac_config_commands"
21833
21834_ACEOF
21835
21836cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21837ac_cs_usage="\
21838\`$as_me' instantiates files and other configuration actions
21839from templates according to the current configuration. Unless the files
21840and actions are specified as TAGs, all are instantiated by default.
21841
21842Usage: $0 [OPTION]... [TAG]...
21843
21844 -h, --help print this help, then exit
21845 -V, --version print version number and configuration settings, then exit
21846 --config print configuration, then exit
21847 -q, --quiet, --silent
21848 do not print progress messages
21849 -d, --debug don't remove temporary files
21850 --recheck update $as_me by reconfiguring in the same conditions
21851 --file=FILE[:TEMPLATE]
21852 instantiate the configuration file FILE
296ee9a6
JF
21853 --header=FILE[:TEMPLATE]
21854 instantiate the configuration header FILE
9c60689e
DWT
21855
21856Configuration files:
21857$config_files
21858
296ee9a6
JF
21859Configuration headers:
21860$config_headers
21861
9c60689e
DWT
21862Configuration commands:
21863$config_commands
21864
21865Report bugs to <saurik@saurik.com>.
21866Cycript home page: <http://www.cycript.org/>."
21867
21868_ACEOF
21869cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21870ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21871ac_cs_version="\\
21872Cycript config.status 0.9
53ba6704 21873configured by $0, generated by GNU Autoconf 2.69,
9c60689e
DWT
21874 with options \\"\$ac_cs_config\\"
21875
53ba6704 21876Copyright (C) 2012 Free Software Foundation, Inc.
9c60689e
DWT
21877This config.status script is free software; the Free Software Foundation
21878gives unlimited permission to copy, distribute and modify it."
21879
21880ac_pwd='$ac_pwd'
21881srcdir='$srcdir'
21882INSTALL='$INSTALL'
66170b30
JF
21883MKDIR_P='$MKDIR_P'
21884AWK='$AWK'
9c60689e
DWT
21885test -n "\$AWK" || AWK=awk
21886_ACEOF
21887
21888cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21889# The default lists apply if the user does not specify any file.
21890ac_need_defaults=:
21891while test $# != 0
21892do
21893 case $1 in
12833ad8 21894 --*=?*)
9c60689e
DWT
21895 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21896 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21897 ac_shift=:
21898 ;;
12833ad8
JF
21899 --*=)
21900 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21901 ac_optarg=
21902 ac_shift=:
21903 ;;
9c60689e
DWT
21904 *)
21905 ac_option=$1
21906 ac_optarg=$2
21907 ac_shift=shift
21908 ;;
21909 esac
21910
21911 case $ac_option in
21912 # Handling of the options.
21913 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21914 ac_cs_recheck=: ;;
21915 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21916 $as_echo "$ac_cs_version"; exit ;;
21917 --config | --confi | --conf | --con | --co | --c )
21918 $as_echo "$ac_cs_config"; exit ;;
21919 --debug | --debu | --deb | --de | --d | -d )
21920 debug=: ;;
21921 --file | --fil | --fi | --f )
21922 $ac_shift
21923 case $ac_optarg in
21924 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12833ad8 21925 '') as_fn_error $? "missing file argument" ;;
9c60689e
DWT
21926 esac
21927 as_fn_append CONFIG_FILES " '$ac_optarg'"
21928 ac_need_defaults=false;;
296ee9a6
JF
21929 --header | --heade | --head | --hea )
21930 $ac_shift
21931 case $ac_optarg in
21932 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21933 esac
21934 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21935 ac_need_defaults=false;;
21936 --he | --h)
21937 # Conflict between --help and --header
21938 as_fn_error $? "ambiguous option: \`$1'
21939Try \`$0 --help' for more information.";;
21940 --help | --hel | -h )
9c60689e
DWT
21941 $as_echo "$ac_cs_usage"; exit ;;
21942 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21943 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21944 ac_cs_silent=: ;;
21945
21946 # This is an error.
12833ad8 21947 -*) as_fn_error $? "unrecognized option: \`$1'
9c60689e
DWT
21948Try \`$0 --help' for more information." ;;
21949
21950 *) as_fn_append ac_config_targets " $1"
21951 ac_need_defaults=false ;;
21952
21953 esac
21954 shift
21955done
21956
21957ac_configure_extra_args=
21958
21959if $ac_cs_silent; then
21960 exec 6>/dev/null
21961 ac_configure_extra_args="$ac_configure_extra_args --silent"
21962fi
21963
21964_ACEOF
21965cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21966if \$ac_cs_recheck; then
53ba6704 21967 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9c60689e
DWT
21968 shift
21969 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21970 CONFIG_SHELL='$SHELL'
21971 export CONFIG_SHELL
21972 exec "\$@"
21973fi
21974
21975_ACEOF
21976cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21977exec 5>>config.log
21978{
21979 echo
21980 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21981## Running $as_me. ##
21982_ASBOX
21983 $as_echo "$ac_log"
21984} >&5
21985
21986_ACEOF
21987cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21988#
21989# INIT-COMMANDS
21990#
66170b30 21991AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9c60689e
DWT
21992
21993
21994# The HP-UX ksh and POSIX shell print the target directory to stdout
21995# if CDPATH is set.
21996(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21997
21998sed_quote_subst='$sed_quote_subst'
21999double_quote_subst='$double_quote_subst'
22000delay_variable_subst='$delay_variable_subst'
ee134472
JF
22001macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22002macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22003enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22004enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22005pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22006enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
9d54db95 22007shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
ee134472
JF
22008SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22009ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
53ba6704 22010PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
ee134472
JF
22011host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22012host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22013host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22014build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22015build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22016build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22017SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22018Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22019GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22020EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22021FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22022LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22023NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22024LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22025max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22026ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22027exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22028lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22029lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22030lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22031lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22032lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22033reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22034reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22035OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22036deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22037file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22038file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22039want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22040DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22041sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22042AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22043AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22044archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22045STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22046RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22047old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22048old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22049old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22050lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22051CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22052CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22053compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22054GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22055lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22056lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
9d54db95 22057lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
ee134472
JF
22058lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22059lt_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 22060lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
ee134472
JF
22061nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22062lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
9d54db95 22063lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
ee134472
JF
22064objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22065MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22066lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22067lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22068lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22069lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22070lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22071need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22072MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22073DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22074NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22075LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22076OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22077OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22078libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22079shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22080extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22081archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22082enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22083export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22084whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22085compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22086old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22087old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22088archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22089archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22090module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22091module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22092with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22093allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22094no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22095hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
ee134472
JF
22096hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22097hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22098hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22099hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22100hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22101hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22102inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22103link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22104always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22105export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22106exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22107include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22108prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22109postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22110file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22111variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22112need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22113need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22114version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22115runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22116shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22117shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22118libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22119library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22120soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22121install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22122postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22123postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22124finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22125finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22126hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22127sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
9d54db95
JF
22128configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22129configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
ee134472
JF
22130hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22131enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22132enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22133enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22134old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22135striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22136compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22137predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22138postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22139predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22140postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22141compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22142LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
22143reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
22144reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22145old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22146compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
22147GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
22148lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
22149lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
22150lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
22151lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
22152lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
22153archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
22154enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
22155export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22156whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
22157compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
22158old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22159old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22160archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22161archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22162module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22163module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22164with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
22165allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22166no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
22167hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
ee134472
JF
22168hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
22169hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
22170hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
22171hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
22172hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
22173hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
22174inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
22175link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
22176always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
22177export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22178exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22179include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
22180prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22181postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
22182file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
22183hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
22184compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
22185predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22186postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
22187predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
22188postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
22189compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
9c60689e
DWT
22190
22191LTCC='$LTCC'
22192LTCFLAGS='$LTCFLAGS'
22193compiler='$compiler_DEFAULT'
22194
ee134472
JF
22195# A function that is used when there is no print builtin or printf.
22196func_fallback_echo ()
22197{
22198 eval 'cat <<_LTECHO_EOF
22199\$1
22200_LTECHO_EOF'
22201}
22202
9c60689e 22203# Quote evaled strings.
ee134472
JF
22204for var in SHELL \
22205ECHO \
53ba6704 22206PATH_SEPARATOR \
ee134472 22207SED \
9c60689e
DWT
22208GREP \
22209EGREP \
22210FGREP \
22211LD \
22212NM \
22213LN_S \
22214lt_SP2NL \
22215lt_NL2SP \
22216reload_flag \
22217OBJDUMP \
22218deplibs_check_method \
22219file_magic_cmd \
ee134472
JF
22220file_magic_glob \
22221want_nocaseglob \
22222DLLTOOL \
22223sharedlib_from_linklib_cmd \
9c60689e
DWT
22224AR \
22225AR_FLAGS \
ee134472 22226archiver_list_spec \
9c60689e
DWT
22227STRIP \
22228RANLIB \
22229CC \
22230CFLAGS \
22231compiler \
22232lt_cv_sys_global_symbol_pipe \
22233lt_cv_sys_global_symbol_to_cdecl \
9d54db95 22234lt_cv_sys_global_symbol_to_import \
9c60689e
DWT
22235lt_cv_sys_global_symbol_to_c_name_address \
22236lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
9d54db95 22237lt_cv_nm_interface \
ee134472 22238nm_file_list_spec \
9d54db95 22239lt_cv_truncate_bin \
9c60689e 22240lt_prog_compiler_no_builtin_flag \
9c60689e 22241lt_prog_compiler_pic \
ee134472 22242lt_prog_compiler_wl \
9c60689e
DWT
22243lt_prog_compiler_static \
22244lt_cv_prog_compiler_c_o \
22245need_locks \
ee134472 22246MANIFEST_TOOL \
9c60689e
DWT
22247DSYMUTIL \
22248NMEDIT \
22249LIPO \
22250OTOOL \
22251OTOOL64 \
22252shrext_cmds \
22253export_dynamic_flag_spec \
22254whole_archive_flag_spec \
22255compiler_needs_object \
22256with_gnu_ld \
22257allow_undefined_flag \
22258no_undefined_flag \
22259hardcode_libdir_flag_spec \
9c60689e 22260hardcode_libdir_separator \
9c60689e
DWT
22261exclude_expsyms \
22262include_expsyms \
22263file_list_spec \
22264variables_saved_for_relink \
22265libname_spec \
22266library_names_spec \
22267soname_spec \
ee134472 22268install_override_mode \
9c60689e
DWT
22269finish_eval \
22270old_striplib \
22271striplib \
22272compiler_lib_search_dirs \
22273predep_objects \
22274postdep_objects \
22275predeps \
22276postdeps \
22277compiler_lib_search_path \
22278LD_CXX \
ee134472 22279reload_flag_CXX \
9c60689e
DWT
22280compiler_CXX \
22281lt_prog_compiler_no_builtin_flag_CXX \
9c60689e 22282lt_prog_compiler_pic_CXX \
ee134472 22283lt_prog_compiler_wl_CXX \
9c60689e
DWT
22284lt_prog_compiler_static_CXX \
22285lt_cv_prog_compiler_c_o_CXX \
22286export_dynamic_flag_spec_CXX \
22287whole_archive_flag_spec_CXX \
22288compiler_needs_object_CXX \
22289with_gnu_ld_CXX \
22290allow_undefined_flag_CXX \
22291no_undefined_flag_CXX \
22292hardcode_libdir_flag_spec_CXX \
9c60689e 22293hardcode_libdir_separator_CXX \
9c60689e
DWT
22294exclude_expsyms_CXX \
22295include_expsyms_CXX \
22296file_list_spec_CXX \
22297compiler_lib_search_dirs_CXX \
22298predep_objects_CXX \
22299postdep_objects_CXX \
22300predeps_CXX \
22301postdeps_CXX \
22302compiler_lib_search_path_CXX; do
ee134472 22303 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
9c60689e 22304 *[\\\\\\\`\\"\\\$]*)
9d54db95 22305 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
9c60689e
DWT
22306 ;;
22307 *)
22308 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22309 ;;
22310 esac
22311done
22312
22313# Double-quote double-evaled strings.
22314for var in reload_cmds \
22315old_postinstall_cmds \
22316old_postuninstall_cmds \
22317old_archive_cmds \
22318extract_expsyms_cmds \
22319old_archive_from_new_cmds \
22320old_archive_from_expsyms_cmds \
22321archive_cmds \
22322archive_expsym_cmds \
22323module_cmds \
22324module_expsym_cmds \
22325export_symbols_cmds \
22326prelink_cmds \
ee134472 22327postlink_cmds \
9c60689e
DWT
22328postinstall_cmds \
22329postuninstall_cmds \
22330finish_cmds \
22331sys_lib_search_path_spec \
9d54db95
JF
22332configure_time_dlsearch_path \
22333configure_time_lt_sys_library_path \
ee134472 22334reload_cmds_CXX \
9c60689e
DWT
22335old_archive_cmds_CXX \
22336old_archive_from_new_cmds_CXX \
22337old_archive_from_expsyms_cmds_CXX \
22338archive_cmds_CXX \
22339archive_expsym_cmds_CXX \
22340module_cmds_CXX \
22341module_expsym_cmds_CXX \
22342export_symbols_cmds_CXX \
ee134472
JF
22343prelink_cmds_CXX \
22344postlink_cmds_CXX; do
22345 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
9c60689e 22346 *[\\\\\\\`\\"\\\$]*)
9d54db95 22347 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
22348 ;;
22349 *)
22350 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22351 ;;
22352 esac
22353done
22354
9c60689e 22355ac_aux_dir='$ac_aux_dir'
9c60689e 22356
9d54db95 22357# See if we are running on zsh, and set the options that allow our
9c60689e 22358# commands through without removal of \ escapes INIT.
9d54db95 22359if test -n "\${ZSH_VERSION+set}"; then
9c60689e
DWT
22360 setopt NO_GLOB_SUBST
22361fi
22362
22363
22364 PACKAGE='$PACKAGE'
22365 VERSION='$VERSION'
9c60689e
DWT
22366 RM='$RM'
22367 ofile='$ofile'
22368
22369
22370
22371
22372
22373
22374_ACEOF
22375
22376cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22377
22378# Handling of arguments.
22379for ac_config_target in $ac_config_targets
22380do
22381 case $ac_config_target in
296ee9a6 22382 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
66170b30 22383 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9c60689e 22384 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
790e5246 22385 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9c60689e 22386
ee134472 22387 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9c60689e
DWT
22388 esac
22389done
22390
22391
22392# If the user did not use the arguments to specify the items to instantiate,
22393# then the envvar interface is used. Set only those that are not.
22394# We use the long form for the default assignment because of an extremely
22395# bizarre bug on SunOS 4.1.3.
22396if $ac_need_defaults; then
22397 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
296ee9a6 22398 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9c60689e
DWT
22399 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22400fi
22401
22402# Have a temporary directory for convenience. Make it in the build tree
22403# simply because there is no reason against having it here, and in addition,
22404# creating and moving files from /tmp can sometimes cause problems.
22405# Hook for its removal unless debugging.
22406# Note that there is a small window in which the directory will not be cleaned:
22407# after its creation but before its name has been assigned to `$tmp'.
22408$debug ||
22409{
ee134472 22410 tmp= ac_tmp=
9c60689e 22411 trap 'exit_status=$?
ee134472
JF
22412 : "${ac_tmp:=$tmp}"
22413 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9c60689e
DWT
22414' 0
22415 trap 'as_fn_exit 1' 1 2 13 15
22416}
22417# Create a (secure) tmp directory for tmp files.
22418
22419{
22420 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ee134472 22421 test -d "$tmp"
9c60689e
DWT
22422} ||
22423{
22424 tmp=./conf$$-$RANDOM
22425 (umask 077 && mkdir "$tmp")
12833ad8 22426} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ee134472 22427ac_tmp=$tmp
9c60689e
DWT
22428
22429# Set up the scripts for CONFIG_FILES section.
22430# No need to generate them if there are no CONFIG_FILES.
22431# This happens for instance with `./config.status config.h'.
22432if test -n "$CONFIG_FILES"; then
22433
22434
22435ac_cr=`echo X | tr X '\015'`
22436# On cygwin, bash can eat \r inside `` if the user requested igncr.
22437# But we know of no other shell where ac_cr would be empty at this
22438# point, so we can use a bashism as a fallback.
22439if test "x$ac_cr" = x; then
22440 eval ac_cr=\$\'\\r\'
22441fi
22442ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22443if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12833ad8 22444 ac_cs_awk_cr='\\r'
9c60689e
DWT
22445else
22446 ac_cs_awk_cr=$ac_cr
22447fi
22448
ee134472 22449echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9c60689e
DWT
22450_ACEOF
22451
22452
22453{
22454 echo "cat >conf$$subs.awk <<_ACEOF" &&
22455 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22456 echo "_ACEOF"
22457} >conf$$subs.sh ||
12833ad8
JF
22458 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22459ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9c60689e
DWT
22460ac_delim='%!_!# '
22461for ac_last_try in false false false false false :; do
22462 . ./conf$$subs.sh ||
12833ad8 22463 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
22464
22465 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22466 if test $ac_delim_n = $ac_delim_num; then
22467 break
22468 elif $ac_last_try; then
12833ad8 22469 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
22470 else
22471 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22472 fi
22473done
22474rm -f conf$$subs.sh
22475
22476cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ee134472 22477cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9c60689e
DWT
22478_ACEOF
22479sed -n '
22480h
22481s/^/S["/; s/!.*/"]=/
22482p
22483g
22484s/^[^!]*!//
22485:repl
22486t repl
22487s/'"$ac_delim"'$//
22488t delim
22489:nl
22490h
22491s/\(.\{148\}\)..*/\1/
22492t more1
22493s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22494p
22495n
22496b repl
22497:more1
22498s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22499p
22500g
22501s/.\{148\}//
22502t nl
22503:delim
22504h
22505s/\(.\{148\}\)..*/\1/
22506t more2
22507s/["\\]/\\&/g; s/^/"/; s/$/"/
22508p
22509b
22510:more2
22511s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22512p
22513g
22514s/.\{148\}//
22515t delim
22516' <conf$$subs.awk | sed '
22517/^[^""]/{
22518 N
22519 s/\n//
22520}
22521' >>$CONFIG_STATUS || ac_write_fail=1
22522rm -f conf$$subs.awk
22523cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22524_ACAWK
ee134472 22525cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9c60689e
DWT
22526 for (key in S) S_is_set[key] = 1
22527 FS = "\a"
22528
22529}
22530{
22531 line = $ 0
22532 nfields = split(line, field, "@")
22533 substed = 0
22534 len = length(field[1])
22535 for (i = 2; i < nfields; i++) {
22536 key = field[i]
22537 keylen = length(key)
22538 if (S_is_set[key]) {
22539 value = S[key]
22540 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22541 len += length(value) + length(field[++i])
22542 substed = 1
22543 } else
22544 len += 1 + keylen
22545 }
22546
22547 print line
22548}
22549
22550_ACAWK
22551_ACEOF
22552cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22553if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22554 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22555else
22556 cat
ee134472 22557fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12833ad8 22558 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9c60689e
DWT
22559_ACEOF
22560
12833ad8
JF
22561# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22562# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9c60689e
DWT
22563# trailing colons and then remove the whole line if VPATH becomes empty
22564# (actually we leave an empty line to preserve line numbers).
22565if test "x$srcdir" = x.; then
12833ad8
JF
22566 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22567h
22568s///
22569s/^/:/
22570s/[ ]*$/:/
22571s/:\$(srcdir):/:/g
22572s/:\${srcdir}:/:/g
22573s/:@srcdir@:/:/g
22574s/^:*//
9c60689e 22575s/:*$//
12833ad8
JF
22576x
22577s/\(=[ ]*\).*/\1/
22578G
22579s/\n//
9c60689e
DWT
22580s/^[^=]*=[ ]*$//
22581}'
22582fi
22583
22584cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22585fi # test -n "$CONFIG_FILES"
22586
296ee9a6
JF
22587# Set up the scripts for CONFIG_HEADERS section.
22588# No need to generate them if there are no CONFIG_HEADERS.
22589# This happens for instance with `./config.status Makefile'.
22590if test -n "$CONFIG_HEADERS"; then
22591cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22592BEGIN {
22593_ACEOF
22594
22595# Transform confdefs.h into an awk script `defines.awk', embedded as
22596# here-document in config.status, that substitutes the proper values into
22597# config.h.in to produce config.h.
22598
22599# Create a delimiter string that does not exist in confdefs.h, to ease
22600# handling of long lines.
22601ac_delim='%!_!# '
22602for ac_last_try in false false :; do
22603 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22604 if test -z "$ac_tt"; then
22605 break
22606 elif $ac_last_try; then
22607 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22608 else
22609 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22610 fi
22611done
22612
22613# For the awk script, D is an array of macro values keyed by name,
22614# likewise P contains macro parameters if any. Preserve backslash
22615# newline sequences.
22616
22617ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22618sed -n '
22619s/.\{148\}/&'"$ac_delim"'/g
22620t rset
22621:rset
22622s/^[ ]*#[ ]*define[ ][ ]*/ /
22623t def
22624d
22625:def
22626s/\\$//
22627t bsnl
22628s/["\\]/\\&/g
22629s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22630D["\1"]=" \3"/p
22631s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22632d
22633:bsnl
22634s/["\\]/\\&/g
22635s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22636D["\1"]=" \3\\\\\\n"\\/p
22637t cont
22638s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22639t cont
22640d
22641:cont
22642n
22643s/.\{148\}/&'"$ac_delim"'/g
22644t clear
22645:clear
22646s/\\$//
22647t bsnlc
22648s/["\\]/\\&/g; s/^/"/; s/$/"/p
22649d
22650:bsnlc
22651s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22652b cont
22653' <confdefs.h | sed '
22654s/'"$ac_delim"'/"\\\
22655"/g' >>$CONFIG_STATUS || ac_write_fail=1
22656
22657cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22658 for (key in D) D_is_set[key] = 1
22659 FS = "\a"
22660}
22661/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22662 line = \$ 0
22663 split(line, arg, " ")
22664 if (arg[1] == "#") {
22665 defundef = arg[2]
22666 mac1 = arg[3]
22667 } else {
22668 defundef = substr(arg[1], 2)
22669 mac1 = arg[2]
22670 }
22671 split(mac1, mac2, "(") #)
22672 macro = mac2[1]
22673 prefix = substr(line, 1, index(line, defundef) - 1)
22674 if (D_is_set[macro]) {
22675 # Preserve the white space surrounding the "#".
22676 print prefix "define", macro P[macro] D[macro]
22677 next
22678 } else {
22679 # Replace #undef with comments. This is necessary, for example,
22680 # in the case of _POSIX_SOURCE, which is predefined and required
22681 # on some systems where configure will not decide to define it.
22682 if (defundef == "undef") {
22683 print "/*", prefix defundef, macro, "*/"
22684 next
22685 }
22686 }
22687}
22688{ print }
22689_ACAWK
22690_ACEOF
22691cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22692 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22693fi # test -n "$CONFIG_HEADERS"
22694
9c60689e 22695
296ee9a6 22696eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9c60689e
DWT
22697shift
22698for ac_tag
22699do
22700 case $ac_tag in
22701 :[FHLC]) ac_mode=$ac_tag; continue;;
22702 esac
22703 case $ac_mode$ac_tag in
22704 :[FHL]*:*);;
ee134472 22705 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9c60689e
DWT
22706 :[FH]-) ac_tag=-:-;;
22707 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22708 esac
22709 ac_save_IFS=$IFS
22710 IFS=:
22711 set x $ac_tag
22712 IFS=$ac_save_IFS
22713 shift
22714 ac_file=$1
22715 shift
22716
22717 case $ac_mode in
22718 :L) ac_source=$1;;
22719 :[FH])
22720 ac_file_inputs=
22721 for ac_f
22722 do
22723 case $ac_f in
ee134472 22724 -) ac_f="$ac_tmp/stdin";;
9c60689e
DWT
22725 *) # Look for the file first in the build tree, then in the source tree
22726 # (if the path is not absolute). The absolute path cannot be DOS-style,
22727 # because $ac_f cannot contain `:'.
22728 test -f "$ac_f" ||
22729 case $ac_f in
22730 [\\/$]*) false;;
22731 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22732 esac ||
ee134472 22733 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9c60689e
DWT
22734 esac
22735 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22736 as_fn_append ac_file_inputs " '$ac_f'"
22737 done
22738
22739 # Let's still pretend it is `configure' which instantiates (i.e., don't
22740 # use $as_me), people would be surprised to read:
22741 # /* config.h. Generated by config.status. */
22742 configure_input='Generated from '`
22743 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22744 `' by configure.'
22745 if test x"$ac_file" != x-; then
22746 configure_input="$ac_file. $configure_input"
22747 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22748$as_echo "$as_me: creating $ac_file" >&6;}
22749 fi
22750 # Neutralize special characters interpreted by sed in replacement strings.
22751 case $configure_input in #(
22752 *\&* | *\|* | *\\* )
22753 ac_sed_conf_input=`$as_echo "$configure_input" |
22754 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22755 *) ac_sed_conf_input=$configure_input;;
22756 esac
22757
22758 case $ac_tag in
ee134472
JF
22759 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22760 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9c60689e
DWT
22761 esac
22762 ;;
22763 esac
22764
22765 ac_dir=`$as_dirname -- "$ac_file" ||
22766$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22767 X"$ac_file" : 'X\(//\)[^/]' \| \
22768 X"$ac_file" : 'X\(//\)$' \| \
22769 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22770$as_echo X"$ac_file" |
22771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22772 s//\1/
22773 q
22774 }
22775 /^X\(\/\/\)[^/].*/{
22776 s//\1/
22777 q
22778 }
22779 /^X\(\/\/\)$/{
22780 s//\1/
22781 q
22782 }
22783 /^X\(\/\).*/{
22784 s//\1/
22785 q
22786 }
22787 s/.*/./; q'`
22788 as_dir="$ac_dir"; as_fn_mkdir_p
22789 ac_builddir=.
22790
22791case "$ac_dir" in
22792.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22793*)
22794 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22795 # A ".." for each directory in $ac_dir_suffix.
22796 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22797 case $ac_top_builddir_sub in
22798 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22799 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22800 esac ;;
22801esac
22802ac_abs_top_builddir=$ac_pwd
22803ac_abs_builddir=$ac_pwd$ac_dir_suffix
22804# for backward compatibility:
22805ac_top_builddir=$ac_top_build_prefix
35fa52c0 22806
9c60689e
DWT
22807case $srcdir in
22808 .) # We are building in place.
22809 ac_srcdir=.
22810 ac_top_srcdir=$ac_top_builddir_sub
22811 ac_abs_top_srcdir=$ac_pwd ;;
22812 [\\/]* | ?:[\\/]* ) # Absolute name.
22813 ac_srcdir=$srcdir$ac_dir_suffix;
22814 ac_top_srcdir=$srcdir
22815 ac_abs_top_srcdir=$srcdir ;;
22816 *) # Relative name.
22817 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22818 ac_top_srcdir=$ac_top_build_prefix$srcdir
22819 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22820esac
22821ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35fa52c0
DWT
22822
22823
9c60689e
DWT
22824 case $ac_mode in
22825 :F)
22826 #
22827 # CONFIG_FILE
22828 #
35fa52c0 22829
9c60689e
DWT
22830 case $INSTALL in
22831 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22832 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22833 esac
66170b30
JF
22834 ac_MKDIR_P=$MKDIR_P
22835 case $MKDIR_P in
22836 [\\/$]* | ?:[\\/]* ) ;;
22837 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22838 esac
9c60689e 22839_ACEOF
35fa52c0 22840
9c60689e
DWT
22841cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22842# If the template does not know about datarootdir, expand it.
22843# FIXME: This hack should be removed a few years after 2.60.
22844ac_datarootdir_hack=; ac_datarootdir_seen=
22845ac_sed_dataroot='
22846/datarootdir/ {
22847 p
22848 q
22849}
22850/@datadir@/p
22851/@docdir@/p
22852/@infodir@/p
22853/@localedir@/p
22854/@mandir@/p'
22855case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22856*datarootdir*) ac_datarootdir_seen=yes;;
22857*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22859$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22860_ACEOF
22861cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22862 ac_datarootdir_hack='
22863 s&@datadir@&$datadir&g
22864 s&@docdir@&$docdir&g
22865 s&@infodir@&$infodir&g
22866 s&@localedir@&$localedir&g
22867 s&@mandir@&$mandir&g
22868 s&\\\${datarootdir}&$datarootdir&g' ;;
22869esac
22870_ACEOF
35fa52c0 22871
9c60689e
DWT
22872# Neutralize VPATH when `$srcdir' = `.'.
22873# Shell code in configure.ac might set extrasub.
22874# FIXME: do we really want to maintain this feature?
22875cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22876ac_sed_extra="$ac_vpsub
22877$extrasub
22878_ACEOF
22879cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22880:t
22881/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22882s|@configure_input@|$ac_sed_conf_input|;t t
22883s&@top_builddir@&$ac_top_builddir_sub&;t t
22884s&@top_build_prefix@&$ac_top_build_prefix&;t t
22885s&@srcdir@&$ac_srcdir&;t t
22886s&@abs_srcdir@&$ac_abs_srcdir&;t t
22887s&@top_srcdir@&$ac_top_srcdir&;t t
22888s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22889s&@builddir@&$ac_builddir&;t t
22890s&@abs_builddir@&$ac_abs_builddir&;t t
22891s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22892s&@INSTALL@&$ac_INSTALL&;t t
66170b30 22893s&@MKDIR_P@&$ac_MKDIR_P&;t t
9c60689e
DWT
22894$ac_datarootdir_hack
22895"
ee134472
JF
22896eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22897 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9c60689e
DWT
22898
22899test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
ee134472
JF
22900 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22901 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22902 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9c60689e 22903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12833ad8 22904which seems to be undefined. Please make sure it is defined" >&5
9c60689e 22905$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12833ad8 22906which seems to be undefined. Please make sure it is defined" >&2;}
9c60689e 22907
ee134472 22908 rm -f "$ac_tmp/stdin"
9c60689e 22909 case $ac_file in
ee134472
JF
22910 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22911 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9c60689e 22912 esac \
12833ad8 22913 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9c60689e 22914 ;;
296ee9a6
JF
22915 :H)
22916 #
22917 # CONFIG_HEADER
22918 #
22919 if test x"$ac_file" != x-; then
22920 {
22921 $as_echo "/* $configure_input */" \
22922 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22923 } >"$ac_tmp/config.h" \
22924 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22925 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22926 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22927$as_echo "$as_me: $ac_file is unchanged" >&6;}
22928 else
22929 rm -f "$ac_file"
22930 mv "$ac_tmp/config.h" "$ac_file" \
22931 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22932 fi
22933 else
22934 $as_echo "/* $configure_input */" \
22935 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22936 || as_fn_error $? "could not create -" "$LINENO" 5
22937 fi
22938# Compute "$ac_file"'s index in $config_headers.
22939_am_arg="$ac_file"
22940_am_stamp_count=1
22941for _am_header in $config_headers :; do
22942 case $_am_header in
22943 $_am_arg | $_am_arg:* )
22944 break ;;
22945 * )
22946 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22947 esac
22948done
22949echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22950$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22951 X"$_am_arg" : 'X\(//\)[^/]' \| \
22952 X"$_am_arg" : 'X\(//\)$' \| \
22953 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22954$as_echo X"$_am_arg" |
22955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22956 s//\1/
22957 q
22958 }
22959 /^X\(\/\/\)[^/].*/{
22960 s//\1/
22961 q
22962 }
22963 /^X\(\/\/\)$/{
22964 s//\1/
22965 q
22966 }
22967 /^X\(\/\).*/{
22968 s//\1/
22969 q
22970 }
22971 s/.*/./; q'`/stamp-h$_am_stamp_count
22972 ;;
35fa52c0 22973
9c60689e
DWT
22974 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22975$as_echo "$as_me: executing $ac_file commands" >&6;}
22976 ;;
22977 esac
35fa52c0 22978
35fa52c0 22979
9c60689e 22980 case $ac_file$ac_mode in
66170b30
JF
22981 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22982 # Older Autoconf quotes --file arguments for eval, but not when files
22983 # are listed without --file. Let's play safe and only enable the eval
22984 # if we detect the quoting.
22985 case $CONFIG_FILES in
22986 *\'*) eval set x "$CONFIG_FILES" ;;
22987 *) set x $CONFIG_FILES ;;
22988 esac
22989 shift
22990 for mf
22991 do
22992 # Strip MF so we end up with the name of the file.
22993 mf=`echo "$mf" | sed -e 's/:.*$//'`
22994 # Check whether this is an Automake generated Makefile or not.
22995 # We used to match only the files named 'Makefile.in', but
22996 # some people rename them; so instead we look at the file content.
22997 # Grep'ing the first line is not enough: some people post-process
22998 # each Makefile.in and add a new line on top of each file to say so.
22999 # Grep'ing the whole file is not good either: AIX grep has a line
23000 # limit of 2048, but all sed's we know have understand at least 4000.
23001 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23002 dirpart=`$as_dirname -- "$mf" ||
23003$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23004 X"$mf" : 'X\(//\)[^/]' \| \
23005 X"$mf" : 'X\(//\)$' \| \
23006 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23007$as_echo X"$mf" |
23008 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23009 s//\1/
23010 q
23011 }
23012 /^X\(\/\/\)[^/].*/{
23013 s//\1/
23014 q
23015 }
23016 /^X\(\/\/\)$/{
23017 s//\1/
23018 q
23019 }
23020 /^X\(\/\).*/{
23021 s//\1/
23022 q
23023 }
23024 s/.*/./; q'`
23025 else
23026 continue
23027 fi
23028 # Extract the definition of DEPDIR, am__include, and am__quote
23029 # from the Makefile without running 'make'.
23030 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23031 test -z "$DEPDIR" && continue
23032 am__include=`sed -n 's/^am__include = //p' < "$mf"`
a93f15c0 23033 test -z "$am__include" && continue
66170b30
JF
23034 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23035 # Find all dependency output files, they are included files with
23036 # $(DEPDIR) in their names. We invoke sed twice because it is the
23037 # simplest approach to changing $(DEPDIR) to its actual value in the
23038 # expansion.
23039 for file in `sed -n "
23040 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23041 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
23042 # Make sure the directory exists.
23043 test -f "$dirpart/$file" && continue
23044 fdir=`$as_dirname -- "$file" ||
23045$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23046 X"$file" : 'X\(//\)[^/]' \| \
23047 X"$file" : 'X\(//\)$' \| \
23048 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23049$as_echo X"$file" |
23050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23051 s//\1/
23052 q
23053 }
23054 /^X\(\/\/\)[^/].*/{
23055 s//\1/
23056 q
23057 }
23058 /^X\(\/\/\)$/{
23059 s//\1/
23060 q
23061 }
23062 /^X\(\/\).*/{
23063 s//\1/
23064 q
23065 }
23066 s/.*/./; q'`
23067 as_dir=$dirpart/$fdir; as_fn_mkdir_p
23068 # echo "creating $dirpart/$file"
23069 echo '# dummy' > "$dirpart/$file"
23070 done
23071 done
23072}
23073 ;;
9c60689e
DWT
23074 "libtool":C)
23075
9d54db95 23076 # See if we are running on zsh, and set the options that allow our
9c60689e 23077 # commands through without removal of \ escapes.
9d54db95 23078 if test -n "${ZSH_VERSION+set}"; then
9c60689e 23079 setopt NO_GLOB_SUBST
35fa52c0 23080 fi
35fa52c0 23081
9d54db95 23082 cfgfile=${ofile}T
9c60689e
DWT
23083 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23084 $RM "$cfgfile"
35fa52c0 23085
9c60689e
DWT
23086 cat <<_LT_EOF >> "$cfgfile"
23087#! $SHELL
9d54db95 23088# Generated automatically by $as_me ($PACKAGE) $VERSION
9c60689e
DWT
23089# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23090# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9d54db95
JF
23091
23092# Provide generalized library-building support services.
23093# Written by Gordon Matzigkeit, 1996
23094
23095# Copyright (C) 2014 Free Software Foundation, Inc.
23096# This is free software; see the source for copying conditions. There is NO
23097# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23098
23099# GNU Libtool is free software; you can redistribute it and/or modify
23100# it under the terms of the GNU General Public License as published by
23101# the Free Software Foundation; either version 2 of of the License, or
23102# (at your option) any later version.
9c60689e 23103#
9d54db95
JF
23104# As a special exception to the GNU General Public License, if you
23105# distribute this file as part of a program or library that is built
23106# using GNU Libtool, you may include this file under the same
23107# distribution terms that you use for the rest of that program.
9c60689e 23108#
9d54db95
JF
23109# GNU Libtool is distributed in the hope that it will be useful, but
23110# WITHOUT ANY WARRANTY; without even the implied warranty of
9c60689e
DWT
23111# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23112# GNU General Public License for more details.
23113#
23114# You should have received a copy of the GNU General Public License
9d54db95 23115# along with this program. If not, see <http://www.gnu.org/licenses/>.
35fa52c0 23116
35fa52c0 23117
9c60689e 23118# The names of the tagged configurations supported by this script.
9d54db95
JF
23119available_tags='CXX '
23120
23121# Configured defaults for sys_lib_dlsearch_path munging.
23122: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
35fa52c0 23123
9c60689e 23124# ### BEGIN LIBTOOL CONFIG
35fa52c0 23125
9c60689e
DWT
23126# Which release of libtool.m4 was used?
23127macro_version=$macro_version
23128macro_revision=$macro_revision
35fa52c0 23129
9c60689e
DWT
23130# Whether or not to build static libraries.
23131build_old_libs=$enable_static
35fa52c0 23132
549f29b5
DWT
23133# Whether or not to build shared libraries.
23134build_libtool_libs=$enable_shared
23135
9c60689e
DWT
23136# What type of objects to build.
23137pic_mode=$pic_mode
35fa52c0 23138
9c60689e
DWT
23139# Whether or not to optimize for fast installation.
23140fast_install=$enable_fast_install
35fa52c0 23141
9d54db95
JF
23142# Shared archive member basename,for filename based shared library versioning on AIX.
23143shared_archive_member_spec=$shared_archive_member_spec
23144
ee134472
JF
23145# Shell to use when invoking shell scripts.
23146SHELL=$lt_SHELL
23147
23148# An echo program that protects backslashes.
23149ECHO=$lt_ECHO
23150
53ba6704
JF
23151# The PATH separator for the build system.
23152PATH_SEPARATOR=$lt_PATH_SEPARATOR
23153
9c60689e
DWT
23154# The host system.
23155host_alias=$host_alias
23156host=$host
23157host_os=$host_os
35fa52c0 23158
9c60689e
DWT
23159# The build system.
23160build_alias=$build_alias
23161build=$build
23162build_os=$build_os
23163
23164# A sed program that does not truncate output.
23165SED=$lt_SED
23166
23167# Sed that helps us avoid accidentally triggering echo(1) options like -n.
23168Xsed="\$SED -e 1s/^X//"
23169
23170# A grep program that handles long lines.
23171GREP=$lt_GREP
23172
23173# An ERE matcher.
23174EGREP=$lt_EGREP
23175
23176# A literal string matcher.
23177FGREP=$lt_FGREP
23178
23179# A BSD- or MS-compatible name lister.
23180NM=$lt_NM
23181
23182# Whether we need soft or hard links.
23183LN_S=$lt_LN_S
23184
23185# What is the maximum length of a command?
23186max_cmd_len=$max_cmd_len
23187
23188# Object file suffix (normally "o").
23189objext=$ac_objext
23190
23191# Executable file suffix (normally "").
23192exeext=$exeext
23193
23194# whether the shell understands "unset".
23195lt_unset=$lt_unset
23196
23197# turn spaces into newlines.
23198SP2NL=$lt_lt_SP2NL
23199
23200# turn newlines into spaces.
23201NL2SP=$lt_lt_NL2SP
23202
ee134472
JF
23203# convert \$build file names to \$host format.
23204to_host_file_cmd=$lt_cv_to_host_file_cmd
23205
23206# convert \$build files to toolchain format.
23207to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9c60689e
DWT
23208
23209# An object symbol dumper.
23210OBJDUMP=$lt_OBJDUMP
23211
23212# Method to check whether dependent libraries are shared objects.
23213deplibs_check_method=$lt_deplibs_check_method
23214
ee134472 23215# Command to use when deplibs_check_method = "file_magic".
9c60689e
DWT
23216file_magic_cmd=$lt_file_magic_cmd
23217
ee134472
JF
23218# How to find potential files when deplibs_check_method = "file_magic".
23219file_magic_glob=$lt_file_magic_glob
23220
23221# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23222want_nocaseglob=$lt_want_nocaseglob
23223
23224# DLL creation program.
23225DLLTOOL=$lt_DLLTOOL
23226
23227# Command to associate shared and link libraries.
23228sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23229
9c60689e
DWT
23230# The archiver.
23231AR=$lt_AR
ee134472
JF
23232
23233# Flags to create an archive.
9c60689e
DWT
23234AR_FLAGS=$lt_AR_FLAGS
23235
ee134472
JF
23236# How to feed a file listing to the archiver.
23237archiver_list_spec=$lt_archiver_list_spec
23238
9c60689e
DWT
23239# A symbol stripping program.
23240STRIP=$lt_STRIP
23241
23242# Commands used to install an old-style archive.
23243RANLIB=$lt_RANLIB
23244old_postinstall_cmds=$lt_old_postinstall_cmds
23245old_postuninstall_cmds=$lt_old_postuninstall_cmds
23246
ee134472
JF
23247# Whether to use a lock for old archive extraction.
23248lock_old_archive_extraction=$lock_old_archive_extraction
23249
9c60689e
DWT
23250# A C compiler.
23251LTCC=$lt_CC
23252
23253# LTCC compiler flags.
23254LTCFLAGS=$lt_CFLAGS
23255
23256# Take the output of nm and produce a listing of raw symbols and C names.
23257global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23258
23259# Transform the output of nm in a proper C declaration.
23260global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23261
9d54db95
JF
23262# Transform the output of nm into a list of symbols to manually relocate.
23263global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23264
9c60689e
DWT
23265# Transform the output of nm in a C name address pair.
23266global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23267
23268# Transform the output of nm in a C name address pair when lib prefix is needed.
23269global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23270
9d54db95
JF
23271# The name lister interface.
23272nm_interface=$lt_lt_cv_nm_interface
23273
ee134472
JF
23274# Specify filename containing input files for \$NM.
23275nm_file_list_spec=$lt_nm_file_list_spec
9c60689e 23276
9d54db95 23277# The root where to search for dependent libraries,and where our libraries should be installed.
ee134472 23278lt_sysroot=$lt_sysroot
9c60689e 23279
9d54db95
JF
23280# Command to truncate a binary pipe.
23281lt_truncate_bin=$lt_lt_cv_truncate_bin
23282
ee134472
JF
23283# The name of the directory that contains temporary libtool files.
23284objdir=$objdir
9c60689e
DWT
23285
23286# Used to examine libraries when file_magic_cmd begins with "file".
23287MAGIC_CMD=$MAGIC_CMD
23288
23289# Must we lock files when doing compilation?
23290need_locks=$lt_need_locks
23291
ee134472
JF
23292# Manifest tool.
23293MANIFEST_TOOL=$lt_MANIFEST_TOOL
23294
9c60689e
DWT
23295# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23296DSYMUTIL=$lt_DSYMUTIL
23297
23298# Tool to change global to local symbols on Mac OS X.
23299NMEDIT=$lt_NMEDIT
23300
23301# Tool to manipulate fat objects and archives on Mac OS X.
23302LIPO=$lt_LIPO
23303
23304# ldd/readelf like tool for Mach-O binaries on Mac OS X.
23305OTOOL=$lt_OTOOL
23306
23307# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23308OTOOL64=$lt_OTOOL64
23309
23310# Old archive suffix (normally "a").
23311libext=$libext
23312
23313# Shared library suffix (normally ".so").
23314shrext_cmds=$lt_shrext_cmds
35fa52c0 23315
9c60689e
DWT
23316# The commands to extract the exported symbol list from a shared archive.
23317extract_expsyms_cmds=$lt_extract_expsyms_cmds
35fa52c0 23318
9c60689e
DWT
23319# Variables whose values should be saved in libtool wrapper scripts and
23320# restored at link time.
23321variables_saved_for_relink=$lt_variables_saved_for_relink
35fa52c0 23322
9c60689e
DWT
23323# Do we need the "lib" prefix for modules?
23324need_lib_prefix=$need_lib_prefix
35fa52c0 23325
9c60689e
DWT
23326# Do we need a version for libraries?
23327need_version=$need_version
35fa52c0 23328
9c60689e
DWT
23329# Library versioning type.
23330version_type=$version_type
35fa52c0 23331
9c60689e
DWT
23332# Shared library runtime path variable.
23333runpath_var=$runpath_var
35fa52c0 23334
9c60689e
DWT
23335# Shared library path variable.
23336shlibpath_var=$shlibpath_var
35fa52c0 23337
9c60689e
DWT
23338# Is shlibpath searched before the hard-coded library search path?
23339shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35fa52c0 23340
9c60689e
DWT
23341# Format of library name prefix.
23342libname_spec=$lt_libname_spec
35fa52c0 23343
9c60689e
DWT
23344# List of archive names. First name is the real one, the rest are links.
23345# The last name is the one that the linker finds with -lNAME
23346library_names_spec=$lt_library_names_spec
dbadc56a 23347
9c60689e
DWT
23348# The coded name of the library, if different from the real name.
23349soname_spec=$lt_soname_spec
dbadc56a 23350
ee134472
JF
23351# Permission mode override for installation of shared libraries.
23352install_override_mode=$lt_install_override_mode
23353
9c60689e
DWT
23354# Command to use after installation of a shared archive.
23355postinstall_cmds=$lt_postinstall_cmds
35fa52c0 23356
9c60689e
DWT
23357# Command to use after uninstallation of a shared archive.
23358postuninstall_cmds=$lt_postuninstall_cmds
dbadc56a 23359
9c60689e
DWT
23360# Commands used to finish a libtool library installation in a directory.
23361finish_cmds=$lt_finish_cmds
35fa52c0 23362
9c60689e
DWT
23363# As "finish_cmds", except a single script fragment to be evaled but
23364# not shown.
23365finish_eval=$lt_finish_eval
35fa52c0 23366
9c60689e
DWT
23367# Whether we should hardcode library paths into libraries.
23368hardcode_into_libs=$hardcode_into_libs
dbadc56a 23369
9c60689e
DWT
23370# Compile-time system search path for libraries.
23371sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35fa52c0 23372
9d54db95
JF
23373# Detected run-time system search path for libraries.
23374sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23375
23376# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23377configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
dbadc56a 23378
9c60689e
DWT
23379# Whether dlopen is supported.
23380dlopen_support=$enable_dlopen
dbadc56a 23381
9c60689e
DWT
23382# Whether dlopen of programs is supported.
23383dlopen_self=$enable_dlopen_self
35fa52c0 23384
9c60689e
DWT
23385# Whether dlopen of statically linked programs is supported.
23386dlopen_self_static=$enable_dlopen_self_static
35fa52c0 23387
9c60689e
DWT
23388# Commands to strip libraries.
23389old_striplib=$lt_old_striplib
23390striplib=$lt_striplib
35fa52c0 23391
35fa52c0 23392
9c60689e
DWT
23393# The linker used to build libraries.
23394LD=$lt_LD
dbadc56a 23395
ee134472
JF
23396# How to create reloadable object files.
23397reload_flag=$lt_reload_flag
23398reload_cmds=$lt_reload_cmds
23399
9c60689e
DWT
23400# Commands used to build an old-style archive.
23401old_archive_cmds=$lt_old_archive_cmds
dbadc56a 23402
9c60689e
DWT
23403# A language specific compiler.
23404CC=$lt_compiler
35fa52c0 23405
9c60689e
DWT
23406# Is the compiler the GNU compiler?
23407with_gcc=$GCC
dbadc56a 23408
9c60689e
DWT
23409# Compiler flag to turn off builtin functions.
23410no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
dbadc56a 23411
9c60689e
DWT
23412# Additional compiler flags for building library objects.
23413pic_flag=$lt_lt_prog_compiler_pic
35fa52c0 23414
ee134472
JF
23415# How to pass a linker flag through the compiler.
23416wl=$lt_lt_prog_compiler_wl
23417
9c60689e
DWT
23418# Compiler flag to prevent dynamic linking.
23419link_static_flag=$lt_lt_prog_compiler_static
35fa52c0 23420
9c60689e
DWT
23421# Does compiler simultaneously support -c and -o options?
23422compiler_c_o=$lt_lt_cv_prog_compiler_c_o
dbadc56a 23423
9c60689e
DWT
23424# Whether or not to add -lc for building shared libraries.
23425build_libtool_need_lc=$archive_cmds_need_lc
35fa52c0 23426
9c60689e
DWT
23427# Whether or not to disallow shared libs when runtime libs are static.
23428allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35fa52c0 23429
9c60689e
DWT
23430# Compiler flag to allow reflexive dlopens.
23431export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35fa52c0 23432
9c60689e
DWT
23433# Compiler flag to generate shared objects directly from archives.
23434whole_archive_flag_spec=$lt_whole_archive_flag_spec
dbadc56a 23435
9c60689e
DWT
23436# Whether the compiler copes with passing no objects directly.
23437compiler_needs_object=$lt_compiler_needs_object
dbadc56a 23438
9c60689e
DWT
23439# Create an old-style archive from a shared archive.
23440old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
dbadc56a 23441
9c60689e
DWT
23442# Create a temporary old-style archive to link instead of a shared archive.
23443old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
dbadc56a 23444
9c60689e
DWT
23445# Commands used to build a shared archive.
23446archive_cmds=$lt_archive_cmds
23447archive_expsym_cmds=$lt_archive_expsym_cmds
35fa52c0 23448
9c60689e
DWT
23449# Commands used to build a loadable module if different from building
23450# a shared archive.
23451module_cmds=$lt_module_cmds
23452module_expsym_cmds=$lt_module_expsym_cmds
dbadc56a 23453
9c60689e
DWT
23454# Whether we are building with GNU ld or not.
23455with_gnu_ld=$lt_with_gnu_ld
6b66678a 23456
9c60689e
DWT
23457# Flag that allows shared libraries with undefined symbols to be built.
23458allow_undefined_flag=$lt_allow_undefined_flag
6b66678a 23459
9c60689e
DWT
23460# Flag that enforces no undefined symbols.
23461no_undefined_flag=$lt_no_undefined_flag
6b66678a 23462
9c60689e
DWT
23463# Flag to hardcode \$libdir into a binary during linking.
23464# This must work even if \$libdir does not exist
23465hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6b66678a 23466
9c60689e
DWT
23467# Whether we need a single "-rpath" flag with a separated argument.
23468hardcode_libdir_separator=$lt_hardcode_libdir_separator
6b66678a 23469
9d54db95 23470# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
9c60689e
DWT
23471# DIR into the resulting binary.
23472hardcode_direct=$hardcode_direct
6b66678a 23473
9d54db95 23474# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
9c60689e 23475# DIR into the resulting binary and the resulting library dependency is
9d54db95 23476# "absolute",i.e impossible to change by setting \$shlibpath_var if the
9c60689e
DWT
23477# library is relocated.
23478hardcode_direct_absolute=$hardcode_direct_absolute
6b66678a 23479
9c60689e
DWT
23480# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23481# into the resulting binary.
23482hardcode_minus_L=$hardcode_minus_L
6b66678a 23483
9c60689e
DWT
23484# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23485# into the resulting binary.
23486hardcode_shlibpath_var=$hardcode_shlibpath_var
6b66678a 23487
9c60689e
DWT
23488# Set to "yes" if building a shared library automatically hardcodes DIR
23489# into the library and all subsequent libraries and executables linked
23490# against it.
23491hardcode_automatic=$hardcode_automatic
6b66678a 23492
9c60689e
DWT
23493# Set to yes if linker adds runtime paths of dependent libraries
23494# to runtime path list.
23495inherit_rpath=$inherit_rpath
6b66678a 23496
9c60689e
DWT
23497# Whether libtool must link a program against all its dependency libraries.
23498link_all_deplibs=$link_all_deplibs
23499
9c60689e
DWT
23500# Set to "yes" if exported symbols are required.
23501always_export_symbols=$always_export_symbols
6b66678a 23502
9c60689e
DWT
23503# The commands to list exported symbols.
23504export_symbols_cmds=$lt_export_symbols_cmds
6b66678a 23505
9c60689e
DWT
23506# Symbols that should not be listed in the preloaded symbols.
23507exclude_expsyms=$lt_exclude_expsyms
6b66678a 23508
9c60689e
DWT
23509# Symbols that must always be exported.
23510include_expsyms=$lt_include_expsyms
6b66678a 23511
9c60689e
DWT
23512# Commands necessary for linking programs (against libraries) with templates.
23513prelink_cmds=$lt_prelink_cmds
6b66678a 23514
ee134472
JF
23515# Commands necessary for finishing linking programs.
23516postlink_cmds=$lt_postlink_cmds
23517
9c60689e
DWT
23518# Specify filename containing input files.
23519file_list_spec=$lt_file_list_spec
6b66678a 23520
9c60689e
DWT
23521# How to hardcode a shared library path into an executable.
23522hardcode_action=$hardcode_action
23523
23524# The directories searched by this compiler when creating a shared library.
23525compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23526
23527# Dependencies to place before and after the objects being linked to
23528# create a shared library.
23529predep_objects=$lt_predep_objects
23530postdep_objects=$lt_postdep_objects
23531predeps=$lt_predeps
23532postdeps=$lt_postdeps
23533
23534# The library search path used internally by the compiler when linking
23535# a shared library.
23536compiler_lib_search_path=$lt_compiler_lib_search_path
23537
23538# ### END LIBTOOL CONFIG
23539
9d54db95
JF
23540_LT_EOF
23541
23542 cat <<'_LT_EOF' >> "$cfgfile"
23543
23544# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23545
23546# func_munge_path_list VARIABLE PATH
23547# -----------------------------------
23548# VARIABLE is name of variable containing _space_ separated list of
23549# directories to be munged by the contents of PATH, which is string
23550# having a format:
23551# "DIR[:DIR]:"
23552# string "DIR[ DIR]" will be prepended to VARIABLE
23553# ":DIR[:DIR]"
23554# string "DIR[ DIR]" will be appended to VARIABLE
23555# "DIRP[:DIRP]::[DIRA:]DIRA"
23556# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23557# "DIRA[ DIRA]" will be appended to VARIABLE
23558# "DIR[:DIR]"
23559# VARIABLE will be replaced by "DIR[ DIR]"
23560func_munge_path_list ()
23561{
23562 case x$2 in
23563 x)
23564 ;;
23565 *:)
23566 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23567 ;;
23568 x:*)
23569 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23570 ;;
23571 *::*)
23572 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23573 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23574 ;;
23575 *)
23576 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23577 ;;
23578 esac
23579}
23580
23581
23582# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23583func_cc_basename ()
23584{
23585 for cc_temp in $*""; do
23586 case $cc_temp in
23587 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23588 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23589 \-*) ;;
23590 *) break;;
23591 esac
23592 done
23593 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23594}
23595
23596
23597# ### END FUNCTIONS SHARED WITH CONFIGURE
23598
9c60689e
DWT
23599_LT_EOF
23600
23601 case $host_os in
23602 aix3*)
23603 cat <<\_LT_EOF >> "$cfgfile"
23604# AIX sometimes has problems with the GCC collect2 program. For some
23605# reason, if we set the COLLECT_NAMES environment variable, the problems
23606# vanish in a puff of smoke.
9d54db95 23607if test set != "${COLLECT_NAMES+set}"; then
9c60689e
DWT
23608 COLLECT_NAMES=
23609 export COLLECT_NAMES
6b66678a 23610fi
9c60689e
DWT
23611_LT_EOF
23612 ;;
23613 esac
6b66678a
DWT
23614
23615
9d54db95 23616ltmain=$ac_aux_dir/ltmain.sh
6b66678a 23617
9c60689e
DWT
23618
23619 # We use sed instead of cat because bash on DJGPP gets confused if
23620 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23621 # text mode, it properly converts lines to CR/LF. This bash problem
23622 # is reportedly fixed, but why not run on old versions too?
ee134472
JF
23623 sed '$q' "$ltmain" >> "$cfgfile" \
23624 || (rm -f "$cfgfile"; exit 1)
23625
ee134472 23626 mv -f "$cfgfile" "$ofile" ||
9c60689e
DWT
23627 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23628 chmod +x "$ofile"
23629
23630
23631 cat <<_LT_EOF >> "$ofile"
23632
23633# ### BEGIN LIBTOOL TAG CONFIG: CXX
23634
23635# The linker used to build libraries.
23636LD=$lt_LD_CXX
23637
ee134472
JF
23638# How to create reloadable object files.
23639reload_flag=$lt_reload_flag_CXX
23640reload_cmds=$lt_reload_cmds_CXX
23641
9c60689e
DWT
23642# Commands used to build an old-style archive.
23643old_archive_cmds=$lt_old_archive_cmds_CXX
23644
23645# A language specific compiler.
23646CC=$lt_compiler_CXX
23647
23648# Is the compiler the GNU compiler?
23649with_gcc=$GCC_CXX
23650
23651# Compiler flag to turn off builtin functions.
23652no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
6b66678a 23653
9c60689e
DWT
23654# Additional compiler flags for building library objects.
23655pic_flag=$lt_lt_prog_compiler_pic_CXX
6b66678a 23656
ee134472
JF
23657# How to pass a linker flag through the compiler.
23658wl=$lt_lt_prog_compiler_wl_CXX
23659
9c60689e
DWT
23660# Compiler flag to prevent dynamic linking.
23661link_static_flag=$lt_lt_prog_compiler_static_CXX
6b66678a 23662
9c60689e
DWT
23663# Does compiler simultaneously support -c and -o options?
23664compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
dbadc56a 23665
9c60689e
DWT
23666# Whether or not to add -lc for building shared libraries.
23667build_libtool_need_lc=$archive_cmds_need_lc_CXX
dbadc56a 23668
9c60689e
DWT
23669# Whether or not to disallow shared libs when runtime libs are static.
23670allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35fa52c0 23671
9c60689e
DWT
23672# Compiler flag to allow reflexive dlopens.
23673export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35fa52c0 23674
9c60689e
DWT
23675# Compiler flag to generate shared objects directly from archives.
23676whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35fa52c0 23677
9c60689e
DWT
23678# Whether the compiler copes with passing no objects directly.
23679compiler_needs_object=$lt_compiler_needs_object_CXX
35fa52c0 23680
9c60689e
DWT
23681# Create an old-style archive from a shared archive.
23682old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35fa52c0 23683
9c60689e
DWT
23684# Create a temporary old-style archive to link instead of a shared archive.
23685old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35fa52c0 23686
9c60689e
DWT
23687# Commands used to build a shared archive.
23688archive_cmds=$lt_archive_cmds_CXX
23689archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
6b66678a 23690
9c60689e
DWT
23691# Commands used to build a loadable module if different from building
23692# a shared archive.
23693module_cmds=$lt_module_cmds_CXX
23694module_expsym_cmds=$lt_module_expsym_cmds_CXX
6b66678a 23695
9c60689e
DWT
23696# Whether we are building with GNU ld or not.
23697with_gnu_ld=$lt_with_gnu_ld_CXX
6b66678a 23698
9c60689e
DWT
23699# Flag that allows shared libraries with undefined symbols to be built.
23700allow_undefined_flag=$lt_allow_undefined_flag_CXX
35fa52c0 23701
9c60689e
DWT
23702# Flag that enforces no undefined symbols.
23703no_undefined_flag=$lt_no_undefined_flag_CXX
35fa52c0 23704
9c60689e
DWT
23705# Flag to hardcode \$libdir into a binary during linking.
23706# This must work even if \$libdir does not exist
23707hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
6b66678a 23708
9c60689e
DWT
23709# Whether we need a single "-rpath" flag with a separated argument.
23710hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
6b66678a 23711
9d54db95 23712# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
9c60689e
DWT
23713# DIR into the resulting binary.
23714hardcode_direct=$hardcode_direct_CXX
6b66678a 23715
9d54db95 23716# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
9c60689e 23717# DIR into the resulting binary and the resulting library dependency is
9d54db95 23718# "absolute",i.e impossible to change by setting \$shlibpath_var if the
9c60689e
DWT
23719# library is relocated.
23720hardcode_direct_absolute=$hardcode_direct_absolute_CXX
6b66678a 23721
9c60689e
DWT
23722# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23723# into the resulting binary.
23724hardcode_minus_L=$hardcode_minus_L_CXX
35fa52c0 23725
9c60689e
DWT
23726# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23727# into the resulting binary.
23728hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35fa52c0 23729
9c60689e
DWT
23730# Set to "yes" if building a shared library automatically hardcodes DIR
23731# into the library and all subsequent libraries and executables linked
23732# against it.
23733hardcode_automatic=$hardcode_automatic_CXX
6b66678a 23734
9c60689e
DWT
23735# Set to yes if linker adds runtime paths of dependent libraries
23736# to runtime path list.
23737inherit_rpath=$inherit_rpath_CXX
6b66678a 23738
9c60689e
DWT
23739# Whether libtool must link a program against all its dependency libraries.
23740link_all_deplibs=$link_all_deplibs_CXX
6b66678a 23741
9c60689e
DWT
23742# Set to "yes" if exported symbols are required.
23743always_export_symbols=$always_export_symbols_CXX
6b66678a 23744
9c60689e
DWT
23745# The commands to list exported symbols.
23746export_symbols_cmds=$lt_export_symbols_cmds_CXX
6b66678a 23747
9c60689e
DWT
23748# Symbols that should not be listed in the preloaded symbols.
23749exclude_expsyms=$lt_exclude_expsyms_CXX
6b66678a 23750
9c60689e
DWT
23751# Symbols that must always be exported.
23752include_expsyms=$lt_include_expsyms_CXX
6b66678a 23753
9c60689e
DWT
23754# Commands necessary for linking programs (against libraries) with templates.
23755prelink_cmds=$lt_prelink_cmds_CXX
6b66678a 23756
ee134472
JF
23757# Commands necessary for finishing linking programs.
23758postlink_cmds=$lt_postlink_cmds_CXX
23759
9c60689e
DWT
23760# Specify filename containing input files.
23761file_list_spec=$lt_file_list_spec_CXX
dbadc56a 23762
9c60689e
DWT
23763# How to hardcode a shared library path into an executable.
23764hardcode_action=$hardcode_action_CXX
309b0535 23765
9c60689e
DWT
23766# The directories searched by this compiler when creating a shared library.
23767compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
309b0535 23768
9c60689e
DWT
23769# Dependencies to place before and after the objects being linked to
23770# create a shared library.
23771predep_objects=$lt_predep_objects_CXX
23772postdep_objects=$lt_postdep_objects_CXX
23773predeps=$lt_predeps_CXX
23774postdeps=$lt_postdeps_CXX
309b0535 23775
9c60689e
DWT
23776# The library search path used internally by the compiler when linking
23777# a shared library.
23778compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23779
23780# ### END LIBTOOL TAG CONFIG: CXX
23781_LT_EOF
23782
23783 ;;
23784
23785 esac
23786done # for ac_tag
23787
23788
23789as_fn_exit 0
23790_ACEOF
23791ac_clean_files=$ac_clean_files_save
23792
23793test $ac_write_fail = 0 ||
12833ad8 23794 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
23795
23796
23797# configure is writing to config.log, and then calls config.status.
23798# config.status does its own redirection, appending to config.log.
23799# Unfortunately, on DOS this fails, as config.log is still kept open
23800# by configure, so config.status won't be able to write to it; its
23801# output is simply discarded. So we exec the FD to /dev/null,
23802# effectively closing config.log, so it can be properly (re)opened and
23803# appended to by config.status. When coming back to configure, we
23804# need to make the FD available again.
23805if test "$no_create" != yes; then
23806 ac_cs_success=:
23807 ac_config_status_args=
23808 test "$silent" = yes &&
23809 ac_config_status_args="$ac_config_status_args --quiet"
23810 exec 5>/dev/null
23811 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23812 exec 5>>config.log
23813 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23814 # would make configure fail if this is the last instruction.
12833ad8 23815 $ac_cs_success || as_fn_exit 1
309b0535 23816fi
9c60689e
DWT
23817if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23819$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23820fi
23821