]> git.saurik.com Git - cycript.git/blame - configure
Show more explicit types for Objective-C Instance.
[cycript.git] / configure
CommitLineData
c7aa54aa
DWT
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
53ba6704 3# Generated by GNU Autoconf 2.69 for Cycript 0.9.
c7aa54aa
DWT
4#
5# Report bugs to <saurik@saurik.com>.
6#
9c60689e 7#
53ba6704 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9c60689e 9#
c7aa54aa
DWT
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
66170b30 13#
c1d3e52e 14# Copyright (C) 2009-2015 Jay Freeman (saurik)
c7aa54aa
DWT
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
ee134472 94as_myself=
c7aa54aa
DWT
95case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104IFS=$as_save_IFS
105
106 ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111 as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there. '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
53ba6704
JF
139# Use a proper internal environment variable to ensure we don't fall
140 # into an infinite loop, continuously re-executing ourselves.
141 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
142 _as_can_reexec=no; export _as_can_reexec;
143 # We cannot yet assume a decent shell, so we have to provide a
144# neutralization value for shells without unset; and this also
145# works around shells that cannot unset nonexistent variables.
146# Preserve -v and -x to the replacement shell.
147BASH_ENV=/dev/null
148ENV=/dev/null
149(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
150case $- in # ((((
151 *v*x* | *x*v* ) as_opts=-vx ;;
152 *v* ) as_opts=-v ;;
153 *x* ) as_opts=-x ;;
154 * ) as_opts= ;;
155esac
156exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
157# Admittedly, this is quite paranoid, since all the known shells bail
158# out after a failed `exec'.
159$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160as_fn_exit 255
161 fi
162 # We don't want this to propagate to other subprocesses.
163 { _as_can_reexec=; unset _as_can_reexec;}
c7aa54aa
DWT
164if test "x$CONFIG_SHELL" = x; then
165 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 emulate sh
167 NULLCMD=:
168 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
169 # is contrary to our usage. Disable this feature.
170 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 setopt NO_GLOB_SUBST
172else
173 case \`(set -o) 2>/dev/null\` in #(
174 *posix*) :
175 set -o posix ;; #(
176 *) :
177 ;;
178esac
179fi
180"
181 as_required="as_fn_return () { (exit \$1); }
182as_fn_success () { as_fn_return 0; }
183as_fn_failure () { as_fn_return 1; }
184as_fn_ret_success () { return 0; }
185as_fn_ret_failure () { return 1; }
186
187exitcode=0
188as_fn_success || { exitcode=1; echo as_fn_success failed.; }
189as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
190as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
191as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
192if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193
194else
195 exitcode=1; echo positional parameters were not saved.
196fi
53ba6704
JF
197test x\$exitcode = x0 || exit 1
198test -x / || exit 1"
c7aa54aa
DWT
199 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
200 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
201 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
35fa52c0 202 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
ee134472
JF
203
204 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
205 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
208 PATH=/empty FPATH=/empty; export PATH FPATH
209 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
210 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
35fa52c0 211test \$(( 1 + 1 )) = 2 || exit 1"
c7aa54aa
DWT
212 if (eval "$as_required") 2>/dev/null; then :
213 as_have_required=yes
214else
215 as_have_required=no
216fi
217 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218
219else
220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221as_found=false
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 as_found=:
227 case $as_dir in #(
228 /*)
229 for as_base in sh bash ksh sh5; do
230 # Try only shells that exist, to save several forks.
231 as_shell=$as_dir/$as_base
232 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
233 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 CONFIG_SHELL=$as_shell as_have_required=yes
235 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
236 break 2
237fi
238fi
239 done;;
240 esac
241 as_found=false
242done
243$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
244 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
245 CONFIG_SHELL=$SHELL as_have_required=yes
246fi; }
247IFS=$as_save_IFS
248
249
250 if test "x$CONFIG_SHELL" != x; then :
53ba6704
JF
251 export CONFIG_SHELL
252 # We cannot yet assume a decent shell, so we have to provide a
253# neutralization value for shells without unset; and this also
254# works around shells that cannot unset nonexistent variables.
255# Preserve -v and -x to the replacement shell.
256BASH_ENV=/dev/null
257ENV=/dev/null
258(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
259case $- in # ((((
260 *v*x* | *x*v* ) as_opts=-vx ;;
261 *v* ) as_opts=-v ;;
262 *x* ) as_opts=-x ;;
263 * ) as_opts= ;;
264esac
265exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
266# Admittedly, this is quite paranoid, since all the known shells bail
267# out after a failed `exec'.
268$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
269exit 255
c7aa54aa
DWT
270fi
271
272 if test x$as_have_required = xno; then :
273 $as_echo "$0: This script requires a shell more modern than all"
274 $as_echo "$0: the shells that I found on your system."
275 if test x${ZSH_VERSION+set} = xset ; then
276 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
278 else
279 $as_echo "$0: Please tell bug-autoconf@gnu.org and saurik@saurik.com
280$0: about your system, including any error possibly output
281$0: before this message. Then install a modern shell, or
282$0: manually run the script under such a shell if you do
283$0: have one."
284 fi
285 exit 1
286fi
287fi
288fi
289SHELL=${CONFIG_SHELL-/bin/sh}
290export SHELL
291# Unset more variables known to interfere with behavior of common tools.
292CLICOLOR_FORCE= GREP_OPTIONS=
293unset CLICOLOR_FORCE GREP_OPTIONS
294
295## --------------------- ##
296## M4sh Shell Functions. ##
297## --------------------- ##
298# as_fn_unset VAR
299# ---------------
300# Portably unset VAR.
301as_fn_unset ()
302{
303 { eval $1=; unset $1;}
304}
305as_unset=as_fn_unset
306
307# as_fn_set_status STATUS
308# -----------------------
309# Set $? to STATUS, without forking.
310as_fn_set_status ()
311{
312 return $1
313} # as_fn_set_status
314
315# as_fn_exit STATUS
316# -----------------
317# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318as_fn_exit ()
319{
320 set +e
321 as_fn_set_status $1
322 exit $1
323} # as_fn_exit
324
325# as_fn_mkdir_p
326# -------------
327# Create "$as_dir" as a directory, including parents if necessary.
328as_fn_mkdir_p ()
329{
330
331 case $as_dir in #(
332 -*) as_dir=./$as_dir;;
333 esac
334 test -d "$as_dir" || eval $as_mkdir_p || {
335 as_dirs=
336 while :; do
337 case $as_dir in #(
338 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 *) as_qdir=$as_dir;;
340 esac
341 as_dirs="'$as_qdir' $as_dirs"
342 as_dir=`$as_dirname -- "$as_dir" ||
343$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
344 X"$as_dir" : 'X\(//\)[^/]' \| \
345 X"$as_dir" : 'X\(//\)$' \| \
346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
347$as_echo X"$as_dir" |
348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
349 s//\1/
350 q
351 }
352 /^X\(\/\/\)[^/].*/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\).*/{
361 s//\1/
362 q
363 }
364 s/.*/./; q'`
365 test -d "$as_dir" && break
366 done
367 test -z "$as_dirs" || eval "mkdir $as_dirs"
12833ad8 368 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
c7aa54aa
DWT
369
370
371} # as_fn_mkdir_p
53ba6704
JF
372
373# as_fn_executable_p FILE
374# -----------------------
375# Test if FILE is an executable regular file.
376as_fn_executable_p ()
377{
378 test -f "$1" && test -x "$1"
379} # as_fn_executable_p
c7aa54aa
DWT
380# as_fn_append VAR VALUE
381# ----------------------
382# Append the text in VALUE to the end of the definition contained in VAR. Take
383# advantage of any shell optimizations that allow amortized linear growth over
384# repeated appends, instead of the typical quadratic growth present in naive
385# implementations.
386if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
387 eval 'as_fn_append ()
388 {
389 eval $1+=\$2
390 }'
391else
392 as_fn_append ()
393 {
394 eval $1=\$$1\$2
395 }
396fi # as_fn_append
397
398# as_fn_arith ARG...
399# ------------------
400# Perform arithmetic evaluation on the ARGs, and store the result in the
401# global $as_val. Take advantage of shells that can avoid forks. The arguments
402# must be portable across $(()) and expr.
403if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
404 eval 'as_fn_arith ()
405 {
406 as_val=$(( $* ))
407 }'
408else
409 as_fn_arith ()
410 {
411 as_val=`expr "$@" || test $? -eq 1`
412 }
413fi # as_fn_arith
414
415
12833ad8
JF
416# as_fn_error STATUS ERROR [LINENO LOG_FD]
417# ----------------------------------------
c7aa54aa
DWT
418# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
419# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12833ad8 420# script with STATUS, using 1 if that was 0.
c7aa54aa
DWT
421as_fn_error ()
422{
12833ad8
JF
423 as_status=$1; test $as_status -eq 0 && as_status=1
424 if test "$4"; then
425 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
426 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
c7aa54aa 427 fi
12833ad8 428 $as_echo "$as_me: error: $2" >&2
c7aa54aa
DWT
429 as_fn_exit $as_status
430} # as_fn_error
431
432if expr a : '\(a\)' >/dev/null 2>&1 &&
433 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 as_expr=expr
435else
436 as_expr=false
437fi
438
439if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 as_basename=basename
441else
442 as_basename=false
443fi
444
445if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_dirname=dirname
447else
448 as_dirname=false
449fi
450
451as_me=`$as_basename -- "$0" ||
452$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
453 X"$0" : 'X\(//\)$' \| \
454 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455$as_echo X/"$0" |
456 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 s//\1/
458 q
459 }
460 /^X\/\(\/\/\)$/{
461 s//\1/
462 q
463 }
464 /^X\/\(\/\).*/{
465 s//\1/
466 q
467 }
468 s/.*/./; q'`
469
470# Avoid depending upon Character Ranges.
471as_cr_letters='abcdefghijklmnopqrstuvwxyz'
472as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
473as_cr_Letters=$as_cr_letters$as_cr_LETTERS
474as_cr_digits='0123456789'
475as_cr_alnum=$as_cr_Letters$as_cr_digits
476
477
478 as_lineno_1=$LINENO as_lineno_1a=$LINENO
479 as_lineno_2=$LINENO as_lineno_2a=$LINENO
480 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
481 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
482 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
483 sed -n '
484 p
485 /[$]LINENO/=
486 ' <$as_myself |
487 sed '
488 s/[$]LINENO.*/&-/
489 t lineno
490 b
491 :lineno
492 N
493 :loop
494 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
495 t loop
496 s/-\n.*//
497 ' >$as_me.lineno &&
498 chmod +x "$as_me.lineno" ||
499 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500
53ba6704
JF
501 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
502 # already done that, so ensure we don't try to do so again and fall
503 # in an infinite loop. This has already happened in practice.
504 _as_can_reexec=no; export _as_can_reexec
c7aa54aa
DWT
505 # Don't try to exec as it changes $[0], causing all sort of problems
506 # (the dirname of $[0] is not the place where we might find the
507 # original and so on. Autoconf is especially sensitive to this).
508 . "./$as_me.lineno"
509 # Exit status is that of the last command.
510 exit
511}
512
513ECHO_C= ECHO_N= ECHO_T=
514case `echo -n x` in #(((((
515-n*)
516 case `echo 'xy\c'` in
517 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
518 xy) ECHO_C='\c';;
519 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
520 ECHO_T=' ';;
521 esac;;
522*)
523 ECHO_N='-n';;
524esac
525
526rm -f conf$$ conf$$.exe conf$$.file
527if test -d conf$$.dir; then
528 rm -f conf$$.dir/conf$$.file
529else
530 rm -f conf$$.dir
531 mkdir conf$$.dir 2>/dev/null
532fi
533if (echo >conf$$.file) 2>/dev/null; then
534 if ln -s conf$$.file conf$$ 2>/dev/null; then
535 as_ln_s='ln -s'
536 # ... but there are two gotchas:
537 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
538 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53ba6704 539 # In both cases, we have to default to `cp -pR'.
c7aa54aa 540 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53ba6704 541 as_ln_s='cp -pR'
c7aa54aa
DWT
542 elif ln conf$$.file conf$$ 2>/dev/null; then
543 as_ln_s=ln
544 else
53ba6704 545 as_ln_s='cp -pR'
c7aa54aa
DWT
546 fi
547else
53ba6704 548 as_ln_s='cp -pR'
c7aa54aa
DWT
549fi
550rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
551rmdir conf$$.dir 2>/dev/null
552
553if mkdir -p . 2>/dev/null; then
554 as_mkdir_p='mkdir -p "$as_dir"'
555else
556 test -d ./-p && rmdir ./-p
557 as_mkdir_p=false
558fi
559
53ba6704
JF
560as_test_x='test -x'
561as_executable_p=as_fn_executable_p
c7aa54aa
DWT
562
563# Sed expression to map a string onto a valid CPP name.
564as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565
566# Sed expression to map a string onto a valid variable name.
567as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568
9c60689e
DWT
569SHELL=${CONFIG_SHELL-/bin/sh}
570
c7aa54aa 571
9c60689e
DWT
572test -n "$DJDIR" || exec 7<&0 </dev/null
573exec 6>&1
c7aa54aa
DWT
574
575# Name of the host.
12833ad8 576# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
c7aa54aa
DWT
577# so uname gets run too.
578ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
579
580#
581# Initializations.
582#
583ac_default_prefix=/usr/local
584ac_clean_files=
585ac_config_libobj_dir=.
586LIBOBJS=
587cross_compiling=no
588subdirs=
589MFLAGS=
590MAKEFLAGS=
591
592# Identity of this package.
593PACKAGE_NAME='Cycript'
594PACKAGE_TARNAME='cycript'
595PACKAGE_VERSION='0.9'
596PACKAGE_STRING='Cycript 0.9'
597PACKAGE_BUGREPORT='saurik@saurik.com'
598PACKAGE_URL='http://www.cycript.org/'
599
35fa52c0 600ac_unique_file="Console.cpp"
6b66678a
DWT
601# Factoring default headers for most tests.
602ac_includes_default="\
603#include <stdio.h>
604#ifdef HAVE_SYS_TYPES_H
605# include <sys/types.h>
606#endif
607#ifdef HAVE_SYS_STAT_H
608# include <sys/stat.h>
609#endif
610#ifdef STDC_HEADERS
611# include <stdlib.h>
612# include <stddef.h>
613#else
614# ifdef HAVE_STDLIB_H
615# include <stdlib.h>
616# endif
617#endif
618#ifdef HAVE_STRING_H
619# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
620# include <memory.h>
621# endif
622# include <string.h>
623#endif
624#ifdef HAVE_STRINGS_H
625# include <strings.h>
626#endif
627#ifdef HAVE_INTTYPES_H
628# include <inttypes.h>
629#endif
630#ifdef HAVE_STDINT_H
631# include <stdint.h>
632#endif
633#ifdef HAVE_UNISTD_H
634# include <unistd.h>
635#endif"
636
66170b30
JF
637ac_subst_vars='am__EXEEXT_FALSE
638am__EXEEXT_TRUE
639LTLIBOBJS
9c60689e 640LIBOBJS
9777bd50 641SO
66170b30 642LTFLAGS
3615a2f7 643LTLIBGCC
6f9aea2b
JF
644LTLIBTERMCAP
645LTLIBREADLINE
8d20f0f1
JF
646CY_PRELINK_FALSE
647CY_PRELINK_TRUE
648CY_LIBCLANG
a243b558
JF
649CY_OBJECTIVEC_FALSE
650CY_OBJECTIVEC_TRUE
39ed1631
JF
651CY_JAVA_FALSE
652CY_JAVA_TRUE
babf7fe8 653LTOBJECTIVEC
47aaa820 654GNUSTEP_CONFIG
c823f118 655CY_OBJECTIVEC
39ed1631
JF
656LTJAVA
657CY_JAVA
296ee9a6 658LTLIBFFI
309b0535 659LIBFFI_LIBS
35fa52c0 660LIBFFI_CFLAGS
8d20f0f1 661LTLIBSQLITE3
ae1b611e 662LTLIBUV
8d20f0f1 663CY_SYSTEM
a243b558
JF
664CY_EXECUTE_FALSE
665CY_EXECUTE_TRUE
a4287117
JF
666CY_ATTACH_FALSE
667CY_ATTACH_TRUE
a93f15c0
JF
668CY_CONSOLE_FALSE
669CY_CONSOLE_TRUE
babf7fe8 670LTJAVASCRIPTCORE
35fa52c0
DWT
671WEBKIT_LIBS
672WEBKIT_CFLAGS
7eda51e0 673CY_EXECUTE
be2fde87
JF
674PTHREAD_CFLAGS
675PTHREAD_LIBS
676PTHREAD_CC
677ax_pthread_config
77578fdd 678LFLAGS
e9c9a47c 679GNUTAR
e9c9a47c
DWT
680GPERF
681FLEX
682BISON
683TIME
66170b30 684GIT
12833ad8
JF
685PKG_CONFIG_LIBDIR
686PKG_CONFIG_PATH
3fd51f51 687PKG_CONFIG
1771224f 688HAVE_CXX11
9d54db95 689LT_SYS_LIBRARY_PATH
9c60689e
DWT
690OTOOL64
691OTOOL
692LIPO
693NMEDIT
694DSYMUTIL
ee134472 695MANIFEST_TOOL
9c60689e 696RANLIB
ee134472 697DLLTOOL
9c60689e
DWT
698OBJDUMP
699LN_S
700NM
701ac_ct_DUMPBIN
702DUMPBIN
703LD
704FGREP
705EGREP
706GREP
707SED
8d20f0f1
JF
708LIBTOOL
709ac_ct_AR
710AR
711CXXCPPFLAGS_FOR_BUILD
712CXXFLAGS_FOR_BUILD
713CXXCPP_FOR_BUILD
714ac_ct_CXX_FOR_BUILD
715CXX_FOR_BUILD
716CXXCPP
717LDFLAGS_FOR_BUILD
718CPPFLAGS_FOR_BUILD
719CFLAGS_FOR_BUILD
720BUILD_OBJEXT
721BUILD_EXEEXT
722CPP_FOR_BUILD
723ac_ct_CC_FOR_BUILD
724CC_FOR_BUILD
a243b558
JF
725host_os
726host_vendor
727host_cpu
728host
729build_os
730build_vendor
731build_cpu
732build
8d20f0f1 733CPP
a243b558
JF
734am__fastdepOBJCXX_FALSE
735am__fastdepOBJCXX_TRUE
736OBJCXXDEPMODE
737ac_ct_OBJCXX
738OBJCXXFLAGS
739OBJCXX
740am__fastdepCXX_FALSE
741am__fastdepCXX_TRUE
742CXXDEPMODE
a93f15c0
JF
743ac_ct_CXX
744CXXFLAGS
745CXX
746am__fastdepCC_FALSE
747am__fastdepCC_TRUE
748CCDEPMODE
66170b30
JF
749am__nodep
750AMDEPBACKSLASH
751AMDEP_FALSE
752AMDEP_TRUE
753am__quote
754am__include
755DEPDIR
35fa52c0
DWT
756OBJEXT
757EXEEXT
a93f15c0 758ac_ct_CC
35fa52c0
DWT
759CPPFLAGS
760LDFLAGS
a93f15c0
JF
761CFLAGS
762CC
babf7fe8
JF
763MAINT
764MAINTAINER_MODE_FALSE
765MAINTAINER_MODE_TRUE
66170b30
JF
766AM_BACKSLASH
767AM_DEFAULT_VERBOSITY
768AM_DEFAULT_V
769AM_V
770am__untar
771am__tar
772AMTAR
773am__leading_dot
774SET_MAKE
775AWK
776mkdir_p
777MKDIR_P
778INSTALL_STRIP_PROGRAM
779STRIP
780install_sh
781MAKEINFO
782AUTOHEADER
783AUTOMAKE
784AUTOCONF
785ACLOCAL
786VERSION
787PACKAGE
788CYGPATH_W
789am__isrc
790INSTALL_DATA
791INSTALL_SCRIPT
792INSTALL_PROGRAM
dbadc56a 793target_alias
c7aa54aa
DWT
794host_alias
795build_alias
796LIBS
797ECHO_T
798ECHO_N
799ECHO_C
800DEFS
801mandir
802localedir
803libdir
804psdir
805pdfdir
806dvidir
807htmldir
808infodir
809docdir
810oldincludedir
811includedir
812localstatedir
813sharedstatedir
814sysconfdir
815datadir
816datarootdir
817libexecdir
818sbindir
819bindir
820program_transform_name
821prefix
822exec_prefix
823PACKAGE_URL
824PACKAGE_BUGREPORT
825PACKAGE_STRING
826PACKAGE_VERSION
827PACKAGE_TARNAME
828PACKAGE_NAME
829PATH_SEPARATOR
830SHELL'
831ac_subst_files=''
832ac_user_opts='
833enable_option_checking
66170b30 834enable_silent_rules
babf7fe8 835enable_maintainer_mode
a243b558 836enable_dependency_tracking
9c60689e 837enable_static
549f29b5 838enable_shared
9c60689e
DWT
839with_pic
840enable_fast_install
9d54db95 841with_aix_soname
35fa52c0 842with_gnu_ld
ee134472 843with_sysroot
9c60689e 844enable_libtool_lock
5053a6d1 845enable_javascript
a93f15c0 846enable_console
a4287117 847enable_attach
8d20f0f1 848with_libclang
c7aa54aa
DWT
849'
850 ac_precious_vars='build_alias
851host_alias
dbadc56a 852target_alias
a93f15c0
JF
853CC
854CFLAGS
dbadc56a
DWT
855LDFLAGS
856LIBS
857CPPFLAGS
a93f15c0
JF
858CXX
859CXXFLAGS
a243b558
JF
860CCC
861OBJCXX
862OBJCXXFLAGS
9c60689e 863CPP
a243b558 864CXXCPP
8d20f0f1 865LT_SYS_LIBRARY_PATH
3fd51f51 866PKG_CONFIG
12833ad8
JF
867PKG_CONFIG_PATH
868PKG_CONFIG_LIBDIR
e9c9a47c
DWT
869BISON
870FLEX
871GPERF
66170b30 872GNUTAR
77578fdd 873LFLAGS
35fa52c0
DWT
874WEBKIT_CFLAGS
875WEBKIT_LIBS
a667869d 876LIBFFI_CFLAGS
790e5246
DWT
877LIBFFI_LIBS
878GNUSTEP_CONFIG'
c7aa54aa
DWT
879
880
881# Initialize some variables set by options.
882ac_init_help=
883ac_init_version=false
884ac_unrecognized_opts=
885ac_unrecognized_sep=
886# The variables have the same names as the options, with
887# dashes changed to underlines.
888cache_file=/dev/null
889exec_prefix=NONE
890no_create=
891no_recursion=
892prefix=NONE
893program_prefix=NONE
894program_suffix=NONE
895program_transform_name=s,x,x,
896silent=
897site=
898srcdir=
899verbose=
900x_includes=NONE
901x_libraries=NONE
902
903# Installation directory options.
904# These are left unexpanded so users can "make install exec_prefix=/foo"
905# and all the variables that are supposed to be based on exec_prefix
906# by default will actually change.
907# Use braces instead of parens because sh, perl, etc. also accept them.
908# (The list follows the same order as the GNU Coding Standards.)
909bindir='${exec_prefix}/bin'
910sbindir='${exec_prefix}/sbin'
911libexecdir='${exec_prefix}/libexec'
912datarootdir='${prefix}/share'
913datadir='${datarootdir}'
914sysconfdir='${prefix}/etc'
915sharedstatedir='${prefix}/com'
916localstatedir='${prefix}/var'
917includedir='${prefix}/include'
918oldincludedir='/usr/include'
919docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
920infodir='${datarootdir}/info'
921htmldir='${docdir}'
922dvidir='${docdir}'
923pdfdir='${docdir}'
924psdir='${docdir}'
925libdir='${exec_prefix}/lib'
926localedir='${datarootdir}/locale'
927mandir='${datarootdir}/man'
928
929ac_prev=
930ac_dashdash=
931for ac_option
932do
933 # If the previous option needs an argument, assign it.
934 if test -n "$ac_prev"; then
935 eval $ac_prev=\$ac_option
936 ac_prev=
937 continue
938 fi
939
940 case $ac_option in
12833ad8
JF
941 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
942 *=) ac_optarg= ;;
943 *) ac_optarg=yes ;;
c7aa54aa
DWT
944 esac
945
946 # Accept the important Cygnus configure options, so we can diagnose typos.
947
948 case $ac_dashdash$ac_option in
949 --)
950 ac_dashdash=yes ;;
951
952 -bindir | --bindir | --bindi | --bind | --bin | --bi)
953 ac_prev=bindir ;;
954 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
955 bindir=$ac_optarg ;;
956
957 -build | --build | --buil | --bui | --bu)
958 ac_prev=build_alias ;;
959 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
960 build_alias=$ac_optarg ;;
961
962 -cache-file | --cache-file | --cache-fil | --cache-fi \
963 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
964 ac_prev=cache_file ;;
965 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
966 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
967 cache_file=$ac_optarg ;;
968
969 --config-cache | -C)
970 cache_file=config.cache ;;
971
972 -datadir | --datadir | --datadi | --datad)
973 ac_prev=datadir ;;
974 -datadir=* | --datadir=* | --datadi=* | --datad=*)
975 datadir=$ac_optarg ;;
976
977 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
978 | --dataroo | --dataro | --datar)
979 ac_prev=datarootdir ;;
980 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
981 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
982 datarootdir=$ac_optarg ;;
983
984 -disable-* | --disable-*)
985 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
986 # Reject names that are not valid shell variable names.
987 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 988 as_fn_error $? "invalid feature name: $ac_useropt"
c7aa54aa
DWT
989 ac_useropt_orig=$ac_useropt
990 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
991 case $ac_user_opts in
992 *"
993"enable_$ac_useropt"
994"*) ;;
995 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
996 ac_unrecognized_sep=', ';;
997 esac
998 eval enable_$ac_useropt=no ;;
999
1000 -docdir | --docdir | --docdi | --doc | --do)
1001 ac_prev=docdir ;;
1002 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1003 docdir=$ac_optarg ;;
1004
1005 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1006 ac_prev=dvidir ;;
1007 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1008 dvidir=$ac_optarg ;;
1009
1010 -enable-* | --enable-*)
1011 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1012 # Reject names that are not valid shell variable names.
1013 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 1014 as_fn_error $? "invalid feature name: $ac_useropt"
c7aa54aa
DWT
1015 ac_useropt_orig=$ac_useropt
1016 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1017 case $ac_user_opts in
1018 *"
1019"enable_$ac_useropt"
1020"*) ;;
1021 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1022 ac_unrecognized_sep=', ';;
1023 esac
1024 eval enable_$ac_useropt=\$ac_optarg ;;
1025
1026 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1027 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1028 | --exec | --exe | --ex)
1029 ac_prev=exec_prefix ;;
1030 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1031 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1032 | --exec=* | --exe=* | --ex=*)
1033 exec_prefix=$ac_optarg ;;
1034
1035 -gas | --gas | --ga | --g)
1036 # Obsolete; use --with-gas.
1037 with_gas=yes ;;
1038
1039 -help | --help | --hel | --he | -h)
1040 ac_init_help=long ;;
1041 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1042 ac_init_help=recursive ;;
1043 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1044 ac_init_help=short ;;
1045
1046 -host | --host | --hos | --ho)
1047 ac_prev=host_alias ;;
1048 -host=* | --host=* | --hos=* | --ho=*)
1049 host_alias=$ac_optarg ;;
1050
1051 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1052 ac_prev=htmldir ;;
1053 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1054 | --ht=*)
1055 htmldir=$ac_optarg ;;
1056
1057 -includedir | --includedir | --includedi | --included | --include \
1058 | --includ | --inclu | --incl | --inc)
1059 ac_prev=includedir ;;
1060 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1061 | --includ=* | --inclu=* | --incl=* | --inc=*)
1062 includedir=$ac_optarg ;;
1063
1064 -infodir | --infodir | --infodi | --infod | --info | --inf)
1065 ac_prev=infodir ;;
1066 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1067 infodir=$ac_optarg ;;
1068
1069 -libdir | --libdir | --libdi | --libd)
1070 ac_prev=libdir ;;
1071 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1072 libdir=$ac_optarg ;;
1073
1074 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1075 | --libexe | --libex | --libe)
1076 ac_prev=libexecdir ;;
1077 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1078 | --libexe=* | --libex=* | --libe=*)
1079 libexecdir=$ac_optarg ;;
1080
1081 -localedir | --localedir | --localedi | --localed | --locale)
1082 ac_prev=localedir ;;
1083 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1084 localedir=$ac_optarg ;;
1085
1086 -localstatedir | --localstatedir | --localstatedi | --localstated \
1087 | --localstate | --localstat | --localsta | --localst | --locals)
1088 ac_prev=localstatedir ;;
1089 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1090 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1091 localstatedir=$ac_optarg ;;
1092
1093 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1094 ac_prev=mandir ;;
1095 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1096 mandir=$ac_optarg ;;
1097
1098 -nfp | --nfp | --nf)
1099 # Obsolete; use --without-fp.
1100 with_fp=no ;;
1101
1102 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1103 | --no-cr | --no-c | -n)
1104 no_create=yes ;;
1105
1106 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1107 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1108 no_recursion=yes ;;
1109
1110 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1111 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1112 | --oldin | --oldi | --old | --ol | --o)
1113 ac_prev=oldincludedir ;;
1114 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1115 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1116 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1117 oldincludedir=$ac_optarg ;;
1118
1119 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1120 ac_prev=prefix ;;
1121 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1122 prefix=$ac_optarg ;;
1123
1124 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1125 | --program-pre | --program-pr | --program-p)
1126 ac_prev=program_prefix ;;
1127 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1128 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1129 program_prefix=$ac_optarg ;;
1130
1131 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1132 | --program-suf | --program-su | --program-s)
1133 ac_prev=program_suffix ;;
1134 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1135 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1136 program_suffix=$ac_optarg ;;
1137
1138 -program-transform-name | --program-transform-name \
1139 | --program-transform-nam | --program-transform-na \
1140 | --program-transform-n | --program-transform- \
1141 | --program-transform | --program-transfor \
1142 | --program-transfo | --program-transf \
1143 | --program-trans | --program-tran \
1144 | --progr-tra | --program-tr | --program-t)
1145 ac_prev=program_transform_name ;;
1146 -program-transform-name=* | --program-transform-name=* \
1147 | --program-transform-nam=* | --program-transform-na=* \
1148 | --program-transform-n=* | --program-transform-=* \
1149 | --program-transform=* | --program-transfor=* \
1150 | --program-transfo=* | --program-transf=* \
1151 | --program-trans=* | --program-tran=* \
1152 | --progr-tra=* | --program-tr=* | --program-t=*)
1153 program_transform_name=$ac_optarg ;;
1154
1155 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1156 ac_prev=pdfdir ;;
1157 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1158 pdfdir=$ac_optarg ;;
1159
1160 -psdir | --psdir | --psdi | --psd | --ps)
1161 ac_prev=psdir ;;
1162 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1163 psdir=$ac_optarg ;;
1164
1165 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1166 | -silent | --silent | --silen | --sile | --sil)
1167 silent=yes ;;
1168
1169 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1170 ac_prev=sbindir ;;
1171 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1172 | --sbi=* | --sb=*)
1173 sbindir=$ac_optarg ;;
1174
1175 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1176 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1177 | --sharedst | --shareds | --shared | --share | --shar \
1178 | --sha | --sh)
1179 ac_prev=sharedstatedir ;;
1180 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1181 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1182 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1183 | --sha=* | --sh=*)
1184 sharedstatedir=$ac_optarg ;;
1185
1186 -site | --site | --sit)
1187 ac_prev=site ;;
1188 -site=* | --site=* | --sit=*)
1189 site=$ac_optarg ;;
1190
1191 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1192 ac_prev=srcdir ;;
1193 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1194 srcdir=$ac_optarg ;;
1195
1196 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1197 | --syscon | --sysco | --sysc | --sys | --sy)
1198 ac_prev=sysconfdir ;;
1199 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1200 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1201 sysconfdir=$ac_optarg ;;
1202
1203 -target | --target | --targe | --targ | --tar | --ta | --t)
1204 ac_prev=target_alias ;;
1205 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1206 target_alias=$ac_optarg ;;
1207
1208 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1209 verbose=yes ;;
1210
1211 -version | --version | --versio | --versi | --vers | -V)
1212 ac_init_version=: ;;
1213
1214 -with-* | --with-*)
1215 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 1218 as_fn_error $? "invalid package name: $ac_useropt"
c7aa54aa
DWT
1219 ac_useropt_orig=$ac_useropt
1220 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1221 case $ac_user_opts in
1222 *"
1223"with_$ac_useropt"
1224"*) ;;
1225 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1226 ac_unrecognized_sep=', ';;
1227 esac
1228 eval with_$ac_useropt=\$ac_optarg ;;
1229
1230 -without-* | --without-*)
1231 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1232 # Reject names that are not valid shell variable names.
1233 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
12833ad8 1234 as_fn_error $? "invalid package name: $ac_useropt"
c7aa54aa
DWT
1235 ac_useropt_orig=$ac_useropt
1236 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1237 case $ac_user_opts in
1238 *"
1239"with_$ac_useropt"
1240"*) ;;
1241 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1242 ac_unrecognized_sep=', ';;
1243 esac
1244 eval with_$ac_useropt=no ;;
1245
1246 --x)
1247 # Obsolete; use --with-x.
1248 with_x=yes ;;
1249
1250 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1251 | --x-incl | --x-inc | --x-in | --x-i)
1252 ac_prev=x_includes ;;
1253 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1254 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1255 x_includes=$ac_optarg ;;
1256
1257 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1258 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1259 ac_prev=x_libraries ;;
1260 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1261 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1262 x_libraries=$ac_optarg ;;
1263
12833ad8
JF
1264 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1265Try \`$0 --help' for more information"
c7aa54aa
DWT
1266 ;;
1267
1268 *=*)
1269 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1270 # Reject names that are not valid shell variable names.
1271 case $ac_envvar in #(
1272 '' | [0-9]* | *[!_$as_cr_alnum]* )
12833ad8 1273 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
c7aa54aa
DWT
1274 esac
1275 eval $ac_envvar=\$ac_optarg
1276 export $ac_envvar ;;
1277
1278 *)
1279 # FIXME: should be removed in autoconf 3.0.
1280 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1281 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1282 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ee134472 1283 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
c7aa54aa
DWT
1284 ;;
1285
1286 esac
1287done
1288
1289if test -n "$ac_prev"; then
1290 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
12833ad8 1291 as_fn_error $? "missing argument to $ac_option"
c7aa54aa
DWT
1292fi
1293
1294if test -n "$ac_unrecognized_opts"; then
1295 case $enable_option_checking in
1296 no) ;;
12833ad8 1297 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
c7aa54aa
DWT
1298 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1299 esac
1300fi
1301
1302# Check all directory arguments for consistency.
1303for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1304 datadir sysconfdir sharedstatedir localstatedir includedir \
1305 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1306 libdir localedir mandir
1307do
1308 eval ac_val=\$$ac_var
1309 # Remove trailing slashes.
1310 case $ac_val in
1311 */ )
1312 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1313 eval $ac_var=\$ac_val;;
1314 esac
1315 # Be sure to have absolute directory names.
1316 case $ac_val in
1317 [\\/$]* | ?:[\\/]* ) continue;;
1318 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1319 esac
12833ad8 1320 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
c7aa54aa
DWT
1321done
1322
1323# There might be people who depend on the old broken behavior: `$host'
1324# used to hold the argument of --host etc.
1325# FIXME: To remove some day.
1326build=$build_alias
1327host=$host_alias
1328target=$target_alias
1329
1330# FIXME: To remove some day.
1331if test "x$host_alias" != x; then
1332 if test "x$build_alias" = x; then
1333 cross_compiling=maybe
c7aa54aa
DWT
1334 elif test "x$build_alias" != "x$host_alias"; then
1335 cross_compiling=yes
1336 fi
1337fi
1338
1339ac_tool_prefix=
1340test -n "$host_alias" && ac_tool_prefix=$host_alias-
1341
1342test "$silent" = yes && exec 6>/dev/null
1343
1344
1345ac_pwd=`pwd` && test -n "$ac_pwd" &&
1346ac_ls_di=`ls -di .` &&
1347ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
12833ad8 1348 as_fn_error $? "working directory cannot be determined"
c7aa54aa 1349test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
12833ad8 1350 as_fn_error $? "pwd does not report name of working directory"
c7aa54aa
DWT
1351
1352
1353# Find the source files, if location was not specified.
1354if test -z "$srcdir"; then
1355 ac_srcdir_defaulted=yes
1356 # Try the directory containing this script, then the parent directory.
1357 ac_confdir=`$as_dirname -- "$as_myself" ||
1358$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1359 X"$as_myself" : 'X\(//\)[^/]' \| \
1360 X"$as_myself" : 'X\(//\)$' \| \
1361 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1362$as_echo X"$as_myself" |
1363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1364 s//\1/
1365 q
1366 }
1367 /^X\(\/\/\)[^/].*/{
1368 s//\1/
1369 q
1370 }
1371 /^X\(\/\/\)$/{
1372 s//\1/
1373 q
1374 }
1375 /^X\(\/\).*/{
1376 s//\1/
1377 q
1378 }
1379 s/.*/./; q'`
1380 srcdir=$ac_confdir
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382 srcdir=..
1383 fi
1384else
1385 ac_srcdir_defaulted=no
1386fi
1387if test ! -r "$srcdir/$ac_unique_file"; then
1388 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
12833ad8 1389 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
c7aa54aa
DWT
1390fi
1391ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1392ac_abs_confdir=`(
12833ad8 1393 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
c7aa54aa
DWT
1394 pwd)`
1395# When building in place, set srcdir=.
1396if test "$ac_abs_confdir" = "$ac_pwd"; then
1397 srcdir=.
1398fi
1399# Remove unnecessary trailing slashes from srcdir.
1400# Double slashes in file names in object file debugging info
1401# mess up M-x gdb in Emacs.
1402case $srcdir in
1403*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1404esac
1405for ac_var in $ac_precious_vars; do
1406 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1407 eval ac_env_${ac_var}_value=\$${ac_var}
1408 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1409 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1410done
1411
1412#
1413# Report the --help message.
1414#
1415if test "$ac_init_help" = "long"; then
1416 # Omit some internal or obsolete options to make the list less imposing.
1417 # This message is too long to be a string in the A/UX 3.1 sh.
1418 cat <<_ACEOF
1419\`configure' configures Cycript 0.9 to adapt to many kinds of systems.
1420
1421Usage: $0 [OPTION]... [VAR=VALUE]...
1422
1423To assign environment variables (e.g., CC, CFLAGS...), specify them as
1424VAR=VALUE. See below for descriptions of some of the useful variables.
1425
1426Defaults for the options are specified in brackets.
1427
1428Configuration:
1429 -h, --help display this help and exit
1430 --help=short display options specific to this package
1431 --help=recursive display the short help of all the included packages
1432 -V, --version display version information and exit
12833ad8 1433 -q, --quiet, --silent do not print \`checking ...' messages
c7aa54aa
DWT
1434 --cache-file=FILE cache test results in FILE [disabled]
1435 -C, --config-cache alias for \`--cache-file=config.cache'
1436 -n, --no-create do not create output files
1437 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1438
1439Installation directories:
1440 --prefix=PREFIX install architecture-independent files in PREFIX
1441 [$ac_default_prefix]
1442 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1443 [PREFIX]
1444
1445By default, \`make install' will install all the files in
1446\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1447an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1448for instance \`--prefix=\$HOME'.
1449
1450For better control, use the options below.
1451
1452Fine tuning of the installation directories:
1453 --bindir=DIR user executables [EPREFIX/bin]
1454 --sbindir=DIR system admin executables [EPREFIX/sbin]
1455 --libexecdir=DIR program executables [EPREFIX/libexec]
1456 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1457 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1458 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1459 --libdir=DIR object code libraries [EPREFIX/lib]
1460 --includedir=DIR C header files [PREFIX/include]
1461 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1462 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1463 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1464 --infodir=DIR info documentation [DATAROOTDIR/info]
1465 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1466 --mandir=DIR man documentation [DATAROOTDIR/man]
1467 --docdir=DIR documentation root [DATAROOTDIR/doc/cycript]
1468 --htmldir=DIR html documentation [DOCDIR]
1469 --dvidir=DIR dvi documentation [DOCDIR]
1470 --pdfdir=DIR pdf documentation [DOCDIR]
1471 --psdir=DIR ps documentation [DOCDIR]
1472_ACEOF
1473
1474 cat <<\_ACEOF
35fa52c0 1475
66170b30
JF
1476Program names:
1477 --program-prefix=PREFIX prepend PREFIX to installed program names
1478 --program-suffix=SUFFIX append SUFFIX to installed program names
1479 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1480
35fa52c0
DWT
1481System types:
1482 --build=BUILD configure for building on BUILD [guessed]
1483 --host=HOST cross-compile to build programs to run on HOST [BUILD]
c7aa54aa
DWT
1484_ACEOF
1485fi
1486
1487if test -n "$ac_init_help"; then
1488 case $ac_init_help in
1489 short | recursive ) echo "Configuration of Cycript 0.9:";;
1490 esac
1491 cat <<\_ACEOF
1492
35fa52c0
DWT
1493Optional Features:
1494 --disable-option-checking ignore unrecognized --enable/--with options
1495 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1496 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
66170b30
JF
1497 --enable-silent-rules less verbose build output (undo: "make V=1")
1498 --disable-silent-rules verbose build output (undo: "make V=0")
babf7fe8
JF
1499 --enable-maintainer-mode
1500 enable make rules and dependencies not useful (and
1501 sometimes confusing) to the casual installer
66170b30
JF
1502 --enable-dependency-tracking
1503 do not reject slow dependency extractors
1504 --disable-dependency-tracking
1505 speeds up one-time build
a243b558
JF
1506 --enable-static[=PKGS] build static libraries [default=no]
1507 --enable-shared[=PKGS] build shared libraries [default=yes]
1508 --enable-fast-install[=PKGS]
1509 optimize for fast installation [default=yes]
9c60689e 1510 --disable-libtool-lock avoid locking (might break parallel builds)
b66977f1 1511 --enable-javascript[=ENGINE]
790e5246 1512 use a JavaScript runtime (currently the only
b66977f1
DWT
1513 available option for ENGINE is JavaScriptCore)
1514 [default=yes]
a93f15c0 1515 --disable-console disable console
a4287117 1516 --disable-attach disable attach
35fa52c0
DWT
1517
1518Optional Packages:
1519 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1520 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
53ba6704 1521 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
9c60689e 1522 both]
9d54db95
JF
1523 --with-aix-soname=aix|svr4|both
1524 shared library versioning (aka "SONAME") variant to
1525 provide on AIX, [default=aix].
9c60689e 1526 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
9d54db95
JF
1527 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1528 compiler's sysroot if not specified).
8d20f0f1 1529 --with-libclang build bridge definitions using this libclang
35fa52c0 1530
dbadc56a 1531Some influential environment variables:
a93f15c0
JF
1532 CC C compiler command
1533 CFLAGS C compiler flags
dbadc56a
DWT
1534 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1535 nonstandard directory <lib dir>
1536 LIBS libraries to pass to the linker, e.g. -l<library>
9c60689e 1537 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
dbadc56a 1538 you have headers in a nonstandard directory <include dir>
a93f15c0
JF
1539 CXX C++ compiler command
1540 CXXFLAGS C++ compiler flags
a243b558
JF
1541 OBJCXX Objective C++ compiler command
1542 OBJCXXFLAGS Objective C++ compiler flags
9c60689e 1543 CPP C preprocessor
a243b558 1544 CXXCPP C++ preprocessor
8d20f0f1
JF
1545 LT_SYS_LIBRARY_PATH
1546 User-defined run-time library search path.
3fd51f51 1547 PKG_CONFIG path to pkg-config utility
12833ad8
JF
1548 PKG_CONFIG_PATH
1549 directories to add to pkg-config's search path
1550 PKG_CONFIG_LIBDIR
1551 path overriding pkg-config's built-in search path
e9c9a47c
DWT
1552 BISON GNU Project parser generator (yacc replacement)
1553 FLEX the fast lexical analyser generator
1554 GPERF perfect hash function generator
66170b30 1555 GNUTAR a very sticky lump of files
77578fdd 1556 LFLAGS flex flags
35fa52c0
DWT
1557 WEBKIT_CFLAGS
1558 C compiler flags for WEBKIT, overriding pkg-config
1559 WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config
574d4720
JF
1560 LIBFFI_CFLAGS
1561 C compiler flags for LIBFFI, overriding pkg-config
1562 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
790e5246
DWT
1563 GNUSTEP_CONFIG
1564 prints information about the current gnustep installation
dbadc56a
DWT
1565
1566Use these variables to override the choices made by `configure' or to help
1567it to find libraries and programs with nonstandard names/locations.
1568
c7aa54aa
DWT
1569Report bugs to <saurik@saurik.com>.
1570Cycript home page: <http://www.cycript.org/>.
1571_ACEOF
1572ac_status=$?
1573fi
1574
1575if test "$ac_init_help" = "recursive"; then
1576 # If there are subdirs, report their specific --help.
1577 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1578 test -d "$ac_dir" ||
1579 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1580 continue
1581 ac_builddir=.
1582
1583case "$ac_dir" in
1584.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1585*)
1586 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1587 # A ".." for each directory in $ac_dir_suffix.
1588 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1589 case $ac_top_builddir_sub in
1590 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1591 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1592 esac ;;
1593esac
1594ac_abs_top_builddir=$ac_pwd
1595ac_abs_builddir=$ac_pwd$ac_dir_suffix
1596# for backward compatibility:
1597ac_top_builddir=$ac_top_build_prefix
1598
1599case $srcdir in
1600 .) # We are building in place.
1601 ac_srcdir=.
1602 ac_top_srcdir=$ac_top_builddir_sub
1603 ac_abs_top_srcdir=$ac_pwd ;;
1604 [\\/]* | ?:[\\/]* ) # Absolute name.
1605 ac_srcdir=$srcdir$ac_dir_suffix;
1606 ac_top_srcdir=$srcdir
1607 ac_abs_top_srcdir=$srcdir ;;
1608 *) # Relative name.
1609 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1610 ac_top_srcdir=$ac_top_build_prefix$srcdir
1611 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1612esac
1613ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1614
1615 cd "$ac_dir" || { ac_status=$?; continue; }
1616 # Check for guested configure.
1617 if test -f "$ac_srcdir/configure.gnu"; then
1618 echo &&
1619 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1620 elif test -f "$ac_srcdir/configure"; then
1621 echo &&
1622 $SHELL "$ac_srcdir/configure" --help=recursive
1623 else
1624 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1625 fi || ac_status=$?
1626 cd "$ac_pwd" || { ac_status=$?; break; }
1627 done
1628fi
1629
1630test -n "$ac_init_help" && exit $ac_status
1631if $ac_init_version; then
1632 cat <<\_ACEOF
1633Cycript configure 0.9
53ba6704 1634generated by GNU Autoconf 2.69
c7aa54aa 1635
53ba6704 1636Copyright (C) 2012 Free Software Foundation, Inc.
c7aa54aa
DWT
1637This configure script is free software; the Free Software Foundation
1638gives unlimited permission to copy, distribute and modify it.
66170b30 1639
c1d3e52e 1640Copyright (C) 2009-2015 Jay Freeman (saurik)
c7aa54aa
DWT
1641_ACEOF
1642 exit
1643fi
1644
1645## ------------------------ ##
1646## Autoconf initialization. ##
1647## ------------------------ ##
dbadc56a 1648
a93f15c0
JF
1649# ac_fn_c_try_compile LINENO
1650# --------------------------
a243b558 1651# Try to compile conftest.$ac_ext, and return whether this succeeded.
a93f15c0 1652ac_fn_c_try_compile ()
a243b558
JF
1653{
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 rm -f conftest.$ac_objext
1656 if { { ac_try="$ac_compile"
1657case "(($ac_try" in
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1660esac
1661eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662$as_echo "$ac_try_echo"; } >&5
1663 (eval "$ac_compile") 2>conftest.err
1664 ac_status=$?
1665 if test -s conftest.err; then
1666 grep -v '^ *+' conftest.err >conftest.er1
1667 cat conftest.er1 >&5
1668 mv -f conftest.er1 conftest.err
1669 fi
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } && {
a93f15c0 1672 test -z "$ac_c_werror_flag" ||
a243b558
JF
1673 test ! -s conftest.err
1674 } && test -s conftest.$ac_objext; then :
1675 ac_retval=0
1676else
1677 $as_echo "$as_me: failed program was:" >&5
1678sed 's/^/| /' conftest.$ac_ext >&5
1679
1680 ac_retval=1
1681fi
1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683 as_fn_set_status $ac_retval
1684
a93f15c0 1685} # ac_fn_c_try_compile
a243b558 1686
a93f15c0
JF
1687# ac_fn_cxx_try_compile LINENO
1688# ----------------------------
a243b558 1689# Try to compile conftest.$ac_ext, and return whether this succeeded.
a93f15c0 1690ac_fn_cxx_try_compile ()
a243b558
JF
1691{
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 rm -f conftest.$ac_objext
1694 if { { ac_try="$ac_compile"
1695case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698esac
1699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700$as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_compile") 2>conftest.err
1702 ac_status=$?
1703 if test -s conftest.err; then
1704 grep -v '^ *+' conftest.err >conftest.er1
1705 cat conftest.er1 >&5
1706 mv -f conftest.er1 conftest.err
1707 fi
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } && {
a93f15c0 1710 test -z "$ac_cxx_werror_flag" ||
a243b558
JF
1711 test ! -s conftest.err
1712 } && test -s conftest.$ac_objext; then :
1713 ac_retval=0
1714else
1715 $as_echo "$as_me: failed program was:" >&5
1716sed 's/^/| /' conftest.$ac_ext >&5
1717
1718 ac_retval=1
1719fi
1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721 as_fn_set_status $ac_retval
1722
a93f15c0 1723} # ac_fn_cxx_try_compile
a243b558 1724
a93f15c0
JF
1725# ac_fn_objcxx_try_compile LINENO
1726# -------------------------------
35fa52c0 1727# Try to compile conftest.$ac_ext, and return whether this succeeded.
a93f15c0 1728ac_fn_objcxx_try_compile ()
35fa52c0
DWT
1729{
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 rm -f conftest.$ac_objext
1732 if { { ac_try="$ac_compile"
1733case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736esac
1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738$as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_compile") 2>conftest.err
1740 ac_status=$?
1741 if test -s conftest.err; then
1742 grep -v '^ *+' conftest.err >conftest.er1
1743 cat conftest.er1 >&5
1744 mv -f conftest.er1 conftest.err
1745 fi
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; } && {
a93f15c0 1748 test -z "$ac_objcxx_werror_flag" ||
35fa52c0
DWT
1749 test ! -s conftest.err
1750 } && test -s conftest.$ac_objext; then :
1751 ac_retval=0
1752else
1753 $as_echo "$as_me: failed program was:" >&5
1754sed 's/^/| /' conftest.$ac_ext >&5
1755
1756 ac_retval=1
1757fi
ee134472 1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1759 as_fn_set_status $ac_retval
35fa52c0 1760
a93f15c0 1761} # ac_fn_objcxx_try_compile
35fa52c0 1762
8d20f0f1
JF
1763# ac_fn_c_try_cpp LINENO
1764# ----------------------
1765# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1766ac_fn_c_try_cpp ()
1767{
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 if { { ac_try="$ac_cpp conftest.$ac_ext"
1770case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773esac
1774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775$as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1777 ac_status=$?
1778 if test -s conftest.err; then
1779 grep -v '^ *+' conftest.err >conftest.er1
1780 cat conftest.er1 >&5
1781 mv -f conftest.er1 conftest.err
1782 fi
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } > conftest.i && {
1785 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1786 test ! -s conftest.err
1787 }; then :
1788 ac_retval=0
1789else
1790 $as_echo "$as_me: failed program was:" >&5
1791sed 's/^/| /' conftest.$ac_ext >&5
1792
1793 ac_retval=1
1794fi
1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796 as_fn_set_status $ac_retval
1797
1798} # ac_fn_c_try_cpp
1799
1800# ac_fn_cxx_try_cpp LINENO
1801# ------------------------
1802# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1803ac_fn_cxx_try_cpp ()
1804{
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 if { { ac_try="$ac_cpp conftest.$ac_ext"
1807case "(($ac_try" in
1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1810esac
1811eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812$as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1814 ac_status=$?
1815 if test -s conftest.err; then
1816 grep -v '^ *+' conftest.err >conftest.er1
1817 cat conftest.er1 >&5
1818 mv -f conftest.er1 conftest.err
1819 fi
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; } > conftest.i && {
1822 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1823 test ! -s conftest.err
1824 }; then :
1825 ac_retval=0
1826else
1827 $as_echo "$as_me: failed program was:" >&5
1828sed 's/^/| /' conftest.$ac_ext >&5
1829
1830 ac_retval=1
1831fi
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833 as_fn_set_status $ac_retval
1834
1835} # ac_fn_cxx_try_cpp
1836
35fa52c0
DWT
1837# ac_fn_c_try_link LINENO
1838# -----------------------
1839# Try to link conftest.$ac_ext, and return whether this succeeded.
1840ac_fn_c_try_link ()
1841{
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 rm -f conftest.$ac_objext conftest$ac_exeext
1844 if { { ac_try="$ac_link"
1845case "(($ac_try" in
1846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847 *) ac_try_echo=$ac_try;;
1848esac
1849eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850$as_echo "$ac_try_echo"; } >&5
1851 (eval "$ac_link") 2>conftest.err
1852 ac_status=$?
1853 if test -s conftest.err; then
1854 grep -v '^ *+' conftest.err >conftest.er1
1855 cat conftest.er1 >&5
1856 mv -f conftest.er1 conftest.err
1857 fi
1858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859 test $ac_status = 0; } && {
1860 test -z "$ac_c_werror_flag" ||
1861 test ! -s conftest.err
1862 } && test -s conftest$ac_exeext && {
1863 test "$cross_compiling" = yes ||
53ba6704 1864 test -x conftest$ac_exeext
35fa52c0
DWT
1865 }; then :
1866 ac_retval=0
1867else
1868 $as_echo "$as_me: failed program was:" >&5
1869sed 's/^/| /' conftest.$ac_ext >&5
1870
1871 ac_retval=1
1872fi
1873 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1874 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1875 # interfere with the next link command; also delete a directory that is
1876 # left behind by Apple's compiler. We do this before executing the actions.
1877 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1879 as_fn_set_status $ac_retval
35fa52c0
DWT
1880
1881} # ac_fn_c_try_link
1882
9c60689e
DWT
1883# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1884# -------------------------------------------------------
1885# Tests whether HEADER exists and can be compiled using the include files in
1886# INCLUDES, setting the cache variable VAR accordingly.
1887ac_fn_c_check_header_compile ()
dbadc56a
DWT
1888{
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1891$as_echo_n "checking for $2... " >&6; }
ee134472 1892if eval \${$3+:} false; then :
9c60689e
DWT
1893 $as_echo_n "(cached) " >&6
1894else
1895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896/* end confdefs.h. */
1897$4
1898#include <$2>
1899_ACEOF
1900if ac_fn_c_try_compile "$LINENO"; then :
1901 eval "$3=yes"
1902else
1903 eval "$3=no"
1904fi
1905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1906fi
1907eval ac_res=\$$3
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1909$as_echo "$ac_res" >&6; }
ee134472 1910 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
1911
1912} # ac_fn_c_check_header_compile
1913
35fa52c0
DWT
1914# ac_fn_c_try_run LINENO
1915# ----------------------
1916# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1917# that executables *can* be run.
1918ac_fn_c_try_run ()
1919{
1920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1921 if { { ac_try="$ac_link"
1922case "(($ac_try" in
1923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1924 *) ac_try_echo=$ac_try;;
1925esac
1926eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1927$as_echo "$ac_try_echo"; } >&5
1928 (eval "$ac_link") 2>&5
1929 ac_status=$?
1930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1931 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1932 { { case "(($ac_try" in
1933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1934 *) ac_try_echo=$ac_try;;
1935esac
1936eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1937$as_echo "$ac_try_echo"; } >&5
1938 (eval "$ac_try") 2>&5
1939 ac_status=$?
1940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1941 test $ac_status = 0; }; }; then :
1942 ac_retval=0
1943else
1944 $as_echo "$as_me: program exited with status $ac_status" >&5
1945 $as_echo "$as_me: failed program was:" >&5
1946sed 's/^/| /' conftest.$ac_ext >&5
1947
1948 ac_retval=$ac_status
1949fi
1950 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 1951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e 1952 as_fn_set_status $ac_retval
35fa52c0
DWT
1953
1954} # ac_fn_c_try_run
6b66678a 1955
9c60689e
DWT
1956# ac_fn_c_check_func LINENO FUNC VAR
1957# ----------------------------------
1958# Tests whether FUNC exists, setting the cache variable VAR accordingly
1959ac_fn_c_check_func ()
6b66678a
DWT
1960{
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9c60689e
DWT
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1963$as_echo_n "checking for $2... " >&6; }
ee134472 1964if eval \${$3+:} false; then :
9c60689e 1965 $as_echo_n "(cached) " >&6
6b66678a 1966else
9c60689e
DWT
1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968/* end confdefs.h. */
1969/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1971#define $2 innocuous_$2
6b66678a 1972
9c60689e
DWT
1973/* System header to define __stub macros and hopefully few prototypes,
1974 which can conflict with char $2 (); below.
1975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1976 <limits.h> exists even on freestanding compilers. */
1977
1978#ifdef __STDC__
1979# include <limits.h>
1980#else
1981# include <assert.h>
1982#endif
1983
1984#undef $2
1985
1986/* Override any GCC internal prototype to avoid an error.
1987 Use char because int might match the return type of a GCC
1988 builtin and then its argument prototype would still apply. */
1989#ifdef __cplusplus
1990extern "C"
1991#endif
1992char $2 ();
1993/* The GNU C library defines this for functions which it implements
1994 to always fail with ENOSYS. Some functions are actually named
1995 something starting with __ and the normal name is an alias. */
1996#if defined __stub_$2 || defined __stub___$2
1997choke me
1998#endif
1999
2000int
2001main ()
2002{
2003return $2 ();
2004 ;
2005 return 0;
2006}
2007_ACEOF
2008if ac_fn_c_try_link "$LINENO"; then :
2009 eval "$3=yes"
2010else
2011 eval "$3=no"
2012fi
2013rm -f core conftest.err conftest.$ac_objext \
2014 conftest$ac_exeext conftest.$ac_ext
6b66678a 2015fi
9c60689e
DWT
2016eval ac_res=\$$3
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2018$as_echo "$ac_res" >&6; }
ee134472 2019 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6b66678a 2020
9c60689e 2021} # ac_fn_c_check_func
6b66678a 2022
9c60689e
DWT
2023# ac_fn_cxx_try_link LINENO
2024# -------------------------
2025# Try to link conftest.$ac_ext, and return whether this succeeded.
2026ac_fn_cxx_try_link ()
2027{
2028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029 rm -f conftest.$ac_objext conftest$ac_exeext
2030 if { { ac_try="$ac_link"
2031case "(($ac_try" in
2032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2033 *) ac_try_echo=$ac_try;;
2034esac
2035eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2036$as_echo "$ac_try_echo"; } >&5
2037 (eval "$ac_link") 2>conftest.err
2038 ac_status=$?
2039 if test -s conftest.err; then
2040 grep -v '^ *+' conftest.err >conftest.er1
2041 cat conftest.er1 >&5
2042 mv -f conftest.er1 conftest.err
2043 fi
2044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2045 test $ac_status = 0; } && {
2046 test -z "$ac_cxx_werror_flag" ||
2047 test ! -s conftest.err
2048 } && test -s conftest$ac_exeext && {
2049 test "$cross_compiling" = yes ||
53ba6704 2050 test -x conftest$ac_exeext
9c60689e
DWT
2051 }; then :
2052 ac_retval=0
2053else
2054 $as_echo "$as_me: failed program was:" >&5
2055sed 's/^/| /' conftest.$ac_ext >&5
2056
2057 ac_retval=1
2058fi
2059 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2060 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2061 # interfere with the next link command; also delete a directory that is
2062 # left behind by Apple's compiler. We do this before executing the actions.
2063 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 2064 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
9c60689e
DWT
2065 as_fn_set_status $ac_retval
2066
2067} # ac_fn_cxx_try_link
2068
47aaa820
DWT
2069# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2070# ---------------------------------------------------------
2071# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2072# the include files in INCLUDES and setting the cache variable VAR
2073# accordingly.
2074ac_fn_cxx_check_header_mongrel ()
2075{
2076 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
ee134472 2077 if eval \${$3+:} false; then :
47aaa820
DWT
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2079$as_echo_n "checking for $2... " >&6; }
ee134472 2080if eval \${$3+:} false; then :
47aaa820
DWT
2081 $as_echo_n "(cached) " >&6
2082fi
2083eval ac_res=\$$3
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2085$as_echo "$ac_res" >&6; }
2086else
2087 # Is the header compilable?
2088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2089$as_echo_n "checking $2 usability... " >&6; }
2090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091/* end confdefs.h. */
2092$4
2093#include <$2>
2094_ACEOF
2095if ac_fn_cxx_try_compile "$LINENO"; then :
2096 ac_header_compiler=yes
2097else
2098 ac_header_compiler=no
2099fi
2100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2102$as_echo "$ac_header_compiler" >&6; }
2103
2104# Is the header present?
2105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2106$as_echo_n "checking $2 presence... " >&6; }
2107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108/* end confdefs.h. */
2109#include <$2>
2110_ACEOF
2111if ac_fn_cxx_try_cpp "$LINENO"; then :
2112 ac_header_preproc=yes
2113else
2114 ac_header_preproc=no
2115fi
12833ad8 2116rm -f conftest.err conftest.i conftest.$ac_ext
47aaa820
DWT
2117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2118$as_echo "$ac_header_preproc" >&6; }
2119
2120# So? What about this header?
2121case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2122 yes:no: )
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2124$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2126$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2127 ;;
2128 no:yes:* )
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2130$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2132$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2134$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2136$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2138$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
12833ad8 2139( $as_echo "## -------------------------------- ##
47aaa820 2140## Report this to saurik@saurik.com ##
12833ad8 2141## -------------------------------- ##"
47aaa820
DWT
2142 ) | sed "s/^/$as_me: WARNING: /" >&2
2143 ;;
2144esac
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2146$as_echo_n "checking for $2... " >&6; }
ee134472 2147if eval \${$3+:} false; then :
47aaa820
DWT
2148 $as_echo_n "(cached) " >&6
2149else
2150 eval "$3=\$ac_header_compiler"
2151fi
2152eval ac_res=\$$3
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2154$as_echo "$ac_res" >&6; }
2155fi
ee134472 2156 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
47aaa820
DWT
2157
2158} # ac_fn_cxx_check_header_mongrel
2159
574d4720
JF
2160# ac_fn_cxx_check_func LINENO FUNC VAR
2161# ------------------------------------
2162# Tests whether FUNC exists, setting the cache variable VAR accordingly
2163ac_fn_cxx_check_func ()
2164{
2165 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2167$as_echo_n "checking for $2... " >&6; }
2168if eval \${$3+:} false; then :
2169 $as_echo_n "(cached) " >&6
2170else
2171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2172/* end confdefs.h. */
2173/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2175#define $2 innocuous_$2
2176
2177/* System header to define __stub macros and hopefully few prototypes,
2178 which can conflict with char $2 (); below.
2179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2180 <limits.h> exists even on freestanding compilers. */
2181
2182#ifdef __STDC__
2183# include <limits.h>
2184#else
2185# include <assert.h>
2186#endif
2187
2188#undef $2
2189
2190/* Override any GCC internal prototype to avoid an error.
2191 Use char because int might match the return type of a GCC
2192 builtin and then its argument prototype would still apply. */
2193#ifdef __cplusplus
2194extern "C"
2195#endif
2196char $2 ();
2197/* The GNU C library defines this for functions which it implements
2198 to always fail with ENOSYS. Some functions are actually named
2199 something starting with __ and the normal name is an alias. */
2200#if defined __stub_$2 || defined __stub___$2
2201choke me
2202#endif
2203
2204int
2205main ()
2206{
2207return $2 ();
2208 ;
2209 return 0;
2210}
2211_ACEOF
2212if ac_fn_cxx_try_link "$LINENO"; then :
2213 eval "$3=yes"
2214else
2215 eval "$3=no"
2216fi
2217rm -f core conftest.err conftest.$ac_objext \
2218 conftest$ac_exeext conftest.$ac_ext
2219fi
2220eval ac_res=\$$3
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2222$as_echo "$ac_res" >&6; }
2223 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2224
2225} # ac_fn_cxx_check_func
2226
c823f118
DWT
2227# ac_fn_objcxx_try_link LINENO
2228# ----------------------------
2229# Try to link conftest.$ac_ext, and return whether this succeeded.
2230ac_fn_objcxx_try_link ()
2231{
2232 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2233 rm -f conftest.$ac_objext conftest$ac_exeext
2234 if { { ac_try="$ac_link"
2235case "(($ac_try" in
2236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2237 *) ac_try_echo=$ac_try;;
2238esac
2239eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2240$as_echo "$ac_try_echo"; } >&5
2241 (eval "$ac_link") 2>conftest.err
2242 ac_status=$?
2243 if test -s conftest.err; then
2244 grep -v '^ *+' conftest.err >conftest.er1
2245 cat conftest.er1 >&5
2246 mv -f conftest.er1 conftest.err
2247 fi
2248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2249 test $ac_status = 0; } && {
2250 test -z "$ac_objcxx_werror_flag" ||
2251 test ! -s conftest.err
2252 } && test -s conftest$ac_exeext && {
2253 test "$cross_compiling" = yes ||
53ba6704 2254 test -x conftest$ac_exeext
c823f118
DWT
2255 }; then :
2256 ac_retval=0
2257else
2258 $as_echo "$as_me: failed program was:" >&5
2259sed 's/^/| /' conftest.$ac_ext >&5
2260
2261 ac_retval=1
2262fi
2263 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2264 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2265 # interfere with the next link command; also delete a directory that is
2266 # left behind by Apple's compiler. We do this before executing the actions.
2267 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
ee134472 2268 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
c823f118
DWT
2269 as_fn_set_status $ac_retval
2270
2271} # ac_fn_objcxx_try_link
c7aa54aa
DWT
2272cat >config.log <<_ACEOF
2273This file contains any messages produced by compilers while
2274running configure, to aid debugging if configure makes a mistake.
2275
2276It was created by Cycript $as_me 0.9, which was
53ba6704 2277generated by GNU Autoconf 2.69. Invocation command line was
c7aa54aa
DWT
2278
2279 $ $0 $@
2280
2281_ACEOF
2282exec 5>>config.log
2283{
2284cat <<_ASUNAME
2285## --------- ##
2286## Platform. ##
2287## --------- ##
2288
2289hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2290uname -m = `(uname -m) 2>/dev/null || echo unknown`
2291uname -r = `(uname -r) 2>/dev/null || echo unknown`
2292uname -s = `(uname -s) 2>/dev/null || echo unknown`
2293uname -v = `(uname -v) 2>/dev/null || echo unknown`
2294
2295/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2296/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2297
2298/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2299/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2300/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2301/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2302/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2303/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2304/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2305
2306_ASUNAME
2307
2308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309for as_dir in $PATH
2310do
2311 IFS=$as_save_IFS
2312 test -z "$as_dir" && as_dir=.
2313 $as_echo "PATH: $as_dir"
2314 done
2315IFS=$as_save_IFS
2316
2317} >&5
2318
2319cat >&5 <<_ACEOF
2320
2321
2322## ----------- ##
2323## Core tests. ##
2324## ----------- ##
2325
2326_ACEOF
2327
2328
2329# Keep a trace of the command line.
2330# Strip out --no-create and --no-recursion so they do not pile up.
2331# Strip out --silent because we don't want to record it for future runs.
2332# Also quote any args containing shell meta-characters.
2333# Make two passes to allow for proper duplicate-argument suppression.
2334ac_configure_args=
2335ac_configure_args0=
2336ac_configure_args1=
2337ac_must_keep_next=false
2338for ac_pass in 1 2
2339do
2340 for ac_arg
2341 do
2342 case $ac_arg in
2343 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2344 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2345 | -silent | --silent | --silen | --sile | --sil)
2346 continue ;;
2347 *\'*)
2348 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2349 esac
2350 case $ac_pass in
2351 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2352 2)
2353 as_fn_append ac_configure_args1 " '$ac_arg'"
2354 if test $ac_must_keep_next = true; then
2355 ac_must_keep_next=false # Got value, back to normal.
2356 else
2357 case $ac_arg in
2358 *=* | --config-cache | -C | -disable-* | --disable-* \
2359 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2360 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2361 | -with-* | --with-* | -without-* | --without-* | --x)
2362 case "$ac_configure_args0 " in
2363 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2364 esac
2365 ;;
2366 -* ) ac_must_keep_next=true ;;
2367 esac
2368 fi
2369 as_fn_append ac_configure_args " '$ac_arg'"
2370 ;;
2371 esac
2372 done
2373done
2374{ ac_configure_args0=; unset ac_configure_args0;}
2375{ ac_configure_args1=; unset ac_configure_args1;}
2376
2377# When interrupted or exit'd, cleanup temporary files, and complete
2378# config.log. We remove comments because anyway the quotes in there
2379# would cause problems or look ugly.
2380# WARNING: Use '\'' to represent an apostrophe within the trap.
2381# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2382trap 'exit_status=$?
2383 # Save into config.log some information that might help in debugging.
2384 {
2385 echo
2386
12833ad8 2387 $as_echo "## ---------------- ##
c7aa54aa 2388## Cache variables. ##
12833ad8 2389## ---------------- ##"
c7aa54aa
DWT
2390 echo
2391 # The following way of writing the cache mishandles newlines in values,
2392(
2393 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2394 eval ac_val=\$$ac_var
2395 case $ac_val in #(
2396 *${as_nl}*)
2397 case $ac_var in #(
2398 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2399$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2400 esac
2401 case $ac_var in #(
2402 _ | IFS | as_nl) ;; #(
2403 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2404 *) { eval $ac_var=; unset $ac_var;} ;;
2405 esac ;;
2406 esac
2407 done
2408 (set) 2>&1 |
2409 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2410 *${as_nl}ac_space=\ *)
2411 sed -n \
2412 "s/'\''/'\''\\\\'\'''\''/g;
2413 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2414 ;; #(
2415 *)
2416 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2417 ;;
2418 esac |
2419 sort
2420)
2421 echo
2422
12833ad8 2423 $as_echo "## ----------------- ##
c7aa54aa 2424## Output variables. ##
12833ad8 2425## ----------------- ##"
c7aa54aa
DWT
2426 echo
2427 for ac_var in $ac_subst_vars
2428 do
2429 eval ac_val=\$$ac_var
2430 case $ac_val in
2431 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2432 esac
2433 $as_echo "$ac_var='\''$ac_val'\''"
2434 done | sort
2435 echo
2436
2437 if test -n "$ac_subst_files"; then
12833ad8 2438 $as_echo "## ------------------- ##
c7aa54aa 2439## File substitutions. ##
12833ad8 2440## ------------------- ##"
c7aa54aa
DWT
2441 echo
2442 for ac_var in $ac_subst_files
2443 do
2444 eval ac_val=\$$ac_var
2445 case $ac_val in
2446 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2447 esac
2448 $as_echo "$ac_var='\''$ac_val'\''"
2449 done | sort
2450 echo
2451 fi
2452
2453 if test -s confdefs.h; then
12833ad8 2454 $as_echo "## ----------- ##
c7aa54aa 2455## confdefs.h. ##
12833ad8 2456## ----------- ##"
c7aa54aa
DWT
2457 echo
2458 cat confdefs.h
2459 echo
2460 fi
2461 test "$ac_signal" != 0 &&
2462 $as_echo "$as_me: caught signal $ac_signal"
2463 $as_echo "$as_me: exit $exit_status"
2464 } >&5
2465 rm -f core *.core core.conftest.* &&
2466 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2467 exit $exit_status
2468' 0
2469for ac_signal in 1 2 13 15; do
2470 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2471done
2472ac_signal=0
2473
2474# confdefs.h avoids OS command line length limits that DEFS can exceed.
2475rm -f -r conftest* confdefs.h
2476
2477$as_echo "/* confdefs.h */" > confdefs.h
2478
2479# Predefined preprocessor variables.
2480
2481cat >>confdefs.h <<_ACEOF
2482#define PACKAGE_NAME "$PACKAGE_NAME"
2483_ACEOF
2484
2485cat >>confdefs.h <<_ACEOF
2486#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2487_ACEOF
2488
2489cat >>confdefs.h <<_ACEOF
2490#define PACKAGE_VERSION "$PACKAGE_VERSION"
2491_ACEOF
2492
2493cat >>confdefs.h <<_ACEOF
2494#define PACKAGE_STRING "$PACKAGE_STRING"
2495_ACEOF
2496
2497cat >>confdefs.h <<_ACEOF
2498#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2499_ACEOF
2500
2501cat >>confdefs.h <<_ACEOF
2502#define PACKAGE_URL "$PACKAGE_URL"
2503_ACEOF
2504
2505
2506# Let the site file select an alternate cache file if it wants to.
2507# Prefer an explicitly selected file to automatically selected ones.
2508ac_site_file1=NONE
2509ac_site_file2=NONE
2510if test -n "$CONFIG_SITE"; then
12833ad8
JF
2511 # We do not want a PATH search for config.site.
2512 case $CONFIG_SITE in #((
2513 -*) ac_site_file1=./$CONFIG_SITE;;
2514 */*) ac_site_file1=$CONFIG_SITE;;
2515 *) ac_site_file1=./$CONFIG_SITE;;
2516 esac
c7aa54aa
DWT
2517elif test "x$prefix" != xNONE; then
2518 ac_site_file1=$prefix/share/config.site
2519 ac_site_file2=$prefix/etc/config.site
2520else
2521 ac_site_file1=$ac_default_prefix/share/config.site
2522 ac_site_file2=$ac_default_prefix/etc/config.site
2523fi
2524for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2525do
2526 test "x$ac_site_file" = xNONE && continue
9c60689e 2527 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
c7aa54aa
DWT
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2529$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2530 sed 's/^/| /' "$ac_site_file" >&5
12833ad8
JF
2531 . "$ac_site_file" \
2532 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2533$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2534as_fn_error $? "failed to load site script $ac_site_file
ee134472 2535See \`config.log' for more details" "$LINENO" 5; }
c7aa54aa
DWT
2536 fi
2537done
2538
2539if test -r "$cache_file"; then
9c60689e
DWT
2540 # Some versions of bash will fail to source /dev/null (special files
2541 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2542 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
c7aa54aa
DWT
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2544$as_echo "$as_me: loading cache $cache_file" >&6;}
2545 case $cache_file in
2546 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2547 *) . "./$cache_file";;
2548 esac
2549 fi
2550else
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2552$as_echo "$as_me: creating cache $cache_file" >&6;}
2553 >$cache_file
2554fi
2555
2556# Check that the precious variables saved in the cache have kept the same
2557# value.
2558ac_cache_corrupted=false
2559for ac_var in $ac_precious_vars; do
2560 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2561 eval ac_new_set=\$ac_env_${ac_var}_set
2562 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2563 eval ac_new_val=\$ac_env_${ac_var}_value
2564 case $ac_old_set,$ac_new_set in
2565 set,)
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2567$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2568 ac_cache_corrupted=: ;;
2569 ,set)
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2571$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2572 ac_cache_corrupted=: ;;
2573 ,);;
2574 *)
2575 if test "x$ac_old_val" != "x$ac_new_val"; then
2576 # differences in whitespace do not lead to failure.
2577 ac_old_val_w=`echo x $ac_old_val`
2578 ac_new_val_w=`echo x $ac_new_val`
2579 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2581$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2582 ac_cache_corrupted=:
2583 else
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2585$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2586 eval $ac_var=\$ac_old_val
2587 fi
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2589$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2591$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2592 fi;;
2593 esac
2594 # Pass precious variables to config.status.
2595 if test "$ac_new_set" = set; then
2596 case $ac_new_val in
2597 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2598 *) ac_arg=$ac_var=$ac_new_val ;;
2599 esac
2600 case " $ac_configure_args " in
2601 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2602 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2603 esac
2604 fi
2605done
2606if $ac_cache_corrupted; then
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2610$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
12833ad8 2611 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
c7aa54aa
DWT
2612fi
2613## -------------------- ##
2614## Main body of script. ##
2615## -------------------- ##
2616
2617ac_ext=c
2618ac_cpp='$CPP $CPPFLAGS'
2619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2621ac_compiler_gnu=$ac_cv_c_compiler_gnu
2622
2623
66170b30
JF
2624
2625
35fa52c0 2626
6b66678a
DWT
2627ac_aux_dir=
2628for ac_dir in . "$srcdir"/.; do
12833ad8
JF
2629 if test -f "$ac_dir/install-sh"; then
2630 ac_aux_dir=$ac_dir
2631 ac_install_sh="$ac_aux_dir/install-sh -c"
2632 break
2633 elif test -f "$ac_dir/install.sh"; then
2634 ac_aux_dir=$ac_dir
2635 ac_install_sh="$ac_aux_dir/install.sh -c"
2636 break
2637 elif test -f "$ac_dir/shtool"; then
2638 ac_aux_dir=$ac_dir
2639 ac_install_sh="$ac_aux_dir/shtool install -c"
2640 break
2641 fi
6b66678a
DWT
2642done
2643if test -z "$ac_aux_dir"; then
12833ad8 2644 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
6b66678a
DWT
2645fi
2646
2647# These three variables are undocumented and unsupported,
2648# and are intended to be withdrawn in a future Autoconf release.
2649# They can cause serious problems if a builder's source tree is in a directory
2650# whose full name contains unusual characters.
2651ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2652ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2653ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2654
2655
9c60689e 2656
296ee9a6
JF
2657ac_config_headers="$ac_config_headers config.h"
2658
9c60689e 2659
795230e5 2660am__api_version='1.15'
9c60689e 2661
66170b30
JF
2662# Find a good install program. We prefer a C program (faster),
2663# so one script is as good as another. But avoid the broken or
2664# incompatible versions:
2665# SysV /etc/install, /usr/sbin/install
2666# SunOS /usr/etc/install
2667# IRIX /sbin/install
2668# AIX /bin/install
2669# AmigaOS /C/install, which installs bootblocks on floppy discs
2670# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2671# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2672# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2673# OS/2's system install, which has a completely different semantic
2674# ./install, which can be erroneously created by make from ./install.sh.
2675# Reject install programs that cannot install multiple files.
2676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2677$as_echo_n "checking for a BSD-compatible install... " >&6; }
2678if test -z "$INSTALL"; then
2679if ${ac_cv_path_install+:} false; then :
2680 $as_echo_n "(cached) " >&6
2681else
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683for as_dir in $PATH
2684do
2685 IFS=$as_save_IFS
2686 test -z "$as_dir" && as_dir=.
2687 # Account for people who put trailing slashes in PATH elements.
2688case $as_dir/ in #((
2689 ./ | .// | /[cC]/* | \
2690 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2691 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2692 /usr/ucb/* ) ;;
2693 *)
2694 # OSF1 and SCO ODT 3.0 have their own names for install.
2695 # Don't use installbsd from OSF since it installs stuff as root
2696 # by default.
2697 for ac_prog in ginstall scoinst install; do
2698 for ac_exec_ext in '' $ac_executable_extensions; do
2699 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2700 if test $ac_prog = install &&
2701 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2702 # AIX install. It has an incompatible calling convention.
2703 :
2704 elif test $ac_prog = install &&
2705 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2706 # program-specific install script used by HP pwplus--don't use.
2707 :
2708 else
2709 rm -rf conftest.one conftest.two conftest.dir
2710 echo one > conftest.one
2711 echo two > conftest.two
2712 mkdir conftest.dir
2713 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2714 test -s conftest.one && test -s conftest.two &&
2715 test -s conftest.dir/conftest.one &&
2716 test -s conftest.dir/conftest.two
2717 then
2718 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2719 break 3
2720 fi
2721 fi
2722 fi
2723 done
2724 done
2725 ;;
2726esac
9c60689e 2727
66170b30
JF
2728 done
2729IFS=$as_save_IFS
9c60689e 2730
66170b30 2731rm -rf conftest.one conftest.two conftest.dir
9c60689e 2732
66170b30
JF
2733fi
2734 if test "${ac_cv_path_install+set}" = set; then
2735 INSTALL=$ac_cv_path_install
2736 else
2737 # As a last resort, use the slow shell script. Don't cache a
2738 # value for INSTALL within a source directory, because that will
2739 # break other packages using the cache if that directory is
2740 # removed, or if the value is a relative name.
2741 INSTALL=$ac_install_sh
2742 fi
2743fi
2744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2745$as_echo "$INSTALL" >&6; }
9c60689e 2746
66170b30
JF
2747# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2748# It thinks the first close brace ends the variable substitution.
2749test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9c60689e 2750
66170b30 2751test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9c60689e 2752
66170b30 2753test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9c60689e 2754
66170b30
JF
2755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2756$as_echo_n "checking whether build environment is sane... " >&6; }
2757# Reject unsafe characters in $srcdir or the absolute working directory
2758# name. Accept space and tab only in the latter.
2759am_lf='
2760'
2761case `pwd` in
2762 *[\\\"\#\$\&\'\`$am_lf]*)
2763 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2764esac
2765case $srcdir in
2766 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2767 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2768esac
9c60689e 2769
66170b30
JF
2770# Do 'set' in a subshell so we don't clobber the current shell's
2771# arguments. Must try -L first in case configure is actually a
2772# symlink; some systems play weird games with the mod time of symlinks
2773# (eg FreeBSD returns the mod time of the symlink's containing
2774# directory).
2775if (
2776 am_has_slept=no
2777 for am_try in 1 2; do
2778 echo "timestamp, slept: $am_has_slept" > conftest.file
2779 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2780 if test "$*" = "X"; then
2781 # -L didn't work.
2782 set X `ls -t "$srcdir/configure" conftest.file`
2783 fi
2784 if test "$*" != "X $srcdir/configure conftest.file" \
2785 && test "$*" != "X conftest.file $srcdir/configure"; then
2786
2787 # If neither matched, then we have a broken ls. This can happen
2788 # if, for instance, CONFIG_SHELL is bash and it inherits a
2789 # broken ls alias from the environment. This has actually
2790 # happened. Such a system could not be considered "sane".
2791 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2792 alias in your environment" "$LINENO" 5
2793 fi
2794 if test "$2" = conftest.file || test $am_try -eq 2; then
2795 break
2796 fi
2797 # Just in case.
2798 sleep 1
2799 am_has_slept=yes
2800 done
2801 test "$2" = conftest.file
2802 )
2803then
2804 # Ok.
2805 :
2806else
2807 as_fn_error $? "newly created file is older than distributed files!
2808Check your system clock" "$LINENO" 5
2809fi
2810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2811$as_echo "yes" >&6; }
2812# If we didn't sleep, we still need to ensure time stamps of config.status and
2813# generated files are strictly newer.
2814am_sleep_pid=
2815if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2816 ( sleep 1 ) &
2817 am_sleep_pid=$!
2818fi
2819
2820rm -f conftest.file
2821
2822test "$program_prefix" != NONE &&
2823 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2824# Use a double $ so make ignores it.
2825test "$program_suffix" != NONE &&
2826 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2827# Double any \ or $.
2828# By default was `s,x,x', remove it if useless.
2829ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2830program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2831
795230e5
JF
2832# Expand $ac_aux_dir to an absolute path.
2833am_aux_dir=`cd "$ac_aux_dir" && pwd`
66170b30
JF
2834
2835if test x"${MISSING+set}" != xset; then
2836 case $am_aux_dir in
2837 *\ * | *\ *)
2838 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2839 *)
2840 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2841 esac
2842fi
2843# Use eval to expand $SHELL
2844if eval "$MISSING --is-lightweight"; then
2845 am_missing_run="$MISSING "
2846else
2847 am_missing_run=
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2849$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2850fi
9c60689e 2851
795230e5 2852if test x"${install_sh+set}" != xset; then
66170b30
JF
2853 case $am_aux_dir in
2854 *\ * | *\ *)
2855 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2856 *)
2857 install_sh="\${SHELL} $am_aux_dir/install-sh"
2858 esac
2859fi
9c60689e 2860
66170b30
JF
2861# Installed binaries are usually stripped using 'strip' when the user
2862# run "make install-strip". However 'strip' might not be the right
2863# tool to use in cross-compilation environments, therefore Automake
2864# will honor the 'STRIP' environment variable to overrule this program.
2865if test "$cross_compiling" != no; then
2866 if test -n "$ac_tool_prefix"; then
2867 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2868set dummy ${ac_tool_prefix}strip; ac_word=$2
2869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2870$as_echo_n "checking for $ac_word... " >&6; }
2871if ${ac_cv_prog_STRIP+:} false; then :
2872 $as_echo_n "(cached) " >&6
2873else
2874 if test -n "$STRIP"; then
2875 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2876else
2877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878for as_dir in $PATH
2879do
2880 IFS=$as_save_IFS
2881 test -z "$as_dir" && as_dir=.
2882 for ac_exec_ext in '' $ac_executable_extensions; do
2883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2884 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2886 break 2
2887 fi
2888done
2889 done
2890IFS=$as_save_IFS
9c60689e 2891
66170b30
JF
2892fi
2893fi
2894STRIP=$ac_cv_prog_STRIP
2895if test -n "$STRIP"; then
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2897$as_echo "$STRIP" >&6; }
2898else
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2900$as_echo "no" >&6; }
2901fi
9c60689e 2902
9c60689e 2903
66170b30
JF
2904fi
2905if test -z "$ac_cv_prog_STRIP"; then
2906 ac_ct_STRIP=$STRIP
2907 # Extract the first word of "strip", so it can be a program name with args.
2908set dummy strip; ac_word=$2
2909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2910$as_echo_n "checking for $ac_word... " >&6; }
2911if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9c60689e
DWT
2912 $as_echo_n "(cached) " >&6
2913else
66170b30
JF
2914 if test -n "$ac_ct_STRIP"; then
2915 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2916else
2917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918for as_dir in $PATH
2919do
2920 IFS=$as_save_IFS
2921 test -z "$as_dir" && as_dir=.
2922 for ac_exec_ext in '' $ac_executable_extensions; do
2923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2924 ac_cv_prog_ac_ct_STRIP="strip"
2925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2926 break 2
2927 fi
2928done
2929 done
2930IFS=$as_save_IFS
9c60689e
DWT
2931
2932fi
66170b30
JF
2933fi
2934ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2935if test -n "$ac_ct_STRIP"; then
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2937$as_echo "$ac_ct_STRIP" >&6; }
2938else
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2940$as_echo "no" >&6; }
2941fi
2942
2943 if test "x$ac_ct_STRIP" = x; then
2944 STRIP=":"
2945 else
2946 case $cross_compiling:$ac_tool_warned in
2947yes:)
2948{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2949$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2950ac_tool_warned=yes ;;
9c60689e 2951esac
66170b30
JF
2952 STRIP=$ac_ct_STRIP
2953 fi
2954else
2955 STRIP="$ac_cv_prog_STRIP"
2956fi
9c60689e 2957
66170b30
JF
2958fi
2959INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9c60689e 2960
66170b30
JF
2961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2962$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2963if test -z "$MKDIR_P"; then
2964 if ${ac_cv_path_mkdir+:} false; then :
9c60689e
DWT
2965 $as_echo_n "(cached) " >&6
2966else
66170b30
JF
2967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2969do
2970 IFS=$as_save_IFS
2971 test -z "$as_dir" && as_dir=.
2972 for ac_prog in mkdir gmkdir; do
2973 for ac_exec_ext in '' $ac_executable_extensions; do
2974 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2975 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2976 'mkdir (GNU coreutils) '* | \
2977 'mkdir (coreutils) '* | \
2978 'mkdir (fileutils) '4.1*)
2979 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2980 break 3;;
2981 esac
2982 done
2983 done
2984 done
2985IFS=$as_save_IFS
2986
2987fi
2988
2989 test -d ./--version && rmdir ./--version
2990 if test "${ac_cv_path_mkdir+set}" = set; then
2991 MKDIR_P="$ac_cv_path_mkdir -p"
2992 else
2993 # As a last resort, use the slow shell script. Don't cache a
2994 # value for MKDIR_P within a source directory, because that will
2995 # break other packages using the cache if that directory is
2996 # removed, or if the value is a relative name.
2997 MKDIR_P="$ac_install_sh -d"
2998 fi
2999fi
3000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3001$as_echo "$MKDIR_P" >&6; }
3002
3003for ac_prog in gawk mawk nawk awk
3004do
3005 # Extract the first word of "$ac_prog", so it can be a program name with args.
3006set dummy $ac_prog; ac_word=$2
3007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3008$as_echo_n "checking for $ac_word... " >&6; }
3009if ${ac_cv_prog_AWK+:} false; then :
3010 $as_echo_n "(cached) " >&6
3011else
3012 if test -n "$AWK"; then
3013 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3014else
3015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016for as_dir in $PATH
3017do
3018 IFS=$as_save_IFS
3019 test -z "$as_dir" && as_dir=.
3020 for ac_exec_ext in '' $ac_executable_extensions; do
3021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3022 ac_cv_prog_AWK="$ac_prog"
3023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3024 break 2
3025 fi
3026done
3027 done
3028IFS=$as_save_IFS
3029
3030fi
3031fi
3032AWK=$ac_cv_prog_AWK
3033if test -n "$AWK"; then
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3035$as_echo "$AWK" >&6; }
3036else
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038$as_echo "no" >&6; }
3039fi
3040
3041
3042 test -n "$AWK" && break
3043done
3044
3045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3046$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3047set x ${MAKE-make}
3048ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3049if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3050 $as_echo_n "(cached) " >&6
3051else
3052 cat >conftest.make <<\_ACEOF
3053SHELL = /bin/sh
3054all:
3055 @echo '@@@%%%=$(MAKE)=@@@%%%'
3056_ACEOF
3057# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3058case `${MAKE-make} -f conftest.make 2>/dev/null` in
3059 *@@@%%%=?*=@@@%%%*)
3060 eval ac_cv_prog_make_${ac_make}_set=yes;;
3061 *)
3062 eval ac_cv_prog_make_${ac_make}_set=no;;
3063esac
3064rm -f conftest.make
3065fi
3066if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3068$as_echo "yes" >&6; }
3069 SET_MAKE=
3070else
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072$as_echo "no" >&6; }
3073 SET_MAKE="MAKE=${MAKE-make}"
3074fi
3075
3076rm -rf .tst 2>/dev/null
3077mkdir .tst 2>/dev/null
3078if test -d .tst; then
3079 am__leading_dot=.
3080else
3081 am__leading_dot=_
3082fi
3083rmdir .tst 2>/dev/null
3084
3085# Check whether --enable-silent-rules was given.
3086if test "${enable_silent_rules+set}" = set; then :
3087 enableval=$enable_silent_rules;
3088fi
3089
3090case $enable_silent_rules in # (((
3091 yes) AM_DEFAULT_VERBOSITY=0;;
3092 no) AM_DEFAULT_VERBOSITY=1;;
3093 *) AM_DEFAULT_VERBOSITY=1;;
3094esac
3095am_make=${MAKE-make}
3096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3097$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3098if ${am_cv_make_support_nested_variables+:} false; then :
3099 $as_echo_n "(cached) " >&6
3100else
3101 if $as_echo 'TRUE=$(BAR$(V))
3102BAR0=false
3103BAR1=true
3104V=1
3105am__doit:
3106 @$(TRUE)
3107.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3108 am_cv_make_support_nested_variables=yes
3109else
3110 am_cv_make_support_nested_variables=no
3111fi
3112fi
3113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3114$as_echo "$am_cv_make_support_nested_variables" >&6; }
3115if test $am_cv_make_support_nested_variables = yes; then
3116 AM_V='$(V)'
3117 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3118else
3119 AM_V=$AM_DEFAULT_VERBOSITY
3120 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3121fi
3122AM_BACKSLASH='\'
3123
3124if test "`cd $srcdir && pwd`" != "`pwd`"; then
3125 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3126 # is not polluted with repeated "-I."
3127 am__isrc=' -I$(srcdir)'
3128 # test to see if srcdir already configured
3129 if test -f $srcdir/config.status; then
3130 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3131 fi
3132fi
3133
3134# test whether we have cygpath
3135if test -z "$CYGPATH_W"; then
3136 if (cygpath --version) >/dev/null 2>/dev/null; then
3137 CYGPATH_W='cygpath -w'
3138 else
3139 CYGPATH_W=echo
3140 fi
3141fi
3142
3143
3144# Define the identity of the package.
3145 PACKAGE='cycript'
3146 VERSION='0.9'
3147
3148
3149cat >>confdefs.h <<_ACEOF
3150#define PACKAGE "$PACKAGE"
3151_ACEOF
3152
3153
3154cat >>confdefs.h <<_ACEOF
3155#define VERSION "$VERSION"
3156_ACEOF
3157
3158# Some tools Automake needs.
3159
3160ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3161
3162
3163AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3164
3165
3166AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3167
3168
3169AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3170
3171
3172MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3173
3174# For better backward compatibility. To be removed once Automake 1.9.x
3175# dies out for good. For more background, see:
3176# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3177# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3178mkdir_p='$(MKDIR_P)'
3179
795230e5
JF
3180# We need awk for the "check" target (and possibly the TAP driver). The
3181# system "awk" is bad on some platforms.
66170b30
JF
3182# Always define AMTAR for backward compatibility. Yes, it's still used
3183# in the wild :-( We should find a proper way to deprecate it ...
3184AMTAR='$${TAR-tar}'
3185
a93f15c0
JF
3186
3187# We'll loop over all known methods to create a tar archive until one works.
3188_am_tools='gnutar pax cpio none'
3189
66170b30
JF
3190am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3191
3192
3193
3194
3195
66170b30 3196
a93f15c0
JF
3197# POSIX will say in a future version that running "rm -f" with no argument
3198# is OK; and we want to be able to make that assumption in our Makefile
3199# recipes. So use an aggressive probe to check that the usage we want is
3200# actually supported "in the wild" to an acceptable degree.
3201# See automake bug#10828.
3202# To make any issue more visible, cause the running configure to be aborted
3203# by default if the 'rm' program in use doesn't match our expectations; the
3204# user can still override this though.
3205if rm -f && rm -fr && rm -rf; then : OK; else
3206 cat >&2 <<'END'
3207Oops!
3208
3209Your 'rm' program seems unable to run without file operands specified
3210on the command line, even when the '-f' option is present. This is contrary
3211to the behaviour of most rm programs out there, and not conforming with
3212the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3213
3214Please tell bug-automake@gnu.org about your system, including the value
3215of your $PATH and any error possibly output before this message. This
3216can help us improve future automake versions.
3217
3218END
3219 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3220 echo 'Configuration will proceed anyway, since you have set the' >&2
3221 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3222 echo >&2
3223 else
3224 cat >&2 <<'END'
3225Aborting the configuration process, to ensure you take notice of the issue.
3226
3227You can download and install GNU coreutils to get an 'rm' implementation
3228that behaves properly: <http://www.gnu.org/software/coreutils/>.
3229
3230If you want to complete the configuration process using your problematic
3231'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3232to "yes", and re-run configure.
3233
3234END
3235 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3236 fi
3237fi
3238
795230e5 3239
babf7fe8
JF
3240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3241$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3242 # Check whether --enable-maintainer-mode was given.
3243if test "${enable_maintainer_mode+set}" = set; then :
3244 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3245else
3246 USE_MAINTAINER_MODE=no
3247fi
3248
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3250$as_echo "$USE_MAINTAINER_MODE" >&6; }
3251 if test $USE_MAINTAINER_MODE = yes; then
3252 MAINTAINER_MODE_TRUE=
3253 MAINTAINER_MODE_FALSE='#'
3254else
3255 MAINTAINER_MODE_TRUE='#'
3256 MAINTAINER_MODE_FALSE=
3257fi
3258
3259 MAINT=$MAINTAINER_MODE_TRUE
3260
3261
3262
a93f15c0
JF
3263ac_ext=c
3264ac_cpp='$CPP $CPPFLAGS'
3265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3267ac_compiler_gnu=$ac_cv_c_compiler_gnu
3268if test -n "$ac_tool_prefix"; then
3269 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3270set dummy ${ac_tool_prefix}gcc; ac_word=$2
dbadc56a
DWT
3271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3272$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 3273if ${ac_cv_prog_CC+:} false; then :
dbadc56a
DWT
3274 $as_echo_n "(cached) " >&6
3275else
a93f15c0
JF
3276 if test -n "$CC"; then
3277 ac_cv_prog_CC="$CC" # Let the user override the test.
dbadc56a
DWT
3278else
3279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280for as_dir in $PATH
3281do
3282 IFS=$as_save_IFS
3283 test -z "$as_dir" && as_dir=.
3284 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 3285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 3286 ac_cv_prog_CC="${ac_tool_prefix}gcc"
dbadc56a
DWT
3287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3288 break 2
3289 fi
3290done
3291 done
3292IFS=$as_save_IFS
3293
3294fi
3295fi
a93f15c0
JF
3296CC=$ac_cv_prog_CC
3297if test -n "$CC"; then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3299$as_echo "$CC" >&6; }
35fa52c0
DWT
3300else
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302$as_echo "no" >&6; }
3303fi
3304
3305
35fa52c0 3306fi
a93f15c0
JF
3307if test -z "$ac_cv_prog_CC"; then
3308 ac_ct_CC=$CC
3309 # Extract the first word of "gcc", so it can be a program name with args.
3310set dummy gcc; ac_word=$2
35fa52c0
DWT
3311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3312$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 3313if ${ac_cv_prog_ac_ct_CC+:} false; then :
35fa52c0
DWT
3314 $as_echo_n "(cached) " >&6
3315else
a93f15c0
JF
3316 if test -n "$ac_ct_CC"; then
3317 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
35fa52c0
DWT
3318else
3319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320for as_dir in $PATH
3321do
3322 IFS=$as_save_IFS
3323 test -z "$as_dir" && as_dir=.
3324 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 3325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 3326 ac_cv_prog_ac_ct_CC="gcc"
35fa52c0
DWT
3327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3328 break 2
3329 fi
3330done
3331 done
3332IFS=$as_save_IFS
3333
3334fi
3335fi
a93f15c0
JF
3336ac_ct_CC=$ac_cv_prog_ac_ct_CC
3337if test -n "$ac_ct_CC"; then
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3339$as_echo "$ac_ct_CC" >&6; }
35fa52c0
DWT
3340else
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342$as_echo "no" >&6; }
3343fi
3344
a93f15c0
JF
3345 if test "x$ac_ct_CC" = x; then
3346 CC=""
35fa52c0
DWT
3347 else
3348 case $cross_compiling:$ac_tool_warned in
3349yes:)
3350{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3351$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3352ac_tool_warned=yes ;;
3353esac
a93f15c0 3354 CC=$ac_ct_CC
35fa52c0 3355 fi
a93f15c0
JF
3356else
3357 CC="$ac_cv_prog_CC"
35fa52c0
DWT
3358fi
3359
a93f15c0
JF
3360if test -z "$CC"; then
3361 if test -n "$ac_tool_prefix"; then
3362 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3363set dummy ${ac_tool_prefix}cc; ac_word=$2
3364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3365$as_echo_n "checking for $ac_word... " >&6; }
3366if ${ac_cv_prog_CC+:} false; then :
3367 $as_echo_n "(cached) " >&6
3368else
3369 if test -n "$CC"; then
3370 ac_cv_prog_CC="$CC" # Let the user override the test.
3371else
3372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373for as_dir in $PATH
3374do
3375 IFS=$as_save_IFS
3376 test -z "$as_dir" && as_dir=.
3377 for ac_exec_ext in '' $ac_executable_extensions; do
3378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3379 ac_cv_prog_CC="${ac_tool_prefix}cc"
3380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3381 break 2
a243b558 3382 fi
35fa52c0 3383done
a93f15c0
JF
3384 done
3385IFS=$as_save_IFS
35fa52c0 3386
a93f15c0
JF
3387fi
3388fi
3389CC=$ac_cv_prog_CC
3390if test -n "$CC"; then
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3392$as_echo "$CC" >&6; }
3393else
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3395$as_echo "no" >&6; }
3396fi
35fa52c0 3397
35fa52c0 3398
a93f15c0
JF
3399 fi
3400fi
3401if test -z "$CC"; then
3402 # Extract the first word of "cc", so it can be a program name with args.
3403set dummy cc; ac_word=$2
3404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3405$as_echo_n "checking for $ac_word... " >&6; }
3406if ${ac_cv_prog_CC+:} false; then :
3407 $as_echo_n "(cached) " >&6
3408else
3409 if test -n "$CC"; then
3410 ac_cv_prog_CC="$CC" # Let the user override the test.
3411else
3412 ac_prog_rejected=no
3413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414for as_dir in $PATH
35fa52c0 3415do
a93f15c0
JF
3416 IFS=$as_save_IFS
3417 test -z "$as_dir" && as_dir=.
3418 for ac_exec_ext in '' $ac_executable_extensions; do
3419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3420 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3421 ac_prog_rejected=yes
3422 continue
3423 fi
3424 ac_cv_prog_CC="cc"
3425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3426 break 2
3427 fi
3428done
3429 done
3430IFS=$as_save_IFS
3431
3432if test $ac_prog_rejected = yes; then
3433 # We found a bogon in the path, so make sure we never use it.
3434 set dummy $ac_cv_prog_CC
3435 shift
3436 if test $# != 0; then
3437 # We chose a different compiler from the bogus one.
3438 # However, it has the same basename, so the bogon will be chosen
3439 # first if we set CC to just the basename; use the full file name.
3440 shift
3441 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3442 fi
3443fi
3444fi
3445fi
3446CC=$ac_cv_prog_CC
3447if test -n "$CC"; then
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3449$as_echo "$CC" >&6; }
3450else
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452$as_echo "no" >&6; }
3453fi
3454
3455
3456fi
3457if test -z "$CC"; then
3458 if test -n "$ac_tool_prefix"; then
3459 for ac_prog in cl.exe
3460 do
3461 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3462set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3464$as_echo_n "checking for $ac_word... " >&6; }
3465if ${ac_cv_prog_CC+:} false; then :
3466 $as_echo_n "(cached) " >&6
3467else
3468 if test -n "$CC"; then
3469 ac_cv_prog_CC="$CC" # Let the user override the test.
3470else
3471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472for as_dir in $PATH
3473do
3474 IFS=$as_save_IFS
3475 test -z "$as_dir" && as_dir=.
3476 for ac_exec_ext in '' $ac_executable_extensions; do
3477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3478 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3480 break 2
3481 fi
3482done
3483 done
3484IFS=$as_save_IFS
3485
3486fi
3487fi
3488CC=$ac_cv_prog_CC
3489if test -n "$CC"; then
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3491$as_echo "$CC" >&6; }
3492else
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3494$as_echo "no" >&6; }
3495fi
3496
3497
3498 test -n "$CC" && break
3499 done
3500fi
3501if test -z "$CC"; then
3502 ac_ct_CC=$CC
3503 for ac_prog in cl.exe
3504do
3505 # Extract the first word of "$ac_prog", so it can be a program name with args.
3506set dummy $ac_prog; ac_word=$2
3507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3508$as_echo_n "checking for $ac_word... " >&6; }
3509if ${ac_cv_prog_ac_ct_CC+:} false; then :
3510 $as_echo_n "(cached) " >&6
3511else
3512 if test -n "$ac_ct_CC"; then
3513 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3514else
3515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516for as_dir in $PATH
3517do
3518 IFS=$as_save_IFS
3519 test -z "$as_dir" && as_dir=.
3520 for ac_exec_ext in '' $ac_executable_extensions; do
3521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3522 ac_cv_prog_ac_ct_CC="$ac_prog"
3523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3524 break 2
3525 fi
3526done
3527 done
3528IFS=$as_save_IFS
3529
3530fi
3531fi
3532ac_ct_CC=$ac_cv_prog_ac_ct_CC
3533if test -n "$ac_ct_CC"; then
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3535$as_echo "$ac_ct_CC" >&6; }
3536else
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3538$as_echo "no" >&6; }
3539fi
3540
3541
3542 test -n "$ac_ct_CC" && break
3543done
3544
3545 if test "x$ac_ct_CC" = x; then
3546 CC=""
3547 else
3548 case $cross_compiling:$ac_tool_warned in
3549yes:)
3550{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3551$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3552ac_tool_warned=yes ;;
3553esac
3554 CC=$ac_ct_CC
3555 fi
3556fi
3557
3558fi
3559
3560
3561test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3562$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3563as_fn_error $? "no acceptable C compiler found in \$PATH
3564See \`config.log' for more details" "$LINENO" 5; }
3565
3566# Provide some information about the compiler.
3567$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3568set X $ac_compile
3569ac_compiler=$2
3570for ac_option in --version -v -V -qversion; do
3571 { { ac_try="$ac_compiler $ac_option >&5"
3572case "(($ac_try" in
3573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574 *) ac_try_echo=$ac_try;;
3575esac
3576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3577$as_echo "$ac_try_echo"; } >&5
3578 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3579 ac_status=$?
3580 if test -s conftest.err; then
3581 sed '10a\
3582... rest of stderr output deleted ...
3583 10q' conftest.err >conftest.er1
3584 cat conftest.er1 >&5
3585 fi
3586 rm -f conftest.er1 conftest.err
3587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3588 test $ac_status = 0; }
3589done
3590
3591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592/* end confdefs.h. */
3593
3594int
3595main ()
3596{
3597
3598 ;
3599 return 0;
3600}
3601_ACEOF
3602ac_clean_files_save=$ac_clean_files
3603ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3604# Try to create an executable without -o first, disregard a.out.
3605# It will help us diagnose broken compilers, and finding out an intuition
3606# of exeext.
3607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3608$as_echo_n "checking whether the C compiler works... " >&6; }
3609ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3610
3611# The possible output files:
3612ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3613
3614ac_rmfiles=
3615for ac_file in $ac_files
3616do
3617 case $ac_file in
3618 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3619 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3620 esac
3621done
35fa52c0
DWT
3622rm -f $ac_rmfiles
3623
3624if { { ac_try="$ac_link_default"
3625case "(($ac_try" in
3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3628esac
3629eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3630$as_echo "$ac_try_echo"; } >&5
3631 (eval "$ac_link_default") 2>&5
3632 ac_status=$?
3633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3634 test $ac_status = 0; }; then :
3635 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3636# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3637# in a Makefile. We should not override ac_cv_exeext if it was cached,
3638# so that the user can short-circuit this test for compilers unknown to
3639# Autoconf.
3640for ac_file in $ac_files ''
3641do
3642 test -f "$ac_file" || continue
3643 case $ac_file in
3644 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3645 ;;
3646 [ab].out )
3647 # We found the default executable, but exeext='' is most
3648 # certainly right.
3649 break;;
3650 *.* )
3651 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3652 then :; else
3653 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3654 fi
3655 # We set ac_cv_exeext here because the later test for it is not
3656 # safe: cross compilers may not add the suffix if given an `-o'
3657 # argument, so we may need to know it at that point already.
3658 # Even if this section looks crufty: it has the advantage of
3659 # actually working.
3660 break;;
3661 * )
3662 break;;
3663 esac
3664done
3665test "$ac_cv_exeext" = no && ac_cv_exeext=
3666
3667else
3668 ac_file=''
3669fi
35fa52c0 3670if test -z "$ac_file"; then :
9c60689e
DWT
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3672$as_echo "no" >&6; }
3673$as_echo "$as_me: failed program was:" >&5
35fa52c0
DWT
3674sed 's/^/| /' conftest.$ac_ext >&5
3675
3676{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3677$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
a93f15c0 3678as_fn_error 77 "C compiler cannot create executables
ee134472 3679See \`config.log' for more details" "$LINENO" 5; }
9c60689e
DWT
3680else
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3682$as_echo "yes" >&6; }
35fa52c0 3683fi
a93f15c0
JF
3684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3685$as_echo_n "checking for C compiler default output file name... " >&6; }
9c60689e
DWT
3686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3687$as_echo "$ac_file" >&6; }
35fa52c0
DWT
3688ac_exeext=$ac_cv_exeext
3689
9c60689e 3690rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
35fa52c0 3691ac_clean_files=$ac_clean_files_save
35fa52c0
DWT
3692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3693$as_echo_n "checking for suffix of executables... " >&6; }
3694if { { ac_try="$ac_link"
3695case "(($ac_try" in
3696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697 *) ac_try_echo=$ac_try;;
3698esac
3699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3700$as_echo "$ac_try_echo"; } >&5
3701 (eval "$ac_link") 2>&5
3702 ac_status=$?
3703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3704 test $ac_status = 0; }; then :
3705 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3706# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3707# work properly (i.e., refer to `conftest.exe'), while it won't with
3708# `rm'.
3709for ac_file in conftest.exe conftest conftest.*; do
3710 test -f "$ac_file" || continue
3711 case $ac_file in
3712 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3713 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3714 break;;
3715 * ) break;;
3716 esac
3717done
3718else
3719 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3720$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833ad8 3721as_fn_error $? "cannot compute suffix of executables: cannot compile and link
ee134472 3722See \`config.log' for more details" "$LINENO" 5; }
35fa52c0 3723fi
9c60689e 3724rm -f conftest conftest$ac_cv_exeext
35fa52c0
DWT
3725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3726$as_echo "$ac_cv_exeext" >&6; }
3727
3728rm -f conftest.$ac_ext
3729EXEEXT=$ac_cv_exeext
3730ac_exeext=$EXEEXT
9c60689e
DWT
3731cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732/* end confdefs.h. */
3733#include <stdio.h>
3734int
3735main ()
3736{
3737FILE *f = fopen ("conftest.out", "w");
3738 return ferror (f) || fclose (f) != 0;
3739
3740 ;
3741 return 0;
3742}
3743_ACEOF
3744ac_clean_files="$ac_clean_files conftest.out"
3745# Check that the compiler produces executables we can run. If not, either
3746# the compiler is broken, or we cross compile.
3747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3748$as_echo_n "checking whether we are cross compiling... " >&6; }
3749if test "$cross_compiling" != yes; then
3750 { { ac_try="$ac_link"
3751case "(($ac_try" in
3752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3753 *) ac_try_echo=$ac_try;;
3754esac
3755eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3756$as_echo "$ac_try_echo"; } >&5
3757 (eval "$ac_link") 2>&5
3758 ac_status=$?
3759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3760 test $ac_status = 0; }
3761 if { ac_try='./conftest$ac_cv_exeext'
3762 { { case "(($ac_try" in
3763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764 *) ac_try_echo=$ac_try;;
3765esac
3766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3767$as_echo "$ac_try_echo"; } >&5
3768 (eval "$ac_try") 2>&5
3769 ac_status=$?
3770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3771 test $ac_status = 0; }; }; then
3772 cross_compiling=no
3773 else
3774 if test "$cross_compiling" = maybe; then
3775 cross_compiling=yes
3776 else
3777 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3778$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
a93f15c0 3779as_fn_error $? "cannot run C compiled programs.
9c60689e 3780If you meant to cross compile, use \`--host'.
ee134472 3781See \`config.log' for more details" "$LINENO" 5; }
9c60689e
DWT
3782 fi
3783 fi
3784fi
3785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3786$as_echo "$cross_compiling" >&6; }
3787
3788rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3789ac_clean_files=$ac_clean_files_save
35fa52c0
DWT
3790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3791$as_echo_n "checking for suffix of object files... " >&6; }
ee134472 3792if ${ac_cv_objext+:} false; then :
35fa52c0
DWT
3793 $as_echo_n "(cached) " >&6
3794else
3795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796/* end confdefs.h. */
3797
3798int
3799main ()
3800{
3801
3802 ;
3803 return 0;
3804}
3805_ACEOF
3806rm -f conftest.o conftest.obj
3807if { { ac_try="$ac_compile"
3808case "(($ac_try" in
3809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3810 *) ac_try_echo=$ac_try;;
3811esac
3812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3813$as_echo "$ac_try_echo"; } >&5
3814 (eval "$ac_compile") 2>&5
3815 ac_status=$?
3816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3817 test $ac_status = 0; }; then :
3818 for ac_file in conftest.o conftest.obj conftest.*; do
3819 test -f "$ac_file" || continue;
3820 case $ac_file in
3821 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3822 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3823 break;;
3824 esac
3825done
3826else
3827 $as_echo "$as_me: failed program was:" >&5
3828sed 's/^/| /' conftest.$ac_ext >&5
3829
3830{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3831$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12833ad8 3832as_fn_error $? "cannot compute suffix of object files: cannot compile
ee134472 3833See \`config.log' for more details" "$LINENO" 5; }
35fa52c0
DWT
3834fi
3835rm -f conftest.$ac_cv_objext conftest.$ac_ext
3836fi
3837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3838$as_echo "$ac_cv_objext" >&6; }
3839OBJEXT=$ac_cv_objext
3840ac_objext=$OBJEXT
a93f15c0
JF
3841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3842$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3843if ${ac_cv_c_compiler_gnu+:} false; then :
35fa52c0
DWT
3844 $as_echo_n "(cached) " >&6
3845else
3846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847/* end confdefs.h. */
3848
3849int
3850main ()
3851{
3852#ifndef __GNUC__
3853 choke me
3854#endif
3855
3856 ;
3857 return 0;
3858}
3859_ACEOF
a93f15c0 3860if ac_fn_c_try_compile "$LINENO"; then :
35fa52c0
DWT
3861 ac_compiler_gnu=yes
3862else
3863 ac_compiler_gnu=no
3864fi
3865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 3866ac_cv_c_compiler_gnu=$ac_compiler_gnu
35fa52c0
DWT
3867
3868fi
a93f15c0
JF
3869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3870$as_echo "$ac_cv_c_compiler_gnu" >&6; }
35fa52c0 3871if test $ac_compiler_gnu = yes; then
a93f15c0 3872 GCC=yes
35fa52c0 3873else
a93f15c0 3874 GCC=
35fa52c0 3875fi
a93f15c0
JF
3876ac_test_CFLAGS=${CFLAGS+set}
3877ac_save_CFLAGS=$CFLAGS
3878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3879$as_echo_n "checking whether $CC accepts -g... " >&6; }
3880if ${ac_cv_prog_cc_g+:} false; then :
35fa52c0
DWT
3881 $as_echo_n "(cached) " >&6
3882else
a93f15c0
JF
3883 ac_save_c_werror_flag=$ac_c_werror_flag
3884 ac_c_werror_flag=yes
3885 ac_cv_prog_cc_g=no
3886 CFLAGS="-g"
35fa52c0
DWT
3887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3888/* end confdefs.h. */
3889
3890int
3891main ()
3892{
3893
3894 ;
3895 return 0;
3896}
3897_ACEOF
a93f15c0
JF
3898if ac_fn_c_try_compile "$LINENO"; then :
3899 ac_cv_prog_cc_g=yes
35fa52c0 3900else
a93f15c0 3901 CFLAGS=""
35fa52c0
DWT
3902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3903/* end confdefs.h. */
3904
3905int
3906main ()
3907{
3908
3909 ;
3910 return 0;
3911}
3912_ACEOF
a93f15c0 3913if ac_fn_c_try_compile "$LINENO"; then :
35fa52c0
DWT
3914
3915else
a93f15c0
JF
3916 ac_c_werror_flag=$ac_save_c_werror_flag
3917 CFLAGS="-g"
35fa52c0
DWT
3918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919/* end confdefs.h. */
3920
3921int
3922main ()
3923{
3924
3925 ;
3926 return 0;
3927}
3928_ACEOF
a93f15c0
JF
3929if ac_fn_c_try_compile "$LINENO"; then :
3930 ac_cv_prog_cc_g=yes
35fa52c0
DWT
3931fi
3932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3933fi
3934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3935fi
3936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 3937 ac_c_werror_flag=$ac_save_c_werror_flag
35fa52c0 3938fi
a93f15c0
JF
3939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3940$as_echo "$ac_cv_prog_cc_g" >&6; }
3941if test "$ac_test_CFLAGS" = set; then
3942 CFLAGS=$ac_save_CFLAGS
3943elif test $ac_cv_prog_cc_g = yes; then
3944 if test "$GCC" = yes; then
3945 CFLAGS="-g -O2"
35fa52c0 3946 else
a93f15c0 3947 CFLAGS="-g"
35fa52c0
DWT
3948 fi
3949else
a93f15c0
JF
3950 if test "$GCC" = yes; then
3951 CFLAGS="-O2"
35fa52c0 3952 else
a93f15c0 3953 CFLAGS=
35fa52c0
DWT
3954 fi
3955fi
a93f15c0
JF
3956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3957$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3958if ${ac_cv_prog_cc_c89+:} false; then :
3959 $as_echo_n "(cached) " >&6
3960else
3961 ac_cv_prog_cc_c89=no
3962ac_save_CC=$CC
3963cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964/* end confdefs.h. */
3965#include <stdarg.h>
3966#include <stdio.h>
3967struct stat;
3968/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3969struct buf { int x; };
3970FILE * (*rcsopen) (struct buf *, struct stat *, int);
3971static char *e (p, i)
3972 char **p;
3973 int i;
3974{
3975 return p[i];
3976}
3977static char *f (char * (*g) (char **, int), char **p, ...)
3978{
3979 char *s;
3980 va_list v;
3981 va_start (v,p);
3982 s = g (p, va_arg (v,int));
3983 va_end (v);
3984 return s;
3985}
3986
3987/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3988 function prototypes and stuff, but not '\xHH' hex character constants.
3989 These don't provoke an error unfortunately, instead are silently treated
3990 as 'x'. The following induces an error, until -std is added to get
3991 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3992 array size at least. It's necessary to write '\x00'==0 to get something
3993 that's true only with -std. */
3994int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3995
3996/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3997 inside strings and character constants. */
3998#define FOO(x) 'x'
3999int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4000
4001int test (int i, double x);
4002struct s1 {int (*f) (int a);};
4003struct s2 {int (*f) (double a);};
4004int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4005int argc;
4006char **argv;
4007int
4008main ()
4009{
4010return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4011 ;
4012 return 0;
4013}
4014_ACEOF
4015for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4016 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4017do
4018 CC="$ac_save_CC $ac_arg"
4019 if ac_fn_c_try_compile "$LINENO"; then :
4020 ac_cv_prog_cc_c89=$ac_arg
4021fi
4022rm -f core conftest.err conftest.$ac_objext
4023 test "x$ac_cv_prog_cc_c89" != "xno" && break
4024done
4025rm -f conftest.$ac_ext
4026CC=$ac_save_CC
4027
4028fi
4029# AC_CACHE_VAL
4030case "x$ac_cv_prog_cc_c89" in
4031 x)
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4033$as_echo "none needed" >&6; } ;;
4034 xno)
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4036$as_echo "unsupported" >&6; } ;;
4037 *)
4038 CC="$CC $ac_cv_prog_cc_c89"
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4040$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4041esac
4042if test "x$ac_cv_prog_cc_c89" != xno; then :
4043
4044fi
4045
4046ac_ext=c
4047ac_cpp='$CPP $CPPFLAGS'
4048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4050ac_compiler_gnu=$ac_cv_c_compiler_gnu
4051
4052ac_ext=c
4053ac_cpp='$CPP $CPPFLAGS'
4054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4056ac_compiler_gnu=$ac_cv_c_compiler_gnu
4057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4058$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4059if ${am_cv_prog_cc_c_o+:} false; then :
4060 $as_echo_n "(cached) " >&6
4061else
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063/* end confdefs.h. */
4064
4065int
4066main ()
4067{
4068
4069 ;
4070 return 0;
4071}
4072_ACEOF
4073 # Make sure it works both with $CC and with simple cc.
4074 # Following AC_PROG_CC_C_O, we do the test twice because some
4075 # compilers refuse to overwrite an existing .o file with -o,
4076 # though they will create one.
4077 am_cv_prog_cc_c_o=yes
4078 for am_i in 1 2; do
4079 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4080 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4081 ac_status=$?
4082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083 (exit $ac_status); } \
4084 && test -f conftest2.$ac_objext; then
4085 : OK
4086 else
4087 am_cv_prog_cc_c_o=no
4088 break
4089 fi
4090 done
4091 rm -f core conftest*
4092 unset am_i
4093fi
4094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4095$as_echo "$am_cv_prog_cc_c_o" >&6; }
4096if test "$am_cv_prog_cc_c_o" != yes; then
4097 # Losing compiler, so override with the script.
4098 # FIXME: It is wrong to rewrite CC.
4099 # But if we don't then we get into trouble of one sort or another.
4100 # A longer-term fix would be to have automake use am__CC in this case,
4101 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4102 CC="$am_aux_dir/compile $CC"
4103fi
a243b558
JF
4104ac_ext=c
4105ac_cpp='$CPP $CPPFLAGS'
4106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4108ac_compiler_gnu=$ac_cv_c_compiler_gnu
a93f15c0 4109
a243b558 4110DEPDIR="${am__leading_dot}deps"
35fa52c0 4111
a243b558 4112ac_config_commands="$ac_config_commands depfiles"
35fa52c0 4113
35fa52c0 4114
a243b558
JF
4115am_make=${MAKE-make}
4116cat > confinc << 'END'
4117am__doit:
4118 @echo this is the am__doit target
4119.PHONY: am__doit
4120END
4121# If we don't find an include directive, just comment out the code.
4122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4123$as_echo_n "checking for style of include used by $am_make... " >&6; }
4124am__include="#"
4125am__quote=
4126_am_result=none
4127# First try GNU make style include.
4128echo "include confinc" > confmf
4129# Ignore all kinds of additional output from 'make'.
4130case `$am_make -s -f confmf 2> /dev/null` in #(
4131*the\ am__doit\ target*)
4132 am__include=include
4133 am__quote=
4134 _am_result=GNU
4135 ;;
4136esac
4137# Now try BSD make style include.
4138if test "$am__include" = "#"; then
4139 echo '.include "confinc"' > confmf
4140 case `$am_make -s -f confmf 2> /dev/null` in #(
4141 *the\ am__doit\ target*)
4142 am__include=.include
4143 am__quote="\""
4144 _am_result=BSD
4145 ;;
4146 esac
35fa52c0 4147fi
35fa52c0 4148
a243b558
JF
4149
4150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4151$as_echo "$_am_result" >&6; }
4152rm -f confinc confmf
4153
4154# Check whether --enable-dependency-tracking was given.
4155if test "${enable_dependency_tracking+set}" = set; then :
4156 enableval=$enable_dependency_tracking;
35fa52c0 4157fi
35fa52c0 4158
a243b558
JF
4159if test "x$enable_dependency_tracking" != xno; then
4160 am_depcomp="$ac_aux_dir/depcomp"
4161 AMDEPBACKSLASH='\'
4162 am__nodep='_no'
4163fi
4164 if test "x$enable_dependency_tracking" != xno; then
4165 AMDEP_TRUE=
4166 AMDEP_FALSE='#'
4167else
4168 AMDEP_TRUE='#'
4169 AMDEP_FALSE=
35fa52c0
DWT
4170fi
4171
35fa52c0 4172
a243b558 4173
a93f15c0 4174depcc="$CC" am_compiler_list=
66170b30
JF
4175
4176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4177$as_echo_n "checking dependency style of $depcc... " >&6; }
a93f15c0 4178if ${am_cv_CC_dependencies_compiler_type+:} false; then :
66170b30
JF
4179 $as_echo_n "(cached) " >&6
4180else
4181 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4182 # We make a subdir and do the tests there. Otherwise we can end up
4183 # making bogus files that we don't know about and never remove. For
4184 # instance it was reported that on HP-UX the gcc test will end up
4185 # making a dummy file named 'D' -- because '-MD' means "put the output
4186 # in D".
4187 rm -rf conftest.dir
4188 mkdir conftest.dir
4189 # Copy depcomp to subdir because otherwise we won't find it if we're
4190 # using a relative directory.
4191 cp "$am_depcomp" conftest.dir
4192 cd conftest.dir
4193 # We will build objects and dependencies in a subdirectory because
4194 # it helps to detect inapplicable dependency modes. For instance
4195 # both Tru64's cc and ICC support -MD to output dependencies as a
4196 # side effect of compilation, but ICC will put the dependencies in
4197 # the current directory while Tru64 will put them in the object
4198 # directory.
4199 mkdir sub
4200
a93f15c0 4201 am_cv_CC_dependencies_compiler_type=none
66170b30
JF
4202 if test "$am_compiler_list" = ""; then
4203 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4204 fi
4205 am__universal=false
4206 case " $depcc " in #(
4207 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4208 esac
4209
4210 for depmode in $am_compiler_list; do
4211 # Setup a source with many dependencies, because some compilers
4212 # like to wrap large dependency lists on column 80 (with \), and
4213 # we should not choose a depcomp mode which is confused by this.
4214 #
4215 # We need to recreate these files for each test, as the compiler may
4216 # overwrite some of them when testing with obscure command lines.
4217 # This happens at least with the AIX C compiler.
4218 : > sub/conftest.c
4219 for i in 1 2 3 4 5 6; do
4220 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4221 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4222 # Solaris 10 /bin/sh.
4223 echo '/* dummy */' > sub/conftst$i.h
4224 done
4225 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4226
4227 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4228 # mode. It turns out that the SunPro C++ compiler does not properly
4229 # handle '-M -o', and we need to detect this. Also, some Intel
4230 # versions had trouble with output in subdirs.
4231 am__obj=sub/conftest.${OBJEXT-o}
4232 am__minus_obj="-o $am__obj"
4233 case $depmode in
4234 gcc)
4235 # This depmode causes a compiler race in universal mode.
4236 test "$am__universal" = false || continue
4237 ;;
4238 nosideeffect)
4239 # After this tag, mechanisms are not by side-effect, so they'll
4240 # only be used when explicitly requested.
4241 if test "x$enable_dependency_tracking" = xyes; then
4242 continue
4243 else
4244 break
4245 fi
4246 ;;
4247 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4248 # This compiler won't grok '-c -o', but also, the minuso test has
4249 # not run yet. These depmodes are late enough in the game, and
4250 # so weak that their functioning should not be impacted.
4251 am__obj=conftest.${OBJEXT-o}
4252 am__minus_obj=
4253 ;;
4254 none) break ;;
4255 esac
4256 if depmode=$depmode \
4257 source=sub/conftest.c object=$am__obj \
4258 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4259 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4260 >/dev/null 2>conftest.err &&
4261 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4262 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4263 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4264 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4265 # icc doesn't choke on unknown options, it will just issue warnings
4266 # or remarks (even with -Werror). So we grep stderr for any message
4267 # that says an option was ignored or not supported.
4268 # When given -MP, icc 7.0 and 7.1 complain thusly:
4269 # icc: Command line warning: ignoring option '-M'; no argument required
4270 # The diagnosis changed in icc 8.0:
4271 # icc: Command line remark: option '-MP' not supported
4272 if (grep 'ignoring option' conftest.err ||
4273 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
a93f15c0 4274 am_cv_CC_dependencies_compiler_type=$depmode
66170b30
JF
4275 break
4276 fi
4277 fi
4278 done
4279
4280 cd ..
4281 rm -rf conftest.dir
4282else
a93f15c0 4283 am_cv_CC_dependencies_compiler_type=none
66170b30
JF
4284fi
4285
4286fi
a93f15c0
JF
4287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4288$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4289CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
66170b30
JF
4290
4291 if
4292 test "x$enable_dependency_tracking" != xno \
a93f15c0
JF
4293 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4294 am__fastdepCC_TRUE=
4295 am__fastdepCC_FALSE='#'
66170b30 4296else
a93f15c0
JF
4297 am__fastdepCC_TRUE='#'
4298 am__fastdepCC_FALSE=
66170b30
JF
4299fi
4300
4301
a93f15c0
JF
4302ac_ext=cpp
4303ac_cpp='$CXXCPP $CPPFLAGS'
4304ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4305ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4306ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4307if test -z "$CXX"; then
4308 if test -n "$CCC"; then
4309 CXX=$CCC
4310 else
4311 if test -n "$ac_tool_prefix"; then
4312 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
a243b558
JF
4313 do
4314 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4315set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4317$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4318if ${ac_cv_prog_CXX+:} false; then :
35fa52c0
DWT
4319 $as_echo_n "(cached) " >&6
4320else
a93f15c0
JF
4321 if test -n "$CXX"; then
4322 ac_cv_prog_CXX="$CXX" # Let the user override the test.
a243b558
JF
4323else
4324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325for as_dir in $PATH
4326do
35fa52c0
DWT
4327 IFS=$as_save_IFS
4328 test -z "$as_dir" && as_dir=.
4329 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558 4330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4331 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
a243b558
JF
4332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4333 break 2
4334 fi
4335done
9c60689e
DWT
4336 done
4337IFS=$as_save_IFS
35fa52c0 4338
9c60689e 4339fi
a243b558 4340fi
a93f15c0
JF
4341CXX=$ac_cv_prog_CXX
4342if test -n "$CXX"; then
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4344$as_echo "$CXX" >&6; }
a243b558
JF
4345else
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4347$as_echo "no" >&6; }
4348fi
35fa52c0 4349
35fa52c0 4350
a93f15c0 4351 test -n "$CXX" && break
a243b558
JF
4352 done
4353fi
a93f15c0
JF
4354if test -z "$CXX"; then
4355 ac_ct_CXX=$CXX
4356 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
a243b558
JF
4357do
4358 # Extract the first word of "$ac_prog", so it can be a program name with args.
4359set dummy $ac_prog; ac_word=$2
4360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4361$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4362if ${ac_cv_prog_ac_ct_CXX+:} false; then :
9c60689e
DWT
4363 $as_echo_n "(cached) " >&6
4364else
a93f15c0
JF
4365 if test -n "$ac_ct_CXX"; then
4366 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
a243b558
JF
4367else
4368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369for as_dir in $PATH
9c60689e
DWT
4370do
4371 IFS=$as_save_IFS
4372 test -z "$as_dir" && as_dir=.
9c60689e 4373 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558 4374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4375 ac_cv_prog_ac_ct_CXX="$ac_prog"
a243b558
JF
4376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4377 break 2
4378 fi
4379done
9c60689e
DWT
4380 done
4381IFS=$as_save_IFS
a243b558
JF
4382
4383fi
4384fi
a93f15c0
JF
4385ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4386if test -n "$ac_ct_CXX"; then
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4388$as_echo "$ac_ct_CXX" >&6; }
9c60689e 4389else
a243b558
JF
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4391$as_echo "no" >&6; }
9c60689e 4392fi
6b66678a
DWT
4393
4394
a93f15c0 4395 test -n "$ac_ct_CXX" && break
a243b558 4396done
6b66678a 4397
a93f15c0
JF
4398 if test "x$ac_ct_CXX" = x; then
4399 CXX="g++"
a243b558
JF
4400 else
4401 case $cross_compiling:$ac_tool_warned in
4402yes:)
4403{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4404$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4405ac_tool_warned=yes ;;
9c60689e 4406esac
a93f15c0 4407 CXX=$ac_ct_CXX
9c60689e 4408 fi
9c60689e 4409fi
6b66678a 4410
a93f15c0
JF
4411 fi
4412fi
a243b558 4413# Provide some information about the compiler.
a93f15c0 4414$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
a243b558
JF
4415set X $ac_compile
4416ac_compiler=$2
4417for ac_option in --version -v -V -qversion; do
4418 { { ac_try="$ac_compiler $ac_option >&5"
4419case "(($ac_try" in
4420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421 *) ac_try_echo=$ac_try;;
4422esac
4423eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4424$as_echo "$ac_try_echo"; } >&5
4425 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4426 ac_status=$?
4427 if test -s conftest.err; then
4428 sed '10a\
4429... rest of stderr output deleted ...
4430 10q' conftest.err >conftest.er1
4431 cat conftest.er1 >&5
4432 fi
4433 rm -f conftest.er1 conftest.err
4434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4435 test $ac_status = 0; }
4436done
6b66678a 4437
a93f15c0
JF
4438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4439$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4440if ${ac_cv_cxx_compiler_gnu+:} false; then :
9c60689e 4441 $as_echo_n "(cached) " >&6
6b66678a 4442else
a243b558
JF
4443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444/* end confdefs.h. */
6b66678a 4445
a243b558
JF
4446int
4447main ()
4448{
4449#ifndef __GNUC__
4450 choke me
4451#endif
4452
4453 ;
4454 return 0;
4455}
4456_ACEOF
a93f15c0 4457if ac_fn_cxx_try_compile "$LINENO"; then :
a243b558 4458 ac_compiler_gnu=yes
9c60689e 4459else
a243b558 4460 ac_compiler_gnu=no
6b66678a 4461fi
a243b558 4462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 4463ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6b66678a
DWT
4464
4465fi
a93f15c0
JF
4466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4467$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
a243b558 4468if test $ac_compiler_gnu = yes; then
a93f15c0 4469 GXX=yes
a243b558 4470else
a93f15c0 4471 GXX=
a243b558 4472fi
a93f15c0
JF
4473ac_test_CXXFLAGS=${CXXFLAGS+set}
4474ac_save_CXXFLAGS=$CXXFLAGS
4475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4476$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4477if ${ac_cv_prog_cxx_g+:} false; then :
a243b558
JF
4478 $as_echo_n "(cached) " >&6
4479else
a93f15c0
JF
4480 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4481 ac_cxx_werror_flag=yes
4482 ac_cv_prog_cxx_g=no
4483 CXXFLAGS="-g"
a243b558
JF
4484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4485/* end confdefs.h. */
309b0535 4486
a243b558
JF
4487int
4488main ()
4489{
309b0535 4490
a243b558
JF
4491 ;
4492 return 0;
4493}
4494_ACEOF
a93f15c0
JF
4495if ac_fn_cxx_try_compile "$LINENO"; then :
4496 ac_cv_prog_cxx_g=yes
a243b558 4497else
a93f15c0 4498 CXXFLAGS=""
a243b558
JF
4499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500/* end confdefs.h. */
309b0535 4501
a243b558
JF
4502int
4503main ()
4504{
309b0535 4505
a243b558
JF
4506 ;
4507 return 0;
4508}
4509_ACEOF
a93f15c0 4510if ac_fn_cxx_try_compile "$LINENO"; then :
309b0535 4511
a243b558 4512else
a93f15c0
JF
4513 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4514 CXXFLAGS="-g"
a243b558
JF
4515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4516/* end confdefs.h. */
309b0535 4517
a243b558
JF
4518int
4519main ()
4520{
309b0535 4521
a243b558
JF
4522 ;
4523 return 0;
4524}
4525_ACEOF
a93f15c0
JF
4526if ac_fn_cxx_try_compile "$LINENO"; then :
4527 ac_cv_prog_cxx_g=yes
9c60689e 4528fi
a243b558 4529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 4530fi
a243b558 4531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 4532fi
a243b558 4533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 4534 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9c60689e 4535fi
a93f15c0
JF
4536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4537$as_echo "$ac_cv_prog_cxx_g" >&6; }
4538if test "$ac_test_CXXFLAGS" = set; then
4539 CXXFLAGS=$ac_save_CXXFLAGS
4540elif test $ac_cv_prog_cxx_g = yes; then
4541 if test "$GXX" = yes; then
4542 CXXFLAGS="-g -O2"
a243b558 4543 else
a93f15c0 4544 CXXFLAGS="-g"
a243b558 4545 fi
9c60689e 4546else
a93f15c0
JF
4547 if test "$GXX" = yes; then
4548 CXXFLAGS="-O2"
a243b558 4549 else
a93f15c0 4550 CXXFLAGS=
a243b558 4551 fi
9c60689e 4552fi
a243b558
JF
4553ac_ext=c
4554ac_cpp='$CPP $CPPFLAGS'
4555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4557ac_compiler_gnu=$ac_cv_c_compiler_gnu
309b0535 4558
a93f15c0 4559depcc="$CXX" am_compiler_list=
309b0535 4560
a243b558
JF
4561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4562$as_echo_n "checking dependency style of $depcc... " >&6; }
a93f15c0 4563if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
a243b558
JF
4564 $as_echo_n "(cached) " >&6
4565else
4566 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4567 # We make a subdir and do the tests there. Otherwise we can end up
4568 # making bogus files that we don't know about and never remove. For
4569 # instance it was reported that on HP-UX the gcc test will end up
4570 # making a dummy file named 'D' -- because '-MD' means "put the output
4571 # in D".
4572 rm -rf conftest.dir
4573 mkdir conftest.dir
4574 # Copy depcomp to subdir because otherwise we won't find it if we're
4575 # using a relative directory.
4576 cp "$am_depcomp" conftest.dir
4577 cd conftest.dir
4578 # We will build objects and dependencies in a subdirectory because
4579 # it helps to detect inapplicable dependency modes. For instance
4580 # both Tru64's cc and ICC support -MD to output dependencies as a
4581 # side effect of compilation, but ICC will put the dependencies in
4582 # the current directory while Tru64 will put them in the object
4583 # directory.
4584 mkdir sub
309b0535 4585
a93f15c0 4586 am_cv_CXX_dependencies_compiler_type=none
a243b558
JF
4587 if test "$am_compiler_list" = ""; then
4588 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4589 fi
4590 am__universal=false
a93f15c0
JF
4591 case " $depcc " in #(
4592 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4593 esac
9c60689e 4594
a243b558
JF
4595 for depmode in $am_compiler_list; do
4596 # Setup a source with many dependencies, because some compilers
4597 # like to wrap large dependency lists on column 80 (with \), and
4598 # we should not choose a depcomp mode which is confused by this.
4599 #
4600 # We need to recreate these files for each test, as the compiler may
4601 # overwrite some of them when testing with obscure command lines.
4602 # This happens at least with the AIX C compiler.
4603 : > sub/conftest.c
4604 for i in 1 2 3 4 5 6; do
4605 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4606 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4607 # Solaris 10 /bin/sh.
4608 echo '/* dummy */' > sub/conftst$i.h
4609 done
4610 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9c60689e 4611
a243b558
JF
4612 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4613 # mode. It turns out that the SunPro C++ compiler does not properly
4614 # handle '-M -o', and we need to detect this. Also, some Intel
4615 # versions had trouble with output in subdirs.
4616 am__obj=sub/conftest.${OBJEXT-o}
4617 am__minus_obj="-o $am__obj"
4618 case $depmode in
4619 gcc)
4620 # This depmode causes a compiler race in universal mode.
4621 test "$am__universal" = false || continue
4622 ;;
4623 nosideeffect)
4624 # After this tag, mechanisms are not by side-effect, so they'll
4625 # only be used when explicitly requested.
4626 if test "x$enable_dependency_tracking" = xyes; then
4627 continue
4628 else
4629 break
309b0535 4630 fi
a243b558
JF
4631 ;;
4632 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4633 # This compiler won't grok '-c -o', but also, the minuso test has
4634 # not run yet. These depmodes are late enough in the game, and
4635 # so weak that their functioning should not be impacted.
4636 am__obj=conftest.${OBJEXT-o}
4637 am__minus_obj=
4638 ;;
4639 none) break ;;
4640 esac
4641 if depmode=$depmode \
4642 source=sub/conftest.c object=$am__obj \
4643 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4644 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4645 >/dev/null 2>conftest.err &&
4646 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4647 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4648 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4649 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4650 # icc doesn't choke on unknown options, it will just issue warnings
4651 # or remarks (even with -Werror). So we grep stderr for any message
4652 # that says an option was ignored or not supported.
4653 # When given -MP, icc 7.0 and 7.1 complain thusly:
4654 # icc: Command line warning: ignoring option '-M'; no argument required
4655 # The diagnosis changed in icc 8.0:
4656 # icc: Command line remark: option '-MP' not supported
4657 if (grep 'ignoring option' conftest.err ||
4658 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
a93f15c0 4659 am_cv_CXX_dependencies_compiler_type=$depmode
a243b558
JF
4660 break
4661 fi
4662 fi
309b0535 4663 done
a243b558
JF
4664
4665 cd ..
4666 rm -rf conftest.dir
4667else
a93f15c0 4668 am_cv_CXX_dependencies_compiler_type=none
9c60689e 4669fi
a243b558 4670
9c60689e 4671fi
a93f15c0
JF
4672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4673$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4674CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
a243b558
JF
4675
4676 if
4677 test "x$enable_dependency_tracking" != xno \
a93f15c0
JF
4678 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4679 am__fastdepCXX_TRUE=
4680 am__fastdepCXX_FALSE='#'
9c60689e 4681else
a93f15c0
JF
4682 am__fastdepCXX_TRUE='#'
4683 am__fastdepCXX_FALSE=
a243b558
JF
4684fi
4685
4686
a93f15c0
JF
4687ac_ext=mm
4688ac_cpp='$OBJCXXCPP $CPPFLAGS'
4689ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4690ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4691ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
a243b558 4692if test -n "$ac_tool_prefix"; then
a93f15c0 4693 for ac_prog in g++ objc++ objcxx c++ CXX
a243b558
JF
4694 do
4695 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4696set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4698$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4699if ${ac_cv_prog_OBJCXX+:} false; then :
9c60689e
DWT
4700 $as_echo_n "(cached) " >&6
4701else
a93f15c0
JF
4702 if test -n "$OBJCXX"; then
4703 ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test.
a243b558
JF
4704else
4705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706for as_dir in $PATH
4707do
4708 IFS=$as_save_IFS
4709 test -z "$as_dir" && as_dir=.
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4712 ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog"
a243b558
JF
4713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4714 break 2
9c60689e 4715 fi
a243b558
JF
4716done
4717 done
4718IFS=$as_save_IFS
9c60689e 4719
a243b558
JF
4720fi
4721fi
a93f15c0
JF
4722OBJCXX=$ac_cv_prog_OBJCXX
4723if test -n "$OBJCXX"; then
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5
4725$as_echo "$OBJCXX" >&6; }
35fa52c0 4726else
a243b558
JF
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4728$as_echo "no" >&6; }
35fa52c0 4729fi
9c60689e 4730
a243b558 4731
a93f15c0 4732 test -n "$OBJCXX" && break
a243b558
JF
4733 done
4734fi
a93f15c0
JF
4735if test -z "$OBJCXX"; then
4736 ac_ct_OBJCXX=$OBJCXX
4737 for ac_prog in g++ objc++ objcxx c++ CXX
a243b558
JF
4738do
4739 # Extract the first word of "$ac_prog", so it can be a program name with args.
4740set dummy $ac_prog; ac_word=$2
4741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4742$as_echo_n "checking for $ac_word... " >&6; }
a93f15c0 4743if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then :
35fa52c0
DWT
4744 $as_echo_n "(cached) " >&6
4745else
a93f15c0
JF
4746 if test -n "$ac_ct_OBJCXX"; then
4747 ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test.
a243b558
JF
4748else
4749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750for as_dir in $PATH
4751do
4752 IFS=$as_save_IFS
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a93f15c0 4756 ac_cv_prog_ac_ct_OBJCXX="$ac_prog"
a243b558
JF
4757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4758 break 2
4759 fi
4760done
4761 done
4762IFS=$as_save_IFS
9c60689e 4763
a243b558
JF
4764fi
4765fi
a93f15c0
JF
4766ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX
4767if test -n "$ac_ct_OBJCXX"; then
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5
4769$as_echo "$ac_ct_OBJCXX" >&6; }
a243b558
JF
4770else
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4772$as_echo "no" >&6; }
4773fi
35fa52c0 4774
35fa52c0 4775
a93f15c0 4776 test -n "$ac_ct_OBJCXX" && break
a243b558 4777done
35fa52c0 4778
a93f15c0
JF
4779 if test "x$ac_ct_OBJCXX" = x; then
4780 OBJCXX="g++"
a243b558
JF
4781 else
4782 case $cross_compiling:$ac_tool_warned in
4783yes:)
4784{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4785$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4786ac_tool_warned=yes ;;
4787esac
a93f15c0 4788 OBJCXX=$ac_ct_OBJCXX
a243b558
JF
4789 fi
4790fi
ee134472 4791
a243b558 4792# Provide some information about the compiler.
a93f15c0 4793$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5
a243b558
JF
4794set X $ac_compile
4795ac_compiler=$2
4796for ac_option in --version -v -V -qversion; do
4797 { { ac_try="$ac_compiler $ac_option >&5"
4798case "(($ac_try" in
4799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4800 *) ac_try_echo=$ac_try;;
4801esac
4802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4803$as_echo "$ac_try_echo"; } >&5
4804 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4805 ac_status=$?
4806 if test -s conftest.err; then
4807 sed '10a\
4808... rest of stderr output deleted ...
4809 10q' conftest.err >conftest.er1
4810 cat conftest.er1 >&5
4811 fi
4812 rm -f conftest.er1 conftest.err
4813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4814 test $ac_status = 0; }
4815done
53ba6704 4816
a93f15c0
JF
4817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5
4818$as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; }
4819if ${ac_cv_objcxx_compiler_gnu+:} false; then :
a243b558
JF
4820 $as_echo_n "(cached) " >&6
4821else
4822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4823/* end confdefs.h. */
35fa52c0 4824
a243b558
JF
4825int
4826main ()
4827{
4828#ifndef __GNUC__
4829 choke me
4830#endif
9c60689e 4831
a243b558
JF
4832 ;
4833 return 0;
4834}
4835_ACEOF
a93f15c0 4836if ac_fn_objcxx_try_compile "$LINENO"; then :
a243b558 4837 ac_compiler_gnu=yes
35fa52c0 4838else
a243b558 4839 ac_compiler_gnu=no
35fa52c0 4840fi
a243b558 4841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0 4842ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu
9c60689e 4843
a243b558 4844fi
a93f15c0
JF
4845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5
4846$as_echo "$ac_cv_objcxx_compiler_gnu" >&6; }
a243b558 4847if test $ac_compiler_gnu = yes; then
a93f15c0 4848 GOBJCXX=yes
35fa52c0 4849else
a93f15c0 4850 GOBJCXX=
9c60689e 4851fi
a93f15c0
JF
4852ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set}
4853ac_save_OBJCXXFLAGS=$OBJCXXFLAGS
4854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5
4855$as_echo_n "checking whether $OBJCXX accepts -g... " >&6; }
4856if ${ac_cv_prog_objcxx_g+:} false; then :
a243b558
JF
4857 $as_echo_n "(cached) " >&6
4858else
a93f15c0
JF
4859 ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag
4860 ac_objcxx_werror_flag=yes
4861 ac_cv_prog_objcxx_g=no
4862 OBJCXXFLAGS="-g"
a243b558
JF
4863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4864/* end confdefs.h. */
9c60689e 4865
a243b558
JF
4866int
4867main ()
4868{
9c60689e 4869
a243b558
JF
4870 ;
4871 return 0;
4872}
4873_ACEOF
a93f15c0
JF
4874if ac_fn_objcxx_try_compile "$LINENO"; then :
4875 ac_cv_prog_objcxx_g=yes
a243b558 4876else
a93f15c0 4877 OBJCXXFLAGS=""
a243b558
JF
4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879/* end confdefs.h. */
9c60689e 4880
a243b558
JF
4881int
4882main ()
4883{
9c60689e 4884
a243b558
JF
4885 ;
4886 return 0;
4887}
4888_ACEOF
a93f15c0 4889if ac_fn_objcxx_try_compile "$LINENO"; then :
9c60689e 4890
a243b558 4891else
a93f15c0
JF
4892 ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag
4893 OBJCXXFLAGS="-g"
a243b558 4894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a93f15c0
JF
4895/* end confdefs.h. */
4896
a243b558
JF
4897int
4898main ()
4899{
a93f15c0 4900
a243b558
JF
4901 ;
4902 return 0;
4903}
4904_ACEOF
a93f15c0
JF
4905if ac_fn_objcxx_try_compile "$LINENO"; then :
4906 ac_cv_prog_objcxx_g=yes
a243b558 4907fi
a93f15c0 4908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35fa52c0 4909fi
a93f15c0
JF
4910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4911fi
4912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4913 ac_objcxx_werror_flag=$ac_save_objcx_werror_flag
4914fi
4915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5
4916$as_echo "$ac_cv_prog_objcxx_g" >&6; }
4917if test "$ac_test_OBJCXXFLAGS" = set; then
4918 OBJCXXFLAGS=$ac_save_OBJCXXFLAGS
4919elif test $ac_cv_prog_objcxx_g = yes; then
4920 if test "$GOBJCXX" = yes; then
4921 OBJCXXFLAGS="-g -O2"
4922 else
4923 OBJCXXFLAGS="-g"
4924 fi
4925else
4926 if test "$GOBJCXX" = yes; then
4927 OBJCXXFLAGS="-O2"
4928 else
4929 OBJCXXFLAGS=
4930 fi
35fa52c0 4931fi
a243b558
JF
4932ac_ext=c
4933ac_cpp='$CPP $CPPFLAGS'
4934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4936ac_compiler_gnu=$ac_cv_c_compiler_gnu
4937
a93f15c0 4938depcc="$OBJCXX" am_compiler_list='gcc3 gcc'
9c60689e 4939
a243b558
JF
4940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4941$as_echo_n "checking dependency style of $depcc... " >&6; }
a93f15c0 4942if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then :
35fa52c0
DWT
4943 $as_echo_n "(cached) " >&6
4944else
a243b558
JF
4945 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4946 # We make a subdir and do the tests there. Otherwise we can end up
4947 # making bogus files that we don't know about and never remove. For
4948 # instance it was reported that on HP-UX the gcc test will end up
4949 # making a dummy file named 'D' -- because '-MD' means "put the output
4950 # in D".
4951 rm -rf conftest.dir
4952 mkdir conftest.dir
4953 # Copy depcomp to subdir because otherwise we won't find it if we're
4954 # using a relative directory.
4955 cp "$am_depcomp" conftest.dir
4956 cd conftest.dir
4957 # We will build objects and dependencies in a subdirectory because
4958 # it helps to detect inapplicable dependency modes. For instance
4959 # both Tru64's cc and ICC support -MD to output dependencies as a
4960 # side effect of compilation, but ICC will put the dependencies in
4961 # the current directory while Tru64 will put them in the object
4962 # directory.
4963 mkdir sub
4964
a93f15c0 4965 am_cv_OBJCXX_dependencies_compiler_type=none
a243b558
JF
4966 if test "$am_compiler_list" = ""; then
4967 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4968 fi
4969 am__universal=false
a93f15c0 4970
a243b558
JF
4971
4972 for depmode in $am_compiler_list; do
4973 # Setup a source with many dependencies, because some compilers
4974 # like to wrap large dependency lists on column 80 (with \), and
4975 # we should not choose a depcomp mode which is confused by this.
4976 #
4977 # We need to recreate these files for each test, as the compiler may
4978 # overwrite some of them when testing with obscure command lines.
4979 # This happens at least with the AIX C compiler.
4980 : > sub/conftest.c
4981 for i in 1 2 3 4 5 6; do
4982 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4983 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4984 # Solaris 10 /bin/sh.
4985 echo '/* dummy */' > sub/conftst$i.h
4986 done
4987 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4988
4989 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4990 # mode. It turns out that the SunPro C++ compiler does not properly
4991 # handle '-M -o', and we need to detect this. Also, some Intel
4992 # versions had trouble with output in subdirs.
4993 am__obj=sub/conftest.${OBJEXT-o}
4994 am__minus_obj="-o $am__obj"
4995 case $depmode in
4996 gcc)
4997 # This depmode causes a compiler race in universal mode.
4998 test "$am__universal" = false || continue
4999 ;;
5000 nosideeffect)
5001 # After this tag, mechanisms are not by side-effect, so they'll
5002 # only be used when explicitly requested.
5003 if test "x$enable_dependency_tracking" = xyes; then
5004 continue
5005 else
5006 break
5007 fi
5008 ;;
5009 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5010 # This compiler won't grok '-c -o', but also, the minuso test has
5011 # not run yet. These depmodes are late enough in the game, and
5012 # so weak that their functioning should not be impacted.
5013 am__obj=conftest.${OBJEXT-o}
5014 am__minus_obj=
5015 ;;
5016 none) break ;;
5017 esac
5018 if depmode=$depmode \
5019 source=sub/conftest.c object=$am__obj \
5020 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5021 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5022 >/dev/null 2>conftest.err &&
5023 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5024 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5025 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5026 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5027 # icc doesn't choke on unknown options, it will just issue warnings
5028 # or remarks (even with -Werror). So we grep stderr for any message
5029 # that says an option was ignored or not supported.
5030 # When given -MP, icc 7.0 and 7.1 complain thusly:
5031 # icc: Command line warning: ignoring option '-M'; no argument required
5032 # The diagnosis changed in icc 8.0:
5033 # icc: Command line remark: option '-MP' not supported
5034 if (grep 'ignoring option' conftest.err ||
5035 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
a93f15c0 5036 am_cv_OBJCXX_dependencies_compiler_type=$depmode
a243b558
JF
5037 break
5038 fi
5039 fi
5040 done
9c60689e 5041
a243b558
JF
5042 cd ..
5043 rm -rf conftest.dir
5044else
a93f15c0 5045 am_cv_OBJCXX_dependencies_compiler_type=none
35fa52c0 5046fi
a243b558 5047
35fa52c0 5048fi
a93f15c0
JF
5049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5
5050$as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; }
5051OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type
a243b558
JF
5052
5053 if
5054 test "x$enable_dependency_tracking" != xno \
a93f15c0
JF
5055 && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then
5056 am__fastdepOBJCXX_TRUE=
5057 am__fastdepOBJCXX_FALSE='#'
a243b558 5058else
a93f15c0
JF
5059 am__fastdepOBJCXX_TRUE='#'
5060 am__fastdepOBJCXX_FALSE=
a243b558
JF
5061fi
5062
5063
5064
8d20f0f1
JF
5065ac_ext=c
5066ac_cpp='$CPP $CPPFLAGS'
5067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5069ac_compiler_gnu=$ac_cv_c_compiler_gnu
5070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5071$as_echo_n "checking how to run the C preprocessor... " >&6; }
5072# On Suns, sometimes $CPP names a directory.
5073if test -n "$CPP" && test -d "$CPP"; then
5074 CPP=
5075fi
5076if test -z "$CPP"; then
5077 if ${ac_cv_prog_CPP+:} false; then :
a243b558
JF
5078 $as_echo_n "(cached) " >&6
5079else
8d20f0f1
JF
5080 # Double quotes because CPP needs to be expanded
5081 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5082 do
5083 ac_preproc_ok=false
5084for ac_c_preproc_warn_flag in '' yes
a243b558 5085do
8d20f0f1
JF
5086 # Use a header file that comes with gcc, so configuring glibc
5087 # with a fresh cross-compiler works.
5088 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5089 # <limits.h> exists even on freestanding compilers.
5090 # On the NeXT, cc -E runs the code through the compiler's parser,
5091 # not just through cpp. "Syntax error" is here to catch this case.
5092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093/* end confdefs.h. */
5094#ifdef __STDC__
5095# include <limits.h>
5096#else
5097# include <assert.h>
5098#endif
5099 Syntax error
5100_ACEOF
5101if ac_fn_c_try_cpp "$LINENO"; then :
a243b558 5102
35fa52c0 5103else
8d20f0f1
JF
5104 # Broken: fails on valid input.
5105continue
35fa52c0 5106fi
8d20f0f1 5107rm -f conftest.err conftest.i conftest.$ac_ext
9c60689e 5108
8d20f0f1
JF
5109 # OK, works on sane cases. Now check whether nonexistent headers
5110 # can be detected and how.
5111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5112/* end confdefs.h. */
5113#include <ac_nonexistent.h>
5114_ACEOF
5115if ac_fn_c_try_cpp "$LINENO"; then :
5116 # Broken: success on invalid input.
5117continue
5118else
5119 # Passes both tests.
5120ac_preproc_ok=:
5121break
5122fi
5123rm -f conftest.err conftest.i conftest.$ac_ext
a243b558 5124
8d20f0f1
JF
5125done
5126# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5127rm -f conftest.i conftest.err conftest.$ac_ext
5128if $ac_preproc_ok; then :
5129 break
5130fi
5131
5132 done
5133 ac_cv_prog_CPP=$CPP
5134
5135fi
5136 CPP=$ac_cv_prog_CPP
5137else
5138 ac_cv_prog_CPP=$CPP
5139fi
5140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5141$as_echo "$CPP" >&6; }
5142ac_preproc_ok=false
5143for ac_c_preproc_warn_flag in '' yes
5144do
5145 # Use a header file that comes with gcc, so configuring glibc
5146 # with a fresh cross-compiler works.
5147 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5148 # <limits.h> exists even on freestanding compilers.
5149 # On the NeXT, cc -E runs the code through the compiler's parser,
5150 # not just through cpp. "Syntax error" is here to catch this case.
5151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152/* end confdefs.h. */
5153#ifdef __STDC__
5154# include <limits.h>
5155#else
5156# include <assert.h>
5157#endif
5158 Syntax error
5159_ACEOF
5160if ac_fn_c_try_cpp "$LINENO"; then :
5161
5162else
5163 # Broken: fails on valid input.
5164continue
5165fi
5166rm -f conftest.err conftest.i conftest.$ac_ext
5167
5168 # OK, works on sane cases. Now check whether nonexistent headers
5169 # can be detected and how.
5170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5171/* end confdefs.h. */
5172#include <ac_nonexistent.h>
5173_ACEOF
5174if ac_fn_c_try_cpp "$LINENO"; then :
5175 # Broken: success on invalid input.
5176continue
5177else
5178 # Passes both tests.
5179ac_preproc_ok=:
5180break
5181fi
5182rm -f conftest.err conftest.i conftest.$ac_ext
5183
5184done
5185# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5186rm -f conftest.i conftest.err conftest.$ac_ext
5187if $ac_preproc_ok; then :
5188
5189else
5190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5191$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5192as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5193See \`config.log' for more details" "$LINENO" 5; }
5194fi
5195
5196ac_ext=c
5197ac_cpp='$CPP $CPPFLAGS'
5198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5200ac_compiler_gnu=$ac_cv_c_compiler_gnu
5201
5202
5203# Make sure we can run config.sub.
5204$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5205 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5206
5207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5208$as_echo_n "checking build system type... " >&6; }
5209if ${ac_cv_build+:} false; then :
5210 $as_echo_n "(cached) " >&6
5211else
5212 ac_build_alias=$build_alias
5213test "x$ac_build_alias" = x &&
5214 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5215test "x$ac_build_alias" = x &&
5216 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5217ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5218 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5219
5220fi
5221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5222$as_echo "$ac_cv_build" >&6; }
5223case $ac_cv_build in
5224*-*-*) ;;
5225*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5226esac
5227build=$ac_cv_build
5228ac_save_IFS=$IFS; IFS='-'
5229set x $ac_cv_build
5230shift
5231build_cpu=$1
5232build_vendor=$2
5233shift; shift
5234# Remember, the first character of IFS is used to create $*,
5235# except with old shells:
5236build_os=$*
5237IFS=$ac_save_IFS
5238case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5239
5240
5241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5242$as_echo_n "checking host system type... " >&6; }
5243if ${ac_cv_host+:} false; then :
5244 $as_echo_n "(cached) " >&6
5245else
5246 if test "x$host_alias" = x; then
5247 ac_cv_host=$ac_cv_build
5248else
5249 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5250 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5251fi
5252
5253fi
5254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5255$as_echo "$ac_cv_host" >&6; }
5256case $ac_cv_host in
5257*-*-*) ;;
5258*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5259esac
5260host=$ac_cv_host
5261ac_save_IFS=$IFS; IFS='-'
5262set x $ac_cv_host
5263shift
5264host_cpu=$1
5265host_vendor=$2
5266shift; shift
5267# Remember, the first character of IFS is used to create $*,
5268# except with old shells:
5269host_os=$*
5270IFS=$ac_save_IFS
5271case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5272
5273
5274
5275
5276save_cross_compiling=$cross_compiling
5277save_ac_tool_prefix=$ac_tool_prefix
5278cross_compiling=no
5279ac_tool_prefix=
5280
5281ac_ext=c
5282ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5283ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5284ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5285ac_compiler_gnu=$ac_cv_c_compiler_gnu
5286if test -n "$ac_tool_prefix"; then
5287 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5288set dummy ${ac_tool_prefix}gcc; ac_word=$2
5289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5290$as_echo_n "checking for $ac_word... " >&6; }
5291if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
5292 $as_echo_n "(cached) " >&6
5293else
5294 if test -n "$CC_FOR_BUILD"; then
5295 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5296else
5297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5298for as_dir in $PATH
5299do
5300 IFS=$as_save_IFS
5301 test -z "$as_dir" && as_dir=.
5302 for ac_exec_ext in '' $ac_executable_extensions; do
5303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5304 ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}gcc"
5305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5306 break 2
5307 fi
5308done
5309 done
5310IFS=$as_save_IFS
5311
5312fi
5313fi
5314CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5315if test -n "$CC_FOR_BUILD"; then
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5317$as_echo "$CC_FOR_BUILD" >&6; }
5318else
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5320$as_echo "no" >&6; }
5321fi
5322
5323
5324fi
5325if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
5326 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
5327 # Extract the first word of "gcc", so it can be a program name with args.
5328set dummy gcc; ac_word=$2
5329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5330$as_echo_n "checking for $ac_word... " >&6; }
5331if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
5332 $as_echo_n "(cached) " >&6
5333else
5334 if test -n "$ac_ct_CC_FOR_BUILD"; then
5335 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5336else
5337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338for as_dir in $PATH
5339do
5340 IFS=$as_save_IFS
5341 test -z "$as_dir" && as_dir=.
5342 for ac_exec_ext in '' $ac_executable_extensions; do
5343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5344 ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
5345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5346 break 2
5347 fi
5348done
5349 done
5350IFS=$as_save_IFS
5351
5352fi
5353fi
5354ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5355if test -n "$ac_ct_CC_FOR_BUILD"; then
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
5357$as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
5358else
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5360$as_echo "no" >&6; }
5361fi
5362
5363 if test "x$ac_ct_CC_FOR_BUILD" = x; then
5364 CC_FOR_BUILD=""
5365 else
5366 case $cross_compiling:$ac_tool_warned in
5367yes:)
5368{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
5369$as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
5370ac_tool_warned=yes ;;
5371esac
5372 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5373 fi
5374else
5375 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
5376fi
5377
5378if test -z "$CC_FOR_BUILD"; then
5379 if test -n "$ac_tool_prefix"; then
5380 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5381set dummy ${ac_tool_prefix}cc; ac_word=$2
5382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5383$as_echo_n "checking for $ac_word... " >&6; }
5384if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
5385 $as_echo_n "(cached) " >&6
5386else
5387 if test -n "$CC_FOR_BUILD"; then
5388 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5389else
5390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391for as_dir in $PATH
5392do
5393 IFS=$as_save_IFS
5394 test -z "$as_dir" && as_dir=.
5395 for ac_exec_ext in '' $ac_executable_extensions; do
5396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5397 ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}cc"
5398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5399 break 2
5400 fi
5401done
5402 done
5403IFS=$as_save_IFS
5404
5405fi
5406fi
5407CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5408if test -n "$CC_FOR_BUILD"; then
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5410$as_echo "$CC_FOR_BUILD" >&6; }
5411else
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5413$as_echo "no" >&6; }
5414fi
5415
5416
5417 fi
5418fi
5419if test -z "$CC_FOR_BUILD"; then
5420 # Extract the first word of "cc", so it can be a program name with args.
5421set dummy cc; ac_word=$2
5422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5423$as_echo_n "checking for $ac_word... " >&6; }
5424if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
5425 $as_echo_n "(cached) " >&6
5426else
5427 if test -n "$CC_FOR_BUILD"; then
5428 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5429else
5430 ac_prog_rejected=no
5431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432for as_dir in $PATH
5433do
5434 IFS=$as_save_IFS
5435 test -z "$as_dir" && as_dir=.
5436 for ac_exec_ext in '' $ac_executable_extensions; do
5437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5438 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5439 ac_prog_rejected=yes
5440 continue
5441 fi
5442 ac_cv_prog_CC_FOR_BUILD="cc"
5443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5444 break 2
5445 fi
5446done
5447 done
5448IFS=$as_save_IFS
5449
5450if test $ac_prog_rejected = yes; then
5451 # We found a bogon in the path, so make sure we never use it.
5452 set dummy $ac_cv_prog_CC_FOR_BUILD
5453 shift
5454 if test $# != 0; then
5455 # We chose a different compiler from the bogus one.
5456 # However, it has the same basename, so the bogon will be chosen
5457 # first if we set CC_FOR_BUILD to just the basename; use the full file name.
5458 shift
5459 ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
5460 fi
5461fi
5462fi
5463fi
5464CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5465if test -n "$CC_FOR_BUILD"; then
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5467$as_echo "$CC_FOR_BUILD" >&6; }
5468else
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5470$as_echo "no" >&6; }
5471fi
5472
5473
5474fi
5475if test -z "$CC_FOR_BUILD"; then
5476 if test -n "$ac_tool_prefix"; then
5477 for ac_prog in cl.exe
5478 do
5479 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5480set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5482$as_echo_n "checking for $ac_word... " >&6; }
5483if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
5484 $as_echo_n "(cached) " >&6
5485else
5486 if test -n "$CC_FOR_BUILD"; then
5487 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5488else
5489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5490for as_dir in $PATH
5491do
5492 IFS=$as_save_IFS
5493 test -z "$as_dir" && as_dir=.
5494 for ac_exec_ext in '' $ac_executable_extensions; do
5495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5496 ac_cv_prog_CC_FOR_BUILD="$ac_tool_prefix$ac_prog"
5497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5498 break 2
5499 fi
5500done
5501 done
5502IFS=$as_save_IFS
5503
5504fi
5505fi
5506CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5507if test -n "$CC_FOR_BUILD"; then
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5509$as_echo "$CC_FOR_BUILD" >&6; }
5510else
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5512$as_echo "no" >&6; }
5513fi
5514
5515
5516 test -n "$CC_FOR_BUILD" && break
5517 done
5518fi
5519if test -z "$CC_FOR_BUILD"; then
5520 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
5521 for ac_prog in cl.exe
5522do
5523 # Extract the first word of "$ac_prog", so it can be a program name with args.
5524set dummy $ac_prog; ac_word=$2
5525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5526$as_echo_n "checking for $ac_word... " >&6; }
5527if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
5528 $as_echo_n "(cached) " >&6
5529else
5530 if test -n "$ac_ct_CC_FOR_BUILD"; then
5531 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5532else
5533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5534for as_dir in $PATH
5535do
5536 IFS=$as_save_IFS
5537 test -z "$as_dir" && as_dir=.
5538 for ac_exec_ext in '' $ac_executable_extensions; do
5539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5540 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
5541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5542 break 2
5543 fi
5544done
5545 done
5546IFS=$as_save_IFS
5547
5548fi
5549fi
5550ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5551if test -n "$ac_ct_CC_FOR_BUILD"; then
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
5553$as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
5554else
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556$as_echo "no" >&6; }
5557fi
5558
5559
5560 test -n "$ac_ct_CC_FOR_BUILD" && break
5561done
5562
5563 if test "x$ac_ct_CC_FOR_BUILD" = x; then
5564 CC_FOR_BUILD=""
5565 else
5566 case $cross_compiling:$ac_tool_warned in
5567yes:)
5568{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
5569$as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
5570ac_tool_warned=yes ;;
5571esac
5572 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5573 fi
5574fi
5575
5576fi
5577
5578
5579test -z "$CC_FOR_BUILD" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5580$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5581as_fn_error $? "no acceptable C compiler found in \$PATH
5582See \`config.log' for more details" "$LINENO" 5; }
5583
5584# Provide some information about the compiler.
5585$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5586set X $ac_build_compile
5587ac_compiler=$2
5588for ac_option in --version -v -V -qversion; do
5589 { { ac_try="$ac_compiler $ac_option >&5"
5590case "(($ac_try" in
5591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5592 *) ac_try_echo=$ac_try;;
5593esac
5594eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5595$as_echo "$ac_try_echo"; } >&5
5596 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5597 ac_status=$?
5598 if test -s conftest.err; then
5599 sed '10a\
5600... rest of stderr output deleted ...
5601 10q' conftest.err >conftest.er1
5602 cat conftest.er1 >&5
5603 fi
5604 rm -f conftest.er1 conftest.err
5605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5606 test $ac_status = 0; }
5607done
5608
5609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5610$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5611if ${ac_cv_c_compiler_gnu+:} false; then :
5612 $as_echo_n "(cached) " >&6
5613else
5614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5615/* end confdefs.h. */
5616
5617int
5618main ()
5619{
5620#ifndef __GNUC__
5621 choke me
5622#endif
5623
5624 ;
5625 return 0;
5626}
5627_ACEOF
5628if ac_fn_c_try_compile "$LINENO"; then :
5629 ac_compiler_gnu=yes
5630else
5631 ac_compiler_gnu=no
5632fi
5633rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5634ac_cv_c_compiler_gnu=$ac_compiler_gnu
5635
5636fi
5637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5638$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5639if test $ac_compiler_gnu = yes; then
5640 GCC=yes
5641else
5642 GCC=
5643fi
5644ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
5645ac_save_CFLAGS=$CFLAGS_FOR_BUILD
5646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5
5647$as_echo_n "checking whether $CC_FOR_BUILD accepts -g... " >&6; }
5648if ${ac_cv_build_prog_cc_g+:} false; then :
5649 $as_echo_n "(cached) " >&6
5650else
5651 ac_save_c_werror_flag=$ac_c_werror_flag
5652 ac_c_werror_flag=yes
5653 ac_cv_build_prog_cc_g=no
5654 CFLAGS_FOR_BUILD="-g"
5655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5656/* end confdefs.h. */
5657
5658int
5659main ()
5660{
5661
5662 ;
5663 return 0;
5664}
5665_ACEOF
5666if ac_fn_c_try_compile "$LINENO"; then :
5667 ac_cv_build_prog_cc_g=yes
5668else
5669 CFLAGS_FOR_BUILD=""
5670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5671/* end confdefs.h. */
5672
5673int
5674main ()
5675{
5676
5677 ;
5678 return 0;
5679}
5680_ACEOF
5681if ac_fn_c_try_compile "$LINENO"; then :
5682
5683else
5684 ac_c_werror_flag=$ac_save_c_werror_flag
5685 CFLAGS_FOR_BUILD="-g"
5686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5687/* end confdefs.h. */
5688
5689int
5690main ()
5691{
5692
5693 ;
5694 return 0;
5695}
5696_ACEOF
5697if ac_fn_c_try_compile "$LINENO"; then :
5698 ac_cv_build_prog_cc_g=yes
5699fi
5700rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5701fi
5702rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5703fi
5704rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5705 ac_c_werror_flag=$ac_save_c_werror_flag
5706fi
5707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5
5708$as_echo "$ac_cv_build_prog_cc_g" >&6; }
5709if test "$ac_test_CFLAGS" = set; then
5710 CFLAGS_FOR_BUILD=$ac_save_CFLAGS
5711elif test $ac_cv_build_prog_cc_g = yes; then
5712 if test "$GCC" = yes; then
5713 CFLAGS_FOR_BUILD="-g -O2"
5714 else
5715 CFLAGS_FOR_BUILD="-g"
5716 fi
5717else
5718 if test "$GCC" = yes; then
5719 CFLAGS_FOR_BUILD="-O2"
5720 else
5721 CFLAGS_FOR_BUILD=
5722 fi
5723fi
5724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
5725$as_echo_n "checking for $CC_FOR_BUILD option to accept ISO C89... " >&6; }
5726if ${ac_cv_prog_cc_c89+:} false; then :
5727 $as_echo_n "(cached) " >&6
5728else
5729 ac_cv_prog_cc_c89=no
5730ac_save_CC=$CC_FOR_BUILD
5731cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5732/* end confdefs.h. */
5733#include <stdarg.h>
5734#include <stdio.h>
5735struct stat;
5736/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5737struct buf { int x; };
5738FILE * (*rcsopen) (struct buf *, struct stat *, int);
5739static char *e (p, i)
5740 char **p;
5741 int i;
5742{
5743 return p[i];
5744}
5745static char *f (char * (*g) (char **, int), char **p, ...)
5746{
5747 char *s;
5748 va_list v;
5749 va_start (v,p);
5750 s = g (p, va_arg (v,int));
5751 va_end (v);
5752 return s;
5753}
5754
5755/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5756 function prototypes and stuff, but not '\xHH' hex character constants.
5757 These don't provoke an error unfortunately, instead are silently treated
5758 as 'x'. The following induces an error, until -std is added to get
5759 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5760 array size at least. It's necessary to write '\x00'==0 to get something
5761 that's true only with -std. */
5762int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5763
5764/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5765 inside strings and character constants. */
5766#define FOO(x) 'x'
5767int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5768
5769int test (int i, double x);
5770struct s1 {int (*f) (int a);};
5771struct s2 {int (*f) (double a);};
5772int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5773int argc;
5774char **argv;
5775int
5776main ()
5777{
5778return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5779 ;
5780 return 0;
5781}
5782_ACEOF
5783for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5784 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5785do
5786 CC_FOR_BUILD="$ac_save_CC $ac_arg"
5787 if ac_fn_c_try_compile "$LINENO"; then :
5788 ac_cv_prog_cc_c89=$ac_arg
5789fi
5790rm -f core conftest.err conftest.$ac_build_objext
5791 test "x$ac_cv_prog_cc_c89" != "xno" && break
5792done
5793rm -f conftest.$ac_ext
5794CC_FOR_BUILD=$ac_save_CC
5795
5796fi
5797# AC_CACHE_VAL
5798case "x$ac_cv_prog_cc_c89" in
5799 x)
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5801$as_echo "none needed" >&6; } ;;
5802 xno)
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5804$as_echo "unsupported" >&6; } ;;
5805 *)
5806 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_prog_cc_c89"
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5808$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5809esac
5810if test "x$ac_cv_prog_cc_c89" != xno; then :
5811
5812fi
5813
5814ac_ext=c
5815ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5816ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5817ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5818ac_compiler_gnu=$ac_cv_c_compiler_gnu
5819
5820ac_ext=c
5821ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5822ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5823ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5824ac_compiler_gnu=$ac_cv_c_compiler_gnu
5825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD understands -c and -o together" >&5
5826$as_echo_n "checking whether $CC_FOR_BUILD understands -c and -o together... " >&6; }
5827if ${am_cv_prog_cc_c_o+:} false; then :
5828 $as_echo_n "(cached) " >&6
5829else
5830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5831/* end confdefs.h. */
5832
5833int
5834main ()
5835{
5836
5837 ;
5838 return 0;
5839}
5840_ACEOF
5841 # Make sure it works both with $CC and with simple cc.
5842 # Following AC_PROG_CC_C_O, we do the test twice because some
5843 # compilers refuse to overwrite an existing .o file with -o,
5844 # though they will create one.
5845 am_cv_prog_cc_c_o=yes
5846 for am_i in 1 2; do
5847 if { echo "$as_me:$LINENO: $CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext" >&5
5848 ($CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext) >&5 2>&5
5849 ac_status=$?
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); } \
5852 && test -f conftest2.$ac_build_objext; then
5853 : OK
5854 else
5855 am_cv_prog_cc_c_o=no
5856 break
5857 fi
5858 done
5859 rm -f core conftest*
5860 unset am_i
5861fi
5862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5863$as_echo "$am_cv_prog_cc_c_o" >&6; }
5864if test "$am_cv_prog_cc_c_o" != yes; then
5865 # Losing compiler, so override with the script.
5866 # FIXME: It is wrong to rewrite CC.
5867 # But if we don't then we get into trouble of one sort or another.
5868 # A longer-term fix would be to have automake use am__CC in this case,
5869 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5870 CC_FOR_BUILD="$am_aux_dir/compile $CC_FOR_BUILD"
5871fi
5872ac_ext=c
5873ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5874ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5875ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5876ac_compiler_gnu=$ac_cv_c_compiler_gnu
5877
5878
5879depcc="$CC_FOR_BUILD" am_compiler_list=
5880
5881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5882$as_echo_n "checking dependency style of $depcc... " >&6; }
5883if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5884 $as_echo_n "(cached) " >&6
5885else
5886 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5887 # We make a subdir and do the tests there. Otherwise we can end up
5888 # making bogus files that we don't know about and never remove. For
5889 # instance it was reported that on HP-UX the gcc test will end up
5890 # making a dummy file named 'D' -- because '-MD' means "put the output
5891 # in D".
5892 rm -rf conftest.dir
5893 mkdir conftest.dir
5894 # Copy depcomp to subdir because otherwise we won't find it if we're
5895 # using a relative directory.
5896 cp "$am_depcomp" conftest.dir
5897 cd conftest.dir
5898 # We will build objects and dependencies in a subdirectory because
5899 # it helps to detect inapplicable dependency modes. For instance
5900 # both Tru64's cc and ICC support -MD to output dependencies as a
5901 # side effect of compilation, but ICC will put the dependencies in
5902 # the current directory while Tru64 will put them in the object
5903 # directory.
5904 mkdir sub
5905
5906 am_cv_CC_dependencies_compiler_type=none
5907 if test "$am_compiler_list" = ""; then
5908 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5909 fi
5910 am__universal=false
5911 case " $depcc " in #(
5912 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5913 esac
5914
5915 for depmode in $am_compiler_list; do
5916 # Setup a source with many dependencies, because some compilers
5917 # like to wrap large dependency lists on column 80 (with \), and
5918 # we should not choose a depcomp mode which is confused by this.
5919 #
5920 # We need to recreate these files for each test, as the compiler may
5921 # overwrite some of them when testing with obscure command lines.
5922 # This happens at least with the AIX C compiler.
5923 : > sub/conftest.c
5924 for i in 1 2 3 4 5 6; do
5925 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5926 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5927 # Solaris 10 /bin/sh.
5928 echo '/* dummy */' > sub/conftst$i.h
5929 done
5930 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5931
5932 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5933 # mode. It turns out that the SunPro C++ compiler does not properly
5934 # handle '-M -o', and we need to detect this. Also, some Intel
5935 # versions had trouble with output in subdirs.
5936 am__obj=sub/conftest.${OBJEXT-o}
5937 am__minus_obj="-o $am__obj"
5938 case $depmode in
5939 gcc)
5940 # This depmode causes a compiler race in universal mode.
5941 test "$am__universal" = false || continue
5942 ;;
5943 nosideeffect)
5944 # After this tag, mechanisms are not by side-effect, so they'll
5945 # only be used when explicitly requested.
5946 if test "x$enable_dependency_tracking" = xyes; then
5947 continue
5948 else
5949 break
5950 fi
5951 ;;
5952 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5953 # This compiler won't grok '-c -o', but also, the minuso test has
5954 # not run yet. These depmodes are late enough in the game, and
5955 # so weak that their functioning should not be impacted.
5956 am__obj=conftest.${OBJEXT-o}
5957 am__minus_obj=
5958 ;;
5959 none) break ;;
5960 esac
5961 if depmode=$depmode \
5962 source=sub/conftest.c object=$am__obj \
5963 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5964 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5965 >/dev/null 2>conftest.err &&
5966 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5967 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5968 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5969 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5970 # icc doesn't choke on unknown options, it will just issue warnings
5971 # or remarks (even with -Werror). So we grep stderr for any message
5972 # that says an option was ignored or not supported.
5973 # When given -MP, icc 7.0 and 7.1 complain thusly:
5974 # icc: Command line warning: ignoring option '-M'; no argument required
5975 # The diagnosis changed in icc 8.0:
5976 # icc: Command line remark: option '-MP' not supported
5977 if (grep 'ignoring option' conftest.err ||
5978 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5979 am_cv_CC_dependencies_compiler_type=$depmode
5980 break
5981 fi
5982 fi
5983 done
5984
5985 cd ..
5986 rm -rf conftest.dir
5987else
5988 am_cv_CC_dependencies_compiler_type=none
5989fi
5990
5991fi
5992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5993$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5994CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5995
5996 if
5997 test "x$enable_dependency_tracking" != xno \
5998 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5999 am__fastdepCC_TRUE=
6000 am__fastdepCC_FALSE='#'
6001else
6002 am__fastdepCC_TRUE='#'
6003 am__fastdepCC_FALSE=
6004fi
6005
6006
6007ac_ext=c
6008ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6009ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6010ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
6011ac_compiler_gnu=$ac_cv_c_compiler_gnu
6012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6013$as_echo_n "checking how to run the C preprocessor... " >&6; }
6014# On Suns, sometimes $CPP names a directory.
6015if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
6016 CPP_FOR_BUILD=
6017fi
6018if test -z "$CPP_FOR_BUILD"; then
6019 if ${ac_cv_build_prog_CPP+:} false; then :
6020 $as_echo_n "(cached) " >&6
6021else
6022 # Double quotes because CPP needs to be expanded
6023 for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
6024 do
6025 ac_preproc_ok=false
6026for ac_c_preproc_warn_flag in '' yes
6027do
6028 # Use a header file that comes with gcc, so configuring glibc
6029 # with a fresh cross-compiler works.
6030 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6031 # <limits.h> exists even on freestanding compilers.
6032 # On the NeXT, cc -E runs the code through the compiler's parser,
6033 # not just through cpp. "Syntax error" is here to catch this case.
6034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6035/* end confdefs.h. */
6036#ifdef __STDC__
6037# include <limits.h>
6038#else
6039# include <assert.h>
6040#endif
6041 Syntax error
6042_ACEOF
6043if ac_fn_c_try_cpp "$LINENO"; then :
6044
6045else
6046 # Broken: fails on valid input.
6047continue
6048fi
6049rm -f conftest.err conftest.i conftest.$ac_ext
6050
6051 # OK, works on sane cases. Now check whether nonexistent headers
6052 # can be detected and how.
6053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6054/* end confdefs.h. */
6055#include <ac_nonexistent.h>
6056_ACEOF
6057if ac_fn_c_try_cpp "$LINENO"; then :
6058 # Broken: success on invalid input.
6059continue
6060else
6061 # Passes both tests.
6062ac_preproc_ok=:
6063break
6064fi
6065rm -f conftest.err conftest.i conftest.$ac_ext
6066
6067done
6068# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6069rm -f conftest.i conftest.err conftest.$ac_ext
6070if $ac_preproc_ok; then :
6071 break
6072fi
6073
6074 done
6075 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
6076
6077fi
6078 CPP_FOR_BUILD=$ac_cv_build_prog_CPP
6079else
6080 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
6081fi
6082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
6083$as_echo "$CPP_FOR_BUILD" >&6; }
6084ac_preproc_ok=false
6085for ac_c_preproc_warn_flag in '' yes
6086do
6087 # Use a header file that comes with gcc, so configuring glibc
6088 # with a fresh cross-compiler works.
6089 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6090 # <limits.h> exists even on freestanding compilers.
6091 # On the NeXT, cc -E runs the code through the compiler's parser,
6092 # not just through cpp. "Syntax error" is here to catch this case.
6093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6094/* end confdefs.h. */
6095#ifdef __STDC__
6096# include <limits.h>
6097#else
6098# include <assert.h>
6099#endif
6100 Syntax error
6101_ACEOF
6102if ac_fn_c_try_cpp "$LINENO"; then :
6103
6104else
6105 # Broken: fails on valid input.
6106continue
6107fi
6108rm -f conftest.err conftest.i conftest.$ac_ext
6109
6110 # OK, works on sane cases. Now check whether nonexistent headers
6111 # can be detected and how.
6112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6113/* end confdefs.h. */
6114#include <ac_nonexistent.h>
6115_ACEOF
6116if ac_fn_c_try_cpp "$LINENO"; then :
6117 # Broken: success on invalid input.
6118continue
6119else
6120 # Passes both tests.
6121ac_preproc_ok=:
6122break
6123fi
6124rm -f conftest.err conftest.i conftest.$ac_ext
6125
6126done
6127# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6128rm -f conftest.i conftest.err conftest.$ac_ext
6129if $ac_preproc_ok; then :
6130
6131else
6132 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6133$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6134as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
6135See \`config.log' for more details" "$LINENO" 5; }
6136fi
6137
6138ac_ext=c
6139ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6140ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6141ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
6142ac_compiler_gnu=$ac_cv_c_compiler_gnu
6143
6144
6145
6146ac_tool_prefix=$save_ac_tool_prefix
6147cross_compiling=$save_cross_compiling
6148
6149
6150BUILD_EXEEXT=$ac_build_exeext
6151BUILD_OBJEXT=$ac_build_objext
6152
6153ac_ext=cpp
6154ac_cpp='$CXXCPP $CPPFLAGS'
6155ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6156ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6157ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6159$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6160if test -z "$CXXCPP"; then
6161 if ${ac_cv_prog_CXXCPP+:} false; then :
6162 $as_echo_n "(cached) " >&6
6163else
6164 # Double quotes because CXXCPP needs to be expanded
6165 for CXXCPP in "$CXX -E" "/lib/cpp"
6166 do
6167 ac_preproc_ok=false
6168for ac_cxx_preproc_warn_flag in '' yes
6169do
6170 # Use a header file that comes with gcc, so configuring glibc
6171 # with a fresh cross-compiler works.
6172 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6173 # <limits.h> exists even on freestanding compilers.
6174 # On the NeXT, cc -E runs the code through the compiler's parser,
6175 # not just through cpp. "Syntax error" is here to catch this case.
6176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6177/* end confdefs.h. */
6178#ifdef __STDC__
6179# include <limits.h>
6180#else
6181# include <assert.h>
6182#endif
6183 Syntax error
6184_ACEOF
6185if ac_fn_cxx_try_cpp "$LINENO"; then :
6186
6187else
6188 # Broken: fails on valid input.
6189continue
6190fi
6191rm -f conftest.err conftest.i conftest.$ac_ext
6192
6193 # OK, works on sane cases. Now check whether nonexistent headers
6194 # can be detected and how.
6195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6196/* end confdefs.h. */
6197#include <ac_nonexistent.h>
6198_ACEOF
6199if ac_fn_cxx_try_cpp "$LINENO"; then :
6200 # Broken: success on invalid input.
6201continue
6202else
6203 # Passes both tests.
6204ac_preproc_ok=:
6205break
6206fi
6207rm -f conftest.err conftest.i conftest.$ac_ext
6208
6209done
6210# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6211rm -f conftest.i conftest.err conftest.$ac_ext
6212if $ac_preproc_ok; then :
6213 break
6214fi
6215
6216 done
6217 ac_cv_prog_CXXCPP=$CXXCPP
6218
6219fi
6220 CXXCPP=$ac_cv_prog_CXXCPP
6221else
6222 ac_cv_prog_CXXCPP=$CXXCPP
6223fi
6224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6225$as_echo "$CXXCPP" >&6; }
6226ac_preproc_ok=false
6227for ac_cxx_preproc_warn_flag in '' yes
6228do
6229 # Use a header file that comes with gcc, so configuring glibc
6230 # with a fresh cross-compiler works.
6231 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6232 # <limits.h> exists even on freestanding compilers.
6233 # On the NeXT, cc -E runs the code through the compiler's parser,
6234 # not just through cpp. "Syntax error" is here to catch this case.
6235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6236/* end confdefs.h. */
6237#ifdef __STDC__
6238# include <limits.h>
6239#else
6240# include <assert.h>
6241#endif
6242 Syntax error
6243_ACEOF
6244if ac_fn_cxx_try_cpp "$LINENO"; then :
6245
6246else
6247 # Broken: fails on valid input.
6248continue
6249fi
6250rm -f conftest.err conftest.i conftest.$ac_ext
6251
6252 # OK, works on sane cases. Now check whether nonexistent headers
6253 # can be detected and how.
6254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6255/* end confdefs.h. */
6256#include <ac_nonexistent.h>
6257_ACEOF
6258if ac_fn_cxx_try_cpp "$LINENO"; then :
6259 # Broken: success on invalid input.
6260continue
6261else
6262 # Passes both tests.
6263ac_preproc_ok=:
6264break
6265fi
6266rm -f conftest.err conftest.i conftest.$ac_ext
6267
6268done
6269# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6270rm -f conftest.i conftest.err conftest.$ac_ext
6271if $ac_preproc_ok; then :
6272
6273else
6274 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6275$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6276as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6277See \`config.log' for more details" "$LINENO" 5; }
6278fi
6279
6280ac_ext=c
6281ac_cpp='$CPP $CPPFLAGS'
6282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6284ac_compiler_gnu=$ac_cv_c_compiler_gnu
6285
6286
6287
6288save_cross_compiling=$cross_compiling
6289save_ac_tool_prefix=$ac_tool_prefix
6290cross_compiling=no
6291ac_tool_prefix=
6292
6293ac_ext=cpp
6294ac_cpp='$CXXCPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6295ac_build_compile='$CXX_FOR_BUILD -c $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6296ac_build_link='$CXX_FOR_BUILD -o conftest$ac_exeext $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6297ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6298if test -z "$CXX_FOR_BUILD"; then
6299 if test -n "$CCC"; then
6300 CXX_FOR_BUILD=$CCC
6301 else
6302 if test -n "$ac_tool_prefix"; then
6303 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6304 do
6305 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6306set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6308$as_echo_n "checking for $ac_word... " >&6; }
6309if ${ac_cv_prog_CXX_FOR_BUILD+:} false; then :
6310 $as_echo_n "(cached) " >&6
6311else
6312 if test -n "$CXX_FOR_BUILD"; then
6313 ac_cv_prog_CXX_FOR_BUILD="$CXX_FOR_BUILD" # Let the user override the test.
6314else
6315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316for as_dir in $PATH
6317do
6318 IFS=$as_save_IFS
6319 test -z "$as_dir" && as_dir=.
6320 for ac_exec_ext in '' $ac_executable_extensions; do
6321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6322 ac_cv_prog_CXX_FOR_BUILD="$ac_tool_prefix$ac_prog"
6323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6324 break 2
6325 fi
6326done
6327 done
6328IFS=$as_save_IFS
6329
6330fi
6331fi
6332CXX_FOR_BUILD=$ac_cv_prog_CXX_FOR_BUILD
6333if test -n "$CXX_FOR_BUILD"; then
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_BUILD" >&5
6335$as_echo "$CXX_FOR_BUILD" >&6; }
6336else
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6338$as_echo "no" >&6; }
6339fi
6340
6341
6342 test -n "$CXX_FOR_BUILD" && break
6343 done
6344fi
6345if test -z "$CXX_FOR_BUILD"; then
6346 ac_ct_CXX_FOR_BUILD=$CXX_FOR_BUILD
6347 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6348do
6349 # Extract the first word of "$ac_prog", so it can be a program name with args.
6350set dummy $ac_prog; ac_word=$2
6351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6352$as_echo_n "checking for $ac_word... " >&6; }
6353if ${ac_cv_prog_ac_ct_CXX_FOR_BUILD+:} false; then :
6354 $as_echo_n "(cached) " >&6
6355else
6356 if test -n "$ac_ct_CXX_FOR_BUILD"; then
6357 ac_cv_prog_ac_ct_CXX_FOR_BUILD="$ac_ct_CXX_FOR_BUILD" # Let the user override the test.
6358else
6359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360for as_dir in $PATH
6361do
6362 IFS=$as_save_IFS
6363 test -z "$as_dir" && as_dir=.
6364 for ac_exec_ext in '' $ac_executable_extensions; do
6365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6366 ac_cv_prog_ac_ct_CXX_FOR_BUILD="$ac_prog"
6367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6368 break 2
6369 fi
6370done
6371 done
6372IFS=$as_save_IFS
6373
6374fi
6375fi
6376ac_ct_CXX_FOR_BUILD=$ac_cv_prog_ac_ct_CXX_FOR_BUILD
6377if test -n "$ac_ct_CXX_FOR_BUILD"; then
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX_FOR_BUILD" >&5
6379$as_echo "$ac_ct_CXX_FOR_BUILD" >&6; }
6380else
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6382$as_echo "no" >&6; }
6383fi
6384
6385
6386 test -n "$ac_ct_CXX_FOR_BUILD" && break
6387done
6388
6389 if test "x$ac_ct_CXX_FOR_BUILD" = x; then
6390 CXX_FOR_BUILD="g++"
6391 else
6392 case $cross_compiling:$ac_tool_warned in
6393yes:)
6394{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
6395$as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
6396ac_tool_warned=yes ;;
6397esac
6398 CXX_FOR_BUILD=$ac_ct_CXX_FOR_BUILD
6399 fi
6400fi
6401
6402 fi
6403fi
6404# Provide some information about the compiler.
6405$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6406set X $ac_build_compile
6407ac_compiler=$2
6408for ac_option in --version -v -V -qversion; do
6409 { { ac_try="$ac_compiler $ac_option >&5"
6410case "(($ac_try" in
6411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6412 *) ac_try_echo=$ac_try;;
6413esac
6414eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6415$as_echo "$ac_try_echo"; } >&5
6416 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6417 ac_status=$?
6418 if test -s conftest.err; then
6419 sed '10a\
6420... rest of stderr output deleted ...
6421 10q' conftest.err >conftest.er1
6422 cat conftest.er1 >&5
6423 fi
6424 rm -f conftest.er1 conftest.err
6425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6426 test $ac_status = 0; }
6427done
6428
6429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6430$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6431if ${ac_cv_cxx_compiler_gnu+:} false; then :
6432 $as_echo_n "(cached) " >&6
6433else
6434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6435/* end confdefs.h. */
6436
6437int
6438main ()
6439{
6440#ifndef __GNUC__
6441 choke me
6442#endif
6443
6444 ;
6445 return 0;
6446}
6447_ACEOF
6448if ac_fn_cxx_try_compile "$LINENO"; then :
6449 ac_compiler_gnu=yes
6450else
6451 ac_compiler_gnu=no
6452fi
6453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6454ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6455
6456fi
6457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6458$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6459if test $ac_compiler_gnu = yes; then
6460 GXX=yes
6461else
6462 GXX=
6463fi
6464ac_test_CXXFLAGS=${CXXFLAGS_FOR_BUILD+set}
6465ac_save_CXXFLAGS=$CXXFLAGS_FOR_BUILD
6466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX_FOR_BUILD accepts -g" >&5
6467$as_echo_n "checking whether $CXX_FOR_BUILD accepts -g... " >&6; }
6468if ${ac_cv_build_prog_cxx_g+:} false; then :
6469 $as_echo_n "(cached) " >&6
6470else
6471 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6472 ac_cxx_werror_flag=yes
6473 ac_cv_build_prog_cxx_g=no
6474 CXXFLAGS_FOR_BUILD="-g"
6475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6476/* end confdefs.h. */
6477
6478int
6479main ()
6480{
6481
6482 ;
6483 return 0;
6484}
6485_ACEOF
6486if ac_fn_cxx_try_compile "$LINENO"; then :
6487 ac_cv_build_prog_cxx_g=yes
6488else
6489 CXXFLAGS_FOR_BUILD=""
6490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6491/* end confdefs.h. */
6492
6493int
6494main ()
6495{
6496
6497 ;
6498 return 0;
6499}
6500_ACEOF
6501if ac_fn_cxx_try_compile "$LINENO"; then :
6502
6503else
6504 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6505 CXXFLAGS_FOR_BUILD="-g"
6506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6507/* end confdefs.h. */
6508
6509int
6510main ()
6511{
6512
6513 ;
6514 return 0;
6515}
6516_ACEOF
6517if ac_fn_cxx_try_compile "$LINENO"; then :
6518 ac_cv_build_prog_cxx_g=yes
6519fi
6520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6521fi
6522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6523fi
6524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6525 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6526fi
6527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cxx_g" >&5
6528$as_echo "$ac_cv_build_prog_cxx_g" >&6; }
6529if test "$ac_test_CXXFLAGS" = set; then
6530 CXXFLAGS_FOR_BUILD=$ac_save_CXXFLAGS
6531elif test $ac_cv_build_prog_cxx_g = yes; then
6532 if test "$GXX" = yes; then
6533 CXXFLAGS_FOR_BUILD="-g -O2"
6534 else
6535 CXXFLAGS_FOR_BUILD="-g"
6536 fi
6537else
6538 if test "$GXX" = yes; then
6539 CXXFLAGS_FOR_BUILD="-O2"
6540 else
6541 CXXFLAGS_FOR_BUILD=
6542 fi
6543fi
6544ac_ext=c
6545ac_cpp='$CPP $CPPFLAGS_FOR_BUILD'
6546ac_build_compile='$CC -c $CFLAGS $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6547ac_build_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6548ac_compiler_gnu=$ac_cv_c_compiler_gnu
6549
6550depcc="$CXX_FOR_BUILD" am_compiler_list=
6551
6552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6553$as_echo_n "checking dependency style of $depcc... " >&6; }
6554if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6555 $as_echo_n "(cached) " >&6
6556else
6557 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6558 # We make a subdir and do the tests there. Otherwise we can end up
6559 # making bogus files that we don't know about and never remove. For
6560 # instance it was reported that on HP-UX the gcc test will end up
6561 # making a dummy file named 'D' -- because '-MD' means "put the output
6562 # in D".
6563 rm -rf conftest.dir
6564 mkdir conftest.dir
6565 # Copy depcomp to subdir because otherwise we won't find it if we're
6566 # using a relative directory.
6567 cp "$am_depcomp" conftest.dir
6568 cd conftest.dir
6569 # We will build objects and dependencies in a subdirectory because
6570 # it helps to detect inapplicable dependency modes. For instance
6571 # both Tru64's cc and ICC support -MD to output dependencies as a
6572 # side effect of compilation, but ICC will put the dependencies in
6573 # the current directory while Tru64 will put them in the object
6574 # directory.
6575 mkdir sub
6576
6577 am_cv_CXX_dependencies_compiler_type=none
6578 if test "$am_compiler_list" = ""; then
6579 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6580 fi
6581 am__universal=false
6582 case " $depcc " in #(
6583 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6584 esac
6585
6586 for depmode in $am_compiler_list; do
6587 # Setup a source with many dependencies, because some compilers
6588 # like to wrap large dependency lists on column 80 (with \), and
6589 # we should not choose a depcomp mode which is confused by this.
6590 #
6591 # We need to recreate these files for each test, as the compiler may
6592 # overwrite some of them when testing with obscure command lines.
6593 # This happens at least with the AIX C compiler.
6594 : > sub/conftest.c
6595 for i in 1 2 3 4 5 6; do
6596 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6597 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6598 # Solaris 10 /bin/sh.
6599 echo '/* dummy */' > sub/conftst$i.h
6600 done
6601 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6602
6603 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6604 # mode. It turns out that the SunPro C++ compiler does not properly
6605 # handle '-M -o', and we need to detect this. Also, some Intel
6606 # versions had trouble with output in subdirs.
6607 am__obj=sub/conftest.${OBJEXT-o}
6608 am__minus_obj="-o $am__obj"
6609 case $depmode in
6610 gcc)
6611 # This depmode causes a compiler race in universal mode.
6612 test "$am__universal" = false || continue
6613 ;;
6614 nosideeffect)
6615 # After this tag, mechanisms are not by side-effect, so they'll
6616 # only be used when explicitly requested.
6617 if test "x$enable_dependency_tracking" = xyes; then
6618 continue
6619 else
6620 break
6621 fi
6622 ;;
6623 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6624 # This compiler won't grok '-c -o', but also, the minuso test has
6625 # not run yet. These depmodes are late enough in the game, and
6626 # so weak that their functioning should not be impacted.
6627 am__obj=conftest.${OBJEXT-o}
6628 am__minus_obj=
6629 ;;
6630 none) break ;;
6631 esac
6632 if depmode=$depmode \
6633 source=sub/conftest.c object=$am__obj \
6634 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6635 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6636 >/dev/null 2>conftest.err &&
6637 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6638 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6639 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6640 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6641 # icc doesn't choke on unknown options, it will just issue warnings
6642 # or remarks (even with -Werror). So we grep stderr for any message
6643 # that says an option was ignored or not supported.
6644 # When given -MP, icc 7.0 and 7.1 complain thusly:
6645 # icc: Command line warning: ignoring option '-M'; no argument required
6646 # The diagnosis changed in icc 8.0:
6647 # icc: Command line remark: option '-MP' not supported
6648 if (grep 'ignoring option' conftest.err ||
6649 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6650 am_cv_CXX_dependencies_compiler_type=$depmode
6651 break
6652 fi
6653 fi
6654 done
6655
6656 cd ..
6657 rm -rf conftest.dir
6658else
6659 am_cv_CXX_dependencies_compiler_type=none
6660fi
6661
6662fi
6663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6664$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6665CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6666
6667 if
6668 test "x$enable_dependency_tracking" != xno \
6669 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6670 am__fastdepCXX_TRUE=
6671 am__fastdepCXX_FALSE='#'
6672else
6673 am__fastdepCXX_TRUE='#'
6674 am__fastdepCXX_FALSE=
6675fi
6676
6677
6678ac_ext=cpp
6679ac_cpp='$CXXCPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6680ac_build_compile='$CXX_FOR_BUILD -c $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6681ac_build_link='$CXX_FOR_BUILD -o conftest$ac_exeext $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6682ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6684$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6685if test -z "$CXXCPP_FOR_BUILD"; then
6686 if ${ac_cv_build_prog_CXXCPP+:} false; then :
6687 $as_echo_n "(cached) " >&6
6688else
6689 # Double quotes because CXXCPP needs to be expanded
6690 for CXXCPP_FOR_BUILD in "$CXX_FOR_BUILD -E" "/lib/cpp"
6691 do
6692 ac_preproc_ok=false
6693for ac_cxx_preproc_warn_flag in '' yes
6694do
6695 # Use a header file that comes with gcc, so configuring glibc
6696 # with a fresh cross-compiler works.
6697 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6698 # <limits.h> exists even on freestanding compilers.
6699 # On the NeXT, cc -E runs the code through the compiler's parser,
6700 # not just through cpp. "Syntax error" is here to catch this case.
6701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6702/* end confdefs.h. */
6703#ifdef __STDC__
6704# include <limits.h>
6705#else
6706# include <assert.h>
6707#endif
6708 Syntax error
6709_ACEOF
6710if ac_fn_cxx_try_cpp "$LINENO"; then :
6711
6712else
6713 # Broken: fails on valid input.
6714continue
6715fi
6716rm -f conftest.err conftest.i conftest.$ac_ext
6717
6718 # OK, works on sane cases. Now check whether nonexistent headers
6719 # can be detected and how.
6720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6721/* end confdefs.h. */
6722#include <ac_nonexistent.h>
6723_ACEOF
6724if ac_fn_cxx_try_cpp "$LINENO"; then :
6725 # Broken: success on invalid input.
6726continue
6727else
6728 # Passes both tests.
6729ac_preproc_ok=:
6730break
6731fi
6732rm -f conftest.err conftest.i conftest.$ac_ext
6733
6734done
6735# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6736rm -f conftest.i conftest.err conftest.$ac_ext
6737if $ac_preproc_ok; then :
6738 break
6739fi
6740
6741 done
6742 ac_cv_build_prog_CXXCPP=$CXXCPP_FOR_BUILD
6743
6744fi
6745 CXXCPP_FOR_BUILD=$ac_cv_build_prog_CXXCPP
6746else
6747 ac_cv_build_prog_CXXCPP=$CXXCPP_FOR_BUILD
6748fi
6749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP_FOR_BUILD" >&5
6750$as_echo "$CXXCPP_FOR_BUILD" >&6; }
6751ac_preproc_ok=false
6752for ac_cxx_preproc_warn_flag in '' yes
6753do
6754 # Use a header file that comes with gcc, so configuring glibc
6755 # with a fresh cross-compiler works.
6756 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6757 # <limits.h> exists even on freestanding compilers.
6758 # On the NeXT, cc -E runs the code through the compiler's parser,
6759 # not just through cpp. "Syntax error" is here to catch this case.
6760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6761/* end confdefs.h. */
6762#ifdef __STDC__
6763# include <limits.h>
6764#else
6765# include <assert.h>
6766#endif
6767 Syntax error
6768_ACEOF
6769if ac_fn_cxx_try_cpp "$LINENO"; then :
6770
6771else
6772 # Broken: fails on valid input.
6773continue
6774fi
6775rm -f conftest.err conftest.i conftest.$ac_ext
6776
6777 # OK, works on sane cases. Now check whether nonexistent headers
6778 # can be detected and how.
6779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6780/* end confdefs.h. */
6781#include <ac_nonexistent.h>
6782_ACEOF
6783if ac_fn_cxx_try_cpp "$LINENO"; then :
6784 # Broken: success on invalid input.
6785continue
6786else
6787 # Passes both tests.
6788ac_preproc_ok=:
6789break
6790fi
6791rm -f conftest.err conftest.i conftest.$ac_ext
6792
6793done
6794# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6795rm -f conftest.i conftest.err conftest.$ac_ext
6796if $ac_preproc_ok; then :
6797
6798else
6799 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6800$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6801as_fn_error $? "C++ preprocessor \"$CXXCPP_FOR_BUILD\" fails sanity check
6802See \`config.log' for more details" "$LINENO" 5; }
6803fi
6804
6805ac_ext=c
6806ac_cpp='$CPP $CPPFLAGS_FOR_BUILD'
6807ac_build_compile='$CC -c $CFLAGS $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6808ac_build_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6809ac_compiler_gnu=$ac_cv_c_compiler_gnu
6810
6811
6812ac_tool_prefix=$save_ac_tool_prefix
6813cross_compiling=$save_cross_compiling
6814
6815
6816
6817
6818
6819if test -n "$ac_tool_prefix"; then
6820 for ac_prog in ar lib "link -lib"
6821 do
6822 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6823set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6825$as_echo_n "checking for $ac_word... " >&6; }
6826if ${ac_cv_prog_AR+:} false; then :
6827 $as_echo_n "(cached) " >&6
6828else
6829 if test -n "$AR"; then
6830 ac_cv_prog_AR="$AR" # Let the user override the test.
6831else
6832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833for as_dir in $PATH
6834do
6835 IFS=$as_save_IFS
6836 test -z "$as_dir" && as_dir=.
6837 for ac_exec_ext in '' $ac_executable_extensions; do
6838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6839 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6841 break 2
6842 fi
6843done
6844 done
6845IFS=$as_save_IFS
6846
6847fi
6848fi
6849AR=$ac_cv_prog_AR
6850if test -n "$AR"; then
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6852$as_echo "$AR" >&6; }
6853else
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855$as_echo "no" >&6; }
6856fi
6857
6858
6859 test -n "$AR" && break
6860 done
a243b558
JF
6861fi
6862if test -z "$AR"; then
6863 ac_ct_AR=$AR
6864 for ac_prog in ar lib "link -lib"
6865do
6866 # Extract the first word of "$ac_prog", so it can be a program name with args.
6867set dummy $ac_prog; ac_word=$2
6868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6869$as_echo_n "checking for $ac_word... " >&6; }
6870if ${ac_cv_prog_ac_ct_AR+:} false; then :
6871 $as_echo_n "(cached) " >&6
6872else
6873 if test -n "$ac_ct_AR"; then
6874 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6875else
6876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877for as_dir in $PATH
6878do
6879 IFS=$as_save_IFS
6880 test -z "$as_dir" && as_dir=.
6881 for ac_exec_ext in '' $ac_executable_extensions; do
6882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6883 ac_cv_prog_ac_ct_AR="$ac_prog"
6884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6885 break 2
6886 fi
6887done
6888 done
6889IFS=$as_save_IFS
6890
6891fi
6892fi
6893ac_ct_AR=$ac_cv_prog_ac_ct_AR
6894if test -n "$ac_ct_AR"; then
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6896$as_echo "$ac_ct_AR" >&6; }
6897else
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6899$as_echo "no" >&6; }
6900fi
6901
6902
6903 test -n "$ac_ct_AR" && break
6904done
6905
6906 if test "x$ac_ct_AR" = x; then
6907 AR="false"
9c60689e
DWT
6908 else
6909 case $cross_compiling:$ac_tool_warned in
6910yes:)
6911{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6912$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6913ac_tool_warned=yes ;;
35fa52c0 6914esac
a243b558 6915 AR=$ac_ct_AR
9c60689e 6916 fi
a243b558
JF
6917fi
6918
6919: ${AR=ar}
6920
6921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6922$as_echo_n "checking the archiver ($AR) interface... " >&6; }
6923if ${am_cv_ar_interface+:} false; then :
6924 $as_echo_n "(cached) " >&6
9c60689e 6925else
a93f15c0
JF
6926 ac_ext=c
6927ac_cpp='$CPP $CPPFLAGS'
6928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6930ac_compiler_gnu=$ac_cv_c_compiler_gnu
6931
6932 am_cv_ar_interface=ar
a243b558
JF
6933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6934/* end confdefs.h. */
6935int some_variable = 0;
6936_ACEOF
6937if ac_fn_c_try_compile "$LINENO"; then :
6938 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6940 (eval $am_ar_try) 2>&5
6941 ac_status=$?
6942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6943 test $ac_status = 0; }
6944 if test "$ac_status" -eq 0; then
6945 am_cv_ar_interface=ar
6946 else
6947 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6949 (eval $am_ar_try) 2>&5
6950 ac_status=$?
6951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6952 test $ac_status = 0; }
6953 if test "$ac_status" -eq 0; then
6954 am_cv_ar_interface=lib
6955 else
6956 am_cv_ar_interface=unknown
6957 fi
6958 fi
6959 rm -f conftest.lib libconftest.a
6960
35fa52c0 6961fi
a243b558 6962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a93f15c0
JF
6963 ac_ext=c
6964ac_cpp='$CPP $CPPFLAGS'
6965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6967ac_compiler_gnu=$ac_cv_c_compiler_gnu
35fa52c0 6968
a243b558
JF
6969fi
6970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6971$as_echo "$am_cv_ar_interface" >&6; }
35fa52c0 6972
a243b558
JF
6973case $am_cv_ar_interface in
6974ar)
6975 ;;
6976lib)
6977 # Microsoft lib, so override with the ar-lib wrapper script.
6978 # FIXME: It is wrong to rewrite AR.
6979 # But if we don't then we get into trouble of one sort or another.
6980 # A longer-term fix would be to have automake use am__AR in this case,
6981 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6982 # similar.
6983 AR="$am_aux_dir/ar-lib $AR"
6984 ;;
6985unknown)
6986 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6987 ;;
6988esac
35fa52c0 6989
35fa52c0 6990
35fa52c0 6991
a243b558
JF
6992case `pwd` in
6993 *\ * | *\ *)
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6995$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6996esac
35fa52c0
DWT
6997
6998
6999
9d54db95
JF
7000macro_version='2.4.6'
7001macro_revision='2.4.6'
35fa52c0
DWT
7002
7003
7004
7005
7006
7007
7008
7009
7010
8d20f0f1
JF
7011
7012
7013
7014
7015ltmain=$ac_aux_dir/ltmain.sh
7016
a243b558
JF
7017# Backslashify metacharacters that are still active within
7018# double-quoted strings.
7019sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9c60689e 7020
a243b558
JF
7021# Same as above, but do not quote variable references.
7022double_quote_subst='s/\(["`\\]\)/\\\1/g'
9c60689e 7023
a243b558
JF
7024# Sed substitution to delay expansion of an escaped shell variable in a
7025# double_quote_subst'ed string.
7026delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9c60689e 7027
a243b558
JF
7028# Sed substitution to delay expansion of an escaped single quote.
7029delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9c60689e 7030
a243b558
JF
7031# Sed substitution to avoid accidental globbing in evaled expressions
7032no_glob_subst='s/\*/\\\*/g'
35fa52c0 7033
a243b558
JF
7034ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7035ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7036ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
ee134472 7037
a243b558
JF
7038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7039$as_echo_n "checking how to print strings... " >&6; }
7040# Test print first, because it will be a builtin if present.
7041if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7042 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7043 ECHO='print -r --'
7044elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7045 ECHO='printf %s\n'
7046else
7047 # Use this function as a fallback that always works.
7048 func_fallback_echo ()
7049 {
7050 eval 'cat <<_LTECHO_EOF
7051$1
7052_LTECHO_EOF'
7053 }
7054 ECHO='func_fallback_echo'
ee134472
JF
7055fi
7056
a243b558
JF
7057# func_echo_all arg...
7058# Invoke $ECHO with all args, space-separated.
7059func_echo_all ()
7060{
7061 $ECHO ""
7062}
35fa52c0 7063
9d54db95 7064case $ECHO in
a243b558
JF
7065 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7066$as_echo "printf" >&6; } ;;
7067 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7068$as_echo "print -r" >&6; } ;;
7069 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7070$as_echo "cat" >&6; } ;;
7071esac
35fa52c0 7072
35fa52c0 7073
ee134472
JF
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
35fa52c0 7084
9c60689e 7085
a243b558
JF
7086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7087$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7088if ${ac_cv_path_SED+:} false; then :
9c60689e
DWT
7089 $as_echo_n "(cached) " >&6
7090else
a243b558
JF
7091 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7092 for ac_i in 1 2 3 4 5 6 7; do
7093 ac_script="$ac_script$as_nl$ac_script"
7094 done
7095 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7096 { ac_script=; unset ac_script;}
7097 if test -z "$SED"; then
7098 ac_path_SED_found=false
7099 # Loop through the user's path and test for each of PROGNAME-LIST
7100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9c60689e
DWT
7101for as_dir in $PATH
7102do
7103 IFS=$as_save_IFS
7104 test -z "$as_dir" && as_dir=.
a243b558 7105 for ac_prog in sed gsed; do
9c60689e 7106 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
7107 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7108 as_fn_executable_p "$ac_path_SED" || continue
7109# Check for GNU ac_path_SED and select it if it is found.
7110 # Check for GNU $ac_path_SED
7111case `"$ac_path_SED" --version 2>&1` in
7112*GNU*)
7113 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7114*)
7115 ac_count=0
7116 $as_echo_n 0123456789 >"conftest.in"
7117 while :
7118 do
7119 cat "conftest.in" "conftest.in" >"conftest.tmp"
7120 mv "conftest.tmp" "conftest.in"
7121 cp "conftest.in" "conftest.nl"
7122 $as_echo '' >> "conftest.nl"
7123 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7124 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7125 as_fn_arith $ac_count + 1 && ac_count=$as_val
7126 if test $ac_count -gt ${ac_path_SED_max-0}; then
7127 # Best one so far, save it but keep looking for a better one
7128 ac_cv_path_SED="$ac_path_SED"
7129 ac_path_SED_max=$ac_count
7130 fi
7131 # 10*(2^10) chars as input seems more than enough
7132 test $ac_count -gt 10 && break
35fa52c0 7133 done
a243b558
JF
7134 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7135esac
9c60689e 7136
a243b558
JF
7137 $ac_path_SED_found && break 3
7138 done
7139 done
9c60689e
DWT
7140 done
7141IFS=$as_save_IFS
a243b558
JF
7142 if test -z "$ac_cv_path_SED"; then
7143 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
9c60689e
DWT
7144 fi
7145else
a243b558 7146 ac_cv_path_SED=$SED
9c60689e
DWT
7147fi
7148
a243b558
JF
7149fi
7150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7151$as_echo "$ac_cv_path_SED" >&6; }
7152 SED="$ac_cv_path_SED"
7153 rm -f conftest.sed
9c60689e 7154
a243b558
JF
7155test -z "$SED" && SED=sed
7156Xsed="$SED -e 1s/^X//"
9c60689e 7157
ee134472 7158
ee134472 7159
9c60689e
DWT
7160
7161
7162
7163
7164
7165
7166
7167
a243b558
JF
7168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7169$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7170if ${ac_cv_path_GREP+:} false; then :
9c60689e
DWT
7171 $as_echo_n "(cached) " >&6
7172else
a243b558
JF
7173 if test -z "$GREP"; then
7174 ac_path_GREP_found=false
7175 # Loop through the user's path and test for each of PROGNAME-LIST
7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9c60689e
DWT
7178do
7179 IFS=$as_save_IFS
7180 test -z "$as_dir" && as_dir=.
a243b558 7181 for ac_prog in grep ggrep; do
9c60689e 7182 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
7183 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7184 as_fn_executable_p "$ac_path_GREP" || continue
7185# Check for GNU ac_path_GREP and select it if it is found.
7186 # Check for GNU $ac_path_GREP
7187case `"$ac_path_GREP" --version 2>&1` in
7188*GNU*)
7189 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7190*)
7191 ac_count=0
7192 $as_echo_n 0123456789 >"conftest.in"
7193 while :
7194 do
7195 cat "conftest.in" "conftest.in" >"conftest.tmp"
7196 mv "conftest.tmp" "conftest.in"
7197 cp "conftest.in" "conftest.nl"
7198 $as_echo 'GREP' >> "conftest.nl"
7199 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7200 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7201 as_fn_arith $ac_count + 1 && ac_count=$as_val
7202 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7203 # Best one so far, save it but keep looking for a better one
7204 ac_cv_path_GREP="$ac_path_GREP"
7205 ac_path_GREP_max=$ac_count
7206 fi
7207 # 10*(2^10) chars as input seems more than enough
7208 test $ac_count -gt 10 && break
7209 done
7210 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7211esac
9c60689e 7212
a243b558
JF
7213 $ac_path_GREP_found && break 3
7214 done
ee134472 7215 done
a243b558
JF
7216 done
7217IFS=$as_save_IFS
7218 if test -z "$ac_cv_path_GREP"; then
7219 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7220 fi
7221else
7222 ac_cv_path_GREP=$GREP
9c60689e 7223fi
a243b558
JF
7224
7225fi
7226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7227$as_echo "$ac_cv_path_GREP" >&6; }
7228 GREP="$ac_cv_path_GREP"
7229
7230
7231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7232$as_echo_n "checking for egrep... " >&6; }
7233if ${ac_cv_path_EGREP+:} false; then :
9c60689e
DWT
7234 $as_echo_n "(cached) " >&6
7235else
a243b558
JF
7236 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7237 then ac_cv_path_EGREP="$GREP -E"
7238 else
7239 if test -z "$EGREP"; then
7240 ac_path_EGREP_found=false
7241 # Loop through the user's path and test for each of PROGNAME-LIST
7242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7243for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9c60689e
DWT
7244do
7245 IFS=$as_save_IFS
7246 test -z "$as_dir" && as_dir=.
a243b558 7247 for ac_prog in egrep; do
9c60689e 7248 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
7249 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7250 as_fn_executable_p "$ac_path_EGREP" || continue
7251# Check for GNU ac_path_EGREP and select it if it is found.
7252 # Check for GNU $ac_path_EGREP
7253case `"$ac_path_EGREP" --version 2>&1` in
7254*GNU*)
7255 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7256*)
7257 ac_count=0
7258 $as_echo_n 0123456789 >"conftest.in"
7259 while :
7260 do
7261 cat "conftest.in" "conftest.in" >"conftest.tmp"
7262 mv "conftest.tmp" "conftest.in"
7263 cp "conftest.in" "conftest.nl"
7264 $as_echo 'EGREP' >> "conftest.nl"
7265 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7266 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7267 as_fn_arith $ac_count + 1 && ac_count=$as_val
7268 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7269 # Best one so far, save it but keep looking for a better one
7270 ac_cv_path_EGREP="$ac_path_EGREP"
7271 ac_path_EGREP_max=$ac_count
7272 fi
7273 # 10*(2^10) chars as input seems more than enough
7274 test $ac_count -gt 10 && break
9c60689e 7275 done
a243b558
JF
7276 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7277esac
9c60689e 7278
a243b558
JF
7279 $ac_path_EGREP_found && break 3
7280 done
7281 done
7282 done
7283IFS=$as_save_IFS
7284 if test -z "$ac_cv_path_EGREP"; then
7285 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7286 fi
9c60689e 7287else
a243b558 7288 ac_cv_path_EGREP=$EGREP
9c60689e
DWT
7289fi
7290
a243b558
JF
7291 fi
7292fi
7293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7294$as_echo "$ac_cv_path_EGREP" >&6; }
7295 EGREP="$ac_cv_path_EGREP"
ee134472 7296
ee134472 7297
a243b558
JF
7298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7299$as_echo_n "checking for fgrep... " >&6; }
7300if ${ac_cv_path_FGREP+:} false; then :
7301 $as_echo_n "(cached) " >&6
7302else
7303 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7304 then ac_cv_path_FGREP="$GREP -F"
7305 else
7306 if test -z "$FGREP"; then
7307 ac_path_FGREP_found=false
7308 # Loop through the user's path and test for each of PROGNAME-LIST
7309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7310for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7311do
7312 IFS=$as_save_IFS
7313 test -z "$as_dir" && as_dir=.
7314 for ac_prog in fgrep; do
7315 for ac_exec_ext in '' $ac_executable_extensions; do
7316 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7317 as_fn_executable_p "$ac_path_FGREP" || continue
7318# Check for GNU ac_path_FGREP and select it if it is found.
7319 # Check for GNU $ac_path_FGREP
7320case `"$ac_path_FGREP" --version 2>&1` in
7321*GNU*)
7322 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7323*)
7324 ac_count=0
7325 $as_echo_n 0123456789 >"conftest.in"
7326 while :
7327 do
7328 cat "conftest.in" "conftest.in" >"conftest.tmp"
7329 mv "conftest.tmp" "conftest.in"
7330 cp "conftest.in" "conftest.nl"
7331 $as_echo 'FGREP' >> "conftest.nl"
7332 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7333 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7334 as_fn_arith $ac_count + 1 && ac_count=$as_val
7335 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7336 # Best one so far, save it but keep looking for a better one
7337 ac_cv_path_FGREP="$ac_path_FGREP"
7338 ac_path_FGREP_max=$ac_count
7339 fi
7340 # 10*(2^10) chars as input seems more than enough
7341 test $ac_count -gt 10 && break
7342 done
7343 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9c60689e 7344esac
a243b558
JF
7345
7346 $ac_path_FGREP_found && break 3
7347 done
7348 done
7349 done
7350IFS=$as_save_IFS
7351 if test -z "$ac_cv_path_FGREP"; then
7352 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
ee134472 7353 fi
a243b558
JF
7354else
7355 ac_cv_path_FGREP=$FGREP
ee134472
JF
7356fi
7357
a243b558
JF
7358 fi
7359fi
7360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7361$as_echo "$ac_cv_path_FGREP" >&6; }
7362 FGREP="$ac_cv_path_FGREP"
ee134472
JF
7363
7364
a243b558 7365test -z "$GREP" && GREP=grep
ee134472
JF
7366
7367
7368
7369
7370
7371
7372
ee134472 7373
ee134472 7374
ee134472 7375
ee134472 7376
ee134472 7377
ee134472
JF
7378
7379
7380
7381
7382
7383
7384
a243b558
JF
7385# Check whether --with-gnu-ld was given.
7386if test "${with_gnu_ld+set}" = set; then :
9d54db95 7387 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
a243b558
JF
7388else
7389 with_gnu_ld=no
7390fi
7391
7392ac_prog=ld
9d54db95 7393if test yes = "$GCC"; then
a243b558
JF
7394 # Check if gcc -print-prog-name=ld gives a path.
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7396$as_echo_n "checking for ld used by $CC... " >&6; }
7397 case $host in
7398 *-*-mingw*)
9d54db95 7399 # gcc leaves a trailing carriage return, which upsets mingw
a243b558
JF
7400 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7401 *)
7402 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7403 esac
7404 case $ac_prog in
7405 # Accept absolute paths.
7406 [\\/]* | ?:[\\/]*)
7407 re_direlt='/[^/][^/]*/\.\./'
7408 # Canonicalize the pathname of ld
7409 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7410 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7411 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7412 done
9d54db95 7413 test -z "$LD" && LD=$ac_prog
a243b558
JF
7414 ;;
7415 "")
7416 # If it fails, then pretend we aren't using GCC.
7417 ac_prog=ld
7418 ;;
7419 *)
7420 # If it is relative, then search for the first ld in PATH.
7421 with_gnu_ld=unknown
7422 ;;
7423 esac
9d54db95 7424elif test yes = "$with_gnu_ld"; then
a243b558
JF
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7426$as_echo_n "checking for GNU ld... " >&6; }
7427else
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7429$as_echo_n "checking for non-GNU ld... " >&6; }
7430fi
7431if ${lt_cv_path_LD+:} false; then :
7432 $as_echo_n "(cached) " >&6
7433else
7434 if test -z "$LD"; then
9d54db95 7435 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
a243b558 7436 for ac_dir in $PATH; do
9d54db95 7437 IFS=$lt_save_ifs
a243b558
JF
7438 test -z "$ac_dir" && ac_dir=.
7439 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9d54db95 7440 lt_cv_path_LD=$ac_dir/$ac_prog
a243b558
JF
7441 # Check to see if the program is GNU ld. I'd rather use --version,
7442 # but apparently some variants of GNU ld only accept -v.
7443 # Break only if it was the GNU/non-GNU ld that we prefer.
7444 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7445 *GNU* | *'with BFD'*)
9d54db95 7446 test no != "$with_gnu_ld" && break
a243b558
JF
7447 ;;
7448 *)
9d54db95 7449 test yes != "$with_gnu_ld" && break
a243b558
JF
7450 ;;
7451 esac
7452 fi
7453 done
9d54db95 7454 IFS=$lt_save_ifs
a243b558 7455else
9d54db95 7456 lt_cv_path_LD=$LD # Let the user override the test with a path.
a243b558
JF
7457fi
7458fi
7459
9d54db95 7460LD=$lt_cv_path_LD
a243b558
JF
7461if test -n "$LD"; then
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7463$as_echo "$LD" >&6; }
7464else
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7466$as_echo "no" >&6; }
7467fi
7468test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7470$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7471if ${lt_cv_prog_gnu_ld+:} false; then :
7472 $as_echo_n "(cached) " >&6
7473else
7474 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7475case `$LD -v 2>&1 </dev/null` in
7476*GNU* | *'with BFD'*)
7477 lt_cv_prog_gnu_ld=yes
7478 ;;
7479*)
7480 lt_cv_prog_gnu_ld=no
7481 ;;
7482esac
7483fi
7484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7485$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7486with_gnu_ld=$lt_cv_prog_gnu_ld
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7497$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7498if ${lt_cv_path_NM+:} false; then :
7499 $as_echo_n "(cached) " >&6
7500else
7501 if test -n "$NM"; then
7502 # Let the user override the test.
9d54db95 7503 lt_cv_path_NM=$NM
a243b558 7504else
9d54db95 7505 lt_nm_to_check=${ac_tool_prefix}nm
a243b558
JF
7506 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7507 lt_nm_to_check="$lt_nm_to_check nm"
7508 fi
7509 for lt_tmp_nm in $lt_nm_to_check; do
9d54db95 7510 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
a243b558 7511 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9d54db95 7512 IFS=$lt_save_ifs
a243b558 7513 test -z "$ac_dir" && ac_dir=.
9d54db95
JF
7514 tmp_nm=$ac_dir/$lt_tmp_nm
7515 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
a243b558 7516 # Check to see if the nm accepts a BSD-compat flag.
9d54db95 7517 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
a243b558
JF
7518 # nm: unknown option "B" ignored
7519 # Tru64's nm complains that /dev/null is an invalid object file
9d54db95
JF
7520 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7521 case $build_os in
7522 mingw*) lt_bad_file=conftest.nm/nofile ;;
7523 *) lt_bad_file=/dev/null ;;
7524 esac
7525 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7526 *$lt_bad_file* | *'Invalid file or object type'*)
a243b558 7527 lt_cv_path_NM="$tmp_nm -B"
9d54db95 7528 break 2
a243b558
JF
7529 ;;
7530 *)
7531 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7532 */dev/null*)
7533 lt_cv_path_NM="$tmp_nm -p"
9d54db95 7534 break 2
a243b558
JF
7535 ;;
7536 *)
7537 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7538 continue # so that we can try to find one that supports BSD flags
7539 ;;
7540 esac
7541 ;;
7542 esac
7543 fi
7544 done
9d54db95 7545 IFS=$lt_save_ifs
a243b558
JF
7546 done
7547 : ${lt_cv_path_NM=no}
7548fi
7549fi
7550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7551$as_echo "$lt_cv_path_NM" >&6; }
9d54db95
JF
7552if test no != "$lt_cv_path_NM"; then
7553 NM=$lt_cv_path_NM
a243b558
JF
7554else
7555 # Didn't find any BSD compatible name lister, look for dumpbin.
7556 if test -n "$DUMPBIN"; then :
7557 # Let the user override the test.
7558 else
7559 if test -n "$ac_tool_prefix"; then
7560 for ac_prog in dumpbin "link -dump"
7561 do
7562 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7563set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ee134472
JF
7564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7565$as_echo_n "checking for $ac_word... " >&6; }
a243b558 7566if ${ac_cv_prog_DUMPBIN+:} false; then :
ee134472
JF
7567 $as_echo_n "(cached) " >&6
7568else
a243b558
JF
7569 if test -n "$DUMPBIN"; then
7570 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
ee134472
JF
7571else
7572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7573for as_dir in $PATH
7574do
7575 IFS=$as_save_IFS
7576 test -z "$as_dir" && as_dir=.
7577 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 7578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 7579 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
ee134472
JF
7580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7581 break 2
7582 fi
7583done
7584 done
7585IFS=$as_save_IFS
7586
7587fi
7588fi
a243b558
JF
7589DUMPBIN=$ac_cv_prog_DUMPBIN
7590if test -n "$DUMPBIN"; then
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7592$as_echo "$DUMPBIN" >&6; }
ee134472
JF
7593else
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7595$as_echo "no" >&6; }
7596fi
7597
7598
a243b558
JF
7599 test -n "$DUMPBIN" && break
7600 done
ee134472 7601fi
a243b558
JF
7602if test -z "$DUMPBIN"; then
7603 ac_ct_DUMPBIN=$DUMPBIN
7604 for ac_prog in dumpbin "link -dump"
7605do
7606 # Extract the first word of "$ac_prog", so it can be a program name with args.
7607set dummy $ac_prog; ac_word=$2
ee134472
JF
7608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7609$as_echo_n "checking for $ac_word... " >&6; }
a243b558 7610if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
ee134472
JF
7611 $as_echo_n "(cached) " >&6
7612else
a243b558
JF
7613 if test -n "$ac_ct_DUMPBIN"; then
7614 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
ee134472
JF
7615else
7616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7617for as_dir in $PATH
7618do
7619 IFS=$as_save_IFS
7620 test -z "$as_dir" && as_dir=.
7621 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 7622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 7623 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
ee134472
JF
7624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7625 break 2
7626 fi
7627done
7628 done
7629IFS=$as_save_IFS
7630
7631fi
7632fi
a243b558
JF
7633ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7634if test -n "$ac_ct_DUMPBIN"; then
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7636$as_echo "$ac_ct_DUMPBIN" >&6; }
ee134472
JF
7637else
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7639$as_echo "no" >&6; }
7640fi
7641
a243b558
JF
7642
7643 test -n "$ac_ct_DUMPBIN" && break
7644done
7645
7646 if test "x$ac_ct_DUMPBIN" = x; then
7647 DUMPBIN=":"
ee134472
JF
7648 else
7649 case $cross_compiling:$ac_tool_warned in
7650yes:)
7651{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7652$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7653ac_tool_warned=yes ;;
7654esac
a243b558 7655 DUMPBIN=$ac_ct_DUMPBIN
9c60689e 7656 fi
9c60689e
DWT
7657fi
7658
9d54db95 7659 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
a243b558 7660 *COFF*)
9d54db95 7661 DUMPBIN="$DUMPBIN -symbols -headers"
a243b558
JF
7662 ;;
7663 *)
7664 DUMPBIN=:
7665 ;;
7666 esac
7667 fi
9c60689e 7668
9d54db95
JF
7669 if test : != "$DUMPBIN"; then
7670 NM=$DUMPBIN
a243b558
JF
7671 fi
7672fi
7673test -z "$NM" && NM=nm
9c60689e
DWT
7674
7675
7676
7677
7678
a243b558
JF
7679
7680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7681$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7682if ${lt_cv_nm_interface+:} false; then :
9c60689e
DWT
7683 $as_echo_n "(cached) " >&6
7684else
a243b558
JF
7685 lt_cv_nm_interface="BSD nm"
7686 echo "int some_variable = 0;" > conftest.$ac_ext
7687 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7688 (eval "$ac_compile" 2>conftest.err)
7689 cat conftest.err >&5
7690 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7691 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7692 cat conftest.err >&5
7693 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7694 cat conftest.out >&5
7695 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7696 lt_cv_nm_interface="MS dumpbin"
9c60689e 7697 fi
00a96142 7698 rm -rf conftest*
9c60689e 7699fi
a243b558
JF
7700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7701$as_echo "$lt_cv_nm_interface" >&6; }
7702
7703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7704$as_echo_n "checking whether ln -s works... " >&6; }
7705LN_S=$as_ln_s
7706if test "$LN_S" = "ln -s"; then
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7708$as_echo "yes" >&6; }
9c60689e 7709else
a243b558
JF
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7711$as_echo "no, using $LN_S" >&6; }
9c60689e
DWT
7712fi
7713
a243b558
JF
7714# find the maximum length of command line arguments
7715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7716$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7717if ${lt_cv_sys_max_cmd_len+:} false; then :
9c60689e
DWT
7718 $as_echo_n "(cached) " >&6
7719else
a243b558 7720 i=0
9d54db95 7721 teststring=ABCD
9c60689e 7722
a243b558
JF
7723 case $build_os in
7724 msdosdjgpp*)
7725 # On DJGPP, this test can blow up pretty badly due to problems in libc
7726 # (any single argument exceeding 2000 bytes causes a buffer overrun
7727 # during glob expansion). Even if it were fixed, the result of this
7728 # check would be larger than it should be.
7729 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7730 ;;
9c60689e 7731
a243b558
JF
7732 gnu*)
7733 # Under GNU Hurd, this test is not required because there is
7734 # no limit to the length of command line arguments.
7735 # Libtool will interpret -1 as no limit whatsoever
7736 lt_cv_sys_max_cmd_len=-1;
7737 ;;
9c60689e 7738
a243b558
JF
7739 cygwin* | mingw* | cegcc*)
7740 # On Win9x/ME, this test blows up -- it succeeds, but takes
7741 # about 5 minutes as the teststring grows exponentially.
7742 # Worse, since 9x/ME are not pre-emptively multitasking,
7743 # you end up with a "frozen" computer, even though with patience
7744 # the test eventually succeeds (with a max line length of 256k).
7745 # Instead, let's just punt: use the minimum linelength reported by
7746 # all of the supported platforms: 8192 (on NT/2K/XP).
7747 lt_cv_sys_max_cmd_len=8192;
7748 ;;
9c60689e 7749
a243b558
JF
7750 mint*)
7751 # On MiNT this can take a long time and run out of memory.
7752 lt_cv_sys_max_cmd_len=8192;
7753 ;;
9c60689e 7754
a243b558
JF
7755 amigaos*)
7756 # On AmigaOS with pdksh, this test takes hours, literally.
7757 # So we just punt and use a minimum line length of 8192.
7758 lt_cv_sys_max_cmd_len=8192;
7759 ;;
9c60689e 7760
9d54db95 7761 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
a243b558
JF
7762 # This has been around since 386BSD, at least. Likely further.
7763 if test -x /sbin/sysctl; then
7764 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7765 elif test -x /usr/sbin/sysctl; then
7766 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7767 else
7768 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7769 fi
7770 # And add a safety zone
7771 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7772 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7773 ;;
9c60689e 7774
a243b558
JF
7775 interix*)
7776 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7777 lt_cv_sys_max_cmd_len=196608
7778 ;;
9c60689e 7779
a243b558
JF
7780 os2*)
7781 # The test takes a long time on OS/2.
7782 lt_cv_sys_max_cmd_len=8192
7783 ;;
9c60689e 7784
a243b558
JF
7785 osf*)
7786 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7787 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7788 # nice to cause kernel panics so lets avoid the loop below.
7789 # First set a reasonable default.
7790 lt_cv_sys_max_cmd_len=16384
7791 #
7792 if test -x /sbin/sysconfig; then
7793 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7794 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7795 esac
7796 fi
7797 ;;
7798 sco3.2v5*)
7799 lt_cv_sys_max_cmd_len=102400
7800 ;;
7801 sysv5* | sco5v6* | sysv4.2uw2*)
7802 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7803 if test -n "$kargmax"; then
7804 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7805 else
7806 lt_cv_sys_max_cmd_len=32768
7807 fi
9c60689e
DWT
7808 ;;
7809 *)
a243b558 7810 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9d54db95
JF
7811 if test -n "$lt_cv_sys_max_cmd_len" && \
7812 test undefined != "$lt_cv_sys_max_cmd_len"; then
a243b558
JF
7813 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7814 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7815 else
7816 # Make teststring a little bigger before we do anything with it.
7817 # a 1K string should be a reasonable start.
9d54db95 7818 for i in 1 2 3 4 5 6 7 8; do
a243b558
JF
7819 teststring=$teststring$teststring
7820 done
7821 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7822 # If test is not a shell built-in, we'll probably end up computing a
7823 # maximum length that is only half of the actual maximum length, but
7824 # we can't tell.
9d54db95 7825 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
a243b558 7826 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9d54db95 7827 test 17 != "$i" # 1/2 MB should be enough
a243b558
JF
7828 do
7829 i=`expr $i + 1`
7830 teststring=$teststring$teststring
7831 done
7832 # Only check the string length outside the loop.
7833 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7834 teststring=
7835 # Add a significant safety factor because C++ compilers can tack on
7836 # massive amounts of additional arguments before passing them to the
7837 # linker. It appears as though 1/2 is a usable value.
7838 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7839 fi
9c60689e
DWT
7840 ;;
7841 esac
ee134472 7842
a243b558 7843fi
ee134472 7844
9d54db95 7845if test -n "$lt_cv_sys_max_cmd_len"; then
a243b558
JF
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7847$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7848else
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7850$as_echo "none" >&6; }
7851fi
7852max_cmd_len=$lt_cv_sys_max_cmd_len
ee134472
JF
7853
7854
9c60689e
DWT
7855
7856
7857
7858
a243b558
JF
7859: ${CP="cp -f"}
7860: ${MV="mv -f"}
7861: ${RM="rm -f"}
9c60689e 7862
a243b558
JF
7863if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7864 lt_unset=unset
7865else
7866 lt_unset=false
7867fi
9c60689e
DWT
7868
7869
7870
7871
7872
a243b558
JF
7873# test EBCDIC or ASCII
7874case `echo X|tr X '\101'` in
7875 A) # ASCII based system
7876 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7877 lt_SP2NL='tr \040 \012'
7878 lt_NL2SP='tr \015\012 \040\040'
7879 ;;
7880 *) # EBCDIC based system
7881 lt_SP2NL='tr \100 \n'
7882 lt_NL2SP='tr \r\n \100\100'
7883 ;;
7884esac
9c60689e
DWT
7885
7886
7887
7888
7889
7890
7891
7892
7893
a243b558
JF
7894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7895$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7896if ${lt_cv_to_host_file_cmd+:} false; then :
7897 $as_echo_n "(cached) " >&6
7898else
7899 case $host in
7900 *-*-mingw* )
7901 case $build in
7902 *-*-mingw* ) # actually msys
7903 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7904 ;;
7905 *-*-cygwin* )
7906 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7907 ;;
7908 * ) # otherwise, assume *nix
7909 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7910 ;;
7911 esac
7912 ;;
7913 *-*-cygwin* )
7914 case $build in
7915 *-*-mingw* ) # actually msys
7916 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7917 ;;
7918 *-*-cygwin* )
7919 lt_cv_to_host_file_cmd=func_convert_file_noop
7920 ;;
7921 * ) # otherwise, assume *nix
7922 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7923 ;;
7924 esac
7925 ;;
7926 * ) # unhandled hosts (and "normal" native builds)
7927 lt_cv_to_host_file_cmd=func_convert_file_noop
7928 ;;
7929esac
9c60689e 7930
a243b558 7931fi
9c60689e 7932
a243b558
JF
7933to_host_file_cmd=$lt_cv_to_host_file_cmd
7934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7935$as_echo "$lt_cv_to_host_file_cmd" >&6; }
9c60689e
DWT
7936
7937
7938
7939
7940
a243b558
JF
7941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7942$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7943if ${lt_cv_to_tool_file_cmd+:} false; then :
7944 $as_echo_n "(cached) " >&6
7945else
7946 #assume ordinary cross tools, or native build.
7947lt_cv_to_tool_file_cmd=func_convert_file_noop
7948case $host in
7949 *-*-mingw* )
7950 case $build in
7951 *-*-mingw* ) # actually msys
7952 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7953 ;;
7954 esac
7955 ;;
7956esac
9c60689e 7957
a243b558 7958fi
9c60689e 7959
a243b558
JF
7960to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7962$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9c60689e 7963
9c60689e 7964
9c60689e 7965
9c60689e
DWT
7966
7967
a243b558
JF
7968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7969$as_echo_n "checking for $LD option to reload object files... " >&6; }
7970if ${lt_cv_ld_reload_flag+:} false; then :
9c60689e
DWT
7971 $as_echo_n "(cached) " >&6
7972else
a243b558
JF
7973 lt_cv_ld_reload_flag='-r'
7974fi
7975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7976$as_echo "$lt_cv_ld_reload_flag" >&6; }
7977reload_flag=$lt_cv_ld_reload_flag
7978case $reload_flag in
7979"" | " "*) ;;
7980*) reload_flag=" $reload_flag" ;;
7981esac
7982reload_cmds='$LD$reload_flag -o $output$reload_objs'
9c60689e 7983case $host_os in
a243b558 7984 cygwin* | mingw* | pw32* | cegcc*)
9d54db95 7985 if test yes != "$GCC"; then
a243b558
JF
7986 reload_cmds=false
7987 fi
7988 ;;
7989 darwin*)
9d54db95
JF
7990 if test yes = "$GCC"; then
7991 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
a243b558
JF
7992 else
7993 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7994 fi
7995 ;;
9c60689e
DWT
7996esac
7997
9c60689e 7998
9c60689e 7999
9c60689e 8000
9c60689e 8001
9c60689e 8002
9c60689e 8003
9c60689e 8004
9c60689e 8005
a243b558
JF
8006if test -n "$ac_tool_prefix"; then
8007 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8008set dummy ${ac_tool_prefix}objdump; ac_word=$2
8009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8010$as_echo_n "checking for $ac_word... " >&6; }
8011if ${ac_cv_prog_OBJDUMP+:} false; then :
8012 $as_echo_n "(cached) " >&6
8013else
8014 if test -n "$OBJDUMP"; then
8015 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8016else
8017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8018for as_dir in $PATH
8019do
8020 IFS=$as_save_IFS
8021 test -z "$as_dir" && as_dir=.
8022 for ac_exec_ext in '' $ac_executable_extensions; do
8023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8024 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8026 break 2
8027 fi
8028done
8029 done
8030IFS=$as_save_IFS
9c60689e 8031
a243b558
JF
8032fi
8033fi
8034OBJDUMP=$ac_cv_prog_OBJDUMP
8035if test -n "$OBJDUMP"; then
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8037$as_echo "$OBJDUMP" >&6; }
8038else
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8040$as_echo "no" >&6; }
8041fi
9c60689e 8042
9c60689e 8043
a243b558
JF
8044fi
8045if test -z "$ac_cv_prog_OBJDUMP"; then
8046 ac_ct_OBJDUMP=$OBJDUMP
8047 # Extract the first word of "objdump", so it can be a program name with args.
8048set dummy objdump; ac_word=$2
8049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8050$as_echo_n "checking for $ac_word... " >&6; }
8051if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8052 $as_echo_n "(cached) " >&6
8053else
8054 if test -n "$ac_ct_OBJDUMP"; then
8055 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8056else
8057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8058for as_dir in $PATH
8059do
8060 IFS=$as_save_IFS
8061 test -z "$as_dir" && as_dir=.
8062 for ac_exec_ext in '' $ac_executable_extensions; do
8063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8064 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8066 break 2
9c60689e
DWT
8067 fi
8068done
a243b558
JF
8069 done
8070IFS=$as_save_IFS
9c60689e
DWT
8071
8072fi
9c60689e 8073fi
a243b558
JF
8074ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8075if test -n "$ac_ct_OBJDUMP"; then
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8077$as_echo "$ac_ct_OBJDUMP" >&6; }
9c60689e 8078else
a243b558
JF
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8080$as_echo "no" >&6; }
9c60689e
DWT
8081fi
8082
a243b558
JF
8083 if test "x$ac_ct_OBJDUMP" = x; then
8084 OBJDUMP="false"
8085 else
8086 case $cross_compiling:$ac_tool_warned in
8087yes:)
8088{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8089$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8090ac_tool_warned=yes ;;
8091esac
8092 OBJDUMP=$ac_ct_OBJDUMP
8093 fi
8094else
8095 OBJDUMP="$ac_cv_prog_OBJDUMP"
ee134472
JF
8096fi
8097
a243b558 8098test -z "$OBJDUMP" && OBJDUMP=objdump
ee134472
JF
8099
8100
8101
8102
8103
8104
8105
8106
8107
a243b558
JF
8108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8109$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8110if ${lt_cv_deplibs_check_method+:} false; then :
8111 $as_echo_n "(cached) " >&6
8112else
8113 lt_cv_file_magic_cmd='$MAGIC_CMD'
8114lt_cv_file_magic_test_file=
8115lt_cv_deplibs_check_method='unknown'
8116# Need to set the preceding variable on all platforms that support
8117# interlibrary dependencies.
8118# 'none' -- dependencies not supported.
9d54db95 8119# 'unknown' -- same as none, but documents that we really don't know.
a243b558
JF
8120# 'pass_all' -- all dependencies passed with no checks.
8121# 'test_compile' -- check by making test program.
8122# 'file_magic [[regex]]' -- check by looking for files in library path
9d54db95
JF
8123# that responds to the $file_magic_cmd with a given extended regex.
8124# If you have 'file' or equivalent on your system and you're not sure
8125# whether 'pass_all' will *always* work, you probably want this one.
9c60689e 8126
a243b558
JF
8127case $host_os in
8128aix[4-9]*)
8129 lt_cv_deplibs_check_method=pass_all
8130 ;;
9c60689e 8131
a243b558
JF
8132beos*)
8133 lt_cv_deplibs_check_method=pass_all
8134 ;;
9c60689e 8135
a243b558
JF
8136bsdi[45]*)
8137 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8138 lt_cv_file_magic_cmd='/usr/bin/file -L'
8139 lt_cv_file_magic_test_file=/shlib/libc.so
8140 ;;
9c60689e 8141
a243b558
JF
8142cygwin*)
8143 # func_win32_libid is a shell function defined in ltmain.sh
8144 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8145 lt_cv_file_magic_cmd='func_win32_libid'
8146 ;;
9c60689e 8147
a243b558
JF
8148mingw* | pw32*)
8149 # Base MSYS/MinGW do not provide the 'file' command needed by
8150 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8151 # unless we find 'file', for example because we are cross-compiling.
9d54db95 8152 if ( file / ) >/dev/null 2>&1; then
a243b558
JF
8153 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8154 lt_cv_file_magic_cmd='func_win32_libid'
8155 else
8156 # Keep this pattern in sync with the one in func_win32_libid.
8157 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8158 lt_cv_file_magic_cmd='$OBJDUMP -f'
8159 fi
8160 ;;
9c60689e 8161
a243b558
JF
8162cegcc*)
8163 # use the weaker test based on 'objdump'. See mingw*.
8164 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8165 lt_cv_file_magic_cmd='$OBJDUMP -f'
8166 ;;
9c60689e 8167
a243b558
JF
8168darwin* | rhapsody*)
8169 lt_cv_deplibs_check_method=pass_all
8170 ;;
9c60689e 8171
a243b558
JF
8172freebsd* | dragonfly*)
8173 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8174 case $host_cpu in
8175 i*86 )
8176 # Not sure whether the presence of OpenBSD here was a mistake.
8177 # Let's accept both of them until this is cleared up.
8178 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8179 lt_cv_file_magic_cmd=/usr/bin/file
8180 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8181 ;;
8182 esac
8183 else
8184 lt_cv_deplibs_check_method=pass_all
8185 fi
8186 ;;
9c60689e 8187
a243b558
JF
8188haiku*)
8189 lt_cv_deplibs_check_method=pass_all
8190 ;;
9c60689e 8191
a243b558
JF
8192hpux10.20* | hpux11*)
8193 lt_cv_file_magic_cmd=/usr/bin/file
8194 case $host_cpu in
8195 ia64*)
8196 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8197 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8198 ;;
8199 hppa*64*)
8200 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]'
8201 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8202 ;;
8203 *)
8204 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8205 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8206 ;;
8207 esac
8208 ;;
9c60689e 8209
a243b558
JF
8210interix[3-9]*)
8211 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8212 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8213 ;;
9c60689e 8214
a243b558
JF
8215irix5* | irix6* | nonstopux*)
8216 case $LD in
8217 *-32|*"-32 ") libmagic=32-bit;;
8218 *-n32|*"-n32 ") libmagic=N32;;
8219 *-64|*"-64 ") libmagic=64-bit;;
8220 *) libmagic=never-match;;
8221 esac
8222 lt_cv_deplibs_check_method=pass_all
8223 ;;
9c60689e 8224
a243b558 8225# This must be glibc/ELF.
9d54db95 8226linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
a243b558
JF
8227 lt_cv_deplibs_check_method=pass_all
8228 ;;
9c60689e 8229
a243b558
JF
8230netbsd*)
8231 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8232 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8233 else
8234 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8235 fi
8236 ;;
9c60689e 8237
a243b558
JF
8238newos6*)
8239 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8240 lt_cv_file_magic_cmd=/usr/bin/file
8241 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8242 ;;
9c60689e 8243
a243b558
JF
8244*nto* | *qnx*)
8245 lt_cv_deplibs_check_method=pass_all
8246 ;;
9c60689e 8247
9d54db95
JF
8248openbsd* | bitrig*)
8249 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
a243b558
JF
8250 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8251 else
8252 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8253 fi
8254 ;;
9c60689e 8255
a243b558
JF
8256osf3* | osf4* | osf5*)
8257 lt_cv_deplibs_check_method=pass_all
8258 ;;
9c60689e 8259
a243b558
JF
8260rdos*)
8261 lt_cv_deplibs_check_method=pass_all
9c60689e 8262 ;;
a243b558
JF
8263
8264solaris*)
8265 lt_cv_deplibs_check_method=pass_all
9c60689e
DWT
8266 ;;
8267
a243b558
JF
8268sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8269 lt_cv_deplibs_check_method=pass_all
9c60689e
DWT
8270 ;;
8271
a243b558
JF
8272sysv4 | sysv4.3*)
8273 case $host_vendor in
8274 motorola)
8275 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]'
8276 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8277 ;;
8278 ncr)
8279 lt_cv_deplibs_check_method=pass_all
8280 ;;
8281 sequent)
8282 lt_cv_file_magic_cmd='/bin/file'
8283 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8284 ;;
8285 sni)
8286 lt_cv_file_magic_cmd='/bin/file'
8287 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8288 lt_cv_file_magic_test_file=/lib/libc.so
8289 ;;
8290 siemens)
8291 lt_cv_deplibs_check_method=pass_all
8292 ;;
8293 pc)
8294 lt_cv_deplibs_check_method=pass_all
8295 ;;
8296 esac
8297 ;;
9c60689e 8298
a243b558
JF
8299tpf*)
8300 lt_cv_deplibs_check_method=pass_all
8301 ;;
9d54db95
JF
8302os2*)
8303 lt_cv_deplibs_check_method=pass_all
8304 ;;
a243b558 8305esac
9c60689e 8306
a243b558
JF
8307fi
8308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8309$as_echo "$lt_cv_deplibs_check_method" >&6; }
9c60689e 8310
a243b558
JF
8311file_magic_glob=
8312want_nocaseglob=no
8313if test "$build" = "$host"; then
8314 case $host_os in
8315 mingw* | pw32*)
8316 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8317 want_nocaseglob=yes
8318 else
8319 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8320 fi
8321 ;;
8322 esac
9c60689e 8323fi
9c60689e 8324
a243b558
JF
8325file_magic_cmd=$lt_cv_file_magic_cmd
8326deplibs_check_method=$lt_cv_deplibs_check_method
8327test -z "$deplibs_check_method" && deplibs_check_method=unknown
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
9c60689e 8348
9c60689e 8349
ee134472 8350if test -n "$ac_tool_prefix"; then
a243b558
JF
8351 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8352set dummy ${ac_tool_prefix}dlltool; ac_word=$2
ee134472
JF
8353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8354$as_echo_n "checking for $ac_word... " >&6; }
a243b558 8355if ${ac_cv_prog_DLLTOOL+:} false; then :
ee134472
JF
8356 $as_echo_n "(cached) " >&6
8357else
a243b558
JF
8358 if test -n "$DLLTOOL"; then
8359 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ee134472
JF
8360else
8361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8362for as_dir in $PATH
8363do
8364 IFS=$as_save_IFS
8365 test -z "$as_dir" && as_dir=.
8366 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 8367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 8368 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
ee134472
JF
8369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8370 break 2
8371 fi
8372done
8373 done
8374IFS=$as_save_IFS
8375
8376fi
8377fi
a243b558
JF
8378DLLTOOL=$ac_cv_prog_DLLTOOL
8379if test -n "$DLLTOOL"; then
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8381$as_echo "$DLLTOOL" >&6; }
ee134472
JF
8382else
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8384$as_echo "no" >&6; }
8385fi
8386
8387
8388fi
a243b558
JF
8389if test -z "$ac_cv_prog_DLLTOOL"; then
8390 ac_ct_DLLTOOL=$DLLTOOL
8391 # Extract the first word of "dlltool", so it can be a program name with args.
8392set dummy dlltool; ac_word=$2
ee134472
JF
8393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8394$as_echo_n "checking for $ac_word... " >&6; }
a243b558 8395if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
ee134472
JF
8396 $as_echo_n "(cached) " >&6
8397else
a243b558
JF
8398 if test -n "$ac_ct_DLLTOOL"; then
8399 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
ee134472
JF
8400else
8401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8402for as_dir in $PATH
8403do
8404 IFS=$as_save_IFS
8405 test -z "$as_dir" && as_dir=.
8406 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 8407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 8408 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
ee134472
JF
8409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8410 break 2
8411 fi
8412done
8413 done
8414IFS=$as_save_IFS
8415
8416fi
8417fi
a243b558
JF
8418ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8419if test -n "$ac_ct_DLLTOOL"; then
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8421$as_echo "$ac_ct_DLLTOOL" >&6; }
ee134472
JF
8422else
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8424$as_echo "no" >&6; }
8425fi
8426
a243b558
JF
8427 if test "x$ac_ct_DLLTOOL" = x; then
8428 DLLTOOL="false"
ee134472
JF
8429 else
8430 case $cross_compiling:$ac_tool_warned in
8431yes:)
8432{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8433$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8434ac_tool_warned=yes ;;
8435esac
a243b558 8436 DLLTOOL=$ac_ct_DLLTOOL
ee134472
JF
8437 fi
8438else
a243b558 8439 DLLTOOL="$ac_cv_prog_DLLTOOL"
ee134472
JF
8440fi
8441
a243b558
JF
8442test -z "$DLLTOOL" && DLLTOOL=dlltool
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8454$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8455if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
ee134472
JF
8456 $as_echo_n "(cached) " >&6
8457else
a243b558
JF
8458 lt_cv_sharedlib_from_linklib_cmd='unknown'
8459
8460case $host_os in
8461cygwin* | mingw* | pw32* | cegcc*)
9d54db95
JF
8462 # two different shell functions defined in ltmain.sh;
8463 # decide which one to use based on capabilities of $DLLTOOL
a243b558
JF
8464 case `$DLLTOOL --help 2>&1` in
8465 *--identify-strict*)
8466 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8467 ;;
8468 *)
8469 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8470 ;;
8471 esac
8472 ;;
8473*)
8474 # fallback: assume linklib IS sharedlib
9d54db95 8475 lt_cv_sharedlib_from_linklib_cmd=$ECHO
a243b558
JF
8476 ;;
8477esac
8478
ee134472 8479fi
a243b558
JF
8480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8481$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8482sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8483test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
ee134472
JF
8484
8485
8486
8487
8488
9c60689e 8489
a243b558
JF
8490
8491if test -n "$ac_tool_prefix"; then
8492 for ac_prog in ar
8493 do
8494 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8495set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9c60689e
DWT
8496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8497$as_echo_n "checking for $ac_word... " >&6; }
a243b558 8498if ${ac_cv_prog_AR+:} false; then :
9c60689e
DWT
8499 $as_echo_n "(cached) " >&6
8500else
a243b558
JF
8501 if test -n "$AR"; then
8502 ac_cv_prog_AR="$AR" # Let the user override the test.
9c60689e
DWT
8503else
8504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8505for as_dir in $PATH
8506do
8507 IFS=$as_save_IFS
8508 test -z "$as_dir" && as_dir=.
8509 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 8510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 8511 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9c60689e
DWT
8512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8513 break 2
8514 fi
8515done
8516 done
8517IFS=$as_save_IFS
8518
8519fi
8520fi
a243b558
JF
8521AR=$ac_cv_prog_AR
8522if test -n "$AR"; then
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8524$as_echo "$AR" >&6; }
9c60689e
DWT
8525else
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8527$as_echo "no" >&6; }
8528fi
8529
8530
a243b558
JF
8531 test -n "$AR" && break
8532 done
9c60689e 8533fi
a243b558
JF
8534if test -z "$AR"; then
8535 ac_ct_AR=$AR
8536 for ac_prog in ar
8537do
8538 # Extract the first word of "$ac_prog", so it can be a program name with args.
8539set dummy $ac_prog; ac_word=$2
9c60689e
DWT
8540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8541$as_echo_n "checking for $ac_word... " >&6; }
a243b558 8542if ${ac_cv_prog_ac_ct_AR+:} false; then :
9c60689e
DWT
8543 $as_echo_n "(cached) " >&6
8544else
a243b558
JF
8545 if test -n "$ac_ct_AR"; then
8546 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9c60689e
DWT
8547else
8548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8549for as_dir in $PATH
8550do
8551 IFS=$as_save_IFS
8552 test -z "$as_dir" && as_dir=.
8553 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 8554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 8555 ac_cv_prog_ac_ct_AR="$ac_prog"
9c60689e
DWT
8556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8557 break 2
8558 fi
8559done
8560 done
8561IFS=$as_save_IFS
8562
8563fi
8564fi
a243b558
JF
8565ac_ct_AR=$ac_cv_prog_ac_ct_AR
8566if test -n "$ac_ct_AR"; then
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8568$as_echo "$ac_ct_AR" >&6; }
9c60689e
DWT
8569else
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8571$as_echo "no" >&6; }
8572fi
8573
a243b558
JF
8574
8575 test -n "$ac_ct_AR" && break
8576done
8577
8578 if test "x$ac_ct_AR" = x; then
8579 AR="false"
9c60689e
DWT
8580 else
8581 case $cross_compiling:$ac_tool_warned in
8582yes:)
8583{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8584$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8585ac_tool_warned=yes ;;
8586esac
a243b558 8587 AR=$ac_ct_AR
9c60689e 8588 fi
a243b558
JF
8589fi
8590
8591: ${AR=ar}
8592: ${AR_FLAGS=cru}
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8605$as_echo_n "checking for archiver @FILE support... " >&6; }
8606if ${lt_cv_ar_at_file+:} false; then :
8607 $as_echo_n "(cached) " >&6
9c60689e 8608else
a243b558
JF
8609 lt_cv_ar_at_file=no
8610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8611/* end confdefs.h. */
8612
8613int
8614main ()
8615{
8616
8617 ;
8618 return 0;
8619}
8620_ACEOF
8621if ac_fn_c_try_compile "$LINENO"; then :
8622 echo conftest.$ac_objext > conftest.lst
8623 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8624 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8625 (eval $lt_ar_try) 2>&5
8626 ac_status=$?
8627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8628 test $ac_status = 0; }
9d54db95 8629 if test 0 -eq "$ac_status"; then
a243b558
JF
8630 # Ensure the archiver fails upon bogus file names.
8631 rm -f conftest.$ac_objext libconftest.a
8632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8633 (eval $lt_ar_try) 2>&5
8634 ac_status=$?
8635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8636 test $ac_status = 0; }
9d54db95 8637 if test 0 -ne "$ac_status"; then
a243b558
JF
8638 lt_cv_ar_at_file=@
8639 fi
8640 fi
8641 rm -f conftest.* libconftest.a
8642
9c60689e 8643fi
a243b558 8644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9c60689e 8645
a243b558
JF
8646fi
8647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8648$as_echo "$lt_cv_ar_at_file" >&6; }
8649
9d54db95 8650if test no = "$lt_cv_ar_at_file"; then
a243b558
JF
8651 archiver_list_spec=
8652else
8653 archiver_list_spec=$lt_cv_ar_at_file
8654fi
8655
8656
8657
8658
8659
8660
8661
8662if test -n "$ac_tool_prefix"; then
8663 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8664set dummy ${ac_tool_prefix}strip; ac_word=$2
9c60689e
DWT
8665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8666$as_echo_n "checking for $ac_word... " >&6; }
a243b558 8667if ${ac_cv_prog_STRIP+:} false; then :
9c60689e
DWT
8668 $as_echo_n "(cached) " >&6
8669else
a243b558
JF
8670 if test -n "$STRIP"; then
8671 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9c60689e
DWT
8672else
8673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8674for as_dir in $PATH
8675do
8676 IFS=$as_save_IFS
8677 test -z "$as_dir" && as_dir=.
8678 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 8679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 8680 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9c60689e
DWT
8681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8682 break 2
8683 fi
8684done
8685 done
8686IFS=$as_save_IFS
8687
8688fi
8689fi
a243b558
JF
8690STRIP=$ac_cv_prog_STRIP
8691if test -n "$STRIP"; then
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8693$as_echo "$STRIP" >&6; }
9c60689e
DWT
8694else
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8696$as_echo "no" >&6; }
8697fi
8698
8699
8700fi
a243b558
JF
8701if test -z "$ac_cv_prog_STRIP"; then
8702 ac_ct_STRIP=$STRIP
8703 # Extract the first word of "strip", so it can be a program name with args.
8704set dummy strip; ac_word=$2
9c60689e
DWT
8705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8706$as_echo_n "checking for $ac_word... " >&6; }
a243b558 8707if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9c60689e
DWT
8708 $as_echo_n "(cached) " >&6
8709else
a243b558
JF
8710 if test -n "$ac_ct_STRIP"; then
8711 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9c60689e
DWT
8712else
8713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8714for as_dir in $PATH
8715do
8716 IFS=$as_save_IFS
8717 test -z "$as_dir" && as_dir=.
8718 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 8719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 8720 ac_cv_prog_ac_ct_STRIP="strip"
9c60689e
DWT
8721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8722 break 2
8723 fi
8724done
8725 done
8726IFS=$as_save_IFS
8727
8728fi
8729fi
a243b558
JF
8730ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8731if test -n "$ac_ct_STRIP"; then
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8733$as_echo "$ac_ct_STRIP" >&6; }
9c60689e
DWT
8734else
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8736$as_echo "no" >&6; }
8737fi
8738
a243b558
JF
8739 if test "x$ac_ct_STRIP" = x; then
8740 STRIP=":"
9c60689e
DWT
8741 else
8742 case $cross_compiling:$ac_tool_warned in
8743yes:)
8744{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8745$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8746ac_tool_warned=yes ;;
8747esac
a243b558 8748 STRIP=$ac_ct_STRIP
9c60689e
DWT
8749 fi
8750else
a243b558 8751 STRIP="$ac_cv_prog_STRIP"
9c60689e
DWT
8752fi
8753
a243b558
JF
8754test -z "$STRIP" && STRIP=:
8755
8756
8757
8758
8759
8760
8761if test -n "$ac_tool_prefix"; then
8762 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8763set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9c60689e
DWT
8764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8765$as_echo_n "checking for $ac_word... " >&6; }
a243b558 8766if ${ac_cv_prog_RANLIB+:} false; then :
9c60689e
DWT
8767 $as_echo_n "(cached) " >&6
8768else
a243b558
JF
8769 if test -n "$RANLIB"; then
8770 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9c60689e
DWT
8771else
8772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8773for as_dir in $PATH
8774do
8775 IFS=$as_save_IFS
8776 test -z "$as_dir" && as_dir=.
8777 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 8778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 8779 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9c60689e
DWT
8780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8781 break 2
8782 fi
8783done
8784 done
8785IFS=$as_save_IFS
8786
8787fi
8788fi
a243b558
JF
8789RANLIB=$ac_cv_prog_RANLIB
8790if test -n "$RANLIB"; then
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8792$as_echo "$RANLIB" >&6; }
9c60689e
DWT
8793else
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8795$as_echo "no" >&6; }
8796fi
8797
8798
8799fi
a243b558
JF
8800if test -z "$ac_cv_prog_RANLIB"; then
8801 ac_ct_RANLIB=$RANLIB
8802 # Extract the first word of "ranlib", so it can be a program name with args.
8803set dummy ranlib; ac_word=$2
9c60689e
DWT
8804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8805$as_echo_n "checking for $ac_word... " >&6; }
a243b558 8806if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9c60689e
DWT
8807 $as_echo_n "(cached) " >&6
8808else
a243b558
JF
8809 if test -n "$ac_ct_RANLIB"; then
8810 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9c60689e
DWT
8811else
8812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8813for as_dir in $PATH
8814do
8815 IFS=$as_save_IFS
8816 test -z "$as_dir" && as_dir=.
8817 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 8818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 8819 ac_cv_prog_ac_ct_RANLIB="ranlib"
9c60689e
DWT
8820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8821 break 2
8822 fi
8823done
8824 done
8825IFS=$as_save_IFS
8826
8827fi
8828fi
a243b558
JF
8829ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8830if test -n "$ac_ct_RANLIB"; then
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8832$as_echo "$ac_ct_RANLIB" >&6; }
9c60689e
DWT
8833else
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8835$as_echo "no" >&6; }
8836fi
8837
a243b558
JF
8838 if test "x$ac_ct_RANLIB" = x; then
8839 RANLIB=":"
9c60689e
DWT
8840 else
8841 case $cross_compiling:$ac_tool_warned in
8842yes:)
8843{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8844$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8845ac_tool_warned=yes ;;
8846esac
a243b558 8847 RANLIB=$ac_ct_RANLIB
9c60689e
DWT
8848 fi
8849else
a243b558 8850 RANLIB="$ac_cv_prog_RANLIB"
9c60689e
DWT
8851fi
8852
a243b558
JF
8853test -z "$RANLIB" && RANLIB=:
8854
8855
9c60689e 8856
9c60689e
DWT
8857
8858
a243b558
JF
8859
8860# Determine commands to create old-style static archives.
8861old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8862old_postinstall_cmds='chmod 644 $oldlib'
8863old_postuninstall_cmds=
8864
8865if test -n "$RANLIB"; then
8866 case $host_os in
9d54db95 8867 bitrig* | openbsd*)
a243b558
JF
8868 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8869 ;;
8870 *)
8871 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8872 ;;
8873 esac
8874 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9c60689e
DWT
8875fi
8876
a243b558
JF
8877case $host_os in
8878 darwin*)
8879 lock_old_archive_extraction=yes ;;
8880 *)
8881 lock_old_archive_extraction=no ;;
9c60689e 8882esac
9c60689e 8883
9c60689e 8884
9c60689e
DWT
8885
8886
9c60689e 8887
9c60689e 8888
9c60689e
DWT
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
53ba6704 8916
9c60689e 8917
9c60689e 8918
9c60689e 8919
53ba6704 8920
a243b558
JF
8921
8922# If no C compiler was specified, use CC.
8923LTCC=${LTCC-"$CC"}
8924
8925# If no C compiler flags were specified, use CFLAGS.
8926LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8927
8928# Allow CC to be a program name with arguments.
8929compiler=$CC
8930
8931
8932# Check for command to grab the raw symbol name followed by C symbol from nm.
8933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8934$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8935if ${lt_cv_sys_global_symbol_pipe+:} false; then :
ee134472
JF
8936 $as_echo_n "(cached) " >&6
8937else
ee134472 8938
a243b558
JF
8939# These are sane defaults that work on at least a few old systems.
8940# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9c60689e 8941
a243b558
JF
8942# Character class describing NM global symbol codes.
8943symcode='[BCDEGRST]'
9c60689e 8944
a243b558
JF
8945# Regexp to match symbols that can be accessed directly from C.
8946sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9c60689e 8947
a243b558
JF
8948# Define system-specific variables.
8949case $host_os in
8950aix*)
8951 symcode='[BCDT]'
8952 ;;
8953cygwin* | mingw* | pw32* | cegcc*)
8954 symcode='[ABCDGISTW]'
8955 ;;
8956hpux*)
9d54db95 8957 if test ia64 = "$host_cpu"; then
a243b558
JF
8958 symcode='[ABCDEGRST]'
8959 fi
8960 ;;
8961irix* | nonstopux*)
8962 symcode='[BCDEGRST]'
8963 ;;
8964osf*)
8965 symcode='[BCDEGQRST]'
8966 ;;
8967solaris*)
8968 symcode='[BDRT]'
8969 ;;
8970sco3.2v5*)
8971 symcode='[DT]'
8972 ;;
8973sysv4.2uw2*)
8974 symcode='[DT]'
8975 ;;
8976sysv5* | sco5v6* | unixware* | OpenUNIX*)
8977 symcode='[ABDT]'
8978 ;;
8979sysv4)
8980 symcode='[DFNSTU]'
8981 ;;
8982esac
9c60689e 8983
a243b558
JF
8984# If we're using GNU nm, then use its standard symbol codes.
8985case `$NM -V 2>&1` in
8986*GNU* | *'with BFD'*)
8987 symcode='[ABCDGIRSTW]' ;;
8988esac
9c60689e 8989
9d54db95
JF
8990if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8991 # Gets list of data symbols to import.
8992 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8993 # Adjust the below global symbol transforms to fixup imported variables.
8994 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8995 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8996 lt_c_name_lib_hook="\
8997 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8998 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8999else
9000 # Disable hooks by default.
9001 lt_cv_sys_global_symbol_to_import=
9002 lt_cdecl_hook=
9003 lt_c_name_hook=
9004 lt_c_name_lib_hook=
9005fi
9006
a243b558
JF
9007# Transform an extracted symbol line into a proper C declaration.
9008# Some systems (esp. on ia64) link data and code symbols differently,
9009# so use this general approach.
9d54db95
JF
9010lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9011$lt_cdecl_hook\
9012" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9013" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9c60689e 9014
a243b558 9015# Transform an extracted symbol line into symbol name and symbol address
9d54db95
JF
9016lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9017$lt_c_name_hook\
9018" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9019" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9020
9021# Transform an extracted symbol line into symbol name with lib prefix and
9022# symbol address.
9023lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9024$lt_c_name_lib_hook\
9025" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9026" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9027" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9c60689e 9028
a243b558
JF
9029# Handle CRLF in mingw tool chain
9030opt_cr=
9031case $build_os in
9032mingw*)
9033 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9034 ;;
9035esac
9c60689e 9036
a243b558
JF
9037# Try without a prefix underscore, then with it.
9038for ac_symprfx in "" "_"; do
9c60689e 9039
a243b558
JF
9040 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9041 symxfrm="\\1 $ac_symprfx\\2 \\2"
9c60689e 9042
a243b558
JF
9043 # Write the raw and C identifiers.
9044 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9d54db95
JF
9045 # Fake it for dumpbin and say T for any non-static function,
9046 # D for any global variable and I for any imported variable.
a243b558
JF
9047 # Also find C++ and __fastcall symbols from MSVC++,
9048 # which start with @ or ?.
9049 lt_cv_sys_global_symbol_pipe="$AWK '"\
9050" {last_section=section; section=\$ 3};"\
9051" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9052" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9d54db95
JF
9053" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9054" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9055" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
a243b558
JF
9056" \$ 0!~/External *\|/{next};"\
9057" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9058" {if(hide[section]) next};"\
9d54db95
JF
9059" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9060" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9061" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9062" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
a243b558
JF
9063" ' prfx=^$ac_symprfx"
9064 else
9065 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9066 fi
9067 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9c60689e 9068
a243b558
JF
9069 # Check to see that the pipe works correctly.
9070 pipe_works=no
9c60689e 9071
00a96142 9072 rm -rf conftest*
a243b558
JF
9073 cat > conftest.$ac_ext <<_LT_EOF
9074#ifdef __cplusplus
9075extern "C" {
9076#endif
9077char nm_test_var;
9078void nm_test_func(void);
9079void nm_test_func(void){}
9080#ifdef __cplusplus
9081}
9082#endif
9083int main(){nm_test_var='a';nm_test_func();return(0);}
9084_LT_EOF
9c60689e 9085
a243b558
JF
9086 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9087 (eval $ac_compile) 2>&5
9088 ac_status=$?
9089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9090 test $ac_status = 0; }; then
9091 # Now try to grab the symbols.
9092 nlist=conftest.nm
9093 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9094 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9095 ac_status=$?
9096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9097 test $ac_status = 0; } && test -s "$nlist"; then
9098 # Try sorting and uniquifying the output.
9099 if sort "$nlist" | uniq > "$nlist"T; then
9100 mv -f "$nlist"T "$nlist"
9101 else
9102 rm -f "$nlist"T
9103 fi
9c60689e 9104
a243b558
JF
9105 # Make sure that we snagged all the symbols we need.
9106 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9107 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9108 cat <<_LT_EOF > conftest.$ac_ext
9109/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9d54db95
JF
9110#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9111/* DATA imports from DLLs on WIN32 can't be const, because runtime
a243b558
JF
9112 relocations are performed -- see ld's documentation on pseudo-relocs. */
9113# define LT_DLSYM_CONST
9d54db95 9114#elif defined __osf__
a243b558
JF
9115/* This system does not cope well with relocations in const data. */
9116# define LT_DLSYM_CONST
9117#else
9118# define LT_DLSYM_CONST const
9119#endif
9c60689e 9120
a243b558
JF
9121#ifdef __cplusplus
9122extern "C" {
9123#endif
9c60689e 9124
a243b558
JF
9125_LT_EOF
9126 # Now generate the symbol file.
9127 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9c60689e 9128
a243b558 9129 cat <<_LT_EOF >> conftest.$ac_ext
9c60689e 9130
a243b558
JF
9131/* The mapping between symbol names and symbols. */
9132LT_DLSYM_CONST struct {
9133 const char *name;
9134 void *address;
9135}
9136lt__PROGRAM__LTX_preloaded_symbols[] =
9137{
9138 { "@PROGRAM@", (void *) 0 },
9139_LT_EOF
9d54db95 9140 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
a243b558
JF
9141 cat <<\_LT_EOF >> conftest.$ac_ext
9142 {0, (void *) 0}
9143};
9c60689e 9144
a243b558
JF
9145/* This works around a problem in FreeBSD linker */
9146#ifdef FREEBSD_WORKAROUND
9147static const void *lt_preloaded_setup() {
9148 return lt__PROGRAM__LTX_preloaded_symbols;
9149}
9150#endif
9c60689e 9151
a243b558
JF
9152#ifdef __cplusplus
9153}
9154#endif
9155_LT_EOF
9156 # Now try linking the two files.
9157 mv conftest.$ac_objext conftstm.$ac_objext
9158 lt_globsym_save_LIBS=$LIBS
9159 lt_globsym_save_CFLAGS=$CFLAGS
9d54db95 9160 LIBS=conftstm.$ac_objext
a243b558
JF
9161 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9162 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9163 (eval $ac_link) 2>&5
9164 ac_status=$?
9165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9d54db95 9166 test $ac_status = 0; } && test -s conftest$ac_exeext; then
a243b558
JF
9167 pipe_works=yes
9168 fi
9169 LIBS=$lt_globsym_save_LIBS
9170 CFLAGS=$lt_globsym_save_CFLAGS
9171 else
9172 echo "cannot find nm_test_func in $nlist" >&5
9173 fi
9174 else
9175 echo "cannot find nm_test_var in $nlist" >&5
9176 fi
9177 else
9178 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9179 fi
9180 else
9181 echo "$progname: failed program was:" >&5
9182 cat conftest.$ac_ext >&5
9183 fi
9184 rm -rf conftest* conftst*
9c60689e 9185
a243b558 9186 # Do not use the global_symbol_pipe unless it works.
9d54db95 9187 if test yes = "$pipe_works"; then
a243b558
JF
9188 break
9189 else
9190 lt_cv_sys_global_symbol_pipe=
9191 fi
9192done
9c60689e 9193
9c60689e 9194fi
9c60689e 9195
a243b558
JF
9196if test -z "$lt_cv_sys_global_symbol_pipe"; then
9197 lt_cv_sys_global_symbol_to_cdecl=
9c60689e 9198fi
a243b558
JF
9199if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9201$as_echo "failed" >&6; }
9c60689e 9202else
a243b558
JF
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9204$as_echo "ok" >&6; }
9c60689e
DWT
9205fi
9206
a243b558
JF
9207# Response file support.
9208if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9209 nm_file_list_spec='@'
9210elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9211 nm_file_list_spec='@'
9c60689e 9212fi
9c60689e 9213
9c60689e 9214
9c60689e 9215
9c60689e 9216
9c60689e 9217
9c60689e
DWT
9218
9219
9c60689e 9220
9c60689e 9221
9c60689e
DWT
9222
9223
9224
ee134472
JF
9225
9226
9c60689e
DWT
9227
9228
9d54db95
JF
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9c60689e
DWT
9239
9240
9241
9242
9243
9244
9245
549f29b5 9246
549f29b5
DWT
9247
9248
549f29b5 9249
a243b558
JF
9250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9251$as_echo_n "checking for sysroot... " >&6; }
549f29b5 9252
a243b558
JF
9253# Check whether --with-sysroot was given.
9254if test "${with_sysroot+set}" = set; then :
9255 withval=$with_sysroot;
9c60689e 9256else
a243b558 9257 with_sysroot=no
9c60689e
DWT
9258fi
9259
9260
a243b558 9261lt_sysroot=
9d54db95 9262case $with_sysroot in #(
a243b558 9263 yes)
9d54db95 9264 if test yes = "$GCC"; then
a243b558
JF
9265 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9266 fi
9267 ;; #(
9268 /*)
9269 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9270 ;; #(
9271 no|'')
9272 ;; #(
9273 *)
9d54db95
JF
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9275$as_echo "$with_sysroot" >&6; }
a243b558
JF
9276 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9277 ;;
9278esac
9c60689e 9279
a243b558
JF
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9281$as_echo "${lt_sysroot:-no}" >&6; }
9c60689e
DWT
9282
9283
9284
9285
9286
9d54db95
JF
9287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9288$as_echo_n "checking for a working dd... " >&6; }
9289if ${ac_cv_path_lt_DD+:} false; then :
9290 $as_echo_n "(cached) " >&6
9291else
9292 printf 0123456789abcdef0123456789abcdef >conftest.i
9293cat conftest.i conftest.i >conftest2.i
9294: ${lt_DD:=$DD}
9295if test -z "$lt_DD"; then
9296 ac_path_lt_DD_found=false
9297 # Loop through the user's path and test for each of PROGNAME-LIST
9298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9299for as_dir in $PATH
9300do
9301 IFS=$as_save_IFS
9302 test -z "$as_dir" && as_dir=.
9303 for ac_prog in dd; do
9304 for ac_exec_ext in '' $ac_executable_extensions; do
9305 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9306 as_fn_executable_p "$ac_path_lt_DD" || continue
9307if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9308 cmp -s conftest.i conftest.out \
9309 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9310fi
9311 $ac_path_lt_DD_found && break 3
9312 done
9313 done
9314 done
9315IFS=$as_save_IFS
9316 if test -z "$ac_cv_path_lt_DD"; then
9317 :
9318 fi
9319else
9320 ac_cv_path_lt_DD=$lt_DD
9321fi
9322
9323rm -f conftest.i conftest2.i conftest.out
9324fi
9325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9326$as_echo "$ac_cv_path_lt_DD" >&6; }
9327
9328
9329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9330$as_echo_n "checking how to truncate binary pipes... " >&6; }
9331if ${lt_cv_truncate_bin+:} false; then :
9332 $as_echo_n "(cached) " >&6
9333else
9334 printf 0123456789abcdef0123456789abcdef >conftest.i
9335cat conftest.i conftest.i >conftest2.i
9336lt_cv_truncate_bin=
9337if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9338 cmp -s conftest.i conftest.out \
9339 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9340fi
9341rm -f conftest.i conftest2.i conftest.out
9342test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9343fi
9344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9345$as_echo "$lt_cv_truncate_bin" >&6; }
9346
9347
9348
9349
9350
9351
9352
9353# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9354func_cc_basename ()
9355{
9356 for cc_temp in $*""; do
9357 case $cc_temp in
9358 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9359 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9360 \-*) ;;
9361 *) break;;
9362 esac
9363 done
9364 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9365}
9366
a243b558
JF
9367# Check whether --enable-libtool-lock was given.
9368if test "${enable_libtool_lock+set}" = set; then :
9369 enableval=$enable_libtool_lock;
9c60689e
DWT
9370fi
9371
9d54db95 9372test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9c60689e 9373
a243b558
JF
9374# Some flags need to be propagated to the compiler or linker for good
9375# libtool support.
9376case $host in
9377ia64-*-hpux*)
9d54db95
JF
9378 # Find out what ABI is being produced by ac_compile, and set mode
9379 # options accordingly.
a243b558
JF
9380 echo 'int i;' > conftest.$ac_ext
9381 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9382 (eval $ac_compile) 2>&5
9383 ac_status=$?
9384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9385 test $ac_status = 0; }; then
9386 case `/usr/bin/file conftest.$ac_objext` in
9387 *ELF-32*)
9d54db95 9388 HPUX_IA64_MODE=32
a243b558
JF
9389 ;;
9390 *ELF-64*)
9d54db95 9391 HPUX_IA64_MODE=64
a243b558
JF
9392 ;;
9393 esac
9394 fi
9395 rm -rf conftest*
9396 ;;
9397*-*-irix6*)
9d54db95
JF
9398 # Find out what ABI is being produced by ac_compile, and set linker
9399 # options accordingly.
a243b558
JF
9400 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9402 (eval $ac_compile) 2>&5
9403 ac_status=$?
9404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9405 test $ac_status = 0; }; then
9d54db95 9406 if test yes = "$lt_cv_prog_gnu_ld"; then
a243b558
JF
9407 case `/usr/bin/file conftest.$ac_objext` in
9408 *32-bit*)
9409 LD="${LD-ld} -melf32bsmip"
9410 ;;
9411 *N32*)
9412 LD="${LD-ld} -melf32bmipn32"
9413 ;;
9414 *64-bit*)
9415 LD="${LD-ld} -melf64bmip"
9416 ;;
9417 esac
9418 else
9419 case `/usr/bin/file conftest.$ac_objext` in
9420 *32-bit*)
9421 LD="${LD-ld} -32"
9422 ;;
9423 *N32*)
9424 LD="${LD-ld} -n32"
9425 ;;
9426 *64-bit*)
9427 LD="${LD-ld} -64"
9428 ;;
9429 esac
9430 fi
9431 fi
9432 rm -rf conftest*
9433 ;;
9c60689e 9434
9d54db95
JF
9435mips64*-*linux*)
9436 # Find out what ABI is being produced by ac_compile, and set linker
9437 # options accordingly.
9438 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9439 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9440 (eval $ac_compile) 2>&5
9441 ac_status=$?
9442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9443 test $ac_status = 0; }; then
9444 emul=elf
9445 case `/usr/bin/file conftest.$ac_objext` in
9446 *32-bit*)
9447 emul="${emul}32"
9448 ;;
9449 *64-bit*)
9450 emul="${emul}64"
9451 ;;
9452 esac
9453 case `/usr/bin/file conftest.$ac_objext` in
9454 *MSB*)
9455 emul="${emul}btsmip"
9456 ;;
9457 *LSB*)
9458 emul="${emul}ltsmip"
9459 ;;
9460 esac
9461 case `/usr/bin/file conftest.$ac_objext` in
9462 *N32*)
9463 emul="${emul}n32"
9464 ;;
9465 esac
9466 LD="${LD-ld} -m $emul"
9467 fi
9468 rm -rf conftest*
9469 ;;
9470
9471x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
a243b558 9472s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9d54db95
JF
9473 # Find out what ABI is being produced by ac_compile, and set linker
9474 # options accordingly. Note that the listed cases only cover the
9475 # situations where additional linker options are needed (such as when
9476 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9477 # vice versa); the common cases where no linker options are needed do
9478 # not appear in the list.
a243b558
JF
9479 echo 'int i;' > conftest.$ac_ext
9480 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9481 (eval $ac_compile) 2>&5
9482 ac_status=$?
9483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9484 test $ac_status = 0; }; then
9485 case `/usr/bin/file conftest.o` in
9486 *32-bit*)
9487 case $host in
9488 x86_64-*kfreebsd*-gnu)
9489 LD="${LD-ld} -m elf_i386_fbsd"
9490 ;;
9491 x86_64-*linux*)
9d54db95
JF
9492 case `/usr/bin/file conftest.o` in
9493 *x86-64*)
9494 LD="${LD-ld} -m elf32_x86_64"
9495 ;;
9496 *)
9497 LD="${LD-ld} -m elf_i386"
9498 ;;
9499 esac
a243b558 9500 ;;
9d54db95
JF
9501 powerpc64le-*linux*)
9502 LD="${LD-ld} -m elf32lppclinux"
9503 ;;
9504 powerpc64-*linux*)
a243b558
JF
9505 LD="${LD-ld} -m elf32ppclinux"
9506 ;;
9507 s390x-*linux*)
9508 LD="${LD-ld} -m elf_s390"
9509 ;;
9510 sparc64-*linux*)
9511 LD="${LD-ld} -m elf32_sparc"
9512 ;;
9513 esac
9514 ;;
9515 *64-bit*)
9516 case $host in
9517 x86_64-*kfreebsd*-gnu)
9518 LD="${LD-ld} -m elf_x86_64_fbsd"
9519 ;;
9520 x86_64-*linux*)
9521 LD="${LD-ld} -m elf_x86_64"
9522 ;;
9d54db95
JF
9523 powerpcle-*linux*)
9524 LD="${LD-ld} -m elf64lppc"
9525 ;;
9526 powerpc-*linux*)
a243b558
JF
9527 LD="${LD-ld} -m elf64ppc"
9528 ;;
9529 s390*-*linux*|s390*-*tpf*)
9530 LD="${LD-ld} -m elf64_s390"
9531 ;;
9532 sparc*-*linux*)
9533 LD="${LD-ld} -m elf64_sparc"
9534 ;;
9535 esac
9536 ;;
9537 esac
9538 fi
9539 rm -rf conftest*
9540 ;;
9c60689e 9541
a243b558
JF
9542*-*-sco3.2v5*)
9543 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9d54db95 9544 SAVE_CFLAGS=$CFLAGS
a243b558
JF
9545 CFLAGS="$CFLAGS -belf"
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9547$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9548if ${lt_cv_cc_needs_belf+:} false; then :
9549 $as_echo_n "(cached) " >&6
9550else
9551 ac_ext=c
9552ac_cpp='$CPP $CPPFLAGS'
9553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9555ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e 9556
a243b558
JF
9557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9558/* end confdefs.h. */
9c60689e 9559
a243b558
JF
9560int
9561main ()
9562{
9c60689e 9563
a243b558
JF
9564 ;
9565 return 0;
9566}
9567_ACEOF
9568if ac_fn_c_try_link "$LINENO"; then :
9569 lt_cv_cc_needs_belf=yes
9c60689e 9570else
a243b558 9571 lt_cv_cc_needs_belf=no
9c60689e 9572fi
a243b558
JF
9573rm -f core conftest.err conftest.$ac_objext \
9574 conftest$ac_exeext conftest.$ac_ext
9575 ac_ext=c
9576ac_cpp='$CPP $CPPFLAGS'
9577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9579ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e 9580
a243b558
JF
9581fi
9582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9583$as_echo "$lt_cv_cc_needs_belf" >&6; }
9d54db95 9584 if test yes != "$lt_cv_cc_needs_belf"; then
a243b558 9585 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9d54db95 9586 CFLAGS=$SAVE_CFLAGS
a243b558
JF
9587 fi
9588 ;;
9589*-*solaris*)
9d54db95
JF
9590 # Find out what ABI is being produced by ac_compile, and set linker
9591 # options accordingly.
a243b558
JF
9592 echo 'int i;' > conftest.$ac_ext
9593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9594 (eval $ac_compile) 2>&5
9595 ac_status=$?
9596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9597 test $ac_status = 0; }; then
9598 case `/usr/bin/file conftest.o` in
9599 *64-bit*)
9600 case $lt_cv_prog_gnu_ld in
9601 yes*)
9602 case $host in
9d54db95 9603 i?86-*-solaris*|x86_64-*-solaris*)
a243b558
JF
9604 LD="${LD-ld} -m elf_x86_64"
9605 ;;
9606 sparc*-*-solaris*)
9607 LD="${LD-ld} -m elf64_sparc"
9608 ;;
9609 esac
9610 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9611 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9d54db95 9612 LD=${LD-ld}_sol2
a243b558
JF
9613 fi
9614 ;;
9615 *)
9616 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9617 LD="${LD-ld} -64"
9618 fi
9619 ;;
9620 esac
9621 ;;
9622 esac
9623 fi
9624 rm -rf conftest*
9625 ;;
9626esac
9c60689e 9627
9d54db95 9628need_locks=$enable_libtool_lock
9c60689e 9629
a243b558
JF
9630if test -n "$ac_tool_prefix"; then
9631 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9632set dummy ${ac_tool_prefix}mt; ac_word=$2
9633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9634$as_echo_n "checking for $ac_word... " >&6; }
9635if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9636 $as_echo_n "(cached) " >&6
9637else
9638 if test -n "$MANIFEST_TOOL"; then
9639 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9640else
9641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9642for as_dir in $PATH
9643do
9644 IFS=$as_save_IFS
9645 test -z "$as_dir" && as_dir=.
9646 for ac_exec_ext in '' $ac_executable_extensions; do
9647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9648 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9650 break 2
9651 fi
9652done
9653 done
9654IFS=$as_save_IFS
9c60689e 9655
a243b558
JF
9656fi
9657fi
9658MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9659if test -n "$MANIFEST_TOOL"; then
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9661$as_echo "$MANIFEST_TOOL" >&6; }
9662else
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9664$as_echo "no" >&6; }
9665fi
9c60689e
DWT
9666
9667
a243b558
JF
9668fi
9669if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9670 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9671 # Extract the first word of "mt", so it can be a program name with args.
9672set dummy mt; ac_word=$2
9673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9674$as_echo_n "checking for $ac_word... " >&6; }
9675if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9676 $as_echo_n "(cached) " >&6
9677else
9678 if test -n "$ac_ct_MANIFEST_TOOL"; then
9679 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9680else
9681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9682for as_dir in $PATH
9683do
9684 IFS=$as_save_IFS
9685 test -z "$as_dir" && as_dir=.
9686 for ac_exec_ext in '' $ac_executable_extensions; do
9687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9688 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9690 break 2
9691 fi
9692done
9693 done
9694IFS=$as_save_IFS
9c60689e 9695
a243b558
JF
9696fi
9697fi
9698ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9699if test -n "$ac_ct_MANIFEST_TOOL"; then
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9701$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9702else
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9704$as_echo "no" >&6; }
9705fi
9c60689e 9706
a243b558
JF
9707 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9708 MANIFEST_TOOL=":"
9709 else
9710 case $cross_compiling:$ac_tool_warned in
9711yes:)
9712{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9713$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9714ac_tool_warned=yes ;;
9715esac
9716 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9717 fi
9718else
9719 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9720fi
9c60689e 9721
a243b558
JF
9722test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9724$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9725if ${lt_cv_path_mainfest_tool+:} false; then :
9726 $as_echo_n "(cached) " >&6
9727else
9728 lt_cv_path_mainfest_tool=no
9729 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9730 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9731 cat conftest.err >&5
9732 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9733 lt_cv_path_mainfest_tool=yes
9734 fi
00a96142 9735 rm -rf conftest*
a243b558
JF
9736fi
9737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9738$as_echo "$lt_cv_path_mainfest_tool" >&6; }
9d54db95 9739if test yes != "$lt_cv_path_mainfest_tool"; then
a243b558
JF
9740 MANIFEST_TOOL=:
9741fi
9c60689e
DWT
9742
9743
9744
9745
9746
9747
a243b558
JF
9748 case $host_os in
9749 rhapsody* | darwin*)
9750 if test -n "$ac_tool_prefix"; then
9751 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9752set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9754$as_echo_n "checking for $ac_word... " >&6; }
9755if ${ac_cv_prog_DSYMUTIL+:} false; then :
9756 $as_echo_n "(cached) " >&6
9757else
9758 if test -n "$DSYMUTIL"; then
9759 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9760else
9761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9762for as_dir in $PATH
9763do
9764 IFS=$as_save_IFS
9765 test -z "$as_dir" && as_dir=.
9766 for ac_exec_ext in '' $ac_executable_extensions; do
9767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9768 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9770 break 2
9771 fi
9772done
9773 done
9774IFS=$as_save_IFS
9c60689e 9775
a243b558
JF
9776fi
9777fi
9778DSYMUTIL=$ac_cv_prog_DSYMUTIL
9779if test -n "$DSYMUTIL"; then
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9781$as_echo "$DSYMUTIL" >&6; }
9782else
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9784$as_echo "no" >&6; }
9785fi
9c60689e
DWT
9786
9787
9c60689e 9788fi
a243b558
JF
9789if test -z "$ac_cv_prog_DSYMUTIL"; then
9790 ac_ct_DSYMUTIL=$DSYMUTIL
9791 # Extract the first word of "dsymutil", so it can be a program name with args.
9792set dummy dsymutil; ac_word=$2
9793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9794$as_echo_n "checking for $ac_word... " >&6; }
9795if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9c60689e
DWT
9796 $as_echo_n "(cached) " >&6
9797else
a243b558
JF
9798 if test -n "$ac_ct_DSYMUTIL"; then
9799 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9c60689e 9800else
a243b558
JF
9801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9802for as_dir in $PATH
9803do
9804 IFS=$as_save_IFS
9805 test -z "$as_dir" && as_dir=.
9806 for ac_exec_ext in '' $ac_executable_extensions; do
9807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9808 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9810 break 2
9811 fi
9812done
9813 done
9814IFS=$as_save_IFS
9815
9c60689e 9816fi
9c60689e 9817fi
a243b558
JF
9818ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9819if test -n "$ac_ct_DSYMUTIL"; then
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9821$as_echo "$ac_ct_DSYMUTIL" >&6; }
9822else
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9824$as_echo "no" >&6; }
9825fi
9c60689e 9826
a243b558
JF
9827 if test "x$ac_ct_DSYMUTIL" = x; then
9828 DSYMUTIL=":"
9829 else
9830 case $cross_compiling:$ac_tool_warned in
9831yes:)
9832{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9833$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9834ac_tool_warned=yes ;;
9c60689e 9835esac
a243b558
JF
9836 DSYMUTIL=$ac_ct_DSYMUTIL
9837 fi
9838else
9839 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9840fi
9c60689e 9841
a243b558
JF
9842 if test -n "$ac_tool_prefix"; then
9843 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9844set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9846$as_echo_n "checking for $ac_word... " >&6; }
9847if ${ac_cv_prog_NMEDIT+:} false; then :
9c60689e
DWT
9848 $as_echo_n "(cached) " >&6
9849else
a243b558
JF
9850 if test -n "$NMEDIT"; then
9851 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9852else
9853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9854for as_dir in $PATH
9855do
9856 IFS=$as_save_IFS
9857 test -z "$as_dir" && as_dir=.
9858 for ac_exec_ext in '' $ac_executable_extensions; do
9859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9860 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9862 break 2
9863 fi
9864done
9c60689e 9865 done
a243b558 9866IFS=$as_save_IFS
9c60689e 9867
a243b558
JF
9868fi
9869fi
9870NMEDIT=$ac_cv_prog_NMEDIT
9871if test -n "$NMEDIT"; then
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9873$as_echo "$NMEDIT" >&6; }
9c60689e
DWT
9874else
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9876$as_echo "no" >&6; }
9877fi
9878
9879
a243b558
JF
9880fi
9881if test -z "$ac_cv_prog_NMEDIT"; then
9882 ac_ct_NMEDIT=$NMEDIT
9883 # Extract the first word of "nmedit", so it can be a program name with args.
9884set dummy nmedit; ac_word=$2
9885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9886$as_echo_n "checking for $ac_word... " >&6; }
9887if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9c60689e
DWT
9888 $as_echo_n "(cached) " >&6
9889else
a243b558
JF
9890 if test -n "$ac_ct_NMEDIT"; then
9891 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9892else
9893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9894for as_dir in $PATH
9895do
9896 IFS=$as_save_IFS
9897 test -z "$as_dir" && as_dir=.
9898 for ac_exec_ext in '' $ac_executable_extensions; do
9899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9900 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9902 break 2
9903 fi
9904done
9c60689e 9905 done
a243b558 9906IFS=$as_save_IFS
9c60689e 9907
a243b558
JF
9908fi
9909fi
9910ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9911if test -n "$ac_ct_NMEDIT"; then
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9913$as_echo "$ac_ct_NMEDIT" >&6; }
9c60689e
DWT
9914else
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9916$as_echo "no" >&6; }
9917fi
9918
a243b558
JF
9919 if test "x$ac_ct_NMEDIT" = x; then
9920 NMEDIT=":"
9c60689e 9921 else
a243b558
JF
9922 case $cross_compiling:$ac_tool_warned in
9923yes:)
9924{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9925$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9926ac_tool_warned=yes ;;
9927esac
9928 NMEDIT=$ac_ct_NMEDIT
9c60689e 9929 fi
a243b558
JF
9930else
9931 NMEDIT="$ac_cv_prog_NMEDIT"
9c60689e
DWT
9932fi
9933
a243b558
JF
9934 if test -n "$ac_tool_prefix"; then
9935 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9936set dummy ${ac_tool_prefix}lipo; ac_word=$2
9937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9938$as_echo_n "checking for $ac_word... " >&6; }
9939if ${ac_cv_prog_LIPO+:} false; then :
9940 $as_echo_n "(cached) " >&6
9941else
9942 if test -n "$LIPO"; then
9943 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9944else
9945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9946for as_dir in $PATH
9947do
9948 IFS=$as_save_IFS
9949 test -z "$as_dir" && as_dir=.
9950 for ac_exec_ext in '' $ac_executable_extensions; do
9951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9952 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9954 break 2
9955 fi
9956done
9957 done
9958IFS=$as_save_IFS
9c60689e 9959
a243b558
JF
9960fi
9961fi
9962LIPO=$ac_cv_prog_LIPO
9963if test -n "$LIPO"; then
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9965$as_echo "$LIPO" >&6; }
9966else
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9968$as_echo "no" >&6; }
9969fi
9c60689e 9970
9c60689e 9971
a243b558
JF
9972fi
9973if test -z "$ac_cv_prog_LIPO"; then
9974 ac_ct_LIPO=$LIPO
9975 # Extract the first word of "lipo", so it can be a program name with args.
9976set dummy lipo; ac_word=$2
9977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9978$as_echo_n "checking for $ac_word... " >&6; }
9979if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9c60689e
DWT
9980 $as_echo_n "(cached) " >&6
9981else
a243b558
JF
9982 if test -n "$ac_ct_LIPO"; then
9983 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9984else
9985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9986for as_dir in $PATH
9987do
9988 IFS=$as_save_IFS
9989 test -z "$as_dir" && as_dir=.
9990 for ac_exec_ext in '' $ac_executable_extensions; do
9991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9992 ac_cv_prog_ac_ct_LIPO="lipo"
9993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9994 break 2
9995 fi
9996done
9997 done
9998IFS=$as_save_IFS
9c60689e
DWT
9999
10000fi
a243b558
JF
10001fi
10002ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10003if test -n "$ac_ct_LIPO"; then
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10005$as_echo "$ac_ct_LIPO" >&6; }
9c60689e 10006else
a243b558
JF
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10008$as_echo "no" >&6; }
9c60689e
DWT
10009fi
10010
a243b558
JF
10011 if test "x$ac_ct_LIPO" = x; then
10012 LIPO=":"
10013 else
10014 case $cross_compiling:$ac_tool_warned in
10015yes:)
10016{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10017$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10018ac_tool_warned=yes ;;
10019esac
10020 LIPO=$ac_ct_LIPO
10021 fi
10022else
10023 LIPO="$ac_cv_prog_LIPO"
9c60689e
DWT
10024fi
10025
a243b558
JF
10026 if test -n "$ac_tool_prefix"; then
10027 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10028set dummy ${ac_tool_prefix}otool; ac_word=$2
10029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10030$as_echo_n "checking for $ac_word... " >&6; }
10031if ${ac_cv_prog_OTOOL+:} false; then :
10032 $as_echo_n "(cached) " >&6
10033else
10034 if test -n "$OTOOL"; then
10035 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10036else
10037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10038for as_dir in $PATH
10039do
10040 IFS=$as_save_IFS
10041 test -z "$as_dir" && as_dir=.
10042 for ac_exec_ext in '' $ac_executable_extensions; do
10043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10044 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10046 break 2
10047 fi
10048done
10049 done
10050IFS=$as_save_IFS
9c60689e 10051
a243b558
JF
10052fi
10053fi
10054OTOOL=$ac_cv_prog_OTOOL
10055if test -n "$OTOOL"; then
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10057$as_echo "$OTOOL" >&6; }
10058else
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10060$as_echo "no" >&6; }
10061fi
9c60689e
DWT
10062
10063
a243b558
JF
10064fi
10065if test -z "$ac_cv_prog_OTOOL"; then
10066 ac_ct_OTOOL=$OTOOL
10067 # Extract the first word of "otool", so it can be a program name with args.
10068set dummy otool; ac_word=$2
10069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10070$as_echo_n "checking for $ac_word... " >&6; }
10071if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10072 $as_echo_n "(cached) " >&6
10073else
10074 if test -n "$ac_ct_OTOOL"; then
10075 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10076else
10077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10078for as_dir in $PATH
10079do
10080 IFS=$as_save_IFS
10081 test -z "$as_dir" && as_dir=.
10082 for ac_exec_ext in '' $ac_executable_extensions; do
10083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10084 ac_cv_prog_ac_ct_OTOOL="otool"
10085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10086 break 2
10087 fi
10088done
10089 done
10090IFS=$as_save_IFS
9c60689e 10091
a243b558
JF
10092fi
10093fi
10094ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10095if test -n "$ac_ct_OTOOL"; then
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10097$as_echo "$ac_ct_OTOOL" >&6; }
10098else
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10100$as_echo "no" >&6; }
10101fi
9c60689e 10102
a243b558
JF
10103 if test "x$ac_ct_OTOOL" = x; then
10104 OTOOL=":"
10105 else
10106 case $cross_compiling:$ac_tool_warned in
10107yes:)
10108{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10109$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10110ac_tool_warned=yes ;;
10111esac
10112 OTOOL=$ac_ct_OTOOL
10113 fi
10114else
10115 OTOOL="$ac_cv_prog_OTOOL"
10116fi
9c60689e 10117
a243b558
JF
10118 if test -n "$ac_tool_prefix"; then
10119 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10120set dummy ${ac_tool_prefix}otool64; ac_word=$2
10121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10122$as_echo_n "checking for $ac_word... " >&6; }
10123if ${ac_cv_prog_OTOOL64+:} false; then :
10124 $as_echo_n "(cached) " >&6
10125else
10126 if test -n "$OTOOL64"; then
10127 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10128else
10129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10130for as_dir in $PATH
10131do
10132 IFS=$as_save_IFS
10133 test -z "$as_dir" && as_dir=.
10134 for ac_exec_ext in '' $ac_executable_extensions; do
10135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10136 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10138 break 2
10139 fi
10140done
10141 done
10142IFS=$as_save_IFS
9c60689e 10143
a243b558
JF
10144fi
10145fi
10146OTOOL64=$ac_cv_prog_OTOOL64
10147if test -n "$OTOOL64"; then
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10149$as_echo "$OTOOL64" >&6; }
10150else
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10152$as_echo "no" >&6; }
10153fi
9c60689e 10154
9c60689e 10155
a243b558
JF
10156fi
10157if test -z "$ac_cv_prog_OTOOL64"; then
10158 ac_ct_OTOOL64=$OTOOL64
10159 # Extract the first word of "otool64", so it can be a program name with args.
10160set dummy otool64; ac_word=$2
10161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10162$as_echo_n "checking for $ac_word... " >&6; }
10163if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10164 $as_echo_n "(cached) " >&6
10165else
10166 if test -n "$ac_ct_OTOOL64"; then
10167 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10168else
10169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10170for as_dir in $PATH
10171do
10172 IFS=$as_save_IFS
10173 test -z "$as_dir" && as_dir=.
10174 for ac_exec_ext in '' $ac_executable_extensions; do
10175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10176 ac_cv_prog_ac_ct_OTOOL64="otool64"
10177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10178 break 2
10179 fi
10180done
10181 done
10182IFS=$as_save_IFS
9c60689e 10183
a243b558
JF
10184fi
10185fi
10186ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10187if test -n "$ac_ct_OTOOL64"; then
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10189$as_echo "$ac_ct_OTOOL64" >&6; }
10190else
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10192$as_echo "no" >&6; }
10193fi
9c60689e 10194
a243b558
JF
10195 if test "x$ac_ct_OTOOL64" = x; then
10196 OTOOL64=":"
10197 else
10198 case $cross_compiling:$ac_tool_warned in
10199yes:)
10200{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10201$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10202ac_tool_warned=yes ;;
10203esac
10204 OTOOL64=$ac_ct_OTOOL64
10205 fi
10206else
10207 OTOOL64="$ac_cv_prog_OTOOL64"
10208fi
ee134472 10209
9c60689e 10210
9c60689e 10211
9c60689e 10212
9c60689e 10213
9c60689e 10214
ee134472 10215
9c60689e 10216
9c60689e 10217
9c60689e 10218
9c60689e 10219
9c60689e 10220
9c60689e 10221
9c60689e 10222
9c60689e 10223
9c60689e 10224
9c60689e 10225
9c60689e 10226
9c60689e 10227
9c60689e 10228
9c60689e 10229
9c60689e 10230
9c60689e 10231
9c60689e 10232
9c60689e 10233
a243b558
JF
10234
10235
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10237$as_echo_n "checking for -single_module linker flag... " >&6; }
10238if ${lt_cv_apple_cc_single_mod+:} false; then :
ee134472
JF
10239 $as_echo_n "(cached) " >&6
10240else
a243b558 10241 lt_cv_apple_cc_single_mod=no
9d54db95 10242 if test -z "$LT_MULTI_MODULE"; then
a243b558
JF
10243 # By default we will add the -single_module flag. You can override
10244 # by either setting the environment variable LT_MULTI_MODULE
10245 # non-empty at configure time, or by adding -multi_module to the
10246 # link flags.
10247 rm -rf libconftest.dylib*
10248 echo "int foo(void){return 1;}" > conftest.c
10249 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10250-dynamiclib -Wl,-single_module conftest.c" >&5
10251 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10252 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10253 _lt_result=$?
10254 # If there is a non-empty error log, and "single_module"
10255 # appears in it, assume the flag caused a linker warning
10256 if test -s conftest.err && $GREP single_module conftest.err; then
10257 cat conftest.err >&5
10258 # Otherwise, if the output was created with a 0 exit code from
10259 # the compiler, it worked.
9d54db95 10260 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
a243b558
JF
10261 lt_cv_apple_cc_single_mod=yes
10262 else
10263 cat conftest.err >&5
10264 fi
10265 rm -rf libconftest.dylib*
10266 rm -f conftest.*
10267 fi
ee134472 10268fi
a243b558
JF
10269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10270$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9c60689e 10271
a243b558
JF
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10273$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10274if ${lt_cv_ld_exported_symbols_list+:} false; then :
9c60689e
DWT
10275 $as_echo_n "(cached) " >&6
10276else
a243b558
JF
10277 lt_cv_ld_exported_symbols_list=no
10278 save_LDFLAGS=$LDFLAGS
10279 echo "_main" > conftest.sym
10280 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10282/* end confdefs.h. */
9c60689e 10283
a243b558
JF
10284int
10285main ()
10286{
9c60689e 10287
a243b558
JF
10288 ;
10289 return 0;
10290}
10291_ACEOF
10292if ac_fn_c_try_link "$LINENO"; then :
10293 lt_cv_ld_exported_symbols_list=yes
9c60689e 10294else
a243b558 10295 lt_cv_ld_exported_symbols_list=no
9c60689e 10296fi
a243b558
JF
10297rm -f core conftest.err conftest.$ac_objext \
10298 conftest$ac_exeext conftest.$ac_ext
9d54db95 10299 LDFLAGS=$save_LDFLAGS
9c60689e
DWT
10300
10301fi
a243b558
JF
10302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10303$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9c60689e 10304
a243b558
JF
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10306$as_echo_n "checking for -force_load linker flag... " >&6; }
10307if ${lt_cv_ld_force_load+:} false; then :
9c60689e
DWT
10308 $as_echo_n "(cached) " >&6
10309else
a243b558
JF
10310 lt_cv_ld_force_load=no
10311 cat > conftest.c << _LT_EOF
10312int forced_loaded() { return 2;}
10313_LT_EOF
10314 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10315 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10316 echo "$AR cru libconftest.a conftest.o" >&5
10317 $AR cru libconftest.a conftest.o 2>&5
10318 echo "$RANLIB libconftest.a" >&5
10319 $RANLIB libconftest.a 2>&5
10320 cat > conftest.c << _LT_EOF
10321int main() { return 0;}
10322_LT_EOF
10323 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10324 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10325 _lt_result=$?
10326 if test -s conftest.err && $GREP force_load conftest.err; then
10327 cat conftest.err >&5
9d54db95 10328 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
a243b558
JF
10329 lt_cv_ld_force_load=yes
10330 else
10331 cat conftest.err >&5
10332 fi
10333 rm -f conftest.err libconftest.a conftest conftest.c
10334 rm -rf conftest.dSYM
9c60689e
DWT
10335
10336fi
a243b558
JF
10337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10338$as_echo "$lt_cv_ld_force_load" >&6; }
10339 case $host_os in
10340 rhapsody* | darwin1.[012])
9d54db95 10341 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
a243b558 10342 darwin1.*)
9d54db95 10343 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
a243b558
JF
10344 darwin*) # darwin 5.x on
10345 # if running on 10.5 or later, the deployment target defaults
10346 # to the OS version, if on x86, and 10.4, the deployment
10347 # target defaults to 10.4. Don't you love it?
10348 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10349 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9d54db95
JF
10350 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10351 10.[012][,.]*)
10352 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
a243b558 10353 10.*)
9d54db95 10354 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
a243b558
JF
10355 esac
10356 ;;
10357 esac
9d54db95 10358 if test yes = "$lt_cv_apple_cc_single_mod"; then
a243b558
JF
10359 _lt_dar_single_mod='$single_module'
10360 fi
9d54db95
JF
10361 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10362 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
a243b558 10363 else
9d54db95 10364 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
a243b558 10365 fi
9d54db95 10366 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
a243b558
JF
10367 _lt_dsymutil='~$DSYMUTIL $lib || :'
10368 else
10369 _lt_dsymutil=
10370 fi
10371 ;;
10372 esac
9c60689e 10373
9d54db95
JF
10374# func_munge_path_list VARIABLE PATH
10375# -----------------------------------
10376# VARIABLE is name of variable containing _space_ separated list of
10377# directories to be munged by the contents of PATH, which is string
10378# having a format:
10379# "DIR[:DIR]:"
10380# string "DIR[ DIR]" will be prepended to VARIABLE
10381# ":DIR[:DIR]"
10382# string "DIR[ DIR]" will be appended to VARIABLE
10383# "DIRP[:DIRP]::[DIRA:]DIRA"
10384# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10385# "DIRA[ DIRA]" will be appended to VARIABLE
10386# "DIR[:DIR]"
10387# VARIABLE will be replaced by "DIR[ DIR]"
10388func_munge_path_list ()
10389{
10390 case x$2 in
10391 x)
10392 ;;
10393 *:)
10394 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10395 ;;
10396 x:*)
10397 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10398 ;;
10399 *::*)
10400 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10401 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10402 ;;
10403 *)
10404 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10405 ;;
10406 esac
10407}
10408
9c60689e 10409
a243b558
JF
10410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10411$as_echo_n "checking for ANSI C header files... " >&6; }
10412if ${ac_cv_header_stdc+:} false; then :
9c60689e
DWT
10413 $as_echo_n "(cached) " >&6
10414else
a243b558
JF
10415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10416/* end confdefs.h. */
10417#include <stdlib.h>
10418#include <stdarg.h>
10419#include <string.h>
10420#include <float.h>
9c60689e 10421
a243b558
JF
10422int
10423main ()
10424{
9c60689e 10425
a243b558
JF
10426 ;
10427 return 0;
10428}
10429_ACEOF
10430if ac_fn_c_try_compile "$LINENO"; then :
10431 ac_cv_header_stdc=yes
10432else
10433 ac_cv_header_stdc=no
9c60689e 10434fi
a243b558
JF
10435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10436
10437if test $ac_cv_header_stdc = yes; then
10438 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10440/* end confdefs.h. */
10441#include <string.h>
9c60689e 10442
a243b558
JF
10443_ACEOF
10444if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10445 $EGREP "memchr" >/dev/null 2>&1; then :
9c60689e 10446
a243b558
JF
10447else
10448 ac_cv_header_stdc=no
10449fi
10450rm -f conftest*
9c60689e 10451
a243b558
JF
10452fi
10453
10454if test $ac_cv_header_stdc = yes; then
10455 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10457/* end confdefs.h. */
10458#include <stdlib.h>
10459
10460_ACEOF
10461if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10462 $EGREP "free" >/dev/null 2>&1; then :
9c60689e 10463
9c60689e 10464else
a243b558 10465 ac_cv_header_stdc=no
9c60689e 10466fi
a243b558 10467rm -f conftest*
9c60689e 10468
a243b558 10469fi
9c60689e 10470
a243b558
JF
10471if test $ac_cv_header_stdc = yes; then
10472 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10473 if test "$cross_compiling" = yes; then :
10474 :
10475else
10476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10477/* end confdefs.h. */
10478#include <ctype.h>
10479#include <stdlib.h>
10480#if ((' ' & 0x0FF) == 0x020)
10481# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10482# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10483#else
10484# define ISLOWER(c) \
10485 (('a' <= (c) && (c) <= 'i') \
10486 || ('j' <= (c) && (c) <= 'r') \
10487 || ('s' <= (c) && (c) <= 'z'))
10488# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10489#endif
9c60689e 10490
a243b558
JF
10491#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10492int
10493main ()
10494{
10495 int i;
10496 for (i = 0; i < 256; i++)
10497 if (XOR (islower (i), ISLOWER (i))
10498 || toupper (i) != TOUPPER (i))
10499 return 2;
10500 return 0;
10501}
10502_ACEOF
10503if ac_fn_c_try_run "$LINENO"; then :
9c60689e 10504
a243b558
JF
10505else
10506 ac_cv_header_stdc=no
10507fi
10508rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10509 conftest.$ac_objext conftest.beam conftest.$ac_ext
10510fi
9c60689e 10511
a243b558
JF
10512fi
10513fi
10514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10515$as_echo "$ac_cv_header_stdc" >&6; }
10516if test $ac_cv_header_stdc = yes; then
9c60689e 10517
a243b558 10518$as_echo "#define STDC_HEADERS 1" >>confdefs.h
9c60689e 10519
a243b558 10520fi
9c60689e 10521
a243b558
JF
10522# On IRIX 5.3, sys/types and inttypes.h are conflicting.
10523for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10524 inttypes.h stdint.h unistd.h
10525do :
10526 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10527ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10528"
10529if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10530 cat >>confdefs.h <<_ACEOF
10531#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10532_ACEOF
9c60689e 10533
a243b558 10534fi
ee134472 10535
a243b558 10536done
ee134472 10537
9c60689e 10538
a243b558
JF
10539for ac_header in dlfcn.h
10540do :
10541 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10542"
10543if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10544 cat >>confdefs.h <<_ACEOF
10545#define HAVE_DLFCN_H 1
10546_ACEOF
9c60689e 10547
a243b558 10548fi
9c60689e 10549
a243b558 10550done
9c60689e 10551
9c60689e 10552
9c60689e 10553
9c60689e 10554
a243b558
JF
10555func_stripname_cnf ()
10556{
9d54db95
JF
10557 case $2 in
10558 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
10559 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
a243b558
JF
10560 esac
10561} # func_stripname_cnf
9c60689e 10562
9c60689e 10563
ee134472 10564
a243b558
JF
10565
10566
10567# Set options
10568# Check whether --enable-static was given.
10569if test "${enable_static+set}" = set; then :
10570 enableval=$enable_static; p=${PACKAGE-default}
10571 case $enableval in
10572 yes) enable_static=yes ;;
10573 no) enable_static=no ;;
10574 *)
10575 enable_static=no
10576 # Look at the argument we got. We use all the common list separators.
9d54db95 10577 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
a243b558 10578 for pkg in $enableval; do
9d54db95 10579 IFS=$lt_save_ifs
a243b558
JF
10580 if test "X$pkg" = "X$p"; then
10581 enable_static=yes
10582 fi
10583 done
9d54db95 10584 IFS=$lt_save_ifs
9c60689e 10585 ;;
a243b558
JF
10586 esac
10587else
10588 enable_static=no
10589fi
9c60689e 10590
9c60689e 10591
9c60689e 10592
9c60689e 10593
9c60689e 10594
9c60689e 10595
9c60689e 10596
9c60689e 10597
9c60689e 10598
9c60689e 10599
a243b558 10600 enable_dlopen=no
9c60689e 10601
9c60689e 10602
a243b558
JF
10603 enable_win32_dll=no
10604
10605
10606 # Check whether --enable-shared was given.
10607if test "${enable_shared+set}" = set; then :
10608 enableval=$enable_shared; p=${PACKAGE-default}
10609 case $enableval in
10610 yes) enable_shared=yes ;;
10611 no) enable_shared=no ;;
9c60689e 10612 *)
a243b558
JF
10613 enable_shared=no
10614 # Look at the argument we got. We use all the common list separators.
9d54db95 10615 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
a243b558 10616 for pkg in $enableval; do
9d54db95 10617 IFS=$lt_save_ifs
a243b558
JF
10618 if test "X$pkg" = "X$p"; then
10619 enable_shared=yes
10620 fi
10621 done
9d54db95 10622 IFS=$lt_save_ifs
9c60689e
DWT
10623 ;;
10624 esac
a243b558
JF
10625else
10626 enable_shared=yes
10627fi
9c60689e 10628
9c60689e 10629
9c60689e 10630
9c60689e 10631
9c60689e 10632
9c60689e 10633
9c60689e 10634
9c60689e 10635
9c60689e 10636
9c60689e 10637
9c60689e 10638
a243b558
JF
10639# Check whether --with-pic was given.
10640if test "${with_pic+set}" = set; then :
10641 withval=$with_pic; lt_p=${PACKAGE-default}
10642 case $withval in
10643 yes|no) pic_mode=$withval ;;
10644 *)
10645 pic_mode=default
10646 # Look at the argument we got. We use all the common list separators.
9d54db95 10647 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
a243b558 10648 for lt_pkg in $withval; do
9d54db95 10649 IFS=$lt_save_ifs
a243b558
JF
10650 if test "X$lt_pkg" = "X$lt_p"; then
10651 pic_mode=yes
10652 fi
10653 done
9d54db95 10654 IFS=$lt_save_ifs
a243b558
JF
10655 ;;
10656 esac
10657else
10658 pic_mode=default
9c60689e 10659fi
ee134472 10660
ee134472 10661
9c60689e 10662
9c60689e 10663
9c60689e 10664
ee134472 10665
ee134472 10666
9c60689e 10667
a243b558
JF
10668 # Check whether --enable-fast-install was given.
10669if test "${enable_fast_install+set}" = set; then :
10670 enableval=$enable_fast_install; p=${PACKAGE-default}
10671 case $enableval in
10672 yes) enable_fast_install=yes ;;
10673 no) enable_fast_install=no ;;
10674 *)
10675 enable_fast_install=no
10676 # Look at the argument we got. We use all the common list separators.
9d54db95 10677 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
a243b558 10678 for pkg in $enableval; do
9d54db95 10679 IFS=$lt_save_ifs
a243b558
JF
10680 if test "X$pkg" = "X$p"; then
10681 enable_fast_install=yes
9c60689e 10682 fi
a243b558 10683 done
9d54db95 10684 IFS=$lt_save_ifs
9c60689e 10685 ;;
a243b558
JF
10686 esac
10687else
10688 enable_fast_install=yes
10689fi
9c60689e 10690
9c60689e 10691
9c60689e 10692
9c60689e 10693
9c60689e
DWT
10694
10695
53ba6704 10696
9c60689e 10697
9d54db95
JF
10698 shared_archive_member_spec=
10699case $host,$enable_shared in
10700power*-*-aix[5-9]*,yes)
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
10702$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
10703
10704# Check whether --with-aix-soname was given.
10705if test "${with_aix_soname+set}" = set; then :
10706 withval=$with_aix_soname; case $withval in
10707 aix|svr4|both)
10708 ;;
10709 *)
10710 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
10711 ;;
10712 esac
10713 lt_cv_with_aix_soname=$with_aix_soname
10714else
10715 if ${lt_cv_with_aix_soname+:} false; then :
10716 $as_echo_n "(cached) " >&6
10717else
10718 lt_cv_with_aix_soname=aix
10719fi
10720
10721 with_aix_soname=$lt_cv_with_aix_soname
10722fi
10723
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
10725$as_echo "$with_aix_soname" >&6; }
10726 if test aix != "$with_aix_soname"; then
10727 # For the AIX way of multilib, we name the shared archive member
10728 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10729 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10730 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10731 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10732 if test 64 = "${OBJECT_MODE-32}"; then
10733 shared_archive_member_spec=shr_64
10734 else
10735 shared_archive_member_spec=shr
10736 fi
10737 fi
10738 ;;
10739*)
10740 with_aix_soname=aix
10741 ;;
10742esac
10743
10744
10745
10746
10747
10748
10749
9c60689e 10750
9c60689e 10751
9c60689e 10752
a243b558 10753# This can be used to rebuild libtool when needed
9d54db95 10754LIBTOOL_DEPS=$ltmain
9c60689e 10755
a243b558
JF
10756# Always use our own libtool.
10757LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9c60689e 10758
9c60689e 10759
9c60689e 10760
9c60689e 10761
9c60689e 10762
ee134472 10763
ee134472 10764
ee134472 10765
ee134472 10766
9c60689e 10767
9c60689e 10768
9c60689e 10769
9c60689e 10770
9c60689e 10771
9c60689e 10772
9c60689e 10773
9c60689e 10774
9c60689e 10775
9c60689e 10776
9c60689e 10777
9c60689e 10778
9c60689e 10779
9c60689e 10780
9c60689e 10781
9c60689e 10782
9c60689e 10783
9c60689e 10784
9c60689e 10785
9c60689e 10786
9c60689e 10787
a243b558 10788test -z "$LN_S" && LN_S="ln -s"
9c60689e
DWT
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
9d54db95 10803if test -n "${ZSH_VERSION+set}"; then
a243b558
JF
10804 setopt NO_GLOB_SUBST
10805fi
9c60689e 10806
a243b558
JF
10807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10808$as_echo_n "checking for objdir... " >&6; }
10809if ${lt_cv_objdir+:} false; then :
ee134472
JF
10810 $as_echo_n "(cached) " >&6
10811else
a243b558
JF
10812 rm -f .libs 2>/dev/null
10813mkdir .libs 2>/dev/null
10814if test -d .libs; then
10815 lt_cv_objdir=.libs
10816else
10817 # MS-DOS does not allow filenames that begin with a dot.
10818 lt_cv_objdir=_libs
ee134472 10819fi
a243b558
JF
10820rmdir .libs 2>/dev/null
10821fi
10822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10823$as_echo "$lt_cv_objdir" >&6; }
10824objdir=$lt_cv_objdir
9c60689e
DWT
10825
10826
10827
10828
10829
a243b558
JF
10830cat >>confdefs.h <<_ACEOF
10831#define LT_OBJDIR "$lt_cv_objdir/"
10832_ACEOF
9c60689e
DWT
10833
10834
10835
10836
a243b558
JF
10837case $host_os in
10838aix3*)
10839 # AIX sometimes has problems with the GCC collect2 program. For some
10840 # reason, if we set the COLLECT_NAMES environment variable, the problems
10841 # vanish in a puff of smoke.
9d54db95 10842 if test set != "${COLLECT_NAMES+set}"; then
a243b558
JF
10843 COLLECT_NAMES=
10844 export COLLECT_NAMES
10845 fi
10846 ;;
10847esac
9c60689e 10848
a243b558
JF
10849# Global variables:
10850ofile=libtool
10851can_build_shared=yes
9c60689e 10852
9d54db95 10853# All known linkers require a '.a' archive for static linking (except MSVC,
a243b558
JF
10854# which needs '.lib').
10855libext=a
9c60689e 10856
9d54db95 10857with_gnu_ld=$lt_cv_prog_gnu_ld
9c60689e 10858
9d54db95
JF
10859old_CC=$CC
10860old_CFLAGS=$CFLAGS
9c60689e 10861
a243b558
JF
10862# Set sane defaults for various variables
10863test -z "$CC" && CC=cc
10864test -z "$LTCC" && LTCC=$CC
10865test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10866test -z "$LD" && LD=ld
10867test -z "$ac_objext" && ac_objext=o
9c60689e 10868
9d54db95
JF
10869func_cc_basename $compiler
10870cc_basename=$func_cc_basename_result
9c60689e
DWT
10871
10872
a243b558
JF
10873# Only perform the check for file, if the check method requires it
10874test -z "$MAGIC_CMD" && MAGIC_CMD=file
10875case $deplibs_check_method in
10876file_magic*)
10877 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10879$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10880if ${lt_cv_path_MAGIC_CMD+:} false; then :
10881 $as_echo_n "(cached) " >&6
10882else
10883 case $MAGIC_CMD in
10884[\\/*] | ?:[\\/]*)
9d54db95 10885 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
a243b558
JF
10886 ;;
10887*)
9d54db95
JF
10888 lt_save_MAGIC_CMD=$MAGIC_CMD
10889 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
a243b558
JF
10890 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10891 for ac_dir in $ac_dummy; do
9d54db95 10892 IFS=$lt_save_ifs
a243b558 10893 test -z "$ac_dir" && ac_dir=.
9d54db95
JF
10894 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10895 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
a243b558
JF
10896 if test -n "$file_magic_test_file"; then
10897 case $deplibs_check_method in
10898 "file_magic "*)
10899 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9d54db95 10900 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
a243b558
JF
10901 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10902 $EGREP "$file_magic_regex" > /dev/null; then
10903 :
10904 else
10905 cat <<_LT_EOF 1>&2
9c60689e 10906
a243b558
JF
10907*** Warning: the command libtool uses to detect shared libraries,
10908*** $file_magic_cmd, produces output that libtool cannot recognize.
10909*** The result is that libtool may fail to recognize shared libraries
10910*** as such. This will affect the creation of libtool libraries that
10911*** depend on shared libraries, but programs linked with such libtool
10912*** libraries will work regardless of this problem. Nevertheless, you
10913*** may want to report the problem to your system manager and/or to
10914*** bug-libtool@gnu.org
9c60689e 10915
a243b558
JF
10916_LT_EOF
10917 fi ;;
10918 esac
10919 fi
10920 break
10921 fi
10922 done
9d54db95
JF
10923 IFS=$lt_save_ifs
10924 MAGIC_CMD=$lt_save_MAGIC_CMD
a243b558
JF
10925 ;;
10926esac
10927fi
9c60689e 10928
9d54db95 10929MAGIC_CMD=$lt_cv_path_MAGIC_CMD
a243b558
JF
10930if test -n "$MAGIC_CMD"; then
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10932$as_echo "$MAGIC_CMD" >&6; }
10933else
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10935$as_echo "no" >&6; }
10936fi
9c60689e
DWT
10937
10938
10939
10940
10941
a243b558
JF
10942if test -z "$lt_cv_path_MAGIC_CMD"; then
10943 if test -n "$ac_tool_prefix"; then
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10945$as_echo_n "checking for file... " >&6; }
10946if ${lt_cv_path_MAGIC_CMD+:} false; then :
10947 $as_echo_n "(cached) " >&6
10948else
10949 case $MAGIC_CMD in
10950[\\/*] | ?:[\\/]*)
9d54db95 10951 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
a243b558
JF
10952 ;;
10953*)
9d54db95
JF
10954 lt_save_MAGIC_CMD=$MAGIC_CMD
10955 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
a243b558
JF
10956 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10957 for ac_dir in $ac_dummy; do
9d54db95 10958 IFS=$lt_save_ifs
a243b558 10959 test -z "$ac_dir" && ac_dir=.
9d54db95
JF
10960 if test -f "$ac_dir/file"; then
10961 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
a243b558
JF
10962 if test -n "$file_magic_test_file"; then
10963 case $deplibs_check_method in
10964 "file_magic "*)
10965 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9d54db95 10966 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
a243b558
JF
10967 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10968 $EGREP "$file_magic_regex" > /dev/null; then
10969 :
10970 else
10971 cat <<_LT_EOF 1>&2
9c60689e 10972
a243b558
JF
10973*** Warning: the command libtool uses to detect shared libraries,
10974*** $file_magic_cmd, produces output that libtool cannot recognize.
10975*** The result is that libtool may fail to recognize shared libraries
10976*** as such. This will affect the creation of libtool libraries that
10977*** depend on shared libraries, but programs linked with such libtool
10978*** libraries will work regardless of this problem. Nevertheless, you
10979*** may want to report the problem to your system manager and/or to
10980*** bug-libtool@gnu.org
9c60689e 10981
a243b558
JF
10982_LT_EOF
10983 fi ;;
10984 esac
10985 fi
10986 break
10987 fi
10988 done
9d54db95
JF
10989 IFS=$lt_save_ifs
10990 MAGIC_CMD=$lt_save_MAGIC_CMD
a243b558
JF
10991 ;;
10992esac
10993fi
9c60689e 10994
9d54db95 10995MAGIC_CMD=$lt_cv_path_MAGIC_CMD
a243b558
JF
10996if test -n "$MAGIC_CMD"; then
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10998$as_echo "$MAGIC_CMD" >&6; }
10999else
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11001$as_echo "no" >&6; }
11002fi
9c60689e
DWT
11003
11004
a243b558
JF
11005 else
11006 MAGIC_CMD=:
11007 fi
11008fi
9c60689e 11009
a243b558
JF
11010 fi
11011 ;;
11012esac
9c60689e 11013
a243b558 11014# Use C for the default configuration in the libtool script
9c60689e 11015
9d54db95 11016lt_save_CC=$CC
a243b558
JF
11017ac_ext=c
11018ac_cpp='$CPP $CPPFLAGS'
11019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11021ac_compiler_gnu=$ac_cv_c_compiler_gnu
9c60689e
DWT
11022
11023
a243b558
JF
11024# Source file extension for C test sources.
11025ac_ext=c
9c60689e 11026
a243b558
JF
11027# Object file extension for compiled C test sources.
11028objext=o
11029objext=$objext
9c60689e 11030
a243b558
JF
11031# Code to be used in simple compile tests
11032lt_simple_compile_test_code="int some_variable = 0;"
9c60689e 11033
a243b558
JF
11034# Code to be used in simple link tests
11035lt_simple_link_test_code='int main(){return(0);}'
9c60689e
DWT
11036
11037
11038
11039
11040
11041
11042
a243b558
JF
11043# If no C compiler was specified, use CC.
11044LTCC=${LTCC-"$CC"}
9c60689e 11045
a243b558
JF
11046# If no C compiler flags were specified, use CFLAGS.
11047LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9c60689e 11048
a243b558
JF
11049# Allow CC to be a program name with arguments.
11050compiler=$CC
9c60689e 11051
a243b558
JF
11052# Save the default compiler, since it gets overwritten when the other
11053# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11054compiler_DEFAULT=$CC
9c60689e 11055
a243b558
JF
11056# save warnings/boilerplate of simple test code
11057ac_outfile=conftest.$ac_objext
11058echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11059eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11060_lt_compiler_boilerplate=`cat conftest.err`
00a96142 11061$RM -r conftest*
9c60689e 11062
a243b558
JF
11063ac_outfile=conftest.$ac_objext
11064echo "$lt_simple_link_test_code" >conftest.$ac_ext
11065eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11066_lt_linker_boilerplate=`cat conftest.err`
11067$RM -r conftest*
9c60689e
DWT
11068
11069
a243b558
JF
11070## CAVEAT EMPTOR:
11071## There is no encapsulation within the following macros, do not change
11072## the running order or otherwise move them around unless you know exactly
11073## what you are doing...
11074if test -n "$compiler"; then
9c60689e 11075
a243b558 11076lt_prog_compiler_no_builtin_flag=
9c60689e 11077
9d54db95 11078if test yes = "$GCC"; then
a243b558
JF
11079 case $cc_basename in
11080 nvcc*)
11081 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11082 *)
11083 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11084 esac
9c60689e 11085
a243b558
JF
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11087$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11088if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11089 $as_echo_n "(cached) " >&6
11090else
11091 lt_cv_prog_compiler_rtti_exceptions=no
11092 ac_outfile=conftest.$ac_objext
11093 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9d54db95 11094 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
a243b558
JF
11095 # Insert the option either (1) after the last *FLAGS variable, or
11096 # (2) before a word containing "conftest.", or (3) at the end.
11097 # Note that $ac_compile itself does not contain backslashes and begins
11098 # with a dollar sign (not a hyphen), so the echo should work correctly.
11099 # The option is referenced via a variable to avoid confusing sed.
11100 lt_compile=`echo "$ac_compile" | $SED \
11101 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11102 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11103 -e 's:$: $lt_compiler_flag:'`
11104 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11105 (eval "$lt_compile" 2>conftest.err)
11106 ac_status=$?
11107 cat conftest.err >&5
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 if (exit $ac_status) && test -s "$ac_outfile"; then
11110 # The compiler can only warn and ignore the option if not recognized
11111 # So say no if there are warnings other than the usual output.
11112 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11113 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11114 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11115 lt_cv_prog_compiler_rtti_exceptions=yes
11116 fi
11117 fi
00a96142 11118 $RM -r conftest*
9c60689e 11119
a243b558
JF
11120fi
11121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11122$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9c60689e 11123
9d54db95 11124if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
a243b558
JF
11125 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11126else
11127 :
11128fi
9c60689e 11129
a243b558 11130fi
9c60689e
DWT
11131
11132
11133
11134
11135
11136
a243b558
JF
11137 lt_prog_compiler_wl=
11138lt_prog_compiler_pic=
11139lt_prog_compiler_static=
9c60689e
DWT
11140
11141
9d54db95 11142 if test yes = "$GCC"; then
a243b558
JF
11143 lt_prog_compiler_wl='-Wl,'
11144 lt_prog_compiler_static='-static'
9c60689e 11145
a243b558
JF
11146 case $host_os in
11147 aix*)
11148 # All AIX code is PIC.
9d54db95 11149 if test ia64 = "$host_cpu"; then
a243b558
JF
11150 # AIX 5 now supports IA64 processor
11151 lt_prog_compiler_static='-Bstatic'
11152 fi
9d54db95 11153 lt_prog_compiler_pic='-fPIC'
a243b558 11154 ;;
9c60689e 11155
a243b558
JF
11156 amigaos*)
11157 case $host_cpu in
11158 powerpc)
11159 # see comment about AmigaOS4 .so support
11160 lt_prog_compiler_pic='-fPIC'
11161 ;;
11162 m68k)
11163 # FIXME: we need at least 68020 code to build shared libraries, but
9d54db95
JF
11164 # adding the '-m68020' flag to GCC prevents building anything better,
11165 # like '-m68040'.
a243b558
JF
11166 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11167 ;;
11168 esac
11169 ;;
9c60689e 11170
a243b558
JF
11171 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11172 # PIC is the default for these OSes.
11173 ;;
9c60689e 11174
a243b558
JF
11175 mingw* | cygwin* | pw32* | os2* | cegcc*)
11176 # This hack is so that the source file can tell whether it is being
11177 # built for inclusion in a dll (and should export symbols for example).
11178 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11179 # (--disable-auto-import) libraries
11180 lt_prog_compiler_pic='-DDLL_EXPORT'
9d54db95
JF
11181 case $host_os in
11182 os2*)
11183 lt_prog_compiler_static='$wl-static'
11184 ;;
11185 esac
a243b558 11186 ;;
9c60689e 11187
a243b558
JF
11188 darwin* | rhapsody*)
11189 # PIC is the default on this platform
11190 # Common symbols not allowed in MH_DYLIB files
11191 lt_prog_compiler_pic='-fno-common'
11192 ;;
9c60689e 11193
a243b558
JF
11194 haiku*)
11195 # PIC is the default for Haiku.
11196 # The "-static" flag exists, but is broken.
11197 lt_prog_compiler_static=
11198 ;;
9c60689e 11199
a243b558
JF
11200 hpux*)
11201 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11202 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11203 # sets the default TLS model and affects inlining.
11204 case $host_cpu in
11205 hppa*64*)
11206 # +Z the default
11207 ;;
11208 *)
11209 lt_prog_compiler_pic='-fPIC'
11210 ;;
11211 esac
11212 ;;
9c60689e 11213
a243b558
JF
11214 interix[3-9]*)
11215 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11216 # Instead, we relocate shared libraries at runtime.
11217 ;;
9c60689e 11218
a243b558
JF
11219 msdosdjgpp*)
11220 # Just because we use GCC doesn't mean we suddenly get shared libraries
11221 # on systems that don't support them.
11222 lt_prog_compiler_can_build_shared=no
11223 enable_shared=no
11224 ;;
9c60689e 11225
a243b558
JF
11226 *nto* | *qnx*)
11227 # QNX uses GNU C++, but need to define -shared option too, otherwise
11228 # it will coredump.
11229 lt_prog_compiler_pic='-fPIC -shared'
11230 ;;
9c60689e 11231
a243b558
JF
11232 sysv4*MP*)
11233 if test -d /usr/nec; then
11234 lt_prog_compiler_pic=-Kconform_pic
11235 fi
11236 ;;
9c60689e 11237
a243b558
JF
11238 *)
11239 lt_prog_compiler_pic='-fPIC'
11240 ;;
11241 esac
9c60689e 11242
a243b558
JF
11243 case $cc_basename in
11244 nvcc*) # Cuda Compiler Driver 2.2
11245 lt_prog_compiler_wl='-Xlinker '
11246 if test -n "$lt_prog_compiler_pic"; then
11247 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11248 fi
11249 ;;
11250 esac
11251 else
11252 # PORTME Check for flag to pass linker flags through the system compiler.
11253 case $host_os in
11254 aix*)
11255 lt_prog_compiler_wl='-Wl,'
9d54db95 11256 if test ia64 = "$host_cpu"; then
a243b558
JF
11257 # AIX 5 now supports IA64 processor
11258 lt_prog_compiler_static='-Bstatic'
11259 else
11260 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11261 fi
11262 ;;
9c60689e 11263
9d54db95
JF
11264 darwin* | rhapsody*)
11265 # PIC is the default on this platform
11266 # Common symbols not allowed in MH_DYLIB files
11267 lt_prog_compiler_pic='-fno-common'
11268 case $cc_basename in
11269 nagfor*)
11270 # NAG Fortran compiler
11271 lt_prog_compiler_wl='-Wl,-Wl,,'
11272 lt_prog_compiler_pic='-PIC'
11273 lt_prog_compiler_static='-Bstatic'
11274 ;;
11275 esac
11276 ;;
11277
a243b558
JF
11278 mingw* | cygwin* | pw32* | os2* | cegcc*)
11279 # This hack is so that the source file can tell whether it is being
11280 # built for inclusion in a dll (and should export symbols for example).
11281 lt_prog_compiler_pic='-DDLL_EXPORT'
9d54db95
JF
11282 case $host_os in
11283 os2*)
11284 lt_prog_compiler_static='$wl-static'
11285 ;;
11286 esac
a243b558 11287 ;;
9c60689e 11288
a243b558
JF
11289 hpux9* | hpux10* | hpux11*)
11290 lt_prog_compiler_wl='-Wl,'
11291 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11292 # not for PA HP-UX.
11293 case $host_cpu in
11294 hppa*64*|ia64*)
11295 # +Z the default
11296 ;;
11297 *)
11298 lt_prog_compiler_pic='+Z'
11299 ;;
11300 esac
11301 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9d54db95 11302 lt_prog_compiler_static='$wl-a ${wl}archive'
a243b558 11303 ;;
9c60689e 11304
a243b558
JF
11305 irix5* | irix6* | nonstopux*)
11306 lt_prog_compiler_wl='-Wl,'
11307 # PIC (with -KPIC) is the default.
11308 lt_prog_compiler_static='-non_shared'
11309 ;;
9c60689e 11310
9d54db95 11311 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
a243b558 11312 case $cc_basename in
9d54db95 11313 # old Intel for x86_64, which still supported -KPIC.
a243b558
JF
11314 ecc*)
11315 lt_prog_compiler_wl='-Wl,'
11316 lt_prog_compiler_pic='-KPIC'
11317 lt_prog_compiler_static='-static'
11318 ;;
11319 # icc used to be incompatible with GCC.
11320 # ICC 10 doesn't accept -KPIC any more.
11321 icc* | ifort*)
11322 lt_prog_compiler_wl='-Wl,'
11323 lt_prog_compiler_pic='-fPIC'
11324 lt_prog_compiler_static='-static'
11325 ;;
11326 # Lahey Fortran 8.1.
11327 lf95*)
11328 lt_prog_compiler_wl='-Wl,'
11329 lt_prog_compiler_pic='--shared'
11330 lt_prog_compiler_static='--static'
11331 ;;
11332 nagfor*)
11333 # NAG Fortran compiler
11334 lt_prog_compiler_wl='-Wl,-Wl,,'
11335 lt_prog_compiler_pic='-PIC'
11336 lt_prog_compiler_static='-Bstatic'
11337 ;;
9d54db95
JF
11338 tcc*)
11339 # Fabrice Bellard et al's Tiny C Compiler
11340 lt_prog_compiler_wl='-Wl,'
11341 lt_prog_compiler_pic='-fPIC'
11342 lt_prog_compiler_static='-static'
11343 ;;
a243b558
JF
11344 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11345 # Portland Group compilers (*not* the Pentium gcc compiler,
11346 # which looks to be a dead project)
11347 lt_prog_compiler_wl='-Wl,'
11348 lt_prog_compiler_pic='-fpic'
11349 lt_prog_compiler_static='-Bstatic'
11350 ;;
11351 ccc*)
11352 lt_prog_compiler_wl='-Wl,'
11353 # All Alpha code is PIC.
11354 lt_prog_compiler_static='-non_shared'
11355 ;;
11356 xl* | bgxl* | bgf* | mpixl*)
11357 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11358 lt_prog_compiler_wl='-Wl,'
11359 lt_prog_compiler_pic='-qpic'
11360 lt_prog_compiler_static='-qstaticlink'
11361 ;;
11362 *)
11363 case `$CC -V 2>&1 | sed 5q` in
11364 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11365 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11366 lt_prog_compiler_pic='-KPIC'
11367 lt_prog_compiler_static='-Bstatic'
11368 lt_prog_compiler_wl=''
11369 ;;
11370 *Sun\ F* | *Sun*Fortran*)
11371 lt_prog_compiler_pic='-KPIC'
11372 lt_prog_compiler_static='-Bstatic'
11373 lt_prog_compiler_wl='-Qoption ld '
11374 ;;
11375 *Sun\ C*)
11376 # Sun C 5.9
11377 lt_prog_compiler_pic='-KPIC'
11378 lt_prog_compiler_static='-Bstatic'
11379 lt_prog_compiler_wl='-Wl,'
11380 ;;
11381 *Intel*\ [CF]*Compiler*)
11382 lt_prog_compiler_wl='-Wl,'
11383 lt_prog_compiler_pic='-fPIC'
11384 lt_prog_compiler_static='-static'
11385 ;;
11386 *Portland\ Group*)
11387 lt_prog_compiler_wl='-Wl,'
11388 lt_prog_compiler_pic='-fpic'
11389 lt_prog_compiler_static='-Bstatic'
11390 ;;
11391 esac
11392 ;;
11393 esac
11394 ;;
9c60689e 11395
a243b558
JF
11396 newsos6)
11397 lt_prog_compiler_pic='-KPIC'
11398 lt_prog_compiler_static='-Bstatic'
11399 ;;
9c60689e 11400
a243b558
JF
11401 *nto* | *qnx*)
11402 # QNX uses GNU C++, but need to define -shared option too, otherwise
11403 # it will coredump.
11404 lt_prog_compiler_pic='-fPIC -shared'
11405 ;;
9c60689e 11406
a243b558
JF
11407 osf3* | osf4* | osf5*)
11408 lt_prog_compiler_wl='-Wl,'
11409 # All OSF/1 code is PIC.
11410 lt_prog_compiler_static='-non_shared'
11411 ;;
9c60689e 11412
a243b558
JF
11413 rdos*)
11414 lt_prog_compiler_static='-non_shared'
11415 ;;
9c60689e 11416
a243b558
JF
11417 solaris*)
11418 lt_prog_compiler_pic='-KPIC'
11419 lt_prog_compiler_static='-Bstatic'
11420 case $cc_basename in
11421 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11422 lt_prog_compiler_wl='-Qoption ld ';;
11423 *)
11424 lt_prog_compiler_wl='-Wl,';;
11425 esac
11426 ;;
9c60689e 11427
a243b558
JF
11428 sunos4*)
11429 lt_prog_compiler_wl='-Qoption ld '
11430 lt_prog_compiler_pic='-PIC'
11431 lt_prog_compiler_static='-Bstatic'
11432 ;;
9c60689e 11433
a243b558
JF
11434 sysv4 | sysv4.2uw2* | sysv4.3*)
11435 lt_prog_compiler_wl='-Wl,'
11436 lt_prog_compiler_pic='-KPIC'
11437 lt_prog_compiler_static='-Bstatic'
11438 ;;
9c60689e 11439
a243b558 11440 sysv4*MP*)
9d54db95 11441 if test -d /usr/nec; then
a243b558
JF
11442 lt_prog_compiler_pic='-Kconform_pic'
11443 lt_prog_compiler_static='-Bstatic'
11444 fi
11445 ;;
9c60689e 11446
a243b558
JF
11447 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11448 lt_prog_compiler_wl='-Wl,'
11449 lt_prog_compiler_pic='-KPIC'
11450 lt_prog_compiler_static='-Bstatic'
11451 ;;
9c60689e 11452
a243b558
JF
11453 unicos*)
11454 lt_prog_compiler_wl='-Wl,'
11455 lt_prog_compiler_can_build_shared=no
11456 ;;
9c60689e 11457
a243b558
JF
11458 uts4*)
11459 lt_prog_compiler_pic='-pic'
11460 lt_prog_compiler_static='-Bstatic'
11461 ;;
9c60689e 11462
a243b558
JF
11463 *)
11464 lt_prog_compiler_can_build_shared=no
11465 ;;
11466 esac
11467 fi
9c60689e 11468
a243b558 11469case $host_os in
9d54db95 11470 # For platforms that do not support PIC, -DPIC is meaningless:
a243b558
JF
11471 *djgpp*)
11472 lt_prog_compiler_pic=
11473 ;;
11474 *)
11475 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11476 ;;
11477esac
9c60689e 11478
a243b558
JF
11479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11480$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11481if ${lt_cv_prog_compiler_pic+:} false; then :
11482 $as_echo_n "(cached) " >&6
11483else
11484 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11485fi
11486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11487$as_echo "$lt_cv_prog_compiler_pic" >&6; }
11488lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9c60689e 11489
a243b558
JF
11490#
11491# Check to make sure the PIC flag actually works.
11492#
11493if test -n "$lt_prog_compiler_pic"; then
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11495$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11496if ${lt_cv_prog_compiler_pic_works+:} false; then :
11497 $as_echo_n "(cached) " >&6
11498else
11499 lt_cv_prog_compiler_pic_works=no
11500 ac_outfile=conftest.$ac_objext
11501 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9d54db95 11502 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
a243b558
JF
11503 # Insert the option either (1) after the last *FLAGS variable, or
11504 # (2) before a word containing "conftest.", or (3) at the end.
11505 # Note that $ac_compile itself does not contain backslashes and begins
11506 # with a dollar sign (not a hyphen), so the echo should work correctly.
11507 # The option is referenced via a variable to avoid confusing sed.
11508 lt_compile=`echo "$ac_compile" | $SED \
11509 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11510 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11511 -e 's:$: $lt_compiler_flag:'`
11512 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11513 (eval "$lt_compile" 2>conftest.err)
11514 ac_status=$?
11515 cat conftest.err >&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 if (exit $ac_status) && test -s "$ac_outfile"; then
11518 # The compiler can only warn and ignore the option if not recognized
11519 # So say no if there are warnings other than the usual output.
11520 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11521 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11522 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11523 lt_cv_prog_compiler_pic_works=yes
11524 fi
11525 fi
00a96142 11526 $RM -r conftest*
9c60689e 11527
a243b558
JF
11528fi
11529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11530$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9c60689e 11531
9d54db95 11532if test yes = "$lt_cv_prog_compiler_pic_works"; then
a243b558
JF
11533 case $lt_prog_compiler_pic in
11534 "" | " "*) ;;
11535 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11536 esac
11537else
11538 lt_prog_compiler_pic=
11539 lt_prog_compiler_can_build_shared=no
11540fi
9c60689e 11541
a243b558 11542fi
9c60689e
DWT
11543
11544
11545
11546
11547
11548
9c60689e
DWT
11549
11550
11551
11552
11553
a243b558
JF
11554#
11555# Check to make sure the static flag actually works.
11556#
11557wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11559$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11560if ${lt_cv_prog_compiler_static_works+:} false; then :
11561 $as_echo_n "(cached) " >&6
11562else
11563 lt_cv_prog_compiler_static_works=no
9d54db95 11564 save_LDFLAGS=$LDFLAGS
a243b558
JF
11565 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11566 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11567 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11568 # The linker can only warn and ignore the option if not recognized
11569 # So say no if there are warnings
11570 if test -s conftest.err; then
11571 # Append any errors to the config.log.
11572 cat conftest.err 1>&5
11573 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11574 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11575 if diff conftest.exp conftest.er2 >/dev/null; then
11576 lt_cv_prog_compiler_static_works=yes
11577 fi
11578 else
11579 lt_cv_prog_compiler_static_works=yes
11580 fi
11581 fi
11582 $RM -r conftest*
9d54db95 11583 LDFLAGS=$save_LDFLAGS
9c60689e 11584
a243b558
JF
11585fi
11586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11587$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9c60689e 11588
9d54db95 11589if test yes = "$lt_cv_prog_compiler_static_works"; then
a243b558 11590 :
9c60689e 11591else
a243b558 11592 lt_prog_compiler_static=
9c60689e 11593fi
9c60689e 11594
9c60689e 11595
9c60689e 11596
9c60689e 11597
9c60689e 11598
9c60689e 11599
9c60689e 11600
a243b558
JF
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11602$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11603if ${lt_cv_prog_compiler_c_o+:} false; then :
11604 $as_echo_n "(cached) " >&6
11605else
11606 lt_cv_prog_compiler_c_o=no
11607 $RM -r conftest 2>/dev/null
11608 mkdir conftest
11609 cd conftest
11610 mkdir out
11611 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9c60689e 11612
a243b558
JF
11613 lt_compiler_flag="-o out/conftest2.$ac_objext"
11614 # Insert the option either (1) after the last *FLAGS variable, or
11615 # (2) before a word containing "conftest.", or (3) at the end.
11616 # Note that $ac_compile itself does not contain backslashes and begins
11617 # with a dollar sign (not a hyphen), so the echo should work correctly.
11618 lt_compile=`echo "$ac_compile" | $SED \
11619 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11620 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11621 -e 's:$: $lt_compiler_flag:'`
11622 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11623 (eval "$lt_compile" 2>out/conftest.err)
11624 ac_status=$?
11625 cat out/conftest.err >&5
11626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11628 then
11629 # The compiler can only warn and ignore the option if not recognized
11630 # So say no if there are warnings
11631 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11632 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11633 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11634 lt_cv_prog_compiler_c_o=yes
11635 fi
11636 fi
11637 chmod u+w . 2>&5
00a96142 11638 $RM -r conftest*
a243b558
JF
11639 # SGI C++ compiler will create directory out/ii_files/ for
11640 # template instantiation
11641 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11642 $RM out/* && rmdir out
11643 cd ..
11644 $RM -r conftest
00a96142 11645 $RM -r conftest*
9c60689e 11646
a243b558
JF
11647fi
11648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11649$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9c60689e 11650
ee134472 11651
ee134472 11652
ee134472 11653
ee134472 11654
9c60689e 11655
a243b558
JF
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11657$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11658if ${lt_cv_prog_compiler_c_o+:} false; then :
11659 $as_echo_n "(cached) " >&6
11660else
11661 lt_cv_prog_compiler_c_o=no
11662 $RM -r conftest 2>/dev/null
11663 mkdir conftest
11664 cd conftest
11665 mkdir out
11666 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9c60689e 11667
a243b558
JF
11668 lt_compiler_flag="-o out/conftest2.$ac_objext"
11669 # Insert the option either (1) after the last *FLAGS variable, or
11670 # (2) before a word containing "conftest.", or (3) at the end.
11671 # Note that $ac_compile itself does not contain backslashes and begins
11672 # with a dollar sign (not a hyphen), so the echo should work correctly.
11673 lt_compile=`echo "$ac_compile" | $SED \
11674 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11675 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11676 -e 's:$: $lt_compiler_flag:'`
11677 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11678 (eval "$lt_compile" 2>out/conftest.err)
11679 ac_status=$?
11680 cat out/conftest.err >&5
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11683 then
11684 # The compiler can only warn and ignore the option if not recognized
11685 # So say no if there are warnings
11686 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11687 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11688 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11689 lt_cv_prog_compiler_c_o=yes
11690 fi
11691 fi
11692 chmod u+w . 2>&5
00a96142 11693 $RM -r conftest*
a243b558
JF
11694 # SGI C++ compiler will create directory out/ii_files/ for
11695 # template instantiation
11696 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11697 $RM out/* && rmdir out
11698 cd ..
11699 $RM -r conftest
00a96142 11700 $RM -r conftest*
9c60689e 11701
a243b558
JF
11702fi
11703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11704$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9c60689e 11705
9c60689e 11706
a243b558
JF
11707
11708
9d54db95
JF
11709hard_links=nottested
11710if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
a243b558
JF
11711 # do not overwrite the value of need_locks provided by the user
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11713$as_echo_n "checking if we can lock with hard links... " >&6; }
11714 hard_links=yes
00a96142 11715 $RM -r conftest*
a243b558
JF
11716 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11717 touch conftest.a
11718 ln conftest.a conftest.b 2>&5 || hard_links=no
11719 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11721$as_echo "$hard_links" >&6; }
9d54db95
JF
11722 if test no = "$hard_links"; then
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11724$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
a243b558 11725 need_locks=warn
9c60689e 11726 fi
a243b558
JF
11727else
11728 need_locks=no
11729fi
9c60689e 11730
ee134472 11731
9c60689e 11732
9c60689e 11733
9c60689e 11734
a243b558
JF
11735
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11737$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11738
11739 runpath_var=
11740 allow_undefined_flag=
11741 always_export_symbols=no
11742 archive_cmds=
11743 archive_expsym_cmds=
11744 compiler_needs_object=no
11745 enable_shared_with_static_runtimes=no
11746 export_dynamic_flag_spec=
11747 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11748 hardcode_automatic=no
11749 hardcode_direct=no
11750 hardcode_direct_absolute=no
11751 hardcode_libdir_flag_spec=
11752 hardcode_libdir_separator=
11753 hardcode_minus_L=no
11754 hardcode_shlibpath_var=unsupported
11755 inherit_rpath=no
11756 link_all_deplibs=unknown
11757 module_cmds=
11758 module_expsym_cmds=
11759 old_archive_from_new_cmds=
11760 old_archive_from_expsyms_cmds=
11761 thread_safe_flag_spec=
11762 whole_archive_flag_spec=
11763 # include_expsyms should be a list of space-separated symbols to be *always*
11764 # included in the symbol list
11765 include_expsyms=
11766 # exclude_expsyms can be an extended regexp of symbols to exclude
9d54db95
JF
11767 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11768 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11769 # as well as any symbol that contains 'd'.
a243b558
JF
11770 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11771 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11772 # platforms (ab)use it in PIC code, but their linkers get confused if
11773 # the symbol is explicitly referenced. Since portable code cannot
11774 # rely on this symbol name, it's probably fine to never include it in
11775 # preloaded symbol tables.
11776 # Exclude shared library initialization/finalization symbols.
11777 extract_expsyms_cmds=
11778
9c60689e 11779 case $host_os in
a243b558
JF
11780 cygwin* | mingw* | pw32* | cegcc*)
11781 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11782 # When not using gcc, we currently assume that we are using
11783 # Microsoft Visual C++.
9d54db95 11784 if test yes != "$GCC"; then
a243b558
JF
11785 with_gnu_ld=no
11786 fi
9c60689e 11787 ;;
a243b558
JF
11788 interix*)
11789 # we just hope/assume this is gcc and not c89 (= MSVC++)
11790 with_gnu_ld=yes
11791 ;;
9d54db95 11792 openbsd* | bitrig*)
a243b558 11793 with_gnu_ld=no
9c60689e
DWT
11794 ;;
11795 esac
9c60689e 11796
a243b558 11797 ld_shlibs=yes
ee134472 11798
a243b558
JF
11799 # On some targets, GNU ld is compatible enough with the native linker
11800 # that we're better off using the native interface for both.
11801 lt_use_gnu_ld_interface=no
9d54db95 11802 if test yes = "$with_gnu_ld"; then
a243b558
JF
11803 case $host_os in
11804 aix*)
11805 # The AIX port of GNU ld has always aspired to compatibility
11806 # with the native linker. However, as the warning in the GNU ld
11807 # block says, versions before 2.19.5* couldn't really create working
11808 # shared libraries, regardless of the interface used.
11809 case `$LD -v 2>&1` in
11810 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11811 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11812 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11813 *)
11814 lt_use_gnu_ld_interface=yes
11815 ;;
11816 esac
11817 ;;
11818 *)
11819 lt_use_gnu_ld_interface=yes
11820 ;;
11821 esac
11822 fi
9c60689e 11823
9d54db95 11824 if test yes = "$lt_use_gnu_ld_interface"; then
a243b558 11825 # If archive_cmds runs LD, not CC, wlarc should be empty
9d54db95 11826 wlarc='$wl'
9c60689e 11827
a243b558
JF
11828 # Set some defaults for GNU ld with shared library support. These
11829 # are reset later if shared libraries are not supported. Putting them
11830 # here allows them to be overridden if necessary.
11831 runpath_var=LD_RUN_PATH
9d54db95
JF
11832 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11833 export_dynamic_flag_spec='$wl--export-dynamic'
a243b558
JF
11834 # ancient GNU ld didn't support --whole-archive et. al.
11835 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9d54db95 11836 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
a243b558
JF
11837 else
11838 whole_archive_flag_spec=
11839 fi
11840 supports_anon_versioning=no
9d54db95 11841 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
a243b558
JF
11842 *GNU\ gold*) supports_anon_versioning=yes ;;
11843 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11844 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11845 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11846 *\ 2.11.*) ;; # other 2.11 versions
11847 *) supports_anon_versioning=yes ;;
11848 esac
ee134472 11849
a243b558
JF
11850 # See if GNU ld supports shared libraries.
11851 case $host_os in
11852 aix[3-9]*)
11853 # On AIX/PPC, the GNU linker is very broken
9d54db95 11854 if test ia64 != "$host_cpu"; then
a243b558
JF
11855 ld_shlibs=no
11856 cat <<_LT_EOF 1>&2
ee134472 11857
a243b558
JF
11858*** Warning: the GNU linker, at least up to release 2.19, is reported
11859*** to be unable to reliably create shared libraries on AIX.
11860*** Therefore, libtool is disabling shared libraries support. If you
11861*** really care for shared libraries, you may want to install binutils
11862*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11863*** You will then need to restart the configuration process.
9c60689e 11864
a243b558
JF
11865_LT_EOF
11866 fi
11867 ;;
9c60689e 11868
a243b558
JF
11869 amigaos*)
11870 case $host_cpu in
11871 powerpc)
11872 # see comment about AmigaOS4 .so support
9d54db95 11873 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
a243b558
JF
11874 archive_expsym_cmds=''
11875 ;;
11876 m68k)
11877 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)'
11878 hardcode_libdir_flag_spec='-L$libdir'
11879 hardcode_minus_L=yes
11880 ;;
11881 esac
11882 ;;
9c60689e 11883
a243b558
JF
11884 beos*)
11885 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11886 allow_undefined_flag=unsupported
11887 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11888 # support --undefined. This deserves some investigation. FIXME
9d54db95 11889 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
a243b558
JF
11890 else
11891 ld_shlibs=no
11892 fi
11893 ;;
9c60689e 11894
a243b558
JF
11895 cygwin* | mingw* | pw32* | cegcc*)
11896 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11897 # as there is no search path for DLLs.
11898 hardcode_libdir_flag_spec='-L$libdir'
9d54db95 11899 export_dynamic_flag_spec='$wl--export-all-symbols'
a243b558
JF
11900 allow_undefined_flag=unsupported
11901 always_export_symbols=no
11902 enable_shared_with_static_runtimes=yes
11903 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'
11904 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9c60689e 11905
a243b558 11906 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9d54db95
JF
11907 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11908 # If the export-symbols file already is a .def file, use it as
11909 # is; otherwise, prepend EXPORTS...
11910 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11911 cp $export_symbols $output_objdir/$soname.def;
11912 else
11913 echo EXPORTS > $output_objdir/$soname.def;
11914 cat $export_symbols >> $output_objdir/$soname.def;
11915 fi~
11916 $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
11917 else
11918 ld_shlibs=no
11919 fi
11920 ;;
9c60689e 11921
a243b558 11922 haiku*)
9d54db95 11923 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
a243b558
JF
11924 link_all_deplibs=yes
11925 ;;
9c60689e 11926
9d54db95
JF
11927 os2*)
11928 hardcode_libdir_flag_spec='-L$libdir'
11929 hardcode_minus_L=yes
11930 allow_undefined_flag=unsupported
11931 shrext_cmds=.dll
11932 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11933 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11934 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11935 $ECHO EXPORTS >> $output_objdir/$libname.def~
11936 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11937 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11938 emximp -o $lib $output_objdir/$libname.def'
11939 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11940 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11941 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11942 $ECHO EXPORTS >> $output_objdir/$libname.def~
11943 prefix_cmds="$SED"~
11944 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11945 prefix_cmds="$prefix_cmds -e 1d";
11946 fi~
11947 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11948 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11949 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11950 emximp -o $lib $output_objdir/$libname.def'
11951 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11952 enable_shared_with_static_runtimes=yes
11953 ;;
11954
a243b558
JF
11955 interix[3-9]*)
11956 hardcode_direct=no
11957 hardcode_shlibpath_var=no
9d54db95
JF
11958 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11959 export_dynamic_flag_spec='$wl-E'
a243b558
JF
11960 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11961 # Instead, shared libraries are loaded at an image base (0x10000000 by
11962 # default) and relocated if they conflict, which is a slow very memory
11963 # consuming and fragmenting process. To avoid this, we pick a random,
11964 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11965 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9d54db95
JF
11966 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11967 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 11968 ;;
9c60689e 11969
a243b558
JF
11970 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11971 tmp_diet=no
9d54db95 11972 if test linux-dietlibc = "$host_os"; then
a243b558
JF
11973 case $cc_basename in
11974 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11975 esac
11976 fi
11977 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9d54db95 11978 && test no = "$tmp_diet"
a243b558
JF
11979 then
11980 tmp_addflag=' $pic_flag'
11981 tmp_sharedflag='-shared'
11982 case $cc_basename,$host_cpu in
11983 pgcc*) # Portland Group C compiler
9d54db95 11984 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
11985 tmp_addflag=' $pic_flag'
11986 ;;
11987 pgf77* | pgf90* | pgf95* | pgfortran*)
11988 # Portland Group f77 and f90 compilers
9d54db95 11989 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
11990 tmp_addflag=' $pic_flag -Mnomain' ;;
11991 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11992 tmp_addflag=' -i_dynamic' ;;
11993 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11994 tmp_addflag=' -i_dynamic -nofor_main' ;;
11995 ifc* | ifort*) # Intel Fortran compiler
11996 tmp_addflag=' -nofor_main' ;;
11997 lf95*) # Lahey Fortran 8.1
11998 whole_archive_flag_spec=
11999 tmp_sharedflag='--shared' ;;
9d54db95
JF
12000 nagfor*) # NAGFOR 5.3
12001 tmp_sharedflag='-Wl,-shared' ;;
a243b558
JF
12002 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12003 tmp_sharedflag='-qmkshrobj'
12004 tmp_addflag= ;;
12005 nvcc*) # Cuda Compiler Driver 2.2
9d54db95 12006 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
12007 compiler_needs_object=yes
12008 ;;
12009 esac
12010 case `$CC -V 2>&1 | sed 5q` in
12011 *Sun\ C*) # Sun C 5.9
9d54db95 12012 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
12013 compiler_needs_object=yes
12014 tmp_sharedflag='-G' ;;
12015 *Sun\ F*) # Sun Fortran 8.3
12016 tmp_sharedflag='-G' ;;
12017 esac
9d54db95 12018 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9c60689e 12019
9d54db95 12020 if test yes = "$supports_anon_versioning"; then
a243b558 12021 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9d54db95
JF
12022 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12023 echo "local: *; };" >> $output_objdir/$libname.ver~
12024 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
a243b558 12025 fi
9c60689e 12026
a243b558 12027 case $cc_basename in
9d54db95
JF
12028 tcc*)
12029 export_dynamic_flag_spec='-rdynamic'
12030 ;;
a243b558
JF
12031 xlf* | bgf* | bgxlf* | mpixlf*)
12032 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12033 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9d54db95 12034 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a243b558 12035 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9d54db95 12036 if test yes = "$supports_anon_versioning"; then
a243b558 12037 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9d54db95
JF
12038 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12039 echo "local: *; };" >> $output_objdir/$libname.ver~
12040 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
a243b558
JF
12041 fi
12042 ;;
12043 esac
12044 else
12045 ld_shlibs=no
12046 fi
12047 ;;
9c60689e 12048
a243b558
JF
12049 netbsd*)
12050 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12051 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12052 wlarc=
12053 else
9d54db95
JF
12054 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12055 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
12056 fi
12057 ;;
9c60689e 12058
a243b558
JF
12059 solaris*)
12060 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12061 ld_shlibs=no
12062 cat <<_LT_EOF 1>&2
9c60689e 12063
a243b558
JF
12064*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12065*** create shared libraries on Solaris systems. Therefore, libtool
12066*** is disabling shared libraries support. We urge you to upgrade GNU
12067*** binutils to release 2.9.1 or newer. Another option is to modify
12068*** your PATH or compiler configuration so that the native linker is
12069*** used, and then restart.
9c60689e 12070
a243b558
JF
12071_LT_EOF
12072 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9d54db95
JF
12073 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12074 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
12075 else
12076 ld_shlibs=no
12077 fi
12078 ;;
9c60689e 12079
a243b558
JF
12080 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12081 case `$LD -v 2>&1` in
12082 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12083 ld_shlibs=no
12084 cat <<_LT_EOF 1>&2
9c60689e 12085
9d54db95 12086*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
a243b558
JF
12087*** reliably create shared libraries on SCO systems. Therefore, libtool
12088*** is disabling shared libraries support. We urge you to upgrade GNU
12089*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12090*** your PATH or compiler configuration so that the native linker is
12091*** used, and then restart.
9c60689e 12092
a243b558
JF
12093_LT_EOF
12094 ;;
12095 *)
12096 # For security reasons, it is highly recommended that you always
12097 # use absolute paths for naming shared libraries, and exclude the
12098 # DT_RUNPATH tag from executables and libraries. But doing so
12099 # requires that you compile everything twice, which is a pain.
12100 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9d54db95
JF
12101 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12102 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12103 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
a243b558
JF
12104 else
12105 ld_shlibs=no
12106 fi
12107 ;;
12108 esac
12109 ;;
9c60689e 12110
a243b558
JF
12111 sunos4*)
12112 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12113 wlarc=
12114 hardcode_direct=yes
12115 hardcode_shlibpath_var=no
12116 ;;
9c60689e 12117
a243b558
JF
12118 *)
12119 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9d54db95
JF
12120 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12121 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
12122 else
12123 ld_shlibs=no
12124 fi
12125 ;;
12126 esac
9c60689e 12127
9d54db95 12128 if test no = "$ld_shlibs"; then
a243b558
JF
12129 runpath_var=
12130 hardcode_libdir_flag_spec=
12131 export_dynamic_flag_spec=
12132 whole_archive_flag_spec=
12133 fi
12134 else
12135 # PORTME fill in a description of your system's linker (not GNU ld)
12136 case $host_os in
12137 aix3*)
12138 allow_undefined_flag=unsupported
12139 always_export_symbols=yes
12140 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'
12141 # Note: this linker hardcodes the directories in LIBPATH if there
12142 # are no directories specified by -L.
12143 hardcode_minus_L=yes
9d54db95 12144 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
a243b558
JF
12145 # Neither direct hardcoding nor static linking is supported with a
12146 # broken collect2.
12147 hardcode_direct=unsupported
12148 fi
12149 ;;
9c60689e 12150
a243b558 12151 aix[4-9]*)
9d54db95 12152 if test ia64 = "$host_cpu"; then
a243b558
JF
12153 # On IA64, the linker does run time linking by default, so we don't
12154 # have to do anything special.
12155 aix_use_runtimelinking=no
12156 exp_sym_flag='-Bexport'
9d54db95 12157 no_entry_flag=
a243b558
JF
12158 else
12159 # If we're using GNU nm, then we don't want the "-C" option.
9d54db95
JF
12160 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12161 # Without the "-l" option, or with the "-B" option, AIX nm treats
12162 # weak defined symbols like other global defined symbols, whereas
12163 # GNU nm marks them as "W".
12164 # While the 'weak' keyword is ignored in the Export File, we need
12165 # it in the Import File for the 'aix-soname' feature, so we have
12166 # to replace the "-B" option with "-P" for AIX nm.
a243b558 12167 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9d54db95 12168 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 12169 else
9d54db95 12170 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
12171 fi
12172 aix_use_runtimelinking=no
9c60689e 12173
a243b558
JF
12174 # Test if we are trying to use run time linking or normal
12175 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9d54db95
JF
12176 # have runtime linking enabled, and use it for executables.
12177 # For shared libraries, we enable/disable runtime linking
12178 # depending on the kind of the shared library created -
12179 # when "with_aix_soname,aix_use_runtimelinking" is:
12180 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12181 # "aix,yes" lib.so shared, rtl:yes, for executables
12182 # lib.a static archive
12183 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12184 # lib.a(lib.so.V) shared, rtl:no, for executables
12185 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12186 # lib.a(lib.so.V) shared, rtl:no
12187 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12188 # lib.a static archive
a243b558
JF
12189 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12190 for ld_flag in $LDFLAGS; do
9d54db95 12191 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
a243b558
JF
12192 aix_use_runtimelinking=yes
12193 break
12194 fi
12195 done
9d54db95
JF
12196 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12197 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12198 # so we don't have lib.a shared libs to link our executables.
12199 # We have to force runtime linking in this case.
12200 aix_use_runtimelinking=yes
12201 LDFLAGS="$LDFLAGS -Wl,-brtl"
12202 fi
a243b558
JF
12203 ;;
12204 esac
9c60689e 12205
a243b558
JF
12206 exp_sym_flag='-bexport'
12207 no_entry_flag='-bnoentry'
12208 fi
9c60689e 12209
a243b558
JF
12210 # When large executables or shared objects are built, AIX ld can
12211 # have problems creating the table of contents. If linking a library
12212 # or program results in "error TOC overflow" add -mminimal-toc to
12213 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12214 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9c60689e 12215
a243b558
JF
12216 archive_cmds=''
12217 hardcode_direct=yes
12218 hardcode_direct_absolute=yes
12219 hardcode_libdir_separator=':'
12220 link_all_deplibs=yes
9d54db95
JF
12221 file_list_spec='$wl-f,'
12222 case $with_aix_soname,$aix_use_runtimelinking in
12223 aix,*) ;; # traditional, no import file
12224 svr4,* | *,yes) # use import file
12225 # The Import File defines what to hardcode.
12226 hardcode_direct=no
12227 hardcode_direct_absolute=no
12228 ;;
12229 esac
9c60689e 12230
9d54db95 12231 if test yes = "$GCC"; then
a243b558
JF
12232 case $host_os in aix4.[012]|aix4.[012].*)
12233 # We only want to do this on AIX 4.2 and lower, the check
12234 # below for broken collect2 doesn't work under 4.3+
9d54db95 12235 collect2name=`$CC -print-prog-name=collect2`
a243b558
JF
12236 if test -f "$collect2name" &&
12237 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12238 then
12239 # We have reworked collect2
12240 :
12241 else
12242 # We have old collect2
12243 hardcode_direct=unsupported
12244 # It fails to find uninstalled libraries when the uninstalled
12245 # path is not listed in the libpath. Setting hardcode_minus_L
12246 # to unsupported forces relinking
12247 hardcode_minus_L=yes
12248 hardcode_libdir_flag_spec='-L$libdir'
12249 hardcode_libdir_separator=
12250 fi
12251 ;;
12252 esac
12253 shared_flag='-shared'
9d54db95
JF
12254 if test yes = "$aix_use_runtimelinking"; then
12255 shared_flag="$shared_flag "'$wl-G'
a243b558 12256 fi
9d54db95
JF
12257 # Need to ensure runtime linking is disabled for the traditional
12258 # shared library, or the linker may eventually find shared libraries
12259 # /with/ Import File - we do not want to mix them.
12260 shared_flag_aix='-shared'
12261 shared_flag_svr4='-shared $wl-G'
a243b558
JF
12262 else
12263 # not using gcc
9d54db95 12264 if test ia64 = "$host_cpu"; then
a243b558
JF
12265 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12266 # chokes on -Wl,-G. The following line is correct:
12267 shared_flag='-G'
12268 else
9d54db95
JF
12269 if test yes = "$aix_use_runtimelinking"; then
12270 shared_flag='$wl-G'
a243b558 12271 else
9d54db95 12272 shared_flag='$wl-bM:SRE'
a243b558 12273 fi
9d54db95
JF
12274 shared_flag_aix='$wl-bM:SRE'
12275 shared_flag_svr4='$wl-G'
a243b558
JF
12276 fi
12277 fi
9c60689e 12278
9d54db95 12279 export_dynamic_flag_spec='$wl-bexpall'
a243b558
JF
12280 # It seems that -bexpall does not export symbols beginning with
12281 # underscore (_), so it is better to generate a list of symbols to export.
12282 always_export_symbols=yes
9d54db95 12283 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
a243b558
JF
12284 # Warning - without using the other runtime loading flags (-brtl),
12285 # -berok will link without error, but may produce a broken library.
12286 allow_undefined_flag='-berok'
12287 # Determine the default libpath from the value encoded in an
12288 # empty executable.
9d54db95 12289 if test set = "${lt_cv_aix_libpath+set}"; then
a243b558 12290 aix_libpath=$lt_cv_aix_libpath
9c60689e 12291else
a243b558 12292 if ${lt_cv_aix_libpath_+:} false; then :
9c60689e
DWT
12293 $as_echo_n "(cached) " >&6
12294else
a243b558 12295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
12296/* end confdefs.h. */
12297
9c60689e
DWT
12298int
12299main ()
12300{
a243b558 12301
9c60689e
DWT
12302 ;
12303 return 0;
12304}
12305_ACEOF
12306if ac_fn_c_try_link "$LINENO"; then :
a243b558
JF
12307
12308 lt_aix_libpath_sed='
12309 /Import File Strings/,/^$/ {
12310 /^0/ {
12311 s/^0 *\([^ ]*\) *$/\1/
12312 p
12313 }
12314 }'
12315 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12316 # Check for a 64-bit object if we didn't find anything.
12317 if test -z "$lt_cv_aix_libpath_"; then
12318 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12319 fi
9c60689e
DWT
12320fi
12321rm -f core conftest.err conftest.$ac_objext \
12322 conftest$ac_exeext conftest.$ac_ext
a243b558 12323 if test -z "$lt_cv_aix_libpath_"; then
9d54db95 12324 lt_cv_aix_libpath_=/usr/lib:/lib
a243b558 12325 fi
9c60689e
DWT
12326
12327fi
12328
a243b558
JF
12329 aix_libpath=$lt_cv_aix_libpath_
12330fi
9c60689e 12331
9d54db95
JF
12332 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12333 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 12334 else
9d54db95
JF
12335 if test ia64 = "$host_cpu"; then
12336 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
a243b558 12337 allow_undefined_flag="-z nodefs"
9d54db95 12338 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
12339 else
12340 # Determine the default libpath from the value encoded in an
12341 # empty executable.
9d54db95 12342 if test set = "${lt_cv_aix_libpath+set}"; then
a243b558 12343 aix_libpath=$lt_cv_aix_libpath
9c60689e 12344else
a243b558 12345 if ${lt_cv_aix_libpath_+:} false; then :
9c60689e
DWT
12346 $as_echo_n "(cached) " >&6
12347else
a243b558 12348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
12349/* end confdefs.h. */
12350
9c60689e
DWT
12351int
12352main ()
12353{
a243b558 12354
9c60689e
DWT
12355 ;
12356 return 0;
12357}
12358_ACEOF
12359if ac_fn_c_try_link "$LINENO"; then :
9c60689e 12360
a243b558
JF
12361 lt_aix_libpath_sed='
12362 /Import File Strings/,/^$/ {
12363 /^0/ {
12364 s/^0 *\([^ ]*\) *$/\1/
12365 p
12366 }
12367 }'
12368 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12369 # Check for a 64-bit object if we didn't find anything.
12370 if test -z "$lt_cv_aix_libpath_"; then
12371 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12372 fi
9c60689e
DWT
12373fi
12374rm -f core conftest.err conftest.$ac_objext \
12375 conftest$ac_exeext conftest.$ac_ext
a243b558 12376 if test -z "$lt_cv_aix_libpath_"; then
9d54db95 12377 lt_cv_aix_libpath_=/usr/lib:/lib
a243b558
JF
12378 fi
12379
9c60689e 12380fi
9c60689e 12381
a243b558
JF
12382 aix_libpath=$lt_cv_aix_libpath_
12383fi
12384
9d54db95 12385 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
a243b558
JF
12386 # Warning - without using the other run time loading flags,
12387 # -berok will link without error, but may produce a broken library.
9d54db95
JF
12388 no_undefined_flag=' $wl-bernotok'
12389 allow_undefined_flag=' $wl-berok'
12390 if test yes = "$with_gnu_ld"; then
a243b558 12391 # We only use this code for GNU lds that support --whole-archive.
9d54db95 12392 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
a243b558
JF
12393 else
12394 # Exported symbols can be pulled into shared objects from archives
12395 whole_archive_flag_spec='$convenience'
12396 fi
12397 archive_cmds_need_lc=yes
9d54db95
JF
12398 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12399 # -brtl affects multiple linker settings, -berok does not and is overridden later
12400 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12401 if test svr4 != "$with_aix_soname"; then
12402 # This is similar to how AIX traditionally builds its shared libraries.
12403 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'
12404 fi
12405 if test aix != "$with_aix_soname"; then
12406 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'
12407 else
12408 # used by -dlpreopen to get the symbols
12409 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12410 fi
12411 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
a243b558
JF
12412 fi
12413 fi
12414 ;;
12415
12416 amigaos*)
12417 case $host_cpu in
12418 powerpc)
12419 # see comment about AmigaOS4 .so support
9d54db95 12420 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
a243b558
JF
12421 archive_expsym_cmds=''
12422 ;;
12423 m68k)
12424 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)'
12425 hardcode_libdir_flag_spec='-L$libdir'
12426 hardcode_minus_L=yes
12427 ;;
12428 esac
12429 ;;
12430
12431 bsdi[45]*)
12432 export_dynamic_flag_spec=-rdynamic
12433 ;;
12434
12435 cygwin* | mingw* | pw32* | cegcc*)
12436 # When not using gcc, we currently assume that we are using
12437 # Microsoft Visual C++.
12438 # hardcode_libdir_flag_spec is actually meaningless, as there is
12439 # no search path for DLLs.
12440 case $cc_basename in
12441 cl*)
12442 # Native MSVC
12443 hardcode_libdir_flag_spec=' '
12444 allow_undefined_flag=unsupported
12445 always_export_symbols=yes
12446 file_list_spec='@'
12447 # Tell ltmain to make .lib files, not .a files.
12448 libext=lib
12449 # Tell ltmain to make .dll files, not .so files.
9d54db95 12450 shrext_cmds=.dll
a243b558 12451 # FIXME: Setting linknames here is a bad hack.
9d54db95
JF
12452 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12453 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12454 cp "$export_symbols" "$output_objdir/$soname.def";
12455 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12456 else
12457 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12458 fi~
12459 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12460 linknames='
a243b558
JF
12461 # The linker will not automatically build a static lib if we build a DLL.
12462 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12463 enable_shared_with_static_runtimes=yes
12464 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12465 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12466 # Don't use ranlib
12467 old_postinstall_cmds='chmod 644 $oldlib'
12468 postlink_cmds='lt_outputfile="@OUTPUT@"~
9d54db95
JF
12469 lt_tool_outputfile="@TOOL_OUTPUT@"~
12470 case $lt_outputfile in
12471 *.exe|*.EXE) ;;
12472 *)
12473 lt_outputfile=$lt_outputfile.exe
12474 lt_tool_outputfile=$lt_tool_outputfile.exe
12475 ;;
12476 esac~
12477 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12478 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12479 $RM "$lt_outputfile.manifest";
12480 fi'
a243b558
JF
12481 ;;
12482 *)
12483 # Assume MSVC wrapper
12484 hardcode_libdir_flag_spec=' '
12485 allow_undefined_flag=unsupported
12486 # Tell ltmain to make .lib files, not .a files.
12487 libext=lib
12488 # Tell ltmain to make .dll files, not .so files.
9d54db95 12489 shrext_cmds=.dll
a243b558
JF
12490 # FIXME: Setting linknames here is a bad hack.
12491 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12492 # The linker will automatically build a .lib file if we build a DLL.
12493 old_archive_from_new_cmds='true'
12494 # FIXME: Should let the user specify the lib program.
12495 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12496 enable_shared_with_static_runtimes=yes
12497 ;;
12498 esac
12499 ;;
12500
12501 darwin* | rhapsody*)
12502
12503
12504 archive_cmds_need_lc=no
12505 hardcode_direct=no
12506 hardcode_automatic=yes
12507 hardcode_shlibpath_var=unsupported
9d54db95
JF
12508 if test yes = "$lt_cv_ld_force_load"; then
12509 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
12510
12511 else
12512 whole_archive_flag_spec=''
12513 fi
12514 link_all_deplibs=yes
9d54db95 12515 allow_undefined_flag=$_lt_dar_allow_undefined
a243b558 12516 case $cc_basename in
9d54db95 12517 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
a243b558
JF
12518 *) _lt_dar_can_shared=$GCC ;;
12519 esac
9d54db95 12520 if test yes = "$_lt_dar_can_shared"; then
a243b558 12521 output_verbose_link_cmd=func_echo_all
9d54db95
JF
12522 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12523 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12524 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"
12525 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
12526
12527 else
12528 ld_shlibs=no
12529 fi
12530
12531 ;;
12532
12533 dgux*)
12534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12535 hardcode_libdir_flag_spec='-L$libdir'
12536 hardcode_shlibpath_var=no
12537 ;;
12538
12539 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12540 # support. Future versions do this automatically, but an explicit c++rt0.o
12541 # does not break anything, and helps significantly (at the cost of a little
12542 # extra space).
12543 freebsd2.2*)
12544 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12545 hardcode_libdir_flag_spec='-R$libdir'
12546 hardcode_direct=yes
12547 hardcode_shlibpath_var=no
12548 ;;
12549
12550 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12551 freebsd2.*)
12552 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12553 hardcode_direct=yes
12554 hardcode_minus_L=yes
12555 hardcode_shlibpath_var=no
12556 ;;
12557
12558 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12559 freebsd* | dragonfly*)
12560 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12561 hardcode_libdir_flag_spec='-R$libdir'
12562 hardcode_direct=yes
12563 hardcode_shlibpath_var=no
12564 ;;
12565
12566 hpux9*)
9d54db95
JF
12567 if test yes = "$GCC"; then
12568 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 12569 else
9d54db95 12570 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 12571 fi
9d54db95 12572 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
a243b558
JF
12573 hardcode_libdir_separator=:
12574 hardcode_direct=yes
12575
12576 # hardcode_minus_L: Not really in the search PATH,
12577 # but as the default location of the library.
12578 hardcode_minus_L=yes
9d54db95 12579 export_dynamic_flag_spec='$wl-E'
a243b558
JF
12580 ;;
12581
12582 hpux10*)
9d54db95
JF
12583 if test yes,no = "$GCC,$with_gnu_ld"; then
12584 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
12585 else
12586 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12587 fi
9d54db95
JF
12588 if test no = "$with_gnu_ld"; then
12589 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
a243b558
JF
12590 hardcode_libdir_separator=:
12591 hardcode_direct=yes
12592 hardcode_direct_absolute=yes
9d54db95 12593 export_dynamic_flag_spec='$wl-E'
a243b558
JF
12594 # hardcode_minus_L: Not really in the search PATH,
12595 # but as the default location of the library.
12596 hardcode_minus_L=yes
12597 fi
12598 ;;
12599
12600 hpux11*)
9d54db95 12601 if test yes,no = "$GCC,$with_gnu_ld"; then
a243b558
JF
12602 case $host_cpu in
12603 hppa*64*)
9d54db95 12604 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
12605 ;;
12606 ia64*)
9d54db95 12607 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
12608 ;;
12609 *)
9d54db95 12610 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
12611 ;;
12612 esac
12613 else
12614 case $host_cpu in
12615 hppa*64*)
9d54db95 12616 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
12617 ;;
12618 ia64*)
9d54db95 12619 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
12620 ;;
12621 *)
12622
12623 # Older versions of the 11.00 compiler do not understand -b yet
12624 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12626$as_echo_n "checking if $CC understands -b... " >&6; }
12627if ${lt_cv_prog_compiler__b+:} false; then :
12628 $as_echo_n "(cached) " >&6
12629else
12630 lt_cv_prog_compiler__b=no
9d54db95 12631 save_LDFLAGS=$LDFLAGS
a243b558
JF
12632 LDFLAGS="$LDFLAGS -b"
12633 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12634 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12635 # The linker can only warn and ignore the option if not recognized
12636 # So say no if there are warnings
12637 if test -s conftest.err; then
12638 # Append any errors to the config.log.
12639 cat conftest.err 1>&5
12640 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12641 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12642 if diff conftest.exp conftest.er2 >/dev/null; then
12643 lt_cv_prog_compiler__b=yes
12644 fi
12645 else
12646 lt_cv_prog_compiler__b=yes
12647 fi
12648 fi
12649 $RM -r conftest*
9d54db95 12650 LDFLAGS=$save_LDFLAGS
a243b558
JF
12651
12652fi
12653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12654$as_echo "$lt_cv_prog_compiler__b" >&6; }
12655
9d54db95
JF
12656if test yes = "$lt_cv_prog_compiler__b"; then
12657 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
12658else
12659 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12660fi
12661
12662 ;;
12663 esac
12664 fi
9d54db95
JF
12665 if test no = "$with_gnu_ld"; then
12666 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
a243b558
JF
12667 hardcode_libdir_separator=:
12668
12669 case $host_cpu in
12670 hppa*64*|ia64*)
12671 hardcode_direct=no
12672 hardcode_shlibpath_var=no
12673 ;;
12674 *)
12675 hardcode_direct=yes
12676 hardcode_direct_absolute=yes
9d54db95 12677 export_dynamic_flag_spec='$wl-E'
a243b558
JF
12678
12679 # hardcode_minus_L: Not really in the search PATH,
12680 # but as the default location of the library.
12681 hardcode_minus_L=yes
12682 ;;
12683 esac
12684 fi
12685 ;;
12686
12687 irix5* | irix6* | nonstopux*)
9d54db95
JF
12688 if test yes = "$GCC"; then
12689 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
12690 # Try to use the -exported_symbol ld option, if it does not
12691 # work, assume that -exports_file does not work either and
12692 # implicitly export all symbols.
12693 # This should be the same for all languages, so no per-tag cache variable.
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
12695$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
12696if ${lt_cv_irix_exported_symbol+:} false; then :
12697 $as_echo_n "(cached) " >&6
12698else
9d54db95
JF
12699 save_LDFLAGS=$LDFLAGS
12700 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
a243b558
JF
12701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12702/* end confdefs.h. */
12703int foo (void) { return 0; }
12704_ACEOF
12705if ac_fn_c_try_link "$LINENO"; then :
12706 lt_cv_irix_exported_symbol=yes
12707else
12708 lt_cv_irix_exported_symbol=no
12709fi
12710rm -f core conftest.err conftest.$ac_objext \
12711 conftest$ac_exeext conftest.$ac_ext
9d54db95 12712 LDFLAGS=$save_LDFLAGS
a243b558
JF
12713fi
12714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12715$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9d54db95
JF
12716 if test yes = "$lt_cv_irix_exported_symbol"; then
12717 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
12718 fi
12719 else
9d54db95
JF
12720 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'
12721 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
12722 fi
12723 archive_cmds_need_lc='no'
9d54db95 12724 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a243b558
JF
12725 hardcode_libdir_separator=:
12726 inherit_rpath=yes
12727 link_all_deplibs=yes
12728 ;;
12729
9d54db95
JF
12730 linux*)
12731 case $cc_basename in
12732 tcc*)
12733 # Fabrice Bellard et al's Tiny C Compiler
12734 ld_shlibs=yes
12735 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12736 ;;
12737 esac
12738 ;;
12739
a243b558
JF
12740 netbsd*)
12741 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12742 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12743 else
12744 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12745 fi
12746 hardcode_libdir_flag_spec='-R$libdir'
12747 hardcode_direct=yes
12748 hardcode_shlibpath_var=no
12749 ;;
12750
12751 newsos6)
12752 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12753 hardcode_direct=yes
9d54db95 12754 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a243b558
JF
12755 hardcode_libdir_separator=:
12756 hardcode_shlibpath_var=no
12757 ;;
12758
12759 *nto* | *qnx*)
12760 ;;
12761
9d54db95 12762 openbsd* | bitrig*)
a243b558
JF
12763 if test -f /usr/libexec/ld.so; then
12764 hardcode_direct=yes
12765 hardcode_shlibpath_var=no
12766 hardcode_direct_absolute=yes
9d54db95 12767 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
a243b558 12768 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9d54db95
JF
12769 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12770 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12771 export_dynamic_flag_spec='$wl-E'
a243b558 12772 else
9d54db95
JF
12773 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12774 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
a243b558
JF
12775 fi
12776 else
12777 ld_shlibs=no
12778 fi
12779 ;;
12780
12781 os2*)
12782 hardcode_libdir_flag_spec='-L$libdir'
12783 hardcode_minus_L=yes
12784 allow_undefined_flag=unsupported
9d54db95
JF
12785 shrext_cmds=.dll
12786 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12787 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12788 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12789 $ECHO EXPORTS >> $output_objdir/$libname.def~
12790 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12791 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12792 emximp -o $lib $output_objdir/$libname.def'
12793 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12794 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12795 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12796 $ECHO EXPORTS >> $output_objdir/$libname.def~
12797 prefix_cmds="$SED"~
12798 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12799 prefix_cmds="$prefix_cmds -e 1d";
12800 fi~
12801 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12802 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12803 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12804 emximp -o $lib $output_objdir/$libname.def'
12805 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12806 enable_shared_with_static_runtimes=yes
a243b558
JF
12807 ;;
12808
12809 osf3*)
9d54db95
JF
12810 if test yes = "$GCC"; then
12811 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12812 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
12813 else
12814 allow_undefined_flag=' -expect_unresolved \*'
9d54db95 12815 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
12816 fi
12817 archive_cmds_need_lc='no'
9d54db95 12818 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a243b558
JF
12819 hardcode_libdir_separator=:
12820 ;;
12821
12822 osf4* | osf5*) # as osf3* with the addition of -msym flag
9d54db95
JF
12823 if test yes = "$GCC"; then
12824 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12825 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'
12826 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
a243b558
JF
12827 else
12828 allow_undefined_flag=' -expect_unresolved \*'
9d54db95 12829 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 12830 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 12831 $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
12832
12833 # Both c and cxx compiler support -rpath directly
12834 hardcode_libdir_flag_spec='-rpath $libdir'
12835 fi
12836 archive_cmds_need_lc='no'
12837 hardcode_libdir_separator=:
12838 ;;
12839
12840 solaris*)
12841 no_undefined_flag=' -z defs'
9d54db95
JF
12842 if test yes = "$GCC"; then
12843 wlarc='$wl'
12844 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558 12845 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9d54db95 12846 $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
12847 else
12848 case `$CC -V 2>&1` in
12849 *"Compilers 5.0"*)
12850 wlarc=''
9d54db95 12851 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
a243b558 12852 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9d54db95 12853 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
a243b558
JF
12854 ;;
12855 *)
9d54db95
JF
12856 wlarc='$wl'
12857 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558 12858 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9d54db95 12859 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
a243b558
JF
12860 ;;
12861 esac
12862 fi
12863 hardcode_libdir_flag_spec='-R$libdir'
12864 hardcode_shlibpath_var=no
12865 case $host_os in
12866 solaris2.[0-5] | solaris2.[0-5].*) ;;
12867 *)
12868 # The compiler driver will combine and reorder linker options,
9d54db95 12869 # but understands '-z linker_flag'. GCC discards it without '$wl',
a243b558
JF
12870 # but is careful enough not to reorder.
12871 # Supported since Solaris 2.6 (maybe 2.5.1?)
9d54db95
JF
12872 if test yes = "$GCC"; then
12873 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
a243b558
JF
12874 else
12875 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12876 fi
12877 ;;
12878 esac
12879 link_all_deplibs=yes
12880 ;;
12881
12882 sunos4*)
9d54db95 12883 if test sequent = "$host_vendor"; then
a243b558
JF
12884 # Use $CC to link under sequent, because it throws in some extra .o
12885 # files that make .init and .fini sections work.
9d54db95 12886 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
12887 else
12888 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12889 fi
12890 hardcode_libdir_flag_spec='-L$libdir'
12891 hardcode_direct=yes
12892 hardcode_minus_L=yes
12893 hardcode_shlibpath_var=no
12894 ;;
12895
12896 sysv4)
12897 case $host_vendor in
12898 sni)
12899 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12900 hardcode_direct=yes # is this really true???
12901 ;;
12902 siemens)
12903 ## LD is ld it makes a PLAMLIB
12904 ## CC just makes a GrossModule.
12905 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12906 reload_cmds='$CC -r -o $output$reload_objs'
12907 hardcode_direct=no
12908 ;;
12909 motorola)
12910 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12911 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12912 ;;
12913 esac
12914 runpath_var='LD_RUN_PATH'
12915 hardcode_shlibpath_var=no
12916 ;;
12917
12918 sysv4.3*)
12919 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12920 hardcode_shlibpath_var=no
12921 export_dynamic_flag_spec='-Bexport'
12922 ;;
12923
12924 sysv4*MP*)
12925 if test -d /usr/nec; then
12926 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12927 hardcode_shlibpath_var=no
12928 runpath_var=LD_RUN_PATH
12929 hardcode_runpath_var=yes
12930 ld_shlibs=yes
12931 fi
12932 ;;
12933
12934 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9d54db95 12935 no_undefined_flag='$wl-z,text'
a243b558
JF
12936 archive_cmds_need_lc=no
12937 hardcode_shlibpath_var=no
12938 runpath_var='LD_RUN_PATH'
12939
9d54db95
JF
12940 if test yes = "$GCC"; then
12941 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12942 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558 12943 else
9d54db95
JF
12944 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12945 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
12946 fi
12947 ;;
12948
12949 sysv5* | sco3.2v5* | sco5v6*)
9d54db95 12950 # Note: We CANNOT use -z defs as we might desire, because we do not
a243b558
JF
12951 # link with -lc, and that would cause any symbols used from libc to
12952 # always be unresolved, which means just about no library would
12953 # ever link correctly. If we're not using GNU ld we use -z text
12954 # though, which does catch some bad symbols but isn't as heavy-handed
12955 # as -z defs.
9d54db95
JF
12956 no_undefined_flag='$wl-z,text'
12957 allow_undefined_flag='$wl-z,nodefs'
a243b558
JF
12958 archive_cmds_need_lc=no
12959 hardcode_shlibpath_var=no
9d54db95 12960 hardcode_libdir_flag_spec='$wl-R,$libdir'
a243b558
JF
12961 hardcode_libdir_separator=':'
12962 link_all_deplibs=yes
9d54db95 12963 export_dynamic_flag_spec='$wl-Bexport'
a243b558
JF
12964 runpath_var='LD_RUN_PATH'
12965
9d54db95
JF
12966 if test yes = "$GCC"; then
12967 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12968 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558 12969 else
9d54db95
JF
12970 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12971 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
a243b558
JF
12972 fi
12973 ;;
12974
12975 uts4*)
12976 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12977 hardcode_libdir_flag_spec='-L$libdir'
12978 hardcode_shlibpath_var=no
12979 ;;
12980
12981 *)
12982 ld_shlibs=no
12983 ;;
12984 esac
12985
9d54db95 12986 if test sni = "$host_vendor"; then
a243b558
JF
12987 case $host in
12988 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9d54db95 12989 export_dynamic_flag_spec='$wl-Blargedynsym'
a243b558
JF
12990 ;;
12991 esac
12992 fi
12993 fi
12994
12995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12996$as_echo "$ld_shlibs" >&6; }
9d54db95 12997test no = "$ld_shlibs" && can_build_shared=no
a243b558
JF
12998
12999with_gnu_ld=$with_gnu_ld
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015#
13016# Do we need to explicitly link libc?
13017#
13018case "x$archive_cmds_need_lc" in
13019x|xyes)
13020 # Assume -lc should be added
13021 archive_cmds_need_lc=yes
13022
9d54db95 13023 if test yes,yes = "$GCC,$enable_shared"; then
a243b558
JF
13024 case $archive_cmds in
13025 *'~'*)
13026 # FIXME: we may have to deal with multi-command sequences.
13027 ;;
13028 '$CC '*)
13029 # Test whether the compiler implicitly links with -lc since on some
13030 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13031 # to ld, don't add -lc before -lgcc.
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13033$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13034if ${lt_cv_archive_cmds_need_lc+:} false; then :
13035 $as_echo_n "(cached) " >&6
13036else
00a96142 13037 $RM -r conftest*
a243b558
JF
13038 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13039
13040 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13041 (eval $ac_compile) 2>&5
13042 ac_status=$?
13043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13044 test $ac_status = 0; } 2>conftest.err; then
13045 soname=conftest
13046 lib=conftest
13047 libobjs=conftest.$ac_objext
13048 deplibs=
13049 wl=$lt_prog_compiler_wl
13050 pic_flag=$lt_prog_compiler_pic
13051 compiler_flags=-v
13052 linker_flags=-v
13053 verstring=
13054 output_objdir=.
13055 libname=conftest
13056 lt_save_allow_undefined_flag=$allow_undefined_flag
13057 allow_undefined_flag=
13058 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13059 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13060 ac_status=$?
13061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13062 test $ac_status = 0; }
13063 then
13064 lt_cv_archive_cmds_need_lc=no
13065 else
13066 lt_cv_archive_cmds_need_lc=yes
13067 fi
13068 allow_undefined_flag=$lt_save_allow_undefined_flag
13069 else
13070 cat conftest.err 1>&5
13071 fi
00a96142 13072 $RM -r conftest*
a243b558
JF
13073
13074fi
13075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13076$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13077 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13078 ;;
13079 esac
13080 fi
13081 ;;
13082esac
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13236$as_echo_n "checking dynamic linker characteristics... " >&6; }
13237
9d54db95 13238if test yes = "$GCC"; then
a243b558 13239 case $host_os in
9d54db95
JF
13240 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13241 *) lt_awk_arg='/^libraries:/' ;;
a243b558
JF
13242 esac
13243 case $host_os in
9d54db95
JF
13244 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13245 *) lt_sed_strip_eq='s|=/|/|g' ;;
a243b558
JF
13246 esac
13247 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13248 case $lt_search_path_spec in
13249 *\;*)
13250 # if the path contains ";" then we assume it to be the separator
13251 # otherwise default to the standard path separator (i.e. ":") - it is
13252 # assumed that no part of a normal pathname contains ";" but that should
13253 # okay in the real world where ";" in dirpaths is itself problematic.
13254 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13255 ;;
13256 *)
13257 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13258 ;;
13259 esac
13260 # Ok, now we have the path, separated by spaces, we can step through it
9d54db95 13261 # and add multilib dir if necessary...
a243b558 13262 lt_tmp_lt_search_path_spec=
9d54db95
JF
13263 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13264 # ...but if some path component already ends with the multilib dir we assume
13265 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13266 case "$lt_multi_os_dir; $lt_search_path_spec " in
13267 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13268 lt_multi_os_dir=
13269 ;;
13270 esac
a243b558 13271 for lt_sys_path in $lt_search_path_spec; do
9d54db95
JF
13272 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13273 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13274 elif test -n "$lt_multi_os_dir"; then
a243b558
JF
13275 test -d "$lt_sys_path" && \
13276 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13277 fi
13278 done
13279 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9d54db95
JF
13280BEGIN {RS = " "; FS = "/|\n";} {
13281 lt_foo = "";
13282 lt_count = 0;
a243b558
JF
13283 for (lt_i = NF; lt_i > 0; lt_i--) {
13284 if ($lt_i != "" && $lt_i != ".") {
13285 if ($lt_i == "..") {
13286 lt_count++;
13287 } else {
13288 if (lt_count == 0) {
9d54db95 13289 lt_foo = "/" $lt_i lt_foo;
a243b558
JF
13290 } else {
13291 lt_count--;
13292 }
13293 }
13294 }
13295 }
13296 if (lt_foo != "") { lt_freq[lt_foo]++; }
13297 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13298}'`
13299 # AWK program above erroneously prepends '/' to C:/dos/paths
13300 # for these hosts.
13301 case $host_os in
13302 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9d54db95 13303 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
a243b558
JF
13304 esac
13305 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13306else
13307 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13308fi
13309library_names_spec=
13310libname_spec='lib$name'
13311soname_spec=
9d54db95 13312shrext_cmds=.so
a243b558
JF
13313postinstall_cmds=
13314postuninstall_cmds=
13315finish_cmds=
13316finish_eval=
13317shlibpath_var=
13318shlibpath_overrides_runpath=unknown
13319version_type=none
13320dynamic_linker="$host_os ld.so"
13321sys_lib_dlsearch_path_spec="/lib /usr/lib"
13322need_lib_prefix=unknown
13323hardcode_into_libs=no
13324
13325# when you set need_version to no, make sure it does not cause -set_version
13326# flags to be left without arguments
13327need_version=unknown
13328
9d54db95
JF
13329
13330
a243b558
JF
13331case $host_os in
13332aix3*)
13333 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95 13334 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
a243b558
JF
13335 shlibpath_var=LIBPATH
13336
13337 # AIX 3 has no versioning support, so we append a major version to the name.
9d54db95 13338 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
13339 ;;
13340
13341aix[4-9]*)
13342 version_type=linux # correct to gnu/linux during the next big refactor
13343 need_lib_prefix=no
13344 need_version=no
13345 hardcode_into_libs=yes
9d54db95 13346 if test ia64 = "$host_cpu"; then
a243b558 13347 # AIX 5 supports IA64
9d54db95 13348 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
a243b558
JF
13349 shlibpath_var=LD_LIBRARY_PATH
13350 else
13351 # With GCC up to 2.95.x, collect2 would create an import file
13352 # for dependence libraries. The import file would start with
9d54db95
JF
13353 # the line '#! .'. This would cause the generated library to
13354 # depend on '.', always an invalid library. This was fixed in
a243b558
JF
13355 # development snapshots of GCC prior to 3.0.
13356 case $host_os in
13357 aix4 | aix4.[01] | aix4.[01].*)
13358 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13359 echo ' yes '
9d54db95 13360 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
a243b558
JF
13361 :
13362 else
13363 can_build_shared=no
13364 fi
13365 ;;
13366 esac
9d54db95
JF
13367 # Using Import Files as archive members, it is possible to support
13368 # filename-based versioning of shared library archives on AIX. While
13369 # this would work for both with and without runtime linking, it will
13370 # prevent static linking of such archives. So we do filename-based
13371 # shared library versioning with .so extension only, which is used
13372 # when both runtime linking and shared linking is enabled.
13373 # Unfortunately, runtime linking may impact performance, so we do
13374 # not want this to be the default eventually. Also, we use the
13375 # versioned .so libs for executables only if there is the -brtl
13376 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13377 # To allow for filename-based versioning support, we need to create
13378 # libNAME.so.V as an archive file, containing:
13379 # *) an Import File, referring to the versioned filename of the
13380 # archive as well as the shared archive member, telling the
13381 # bitwidth (32 or 64) of that shared object, and providing the
13382 # list of exported symbols of that shared object, eventually
13383 # decorated with the 'weak' keyword
13384 # *) the shared object with the F_LOADONLY flag set, to really avoid
13385 # it being seen by the linker.
13386 # At run time we better use the real file rather than another symlink,
13387 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13388
13389 case $with_aix_soname,$aix_use_runtimelinking in
13390 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
a243b558
JF
13391 # soname into executable. Probably we can add versioning support to
13392 # collect2, so additional links can be useful in future.
9d54db95
JF
13393 aix,yes) # traditional libtool
13394 dynamic_linker='AIX unversionable lib.so'
a243b558
JF
13395 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13396 # instead of lib<name>.a to let people know that these are not
13397 # typical AIX shared libraries.
9d54db95
JF
13398 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13399 ;;
13400 aix,no) # traditional AIX only
13401 dynamic_linker='AIX lib.a(lib.so.V)'
a243b558
JF
13402 # We preserve .a as extension for shared libraries through AIX4.2
13403 # and later when we are not doing run time linking.
9d54db95
JF
13404 library_names_spec='$libname$release.a $libname.a'
13405 soname_spec='$libname$release$shared_ext$major'
13406 ;;
13407 svr4,*) # full svr4 only
13408 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13409 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13410 # We do not specify a path in Import Files, so LIBPATH fires.
13411 shlibpath_overrides_runpath=yes
13412 ;;
13413 *,yes) # both, prefer svr4
13414 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13415 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13416 # unpreferred sharedlib libNAME.a needs extra handling
13417 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"'
13418 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"'
13419 # We do not specify a path in Import Files, so LIBPATH fires.
13420 shlibpath_overrides_runpath=yes
13421 ;;
13422 *,no) # both, prefer aix
13423 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13424 library_names_spec='$libname$release.a $libname.a'
13425 soname_spec='$libname$release$shared_ext$major'
13426 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13427 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)'
13428 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"'
13429 ;;
13430 esac
a243b558
JF
13431 shlibpath_var=LIBPATH
13432 fi
13433 ;;
13434
13435amigaos*)
13436 case $host_cpu in
13437 powerpc)
13438 # Since July 2007 AmigaOS4 officially supports .so libraries.
13439 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9d54db95 13440 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
a243b558
JF
13441 ;;
13442 m68k)
13443 library_names_spec='$libname.ixlibrary $libname.a'
13444 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9d54db95 13445 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
13446 ;;
13447 esac
13448 ;;
13449
13450beos*)
9d54db95 13451 library_names_spec='$libname$shared_ext'
a243b558
JF
13452 dynamic_linker="$host_os ld.so"
13453 shlibpath_var=LIBRARY_PATH
13454 ;;
13455
13456bsdi[45]*)
13457 version_type=linux # correct to gnu/linux during the next big refactor
13458 need_version=no
9d54db95
JF
13459 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13460 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
13461 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13462 shlibpath_var=LD_LIBRARY_PATH
13463 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13464 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13465 # the default ld.so.conf also contains /usr/contrib/lib and
13466 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13467 # libtool to hard-code these into programs
13468 ;;
13469
13470cygwin* | mingw* | pw32* | cegcc*)
13471 version_type=windows
9d54db95 13472 shrext_cmds=.dll
a243b558
JF
13473 need_version=no
13474 need_lib_prefix=no
9c60689e 13475
a243b558
JF
13476 case $GCC,$cc_basename in
13477 yes,*)
13478 # gcc
13479 library_names_spec='$libname.dll.a'
13480 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9d54db95
JF
13481 postinstall_cmds='base_file=`basename \$file`~
13482 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
a243b558
JF
13483 dldir=$destdir/`dirname \$dlpath`~
13484 test -d \$dldir || mkdir -p \$dldir~
13485 $install_prog $dir/$dlname \$dldir/$dlname~
13486 chmod a+x \$dldir/$dlname~
13487 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13488 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13489 fi'
13490 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13491 dlpath=$dir/\$dldll~
13492 $RM \$dlpath'
13493 shlibpath_overrides_runpath=yes
9c60689e 13494
a243b558
JF
13495 case $host_os in
13496 cygwin*)
13497 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9d54db95 13498 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
9c60689e 13499
a243b558
JF
13500 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13501 ;;
13502 mingw* | cegcc*)
13503 # MinGW DLLs use traditional 'lib' prefix
9d54db95 13504 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
a243b558
JF
13505 ;;
13506 pw32*)
13507 # pw32 DLLs use 'pw' prefix rather than 'lib'
9d54db95 13508 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
a243b558
JF
13509 ;;
13510 esac
13511 dynamic_linker='Win32 ld.exe'
13512 ;;
9c60689e 13513
a243b558
JF
13514 *,cl*)
13515 # Native MSVC
13516 libname_spec='$name'
9d54db95
JF
13517 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13518 library_names_spec='$libname.dll.lib'
9c60689e 13519
a243b558
JF
13520 case $build_os in
13521 mingw*)
13522 sys_lib_search_path_spec=
13523 lt_save_ifs=$IFS
13524 IFS=';'
13525 for lt_path in $LIB
13526 do
13527 IFS=$lt_save_ifs
13528 # Let DOS variable expansion print the short 8.3 style file name.
13529 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13530 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13531 done
13532 IFS=$lt_save_ifs
13533 # Convert to MSYS style.
13534 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13535 ;;
13536 cygwin*)
13537 # Convert to unix form, then to dos form, then back to unix form
13538 # but this time dos style (no spaces!) so that the unix form looks
13539 # like /cygdrive/c/PROGRA~1:/cygdr...
13540 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13541 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13542 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13543 ;;
13544 *)
9d54db95 13545 sys_lib_search_path_spec=$LIB
a243b558
JF
13546 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13547 # It is most probably a Windows format PATH.
13548 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13549 else
13550 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13551 fi
13552 # FIXME: find the short name or the path components, as spaces are
13553 # common. (e.g. "Program Files" -> "PROGRA~1")
13554 ;;
13555 esac
13556
13557 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9d54db95
JF
13558 postinstall_cmds='base_file=`basename \$file`~
13559 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
a243b558
JF
13560 dldir=$destdir/`dirname \$dlpath`~
13561 test -d \$dldir || mkdir -p \$dldir~
13562 $install_prog $dir/$dlname \$dldir/$dlname'
13563 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13564 dlpath=$dir/\$dldll~
13565 $RM \$dlpath'
13566 shlibpath_overrides_runpath=yes
13567 dynamic_linker='Win32 link.exe'
13568 ;;
9c60689e 13569
a243b558
JF
13570 *)
13571 # Assume MSVC wrapper
9d54db95 13572 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
a243b558
JF
13573 dynamic_linker='Win32 ld.exe'
13574 ;;
13575 esac
13576 # FIXME: first we should search . and the directory the executable is in
13577 shlibpath_var=PATH
13578 ;;
9c60689e 13579
a243b558
JF
13580darwin* | rhapsody*)
13581 dynamic_linker="$host_os dyld"
13582 version_type=darwin
13583 need_lib_prefix=no
13584 need_version=no
9d54db95
JF
13585 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
13586 soname_spec='$libname$release$major$shared_ext'
a243b558
JF
13587 shlibpath_overrides_runpath=yes
13588 shlibpath_var=DYLD_LIBRARY_PATH
13589 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9c60689e 13590
a243b558
JF
13591 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13592 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13593 ;;
9c60689e 13594
a243b558
JF
13595dgux*)
13596 version_type=linux # correct to gnu/linux during the next big refactor
13597 need_lib_prefix=no
13598 need_version=no
9d54db95
JF
13599 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13600 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
13601 shlibpath_var=LD_LIBRARY_PATH
13602 ;;
13603
13604freebsd* | dragonfly*)
13605 # DragonFly does not have aout. When/if they implement a new
13606 # versioning mechanism, adjust this.
13607 if test -x /usr/bin/objformat; then
13608 objformat=`/usr/bin/objformat`
13609 else
13610 case $host_os in
13611 freebsd[23].*) objformat=aout ;;
13612 *) objformat=elf ;;
13613 esac
13614 fi
13615 version_type=freebsd-$objformat
13616 case $version_type in
13617 freebsd-elf*)
9d54db95
JF
13618 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13619 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
13620 need_version=no
13621 need_lib_prefix=no
13622 ;;
13623 freebsd-*)
9d54db95 13624 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
a243b558
JF
13625 need_version=yes
13626 ;;
13627 esac
13628 shlibpath_var=LD_LIBRARY_PATH
13629 case $host_os in
13630 freebsd2.*)
13631 shlibpath_overrides_runpath=yes
13632 ;;
13633 freebsd3.[01]* | freebsdelf3.[01]*)
13634 shlibpath_overrides_runpath=yes
13635 hardcode_into_libs=yes
13636 ;;
13637 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13638 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13639 shlibpath_overrides_runpath=no
13640 hardcode_into_libs=yes
13641 ;;
13642 *) # from 4.6 on, and DragonFly
13643 shlibpath_overrides_runpath=yes
13644 hardcode_into_libs=yes
13645 ;;
13646 esac
13647 ;;
9c60689e 13648
a243b558
JF
13649haiku*)
13650 version_type=linux # correct to gnu/linux during the next big refactor
13651 need_lib_prefix=no
13652 need_version=no
13653 dynamic_linker="$host_os runtime_loader"
9d54db95
JF
13654 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13655 soname_spec='$libname$release$shared_ext$major'
a243b558 13656 shlibpath_var=LIBRARY_PATH
9d54db95 13657 shlibpath_overrides_runpath=no
a243b558
JF
13658 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13659 hardcode_into_libs=yes
13660 ;;
9c60689e 13661
a243b558
JF
13662hpux9* | hpux10* | hpux11*)
13663 # Give a soname corresponding to the major version so that dld.sl refuses to
13664 # link against other versions.
13665 version_type=sunos
13666 need_lib_prefix=no
13667 need_version=no
13668 case $host_cpu in
13669 ia64*)
13670 shrext_cmds='.so'
13671 hardcode_into_libs=yes
13672 dynamic_linker="$host_os dld.so"
13673 shlibpath_var=LD_LIBRARY_PATH
13674 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9d54db95
JF
13675 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13676 soname_spec='$libname$release$shared_ext$major'
13677 if test 32 = "$HPUX_IA64_MODE"; then
a243b558 13678 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9d54db95 13679 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
a243b558
JF
13680 else
13681 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9d54db95 13682 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
a243b558 13683 fi
a243b558
JF
13684 ;;
13685 hppa*64*)
13686 shrext_cmds='.sl'
13687 hardcode_into_libs=yes
13688 dynamic_linker="$host_os dld.sl"
13689 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13690 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9d54db95
JF
13691 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13692 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
13693 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13694 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13695 ;;
13696 *)
13697 shrext_cmds='.sl'
13698 dynamic_linker="$host_os dld.sl"
13699 shlibpath_var=SHLIB_PATH
13700 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9d54db95
JF
13701 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13702 soname_spec='$libname$release$shared_ext$major'
9c60689e
DWT
13703 ;;
13704 esac
a243b558
JF
13705 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13706 postinstall_cmds='chmod 555 $lib'
13707 # or fails outright, so override atomically:
13708 install_override_mode=555
13709 ;;
9c60689e 13710
a243b558
JF
13711interix[3-9]*)
13712 version_type=linux # correct to gnu/linux during the next big refactor
13713 need_lib_prefix=no
13714 need_version=no
9d54db95
JF
13715 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13716 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
13717 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13718 shlibpath_var=LD_LIBRARY_PATH
13719 shlibpath_overrides_runpath=no
13720 hardcode_into_libs=yes
13721 ;;
9c60689e 13722
a243b558
JF
13723irix5* | irix6* | nonstopux*)
13724 case $host_os in
13725 nonstopux*) version_type=nonstopux ;;
13726 *)
9d54db95 13727 if test yes = "$lt_cv_prog_gnu_ld"; then
a243b558
JF
13728 version_type=linux # correct to gnu/linux during the next big refactor
13729 else
13730 version_type=irix
13731 fi ;;
13732 esac
13733 need_lib_prefix=no
13734 need_version=no
9d54db95
JF
13735 soname_spec='$libname$release$shared_ext$major'
13736 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
a243b558
JF
13737 case $host_os in
13738 irix5* | nonstopux*)
13739 libsuff= shlibsuff=
13740 ;;
13741 *)
13742 case $LD in # libtool.m4 will add one of these switches to LD
13743 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13744 libsuff= shlibsuff= libmagic=32-bit;;
13745 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13746 libsuff=32 shlibsuff=N32 libmagic=N32;;
13747 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13748 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13749 *) libsuff= shlibsuff= libmagic=never-match;;
13750 esac
13751 ;;
13752 esac
13753 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13754 shlibpath_overrides_runpath=no
9d54db95
JF
13755 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13756 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
a243b558
JF
13757 hardcode_into_libs=yes
13758 ;;
9c60689e 13759
a243b558
JF
13760# No shared lib support for Linux oldld, aout, or coff.
13761linux*oldld* | linux*aout* | linux*coff*)
13762 dynamic_linker=no
13763 ;;
9c60689e 13764
9d54db95
JF
13765linux*android*)
13766 version_type=none # Android doesn't support versioned libraries.
13767 need_lib_prefix=no
13768 need_version=no
13769 library_names_spec='$libname$release$shared_ext'
13770 soname_spec='$libname$release$shared_ext'
13771 finish_cmds=
13772 shlibpath_var=LD_LIBRARY_PATH
13773 shlibpath_overrides_runpath=yes
13774
13775 # This implies no fast_install, which is unacceptable.
13776 # Some rework will be needed to allow for fast_install
13777 # before this can be enabled.
13778 hardcode_into_libs=yes
13779
13780 dynamic_linker='Android linker'
13781 # Don't embed -rpath directories since the linker doesn't support them.
13782 hardcode_libdir_flag_spec='-L$libdir'
13783 ;;
13784
a243b558 13785# This must be glibc/ELF.
9d54db95 13786linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
a243b558
JF
13787 version_type=linux # correct to gnu/linux during the next big refactor
13788 need_lib_prefix=no
13789 need_version=no
9d54db95
JF
13790 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13791 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
13792 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13793 shlibpath_var=LD_LIBRARY_PATH
13794 shlibpath_overrides_runpath=no
9c60689e 13795
a243b558
JF
13796 # Some binutils ld are patched to set DT_RUNPATH
13797 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
9c60689e
DWT
13798 $as_echo_n "(cached) " >&6
13799else
a243b558
JF
13800 lt_cv_shlibpath_overrides_runpath=no
13801 save_LDFLAGS=$LDFLAGS
13802 save_libdir=$libdir
13803 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13804 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13806/* end confdefs.h. */
ee134472 13807
a243b558
JF
13808int
13809main ()
9c60689e 13810{
9c60689e 13811
a243b558
JF
13812 ;
13813 return 0;
13814}
13815_ACEOF
13816if ac_fn_c_try_link "$LINENO"; then :
13817 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13818 lt_cv_shlibpath_overrides_runpath=yes
13819fi
13820fi
13821rm -f core conftest.err conftest.$ac_objext \
13822 conftest$ac_exeext conftest.$ac_ext
13823 LDFLAGS=$save_LDFLAGS
13824 libdir=$save_libdir
9c60689e 13825
a243b558 13826fi
9c60689e 13827
a243b558 13828 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9c60689e 13829
a243b558
JF
13830 # This implies no fast_install, which is unacceptable.
13831 # Some rework will be needed to allow for fast_install
13832 # before this can be enabled.
13833 hardcode_into_libs=yes
9c60689e 13834
9d54db95
JF
13835 # Ideally, we could use ldconfig to report *all* directores which are
13836 # searched for libraries, however this is still not possible. Aside from not
13837 # being certain /sbin/ldconfig is available, command
13838 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13839 # even though it is searched at run-time. Try to do the best guess by
13840 # appending ld.so.conf contents (and includes) to the search path.
a243b558
JF
13841 if test -f /etc/ld.so.conf; then
13842 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' ' '`
13843 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13844 fi
ee134472 13845
a243b558
JF
13846 # We used to test for /lib/ld.so.1 and disable shared libraries on
13847 # powerpc, because MkLinux only supported shared libraries with the
13848 # GNU dynamic linker. Since this was broken with cross compilers,
13849 # most powerpc-linux boxes support dynamic linking these days and
13850 # people can always --disable-shared, the test was removed, and we
13851 # assume the GNU/Linux dynamic linker is in use.
13852 dynamic_linker='GNU/Linux ld.so'
13853 ;;
9c60689e 13854
a243b558
JF
13855netbsd*)
13856 version_type=sunos
13857 need_lib_prefix=no
13858 need_version=no
13859 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9d54db95 13860 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
a243b558
JF
13861 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13862 dynamic_linker='NetBSD (a.out) ld.so'
9c60689e 13863 else
9d54db95
JF
13864 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13865 soname_spec='$libname$release$shared_ext$major'
a243b558 13866 dynamic_linker='NetBSD ld.elf_so'
9c60689e 13867 fi
a243b558
JF
13868 shlibpath_var=LD_LIBRARY_PATH
13869 shlibpath_overrides_runpath=yes
13870 hardcode_into_libs=yes
13871 ;;
9c60689e 13872
a243b558
JF
13873newsos6)
13874 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95 13875 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
a243b558
JF
13876 shlibpath_var=LD_LIBRARY_PATH
13877 shlibpath_overrides_runpath=yes
13878 ;;
9c60689e 13879
a243b558
JF
13880*nto* | *qnx*)
13881 version_type=qnx
13882 need_lib_prefix=no
13883 need_version=no
9d54db95
JF
13884 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13885 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
13886 shlibpath_var=LD_LIBRARY_PATH
13887 shlibpath_overrides_runpath=no
13888 hardcode_into_libs=yes
13889 dynamic_linker='ldqnx.so'
13890 ;;
9c60689e 13891
9d54db95 13892openbsd* | bitrig*)
a243b558 13893 version_type=sunos
9d54db95 13894 sys_lib_dlsearch_path_spec=/usr/lib
a243b558 13895 need_lib_prefix=no
9d54db95
JF
13896 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13897 need_version=no
a243b558 13898 else
9d54db95 13899 need_version=yes
a243b558 13900 fi
9d54db95
JF
13901 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13902 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13903 shlibpath_var=LD_LIBRARY_PATH
13904 shlibpath_overrides_runpath=yes
a243b558 13905 ;;
9c60689e 13906
a243b558
JF
13907os2*)
13908 libname_spec='$name'
9d54db95
JF
13909 version_type=windows
13910 shrext_cmds=.dll
13911 need_version=no
a243b558 13912 need_lib_prefix=no
9d54db95
JF
13913 # OS/2 can only load a DLL with a base name of 8 characters or less.
13914 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13915 v=$($ECHO $release$versuffix | tr -d .-);
13916 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13917 $ECHO $n$v`$shared_ext'
13918 library_names_spec='${libname}_dll.$libext'
a243b558 13919 dynamic_linker='OS/2 ld.exe'
9d54db95
JF
13920 shlibpath_var=BEGINLIBPATH
13921 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13922 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13923 postinstall_cmds='base_file=`basename \$file`~
13924 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13925 dldir=$destdir/`dirname \$dlpath`~
13926 test -d \$dldir || mkdir -p \$dldir~
13927 $install_prog $dir/$dlname \$dldir/$dlname~
13928 chmod a+x \$dldir/$dlname~
13929 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13930 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13931 fi'
13932 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13933 dlpath=$dir/\$dldll~
13934 $RM \$dlpath'
a243b558 13935 ;;
9c60689e 13936
a243b558
JF
13937osf3* | osf4* | osf5*)
13938 version_type=osf
13939 need_lib_prefix=no
13940 need_version=no
9d54db95
JF
13941 soname_spec='$libname$release$shared_ext$major'
13942 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
a243b558
JF
13943 shlibpath_var=LD_LIBRARY_PATH
13944 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9d54db95 13945 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
a243b558
JF
13946 ;;
13947
13948rdos*)
13949 dynamic_linker=no
13950 ;;
13951
13952solaris*)
13953 version_type=linux # correct to gnu/linux during the next big refactor
13954 need_lib_prefix=no
13955 need_version=no
9d54db95
JF
13956 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13957 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
13958 shlibpath_var=LD_LIBRARY_PATH
13959 shlibpath_overrides_runpath=yes
13960 hardcode_into_libs=yes
13961 # ldd complains unless libraries are executable
13962 postinstall_cmds='chmod +x $lib'
13963 ;;
9c60689e 13964
a243b558
JF
13965sunos4*)
13966 version_type=sunos
9d54db95 13967 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
a243b558
JF
13968 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13969 shlibpath_var=LD_LIBRARY_PATH
13970 shlibpath_overrides_runpath=yes
9d54db95 13971 if test yes = "$with_gnu_ld"; then
a243b558
JF
13972 need_lib_prefix=no
13973 fi
13974 need_version=yes
13975 ;;
9c60689e 13976
a243b558
JF
13977sysv4 | sysv4.3*)
13978 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95
JF
13979 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13980 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
13981 shlibpath_var=LD_LIBRARY_PATH
13982 case $host_vendor in
13983 sni)
13984 shlibpath_overrides_runpath=no
13985 need_lib_prefix=no
13986 runpath_var=LD_RUN_PATH
13987 ;;
13988 siemens)
13989 need_lib_prefix=no
13990 ;;
13991 motorola)
13992 need_lib_prefix=no
13993 need_version=no
13994 shlibpath_overrides_runpath=no
13995 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13996 ;;
13997 esac
13998 ;;
9c60689e 13999
a243b558 14000sysv4*MP*)
9d54db95 14001 if test -d /usr/nec; then
a243b558 14002 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95
JF
14003 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14004 soname_spec='$libname$shared_ext.$major'
a243b558
JF
14005 shlibpath_var=LD_LIBRARY_PATH
14006 fi
14007 ;;
9c60689e 14008
a243b558 14009sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9d54db95 14010 version_type=sco
a243b558
JF
14011 need_lib_prefix=no
14012 need_version=no
9d54db95
JF
14013 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14014 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
14015 shlibpath_var=LD_LIBRARY_PATH
14016 shlibpath_overrides_runpath=yes
14017 hardcode_into_libs=yes
9d54db95 14018 if test yes = "$with_gnu_ld"; then
a243b558
JF
14019 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14020 else
14021 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14022 case $host_os in
14023 sco3.2v5*)
14024 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14025 ;;
14026 esac
14027 fi
14028 sys_lib_dlsearch_path_spec='/usr/lib'
14029 ;;
9c60689e 14030
a243b558
JF
14031tpf*)
14032 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14033 version_type=linux # correct to gnu/linux during the next big refactor
14034 need_lib_prefix=no
14035 need_version=no
9d54db95 14036 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
a243b558
JF
14037 shlibpath_var=LD_LIBRARY_PATH
14038 shlibpath_overrides_runpath=no
14039 hardcode_into_libs=yes
14040 ;;
9c60689e 14041
a243b558
JF
14042uts4*)
14043 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95
JF
14044 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14045 soname_spec='$libname$release$shared_ext$major'
a243b558
JF
14046 shlibpath_var=LD_LIBRARY_PATH
14047 ;;
9c60689e 14048
a243b558
JF
14049*)
14050 dynamic_linker=no
14051 ;;
14052esac
14053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14054$as_echo "$dynamic_linker" >&6; }
9d54db95 14055test no = "$dynamic_linker" && can_build_shared=no
9c60689e 14056
a243b558 14057variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9d54db95 14058if test yes = "$GCC"; then
a243b558
JF
14059 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14060fi
9c60689e 14061
9d54db95
JF
14062if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14063 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
a243b558 14064fi
9d54db95
JF
14065
14066if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14067 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
a243b558 14068fi
9c60689e 14069
9d54db95
JF
14070# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14071configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14072
14073# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14074func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14075
14076# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14077configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14078
14079
14080
14081
14082
14083
9c60689e
DWT
14084
14085
14086
14087
14088
14089
14090
9c60689e
DWT
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
9c60689e 14103
9c60689e 14104
9c60689e 14105
9c60689e 14106
9c60689e
DWT
14107
14108
14109
14110
9c60689e 14111
9c60689e
DWT
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
53ba6704
JF
14125
14126
9c60689e
DWT
14127
14128
14129
14130
9c60689e
DWT
14131
14132
3fd51f51 14133
66170b30
JF
14134
14135
14136
3fd51f51 14137
12833ad8
JF
14138
14139
14140
14141
3fd51f51 14142
3fd51f51
DWT
14143
14144
3fd51f51 14145
3fd51f51 14146
3fd51f51 14147
66170b30 14148
632b71ea 14149
632b71ea
DWT
14150
14151
790e5246 14152
66170b30 14153
9c60689e 14154
9c60689e
DWT
14155
14156
9c60689e 14157
9c60689e
DWT
14158
14159
66170b30 14160
66170b30 14161
9c60689e 14162
e9c9a47c
DWT
14163
14164
14165
66170b30
JF
14166
14167
66170b30 14168
e9c9a47c 14169
a243b558
JF
14170
14171
14172
14173
14174
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14176$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14177hardcode_action=
14178if test -n "$hardcode_libdir_flag_spec" ||
14179 test -n "$runpath_var" ||
9d54db95 14180 test yes = "$hardcode_automatic"; then
a243b558
JF
14181
14182 # We can hardcode non-existent directories.
9d54db95 14183 if test no != "$hardcode_direct" &&
a243b558
JF
14184 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14185 # have to relink, otherwise we might link with an installed library
14186 # when we should be linking with a yet-to-be-installed one
9d54db95
JF
14187 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14188 test no != "$hardcode_minus_L"; then
a243b558
JF
14189 # Linking always hardcodes the temporary library directory.
14190 hardcode_action=relink
14191 else
14192 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14193 hardcode_action=immediate
9c60689e 14194 fi
e9c9a47c 14195else
a243b558
JF
14196 # We cannot hardcode anything, or else we can only hardcode existing
14197 # directories.
14198 hardcode_action=unsupported
14199fi
14200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14201$as_echo "$hardcode_action" >&6; }
14202
9d54db95
JF
14203if test relink = "$hardcode_action" ||
14204 test yes = "$inherit_rpath"; then
a243b558
JF
14205 # Fast installation is not supported
14206 enable_fast_install=no
9d54db95
JF
14207elif test yes = "$shlibpath_overrides_runpath" ||
14208 test no = "$enable_shared"; then
a243b558
JF
14209 # Fast installation is not necessary
14210 enable_fast_install=needless
9c60689e 14211fi
9c60689e 14212
9c60689e 14213
66170b30 14214
66170b30 14215
9c60689e 14216
a243b558 14217
9d54db95 14218 if test yes != "$enable_dlopen"; then
a243b558
JF
14219 enable_dlopen=unknown
14220 enable_dlopen_self=unknown
14221 enable_dlopen_self_static=unknown
66170b30 14222else
a243b558
JF
14223 lt_cv_dlopen=no
14224 lt_cv_dlopen_libs=
66170b30 14225
a243b558
JF
14226 case $host_os in
14227 beos*)
9d54db95 14228 lt_cv_dlopen=load_add_on
a243b558
JF
14229 lt_cv_dlopen_libs=
14230 lt_cv_dlopen_self=yes
14231 ;;
66170b30 14232
a243b558 14233 mingw* | pw32* | cegcc*)
9d54db95 14234 lt_cv_dlopen=LoadLibrary
a243b558
JF
14235 lt_cv_dlopen_libs=
14236 ;;
66170b30 14237
a243b558 14238 cygwin*)
9d54db95 14239 lt_cv_dlopen=dlopen
a243b558
JF
14240 lt_cv_dlopen_libs=
14241 ;;
66170b30 14242
a243b558 14243 darwin*)
9d54db95 14244 # if libdl is installed we need to link against it
a243b558
JF
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14246$as_echo_n "checking for dlopen in -ldl... " >&6; }
14247if ${ac_cv_lib_dl_dlopen+:} false; then :
14248 $as_echo_n "(cached) " >&6
14249else
14250 ac_check_lib_save_LIBS=$LIBS
14251LIBS="-ldl $LIBS"
14252cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14253/* end confdefs.h. */
66170b30 14254
a243b558
JF
14255/* Override any GCC internal prototype to avoid an error.
14256 Use char because int might match the return type of a GCC
14257 builtin and then its argument prototype would still apply. */
14258#ifdef __cplusplus
14259extern "C"
14260#endif
14261char dlopen ();
14262int
14263main ()
14264{
14265return dlopen ();
14266 ;
14267 return 0;
14268}
14269_ACEOF
14270if ac_fn_c_try_link "$LINENO"; then :
14271 ac_cv_lib_dl_dlopen=yes
14272else
14273 ac_cv_lib_dl_dlopen=no
66170b30 14274fi
a243b558
JF
14275rm -f core conftest.err conftest.$ac_objext \
14276 conftest$ac_exeext conftest.$ac_ext
14277LIBS=$ac_check_lib_save_LIBS
66170b30 14278fi
a243b558
JF
14279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14280$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14281if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9d54db95 14282 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
a243b558 14283else
66170b30 14284
9d54db95 14285 lt_cv_dlopen=dyld
a243b558
JF
14286 lt_cv_dlopen_libs=
14287 lt_cv_dlopen_self=yes
66170b30 14288
a243b558 14289fi
9c60689e 14290
a243b558 14291 ;;
9c60689e 14292
9d54db95
JF
14293 tpf*)
14294 # Don't try to run any link tests for TPF. We know it's impossible
14295 # because TPF is a cross-compiler, and we know how we open DSOs.
14296 lt_cv_dlopen=dlopen
14297 lt_cv_dlopen_libs=
14298 lt_cv_dlopen_self=no
14299 ;;
14300
a243b558
JF
14301 *)
14302 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14303if test "x$ac_cv_func_shl_load" = xyes; then :
9d54db95 14304 lt_cv_dlopen=shl_load
a243b558
JF
14305else
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14307$as_echo_n "checking for shl_load in -ldld... " >&6; }
14308if ${ac_cv_lib_dld_shl_load+:} false; then :
14309 $as_echo_n "(cached) " >&6
14310else
14311 ac_check_lib_save_LIBS=$LIBS
14312LIBS="-ldld $LIBS"
14313cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14314/* end confdefs.h. */
66170b30 14315
a243b558
JF
14316/* Override any GCC internal prototype to avoid an error.
14317 Use char because int might match the return type of a GCC
14318 builtin and then its argument prototype would still apply. */
14319#ifdef __cplusplus
14320extern "C"
14321#endif
14322char shl_load ();
14323int
14324main ()
14325{
14326return shl_load ();
14327 ;
14328 return 0;
14329}
14330_ACEOF
14331if ac_fn_c_try_link "$LINENO"; then :
14332 ac_cv_lib_dld_shl_load=yes
66170b30 14333else
a243b558
JF
14334 ac_cv_lib_dld_shl_load=no
14335fi
14336rm -f core conftest.err conftest.$ac_objext \
14337 conftest$ac_exeext conftest.$ac_ext
14338LIBS=$ac_check_lib_save_LIBS
66170b30 14339fi
a243b558
JF
14340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14341$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14342if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9d54db95 14343 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
a243b558
JF
14344else
14345 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14346if test "x$ac_cv_func_dlopen" = xyes; then :
9d54db95 14347 lt_cv_dlopen=dlopen
a243b558
JF
14348else
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14350$as_echo_n "checking for dlopen in -ldl... " >&6; }
14351if ${ac_cv_lib_dl_dlopen+:} false; then :
14352 $as_echo_n "(cached) " >&6
14353else
14354 ac_check_lib_save_LIBS=$LIBS
14355LIBS="-ldl $LIBS"
14356cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14357/* end confdefs.h. */
e9c9a47c 14358
a243b558
JF
14359/* Override any GCC internal prototype to avoid an error.
14360 Use char because int might match the return type of a GCC
14361 builtin and then its argument prototype would still apply. */
14362#ifdef __cplusplus
14363extern "C"
14364#endif
14365char dlopen ();
14366int
14367main ()
14368{
14369return dlopen ();
14370 ;
14371 return 0;
14372}
14373_ACEOF
14374if ac_fn_c_try_link "$LINENO"; then :
14375 ac_cv_lib_dl_dlopen=yes
14376else
14377 ac_cv_lib_dl_dlopen=no
14378fi
14379rm -f core conftest.err conftest.$ac_objext \
14380 conftest$ac_exeext conftest.$ac_ext
14381LIBS=$ac_check_lib_save_LIBS
14382fi
14383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14384$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14385if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9d54db95 14386 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
a243b558
JF
14387else
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14389$as_echo_n "checking for dlopen in -lsvld... " >&6; }
14390if ${ac_cv_lib_svld_dlopen+:} false; then :
14391 $as_echo_n "(cached) " >&6
14392else
14393 ac_check_lib_save_LIBS=$LIBS
14394LIBS="-lsvld $LIBS"
14395cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14396/* end confdefs.h. */
14397
14398/* Override any GCC internal prototype to avoid an error.
14399 Use char because int might match the return type of a GCC
14400 builtin and then its argument prototype would still apply. */
14401#ifdef __cplusplus
14402extern "C"
14403#endif
14404char dlopen ();
14405int
14406main ()
14407{
14408return dlopen ();
14409 ;
14410 return 0;
14411}
14412_ACEOF
14413if ac_fn_c_try_link "$LINENO"; then :
14414 ac_cv_lib_svld_dlopen=yes
14415else
14416 ac_cv_lib_svld_dlopen=no
14417fi
14418rm -f core conftest.err conftest.$ac_objext \
14419 conftest$ac_exeext conftest.$ac_ext
14420LIBS=$ac_check_lib_save_LIBS
14421fi
14422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14423$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14424if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9d54db95 14425 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
a243b558
JF
14426else
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14428$as_echo_n "checking for dld_link in -ldld... " >&6; }
14429if ${ac_cv_lib_dld_dld_link+:} false; then :
14430 $as_echo_n "(cached) " >&6
14431else
14432 ac_check_lib_save_LIBS=$LIBS
14433LIBS="-ldld $LIBS"
14434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14435/* end confdefs.h. */
14436
14437/* Override any GCC internal prototype to avoid an error.
14438 Use char because int might match the return type of a GCC
14439 builtin and then its argument prototype would still apply. */
14440#ifdef __cplusplus
14441extern "C"
14442#endif
14443char dld_link ();
14444int
14445main ()
14446{
14447return dld_link ();
14448 ;
14449 return 0;
14450}
14451_ACEOF
14452if ac_fn_c_try_link "$LINENO"; then :
14453 ac_cv_lib_dld_dld_link=yes
9c60689e 14454else
a243b558
JF
14455 ac_cv_lib_dld_dld_link=no
14456fi
14457rm -f core conftest.err conftest.$ac_objext \
14458 conftest$ac_exeext conftest.$ac_ext
14459LIBS=$ac_check_lib_save_LIBS
14460fi
14461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14462$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14463if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9d54db95 14464 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
9c60689e
DWT
14465fi
14466
14467
a243b558 14468fi
66170b30 14469
66170b30 14470
a243b558 14471fi
66170b30 14472
66170b30
JF
14473
14474fi
e9c9a47c 14475
66170b30 14476
a243b558 14477fi
66170b30 14478
66170b30 14479
66170b30 14480fi
e9c9a47c 14481
a243b558
JF
14482 ;;
14483 esac
9c60689e 14484
9d54db95 14485 if test no = "$lt_cv_dlopen"; then
a243b558 14486 enable_dlopen=no
9d54db95
JF
14487 else
14488 enable_dlopen=yes
a243b558 14489 fi
9c60689e 14490
a243b558
JF
14491 case $lt_cv_dlopen in
14492 dlopen)
9d54db95
JF
14493 save_CPPFLAGS=$CPPFLAGS
14494 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
66170b30 14495
9d54db95 14496 save_LDFLAGS=$LDFLAGS
a243b558 14497 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
66170b30 14498
9d54db95 14499 save_LIBS=$LIBS
a243b558 14500 LIBS="$lt_cv_dlopen_libs $LIBS"
3fd51f51 14501
a243b558
JF
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14503$as_echo_n "checking whether a program can dlopen itself... " >&6; }
14504if ${lt_cv_dlopen_self+:} false; then :
14505 $as_echo_n "(cached) " >&6
e9c9a47c 14506else
9d54db95 14507 if test yes = "$cross_compiling"; then :
a243b558
JF
14508 lt_cv_dlopen_self=cross
14509else
14510 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14511 lt_status=$lt_dlunknown
14512 cat > conftest.$ac_ext <<_LT_EOF
14513#line $LINENO "configure"
14514#include "confdefs.h"
e9c9a47c 14515
a243b558
JF
14516#if HAVE_DLFCN_H
14517#include <dlfcn.h>
14518#endif
e9c9a47c 14519
a243b558 14520#include <stdio.h>
66170b30 14521
a243b558
JF
14522#ifdef RTLD_GLOBAL
14523# define LT_DLGLOBAL RTLD_GLOBAL
14524#else
14525# ifdef DL_GLOBAL
14526# define LT_DLGLOBAL DL_GLOBAL
14527# else
14528# define LT_DLGLOBAL 0
14529# endif
14530#endif
66170b30 14531
a243b558
JF
14532/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14533 find out it does not work in some platform. */
14534#ifndef LT_DLLAZY_OR_NOW
14535# ifdef RTLD_LAZY
14536# define LT_DLLAZY_OR_NOW RTLD_LAZY
14537# else
14538# ifdef DL_LAZY
14539# define LT_DLLAZY_OR_NOW DL_LAZY
14540# else
14541# ifdef RTLD_NOW
14542# define LT_DLLAZY_OR_NOW RTLD_NOW
14543# else
14544# ifdef DL_NOW
14545# define LT_DLLAZY_OR_NOW DL_NOW
14546# else
14547# define LT_DLLAZY_OR_NOW 0
14548# endif
14549# endif
14550# endif
14551# endif
14552#endif
e9c9a47c 14553
9d54db95 14554/* When -fvisibility=hidden is used, assume the code has been annotated
a243b558 14555 correspondingly for the symbols needed. */
9d54db95 14556#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
a243b558
JF
14557int fnord () __attribute__((visibility("default")));
14558#endif
e9c9a47c 14559
a243b558
JF
14560int fnord () { return 42; }
14561int main ()
14562{
14563 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14564 int status = $lt_dlunknown;
e9c9a47c 14565
a243b558
JF
14566 if (self)
14567 {
14568 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14569 else
14570 {
14571 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14572 else puts (dlerror ());
14573 }
14574 /* dlclose (self); */
14575 }
14576 else
14577 puts (dlerror ());
e9c9a47c 14578
a243b558
JF
14579 return status;
14580}
14581_LT_EOF
14582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14583 (eval $ac_link) 2>&5
14584 ac_status=$?
14585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9d54db95 14586 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
a243b558
JF
14587 (./conftest; exit; ) >&5 2>/dev/null
14588 lt_status=$?
14589 case x$lt_status in
14590 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14591 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14592 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14593 esac
14594 else :
14595 # compilation failed
14596 lt_cv_dlopen_self=no
14597 fi
14598fi
14599rm -fr conftest*
e9c9a47c 14600
e9c9a47c 14601
e9c9a47c 14602fi
a243b558
JF
14603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14604$as_echo "$lt_cv_dlopen_self" >&6; }
e9c9a47c 14605
9d54db95 14606 if test yes = "$lt_cv_dlopen_self"; then
a243b558
JF
14607 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14609$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14610if ${lt_cv_dlopen_self_static+:} false; then :
14611 $as_echo_n "(cached) " >&6
e9c9a47c 14612else
9d54db95 14613 if test yes = "$cross_compiling"; then :
a243b558
JF
14614 lt_cv_dlopen_self_static=cross
14615else
14616 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14617 lt_status=$lt_dlunknown
14618 cat > conftest.$ac_ext <<_LT_EOF
14619#line $LINENO "configure"
14620#include "confdefs.h"
14621
14622#if HAVE_DLFCN_H
14623#include <dlfcn.h>
14624#endif
14625
14626#include <stdio.h>
e9c9a47c 14627
a243b558
JF
14628#ifdef RTLD_GLOBAL
14629# define LT_DLGLOBAL RTLD_GLOBAL
14630#else
14631# ifdef DL_GLOBAL
14632# define LT_DLGLOBAL DL_GLOBAL
14633# else
14634# define LT_DLGLOBAL 0
14635# endif
14636#endif
e9c9a47c 14637
a243b558
JF
14638/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14639 find out it does not work in some platform. */
14640#ifndef LT_DLLAZY_OR_NOW
14641# ifdef RTLD_LAZY
14642# define LT_DLLAZY_OR_NOW RTLD_LAZY
14643# else
14644# ifdef DL_LAZY
14645# define LT_DLLAZY_OR_NOW DL_LAZY
14646# else
14647# ifdef RTLD_NOW
14648# define LT_DLLAZY_OR_NOW RTLD_NOW
14649# else
14650# ifdef DL_NOW
14651# define LT_DLLAZY_OR_NOW DL_NOW
14652# else
14653# define LT_DLLAZY_OR_NOW 0
14654# endif
14655# endif
14656# endif
14657# endif
14658#endif
66170b30 14659
9d54db95 14660/* When -fvisibility=hidden is used, assume the code has been annotated
a243b558 14661 correspondingly for the symbols needed. */
9d54db95 14662#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
a243b558
JF
14663int fnord () __attribute__((visibility("default")));
14664#endif
e9c9a47c 14665
a243b558
JF
14666int fnord () { return 42; }
14667int main ()
14668{
14669 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14670 int status = $lt_dlunknown;
e9c9a47c 14671
a243b558
JF
14672 if (self)
14673 {
14674 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14675 else
14676 {
14677 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14678 else puts (dlerror ());
14679 }
14680 /* dlclose (self); */
14681 }
14682 else
14683 puts (dlerror ());
e9c9a47c 14684
a243b558
JF
14685 return status;
14686}
14687_LT_EOF
14688 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14689 (eval $ac_link) 2>&5
14690 ac_status=$?
14691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9d54db95 14692 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
a243b558
JF
14693 (./conftest; exit; ) >&5 2>/dev/null
14694 lt_status=$?
14695 case x$lt_status in
14696 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14697 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14698 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14699 esac
14700 else :
14701 # compilation failed
14702 lt_cv_dlopen_self_static=no
14703 fi
14704fi
14705rm -fr conftest*
e9c9a47c 14706
b65019fe 14707
a243b558
JF
14708fi
14709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14710$as_echo "$lt_cv_dlopen_self_static" >&6; }
14711 fi
66170b30 14712
9d54db95
JF
14713 CPPFLAGS=$save_CPPFLAGS
14714 LDFLAGS=$save_LDFLAGS
14715 LIBS=$save_LIBS
a243b558
JF
14716 ;;
14717 esac
66170b30 14718
a243b558
JF
14719 case $lt_cv_dlopen_self in
14720 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14721 *) enable_dlopen_self=unknown ;;
14722 esac
14723
14724 case $lt_cv_dlopen_self_static in
14725 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14726 *) enable_dlopen_self_static=unknown ;;
14727 esac
b65019fe
DWT
14728fi
14729
14730
66170b30 14731
b65019fe 14732
e9c9a47c 14733
e9c9a47c
DWT
14734
14735
e9c9a47c 14736
e9c9a47c
DWT
14737
14738
e9c9a47c 14739
e9c9a47c 14740
3530897b 14741
47aaa820 14742
47aaa820 14743
a243b558
JF
14744
14745
14746striplib=
14747old_striplib=
14748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14749$as_echo_n "checking whether stripping libraries is possible... " >&6; }
14750if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14751 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14752 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14754$as_echo "yes" >&6; }
47aaa820 14755else
a243b558
JF
14756# FIXME - insert some real tests, host_os isn't really good enough
14757 case $host_os in
14758 darwin*)
9d54db95 14759 if test -n "$STRIP"; then
a243b558
JF
14760 striplib="$STRIP -x"
14761 old_striplib="$STRIP -S"
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14763$as_echo "yes" >&6; }
14764 else
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14766$as_echo "no" >&6; }
14767 fi
14768 ;;
14769 *)
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14771$as_echo "no" >&6; }
14772 ;;
14773 esac
3530897b 14774fi
47aaa820 14775
3530897b
DWT
14776
14777
9c60689e 14778
9c60689e 14779
9c60689e 14780
9c60689e 14781
9c60689e 14782
66170b30 14783
66170b30 14784
66170b30 14785
66170b30 14786
9d54db95 14787 # Report what library types will actually be built
a243b558
JF
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14789$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14791$as_echo "$can_build_shared" >&6; }
66170b30 14792
a243b558
JF
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14794$as_echo_n "checking whether to build shared libraries... " >&6; }
9d54db95 14795 test no = "$can_build_shared" && enable_shared=no
66170b30 14796
a243b558
JF
14797 # On AIX, shared libraries and static libraries use the same namespace, and
14798 # are all built from PIC.
14799 case $host_os in
14800 aix3*)
9d54db95 14801 test yes = "$enable_shared" && enable_static=no
a243b558
JF
14802 if test -n "$RANLIB"; then
14803 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14804 postinstall_cmds='$RANLIB $lib'
14805 fi
14806 ;;
66170b30 14807
a243b558 14808 aix[4-9]*)
9d54db95
JF
14809 if test ia64 != "$host_cpu"; then
14810 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14811 yes,aix,yes) ;; # shared object as lib.so file only
14812 yes,svr4,*) ;; # shared object as lib.so archive member only
14813 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14814 esac
a243b558
JF
14815 fi
14816 ;;
14817 esac
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14819$as_echo "$enable_shared" >&6; }
66170b30 14820
a243b558
JF
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14822$as_echo_n "checking whether to build static libraries... " >&6; }
14823 # Make sure either enable_shared or enable_static is yes.
9d54db95 14824 test yes = "$enable_shared" || enable_static=yes
a243b558
JF
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14826$as_echo "$enable_static" >&6; }
66170b30 14827
9c60689e 14828
e9c9a47c 14829
9c60689e 14830
a243b558
JF
14831fi
14832ac_ext=c
14833ac_cpp='$CPP $CPPFLAGS'
14834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14836ac_compiler_gnu=$ac_cv_c_compiler_gnu
14837
9d54db95 14838CC=$lt_save_CC
e9c9a47c 14839
9d54db95
JF
14840 if test -n "$CXX" && ( test no != "$CXX" &&
14841 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14842 (test g++ != "$CXX"))); then
e9c9a47c
DWT
14843 ac_ext=cpp
14844ac_cpp='$CXXCPP $CPPFLAGS'
14845ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14846ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14847ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14849$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14850if test -z "$CXXCPP"; then
ee134472 14851 if ${ac_cv_prog_CXXCPP+:} false; then :
e9c9a47c
DWT
14852 $as_echo_n "(cached) " >&6
14853else
14854 # Double quotes because CXXCPP needs to be expanded
14855 for CXXCPP in "$CXX -E" "/lib/cpp"
14856 do
14857 ac_preproc_ok=false
14858for ac_cxx_preproc_warn_flag in '' yes
14859do
14860 # Use a header file that comes with gcc, so configuring glibc
14861 # with a fresh cross-compiler works.
14862 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14863 # <limits.h> exists even on freestanding compilers.
14864 # On the NeXT, cc -E runs the code through the compiler's parser,
14865 # not just through cpp. "Syntax error" is here to catch this case.
14866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14867/* end confdefs.h. */
14868#ifdef __STDC__
14869# include <limits.h>
14870#else
14871# include <assert.h>
14872#endif
14873 Syntax error
14874_ACEOF
14875if ac_fn_cxx_try_cpp "$LINENO"; then :
14876
14877else
14878 # Broken: fails on valid input.
14879continue
14880fi
12833ad8 14881rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
14882
14883 # OK, works on sane cases. Now check whether nonexistent headers
14884 # can be detected and how.
14885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14886/* end confdefs.h. */
14887#include <ac_nonexistent.h>
14888_ACEOF
14889if ac_fn_cxx_try_cpp "$LINENO"; then :
14890 # Broken: success on invalid input.
14891continue
14892else
14893 # Passes both tests.
14894ac_preproc_ok=:
14895break
14896fi
12833ad8 14897rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
14898
14899done
14900# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12833ad8 14901rm -f conftest.i conftest.err conftest.$ac_ext
e9c9a47c
DWT
14902if $ac_preproc_ok; then :
14903 break
14904fi
14905
14906 done
14907 ac_cv_prog_CXXCPP=$CXXCPP
14908
14909fi
14910 CXXCPP=$ac_cv_prog_CXXCPP
14911else
14912 ac_cv_prog_CXXCPP=$CXXCPP
14913fi
14914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14915$as_echo "$CXXCPP" >&6; }
14916ac_preproc_ok=false
14917for ac_cxx_preproc_warn_flag in '' yes
14918do
14919 # Use a header file that comes with gcc, so configuring glibc
14920 # with a fresh cross-compiler works.
14921 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14922 # <limits.h> exists even on freestanding compilers.
14923 # On the NeXT, cc -E runs the code through the compiler's parser,
14924 # not just through cpp. "Syntax error" is here to catch this case.
14925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14926/* end confdefs.h. */
14927#ifdef __STDC__
14928# include <limits.h>
14929#else
14930# include <assert.h>
14931#endif
14932 Syntax error
14933_ACEOF
14934if ac_fn_cxx_try_cpp "$LINENO"; then :
14935
14936else
14937 # Broken: fails on valid input.
14938continue
14939fi
12833ad8 14940rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
14941
14942 # OK, works on sane cases. Now check whether nonexistent headers
14943 # can be detected and how.
14944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14945/* end confdefs.h. */
14946#include <ac_nonexistent.h>
14947_ACEOF
14948if ac_fn_cxx_try_cpp "$LINENO"; then :
14949 # Broken: success on invalid input.
14950continue
14951else
14952 # Passes both tests.
14953ac_preproc_ok=:
14954break
14955fi
12833ad8 14956rm -f conftest.err conftest.i conftest.$ac_ext
e9c9a47c
DWT
14957
14958done
14959# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12833ad8 14960rm -f conftest.i conftest.err conftest.$ac_ext
e9c9a47c
DWT
14961if $ac_preproc_ok; then :
14962
14963else
14964 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14965$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
ee134472
JF
14966as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14967See \`config.log' for more details" "$LINENO" 5; }
e9c9a47c
DWT
14968fi
14969
a243b558
JF
14970ac_ext=c
14971ac_cpp='$CPP $CPPFLAGS'
14972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14974ac_compiler_gnu=$ac_cv_c_compiler_gnu
66170b30
JF
14975
14976else
e9c9a47c
DWT
14977 _lt_caught_CXX_error=yes
14978fi
14979
9c60689e
DWT
14980ac_ext=cpp
14981ac_cpp='$CXXCPP $CPPFLAGS'
14982ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14983ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14984ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9c60689e 14985
47aaa820
DWT
14986archive_cmds_need_lc_CXX=no
14987allow_undefined_flag_CXX=
14988always_export_symbols_CXX=no
14989archive_expsym_cmds_CXX=
14990compiler_needs_object_CXX=no
14991export_dynamic_flag_spec_CXX=
14992hardcode_direct_CXX=no
14993hardcode_direct_absolute_CXX=no
14994hardcode_libdir_flag_spec_CXX=
47aaa820
DWT
14995hardcode_libdir_separator_CXX=
14996hardcode_minus_L_CXX=no
14997hardcode_shlibpath_var_CXX=unsupported
14998hardcode_automatic_CXX=no
14999inherit_rpath_CXX=no
15000module_cmds_CXX=
15001module_expsym_cmds_CXX=
15002link_all_deplibs_CXX=unknown
15003old_archive_cmds_CXX=$old_archive_cmds
ee134472
JF
15004reload_flag_CXX=$reload_flag
15005reload_cmds_CXX=$reload_cmds
47aaa820
DWT
15006no_undefined_flag_CXX=
15007whole_archive_flag_spec_CXX=
15008enable_shared_with_static_runtimes_CXX=no
9c60689e 15009
47aaa820
DWT
15010# Source file extension for C++ test sources.
15011ac_ext=cpp
9c60689e 15012
47aaa820
DWT
15013# Object file extension for compiled C++ test sources.
15014objext=o
15015objext_CXX=$objext
9c60689e 15016
47aaa820
DWT
15017# No sense in running all these tests if we already determined that
15018# the CXX compiler isn't working. Some variables (like enable_shared)
15019# are currently assumed to apply to all compilers on this platform,
15020# and will be corrupted by setting them based on a non-working compiler.
9d54db95 15021if test yes != "$_lt_caught_CXX_error"; then
47aaa820
DWT
15022 # Code to be used in simple compile tests
15023 lt_simple_compile_test_code="int some_variable = 0;"
9c60689e 15024
47aaa820
DWT
15025 # Code to be used in simple link tests
15026 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
9c60689e 15027
47aaa820 15028 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9c60689e 15029
9c60689e 15030
9c60689e 15031
9c60689e 15032
9c60689e 15033
9c60689e 15034
47aaa820
DWT
15035# If no C compiler was specified, use CC.
15036LTCC=${LTCC-"$CC"}
9c60689e 15037
47aaa820
DWT
15038# If no C compiler flags were specified, use CFLAGS.
15039LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9c60689e 15040
47aaa820
DWT
15041# Allow CC to be a program name with arguments.
15042compiler=$CC
9c60689e 15043
9c60689e 15044
47aaa820
DWT
15045 # save warnings/boilerplate of simple test code
15046 ac_outfile=conftest.$ac_objext
15047echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15048eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15049_lt_compiler_boilerplate=`cat conftest.err`
00a96142 15050$RM -r conftest*
9c60689e 15051
47aaa820
DWT
15052 ac_outfile=conftest.$ac_objext
15053echo "$lt_simple_link_test_code" >conftest.$ac_ext
15054eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15055_lt_linker_boilerplate=`cat conftest.err`
15056$RM -r conftest*
9c60689e 15057
9c60689e 15058
47aaa820
DWT
15059 # Allow CC to be a program name with arguments.
15060 lt_save_CC=$CC
ee134472 15061 lt_save_CFLAGS=$CFLAGS
47aaa820
DWT
15062 lt_save_LD=$LD
15063 lt_save_GCC=$GCC
15064 GCC=$GXX
15065 lt_save_with_gnu_ld=$with_gnu_ld
15066 lt_save_path_LD=$lt_cv_path_LD
15067 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15068 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9c60689e 15069 else
47aaa820 15070 $as_unset lt_cv_prog_gnu_ld
9c60689e 15071 fi
47aaa820
DWT
15072 if test -n "${lt_cv_path_LDCXX+set}"; then
15073 lt_cv_path_LD=$lt_cv_path_LDCXX
9c60689e 15074 else
47aaa820 15075 $as_unset lt_cv_path_LD
9c60689e 15076 fi
47aaa820
DWT
15077 test -z "${LDCXX+set}" || LD=$LDCXX
15078 CC=${CXX-"c++"}
ee134472 15079 CFLAGS=$CXXFLAGS
47aaa820
DWT
15080 compiler=$CC
15081 compiler_CXX=$CC
9d54db95
JF
15082 func_cc_basename $compiler
15083cc_basename=$func_cc_basename_result
9c60689e
DWT
15084
15085
47aaa820
DWT
15086 if test -n "$compiler"; then
15087 # We don't want -fno-exception when compiling C++ code, so set the
15088 # no_builtin_flag separately
9d54db95 15089 if test yes = "$GXX"; then
47aaa820
DWT
15090 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15091 else
15092 lt_prog_compiler_no_builtin_flag_CXX=
15093 fi
9c60689e 15094
9d54db95 15095 if test yes = "$GXX"; then
47aaa820
DWT
15096 # Set up default GNU C++ configuration
15097
15098
15099
15100# Check whether --with-gnu-ld was given.
15101if test "${with_gnu_ld+set}" = set; then :
9d54db95 15102 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
9c60689e 15103else
47aaa820 15104 with_gnu_ld=no
9c60689e
DWT
15105fi
15106
47aaa820 15107ac_prog=ld
9d54db95 15108if test yes = "$GCC"; then
47aaa820
DWT
15109 # Check if gcc -print-prog-name=ld gives a path.
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15111$as_echo_n "checking for ld used by $CC... " >&6; }
15112 case $host in
15113 *-*-mingw*)
9d54db95 15114 # gcc leaves a trailing carriage return, which upsets mingw
47aaa820
DWT
15115 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15116 *)
15117 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15118 esac
15119 case $ac_prog in
15120 # Accept absolute paths.
15121 [\\/]* | ?:[\\/]*)
15122 re_direlt='/[^/][^/]*/\.\./'
15123 # Canonicalize the pathname of ld
15124 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15125 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15126 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15127 done
9d54db95 15128 test -z "$LD" && LD=$ac_prog
47aaa820
DWT
15129 ;;
15130 "")
15131 # If it fails, then pretend we aren't using GCC.
15132 ac_prog=ld
15133 ;;
15134 *)
15135 # If it is relative, then search for the first ld in PATH.
15136 with_gnu_ld=unknown
15137 ;;
15138 esac
9d54db95 15139elif test yes = "$with_gnu_ld"; then
47aaa820
DWT
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15141$as_echo_n "checking for GNU ld... " >&6; }
15142else
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15144$as_echo_n "checking for non-GNU ld... " >&6; }
9c60689e 15145fi
ee134472 15146if ${lt_cv_path_LD+:} false; then :
9c60689e
DWT
15147 $as_echo_n "(cached) " >&6
15148else
47aaa820 15149 if test -z "$LD"; then
9d54db95 15150 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
47aaa820 15151 for ac_dir in $PATH; do
9d54db95 15152 IFS=$lt_save_ifs
47aaa820
DWT
15153 test -z "$ac_dir" && ac_dir=.
15154 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9d54db95 15155 lt_cv_path_LD=$ac_dir/$ac_prog
47aaa820
DWT
15156 # Check to see if the program is GNU ld. I'd rather use --version,
15157 # but apparently some variants of GNU ld only accept -v.
15158 # Break only if it was the GNU/non-GNU ld that we prefer.
15159 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15160 *GNU* | *'with BFD'*)
9d54db95 15161 test no != "$with_gnu_ld" && break
47aaa820
DWT
15162 ;;
15163 *)
9d54db95 15164 test yes != "$with_gnu_ld" && break
47aaa820
DWT
15165 ;;
15166 esac
15167 fi
9c60689e 15168 done
9d54db95 15169 IFS=$lt_save_ifs
47aaa820 15170else
9d54db95 15171 lt_cv_path_LD=$LD # Let the user override the test with a path.
9c60689e
DWT
15172fi
15173fi
47aaa820 15174
9d54db95 15175LD=$lt_cv_path_LD
47aaa820
DWT
15176if test -n "$LD"; then
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15178$as_echo "$LD" >&6; }
9c60689e
DWT
15179else
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15181$as_echo "no" >&6; }
15182fi
12833ad8 15183test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
47aaa820
DWT
15184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15185$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
ee134472 15186if ${lt_cv_prog_gnu_ld+:} false; then :
47aaa820
DWT
15187 $as_echo_n "(cached) " >&6
15188else
15189 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15190case `$LD -v 2>&1 </dev/null` in
15191*GNU* | *'with BFD'*)
15192 lt_cv_prog_gnu_ld=yes
15193 ;;
15194*)
15195 lt_cv_prog_gnu_ld=no
15196 ;;
15197esac
15198fi
15199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15200$as_echo "$lt_cv_prog_gnu_ld" >&6; }
15201with_gnu_ld=$lt_cv_prog_gnu_ld
9c60689e
DWT
15202
15203
9c60689e 15204
9c60689e 15205
9c60689e 15206
9c60689e 15207
9c60689e 15208
47aaa820
DWT
15209 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15210 # archiving commands below assume that GNU ld is being used.
9d54db95
JF
15211 if test yes = "$with_gnu_ld"; then
15212 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15213 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 15214
9d54db95
JF
15215 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15216 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
9c60689e 15217
47aaa820
DWT
15218 # If archive_cmds runs LD, not CC, wlarc should be empty
15219 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15220 # investigate it a little bit more. (MM)
9d54db95 15221 wlarc='$wl'
9c60689e 15222
47aaa820
DWT
15223 # ancient GNU ld didn't support --whole-archive et. al.
15224 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15225 $GREP 'no-whole-archive' > /dev/null; then
9d54db95 15226 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
47aaa820
DWT
15227 else
15228 whole_archive_flag_spec_CXX=
15229 fi
15230 else
15231 with_gnu_ld=no
15232 wlarc=
15233
15234 # A generic and very simple default shared library creation
15235 # command for GNU C++ for the case where it uses the native
15236 # linker, instead of GNU ld. If possible, this setting should
15237 # overridden to take advantage of the native linker features on
15238 # the platform it is being used on.
15239 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15240 fi
15241
15242 # Commands to make compiler produce verbose output that lists
15243 # what "hidden" libraries, object files and flags are used when
15244 # linking a shared library.
ee134472 15245 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820
DWT
15246
15247 else
15248 GXX=no
15249 with_gnu_ld=no
15250 wlarc=
15251 fi
15252
15253 # PORTME: fill in a description of your system's C++ link characteristics
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15255$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15256 ld_shlibs_CXX=yes
15257 case $host_os in
15258 aix3*)
15259 # FIXME: insert proper C++ library support
15260 ld_shlibs_CXX=no
15261 ;;
15262 aix[4-9]*)
9d54db95 15263 if test ia64 = "$host_cpu"; then
47aaa820
DWT
15264 # On IA64, the linker does run time linking by default, so we don't
15265 # have to do anything special.
15266 aix_use_runtimelinking=no
15267 exp_sym_flag='-Bexport'
9d54db95 15268 no_entry_flag=
47aaa820
DWT
15269 else
15270 aix_use_runtimelinking=no
15271
15272 # Test if we are trying to use run time linking or normal
15273 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9d54db95
JF
15274 # have runtime linking enabled, and use it for executables.
15275 # For shared libraries, we enable/disable runtime linking
15276 # depending on the kind of the shared library created -
15277 # when "with_aix_soname,aix_use_runtimelinking" is:
15278 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
15279 # "aix,yes" lib.so shared, rtl:yes, for executables
15280 # lib.a static archive
15281 # "both,no" lib.so.V(shr.o) shared, rtl:yes
15282 # lib.a(lib.so.V) shared, rtl:no, for executables
15283 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15284 # lib.a(lib.so.V) shared, rtl:no
15285 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
15286 # lib.a static archive
47aaa820
DWT
15287 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15288 for ld_flag in $LDFLAGS; do
15289 case $ld_flag in
15290 *-brtl*)
15291 aix_use_runtimelinking=yes
15292 break
15293 ;;
15294 esac
15295 done
9d54db95
JF
15296 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15297 # With aix-soname=svr4, we create the lib.so.V shared archives only,
15298 # so we don't have lib.a shared libs to link our executables.
15299 # We have to force runtime linking in this case.
15300 aix_use_runtimelinking=yes
15301 LDFLAGS="$LDFLAGS -Wl,-brtl"
15302 fi
47aaa820
DWT
15303 ;;
15304 esac
15305
15306 exp_sym_flag='-bexport'
15307 no_entry_flag='-bnoentry'
15308 fi
15309
15310 # When large executables or shared objects are built, AIX ld can
15311 # have problems creating the table of contents. If linking a library
15312 # or program results in "error TOC overflow" add -mminimal-toc to
15313 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15314 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15315
15316 archive_cmds_CXX=''
15317 hardcode_direct_CXX=yes
15318 hardcode_direct_absolute_CXX=yes
15319 hardcode_libdir_separator_CXX=':'
15320 link_all_deplibs_CXX=yes
9d54db95
JF
15321 file_list_spec_CXX='$wl-f,'
15322 case $with_aix_soname,$aix_use_runtimelinking in
15323 aix,*) ;; # no import file
15324 svr4,* | *,yes) # use import file
15325 # The Import File defines what to hardcode.
15326 hardcode_direct_CXX=no
15327 hardcode_direct_absolute_CXX=no
15328 ;;
15329 esac
47aaa820 15330
9d54db95 15331 if test yes = "$GXX"; then
47aaa820
DWT
15332 case $host_os in aix4.[012]|aix4.[012].*)
15333 # We only want to do this on AIX 4.2 and lower, the check
15334 # below for broken collect2 doesn't work under 4.3+
9d54db95 15335 collect2name=`$CC -print-prog-name=collect2`
47aaa820
DWT
15336 if test -f "$collect2name" &&
15337 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15338 then
15339 # We have reworked collect2
15340 :
15341 else
15342 # We have old collect2
15343 hardcode_direct_CXX=unsupported
15344 # It fails to find uninstalled libraries when the uninstalled
15345 # path is not listed in the libpath. Setting hardcode_minus_L
15346 # to unsupported forces relinking
15347 hardcode_minus_L_CXX=yes
15348 hardcode_libdir_flag_spec_CXX='-L$libdir'
15349 hardcode_libdir_separator_CXX=
15350 fi
15351 esac
15352 shared_flag='-shared'
9d54db95
JF
15353 if test yes = "$aix_use_runtimelinking"; then
15354 shared_flag=$shared_flag' $wl-G'
47aaa820 15355 fi
9d54db95
JF
15356 # Need to ensure runtime linking is disabled for the traditional
15357 # shared library, or the linker may eventually find shared libraries
15358 # /with/ Import File - we do not want to mix them.
15359 shared_flag_aix='-shared'
15360 shared_flag_svr4='-shared $wl-G'
47aaa820
DWT
15361 else
15362 # not using gcc
9d54db95 15363 if test ia64 = "$host_cpu"; then
47aaa820
DWT
15364 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15365 # chokes on -Wl,-G. The following line is correct:
15366 shared_flag='-G'
15367 else
9d54db95
JF
15368 if test yes = "$aix_use_runtimelinking"; then
15369 shared_flag='$wl-G'
47aaa820 15370 else
9d54db95 15371 shared_flag='$wl-bM:SRE'
47aaa820 15372 fi
9d54db95
JF
15373 shared_flag_aix='$wl-bM:SRE'
15374 shared_flag_svr4='$wl-G'
47aaa820
DWT
15375 fi
15376 fi
15377
9d54db95 15378 export_dynamic_flag_spec_CXX='$wl-bexpall'
47aaa820
DWT
15379 # It seems that -bexpall does not export symbols beginning with
15380 # underscore (_), so it is better to generate a list of symbols to
15381 # export.
15382 always_export_symbols_CXX=yes
9d54db95 15383 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
47aaa820
DWT
15384 # Warning - without using the other runtime loading flags (-brtl),
15385 # -berok will link without error, but may produce a broken library.
9d54db95
JF
15386 # The "-G" linker flag allows undefined symbols.
15387 no_undefined_flag_CXX='-bernotok'
47aaa820
DWT
15388 # Determine the default libpath from the value encoded in an empty
15389 # executable.
9d54db95 15390 if test set = "${lt_cv_aix_libpath+set}"; then
ee134472
JF
15391 aix_libpath=$lt_cv_aix_libpath
15392else
15393 if ${lt_cv_aix_libpath__CXX+:} false; then :
15394 $as_echo_n "(cached) " >&6
15395else
15396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
15397/* end confdefs.h. */
15398
15399int
15400main ()
15401{
15402
15403 ;
15404 return 0;
15405}
15406_ACEOF
47aaa820 15407if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e 15408
ee134472
JF
15409 lt_aix_libpath_sed='
15410 /Import File Strings/,/^$/ {
15411 /^0/ {
15412 s/^0 *\([^ ]*\) *$/\1/
15413 p
15414 }
15415 }'
15416 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15417 # Check for a 64-bit object if we didn't find anything.
15418 if test -z "$lt_cv_aix_libpath__CXX"; then
15419 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15420 fi
47aaa820
DWT
15421fi
15422rm -f core conftest.err conftest.$ac_objext \
15423 conftest$ac_exeext conftest.$ac_ext
ee134472 15424 if test -z "$lt_cv_aix_libpath__CXX"; then
9d54db95 15425 lt_cv_aix_libpath__CXX=/usr/lib:/lib
ee134472
JF
15426 fi
15427
15428fi
15429
15430 aix_libpath=$lt_cv_aix_libpath__CXX
15431fi
47aaa820 15432
9d54db95 15433 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
47aaa820 15434
9d54db95 15435 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 15436 else
9d54db95
JF
15437 if test ia64 = "$host_cpu"; then
15438 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
47aaa820 15439 allow_undefined_flag_CXX="-z nodefs"
9d54db95 15440 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
15441 else
15442 # Determine the default libpath from the value encoded in an
15443 # empty executable.
9d54db95 15444 if test set = "${lt_cv_aix_libpath+set}"; then
ee134472
JF
15445 aix_libpath=$lt_cv_aix_libpath
15446else
15447 if ${lt_cv_aix_libpath__CXX+:} false; then :
15448 $as_echo_n "(cached) " >&6
15449else
15450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9c60689e
DWT
15451/* end confdefs.h. */
15452
15453int
15454main ()
15455{
15456
15457 ;
15458 return 0;
15459}
15460_ACEOF
47aaa820 15461if ac_fn_cxx_try_link "$LINENO"; then :
9c60689e 15462
ee134472
JF
15463 lt_aix_libpath_sed='
15464 /Import File Strings/,/^$/ {
15465 /^0/ {
15466 s/^0 *\([^ ]*\) *$/\1/
15467 p
15468 }
15469 }'
15470 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15471 # Check for a 64-bit object if we didn't find anything.
15472 if test -z "$lt_cv_aix_libpath__CXX"; then
15473 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15474 fi
9c60689e 15475fi
47aaa820
DWT
15476rm -f core conftest.err conftest.$ac_objext \
15477 conftest$ac_exeext conftest.$ac_ext
ee134472 15478 if test -z "$lt_cv_aix_libpath__CXX"; then
9d54db95 15479 lt_cv_aix_libpath__CXX=/usr/lib:/lib
ee134472
JF
15480 fi
15481
15482fi
15483
15484 aix_libpath=$lt_cv_aix_libpath__CXX
15485fi
9c60689e 15486
9d54db95 15487 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
47aaa820
DWT
15488 # Warning - without using the other run time loading flags,
15489 # -berok will link without error, but may produce a broken library.
9d54db95
JF
15490 no_undefined_flag_CXX=' $wl-bernotok'
15491 allow_undefined_flag_CXX=' $wl-berok'
15492 if test yes = "$with_gnu_ld"; then
ee134472 15493 # We only use this code for GNU lds that support --whole-archive.
9d54db95 15494 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
ee134472
JF
15495 else
15496 # Exported symbols can be pulled into shared objects from archives
15497 whole_archive_flag_spec_CXX='$convenience'
15498 fi
47aaa820 15499 archive_cmds_need_lc_CXX=yes
9d54db95
JF
15500 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15501 # -brtl affects multiple linker settings, -berok does not and is overridden later
15502 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15503 if test svr4 != "$with_aix_soname"; then
15504 # This is similar to how AIX traditionally builds its shared
15505 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15506 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'
15507 fi
15508 if test aix != "$with_aix_soname"; then
15509 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'
15510 else
15511 # used by -dlpreopen to get the symbols
15512 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
15513 fi
15514 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
47aaa820
DWT
15515 fi
15516 fi
15517 ;;
9c60689e 15518
47aaa820
DWT
15519 beos*)
15520 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15521 allow_undefined_flag_CXX=unsupported
15522 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15523 # support --undefined. This deserves some investigation. FIXME
9d54db95 15524 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
47aaa820
DWT
15525 else
15526 ld_shlibs_CXX=no
15527 fi
15528 ;;
9c60689e 15529
47aaa820
DWT
15530 chorus*)
15531 case $cc_basename in
15532 *)
15533 # FIXME: insert proper C++ library support
15534 ld_shlibs_CXX=no
15535 ;;
15536 esac
15537 ;;
9c60689e 15538
47aaa820 15539 cygwin* | mingw* | pw32* | cegcc*)
ee134472
JF
15540 case $GXX,$cc_basename in
15541 ,cl* | no,cl*)
15542 # Native MSVC
15543 # hardcode_libdir_flag_spec is actually meaningless, as there is
15544 # no search path for DLLs.
15545 hardcode_libdir_flag_spec_CXX=' '
15546 allow_undefined_flag_CXX=unsupported
15547 always_export_symbols_CXX=yes
15548 file_list_spec_CXX='@'
15549 # Tell ltmain to make .lib files, not .a files.
15550 libext=lib
15551 # Tell ltmain to make .dll files, not .so files.
9d54db95 15552 shrext_cmds=.dll
ee134472 15553 # FIXME: Setting linknames here is a bad hack.
9d54db95
JF
15554 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15555 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15556 cp "$export_symbols" "$output_objdir/$soname.def";
15557 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15558 else
15559 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15560 fi~
15561 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15562 linknames='
ee134472
JF
15563 # The linker will not automatically build a static lib if we build a DLL.
15564 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15565 enable_shared_with_static_runtimes_CXX=yes
15566 # Don't use ranlib
15567 old_postinstall_cmds_CXX='chmod 644 $oldlib'
15568 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
9d54db95
JF
15569 lt_tool_outputfile="@TOOL_OUTPUT@"~
15570 case $lt_outputfile in
15571 *.exe|*.EXE) ;;
15572 *)
15573 lt_outputfile=$lt_outputfile.exe
15574 lt_tool_outputfile=$lt_tool_outputfile.exe
15575 ;;
15576 esac~
15577 func_to_tool_file "$lt_outputfile"~
15578 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15579 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15580 $RM "$lt_outputfile.manifest";
15581 fi'
ee134472
JF
15582 ;;
15583 *)
15584 # g++
15585 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15586 # as there is no search path for DLLs.
15587 hardcode_libdir_flag_spec_CXX='-L$libdir'
9d54db95 15588 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
ee134472
JF
15589 allow_undefined_flag_CXX=unsupported
15590 always_export_symbols_CXX=no
15591 enable_shared_with_static_runtimes_CXX=yes
15592
15593 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9d54db95
JF
15594 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'
15595 # If the export-symbols file already is a .def file, use it as
15596 # is; otherwise, prepend EXPORTS...
15597 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15598 cp $export_symbols $output_objdir/$soname.def;
15599 else
15600 echo EXPORTS > $output_objdir/$soname.def;
15601 cat $export_symbols >> $output_objdir/$soname.def;
15602 fi~
15603 $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
15604 else
15605 ld_shlibs_CXX=no
15606 fi
15607 ;;
15608 esac
15609 ;;
47aaa820 15610 darwin* | rhapsody*)
9c60689e 15611
9c60689e 15612
47aaa820
DWT
15613 archive_cmds_need_lc_CXX=no
15614 hardcode_direct_CXX=no
15615 hardcode_automatic_CXX=yes
15616 hardcode_shlibpath_var_CXX=unsupported
9d54db95
JF
15617 if test yes = "$lt_cv_ld_force_load"; then
15618 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 15619
ee134472
JF
15620 else
15621 whole_archive_flag_spec_CXX=''
15622 fi
47aaa820 15623 link_all_deplibs_CXX=yes
9d54db95 15624 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
47aaa820 15625 case $cc_basename in
9d54db95 15626 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
47aaa820
DWT
15627 *) _lt_dar_can_shared=$GCC ;;
15628 esac
9d54db95 15629 if test yes = "$_lt_dar_can_shared"; then
ee134472 15630 output_verbose_link_cmd=func_echo_all
9d54db95
JF
15631 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"
15632 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15633 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"
15634 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"
15635 if test yes != "$lt_cv_apple_cc_single_mod"; then
15636 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"
15637 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 15638 fi
9c60689e 15639
47aaa820
DWT
15640 else
15641 ld_shlibs_CXX=no
15642 fi
9c60689e 15643
47aaa820 15644 ;;
9c60689e 15645
9d54db95
JF
15646 os2*)
15647 hardcode_libdir_flag_spec_CXX='-L$libdir'
15648 hardcode_minus_L_CXX=yes
15649 allow_undefined_flag_CXX=unsupported
15650 shrext_cmds=.dll
15651 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15652 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15653 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15654 $ECHO EXPORTS >> $output_objdir/$libname.def~
15655 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15656 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15657 emximp -o $lib $output_objdir/$libname.def'
15658 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15659 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15660 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15661 $ECHO EXPORTS >> $output_objdir/$libname.def~
15662 prefix_cmds="$SED"~
15663 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15664 prefix_cmds="$prefix_cmds -e 1d";
15665 fi~
15666 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15667 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15668 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15669 emximp -o $lib $output_objdir/$libname.def'
15670 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15671 enable_shared_with_static_runtimes_CXX=yes
15672 ;;
15673
47aaa820
DWT
15674 dgux*)
15675 case $cc_basename in
15676 ec++*)
15677 # FIXME: insert proper C++ library support
15678 ld_shlibs_CXX=no
15679 ;;
15680 ghcx*)
15681 # Green Hills C++ Compiler
15682 # FIXME: insert proper C++ library support
15683 ld_shlibs_CXX=no
15684 ;;
15685 *)
15686 # FIXME: insert proper C++ library support
15687 ld_shlibs_CXX=no
15688 ;;
15689 esac
15690 ;;
9c60689e 15691
53ba6704 15692 freebsd2.*)
47aaa820
DWT
15693 # C++ shared libraries reported to be fairly broken before
15694 # switch to ELF
15695 ld_shlibs_CXX=no
15696 ;;
9c60689e 15697
47aaa820
DWT
15698 freebsd-elf*)
15699 archive_cmds_need_lc_CXX=no
15700 ;;
9c60689e 15701
47aaa820
DWT
15702 freebsd* | dragonfly*)
15703 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15704 # conventions
15705 ld_shlibs_CXX=yes
15706 ;;
9c60689e 15707
ee134472 15708 haiku*)
9d54db95 15709 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
ee134472
JF
15710 link_all_deplibs_CXX=yes
15711 ;;
15712
47aaa820 15713 hpux9*)
9d54db95 15714 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
47aaa820 15715 hardcode_libdir_separator_CXX=:
9d54db95 15716 export_dynamic_flag_spec_CXX='$wl-E'
47aaa820
DWT
15717 hardcode_direct_CXX=yes
15718 hardcode_minus_L_CXX=yes # Not in the search PATH,
15719 # but as the default
15720 # location of the library.
9c60689e 15721
47aaa820
DWT
15722 case $cc_basename in
15723 CC*)
15724 # FIXME: insert proper C++ library support
15725 ld_shlibs_CXX=no
15726 ;;
15727 aCC*)
9d54db95 15728 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
15729 # Commands to make compiler produce verbose output that lists
15730 # what "hidden" libraries, object files and flags are used when
15731 # linking a shared library.
15732 #
15733 # There doesn't appear to be a way to prevent this compiler from
15734 # explicitly linking system object files so we need to strip them
15735 # from the output so that they don't get included in the library
15736 # dependencies.
9d54db95 15737 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
15738 ;;
15739 *)
9d54db95
JF
15740 if test yes = "$GXX"; then
15741 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
15742 else
15743 # FIXME: insert proper C++ library support
15744 ld_shlibs_CXX=no
15745 fi
15746 ;;
15747 esac
15748 ;;
9c60689e 15749
47aaa820 15750 hpux10*|hpux11*)
9d54db95
JF
15751 if test no = "$with_gnu_ld"; then
15752 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
47aaa820 15753 hardcode_libdir_separator_CXX=:
9c60689e 15754
47aaa820
DWT
15755 case $host_cpu in
15756 hppa*64*|ia64*)
15757 ;;
15758 *)
9d54db95 15759 export_dynamic_flag_spec_CXX='$wl-E'
47aaa820
DWT
15760 ;;
15761 esac
15762 fi
15763 case $host_cpu in
15764 hppa*64*|ia64*)
15765 hardcode_direct_CXX=no
15766 hardcode_shlibpath_var_CXX=no
15767 ;;
15768 *)
15769 hardcode_direct_CXX=yes
15770 hardcode_direct_absolute_CXX=yes
15771 hardcode_minus_L_CXX=yes # Not in the search PATH,
15772 # but as the default
15773 # location of the library.
15774 ;;
15775 esac
9c60689e 15776
47aaa820
DWT
15777 case $cc_basename in
15778 CC*)
15779 # FIXME: insert proper C++ library support
15780 ld_shlibs_CXX=no
15781 ;;
15782 aCC*)
15783 case $host_cpu in
15784 hppa*64*)
9d54db95 15785 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
47aaa820
DWT
15786 ;;
15787 ia64*)
9d54db95 15788 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
47aaa820
DWT
15789 ;;
15790 *)
9d54db95 15791 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
15792 ;;
15793 esac
15794 # Commands to make compiler produce verbose output that lists
15795 # what "hidden" libraries, object files and flags are used when
15796 # linking a shared library.
15797 #
15798 # There doesn't appear to be a way to prevent this compiler from
15799 # explicitly linking system object files so we need to strip them
15800 # from the output so that they don't get included in the library
15801 # dependencies.
9d54db95 15802 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
15803 ;;
15804 *)
9d54db95
JF
15805 if test yes = "$GXX"; then
15806 if test no = "$with_gnu_ld"; then
47aaa820
DWT
15807 case $host_cpu in
15808 hppa*64*)
9d54db95 15809 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
47aaa820
DWT
15810 ;;
15811 ia64*)
9d54db95 15812 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
15813 ;;
15814 *)
9d54db95 15815 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
15816 ;;
15817 esac
15818 fi
15819 else
15820 # FIXME: insert proper C++ library support
15821 ld_shlibs_CXX=no
15822 fi
15823 ;;
15824 esac
15825 ;;
9c60689e 15826
47aaa820
DWT
15827 interix[3-9]*)
15828 hardcode_direct_CXX=no
15829 hardcode_shlibpath_var_CXX=no
9d54db95
JF
15830 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15831 export_dynamic_flag_spec_CXX='$wl-E'
47aaa820
DWT
15832 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15833 # Instead, shared libraries are loaded at an image base (0x10000000 by
15834 # default) and relocated if they conflict, which is a slow very memory
15835 # consuming and fragmenting process. To avoid this, we pick a random,
15836 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15837 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9d54db95
JF
15838 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'
15839 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
15840 ;;
15841 irix5* | irix6*)
15842 case $cc_basename in
15843 CC*)
15844 # SGI C++
9d54db95 15845 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 15846
47aaa820
DWT
15847 # Archives containing C++ object files must be created using
15848 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15849 # necessary to make sure instantiated templates are included
15850 # in the archive.
15851 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15852 ;;
15853 *)
9d54db95
JF
15854 if test yes = "$GXX"; then
15855 if test no = "$with_gnu_ld"; then
15856 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 15857 else
9d54db95 15858 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
15859 fi
15860 fi
15861 link_all_deplibs_CXX=yes
15862 ;;
15863 esac
9d54db95 15864 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
47aaa820
DWT
15865 hardcode_libdir_separator_CXX=:
15866 inherit_rpath_CXX=yes
15867 ;;
9c60689e 15868
9d54db95 15869 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
47aaa820
DWT
15870 case $cc_basename in
15871 KCC*)
15872 # Kuck and Associates, Inc. (KAI) C++ Compiler
9c60689e 15873
47aaa820
DWT
15874 # KCC will only create a shared library if the output file
15875 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15876 # to its proper name (with version) after linking.
9d54db95
JF
15877 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'
15878 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
15879 # Commands to make compiler produce verbose output that lists
15880 # what "hidden" libraries, object files and flags are used when
15881 # linking a shared library.
15882 #
15883 # There doesn't appear to be a way to prevent this compiler from
15884 # explicitly linking system object files so we need to strip them
15885 # from the output so that they don't get included in the library
15886 # dependencies.
9d54db95 15887 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 15888
9d54db95
JF
15889 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15890 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
9c60689e 15891
47aaa820
DWT
15892 # Archives containing C++ object files must be created using
15893 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15894 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15895 ;;
15896 icpc* | ecpc* )
15897 # Intel C++
15898 with_gnu_ld=yes
15899 # version 8.0 and above of icpc choke on multiply defined symbols
15900 # if we add $predep_objects and $postdep_objects, however 7.1 and
15901 # earlier do not add the objects themselves.
15902 case `$CC -V 2>&1` in
15903 *"Version 7."*)
9d54db95
JF
15904 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15905 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
15906 ;;
15907 *) # Version 8.0 or newer
15908 tmp_idyn=
15909 case $host_cpu in
15910 ia64*) tmp_idyn=' -i_dynamic';;
15911 esac
9d54db95
JF
15912 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15913 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
15914 ;;
15915 esac
15916 archive_cmds_need_lc_CXX=no
9d54db95
JF
15917 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15918 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15919 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
47aaa820
DWT
15920 ;;
15921 pgCC* | pgcpp*)
15922 # Portland Group C++ compiler
15923 case `$CC -V` in
ee134472 15924 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
47aaa820 15925 prelink_cmds_CXX='tpldir=Template.dir~
9d54db95
JF
15926 rm -rf $tpldir~
15927 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15928 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
47aaa820 15929 old_archive_cmds_CXX='tpldir=Template.dir~
9d54db95
JF
15930 rm -rf $tpldir~
15931 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15932 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15933 $RANLIB $oldlib'
47aaa820 15934 archive_cmds_CXX='tpldir=Template.dir~
9d54db95
JF
15935 rm -rf $tpldir~
15936 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15937 $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 15938 archive_expsym_cmds_CXX='tpldir=Template.dir~
9d54db95
JF
15939 rm -rf $tpldir~
15940 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15941 $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 15942 ;;
ee134472 15943 *) # Version 6 and above use weak symbols
9d54db95
JF
15944 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15945 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
15946 ;;
15947 esac
9c60689e 15948
9d54db95
JF
15949 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15950 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15951 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
15952 ;;
15953 cxx*)
15954 # Compaq C++
9d54db95
JF
15955 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15956 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 15957
47aaa820
DWT
15958 runpath_var=LD_RUN_PATH
15959 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15960 hardcode_libdir_separator_CXX=:
9c60689e 15961
47aaa820
DWT
15962 # Commands to make compiler produce verbose output that lists
15963 # what "hidden" libraries, object files and flags are used when
15964 # linking a shared library.
15965 #
15966 # There doesn't appear to be a way to prevent this compiler from
15967 # explicitly linking system object files so we need to strip them
15968 # from the output so that they don't get included in the library
15969 # dependencies.
9d54db95 15970 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 15971 ;;
ee134472 15972 xl* | mpixl* | bgxl*)
47aaa820 15973 # IBM XL 8.0 on PPC, with GNU ld
9d54db95
JF
15974 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15975 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15976 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15977 if test yes = "$supports_anon_versioning"; then
47aaa820 15978 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
9d54db95
JF
15979 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15980 echo "local: *; };" >> $output_objdir/$libname.ver~
15981 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
47aaa820
DWT
15982 fi
15983 ;;
15984 *)
15985 case `$CC -V 2>&1 | sed 5q` in
15986 *Sun\ C*)
15987 # Sun C++ 5.9
15988 no_undefined_flag_CXX=' -zdefs'
9d54db95
JF
15989 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15990 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 15991 hardcode_libdir_flag_spec_CXX='-R$libdir'
9d54db95 15992 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 15993 compiler_needs_object_CXX=yes
9c60689e 15994
47aaa820
DWT
15995 # Not sure whether something based on
15996 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15997 # would be better.
ee134472 15998 output_verbose_link_cmd='func_echo_all'
9c60689e 15999
47aaa820
DWT
16000 # Archives containing C++ object files must be created using
16001 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16002 # necessary to make sure instantiated templates are included
16003 # in the archive.
16004 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16005 ;;
16006 esac
16007 ;;
16008 esac
16009 ;;
9c60689e 16010
47aaa820
DWT
16011 lynxos*)
16012 # FIXME: insert proper C++ library support
16013 ld_shlibs_CXX=no
16014 ;;
9c60689e 16015
47aaa820
DWT
16016 m88k*)
16017 # FIXME: insert proper C++ library support
16018 ld_shlibs_CXX=no
16019 ;;
9c60689e 16020
47aaa820
DWT
16021 mvs*)
16022 case $cc_basename in
16023 cxx*)
16024 # FIXME: insert proper C++ library support
16025 ld_shlibs_CXX=no
16026 ;;
16027 *)
16028 # FIXME: insert proper C++ library support
16029 ld_shlibs_CXX=no
16030 ;;
16031 esac
16032 ;;
9c60689e 16033
47aaa820
DWT
16034 netbsd*)
16035 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16036 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16037 wlarc=
16038 hardcode_libdir_flag_spec_CXX='-R$libdir'
16039 hardcode_direct_CXX=yes
16040 hardcode_shlibpath_var_CXX=no
16041 fi
16042 # Workaround some broken pre-1.5 toolchains
16043 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9c60689e 16044 ;;
47aaa820
DWT
16045
16046 *nto* | *qnx*)
16047 ld_shlibs_CXX=yes
9c60689e 16048 ;;
9c60689e 16049
9d54db95 16050 openbsd* | bitrig*)
47aaa820
DWT
16051 if test -f /usr/libexec/ld.so; then
16052 hardcode_direct_CXX=yes
16053 hardcode_shlibpath_var_CXX=no
16054 hardcode_direct_absolute_CXX=yes
16055 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9d54db95
JF
16056 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16057 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
16058 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
16059 export_dynamic_flag_spec_CXX='$wl-E'
16060 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
47aaa820 16061 fi
ee134472 16062 output_verbose_link_cmd=func_echo_all
47aaa820
DWT
16063 else
16064 ld_shlibs_CXX=no
16065 fi
16066 ;;
9c60689e 16067
47aaa820
DWT
16068 osf3* | osf4* | osf5*)
16069 case $cc_basename in
16070 KCC*)
16071 # Kuck and Associates, Inc. (KAI) C++ Compiler
9c60689e 16072
47aaa820
DWT
16073 # KCC will only create a shared library if the output file
16074 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16075 # to its proper name (with version) after linking.
9d54db95 16076 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 16077
9d54db95 16078 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
47aaa820 16079 hardcode_libdir_separator_CXX=:
9c60689e 16080
47aaa820
DWT
16081 # Archives containing C++ object files must be created using
16082 # the KAI C++ compiler.
16083 case $host in
16084 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16085 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16086 esac
16087 ;;
16088 RCC*)
16089 # Rational C++ 2.4.1
16090 # FIXME: insert proper C++ library support
16091 ld_shlibs_CXX=no
16092 ;;
16093 cxx*)
16094 case $host in
16095 osf3*)
9d54db95
JF
16096 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16097 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'
16098 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
47aaa820
DWT
16099 ;;
16100 *)
16101 allow_undefined_flag_CXX=' -expect_unresolved \*'
9d54db95 16102 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 16103 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9d54db95
JF
16104 echo "-hidden">> $lib.exp~
16105 $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~
16106 $RM $lib.exp'
47aaa820
DWT
16107 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16108 ;;
16109 esac
9c60689e 16110
47aaa820 16111 hardcode_libdir_separator_CXX=:
9c60689e 16112
47aaa820
DWT
16113 # Commands to make compiler produce verbose output that lists
16114 # what "hidden" libraries, object files and flags are used when
16115 # linking a shared library.
16116 #
16117 # There doesn't appear to be a way to prevent this compiler from
16118 # explicitly linking system object files so we need to strip them
16119 # from the output so that they don't get included in the library
16120 # dependencies.
9d54db95 16121 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
16122 ;;
16123 *)
9d54db95
JF
16124 if test yes,no = "$GXX,$with_gnu_ld"; then
16125 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
47aaa820
DWT
16126 case $host in
16127 osf3*)
9d54db95 16128 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
16129 ;;
16130 *)
9d54db95 16131 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
16132 ;;
16133 esac
9c60689e 16134
9d54db95 16135 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
47aaa820 16136 hardcode_libdir_separator_CXX=:
9c60689e 16137
47aaa820
DWT
16138 # Commands to make compiler produce verbose output that lists
16139 # what "hidden" libraries, object files and flags are used when
16140 # linking a shared library.
ee134472 16141 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
9c60689e 16142
47aaa820
DWT
16143 else
16144 # FIXME: insert proper C++ library support
16145 ld_shlibs_CXX=no
16146 fi
16147 ;;
16148 esac
16149 ;;
9c60689e 16150
47aaa820 16151 psos*)
9c60689e
DWT
16152 # FIXME: insert proper C++ library support
16153 ld_shlibs_CXX=no
16154 ;;
9c60689e 16155
47aaa820
DWT
16156 sunos4*)
16157 case $cc_basename in
16158 CC*)
16159 # Sun C++ 4.x
16160 # FIXME: insert proper C++ library support
16161 ld_shlibs_CXX=no
9c60689e 16162 ;;
47aaa820
DWT
16163 lcc*)
16164 # Lucid
16165 # FIXME: insert proper C++ library support
16166 ld_shlibs_CXX=no
16167 ;;
16168 *)
16169 # FIXME: insert proper C++ library support
16170 ld_shlibs_CXX=no
16171 ;;
16172 esac
16173 ;;
9c60689e 16174
47aaa820
DWT
16175 solaris*)
16176 case $cc_basename in
ee134472 16177 CC* | sunCC*)
47aaa820
DWT
16178 # Sun C++ 4.2, 5.x and Centerline C++
16179 archive_cmds_need_lc_CXX=yes
16180 no_undefined_flag_CXX=' -zdefs'
9d54db95 16181 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
47aaa820 16182 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9d54db95 16183 $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 16184
47aaa820
DWT
16185 hardcode_libdir_flag_spec_CXX='-R$libdir'
16186 hardcode_shlibpath_var_CXX=no
16187 case $host_os in
16188 solaris2.[0-5] | solaris2.[0-5].*) ;;
16189 *)
16190 # The compiler driver will combine and reorder linker options,
9d54db95 16191 # but understands '-z linker_flag'.
47aaa820
DWT
16192 # Supported since Solaris 2.6 (maybe 2.5.1?)
16193 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16194 ;;
16195 esac
16196 link_all_deplibs_CXX=yes
9c60689e 16197
ee134472 16198 output_verbose_link_cmd='func_echo_all'
9c60689e 16199
47aaa820
DWT
16200 # Archives containing C++ object files must be created using
16201 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16202 # necessary to make sure instantiated templates are included
16203 # in the archive.
16204 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16205 ;;
16206 gcx*)
16207 # Green Hills C++ Compiler
9d54db95 16208 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
9c60689e 16209
47aaa820
DWT
16210 # The C++ compiler must be used to create the archive.
16211 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16212 ;;
16213 *)
16214 # GNU C++ compiler with Solaris linker
9d54db95
JF
16215 if test yes,no = "$GXX,$with_gnu_ld"; then
16216 no_undefined_flag_CXX=' $wl-z ${wl}defs'
47aaa820 16217 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
9d54db95 16218 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
47aaa820 16219 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9d54db95 16220 $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 16221
47aaa820
DWT
16222 # Commands to make compiler produce verbose output that lists
16223 # what "hidden" libraries, object files and flags are used when
16224 # linking a shared library.
ee134472 16225 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820 16226 else
9d54db95 16227 # g++ 2.7 appears to require '-G' NOT '-shared' on this
47aaa820 16228 # platform.
9d54db95 16229 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
47aaa820 16230 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9d54db95 16231 $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 16232
47aaa820
DWT
16233 # Commands to make compiler produce verbose output that lists
16234 # what "hidden" libraries, object files and flags are used when
16235 # linking a shared library.
ee134472 16236 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
47aaa820 16237 fi
9c60689e 16238
9d54db95 16239 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
47aaa820
DWT
16240 case $host_os in
16241 solaris2.[0-5] | solaris2.[0-5].*) ;;
16242 *)
9d54db95 16243 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
47aaa820
DWT
16244 ;;
16245 esac
16246 fi
16247 ;;
16248 esac
16249 ;;
9c60689e 16250
47aaa820 16251 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9d54db95 16252 no_undefined_flag_CXX='$wl-z,text'
47aaa820
DWT
16253 archive_cmds_need_lc_CXX=no
16254 hardcode_shlibpath_var_CXX=no
16255 runpath_var='LD_RUN_PATH'
9c60689e 16256
47aaa820
DWT
16257 case $cc_basename in
16258 CC*)
9d54db95
JF
16259 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16260 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
47aaa820
DWT
16261 ;;
16262 *)
9d54db95
JF
16263 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16264 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
47aaa820
DWT
16265 ;;
16266 esac
16267 ;;
9c60689e 16268
47aaa820 16269 sysv5* | sco3.2v5* | sco5v6*)
9d54db95 16270 # Note: We CANNOT use -z defs as we might desire, because we do not
47aaa820
DWT
16271 # link with -lc, and that would cause any symbols used from libc to
16272 # always be unresolved, which means just about no library would
16273 # ever link correctly. If we're not using GNU ld we use -z text
16274 # though, which does catch some bad symbols but isn't as heavy-handed
16275 # as -z defs.
9d54db95
JF
16276 no_undefined_flag_CXX='$wl-z,text'
16277 allow_undefined_flag_CXX='$wl-z,nodefs'
47aaa820
DWT
16278 archive_cmds_need_lc_CXX=no
16279 hardcode_shlibpath_var_CXX=no
9d54db95 16280 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
47aaa820
DWT
16281 hardcode_libdir_separator_CXX=':'
16282 link_all_deplibs_CXX=yes
9d54db95 16283 export_dynamic_flag_spec_CXX='$wl-Bexport'
47aaa820 16284 runpath_var='LD_RUN_PATH'
9c60689e 16285
47aaa820
DWT
16286 case $cc_basename in
16287 CC*)
9d54db95
JF
16288 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16289 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
ee134472 16290 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
9d54db95 16291 '"$old_archive_cmds_CXX"
ee134472 16292 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
9d54db95 16293 '"$reload_cmds_CXX"
47aaa820
DWT
16294 ;;
16295 *)
9d54db95
JF
16296 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16297 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
47aaa820
DWT
16298 ;;
16299 esac
16300 ;;
9c60689e 16301
47aaa820 16302 tandem*)
9c60689e 16303 case $cc_basename in
47aaa820
DWT
16304 NCC*)
16305 # NonStop-UX NCC 3.20
16306 # FIXME: insert proper C++ library support
16307 ld_shlibs_CXX=no
16308 ;;
9c60689e 16309 *)
47aaa820
DWT
16310 # FIXME: insert proper C++ library support
16311 ld_shlibs_CXX=no
16312 ;;
9c60689e
DWT
16313 esac
16314 ;;
16315
47aaa820
DWT
16316 vxworks*)
16317 # FIXME: insert proper C++ library support
16318 ld_shlibs_CXX=no
16319 ;;
9c60689e 16320
47aaa820
DWT
16321 *)
16322 # FIXME: insert proper C++ library support
16323 ld_shlibs_CXX=no
9c60689e 16324 ;;
47aaa820 16325 esac
9c60689e 16326
47aaa820
DWT
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16328$as_echo "$ld_shlibs_CXX" >&6; }
9d54db95 16329 test no = "$ld_shlibs_CXX" && can_build_shared=no
9c60689e 16330
9d54db95
JF
16331 GCC_CXX=$GXX
16332 LD_CXX=$LD
9c60689e 16333
47aaa820
DWT
16334 ## CAVEAT EMPTOR:
16335 ## There is no encapsulation within the following macros, do not change
16336 ## the running order or otherwise move them around unless you know exactly
16337 ## what you are doing...
16338 # Dependencies to place before and after the object being linked:
16339predep_objects_CXX=
16340postdep_objects_CXX=
16341predeps_CXX=
16342postdeps_CXX=
16343compiler_lib_search_path_CXX=
9c60689e 16344
47aaa820
DWT
16345cat > conftest.$ac_ext <<_LT_EOF
16346class Foo
16347{
16348public:
16349 Foo (void) { a = 0; }
16350private:
16351 int a;
16352};
16353_LT_EOF
9c60689e 16354
ee134472
JF
16355
16356_lt_libdeps_save_CFLAGS=$CFLAGS
16357case "$CC $CFLAGS " in #(
16358*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16359*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
53ba6704 16360*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
ee134472
JF
16361esac
16362
47aaa820
DWT
16363if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16364 (eval $ac_compile) 2>&5
16365 ac_status=$?
16366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16367 test $ac_status = 0; }; then
16368 # Parse the compiler output and extract the necessary
16369 # objects, libraries and library flags.
9c60689e 16370
47aaa820
DWT
16371 # Sentinel used to keep track of whether or not we are before
16372 # the conftest object file.
16373 pre_test_object_deps_done=no
9c60689e 16374
47aaa820 16375 for p in `eval "$output_verbose_link_cmd"`; do
9d54db95 16376 case $prev$p in
9c60689e 16377
47aaa820
DWT
16378 -L* | -R* | -l*)
16379 # Some compilers place space between "-{L,R}" and the path.
16380 # Remove the space.
9d54db95
JF
16381 if test x-L = "$p" ||
16382 test x-R = "$p"; then
47aaa820
DWT
16383 prev=$p
16384 continue
47aaa820 16385 fi
9c60689e 16386
ee134472
JF
16387 # Expand the sysroot to ease extracting the directories later.
16388 if test -z "$prev"; then
16389 case $p in
16390 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16391 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16392 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16393 esac
16394 fi
16395 case $p in
16396 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16397 esac
9d54db95
JF
16398 if test no = "$pre_test_object_deps_done"; then
16399 case $prev in
ee134472 16400 -L | -R)
47aaa820
DWT
16401 # Internal compiler library paths should come after those
16402 # provided the user. The postdeps already come after the
16403 # user supplied libs so there is no need to process them.
16404 if test -z "$compiler_lib_search_path_CXX"; then
9d54db95 16405 compiler_lib_search_path_CXX=$prev$p
47aaa820 16406 else
9d54db95 16407 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
47aaa820
DWT
16408 fi
16409 ;;
16410 # The "-l" case would never come before the object being
16411 # linked, so don't bother handling this case.
16412 esac
16413 else
16414 if test -z "$postdeps_CXX"; then
9d54db95 16415 postdeps_CXX=$prev$p
47aaa820 16416 else
9d54db95 16417 postdeps_CXX="${postdeps_CXX} $prev$p"
47aaa820
DWT
16418 fi
16419 fi
ee134472 16420 prev=
47aaa820 16421 ;;
9c60689e 16422
ee134472 16423 *.lto.$objext) ;; # Ignore GCC LTO objects
47aaa820
DWT
16424 *.$objext)
16425 # This assumes that the test object file only shows up
16426 # once in the compiler output.
16427 if test "$p" = "conftest.$objext"; then
16428 pre_test_object_deps_done=yes
16429 continue
16430 fi
9c60689e 16431
9d54db95 16432 if test no = "$pre_test_object_deps_done"; then
47aaa820 16433 if test -z "$predep_objects_CXX"; then
9d54db95 16434 predep_objects_CXX=$p
47aaa820
DWT
16435 else
16436 predep_objects_CXX="$predep_objects_CXX $p"
16437 fi
16438 else
16439 if test -z "$postdep_objects_CXX"; then
9d54db95 16440 postdep_objects_CXX=$p
47aaa820
DWT
16441 else
16442 postdep_objects_CXX="$postdep_objects_CXX $p"
16443 fi
16444 fi
16445 ;;
9c60689e 16446
47aaa820 16447 *) ;; # Ignore the rest.
9c60689e 16448
47aaa820
DWT
16449 esac
16450 done
9c60689e 16451
47aaa820
DWT
16452 # Clean up.
16453 rm -f a.out a.exe
16454else
16455 echo "libtool.m4: error: problem compiling CXX test program"
16456fi
9c60689e 16457
47aaa820 16458$RM -f confest.$objext
ee134472 16459CFLAGS=$_lt_libdeps_save_CFLAGS
9c60689e 16460
47aaa820
DWT
16461# PORTME: override above test on systems where it is broken
16462case $host_os in
16463interix[3-9]*)
16464 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16465 # hack all around it, let's just trust "g++" to DTRT.
16466 predep_objects_CXX=
16467 postdep_objects_CXX=
16468 postdeps_CXX=
16469 ;;
47aaa820 16470esac
9c60689e 16471
9c60689e 16472
47aaa820
DWT
16473case " $postdeps_CXX " in
16474*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16475esac
16476 compiler_lib_search_dirs_CXX=
16477if test -n "${compiler_lib_search_path_CXX}"; then
9d54db95 16478 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
47aaa820 16479fi
9c60689e 16480
9c60689e 16481
9c60689e 16482
9c60689e 16483
9c60689e 16484
9c60689e 16485
9c60689e 16486
9c60689e 16487
9c60689e 16488
9c60689e 16489
9c60689e 16490
9c60689e 16491
9c60689e 16492
9c60689e 16493
9c60689e 16494
9c60689e 16495
9c60689e 16496
9c60689e 16497
9c60689e 16498
9c60689e 16499
9c60689e 16500
9c60689e 16501
9c60689e 16502
9c60689e 16503
9c60689e 16504
9c60689e 16505
9c60689e 16506
9c60689e 16507
9c60689e 16508
9c60689e 16509
9c60689e 16510
47aaa820
DWT
16511 lt_prog_compiler_wl_CXX=
16512lt_prog_compiler_pic_CXX=
16513lt_prog_compiler_static_CXX=
9c60689e 16514
9c60689e
DWT
16515
16516 # C++ specific cases for pic, static, wl, etc.
9d54db95 16517 if test yes = "$GXX"; then
9c60689e
DWT
16518 lt_prog_compiler_wl_CXX='-Wl,'
16519 lt_prog_compiler_static_CXX='-static'
16520
16521 case $host_os in
16522 aix*)
16523 # All AIX code is PIC.
9d54db95 16524 if test ia64 = "$host_cpu"; then
9c60689e
DWT
16525 # AIX 5 now supports IA64 processor
16526 lt_prog_compiler_static_CXX='-Bstatic'
16527 fi
9d54db95 16528 lt_prog_compiler_pic_CXX='-fPIC'
9c60689e
DWT
16529 ;;
16530
16531 amigaos*)
16532 case $host_cpu in
16533 powerpc)
16534 # see comment about AmigaOS4 .so support
16535 lt_prog_compiler_pic_CXX='-fPIC'
16536 ;;
16537 m68k)
16538 # FIXME: we need at least 68020 code to build shared libraries, but
9d54db95
JF
16539 # adding the '-m68020' flag to GCC prevents building anything better,
16540 # like '-m68040'.
9c60689e
DWT
16541 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16542 ;;
16543 esac
16544 ;;
16545
16546 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16547 # PIC is the default for these OSes.
16548 ;;
16549 mingw* | cygwin* | os2* | pw32* | cegcc*)
16550 # This hack is so that the source file can tell whether it is being
16551 # built for inclusion in a dll (and should export symbols for example).
16552 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16553 # (--disable-auto-import) libraries
16554 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
9d54db95
JF
16555 case $host_os in
16556 os2*)
16557 lt_prog_compiler_static_CXX='$wl-static'
16558 ;;
16559 esac
9c60689e
DWT
16560 ;;
16561 darwin* | rhapsody*)
16562 # PIC is the default on this platform
16563 # Common symbols not allowed in MH_DYLIB files
16564 lt_prog_compiler_pic_CXX='-fno-common'
16565 ;;
16566 *djgpp*)
16567 # DJGPP does not support shared libraries at all
16568 lt_prog_compiler_pic_CXX=
16569 ;;
ee134472
JF
16570 haiku*)
16571 # PIC is the default for Haiku.
16572 # The "-static" flag exists, but is broken.
16573 lt_prog_compiler_static_CXX=
16574 ;;
9c60689e
DWT
16575 interix[3-9]*)
16576 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16577 # Instead, we relocate shared libraries at runtime.
16578 ;;
16579 sysv4*MP*)
16580 if test -d /usr/nec; then
16581 lt_prog_compiler_pic_CXX=-Kconform_pic
16582 fi
16583 ;;
16584 hpux*)
16585 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16586 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16587 # sets the default TLS model and affects inlining.
16588 case $host_cpu in
16589 hppa*64*)
16590 ;;
16591 *)
16592 lt_prog_compiler_pic_CXX='-fPIC'
16593 ;;
16594 esac
16595 ;;
16596 *qnx* | *nto*)
16597 # QNX uses GNU C++, but need to define -shared option too, otherwise
16598 # it will coredump.
16599 lt_prog_compiler_pic_CXX='-fPIC -shared'
16600 ;;
16601 *)
16602 lt_prog_compiler_pic_CXX='-fPIC'
16603 ;;
16604 esac
16605 else
16606 case $host_os in
16607 aix[4-9]*)
16608 # All AIX code is PIC.
9d54db95 16609 if test ia64 = "$host_cpu"; then
9c60689e
DWT
16610 # AIX 5 now supports IA64 processor
16611 lt_prog_compiler_static_CXX='-Bstatic'
16612 else
16613 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16614 fi
16615 ;;
16616 chorus*)
16617 case $cc_basename in
16618 cxch68*)
16619 # Green Hills C++ Compiler
16620 # _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"
16621 ;;
16622 esac
16623 ;;
ee134472
JF
16624 mingw* | cygwin* | os2* | pw32* | cegcc*)
16625 # This hack is so that the source file can tell whether it is being
16626 # built for inclusion in a dll (and should export symbols for example).
16627 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16628 ;;
9c60689e
DWT
16629 dgux*)
16630 case $cc_basename in
16631 ec++*)
16632 lt_prog_compiler_pic_CXX='-KPIC'
16633 ;;
16634 ghcx*)
16635 # Green Hills C++ Compiler
16636 lt_prog_compiler_pic_CXX='-pic'
16637 ;;
16638 *)
16639 ;;
16640 esac
16641 ;;
16642 freebsd* | dragonfly*)
16643 # FreeBSD uses GNU C++
16644 ;;
16645 hpux9* | hpux10* | hpux11*)
16646 case $cc_basename in
16647 CC*)
16648 lt_prog_compiler_wl_CXX='-Wl,'
9d54db95
JF
16649 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16650 if test ia64 != "$host_cpu"; then
9c60689e
DWT
16651 lt_prog_compiler_pic_CXX='+Z'
16652 fi
16653 ;;
16654 aCC*)
16655 lt_prog_compiler_wl_CXX='-Wl,'
9d54db95 16656 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
9c60689e
DWT
16657 case $host_cpu in
16658 hppa*64*|ia64*)
16659 # +Z the default
16660 ;;
16661 *)
16662 lt_prog_compiler_pic_CXX='+Z'
16663 ;;
16664 esac
16665 ;;
16666 *)
16667 ;;
16668 esac
16669 ;;
16670 interix*)
16671 # This is c89, which is MS Visual C++ (no shared libs)
16672 # Anyone wants to do a port?
16673 ;;
16674 irix5* | irix6* | nonstopux*)
16675 case $cc_basename in
16676 CC*)
16677 lt_prog_compiler_wl_CXX='-Wl,'
16678 lt_prog_compiler_static_CXX='-non_shared'
16679 # CC pic flag -KPIC is the default.
16680 ;;
16681 *)
16682 ;;
16683 esac
16684 ;;
9d54db95 16685 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9c60689e
DWT
16686 case $cc_basename in
16687 KCC*)
16688 # KAI C++ Compiler
16689 lt_prog_compiler_wl_CXX='--backend -Wl,'
16690 lt_prog_compiler_pic_CXX='-fPIC'
16691 ;;
16692 ecpc* )
9d54db95 16693 # old Intel C++ for x86_64, which still supported -KPIC.
9c60689e
DWT
16694 lt_prog_compiler_wl_CXX='-Wl,'
16695 lt_prog_compiler_pic_CXX='-KPIC'
16696 lt_prog_compiler_static_CXX='-static'
16697 ;;
16698 icpc* )
16699 # Intel C++, used to be incompatible with GCC.
16700 # ICC 10 doesn't accept -KPIC any more.
16701 lt_prog_compiler_wl_CXX='-Wl,'
16702 lt_prog_compiler_pic_CXX='-fPIC'
16703 lt_prog_compiler_static_CXX='-static'
16704 ;;
16705 pgCC* | pgcpp*)
16706 # Portland Group C++ compiler
16707 lt_prog_compiler_wl_CXX='-Wl,'
16708 lt_prog_compiler_pic_CXX='-fpic'
16709 lt_prog_compiler_static_CXX='-Bstatic'
16710 ;;
16711 cxx*)
16712 # Compaq C++
16713 # Make sure the PIC flag is empty. It appears that all Alpha
16714 # Linux and Compaq Tru64 Unix objects are PIC.
16715 lt_prog_compiler_pic_CXX=
16716 lt_prog_compiler_static_CXX='-non_shared'
16717 ;;
ee134472
JF
16718 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16719 # IBM XL 8.0, 9.0 on PPC and BlueGene
9c60689e
DWT
16720 lt_prog_compiler_wl_CXX='-Wl,'
16721 lt_prog_compiler_pic_CXX='-qpic'
16722 lt_prog_compiler_static_CXX='-qstaticlink'
16723 ;;
16724 *)
16725 case `$CC -V 2>&1 | sed 5q` in
16726 *Sun\ C*)
16727 # Sun C++ 5.9
16728 lt_prog_compiler_pic_CXX='-KPIC'
16729 lt_prog_compiler_static_CXX='-Bstatic'
16730 lt_prog_compiler_wl_CXX='-Qoption ld '
16731 ;;
16732 esac
16733 ;;
16734 esac
16735 ;;
16736 lynxos*)
16737 ;;
16738 m88k*)
16739 ;;
16740 mvs*)
16741 case $cc_basename in
16742 cxx*)
16743 lt_prog_compiler_pic_CXX='-W c,exportall'
16744 ;;
16745 *)
16746 ;;
16747 esac
16748 ;;
53ba6704 16749 netbsd*)
9c60689e
DWT
16750 ;;
16751 *qnx* | *nto*)
16752 # QNX uses GNU C++, but need to define -shared option too, otherwise
16753 # it will coredump.
16754 lt_prog_compiler_pic_CXX='-fPIC -shared'
16755 ;;
16756 osf3* | osf4* | osf5*)
16757 case $cc_basename in
16758 KCC*)
16759 lt_prog_compiler_wl_CXX='--backend -Wl,'
16760 ;;
16761 RCC*)
16762 # Rational C++ 2.4.1
16763 lt_prog_compiler_pic_CXX='-pic'
16764 ;;
16765 cxx*)
16766 # Digital/Compaq C++
16767 lt_prog_compiler_wl_CXX='-Wl,'
16768 # Make sure the PIC flag is empty. It appears that all Alpha
16769 # Linux and Compaq Tru64 Unix objects are PIC.
16770 lt_prog_compiler_pic_CXX=
16771 lt_prog_compiler_static_CXX='-non_shared'
16772 ;;
16773 *)
16774 ;;
16775 esac
16776 ;;
16777 psos*)
16778 ;;
16779 solaris*)
16780 case $cc_basename in
ee134472 16781 CC* | sunCC*)
9c60689e
DWT
16782 # Sun C++ 4.2, 5.x and Centerline C++
16783 lt_prog_compiler_pic_CXX='-KPIC'
16784 lt_prog_compiler_static_CXX='-Bstatic'
16785 lt_prog_compiler_wl_CXX='-Qoption ld '
16786 ;;
16787 gcx*)
16788 # Green Hills C++ Compiler
16789 lt_prog_compiler_pic_CXX='-PIC'
16790 ;;
16791 *)
16792 ;;
16793 esac
16794 ;;
16795 sunos4*)
16796 case $cc_basename in
16797 CC*)
16798 # Sun C++ 4.x
16799 lt_prog_compiler_pic_CXX='-pic'
16800 lt_prog_compiler_static_CXX='-Bstatic'
16801 ;;
16802 lcc*)
16803 # Lucid
16804 lt_prog_compiler_pic_CXX='-pic'
16805 ;;
16806 *)
16807 ;;
16808 esac
16809 ;;
16810 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16811 case $cc_basename in
16812 CC*)
16813 lt_prog_compiler_wl_CXX='-Wl,'
16814 lt_prog_compiler_pic_CXX='-KPIC'
16815 lt_prog_compiler_static_CXX='-Bstatic'
16816 ;;
16817 esac
16818 ;;
16819 tandem*)
16820 case $cc_basename in
16821 NCC*)
16822 # NonStop-UX NCC 3.20
16823 lt_prog_compiler_pic_CXX='-KPIC'
16824 ;;
16825 *)
16826 ;;
16827 esac
16828 ;;
16829 vxworks*)
16830 ;;
16831 *)
16832 lt_prog_compiler_can_build_shared_CXX=no
16833 ;;
16834 esac
16835 fi
16836
16837case $host_os in
9d54db95 16838 # For platforms that do not support PIC, -DPIC is meaningless:
9c60689e
DWT
16839 *djgpp*)
16840 lt_prog_compiler_pic_CXX=
16841 ;;
16842 *)
16843 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16844 ;;
16845esac
9c60689e 16846
ee134472
JF
16847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16848$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16849if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
16850 $as_echo_n "(cached) " >&6
16851else
16852 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
16853fi
16854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16855$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
16856lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
9c60689e
DWT
16857
16858#
16859# Check to make sure the PIC flag actually works.
16860#
16861if test -n "$lt_prog_compiler_pic_CXX"; then
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16863$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
ee134472 16864if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
9c60689e
DWT
16865 $as_echo_n "(cached) " >&6
16866else
16867 lt_cv_prog_compiler_pic_works_CXX=no
16868 ac_outfile=conftest.$ac_objext
16869 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9d54db95 16870 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
9c60689e
DWT
16871 # Insert the option either (1) after the last *FLAGS variable, or
16872 # (2) before a word containing "conftest.", or (3) at the end.
16873 # Note that $ac_compile itself does not contain backslashes and begins
16874 # with a dollar sign (not a hyphen), so the echo should work correctly.
16875 # The option is referenced via a variable to avoid confusing sed.
16876 lt_compile=`echo "$ac_compile" | $SED \
16877 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16878 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16879 -e 's:$: $lt_compiler_flag:'`
ee134472 16880 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9c60689e
DWT
16881 (eval "$lt_compile" 2>conftest.err)
16882 ac_status=$?
16883 cat conftest.err >&5
ee134472 16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9c60689e
DWT
16885 if (exit $ac_status) && test -s "$ac_outfile"; then
16886 # The compiler can only warn and ignore the option if not recognized
16887 # So say no if there are warnings other than the usual output.
ee134472 16888 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9c60689e
DWT
16889 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16890 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16891 lt_cv_prog_compiler_pic_works_CXX=yes
16892 fi
16893 fi
00a96142 16894 $RM -r conftest*
9c60689e
DWT
16895
16896fi
16897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16898$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16899
9d54db95 16900if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
9c60689e
DWT
16901 case $lt_prog_compiler_pic_CXX in
16902 "" | " "*) ;;
16903 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16904 esac
16905else
16906 lt_prog_compiler_pic_CXX=
16907 lt_prog_compiler_can_build_shared_CXX=no
16908fi
16909
16910fi
16911
16912
16913
ee134472
JF
16914
16915
47aaa820
DWT
16916#
16917# Check to make sure the static flag actually works.
16918#
16919wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16921$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
ee134472 16922if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
47aaa820
DWT
16923 $as_echo_n "(cached) " >&6
16924else
16925 lt_cv_prog_compiler_static_works_CXX=no
9d54db95 16926 save_LDFLAGS=$LDFLAGS
47aaa820
DWT
16927 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16928 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16929 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16930 # The linker can only warn and ignore the option if not recognized
16931 # So say no if there are warnings
16932 if test -s conftest.err; then
16933 # Append any errors to the config.log.
16934 cat conftest.err 1>&5
ee134472 16935 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
47aaa820
DWT
16936 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16937 if diff conftest.exp conftest.er2 >/dev/null; then
16938 lt_cv_prog_compiler_static_works_CXX=yes
16939 fi
16940 else
16941 lt_cv_prog_compiler_static_works_CXX=yes
16942 fi
16943 fi
16944 $RM -r conftest*
9d54db95 16945 LDFLAGS=$save_LDFLAGS
47aaa820
DWT
16946
16947fi
16948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16949$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16950
9d54db95 16951if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
47aaa820
DWT
16952 :
16953else
16954 lt_prog_compiler_static_CXX=
16955fi
16956
16957
16958
16959
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16961$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ee134472 16962if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
47aaa820
DWT
16963 $as_echo_n "(cached) " >&6
16964else
16965 lt_cv_prog_compiler_c_o_CXX=no
16966 $RM -r conftest 2>/dev/null
16967 mkdir conftest
16968 cd conftest
16969 mkdir out
16970 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16971
16972 lt_compiler_flag="-o out/conftest2.$ac_objext"
16973 # Insert the option either (1) after the last *FLAGS variable, or
16974 # (2) before a word containing "conftest.", or (3) at the end.
16975 # Note that $ac_compile itself does not contain backslashes and begins
16976 # with a dollar sign (not a hyphen), so the echo should work correctly.
16977 lt_compile=`echo "$ac_compile" | $SED \
16978 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16979 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16980 -e 's:$: $lt_compiler_flag:'`
ee134472 16981 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
47aaa820
DWT
16982 (eval "$lt_compile" 2>out/conftest.err)
16983 ac_status=$?
16984 cat out/conftest.err >&5
ee134472 16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47aaa820
DWT
16986 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16987 then
16988 # The compiler can only warn and ignore the option if not recognized
16989 # So say no if there are warnings
ee134472 16990 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
47aaa820
DWT
16991 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16992 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16993 lt_cv_prog_compiler_c_o_CXX=yes
16994 fi
16995 fi
16996 chmod u+w . 2>&5
00a96142 16997 $RM -r conftest*
47aaa820
DWT
16998 # SGI C++ compiler will create directory out/ii_files/ for
16999 # template instantiation
17000 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17001 $RM out/* && rmdir out
17002 cd ..
17003 $RM -r conftest
00a96142 17004 $RM -r conftest*
47aaa820
DWT
17005
17006fi
17007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17008$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17009
17010
17011
17012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17013$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
ee134472 17014if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
47aaa820
DWT
17015 $as_echo_n "(cached) " >&6
17016else
17017 lt_cv_prog_compiler_c_o_CXX=no
17018 $RM -r conftest 2>/dev/null
17019 mkdir conftest
17020 cd conftest
17021 mkdir out
17022 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17023
17024 lt_compiler_flag="-o out/conftest2.$ac_objext"
17025 # Insert the option either (1) after the last *FLAGS variable, or
17026 # (2) before a word containing "conftest.", or (3) at the end.
17027 # Note that $ac_compile itself does not contain backslashes and begins
17028 # with a dollar sign (not a hyphen), so the echo should work correctly.
17029 lt_compile=`echo "$ac_compile" | $SED \
17030 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17031 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17032 -e 's:$: $lt_compiler_flag:'`
ee134472 17033 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
47aaa820
DWT
17034 (eval "$lt_compile" 2>out/conftest.err)
17035 ac_status=$?
17036 cat out/conftest.err >&5
ee134472 17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47aaa820
DWT
17038 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17039 then
17040 # The compiler can only warn and ignore the option if not recognized
17041 # So say no if there are warnings
ee134472 17042 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
47aaa820
DWT
17043 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17044 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17045 lt_cv_prog_compiler_c_o_CXX=yes
17046 fi
17047 fi
17048 chmod u+w . 2>&5
00a96142 17049 $RM -r conftest*
47aaa820
DWT
17050 # SGI C++ compiler will create directory out/ii_files/ for
17051 # template instantiation
17052 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17053 $RM out/* && rmdir out
17054 cd ..
17055 $RM -r conftest
00a96142 17056 $RM -r conftest*
47aaa820
DWT
17057
17058fi
17059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17060$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17061
17062
17063
17064
9d54db95
JF
17065hard_links=nottested
17066if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
47aaa820
DWT
17067 # do not overwrite the value of need_locks provided by the user
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17069$as_echo_n "checking if we can lock with hard links... " >&6; }
17070 hard_links=yes
00a96142 17071 $RM -r conftest*
47aaa820
DWT
17072 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17073 touch conftest.a
17074 ln conftest.a conftest.b 2>&5 || hard_links=no
17075 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17077$as_echo "$hard_links" >&6; }
9d54db95
JF
17078 if test no = "$hard_links"; then
17079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17080$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
47aaa820
DWT
17081 need_locks=warn
17082 fi
17083else
17084 need_locks=no
17085fi
17086
17087
17088
17089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17090$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17091
17092 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
ee134472 17093 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
47aaa820
DWT
17094 case $host_os in
17095 aix[4-9]*)
17096 # If we're using GNU nm, then we don't want the "-C" option.
9d54db95
JF
17097 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17098 # Without the "-l" option, or with the "-B" option, AIX nm treats
17099 # weak defined symbols like other global defined symbols, whereas
17100 # GNU nm marks them as "W".
17101 # While the 'weak' keyword is ignored in the Export File, we need
17102 # it in the Import File for the 'aix-soname' feature, so we have
17103 # to replace the "-B" option with "-P" for AIX nm.
47aaa820 17104 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9d54db95 17105 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 17106 else
9d54db95 17107 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
17108 fi
17109 ;;
17110 pw32*)
9d54db95 17111 export_symbols_cmds_CXX=$ltdll_cmds
ee134472 17112 ;;
47aaa820 17113 cygwin* | mingw* | cegcc*)
ee134472 17114 case $cc_basename in
53ba6704
JF
17115 cl*)
17116 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17117 ;;
ee134472
JF
17118 *)
17119 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'
17120 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17121 ;;
17122 esac
17123 ;;
47aaa820
DWT
17124 *)
17125 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
ee134472 17126 ;;
47aaa820 17127 esac
47aaa820
DWT
17128
17129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17130$as_echo "$ld_shlibs_CXX" >&6; }
9d54db95 17131test no = "$ld_shlibs_CXX" && can_build_shared=no
47aaa820
DWT
17132
17133with_gnu_ld_CXX=$with_gnu_ld
17134
17135
17136
17137
17138
17139
17140#
17141# Do we need to explicitly link libc?
17142#
17143case "x$archive_cmds_need_lc_CXX" in
17144x|xyes)
17145 # Assume -lc should be added
17146 archive_cmds_need_lc_CXX=yes
17147
9d54db95 17148 if test yes,yes = "$GCC,$enable_shared"; then
47aaa820
DWT
17149 case $archive_cmds_CXX in
17150 *'~'*)
17151 # FIXME: we may have to deal with multi-command sequences.
17152 ;;
17153 '$CC '*)
17154 # Test whether the compiler implicitly links with -lc since on some
17155 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17156 # to ld, don't add -lc before -lgcc.
17157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17158$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
ee134472
JF
17159if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17160 $as_echo_n "(cached) " >&6
17161else
00a96142 17162 $RM -r conftest*
ee134472 17163 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
47aaa820 17164
ee134472 17165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
47aaa820
DWT
17166 (eval $ac_compile) 2>&5
17167 ac_status=$?
17168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17169 test $ac_status = 0; } 2>conftest.err; then
ee134472
JF
17170 soname=conftest
17171 lib=conftest
17172 libobjs=conftest.$ac_objext
17173 deplibs=
17174 wl=$lt_prog_compiler_wl_CXX
17175 pic_flag=$lt_prog_compiler_pic_CXX
17176 compiler_flags=-v
17177 linker_flags=-v
17178 verstring=
17179 output_objdir=.
17180 libname=conftest
17181 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17182 allow_undefined_flag_CXX=
17183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
47aaa820
DWT
17184 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17185 ac_status=$?
17186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17187 test $ac_status = 0; }
ee134472
JF
17188 then
17189 lt_cv_archive_cmds_need_lc_CXX=no
17190 else
17191 lt_cv_archive_cmds_need_lc_CXX=yes
17192 fi
17193 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17194 else
17195 cat conftest.err 1>&5
17196 fi
00a96142 17197 $RM -r conftest*
ee134472
JF
17198
17199fi
17200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17201$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17202 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
47aaa820
DWT
17203 ;;
17204 esac
17205 fi
17206 ;;
17207esac
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
47aaa820
DWT
17267
17268
17269
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17271$as_echo_n "checking dynamic linker characteristics... " >&6; }
17272
17273library_names_spec=
17274libname_spec='lib$name'
17275soname_spec=
9d54db95 17276shrext_cmds=.so
47aaa820
DWT
17277postinstall_cmds=
17278postuninstall_cmds=
17279finish_cmds=
17280finish_eval=
17281shlibpath_var=
17282shlibpath_overrides_runpath=unknown
17283version_type=none
17284dynamic_linker="$host_os ld.so"
17285sys_lib_dlsearch_path_spec="/lib /usr/lib"
17286need_lib_prefix=unknown
17287hardcode_into_libs=no
17288
17289# when you set need_version to no, make sure it does not cause -set_version
17290# flags to be left without arguments
17291need_version=unknown
17292
9d54db95
JF
17293
17294
47aaa820
DWT
17295case $host_os in
17296aix3*)
53ba6704 17297 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95 17298 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
47aaa820
DWT
17299 shlibpath_var=LIBPATH
17300
17301 # AIX 3 has no versioning support, so we append a major version to the name.
9d54db95 17302 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17303 ;;
17304
17305aix[4-9]*)
53ba6704 17306 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
17307 need_lib_prefix=no
17308 need_version=no
17309 hardcode_into_libs=yes
9d54db95 17310 if test ia64 = "$host_cpu"; then
47aaa820 17311 # AIX 5 supports IA64
9d54db95 17312 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
47aaa820
DWT
17313 shlibpath_var=LD_LIBRARY_PATH
17314 else
17315 # With GCC up to 2.95.x, collect2 would create an import file
17316 # for dependence libraries. The import file would start with
9d54db95
JF
17317 # the line '#! .'. This would cause the generated library to
17318 # depend on '.', always an invalid library. This was fixed in
47aaa820
DWT
17319 # development snapshots of GCC prior to 3.0.
17320 case $host_os in
17321 aix4 | aix4.[01] | aix4.[01].*)
17322 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17323 echo ' yes '
9d54db95 17324 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
47aaa820
DWT
17325 :
17326 else
17327 can_build_shared=no
17328 fi
17329 ;;
17330 esac
9d54db95
JF
17331 # Using Import Files as archive members, it is possible to support
17332 # filename-based versioning of shared library archives on AIX. While
17333 # this would work for both with and without runtime linking, it will
17334 # prevent static linking of such archives. So we do filename-based
17335 # shared library versioning with .so extension only, which is used
17336 # when both runtime linking and shared linking is enabled.
17337 # Unfortunately, runtime linking may impact performance, so we do
17338 # not want this to be the default eventually. Also, we use the
17339 # versioned .so libs for executables only if there is the -brtl
17340 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17341 # To allow for filename-based versioning support, we need to create
17342 # libNAME.so.V as an archive file, containing:
17343 # *) an Import File, referring to the versioned filename of the
17344 # archive as well as the shared archive member, telling the
17345 # bitwidth (32 or 64) of that shared object, and providing the
17346 # list of exported symbols of that shared object, eventually
17347 # decorated with the 'weak' keyword
17348 # *) the shared object with the F_LOADONLY flag set, to really avoid
17349 # it being seen by the linker.
17350 # At run time we better use the real file rather than another symlink,
17351 # but for link time we create the symlink libNAME.so -> libNAME.so.V
17352
17353 case $with_aix_soname,$aix_use_runtimelinking in
17354 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
47aaa820
DWT
17355 # soname into executable. Probably we can add versioning support to
17356 # collect2, so additional links can be useful in future.
9d54db95
JF
17357 aix,yes) # traditional libtool
17358 dynamic_linker='AIX unversionable lib.so'
47aaa820
DWT
17359 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17360 # instead of lib<name>.a to let people know that these are not
17361 # typical AIX shared libraries.
9d54db95
JF
17362 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17363 ;;
17364 aix,no) # traditional AIX only
17365 dynamic_linker='AIX lib.a(lib.so.V)'
47aaa820
DWT
17366 # We preserve .a as extension for shared libraries through AIX4.2
17367 # and later when we are not doing run time linking.
9d54db95
JF
17368 library_names_spec='$libname$release.a $libname.a'
17369 soname_spec='$libname$release$shared_ext$major'
17370 ;;
17371 svr4,*) # full svr4 only
17372 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17373 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17374 # We do not specify a path in Import Files, so LIBPATH fires.
17375 shlibpath_overrides_runpath=yes
17376 ;;
17377 *,yes) # both, prefer svr4
17378 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17379 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17380 # unpreferred sharedlib libNAME.a needs extra handling
17381 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"'
17382 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"'
17383 # We do not specify a path in Import Files, so LIBPATH fires.
17384 shlibpath_overrides_runpath=yes
17385 ;;
17386 *,no) # both, prefer aix
17387 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17388 library_names_spec='$libname$release.a $libname.a'
17389 soname_spec='$libname$release$shared_ext$major'
17390 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17391 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)'
17392 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"'
17393 ;;
17394 esac
47aaa820
DWT
17395 shlibpath_var=LIBPATH
17396 fi
17397 ;;
17398
17399amigaos*)
17400 case $host_cpu in
17401 powerpc)
17402 # Since July 2007 AmigaOS4 officially supports .so libraries.
17403 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9d54db95 17404 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
47aaa820
DWT
17405 ;;
17406 m68k)
17407 library_names_spec='$libname.ixlibrary $libname.a'
17408 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9d54db95 17409 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
17410 ;;
17411 esac
17412 ;;
17413
17414beos*)
9d54db95 17415 library_names_spec='$libname$shared_ext'
47aaa820
DWT
17416 dynamic_linker="$host_os ld.so"
17417 shlibpath_var=LIBRARY_PATH
17418 ;;
17419
17420bsdi[45]*)
53ba6704 17421 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820 17422 need_version=no
9d54db95
JF
17423 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17424 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17425 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17426 shlibpath_var=LD_LIBRARY_PATH
17427 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17428 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17429 # the default ld.so.conf also contains /usr/contrib/lib and
17430 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17431 # libtool to hard-code these into programs
17432 ;;
9c60689e 17433
47aaa820
DWT
17434cygwin* | mingw* | pw32* | cegcc*)
17435 version_type=windows
9d54db95 17436 shrext_cmds=.dll
47aaa820
DWT
17437 need_version=no
17438 need_lib_prefix=no
9c60689e 17439
ee134472
JF
17440 case $GCC,$cc_basename in
17441 yes,*)
17442 # gcc
47aaa820
DWT
17443 library_names_spec='$libname.dll.a'
17444 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9d54db95
JF
17445 postinstall_cmds='base_file=`basename \$file`~
17446 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
47aaa820
DWT
17447 dldir=$destdir/`dirname \$dlpath`~
17448 test -d \$dldir || mkdir -p \$dldir~
17449 $install_prog $dir/$dlname \$dldir/$dlname~
17450 chmod a+x \$dldir/$dlname~
17451 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17452 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17453 fi'
17454 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17455 dlpath=$dir/\$dldll~
17456 $RM \$dlpath'
17457 shlibpath_overrides_runpath=yes
9c60689e 17458
47aaa820
DWT
17459 case $host_os in
17460 cygwin*)
17461 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9d54db95 17462 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
ee134472 17463
47aaa820
DWT
17464 ;;
17465 mingw* | cegcc*)
17466 # MinGW DLLs use traditional 'lib' prefix
9d54db95 17467 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
47aaa820
DWT
17468 ;;
17469 pw32*)
17470 # pw32 DLLs use 'pw' prefix rather than 'lib'
9d54db95 17471 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
47aaa820
DWT
17472 ;;
17473 esac
ee134472
JF
17474 dynamic_linker='Win32 ld.exe'
17475 ;;
17476
17477 *,cl*)
17478 # Native MSVC
17479 libname_spec='$name'
9d54db95
JF
17480 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17481 library_names_spec='$libname.dll.lib'
ee134472
JF
17482
17483 case $build_os in
17484 mingw*)
17485 sys_lib_search_path_spec=
17486 lt_save_ifs=$IFS
17487 IFS=';'
17488 for lt_path in $LIB
17489 do
17490 IFS=$lt_save_ifs
17491 # Let DOS variable expansion print the short 8.3 style file name.
17492 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17493 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17494 done
17495 IFS=$lt_save_ifs
17496 # Convert to MSYS style.
17497 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17498 ;;
17499 cygwin*)
17500 # Convert to unix form, then to dos form, then back to unix form
17501 # but this time dos style (no spaces!) so that the unix form looks
17502 # like /cygdrive/c/PROGRA~1:/cygdr...
17503 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17504 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17505 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17506 ;;
17507 *)
9d54db95 17508 sys_lib_search_path_spec=$LIB
ee134472
JF
17509 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17510 # It is most probably a Windows format PATH.
17511 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17512 else
17513 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17514 fi
17515 # FIXME: find the short name or the path components, as spaces are
17516 # common. (e.g. "Program Files" -> "PROGRA~1")
17517 ;;
17518 esac
17519
17520 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9d54db95
JF
17521 postinstall_cmds='base_file=`basename \$file`~
17522 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
ee134472
JF
17523 dldir=$destdir/`dirname \$dlpath`~
17524 test -d \$dldir || mkdir -p \$dldir~
17525 $install_prog $dir/$dlname \$dldir/$dlname'
17526 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17527 dlpath=$dir/\$dldll~
17528 $RM \$dlpath'
17529 shlibpath_overrides_runpath=yes
17530 dynamic_linker='Win32 link.exe'
47aaa820 17531 ;;
9c60689e 17532
47aaa820 17533 *)
ee134472 17534 # Assume MSVC wrapper
9d54db95 17535 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
ee134472 17536 dynamic_linker='Win32 ld.exe'
47aaa820
DWT
17537 ;;
17538 esac
47aaa820
DWT
17539 # FIXME: first we should search . and the directory the executable is in
17540 shlibpath_var=PATH
17541 ;;
9c60689e 17542
47aaa820
DWT
17543darwin* | rhapsody*)
17544 dynamic_linker="$host_os dyld"
17545 version_type=darwin
17546 need_lib_prefix=no
17547 need_version=no
9d54db95
JF
17548 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17549 soname_spec='$libname$release$major$shared_ext'
47aaa820
DWT
17550 shlibpath_overrides_runpath=yes
17551 shlibpath_var=DYLD_LIBRARY_PATH
17552 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9c60689e 17553
47aaa820
DWT
17554 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17555 ;;
9c60689e 17556
47aaa820 17557dgux*)
53ba6704 17558 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
17559 need_lib_prefix=no
17560 need_version=no
9d54db95
JF
17561 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17562 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17563 shlibpath_var=LD_LIBRARY_PATH
17564 ;;
9c60689e 17565
47aaa820
DWT
17566freebsd* | dragonfly*)
17567 # DragonFly does not have aout. When/if they implement a new
17568 # versioning mechanism, adjust this.
17569 if test -x /usr/bin/objformat; then
17570 objformat=`/usr/bin/objformat`
17571 else
17572 case $host_os in
53ba6704 17573 freebsd[23].*) objformat=aout ;;
47aaa820
DWT
17574 *) objformat=elf ;;
17575 esac
17576 fi
17577 version_type=freebsd-$objformat
17578 case $version_type in
17579 freebsd-elf*)
9d54db95
JF
17580 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17581 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17582 need_version=no
17583 need_lib_prefix=no
17584 ;;
17585 freebsd-*)
9d54db95 17586 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
47aaa820
DWT
17587 need_version=yes
17588 ;;
17589 esac
17590 shlibpath_var=LD_LIBRARY_PATH
17591 case $host_os in
53ba6704 17592 freebsd2.*)
47aaa820
DWT
17593 shlibpath_overrides_runpath=yes
17594 ;;
17595 freebsd3.[01]* | freebsdelf3.[01]*)
17596 shlibpath_overrides_runpath=yes
17597 hardcode_into_libs=yes
17598 ;;
17599 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17600 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17601 shlibpath_overrides_runpath=no
17602 hardcode_into_libs=yes
17603 ;;
17604 *) # from 4.6 on, and DragonFly
17605 shlibpath_overrides_runpath=yes
17606 hardcode_into_libs=yes
17607 ;;
17608 esac
17609 ;;
9c60689e 17610
ee134472 17611haiku*)
53ba6704 17612 version_type=linux # correct to gnu/linux during the next big refactor
ee134472
JF
17613 need_lib_prefix=no
17614 need_version=no
17615 dynamic_linker="$host_os runtime_loader"
9d54db95
JF
17616 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17617 soname_spec='$libname$release$shared_ext$major'
ee134472 17618 shlibpath_var=LIBRARY_PATH
9d54db95 17619 shlibpath_overrides_runpath=no
ee134472 17620 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
47aaa820
DWT
17621 hardcode_into_libs=yes
17622 ;;
9c60689e 17623
47aaa820
DWT
17624hpux9* | hpux10* | hpux11*)
17625 # Give a soname corresponding to the major version so that dld.sl refuses to
17626 # link against other versions.
17627 version_type=sunos
17628 need_lib_prefix=no
17629 need_version=no
17630 case $host_cpu in
17631 ia64*)
17632 shrext_cmds='.so'
17633 hardcode_into_libs=yes
17634 dynamic_linker="$host_os dld.so"
17635 shlibpath_var=LD_LIBRARY_PATH
17636 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9d54db95
JF
17637 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17638 soname_spec='$libname$release$shared_ext$major'
17639 if test 32 = "$HPUX_IA64_MODE"; then
47aaa820 17640 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9d54db95 17641 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
47aaa820
DWT
17642 else
17643 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9d54db95 17644 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
47aaa820 17645 fi
47aaa820
DWT
17646 ;;
17647 hppa*64*)
17648 shrext_cmds='.sl'
17649 hardcode_into_libs=yes
17650 dynamic_linker="$host_os dld.sl"
17651 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17652 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9d54db95
JF
17653 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17654 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17655 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17656 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17657 ;;
17658 *)
17659 shrext_cmds='.sl'
17660 dynamic_linker="$host_os dld.sl"
17661 shlibpath_var=SHLIB_PATH
17662 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9d54db95
JF
17663 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17664 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17665 ;;
17666 esac
ee134472 17667 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
47aaa820 17668 postinstall_cmds='chmod 555 $lib'
ee134472
JF
17669 # or fails outright, so override atomically:
17670 install_override_mode=555
47aaa820 17671 ;;
9c60689e 17672
47aaa820 17673interix[3-9]*)
53ba6704 17674 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
17675 need_lib_prefix=no
17676 need_version=no
9d54db95
JF
17677 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17678 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17679 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17680 shlibpath_var=LD_LIBRARY_PATH
17681 shlibpath_overrides_runpath=no
17682 hardcode_into_libs=yes
17683 ;;
9c60689e 17684
47aaa820
DWT
17685irix5* | irix6* | nonstopux*)
17686 case $host_os in
17687 nonstopux*) version_type=nonstopux ;;
17688 *)
9d54db95 17689 if test yes = "$lt_cv_prog_gnu_ld"; then
53ba6704 17690 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
17691 else
17692 version_type=irix
17693 fi ;;
17694 esac
17695 need_lib_prefix=no
17696 need_version=no
9d54db95
JF
17697 soname_spec='$libname$release$shared_ext$major'
17698 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
47aaa820
DWT
17699 case $host_os in
17700 irix5* | nonstopux*)
17701 libsuff= shlibsuff=
17702 ;;
17703 *)
17704 case $LD in # libtool.m4 will add one of these switches to LD
17705 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17706 libsuff= shlibsuff= libmagic=32-bit;;
17707 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17708 libsuff=32 shlibsuff=N32 libmagic=N32;;
17709 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17710 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17711 *) libsuff= shlibsuff= libmagic=never-match;;
17712 esac
17713 ;;
17714 esac
17715 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17716 shlibpath_overrides_runpath=no
9d54db95
JF
17717 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17718 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
47aaa820
DWT
17719 hardcode_into_libs=yes
17720 ;;
9c60689e 17721
47aaa820
DWT
17722# No shared lib support for Linux oldld, aout, or coff.
17723linux*oldld* | linux*aout* | linux*coff*)
17724 dynamic_linker=no
17725 ;;
9c60689e 17726
9d54db95
JF
17727linux*android*)
17728 version_type=none # Android doesn't support versioned libraries.
17729 need_lib_prefix=no
17730 need_version=no
17731 library_names_spec='$libname$release$shared_ext'
17732 soname_spec='$libname$release$shared_ext'
17733 finish_cmds=
17734 shlibpath_var=LD_LIBRARY_PATH
17735 shlibpath_overrides_runpath=yes
17736
17737 # This implies no fast_install, which is unacceptable.
17738 # Some rework will be needed to allow for fast_install
17739 # before this can be enabled.
17740 hardcode_into_libs=yes
17741
17742 dynamic_linker='Android linker'
17743 # Don't embed -rpath directories since the linker doesn't support them.
17744 hardcode_libdir_flag_spec_CXX='-L$libdir'
17745 ;;
17746
53ba6704 17747# This must be glibc/ELF.
9d54db95 17748linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
53ba6704 17749 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
17750 need_lib_prefix=no
17751 need_version=no
9d54db95
JF
17752 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17753 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17754 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17755 shlibpath_var=LD_LIBRARY_PATH
17756 shlibpath_overrides_runpath=no
ee134472 17757
47aaa820 17758 # Some binutils ld are patched to set DT_RUNPATH
ee134472
JF
17759 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17760 $as_echo_n "(cached) " >&6
17761else
17762 lt_cv_shlibpath_overrides_runpath=no
17763 save_LDFLAGS=$LDFLAGS
17764 save_libdir=$libdir
17765 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17766 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47aaa820 17768/* end confdefs.h. */
9c60689e 17769
47aaa820
DWT
17770int
17771main ()
17772{
9c60689e 17773
47aaa820
DWT
17774 ;
17775 return 0;
17776}
17777_ACEOF
17778if ac_fn_cxx_try_link "$LINENO"; then :
17779 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
ee134472 17780 lt_cv_shlibpath_overrides_runpath=yes
9c60689e 17781fi
47aaa820
DWT
17782fi
17783rm -f core conftest.err conftest.$ac_objext \
17784 conftest$ac_exeext conftest.$ac_ext
ee134472
JF
17785 LDFLAGS=$save_LDFLAGS
17786 libdir=$save_libdir
17787
17788fi
17789
17790 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9c60689e 17791
47aaa820
DWT
17792 # This implies no fast_install, which is unacceptable.
17793 # Some rework will be needed to allow for fast_install
17794 # before this can be enabled.
17795 hardcode_into_libs=yes
9c60689e 17796
9d54db95
JF
17797 # Ideally, we could use ldconfig to report *all* directores which are
17798 # searched for libraries, however this is still not possible. Aside from not
17799 # being certain /sbin/ldconfig is available, command
17800 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17801 # even though it is searched at run-time. Try to do the best guess by
17802 # appending ld.so.conf contents (and includes) to the search path.
47aaa820 17803 if test -f /etc/ld.so.conf; then
ee134472 17804 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
17805 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17806 fi
9c60689e 17807
47aaa820
DWT
17808 # We used to test for /lib/ld.so.1 and disable shared libraries on
17809 # powerpc, because MkLinux only supported shared libraries with the
17810 # GNU dynamic linker. Since this was broken with cross compilers,
17811 # most powerpc-linux boxes support dynamic linking these days and
17812 # people can always --disable-shared, the test was removed, and we
17813 # assume the GNU/Linux dynamic linker is in use.
17814 dynamic_linker='GNU/Linux ld.so'
9c60689e 17815 ;;
47aaa820 17816
47aaa820
DWT
17817netbsd*)
17818 version_type=sunos
17819 need_lib_prefix=no
17820 need_version=no
17821 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9d54db95 17822 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
47aaa820
DWT
17823 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17824 dynamic_linker='NetBSD (a.out) ld.so'
17825 else
9d54db95
JF
17826 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17827 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17828 dynamic_linker='NetBSD ld.elf_so'
17829 fi
17830 shlibpath_var=LD_LIBRARY_PATH
17831 shlibpath_overrides_runpath=yes
17832 hardcode_into_libs=yes
9c60689e 17833 ;;
9c60689e 17834
47aaa820 17835newsos6)
53ba6704 17836 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95 17837 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
47aaa820
DWT
17838 shlibpath_var=LD_LIBRARY_PATH
17839 shlibpath_overrides_runpath=yes
17840 ;;
9c60689e 17841
47aaa820
DWT
17842*nto* | *qnx*)
17843 version_type=qnx
17844 need_lib_prefix=no
17845 need_version=no
9d54db95
JF
17846 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17847 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17848 shlibpath_var=LD_LIBRARY_PATH
17849 shlibpath_overrides_runpath=no
17850 hardcode_into_libs=yes
17851 dynamic_linker='ldqnx.so'
17852 ;;
9c60689e 17853
9d54db95 17854openbsd* | bitrig*)
47aaa820 17855 version_type=sunos
9d54db95 17856 sys_lib_dlsearch_path_spec=/usr/lib
47aaa820 17857 need_lib_prefix=no
9d54db95
JF
17858 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17859 need_version=no
47aaa820 17860 else
9d54db95 17861 need_version=yes
47aaa820 17862 fi
9d54db95
JF
17863 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17864 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17865 shlibpath_var=LD_LIBRARY_PATH
17866 shlibpath_overrides_runpath=yes
47aaa820 17867 ;;
9c60689e 17868
47aaa820
DWT
17869os2*)
17870 libname_spec='$name'
9d54db95
JF
17871 version_type=windows
17872 shrext_cmds=.dll
17873 need_version=no
47aaa820 17874 need_lib_prefix=no
9d54db95
JF
17875 # OS/2 can only load a DLL with a base name of 8 characters or less.
17876 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17877 v=$($ECHO $release$versuffix | tr -d .-);
17878 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17879 $ECHO $n$v`$shared_ext'
17880 library_names_spec='${libname}_dll.$libext'
47aaa820 17881 dynamic_linker='OS/2 ld.exe'
9d54db95
JF
17882 shlibpath_var=BEGINLIBPATH
17883 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17884 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17885 postinstall_cmds='base_file=`basename \$file`~
17886 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17887 dldir=$destdir/`dirname \$dlpath`~
17888 test -d \$dldir || mkdir -p \$dldir~
17889 $install_prog $dir/$dlname \$dldir/$dlname~
17890 chmod a+x \$dldir/$dlname~
17891 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17892 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17893 fi'
17894 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17895 dlpath=$dir/\$dldll~
17896 $RM \$dlpath'
47aaa820 17897 ;;
9c60689e 17898
47aaa820
DWT
17899osf3* | osf4* | osf5*)
17900 version_type=osf
17901 need_lib_prefix=no
17902 need_version=no
9d54db95
JF
17903 soname_spec='$libname$release$shared_ext$major'
17904 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
47aaa820
DWT
17905 shlibpath_var=LD_LIBRARY_PATH
17906 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9d54db95 17907 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
47aaa820 17908 ;;
9c60689e 17909
47aaa820
DWT
17910rdos*)
17911 dynamic_linker=no
17912 ;;
9c60689e 17913
47aaa820 17914solaris*)
53ba6704 17915 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
17916 need_lib_prefix=no
17917 need_version=no
9d54db95
JF
17918 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17919 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17920 shlibpath_var=LD_LIBRARY_PATH
17921 shlibpath_overrides_runpath=yes
17922 hardcode_into_libs=yes
17923 # ldd complains unless libraries are executable
17924 postinstall_cmds='chmod +x $lib'
17925 ;;
9c60689e 17926
47aaa820
DWT
17927sunos4*)
17928 version_type=sunos
9d54db95 17929 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
47aaa820
DWT
17930 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17931 shlibpath_var=LD_LIBRARY_PATH
17932 shlibpath_overrides_runpath=yes
9d54db95 17933 if test yes = "$with_gnu_ld"; then
47aaa820
DWT
17934 need_lib_prefix=no
17935 fi
17936 need_version=yes
17937 ;;
9c60689e 17938
47aaa820 17939sysv4 | sysv4.3*)
53ba6704 17940 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95
JF
17941 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17942 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17943 shlibpath_var=LD_LIBRARY_PATH
17944 case $host_vendor in
17945 sni)
17946 shlibpath_overrides_runpath=no
17947 need_lib_prefix=no
17948 runpath_var=LD_RUN_PATH
9c60689e 17949 ;;
47aaa820
DWT
17950 siemens)
17951 need_lib_prefix=no
9c60689e 17952 ;;
47aaa820
DWT
17953 motorola)
17954 need_lib_prefix=no
17955 need_version=no
17956 shlibpath_overrides_runpath=no
17957 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17958 ;;
17959 esac
9c60689e 17960 ;;
9c60689e 17961
47aaa820 17962sysv4*MP*)
9d54db95 17963 if test -d /usr/nec; then
53ba6704 17964 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95
JF
17965 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17966 soname_spec='$libname$shared_ext.$major'
47aaa820
DWT
17967 shlibpath_var=LD_LIBRARY_PATH
17968 fi
17969 ;;
9c60689e 17970
47aaa820 17971sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9d54db95 17972 version_type=sco
47aaa820
DWT
17973 need_lib_prefix=no
17974 need_version=no
9d54db95
JF
17975 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17976 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
17977 shlibpath_var=LD_LIBRARY_PATH
17978 shlibpath_overrides_runpath=yes
17979 hardcode_into_libs=yes
9d54db95 17980 if test yes = "$with_gnu_ld"; then
47aaa820
DWT
17981 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17982 else
17983 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17984 case $host_os in
17985 sco3.2v5*)
17986 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17987 ;;
17988 esac
17989 fi
17990 sys_lib_dlsearch_path_spec='/usr/lib'
17991 ;;
9c60689e 17992
47aaa820
DWT
17993tpf*)
17994 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
53ba6704 17995 version_type=linux # correct to gnu/linux during the next big refactor
47aaa820
DWT
17996 need_lib_prefix=no
17997 need_version=no
9d54db95 17998 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
47aaa820
DWT
17999 shlibpath_var=LD_LIBRARY_PATH
18000 shlibpath_overrides_runpath=no
18001 hardcode_into_libs=yes
18002 ;;
9c60689e 18003
47aaa820 18004uts4*)
53ba6704 18005 version_type=linux # correct to gnu/linux during the next big refactor
9d54db95
JF
18006 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18007 soname_spec='$libname$release$shared_ext$major'
47aaa820
DWT
18008 shlibpath_var=LD_LIBRARY_PATH
18009 ;;
9c60689e 18010
47aaa820
DWT
18011*)
18012 dynamic_linker=no
e9c9a47c
DWT
18013 ;;
18014esac
18015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18016$as_echo "$dynamic_linker" >&6; }
9d54db95 18017test no = "$dynamic_linker" && can_build_shared=no
e9c9a47c
DWT
18018
18019variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9d54db95 18020if test yes = "$GCC"; then
e9c9a47c 18021 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
47aaa820 18022fi
9c60689e 18023
9d54db95
JF
18024if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18025 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
47aaa820 18026fi
9d54db95
JF
18027
18028if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18029 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
47aaa820 18030fi
9c60689e 18031
9d54db95
JF
18032# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18033configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18034
18035# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18036func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18037
18038# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18039configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18040
18041
18042
9c60689e 18043
9c60689e 18044
9c60689e 18045
47aaa820 18046
47aaa820 18047
47aaa820 18048
9c60689e 18049
9c60689e 18050
47aaa820 18051
47aaa820 18052
47aaa820 18053
47aaa820 18054
47aaa820 18055
47aaa820 18056
47aaa820 18057
47aaa820 18058
9c60689e 18059
9c60689e 18060
9c60689e 18061
9c60689e 18062
9c60689e 18063
e9c9a47c
DWT
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
ee134472
JF
18075
18076
e9c9a47c
DWT
18077
18078
18079
18080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18081$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18082hardcode_action_CXX=
18083if test -n "$hardcode_libdir_flag_spec_CXX" ||
18084 test -n "$runpath_var_CXX" ||
9d54db95 18085 test yes = "$hardcode_automatic_CXX"; then
e9c9a47c
DWT
18086
18087 # We can hardcode non-existent directories.
9d54db95 18088 if test no != "$hardcode_direct_CXX" &&
e9c9a47c
DWT
18089 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18090 # have to relink, otherwise we might link with an installed library
18091 # when we should be linking with a yet-to-be-installed one
9d54db95
JF
18092 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
18093 test no != "$hardcode_minus_L_CXX"; then
e9c9a47c
DWT
18094 # Linking always hardcodes the temporary library directory.
18095 hardcode_action_CXX=relink
18096 else
18097 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18098 hardcode_action_CXX=immediate
18099 fi
18100else
18101 # We cannot hardcode anything, or else we can only hardcode existing
18102 # directories.
18103 hardcode_action_CXX=unsupported
18104fi
18105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18106$as_echo "$hardcode_action_CXX" >&6; }
18107
9d54db95
JF
18108if test relink = "$hardcode_action_CXX" ||
18109 test yes = "$inherit_rpath_CXX"; then
e9c9a47c
DWT
18110 # Fast installation is not supported
18111 enable_fast_install=no
9d54db95
JF
18112elif test yes = "$shlibpath_overrides_runpath" ||
18113 test no = "$enable_shared"; then
e9c9a47c
DWT
18114 # Fast installation is not necessary
18115 enable_fast_install=needless
47aaa820 18116fi
9c60689e 18117
47aaa820 18118
47aaa820 18119
e9c9a47c
DWT
18120
18121
18122
18123
a243b558
JF
18124 fi # test -n "$compiler"
18125
18126 CC=$lt_save_CC
18127 CFLAGS=$lt_save_CFLAGS
18128 LDCXX=$LD
18129 LD=$lt_save_LD
18130 GCC=$lt_save_GCC
18131 with_gnu_ld=$lt_save_with_gnu_ld
18132 lt_cv_path_LDCXX=$lt_cv_path_LD
18133 lt_cv_path_LD=$lt_save_path_LD
18134 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18135 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
9d54db95 18136fi # test yes != "$_lt_caught_CXX_error"
a243b558
JF
18137
18138ac_ext=c
18139ac_cpp='$CPP $CPPFLAGS'
18140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18142ac_compiler_gnu=$ac_cv_c_compiler_gnu
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158 ac_config_commands="$ac_config_commands libtool"
18159
18160
18161
18162
18163# Only expand once:
18164
18165
18166
18167ac_ext=cpp
18168ac_cpp='$CXXCPP $CPPFLAGS'
18169ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18170ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18171ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18172
18173
1771224f
JF
18174 ax_cxx_compile_cxx11_required=true
18175 ac_ext=cpp
18176ac_cpp='$CXXCPP $CPPFLAGS'
18177ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18178ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18179ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18180 ac_success=no
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
18182$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
18183if ${ax_cv_cxx_compile_cxx11+:} false; then :
18184 $as_echo_n "(cached) " >&6
18185else
18186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18187/* end confdefs.h. */
18188
18189 template <typename T>
18190 struct check
18191 {
18192 static_assert(sizeof(int) <= sizeof(T), "not big enough");
18193 };
18194
18195 struct Base {
18196 virtual void f() {}
18197 };
18198 struct Child : public Base {
18199 virtual void f() override {}
18200 };
18201
18202 typedef check<check<bool>> right_angle_brackets;
18203
18204 int a;
18205 decltype(a) b;
18206
18207 typedef check<int> check_type;
18208 check_type c;
18209 check_type&& cr = static_cast<check_type&&>(c);
18210
18211 auto d = a;
18212 auto l = [](){};
18213
18214_ACEOF
18215if ac_fn_cxx_try_compile "$LINENO"; then :
18216 ax_cv_cxx_compile_cxx11=yes
18217else
18218 ax_cv_cxx_compile_cxx11=no
18219fi
18220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18221fi
18222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
18223$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
18224 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
18225 ac_success=yes
18226 fi
18227
18228 if test x$ac_success = xno; then
18229 for switch in -std=gnu++11 -std=gnu++0x; do
18230 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
18232$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
18233if eval \${$cachevar+:} false; then :
18234 $as_echo_n "(cached) " >&6
18235else
18236 ac_save_CXXFLAGS="$CXXFLAGS"
18237 CXXFLAGS="$CXXFLAGS $switch"
18238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18239/* end confdefs.h. */
18240
18241 template <typename T>
18242 struct check
18243 {
18244 static_assert(sizeof(int) <= sizeof(T), "not big enough");
18245 };
18246
18247 struct Base {
18248 virtual void f() {}
18249 };
18250 struct Child : public Base {
18251 virtual void f() override {}
18252 };
18253
18254 typedef check<check<bool>> right_angle_brackets;
18255
18256 int a;
18257 decltype(a) b;
18258
18259 typedef check<int> check_type;
18260 check_type c;
18261 check_type&& cr = static_cast<check_type&&>(c);
18262
18263 auto d = a;
18264 auto l = [](){};
18265
18266_ACEOF
18267if ac_fn_cxx_try_compile "$LINENO"; then :
18268 eval $cachevar=yes
18269else
18270 eval $cachevar=no
18271fi
18272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18273 CXXFLAGS="$ac_save_CXXFLAGS"
18274fi
18275eval ac_res=\$$cachevar
18276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18277$as_echo "$ac_res" >&6; }
18278 if eval test x\$$cachevar = xyes; then
18279 CXXFLAGS="$CXXFLAGS $switch"
18280 ac_success=yes
18281 break
18282 fi
18283 done
18284 fi
18285
18286
18287 ac_ext=cpp
18288ac_cpp='$CXXCPP $CPPFLAGS'
18289ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18290ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18291ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18292
18293 if test x$ax_cxx_compile_cxx11_required = xtrue; then
18294 if test x$ac_success = xno; then
18295 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
18296 fi
18297 else
18298 if test x$ac_success = xno; then
18299 HAVE_CXX11=0
18300 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
18301$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
18302 else
18303 HAVE_CXX11=1
18304
18305$as_echo "#define HAVE_CXX11 1" >>confdefs.h
18306
18307 fi
18308
18309
18310 fi
18311
18312OBJCXXFLAGS="${OBJCXXFLAGS} ${CXXFLAGS##*' '}"
18313
a243b558
JF
18314
18315
18316
18317
18318
18319
83c6fec8 18320
a243b558
JF
18321if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18322 if test -n "$ac_tool_prefix"; then
18323 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18324set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18326$as_echo_n "checking for $ac_word... " >&6; }
18327if ${ac_cv_path_PKG_CONFIG+:} false; then :
18328 $as_echo_n "(cached) " >&6
18329else
18330 case $PKG_CONFIG in
18331 [\\/]* | ?:[\\/]*)
18332 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18333 ;;
18334 *)
18335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18336for as_dir in $PATH
18337do
18338 IFS=$as_save_IFS
18339 test -z "$as_dir" && as_dir=.
18340 for ac_exec_ext in '' $ac_executable_extensions; do
18341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18342 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18344 break 2
18345 fi
18346done
18347 done
18348IFS=$as_save_IFS
18349
18350 ;;
18351esac
18352fi
18353PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18354if test -n "$PKG_CONFIG"; then
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18356$as_echo "$PKG_CONFIG" >&6; }
18357else
18358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18359$as_echo "no" >&6; }
18360fi
18361
18362
18363fi
18364if test -z "$ac_cv_path_PKG_CONFIG"; then
18365 ac_pt_PKG_CONFIG=$PKG_CONFIG
18366 # Extract the first word of "pkg-config", so it can be a program name with args.
18367set dummy pkg-config; ac_word=$2
18368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18369$as_echo_n "checking for $ac_word... " >&6; }
18370if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18371 $as_echo_n "(cached) " >&6
18372else
18373 case $ac_pt_PKG_CONFIG in
18374 [\\/]* | ?:[\\/]*)
18375 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18376 ;;
18377 *)
18378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18379for as_dir in $PATH
18380do
18381 IFS=$as_save_IFS
18382 test -z "$as_dir" && as_dir=.
18383 for ac_exec_ext in '' $ac_executable_extensions; do
18384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18385 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18387 break 2
18388 fi
18389done
18390 done
18391IFS=$as_save_IFS
18392
18393 ;;
18394esac
18395fi
18396ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18397if test -n "$ac_pt_PKG_CONFIG"; then
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18399$as_echo "$ac_pt_PKG_CONFIG" >&6; }
18400else
18401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18402$as_echo "no" >&6; }
18403fi
18404
18405 if test "x$ac_pt_PKG_CONFIG" = x; then
18406 PKG_CONFIG=""
18407 else
18408 case $cross_compiling:$ac_tool_warned in
18409yes:)
18410{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18411$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18412ac_tool_warned=yes ;;
18413esac
18414 PKG_CONFIG=$ac_pt_PKG_CONFIG
18415 fi
18416else
18417 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18418fi
18419
18420fi
18421if test -n "$PKG_CONFIG"; then
18422 _pkg_min_version=0.22
18423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18424$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18425 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18427$as_echo "yes" >&6; }
18428 else
18429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18430$as_echo "no" >&6; }
18431 PKG_CONFIG=""
18432 fi
18433fi
18434
a243b558
JF
18435# Extract the first word of "git", so it can be a program name with args.
18436set dummy git; ac_word=$2
18437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18438$as_echo_n "checking for $ac_word... " >&6; }
18439if ${ac_cv_path_GIT+:} false; then :
18440 $as_echo_n "(cached) " >&6
18441else
18442 case $GIT in
18443 [\\/]* | ?:[\\/]*)
18444 ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
18445 ;;
18446 *)
18447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18448for as_dir in $PATH
18449do
18450 IFS=$as_save_IFS
18451 test -z "$as_dir" && as_dir=.
18452 for ac_exec_ext in '' $ac_executable_extensions; do
18453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18454 ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
18455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18456 break 2
18457 fi
18458done
18459 done
18460IFS=$as_save_IFS
e9c9a47c 18461
a243b558
JF
18462 ;;
18463esac
18464fi
18465GIT=$ac_cv_path_GIT
18466if test -n "$GIT"; then
18467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
18468$as_echo "$GIT" >&6; }
18469else
18470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18471$as_echo "no" >&6; }
18472fi
e9c9a47c
DWT
18473
18474
a243b558
JF
18475# Extract the first word of "time", so it can be a program name with args.
18476set dummy time; ac_word=$2
632b71ea
DWT
18477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18478$as_echo_n "checking for $ac_word... " >&6; }
a243b558 18479if ${ac_cv_path_TIME+:} false; then :
632b71ea
DWT
18480 $as_echo_n "(cached) " >&6
18481else
a243b558
JF
18482 case $TIME in
18483 [\\/]* | ?:[\\/]*)
18484 ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18485 ;;
18486 *)
18487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
632b71ea
DWT
18488for as_dir in $PATH
18489do
18490 IFS=$as_save_IFS
18491 test -z "$as_dir" && as_dir=.
18492 for ac_exec_ext in '' $ac_executable_extensions; do
53ba6704 18493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a243b558 18494 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
632b71ea
DWT
18495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18496 break 2
18497 fi
18498done
18499 done
18500IFS=$as_save_IFS
18501
a243b558
JF
18502 ;;
18503esac
632b71ea 18504fi
a243b558
JF
18505TIME=$ac_cv_path_TIME
18506if test -n "$TIME"; then
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18508$as_echo "$TIME" >&6; }
632b71ea
DWT
18509else
18510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18511$as_echo "no" >&6; }
18512fi
18513
18514
a243b558
JF
18515
18516
18517
18518
18519
6ce9ac92
JF
18520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison >= 3.0" >&5
18521$as_echo_n "checking for bison >= 3.0... " >&6; }
a243b558
JF
18522 if test -z "$BISON"; then
18523 ac_path_BISON_found=false
18524 # Loop through the user's path and test for each of PROGNAME-LIST
18525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18526for as_dir in $PATH
18527do
18528 IFS=$as_save_IFS
18529 test -z "$as_dir" && as_dir=.
18530 for ac_prog in bison; do
18531 for ac_exec_ext in '' $ac_executable_extensions; do
18532 ac_path_BISON="$as_dir/$ac_prog$ac_exec_ext"
18533 as_fn_executable_p "$ac_path_BISON" || continue
18534version=`$ac_path_BISON -V | $SED -e '1 s/^bison (GNU Bison) \(.*\)$/\1/p;d'`
18535 if ${version:+false} :; then :
18536
18537else
18538 as_awk_strverscmp='
18539 # Use only awk features that work with 7th edition Unix awk (1978).
18540 # My, what an old awk you have, Mr. Solaris!
18541 END {
18542 while (length(v1) && length(v2)) {
18543 # Set d1 to be the next thing to compare from v1, and likewise for d2.
18544 # Normally this is a single character, but if v1 and v2 contain digits,
18545 # compare them as integers and fractions as strverscmp does.
18546 if (v1 ~ /^0-9/ && v2 ~ /^0-9/) {
18547 # Split v1 and v2 into their leading digit string components d1 and d2,
18548 # and advance v1 and v2 past the leading digit strings.
18549 for (len1 = 1; substr(v1, len1 + 1) ~ /^0-9/; len1++) continue
18550 for (len2 = 1; substr(v2, len2 + 1) ~ /^0-9/; len2++) continue
18551 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
18552 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
18553 if (d1 ~ /^0/) {
18554 if (d2 ~ /^0/) {
18555 # Compare two fractions.
18556 while (d1 ~ /^0/ && d2 ~ /^0/) {
18557 d1 = substr(d1, 2); len1--
18558 d2 = substr(d2, 2); len2--
18559 }
18560 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
18561 # The two components differ in length, and the common prefix
18562 # contains only leading zeros. Consider the longer to be less.
18563 d1 = -len1
18564 d2 = -len2
18565 } else {
18566 # Otherwise, compare as strings.
18567 d1 = "x" d1
18568 d2 = "x" d2
18569 }
18570 } else {
18571 # A fraction is less than an integer.
18572 exit 1
18573 }
18574 } else {
18575 if (d2 ~ /^0/) {
18576 # An integer is greater than a fraction.
18577 exit 2
18578 } else {
18579 # Compare two integers.
18580 d1 += 0
18581 d2 += 0
18582 }
18583 }
18584 } else {
18585 # The normal case, without worrying about digits.
18586 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
18587 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
18588 }
18589 if (d1 < d2) exit 1
18590 if (d1 > d2) exit 2
18591 }
18592 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
18593 # which mishandles some comparisons of empty strings to integers.
18594 if (length(v2)) exit 1
18595 if (length(v1)) exit 2
18596 }
18597'
18598as_arg_v1=$version
6ce9ac92 18599as_arg_v2=3.0
a243b558
JF
18600awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18601case $? in #(
18602 1) :
18603 ;; #(
18604 0) :
18605 ac_cv_path_BISON=$ac_path_BISON ;; #(
18606 2) :
18607 ac_cv_path_BISON=$ac_path_BISON ;; #(
18608 *) :
18609 ;;
18610esac
18611fi
18612
18613 $ac_path_BISON_found && break 3
18614 done
18615 done
e9c9a47c 18616 done
a243b558
JF
18617IFS=$as_save_IFS
18618 if test -z "$ac_cv_path_BISON"; then
18619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18620$as_echo "no" >&6; }
18621 fi
18622else
18623 ac_cv_path_BISON=$BISON
632b71ea 18624fi
a243b558
JF
18625
18626
18627 if true; then :
18628
18629 BISON=$ac_cv_path_BISON
18630
18631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
18632$as_echo "$BISON" >&6; }
18633
47aaa820 18634else
a243b558
JF
18635 if true; then :
18636
6ce9ac92 18637 as_fn_error $? "You need bison 3.0 or greater" "$LINENO" 5
a243b558 18638
47aaa820 18639else
a243b558
JF
18640
18641 BISON=:
18642
18643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18644$as_echo "no" >&6; }
18645
18646fi
18647fi
18648
18649
18650
18651
18652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex >= 2.5.33" >&5
18653$as_echo_n "checking for flex >= 2.5.33... " >&6; }
18654 if test -z "$FLEX"; then
18655 ac_path_FLEX_found=false
18656 # Loop through the user's path and test for each of PROGNAME-LIST
18657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47aaa820
DWT
18658for as_dir in $PATH
18659do
18660 IFS=$as_save_IFS
18661 test -z "$as_dir" && as_dir=.
a243b558 18662 for ac_prog in flex; do
47aaa820 18663 for ac_exec_ext in '' $ac_executable_extensions; do
a243b558
JF
18664 ac_path_FLEX="$as_dir/$ac_prog$ac_exec_ext"
18665 as_fn_executable_p "$ac_path_FLEX" || continue
18666version=`$ac_path_FLEX --version | $SED -e '1 s/^[^0-9.]* \([0-9.]*\).*$/\1/p;d'`
18667 if ${version:+false} :; then :
9c60689e 18668
47aaa820 18669else
a243b558
JF
18670 as_arg_v1=$version
18671as_arg_v2=2.5.33
18672awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18673case $? in #(
18674 1) :
18675 ;; #(
18676 0) :
18677 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
18678 2) :
18679 ac_cv_path_FLEX=$ac_path_FLEX ;; #(
18680 *) :
18681 ;;
18682esac
18683fi
18684
18685 $ac_path_FLEX_found && break 3
18686 done
18687 done
18688 done
18689IFS=$as_save_IFS
18690 if test -z "$ac_cv_path_FLEX"; then
18691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
47aaa820 18692$as_echo "no" >&6; }
a243b558
JF
18693 fi
18694else
18695 ac_cv_path_FLEX=$FLEX
9c60689e
DWT
18696fi
18697
18698
a243b558 18699 if true; then :
e9c9a47c 18700
a243b558 18701 FLEX=$ac_cv_path_FLEX
e9c9a47c 18702
a243b558
JF
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
18704$as_echo "$FLEX" >&6; }
9c60689e 18705
632b71ea 18706else
a243b558 18707 if true; then :
e9c9a47c 18708
a243b558 18709 as_fn_error $? "You need flex 2.5.33 or greater" "$LINENO" 5
e9c9a47c 18710
e9c9a47c 18711else
a243b558
JF
18712
18713 FLEX=:
18714
18715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18716$as_echo "no" >&6; }
9c60689e 18717
632b71ea 18718fi
a243b558
JF
18719fi
18720
18721
18722
18723
18724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gperf >= 3.0.3" >&5
18725$as_echo_n "checking for gperf >= 3.0.3... " >&6; }
18726 if test -z "$GPERF"; then
18727 ac_path_GPERF_found=false
18728 # Loop through the user's path and test for each of PROGNAME-LIST
18729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18730for as_dir in $PATH
18731do
18732 IFS=$as_save_IFS
18733 test -z "$as_dir" && as_dir=.
18734 for ac_prog in gperf; do
18735 for ac_exec_ext in '' $ac_executable_extensions; do
18736 ac_path_GPERF="$as_dir/$ac_prog$ac_exec_ext"
18737 as_fn_executable_p "$ac_path_GPERF" || continue
18738version=`$ac_path_GPERF --version | $SED -e '1 s/^.* \([0-9.]*\)$/\1/p;d'`
18739 if ${version:+false} :; then :
18740
e9c9a47c 18741else
a243b558
JF
18742 as_arg_v1=$version
18743as_arg_v2=3.0.3
18744awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18745case $? in #(
18746 1) :
18747 ;; #(
18748 0) :
18749 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
18750 2) :
18751 ac_cv_path_GPERF=$ac_path_GPERF ;; #(
18752 *) :
18753 ;;
18754esac
632b71ea 18755fi
a243b558
JF
18756
18757 $ac_path_GPERF_found && break 3
18758 done
18759 done
18760 done
18761IFS=$as_save_IFS
18762 if test -z "$ac_cv_path_GPERF"; then
18763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18764$as_echo "no" >&6; }
18765 fi
47aaa820 18766else
a243b558
JF
18767 ac_cv_path_GPERF=$GPERF
18768fi
9c60689e
DWT
18769
18770
a243b558 18771 if true; then :
9c60689e 18772
a243b558 18773 GPERF=$ac_cv_path_GPERF
9c60689e 18774
a243b558
JF
18775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
18776$as_echo "$GPERF" >&6; }
9c60689e 18777
47aaa820 18778else
a243b558 18779 if true; then :
9c60689e 18780
a243b558
JF
18781 as_fn_error $? "You need gperf 3.0.3 or greater" "$LINENO" 5
18782
18783else
18784
18785 GPERF=:
18786
18787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18788$as_echo "no" >&6; }
9c60689e 18789
47aaa820 18790fi
47aaa820 18791fi
a243b558
JF
18792
18793
18794
18795
18796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tar gtar gnutar >= 1.19" >&5
18797$as_echo_n "checking for tar gtar gnutar >= 1.19... " >&6; }
18798 if test -z "$GNUTAR"; then
18799 ac_path_GNUTAR_found=false
18800 # Loop through the user's path and test for each of PROGNAME-LIST
18801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18802for as_dir in $PATH
18803do
18804 IFS=$as_save_IFS
18805 test -z "$as_dir" && as_dir=.
18806 for ac_prog in tar gtar gnutar; do
18807 for ac_exec_ext in '' $ac_executable_extensions; do
18808 ac_path_GNUTAR="$as_dir/$ac_prog$ac_exec_ext"
18809 as_fn_executable_p "$ac_path_GNUTAR" || continue
18810version=`$ac_path_GNUTAR --version | $SED -e '1 s/^tar (GNU tar) \(.*\)$/\1/p;d'`
18811 if ${version:+false} :; then :
18812
18813else
18814 as_arg_v1=$version
18815as_arg_v2=1.19
18816awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18817case $? in #(
18818 1) :
18819 ;; #(
18820 0) :
18821 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
18822 2) :
18823 ac_cv_path_GNUTAR=$ac_path_GNUTAR ;; #(
18824 *) :
18825 ;;
18826esac
790e5246 18827fi
a243b558
JF
18828
18829 $ac_path_GNUTAR_found && break 3
18830 done
18831 done
18832 done
18833IFS=$as_save_IFS
18834 if test -z "$ac_cv_path_GNUTAR"; then
18835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18836$as_echo "no" >&6; }
632b71ea 18837 fi
632b71ea 18838else
a243b558 18839 ac_cv_path_GNUTAR=$GNUTAR
632b71ea 18840fi
66170b30 18841
66170b30 18842
a243b558 18843 if true; then :
66170b30 18844
a243b558 18845 GNUTAR=$ac_cv_path_GNUTAR
66170b30 18846
a243b558
JF
18847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
18848$as_echo "$GNUTAR" >&6; }
66170b30 18849
a243b558
JF
18850else
18851 if true; then :
66170b30 18852
a243b558 18853 as_fn_error $? "You need tar gtar gnutar 1.19 or greater" "$LINENO" 5
66170b30 18854
66170b30 18855else
66170b30 18856
a243b558 18857 GNUTAR=:
66170b30 18858
a243b558
JF
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18860$as_echo "no" >&6; }
66170b30 18861
a243b558
JF
18862fi
18863fi
66170b30
JF
18864
18865
18866
18867
18868
18869
18870
77578fdd
JF
18871if test "x$LFLAGS" = x; then :
18872 LFLAGS="--full --ecs"
18873fi
18874
18875
66170b30
JF
18876
18877
18878
e9c9a47c
DWT
18879ac_ext=c
18880ac_cpp='$CPP $CPPFLAGS'
18881ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18882ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18883ac_compiler_gnu=$ac_cv_c_compiler_gnu
632b71ea 18884
66170b30
JF
18885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
18886$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
18887if ${ac_cv_cflags_warn_all+:} false; then :
18888 $as_echo_n "(cached) " >&6
18889else
18890 ac_cv_cflags_warn_all="no, unknown"
18891ac_save_CFLAGS="$CFLAGS"
18892for 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" #
18893do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
18894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18895/* end confdefs.h. */
18896
18897int
18898main ()
18899{
18900
18901 ;
18902 return 0;
18903}
18904_ACEOF
18905if ac_fn_c_try_compile "$LINENO"; then :
18906 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
18907fi
18908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18909done
18910CFLAGS="$ac_save_CFLAGS"
18911
18912fi
18913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
18914$as_echo "$ac_cv_cflags_warn_all" >&6; }
18915
83c6fec8 18916
66170b30
JF
18917case ".$ac_cv_cflags_warn_all" in
18918 .ok|.ok,*) ;;
18919 .|.no|.no,*) ;;
18920 *) if ${CFLAGS+:} false; then :
18921 case " $CFLAGS " in
18922 *" $ac_cv_cflags_warn_all "*)
18923 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
18924 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
18925 ac_status=$?
18926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18927 test $ac_status = 0; }
18928 ;;
18929 *)
18930 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
18931 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
18932 ac_status=$?
18933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18934 test $ac_status = 0; }
18935 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
18936 ;;
18937 esac
18938else
18939 CFLAGS="$ac_cv_cflags_warn_all"
18940fi
18941 ;;
18942esac
18943
b816329d
JF
18944ac_ext=cpp
18945ac_cpp='$CXXCPP $CPPFLAGS'
18946ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18947ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18948ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18949
9c60689e 18950
66170b30
JF
18951ac_ext=cpp
18952ac_cpp='$CXXCPP $CPPFLAGS'
18953ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18954ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18955ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1504c9b8 18956
66170b30
JF
18957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
18958$as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
18959if ${ac_cv_cxxflags_warn_all+:} false; then :
18960 $as_echo_n "(cached) " >&6
18961else
18962 ac_cv_cxxflags_warn_all="no, unknown"
18963ac_save_CXXFLAGS="$CXXFLAGS"
18964for 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" #
18965do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
18966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18967/* end confdefs.h. */
1504c9b8 18968
66170b30
JF
18969int
18970main ()
18971{
1504c9b8 18972
66170b30
JF
18973 ;
18974 return 0;
18975}
18976_ACEOF
18977if ac_fn_cxx_try_compile "$LINENO"; then :
18978 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
18979fi
18980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18981done
18982CXXFLAGS="$ac_save_CXXFLAGS"
1504c9b8 18983
66170b30
JF
18984fi
18985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
18986$as_echo "$ac_cv_cxxflags_warn_all" >&6; }
18987
83c6fec8 18988
66170b30
JF
18989case ".$ac_cv_cxxflags_warn_all" in
18990 .ok|.ok,*) ;;
18991 .|.no|.no,*) ;;
18992 *) if ${CXXFLAGS+:} false; then :
18993 case " $CXXFLAGS " in
18994 *" $ac_cv_cxxflags_warn_all "*)
18995 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
18996 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
18997 ac_status=$?
18998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18999 test $ac_status = 0; }
19000 ;;
19001 *)
19002 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
19003 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
19004 ac_status=$?
19005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19006 test $ac_status = 0; }
19007 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
19008 ;;
19009 esac
19010else
19011 CXXFLAGS="$ac_cv_cxxflags_warn_all"
19012fi
19013 ;;
19014esac
19015
19016ac_ext=cpp
19017ac_cpp='$CXXCPP $CPPFLAGS'
19018ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19019ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19020ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19021
19022
babf7fe8
JF
19023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
19024$as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
19025if ${ac_cv_cxxflags_warn_all+:} false; then :
19026 $as_echo_n "(cached) " >&6
19027else
19028 ac_cv_cxxflags_warn_all="no, unknown"
19029ac_save_CXXFLAGS="$CXXFLAGS"
19030for 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" #
19031do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
19032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19033/* end confdefs.h. */
19034
19035int
19036main ()
19037{
19038
19039 ;
19040 return 0;
19041}
19042_ACEOF
19043if ac_fn_cxx_try_compile "$LINENO"; then :
19044 ac_cv_cxxflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
19045fi
19046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19047done
19048CXXFLAGS="$ac_save_CXXFLAGS"
19049
19050fi
19051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
19052$as_echo "$ac_cv_cxxflags_warn_all" >&6; }
19053
83c6fec8 19054
babf7fe8
JF
19055case ".$ac_cv_cxxflags_warn_all" in
19056 .ok|.ok,*) ;;
19057 .|.no|.no,*) ;;
19058 *) if ${CXXFLAGS+:} false; then :
19059 case " $CXXFLAGS " in
19060 *" $ac_cv_cxxflags_warn_all "*)
19061 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
19062 (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
19063 ac_status=$?
19064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19065 test $ac_status = 0; }
19066 ;;
19067 *)
19068 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
19069 (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
19070 ac_status=$?
19071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19072 test $ac_status = 0; }
19073 CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all"
19074 ;;
19075 esac
19076else
19077 CXXFLAGS="$ac_cv_cxxflags_warn_all"
19078fi
19079 ;;
19080esac
19081
66170b30
JF
19082
19083
66170b30 19084
66170b30 19085
c10a2228
JF
19086 ac_ext=c
19087ac_cpp='$CPP $CPPFLAGS'
19088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19090ac_compiler_gnu=$ac_cv_c_compiler_gnu
19091
babf7fe8
JF
19092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Werror" >&5
19093$as_echo_n "checking for cc -Werror... " >&6; }
c10a2228
JF
19094
19095 cy_save=$CFLAGS
19096
babf7fe8 19097 for element in -Werror; do
c10a2228
JF
19098 haveit=
19099 for x in $CFLAGS; do
19100
19101 acl_save_prefix="$prefix"
19102 prefix="$acl_final_prefix"
19103 acl_save_exec_prefix="$exec_prefix"
19104 exec_prefix="$acl_final_exec_prefix"
19105 eval x=\"$x\"
19106 exec_prefix="$acl_save_exec_prefix"
19107 prefix="$acl_save_prefix"
19108
19109 if test "X$x" = "X$element"; then
19110 haveit=yes
19111 break
19112 fi
19113 done
19114 if test -z "$haveit"; then
19115 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19116 fi
19117 done
19118
19119
19120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19121/* end confdefs.h. */
19122
19123_ACEOF
19124if ac_fn_c_try_compile "$LINENO"; then :
19125 cy_good=1
19126else
19127 cy_good=0
19128fi
19129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19130
19131 CFLAGS=$cy_save
19132 if test "x$cy_good" = x1; then :
19133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19134$as_echo "yes" >&6; }
19135
babf7fe8 19136 for element in -Werror; do
c10a2228
JF
19137 haveit=
19138 for x in $CFLAGS; do
19139
19140 acl_save_prefix="$prefix"
19141 prefix="$acl_final_prefix"
19142 acl_save_exec_prefix="$exec_prefix"
19143 exec_prefix="$acl_final_exec_prefix"
19144 eval x=\"$x\"
19145 exec_prefix="$acl_save_exec_prefix"
19146 prefix="$acl_save_prefix"
19147
19148 if test "X$x" = "X$element"; then
19149 haveit=yes
19150 break
19151 fi
19152 done
19153 if test -z "$haveit"; then
19154 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19155 fi
19156 done
19157
19158
19159else
19160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19161$as_echo "no" >&6; }
19162fi
19163
19164 ac_ext=cpp
19165ac_cpp='$CXXCPP $CPPFLAGS'
19166ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19167ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19168ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19169
19170
19171
19172 ac_ext=cpp
19173ac_cpp='$CXXCPP $CPPFLAGS'
19174ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19175ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19176ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19177
babf7fe8
JF
19178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Werror" >&5
19179$as_echo_n "checking for c++ -Werror... " >&6; }
c10a2228
JF
19180
19181 cy_save=$CXXFLAGS
19182
babf7fe8 19183 for element in -Werror; do
c10a2228
JF
19184 haveit=
19185 for x in $CXXFLAGS; do
19186
19187 acl_save_prefix="$prefix"
19188 prefix="$acl_final_prefix"
19189 acl_save_exec_prefix="$exec_prefix"
19190 exec_prefix="$acl_final_exec_prefix"
19191 eval x=\"$x\"
19192 exec_prefix="$acl_save_exec_prefix"
19193 prefix="$acl_save_prefix"
19194
19195 if test "X$x" = "X$element"; then
19196 haveit=yes
19197 break
19198 fi
19199 done
19200 if test -z "$haveit"; then
19201 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19202 fi
19203 done
19204
19205
19206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19207/* end confdefs.h. */
19208
19209_ACEOF
19210if ac_fn_cxx_try_compile "$LINENO"; then :
19211 cy_good=1
19212else
19213 cy_good=0
19214fi
19215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19216
19217 CXXFLAGS=$cy_save
19218 if test "x$cy_good" = x1; then :
19219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19220$as_echo "yes" >&6; }
19221
babf7fe8 19222 for element in -Werror; do
c10a2228
JF
19223 haveit=
19224 for x in $CXXFLAGS; do
19225
19226 acl_save_prefix="$prefix"
19227 prefix="$acl_final_prefix"
19228 acl_save_exec_prefix="$exec_prefix"
19229 exec_prefix="$acl_final_exec_prefix"
19230 eval x=\"$x\"
19231 exec_prefix="$acl_save_exec_prefix"
19232 prefix="$acl_save_prefix"
19233
19234 if test "X$x" = "X$element"; then
19235 haveit=yes
19236 break
19237 fi
19238 done
19239 if test -z "$haveit"; then
19240 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19241 fi
19242 done
19243
19244
19245else
19246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19247$as_echo "no" >&6; }
19248fi
19249
19250 ac_ext=cpp
19251ac_cpp='$CXXCPP $CPPFLAGS'
19252ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19253ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19254ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19255
19256
19257
19258 ac_ext=mm
19259ac_cpp='$OBJCXXCPP $CPPFLAGS'
19260ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19261ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19262ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
19263
babf7fe8
JF
19264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Werror" >&5
19265$as_echo_n "checking for c++ -ObjC -Werror... " >&6; }
c10a2228
JF
19266
19267 cy_save=$OBJCXXFLAGS
19268
babf7fe8 19269 for element in -Werror; do
c10a2228
JF
19270 haveit=
19271 for x in $OBJCXXFLAGS; do
19272
19273 acl_save_prefix="$prefix"
19274 prefix="$acl_final_prefix"
19275 acl_save_exec_prefix="$exec_prefix"
19276 exec_prefix="$acl_final_exec_prefix"
19277 eval x=\"$x\"
19278 exec_prefix="$acl_save_exec_prefix"
19279 prefix="$acl_save_prefix"
19280
19281 if test "X$x" = "X$element"; then
19282 haveit=yes
19283 break
19284 fi
19285 done
19286 if test -z "$haveit"; then
19287 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19288 fi
19289 done
19290
19291
19292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19293/* end confdefs.h. */
19294
19295_ACEOF
19296if ac_fn_objcxx_try_compile "$LINENO"; then :
19297 cy_good=1
19298else
19299 cy_good=0
19300fi
19301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19302
19303 OBJCXXFLAGS=$cy_save
19304 if test "x$cy_good" = x1; then :
19305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19306$as_echo "yes" >&6; }
19307
babf7fe8 19308 for element in -Werror; do
c10a2228
JF
19309 haveit=
19310 for x in $OBJCXXFLAGS; do
19311
19312 acl_save_prefix="$prefix"
19313 prefix="$acl_final_prefix"
19314 acl_save_exec_prefix="$exec_prefix"
19315 exec_prefix="$acl_final_exec_prefix"
19316 eval x=\"$x\"
19317 exec_prefix="$acl_save_exec_prefix"
19318 prefix="$acl_save_prefix"
19319
19320 if test "X$x" = "X$element"; then
19321 haveit=yes
19322 break
19323 fi
19324 done
19325 if test -z "$haveit"; then
19326 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19327 fi
19328 done
19329
19330
19331else
19332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19333$as_echo "no" >&6; }
19334fi
19335
19336 ac_ext=cpp
19337ac_cpp='$CXXCPP $CPPFLAGS'
19338ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19339ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19340ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19341
19342
19343
19344
19345
19346
19347 ac_ext=c
19348ac_cpp='$CPP $CPPFLAGS'
19349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19351ac_compiler_gnu=$ac_cv_c_compiler_gnu
19352
babf7fe8
JF
19353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-deprecated-declarations" >&5
19354$as_echo_n "checking for cc -Wno-deprecated-declarations... " >&6; }
c10a2228
JF
19355
19356 cy_save=$CFLAGS
19357
babf7fe8 19358 for element in -Wno-deprecated-declarations; do
c10a2228
JF
19359 haveit=
19360 for x in $CFLAGS; do
19361
19362 acl_save_prefix="$prefix"
19363 prefix="$acl_final_prefix"
19364 acl_save_exec_prefix="$exec_prefix"
19365 exec_prefix="$acl_final_exec_prefix"
19366 eval x=\"$x\"
19367 exec_prefix="$acl_save_exec_prefix"
19368 prefix="$acl_save_prefix"
19369
19370 if test "X$x" = "X$element"; then
19371 haveit=yes
19372 break
19373 fi
19374 done
19375 if test -z "$haveit"; then
19376 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19377 fi
19378 done
19379
19380
19381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19382/* end confdefs.h. */
19383
19384_ACEOF
19385if ac_fn_c_try_compile "$LINENO"; then :
19386 cy_good=1
19387else
19388 cy_good=0
19389fi
19390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19391
19392 CFLAGS=$cy_save
19393 if test "x$cy_good" = x1; then :
19394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19395$as_echo "yes" >&6; }
19396
babf7fe8 19397 for element in -Wno-deprecated-declarations; do
c10a2228
JF
19398 haveit=
19399 for x in $CFLAGS; do
19400
19401 acl_save_prefix="$prefix"
19402 prefix="$acl_final_prefix"
19403 acl_save_exec_prefix="$exec_prefix"
19404 exec_prefix="$acl_final_exec_prefix"
19405 eval x=\"$x\"
19406 exec_prefix="$acl_save_exec_prefix"
19407 prefix="$acl_save_prefix"
19408
19409 if test "X$x" = "X$element"; then
19410 haveit=yes
19411 break
19412 fi
19413 done
19414 if test -z "$haveit"; then
19415 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19416 fi
19417 done
19418
19419
19420else
19421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19422$as_echo "no" >&6; }
19423fi
19424
19425 ac_ext=cpp
19426ac_cpp='$CXXCPP $CPPFLAGS'
19427ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19428ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19429ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19430
19431
19432
19433 ac_ext=cpp
19434ac_cpp='$CXXCPP $CPPFLAGS'
19435ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19436ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19437ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19438
babf7fe8
JF
19439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-deprecated-declarations" >&5
19440$as_echo_n "checking for c++ -Wno-deprecated-declarations... " >&6; }
c10a2228
JF
19441
19442 cy_save=$CXXFLAGS
19443
babf7fe8 19444 for element in -Wno-deprecated-declarations; do
c10a2228
JF
19445 haveit=
19446 for x in $CXXFLAGS; do
19447
19448 acl_save_prefix="$prefix"
19449 prefix="$acl_final_prefix"
19450 acl_save_exec_prefix="$exec_prefix"
19451 exec_prefix="$acl_final_exec_prefix"
19452 eval x=\"$x\"
19453 exec_prefix="$acl_save_exec_prefix"
19454 prefix="$acl_save_prefix"
19455
19456 if test "X$x" = "X$element"; then
19457 haveit=yes
19458 break
19459 fi
19460 done
19461 if test -z "$haveit"; then
19462 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19463 fi
19464 done
19465
19466
19467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19468/* end confdefs.h. */
19469
19470_ACEOF
19471if ac_fn_cxx_try_compile "$LINENO"; then :
19472 cy_good=1
19473else
19474 cy_good=0
19475fi
19476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19477
19478 CXXFLAGS=$cy_save
19479 if test "x$cy_good" = x1; then :
19480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19481$as_echo "yes" >&6; }
19482
babf7fe8 19483 for element in -Wno-deprecated-declarations; do
c10a2228
JF
19484 haveit=
19485 for x in $CXXFLAGS; do
19486
19487 acl_save_prefix="$prefix"
19488 prefix="$acl_final_prefix"
19489 acl_save_exec_prefix="$exec_prefix"
19490 exec_prefix="$acl_final_exec_prefix"
19491 eval x=\"$x\"
19492 exec_prefix="$acl_save_exec_prefix"
19493 prefix="$acl_save_prefix"
19494
19495 if test "X$x" = "X$element"; then
19496 haveit=yes
19497 break
19498 fi
19499 done
19500 if test -z "$haveit"; then
19501 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19502 fi
19503 done
19504
19505
19506else
19507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19508$as_echo "no" >&6; }
19509fi
19510
19511 ac_ext=cpp
19512ac_cpp='$CXXCPP $CPPFLAGS'
19513ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19514ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19515ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19516
19517
19518
19519 ac_ext=mm
19520ac_cpp='$OBJCXXCPP $CPPFLAGS'
19521ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19522ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19523ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
19524
babf7fe8
JF
19525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-deprecated-declarations" >&5
19526$as_echo_n "checking for c++ -ObjC -Wno-deprecated-declarations... " >&6; }
c10a2228
JF
19527
19528 cy_save=$OBJCXXFLAGS
19529
babf7fe8 19530 for element in -Wno-deprecated-declarations; do
c10a2228
JF
19531 haveit=
19532 for x in $OBJCXXFLAGS; do
19533
19534 acl_save_prefix="$prefix"
19535 prefix="$acl_final_prefix"
19536 acl_save_exec_prefix="$exec_prefix"
19537 exec_prefix="$acl_final_exec_prefix"
19538 eval x=\"$x\"
19539 exec_prefix="$acl_save_exec_prefix"
19540 prefix="$acl_save_prefix"
19541
19542 if test "X$x" = "X$element"; then
19543 haveit=yes
19544 break
19545 fi
19546 done
19547 if test -z "$haveit"; then
19548 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19549 fi
19550 done
19551
19552
19553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19554/* end confdefs.h. */
19555
19556_ACEOF
19557if ac_fn_objcxx_try_compile "$LINENO"; then :
19558 cy_good=1
19559else
19560 cy_good=0
19561fi
19562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19563
19564 OBJCXXFLAGS=$cy_save
19565 if test "x$cy_good" = x1; then :
19566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19567$as_echo "yes" >&6; }
19568
babf7fe8 19569 for element in -Wno-deprecated-declarations; do
c10a2228
JF
19570 haveit=
19571 for x in $OBJCXXFLAGS; do
19572
19573 acl_save_prefix="$prefix"
19574 prefix="$acl_final_prefix"
19575 acl_save_exec_prefix="$exec_prefix"
19576 exec_prefix="$acl_final_exec_prefix"
19577 eval x=\"$x\"
19578 exec_prefix="$acl_save_exec_prefix"
19579 prefix="$acl_save_prefix"
19580
19581 if test "X$x" = "X$element"; then
19582 haveit=yes
19583 break
19584 fi
19585 done
19586 if test -z "$haveit"; then
19587 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19588 fi
19589 done
19590
19591
19592else
19593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19594$as_echo "no" >&6; }
19595fi
19596
19597 ac_ext=cpp
19598ac_cpp='$CXXCPP $CPPFLAGS'
19599ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19600ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19601ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19602
19603
19604
19605
19606
babf7fe8 19607
c10a2228
JF
19608 ac_ext=c
19609ac_cpp='$CPP $CPPFLAGS'
19610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19612ac_compiler_gnu=$ac_cv_c_compiler_gnu
19613
babf7fe8
JF
19614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-dangling-else" >&5
19615$as_echo_n "checking for cc -Wno-dangling-else... " >&6; }
c10a2228
JF
19616
19617 cy_save=$CFLAGS
19618
babf7fe8 19619 for element in -Wno-dangling-else; do
c10a2228
JF
19620 haveit=
19621 for x in $CFLAGS; do
19622
19623 acl_save_prefix="$prefix"
19624 prefix="$acl_final_prefix"
19625 acl_save_exec_prefix="$exec_prefix"
19626 exec_prefix="$acl_final_exec_prefix"
19627 eval x=\"$x\"
19628 exec_prefix="$acl_save_exec_prefix"
19629 prefix="$acl_save_prefix"
19630
19631 if test "X$x" = "X$element"; then
19632 haveit=yes
19633 break
19634 fi
19635 done
19636 if test -z "$haveit"; then
19637 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19638 fi
19639 done
19640
19641
19642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19643/* end confdefs.h. */
19644
19645_ACEOF
19646if ac_fn_c_try_compile "$LINENO"; then :
19647 cy_good=1
19648else
19649 cy_good=0
19650fi
19651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19652
19653 CFLAGS=$cy_save
19654 if test "x$cy_good" = x1; then :
19655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19656$as_echo "yes" >&6; }
19657
babf7fe8 19658 for element in -Wno-dangling-else; do
c10a2228
JF
19659 haveit=
19660 for x in $CFLAGS; do
19661
19662 acl_save_prefix="$prefix"
19663 prefix="$acl_final_prefix"
19664 acl_save_exec_prefix="$exec_prefix"
19665 exec_prefix="$acl_final_exec_prefix"
19666 eval x=\"$x\"
19667 exec_prefix="$acl_save_exec_prefix"
19668 prefix="$acl_save_prefix"
19669
19670 if test "X$x" = "X$element"; then
19671 haveit=yes
19672 break
19673 fi
19674 done
19675 if test -z "$haveit"; then
19676 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19677 fi
19678 done
19679
19680
19681else
19682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19683$as_echo "no" >&6; }
19684fi
19685
19686 ac_ext=cpp
19687ac_cpp='$CXXCPP $CPPFLAGS'
19688ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19689ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19690ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19691
19692
19693
19694 ac_ext=cpp
19695ac_cpp='$CXXCPP $CPPFLAGS'
19696ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19697ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19698ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19699
babf7fe8
JF
19700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-dangling-else" >&5
19701$as_echo_n "checking for c++ -Wno-dangling-else... " >&6; }
c10a2228
JF
19702
19703 cy_save=$CXXFLAGS
19704
babf7fe8 19705 for element in -Wno-dangling-else; do
c10a2228
JF
19706 haveit=
19707 for x in $CXXFLAGS; do
19708
19709 acl_save_prefix="$prefix"
19710 prefix="$acl_final_prefix"
19711 acl_save_exec_prefix="$exec_prefix"
19712 exec_prefix="$acl_final_exec_prefix"
19713 eval x=\"$x\"
19714 exec_prefix="$acl_save_exec_prefix"
19715 prefix="$acl_save_prefix"
19716
19717 if test "X$x" = "X$element"; then
19718 haveit=yes
19719 break
19720 fi
19721 done
19722 if test -z "$haveit"; then
19723 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19724 fi
19725 done
19726
19727
19728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19729/* end confdefs.h. */
19730
19731_ACEOF
19732if ac_fn_cxx_try_compile "$LINENO"; then :
19733 cy_good=1
19734else
19735 cy_good=0
19736fi
19737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19738
19739 CXXFLAGS=$cy_save
19740 if test "x$cy_good" = x1; then :
19741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19742$as_echo "yes" >&6; }
19743
babf7fe8 19744 for element in -Wno-dangling-else; do
c10a2228
JF
19745 haveit=
19746 for x in $CXXFLAGS; do
19747
19748 acl_save_prefix="$prefix"
19749 prefix="$acl_final_prefix"
19750 acl_save_exec_prefix="$exec_prefix"
19751 exec_prefix="$acl_final_exec_prefix"
19752 eval x=\"$x\"
19753 exec_prefix="$acl_save_exec_prefix"
19754 prefix="$acl_save_prefix"
19755
19756 if test "X$x" = "X$element"; then
19757 haveit=yes
19758 break
19759 fi
19760 done
19761 if test -z "$haveit"; then
19762 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19763 fi
19764 done
19765
19766
19767else
19768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19769$as_echo "no" >&6; }
19770fi
19771
19772 ac_ext=cpp
19773ac_cpp='$CXXCPP $CPPFLAGS'
19774ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19775ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19776ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19777
19778
19779
19780 ac_ext=mm
19781ac_cpp='$OBJCXXCPP $CPPFLAGS'
19782ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19783ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19784ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
19785
babf7fe8
JF
19786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-dangling-else" >&5
19787$as_echo_n "checking for c++ -ObjC -Wno-dangling-else... " >&6; }
c10a2228
JF
19788
19789 cy_save=$OBJCXXFLAGS
19790
babf7fe8 19791 for element in -Wno-dangling-else; do
c10a2228
JF
19792 haveit=
19793 for x in $OBJCXXFLAGS; do
19794
19795 acl_save_prefix="$prefix"
19796 prefix="$acl_final_prefix"
19797 acl_save_exec_prefix="$exec_prefix"
19798 exec_prefix="$acl_final_exec_prefix"
19799 eval x=\"$x\"
19800 exec_prefix="$acl_save_exec_prefix"
19801 prefix="$acl_save_prefix"
19802
19803 if test "X$x" = "X$element"; then
19804 haveit=yes
19805 break
19806 fi
19807 done
19808 if test -z "$haveit"; then
19809 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19810 fi
19811 done
19812
19813
19814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19815/* end confdefs.h. */
19816
19817_ACEOF
19818if ac_fn_objcxx_try_compile "$LINENO"; then :
19819 cy_good=1
19820else
19821 cy_good=0
19822fi
19823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19824
19825 OBJCXXFLAGS=$cy_save
19826 if test "x$cy_good" = x1; then :
19827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19828$as_echo "yes" >&6; }
19829
babf7fe8 19830 for element in -Wno-dangling-else; do
c10a2228
JF
19831 haveit=
19832 for x in $OBJCXXFLAGS; do
19833
19834 acl_save_prefix="$prefix"
19835 prefix="$acl_final_prefix"
19836 acl_save_exec_prefix="$exec_prefix"
19837 exec_prefix="$acl_final_exec_prefix"
19838 eval x=\"$x\"
19839 exec_prefix="$acl_save_exec_prefix"
19840 prefix="$acl_save_prefix"
19841
19842 if test "X$x" = "X$element"; then
19843 haveit=yes
19844 break
19845 fi
19846 done
19847 if test -z "$haveit"; then
19848 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
19849 fi
19850 done
19851
19852
19853else
19854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19855$as_echo "no" >&6; }
19856fi
19857
19858 ac_ext=cpp
19859ac_cpp='$CXXCPP $CPPFLAGS'
19860ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19861ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19862ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19863
19864
19865
19866
19867
2ada0541
JF
19868 ac_ext=c
19869ac_cpp='$CPP $CPPFLAGS'
19870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19872ac_compiler_gnu=$ac_cv_c_compiler_gnu
19873
19874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-empty-body" >&5
19875$as_echo_n "checking for cc -Wno-empty-body... " >&6; }
19876
19877 cy_save=$CFLAGS
19878
19879 for element in -Wno-empty-body; do
19880 haveit=
19881 for x in $CFLAGS; do
19882
19883 acl_save_prefix="$prefix"
19884 prefix="$acl_final_prefix"
19885 acl_save_exec_prefix="$exec_prefix"
19886 exec_prefix="$acl_final_exec_prefix"
19887 eval x=\"$x\"
19888 exec_prefix="$acl_save_exec_prefix"
19889 prefix="$acl_save_prefix"
19890
19891 if test "X$x" = "X$element"; then
19892 haveit=yes
19893 break
19894 fi
19895 done
19896 if test -z "$haveit"; then
19897 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19898 fi
19899 done
19900
19901
19902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19903/* end confdefs.h. */
19904
19905_ACEOF
19906if ac_fn_c_try_compile "$LINENO"; then :
19907 cy_good=1
19908else
19909 cy_good=0
19910fi
19911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19912
19913 CFLAGS=$cy_save
19914 if test "x$cy_good" = x1; then :
19915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19916$as_echo "yes" >&6; }
19917
19918 for element in -Wno-empty-body; do
19919 haveit=
19920 for x in $CFLAGS; do
19921
19922 acl_save_prefix="$prefix"
19923 prefix="$acl_final_prefix"
19924 acl_save_exec_prefix="$exec_prefix"
19925 exec_prefix="$acl_final_exec_prefix"
19926 eval x=\"$x\"
19927 exec_prefix="$acl_save_exec_prefix"
19928 prefix="$acl_save_prefix"
19929
19930 if test "X$x" = "X$element"; then
19931 haveit=yes
19932 break
19933 fi
19934 done
19935 if test -z "$haveit"; then
19936 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
19937 fi
19938 done
19939
19940
19941else
19942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19943$as_echo "no" >&6; }
19944fi
19945
19946 ac_ext=cpp
19947ac_cpp='$CXXCPP $CPPFLAGS'
19948ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19949ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19950ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19951
19952
19953
19954 ac_ext=cpp
19955ac_cpp='$CXXCPP $CPPFLAGS'
19956ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19957ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19958ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19959
19960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-empty-body" >&5
19961$as_echo_n "checking for c++ -Wno-empty-body... " >&6; }
19962
19963 cy_save=$CXXFLAGS
19964
19965 for element in -Wno-empty-body; do
19966 haveit=
19967 for x in $CXXFLAGS; do
19968
19969 acl_save_prefix="$prefix"
19970 prefix="$acl_final_prefix"
19971 acl_save_exec_prefix="$exec_prefix"
19972 exec_prefix="$acl_final_exec_prefix"
19973 eval x=\"$x\"
19974 exec_prefix="$acl_save_exec_prefix"
19975 prefix="$acl_save_prefix"
19976
19977 if test "X$x" = "X$element"; then
19978 haveit=yes
19979 break
19980 fi
19981 done
19982 if test -z "$haveit"; then
19983 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
19984 fi
19985 done
19986
19987
19988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19989/* end confdefs.h. */
19990
19991_ACEOF
19992if ac_fn_cxx_try_compile "$LINENO"; then :
19993 cy_good=1
19994else
19995 cy_good=0
19996fi
19997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19998
19999 CXXFLAGS=$cy_save
20000 if test "x$cy_good" = x1; then :
20001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20002$as_echo "yes" >&6; }
20003
20004 for element in -Wno-empty-body; do
20005 haveit=
20006 for x in $CXXFLAGS; do
20007
20008 acl_save_prefix="$prefix"
20009 prefix="$acl_final_prefix"
20010 acl_save_exec_prefix="$exec_prefix"
20011 exec_prefix="$acl_final_exec_prefix"
20012 eval x=\"$x\"
20013 exec_prefix="$acl_save_exec_prefix"
20014 prefix="$acl_save_prefix"
20015
20016 if test "X$x" = "X$element"; then
20017 haveit=yes
20018 break
20019 fi
20020 done
20021 if test -z "$haveit"; then
20022 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
20023 fi
20024 done
20025
20026
20027else
20028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20029$as_echo "no" >&6; }
20030fi
20031
20032 ac_ext=cpp
20033ac_cpp='$CXXCPP $CPPFLAGS'
20034ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20035ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20036ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20037
20038
20039
20040 ac_ext=mm
20041ac_cpp='$OBJCXXCPP $CPPFLAGS'
20042ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20043ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20044ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
20045
20046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-empty-body" >&5
20047$as_echo_n "checking for c++ -ObjC -Wno-empty-body... " >&6; }
20048
20049 cy_save=$OBJCXXFLAGS
20050
20051 for element in -Wno-empty-body; do
20052 haveit=
20053 for x in $OBJCXXFLAGS; do
20054
20055 acl_save_prefix="$prefix"
20056 prefix="$acl_final_prefix"
20057 acl_save_exec_prefix="$exec_prefix"
20058 exec_prefix="$acl_final_exec_prefix"
20059 eval x=\"$x\"
20060 exec_prefix="$acl_save_exec_prefix"
20061 prefix="$acl_save_prefix"
20062
20063 if test "X$x" = "X$element"; then
20064 haveit=yes
20065 break
20066 fi
20067 done
20068 if test -z "$haveit"; then
20069 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
20070 fi
20071 done
20072
20073
20074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20075/* end confdefs.h. */
20076
20077_ACEOF
20078if ac_fn_objcxx_try_compile "$LINENO"; then :
20079 cy_good=1
20080else
20081 cy_good=0
20082fi
20083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20084
20085 OBJCXXFLAGS=$cy_save
20086 if test "x$cy_good" = x1; then :
20087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20088$as_echo "yes" >&6; }
20089
20090 for element in -Wno-empty-body; do
20091 haveit=
20092 for x in $OBJCXXFLAGS; do
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
20108 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
20109 fi
20110 done
20111
20112
20113else
20114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20115$as_echo "no" >&6; }
20116fi
20117
20118 ac_ext=cpp
20119ac_cpp='$CXXCPP $CPPFLAGS'
20120ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20121ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20122ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20123
20124
20125
20126
20127
c10a2228
JF
20128 ac_ext=c
20129ac_cpp='$CPP $CPPFLAGS'
20130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20132ac_compiler_gnu=$ac_cv_c_compiler_gnu
20133
babf7fe8
JF
20134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-overloaded-virtual" >&5
20135$as_echo_n "checking for cc -Wno-overloaded-virtual... " >&6; }
c10a2228
JF
20136
20137 cy_save=$CFLAGS
20138
babf7fe8 20139 for element in -Wno-overloaded-virtual; do
1504c9b8 20140 haveit=
c10a2228 20141 for x in $CFLAGS; do
1504c9b8
DWT
20142
20143 acl_save_prefix="$prefix"
20144 prefix="$acl_final_prefix"
20145 acl_save_exec_prefix="$exec_prefix"
20146 exec_prefix="$acl_final_exec_prefix"
20147 eval x=\"$x\"
20148 exec_prefix="$acl_save_exec_prefix"
20149 prefix="$acl_save_prefix"
20150
20151 if test "X$x" = "X$element"; then
20152 haveit=yes
20153 break
20154 fi
20155 done
20156 if test -z "$haveit"; then
c10a2228 20157 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
1504c9b8
DWT
20158 fi
20159 done
20160
66170b30
JF
20161
20162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1504c9b8
DWT
20163/* end confdefs.h. */
20164
66170b30 20165_ACEOF
c10a2228 20166if ac_fn_c_try_compile "$LINENO"; then :
66170b30
JF
20167 cy_good=1
20168else
20169 cy_good=0
20170fi
20171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20172
c10a2228 20173 CFLAGS=$cy_save
66170b30
JF
20174 if test "x$cy_good" = x1; then :
20175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20176$as_echo "yes" >&6; }
20177
babf7fe8 20178 for element in -Wno-overloaded-virtual; do
66170b30
JF
20179 haveit=
20180 for x in $CFLAGS; do
20181
20182 acl_save_prefix="$prefix"
20183 prefix="$acl_final_prefix"
20184 acl_save_exec_prefix="$exec_prefix"
20185 exec_prefix="$acl_final_exec_prefix"
20186 eval x=\"$x\"
20187 exec_prefix="$acl_save_exec_prefix"
20188 prefix="$acl_save_prefix"
20189
20190 if test "X$x" = "X$element"; then
20191 haveit=yes
20192 break
20193 fi
20194 done
20195 if test -z "$haveit"; then
20196 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
20197 fi
20198 done
20199
20200
c10a2228
JF
20201else
20202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20203$as_echo "no" >&6; }
20204fi
20205
20206 ac_ext=cpp
20207ac_cpp='$CXXCPP $CPPFLAGS'
20208ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20209ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20210ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20211
20212
20213
20214 ac_ext=cpp
20215ac_cpp='$CXXCPP $CPPFLAGS'
20216ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20217ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20218ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20219
babf7fe8
JF
20220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-overloaded-virtual" >&5
20221$as_echo_n "checking for c++ -Wno-overloaded-virtual... " >&6; }
c10a2228
JF
20222
20223 cy_save=$CXXFLAGS
20224
babf7fe8 20225 for element in -Wno-overloaded-virtual; do
66170b30
JF
20226 haveit=
20227 for x in $CXXFLAGS; do
20228
20229 acl_save_prefix="$prefix"
20230 prefix="$acl_final_prefix"
20231 acl_save_exec_prefix="$exec_prefix"
20232 exec_prefix="$acl_final_exec_prefix"
20233 eval x=\"$x\"
20234 exec_prefix="$acl_save_exec_prefix"
20235 prefix="$acl_save_prefix"
20236
20237 if test "X$x" = "X$element"; then
20238 haveit=yes
20239 break
20240 fi
20241 done
20242 if test -z "$haveit"; then
20243 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
20244 fi
20245 done
20246
20247
c10a2228
JF
20248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20249/* end confdefs.h. */
20250
20251_ACEOF
20252if ac_fn_cxx_try_compile "$LINENO"; then :
20253 cy_good=1
20254else
20255 cy_good=0
20256fi
20257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20258
20259 CXXFLAGS=$cy_save
20260 if test "x$cy_good" = x1; then :
20261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20262$as_echo "yes" >&6; }
20263
babf7fe8 20264 for element in -Wno-overloaded-virtual; do
66170b30 20265 haveit=
c10a2228 20266 for x in $CXXFLAGS; do
66170b30
JF
20267
20268 acl_save_prefix="$prefix"
20269 prefix="$acl_final_prefix"
20270 acl_save_exec_prefix="$exec_prefix"
20271 exec_prefix="$acl_final_exec_prefix"
20272 eval x=\"$x\"
20273 exec_prefix="$acl_save_exec_prefix"
20274 prefix="$acl_save_prefix"
20275
20276 if test "X$x" = "X$element"; then
20277 haveit=yes
20278 break
20279 fi
20280 done
20281 if test -z "$haveit"; then
c10a2228 20282 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
66170b30
JF
20283 fi
20284 done
20285
20286
66170b30
JF
20287else
20288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20289$as_echo "no" >&6; }
20290fi
20291
c10a2228
JF
20292 ac_ext=cpp
20293ac_cpp='$CXXCPP $CPPFLAGS'
20294ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20295ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20296ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20297
66170b30
JF
20298
20299
c10a2228
JF
20300 ac_ext=mm
20301ac_cpp='$OBJCXXCPP $CPPFLAGS'
20302ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20303ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20304ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
20305
babf7fe8
JF
20306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-overloaded-virtual" >&5
20307$as_echo_n "checking for c++ -ObjC -Wno-overloaded-virtual... " >&6; }
66170b30 20308
c10a2228 20309 cy_save=$OBJCXXFLAGS
66170b30 20310
babf7fe8 20311 for element in -Wno-overloaded-virtual; do
66170b30 20312 haveit=
c10a2228 20313 for x in $OBJCXXFLAGS; do
66170b30
JF
20314
20315 acl_save_prefix="$prefix"
20316 prefix="$acl_final_prefix"
20317 acl_save_exec_prefix="$exec_prefix"
20318 exec_prefix="$acl_final_exec_prefix"
20319 eval x=\"$x\"
20320 exec_prefix="$acl_save_exec_prefix"
20321 prefix="$acl_save_prefix"
20322
20323 if test "X$x" = "X$element"; then
20324 haveit=yes
20325 break
20326 fi
20327 done
20328 if test -z "$haveit"; then
c10a2228 20329 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
66170b30
JF
20330 fi
20331 done
20332
20333
20334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20335/* end confdefs.h. */
1504c9b8 20336
1504c9b8 20337_ACEOF
c10a2228 20338if ac_fn_objcxx_try_compile "$LINENO"; then :
66170b30
JF
20339 cy_good=1
20340else
20341 cy_good=0
20342fi
20343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20344
c10a2228 20345 OBJCXXFLAGS=$cy_save
66170b30
JF
20346 if test "x$cy_good" = x1; then :
20347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20348$as_echo "yes" >&6; }
1504c9b8 20349
babf7fe8 20350 for element in -Wno-overloaded-virtual; do
1504c9b8 20351 haveit=
c10a2228 20352 for x in $OBJCXXFLAGS; do
1504c9b8
DWT
20353
20354 acl_save_prefix="$prefix"
20355 prefix="$acl_final_prefix"
20356 acl_save_exec_prefix="$exec_prefix"
20357 exec_prefix="$acl_final_exec_prefix"
20358 eval x=\"$x\"
20359 exec_prefix="$acl_save_exec_prefix"
20360 prefix="$acl_save_prefix"
20361
20362 if test "X$x" = "X$element"; then
20363 haveit=yes
20364 break
20365 fi
20366 done
20367 if test -z "$haveit"; then
c10a2228 20368 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
1504c9b8
DWT
20369 fi
20370 done
20371
20372
c10a2228
JF
20373else
20374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20375$as_echo "no" >&6; }
20376fi
20377
20378 ac_ext=cpp
20379ac_cpp='$CXXCPP $CPPFLAGS'
20380ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20381ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20382ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20383
20384
20385
20386
20387
20388 ac_ext=c
20389ac_cpp='$CPP $CPPFLAGS'
20390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20392ac_compiler_gnu=$ac_cv_c_compiler_gnu
20393
babf7fe8
JF
20394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-parentheses" >&5
20395$as_echo_n "checking for cc -Wno-parentheses... " >&6; }
c10a2228
JF
20396
20397 cy_save=$CFLAGS
20398
babf7fe8 20399 for element in -Wno-parentheses; do
66170b30 20400 haveit=
c10a2228 20401 for x in $CFLAGS; do
66170b30
JF
20402
20403 acl_save_prefix="$prefix"
20404 prefix="$acl_final_prefix"
20405 acl_save_exec_prefix="$exec_prefix"
20406 exec_prefix="$acl_final_exec_prefix"
20407 eval x=\"$x\"
20408 exec_prefix="$acl_save_exec_prefix"
20409 prefix="$acl_save_prefix"
20410
20411 if test "X$x" = "X$element"; then
20412 haveit=yes
20413 break
20414 fi
20415 done
20416 if test -z "$haveit"; then
c10a2228 20417 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
66170b30
JF
20418 fi
20419 done
20420
20421
c10a2228
JF
20422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20423/* end confdefs.h. */
20424
20425_ACEOF
20426if ac_fn_c_try_compile "$LINENO"; then :
20427 cy_good=1
20428else
20429 cy_good=0
20430fi
20431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20432
20433 CFLAGS=$cy_save
20434 if test "x$cy_good" = x1; then :
20435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20436$as_echo "yes" >&6; }
20437
babf7fe8 20438 for element in -Wno-parentheses; do
66170b30 20439 haveit=
c10a2228 20440 for x in $CFLAGS; do
66170b30
JF
20441
20442 acl_save_prefix="$prefix"
20443 prefix="$acl_final_prefix"
20444 acl_save_exec_prefix="$exec_prefix"
20445 exec_prefix="$acl_final_exec_prefix"
20446 eval x=\"$x\"
20447 exec_prefix="$acl_save_exec_prefix"
20448 prefix="$acl_save_prefix"
20449
20450 if test "X$x" = "X$element"; then
20451 haveit=yes
20452 break
20453 fi
20454 done
20455 if test -z "$haveit"; then
c10a2228 20456 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
66170b30
JF
20457 fi
20458 done
20459
20460
66170b30
JF
20461else
20462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20463$as_echo "no" >&6; }
20464fi
20465
c10a2228
JF
20466 ac_ext=cpp
20467ac_cpp='$CXXCPP $CPPFLAGS'
20468ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20469ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20470ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20471
66170b30
JF
20472
20473
c10a2228
JF
20474 ac_ext=cpp
20475ac_cpp='$CXXCPP $CPPFLAGS'
20476ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20477ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20478ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20479
babf7fe8
JF
20480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-parentheses" >&5
20481$as_echo_n "checking for c++ -Wno-parentheses... " >&6; }
66170b30
JF
20482
20483 cy_save=$CXXFLAGS
20484
babf7fe8 20485 for element in -Wno-parentheses; do
66170b30
JF
20486 haveit=
20487 for x in $CXXFLAGS; do
20488
20489 acl_save_prefix="$prefix"
20490 prefix="$acl_final_prefix"
20491 acl_save_exec_prefix="$exec_prefix"
20492 exec_prefix="$acl_final_exec_prefix"
20493 eval x=\"$x\"
20494 exec_prefix="$acl_save_exec_prefix"
20495 prefix="$acl_save_prefix"
20496
20497 if test "X$x" = "X$element"; then
20498 haveit=yes
20499 break
20500 fi
20501 done
20502 if test -z "$haveit"; then
20503 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
20504 fi
20505 done
20506
20507
20508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20509/* end confdefs.h. */
20510
20511_ACEOF
20512if ac_fn_cxx_try_compile "$LINENO"; then :
20513 cy_good=1
20514else
20515 cy_good=0
20516fi
20517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20518
20519 CXXFLAGS=$cy_save
20520 if test "x$cy_good" = x1; then :
20521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20522$as_echo "yes" >&6; }
20523
babf7fe8 20524 for element in -Wno-parentheses; do
1504c9b8 20525 haveit=
c10a2228 20526 for x in $CXXFLAGS; do
1504c9b8
DWT
20527
20528 acl_save_prefix="$prefix"
20529 prefix="$acl_final_prefix"
20530 acl_save_exec_prefix="$exec_prefix"
20531 exec_prefix="$acl_final_exec_prefix"
20532 eval x=\"$x\"
20533 exec_prefix="$acl_save_exec_prefix"
20534 prefix="$acl_save_prefix"
20535
20536 if test "X$x" = "X$element"; then
20537 haveit=yes
20538 break
20539 fi
20540 done
20541 if test -z "$haveit"; then
c10a2228 20542 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
1504c9b8
DWT
20543 fi
20544 done
20545
20546
c10a2228
JF
20547else
20548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20549$as_echo "no" >&6; }
20550fi
20551
20552 ac_ext=cpp
20553ac_cpp='$CXXCPP $CPPFLAGS'
20554ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20555ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20556ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20557
20558
20559
20560 ac_ext=mm
20561ac_cpp='$OBJCXXCPP $CPPFLAGS'
20562ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20563ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20564ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
20565
babf7fe8
JF
20566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-parentheses" >&5
20567$as_echo_n "checking for c++ -ObjC -Wno-parentheses... " >&6; }
c10a2228
JF
20568
20569 cy_save=$OBJCXXFLAGS
20570
babf7fe8 20571 for element in -Wno-parentheses; do
1504c9b8 20572 haveit=
c10a2228 20573 for x in $OBJCXXFLAGS; do
1504c9b8
DWT
20574
20575 acl_save_prefix="$prefix"
20576 prefix="$acl_final_prefix"
20577 acl_save_exec_prefix="$exec_prefix"
20578 exec_prefix="$acl_final_exec_prefix"
20579 eval x=\"$x\"
20580 exec_prefix="$acl_save_exec_prefix"
20581 prefix="$acl_save_prefix"
20582
20583 if test "X$x" = "X$element"; then
20584 haveit=yes
20585 break
20586 fi
20587 done
20588 if test -z "$haveit"; then
c10a2228 20589 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
1504c9b8
DWT
20590 fi
20591 done
20592
20593
c10a2228
JF
20594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20595/* end confdefs.h. */
20596
20597_ACEOF
20598if ac_fn_objcxx_try_compile "$LINENO"; then :
20599 cy_good=1
20600else
20601 cy_good=0
20602fi
20603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20604
20605 OBJCXXFLAGS=$cy_save
20606 if test "x$cy_good" = x1; then :
20607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20608$as_echo "yes" >&6; }
20609
babf7fe8 20610 for element in -Wno-parentheses; do
1504c9b8 20611 haveit=
c10a2228 20612 for x in $OBJCXXFLAGS; do
1504c9b8
DWT
20613
20614 acl_save_prefix="$prefix"
20615 prefix="$acl_final_prefix"
20616 acl_save_exec_prefix="$exec_prefix"
2ada0541
JF
20617 exec_prefix="$acl_final_exec_prefix"
20618 eval x=\"$x\"
20619 exec_prefix="$acl_save_exec_prefix"
20620 prefix="$acl_save_prefix"
20621
20622 if test "X$x" = "X$element"; then
20623 haveit=yes
20624 break
20625 fi
20626 done
20627 if test -z "$haveit"; then
20628 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
20629 fi
20630 done
20631
20632
20633else
20634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20635$as_echo "no" >&6; }
20636fi
20637
20638 ac_ext=cpp
20639ac_cpp='$CXXCPP $CPPFLAGS'
20640ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20641ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20642ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20643
20644
20645
20646
20647
20648 ac_ext=c
20649ac_cpp='$CPP $CPPFLAGS'
20650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20652ac_compiler_gnu=$ac_cv_c_compiler_gnu
20653
20654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-tautological-undefined-compare" >&5
20655$as_echo_n "checking for cc -Wno-tautological-undefined-compare... " >&6; }
20656
20657 cy_save=$CFLAGS
20658
20659 for element in -Wno-tautological-undefined-compare; do
20660 haveit=
20661 for x in $CFLAGS; do
20662
20663 acl_save_prefix="$prefix"
20664 prefix="$acl_final_prefix"
20665 acl_save_exec_prefix="$exec_prefix"
20666 exec_prefix="$acl_final_exec_prefix"
20667 eval x=\"$x\"
20668 exec_prefix="$acl_save_exec_prefix"
20669 prefix="$acl_save_prefix"
20670
20671 if test "X$x" = "X$element"; then
20672 haveit=yes
20673 break
20674 fi
20675 done
20676 if test -z "$haveit"; then
20677 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
20678 fi
20679 done
20680
20681
20682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20683/* end confdefs.h. */
20684
20685_ACEOF
20686if ac_fn_c_try_compile "$LINENO"; then :
20687 cy_good=1
20688else
20689 cy_good=0
20690fi
20691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20692
20693 CFLAGS=$cy_save
20694 if test "x$cy_good" = x1; then :
20695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20696$as_echo "yes" >&6; }
20697
20698 for element in -Wno-tautological-undefined-compare; do
20699 haveit=
20700 for x in $CFLAGS; do
20701
20702 acl_save_prefix="$prefix"
20703 prefix="$acl_final_prefix"
20704 acl_save_exec_prefix="$exec_prefix"
20705 exec_prefix="$acl_final_exec_prefix"
20706 eval x=\"$x\"
20707 exec_prefix="$acl_save_exec_prefix"
20708 prefix="$acl_save_prefix"
20709
20710 if test "X$x" = "X$element"; then
20711 haveit=yes
20712 break
20713 fi
20714 done
20715 if test -z "$haveit"; then
20716 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
20717 fi
20718 done
20719
20720
20721else
20722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20723$as_echo "no" >&6; }
20724fi
20725
20726 ac_ext=cpp
20727ac_cpp='$CXXCPP $CPPFLAGS'
20728ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20729ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20730ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20731
20732
20733
20734 ac_ext=cpp
20735ac_cpp='$CXXCPP $CPPFLAGS'
20736ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20737ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20738ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20739
20740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-tautological-undefined-compare" >&5
20741$as_echo_n "checking for c++ -Wno-tautological-undefined-compare... " >&6; }
20742
20743 cy_save=$CXXFLAGS
20744
20745 for element in -Wno-tautological-undefined-compare; do
20746 haveit=
20747 for x in $CXXFLAGS; do
20748
20749 acl_save_prefix="$prefix"
20750 prefix="$acl_final_prefix"
20751 acl_save_exec_prefix="$exec_prefix"
20752 exec_prefix="$acl_final_exec_prefix"
20753 eval x=\"$x\"
20754 exec_prefix="$acl_save_exec_prefix"
20755 prefix="$acl_save_prefix"
20756
20757 if test "X$x" = "X$element"; then
20758 haveit=yes
20759 break
20760 fi
20761 done
20762 if test -z "$haveit"; then
20763 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
20764 fi
20765 done
20766
20767
20768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20769/* end confdefs.h. */
20770
20771_ACEOF
20772if ac_fn_cxx_try_compile "$LINENO"; then :
20773 cy_good=1
20774else
20775 cy_good=0
20776fi
20777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20778
20779 CXXFLAGS=$cy_save
20780 if test "x$cy_good" = x1; then :
20781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20782$as_echo "yes" >&6; }
20783
20784 for element in -Wno-tautological-undefined-compare; do
20785 haveit=
20786 for x in $CXXFLAGS; do
20787
20788 acl_save_prefix="$prefix"
20789 prefix="$acl_final_prefix"
20790 acl_save_exec_prefix="$exec_prefix"
20791 exec_prefix="$acl_final_exec_prefix"
20792 eval x=\"$x\"
20793 exec_prefix="$acl_save_exec_prefix"
20794 prefix="$acl_save_prefix"
20795
20796 if test "X$x" = "X$element"; then
20797 haveit=yes
20798 break
20799 fi
20800 done
20801 if test -z "$haveit"; then
20802 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
20803 fi
20804 done
20805
20806
20807else
20808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20809$as_echo "no" >&6; }
20810fi
20811
20812 ac_ext=cpp
20813ac_cpp='$CXXCPP $CPPFLAGS'
20814ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20815ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20816ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20817
20818
20819
20820 ac_ext=mm
20821ac_cpp='$OBJCXXCPP $CPPFLAGS'
20822ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20823ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20824ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
20825
20826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-tautological-undefined-compare" >&5
20827$as_echo_n "checking for c++ -ObjC -Wno-tautological-undefined-compare... " >&6; }
20828
20829 cy_save=$OBJCXXFLAGS
20830
20831 for element in -Wno-tautological-undefined-compare; do
20832 haveit=
20833 for x in $OBJCXXFLAGS; do
20834
20835 acl_save_prefix="$prefix"
20836 prefix="$acl_final_prefix"
20837 acl_save_exec_prefix="$exec_prefix"
20838 exec_prefix="$acl_final_exec_prefix"
20839 eval x=\"$x\"
20840 exec_prefix="$acl_save_exec_prefix"
20841 prefix="$acl_save_prefix"
20842
20843 if test "X$x" = "X$element"; then
20844 haveit=yes
20845 break
20846 fi
20847 done
20848 if test -z "$haveit"; then
20849 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
20850 fi
20851 done
20852
20853
20854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20855/* end confdefs.h. */
20856
20857_ACEOF
20858if ac_fn_objcxx_try_compile "$LINENO"; then :
20859 cy_good=1
20860else
20861 cy_good=0
20862fi
20863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20864
20865 OBJCXXFLAGS=$cy_save
20866 if test "x$cy_good" = x1; then :
20867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20868$as_echo "yes" >&6; }
20869
20870 for element in -Wno-tautological-undefined-compare; do
20871 haveit=
20872 for x in $OBJCXXFLAGS; do
20873
20874 acl_save_prefix="$prefix"
20875 prefix="$acl_final_prefix"
20876 acl_save_exec_prefix="$exec_prefix"
1504c9b8
DWT
20877 exec_prefix="$acl_final_exec_prefix"
20878 eval x=\"$x\"
20879 exec_prefix="$acl_save_exec_prefix"
20880 prefix="$acl_save_prefix"
20881
20882 if test "X$x" = "X$element"; then
20883 haveit=yes
20884 break
20885 fi
20886 done
20887 if test -z "$haveit"; then
c10a2228 20888 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
1504c9b8
DWT
20889 fi
20890 done
20891
20892
66170b30
JF
20893else
20894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20895$as_echo "no" >&6; }
1504c9b8 20896fi
1504c9b8 20897
c10a2228
JF
20898 ac_ext=cpp
20899ac_cpp='$CXXCPP $CPPFLAGS'
20900ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20901ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20902ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20903
20904
1504c9b8 20905
1504c9b8 20906
1504c9b8 20907
babf7fe8
JF
20908 ac_ext=c
20909ac_cpp='$CPP $CPPFLAGS'
20910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20912ac_compiler_gnu=$ac_cv_c_compiler_gnu
1504c9b8 20913
babf7fe8
JF
20914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc -Wno-unneeded-internal-declaration" >&5
20915$as_echo_n "checking for cc -Wno-unneeded-internal-declaration... " >&6; }
20916
20917 cy_save=$CFLAGS
20918
20919 for element in -Wno-unneeded-internal-declaration; do
1504c9b8 20920 haveit=
babf7fe8 20921 for x in $CFLAGS; do
1504c9b8
DWT
20922
20923 acl_save_prefix="$prefix"
20924 prefix="$acl_final_prefix"
20925 acl_save_exec_prefix="$exec_prefix"
20926 exec_prefix="$acl_final_exec_prefix"
20927 eval x=\"$x\"
20928 exec_prefix="$acl_save_exec_prefix"
20929 prefix="$acl_save_prefix"
20930
20931 if test "X$x" = "X$element"; then
20932 haveit=yes
20933 break
20934 fi
20935 done
20936 if test -z "$haveit"; then
babf7fe8 20937 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
1504c9b8
DWT
20938 fi
20939 done
20940
66170b30
JF
20941
20942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1504c9b8
DWT
20943/* end confdefs.h. */
20944
a243b558 20945_ACEOF
babf7fe8 20946if ac_fn_c_try_compile "$LINENO"; then :
a243b558
JF
20947 cy_good=1
20948else
20949 cy_good=0
20950fi
babf7fe8 20951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1504c9b8 20952
babf7fe8 20953 CFLAGS=$cy_save
a243b558
JF
20954 if test "x$cy_good" = x1; then :
20955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20956$as_echo "yes" >&6; }
66170b30 20957
babf7fe8 20958 for element in -Wno-unneeded-internal-declaration; do
1504c9b8 20959 haveit=
babf7fe8 20960 for x in $CFLAGS; do
1504c9b8
DWT
20961
20962 acl_save_prefix="$prefix"
20963 prefix="$acl_final_prefix"
20964 acl_save_exec_prefix="$exec_prefix"
20965 exec_prefix="$acl_final_exec_prefix"
20966 eval x=\"$x\"
20967 exec_prefix="$acl_save_exec_prefix"
20968 prefix="$acl_save_prefix"
20969
20970 if test "X$x" = "X$element"; then
20971 haveit=yes
20972 break
20973 fi
20974 done
20975 if test -z "$haveit"; then
babf7fe8 20976 CFLAGS="${CFLAGS}${CFLAGS:+ }$element"
1504c9b8
DWT
20977 fi
20978 done
20979
20980
20981else
66170b30
JF
20982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20983$as_echo "no" >&6; }
1504c9b8
DWT
20984fi
20985
babf7fe8
JF
20986 ac_ext=cpp
20987ac_cpp='$CXXCPP $CPPFLAGS'
20988ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20989ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20990ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
296ee9a6 20991
9c60689e 20992
632b71ea 20993
babf7fe8
JF
20994 ac_ext=cpp
20995ac_cpp='$CXXCPP $CPPFLAGS'
20996ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20997ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20998ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
632b71ea 20999
babf7fe8
JF
21000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -Wno-unneeded-internal-declaration" >&5
21001$as_echo_n "checking for c++ -Wno-unneeded-internal-declaration... " >&6; }
9c60689e 21002
babf7fe8 21003 cy_save=$CXXFLAGS
9c60689e 21004
babf7fe8
JF
21005 for element in -Wno-unneeded-internal-declaration; do
21006 haveit=
21007 for x in $CXXFLAGS; do
9c60689e 21008
babf7fe8
JF
21009 acl_save_prefix="$prefix"
21010 prefix="$acl_final_prefix"
21011 acl_save_exec_prefix="$exec_prefix"
21012 exec_prefix="$acl_final_exec_prefix"
21013 eval x=\"$x\"
21014 exec_prefix="$acl_save_exec_prefix"
21015 prefix="$acl_save_prefix"
66170b30 21016
babf7fe8
JF
21017 if test "X$x" = "X$element"; then
21018 haveit=yes
21019 break
21020 fi
21021 done
21022 if test -z "$haveit"; then
21023 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
21024 fi
21025 done
7eda51e0 21026
7eda51e0 21027
babf7fe8
JF
21028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21029/* end confdefs.h. */
7eda51e0 21030
7eda51e0 21031_ACEOF
babf7fe8
JF
21032if ac_fn_cxx_try_compile "$LINENO"; then :
21033 cy_good=1
9c60689e 21034else
babf7fe8 21035 cy_good=0
9c60689e 21036fi
babf7fe8 21037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7eda51e0 21038
babf7fe8
JF
21039 CXXFLAGS=$cy_save
21040 if test "x$cy_good" = x1; then :
21041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21042$as_echo "yes" >&6; }
7eda51e0 21043
babf7fe8 21044 for element in -Wno-unneeded-internal-declaration; do
7eda51e0 21045 haveit=
babf7fe8 21046 for x in $CXXFLAGS; do
9c60689e 21047
7eda51e0
JF
21048 acl_save_prefix="$prefix"
21049 prefix="$acl_final_prefix"
21050 acl_save_exec_prefix="$exec_prefix"
21051 exec_prefix="$acl_final_exec_prefix"
21052 eval x=\"$x\"
21053 exec_prefix="$acl_save_exec_prefix"
21054 prefix="$acl_save_prefix"
9c60689e 21055
7eda51e0
JF
21056 if test "X$x" = "X$element"; then
21057 haveit=yes
21058 break
21059 fi
21060 done
21061 if test -z "$haveit"; then
babf7fe8 21062 CXXFLAGS="${CXXFLAGS}${CXXFLAGS:+ }$element"
7eda51e0
JF
21063 fi
21064 done
9c60689e 21065
9c60689e 21066
5053a6d1 21067else
babf7fe8
JF
21068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21069$as_echo "no" >&6; }
632b71ea
DWT
21070fi
21071
babf7fe8
JF
21072 ac_ext=cpp
21073ac_cpp='$CXXCPP $CPPFLAGS'
21074ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21075ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21076ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
632b71ea
DWT
21077
21078
5053a6d1 21079
babf7fe8
JF
21080 ac_ext=mm
21081ac_cpp='$OBJCXXCPP $CPPFLAGS'
21082ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21083ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21084ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
5053a6d1 21085
babf7fe8
JF
21086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c++ -ObjC -Wno-unneeded-internal-declaration" >&5
21087$as_echo_n "checking for c++ -ObjC -Wno-unneeded-internal-declaration... " >&6; }
632b71ea 21088
babf7fe8 21089 cy_save=$OBJCXXFLAGS
632b71ea 21090
babf7fe8 21091 for element in -Wno-unneeded-internal-declaration; do
5053a6d1 21092 haveit=
babf7fe8 21093 for x in $OBJCXXFLAGS; do
632b71ea
DWT
21094
21095 acl_save_prefix="$prefix"
21096 prefix="$acl_final_prefix"
21097 acl_save_exec_prefix="$exec_prefix"
21098 exec_prefix="$acl_final_exec_prefix"
5053a6d1 21099 eval x=\"$x\"
632b71ea
DWT
21100 exec_prefix="$acl_save_exec_prefix"
21101 prefix="$acl_save_prefix"
21102
5053a6d1
DWT
21103 if test "X$x" = "X$element"; then
21104 haveit=yes
21105 break
21106 fi
21107 done
21108 if test -z "$haveit"; then
babf7fe8 21109 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
5053a6d1
DWT
21110 fi
21111 done
21112
66170b30 21113
babf7fe8
JF
21114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21115/* end confdefs.h. */
21116
21117_ACEOF
21118if ac_fn_objcxx_try_compile "$LINENO"; then :
21119 cy_good=1
21120else
21121 cy_good=0
21122fi
21123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21124
21125 OBJCXXFLAGS=$cy_save
21126 if test "x$cy_good" = x1; then :
21127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21128$as_echo "yes" >&6; }
21129
21130 for element in -Wno-unneeded-internal-declaration; do
7eda51e0 21131 haveit=
babf7fe8 21132 for x in $OBJCXXFLAGS; do
7eda51e0
JF
21133
21134 acl_save_prefix="$prefix"
21135 prefix="$acl_final_prefix"
21136 acl_save_exec_prefix="$exec_prefix"
21137 exec_prefix="$acl_final_exec_prefix"
21138 eval x=\"$x\"
21139 exec_prefix="$acl_save_exec_prefix"
21140 prefix="$acl_save_prefix"
21141
21142 if test "X$x" = "X$element"; then
21143 haveit=yes
21144 break
21145 fi
21146 done
21147 if test -z "$haveit"; then
babf7fe8 21148 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
7eda51e0
JF
21149 fi
21150 done
66170b30
JF
21151
21152
babf7fe8
JF
21153else
21154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21155$as_echo "no" >&6; }
5053a6d1 21156fi
7eda51e0 21157
babf7fe8
JF
21158 ac_ext=cpp
21159ac_cpp='$CXXCPP $CPPFLAGS'
21160ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21161ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21162ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5053a6d1 21163
5053a6d1
DWT
21164
21165
5053a6d1 21166
babf7fe8
JF
21167
21168
2ca4dab3 21169
be2fde87
JF
21170ac_ext=c
21171ac_cpp='$CPP $CPPFLAGS'
21172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21174ac_compiler_gnu=$ac_cv_c_compiler_gnu
21175
21176ax_pthread_ok=no
21177
21178# We used to check for pthread.h first, but this fails if pthread.h
2ca4dab3 21179# requires special compiler flags (e.g. on Tru64 or Sequent).
be2fde87
JF
21180# It gets checked for in the link test anyway.
21181
21182# First of all, check if the user has set any of the PTHREAD_LIBS,
21183# etcetera environment variables, and if threads linking works using
21184# them:
21185if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
21186 save_CFLAGS="$CFLAGS"
21187 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21188 save_LIBS="$LIBS"
21189 LIBS="$PTHREAD_LIBS $LIBS"
2ca4dab3
JF
21190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
21191$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
be2fde87
JF
21192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21193/* end confdefs.h. */
21194
21195/* Override any GCC internal prototype to avoid an error.
21196 Use char because int might match the return type of a GCC
21197 builtin and then its argument prototype would still apply. */
21198#ifdef __cplusplus
21199extern "C"
21200#endif
21201char pthread_join ();
21202int
21203main ()
21204{
21205return pthread_join ();
21206 ;
21207 return 0;
21208}
21209_ACEOF
21210if ac_fn_c_try_link "$LINENO"; then :
21211 ax_pthread_ok=yes
21212fi
21213rm -f core conftest.err conftest.$ac_objext \
21214 conftest$ac_exeext conftest.$ac_ext
21215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
21216$as_echo "$ax_pthread_ok" >&6; }
21217 if test x"$ax_pthread_ok" = xno; then
21218 PTHREAD_LIBS=""
21219 PTHREAD_CFLAGS=""
21220 fi
21221 LIBS="$save_LIBS"
21222 CFLAGS="$save_CFLAGS"
21223fi
21224
21225# We must check for the threads library under a number of different
21226# names; the ordering is very important because some systems
21227# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
21228# libraries is broken (non-POSIX).
21229
21230# Create a list of thread flags to try. Items starting with a "-" are
21231# C compiler flags, and other items are library names, except for "none"
21232# which indicates that we try without any flags at all, and "pthread-config"
21233# which is a program returning the flags for the Pth emulation library.
21234
2ca4dab3 21235ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mt -mthreads pthread --thread-safe pthread-config"
be2fde87
JF
21236
21237# The ordering *is* (sometimes) important. Some notes on the
21238# individual items follow:
21239
21240# pthreads: AIX (must check this before -lpthread)
21241# none: in case threads are in libc; should be tried before -Kthread and
21242# other compiler flags to prevent continual compiler warnings
21243# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
21244# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
21245# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
2ca4dab3 21246# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
be2fde87 21247# -pthreads: Solaris/gcc
be2fde87 21248# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
2ca4dab3
JF
21249# doesn't hurt to check since this sometimes defines pthreads and
21250# -D_REENTRANT too), HP C (must be checked before -lpthread, which
21251# is present but should not be used directly)
21252# -mthreads: Mingw32/gcc, Lynx/gcc
be2fde87
JF
21253# pthread: Linux, etcetera
21254# --thread-safe: KAI C++
21255# pthread-config: use pthread-config program (for GNU Pth library)
21256
2ca4dab3
JF
21257case $host_os in
21258
21259 hpux*)
21260
21261 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
21262 # multi-threading and also sets -lpthread."
21263
21264 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
21265 ;;
21266
21267 openedition*)
21268
21269 # IBM z/OS requires a feature-test macro to be defined in order to
21270 # enable POSIX threads at all, so give the user a hint if this is
21271 # not set. (We don't define these ourselves, as they can affect
21272 # other portions of the system API in unpredictable ways.)
21273
21274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21275/* end confdefs.h. */
21276
21277# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
21278 AX_PTHREAD_ZOS_MISSING
21279# endif
21280
21281_ACEOF
21282if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21283 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
21284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
21285$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
21286fi
21287rm -f conftest*
21288
21289 ;;
21290
be2fde87
JF
21291 solaris*)
21292
2ca4dab3
JF
21293 # Newer versions of Solaris require the "-mt -lpthread" pair, and we
21294 # check that first. On some older versions, libc contains stubbed
be2fde87
JF
21295 # (non-functional) versions of the pthreads routines, so link-based
21296 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
21297 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
21298 # a function called by this macro, so we could check for that, but
2ca4dab3
JF
21299 # who knows whether they'll stub that too in a future libc.) So
21300 # we'll look for -pthreads and -lpthread shortly thereafter.
be2fde87 21301
2ca4dab3 21302 ax_pthread_flags="-mt,pthread -pthreads -pthread pthread $ax_pthread_flags"
be2fde87
JF
21303 ;;
21304esac
21305
2ca4dab3
JF
21306# Older versions of Clang only give a warning instead of an error for an
21307# unrecognized option, unless we specify -Werror. (We throw in some extra
21308# Clang warning flags for good measure.)
be2fde87 21309
2ca4dab3
JF
21310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs certain flags to reject unknown flags" >&5
21311$as_echo_n "checking if compiler needs certain flags to reject unknown flags... " >&6; }
21312if ${ax_cv_PTHREAD_REJECT_UNKNOWN+:} false; then :
21313 $as_echo_n "(cached) " >&6
21314else
21315 ax_cv_PTHREAD_REJECT_UNKNOWN=unknown
21316 save_CFLAGS="$CFLAGS"
21317 ax_pthread_extra_flags="-Wunknown-warning-option -Wunused-command-line-argument"
21318 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wfoobaz -foobaz"
21319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
be2fde87
JF
21320/* end confdefs.h. */
21321int foo(void);
21322int
21323main ()
21324{
21325foo()
21326 ;
21327 return 0;
21328}
21329_ACEOF
21330if ac_fn_c_try_compile "$LINENO"; then :
2ca4dab3 21331 ax_cv_PTHREAD_REJECT_UNKNOWN="-Werror $ax_pthread_extra_flags"
be2fde87 21332else
2ca4dab3 21333 ax_cv_PTHREAD_REJECT_UNKNOWN=no
be2fde87
JF
21334fi
21335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2ca4dab3
JF
21336 CFLAGS="$save_CFLAGS"
21337
21338fi
21339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_REJECT_UNKNOWN" >&5
21340$as_echo "$ax_cv_PTHREAD_REJECT_UNKNOWN" >&6; }
21341ax_pthread_extra_flags=
21342if test "x$ax_cv_PTHREAD_REJECT_UNKNOWN" != "xno"; then :
21343 ax_pthread_extra_flags="$ax_cv_PTHREAD_REJECT_UNKNOWN"
21344fi
be2fde87
JF
21345
21346if test x"$ax_pthread_ok" = xno; then
21347for flag in $ax_pthread_flags; do
21348
21349 case $flag in
21350 none)
21351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
21352$as_echo_n "checking whether pthreads work without any flags... " >&6; }
21353 ;;
21354
2ca4dab3
JF
21355 -mt,pthread)
21356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
21357$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
21358 PTHREAD_CFLAGS="-mt"
21359 PTHREAD_LIBS="-lpthread"
21360 ;;
21361
be2fde87
JF
21362 -*)
21363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
21364$as_echo_n "checking whether pthreads work with $flag... " >&6; }
21365 PTHREAD_CFLAGS="$flag"
21366 ;;
21367
21368 pthread-config)
21369 # Extract the first word of "pthread-config", so it can be a program name with args.
21370set dummy pthread-config; ac_word=$2
21371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21372$as_echo_n "checking for $ac_word... " >&6; }
21373if ${ac_cv_prog_ax_pthread_config+:} false; then :
21374 $as_echo_n "(cached) " >&6
21375else
21376 if test -n "$ax_pthread_config"; then
21377 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
21378else
21379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21380for as_dir in $PATH
21381do
21382 IFS=$as_save_IFS
21383 test -z "$as_dir" && as_dir=.
21384 for ac_exec_ext in '' $ac_executable_extensions; do
21385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21386 ac_cv_prog_ax_pthread_config="yes"
21387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21388 break 2
21389 fi
21390done
21391 done
21392IFS=$as_save_IFS
21393
21394 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
21395fi
21396fi
21397ax_pthread_config=$ac_cv_prog_ax_pthread_config
21398if test -n "$ax_pthread_config"; then
21399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
21400$as_echo "$ax_pthread_config" >&6; }
21401else
21402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21403$as_echo "no" >&6; }
21404fi
21405
21406
21407 if test x"$ax_pthread_config" = xno; then continue; fi
21408 PTHREAD_CFLAGS="`pthread-config --cflags`"
21409 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
21410 ;;
21411
21412 *)
21413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
21414$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
21415 PTHREAD_LIBS="-l$flag"
21416 ;;
21417 esac
21418
21419 save_LIBS="$LIBS"
21420 save_CFLAGS="$CFLAGS"
21421 LIBS="$PTHREAD_LIBS $LIBS"
21422 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
21423
21424 # Check for various functions. We must include pthread.h,
21425 # since some functions may be macros. (On the Sequent, we
21426 # need a special flag -Kthread to make this header compile.)
21427 # We check for pthread_join because it is in -lpthread on IRIX
21428 # while pthread_create is in libc. We check for pthread_attr_init
21429 # due to DEC craziness with -lpthreads. We check for
21430 # pthread_cleanup_push because it is one of the few pthread
21431 # functions on Solaris that doesn't have a non-functional libc stub.
21432 # We try pthread_create on general principles.
21433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21434/* end confdefs.h. */
21435#include <pthread.h>
21436 static void routine(void *a) { a = 0; }
21437 static void *start_routine(void *a) { return a; }
21438int
21439main ()
21440{
21441pthread_t th; pthread_attr_t attr;
21442 pthread_create(&th, 0, start_routine, 0);
21443 pthread_join(th, 0);
21444 pthread_attr_init(&attr);
21445 pthread_cleanup_push(routine, 0);
21446 pthread_cleanup_pop(0) /* ; */
21447 ;
21448 return 0;
21449}
21450_ACEOF
21451if ac_fn_c_try_link "$LINENO"; then :
21452 ax_pthread_ok=yes
21453fi
21454rm -f core conftest.err conftest.$ac_objext \
21455 conftest$ac_exeext conftest.$ac_ext
21456
21457 LIBS="$save_LIBS"
21458 CFLAGS="$save_CFLAGS"
21459
21460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
21461$as_echo "$ax_pthread_ok" >&6; }
21462 if test "x$ax_pthread_ok" = xyes; then
21463 break;
21464 fi
21465
21466 PTHREAD_LIBS=""
21467 PTHREAD_CFLAGS=""
21468done
21469fi
21470
21471# Various other checks:
21472if test "x$ax_pthread_ok" = xyes; then
21473 save_LIBS="$LIBS"
21474 LIBS="$PTHREAD_LIBS $LIBS"
21475 save_CFLAGS="$CFLAGS"
21476 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21477
21478 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
21479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
21480$as_echo_n "checking for joinable pthread attribute... " >&6; }
2ca4dab3
JF
21481if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
21482 $as_echo_n "(cached) " >&6
21483else
21484 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
21485 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
21486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
be2fde87
JF
21487/* end confdefs.h. */
21488#include <pthread.h>
21489int
21490main ()
21491{
21492int attr = $attr; return attr /* ; */
21493 ;
21494 return 0;
21495}
21496_ACEOF
21497if ac_fn_c_try_link "$LINENO"; then :
2ca4dab3 21498 ax_cv_PTHREAD_JOINABLE_ATTR=$attr; break
be2fde87
JF
21499fi
21500rm -f core conftest.err conftest.$ac_objext \
21501 conftest$ac_exeext conftest.$ac_ext
2ca4dab3
JF
21502 done
21503
21504fi
21505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
21506$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
21507 if test "$ax_cv_PTHREAD_JOINABLE_ATTR" != unknown && \
21508 test "$ax_cv_PTHREAD_JOINABLE_ATTR" != PTHREAD_CREATE_JOINABLE; then :
be2fde87
JF
21509
21510cat >>confdefs.h <<_ACEOF
2ca4dab3 21511#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
be2fde87
JF
21512_ACEOF
21513
2ca4dab3 21514fi
be2fde87
JF
21515
21516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
21517$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
2ca4dab3
JF
21518if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
21519 $as_echo_n "(cached) " >&6
21520else
21521 ax_cv_PTHREAD_SPECIAL_FLAGS=no
21522 ax_pthread_special_flags_added=no
21523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21524/* end confdefs.h. */
21525
21526# if !defined(_REENTRANT) && !defined(_THREAD_SAFE)
21527 AX_PTHREAD_NEED_SPECIAL_FLAG
21528# endif
21529
21530_ACEOF
21531if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21532 $EGREP "AX_PTHREAD_NEED_SPECIAL_FLAG" >/dev/null 2>&1; then :
21533 case $host_os in
21534 aix* | freebsd*)
21535 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_THREAD_SAFE"
21536 ;;
21537 darwin* | hpux* | osf* | solaris*)
21538 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_REENTRANT"
21539 ;;
21540 esac
21541
21542fi
21543rm -f conftest*
21544
21545
21546fi
21547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
21548$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
21549 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
21550 test "x$ax_pthread_special_flags_added" != "xyes"; then :
21551 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
21552 ax_pthread_special_flags_added=yes
21553fi
be2fde87
JF
21554
21555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
21556$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
21557if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
21558 $as_echo_n "(cached) " >&6
21559else
2ca4dab3 21560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
be2fde87
JF
21561/* end confdefs.h. */
21562#include <pthread.h>
21563int
21564main ()
21565{
21566int i = PTHREAD_PRIO_INHERIT;
21567 ;
21568 return 0;
21569}
21570_ACEOF
21571if ac_fn_c_try_link "$LINENO"; then :
21572 ax_cv_PTHREAD_PRIO_INHERIT=yes
21573else
21574 ax_cv_PTHREAD_PRIO_INHERIT=no
21575fi
21576rm -f core conftest.err conftest.$ac_objext \
21577 conftest$ac_exeext conftest.$ac_ext
21578
21579fi
21580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
21581$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
21582 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
21583
21584$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
21585
21586fi
21587
21588 LIBS="$save_LIBS"
21589 CFLAGS="$save_CFLAGS"
21590
21591 # More AIX lossage: compile with *_r variant
21592 if test "x$GCC" != xyes; then
21593 case $host_os in
21594 aix*)
21595 case "x/$CC" in #(
21596 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
21597 #handle absolute path differently from PATH based program lookup
21598 case "x$CC" in #(
21599 x/*) :
21600 if as_fn_executable_p ${CC}_r; then :
21601 PTHREAD_CC="${CC}_r"
21602fi ;; #(
21603 *) :
21604 for ac_prog in ${CC}_r
21605do
21606 # Extract the first word of "$ac_prog", so it can be a program name with args.
21607set dummy $ac_prog; ac_word=$2
21608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21609$as_echo_n "checking for $ac_word... " >&6; }
21610if ${ac_cv_prog_PTHREAD_CC+:} false; then :
21611 $as_echo_n "(cached) " >&6
21612else
21613 if test -n "$PTHREAD_CC"; then
21614 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
21615else
21616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21617for as_dir in $PATH
21618do
21619 IFS=$as_save_IFS
21620 test -z "$as_dir" && as_dir=.
21621 for ac_exec_ext in '' $ac_executable_extensions; do
21622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21623 ac_cv_prog_PTHREAD_CC="$ac_prog"
21624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21625 break 2
21626 fi
21627done
21628 done
21629IFS=$as_save_IFS
21630
21631fi
21632fi
21633PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
21634if test -n "$PTHREAD_CC"; then
21635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
21636$as_echo "$PTHREAD_CC" >&6; }
21637else
21638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21639$as_echo "no" >&6; }
21640fi
21641
21642
21643 test -n "$PTHREAD_CC" && break
21644done
21645test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
21646 ;;
21647esac ;; #(
21648 *) :
21649 ;;
21650esac
21651 ;;
21652 esac
21653 fi
21654fi
21655
21656test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
21657
21658
21659
21660
21661
21662# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
21663if test x"$ax_pthread_ok" = xyes; then
21664
21665$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
21666
21667 :
21668else
21669 ax_pthread_ok=no
21670
21671fi
21672ac_ext=cpp
21673ac_cpp='$CXXCPP $CPPFLAGS'
21674ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21675ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21676ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21677
21678
21679
21680
21681
babf7fe8
JF
21682
21683
21684
21685
21686# Check whether --enable-javascript was given.
21687if test "${enable_javascript+set}" = set; then :
21688 enableval=$enable_javascript;
21689 case $enableval in #(
21690 yes) :
21691
21692
21693
21694
21695 cy_save=$LIBS
21696 LIBS=
9918a0fa
JF
21697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
21698$as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
21699if ${ac_cv_search_JSEvaluateScript+:} false; then :
21700 $as_echo_n "(cached) " >&6
21701else
21702 ac_func_search_save_LIBS=$LIBS
21703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21704/* end confdefs.h. */
21705
21706/* Override any GCC internal prototype to avoid an error.
21707 Use char because int might match the return type of a GCC
21708 builtin and then its argument prototype would still apply. */
21709#ifdef __cplusplus
21710extern "C"
21711#endif
21712char JSEvaluateScript ();
21713int
21714main ()
21715{
21716return JSEvaluateScript ();
21717 ;
21718 return 0;
21719}
21720_ACEOF
21721for ac_lib in '' JavaScriptCore; do
21722 if test -z "$ac_lib"; then
21723 ac_res="none required"
21724 else
21725 ac_res=-l$ac_lib
21726 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21727 fi
21728 if ac_fn_cxx_try_link "$LINENO"; then :
21729 ac_cv_search_JSEvaluateScript=$ac_res
21730fi
21731rm -f core conftest.err conftest.$ac_objext \
21732 conftest$ac_exeext
21733 if ${ac_cv_search_JSEvaluateScript+:} false; then :
21734 break
21735fi
21736done
21737if ${ac_cv_search_JSEvaluateScript+:} false; then :
21738
21739else
21740 ac_cv_search_JSEvaluateScript=no
21741fi
21742rm conftest.$ac_ext
21743LIBS=$ac_func_search_save_LIBS
21744fi
21745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
21746$as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
21747ac_res=$ac_cv_search_JSEvaluateScript
21748if test "$ac_res" != no; then :
21749 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21750
21751 CY_EXECUTE=1
21752
21753
21754else
babf7fe8
JF
21755
21756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
21757$as_echo_n "checking for framework JavaScriptCore... " >&6; }
21758if ${ac_cv_framework_JavaScriptCore+:} false; then :
21759 $as_echo_n "(cached) " >&6
21760else
21761
21762 ac_check_framework_save_LIBS=$LIBS
21763 LIBS="-framework JavaScriptCore $LIBS"
21764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21765/* end confdefs.h. */
21766
21767 #include <JavaScriptCore/JSBase.h>
21768
21769int
21770main ()
21771{
21772
21773 JSEvaluateScript(0, 0, 0, 0, 0, 0);
21774
21775 ;
21776 return 0;
21777}
21778_ACEOF
21779if ac_fn_cxx_try_link "$LINENO"; then :
21780
21781 ac_cv_framework_JavaScriptCore=yes
21782
21783else
21784 ac_cv_framework_JavaScriptCore=no
21785fi
21786rm -f core conftest.err conftest.$ac_objext \
21787 conftest$ac_exeext conftest.$ac_ext
21788 LIBS=$ac_check_framework_save_LIBS
21789
21790fi
21791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
21792$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
21793 if test $ac_cv_framework_JavaScriptCore = yes; then :
21794
21795
21796 for element in "-framework JavaScriptCore"; do
21797 haveit=
21798 for x in $LIBS; do
21799
21800 acl_save_prefix="$prefix"
21801 prefix="$acl_final_prefix"
21802 acl_save_exec_prefix="$exec_prefix"
21803 exec_prefix="$acl_final_exec_prefix"
21804 eval x=\"$x\"
21805 exec_prefix="$acl_save_exec_prefix"
21806 prefix="$acl_save_prefix"
21807
21808 if test "X$x" = "X$element"; then
21809 haveit=yes
21810 break
21811 fi
21812 done
21813 if test -z "$haveit"; then
21814 LIBS="${LIBS}${LIBS:+ }$element"
21815 fi
21816 done
21817
21818
21819 CY_EXECUTE=1
21820
21821
21822
21823else
21824
ccb4e34c 21825 for cy_webkit_pkg in "javascriptcoregtk-4.0"; do
babf7fe8
JF
21826
21827pkg_failed=no
21828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
7eda51e0 21829$as_echo_n "checking for WEBKIT... " >&6; }
5053a6d1 21830
7eda51e0
JF
21831if test -n "$WEBKIT_CFLAGS"; then
21832 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
21833 elif test -n "$PKG_CONFIG"; then
21834 if test -n "$PKG_CONFIG" && \
21835 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
21836 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
21837 ac_status=$?
21838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21839 test $ac_status = 0; }; then
21840 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
83c6fec8 21841 test "x$?" != "x0" && pkg_failed=yes
7eda51e0
JF
21842else
21843 pkg_failed=yes
21844fi
21845 else
21846 pkg_failed=untried
21847fi
21848if test -n "$WEBKIT_LIBS"; then
21849 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
21850 elif test -n "$PKG_CONFIG"; then
21851 if test -n "$PKG_CONFIG" && \
21852 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
21853 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
21854 ac_status=$?
21855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21856 test $ac_status = 0; }; then
21857 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
83c6fec8 21858 test "x$?" != "x0" && pkg_failed=yes
7eda51e0
JF
21859else
21860 pkg_failed=yes
21861fi
21862 else
21863 pkg_failed=untried
21864fi
632b71ea 21865
7eda51e0
JF
21866
21867
21868if test $pkg_failed = yes; then
21869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21870$as_echo "no" >&6; }
21871
21872if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21873 _pkg_short_errors_supported=yes
21874else
21875 _pkg_short_errors_supported=no
21876fi
21877 if test $_pkg_short_errors_supported = yes; then
83c6fec8 21878 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
7eda51e0 21879 else
83c6fec8 21880 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
7eda51e0
JF
21881 fi
21882 # Put the nasty error message in config.log where it belongs
21883 echo "$WEBKIT_PKG_ERRORS" >&5
21884
21885 :
21886elif test $pkg_failed = untried; then
21887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21888$as_echo "no" >&6; }
21889 :
21890else
21891 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
21892 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
21893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21894$as_echo "yes" >&6; }
21895
21896 CY_EXECUTE=1
21897
21898
7eda51e0
JF
21899 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
21900 haveit=
d70419f1 21901 for x in $CPPFLAGS; do
5053a6d1 21902
7eda51e0
JF
21903 acl_save_prefix="$prefix"
21904 prefix="$acl_final_prefix"
21905 acl_save_exec_prefix="$exec_prefix"
21906 exec_prefix="$acl_final_exec_prefix"
21907 eval x=\"$x\"
21908 exec_prefix="$acl_save_exec_prefix"
21909 prefix="$acl_save_prefix"
5053a6d1 21910
7eda51e0
JF
21911 if test "X$x" = "X$element"; then
21912 haveit=yes
21913 break
21914 fi
21915 done
21916 if test -z "$haveit"; then
d70419f1 21917 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7eda51e0
JF
21918 fi
21919 done
5053a6d1 21920
5053a6d1 21921
7eda51e0 21922 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
632b71ea 21923 haveit=
5053a6d1 21924 for x in $LIBS; do
9c60689e 21925
632b71ea
DWT
21926 acl_save_prefix="$prefix"
21927 prefix="$acl_final_prefix"
21928 acl_save_exec_prefix="$exec_prefix"
21929 exec_prefix="$acl_final_exec_prefix"
21930 eval x=\"$x\"
21931 exec_prefix="$acl_save_exec_prefix"
21932 prefix="$acl_save_prefix"
21933
21934 if test "X$x" = "X$element"; then
21935 haveit=yes
21936 break
21937 fi
21938 done
21939 if test -z "$haveit"; then
5053a6d1 21940 LIBS="${LIBS}${LIBS:+ }$element"
632b71ea
DWT
21941 fi
21942 done
b128dfee 21943
66170b30 21944
7eda51e0
JF
21945fi; if test "x$CY_EXECUTE" = x1; then break; fi
21946 done
5053a6d1
DWT
21947
21948fi
9918a0fa
JF
21949fi
21950
babf7fe8
JF
21951 LTJAVASCRIPTCORE=$LIBS
21952 LIBS=$cy_save
21953
21954
7eda51e0 21955 ;; #(
babf7fe8 21956 no) :
7eda51e0 21957
babf7fe8
JF
21958 CY_EXECUTE=0
21959 ;; #(
21960 JavaScriptCore) :
c823f118 21961
5053a6d1
DWT
21962
21963
babf7fe8
JF
21964 cy_save=$LIBS
21965 LIBS=
9918a0fa
JF
21966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
21967$as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
21968if ${ac_cv_search_JSEvaluateScript+:} false; then :
21969 $as_echo_n "(cached) " >&6
21970else
21971 ac_func_search_save_LIBS=$LIBS
21972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21973/* end confdefs.h. */
21974
21975/* Override any GCC internal prototype to avoid an error.
21976 Use char because int might match the return type of a GCC
21977 builtin and then its argument prototype would still apply. */
21978#ifdef __cplusplus
21979extern "C"
21980#endif
21981char JSEvaluateScript ();
21982int
21983main ()
21984{
21985return JSEvaluateScript ();
21986 ;
21987 return 0;
21988}
21989_ACEOF
21990for ac_lib in '' JavaScriptCore; do
21991 if test -z "$ac_lib"; then
21992 ac_res="none required"
21993 else
21994 ac_res=-l$ac_lib
21995 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21996 fi
21997 if ac_fn_cxx_try_link "$LINENO"; then :
21998 ac_cv_search_JSEvaluateScript=$ac_res
21999fi
22000rm -f core conftest.err conftest.$ac_objext \
22001 conftest$ac_exeext
22002 if ${ac_cv_search_JSEvaluateScript+:} false; then :
22003 break
22004fi
22005done
22006if ${ac_cv_search_JSEvaluateScript+:} false; then :
22007
22008else
22009 ac_cv_search_JSEvaluateScript=no
22010fi
22011rm conftest.$ac_ext
22012LIBS=$ac_func_search_save_LIBS
22013fi
22014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
22015$as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
22016ac_res=$ac_cv_search_JSEvaluateScript
22017if test "$ac_res" != no; then :
22018 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22019
22020 CY_EXECUTE=1
22021
22022
22023else
babf7fe8 22024
5053a6d1
DWT
22025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
22026$as_echo_n "checking for framework JavaScriptCore... " >&6; }
ee134472 22027if ${ac_cv_framework_JavaScriptCore+:} false; then :
c823f118
DWT
22028 $as_echo_n "(cached) " >&6
22029else
22030
5053a6d1
DWT
22031 ac_check_framework_save_LIBS=$LIBS
22032 LIBS="-framework JavaScriptCore $LIBS"
22033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
632b71ea 22034/* end confdefs.h. */
5053a6d1 22035
7eda51e0 22036 #include <JavaScriptCore/JSBase.h>
5053a6d1 22037
632b71ea
DWT
22038int
22039main ()
22040{
66170b30 22041
7eda51e0 22042 JSEvaluateScript(0, 0, 0, 0, 0, 0);
66170b30 22043
632b71ea
DWT
22044 ;
22045 return 0;
22046}
22047_ACEOF
5053a6d1
DWT
22048if ac_fn_cxx_try_link "$LINENO"; then :
22049
22050 ac_cv_framework_JavaScriptCore=yes
22051
22052else
22053 ac_cv_framework_JavaScriptCore=no
632b71ea
DWT
22054fi
22055rm -f core conftest.err conftest.$ac_objext \
22056 conftest$ac_exeext conftest.$ac_ext
5053a6d1 22057 LIBS=$ac_check_framework_save_LIBS
b128dfee 22058
c823f118 22059fi
5053a6d1
DWT
22060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
22061$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
22062 if test $ac_cv_framework_JavaScriptCore = yes; then :
c823f118
DWT
22063
22064
7eda51e0 22065 for element in "-framework JavaScriptCore"; do
5053a6d1
DWT
22066 haveit=
22067 for x in $LIBS; do
22068
22069 acl_save_prefix="$prefix"
22070 prefix="$acl_final_prefix"
22071 acl_save_exec_prefix="$exec_prefix"
22072 exec_prefix="$acl_final_exec_prefix"
22073 eval x=\"$x\"
22074 exec_prefix="$acl_save_exec_prefix"
22075 prefix="$acl_save_prefix"
22076
22077 if test "X$x" = "X$element"; then
22078 haveit=yes
22079 break
22080 fi
22081 done
22082 if test -z "$haveit"; then
22083 LIBS="${LIBS}${LIBS:+ }$element"
22084 fi
22085 done
c823f118 22086
66170b30 22087
7eda51e0
JF
22088 CY_EXECUTE=1
22089
22090
22091
22092else
22093
ccb4e34c 22094 for cy_webkit_pkg in "javascriptcoregtk-4.0"; do
7eda51e0
JF
22095
22096pkg_failed=no
22097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
22098$as_echo_n "checking for WEBKIT... " >&6; }
22099
22100if test -n "$WEBKIT_CFLAGS"; then
22101 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
22102 elif test -n "$PKG_CONFIG"; then
22103 if test -n "$PKG_CONFIG" && \
22104 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
22105 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
22106 ac_status=$?
22107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22108 test $ac_status = 0; }; then
22109 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
83c6fec8 22110 test "x$?" != "x0" && pkg_failed=yes
7eda51e0
JF
22111else
22112 pkg_failed=yes
22113fi
22114 else
22115 pkg_failed=untried
22116fi
22117if test -n "$WEBKIT_LIBS"; then
22118 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
22119 elif test -n "$PKG_CONFIG"; then
22120 if test -n "$PKG_CONFIG" && \
22121 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
22122 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
22123 ac_status=$?
22124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22125 test $ac_status = 0; }; then
22126 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
83c6fec8 22127 test "x$?" != "x0" && pkg_failed=yes
7eda51e0
JF
22128else
22129 pkg_failed=yes
22130fi
22131 else
22132 pkg_failed=untried
22133fi
22134
66170b30
JF
22135
22136
7eda51e0
JF
22137if test $pkg_failed = yes; then
22138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22139$as_echo "no" >&6; }
b128dfee 22140
7eda51e0
JF
22141if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22142 _pkg_short_errors_supported=yes
22143else
22144 _pkg_short_errors_supported=no
632b71ea 22145fi
7eda51e0 22146 if test $_pkg_short_errors_supported = yes; then
83c6fec8 22147 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
7eda51e0 22148 else
83c6fec8 22149 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
7eda51e0
JF
22150 fi
22151 # Put the nasty error message in config.log where it belongs
22152 echo "$WEBKIT_PKG_ERRORS" >&5
c823f118 22153
7eda51e0
JF
22154 :
22155elif test $pkg_failed = untried; then
22156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22157$as_echo "no" >&6; }
22158 :
5053a6d1
DWT
22159else
22160 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
22161 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
22162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22163$as_echo "yes" >&6; }
c823f118 22164
7eda51e0
JF
22165 CY_EXECUTE=1
22166
66170b30 22167
7eda51e0 22168 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
5053a6d1 22169 haveit=
d70419f1 22170 for x in $CPPFLAGS; do
c823f118 22171
5053a6d1
DWT
22172 acl_save_prefix="$prefix"
22173 prefix="$acl_final_prefix"
22174 acl_save_exec_prefix="$exec_prefix"
22175 exec_prefix="$acl_final_exec_prefix"
22176 eval x=\"$x\"
22177 exec_prefix="$acl_save_exec_prefix"
22178 prefix="$acl_save_prefix"
c823f118 22179
5053a6d1
DWT
22180 if test "X$x" = "X$element"; then
22181 haveit=yes
22182 break
22183 fi
22184 done
22185 if test -z "$haveit"; then
d70419f1 22186 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5053a6d1
DWT
22187 fi
22188 done
c823f118 22189
b66977f1 22190
7eda51e0 22191 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
5053a6d1
DWT
22192 haveit=
22193 for x in $LIBS; do
22194
22195 acl_save_prefix="$prefix"
22196 prefix="$acl_final_prefix"
22197 acl_save_exec_prefix="$exec_prefix"
22198 exec_prefix="$acl_final_exec_prefix"
22199 eval x=\"$x\"
22200 exec_prefix="$acl_save_exec_prefix"
22201 prefix="$acl_save_prefix"
22202
22203 if test "X$x" = "X$element"; then
22204 haveit=yes
22205 break
22206 fi
22207 done
22208 if test -z "$haveit"; then
22209 LIBS="${LIBS}${LIBS:+ }$element"
22210 fi
22211 done
22212
22213
7eda51e0
JF
22214fi; if test "x$CY_EXECUTE" = x1; then break; fi
22215 done
22216
5053a6d1 22217fi
9918a0fa
JF
22218fi
22219
babf7fe8
JF
22220 LTJAVASCRIPTCORE=$LIBS
22221 LIBS=$cy_save
5053a6d1 22222
b66977f1 22223
babf7fe8
JF
22224 ;; #(
22225 *) :
22226 as_fn_error $? "Unknown JavaScript engine: $enableval" "$LINENO" 5 ;;
22227esac
b66977f1 22228
babf7fe8 22229else
b66977f1 22230
7eda51e0 22231
7eda51e0 22232
babf7fe8
JF
22233 cy_save=$LIBS
22234 LIBS=
9918a0fa
JF
22235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JSEvaluateScript" >&5
22236$as_echo_n "checking for library containing JSEvaluateScript... " >&6; }
22237if ${ac_cv_search_JSEvaluateScript+:} false; then :
22238 $as_echo_n "(cached) " >&6
22239else
22240 ac_func_search_save_LIBS=$LIBS
22241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22242/* end confdefs.h. */
22243
22244/* Override any GCC internal prototype to avoid an error.
22245 Use char because int might match the return type of a GCC
22246 builtin and then its argument prototype would still apply. */
22247#ifdef __cplusplus
22248extern "C"
22249#endif
22250char JSEvaluateScript ();
22251int
22252main ()
22253{
22254return JSEvaluateScript ();
22255 ;
22256 return 0;
22257}
22258_ACEOF
22259for ac_lib in '' JavaScriptCore; do
22260 if test -z "$ac_lib"; then
22261 ac_res="none required"
22262 else
22263 ac_res=-l$ac_lib
22264 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22265 fi
22266 if ac_fn_cxx_try_link "$LINENO"; then :
22267 ac_cv_search_JSEvaluateScript=$ac_res
22268fi
22269rm -f core conftest.err conftest.$ac_objext \
22270 conftest$ac_exeext
22271 if ${ac_cv_search_JSEvaluateScript+:} false; then :
22272 break
22273fi
22274done
22275if ${ac_cv_search_JSEvaluateScript+:} false; then :
22276
22277else
22278 ac_cv_search_JSEvaluateScript=no
22279fi
22280rm conftest.$ac_ext
22281LIBS=$ac_func_search_save_LIBS
22282fi
22283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JSEvaluateScript" >&5
22284$as_echo "$ac_cv_search_JSEvaluateScript" >&6; }
22285ac_res=$ac_cv_search_JSEvaluateScript
22286if test "$ac_res" != no; then :
22287 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22288
22289 CY_EXECUTE=1
22290
22291
22292else
7eda51e0 22293
babf7fe8
JF
22294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaScriptCore" >&5
22295$as_echo_n "checking for framework JavaScriptCore... " >&6; }
22296if ${ac_cv_framework_JavaScriptCore+:} false; then :
22297 $as_echo_n "(cached) " >&6
22298else
7eda51e0 22299
babf7fe8
JF
22300 ac_check_framework_save_LIBS=$LIBS
22301 LIBS="-framework JavaScriptCore $LIBS"
22302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22303/* end confdefs.h. */
7eda51e0 22304
babf7fe8 22305 #include <JavaScriptCore/JSBase.h>
7eda51e0 22306
babf7fe8
JF
22307int
22308main ()
22309{
7eda51e0 22310
babf7fe8 22311 JSEvaluateScript(0, 0, 0, 0, 0, 0);
7eda51e0 22312
babf7fe8
JF
22313 ;
22314 return 0;
22315}
22316_ACEOF
22317if ac_fn_cxx_try_link "$LINENO"; then :
7eda51e0 22318
babf7fe8 22319 ac_cv_framework_JavaScriptCore=yes
b66977f1 22320
b66977f1 22321else
babf7fe8
JF
22322 ac_cv_framework_JavaScriptCore=no
22323fi
22324rm -f core conftest.err conftest.$ac_objext \
22325 conftest$ac_exeext conftest.$ac_ext
22326 LIBS=$ac_check_framework_save_LIBS
7eda51e0 22327
babf7fe8
JF
22328fi
22329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaScriptCore" >&5
22330$as_echo "$ac_cv_framework_JavaScriptCore" >&6; }
22331 if test $ac_cv_framework_JavaScriptCore = yes; then :
7eda51e0 22332
7eda51e0 22333
babf7fe8
JF
22334 for element in "-framework JavaScriptCore"; do
22335 haveit=
22336 for x in $LIBS; do
22337
22338 acl_save_prefix="$prefix"
22339 prefix="$acl_final_prefix"
22340 acl_save_exec_prefix="$exec_prefix"
22341 exec_prefix="$acl_final_exec_prefix"
22342 eval x=\"$x\"
22343 exec_prefix="$acl_save_exec_prefix"
22344 prefix="$acl_save_prefix"
22345
22346 if test "X$x" = "X$element"; then
22347 haveit=yes
22348 break
22349 fi
22350 done
22351 if test -z "$haveit"; then
22352 LIBS="${LIBS}${LIBS:+ }$element"
22353 fi
22354 done
22355
22356
22357 CY_EXECUTE=1
22358
22359
22360
22361else
22362
ccb4e34c 22363 for cy_webkit_pkg in "javascriptcoregtk-4.0"; do
babf7fe8
JF
22364
22365pkg_failed=no
22366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5
22367$as_echo_n "checking for WEBKIT... " >&6; }
22368
22369if test -n "$WEBKIT_CFLAGS"; then
22370 pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS"
22371 elif test -n "$PKG_CONFIG"; then
22372 if test -n "$PKG_CONFIG" && \
22373 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
22374 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
22375 ac_status=$?
22376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22377 test $ac_status = 0; }; then
22378 pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$cy_webkit_pkg" 2>/dev/null`
83c6fec8 22379 test "x$?" != "x0" && pkg_failed=yes
babf7fe8
JF
22380else
22381 pkg_failed=yes
22382fi
22383 else
22384 pkg_failed=untried
22385fi
22386if test -n "$WEBKIT_LIBS"; then
22387 pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS"
22388 elif test -n "$PKG_CONFIG"; then
22389 if test -n "$PKG_CONFIG" && \
22390 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$cy_webkit_pkg\""; } >&5
22391 ($PKG_CONFIG --exists --print-errors "$cy_webkit_pkg") 2>&5
22392 ac_status=$?
22393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22394 test $ac_status = 0; }; then
22395 pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$cy_webkit_pkg" 2>/dev/null`
83c6fec8 22396 test "x$?" != "x0" && pkg_failed=yes
babf7fe8
JF
22397else
22398 pkg_failed=yes
22399fi
22400 else
22401 pkg_failed=untried
22402fi
22403
22404
22405
22406if test $pkg_failed = yes; then
22407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22408$as_echo "no" >&6; }
22409
22410if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22411 _pkg_short_errors_supported=yes
22412else
22413 _pkg_short_errors_supported=no
22414fi
22415 if test $_pkg_short_errors_supported = yes; then
83c6fec8 22416 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
babf7fe8 22417 else
83c6fec8 22418 WEBKIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$cy_webkit_pkg" 2>&1`
babf7fe8
JF
22419 fi
22420 # Put the nasty error message in config.log where it belongs
22421 echo "$WEBKIT_PKG_ERRORS" >&5
22422
22423 :
22424elif test $pkg_failed = untried; then
22425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22426$as_echo "no" >&6; }
22427 :
22428else
22429 WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS
22430 WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS
22431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22432$as_echo "yes" >&6; }
22433
22434 CY_EXECUTE=1
22435
22436
22437 for element in `$PKG_CONFIG --cflags $cy_webkit_pkg`; do
22438 haveit=
22439 for x in $CPPFLAGS; do
22440
22441 acl_save_prefix="$prefix"
22442 prefix="$acl_final_prefix"
22443 acl_save_exec_prefix="$exec_prefix"
22444 exec_prefix="$acl_final_exec_prefix"
22445 eval x=\"$x\"
22446 exec_prefix="$acl_save_exec_prefix"
22447 prefix="$acl_save_prefix"
22448
22449 if test "X$x" = "X$element"; then
22450 haveit=yes
22451 break
22452 fi
22453 done
22454 if test -z "$haveit"; then
22455 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22456 fi
22457 done
22458
22459
22460 for element in `$PKG_CONFIG --libs $cy_webkit_pkg`; do
22461 haveit=
22462 for x in $LIBS; do
22463
22464 acl_save_prefix="$prefix"
22465 prefix="$acl_final_prefix"
22466 acl_save_exec_prefix="$exec_prefix"
22467 exec_prefix="$acl_final_exec_prefix"
22468 eval x=\"$x\"
22469 exec_prefix="$acl_save_exec_prefix"
22470 prefix="$acl_save_prefix"
22471
22472 if test "X$x" = "X$element"; then
22473 haveit=yes
22474 break
22475 fi
22476 done
22477 if test -z "$haveit"; then
22478 LIBS="${LIBS}${LIBS:+ }$element"
22479 fi
22480 done
22481
22482
22483fi; if test "x$CY_EXECUTE" = x1; then break; fi
22484 done
22485
22486fi
9918a0fa
JF
22487fi
22488
babf7fe8
JF
22489 LTJAVASCRIPTCORE=$LIBS
22490 LIBS=$cy_save
22491
22492
22493
22494fi
22495
22496
a93f15c0
JF
22497# Check whether --enable-console was given.
22498if test "${enable_console+set}" = set; then :
22499 enableval=$enable_console;
22500fi
22501
22502 if test "x$enable_console" != "xno"; then
22503 CY_CONSOLE_TRUE=
22504 CY_CONSOLE_FALSE='#'
22505else
22506 CY_CONSOLE_TRUE='#'
22507 CY_CONSOLE_FALSE=
22508fi
22509
22510
a4287117
JF
22511# Check whether --enable-attach was given.
22512if test "${enable_attach+set}" = set; then :
22513 enableval=$enable_attach;
22514fi
22515
22516 if test "x$enable_attach" != "xno" -a "x$CY_EXECUTE" = x1; then
22517 CY_ATTACH_TRUE=
22518 CY_ATTACH_FALSE='#'
22519else
22520 CY_ATTACH_TRUE='#'
22521 CY_ATTACH_FALSE=
22522fi
22523
22524
7eda51e0
JF
22525
22526
22527 if test "x$CY_EXECUTE" = x1; then
22528 CY_EXECUTE_TRUE=
22529 CY_EXECUTE_FALSE='#'
b66977f1 22530else
7eda51e0
JF
22531 CY_EXECUTE_TRUE='#'
22532 CY_EXECUTE_FALSE=
b66977f1
DWT
22533fi
22534
22535
8d20f0f1
JF
22536if test "x$CY_SYSTEM" = x; then CY_SYSTEM=1; fi
22537
22538
b66977f1 22539
7eda51e0
JF
22540case $CY_EXECUTE in #(
22541 1) :
22542
ae1b611e
JF
22543
22544 cy_save=$LIBS
22545 LIBS=
22546 for ac_header in uv.h
22547do :
22548 ac_fn_cxx_check_header_mongrel "$LINENO" "uv.h" "ac_cv_header_uv_h" "$ac_includes_default"
22549if test "x$ac_cv_header_uv_h" = xyes; then :
22550 cat >>confdefs.h <<_ACEOF
22551#define HAVE_UV_H 1
22552_ACEOF
22553
22554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uv_loop_init" >&5
22555$as_echo_n "checking for library containing uv_loop_init... " >&6; }
22556if ${ac_cv_search_uv_loop_init+:} false; then :
22557 $as_echo_n "(cached) " >&6
22558else
22559 ac_func_search_save_LIBS=$LIBS
22560cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22561/* end confdefs.h. */
22562
22563/* Override any GCC internal prototype to avoid an error.
22564 Use char because int might match the return type of a GCC
22565 builtin and then its argument prototype would still apply. */
22566#ifdef __cplusplus
22567extern "C"
22568#endif
22569char uv_loop_init ();
22570int
22571main ()
22572{
22573return uv_loop_init ();
22574 ;
22575 return 0;
22576}
22577_ACEOF
22578for ac_lib in '' uv; do
22579 if test -z "$ac_lib"; then
22580 ac_res="none required"
22581 else
22582 ac_res=-l$ac_lib
22583 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22584 fi
22585 if ac_fn_cxx_try_link "$LINENO"; then :
22586 ac_cv_search_uv_loop_init=$ac_res
22587fi
22588rm -f core conftest.err conftest.$ac_objext \
22589 conftest$ac_exeext
22590 if ${ac_cv_search_uv_loop_init+:} false; then :
22591 break
22592fi
22593done
22594if ${ac_cv_search_uv_loop_init+:} false; then :
22595
22596else
22597 ac_cv_search_uv_loop_init=no
22598fi
22599rm conftest.$ac_ext
22600LIBS=$ac_func_search_save_LIBS
22601fi
22602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uv_loop_init" >&5
22603$as_echo "$ac_cv_search_uv_loop_init" >&6; }
22604ac_res=$ac_cv_search_uv_loop_init
22605if test "$ac_res" != no; then :
22606 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22607
22608fi
22609
22610
22611fi
22612
22613done
22614
22615 LTLIBUV=$LIBS
22616 LIBS=$cy_save
22617
22618
22619
8d20f0f1
JF
22620
22621 cy_save=$LIBS
22622 LIBS=
22623 for ac_header in sqlite3.h
22624do :
22625 ac_fn_cxx_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
22626if test "x$ac_cv_header_sqlite3_h" = xyes; then :
22627 cat >>confdefs.h <<_ACEOF
22628#define HAVE_SQLITE3_H 1
22629_ACEOF
22630
22631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqlite3_open_v2" >&5
22632$as_echo_n "checking for library containing sqlite3_open_v2... " >&6; }
22633if ${ac_cv_search_sqlite3_open_v2+:} false; then :
22634 $as_echo_n "(cached) " >&6
22635else
22636 ac_func_search_save_LIBS=$LIBS
22637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22638/* end confdefs.h. */
22639
22640/* Override any GCC internal prototype to avoid an error.
22641 Use char because int might match the return type of a GCC
22642 builtin and then its argument prototype would still apply. */
22643#ifdef __cplusplus
22644extern "C"
22645#endif
22646char sqlite3_open_v2 ();
22647int
22648main ()
22649{
22650return sqlite3_open_v2 ();
22651 ;
22652 return 0;
22653}
22654_ACEOF
22655for ac_lib in '' sqlite3; do
22656 if test -z "$ac_lib"; then
22657 ac_res="none required"
22658 else
22659 ac_res=-l$ac_lib
22660 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22661 fi
22662 if ac_fn_cxx_try_link "$LINENO"; then :
22663 ac_cv_search_sqlite3_open_v2=$ac_res
22664fi
22665rm -f core conftest.err conftest.$ac_objext \
22666 conftest$ac_exeext
22667 if ${ac_cv_search_sqlite3_open_v2+:} false; then :
22668 break
22669fi
22670done
22671if ${ac_cv_search_sqlite3_open_v2+:} false; then :
22672
22673else
22674 ac_cv_search_sqlite3_open_v2=no
22675fi
22676rm conftest.$ac_ext
22677LIBS=$ac_func_search_save_LIBS
22678fi
22679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqlite3_open_v2" >&5
22680$as_echo "$ac_cv_search_sqlite3_open_v2" >&6; }
22681ac_res=$ac_cv_search_sqlite3_open_v2
22682if test "$ac_res" != no; then :
22683 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22684
22685fi
22686
22687
22688fi
22689
22690done
22691
22692 LTLIBSQLITE3=$LIBS
22693 LIBS=$cy_save
22694
22695
22696
7eda51e0
JF
22697 for ac_header in ffi.h ffi/ffi.h
22698do :
22699 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22700ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22701if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22702 cat >>confdefs.h <<_ACEOF
22703#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22704_ACEOF
22705 break
b66977f1 22706fi
7eda51e0
JF
22707
22708done
22709
296ee9a6
JF
22710
22711
22712 cy_save=$LIBS
22713 LIBS=
7eda51e0 22714 if test "x$ac_cv_header_ffi_h" = xno && test "x$ac_cv_header_ffi_ffi_h" = xno; then :
b66977f1 22715
b66977f1
DWT
22716
22717
22718pkg_failed=no
7eda51e0
JF
22719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
22720$as_echo_n "checking for LIBFFI... " >&6; }
b66977f1 22721
7eda51e0
JF
22722if test -n "$LIBFFI_CFLAGS"; then
22723 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
12833ad8
JF
22724 elif test -n "$PKG_CONFIG"; then
22725 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
22726 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
22727 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
22728 ac_status=$?
22729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22730 test $ac_status = 0; }; then
7eda51e0 22731 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
83c6fec8 22732 test "x$?" != "x0" && pkg_failed=yes
b66977f1
DWT
22733else
22734 pkg_failed=yes
22735fi
12833ad8
JF
22736 else
22737 pkg_failed=untried
b66977f1 22738fi
7eda51e0
JF
22739if test -n "$LIBFFI_LIBS"; then
22740 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
12833ad8
JF
22741 elif test -n "$PKG_CONFIG"; then
22742 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
22743 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
22744 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
22745 ac_status=$?
22746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22747 test $ac_status = 0; }; then
7eda51e0 22748 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
83c6fec8 22749 test "x$?" != "x0" && pkg_failed=yes
b66977f1
DWT
22750else
22751 pkg_failed=yes
22752fi
12833ad8
JF
22753 else
22754 pkg_failed=untried
b66977f1
DWT
22755fi
22756
22757
22758
22759if test $pkg_failed = yes; then
12833ad8
JF
22760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22761$as_echo "no" >&6; }
b66977f1
DWT
22762
22763if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22764 _pkg_short_errors_supported=yes
22765else
22766 _pkg_short_errors_supported=no
22767fi
22768 if test $_pkg_short_errors_supported = yes; then
83c6fec8 22769 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
b66977f1 22770 else
83c6fec8 22771 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
b66977f1
DWT
22772 fi
22773 # Put the nasty error message in config.log where it belongs
7eda51e0 22774 echo "$LIBFFI_PKG_ERRORS" >&5
b66977f1 22775
7eda51e0
JF
22776 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
22777elif test $pkg_failed = untried; then
22778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22779$as_echo "no" >&6; }
22780 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
22781else
22782 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
22783 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
22784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22785$as_echo "yes" >&6; }
b66977f1
DWT
22786
22787
7eda51e0 22788 for element in `$PKG_CONFIG --cflags libffi`; do
b66977f1 22789 haveit=
d70419f1 22790 for x in $CPPFLAGS; do
b66977f1
DWT
22791
22792 acl_save_prefix="$prefix"
22793 prefix="$acl_final_prefix"
22794 acl_save_exec_prefix="$exec_prefix"
22795 exec_prefix="$acl_final_exec_prefix"
22796 eval x=\"$x\"
22797 exec_prefix="$acl_save_exec_prefix"
22798 prefix="$acl_save_prefix"
22799
22800 if test "X$x" = "X$element"; then
22801 haveit=yes
22802 break
22803 fi
22804 done
22805 if test -z "$haveit"; then
d70419f1 22806 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
b66977f1
DWT
22807 fi
22808 done
22809
22810
7eda51e0 22811 for element in `$PKG_CONFIG --libs libffi`; do
b66977f1
DWT
22812 haveit=
22813 for x in $LIBS; do
22814
22815 acl_save_prefix="$prefix"
22816 prefix="$acl_final_prefix"
22817 acl_save_exec_prefix="$exec_prefix"
22818 exec_prefix="$acl_final_exec_prefix"
22819 eval x=\"$x\"
22820 exec_prefix="$acl_save_exec_prefix"
22821 prefix="$acl_save_prefix"
22822
22823 if test "X$x" = "X$element"; then
22824 haveit=yes
22825 break
22826 fi
22827 done
22828 if test -z "$haveit"; then
22829 LIBS="${LIBS}${LIBS:+ }$element"
22830 fi
22831 done
22832
22833
22834fi
22835
7eda51e0
JF
22836else
22837
22838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
22839$as_echo_n "checking for library containing ffi_call... " >&6; }
22840if ${ac_cv_search_ffi_call+:} false; then :
22841 $as_echo_n "(cached) " >&6
22842else
22843 ac_func_search_save_LIBS=$LIBS
22844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22845/* end confdefs.h. */
22846
22847/* Override any GCC internal prototype to avoid an error.
22848 Use char because int might match the return type of a GCC
22849 builtin and then its argument prototype would still apply. */
22850#ifdef __cplusplus
22851extern "C"
22852#endif
22853char ffi_call ();
22854int
22855main ()
22856{
22857return ffi_call ();
22858 ;
22859 return 0;
22860}
22861_ACEOF
22862for ac_lib in '' ffi; do
22863 if test -z "$ac_lib"; then
22864 ac_res="none required"
22865 else
22866 ac_res=-l$ac_lib
22867 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22868 fi
22869 if ac_fn_cxx_try_link "$LINENO"; then :
22870 ac_cv_search_ffi_call=$ac_res
22871fi
22872rm -f core conftest.err conftest.$ac_objext \
22873 conftest$ac_exeext
22874 if ${ac_cv_search_ffi_call+:} false; then :
22875 break
22876fi
22877done
22878if ${ac_cv_search_ffi_call+:} false; then :
22879
22880else
22881 ac_cv_search_ffi_call=no
22882fi
22883rm conftest.$ac_ext
22884LIBS=$ac_func_search_save_LIBS
22885fi
22886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
22887$as_echo "$ac_cv_search_ffi_call" >&6; }
22888ac_res=$ac_cv_search_ffi_call
22889if test "$ac_res" != no; then :
22890 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22891
22892fi
22893
22894 case $ac_cv_search_ffi_call in #(
22895 no) :
b66977f1
DWT
22896
22897
22898pkg_failed=no
7eda51e0
JF
22899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
22900$as_echo_n "checking for LIBFFI... " >&6; }
b66977f1 22901
7eda51e0
JF
22902if test -n "$LIBFFI_CFLAGS"; then
22903 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
12833ad8
JF
22904 elif test -n "$PKG_CONFIG"; then
22905 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
22906 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
22907 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
22908 ac_status=$?
22909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22910 test $ac_status = 0; }; then
7eda51e0 22911 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
83c6fec8 22912 test "x$?" != "x0" && pkg_failed=yes
b66977f1
DWT
22913else
22914 pkg_failed=yes
22915fi
12833ad8
JF
22916 else
22917 pkg_failed=untried
b66977f1 22918fi
7eda51e0
JF
22919if test -n "$LIBFFI_LIBS"; then
22920 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
12833ad8
JF
22921 elif test -n "$PKG_CONFIG"; then
22922 if test -n "$PKG_CONFIG" && \
7eda51e0
JF
22923 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
22924 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
b66977f1
DWT
22925 ac_status=$?
22926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22927 test $ac_status = 0; }; then
7eda51e0 22928 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
83c6fec8 22929 test "x$?" != "x0" && pkg_failed=yes
b66977f1
DWT
22930else
22931 pkg_failed=yes
22932fi
12833ad8
JF
22933 else
22934 pkg_failed=untried
b66977f1
DWT
22935fi
22936
22937
22938
22939if test $pkg_failed = yes; then
12833ad8
JF
22940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22941$as_echo "no" >&6; }
b66977f1
DWT
22942
22943if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22944 _pkg_short_errors_supported=yes
22945else
22946 _pkg_short_errors_supported=no
22947fi
22948 if test $_pkg_short_errors_supported = yes; then
83c6fec8 22949 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
b66977f1 22950 else
83c6fec8 22951 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
b66977f1
DWT
22952 fi
22953 # Put the nasty error message in config.log where it belongs
7eda51e0 22954 echo "$LIBFFI_PKG_ERRORS" >&5
b66977f1 22955
7eda51e0
JF
22956 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
22957elif test $pkg_failed = untried; then
22958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22959$as_echo "no" >&6; }
22960 as_fn_error $? "missing \"libffi\"" "$LINENO" 5
b66977f1 22961else
7eda51e0
JF
22962 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
22963 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
22964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22965$as_echo "yes" >&6; }
b66977f1 22966
b66977f1 22967
7eda51e0 22968 for element in `$PKG_CONFIG --cflags libffi`; do
b66977f1 22969 haveit=
d70419f1 22970 for x in $CPPFLAGS; do
7eda51e0
JF
22971
22972 acl_save_prefix="$prefix"
22973 prefix="$acl_final_prefix"
22974 acl_save_exec_prefix="$exec_prefix"
22975 exec_prefix="$acl_final_exec_prefix"
22976 eval x=\"$x\"
22977 exec_prefix="$acl_save_exec_prefix"
22978 prefix="$acl_save_prefix"
22979
22980 if test "X$x" = "X$element"; then
22981 haveit=yes
22982 break
22983 fi
22984 done
22985 if test -z "$haveit"; then
d70419f1 22986 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7eda51e0
JF
22987 fi
22988 done
22989
22990
7eda51e0
JF
22991 for element in `$PKG_CONFIG --libs libffi`; do
22992 haveit=
22993 for x in $LIBS; do
22994
22995 acl_save_prefix="$prefix"
22996 prefix="$acl_final_prefix"
22997 acl_save_exec_prefix="$exec_prefix"
22998 exec_prefix="$acl_final_exec_prefix"
22999 eval x=\"$x\"
23000 exec_prefix="$acl_save_exec_prefix"
23001 prefix="$acl_save_prefix"
23002
23003 if test "X$x" = "X$element"; then
23004 haveit=yes
23005 break
23006 fi
23007 done
23008 if test -z "$haveit"; then
23009 LIBS="${LIBS}${LIBS:+ }$element"
23010 fi
23011 done
23012
23013
23014fi ;; #(
23015 *) :
23016 ;;
23017esac
574d4720
JF
23018 for ac_func in ffi_prep_cif_var
23019do :
23020 ac_fn_cxx_check_func "$LINENO" "ffi_prep_cif_var" "ac_cv_func_ffi_prep_cif_var"
23021if test "x$ac_cv_func_ffi_prep_cif_var" = xyes; then :
23022 cat >>confdefs.h <<_ACEOF
23023#define HAVE_FFI_PREP_CIF_VAR 1
23024_ACEOF
23025
23026fi
23027done
23028
7eda51e0
JF
23029
23030fi
296ee9a6
JF
23031 LTLIBFFI=$LIBS
23032 LIBS=$cy_save
23033
23034
7eda51e0 23035
def90846
JF
23036
23037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaVM" >&5
23038$as_echo_n "checking for framework JavaVM... " >&6; }
23039if ${ac_cv_framework_JavaVM+:} false; then :
23040 $as_echo_n "(cached) " >&6
23041else
23042
23043 ac_check_framework_save_LIBS=$LIBS
23044 LIBS="-framework JavaVM $LIBS"
23045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23046/* end confdefs.h. */
23047
23048 #include <JavaVM/jni.h>
23049
23050int
23051main ()
23052{
23053JNI_GetCreatedJavaVMs(NULL, 0, NULL);
23054 ;
23055 return 0;
23056}
23057_ACEOF
23058if ac_fn_cxx_try_link "$LINENO"; then :
23059
23060 ac_cv_framework_JavaVM=yes
23061
23062else
23063 ac_cv_framework_JavaVM=no
23064fi
23065rm -f core conftest.err conftest.$ac_objext \
23066 conftest$ac_exeext conftest.$ac_ext
23067 LIBS=$ac_check_framework_save_LIBS
23068
23069fi
23070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaVM" >&5
23071$as_echo "$ac_cv_framework_JavaVM" >&6; }
23072 if test $ac_cv_framework_JavaVM = yes; then :
23073
23074
23075 for element in "-framework JavaVM"; do
23076 haveit=
23077 for x in $LIBS; do
23078
23079 acl_save_prefix="$prefix"
23080 prefix="$acl_final_prefix"
23081 acl_save_exec_prefix="$exec_prefix"
23082 exec_prefix="$acl_final_exec_prefix"
23083 eval x=\"$x\"
23084 exec_prefix="$acl_save_exec_prefix"
23085 prefix="$acl_save_prefix"
23086
23087 if test "X$x" = "X$element"; then
23088 haveit=yes
23089 break
23090 fi
23091 done
23092 if test -z "$haveit"; then
23093 LIBS="${LIBS}${LIBS:+ }$element"
23094 fi
23095 done
23096
23097
23098 CY_JAVA=1
23099
23100
23101
23102else
23103 ac_fn_cxx_check_header_mongrel "$LINENO" "jni.h" "ac_cv_header_jni_h" "$ac_includes_default"
39ed1631
JF
23104if test "x$ac_cv_header_jni_h" = xyes; then :
23105
23106 CY_JAVA=1
23107
23108
23109 cy_save=$LIBS
23110 LIBS=
23111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing JNI_GetCreatedJavaVMs" >&5
23112$as_echo_n "checking for library containing JNI_GetCreatedJavaVMs... " >&6; }
23113if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
23114 $as_echo_n "(cached) " >&6
23115else
23116 ac_func_search_save_LIBS=$LIBS
23117cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23118/* end confdefs.h. */
23119
23120/* Override any GCC internal prototype to avoid an error.
23121 Use char because int might match the return type of a GCC
23122 builtin and then its argument prototype would still apply. */
23123#ifdef __cplusplus
23124extern "C"
23125#endif
23126char JNI_GetCreatedJavaVMs ();
23127int
23128main ()
23129{
23130return JNI_GetCreatedJavaVMs ();
23131 ;
23132 return 0;
23133}
23134_ACEOF
23135for ac_lib in '' dvm; do
23136 if test -z "$ac_lib"; then
23137 ac_res="none required"
23138 else
23139 ac_res=-l$ac_lib
23140 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23141 fi
23142 if ac_fn_cxx_try_link "$LINENO"; then :
23143 ac_cv_search_JNI_GetCreatedJavaVMs=$ac_res
23144fi
23145rm -f core conftest.err conftest.$ac_objext \
23146 conftest$ac_exeext
23147 if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
23148 break
23149fi
23150done
23151if ${ac_cv_search_JNI_GetCreatedJavaVMs+:} false; then :
23152
23153else
23154 ac_cv_search_JNI_GetCreatedJavaVMs=no
23155fi
23156rm conftest.$ac_ext
23157LIBS=$ac_func_search_save_LIBS
23158fi
23159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_JNI_GetCreatedJavaVMs" >&5
23160$as_echo "$ac_cv_search_JNI_GetCreatedJavaVMs" >&6; }
23161ac_res=$ac_cv_search_JNI_GetCreatedJavaVMs
23162if test "$ac_res" != no; then :
23163 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23164
23165
23166fi
23167
23168 LTJAVA=$LIBS
23169 LIBS=$cy_save
23170
23171
23172
23173else
23174
23175 CY_JAVA=0
23176
23177
23178fi
23179
23180
def90846 23181fi
39ed1631 23182
7eda51e0
JF
23183 ac_ext=mm
23184ac_cpp='$OBJCXXCPP $CPPFLAGS'
23185ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23186ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23187ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu
23188
23189
23190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we really have Objective C++" >&5
23191$as_echo_n "checking if we really have Objective C++... " >&6; }
23192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23193/* end confdefs.h. */
23194
23195_ACEOF
23196if ac_fn_objcxx_try_compile "$LINENO"; then :
23197
23198 CY_OBJECTIVEC=1
23199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23200$as_echo "yes" >&6; }
23201
23202else
23203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833ad8 23204$as_echo "no" >&6; }
7eda51e0
JF
23205fi
23206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b66977f1 23207
7eda51e0 23208 if test "x$CY_OBJECTIVEC" = x1; then :
b66977f1 23209
7eda51e0 23210
babf7fe8
JF
23211 cy_save=$LIBS
23212 LIBS=
23213
7eda51e0
JF
23214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework CoreFoundation" >&5
23215$as_echo_n "checking for framework CoreFoundation... " >&6; }
23216if ${ac_cv_framework_CoreFoundation+:} false; then :
b66977f1
DWT
23217 $as_echo_n "(cached) " >&6
23218else
23219
23220 ac_check_framework_save_LIBS=$LIBS
7eda51e0 23221 LIBS="-framework CoreFoundation $LIBS"
b66977f1
DWT
23222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23223/* end confdefs.h. */
23224
7eda51e0 23225 #include <CoreFoundation/CFBase.h>
b66977f1
DWT
23226
23227int
23228main ()
23229{
7eda51e0 23230CFAllocatorGetDefault();
b66977f1
DWT
23231 ;
23232 return 0;
23233}
23234_ACEOF
7eda51e0 23235if ac_fn_objcxx_try_link "$LINENO"; then :
b66977f1 23236
7eda51e0 23237 ac_cv_framework_CoreFoundation=yes
b66977f1
DWT
23238
23239else
7eda51e0 23240 ac_cv_framework_CoreFoundation=no
b66977f1
DWT
23241fi
23242rm -f core conftest.err conftest.$ac_objext \
23243 conftest$ac_exeext conftest.$ac_ext
23244 LIBS=$ac_check_framework_save_LIBS
23245
23246fi
7eda51e0
JF
23247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_CoreFoundation" >&5
23248$as_echo "$ac_cv_framework_CoreFoundation" >&6; }
23249 if test $ac_cv_framework_CoreFoundation = yes; then :
b66977f1
DWT
23250
23251
7eda51e0 23252 for element in "-framework CoreFoundation"; do
b66977f1
DWT
23253 haveit=
23254 for x in $LIBS; do
23255
23256 acl_save_prefix="$prefix"
23257 prefix="$acl_final_prefix"
23258 acl_save_exec_prefix="$exec_prefix"
23259 exec_prefix="$acl_final_exec_prefix"
23260 eval x=\"$x\"
23261 exec_prefix="$acl_save_exec_prefix"
23262 prefix="$acl_save_prefix"
23263
23264 if test "X$x" = "X$element"; then
23265 haveit=yes
23266 break
23267 fi
23268 done
23269 if test -z "$haveit"; then
23270 LIBS="${LIBS}${LIBS:+ }$element"
23271 fi
23272 done
23273
66170b30 23274
66170b30
JF
23275
23276
b66977f1 23277
b66977f1 23278
7eda51e0
JF
23279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework Foundation" >&5
23280$as_echo_n "checking for framework Foundation... " >&6; }
23281if ${ac_cv_framework_Foundation+:} false; then :
23282 $as_echo_n "(cached) " >&6
b66977f1 23283else
b66977f1 23284
7eda51e0
JF
23285 ac_check_framework_save_LIBS=$LIBS
23286 LIBS="-framework Foundation $LIBS"
23287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23288/* end confdefs.h. */
66170b30 23289
7eda51e0 23290 #include <Foundation/NSObject.h>
b66977f1 23291
7eda51e0
JF
23292int
23293main ()
23294{
23295[[NSObject alloc] init];
23296 ;
23297 return 0;
23298}
23299_ACEOF
23300if ac_fn_objcxx_try_link "$LINENO"; then :
b66977f1 23301
7eda51e0 23302 ac_cv_framework_Foundation=yes
b66977f1 23303
7eda51e0
JF
23304else
23305 ac_cv_framework_Foundation=no
23306fi
23307rm -f core conftest.err conftest.$ac_objext \
23308 conftest$ac_exeext conftest.$ac_ext
23309 LIBS=$ac_check_framework_save_LIBS
23310
23311fi
23312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Foundation" >&5
23313$as_echo "$ac_cv_framework_Foundation" >&6; }
23314 if test $ac_cv_framework_Foundation = yes; then :
b66977f1
DWT
23315
23316
7eda51e0 23317 for element in "-framework Foundation"; do
b66977f1
DWT
23318 haveit=
23319 for x in $LIBS; do
23320
23321 acl_save_prefix="$prefix"
23322 prefix="$acl_final_prefix"
23323 acl_save_exec_prefix="$exec_prefix"
23324 exec_prefix="$acl_final_exec_prefix"
23325 eval x=\"$x\"
23326 exec_prefix="$acl_save_exec_prefix"
23327 prefix="$acl_save_prefix"
23328
23329 if test "X$x" = "X$element"; then
23330 haveit=yes
23331 break
23332 fi
23333 done
23334 if test -z "$haveit"; then
23335 LIBS="${LIBS}${LIBS:+ }$element"
23336 fi
23337 done
23338
7eda51e0
JF
23339 cat >>confdefs.h <<_ACEOF
23340#define HAVE_FRAMEWORK_FOUNDATION 1
23341_ACEOF
23342
b66977f1 23343
7eda51e0 23344fi
b66977f1
DWT
23345
23346
7eda51e0 23347else
b66977f1 23348
b66977f1 23349
7eda51e0
JF
23350 for ac_prog in gnustep-config
23351do
23352 # Extract the first word of "$ac_prog", so it can be a program name with args.
23353set dummy $ac_prog; ac_word=$2
23354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23355$as_echo_n "checking for $ac_word... " >&6; }
23356if ${ac_cv_prog_GNUSTEP_CONFIG+:} false; then :
23357 $as_echo_n "(cached) " >&6
b66977f1 23358else
7eda51e0
JF
23359 if test -n "$GNUSTEP_CONFIG"; then
23360 ac_cv_prog_GNUSTEP_CONFIG="$GNUSTEP_CONFIG" # Let the user override the test.
b66977f1 23361else
7eda51e0
JF
23362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23363for as_dir in $PATH
23364do
23365 IFS=$as_save_IFS
23366 test -z "$as_dir" && as_dir=.
23367 for ac_exec_ext in '' $ac_executable_extensions; do
23368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23369 ac_cv_prog_GNUSTEP_CONFIG="$ac_prog"
23370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23371 break 2
23372 fi
23373done
23374 done
23375IFS=$as_save_IFS
b66977f1 23376
b66977f1 23377fi
b66977f1 23378fi
7eda51e0
JF
23379GNUSTEP_CONFIG=$ac_cv_prog_GNUSTEP_CONFIG
23380if test -n "$GNUSTEP_CONFIG"; then
23381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUSTEP_CONFIG" >&5
23382$as_echo "$GNUSTEP_CONFIG" >&6; }
b66977f1 23383else
7eda51e0 23384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833ad8 23385$as_echo "no" >&6; }
b66977f1 23386fi
66170b30 23387
66170b30 23388
7eda51e0
JF
23389 test -n "$GNUSTEP_CONFIG" && break
23390done
b66977f1 23391
b66977f1 23392
7eda51e0 23393 if test "x$GNUSTEP_CONFIG" != x; then :
b66977f1 23394
b66977f1
DWT
23395
23396
7eda51e0 23397 for element in `$GNUSTEP_CONFIG --objc-flags`; do
b66977f1 23398 haveit=
7eda51e0 23399 for x in $OBJCXXFLAGS; do
b66977f1
DWT
23400
23401 acl_save_prefix="$prefix"
23402 prefix="$acl_final_prefix"
23403 acl_save_exec_prefix="$exec_prefix"
23404 exec_prefix="$acl_final_exec_prefix"
23405 eval x=\"$x\"
23406 exec_prefix="$acl_save_exec_prefix"
23407 prefix="$acl_save_prefix"
23408
23409 if test "X$x" = "X$element"; then
23410 haveit=yes
23411 break
23412 fi
23413 done
babf7fe8
JF
23414 if test -z "$haveit"; then
23415 OBJCXXFLAGS="${OBJCXXFLAGS}${OBJCXXFLAGS:+ }$element"
23416 fi
23417 done
a667869d 23418
a667869d 23419
babf7fe8 23420 for element in `$GNUSTEP_CONFIG --base-libs`; do
632b71ea 23421 haveit=
babf7fe8 23422 for x in $LIBS; do
a667869d 23423
632b71ea
DWT
23424 acl_save_prefix="$prefix"
23425 prefix="$acl_final_prefix"
23426 acl_save_exec_prefix="$exec_prefix"
23427 exec_prefix="$acl_final_exec_prefix"
23428 eval x=\"$x\"
23429 exec_prefix="$acl_save_exec_prefix"
23430 prefix="$acl_save_prefix"
23431
23432 if test "X$x" = "X$element"; then
23433 haveit=yes
23434 break
23435 fi
23436 done
23437 if test -z "$haveit"; then
babf7fe8 23438 LIBS="${LIBS}${LIBS:+ }$element"
632b71ea
DWT
23439 fi
23440 done
23441
5053a6d1 23442
babf7fe8
JF
23443else
23444 CY_OBJECTIVEC=0
23445
23446fi
23447
23448fi
23449 LTOBJECTIVEC=$LIBS
23450 LIBS=$cy_save
23451
23452
23453
23454fi
23455
23456 ac_ext=cpp
23457ac_cpp='$CXXCPP $CPPFLAGS'
23458ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23459ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23460ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23461
23462 ;; #(
23463 *) :
23464 ;;
23465esac
23466
39ed1631
JF
23467 if test "x$CY_JAVA" = x1; then
23468 CY_JAVA_TRUE=
23469 CY_JAVA_FALSE='#'
23470else
23471 CY_JAVA_TRUE='#'
23472 CY_JAVA_FALSE=
23473fi
23474
babf7fe8
JF
23475 if test "x$CY_OBJECTIVEC" = x1; then
23476 CY_OBJECTIVEC_TRUE=
23477 CY_OBJECTIVEC_FALSE='#'
23478else
23479 CY_OBJECTIVEC_TRUE='#'
23480 CY_OBJECTIVEC_FALSE=
23481fi
23482
23483
23484
8d20f0f1
JF
23485# Check whether --with-libclang was given.
23486if test "${with_libclang+set}" = set; then :
23487 withval=$with_libclang;
23488else
23489 with_libclang=no
23490fi
23491
23492
23493if test "x$with_libclang" != "xno"; then :
23494
23495 CY_LIBCLANG="$with_libclang"
23496
23497fi
23498 if test "x$with_libclang" != "xno"; then
23499 CY_PRELINK_TRUE=
23500 CY_PRELINK_FALSE='#'
23501else
23502 CY_PRELINK_TRUE='#'
23503 CY_PRELINK_FALSE=
23504fi
23505
23506
23507
babf7fe8
JF
23508 cy_save=$LIBS
23509 LIBS=
23510
23511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a readline compatible library" >&5
23512$as_echo_n "checking for a readline compatible library... " >&6; }
23513if ${ax_cv_lib_readline+:} false; then :
5053a6d1 23514 $as_echo_n "(cached) " >&6
a667869d 23515else
632b71ea 23516
babf7fe8
JF
23517 ORIG_LIBS="$LIBS"
23518 for readline_lib in readline edit editline; do
23519 for termcap_lib in "" termcap curses ncurses; do
23520 if test -z "$termcap_lib"; then
23521 TRY_LIB="-l$readline_lib"
23522 else
23523 TRY_LIB="-l$readline_lib -l$termcap_lib"
23524 fi
23525 LIBS="$ORIG_LIBS $TRY_LIB"
23526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053a6d1 23527/* end confdefs.h. */
632b71ea 23528
babf7fe8
JF
23529/* Override any GCC internal prototype to avoid an error.
23530 Use char because int might match the return type of a GCC
23531 builtin and then its argument prototype would still apply. */
23532#ifdef __cplusplus
23533extern "C"
23534#endif
23535char readline ();
5053a6d1
DWT
23536int
23537main ()
23538{
babf7fe8 23539return readline ();
5053a6d1
DWT
23540 ;
23541 return 0;
23542}
23543_ACEOF
babf7fe8
JF
23544if ac_fn_cxx_try_link "$LINENO"; then :
23545 ax_cv_lib_readline="$TRY_LIB"
5053a6d1
DWT
23546fi
23547rm -f core conftest.err conftest.$ac_objext \
23548 conftest$ac_exeext conftest.$ac_ext
babf7fe8
JF
23549 if test -n "$ax_cv_lib_readline"; then
23550 break
23551 fi
23552 done
23553 if test -n "$ax_cv_lib_readline"; then
23554 break
23555 fi
23556 done
23557 if test -z "$ax_cv_lib_readline"; then
23558 ax_cv_lib_readline="no"
23559 fi
23560 LIBS="$ORIG_LIBS"
23561
23562fi
23563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline" >&5
23564$as_echo "$ax_cv_lib_readline" >&6; }
23565
23566 if test "$ax_cv_lib_readline" != "no"; then
23567 LIBS="$LIBS $ax_cv_lib_readline"
23568
23569$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
23570
23571 for ac_header in readline.h readline/readline.h
23572do :
23573 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23574ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23575if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23576 cat >>confdefs.h <<_ACEOF
23577#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23578_ACEOF
23579
23580fi
23581
23582done
23583
23584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readline supports history" >&5
23585$as_echo_n "checking whether readline supports history... " >&6; }
23586if ${ax_cv_lib_readline_history+:} false; then :
23587 $as_echo_n "(cached) " >&6
23588else
23589
23590 ax_cv_lib_readline_history="no"
7eda51e0
JF
23591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23592/* end confdefs.h. */
5053a6d1 23593
babf7fe8
JF
23594/* Override any GCC internal prototype to avoid an error.
23595 Use char because int might match the return type of a GCC
23596 builtin and then its argument prototype would still apply. */
23597#ifdef __cplusplus
23598extern "C"
23599#endif
23600char add_history ();
058f1bc8
DWT
23601int
23602main ()
23603{
babf7fe8 23604return add_history ();
058f1bc8
DWT
23605 ;
23606 return 0;
23607}
23608_ACEOF
babf7fe8
JF
23609if ac_fn_cxx_try_link "$LINENO"; then :
23610 ax_cv_lib_readline_history="yes"
058f1bc8
DWT
23611fi
23612rm -f core conftest.err conftest.$ac_objext \
23613 conftest$ac_exeext conftest.$ac_ext
a667869d 23614
a667869d 23615fi
babf7fe8
JF
23616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lib_readline_history" >&5
23617$as_echo "$ax_cv_lib_readline_history" >&6; }
23618 if test "$ax_cv_lib_readline_history" = "yes"; then
058f1bc8 23619
babf7fe8 23620$as_echo "#define HAVE_READLINE_HISTORY 1" >>confdefs.h
058f1bc8 23621
babf7fe8
JF
23622 for ac_header in history.h readline/history.h
23623do :
23624 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23625ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23626if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23627 cat >>confdefs.h <<_ACEOF
23628#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7eda51e0 23629_ACEOF
babf7fe8 23630
7eda51e0 23631fi
058f1bc8 23632
babf7fe8 23633done
058f1bc8 23634
babf7fe8 23635 fi
7eda51e0 23636 fi
058f1bc8 23637
babf7fe8
JF
23638 LTLIBREADLINE=$LIBS
23639 LIBS=$cy_save
058f1bc8 23640
058f1bc8 23641
babf7fe8
JF
23642case $ax_cv_lib_readline in #(
23643 no) :
23644 as_fn_error $? "missing \"libreadline\"" "$LINENO" 5 ;; #(
23645 *) :
23646 ;;
23647esac
058f1bc8
DWT
23648
23649
babf7fe8
JF
23650 cy_save=$LIBS
23651 LIBS=
23652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cur_term" >&5
23653$as_echo_n "checking for library containing cur_term... " >&6; }
23654if ${ac_cv_search_cur_term+:} false; then :
7eda51e0
JF
23655 $as_echo_n "(cached) " >&6
23656else
babf7fe8
JF
23657 ac_func_search_save_LIBS=$LIBS
23658cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7eda51e0
JF
23659/* end confdefs.h. */
23660
babf7fe8
JF
23661/* Override any GCC internal prototype to avoid an error.
23662 Use char because int might match the return type of a GCC
23663 builtin and then its argument prototype would still apply. */
7eda51e0 23664#ifdef __cplusplus
babf7fe8 23665extern "C"
7eda51e0 23666#endif
babf7fe8 23667char cur_term ();
7eda51e0
JF
23668int
23669main ()
23670{
babf7fe8 23671return cur_term ();
7eda51e0
JF
23672 ;
23673 return 0;
23674}
23675_ACEOF
a93f15c0 23676for ac_lib in '' termcap ncurses; do
babf7fe8
JF
23677 if test -z "$ac_lib"; then
23678 ac_res="none required"
23679 else
23680 ac_res=-l$ac_lib
23681 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23682 fi
23683 if ac_fn_cxx_try_link "$LINENO"; then :
23684 ac_cv_search_cur_term=$ac_res
7eda51e0 23685fi
babf7fe8
JF
23686rm -f core conftest.err conftest.$ac_objext \
23687 conftest$ac_exeext
23688 if ${ac_cv_search_cur_term+:} false; then :
23689 break
7eda51e0 23690fi
babf7fe8
JF
23691done
23692if ${ac_cv_search_cur_term+:} false; then :
058f1bc8 23693
babf7fe8
JF
23694else
23695 ac_cv_search_cur_term=no
23696fi
23697rm conftest.$ac_ext
23698LIBS=$ac_func_search_save_LIBS
23699fi
23700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cur_term" >&5
23701$as_echo "$ac_cv_search_cur_term" >&6; }
23702ac_res=$ac_cv_search_cur_term
23703if test "$ac_res" != no; then :
23704 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
058f1bc8 23705
babf7fe8 23706fi
058f1bc8 23707
babf7fe8
JF
23708 LTLIBTERMCAP=$LIBS
23709 LIBS=$cy_save
058f1bc8 23710
058f1bc8 23711
66170b30
JF
23712
23713
3615a2f7
JF
23714
23715
9777bd50
JF
23716SO=$acl_shlibext
23717
e1cce270 23718
a243b558
JF
23719ac_config_files="$ac_config_files Makefile"
23720
9c60689e
DWT
23721cat >confcache <<\_ACEOF
23722# This file is a shell script that caches the results of configure
23723# tests run on this system so they can be shared between configure
23724# scripts and configure runs, see configure's option --config-cache.
23725# It is not useful on other systems. If it contains results you don't
23726# want to keep, you may remove or edit it.
23727#
23728# config.status only pays attention to the cache file if you give it
23729# the --recheck option to rerun configure.
23730#
23731# `ac_cv_env_foo' variables (set or unset) will be overridden when
23732# loading this file, other *unset* `ac_cv_foo' will be assigned the
23733# following values.
23734
23735_ACEOF
23736
23737# The following way of writing the cache mishandles newlines in values,
23738# but we know of no workaround that is simple, portable, and efficient.
23739# So, we kill variables containing newlines.
23740# Ultrix sh set writes to stderr and can't be redirected directly,
23741# and sets the high bit in the cache file unless we assign to the vars.
23742(
23743 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23744 eval ac_val=\$$ac_var
23745 case $ac_val in #(
23746 *${as_nl}*)
23747 case $ac_var in #(
23748 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23749$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23750 esac
23751 case $ac_var in #(
23752 _ | IFS | as_nl) ;; #(
23753 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23754 *) { eval $ac_var=; unset $ac_var;} ;;
23755 esac ;;
23756 esac
23757 done
23758
23759 (set) 2>&1 |
23760 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23761 *${as_nl}ac_space=\ *)
23762 # `set' does not quote correctly, so add quotes: double-quote
23763 # substitution turns \\\\ into \\, and sed turns \\ into \.
23764 sed -n \
23765 "s/'/'\\\\''/g;
23766 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23767 ;; #(
23768 *)
23769 # `set' quotes correctly as required by POSIX, so do not add quotes.
23770 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23771 ;;
23772 esac |
23773 sort
23774) |
23775 sed '
23776 /^ac_cv_env_/b end
23777 t clear
23778 :clear
23779 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23780 t end
23781 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23782 :end' >>confcache
23783if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23784 if test -w "$cache_file"; then
ee134472 23785 if test "x$cache_file" != "x/dev/null"; then
9c60689e
DWT
23786 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23787$as_echo "$as_me: updating cache $cache_file" >&6;}
ee134472
JF
23788 if test ! -f "$cache_file" || test -h "$cache_file"; then
23789 cat confcache >"$cache_file"
23790 else
23791 case $cache_file in #(
23792 */* | ?:*)
23793 mv -f confcache "$cache_file"$$ &&
23794 mv -f "$cache_file"$$ "$cache_file" ;; #(
23795 *)
23796 mv -f confcache "$cache_file" ;;
23797 esac
23798 fi
23799 fi
9c60689e
DWT
23800 else
23801 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23802$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23803 fi
23804fi
23805rm -f confcache
23806
23807test "x$prefix" = xNONE && prefix=$ac_default_prefix
23808# Let make expand exec_prefix.
23809test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23810
296ee9a6 23811DEFS=-DHAVE_CONFIG_H
9c60689e
DWT
23812
23813ac_libobjs=
23814ac_ltlibobjs=
12833ad8 23815U=
9c60689e
DWT
23816for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23817 # 1. Remove the extension, and $U if already installed.
23818 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23819 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
23820 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23821 # will be set to the directory where LIBOBJS objects are built.
23822 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23823 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
23824done
23825LIBOBJS=$ac_libobjs
23826
23827LTLIBOBJS=$ac_ltlibobjs
23828
23829
66170b30
JF
23830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
23831$as_echo_n "checking that generated files are newer than configure... " >&6; }
23832 if test -n "$am_sleep_pid"; then
23833 # Hide warnings about reused PIDs.
23834 wait $am_sleep_pid 2>/dev/null
23835 fi
23836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
23837$as_echo "done" >&6; }
23838 if test -n "$EXEEXT"; then
23839 am__EXEEXT_TRUE=
23840 am__EXEEXT_FALSE='#'
23841else
23842 am__EXEEXT_TRUE='#'
23843 am__EXEEXT_FALSE=
23844fi
23845
babf7fe8
JF
23846if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23847 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
23848Usually this means the macro was only invoked conditionally." "$LINENO" 5
23849fi
66170b30
JF
23850if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23851 as_fn_error $? "conditional \"AMDEP\" was never defined.
23852Usually this means the macro was only invoked conditionally." "$LINENO" 5
23853fi
a93f15c0
JF
23854if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23855 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23856Usually this means the macro was only invoked conditionally." "$LINENO" 5
23857fi
66170b30
JF
23858if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23859 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
23860Usually this means the macro was only invoked conditionally." "$LINENO" 5
23861fi
23862if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then
23863 as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined.
23864Usually this means the macro was only invoked conditionally." "$LINENO" 5
23865fi
8d20f0f1
JF
23866if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23867 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23868Usually this means the macro was only invoked conditionally." "$LINENO" 5
23869fi
23870if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23871 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
23872Usually this means the macro was only invoked conditionally." "$LINENO" 5
23873fi
a93f15c0
JF
23874if test -z "${CY_CONSOLE_TRUE}" && test -z "${CY_CONSOLE_FALSE}"; then
23875 as_fn_error $? "conditional \"CY_CONSOLE\" was never defined.
babf7fe8
JF
23876Usually this means the macro was only invoked conditionally." "$LINENO" 5
23877fi
a4287117
JF
23878if test -z "${CY_ATTACH_TRUE}" && test -z "${CY_ATTACH_FALSE}"; then
23879 as_fn_error $? "conditional \"CY_ATTACH\" was never defined.
23880Usually this means the macro was only invoked conditionally." "$LINENO" 5
23881fi
a243b558
JF
23882if test -z "${CY_EXECUTE_TRUE}" && test -z "${CY_EXECUTE_FALSE}"; then
23883 as_fn_error $? "conditional \"CY_EXECUTE\" was never defined.
23884Usually this means the macro was only invoked conditionally." "$LINENO" 5
23885fi
39ed1631
JF
23886if test -z "${CY_JAVA_TRUE}" && test -z "${CY_JAVA_FALSE}"; then
23887 as_fn_error $? "conditional \"CY_JAVA\" was never defined.
23888Usually this means the macro was only invoked conditionally." "$LINENO" 5
23889fi
a243b558
JF
23890if test -z "${CY_OBJECTIVEC_TRUE}" && test -z "${CY_OBJECTIVEC_FALSE}"; then
23891 as_fn_error $? "conditional \"CY_OBJECTIVEC\" was never defined.
23892Usually this means the macro was only invoked conditionally." "$LINENO" 5
23893fi
8d20f0f1
JF
23894if test -z "${CY_PRELINK_TRUE}" && test -z "${CY_PRELINK_FALSE}"; then
23895 as_fn_error $? "conditional \"CY_PRELINK\" was never defined.
23896Usually this means the macro was only invoked conditionally." "$LINENO" 5
23897fi
9c60689e 23898
ee134472 23899: "${CONFIG_STATUS=./config.status}"
9c60689e
DWT
23900ac_write_fail=0
23901ac_clean_files_save=$ac_clean_files
23902ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23903{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23904$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23905as_write_fail=0
23906cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23907#! $SHELL
23908# Generated by $as_me.
23909# Run this file to recreate the current configuration.
23910# Compiler output produced by configure, useful for debugging
23911# configure, is in config.log if it exists.
23912
23913debug=false
23914ac_cs_recheck=false
23915ac_cs_silent=false
23916
23917SHELL=\${CONFIG_SHELL-$SHELL}
23918export SHELL
23919_ASEOF
23920cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23921## -------------------- ##
23922## M4sh Initialization. ##
23923## -------------------- ##
23924
23925# Be more Bourne compatible
23926DUALCASE=1; export DUALCASE # for MKS sh
23927if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23928 emulate sh
23929 NULLCMD=:
23930 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23931 # is contrary to our usage. Disable this feature.
23932 alias -g '${1+"$@"}'='"$@"'
23933 setopt NO_GLOB_SUBST
23934else
23935 case `(set -o) 2>/dev/null` in #(
23936 *posix*) :
23937 set -o posix ;; #(
23938 *) :
23939 ;;
23940esac
23941fi
23942
23943
23944as_nl='
23945'
23946export as_nl
23947# Printing a long string crashes Solaris 7 /usr/bin/printf.
23948as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23949as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23950as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23951# Prefer a ksh shell builtin over an external printf program on Solaris,
23952# but without wasting forks for bash or zsh.
23953if test -z "$BASH_VERSION$ZSH_VERSION" \
23954 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
23955 as_echo='print -r --'
23956 as_echo_n='print -rn --'
23957elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23958 as_echo='printf %s\n'
23959 as_echo_n='printf %s'
23960else
23961 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23962 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
23963 as_echo_n='/usr/ucb/echo -n'
23964 else
23965 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23966 as_echo_n_body='eval
23967 arg=$1;
23968 case $arg in #(
23969 *"$as_nl"*)
23970 expr "X$arg" : "X\\(.*\\)$as_nl";
23971 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23972 esac;
23973 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
23974 '
23975 export as_echo_n_body
23976 as_echo_n='sh -c $as_echo_n_body as_echo'
23977 fi
23978 export as_echo_body
23979 as_echo='sh -c $as_echo_body as_echo'
23980fi
23981
23982# The user is always right.
23983if test "${PATH_SEPARATOR+set}" != set; then
23984 PATH_SEPARATOR=:
23985 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23986 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23987 PATH_SEPARATOR=';'
23988 }
23989fi
23990
23991
23992# IFS
23993# We need space, tab and new line, in precisely that order. Quoting is
23994# there to prevent editors from complaining about space-tab.
23995# (If _AS_PATH_WALK were called with IFS unset, it would disable word
23996# splitting by setting IFS to empty value.)
23997IFS=" "" $as_nl"
23998
23999# Find who we are. Look in the path if we contain no directory separator.
ee134472 24000as_myself=
9c60689e
DWT
24001case $0 in #((
24002 *[\\/]* ) as_myself=$0 ;;
24003 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24004for as_dir in $PATH
24005do
24006 IFS=$as_save_IFS
24007 test -z "$as_dir" && as_dir=.
24008 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24009 done
24010IFS=$as_save_IFS
24011
24012 ;;
24013esac
24014# We did not find ourselves, most probably we were run as `sh COMMAND'
24015# in which case we are not to be found in the path.
24016if test "x$as_myself" = x; then
24017 as_myself=$0
24018fi
24019if test ! -f "$as_myself"; then
24020 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24021 exit 1
24022fi
24023
24024# Unset variables that we do not need and which cause bugs (e.g. in
24025# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24026# suppresses any "Segmentation fault" message there. '((' could
24027# trigger a bug in pdksh 5.2.14.
24028for as_var in BASH_ENV ENV MAIL MAILPATH
24029do eval test x\${$as_var+set} = xset \
24030 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24031done
24032PS1='$ '
24033PS2='> '
24034PS4='+ '
24035
24036# NLS nuisances.
24037LC_ALL=C
24038export LC_ALL
24039LANGUAGE=C
24040export LANGUAGE
24041
24042# CDPATH.
24043(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24044
24045
12833ad8
JF
24046# as_fn_error STATUS ERROR [LINENO LOG_FD]
24047# ----------------------------------------
9c60689e
DWT
24048# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24049# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12833ad8 24050# script with STATUS, using 1 if that was 0.
9c60689e
DWT
24051as_fn_error ()
24052{
12833ad8
JF
24053 as_status=$1; test $as_status -eq 0 && as_status=1
24054 if test "$4"; then
24055 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24056 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9c60689e 24057 fi
12833ad8 24058 $as_echo "$as_me: error: $2" >&2
9c60689e
DWT
24059 as_fn_exit $as_status
24060} # as_fn_error
24061
24062
24063# as_fn_set_status STATUS
24064# -----------------------
24065# Set $? to STATUS, without forking.
24066as_fn_set_status ()
24067{
24068 return $1
24069} # as_fn_set_status
24070
24071# as_fn_exit STATUS
24072# -----------------
24073# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24074as_fn_exit ()
24075{
24076 set +e
24077 as_fn_set_status $1
24078 exit $1
24079} # as_fn_exit
24080
24081# as_fn_unset VAR
24082# ---------------
24083# Portably unset VAR.
24084as_fn_unset ()
24085{
24086 { eval $1=; unset $1;}
24087}
24088as_unset=as_fn_unset
24089# as_fn_append VAR VALUE
24090# ----------------------
24091# Append the text in VALUE to the end of the definition contained in VAR. Take
24092# advantage of any shell optimizations that allow amortized linear growth over
24093# repeated appends, instead of the typical quadratic growth present in naive
24094# implementations.
24095if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24096 eval 'as_fn_append ()
24097 {
24098 eval $1+=\$2
24099 }'
24100else
24101 as_fn_append ()
24102 {
24103 eval $1=\$$1\$2
24104 }
24105fi # as_fn_append
24106
24107# as_fn_arith ARG...
24108# ------------------
24109# Perform arithmetic evaluation on the ARGs, and store the result in the
24110# global $as_val. Take advantage of shells that can avoid forks. The arguments
24111# must be portable across $(()) and expr.
24112if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24113 eval 'as_fn_arith ()
24114 {
24115 as_val=$(( $* ))
24116 }'
24117else
24118 as_fn_arith ()
24119 {
24120 as_val=`expr "$@" || test $? -eq 1`
24121 }
24122fi # as_fn_arith
24123
24124
24125if expr a : '\(a\)' >/dev/null 2>&1 &&
24126 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24127 as_expr=expr
24128else
24129 as_expr=false
24130fi
24131
24132if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24133 as_basename=basename
24134else
24135 as_basename=false
24136fi
24137
24138if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24139 as_dirname=dirname
24140else
24141 as_dirname=false
24142fi
24143
24144as_me=`$as_basename -- "$0" ||
24145$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24146 X"$0" : 'X\(//\)$' \| \
24147 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24148$as_echo X/"$0" |
24149 sed '/^.*\/\([^/][^/]*\)\/*$/{
24150 s//\1/
24151 q
24152 }
24153 /^X\/\(\/\/\)$/{
24154 s//\1/
24155 q
24156 }
24157 /^X\/\(\/\).*/{
24158 s//\1/
24159 q
24160 }
24161 s/.*/./; q'`
24162
24163# Avoid depending upon Character Ranges.
24164as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24165as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24166as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24167as_cr_digits='0123456789'
24168as_cr_alnum=$as_cr_Letters$as_cr_digits
24169
24170ECHO_C= ECHO_N= ECHO_T=
24171case `echo -n x` in #(((((
24172-n*)
24173 case `echo 'xy\c'` in
24174 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24175 xy) ECHO_C='\c';;
24176 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
24177 ECHO_T=' ';;
24178 esac;;
24179*)
24180 ECHO_N='-n';;
24181esac
24182
24183rm -f conf$$ conf$$.exe conf$$.file
24184if test -d conf$$.dir; then
24185 rm -f conf$$.dir/conf$$.file
24186else
24187 rm -f conf$$.dir
24188 mkdir conf$$.dir 2>/dev/null
24189fi
24190if (echo >conf$$.file) 2>/dev/null; then
24191 if ln -s conf$$.file conf$$ 2>/dev/null; then
24192 as_ln_s='ln -s'
24193 # ... but there are two gotchas:
24194 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24195 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53ba6704 24196 # In both cases, we have to default to `cp -pR'.
9c60689e 24197 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53ba6704 24198 as_ln_s='cp -pR'
9c60689e
DWT
24199 elif ln conf$$.file conf$$ 2>/dev/null; then
24200 as_ln_s=ln
24201 else
53ba6704 24202 as_ln_s='cp -pR'
9c60689e
DWT
24203 fi
24204else
53ba6704 24205 as_ln_s='cp -pR'
9c60689e
DWT
24206fi
24207rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24208rmdir conf$$.dir 2>/dev/null
24209
24210
24211# as_fn_mkdir_p
24212# -------------
24213# Create "$as_dir" as a directory, including parents if necessary.
24214as_fn_mkdir_p ()
24215{
24216
24217 case $as_dir in #(
24218 -*) as_dir=./$as_dir;;
24219 esac
24220 test -d "$as_dir" || eval $as_mkdir_p || {
24221 as_dirs=
24222 while :; do
24223 case $as_dir in #(
24224 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24225 *) as_qdir=$as_dir;;
24226 esac
24227 as_dirs="'$as_qdir' $as_dirs"
24228 as_dir=`$as_dirname -- "$as_dir" ||
24229$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24230 X"$as_dir" : 'X\(//\)[^/]' \| \
24231 X"$as_dir" : 'X\(//\)$' \| \
24232 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24233$as_echo X"$as_dir" |
24234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24235 s//\1/
24236 q
24237 }
24238 /^X\(\/\/\)[^/].*/{
24239 s//\1/
24240 q
24241 }
24242 /^X\(\/\/\)$/{
24243 s//\1/
24244 q
24245 }
24246 /^X\(\/\).*/{
24247 s//\1/
24248 q
24249 }
24250 s/.*/./; q'`
24251 test -d "$as_dir" && break
24252 done
24253 test -z "$as_dirs" || eval "mkdir $as_dirs"
12833ad8 24254 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9c60689e
DWT
24255
24256
24257} # as_fn_mkdir_p
24258if mkdir -p . 2>/dev/null; then
24259 as_mkdir_p='mkdir -p "$as_dir"'
24260else
24261 test -d ./-p && rmdir ./-p
24262 as_mkdir_p=false
24263fi
24264
53ba6704
JF
24265
24266# as_fn_executable_p FILE
24267# -----------------------
24268# Test if FILE is an executable regular file.
24269as_fn_executable_p ()
24270{
24271 test -f "$1" && test -x "$1"
24272} # as_fn_executable_p
24273as_test_x='test -x'
24274as_executable_p=as_fn_executable_p
9c60689e
DWT
24275
24276# Sed expression to map a string onto a valid CPP name.
24277as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24278
24279# Sed expression to map a string onto a valid variable name.
24280as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24281
24282
24283exec 6>&1
24284## ----------------------------------- ##
24285## Main body of $CONFIG_STATUS script. ##
24286## ----------------------------------- ##
24287_ASEOF
24288test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
24289
24290cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24291# Save the log message, to keep $0 and so on meaningful, and to
24292# report actual input values of CONFIG_FILES etc. instead of their
24293# values after options handling.
24294ac_log="
24295This file was extended by Cycript $as_me 0.9, which was
53ba6704 24296generated by GNU Autoconf 2.69. Invocation command line was
9c60689e
DWT
24297
24298 CONFIG_FILES = $CONFIG_FILES
24299 CONFIG_HEADERS = $CONFIG_HEADERS
24300 CONFIG_LINKS = $CONFIG_LINKS
24301 CONFIG_COMMANDS = $CONFIG_COMMANDS
24302 $ $0 $@
24303
24304on `(hostname || uname -n) 2>/dev/null | sed 1q`
24305"
24306
24307_ACEOF
24308
24309case $ac_config_files in *"
24310"*) set x $ac_config_files; shift; ac_config_files=$*;;
24311esac
24312
296ee9a6
JF
24313case $ac_config_headers in *"
24314"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24315esac
9c60689e
DWT
24316
24317
24318cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24319# Files that config.status was made for.
24320config_files="$ac_config_files"
296ee9a6 24321config_headers="$ac_config_headers"
9c60689e
DWT
24322config_commands="$ac_config_commands"
24323
24324_ACEOF
24325
24326cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24327ac_cs_usage="\
24328\`$as_me' instantiates files and other configuration actions
24329from templates according to the current configuration. Unless the files
24330and actions are specified as TAGs, all are instantiated by default.
24331
24332Usage: $0 [OPTION]... [TAG]...
24333
24334 -h, --help print this help, then exit
24335 -V, --version print version number and configuration settings, then exit
24336 --config print configuration, then exit
24337 -q, --quiet, --silent
24338 do not print progress messages
24339 -d, --debug don't remove temporary files
24340 --recheck update $as_me by reconfiguring in the same conditions
24341 --file=FILE[:TEMPLATE]
24342 instantiate the configuration file FILE
296ee9a6
JF
24343 --header=FILE[:TEMPLATE]
24344 instantiate the configuration header FILE
9c60689e
DWT
24345
24346Configuration files:
24347$config_files
24348
296ee9a6
JF
24349Configuration headers:
24350$config_headers
24351
9c60689e
DWT
24352Configuration commands:
24353$config_commands
24354
24355Report bugs to <saurik@saurik.com>.
24356Cycript home page: <http://www.cycript.org/>."
24357
24358_ACEOF
24359cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24360ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
24361ac_cs_version="\\
24362Cycript config.status 0.9
53ba6704 24363configured by $0, generated by GNU Autoconf 2.69,
9c60689e
DWT
24364 with options \\"\$ac_cs_config\\"
24365
53ba6704 24366Copyright (C) 2012 Free Software Foundation, Inc.
9c60689e
DWT
24367This config.status script is free software; the Free Software Foundation
24368gives unlimited permission to copy, distribute and modify it."
24369
24370ac_pwd='$ac_pwd'
24371srcdir='$srcdir'
24372INSTALL='$INSTALL'
66170b30
JF
24373MKDIR_P='$MKDIR_P'
24374AWK='$AWK'
9c60689e
DWT
24375test -n "\$AWK" || AWK=awk
24376_ACEOF
24377
24378cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24379# The default lists apply if the user does not specify any file.
24380ac_need_defaults=:
24381while test $# != 0
24382do
24383 case $1 in
12833ad8 24384 --*=?*)
9c60689e
DWT
24385 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24386 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24387 ac_shift=:
24388 ;;
12833ad8
JF
24389 --*=)
24390 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24391 ac_optarg=
24392 ac_shift=:
24393 ;;
9c60689e
DWT
24394 *)
24395 ac_option=$1
24396 ac_optarg=$2
24397 ac_shift=shift
24398 ;;
24399 esac
24400
24401 case $ac_option in
24402 # Handling of the options.
24403 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24404 ac_cs_recheck=: ;;
24405 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24406 $as_echo "$ac_cs_version"; exit ;;
24407 --config | --confi | --conf | --con | --co | --c )
24408 $as_echo "$ac_cs_config"; exit ;;
24409 --debug | --debu | --deb | --de | --d | -d )
24410 debug=: ;;
24411 --file | --fil | --fi | --f )
24412 $ac_shift
24413 case $ac_optarg in
24414 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12833ad8 24415 '') as_fn_error $? "missing file argument" ;;
9c60689e
DWT
24416 esac
24417 as_fn_append CONFIG_FILES " '$ac_optarg'"
24418 ac_need_defaults=false;;
296ee9a6
JF
24419 --header | --heade | --head | --hea )
24420 $ac_shift
24421 case $ac_optarg in
24422 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24423 esac
24424 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
24425 ac_need_defaults=false;;
24426 --he | --h)
24427 # Conflict between --help and --header
24428 as_fn_error $? "ambiguous option: \`$1'
24429Try \`$0 --help' for more information.";;
24430 --help | --hel | -h )
9c60689e
DWT
24431 $as_echo "$ac_cs_usage"; exit ;;
24432 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24433 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24434 ac_cs_silent=: ;;
24435
24436 # This is an error.
12833ad8 24437 -*) as_fn_error $? "unrecognized option: \`$1'
9c60689e
DWT
24438Try \`$0 --help' for more information." ;;
24439
24440 *) as_fn_append ac_config_targets " $1"
24441 ac_need_defaults=false ;;
24442
24443 esac
24444 shift
24445done
24446
24447ac_configure_extra_args=
24448
24449if $ac_cs_silent; then
24450 exec 6>/dev/null
24451 ac_configure_extra_args="$ac_configure_extra_args --silent"
24452fi
24453
24454_ACEOF
24455cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24456if \$ac_cs_recheck; then
53ba6704 24457 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9c60689e
DWT
24458 shift
24459 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
24460 CONFIG_SHELL='$SHELL'
24461 export CONFIG_SHELL
24462 exec "\$@"
24463fi
24464
24465_ACEOF
24466cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24467exec 5>>config.log
24468{
24469 echo
24470 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24471## Running $as_me. ##
24472_ASBOX
24473 $as_echo "$ac_log"
24474} >&5
24475
24476_ACEOF
24477cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24478#
24479# INIT-COMMANDS
24480#
66170b30 24481AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9c60689e
DWT
24482
24483
24484# The HP-UX ksh and POSIX shell print the target directory to stdout
24485# if CDPATH is set.
24486(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24487
24488sed_quote_subst='$sed_quote_subst'
24489double_quote_subst='$double_quote_subst'
24490delay_variable_subst='$delay_variable_subst'
ee134472
JF
24491macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
24492macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
24493enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
24494enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
24495pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
24496enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
9d54db95 24497shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
ee134472
JF
24498SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
24499ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
53ba6704 24500PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
ee134472
JF
24501host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
24502host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
24503host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
24504build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
24505build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
24506build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
24507SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
24508Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
24509GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
24510EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
24511FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
24512LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
24513NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
24514LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
24515max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
24516ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
24517exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
24518lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
24519lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
24520lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
24521lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
24522lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
24523reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
24524reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
24525OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
24526deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
24527file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
24528file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
24529want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
24530DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
24531sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
24532AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
24533AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
24534archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
24535STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
24536RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
24537old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24538old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24539old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
24540lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
24541CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
24542CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
24543compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
24544GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
24545lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
24546lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
9d54db95 24547lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
ee134472
JF
24548lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
24549lt_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 24550lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
ee134472
JF
24551nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
24552lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
9d54db95 24553lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
ee134472
JF
24554objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
24555MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
24556lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
24557lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
24558lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
24559lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
24560lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
24561need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
24562MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
24563DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
24564NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
24565LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
24566OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
24567OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
24568libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
24569shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
24570extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24571archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
24572enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
24573export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
24574whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
24575compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
24576old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
24577old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
24578archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
24579archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24580module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
24581module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
24582with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
24583allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
24584no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
24585hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
ee134472
JF
24586hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
24587hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
24588hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
24589hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
24590hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
24591hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
24592inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
24593link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
24594always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
24595export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
24596exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
24597include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
24598prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
24599postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
24600file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
24601variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
24602need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
24603need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
24604version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
24605runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
24606shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
24607shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
24608libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
24609library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
24610soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
24611install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
24612postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24613postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24614finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
24615finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
24616hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
24617sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
9d54db95
JF
24618configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
24619configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
ee134472
JF
24620hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
24621enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
24622enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
24623enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
24624old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
24625striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
24626compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
24627predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
24628postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
24629predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
24630postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
24631compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
24632LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
24633reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
24634reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24635old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24636compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
24637GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
24638lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
24639lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
24640lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
24641lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
24642lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
24643archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
24644enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
24645export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
24646whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
24647compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
24648old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24649old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24650archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24651archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24652module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24653module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24654with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
24655allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
24656no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
24657hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
ee134472
JF
24658hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
24659hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
24660hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
24661hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
24662hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
24663hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
24664inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
24665link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
24666always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
24667export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24668exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
24669include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
24670prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24671postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24672file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
24673hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
24674compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
24675predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
24676postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
24677predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
24678postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
24679compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
9c60689e
DWT
24680
24681LTCC='$LTCC'
24682LTCFLAGS='$LTCFLAGS'
24683compiler='$compiler_DEFAULT'
24684
ee134472
JF
24685# A function that is used when there is no print builtin or printf.
24686func_fallback_echo ()
24687{
24688 eval 'cat <<_LTECHO_EOF
24689\$1
24690_LTECHO_EOF'
24691}
24692
9c60689e 24693# Quote evaled strings.
ee134472
JF
24694for var in SHELL \
24695ECHO \
53ba6704 24696PATH_SEPARATOR \
ee134472 24697SED \
9c60689e
DWT
24698GREP \
24699EGREP \
24700FGREP \
24701LD \
24702NM \
24703LN_S \
24704lt_SP2NL \
24705lt_NL2SP \
24706reload_flag \
24707OBJDUMP \
24708deplibs_check_method \
24709file_magic_cmd \
ee134472
JF
24710file_magic_glob \
24711want_nocaseglob \
24712DLLTOOL \
24713sharedlib_from_linklib_cmd \
9c60689e
DWT
24714AR \
24715AR_FLAGS \
ee134472 24716archiver_list_spec \
9c60689e
DWT
24717STRIP \
24718RANLIB \
24719CC \
24720CFLAGS \
24721compiler \
24722lt_cv_sys_global_symbol_pipe \
24723lt_cv_sys_global_symbol_to_cdecl \
9d54db95 24724lt_cv_sys_global_symbol_to_import \
9c60689e
DWT
24725lt_cv_sys_global_symbol_to_c_name_address \
24726lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
9d54db95 24727lt_cv_nm_interface \
ee134472 24728nm_file_list_spec \
9d54db95 24729lt_cv_truncate_bin \
9c60689e 24730lt_prog_compiler_no_builtin_flag \
9c60689e 24731lt_prog_compiler_pic \
ee134472 24732lt_prog_compiler_wl \
9c60689e
DWT
24733lt_prog_compiler_static \
24734lt_cv_prog_compiler_c_o \
24735need_locks \
ee134472 24736MANIFEST_TOOL \
9c60689e
DWT
24737DSYMUTIL \
24738NMEDIT \
24739LIPO \
24740OTOOL \
24741OTOOL64 \
24742shrext_cmds \
24743export_dynamic_flag_spec \
24744whole_archive_flag_spec \
24745compiler_needs_object \
24746with_gnu_ld \
24747allow_undefined_flag \
24748no_undefined_flag \
24749hardcode_libdir_flag_spec \
9c60689e 24750hardcode_libdir_separator \
9c60689e
DWT
24751exclude_expsyms \
24752include_expsyms \
24753file_list_spec \
24754variables_saved_for_relink \
24755libname_spec \
24756library_names_spec \
24757soname_spec \
ee134472 24758install_override_mode \
9c60689e
DWT
24759finish_eval \
24760old_striplib \
24761striplib \
24762compiler_lib_search_dirs \
24763predep_objects \
24764postdep_objects \
24765predeps \
24766postdeps \
24767compiler_lib_search_path \
24768LD_CXX \
ee134472 24769reload_flag_CXX \
9c60689e
DWT
24770compiler_CXX \
24771lt_prog_compiler_no_builtin_flag_CXX \
9c60689e 24772lt_prog_compiler_pic_CXX \
ee134472 24773lt_prog_compiler_wl_CXX \
9c60689e
DWT
24774lt_prog_compiler_static_CXX \
24775lt_cv_prog_compiler_c_o_CXX \
24776export_dynamic_flag_spec_CXX \
24777whole_archive_flag_spec_CXX \
24778compiler_needs_object_CXX \
24779with_gnu_ld_CXX \
24780allow_undefined_flag_CXX \
24781no_undefined_flag_CXX \
24782hardcode_libdir_flag_spec_CXX \
9c60689e 24783hardcode_libdir_separator_CXX \
9c60689e
DWT
24784exclude_expsyms_CXX \
24785include_expsyms_CXX \
24786file_list_spec_CXX \
24787compiler_lib_search_dirs_CXX \
24788predep_objects_CXX \
24789postdep_objects_CXX \
24790predeps_CXX \
24791postdeps_CXX \
24792compiler_lib_search_path_CXX; do
ee134472 24793 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
9c60689e 24794 *[\\\\\\\`\\"\\\$]*)
9d54db95 24795 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
9c60689e
DWT
24796 ;;
24797 *)
24798 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24799 ;;
24800 esac
24801done
24802
24803# Double-quote double-evaled strings.
24804for var in reload_cmds \
24805old_postinstall_cmds \
24806old_postuninstall_cmds \
24807old_archive_cmds \
24808extract_expsyms_cmds \
24809old_archive_from_new_cmds \
24810old_archive_from_expsyms_cmds \
24811archive_cmds \
24812archive_expsym_cmds \
24813module_cmds \
24814module_expsym_cmds \
24815export_symbols_cmds \
24816prelink_cmds \
ee134472 24817postlink_cmds \
9c60689e
DWT
24818postinstall_cmds \
24819postuninstall_cmds \
24820finish_cmds \
24821sys_lib_search_path_spec \
9d54db95
JF
24822configure_time_dlsearch_path \
24823configure_time_lt_sys_library_path \
ee134472 24824reload_cmds_CXX \
9c60689e
DWT
24825old_archive_cmds_CXX \
24826old_archive_from_new_cmds_CXX \
24827old_archive_from_expsyms_cmds_CXX \
24828archive_cmds_CXX \
24829archive_expsym_cmds_CXX \
24830module_cmds_CXX \
24831module_expsym_cmds_CXX \
24832export_symbols_cmds_CXX \
ee134472
JF
24833prelink_cmds_CXX \
24834postlink_cmds_CXX; do
24835 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
9c60689e 24836 *[\\\\\\\`\\"\\\$]*)
9d54db95 24837 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
24838 ;;
24839 *)
24840 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24841 ;;
24842 esac
24843done
24844
9c60689e 24845ac_aux_dir='$ac_aux_dir'
9c60689e 24846
9d54db95 24847# See if we are running on zsh, and set the options that allow our
9c60689e 24848# commands through without removal of \ escapes INIT.
9d54db95 24849if test -n "\${ZSH_VERSION+set}"; then
9c60689e
DWT
24850 setopt NO_GLOB_SUBST
24851fi
24852
24853
24854 PACKAGE='$PACKAGE'
24855 VERSION='$VERSION'
9c60689e
DWT
24856 RM='$RM'
24857 ofile='$ofile'
24858
24859
24860
24861
24862
24863
24864_ACEOF
24865
24866cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24867
24868# Handling of arguments.
24869for ac_config_target in $ac_config_targets
24870do
24871 case $ac_config_target in
296ee9a6 24872 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
66170b30 24873 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9c60689e 24874 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
790e5246 24875 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9c60689e 24876
ee134472 24877 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9c60689e
DWT
24878 esac
24879done
24880
24881
24882# If the user did not use the arguments to specify the items to instantiate,
24883# then the envvar interface is used. Set only those that are not.
24884# We use the long form for the default assignment because of an extremely
24885# bizarre bug on SunOS 4.1.3.
24886if $ac_need_defaults; then
24887 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
296ee9a6 24888 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9c60689e
DWT
24889 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24890fi
24891
24892# Have a temporary directory for convenience. Make it in the build tree
24893# simply because there is no reason against having it here, and in addition,
24894# creating and moving files from /tmp can sometimes cause problems.
24895# Hook for its removal unless debugging.
24896# Note that there is a small window in which the directory will not be cleaned:
24897# after its creation but before its name has been assigned to `$tmp'.
24898$debug ||
24899{
ee134472 24900 tmp= ac_tmp=
9c60689e 24901 trap 'exit_status=$?
ee134472
JF
24902 : "${ac_tmp:=$tmp}"
24903 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9c60689e
DWT
24904' 0
24905 trap 'as_fn_exit 1' 1 2 13 15
24906}
24907# Create a (secure) tmp directory for tmp files.
24908
24909{
24910 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ee134472 24911 test -d "$tmp"
9c60689e
DWT
24912} ||
24913{
24914 tmp=./conf$$-$RANDOM
24915 (umask 077 && mkdir "$tmp")
12833ad8 24916} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ee134472 24917ac_tmp=$tmp
9c60689e
DWT
24918
24919# Set up the scripts for CONFIG_FILES section.
24920# No need to generate them if there are no CONFIG_FILES.
24921# This happens for instance with `./config.status config.h'.
24922if test -n "$CONFIG_FILES"; then
24923
24924
24925ac_cr=`echo X | tr X '\015'`
24926# On cygwin, bash can eat \r inside `` if the user requested igncr.
24927# But we know of no other shell where ac_cr would be empty at this
24928# point, so we can use a bashism as a fallback.
24929if test "x$ac_cr" = x; then
24930 eval ac_cr=\$\'\\r\'
24931fi
24932ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24933if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12833ad8 24934 ac_cs_awk_cr='\\r'
9c60689e
DWT
24935else
24936 ac_cs_awk_cr=$ac_cr
24937fi
24938
ee134472 24939echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9c60689e
DWT
24940_ACEOF
24941
24942
24943{
24944 echo "cat >conf$$subs.awk <<_ACEOF" &&
24945 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24946 echo "_ACEOF"
24947} >conf$$subs.sh ||
12833ad8
JF
24948 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24949ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9c60689e
DWT
24950ac_delim='%!_!# '
24951for ac_last_try in false false false false false :; do
24952 . ./conf$$subs.sh ||
12833ad8 24953 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
24954
24955 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24956 if test $ac_delim_n = $ac_delim_num; then
24957 break
24958 elif $ac_last_try; then
12833ad8 24959 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
24960 else
24961 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24962 fi
24963done
24964rm -f conf$$subs.sh
24965
24966cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ee134472 24967cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9c60689e
DWT
24968_ACEOF
24969sed -n '
24970h
24971s/^/S["/; s/!.*/"]=/
24972p
24973g
24974s/^[^!]*!//
24975:repl
24976t repl
24977s/'"$ac_delim"'$//
24978t delim
24979:nl
24980h
24981s/\(.\{148\}\)..*/\1/
24982t more1
24983s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24984p
24985n
24986b repl
24987:more1
24988s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24989p
24990g
24991s/.\{148\}//
24992t nl
24993:delim
24994h
24995s/\(.\{148\}\)..*/\1/
24996t more2
24997s/["\\]/\\&/g; s/^/"/; s/$/"/
24998p
24999b
25000:more2
25001s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25002p
25003g
25004s/.\{148\}//
25005t delim
25006' <conf$$subs.awk | sed '
25007/^[^""]/{
25008 N
25009 s/\n//
25010}
25011' >>$CONFIG_STATUS || ac_write_fail=1
25012rm -f conf$$subs.awk
25013cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25014_ACAWK
ee134472 25015cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9c60689e
DWT
25016 for (key in S) S_is_set[key] = 1
25017 FS = "\a"
25018
25019}
25020{
25021 line = $ 0
25022 nfields = split(line, field, "@")
25023 substed = 0
25024 len = length(field[1])
25025 for (i = 2; i < nfields; i++) {
25026 key = field[i]
25027 keylen = length(key)
25028 if (S_is_set[key]) {
25029 value = S[key]
25030 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25031 len += length(value) + length(field[++i])
25032 substed = 1
25033 } else
25034 len += 1 + keylen
25035 }
25036
25037 print line
25038}
25039
25040_ACAWK
25041_ACEOF
25042cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25043if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25044 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25045else
25046 cat
ee134472 25047fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12833ad8 25048 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9c60689e
DWT
25049_ACEOF
25050
12833ad8
JF
25051# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
25052# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9c60689e
DWT
25053# trailing colons and then remove the whole line if VPATH becomes empty
25054# (actually we leave an empty line to preserve line numbers).
25055if test "x$srcdir" = x.; then
12833ad8
JF
25056 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
25057h
25058s///
25059s/^/:/
25060s/[ ]*$/:/
25061s/:\$(srcdir):/:/g
25062s/:\${srcdir}:/:/g
25063s/:@srcdir@:/:/g
25064s/^:*//
9c60689e 25065s/:*$//
12833ad8
JF
25066x
25067s/\(=[ ]*\).*/\1/
25068G
25069s/\n//
9c60689e
DWT
25070s/^[^=]*=[ ]*$//
25071}'
25072fi
25073
25074cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25075fi # test -n "$CONFIG_FILES"
25076
296ee9a6
JF
25077# Set up the scripts for CONFIG_HEADERS section.
25078# No need to generate them if there are no CONFIG_HEADERS.
25079# This happens for instance with `./config.status Makefile'.
25080if test -n "$CONFIG_HEADERS"; then
25081cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
25082BEGIN {
25083_ACEOF
25084
25085# Transform confdefs.h into an awk script `defines.awk', embedded as
25086# here-document in config.status, that substitutes the proper values into
25087# config.h.in to produce config.h.
25088
25089# Create a delimiter string that does not exist in confdefs.h, to ease
25090# handling of long lines.
25091ac_delim='%!_!# '
25092for ac_last_try in false false :; do
25093 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
25094 if test -z "$ac_tt"; then
25095 break
25096 elif $ac_last_try; then
25097 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
25098 else
25099 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25100 fi
25101done
25102
25103# For the awk script, D is an array of macro values keyed by name,
25104# likewise P contains macro parameters if any. Preserve backslash
25105# newline sequences.
25106
25107ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25108sed -n '
25109s/.\{148\}/&'"$ac_delim"'/g
25110t rset
25111:rset
25112s/^[ ]*#[ ]*define[ ][ ]*/ /
25113t def
25114d
25115:def
25116s/\\$//
25117t bsnl
25118s/["\\]/\\&/g
25119s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25120D["\1"]=" \3"/p
25121s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25122d
25123:bsnl
25124s/["\\]/\\&/g
25125s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25126D["\1"]=" \3\\\\\\n"\\/p
25127t cont
25128s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25129t cont
25130d
25131:cont
25132n
25133s/.\{148\}/&'"$ac_delim"'/g
25134t clear
25135:clear
25136s/\\$//
25137t bsnlc
25138s/["\\]/\\&/g; s/^/"/; s/$/"/p
25139d
25140:bsnlc
25141s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25142b cont
25143' <confdefs.h | sed '
25144s/'"$ac_delim"'/"\\\
25145"/g' >>$CONFIG_STATUS || ac_write_fail=1
25146
25147cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25148 for (key in D) D_is_set[key] = 1
25149 FS = "\a"
25150}
25151/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25152 line = \$ 0
25153 split(line, arg, " ")
25154 if (arg[1] == "#") {
25155 defundef = arg[2]
25156 mac1 = arg[3]
25157 } else {
25158 defundef = substr(arg[1], 2)
25159 mac1 = arg[2]
25160 }
25161 split(mac1, mac2, "(") #)
25162 macro = mac2[1]
25163 prefix = substr(line, 1, index(line, defundef) - 1)
25164 if (D_is_set[macro]) {
25165 # Preserve the white space surrounding the "#".
25166 print prefix "define", macro P[macro] D[macro]
25167 next
25168 } else {
25169 # Replace #undef with comments. This is necessary, for example,
25170 # in the case of _POSIX_SOURCE, which is predefined and required
25171 # on some systems where configure will not decide to define it.
25172 if (defundef == "undef") {
25173 print "/*", prefix defundef, macro, "*/"
25174 next
25175 }
25176 }
25177}
25178{ print }
25179_ACAWK
25180_ACEOF
25181cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25182 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
25183fi # test -n "$CONFIG_HEADERS"
25184
9c60689e 25185
296ee9a6 25186eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9c60689e
DWT
25187shift
25188for ac_tag
25189do
25190 case $ac_tag in
25191 :[FHLC]) ac_mode=$ac_tag; continue;;
25192 esac
25193 case $ac_mode$ac_tag in
25194 :[FHL]*:*);;
ee134472 25195 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9c60689e
DWT
25196 :[FH]-) ac_tag=-:-;;
25197 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25198 esac
25199 ac_save_IFS=$IFS
25200 IFS=:
25201 set x $ac_tag
25202 IFS=$ac_save_IFS
25203 shift
25204 ac_file=$1
25205 shift
25206
25207 case $ac_mode in
25208 :L) ac_source=$1;;
25209 :[FH])
25210 ac_file_inputs=
25211 for ac_f
25212 do
25213 case $ac_f in
ee134472 25214 -) ac_f="$ac_tmp/stdin";;
9c60689e
DWT
25215 *) # Look for the file first in the build tree, then in the source tree
25216 # (if the path is not absolute). The absolute path cannot be DOS-style,
25217 # because $ac_f cannot contain `:'.
25218 test -f "$ac_f" ||
25219 case $ac_f in
25220 [\\/$]*) false;;
25221 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25222 esac ||
ee134472 25223 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9c60689e
DWT
25224 esac
25225 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25226 as_fn_append ac_file_inputs " '$ac_f'"
25227 done
25228
25229 # Let's still pretend it is `configure' which instantiates (i.e., don't
25230 # use $as_me), people would be surprised to read:
25231 # /* config.h. Generated by config.status. */
25232 configure_input='Generated from '`
25233 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25234 `' by configure.'
25235 if test x"$ac_file" != x-; then
25236 configure_input="$ac_file. $configure_input"
25237 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25238$as_echo "$as_me: creating $ac_file" >&6;}
25239 fi
25240 # Neutralize special characters interpreted by sed in replacement strings.
25241 case $configure_input in #(
25242 *\&* | *\|* | *\\* )
25243 ac_sed_conf_input=`$as_echo "$configure_input" |
25244 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25245 *) ac_sed_conf_input=$configure_input;;
25246 esac
25247
25248 case $ac_tag in
ee134472
JF
25249 *:-:* | *:-) cat >"$ac_tmp/stdin" \
25250 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9c60689e
DWT
25251 esac
25252 ;;
25253 esac
25254
25255 ac_dir=`$as_dirname -- "$ac_file" ||
25256$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25257 X"$ac_file" : 'X\(//\)[^/]' \| \
25258 X"$ac_file" : 'X\(//\)$' \| \
25259 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25260$as_echo X"$ac_file" |
25261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25262 s//\1/
25263 q
25264 }
25265 /^X\(\/\/\)[^/].*/{
25266 s//\1/
25267 q
25268 }
25269 /^X\(\/\/\)$/{
25270 s//\1/
25271 q
25272 }
25273 /^X\(\/\).*/{
25274 s//\1/
25275 q
25276 }
25277 s/.*/./; q'`
25278 as_dir="$ac_dir"; as_fn_mkdir_p
25279 ac_builddir=.
25280
25281case "$ac_dir" in
25282.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25283*)
25284 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25285 # A ".." for each directory in $ac_dir_suffix.
25286 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25287 case $ac_top_builddir_sub in
25288 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25289 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25290 esac ;;
25291esac
25292ac_abs_top_builddir=$ac_pwd
25293ac_abs_builddir=$ac_pwd$ac_dir_suffix
25294# for backward compatibility:
25295ac_top_builddir=$ac_top_build_prefix
35fa52c0 25296
9c60689e
DWT
25297case $srcdir in
25298 .) # We are building in place.
25299 ac_srcdir=.
25300 ac_top_srcdir=$ac_top_builddir_sub
25301 ac_abs_top_srcdir=$ac_pwd ;;
25302 [\\/]* | ?:[\\/]* ) # Absolute name.
25303 ac_srcdir=$srcdir$ac_dir_suffix;
25304 ac_top_srcdir=$srcdir
25305 ac_abs_top_srcdir=$srcdir ;;
25306 *) # Relative name.
25307 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25308 ac_top_srcdir=$ac_top_build_prefix$srcdir
25309 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25310esac
25311ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35fa52c0
DWT
25312
25313
9c60689e
DWT
25314 case $ac_mode in
25315 :F)
25316 #
25317 # CONFIG_FILE
25318 #
35fa52c0 25319
9c60689e
DWT
25320 case $INSTALL in
25321 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25322 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25323 esac
66170b30
JF
25324 ac_MKDIR_P=$MKDIR_P
25325 case $MKDIR_P in
25326 [\\/$]* | ?:[\\/]* ) ;;
25327 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25328 esac
9c60689e 25329_ACEOF
35fa52c0 25330
9c60689e
DWT
25331cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25332# If the template does not know about datarootdir, expand it.
25333# FIXME: This hack should be removed a few years after 2.60.
25334ac_datarootdir_hack=; ac_datarootdir_seen=
25335ac_sed_dataroot='
25336/datarootdir/ {
25337 p
25338 q
25339}
25340/@datadir@/p
25341/@docdir@/p
25342/@infodir@/p
25343/@localedir@/p
25344/@mandir@/p'
25345case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25346*datarootdir*) ac_datarootdir_seen=yes;;
25347*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25349$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25350_ACEOF
25351cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25352 ac_datarootdir_hack='
25353 s&@datadir@&$datadir&g
25354 s&@docdir@&$docdir&g
25355 s&@infodir@&$infodir&g
25356 s&@localedir@&$localedir&g
25357 s&@mandir@&$mandir&g
25358 s&\\\${datarootdir}&$datarootdir&g' ;;
25359esac
25360_ACEOF
35fa52c0 25361
9c60689e
DWT
25362# Neutralize VPATH when `$srcdir' = `.'.
25363# Shell code in configure.ac might set extrasub.
25364# FIXME: do we really want to maintain this feature?
25365cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25366ac_sed_extra="$ac_vpsub
25367$extrasub
25368_ACEOF
25369cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25370:t
25371/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25372s|@configure_input@|$ac_sed_conf_input|;t t
25373s&@top_builddir@&$ac_top_builddir_sub&;t t
25374s&@top_build_prefix@&$ac_top_build_prefix&;t t
25375s&@srcdir@&$ac_srcdir&;t t
25376s&@abs_srcdir@&$ac_abs_srcdir&;t t
25377s&@top_srcdir@&$ac_top_srcdir&;t t
25378s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25379s&@builddir@&$ac_builddir&;t t
25380s&@abs_builddir@&$ac_abs_builddir&;t t
25381s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25382s&@INSTALL@&$ac_INSTALL&;t t
66170b30 25383s&@MKDIR_P@&$ac_MKDIR_P&;t t
9c60689e
DWT
25384$ac_datarootdir_hack
25385"
ee134472
JF
25386eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
25387 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9c60689e
DWT
25388
25389test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
ee134472
JF
25390 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
25391 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
25392 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9c60689e 25393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12833ad8 25394which seems to be undefined. Please make sure it is defined" >&5
9c60689e 25395$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12833ad8 25396which seems to be undefined. Please make sure it is defined" >&2;}
9c60689e 25397
ee134472 25398 rm -f "$ac_tmp/stdin"
9c60689e 25399 case $ac_file in
ee134472
JF
25400 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
25401 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9c60689e 25402 esac \
12833ad8 25403 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9c60689e 25404 ;;
296ee9a6
JF
25405 :H)
25406 #
25407 # CONFIG_HEADER
25408 #
25409 if test x"$ac_file" != x-; then
25410 {
25411 $as_echo "/* $configure_input */" \
25412 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
25413 } >"$ac_tmp/config.h" \
25414 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25415 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
25416 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25417$as_echo "$as_me: $ac_file is unchanged" >&6;}
25418 else
25419 rm -f "$ac_file"
25420 mv "$ac_tmp/config.h" "$ac_file" \
25421 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25422 fi
25423 else
25424 $as_echo "/* $configure_input */" \
25425 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
25426 || as_fn_error $? "could not create -" "$LINENO" 5
25427 fi
25428# Compute "$ac_file"'s index in $config_headers.
25429_am_arg="$ac_file"
25430_am_stamp_count=1
25431for _am_header in $config_headers :; do
25432 case $_am_header in
25433 $_am_arg | $_am_arg:* )
25434 break ;;
25435 * )
25436 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25437 esac
25438done
25439echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25440$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25441 X"$_am_arg" : 'X\(//\)[^/]' \| \
25442 X"$_am_arg" : 'X\(//\)$' \| \
25443 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25444$as_echo X"$_am_arg" |
25445 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25446 s//\1/
25447 q
25448 }
25449 /^X\(\/\/\)[^/].*/{
25450 s//\1/
25451 q
25452 }
25453 /^X\(\/\/\)$/{
25454 s//\1/
25455 q
25456 }
25457 /^X\(\/\).*/{
25458 s//\1/
25459 q
25460 }
25461 s/.*/./; q'`/stamp-h$_am_stamp_count
25462 ;;
35fa52c0 25463
9c60689e
DWT
25464 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25465$as_echo "$as_me: executing $ac_file commands" >&6;}
25466 ;;
25467 esac
35fa52c0 25468
35fa52c0 25469
9c60689e 25470 case $ac_file$ac_mode in
66170b30
JF
25471 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
25472 # Older Autoconf quotes --file arguments for eval, but not when files
25473 # are listed without --file. Let's play safe and only enable the eval
25474 # if we detect the quoting.
25475 case $CONFIG_FILES in
25476 *\'*) eval set x "$CONFIG_FILES" ;;
25477 *) set x $CONFIG_FILES ;;
25478 esac
25479 shift
25480 for mf
25481 do
25482 # Strip MF so we end up with the name of the file.
25483 mf=`echo "$mf" | sed -e 's/:.*$//'`
25484 # Check whether this is an Automake generated Makefile or not.
25485 # We used to match only the files named 'Makefile.in', but
25486 # some people rename them; so instead we look at the file content.
25487 # Grep'ing the first line is not enough: some people post-process
25488 # each Makefile.in and add a new line on top of each file to say so.
25489 # Grep'ing the whole file is not good either: AIX grep has a line
25490 # limit of 2048, but all sed's we know have understand at least 4000.
25491 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25492 dirpart=`$as_dirname -- "$mf" ||
25493$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25494 X"$mf" : 'X\(//\)[^/]' \| \
25495 X"$mf" : 'X\(//\)$' \| \
25496 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25497$as_echo X"$mf" |
25498 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25499 s//\1/
25500 q
25501 }
25502 /^X\(\/\/\)[^/].*/{
25503 s//\1/
25504 q
25505 }
25506 /^X\(\/\/\)$/{
25507 s//\1/
25508 q
25509 }
25510 /^X\(\/\).*/{
25511 s//\1/
25512 q
25513 }
25514 s/.*/./; q'`
25515 else
25516 continue
25517 fi
25518 # Extract the definition of DEPDIR, am__include, and am__quote
25519 # from the Makefile without running 'make'.
25520 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25521 test -z "$DEPDIR" && continue
25522 am__include=`sed -n 's/^am__include = //p' < "$mf"`
a93f15c0 25523 test -z "$am__include" && continue
66170b30
JF
25524 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25525 # Find all dependency output files, they are included files with
25526 # $(DEPDIR) in their names. We invoke sed twice because it is the
25527 # simplest approach to changing $(DEPDIR) to its actual value in the
25528 # expansion.
25529 for file in `sed -n "
25530 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25531 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
25532 # Make sure the directory exists.
25533 test -f "$dirpart/$file" && continue
25534 fdir=`$as_dirname -- "$file" ||
25535$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25536 X"$file" : 'X\(//\)[^/]' \| \
25537 X"$file" : 'X\(//\)$' \| \
25538 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25539$as_echo X"$file" |
25540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25541 s//\1/
25542 q
25543 }
25544 /^X\(\/\/\)[^/].*/{
25545 s//\1/
25546 q
25547 }
25548 /^X\(\/\/\)$/{
25549 s//\1/
25550 q
25551 }
25552 /^X\(\/\).*/{
25553 s//\1/
25554 q
25555 }
25556 s/.*/./; q'`
25557 as_dir=$dirpart/$fdir; as_fn_mkdir_p
25558 # echo "creating $dirpart/$file"
25559 echo '# dummy' > "$dirpart/$file"
25560 done
25561 done
25562}
25563 ;;
9c60689e
DWT
25564 "libtool":C)
25565
9d54db95 25566 # See if we are running on zsh, and set the options that allow our
9c60689e 25567 # commands through without removal of \ escapes.
9d54db95 25568 if test -n "${ZSH_VERSION+set}"; then
9c60689e 25569 setopt NO_GLOB_SUBST
35fa52c0 25570 fi
35fa52c0 25571
9d54db95 25572 cfgfile=${ofile}T
9c60689e
DWT
25573 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
25574 $RM "$cfgfile"
35fa52c0 25575
9c60689e
DWT
25576 cat <<_LT_EOF >> "$cfgfile"
25577#! $SHELL
9d54db95 25578# Generated automatically by $as_me ($PACKAGE) $VERSION
9c60689e
DWT
25579# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25580# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9d54db95
JF
25581
25582# Provide generalized library-building support services.
25583# Written by Gordon Matzigkeit, 1996
25584
25585# Copyright (C) 2014 Free Software Foundation, Inc.
25586# This is free software; see the source for copying conditions. There is NO
25587# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
25588
25589# GNU Libtool is free software; you can redistribute it and/or modify
25590# it under the terms of the GNU General Public License as published by
25591# the Free Software Foundation; either version 2 of of the License, or
25592# (at your option) any later version.
9c60689e 25593#
9d54db95
JF
25594# As a special exception to the GNU General Public License, if you
25595# distribute this file as part of a program or library that is built
25596# using GNU Libtool, you may include this file under the same
25597# distribution terms that you use for the rest of that program.
9c60689e 25598#
9d54db95
JF
25599# GNU Libtool is distributed in the hope that it will be useful, but
25600# WITHOUT ANY WARRANTY; without even the implied warranty of
9c60689e
DWT
25601# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25602# GNU General Public License for more details.
25603#
25604# You should have received a copy of the GNU General Public License
9d54db95 25605# along with this program. If not, see <http://www.gnu.org/licenses/>.
35fa52c0 25606
35fa52c0 25607
9c60689e 25608# The names of the tagged configurations supported by this script.
9d54db95
JF
25609available_tags='CXX '
25610
25611# Configured defaults for sys_lib_dlsearch_path munging.
25612: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
35fa52c0 25613
9c60689e 25614# ### BEGIN LIBTOOL CONFIG
35fa52c0 25615
9c60689e
DWT
25616# Which release of libtool.m4 was used?
25617macro_version=$macro_version
25618macro_revision=$macro_revision
35fa52c0 25619
9c60689e
DWT
25620# Whether or not to build static libraries.
25621build_old_libs=$enable_static
35fa52c0 25622
549f29b5
DWT
25623# Whether or not to build shared libraries.
25624build_libtool_libs=$enable_shared
25625
9c60689e
DWT
25626# What type of objects to build.
25627pic_mode=$pic_mode
35fa52c0 25628
9c60689e
DWT
25629# Whether or not to optimize for fast installation.
25630fast_install=$enable_fast_install
35fa52c0 25631
9d54db95
JF
25632# Shared archive member basename,for filename based shared library versioning on AIX.
25633shared_archive_member_spec=$shared_archive_member_spec
25634
ee134472
JF
25635# Shell to use when invoking shell scripts.
25636SHELL=$lt_SHELL
25637
25638# An echo program that protects backslashes.
25639ECHO=$lt_ECHO
25640
53ba6704
JF
25641# The PATH separator for the build system.
25642PATH_SEPARATOR=$lt_PATH_SEPARATOR
25643
9c60689e
DWT
25644# The host system.
25645host_alias=$host_alias
25646host=$host
25647host_os=$host_os
35fa52c0 25648
9c60689e
DWT
25649# The build system.
25650build_alias=$build_alias
25651build=$build
25652build_os=$build_os
25653
25654# A sed program that does not truncate output.
25655SED=$lt_SED
25656
25657# Sed that helps us avoid accidentally triggering echo(1) options like -n.
25658Xsed="\$SED -e 1s/^X//"
25659
25660# A grep program that handles long lines.
25661GREP=$lt_GREP
25662
25663# An ERE matcher.
25664EGREP=$lt_EGREP
25665
25666# A literal string matcher.
25667FGREP=$lt_FGREP
25668
25669# A BSD- or MS-compatible name lister.
25670NM=$lt_NM
25671
25672# Whether we need soft or hard links.
25673LN_S=$lt_LN_S
25674
25675# What is the maximum length of a command?
25676max_cmd_len=$max_cmd_len
25677
25678# Object file suffix (normally "o").
25679objext=$ac_objext
25680
25681# Executable file suffix (normally "").
25682exeext=$exeext
25683
25684# whether the shell understands "unset".
25685lt_unset=$lt_unset
25686
25687# turn spaces into newlines.
25688SP2NL=$lt_lt_SP2NL
25689
25690# turn newlines into spaces.
25691NL2SP=$lt_lt_NL2SP
25692
ee134472
JF
25693# convert \$build file names to \$host format.
25694to_host_file_cmd=$lt_cv_to_host_file_cmd
25695
25696# convert \$build files to toolchain format.
25697to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9c60689e
DWT
25698
25699# An object symbol dumper.
25700OBJDUMP=$lt_OBJDUMP
25701
25702# Method to check whether dependent libraries are shared objects.
25703deplibs_check_method=$lt_deplibs_check_method
25704
ee134472 25705# Command to use when deplibs_check_method = "file_magic".
9c60689e
DWT
25706file_magic_cmd=$lt_file_magic_cmd
25707
ee134472
JF
25708# How to find potential files when deplibs_check_method = "file_magic".
25709file_magic_glob=$lt_file_magic_glob
25710
25711# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
25712want_nocaseglob=$lt_want_nocaseglob
25713
25714# DLL creation program.
25715DLLTOOL=$lt_DLLTOOL
25716
25717# Command to associate shared and link libraries.
25718sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
25719
9c60689e
DWT
25720# The archiver.
25721AR=$lt_AR
ee134472
JF
25722
25723# Flags to create an archive.
9c60689e
DWT
25724AR_FLAGS=$lt_AR_FLAGS
25725
ee134472
JF
25726# How to feed a file listing to the archiver.
25727archiver_list_spec=$lt_archiver_list_spec
25728
9c60689e
DWT
25729# A symbol stripping program.
25730STRIP=$lt_STRIP
25731
25732# Commands used to install an old-style archive.
25733RANLIB=$lt_RANLIB
25734old_postinstall_cmds=$lt_old_postinstall_cmds
25735old_postuninstall_cmds=$lt_old_postuninstall_cmds
25736
ee134472
JF
25737# Whether to use a lock for old archive extraction.
25738lock_old_archive_extraction=$lock_old_archive_extraction
25739
9c60689e
DWT
25740# A C compiler.
25741LTCC=$lt_CC
25742
25743# LTCC compiler flags.
25744LTCFLAGS=$lt_CFLAGS
25745
25746# Take the output of nm and produce a listing of raw symbols and C names.
25747global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25748
25749# Transform the output of nm in a proper C declaration.
25750global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25751
9d54db95
JF
25752# Transform the output of nm into a list of symbols to manually relocate.
25753global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
25754
9c60689e
DWT
25755# Transform the output of nm in a C name address pair.
25756global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25757
25758# Transform the output of nm in a C name address pair when lib prefix is needed.
25759global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
25760
9d54db95
JF
25761# The name lister interface.
25762nm_interface=$lt_lt_cv_nm_interface
25763
ee134472
JF
25764# Specify filename containing input files for \$NM.
25765nm_file_list_spec=$lt_nm_file_list_spec
9c60689e 25766
9d54db95 25767# The root where to search for dependent libraries,and where our libraries should be installed.
ee134472 25768lt_sysroot=$lt_sysroot
9c60689e 25769
9d54db95
JF
25770# Command to truncate a binary pipe.
25771lt_truncate_bin=$lt_lt_cv_truncate_bin
25772
ee134472
JF
25773# The name of the directory that contains temporary libtool files.
25774objdir=$objdir
9c60689e
DWT
25775
25776# Used to examine libraries when file_magic_cmd begins with "file".
25777MAGIC_CMD=$MAGIC_CMD
25778
25779# Must we lock files when doing compilation?
25780need_locks=$lt_need_locks
25781
ee134472
JF
25782# Manifest tool.
25783MANIFEST_TOOL=$lt_MANIFEST_TOOL
25784
9c60689e
DWT
25785# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
25786DSYMUTIL=$lt_DSYMUTIL
25787
25788# Tool to change global to local symbols on Mac OS X.
25789NMEDIT=$lt_NMEDIT
25790
25791# Tool to manipulate fat objects and archives on Mac OS X.
25792LIPO=$lt_LIPO
25793
25794# ldd/readelf like tool for Mach-O binaries on Mac OS X.
25795OTOOL=$lt_OTOOL
25796
25797# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
25798OTOOL64=$lt_OTOOL64
25799
25800# Old archive suffix (normally "a").
25801libext=$libext
25802
25803# Shared library suffix (normally ".so").
25804shrext_cmds=$lt_shrext_cmds
35fa52c0 25805
9c60689e
DWT
25806# The commands to extract the exported symbol list from a shared archive.
25807extract_expsyms_cmds=$lt_extract_expsyms_cmds
35fa52c0 25808
9c60689e
DWT
25809# Variables whose values should be saved in libtool wrapper scripts and
25810# restored at link time.
25811variables_saved_for_relink=$lt_variables_saved_for_relink
35fa52c0 25812
9c60689e
DWT
25813# Do we need the "lib" prefix for modules?
25814need_lib_prefix=$need_lib_prefix
35fa52c0 25815
9c60689e
DWT
25816# Do we need a version for libraries?
25817need_version=$need_version
35fa52c0 25818
9c60689e
DWT
25819# Library versioning type.
25820version_type=$version_type
35fa52c0 25821
9c60689e
DWT
25822# Shared library runtime path variable.
25823runpath_var=$runpath_var
35fa52c0 25824
9c60689e
DWT
25825# Shared library path variable.
25826shlibpath_var=$shlibpath_var
35fa52c0 25827
9c60689e
DWT
25828# Is shlibpath searched before the hard-coded library search path?
25829shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35fa52c0 25830
9c60689e
DWT
25831# Format of library name prefix.
25832libname_spec=$lt_libname_spec
35fa52c0 25833
9c60689e
DWT
25834# List of archive names. First name is the real one, the rest are links.
25835# The last name is the one that the linker finds with -lNAME
25836library_names_spec=$lt_library_names_spec
dbadc56a 25837
9c60689e
DWT
25838# The coded name of the library, if different from the real name.
25839soname_spec=$lt_soname_spec
dbadc56a 25840
ee134472
JF
25841# Permission mode override for installation of shared libraries.
25842install_override_mode=$lt_install_override_mode
25843
9c60689e
DWT
25844# Command to use after installation of a shared archive.
25845postinstall_cmds=$lt_postinstall_cmds
35fa52c0 25846
9c60689e
DWT
25847# Command to use after uninstallation of a shared archive.
25848postuninstall_cmds=$lt_postuninstall_cmds
dbadc56a 25849
9c60689e
DWT
25850# Commands used to finish a libtool library installation in a directory.
25851finish_cmds=$lt_finish_cmds
35fa52c0 25852
9c60689e
DWT
25853# As "finish_cmds", except a single script fragment to be evaled but
25854# not shown.
25855finish_eval=$lt_finish_eval
35fa52c0 25856
9c60689e
DWT
25857# Whether we should hardcode library paths into libraries.
25858hardcode_into_libs=$hardcode_into_libs
dbadc56a 25859
9c60689e
DWT
25860# Compile-time system search path for libraries.
25861sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35fa52c0 25862
9d54db95
JF
25863# Detected run-time system search path for libraries.
25864sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
25865
25866# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
25867configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
dbadc56a 25868
9c60689e
DWT
25869# Whether dlopen is supported.
25870dlopen_support=$enable_dlopen
dbadc56a 25871
9c60689e
DWT
25872# Whether dlopen of programs is supported.
25873dlopen_self=$enable_dlopen_self
35fa52c0 25874
9c60689e
DWT
25875# Whether dlopen of statically linked programs is supported.
25876dlopen_self_static=$enable_dlopen_self_static
35fa52c0 25877
9c60689e
DWT
25878# Commands to strip libraries.
25879old_striplib=$lt_old_striplib
25880striplib=$lt_striplib
35fa52c0 25881
35fa52c0 25882
9c60689e
DWT
25883# The linker used to build libraries.
25884LD=$lt_LD
dbadc56a 25885
ee134472
JF
25886# How to create reloadable object files.
25887reload_flag=$lt_reload_flag
25888reload_cmds=$lt_reload_cmds
25889
9c60689e
DWT
25890# Commands used to build an old-style archive.
25891old_archive_cmds=$lt_old_archive_cmds
dbadc56a 25892
9c60689e
DWT
25893# A language specific compiler.
25894CC=$lt_compiler
35fa52c0 25895
9c60689e
DWT
25896# Is the compiler the GNU compiler?
25897with_gcc=$GCC
dbadc56a 25898
9c60689e
DWT
25899# Compiler flag to turn off builtin functions.
25900no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
dbadc56a 25901
9c60689e
DWT
25902# Additional compiler flags for building library objects.
25903pic_flag=$lt_lt_prog_compiler_pic
35fa52c0 25904
ee134472
JF
25905# How to pass a linker flag through the compiler.
25906wl=$lt_lt_prog_compiler_wl
25907
9c60689e
DWT
25908# Compiler flag to prevent dynamic linking.
25909link_static_flag=$lt_lt_prog_compiler_static
35fa52c0 25910
9c60689e
DWT
25911# Does compiler simultaneously support -c and -o options?
25912compiler_c_o=$lt_lt_cv_prog_compiler_c_o
dbadc56a 25913
9c60689e
DWT
25914# Whether or not to add -lc for building shared libraries.
25915build_libtool_need_lc=$archive_cmds_need_lc
35fa52c0 25916
9c60689e
DWT
25917# Whether or not to disallow shared libs when runtime libs are static.
25918allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35fa52c0 25919
9c60689e
DWT
25920# Compiler flag to allow reflexive dlopens.
25921export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35fa52c0 25922
9c60689e
DWT
25923# Compiler flag to generate shared objects directly from archives.
25924whole_archive_flag_spec=$lt_whole_archive_flag_spec
dbadc56a 25925
9c60689e
DWT
25926# Whether the compiler copes with passing no objects directly.
25927compiler_needs_object=$lt_compiler_needs_object
dbadc56a 25928
9c60689e
DWT
25929# Create an old-style archive from a shared archive.
25930old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
dbadc56a 25931
9c60689e
DWT
25932# Create a temporary old-style archive to link instead of a shared archive.
25933old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
dbadc56a 25934
9c60689e
DWT
25935# Commands used to build a shared archive.
25936archive_cmds=$lt_archive_cmds
25937archive_expsym_cmds=$lt_archive_expsym_cmds
35fa52c0 25938
9c60689e
DWT
25939# Commands used to build a loadable module if different from building
25940# a shared archive.
25941module_cmds=$lt_module_cmds
25942module_expsym_cmds=$lt_module_expsym_cmds
dbadc56a 25943
9c60689e
DWT
25944# Whether we are building with GNU ld or not.
25945with_gnu_ld=$lt_with_gnu_ld
6b66678a 25946
9c60689e
DWT
25947# Flag that allows shared libraries with undefined symbols to be built.
25948allow_undefined_flag=$lt_allow_undefined_flag
6b66678a 25949
9c60689e
DWT
25950# Flag that enforces no undefined symbols.
25951no_undefined_flag=$lt_no_undefined_flag
6b66678a 25952
9c60689e
DWT
25953# Flag to hardcode \$libdir into a binary during linking.
25954# This must work even if \$libdir does not exist
25955hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6b66678a 25956
9c60689e
DWT
25957# Whether we need a single "-rpath" flag with a separated argument.
25958hardcode_libdir_separator=$lt_hardcode_libdir_separator
6b66678a 25959
9d54db95 25960# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
9c60689e
DWT
25961# DIR into the resulting binary.
25962hardcode_direct=$hardcode_direct
6b66678a 25963
9d54db95 25964# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
9c60689e 25965# DIR into the resulting binary and the resulting library dependency is
9d54db95 25966# "absolute",i.e impossible to change by setting \$shlibpath_var if the
9c60689e
DWT
25967# library is relocated.
25968hardcode_direct_absolute=$hardcode_direct_absolute
6b66678a 25969
9c60689e
DWT
25970# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25971# into the resulting binary.
25972hardcode_minus_L=$hardcode_minus_L
6b66678a 25973
9c60689e
DWT
25974# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25975# into the resulting binary.
25976hardcode_shlibpath_var=$hardcode_shlibpath_var
6b66678a 25977
9c60689e
DWT
25978# Set to "yes" if building a shared library automatically hardcodes DIR
25979# into the library and all subsequent libraries and executables linked
25980# against it.
25981hardcode_automatic=$hardcode_automatic
6b66678a 25982
9c60689e
DWT
25983# Set to yes if linker adds runtime paths of dependent libraries
25984# to runtime path list.
25985inherit_rpath=$inherit_rpath
6b66678a 25986
9c60689e
DWT
25987# Whether libtool must link a program against all its dependency libraries.
25988link_all_deplibs=$link_all_deplibs
25989
9c60689e
DWT
25990# Set to "yes" if exported symbols are required.
25991always_export_symbols=$always_export_symbols
6b66678a 25992
9c60689e
DWT
25993# The commands to list exported symbols.
25994export_symbols_cmds=$lt_export_symbols_cmds
6b66678a 25995
9c60689e
DWT
25996# Symbols that should not be listed in the preloaded symbols.
25997exclude_expsyms=$lt_exclude_expsyms
6b66678a 25998
9c60689e
DWT
25999# Symbols that must always be exported.
26000include_expsyms=$lt_include_expsyms
6b66678a 26001
9c60689e
DWT
26002# Commands necessary for linking programs (against libraries) with templates.
26003prelink_cmds=$lt_prelink_cmds
6b66678a 26004
ee134472
JF
26005# Commands necessary for finishing linking programs.
26006postlink_cmds=$lt_postlink_cmds
26007
9c60689e
DWT
26008# Specify filename containing input files.
26009file_list_spec=$lt_file_list_spec
6b66678a 26010
9c60689e
DWT
26011# How to hardcode a shared library path into an executable.
26012hardcode_action=$hardcode_action
26013
26014# The directories searched by this compiler when creating a shared library.
26015compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
26016
26017# Dependencies to place before and after the objects being linked to
26018# create a shared library.
26019predep_objects=$lt_predep_objects
26020postdep_objects=$lt_postdep_objects
26021predeps=$lt_predeps
26022postdeps=$lt_postdeps
26023
26024# The library search path used internally by the compiler when linking
26025# a shared library.
26026compiler_lib_search_path=$lt_compiler_lib_search_path
26027
26028# ### END LIBTOOL CONFIG
26029
9d54db95
JF
26030_LT_EOF
26031
26032 cat <<'_LT_EOF' >> "$cfgfile"
26033
26034# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
26035
26036# func_munge_path_list VARIABLE PATH
26037# -----------------------------------
26038# VARIABLE is name of variable containing _space_ separated list of
26039# directories to be munged by the contents of PATH, which is string
26040# having a format:
26041# "DIR[:DIR]:"
26042# string "DIR[ DIR]" will be prepended to VARIABLE
26043# ":DIR[:DIR]"
26044# string "DIR[ DIR]" will be appended to VARIABLE
26045# "DIRP[:DIRP]::[DIRA:]DIRA"
26046# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
26047# "DIRA[ DIRA]" will be appended to VARIABLE
26048# "DIR[:DIR]"
26049# VARIABLE will be replaced by "DIR[ DIR]"
26050func_munge_path_list ()
26051{
26052 case x$2 in
26053 x)
26054 ;;
26055 *:)
26056 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
26057 ;;
26058 x:*)
26059 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
26060 ;;
26061 *::*)
26062 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
26063 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
26064 ;;
26065 *)
26066 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
26067 ;;
26068 esac
26069}
26070
26071
26072# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
26073func_cc_basename ()
26074{
26075 for cc_temp in $*""; do
26076 case $cc_temp in
26077 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26078 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26079 \-*) ;;
26080 *) break;;
26081 esac
26082 done
26083 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
26084}
26085
26086
26087# ### END FUNCTIONS SHARED WITH CONFIGURE
26088
9c60689e
DWT
26089_LT_EOF
26090
26091 case $host_os in
26092 aix3*)
26093 cat <<\_LT_EOF >> "$cfgfile"
26094# AIX sometimes has problems with the GCC collect2 program. For some
26095# reason, if we set the COLLECT_NAMES environment variable, the problems
26096# vanish in a puff of smoke.
9d54db95 26097if test set != "${COLLECT_NAMES+set}"; then
9c60689e
DWT
26098 COLLECT_NAMES=
26099 export COLLECT_NAMES
6b66678a 26100fi
9c60689e
DWT
26101_LT_EOF
26102 ;;
26103 esac
6b66678a
DWT
26104
26105
9d54db95 26106ltmain=$ac_aux_dir/ltmain.sh
6b66678a 26107
9c60689e
DWT
26108
26109 # We use sed instead of cat because bash on DJGPP gets confused if
26110 # if finds mixed CR/LF and LF-only lines. Since sed operates in
26111 # text mode, it properly converts lines to CR/LF. This bash problem
26112 # is reportedly fixed, but why not run on old versions too?
ee134472
JF
26113 sed '$q' "$ltmain" >> "$cfgfile" \
26114 || (rm -f "$cfgfile"; exit 1)
26115
ee134472 26116 mv -f "$cfgfile" "$ofile" ||
9c60689e
DWT
26117 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
26118 chmod +x "$ofile"
26119
26120
26121 cat <<_LT_EOF >> "$ofile"
26122
26123# ### BEGIN LIBTOOL TAG CONFIG: CXX
26124
26125# The linker used to build libraries.
26126LD=$lt_LD_CXX
26127
ee134472
JF
26128# How to create reloadable object files.
26129reload_flag=$lt_reload_flag_CXX
26130reload_cmds=$lt_reload_cmds_CXX
26131
9c60689e
DWT
26132# Commands used to build an old-style archive.
26133old_archive_cmds=$lt_old_archive_cmds_CXX
26134
26135# A language specific compiler.
26136CC=$lt_compiler_CXX
26137
26138# Is the compiler the GNU compiler?
26139with_gcc=$GCC_CXX
26140
26141# Compiler flag to turn off builtin functions.
26142no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
6b66678a 26143
9c60689e
DWT
26144# Additional compiler flags for building library objects.
26145pic_flag=$lt_lt_prog_compiler_pic_CXX
6b66678a 26146
ee134472
JF
26147# How to pass a linker flag through the compiler.
26148wl=$lt_lt_prog_compiler_wl_CXX
26149
9c60689e
DWT
26150# Compiler flag to prevent dynamic linking.
26151link_static_flag=$lt_lt_prog_compiler_static_CXX
6b66678a 26152
9c60689e
DWT
26153# Does compiler simultaneously support -c and -o options?
26154compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
dbadc56a 26155
9c60689e
DWT
26156# Whether or not to add -lc for building shared libraries.
26157build_libtool_need_lc=$archive_cmds_need_lc_CXX
dbadc56a 26158
9c60689e
DWT
26159# Whether or not to disallow shared libs when runtime libs are static.
26160allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35fa52c0 26161
9c60689e
DWT
26162# Compiler flag to allow reflexive dlopens.
26163export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35fa52c0 26164
9c60689e
DWT
26165# Compiler flag to generate shared objects directly from archives.
26166whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35fa52c0 26167
9c60689e
DWT
26168# Whether the compiler copes with passing no objects directly.
26169compiler_needs_object=$lt_compiler_needs_object_CXX
35fa52c0 26170
9c60689e
DWT
26171# Create an old-style archive from a shared archive.
26172old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35fa52c0 26173
9c60689e
DWT
26174# Create a temporary old-style archive to link instead of a shared archive.
26175old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35fa52c0 26176
9c60689e
DWT
26177# Commands used to build a shared archive.
26178archive_cmds=$lt_archive_cmds_CXX
26179archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
6b66678a 26180
9c60689e
DWT
26181# Commands used to build a loadable module if different from building
26182# a shared archive.
26183module_cmds=$lt_module_cmds_CXX
26184module_expsym_cmds=$lt_module_expsym_cmds_CXX
6b66678a 26185
9c60689e
DWT
26186# Whether we are building with GNU ld or not.
26187with_gnu_ld=$lt_with_gnu_ld_CXX
6b66678a 26188
9c60689e
DWT
26189# Flag that allows shared libraries with undefined symbols to be built.
26190allow_undefined_flag=$lt_allow_undefined_flag_CXX
35fa52c0 26191
9c60689e
DWT
26192# Flag that enforces no undefined symbols.
26193no_undefined_flag=$lt_no_undefined_flag_CXX
35fa52c0 26194
9c60689e
DWT
26195# Flag to hardcode \$libdir into a binary during linking.
26196# This must work even if \$libdir does not exist
26197hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
6b66678a 26198
9c60689e
DWT
26199# Whether we need a single "-rpath" flag with a separated argument.
26200hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
6b66678a 26201
9d54db95 26202# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
9c60689e
DWT
26203# DIR into the resulting binary.
26204hardcode_direct=$hardcode_direct_CXX
6b66678a 26205
9d54db95 26206# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
9c60689e 26207# DIR into the resulting binary and the resulting library dependency is
9d54db95 26208# "absolute",i.e impossible to change by setting \$shlibpath_var if the
9c60689e
DWT
26209# library is relocated.
26210hardcode_direct_absolute=$hardcode_direct_absolute_CXX
6b66678a 26211
9c60689e
DWT
26212# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26213# into the resulting binary.
26214hardcode_minus_L=$hardcode_minus_L_CXX
35fa52c0 26215
9c60689e
DWT
26216# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26217# into the resulting binary.
26218hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35fa52c0 26219
9c60689e
DWT
26220# Set to "yes" if building a shared library automatically hardcodes DIR
26221# into the library and all subsequent libraries and executables linked
26222# against it.
26223hardcode_automatic=$hardcode_automatic_CXX
6b66678a 26224
9c60689e
DWT
26225# Set to yes if linker adds runtime paths of dependent libraries
26226# to runtime path list.
26227inherit_rpath=$inherit_rpath_CXX
6b66678a 26228
9c60689e
DWT
26229# Whether libtool must link a program against all its dependency libraries.
26230link_all_deplibs=$link_all_deplibs_CXX
6b66678a 26231
9c60689e
DWT
26232# Set to "yes" if exported symbols are required.
26233always_export_symbols=$always_export_symbols_CXX
6b66678a 26234
9c60689e
DWT
26235# The commands to list exported symbols.
26236export_symbols_cmds=$lt_export_symbols_cmds_CXX
6b66678a 26237
9c60689e
DWT
26238# Symbols that should not be listed in the preloaded symbols.
26239exclude_expsyms=$lt_exclude_expsyms_CXX
6b66678a 26240
9c60689e
DWT
26241# Symbols that must always be exported.
26242include_expsyms=$lt_include_expsyms_CXX
6b66678a 26243
9c60689e
DWT
26244# Commands necessary for linking programs (against libraries) with templates.
26245prelink_cmds=$lt_prelink_cmds_CXX
6b66678a 26246
ee134472
JF
26247# Commands necessary for finishing linking programs.
26248postlink_cmds=$lt_postlink_cmds_CXX
26249
9c60689e
DWT
26250# Specify filename containing input files.
26251file_list_spec=$lt_file_list_spec_CXX
dbadc56a 26252
9c60689e
DWT
26253# How to hardcode a shared library path into an executable.
26254hardcode_action=$hardcode_action_CXX
309b0535 26255
9c60689e
DWT
26256# The directories searched by this compiler when creating a shared library.
26257compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
309b0535 26258
9c60689e
DWT
26259# Dependencies to place before and after the objects being linked to
26260# create a shared library.
26261predep_objects=$lt_predep_objects_CXX
26262postdep_objects=$lt_postdep_objects_CXX
26263predeps=$lt_predeps_CXX
26264postdeps=$lt_postdeps_CXX
309b0535 26265
9c60689e
DWT
26266# The library search path used internally by the compiler when linking
26267# a shared library.
26268compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
26269
26270# ### END LIBTOOL TAG CONFIG: CXX
26271_LT_EOF
26272
26273 ;;
26274
26275 esac
26276done # for ac_tag
26277
26278
26279as_fn_exit 0
26280_ACEOF
26281ac_clean_files=$ac_clean_files_save
26282
26283test $ac_write_fail = 0 ||
12833ad8 26284 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9c60689e
DWT
26285
26286
26287# configure is writing to config.log, and then calls config.status.
26288# config.status does its own redirection, appending to config.log.
26289# Unfortunately, on DOS this fails, as config.log is still kept open
26290# by configure, so config.status won't be able to write to it; its
26291# output is simply discarded. So we exec the FD to /dev/null,
26292# effectively closing config.log, so it can be properly (re)opened and
26293# appended to by config.status. When coming back to configure, we
26294# need to make the FD available again.
26295if test "$no_create" != yes; then
26296 ac_cs_success=:
26297 ac_config_status_args=
26298 test "$silent" = yes &&
26299 ac_config_status_args="$ac_config_status_args --quiet"
26300 exec 5>/dev/null
26301 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26302 exec 5>>config.log
26303 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26304 # would make configure fail if this is the last instruction.
12833ad8 26305 $ac_cs_success || as_fn_exit 1
309b0535 26306fi
9c60689e
DWT
26307if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26309$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
26310fi
26311